@turquoisehealth/pit-viper 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/_site/assets/css/pit-viper-v2.css +4858 -0
- package/_site/assets/css/pit-viper.css +4875 -0
- package/_site/assets/js/pit-viper.js +180 -0
- package/_src/assets/sprite-v2.svg +1 -0
- package/_src/assets/sprite.svg +1 -0
- package/package.json +74 -0
- package/pv-components/dist/vue/base/pv-components-base.d.mts +179 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +3182 -0
- package/pv-components/dist/vue/tables/pv-components-tables.d.mts +74 -0
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +39355 -0
- package/pv-components/dist/web/index.d.ts +1 -0
- package/pv-components/dist/web/pv-components.iife.js +90 -0
|
@@ -0,0 +1,3182 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-badge[data-v-552660ff]{--inset-size: 2px 4px;min-width:20px;font-weight:500}.pv-badge-release-alpha[data-v-552660ff]{--inset-size: 2px 8px;background:#ffeb99;font-weight:600}.pv-badge-release-beta[data-v-552660ff]{--inset-size: 2px 8px;background:#e8daff;font-weight:600}.pv-tag-hover[data-v-4bfc761f]{border-color:#176f6f}.pv-popover-list[data-v-fe55e23d]{font-size:14px}.pv-icon-button[data-v-aa75cbe3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-aa75cbe3]{font-size:14px}.ag-header-cell-resize{border:none}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option-text{font-family:Inter}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";display:block;height:2px;width:100%;position:absolute;bottom:0;left:0;right:0;background-color:#176f6f}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { defineComponent as he, computed as re, createElementBlock as R, openBlock as M, normalizeClass as Te, renderSlot as Ue, toDisplayString as vt, createElementVNode as Xe, ref as $t, createVNode as fo, onMounted as Ko, nextTick as vo, getCurrentScope as er, onScopeDispose as tr, getCurrentInstance as or, watch as mt, toRef as rr, readonly as ar, customRef as nr, toValue as j, isRef as ir, useTemplateRef as lr, normalizeStyle as sr, unref as lt, shallowRef as mo, withDirectives as cr, createBlock as At, createTextVNode as bo, withCtx as dr, Fragment as It, renderList as wo, createCommentVNode as yt } from "vue";
|
|
3
|
+
const gr = ["disabled"], An = /* @__PURE__ */ he({
|
|
4
|
+
__name: "PvButton",
|
|
5
|
+
props: {
|
|
6
|
+
variant: { default: "primary" },
|
|
7
|
+
disabled: { type: Boolean },
|
|
8
|
+
size: {},
|
|
9
|
+
inverse: { type: Boolean, default: !1 },
|
|
10
|
+
shadow: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const t = re(() => ({
|
|
14
|
+
[`pv-button-${e.variant}`]: !0,
|
|
15
|
+
[`pv-button-${e.size}`]: !!e.size,
|
|
16
|
+
"pv-button-inverse": e.inverse,
|
|
17
|
+
"pv-button-shadow": e.shadow
|
|
18
|
+
}));
|
|
19
|
+
return (o, r) => (M(), R("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
class: Te(t.value),
|
|
22
|
+
disabled: o.disabled
|
|
23
|
+
}, [
|
|
24
|
+
Ue(o.$slots, "default")
|
|
25
|
+
], 10, gr));
|
|
26
|
+
}
|
|
27
|
+
}), ur = /* @__PURE__ */ he({
|
|
28
|
+
__name: "PvBadge",
|
|
29
|
+
props: {
|
|
30
|
+
label: { default: "" },
|
|
31
|
+
variant: { default: "primary" }
|
|
32
|
+
},
|
|
33
|
+
setup(e) {
|
|
34
|
+
const t = e, o = re(() => t.variant == "release-alpha" ? "ALPHA" : t.variant == "release-beta" ? "BETA" : t.label), r = re(() => ({
|
|
35
|
+
"pv-inline-block pv-inset-square pv-radius pv-text-body-xxs pv-text-center": !0,
|
|
36
|
+
"pv-surface-brand-inverse pv-text-inverse": t.variant == "primary",
|
|
37
|
+
"pv-surface-accent": t.variant == "secondary",
|
|
38
|
+
"pv-surface": t.variant == "ghost",
|
|
39
|
+
"pv-badge": !t.variant.includes("release"),
|
|
40
|
+
"pv-badge-release-alpha": t.variant == "release-alpha",
|
|
41
|
+
"pv-badge-release-beta": t.variant == "release-beta"
|
|
42
|
+
}));
|
|
43
|
+
return (a, n) => (M(), R("div", {
|
|
44
|
+
class: Te(r.value)
|
|
45
|
+
}, vt(o.value), 3));
|
|
46
|
+
}
|
|
47
|
+
}), Ye = (e, t) => {
|
|
48
|
+
const o = e.__vccOpts || e;
|
|
49
|
+
for (const [r, a] of t)
|
|
50
|
+
o[r] = a;
|
|
51
|
+
return o;
|
|
52
|
+
}, In = /* @__PURE__ */ Ye(ur, [["__scopeId", "data-v-552660ff"]]), pr = ["xlink:href"], hr = [void 0, 10, 20, 24, 32, 64], st = /* @__PURE__ */ he({
|
|
53
|
+
__name: "PvIcon",
|
|
54
|
+
props: {
|
|
55
|
+
name: {},
|
|
56
|
+
size: {}
|
|
57
|
+
},
|
|
58
|
+
setup(e) {
|
|
59
|
+
const t = e, o = re(() => ({
|
|
60
|
+
"pv-icon": !0,
|
|
61
|
+
[`pv-icon-${t.size}`]: hr.includes(t.size)
|
|
62
|
+
}));
|
|
63
|
+
return (r, a) => (M(), R("svg", {
|
|
64
|
+
"aria-hidden": "true",
|
|
65
|
+
class: Te(o.value)
|
|
66
|
+
}, [
|
|
67
|
+
Xe("use", {
|
|
68
|
+
"xlink:href": `#${r.name}`
|
|
69
|
+
}, null, 8, pr)
|
|
70
|
+
], 2));
|
|
71
|
+
}
|
|
72
|
+
}), fr = { class: "pv-text-body-xxs" }, vr = /* @__PURE__ */ he({
|
|
73
|
+
__name: "PvChip",
|
|
74
|
+
props: {
|
|
75
|
+
label: {},
|
|
76
|
+
variant: { default: "secondary" },
|
|
77
|
+
removable: { type: Boolean, default: !1 }
|
|
78
|
+
},
|
|
79
|
+
emits: ["remove-tag"],
|
|
80
|
+
setup(e, { emit: t }) {
|
|
81
|
+
const o = t, r = $t(!1);
|
|
82
|
+
return (a, n) => (M(), R("div", {
|
|
83
|
+
class: Te(["pv-flex-inline pv-tag", { "pv-tag-hover": r.value }]),
|
|
84
|
+
style: { "border-radius": "2rem" }
|
|
85
|
+
}, [
|
|
86
|
+
Xe("span", fr, vt(a.label), 1),
|
|
87
|
+
fo(st, {
|
|
88
|
+
name: "close",
|
|
89
|
+
style: { cursor: "pointer" },
|
|
90
|
+
onClick: n[0] || (n[0] = (l) => o("remove-tag")),
|
|
91
|
+
onMouseenter: n[1] || (n[1] = (l) => r.value = !0),
|
|
92
|
+
onMouseleave: n[2] || (n[2] = (l) => r.value = !1)
|
|
93
|
+
})
|
|
94
|
+
], 2));
|
|
95
|
+
}
|
|
96
|
+
}), Fn = /* @__PURE__ */ Ye(vr, [["__scopeId", "data-v-4bfc761f"]]);
|
|
97
|
+
function Gt(e) {
|
|
98
|
+
return er() ? (tr(e), !0) : !1;
|
|
99
|
+
}
|
|
100
|
+
const Vt = typeof window < "u" && typeof document < "u";
|
|
101
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
102
|
+
const mr = Object.prototype.toString, br = (e) => mr.call(e) === "[object Object]", ye = () => {
|
|
103
|
+
}, Ft = /* @__PURE__ */ wr();
|
|
104
|
+
function wr() {
|
|
105
|
+
var e, t;
|
|
106
|
+
return Vt && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
107
|
+
}
|
|
108
|
+
function yr(...e) {
|
|
109
|
+
if (e.length !== 1)
|
|
110
|
+
return rr(...e);
|
|
111
|
+
const t = e[0];
|
|
112
|
+
return typeof t == "function" ? ar(nr(() => ({ get: t, set: ye }))) : $t(t);
|
|
113
|
+
}
|
|
114
|
+
function Ct(e) {
|
|
115
|
+
return Array.isArray(e) ? e : [e];
|
|
116
|
+
}
|
|
117
|
+
function Cr(e) {
|
|
118
|
+
return or();
|
|
119
|
+
}
|
|
120
|
+
function xr(e, t = !0, o) {
|
|
121
|
+
Cr() ? Ko(e, o) : t ? e() : vo(e);
|
|
122
|
+
}
|
|
123
|
+
function kr(e, t, o) {
|
|
124
|
+
return mt(
|
|
125
|
+
e,
|
|
126
|
+
t,
|
|
127
|
+
{
|
|
128
|
+
...o,
|
|
129
|
+
immediate: !0
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
const Sr = Vt ? window.document : void 0;
|
|
134
|
+
function Br(e) {
|
|
135
|
+
var t;
|
|
136
|
+
const o = j(e);
|
|
137
|
+
return (t = o?.$el) != null ? t : o;
|
|
138
|
+
}
|
|
139
|
+
/**!
|
|
140
|
+
* Sortable 1.15.6
|
|
141
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
142
|
+
* @author owenm <owen23355@gmail.com>
|
|
143
|
+
* @license MIT
|
|
144
|
+
*/
|
|
145
|
+
function Qt(e, t) {
|
|
146
|
+
var o = Object.keys(e);
|
|
147
|
+
if (Object.getOwnPropertySymbols) {
|
|
148
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
149
|
+
t && (r = r.filter(function(a) {
|
|
150
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
151
|
+
})), o.push.apply(o, r);
|
|
152
|
+
}
|
|
153
|
+
return o;
|
|
154
|
+
}
|
|
155
|
+
function K(e) {
|
|
156
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
157
|
+
var o = arguments[t] != null ? arguments[t] : {};
|
|
158
|
+
t % 2 ? Qt(Object(o), !0).forEach(function(r) {
|
|
159
|
+
Dr(e, r, o[r]);
|
|
160
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Qt(Object(o)).forEach(function(r) {
|
|
161
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return e;
|
|
165
|
+
}
|
|
166
|
+
function ot(e) {
|
|
167
|
+
"@babel/helpers - typeof";
|
|
168
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ot = function(t) {
|
|
169
|
+
return typeof t;
|
|
170
|
+
} : ot = function(t) {
|
|
171
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
172
|
+
}, ot(e);
|
|
173
|
+
}
|
|
174
|
+
function Dr(e, t, o) {
|
|
175
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
176
|
+
value: o,
|
|
177
|
+
enumerable: !0,
|
|
178
|
+
configurable: !0,
|
|
179
|
+
writable: !0
|
|
180
|
+
}) : e[t] = o, e;
|
|
181
|
+
}
|
|
182
|
+
function ae() {
|
|
183
|
+
return ae = Object.assign || function(e) {
|
|
184
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
185
|
+
var o = arguments[t];
|
|
186
|
+
for (var r in o)
|
|
187
|
+
Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
|
|
188
|
+
}
|
|
189
|
+
return e;
|
|
190
|
+
}, ae.apply(this, arguments);
|
|
191
|
+
}
|
|
192
|
+
function Er(e, t) {
|
|
193
|
+
if (e == null) return {};
|
|
194
|
+
var o = {}, r = Object.keys(e), a, n;
|
|
195
|
+
for (n = 0; n < r.length; n++)
|
|
196
|
+
a = r[n], !(t.indexOf(a) >= 0) && (o[a] = e[a]);
|
|
197
|
+
return o;
|
|
198
|
+
}
|
|
199
|
+
function Pr(e, t) {
|
|
200
|
+
if (e == null) return {};
|
|
201
|
+
var o = Er(e, t), r, a;
|
|
202
|
+
if (Object.getOwnPropertySymbols) {
|
|
203
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
204
|
+
for (a = 0; a < n.length; a++)
|
|
205
|
+
r = n[a], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
206
|
+
}
|
|
207
|
+
return o;
|
|
208
|
+
}
|
|
209
|
+
var _r = "1.15.6";
|
|
210
|
+
function oe(e) {
|
|
211
|
+
if (typeof window < "u" && window.navigator)
|
|
212
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
213
|
+
}
|
|
214
|
+
var ie = oe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ze = oe(/Edge/i), qt = oe(/firefox/i), $e = oe(/safari/i) && !oe(/chrome/i) && !oe(/android/i), jt = oe(/iP(ad|od|hone)/i), yo = oe(/chrome/i) && oe(/android/i), Co = {
|
|
215
|
+
capture: !1,
|
|
216
|
+
passive: !1
|
|
217
|
+
};
|
|
218
|
+
function x(e, t, o) {
|
|
219
|
+
e.addEventListener(t, o, !ie && Co);
|
|
220
|
+
}
|
|
221
|
+
function C(e, t, o) {
|
|
222
|
+
e.removeEventListener(t, o, !ie && Co);
|
|
223
|
+
}
|
|
224
|
+
function ct(e, t) {
|
|
225
|
+
if (t) {
|
|
226
|
+
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
227
|
+
try {
|
|
228
|
+
if (e.matches)
|
|
229
|
+
return e.matches(t);
|
|
230
|
+
if (e.msMatchesSelector)
|
|
231
|
+
return e.msMatchesSelector(t);
|
|
232
|
+
if (e.webkitMatchesSelector)
|
|
233
|
+
return e.webkitMatchesSelector(t);
|
|
234
|
+
} catch {
|
|
235
|
+
return !1;
|
|
236
|
+
}
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function xo(e) {
|
|
241
|
+
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
242
|
+
}
|
|
243
|
+
function Y(e, t, o, r) {
|
|
244
|
+
if (e) {
|
|
245
|
+
o = o || document;
|
|
246
|
+
do {
|
|
247
|
+
if (t != null && (t[0] === ">" ? e.parentNode === o && ct(e, t) : ct(e, t)) || r && e === o)
|
|
248
|
+
return e;
|
|
249
|
+
if (e === o) break;
|
|
250
|
+
} while (e = xo(e));
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
var Jt = /\s+/g;
|
|
255
|
+
function $(e, t, o) {
|
|
256
|
+
if (e && t)
|
|
257
|
+
if (e.classList)
|
|
258
|
+
e.classList[o ? "add" : "remove"](t);
|
|
259
|
+
else {
|
|
260
|
+
var r = (" " + e.className + " ").replace(Jt, " ").replace(" " + t + " ", " ");
|
|
261
|
+
e.className = (r + (o ? " " + t : "")).replace(Jt, " ");
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function h(e, t, o) {
|
|
265
|
+
var r = e && e.style;
|
|
266
|
+
if (r) {
|
|
267
|
+
if (o === void 0)
|
|
268
|
+
return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (o = e.currentStyle), t === void 0 ? o : o[t];
|
|
269
|
+
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = o + (typeof o == "string" ? "" : "px");
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function Pe(e, t) {
|
|
273
|
+
var o = "";
|
|
274
|
+
if (typeof e == "string")
|
|
275
|
+
o = e;
|
|
276
|
+
else
|
|
277
|
+
do {
|
|
278
|
+
var r = h(e, "transform");
|
|
279
|
+
r && r !== "none" && (o = r + " " + o);
|
|
280
|
+
} while (!t && (e = e.parentNode));
|
|
281
|
+
var a = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
282
|
+
return a && new a(o);
|
|
283
|
+
}
|
|
284
|
+
function ko(e, t, o) {
|
|
285
|
+
if (e) {
|
|
286
|
+
var r = e.getElementsByTagName(t), a = 0, n = r.length;
|
|
287
|
+
if (o)
|
|
288
|
+
for (; a < n; a++)
|
|
289
|
+
o(r[a], a);
|
|
290
|
+
return r;
|
|
291
|
+
}
|
|
292
|
+
return [];
|
|
293
|
+
}
|
|
294
|
+
function J() {
|
|
295
|
+
var e = document.scrollingElement;
|
|
296
|
+
return e || document.documentElement;
|
|
297
|
+
}
|
|
298
|
+
function T(e, t, o, r, a) {
|
|
299
|
+
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
300
|
+
var n, l, i, s, c, d, u;
|
|
301
|
+
if (e !== window && e.parentNode && e !== J() ? (n = e.getBoundingClientRect(), l = n.top, i = n.left, s = n.bottom, c = n.right, d = n.height, u = n.width) : (l = 0, i = 0, s = window.innerHeight, c = window.innerWidth, d = window.innerHeight, u = window.innerWidth), (t || o) && e !== window && (a = a || e.parentNode, !ie))
|
|
302
|
+
do
|
|
303
|
+
if (a && a.getBoundingClientRect && (h(a, "transform") !== "none" || o && h(a, "position") !== "static")) {
|
|
304
|
+
var b = a.getBoundingClientRect();
|
|
305
|
+
l -= b.top + parseInt(h(a, "border-top-width")), i -= b.left + parseInt(h(a, "border-left-width")), s = l + n.height, c = i + n.width;
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
while (a = a.parentNode);
|
|
309
|
+
if (r && e !== window) {
|
|
310
|
+
var y = Pe(a || e), w = y && y.a, k = y && y.d;
|
|
311
|
+
y && (l /= k, i /= w, u /= w, d /= k, s = l + d, c = i + u);
|
|
312
|
+
}
|
|
313
|
+
return {
|
|
314
|
+
top: l,
|
|
315
|
+
left: i,
|
|
316
|
+
bottom: s,
|
|
317
|
+
right: c,
|
|
318
|
+
width: u,
|
|
319
|
+
height: d
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
function Kt(e, t, o) {
|
|
324
|
+
for (var r = pe(e, !0), a = T(e)[t]; r; ) {
|
|
325
|
+
var n = T(r)[o], l = void 0;
|
|
326
|
+
if (l = a >= n, !l) return r;
|
|
327
|
+
if (r === J()) break;
|
|
328
|
+
r = pe(r, !1);
|
|
329
|
+
}
|
|
330
|
+
return !1;
|
|
331
|
+
}
|
|
332
|
+
function _e(e, t, o, r) {
|
|
333
|
+
for (var a = 0, n = 0, l = e.children; n < l.length; ) {
|
|
334
|
+
if (l[n].style.display !== "none" && l[n] !== f.ghost && (r || l[n] !== f.dragged) && Y(l[n], o.draggable, e, !1)) {
|
|
335
|
+
if (a === t)
|
|
336
|
+
return l[n];
|
|
337
|
+
a++;
|
|
338
|
+
}
|
|
339
|
+
n++;
|
|
340
|
+
}
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
343
|
+
function Wt(e, t) {
|
|
344
|
+
for (var o = e.lastElementChild; o && (o === f.ghost || h(o, "display") === "none" || t && !ct(o, t)); )
|
|
345
|
+
o = o.previousElementSibling;
|
|
346
|
+
return o || null;
|
|
347
|
+
}
|
|
348
|
+
function U(e, t) {
|
|
349
|
+
var o = 0;
|
|
350
|
+
if (!e || !e.parentNode)
|
|
351
|
+
return -1;
|
|
352
|
+
for (; e = e.previousElementSibling; )
|
|
353
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== f.clone && (!t || ct(e, t)) && o++;
|
|
354
|
+
return o;
|
|
355
|
+
}
|
|
356
|
+
function eo(e) {
|
|
357
|
+
var t = 0, o = 0, r = J();
|
|
358
|
+
if (e)
|
|
359
|
+
do {
|
|
360
|
+
var a = Pe(e), n = a.a, l = a.d;
|
|
361
|
+
t += e.scrollLeft * n, o += e.scrollTop * l;
|
|
362
|
+
} while (e !== r && (e = e.parentNode));
|
|
363
|
+
return [t, o];
|
|
364
|
+
}
|
|
365
|
+
function Tr(e, t) {
|
|
366
|
+
for (var o in e)
|
|
367
|
+
if (e.hasOwnProperty(o)) {
|
|
368
|
+
for (var r in t)
|
|
369
|
+
if (t.hasOwnProperty(r) && t[r] === e[o][r]) return Number(o);
|
|
370
|
+
}
|
|
371
|
+
return -1;
|
|
372
|
+
}
|
|
373
|
+
function pe(e, t) {
|
|
374
|
+
if (!e || !e.getBoundingClientRect) return J();
|
|
375
|
+
var o = e, r = !1;
|
|
376
|
+
do
|
|
377
|
+
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
378
|
+
var a = h(o);
|
|
379
|
+
if (o.clientWidth < o.scrollWidth && (a.overflowX == "auto" || a.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (a.overflowY == "auto" || a.overflowY == "scroll")) {
|
|
380
|
+
if (!o.getBoundingClientRect || o === document.body) return J();
|
|
381
|
+
if (r || t) return o;
|
|
382
|
+
r = !0;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
while (o = o.parentNode);
|
|
386
|
+
return J();
|
|
387
|
+
}
|
|
388
|
+
function Mr(e, t) {
|
|
389
|
+
if (e && t)
|
|
390
|
+
for (var o in t)
|
|
391
|
+
t.hasOwnProperty(o) && (e[o] = t[o]);
|
|
392
|
+
return e;
|
|
393
|
+
}
|
|
394
|
+
function xt(e, t) {
|
|
395
|
+
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);
|
|
396
|
+
}
|
|
397
|
+
var Ge;
|
|
398
|
+
function So(e, t) {
|
|
399
|
+
return function() {
|
|
400
|
+
if (!Ge) {
|
|
401
|
+
var o = arguments, r = this;
|
|
402
|
+
o.length === 1 ? e.call(r, o[0]) : e.apply(r, o), Ge = setTimeout(function() {
|
|
403
|
+
Ge = void 0;
|
|
404
|
+
}, t);
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
function zr() {
|
|
409
|
+
clearTimeout(Ge), Ge = void 0;
|
|
410
|
+
}
|
|
411
|
+
function Bo(e, t, o) {
|
|
412
|
+
e.scrollLeft += t, e.scrollTop += o;
|
|
413
|
+
}
|
|
414
|
+
function Do(e) {
|
|
415
|
+
var t = window.Polymer, o = window.jQuery || window.Zepto;
|
|
416
|
+
return t && t.dom ? t.dom(e).cloneNode(!0) : o ? o(e).clone(!0)[0] : e.cloneNode(!0);
|
|
417
|
+
}
|
|
418
|
+
function Eo(e, t, o) {
|
|
419
|
+
var r = {};
|
|
420
|
+
return Array.from(e.children).forEach(function(a) {
|
|
421
|
+
var n, l, i, s;
|
|
422
|
+
if (!(!Y(a, t.draggable, e, !1) || a.animated || a === o)) {
|
|
423
|
+
var c = T(a);
|
|
424
|
+
r.left = Math.min((n = r.left) !== null && n !== void 0 ? n : 1 / 0, c.left), r.top = Math.min((l = r.top) !== null && l !== void 0 ? l : 1 / 0, c.top), r.right = Math.max((i = r.right) !== null && i !== void 0 ? i : -1 / 0, c.right), r.bottom = Math.max((s = r.bottom) !== null && s !== void 0 ? s : -1 / 0, c.bottom);
|
|
425
|
+
}
|
|
426
|
+
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
427
|
+
}
|
|
428
|
+
var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
429
|
+
function Ar() {
|
|
430
|
+
var e = [], t;
|
|
431
|
+
return {
|
|
432
|
+
captureAnimationState: function() {
|
|
433
|
+
if (e = [], !!this.options.animation) {
|
|
434
|
+
var r = [].slice.call(this.el.children);
|
|
435
|
+
r.forEach(function(a) {
|
|
436
|
+
if (!(h(a, "display") === "none" || a === f.ghost)) {
|
|
437
|
+
e.push({
|
|
438
|
+
target: a,
|
|
439
|
+
rect: T(a)
|
|
440
|
+
});
|
|
441
|
+
var n = K({}, e[e.length - 1].rect);
|
|
442
|
+
if (a.thisAnimationDuration) {
|
|
443
|
+
var l = Pe(a, !0);
|
|
444
|
+
l && (n.top -= l.f, n.left -= l.e);
|
|
445
|
+
}
|
|
446
|
+
a.fromRect = n;
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
addAnimationState: function(r) {
|
|
452
|
+
e.push(r);
|
|
453
|
+
},
|
|
454
|
+
removeAnimationState: function(r) {
|
|
455
|
+
e.splice(Tr(e, {
|
|
456
|
+
target: r
|
|
457
|
+
}), 1);
|
|
458
|
+
},
|
|
459
|
+
animateAll: function(r) {
|
|
460
|
+
var a = this;
|
|
461
|
+
if (!this.options.animation) {
|
|
462
|
+
clearTimeout(t), typeof r == "function" && r();
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
var n = !1, l = 0;
|
|
466
|
+
e.forEach(function(i) {
|
|
467
|
+
var s = 0, c = i.target, d = c.fromRect, u = T(c), b = c.prevFromRect, y = c.prevToRect, w = i.rect, k = Pe(c, !0);
|
|
468
|
+
k && (u.top -= k.f, u.left -= k.e), c.toRect = u, c.thisAnimationDuration && xt(b, u) && !xt(d, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
469
|
+
(w.top - u.top) / (w.left - u.left) === (d.top - u.top) / (d.left - u.left) && (s = Fr(w, b, y, a.options)), xt(u, d) || (c.prevFromRect = d, c.prevToRect = u, s || (s = a.options.animation), a.animate(c, w, u, s)), s && (n = !0, l = Math.max(l, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
470
|
+
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
471
|
+
}, s), c.thisAnimationDuration = s);
|
|
472
|
+
}), clearTimeout(t), n ? t = setTimeout(function() {
|
|
473
|
+
typeof r == "function" && r();
|
|
474
|
+
}, l) : typeof r == "function" && r(), e = [];
|
|
475
|
+
},
|
|
476
|
+
animate: function(r, a, n, l) {
|
|
477
|
+
if (l) {
|
|
478
|
+
h(r, "transition", ""), h(r, "transform", "");
|
|
479
|
+
var i = Pe(this.el), s = i && i.a, c = i && i.d, d = (a.left - n.left) / (s || 1), u = (a.top - n.top) / (c || 1);
|
|
480
|
+
r.animatingX = !!d, r.animatingY = !!u, h(r, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy = Ir(r), h(r, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(r, "transform", "translate3d(0,0,0)"), typeof r.animated == "number" && clearTimeout(r.animated), r.animated = setTimeout(function() {
|
|
481
|
+
h(r, "transition", ""), h(r, "transform", ""), r.animated = !1, r.animatingX = !1, r.animatingY = !1;
|
|
482
|
+
}, l);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
function Ir(e) {
|
|
488
|
+
return e.offsetWidth;
|
|
489
|
+
}
|
|
490
|
+
function Fr(e, t, o, r) {
|
|
491
|
+
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) * r.animation;
|
|
492
|
+
}
|
|
493
|
+
var xe = [], kt = {
|
|
494
|
+
initializeByDefault: !0
|
|
495
|
+
}, Qe = {
|
|
496
|
+
mount: function(t) {
|
|
497
|
+
for (var o in kt)
|
|
498
|
+
kt.hasOwnProperty(o) && !(o in t) && (t[o] = kt[o]);
|
|
499
|
+
xe.forEach(function(r) {
|
|
500
|
+
if (r.pluginName === t.pluginName)
|
|
501
|
+
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
502
|
+
}), xe.push(t);
|
|
503
|
+
},
|
|
504
|
+
pluginEvent: function(t, o, r) {
|
|
505
|
+
var a = this;
|
|
506
|
+
this.eventCanceled = !1, r.cancel = function() {
|
|
507
|
+
a.eventCanceled = !0;
|
|
508
|
+
};
|
|
509
|
+
var n = t + "Global";
|
|
510
|
+
xe.forEach(function(l) {
|
|
511
|
+
o[l.pluginName] && (o[l.pluginName][n] && o[l.pluginName][n](K({
|
|
512
|
+
sortable: o
|
|
513
|
+
}, r)), o.options[l.pluginName] && o[l.pluginName][t] && o[l.pluginName][t](K({
|
|
514
|
+
sortable: o
|
|
515
|
+
}, r)));
|
|
516
|
+
});
|
|
517
|
+
},
|
|
518
|
+
initializePlugins: function(t, o, r, a) {
|
|
519
|
+
xe.forEach(function(i) {
|
|
520
|
+
var s = i.pluginName;
|
|
521
|
+
if (!(!t.options[s] && !i.initializeByDefault)) {
|
|
522
|
+
var c = new i(t, o, t.options);
|
|
523
|
+
c.sortable = t, c.options = t.options, t[s] = c, ae(r, c.defaults);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
for (var n in t.options)
|
|
527
|
+
if (t.options.hasOwnProperty(n)) {
|
|
528
|
+
var l = this.modifyOption(t, n, t.options[n]);
|
|
529
|
+
typeof l < "u" && (t.options[n] = l);
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
getEventProperties: function(t, o) {
|
|
533
|
+
var r = {};
|
|
534
|
+
return xe.forEach(function(a) {
|
|
535
|
+
typeof a.eventProperties == "function" && ae(r, a.eventProperties.call(o[a.pluginName], t));
|
|
536
|
+
}), r;
|
|
537
|
+
},
|
|
538
|
+
modifyOption: function(t, o, r) {
|
|
539
|
+
var a;
|
|
540
|
+
return xe.forEach(function(n) {
|
|
541
|
+
t[n.pluginName] && n.optionListeners && typeof n.optionListeners[o] == "function" && (a = n.optionListeners[o].call(t[n.pluginName], r));
|
|
542
|
+
}), a;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
function Or(e) {
|
|
546
|
+
var t = e.sortable, o = e.rootEl, r = e.name, a = e.targetEl, n = e.cloneEl, l = e.toEl, i = e.fromEl, s = e.oldIndex, c = e.newIndex, d = e.oldDraggableIndex, u = e.newDraggableIndex, b = e.originalEvent, y = e.putSortable, w = e.extraEventProperties;
|
|
547
|
+
if (t = t || o && o[H], !!t) {
|
|
548
|
+
var k, m = t.options, S = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
549
|
+
window.CustomEvent && !ie && !Ze ? k = new CustomEvent(r, {
|
|
550
|
+
bubbles: !0,
|
|
551
|
+
cancelable: !0
|
|
552
|
+
}) : (k = document.createEvent("Event"), k.initEvent(r, !0, !0)), k.to = l || o, k.from = i || o, k.item = a || o, k.clone = n, k.oldIndex = s, k.newIndex = c, k.oldDraggableIndex = d, k.newDraggableIndex = u, k.originalEvent = b, k.pullMode = y ? y.lastPutMode : void 0;
|
|
553
|
+
var B = K(K({}, w), Qe.getEventProperties(r, t));
|
|
554
|
+
for (var F in B)
|
|
555
|
+
k[F] = B[F];
|
|
556
|
+
o && o.dispatchEvent(k), m[S] && m[S].call(t, k);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
var Rr = ["evt"], N = function(t, o) {
|
|
560
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = r.evt, n = Pr(r, Rr);
|
|
561
|
+
Qe.pluginEvent.bind(f)(t, o, K({
|
|
562
|
+
dragEl: g,
|
|
563
|
+
parentEl: P,
|
|
564
|
+
ghostEl: v,
|
|
565
|
+
rootEl: D,
|
|
566
|
+
nextEl: Ce,
|
|
567
|
+
lastDownEl: rt,
|
|
568
|
+
cloneEl: E,
|
|
569
|
+
cloneHidden: ge,
|
|
570
|
+
dragStarted: Re,
|
|
571
|
+
putSortable: z,
|
|
572
|
+
activeSortable: f.active,
|
|
573
|
+
originalEvent: a,
|
|
574
|
+
oldIndex: De,
|
|
575
|
+
oldDraggableIndex: Ve,
|
|
576
|
+
newIndex: G,
|
|
577
|
+
newDraggableIndex: ce,
|
|
578
|
+
hideGhostForTarget: Mo,
|
|
579
|
+
unhideGhostForTarget: zo,
|
|
580
|
+
cloneNowHidden: function() {
|
|
581
|
+
ge = !0;
|
|
582
|
+
},
|
|
583
|
+
cloneNowShown: function() {
|
|
584
|
+
ge = !1;
|
|
585
|
+
},
|
|
586
|
+
dispatchSortableEvent: function(i) {
|
|
587
|
+
O({
|
|
588
|
+
sortable: o,
|
|
589
|
+
name: i,
|
|
590
|
+
originalEvent: a
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
}, n));
|
|
594
|
+
};
|
|
595
|
+
function O(e) {
|
|
596
|
+
Or(K({
|
|
597
|
+
putSortable: z,
|
|
598
|
+
cloneEl: E,
|
|
599
|
+
targetEl: g,
|
|
600
|
+
rootEl: D,
|
|
601
|
+
oldIndex: De,
|
|
602
|
+
oldDraggableIndex: Ve,
|
|
603
|
+
newIndex: G,
|
|
604
|
+
newDraggableIndex: ce
|
|
605
|
+
}, e));
|
|
606
|
+
}
|
|
607
|
+
var g, P, v, D, Ce, rt, E, ge, De, G, Ve, ce, Je, z, Se = !1, dt = !1, gt = [], be, X, St, Bt, to, oo, Re, ke, je, We = !1, Ke = !1, at, I, Dt = [], Ot = !1, ut = [], bt = typeof document < "u", et = jt, ro = Ze || ie ? "cssFloat" : "float", Nr = bt && !yo && !jt && "draggable" in document.createElement("div"), Po = function() {
|
|
608
|
+
if (bt) {
|
|
609
|
+
if (ie)
|
|
610
|
+
return !1;
|
|
611
|
+
var e = document.createElement("x");
|
|
612
|
+
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
613
|
+
}
|
|
614
|
+
}(), _o = function(t, o) {
|
|
615
|
+
var r = h(t), a = parseInt(r.width) - parseInt(r.paddingLeft) - parseInt(r.paddingRight) - parseInt(r.borderLeftWidth) - parseInt(r.borderRightWidth), n = _e(t, 0, o), l = _e(t, 1, o), i = n && h(n), s = l && h(l), c = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + T(n).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(l).width;
|
|
616
|
+
if (r.display === "flex")
|
|
617
|
+
return r.flexDirection === "column" || r.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
618
|
+
if (r.display === "grid")
|
|
619
|
+
return r.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
620
|
+
if (n && i.float && i.float !== "none") {
|
|
621
|
+
var u = i.float === "left" ? "left" : "right";
|
|
622
|
+
return l && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
623
|
+
}
|
|
624
|
+
return n && (i.display === "block" || i.display === "flex" || i.display === "table" || i.display === "grid" || c >= a && r[ro] === "none" || l && r[ro] === "none" && c + d > a) ? "vertical" : "horizontal";
|
|
625
|
+
}, Hr = function(t, o, r) {
|
|
626
|
+
var a = r ? t.left : t.top, n = r ? t.right : t.bottom, l = r ? t.width : t.height, i = r ? o.left : o.top, s = r ? o.right : o.bottom, c = r ? o.width : o.height;
|
|
627
|
+
return a === i || n === s || a + l / 2 === i + c / 2;
|
|
628
|
+
}, Lr = function(t, o) {
|
|
629
|
+
var r;
|
|
630
|
+
return gt.some(function(a) {
|
|
631
|
+
var n = a[H].options.emptyInsertThreshold;
|
|
632
|
+
if (!(!n || Wt(a))) {
|
|
633
|
+
var l = T(a), i = t >= l.left - n && t <= l.right + n, s = o >= l.top - n && o <= l.bottom + n;
|
|
634
|
+
if (i && s)
|
|
635
|
+
return r = a;
|
|
636
|
+
}
|
|
637
|
+
}), r;
|
|
638
|
+
}, To = function(t) {
|
|
639
|
+
function o(n, l) {
|
|
640
|
+
return function(i, s, c, d) {
|
|
641
|
+
var u = i.options.group.name && s.options.group.name && i.options.group.name === s.options.group.name;
|
|
642
|
+
if (n == null && (l || u))
|
|
643
|
+
return !0;
|
|
644
|
+
if (n == null || n === !1)
|
|
645
|
+
return !1;
|
|
646
|
+
if (l && n === "clone")
|
|
647
|
+
return n;
|
|
648
|
+
if (typeof n == "function")
|
|
649
|
+
return o(n(i, s, c, d), l)(i, s, c, d);
|
|
650
|
+
var b = (l ? i : s).options.group.name;
|
|
651
|
+
return n === !0 || typeof n == "string" && n === b || n.join && n.indexOf(b) > -1;
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
var r = {}, a = t.group;
|
|
655
|
+
(!a || ot(a) != "object") && (a = {
|
|
656
|
+
name: a
|
|
657
|
+
}), r.name = a.name, r.checkPull = o(a.pull, !0), r.checkPut = o(a.put), r.revertClone = a.revertClone, t.group = r;
|
|
658
|
+
}, Mo = function() {
|
|
659
|
+
!Po && v && h(v, "display", "none");
|
|
660
|
+
}, zo = function() {
|
|
661
|
+
!Po && v && h(v, "display", "");
|
|
662
|
+
};
|
|
663
|
+
bt && !yo && document.addEventListener("click", function(e) {
|
|
664
|
+
if (dt)
|
|
665
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), dt = !1, !1;
|
|
666
|
+
}, !0);
|
|
667
|
+
var we = function(t) {
|
|
668
|
+
if (g) {
|
|
669
|
+
t = t.touches ? t.touches[0] : t;
|
|
670
|
+
var o = Lr(t.clientX, t.clientY);
|
|
671
|
+
if (o) {
|
|
672
|
+
var r = {};
|
|
673
|
+
for (var a in t)
|
|
674
|
+
t.hasOwnProperty(a) && (r[a] = t[a]);
|
|
675
|
+
r.target = r.rootEl = o, r.preventDefault = void 0, r.stopPropagation = void 0, o[H]._onDragOver(r);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}, $r = function(t) {
|
|
679
|
+
g && g.parentNode[H]._isOutsideThisEl(t.target);
|
|
680
|
+
};
|
|
681
|
+
function f(e, t) {
|
|
682
|
+
if (!(e && e.nodeType && e.nodeType === 1))
|
|
683
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
684
|
+
this.el = e, this.options = t = ae({}, t), e[H] = this;
|
|
685
|
+
var o = {
|
|
686
|
+
group: null,
|
|
687
|
+
sort: !0,
|
|
688
|
+
disabled: !1,
|
|
689
|
+
store: null,
|
|
690
|
+
handle: null,
|
|
691
|
+
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
692
|
+
swapThreshold: 1,
|
|
693
|
+
// percentage; 0 <= x <= 1
|
|
694
|
+
invertSwap: !1,
|
|
695
|
+
// invert always
|
|
696
|
+
invertedSwapThreshold: null,
|
|
697
|
+
// will be set to same as swapThreshold if default
|
|
698
|
+
removeCloneOnHide: !0,
|
|
699
|
+
direction: function() {
|
|
700
|
+
return _o(e, this.options);
|
|
701
|
+
},
|
|
702
|
+
ghostClass: "sortable-ghost",
|
|
703
|
+
chosenClass: "sortable-chosen",
|
|
704
|
+
dragClass: "sortable-drag",
|
|
705
|
+
ignore: "a, img",
|
|
706
|
+
filter: null,
|
|
707
|
+
preventOnFilter: !0,
|
|
708
|
+
animation: 0,
|
|
709
|
+
easing: null,
|
|
710
|
+
setData: function(l, i) {
|
|
711
|
+
l.setData("Text", i.textContent);
|
|
712
|
+
},
|
|
713
|
+
dropBubble: !1,
|
|
714
|
+
dragoverBubble: !1,
|
|
715
|
+
dataIdAttr: "data-id",
|
|
716
|
+
delay: 0,
|
|
717
|
+
delayOnTouchOnly: !1,
|
|
718
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
719
|
+
forceFallback: !1,
|
|
720
|
+
fallbackClass: "sortable-fallback",
|
|
721
|
+
fallbackOnBody: !1,
|
|
722
|
+
fallbackTolerance: 0,
|
|
723
|
+
fallbackOffset: {
|
|
724
|
+
x: 0,
|
|
725
|
+
y: 0
|
|
726
|
+
},
|
|
727
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
728
|
+
supportPointer: f.supportPointer !== !1 && "PointerEvent" in window && (!$e || jt),
|
|
729
|
+
emptyInsertThreshold: 5
|
|
730
|
+
};
|
|
731
|
+
Qe.initializePlugins(this, e, o);
|
|
732
|
+
for (var r in o)
|
|
733
|
+
!(r in t) && (t[r] = o[r]);
|
|
734
|
+
To(t);
|
|
735
|
+
for (var a in this)
|
|
736
|
+
a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
|
|
737
|
+
this.nativeDraggable = t.forceFallback ? !1 : Nr, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? x(e, "pointerdown", this._onTapStart) : (x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart)), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), gt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ae(this, Ar());
|
|
738
|
+
}
|
|
739
|
+
f.prototype = /** @lends Sortable.prototype */
|
|
740
|
+
{
|
|
741
|
+
constructor: f,
|
|
742
|
+
_isOutsideThisEl: function(t) {
|
|
743
|
+
!this.el.contains(t) && t !== this.el && (ke = null);
|
|
744
|
+
},
|
|
745
|
+
_getDirection: function(t, o) {
|
|
746
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, o, g) : this.options.direction;
|
|
747
|
+
},
|
|
748
|
+
_onTapStart: function(t) {
|
|
749
|
+
if (t.cancelable) {
|
|
750
|
+
var o = this, r = this.el, a = this.options, n = a.preventOnFilter, l = t.type, i = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (i || t).target, c = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, d = a.filter;
|
|
751
|
+
if (Zr(r), !g && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || a.disabled) && !c.isContentEditable && !(!this.nativeDraggable && $e && s && s.tagName.toUpperCase() === "SELECT") && (s = Y(s, a.draggable, r, !1), !(s && s.animated) && rt !== s)) {
|
|
752
|
+
if (De = U(s), Ve = U(s, a.draggable), typeof d == "function") {
|
|
753
|
+
if (d.call(this, t, s, this)) {
|
|
754
|
+
O({
|
|
755
|
+
sortable: o,
|
|
756
|
+
rootEl: c,
|
|
757
|
+
name: "filter",
|
|
758
|
+
targetEl: s,
|
|
759
|
+
toEl: r,
|
|
760
|
+
fromEl: r
|
|
761
|
+
}), N("filter", o, {
|
|
762
|
+
evt: t
|
|
763
|
+
}), n && t.preventDefault();
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
} else if (d && (d = d.split(",").some(function(u) {
|
|
767
|
+
if (u = Y(c, u.trim(), r, !1), u)
|
|
768
|
+
return O({
|
|
769
|
+
sortable: o,
|
|
770
|
+
rootEl: u,
|
|
771
|
+
name: "filter",
|
|
772
|
+
targetEl: s,
|
|
773
|
+
fromEl: r,
|
|
774
|
+
toEl: r
|
|
775
|
+
}), N("filter", o, {
|
|
776
|
+
evt: t
|
|
777
|
+
}), !0;
|
|
778
|
+
}), d)) {
|
|
779
|
+
n && t.preventDefault();
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
a.handle && !Y(c, a.handle, r, !1) || this._prepareDragStart(t, i, s);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
_prepareDragStart: function(t, o, r) {
|
|
787
|
+
var a = this, n = a.el, l = a.options, i = n.ownerDocument, s;
|
|
788
|
+
if (r && !g && r.parentNode === n) {
|
|
789
|
+
var c = T(r);
|
|
790
|
+
if (D = n, g = r, P = g.parentNode, Ce = g.nextSibling, rt = r, Je = l.group, f.dragged = g, be = {
|
|
791
|
+
target: g,
|
|
792
|
+
clientX: (o || t).clientX,
|
|
793
|
+
clientY: (o || t).clientY
|
|
794
|
+
}, to = be.clientX - c.left, oo = be.clientY - c.top, this._lastX = (o || t).clientX, this._lastY = (o || t).clientY, g.style["will-change"] = "all", s = function() {
|
|
795
|
+
if (N("delayEnded", a, {
|
|
796
|
+
evt: t
|
|
797
|
+
}), f.eventCanceled) {
|
|
798
|
+
a._onDrop();
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
a._disableDelayedDragEvents(), !qt && a.nativeDraggable && (g.draggable = !0), a._triggerDragStart(t, o), O({
|
|
802
|
+
sortable: a,
|
|
803
|
+
name: "choose",
|
|
804
|
+
originalEvent: t
|
|
805
|
+
}), $(g, l.chosenClass, !0);
|
|
806
|
+
}, l.ignore.split(",").forEach(function(d) {
|
|
807
|
+
ko(g, d.trim(), Et);
|
|
808
|
+
}), x(i, "dragover", we), x(i, "mousemove", we), x(i, "touchmove", we), l.supportPointer ? (x(i, "pointerup", a._onDrop), !this.nativeDraggable && x(i, "pointercancel", a._onDrop)) : (x(i, "mouseup", a._onDrop), x(i, "touchend", a._onDrop), x(i, "touchcancel", a._onDrop)), qt && this.nativeDraggable && (this.options.touchStartThreshold = 4, g.draggable = !0), N("delayStart", this, {
|
|
809
|
+
evt: t
|
|
810
|
+
}), l.delay && (!l.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ze || ie))) {
|
|
811
|
+
if (f.eventCanceled) {
|
|
812
|
+
this._onDrop();
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
l.supportPointer ? (x(i, "pointerup", a._disableDelayedDrag), x(i, "pointercancel", a._disableDelayedDrag)) : (x(i, "mouseup", a._disableDelayedDrag), x(i, "touchend", a._disableDelayedDrag), x(i, "touchcancel", a._disableDelayedDrag)), x(i, "mousemove", a._delayedDragTouchMoveHandler), x(i, "touchmove", a._delayedDragTouchMoveHandler), l.supportPointer && x(i, "pointermove", a._delayedDragTouchMoveHandler), a._dragStartTimer = setTimeout(s, l.delay);
|
|
816
|
+
} else
|
|
817
|
+
s();
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
_delayedDragTouchMoveHandler: function(t) {
|
|
821
|
+
var o = t.touches ? t.touches[0] : t;
|
|
822
|
+
Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
823
|
+
},
|
|
824
|
+
_disableDelayedDrag: function() {
|
|
825
|
+
g && Et(g), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
826
|
+
},
|
|
827
|
+
_disableDelayedDragEvents: function() {
|
|
828
|
+
var t = this.el.ownerDocument;
|
|
829
|
+
C(t, "mouseup", this._disableDelayedDrag), C(t, "touchend", this._disableDelayedDrag), C(t, "touchcancel", this._disableDelayedDrag), C(t, "pointerup", this._disableDelayedDrag), C(t, "pointercancel", this._disableDelayedDrag), C(t, "mousemove", this._delayedDragTouchMoveHandler), C(t, "touchmove", this._delayedDragTouchMoveHandler), C(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
830
|
+
},
|
|
831
|
+
_triggerDragStart: function(t, o) {
|
|
832
|
+
o = o || t.pointerType == "touch" && t, !this.nativeDraggable || o ? this.options.supportPointer ? x(document, "pointermove", this._onTouchMove) : o ? x(document, "touchmove", this._onTouchMove) : x(document, "mousemove", this._onTouchMove) : (x(g, "dragend", this), x(D, "dragstart", this._onDragStart));
|
|
833
|
+
try {
|
|
834
|
+
document.selection ? nt(function() {
|
|
835
|
+
document.selection.empty();
|
|
836
|
+
}) : window.getSelection().removeAllRanges();
|
|
837
|
+
} catch {
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
_dragStarted: function(t, o) {
|
|
841
|
+
if (Se = !1, D && g) {
|
|
842
|
+
N("dragStarted", this, {
|
|
843
|
+
evt: o
|
|
844
|
+
}), this.nativeDraggable && x(document, "dragover", $r);
|
|
845
|
+
var r = this.options;
|
|
846
|
+
!t && $(g, r.dragClass, !1), $(g, r.ghostClass, !0), f.active = this, t && this._appendGhost(), O({
|
|
847
|
+
sortable: this,
|
|
848
|
+
name: "start",
|
|
849
|
+
originalEvent: o
|
|
850
|
+
});
|
|
851
|
+
} else
|
|
852
|
+
this._nulling();
|
|
853
|
+
},
|
|
854
|
+
_emulateDragOver: function() {
|
|
855
|
+
if (X) {
|
|
856
|
+
this._lastX = X.clientX, this._lastY = X.clientY, Mo();
|
|
857
|
+
for (var t = document.elementFromPoint(X.clientX, X.clientY), o = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(X.clientX, X.clientY), t !== o); )
|
|
858
|
+
o = t;
|
|
859
|
+
if (g.parentNode[H]._isOutsideThisEl(t), o)
|
|
860
|
+
do {
|
|
861
|
+
if (o[H]) {
|
|
862
|
+
var r = void 0;
|
|
863
|
+
if (r = o[H]._onDragOver({
|
|
864
|
+
clientX: X.clientX,
|
|
865
|
+
clientY: X.clientY,
|
|
866
|
+
target: t,
|
|
867
|
+
rootEl: o
|
|
868
|
+
}), r && !this.options.dragoverBubble)
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
t = o;
|
|
872
|
+
} while (o = xo(o));
|
|
873
|
+
zo();
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
_onTouchMove: function(t) {
|
|
877
|
+
if (be) {
|
|
878
|
+
var o = this.options, r = o.fallbackTolerance, a = o.fallbackOffset, n = t.touches ? t.touches[0] : t, l = v && Pe(v, !0), i = v && l && l.a, s = v && l && l.d, c = et && I && eo(I), d = (n.clientX - be.clientX + a.x) / (i || 1) + (c ? c[0] - Dt[0] : 0) / (i || 1), u = (n.clientY - be.clientY + a.y) / (s || 1) + (c ? c[1] - Dt[1] : 0) / (s || 1);
|
|
879
|
+
if (!f.active && !Se) {
|
|
880
|
+
if (r && Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) < r)
|
|
881
|
+
return;
|
|
882
|
+
this._onDragStart(t, !0);
|
|
883
|
+
}
|
|
884
|
+
if (v) {
|
|
885
|
+
l ? (l.e += d - (St || 0), l.f += u - (Bt || 0)) : l = {
|
|
886
|
+
a: 1,
|
|
887
|
+
b: 0,
|
|
888
|
+
c: 0,
|
|
889
|
+
d: 1,
|
|
890
|
+
e: d,
|
|
891
|
+
f: u
|
|
892
|
+
};
|
|
893
|
+
var b = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
894
|
+
h(v, "webkitTransform", b), h(v, "mozTransform", b), h(v, "msTransform", b), h(v, "transform", b), St = d, Bt = u, X = n;
|
|
895
|
+
}
|
|
896
|
+
t.cancelable && t.preventDefault();
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
_appendGhost: function() {
|
|
900
|
+
if (!v) {
|
|
901
|
+
var t = this.options.fallbackOnBody ? document.body : D, o = T(g, !0, et, !0, t), r = this.options;
|
|
902
|
+
if (et) {
|
|
903
|
+
for (I = t; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
|
|
904
|
+
I = I.parentNode;
|
|
905
|
+
I !== document.body && I !== document.documentElement ? (I === document && (I = J()), o.top += I.scrollTop, o.left += I.scrollLeft) : I = J(), Dt = eo(I);
|
|
906
|
+
}
|
|
907
|
+
v = g.cloneNode(!0), $(v, r.ghostClass, !1), $(v, r.fallbackClass, !0), $(v, r.dragClass, !0), h(v, "transition", ""), h(v, "transform", ""), h(v, "box-sizing", "border-box"), h(v, "margin", 0), h(v, "top", o.top), h(v, "left", o.left), h(v, "width", o.width), h(v, "height", o.height), h(v, "opacity", "0.8"), h(v, "position", et ? "absolute" : "fixed"), h(v, "zIndex", "100000"), h(v, "pointerEvents", "none"), f.ghost = v, t.appendChild(v), h(v, "transform-origin", to / parseInt(v.style.width) * 100 + "% " + oo / parseInt(v.style.height) * 100 + "%");
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
_onDragStart: function(t, o) {
|
|
911
|
+
var r = this, a = t.dataTransfer, n = r.options;
|
|
912
|
+
if (N("dragStart", this, {
|
|
913
|
+
evt: t
|
|
914
|
+
}), f.eventCanceled) {
|
|
915
|
+
this._onDrop();
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
N("setupClone", this), f.eventCanceled || (E = Do(g), E.removeAttribute("id"), E.draggable = !1, E.style["will-change"] = "", this._hideClone(), $(E, this.options.chosenClass, !1), f.clone = E), r.cloneId = nt(function() {
|
|
919
|
+
N("clone", r), !f.eventCanceled && (r.options.removeCloneOnHide || D.insertBefore(E, g), r._hideClone(), O({
|
|
920
|
+
sortable: r,
|
|
921
|
+
name: "clone"
|
|
922
|
+
}));
|
|
923
|
+
}), !o && $(g, n.dragClass, !0), o ? (dt = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (C(document, "mouseup", r._onDrop), C(document, "touchend", r._onDrop), C(document, "touchcancel", r._onDrop), a && (a.effectAllowed = "move", n.setData && n.setData.call(r, a, g)), x(document, "drop", r), h(g, "transform", "translateZ(0)")), Se = !0, r._dragStartId = nt(r._dragStarted.bind(r, o, t)), x(document, "selectstart", r), Re = !0, window.getSelection().removeAllRanges(), $e && h(document.body, "user-select", "none");
|
|
924
|
+
},
|
|
925
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
926
|
+
_onDragOver: function(t) {
|
|
927
|
+
var o = this.el, r = t.target, a, n, l, i = this.options, s = i.group, c = f.active, d = Je === s, u = i.sort, b = z || c, y, w = this, k = !1;
|
|
928
|
+
if (Ot) return;
|
|
929
|
+
function m(Fe, qo) {
|
|
930
|
+
N(Fe, w, K({
|
|
931
|
+
evt: t,
|
|
932
|
+
isOwner: d,
|
|
933
|
+
axis: y ? "vertical" : "horizontal",
|
|
934
|
+
revert: l,
|
|
935
|
+
dragRect: a,
|
|
936
|
+
targetRect: n,
|
|
937
|
+
canSort: u,
|
|
938
|
+
fromSortable: b,
|
|
939
|
+
target: r,
|
|
940
|
+
completed: B,
|
|
941
|
+
onMove: function(Zt, Jo) {
|
|
942
|
+
return tt(D, o, g, a, Zt, T(Zt), t, Jo);
|
|
943
|
+
},
|
|
944
|
+
changed: F
|
|
945
|
+
}, qo));
|
|
946
|
+
}
|
|
947
|
+
function S() {
|
|
948
|
+
m("dragOverAnimationCapture"), w.captureAnimationState(), w !== b && b.captureAnimationState();
|
|
949
|
+
}
|
|
950
|
+
function B(Fe) {
|
|
951
|
+
return m("dragOverCompleted", {
|
|
952
|
+
insertion: Fe
|
|
953
|
+
}), Fe && (d ? c._hideClone() : c._showClone(w), w !== b && ($(g, z ? z.options.ghostClass : c.options.ghostClass, !1), $(g, i.ghostClass, !0)), z !== w && w !== f.active ? z = w : w === f.active && z && (z = null), b === w && (w._ignoreWhileAnimating = r), w.animateAll(function() {
|
|
954
|
+
m("dragOverAnimationComplete"), w._ignoreWhileAnimating = null;
|
|
955
|
+
}), w !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (r === g && !g.animated || r === o && !r.animated) && (ke = null), !i.dragoverBubble && !t.rootEl && r !== document && (g.parentNode[H]._isOutsideThisEl(t.target), !Fe && we(t)), !i.dragoverBubble && t.stopPropagation && t.stopPropagation(), k = !0;
|
|
956
|
+
}
|
|
957
|
+
function F() {
|
|
958
|
+
G = U(g), ce = U(g, i.draggable), O({
|
|
959
|
+
sortable: w,
|
|
960
|
+
name: "change",
|
|
961
|
+
toEl: o,
|
|
962
|
+
newIndex: G,
|
|
963
|
+
newDraggableIndex: ce,
|
|
964
|
+
originalEvent: t
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), r = Y(r, i.draggable, o, !0), m("dragOver"), f.eventCanceled) return k;
|
|
968
|
+
if (g.contains(t.target) || r.animated && r.animatingX && r.animatingY || w._ignoreWhileAnimating === r)
|
|
969
|
+
return B(!1);
|
|
970
|
+
if (dt = !1, c && !i.disabled && (d ? u || (l = P !== D) : z === this || (this.lastPutMode = Je.checkPull(this, c, g, t)) && s.checkPut(this, c, g, t))) {
|
|
971
|
+
if (y = this._getDirection(t, r) === "vertical", a = T(g), m("dragOverValid"), f.eventCanceled) return k;
|
|
972
|
+
if (l)
|
|
973
|
+
return P = D, S(), this._hideClone(), m("revert"), f.eventCanceled || (Ce ? D.insertBefore(g, Ce) : D.appendChild(g)), B(!0);
|
|
974
|
+
var A = Wt(o, i.draggable);
|
|
975
|
+
if (!A || Wr(t, y, this) && !A.animated) {
|
|
976
|
+
if (A === g)
|
|
977
|
+
return B(!1);
|
|
978
|
+
if (A && o === t.target && (r = A), r && (n = T(r)), tt(D, o, g, a, r, n, t, !!r) !== !1)
|
|
979
|
+
return S(), A && A.nextSibling ? o.insertBefore(g, A.nextSibling) : o.appendChild(g), P = o, F(), B(!0);
|
|
980
|
+
} else if (A && jr(t, y, this)) {
|
|
981
|
+
var fe = _e(o, 0, i, !0);
|
|
982
|
+
if (fe === g)
|
|
983
|
+
return B(!1);
|
|
984
|
+
if (r = fe, n = T(r), tt(D, o, g, a, r, n, t, !1) !== !1)
|
|
985
|
+
return S(), o.insertBefore(g, fe), P = o, F(), B(!0);
|
|
986
|
+
} else if (r.parentNode === o) {
|
|
987
|
+
n = T(r);
|
|
988
|
+
var Q = 0, ve, Me = g.parentNode !== o, L = !Hr(g.animated && g.toRect || a, r.animated && r.toRect || n, y), ze = y ? "top" : "left", le = Kt(r, "top", "top") || Kt(g, "top", "top"), Ae = le ? le.scrollTop : void 0;
|
|
989
|
+
ke !== r && (ve = n[ze], We = !1, Ke = !L && i.invertSwap || Me), Q = Ur(t, r, n, y, L ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, Ke, ke === r);
|
|
990
|
+
var te;
|
|
991
|
+
if (Q !== 0) {
|
|
992
|
+
var me = U(g);
|
|
993
|
+
do
|
|
994
|
+
me -= Q, te = P.children[me];
|
|
995
|
+
while (te && (h(te, "display") === "none" || te === v));
|
|
996
|
+
}
|
|
997
|
+
if (Q === 0 || te === r)
|
|
998
|
+
return B(!1);
|
|
999
|
+
ke = r, je = Q;
|
|
1000
|
+
var Ie = r.nextElementSibling, se = !1;
|
|
1001
|
+
se = Q === 1;
|
|
1002
|
+
var qe = tt(D, o, g, a, r, n, t, se);
|
|
1003
|
+
if (qe !== !1)
|
|
1004
|
+
return (qe === 1 || qe === -1) && (se = qe === 1), Ot = !0, setTimeout(Vr, 30), S(), se && !Ie ? o.appendChild(g) : r.parentNode.insertBefore(g, se ? Ie : r), le && Bo(le, 0, Ae - le.scrollTop), P = g.parentNode, ve !== void 0 && !Ke && (at = Math.abs(ve - T(r)[ze])), F(), B(!0);
|
|
1005
|
+
}
|
|
1006
|
+
if (o.contains(g))
|
|
1007
|
+
return B(!1);
|
|
1008
|
+
}
|
|
1009
|
+
return !1;
|
|
1010
|
+
},
|
|
1011
|
+
_ignoreWhileAnimating: null,
|
|
1012
|
+
_offMoveEvents: function() {
|
|
1013
|
+
C(document, "mousemove", this._onTouchMove), C(document, "touchmove", this._onTouchMove), C(document, "pointermove", this._onTouchMove), C(document, "dragover", we), C(document, "mousemove", we), C(document, "touchmove", we);
|
|
1014
|
+
},
|
|
1015
|
+
_offUpEvents: function() {
|
|
1016
|
+
var t = this.el.ownerDocument;
|
|
1017
|
+
C(t, "mouseup", this._onDrop), C(t, "touchend", this._onDrop), C(t, "pointerup", this._onDrop), C(t, "pointercancel", this._onDrop), C(t, "touchcancel", this._onDrop), C(document, "selectstart", this);
|
|
1018
|
+
},
|
|
1019
|
+
_onDrop: function(t) {
|
|
1020
|
+
var o = this.el, r = this.options;
|
|
1021
|
+
if (G = U(g), ce = U(g, r.draggable), N("drop", this, {
|
|
1022
|
+
evt: t
|
|
1023
|
+
}), P = g && g.parentNode, G = U(g), ce = U(g, r.draggable), f.eventCanceled) {
|
|
1024
|
+
this._nulling();
|
|
1025
|
+
return;
|
|
1026
|
+
}
|
|
1027
|
+
Se = !1, Ke = !1, We = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Rt(this.cloneId), Rt(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && h(document.body, "user-select", ""), h(g, "transform", ""), t && (Re && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), v && v.parentNode && v.parentNode.removeChild(v), (D === P || z && z.lastPutMode !== "clone") && E && E.parentNode && E.parentNode.removeChild(E), g && (this.nativeDraggable && C(g, "dragend", this), Et(g), g.style["will-change"] = "", Re && !Se && $(g, z ? z.options.ghostClass : this.options.ghostClass, !1), $(g, this.options.chosenClass, !1), O({
|
|
1028
|
+
sortable: this,
|
|
1029
|
+
name: "unchoose",
|
|
1030
|
+
toEl: P,
|
|
1031
|
+
newIndex: null,
|
|
1032
|
+
newDraggableIndex: null,
|
|
1033
|
+
originalEvent: t
|
|
1034
|
+
}), D !== P ? (G >= 0 && (O({
|
|
1035
|
+
rootEl: P,
|
|
1036
|
+
name: "add",
|
|
1037
|
+
toEl: P,
|
|
1038
|
+
fromEl: D,
|
|
1039
|
+
originalEvent: t
|
|
1040
|
+
}), O({
|
|
1041
|
+
sortable: this,
|
|
1042
|
+
name: "remove",
|
|
1043
|
+
toEl: P,
|
|
1044
|
+
originalEvent: t
|
|
1045
|
+
}), O({
|
|
1046
|
+
rootEl: P,
|
|
1047
|
+
name: "sort",
|
|
1048
|
+
toEl: P,
|
|
1049
|
+
fromEl: D,
|
|
1050
|
+
originalEvent: t
|
|
1051
|
+
}), O({
|
|
1052
|
+
sortable: this,
|
|
1053
|
+
name: "sort",
|
|
1054
|
+
toEl: P,
|
|
1055
|
+
originalEvent: t
|
|
1056
|
+
})), z && z.save()) : G !== De && G >= 0 && (O({
|
|
1057
|
+
sortable: this,
|
|
1058
|
+
name: "update",
|
|
1059
|
+
toEl: P,
|
|
1060
|
+
originalEvent: t
|
|
1061
|
+
}), O({
|
|
1062
|
+
sortable: this,
|
|
1063
|
+
name: "sort",
|
|
1064
|
+
toEl: P,
|
|
1065
|
+
originalEvent: t
|
|
1066
|
+
})), f.active && ((G == null || G === -1) && (G = De, ce = Ve), O({
|
|
1067
|
+
sortable: this,
|
|
1068
|
+
name: "end",
|
|
1069
|
+
toEl: P,
|
|
1070
|
+
originalEvent: t
|
|
1071
|
+
}), this.save()))), this._nulling();
|
|
1072
|
+
},
|
|
1073
|
+
_nulling: function() {
|
|
1074
|
+
N("nulling", this), D = g = P = v = Ce = E = rt = ge = be = X = Re = G = ce = De = Ve = ke = je = z = Je = f.dragged = f.ghost = f.clone = f.active = null, ut.forEach(function(t) {
|
|
1075
|
+
t.checked = !0;
|
|
1076
|
+
}), ut.length = St = Bt = 0;
|
|
1077
|
+
},
|
|
1078
|
+
handleEvent: function(t) {
|
|
1079
|
+
switch (t.type) {
|
|
1080
|
+
case "drop":
|
|
1081
|
+
case "dragend":
|
|
1082
|
+
this._onDrop(t);
|
|
1083
|
+
break;
|
|
1084
|
+
case "dragenter":
|
|
1085
|
+
case "dragover":
|
|
1086
|
+
g && (this._onDragOver(t), Gr(t));
|
|
1087
|
+
break;
|
|
1088
|
+
case "selectstart":
|
|
1089
|
+
t.preventDefault();
|
|
1090
|
+
break;
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
/**
|
|
1094
|
+
* Serializes the item into an array of string.
|
|
1095
|
+
* @returns {String[]}
|
|
1096
|
+
*/
|
|
1097
|
+
toArray: function() {
|
|
1098
|
+
for (var t = [], o, r = this.el.children, a = 0, n = r.length, l = this.options; a < n; a++)
|
|
1099
|
+
o = r[a], Y(o, l.draggable, this.el, !1) && t.push(o.getAttribute(l.dataIdAttr) || Yr(o));
|
|
1100
|
+
return t;
|
|
1101
|
+
},
|
|
1102
|
+
/**
|
|
1103
|
+
* Sorts the elements according to the array.
|
|
1104
|
+
* @param {String[]} order order of the items
|
|
1105
|
+
*/
|
|
1106
|
+
sort: function(t, o) {
|
|
1107
|
+
var r = {}, a = this.el;
|
|
1108
|
+
this.toArray().forEach(function(n, l) {
|
|
1109
|
+
var i = a.children[l];
|
|
1110
|
+
Y(i, this.options.draggable, a, !1) && (r[n] = i);
|
|
1111
|
+
}, this), o && this.captureAnimationState(), t.forEach(function(n) {
|
|
1112
|
+
r[n] && (a.removeChild(r[n]), a.appendChild(r[n]));
|
|
1113
|
+
}), o && this.animateAll();
|
|
1114
|
+
},
|
|
1115
|
+
/**
|
|
1116
|
+
* Save the current sorting
|
|
1117
|
+
*/
|
|
1118
|
+
save: function() {
|
|
1119
|
+
var t = this.options.store;
|
|
1120
|
+
t && t.set && t.set(this);
|
|
1121
|
+
},
|
|
1122
|
+
/**
|
|
1123
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
1124
|
+
* @param {HTMLElement} el
|
|
1125
|
+
* @param {String} [selector] default: `options.draggable`
|
|
1126
|
+
* @returns {HTMLElement|null}
|
|
1127
|
+
*/
|
|
1128
|
+
closest: function(t, o) {
|
|
1129
|
+
return Y(t, o || this.options.draggable, this.el, !1);
|
|
1130
|
+
},
|
|
1131
|
+
/**
|
|
1132
|
+
* Set/get option
|
|
1133
|
+
* @param {string} name
|
|
1134
|
+
* @param {*} [value]
|
|
1135
|
+
* @returns {*}
|
|
1136
|
+
*/
|
|
1137
|
+
option: function(t, o) {
|
|
1138
|
+
var r = this.options;
|
|
1139
|
+
if (o === void 0)
|
|
1140
|
+
return r[t];
|
|
1141
|
+
var a = Qe.modifyOption(this, t, o);
|
|
1142
|
+
typeof a < "u" ? r[t] = a : r[t] = o, t === "group" && To(r);
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
* Destroy
|
|
1146
|
+
*/
|
|
1147
|
+
destroy: function() {
|
|
1148
|
+
N("destroy", this);
|
|
1149
|
+
var t = this.el;
|
|
1150
|
+
t[H] = null, C(t, "mousedown", this._onTapStart), C(t, "touchstart", this._onTapStart), C(t, "pointerdown", this._onTapStart), this.nativeDraggable && (C(t, "dragover", this), C(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(o) {
|
|
1151
|
+
o.removeAttribute("draggable");
|
|
1152
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), gt.splice(gt.indexOf(this.el), 1), this.el = t = null;
|
|
1153
|
+
},
|
|
1154
|
+
_hideClone: function() {
|
|
1155
|
+
if (!ge) {
|
|
1156
|
+
if (N("hideClone", this), f.eventCanceled) return;
|
|
1157
|
+
h(E, "display", "none"), this.options.removeCloneOnHide && E.parentNode && E.parentNode.removeChild(E), ge = !0;
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
_showClone: function(t) {
|
|
1161
|
+
if (t.lastPutMode !== "clone") {
|
|
1162
|
+
this._hideClone();
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1165
|
+
if (ge) {
|
|
1166
|
+
if (N("showClone", this), f.eventCanceled) return;
|
|
1167
|
+
g.parentNode == D && !this.options.group.revertClone ? D.insertBefore(E, g) : Ce ? D.insertBefore(E, Ce) : D.appendChild(E), this.options.group.revertClone && this.animate(g, E), h(E, "display", ""), ge = !1;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
function Gr(e) {
|
|
1172
|
+
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1173
|
+
}
|
|
1174
|
+
function tt(e, t, o, r, a, n, l, i) {
|
|
1175
|
+
var s, c = e[H], d = c.options.onMove, u;
|
|
1176
|
+
return window.CustomEvent && !ie && !Ze ? s = new CustomEvent("move", {
|
|
1177
|
+
bubbles: !0,
|
|
1178
|
+
cancelable: !0
|
|
1179
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = o, s.draggedRect = r, s.related = a || t, s.relatedRect = n || T(t), s.willInsertAfter = i, s.originalEvent = l, e.dispatchEvent(s), d && (u = d.call(c, s, l)), u;
|
|
1180
|
+
}
|
|
1181
|
+
function Et(e) {
|
|
1182
|
+
e.draggable = !1;
|
|
1183
|
+
}
|
|
1184
|
+
function Vr() {
|
|
1185
|
+
Ot = !1;
|
|
1186
|
+
}
|
|
1187
|
+
function jr(e, t, o) {
|
|
1188
|
+
var r = T(_e(o.el, 0, o.options, !0)), a = Eo(o.el, o.options, v), n = 10;
|
|
1189
|
+
return t ? e.clientX < a.left - n || e.clientY < r.top && e.clientX < r.right : e.clientY < a.top - n || e.clientY < r.bottom && e.clientX < r.left;
|
|
1190
|
+
}
|
|
1191
|
+
function Wr(e, t, o) {
|
|
1192
|
+
var r = T(Wt(o.el, o.options.draggable)), a = Eo(o.el, o.options, v), n = 10;
|
|
1193
|
+
return t ? e.clientX > a.right + n || e.clientY > r.bottom && e.clientX > r.left : e.clientY > a.bottom + n || e.clientX > r.right && e.clientY > r.top;
|
|
1194
|
+
}
|
|
1195
|
+
function Ur(e, t, o, r, a, n, l, i) {
|
|
1196
|
+
var s = r ? e.clientY : e.clientX, c = r ? o.height : o.width, d = r ? o.top : o.left, u = r ? o.bottom : o.right, b = !1;
|
|
1197
|
+
if (!l) {
|
|
1198
|
+
if (i && at < c * a) {
|
|
1199
|
+
if (!We && (je === 1 ? s > d + c * n / 2 : s < u - c * n / 2) && (We = !0), We)
|
|
1200
|
+
b = !0;
|
|
1201
|
+
else if (je === 1 ? s < d + at : s > u - at)
|
|
1202
|
+
return -je;
|
|
1203
|
+
} else if (s > d + c * (1 - a) / 2 && s < u - c * (1 - a) / 2)
|
|
1204
|
+
return Xr(t);
|
|
1205
|
+
}
|
|
1206
|
+
return b = b || l, b && (s < d + c * n / 2 || s > u - c * n / 2) ? s > d + c / 2 ? 1 : -1 : 0;
|
|
1207
|
+
}
|
|
1208
|
+
function Xr(e) {
|
|
1209
|
+
return U(g) < U(e) ? 1 : -1;
|
|
1210
|
+
}
|
|
1211
|
+
function Yr(e) {
|
|
1212
|
+
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, o = t.length, r = 0; o--; )
|
|
1213
|
+
r += t.charCodeAt(o);
|
|
1214
|
+
return r.toString(36);
|
|
1215
|
+
}
|
|
1216
|
+
function Zr(e) {
|
|
1217
|
+
ut.length = 0;
|
|
1218
|
+
for (var t = e.getElementsByTagName("input"), o = t.length; o--; ) {
|
|
1219
|
+
var r = t[o];
|
|
1220
|
+
r.checked && ut.push(r);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
function nt(e) {
|
|
1224
|
+
return setTimeout(e, 0);
|
|
1225
|
+
}
|
|
1226
|
+
function Rt(e) {
|
|
1227
|
+
return clearTimeout(e);
|
|
1228
|
+
}
|
|
1229
|
+
bt && x(document, "touchmove", function(e) {
|
|
1230
|
+
(f.active || Se) && e.cancelable && e.preventDefault();
|
|
1231
|
+
});
|
|
1232
|
+
f.utils = {
|
|
1233
|
+
on: x,
|
|
1234
|
+
off: C,
|
|
1235
|
+
css: h,
|
|
1236
|
+
find: ko,
|
|
1237
|
+
is: function(t, o) {
|
|
1238
|
+
return !!Y(t, o, t, !1);
|
|
1239
|
+
},
|
|
1240
|
+
extend: Mr,
|
|
1241
|
+
throttle: So,
|
|
1242
|
+
closest: Y,
|
|
1243
|
+
toggleClass: $,
|
|
1244
|
+
clone: Do,
|
|
1245
|
+
index: U,
|
|
1246
|
+
nextTick: nt,
|
|
1247
|
+
cancelNextTick: Rt,
|
|
1248
|
+
detectDirection: _o,
|
|
1249
|
+
getChild: _e,
|
|
1250
|
+
expando: H
|
|
1251
|
+
};
|
|
1252
|
+
f.get = function(e) {
|
|
1253
|
+
return e[H];
|
|
1254
|
+
};
|
|
1255
|
+
f.mount = function() {
|
|
1256
|
+
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
1257
|
+
t[o] = arguments[o];
|
|
1258
|
+
t[0].constructor === Array && (t = t[0]), t.forEach(function(r) {
|
|
1259
|
+
if (!r.prototype || !r.prototype.constructor)
|
|
1260
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));
|
|
1261
|
+
r.utils && (f.utils = K(K({}, f.utils), r.utils)), Qe.mount(r);
|
|
1262
|
+
});
|
|
1263
|
+
};
|
|
1264
|
+
f.create = function(e, t) {
|
|
1265
|
+
return new f(e, t);
|
|
1266
|
+
};
|
|
1267
|
+
f.version = _r;
|
|
1268
|
+
var _ = [], Ne, Nt, Ht = !1, Pt, _t, pt, He;
|
|
1269
|
+
function Qr() {
|
|
1270
|
+
function e() {
|
|
1271
|
+
this.defaults = {
|
|
1272
|
+
scroll: !0,
|
|
1273
|
+
forceAutoScrollFallback: !1,
|
|
1274
|
+
scrollSensitivity: 30,
|
|
1275
|
+
scrollSpeed: 10,
|
|
1276
|
+
bubbleScroll: !0
|
|
1277
|
+
};
|
|
1278
|
+
for (var t in this)
|
|
1279
|
+
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1280
|
+
}
|
|
1281
|
+
return e.prototype = {
|
|
1282
|
+
dragStarted: function(o) {
|
|
1283
|
+
var r = o.originalEvent;
|
|
1284
|
+
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? x(document, "pointermove", this._handleFallbackAutoScroll) : r.touches ? x(document, "touchmove", this._handleFallbackAutoScroll) : x(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1285
|
+
},
|
|
1286
|
+
dragOverCompleted: function(o) {
|
|
1287
|
+
var r = o.originalEvent;
|
|
1288
|
+
!this.options.dragOverBubble && !r.rootEl && this._handleAutoScroll(r);
|
|
1289
|
+
},
|
|
1290
|
+
drop: function() {
|
|
1291
|
+
this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : (C(document, "pointermove", this._handleFallbackAutoScroll), C(document, "touchmove", this._handleFallbackAutoScroll), C(document, "mousemove", this._handleFallbackAutoScroll)), ao(), it(), zr();
|
|
1292
|
+
},
|
|
1293
|
+
nulling: function() {
|
|
1294
|
+
pt = Nt = Ne = Ht = He = Pt = _t = null, _.length = 0;
|
|
1295
|
+
},
|
|
1296
|
+
_handleFallbackAutoScroll: function(o) {
|
|
1297
|
+
this._handleAutoScroll(o, !0);
|
|
1298
|
+
},
|
|
1299
|
+
_handleAutoScroll: function(o, r) {
|
|
1300
|
+
var a = this, n = (o.touches ? o.touches[0] : o).clientX, l = (o.touches ? o.touches[0] : o).clientY, i = document.elementFromPoint(n, l);
|
|
1301
|
+
if (pt = o, r || this.options.forceAutoScrollFallback || Ze || ie || $e) {
|
|
1302
|
+
Tt(o, this.options, i, r);
|
|
1303
|
+
var s = pe(i, !0);
|
|
1304
|
+
Ht && (!He || n !== Pt || l !== _t) && (He && ao(), He = setInterval(function() {
|
|
1305
|
+
var c = pe(document.elementFromPoint(n, l), !0);
|
|
1306
|
+
c !== s && (s = c, it()), Tt(o, a.options, c, r);
|
|
1307
|
+
}, 10), Pt = n, _t = l);
|
|
1308
|
+
} else {
|
|
1309
|
+
if (!this.options.bubbleScroll || pe(i, !0) === J()) {
|
|
1310
|
+
it();
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
Tt(o, this.options, pe(i, !1), !1);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}, ae(e, {
|
|
1317
|
+
pluginName: "scroll",
|
|
1318
|
+
initializeByDefault: !0
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
function it() {
|
|
1322
|
+
_.forEach(function(e) {
|
|
1323
|
+
clearInterval(e.pid);
|
|
1324
|
+
}), _ = [];
|
|
1325
|
+
}
|
|
1326
|
+
function ao() {
|
|
1327
|
+
clearInterval(He);
|
|
1328
|
+
}
|
|
1329
|
+
var Tt = So(function(e, t, o, r) {
|
|
1330
|
+
if (t.scroll) {
|
|
1331
|
+
var a = (e.touches ? e.touches[0] : e).clientX, n = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, i = t.scrollSpeed, s = J(), c = !1, d;
|
|
1332
|
+
Nt !== o && (Nt = o, it(), Ne = t.scroll, d = t.scrollFn, Ne === !0 && (Ne = pe(o, !0)));
|
|
1333
|
+
var u = 0, b = Ne;
|
|
1334
|
+
do {
|
|
1335
|
+
var y = b, w = T(y), k = w.top, m = w.bottom, S = w.left, B = w.right, F = w.width, A = w.height, fe = void 0, Q = void 0, ve = y.scrollWidth, Me = y.scrollHeight, L = h(y), ze = y.scrollLeft, le = y.scrollTop;
|
|
1336
|
+
y === s ? (fe = F < ve && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), Q = A < Me && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (fe = F < ve && (L.overflowX === "auto" || L.overflowX === "scroll"), Q = A < Me && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
1337
|
+
var Ae = fe && (Math.abs(B - a) <= l && ze + F < ve) - (Math.abs(S - a) <= l && !!ze), te = Q && (Math.abs(m - n) <= l && le + A < Me) - (Math.abs(k - n) <= l && !!le);
|
|
1338
|
+
if (!_[u])
|
|
1339
|
+
for (var me = 0; me <= u; me++)
|
|
1340
|
+
_[me] || (_[me] = {});
|
|
1341
|
+
(_[u].vx != Ae || _[u].vy != te || _[u].el !== y) && (_[u].el = y, _[u].vx = Ae, _[u].vy = te, clearInterval(_[u].pid), (Ae != 0 || te != 0) && (c = !0, _[u].pid = setInterval(function() {
|
|
1342
|
+
r && this.layer === 0 && f.active._onTouchMove(pt);
|
|
1343
|
+
var Ie = _[this.layer].vy ? _[this.layer].vy * i : 0, se = _[this.layer].vx ? _[this.layer].vx * i : 0;
|
|
1344
|
+
typeof d == "function" && d.call(f.dragged.parentNode[H], se, Ie, e, pt, _[this.layer].el) !== "continue" || Bo(_[this.layer].el, se, Ie);
|
|
1345
|
+
}.bind({
|
|
1346
|
+
layer: u
|
|
1347
|
+
}), 24))), u++;
|
|
1348
|
+
} while (t.bubbleScroll && b !== s && (b = pe(b, !1)));
|
|
1349
|
+
Ht = c;
|
|
1350
|
+
}
|
|
1351
|
+
}, 30), Ao = function(t) {
|
|
1352
|
+
var o = t.originalEvent, r = t.putSortable, a = t.dragEl, n = t.activeSortable, l = t.dispatchSortableEvent, i = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
1353
|
+
if (o) {
|
|
1354
|
+
var c = r || n;
|
|
1355
|
+
i();
|
|
1356
|
+
var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, u = document.elementFromPoint(d.clientX, d.clientY);
|
|
1357
|
+
s(), c && !c.el.contains(u) && (l("spill"), this.onSpill({
|
|
1358
|
+
dragEl: a,
|
|
1359
|
+
putSortable: r
|
|
1360
|
+
}));
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
function Ut() {
|
|
1364
|
+
}
|
|
1365
|
+
Ut.prototype = {
|
|
1366
|
+
startIndex: null,
|
|
1367
|
+
dragStart: function(t) {
|
|
1368
|
+
var o = t.oldDraggableIndex;
|
|
1369
|
+
this.startIndex = o;
|
|
1370
|
+
},
|
|
1371
|
+
onSpill: function(t) {
|
|
1372
|
+
var o = t.dragEl, r = t.putSortable;
|
|
1373
|
+
this.sortable.captureAnimationState(), r && r.captureAnimationState();
|
|
1374
|
+
var a = _e(this.sortable.el, this.startIndex, this.options);
|
|
1375
|
+
a ? this.sortable.el.insertBefore(o, a) : this.sortable.el.appendChild(o), this.sortable.animateAll(), r && r.animateAll();
|
|
1376
|
+
},
|
|
1377
|
+
drop: Ao
|
|
1378
|
+
};
|
|
1379
|
+
ae(Ut, {
|
|
1380
|
+
pluginName: "revertOnSpill"
|
|
1381
|
+
});
|
|
1382
|
+
function Xt() {
|
|
1383
|
+
}
|
|
1384
|
+
Xt.prototype = {
|
|
1385
|
+
onSpill: function(t) {
|
|
1386
|
+
var o = t.dragEl, r = t.putSortable, a = r || this.sortable;
|
|
1387
|
+
a.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), a.animateAll();
|
|
1388
|
+
},
|
|
1389
|
+
drop: Ao
|
|
1390
|
+
};
|
|
1391
|
+
ae(Xt, {
|
|
1392
|
+
pluginName: "removeOnSpill"
|
|
1393
|
+
});
|
|
1394
|
+
f.mount(new Qr());
|
|
1395
|
+
f.mount(Xt, Ut);
|
|
1396
|
+
function qr(e, t, o = {}) {
|
|
1397
|
+
let r;
|
|
1398
|
+
const { document: a = Sr, ...n } = o, l = {
|
|
1399
|
+
onUpdate: (d) => {
|
|
1400
|
+
ea(t, d.oldIndex, d.newIndex, d);
|
|
1401
|
+
}
|
|
1402
|
+
}, i = () => {
|
|
1403
|
+
const d = typeof e == "string" ? a?.querySelector(e) : Br(e);
|
|
1404
|
+
!d || r !== void 0 || (r = new f(d, { ...l, ...n }));
|
|
1405
|
+
}, s = () => {
|
|
1406
|
+
r?.destroy(), r = void 0;
|
|
1407
|
+
}, c = (d, u) => {
|
|
1408
|
+
if (u !== void 0)
|
|
1409
|
+
r?.option(d, u);
|
|
1410
|
+
else
|
|
1411
|
+
return r?.option(d);
|
|
1412
|
+
};
|
|
1413
|
+
return xr(i), Gt(s), {
|
|
1414
|
+
stop: s,
|
|
1415
|
+
start: i,
|
|
1416
|
+
option: c
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function Jr(e, t, o) {
|
|
1420
|
+
const r = e.children[o];
|
|
1421
|
+
e.insertBefore(t, r);
|
|
1422
|
+
}
|
|
1423
|
+
function Kr(e) {
|
|
1424
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
1425
|
+
}
|
|
1426
|
+
function ea(e, t, o, r = null) {
|
|
1427
|
+
r != null && (Kr(r.item), Jr(r.from, r.item, t));
|
|
1428
|
+
const a = ir(e), n = a ? [...j(e)] : j(e);
|
|
1429
|
+
if (o >= 0 && o < n.length) {
|
|
1430
|
+
const l = n.splice(t, 1)[0];
|
|
1431
|
+
vo(() => {
|
|
1432
|
+
n.splice(o, 0, l), a && (e.value = n);
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
const ta = ["data-align"], oa = {
|
|
1437
|
+
key: 0,
|
|
1438
|
+
role: "list",
|
|
1439
|
+
class: "pv-popover-list",
|
|
1440
|
+
ref: "popoverList"
|
|
1441
|
+
}, ra = /* @__PURE__ */ he({
|
|
1442
|
+
__name: "PvPopover",
|
|
1443
|
+
props: {
|
|
1444
|
+
alignment: { default: void 0 },
|
|
1445
|
+
cssCustomProperties: { default: () => ({}) },
|
|
1446
|
+
isList: { type: Boolean, default: !1 },
|
|
1447
|
+
isSortable: { type: Boolean }
|
|
1448
|
+
},
|
|
1449
|
+
emits: ["list-order-updated"],
|
|
1450
|
+
setup(e, { emit: t }) {
|
|
1451
|
+
const o = lr("popoverList"), r = e, a = t;
|
|
1452
|
+
r.isSortable && r.isList && qr(o, [], {
|
|
1453
|
+
animation: 150,
|
|
1454
|
+
onUpdate: () => {
|
|
1455
|
+
const l = Array.from(o.value?.children || []).map(
|
|
1456
|
+
(i) => i.id
|
|
1457
|
+
);
|
|
1458
|
+
a("list-order-updated", l);
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
const n = re(() => {
|
|
1462
|
+
const l = [];
|
|
1463
|
+
return Object.keys(r.cssCustomProperties).forEach((i) => {
|
|
1464
|
+
const s = r.cssCustomProperties[i];
|
|
1465
|
+
s && l.push(`--${i}: ${s};`);
|
|
1466
|
+
}), l.length ? l.join("; ") : void 0;
|
|
1467
|
+
});
|
|
1468
|
+
return (l, i) => (M(), R("div", {
|
|
1469
|
+
class: "pv-popover",
|
|
1470
|
+
"data-align": l.alignment,
|
|
1471
|
+
style: sr(n.value)
|
|
1472
|
+
}, [
|
|
1473
|
+
l.isList ? (M(), R("ul", oa, [
|
|
1474
|
+
Ue(l.$slots, "default", {}, void 0, !0)
|
|
1475
|
+
], 512)) : Ue(l.$slots, "default", { key: 1 }, void 0, !0)
|
|
1476
|
+
], 12, ta));
|
|
1477
|
+
}
|
|
1478
|
+
}), aa = /* @__PURE__ */ Ye(ra, [["__scopeId", "data-v-fe55e23d"]]), Io = Vt ? window : void 0;
|
|
1479
|
+
function Le(e) {
|
|
1480
|
+
var t;
|
|
1481
|
+
const o = j(e);
|
|
1482
|
+
return (t = o?.$el) != null ? t : o;
|
|
1483
|
+
}
|
|
1484
|
+
function Be(...e) {
|
|
1485
|
+
const t = [], o = () => {
|
|
1486
|
+
t.forEach((i) => i()), t.length = 0;
|
|
1487
|
+
}, r = (i, s, c, d) => (i.addEventListener(s, c, d), () => i.removeEventListener(s, c, d)), a = re(() => {
|
|
1488
|
+
const i = Ct(j(e[0])).filter((s) => s != null);
|
|
1489
|
+
return i.every((s) => typeof s != "string") ? i : void 0;
|
|
1490
|
+
}), n = kr(
|
|
1491
|
+
() => {
|
|
1492
|
+
var i, s;
|
|
1493
|
+
return [
|
|
1494
|
+
(s = (i = a.value) == null ? void 0 : i.map((c) => Le(c))) != null ? s : [Io].filter((c) => c != null),
|
|
1495
|
+
Ct(j(a.value ? e[1] : e[0])),
|
|
1496
|
+
Ct(lt(a.value ? e[2] : e[1])),
|
|
1497
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
1498
|
+
j(a.value ? e[3] : e[2])
|
|
1499
|
+
];
|
|
1500
|
+
},
|
|
1501
|
+
([i, s, c, d]) => {
|
|
1502
|
+
if (o(), !i?.length || !s?.length || !c?.length)
|
|
1503
|
+
return;
|
|
1504
|
+
const u = br(d) ? { ...d } : d;
|
|
1505
|
+
t.push(
|
|
1506
|
+
...i.flatMap(
|
|
1507
|
+
(b) => s.flatMap(
|
|
1508
|
+
(y) => c.map((w) => r(b, y, w, u))
|
|
1509
|
+
)
|
|
1510
|
+
)
|
|
1511
|
+
);
|
|
1512
|
+
},
|
|
1513
|
+
{ flush: "post" }
|
|
1514
|
+
), l = () => {
|
|
1515
|
+
n(), o();
|
|
1516
|
+
};
|
|
1517
|
+
return Gt(o), l;
|
|
1518
|
+
}
|
|
1519
|
+
let no = !1;
|
|
1520
|
+
function io(e, t, o = {}) {
|
|
1521
|
+
const { window: r = Io, ignore: a = [], capture: n = !0, detectIframe: l = !1, controls: i = !1 } = o;
|
|
1522
|
+
if (!r)
|
|
1523
|
+
return i ? { stop: ye, cancel: ye, trigger: ye } : ye;
|
|
1524
|
+
if (Ft && !no) {
|
|
1525
|
+
no = !0;
|
|
1526
|
+
const m = { passive: !0 };
|
|
1527
|
+
Array.from(r.document.body.children).forEach((S) => Be(S, "click", ye, m)), Be(r.document.documentElement, "click", ye, m);
|
|
1528
|
+
}
|
|
1529
|
+
let s = !0;
|
|
1530
|
+
const c = (m) => j(a).some((S) => {
|
|
1531
|
+
if (typeof S == "string")
|
|
1532
|
+
return Array.from(r.document.querySelectorAll(S)).some((B) => B === m.target || m.composedPath().includes(B));
|
|
1533
|
+
{
|
|
1534
|
+
const B = Le(S);
|
|
1535
|
+
return B && (m.target === B || m.composedPath().includes(B));
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
function d(m) {
|
|
1539
|
+
const S = j(m);
|
|
1540
|
+
return S && S.$.subTree.shapeFlag === 16;
|
|
1541
|
+
}
|
|
1542
|
+
function u(m, S) {
|
|
1543
|
+
const B = j(m), F = B.$.subTree && B.$.subTree.children;
|
|
1544
|
+
return F == null || !Array.isArray(F) ? !1 : F.some((A) => A.el === S.target || S.composedPath().includes(A.el));
|
|
1545
|
+
}
|
|
1546
|
+
const b = (m) => {
|
|
1547
|
+
const S = Le(e);
|
|
1548
|
+
if (m.target != null && !(!(S instanceof Element) && d(e) && u(e, m)) && !(!S || S === m.target || m.composedPath().includes(S))) {
|
|
1549
|
+
if ("detail" in m && m.detail === 0 && (s = !c(m)), !s) {
|
|
1550
|
+
s = !0;
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1553
|
+
t(m);
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
let y = !1;
|
|
1557
|
+
const w = [
|
|
1558
|
+
Be(r, "click", (m) => {
|
|
1559
|
+
y || (y = !0, setTimeout(() => {
|
|
1560
|
+
y = !1;
|
|
1561
|
+
}, 0), b(m));
|
|
1562
|
+
}, { passive: !0, capture: n }),
|
|
1563
|
+
Be(r, "pointerdown", (m) => {
|
|
1564
|
+
const S = Le(e);
|
|
1565
|
+
s = !c(m) && !!(S && !m.composedPath().includes(S));
|
|
1566
|
+
}, { passive: !0 }),
|
|
1567
|
+
l && Be(r, "blur", (m) => {
|
|
1568
|
+
setTimeout(() => {
|
|
1569
|
+
var S;
|
|
1570
|
+
const B = Le(e);
|
|
1571
|
+
((S = r.document.activeElement) == null ? void 0 : S.tagName) === "IFRAME" && !B?.contains(r.document.activeElement) && t(m);
|
|
1572
|
+
}, 0);
|
|
1573
|
+
}, { passive: !0 })
|
|
1574
|
+
].filter(Boolean), k = () => w.forEach((m) => m());
|
|
1575
|
+
return i ? {
|
|
1576
|
+
stop: k,
|
|
1577
|
+
cancel: () => {
|
|
1578
|
+
s = !1;
|
|
1579
|
+
},
|
|
1580
|
+
trigger: (m) => {
|
|
1581
|
+
s = !0, b(m), s = !1;
|
|
1582
|
+
}
|
|
1583
|
+
} : k;
|
|
1584
|
+
}
|
|
1585
|
+
const na = {
|
|
1586
|
+
mounted(e, t) {
|
|
1587
|
+
const o = !t.modifiers.bubble;
|
|
1588
|
+
if (typeof t.value == "function")
|
|
1589
|
+
e.__onClickOutside_stop = io(e, t.value, { capture: o });
|
|
1590
|
+
else {
|
|
1591
|
+
const [r, a] = t.value;
|
|
1592
|
+
e.__onClickOutside_stop = io(e, r, Object.assign({ capture: o }, a));
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
unmounted(e) {
|
|
1596
|
+
e.__onClickOutside_stop();
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
function Mt(e) {
|
|
1600
|
+
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
1601
|
+
}
|
|
1602
|
+
function Fo(e) {
|
|
1603
|
+
const t = window.getComputedStyle(e);
|
|
1604
|
+
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
1605
|
+
return !0;
|
|
1606
|
+
{
|
|
1607
|
+
const o = e.parentNode;
|
|
1608
|
+
return !o || o.tagName === "BODY" ? !1 : Fo(o);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
function ia(e) {
|
|
1612
|
+
const t = e || window.event, o = t.target;
|
|
1613
|
+
return Fo(o) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
1614
|
+
}
|
|
1615
|
+
const zt = /* @__PURE__ */ new WeakMap();
|
|
1616
|
+
function la(e, t = !1) {
|
|
1617
|
+
const o = mo(t);
|
|
1618
|
+
let r = null, a = "";
|
|
1619
|
+
mt(yr(e), (i) => {
|
|
1620
|
+
const s = Mt(j(i));
|
|
1621
|
+
if (s) {
|
|
1622
|
+
const c = s;
|
|
1623
|
+
if (zt.get(c) || zt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (a = c.style.overflow), c.style.overflow === "hidden")
|
|
1624
|
+
return o.value = !0;
|
|
1625
|
+
if (o.value)
|
|
1626
|
+
return c.style.overflow = "hidden";
|
|
1627
|
+
}
|
|
1628
|
+
}, {
|
|
1629
|
+
immediate: !0
|
|
1630
|
+
});
|
|
1631
|
+
const n = () => {
|
|
1632
|
+
const i = Mt(j(e));
|
|
1633
|
+
!i || o.value || (Ft && (r = Be(
|
|
1634
|
+
i,
|
|
1635
|
+
"touchmove",
|
|
1636
|
+
(s) => {
|
|
1637
|
+
ia(s);
|
|
1638
|
+
},
|
|
1639
|
+
{ passive: !1 }
|
|
1640
|
+
)), i.style.overflow = "hidden", o.value = !0);
|
|
1641
|
+
}, l = () => {
|
|
1642
|
+
const i = Mt(j(e));
|
|
1643
|
+
!i || !o.value || (Ft && r?.(), i.style.overflow = a, zt.delete(i), o.value = !1);
|
|
1644
|
+
};
|
|
1645
|
+
return Gt(l), re({
|
|
1646
|
+
get() {
|
|
1647
|
+
return o.value;
|
|
1648
|
+
},
|
|
1649
|
+
set(i) {
|
|
1650
|
+
i ? n() : l();
|
|
1651
|
+
}
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
function sa() {
|
|
1655
|
+
let e = !1;
|
|
1656
|
+
const t = mo(!1);
|
|
1657
|
+
return (o, r) => {
|
|
1658
|
+
if (t.value = r.value, e)
|
|
1659
|
+
return;
|
|
1660
|
+
e = !0;
|
|
1661
|
+
const a = la(o, r.value);
|
|
1662
|
+
mt(t, (n) => a.value = n);
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
sa();
|
|
1666
|
+
const ca = { class: "pv-relative" }, da = ["disabled"], ga = /* @__PURE__ */ he({
|
|
1667
|
+
__name: "PvDropdown",
|
|
1668
|
+
props: {
|
|
1669
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
1670
|
+
popoverCssProperties: {},
|
|
1671
|
+
alignment: {},
|
|
1672
|
+
isList: { type: Boolean, default: !1 },
|
|
1673
|
+
isSortable: { type: Boolean },
|
|
1674
|
+
icon: {},
|
|
1675
|
+
disabled: { type: Boolean, default: !1 }
|
|
1676
|
+
},
|
|
1677
|
+
emits: ["dropdown-open", "dropdown-closed", "list-order-updated"],
|
|
1678
|
+
setup(e, { emit: t }) {
|
|
1679
|
+
const o = t, r = $t(e.defaultOpen), a = re(() => ({
|
|
1680
|
+
"pv-hide": !r.value
|
|
1681
|
+
})), n = (i) => {
|
|
1682
|
+
r.value = !r.value;
|
|
1683
|
+
}, l = () => {
|
|
1684
|
+
r.value = !1;
|
|
1685
|
+
};
|
|
1686
|
+
return mt(r, (i) => {
|
|
1687
|
+
o(i ? "dropdown-open" : "dropdown-closed");
|
|
1688
|
+
}), (i, s) => cr((M(), R("div", ca, [
|
|
1689
|
+
i.icon ? (M(), At(st, {
|
|
1690
|
+
key: 1,
|
|
1691
|
+
class: "pv-icon-button",
|
|
1692
|
+
name: i.icon,
|
|
1693
|
+
onClick: n
|
|
1694
|
+
}, null, 8, ["name"])) : (M(), R("button", {
|
|
1695
|
+
key: 0,
|
|
1696
|
+
class: "pv-select",
|
|
1697
|
+
style: { width: "auto" },
|
|
1698
|
+
onClick: n,
|
|
1699
|
+
disabled: i.disabled
|
|
1700
|
+
}, [
|
|
1701
|
+
Ue(i.$slots, "trigger", {}, () => [
|
|
1702
|
+
s[1] || (s[1] = bo("Open"))
|
|
1703
|
+
], !0)
|
|
1704
|
+
], 8, da)),
|
|
1705
|
+
fo(aa, {
|
|
1706
|
+
class: Te(a.value),
|
|
1707
|
+
"css-custom-properties": i.popoverCssProperties,
|
|
1708
|
+
alignment: i.alignment,
|
|
1709
|
+
isList: i.isList,
|
|
1710
|
+
isSortable: i.isSortable,
|
|
1711
|
+
onListOrderUpdated: s[0] || (s[0] = (c) => i.$emit("list-order-updated", c))
|
|
1712
|
+
}, {
|
|
1713
|
+
default: dr(() => [
|
|
1714
|
+
Ue(i.$slots, "default", {}, () => [
|
|
1715
|
+
s[2] || (s[2] = Xe("span", { class: "pv-shimmer" }, "Loading...", -1))
|
|
1716
|
+
], !0)
|
|
1717
|
+
]),
|
|
1718
|
+
_: 3
|
|
1719
|
+
}, 8, ["class", "css-custom-properties", "alignment", "isList", "isSortable"])
|
|
1720
|
+
])), [
|
|
1721
|
+
[lt(na), l]
|
|
1722
|
+
]);
|
|
1723
|
+
}
|
|
1724
|
+
}), On = /* @__PURE__ */ Ye(ga, [["__scopeId", "data-v-aa75cbe3"]]);
|
|
1725
|
+
var ua = "https://www.ag-grid.com", lo = {};
|
|
1726
|
+
function pa(e, t) {
|
|
1727
|
+
lo[t] || (e(), lo[t] = !0);
|
|
1728
|
+
}
|
|
1729
|
+
function Oo(e, ...t) {
|
|
1730
|
+
pa(() => console.error("AG Grid: " + e, ...t), e + t?.join(""));
|
|
1731
|
+
}
|
|
1732
|
+
var ha = "33.2.4", so = 2e3, co = 100, Ro = "_version_", fa = `${ua}/javascript-data-grid`;
|
|
1733
|
+
function va(e, t, o) {
|
|
1734
|
+
return [Ca(e, t, o)];
|
|
1735
|
+
}
|
|
1736
|
+
function No(e, t, o, r) {
|
|
1737
|
+
e(`error #${t}`, ...va(t, o, r));
|
|
1738
|
+
}
|
|
1739
|
+
function ma(e) {
|
|
1740
|
+
if (!e)
|
|
1741
|
+
return String(e);
|
|
1742
|
+
const t = {};
|
|
1743
|
+
for (const o of Object.keys(e))
|
|
1744
|
+
typeof e[o] != "object" && typeof e[o] != "function" && (t[o] = e[o]);
|
|
1745
|
+
return JSON.stringify(t);
|
|
1746
|
+
}
|
|
1747
|
+
function ba(e) {
|
|
1748
|
+
let t = e;
|
|
1749
|
+
return e instanceof Error ? t = e.toString() : typeof e == "object" && (t = ma(e)), t;
|
|
1750
|
+
}
|
|
1751
|
+
function Lt(e, t) {
|
|
1752
|
+
return `${e}?${t.toString()}`;
|
|
1753
|
+
}
|
|
1754
|
+
function wa(e, t, o) {
|
|
1755
|
+
const r = Array.from(t.entries()).sort((n, l) => l[1].length - n[1].length);
|
|
1756
|
+
let a = Lt(e, t);
|
|
1757
|
+
for (const [n, l] of r) {
|
|
1758
|
+
if (n === Ro)
|
|
1759
|
+
continue;
|
|
1760
|
+
const i = a.length - o;
|
|
1761
|
+
if (i <= 0)
|
|
1762
|
+
break;
|
|
1763
|
+
const s = "...", c = i + s.length, d = l.length - c > co ? l.slice(0, l.length - c) + s : l.slice(0, co) + s;
|
|
1764
|
+
t.set(n, d), a = Lt(e, t);
|
|
1765
|
+
}
|
|
1766
|
+
return a;
|
|
1767
|
+
}
|
|
1768
|
+
function ya(e, t) {
|
|
1769
|
+
const o = new URLSearchParams();
|
|
1770
|
+
if (o.append(Ro, ha), t)
|
|
1771
|
+
for (const n of Object.keys(t))
|
|
1772
|
+
o.append(n, ba(t[n]));
|
|
1773
|
+
const r = `${fa}/errors/${e}`, a = Lt(r, o);
|
|
1774
|
+
return a.length <= so ? a : wa(r, o, so);
|
|
1775
|
+
}
|
|
1776
|
+
var Ca = (e, t, o) => {
|
|
1777
|
+
const r = ya(e, t);
|
|
1778
|
+
return `${o ? o + `
|
|
1779
|
+
` : ""}Visit ${r}${o ? "" : `
|
|
1780
|
+
Alternatively register the ValidationModule to see the full message in the console.`}`;
|
|
1781
|
+
};
|
|
1782
|
+
function Ho(...e) {
|
|
1783
|
+
No(Oo, e[0], e[1]);
|
|
1784
|
+
}
|
|
1785
|
+
function xa(e, t, o) {
|
|
1786
|
+
No(Oo, e, t, o);
|
|
1787
|
+
}
|
|
1788
|
+
var ka = /* @__PURE__ */ new Set();
|
|
1789
|
+
function Sa() {
|
|
1790
|
+
return new Set(ka);
|
|
1791
|
+
}
|
|
1792
|
+
var Ba = [
|
|
1793
|
+
// Validate license first
|
|
1794
|
+
"licenseManager",
|
|
1795
|
+
// core beans only
|
|
1796
|
+
"environment",
|
|
1797
|
+
"eventSvc",
|
|
1798
|
+
"gos",
|
|
1799
|
+
"paginationAutoPageSizeSvc",
|
|
1800
|
+
"apiFunctionSvc",
|
|
1801
|
+
"gridApi",
|
|
1802
|
+
"registry",
|
|
1803
|
+
"agCompUtils",
|
|
1804
|
+
"userCompFactory",
|
|
1805
|
+
"rowContainerHeight",
|
|
1806
|
+
"horizontalResizeSvc",
|
|
1807
|
+
"localeSvc",
|
|
1808
|
+
"pinnedRowModel",
|
|
1809
|
+
"dragSvc",
|
|
1810
|
+
"colGroupSvc",
|
|
1811
|
+
"visibleCols",
|
|
1812
|
+
"popupSvc",
|
|
1813
|
+
"selectionSvc",
|
|
1814
|
+
"colFilter",
|
|
1815
|
+
"quickFilter",
|
|
1816
|
+
"filterManager",
|
|
1817
|
+
"colModel",
|
|
1818
|
+
"headerNavigation",
|
|
1819
|
+
"pageBounds",
|
|
1820
|
+
"pagination",
|
|
1821
|
+
"pageBoundsListener",
|
|
1822
|
+
"rowSpanSvc",
|
|
1823
|
+
"stickyRowSvc",
|
|
1824
|
+
"rowRenderer",
|
|
1825
|
+
"expressionSvc",
|
|
1826
|
+
"alignedGridsSvc",
|
|
1827
|
+
"navigation",
|
|
1828
|
+
"valueCache",
|
|
1829
|
+
"valueSvc",
|
|
1830
|
+
"autoWidthCalc",
|
|
1831
|
+
"filterMenuFactory",
|
|
1832
|
+
"dragAndDrop",
|
|
1833
|
+
"focusSvc",
|
|
1834
|
+
"cellNavigation",
|
|
1835
|
+
"cellStyles",
|
|
1836
|
+
"scrollVisibleSvc",
|
|
1837
|
+
"sortSvc",
|
|
1838
|
+
"colHover",
|
|
1839
|
+
"colAnimation",
|
|
1840
|
+
"autoColSvc",
|
|
1841
|
+
"selectionColSvc",
|
|
1842
|
+
"changeDetectionSvc",
|
|
1843
|
+
"animationFrameSvc",
|
|
1844
|
+
"undoRedo",
|
|
1845
|
+
"colDefFactory",
|
|
1846
|
+
"rowStyleSvc",
|
|
1847
|
+
"rowNodeBlockLoader",
|
|
1848
|
+
"rowNodeSorter",
|
|
1849
|
+
"ctrlsSvc",
|
|
1850
|
+
"pinnedCols",
|
|
1851
|
+
"dataTypeSvc",
|
|
1852
|
+
"syncSvc",
|
|
1853
|
+
"overlays",
|
|
1854
|
+
"stateSvc",
|
|
1855
|
+
"expansionSvc",
|
|
1856
|
+
"apiEventSvc",
|
|
1857
|
+
"ariaAnnounce",
|
|
1858
|
+
"menuSvc",
|
|
1859
|
+
"colMoves",
|
|
1860
|
+
"colAutosize",
|
|
1861
|
+
"colFlex",
|
|
1862
|
+
"colResize",
|
|
1863
|
+
"pivotColsSvc",
|
|
1864
|
+
"valueColsSvc",
|
|
1865
|
+
"rowGroupColsSvc",
|
|
1866
|
+
"funcColsSvc",
|
|
1867
|
+
"colNames",
|
|
1868
|
+
"colViewport",
|
|
1869
|
+
"pivotResultCols",
|
|
1870
|
+
"showRowGroupCols",
|
|
1871
|
+
"validation"
|
|
1872
|
+
// Have validations run last
|
|
1873
|
+
];
|
|
1874
|
+
Object.fromEntries(
|
|
1875
|
+
Ba.map((e, t) => [e, t])
|
|
1876
|
+
);
|
|
1877
|
+
var p = (e, t) => {
|
|
1878
|
+
for (const o of Object.keys(t))
|
|
1879
|
+
t[o] = e;
|
|
1880
|
+
return t;
|
|
1881
|
+
};
|
|
1882
|
+
({
|
|
1883
|
+
// this is always registered
|
|
1884
|
+
...p("CommunityCore", {
|
|
1885
|
+
destroy: 0,
|
|
1886
|
+
getGridId: 0,
|
|
1887
|
+
getGridOption: 0,
|
|
1888
|
+
isDestroyed: 0,
|
|
1889
|
+
setGridOption: 0,
|
|
1890
|
+
updateGridOptions: 0
|
|
1891
|
+
}),
|
|
1892
|
+
...p("GridState", {
|
|
1893
|
+
getState: 0
|
|
1894
|
+
}),
|
|
1895
|
+
...p("SharedRowSelection", {
|
|
1896
|
+
setNodesSelected: 0,
|
|
1897
|
+
selectAll: 0,
|
|
1898
|
+
deselectAll: 0,
|
|
1899
|
+
selectAllFiltered: 0,
|
|
1900
|
+
deselectAllFiltered: 0,
|
|
1901
|
+
selectAllOnCurrentPage: 0,
|
|
1902
|
+
deselectAllOnCurrentPage: 0,
|
|
1903
|
+
getSelectedNodes: 0,
|
|
1904
|
+
getSelectedRows: 0
|
|
1905
|
+
}),
|
|
1906
|
+
...p("RowApi", {
|
|
1907
|
+
redrawRows: 0,
|
|
1908
|
+
setRowNodeExpanded: 0,
|
|
1909
|
+
getRowNode: 0,
|
|
1910
|
+
addRenderedRowListener: 0,
|
|
1911
|
+
getRenderedNodes: 0,
|
|
1912
|
+
forEachNode: 0,
|
|
1913
|
+
getFirstDisplayedRowIndex: 0,
|
|
1914
|
+
getLastDisplayedRowIndex: 0,
|
|
1915
|
+
getDisplayedRowAtIndex: 0,
|
|
1916
|
+
getDisplayedRowCount: 0
|
|
1917
|
+
}),
|
|
1918
|
+
...p("ScrollApi", {
|
|
1919
|
+
getVerticalPixelRange: 0,
|
|
1920
|
+
getHorizontalPixelRange: 0,
|
|
1921
|
+
ensureColumnVisible: 0,
|
|
1922
|
+
ensureIndexVisible: 0,
|
|
1923
|
+
ensureNodeVisible: 0
|
|
1924
|
+
}),
|
|
1925
|
+
...p("KeyboardNavigation", {
|
|
1926
|
+
getFocusedCell: 0,
|
|
1927
|
+
clearFocusedCell: 0,
|
|
1928
|
+
setFocusedCell: 0,
|
|
1929
|
+
tabToNextCell: 0,
|
|
1930
|
+
tabToPreviousCell: 0,
|
|
1931
|
+
setFocusedHeader: 0
|
|
1932
|
+
}),
|
|
1933
|
+
...p("EventApi", {
|
|
1934
|
+
addEventListener: 0,
|
|
1935
|
+
addGlobalListener: 0,
|
|
1936
|
+
removeEventListener: 0,
|
|
1937
|
+
removeGlobalListener: 0
|
|
1938
|
+
}),
|
|
1939
|
+
...p("ValueCache", {
|
|
1940
|
+
expireValueCache: 0
|
|
1941
|
+
}),
|
|
1942
|
+
...p("CellApi", {
|
|
1943
|
+
getCellValue: 0
|
|
1944
|
+
}),
|
|
1945
|
+
...p("SharedMenu", {
|
|
1946
|
+
showColumnMenu: 0,
|
|
1947
|
+
hidePopupMenu: 0
|
|
1948
|
+
}),
|
|
1949
|
+
...p("Sort", {
|
|
1950
|
+
onSortChanged: 0
|
|
1951
|
+
}),
|
|
1952
|
+
...p("PinnedRow", {
|
|
1953
|
+
getPinnedTopRowCount: 0,
|
|
1954
|
+
getPinnedBottomRowCount: 0,
|
|
1955
|
+
getPinnedTopRow: 0,
|
|
1956
|
+
getPinnedBottomRow: 0
|
|
1957
|
+
}),
|
|
1958
|
+
...p("Overlay", {
|
|
1959
|
+
showLoadingOverlay: 0,
|
|
1960
|
+
showNoRowsOverlay: 0,
|
|
1961
|
+
hideOverlay: 0
|
|
1962
|
+
}),
|
|
1963
|
+
...p("RenderApi", {
|
|
1964
|
+
setGridAriaProperty: 0,
|
|
1965
|
+
refreshCells: 0,
|
|
1966
|
+
refreshHeader: 0,
|
|
1967
|
+
isAnimationFrameQueueEmpty: 0,
|
|
1968
|
+
flushAllAnimationFrames: 0,
|
|
1969
|
+
getSizesForCurrentTheme: 0,
|
|
1970
|
+
getCellRendererInstances: 0
|
|
1971
|
+
}),
|
|
1972
|
+
...p("HighlightChanges", {
|
|
1973
|
+
flashCells: 0
|
|
1974
|
+
}),
|
|
1975
|
+
...p("RowDrag", {
|
|
1976
|
+
addRowDropZone: 0,
|
|
1977
|
+
removeRowDropZone: 0,
|
|
1978
|
+
getRowDropZoneParams: 0
|
|
1979
|
+
}),
|
|
1980
|
+
...p("ColumnApi", {
|
|
1981
|
+
getColumnDefs: 0,
|
|
1982
|
+
getColumnDef: 0,
|
|
1983
|
+
getDisplayNameForColumn: 0,
|
|
1984
|
+
getColumn: 0,
|
|
1985
|
+
getColumns: 0,
|
|
1986
|
+
applyColumnState: 0,
|
|
1987
|
+
getColumnState: 0,
|
|
1988
|
+
resetColumnState: 0,
|
|
1989
|
+
isPinning: 0,
|
|
1990
|
+
isPinningLeft: 0,
|
|
1991
|
+
isPinningRight: 0,
|
|
1992
|
+
getDisplayedColAfter: 0,
|
|
1993
|
+
getDisplayedColBefore: 0,
|
|
1994
|
+
setColumnsVisible: 0,
|
|
1995
|
+
setColumnsPinned: 0,
|
|
1996
|
+
getAllGridColumns: 0,
|
|
1997
|
+
getDisplayedLeftColumns: 0,
|
|
1998
|
+
getDisplayedCenterColumns: 0,
|
|
1999
|
+
getDisplayedRightColumns: 0,
|
|
2000
|
+
getAllDisplayedColumns: 0,
|
|
2001
|
+
getAllDisplayedVirtualColumns: 0
|
|
2002
|
+
}),
|
|
2003
|
+
...p("ColumnAutoSize", {
|
|
2004
|
+
sizeColumnsToFit: 0,
|
|
2005
|
+
autoSizeColumns: 0,
|
|
2006
|
+
autoSizeAllColumns: 0
|
|
2007
|
+
}),
|
|
2008
|
+
...p("ColumnGroup", {
|
|
2009
|
+
setColumnGroupOpened: 0,
|
|
2010
|
+
getColumnGroup: 0,
|
|
2011
|
+
getProvidedColumnGroup: 0,
|
|
2012
|
+
getDisplayNameForColumnGroup: 0,
|
|
2013
|
+
getColumnGroupState: 0,
|
|
2014
|
+
setColumnGroupState: 0,
|
|
2015
|
+
resetColumnGroupState: 0,
|
|
2016
|
+
getLeftDisplayedColumnGroups: 0,
|
|
2017
|
+
getCenterDisplayedColumnGroups: 0,
|
|
2018
|
+
getRightDisplayedColumnGroups: 0,
|
|
2019
|
+
getAllDisplayedColumnGroups: 0
|
|
2020
|
+
}),
|
|
2021
|
+
...p("ColumnMove", {
|
|
2022
|
+
moveColumnByIndex: 0,
|
|
2023
|
+
moveColumns: 0
|
|
2024
|
+
}),
|
|
2025
|
+
...p("ColumnResize", {
|
|
2026
|
+
setColumnWidths: 0
|
|
2027
|
+
}),
|
|
2028
|
+
...p("ColumnHover", {
|
|
2029
|
+
isColumnHovered: 0
|
|
2030
|
+
}),
|
|
2031
|
+
...p("EditCore", {
|
|
2032
|
+
getCellEditorInstances: 0,
|
|
2033
|
+
getEditingCells: 0,
|
|
2034
|
+
stopEditing: 0,
|
|
2035
|
+
startEditingCell: 0
|
|
2036
|
+
}),
|
|
2037
|
+
...p("UndoRedoEdit", {
|
|
2038
|
+
undoCellEditing: 0,
|
|
2039
|
+
redoCellEditing: 0,
|
|
2040
|
+
getCurrentUndoSize: 0,
|
|
2041
|
+
getCurrentRedoSize: 0
|
|
2042
|
+
}),
|
|
2043
|
+
...p("FilterCore", {
|
|
2044
|
+
isAnyFilterPresent: 0,
|
|
2045
|
+
onFilterChanged: 0
|
|
2046
|
+
}),
|
|
2047
|
+
...p("ColumnFilter", {
|
|
2048
|
+
isColumnFilterPresent: 0,
|
|
2049
|
+
getColumnFilterInstance: 0,
|
|
2050
|
+
destroyFilter: 0,
|
|
2051
|
+
setFilterModel: 0,
|
|
2052
|
+
getFilterModel: 0,
|
|
2053
|
+
getColumnFilterModel: 0,
|
|
2054
|
+
setColumnFilterModel: 0,
|
|
2055
|
+
showColumnFilter: 0
|
|
2056
|
+
}),
|
|
2057
|
+
...p("QuickFilter", {
|
|
2058
|
+
isQuickFilterPresent: 0,
|
|
2059
|
+
getQuickFilter: 0,
|
|
2060
|
+
resetQuickFilter: 0
|
|
2061
|
+
}),
|
|
2062
|
+
...p("Find", {
|
|
2063
|
+
findGetActiveMatch: 0,
|
|
2064
|
+
findGetTotalMatches: 0,
|
|
2065
|
+
findGoTo: 0,
|
|
2066
|
+
findNext: 0,
|
|
2067
|
+
findPrevious: 0,
|
|
2068
|
+
findGetNumMatches: 0,
|
|
2069
|
+
findGetParts: 0,
|
|
2070
|
+
findClearActive: 0,
|
|
2071
|
+
findRefresh: 0
|
|
2072
|
+
}),
|
|
2073
|
+
...p("Pagination", {
|
|
2074
|
+
paginationIsLastPageFound: 0,
|
|
2075
|
+
paginationGetPageSize: 0,
|
|
2076
|
+
paginationGetCurrentPage: 0,
|
|
2077
|
+
paginationGetTotalPages: 0,
|
|
2078
|
+
paginationGetRowCount: 0,
|
|
2079
|
+
paginationGoToNextPage: 0,
|
|
2080
|
+
paginationGoToPreviousPage: 0,
|
|
2081
|
+
paginationGoToFirstPage: 0,
|
|
2082
|
+
paginationGoToLastPage: 0,
|
|
2083
|
+
paginationGoToPage: 0
|
|
2084
|
+
}),
|
|
2085
|
+
...p("CsrmSsrmSharedApi", {
|
|
2086
|
+
expandAll: 0,
|
|
2087
|
+
collapseAll: 0,
|
|
2088
|
+
onRowHeightChanged: 0
|
|
2089
|
+
}),
|
|
2090
|
+
...p("SsrmInfiniteSharedApi", {
|
|
2091
|
+
setRowCount: 0,
|
|
2092
|
+
getCacheBlockState: 0,
|
|
2093
|
+
isLastRowIndexKnown: 0
|
|
2094
|
+
}),
|
|
2095
|
+
...p("ClientSideRowModelApi", {
|
|
2096
|
+
onGroupExpandedOrCollapsed: 0,
|
|
2097
|
+
refreshClientSideRowModel: 0,
|
|
2098
|
+
isRowDataEmpty: 0,
|
|
2099
|
+
forEachLeafNode: 0,
|
|
2100
|
+
forEachNodeAfterFilter: 0,
|
|
2101
|
+
forEachNodeAfterFilterAndSort: 0,
|
|
2102
|
+
resetRowHeights: 0,
|
|
2103
|
+
applyTransaction: 0,
|
|
2104
|
+
applyTransactionAsync: 0,
|
|
2105
|
+
flushAsyncTransactions: 0,
|
|
2106
|
+
getBestCostNodeSelection: 0
|
|
2107
|
+
}),
|
|
2108
|
+
...p("CsvExport", {
|
|
2109
|
+
getDataAsCsv: 0,
|
|
2110
|
+
exportDataAsCsv: 0
|
|
2111
|
+
}),
|
|
2112
|
+
...p("InfiniteRowModel", {
|
|
2113
|
+
refreshInfiniteCache: 0,
|
|
2114
|
+
purgeInfiniteCache: 0,
|
|
2115
|
+
getInfiniteRowCount: 0
|
|
2116
|
+
}),
|
|
2117
|
+
...p("AdvancedFilter", {
|
|
2118
|
+
getAdvancedFilterModel: 0,
|
|
2119
|
+
setAdvancedFilterModel: 0,
|
|
2120
|
+
showAdvancedFilterBuilder: 0,
|
|
2121
|
+
hideAdvancedFilterBuilder: 0
|
|
2122
|
+
}),
|
|
2123
|
+
...p("IntegratedCharts", {
|
|
2124
|
+
getChartModels: 0,
|
|
2125
|
+
getChartRef: 0,
|
|
2126
|
+
getChartImageDataURL: 0,
|
|
2127
|
+
downloadChart: 0,
|
|
2128
|
+
openChartToolPanel: 0,
|
|
2129
|
+
closeChartToolPanel: 0,
|
|
2130
|
+
createRangeChart: 0,
|
|
2131
|
+
createPivotChart: 0,
|
|
2132
|
+
createCrossFilterChart: 0,
|
|
2133
|
+
updateChart: 0,
|
|
2134
|
+
restoreChart: 0
|
|
2135
|
+
}),
|
|
2136
|
+
...p("Clipboard", {
|
|
2137
|
+
copyToClipboard: 0,
|
|
2138
|
+
cutToClipboard: 0,
|
|
2139
|
+
copySelectedRowsToClipboard: 0,
|
|
2140
|
+
copySelectedRangeToClipboard: 0,
|
|
2141
|
+
copySelectedRangeDown: 0,
|
|
2142
|
+
pasteFromClipboard: 0
|
|
2143
|
+
}),
|
|
2144
|
+
...p("ExcelExport", {
|
|
2145
|
+
getDataAsExcel: 0,
|
|
2146
|
+
exportDataAsExcel: 0,
|
|
2147
|
+
getSheetDataForExcel: 0,
|
|
2148
|
+
getMultipleSheetsAsExcel: 0,
|
|
2149
|
+
exportMultipleSheetsAsExcel: 0
|
|
2150
|
+
}),
|
|
2151
|
+
...p("SharedMasterDetail", {
|
|
2152
|
+
addDetailGridInfo: 0,
|
|
2153
|
+
removeDetailGridInfo: 0,
|
|
2154
|
+
getDetailGridInfo: 0,
|
|
2155
|
+
forEachDetailGridInfo: 0
|
|
2156
|
+
}),
|
|
2157
|
+
...p("ContextMenu", {
|
|
2158
|
+
showContextMenu: 0
|
|
2159
|
+
}),
|
|
2160
|
+
...p("ColumnMenu", {
|
|
2161
|
+
showColumnChooser: 0,
|
|
2162
|
+
hideColumnChooser: 0
|
|
2163
|
+
}),
|
|
2164
|
+
...p("CellSelection", {
|
|
2165
|
+
getCellRanges: 0,
|
|
2166
|
+
addCellRange: 0,
|
|
2167
|
+
clearRangeSelection: 0,
|
|
2168
|
+
clearCellSelection: 0
|
|
2169
|
+
}),
|
|
2170
|
+
...p("SharedRowGrouping", {
|
|
2171
|
+
setRowGroupColumns: 0,
|
|
2172
|
+
removeRowGroupColumns: 0,
|
|
2173
|
+
addRowGroupColumns: 0,
|
|
2174
|
+
getRowGroupColumns: 0,
|
|
2175
|
+
moveRowGroupColumn: 0
|
|
2176
|
+
}),
|
|
2177
|
+
...p("SharedAggregation", {
|
|
2178
|
+
addAggFuncs: 0,
|
|
2179
|
+
clearAggFuncs: 0,
|
|
2180
|
+
setColumnAggFunc: 0
|
|
2181
|
+
}),
|
|
2182
|
+
...p("SharedPivot", {
|
|
2183
|
+
isPivotMode: 0,
|
|
2184
|
+
getPivotResultColumn: 0,
|
|
2185
|
+
setValueColumns: 0,
|
|
2186
|
+
getValueColumns: 0,
|
|
2187
|
+
removeValueColumns: 0,
|
|
2188
|
+
addValueColumns: 0,
|
|
2189
|
+
setPivotColumns: 0,
|
|
2190
|
+
removePivotColumns: 0,
|
|
2191
|
+
addPivotColumns: 0,
|
|
2192
|
+
getPivotColumns: 0,
|
|
2193
|
+
setPivotResultColumns: 0,
|
|
2194
|
+
getPivotResultColumns: 0
|
|
2195
|
+
}),
|
|
2196
|
+
...p("ServerSideRowModelApi", {
|
|
2197
|
+
getServerSideSelectionState: 0,
|
|
2198
|
+
setServerSideSelectionState: 0,
|
|
2199
|
+
applyServerSideTransaction: 0,
|
|
2200
|
+
applyServerSideTransactionAsync: 0,
|
|
2201
|
+
applyServerSideRowData: 0,
|
|
2202
|
+
retryServerSideLoads: 0,
|
|
2203
|
+
flushServerSideAsyncTransactions: 0,
|
|
2204
|
+
refreshServerSide: 0,
|
|
2205
|
+
getServerSideGroupLevelState: 0
|
|
2206
|
+
}),
|
|
2207
|
+
...p("SideBar", {
|
|
2208
|
+
isSideBarVisible: 0,
|
|
2209
|
+
setSideBarVisible: 0,
|
|
2210
|
+
setSideBarPosition: 0,
|
|
2211
|
+
openToolPanel: 0,
|
|
2212
|
+
closeToolPanel: 0,
|
|
2213
|
+
getOpenedToolPanel: 0,
|
|
2214
|
+
refreshToolPanel: 0,
|
|
2215
|
+
isToolPanelShowing: 0,
|
|
2216
|
+
getToolPanelInstance: 0,
|
|
2217
|
+
getSideBar: 0
|
|
2218
|
+
}),
|
|
2219
|
+
...p("StatusBar", {
|
|
2220
|
+
getStatusPanel: 0
|
|
2221
|
+
})
|
|
2222
|
+
});
|
|
2223
|
+
var Da = class {
|
|
2224
|
+
};
|
|
2225
|
+
Reflect.defineProperty(Da, "name", { value: "GridApi" });
|
|
2226
|
+
var Ea = (
|
|
2227
|
+
/*css*/
|
|
2228
|
+
':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom,.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-floating-bottom{border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}'
|
|
2229
|
+
), Lo = typeof window != "object" || !window?.document?.fonts?.forEach, go = /* @__PURE__ */ new WeakMap(), ht = (e, t, o, r, a, n) => {
|
|
2230
|
+
if (Lo)
|
|
2231
|
+
return;
|
|
2232
|
+
r && (e = `@layer ${CSS.escape(r)} { ${e} }`);
|
|
2233
|
+
let l = go.get(t);
|
|
2234
|
+
if (l || (l = [], go.set(t, l)), l.find((d) => d.css === e))
|
|
2235
|
+
return;
|
|
2236
|
+
const i = document.createElement("style");
|
|
2237
|
+
n && i.setAttribute("nonce", n), i.dataset.agGlobalCss = o, i.textContent = e;
|
|
2238
|
+
const s = { css: e, el: i, priority: a };
|
|
2239
|
+
let c;
|
|
2240
|
+
for (const d of l) {
|
|
2241
|
+
if (d.priority > a)
|
|
2242
|
+
break;
|
|
2243
|
+
c = d;
|
|
2244
|
+
}
|
|
2245
|
+
if (c) {
|
|
2246
|
+
c.el.insertAdjacentElement("afterend", i);
|
|
2247
|
+
const d = l.indexOf(c);
|
|
2248
|
+
l.splice(d + 1, 0, s);
|
|
2249
|
+
} else
|
|
2250
|
+
t.insertBefore(i, t.querySelector(":not(title, meta)")), l.push(s);
|
|
2251
|
+
}, Pa = (e, t, o) => {
|
|
2252
|
+
ht(Ea, e, "core", t, 0, o), Array.from(Sa()).sort((r, a) => r.moduleName.localeCompare(a.moduleName)).forEach(
|
|
2253
|
+
(r) => r.css?.forEach(
|
|
2254
|
+
(a) => ht(a, e, `module-${r.moduleName}`, t, 0, o)
|
|
2255
|
+
)
|
|
2256
|
+
);
|
|
2257
|
+
}, ne = (e) => new $o(e), de = "$default", _a = 0, $o = class {
|
|
2258
|
+
constructor({ feature: e, params: t, modeParams: o = {}, css: r, cssImports: a }) {
|
|
2259
|
+
this.feature = e, this.css = r, this.cssImports = a, this.modeParams = {
|
|
2260
|
+
// NOTE: it's important that default is defined first, putting it
|
|
2261
|
+
// first in iteration order, because when merging params the default
|
|
2262
|
+
// params override any prior modal params, so modal params in this
|
|
2263
|
+
// part need to come after default params to prevent them from being
|
|
2264
|
+
// immediately overridden.
|
|
2265
|
+
[de]: {
|
|
2266
|
+
...o[de] ?? {},
|
|
2267
|
+
...t ?? {}
|
|
2268
|
+
},
|
|
2269
|
+
...o
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
use(e, t, o) {
|
|
2273
|
+
let r = this._inject;
|
|
2274
|
+
if (r == null) {
|
|
2275
|
+
let { css: a } = this;
|
|
2276
|
+
if (a) {
|
|
2277
|
+
const n = `ag-theme-${this.feature ?? "part"}-${++_a}`;
|
|
2278
|
+
typeof a == "function" && (a = a()), a = `:where(.${n}) {
|
|
2279
|
+
${a}
|
|
2280
|
+
}
|
|
2281
|
+
`;
|
|
2282
|
+
for (const l of this.cssImports ?? [])
|
|
2283
|
+
a = `@import url(${JSON.stringify(l)});
|
|
2284
|
+
${a}`;
|
|
2285
|
+
r = { css: a, class: n };
|
|
2286
|
+
} else
|
|
2287
|
+
r = !1;
|
|
2288
|
+
this._inject = r;
|
|
2289
|
+
}
|
|
2290
|
+
return r && e && ht(r.css, e, r.class, t, 1, o), r ? r.class : !1;
|
|
2291
|
+
}
|
|
2292
|
+
}, Ta = (e) => e.replace(/[A-Z]/g, (t) => `-${t}`).toLowerCase(), Go = (e) => `--ag-${Ta(e)}`, ee = (e) => `var(${Go(e)})`, Ma = (e, t, o) => Math.max(t, Math.min(o, e)), za = (e) => {
|
|
2293
|
+
const t = /* @__PURE__ */ new Map();
|
|
2294
|
+
return (o) => {
|
|
2295
|
+
const r = o;
|
|
2296
|
+
return t.has(r) || t.set(r, e(o)), t.get(r);
|
|
2297
|
+
};
|
|
2298
|
+
}, q = (e) => ({ ref: "accentColor", mix: e }), W = (e) => ({ ref: "foregroundColor", mix: e }), Z = (e) => ({
|
|
2299
|
+
ref: "foregroundColor",
|
|
2300
|
+
mix: e,
|
|
2301
|
+
onto: "backgroundColor"
|
|
2302
|
+
}), Aa = (e) => ({
|
|
2303
|
+
ref: "foregroundColor",
|
|
2304
|
+
mix: e,
|
|
2305
|
+
onto: "headerBackgroundColor"
|
|
2306
|
+
}), V = { ref: "backgroundColor" }, Oe = { ref: "foregroundColor" }, ue = { ref: "accentColor" }, ft = {
|
|
2307
|
+
backgroundColor: "#fff",
|
|
2308
|
+
foregroundColor: "#181d1f",
|
|
2309
|
+
borderColor: W(0.15),
|
|
2310
|
+
chromeBackgroundColor: Z(0.02),
|
|
2311
|
+
browserColorScheme: "light"
|
|
2312
|
+
}, Ia = {
|
|
2313
|
+
...ft,
|
|
2314
|
+
textColor: Oe,
|
|
2315
|
+
accentColor: "#2196f3",
|
|
2316
|
+
invalidColor: "#e02525",
|
|
2317
|
+
wrapperBorder: !0,
|
|
2318
|
+
rowBorder: !0,
|
|
2319
|
+
headerRowBorder: !0,
|
|
2320
|
+
footerRowBorder: {
|
|
2321
|
+
ref: "rowBorder"
|
|
2322
|
+
},
|
|
2323
|
+
columnBorder: {
|
|
2324
|
+
style: "solid",
|
|
2325
|
+
width: 1,
|
|
2326
|
+
color: "transparent"
|
|
2327
|
+
},
|
|
2328
|
+
headerColumnBorder: !1,
|
|
2329
|
+
headerColumnBorderHeight: "100%",
|
|
2330
|
+
pinnedColumnBorder: !0,
|
|
2331
|
+
pinnedRowBorder: !0,
|
|
2332
|
+
sidePanelBorder: !0,
|
|
2333
|
+
sideBarPanelWidth: 250,
|
|
2334
|
+
sideBarBackgroundColor: {
|
|
2335
|
+
ref: "chromeBackgroundColor"
|
|
2336
|
+
},
|
|
2337
|
+
sideButtonBarBackgroundColor: {
|
|
2338
|
+
ref: "sideBarBackgroundColor"
|
|
2339
|
+
},
|
|
2340
|
+
sideButtonBarTopPadding: 0,
|
|
2341
|
+
sideButtonSelectedUnderlineWidth: 2,
|
|
2342
|
+
sideButtonSelectedUnderlineColor: "transparent",
|
|
2343
|
+
sideButtonSelectedUnderlineTransitionDuration: 0,
|
|
2344
|
+
sideButtonBackgroundColor: "transparent",
|
|
2345
|
+
sideButtonTextColor: { ref: "textColor" },
|
|
2346
|
+
sideButtonHoverBackgroundColor: { ref: "sideButtonBackgroundColor" },
|
|
2347
|
+
sideButtonHoverTextColor: { ref: "sideButtonTextColor" },
|
|
2348
|
+
sideButtonSelectedBackgroundColor: V,
|
|
2349
|
+
sideButtonSelectedTextColor: { ref: "sideButtonTextColor" },
|
|
2350
|
+
sideButtonBorder: "solid 1px transparent",
|
|
2351
|
+
sideButtonSelectedBorder: !0,
|
|
2352
|
+
sideButtonLeftPadding: { ref: "spacing" },
|
|
2353
|
+
sideButtonRightPadding: { ref: "spacing" },
|
|
2354
|
+
sideButtonVerticalPadding: { calc: "spacing * 3" },
|
|
2355
|
+
fontFamily: [
|
|
2356
|
+
"-apple-system",
|
|
2357
|
+
"BlinkMacSystemFont",
|
|
2358
|
+
"Segoe UI",
|
|
2359
|
+
"Roboto",
|
|
2360
|
+
"Oxygen-Sans",
|
|
2361
|
+
"Ubuntu",
|
|
2362
|
+
"Cantarell",
|
|
2363
|
+
"Helvetica Neue",
|
|
2364
|
+
"sans-serif"
|
|
2365
|
+
],
|
|
2366
|
+
headerBackgroundColor: {
|
|
2367
|
+
ref: "chromeBackgroundColor"
|
|
2368
|
+
},
|
|
2369
|
+
headerFontFamily: {
|
|
2370
|
+
ref: "fontFamily"
|
|
2371
|
+
},
|
|
2372
|
+
cellFontFamily: {
|
|
2373
|
+
ref: "fontFamily"
|
|
2374
|
+
},
|
|
2375
|
+
headerFontWeight: 500,
|
|
2376
|
+
headerFontSize: {
|
|
2377
|
+
ref: "fontSize"
|
|
2378
|
+
},
|
|
2379
|
+
dataFontSize: {
|
|
2380
|
+
ref: "fontSize"
|
|
2381
|
+
},
|
|
2382
|
+
headerTextColor: {
|
|
2383
|
+
ref: "textColor"
|
|
2384
|
+
},
|
|
2385
|
+
headerCellHoverBackgroundColor: "transparent",
|
|
2386
|
+
headerCellMovingBackgroundColor: { ref: "headerCellHoverBackgroundColor" },
|
|
2387
|
+
headerCellBackgroundTransitionDuration: "0.2s",
|
|
2388
|
+
cellTextColor: {
|
|
2389
|
+
ref: "textColor"
|
|
2390
|
+
},
|
|
2391
|
+
subtleTextColor: {
|
|
2392
|
+
ref: "textColor",
|
|
2393
|
+
mix: 0.5
|
|
2394
|
+
},
|
|
2395
|
+
rangeSelectionBorderStyle: "solid",
|
|
2396
|
+
rangeSelectionBorderColor: ue,
|
|
2397
|
+
rangeSelectionBackgroundColor: q(0.2),
|
|
2398
|
+
rangeSelectionChartBackgroundColor: "#0058FF1A",
|
|
2399
|
+
rangeSelectionChartCategoryBackgroundColor: "#00FF841A",
|
|
2400
|
+
rangeSelectionHighlightColor: q(0.5),
|
|
2401
|
+
rangeHeaderHighlightColor: Aa(0.08),
|
|
2402
|
+
rowNumbersSelectedColor: q(0.5),
|
|
2403
|
+
rowHoverColor: q(0.08),
|
|
2404
|
+
columnHoverColor: q(0.05),
|
|
2405
|
+
selectedRowBackgroundColor: q(0.12),
|
|
2406
|
+
modalOverlayBackgroundColor: {
|
|
2407
|
+
ref: "backgroundColor",
|
|
2408
|
+
mix: 0.66
|
|
2409
|
+
},
|
|
2410
|
+
oddRowBackgroundColor: V,
|
|
2411
|
+
borderRadius: 4,
|
|
2412
|
+
wrapperBorderRadius: 8,
|
|
2413
|
+
cellHorizontalPadding: {
|
|
2414
|
+
calc: "spacing * 2 * cellHorizontalPaddingScale"
|
|
2415
|
+
},
|
|
2416
|
+
cellWidgetSpacing: {
|
|
2417
|
+
calc: "spacing * 1.5"
|
|
2418
|
+
},
|
|
2419
|
+
cellHorizontalPaddingScale: 1,
|
|
2420
|
+
rowGroupIndentSize: {
|
|
2421
|
+
calc: "cellWidgetSpacing + iconSize"
|
|
2422
|
+
},
|
|
2423
|
+
valueChangeDeltaUpColor: "#43a047",
|
|
2424
|
+
valueChangeDeltaDownColor: "#e53935",
|
|
2425
|
+
valueChangeValueHighlightBackgroundColor: "#16a08580",
|
|
2426
|
+
spacing: 8,
|
|
2427
|
+
fontSize: 14,
|
|
2428
|
+
rowHeight: {
|
|
2429
|
+
calc: "max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"
|
|
2430
|
+
},
|
|
2431
|
+
rowVerticalPaddingScale: 1,
|
|
2432
|
+
headerHeight: {
|
|
2433
|
+
calc: "max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"
|
|
2434
|
+
},
|
|
2435
|
+
headerVerticalPaddingScale: 1,
|
|
2436
|
+
popupShadow: "0 0 16px #00000026",
|
|
2437
|
+
cardShadow: "0 1px 4px 1px #00000018",
|
|
2438
|
+
dropdownShadow: { ref: "cardShadow" },
|
|
2439
|
+
dragAndDropImageBackgroundColor: V,
|
|
2440
|
+
dragAndDropImageBorder: !0,
|
|
2441
|
+
dragAndDropImageShadow: {
|
|
2442
|
+
ref: "popupShadow"
|
|
2443
|
+
},
|
|
2444
|
+
dragHandleColor: W(0.7),
|
|
2445
|
+
focusShadow: {
|
|
2446
|
+
spread: 3,
|
|
2447
|
+
color: q(0.5)
|
|
2448
|
+
},
|
|
2449
|
+
headerColumnResizeHandleHeight: "30%",
|
|
2450
|
+
headerColumnResizeHandleWidth: 2,
|
|
2451
|
+
headerColumnResizeHandleColor: {
|
|
2452
|
+
ref: "borderColor"
|
|
2453
|
+
},
|
|
2454
|
+
widgetContainerHorizontalPadding: {
|
|
2455
|
+
calc: "spacing * 1.5"
|
|
2456
|
+
},
|
|
2457
|
+
widgetContainerVerticalPadding: {
|
|
2458
|
+
calc: "spacing * 1.5"
|
|
2459
|
+
},
|
|
2460
|
+
widgetHorizontalSpacing: {
|
|
2461
|
+
calc: "spacing * 1.5"
|
|
2462
|
+
},
|
|
2463
|
+
widgetVerticalSpacing: {
|
|
2464
|
+
ref: "spacing"
|
|
2465
|
+
},
|
|
2466
|
+
listItemHeight: {
|
|
2467
|
+
calc: "max(iconSize, dataFontSize) + widgetVerticalSpacing"
|
|
2468
|
+
},
|
|
2469
|
+
iconSize: 16,
|
|
2470
|
+
iconColor: "inherit",
|
|
2471
|
+
iconButtonColor: { ref: "iconColor" },
|
|
2472
|
+
iconButtonBackgroundColor: "transparent",
|
|
2473
|
+
iconButtonBackgroundSpread: 4,
|
|
2474
|
+
iconButtonBorderRadius: 1,
|
|
2475
|
+
iconButtonHoverColor: { ref: "iconButtonColor" },
|
|
2476
|
+
iconButtonHoverBackgroundColor: W(0.1),
|
|
2477
|
+
iconButtonActiveColor: ue,
|
|
2478
|
+
iconButtonActiveBackgroundColor: q(0.28),
|
|
2479
|
+
iconButtonActiveIndicatorColor: ue,
|
|
2480
|
+
toggleButtonWidth: 28,
|
|
2481
|
+
toggleButtonHeight: 18,
|
|
2482
|
+
toggleButtonOnBackgroundColor: ue,
|
|
2483
|
+
toggleButtonOffBackgroundColor: Z(0.3),
|
|
2484
|
+
toggleButtonSwitchBackgroundColor: V,
|
|
2485
|
+
toggleButtonSwitchInset: 2,
|
|
2486
|
+
menuBorder: {
|
|
2487
|
+
color: W(0.2)
|
|
2488
|
+
},
|
|
2489
|
+
menuBackgroundColor: Z(0.03),
|
|
2490
|
+
menuTextColor: Z(0.95),
|
|
2491
|
+
menuShadow: {
|
|
2492
|
+
ref: "popupShadow"
|
|
2493
|
+
},
|
|
2494
|
+
menuSeparatorColor: {
|
|
2495
|
+
ref: "borderColor"
|
|
2496
|
+
},
|
|
2497
|
+
setFilterIndentSize: {
|
|
2498
|
+
ref: "iconSize"
|
|
2499
|
+
},
|
|
2500
|
+
chartMenuPanelWidth: 260,
|
|
2501
|
+
chartMenuLabelColor: W(0.8),
|
|
2502
|
+
dialogShadow: {
|
|
2503
|
+
ref: "popupShadow"
|
|
2504
|
+
},
|
|
2505
|
+
cellEditingBorder: {
|
|
2506
|
+
color: ue
|
|
2507
|
+
},
|
|
2508
|
+
cellEditingShadow: { ref: "cardShadow" },
|
|
2509
|
+
dialogBorder: {
|
|
2510
|
+
color: W(0.2)
|
|
2511
|
+
},
|
|
2512
|
+
panelBackgroundColor: V,
|
|
2513
|
+
panelTitleBarBackgroundColor: {
|
|
2514
|
+
ref: "headerBackgroundColor"
|
|
2515
|
+
},
|
|
2516
|
+
panelTitleBarIconColor: {
|
|
2517
|
+
ref: "headerTextColor"
|
|
2518
|
+
},
|
|
2519
|
+
panelTitleBarTextColor: {
|
|
2520
|
+
ref: "headerTextColor"
|
|
2521
|
+
},
|
|
2522
|
+
panelTitleBarFontWeight: {
|
|
2523
|
+
ref: "headerFontWeight"
|
|
2524
|
+
},
|
|
2525
|
+
panelTitleBarBorder: !0,
|
|
2526
|
+
columnSelectIndentSize: {
|
|
2527
|
+
ref: "iconSize"
|
|
2528
|
+
},
|
|
2529
|
+
toolPanelSeparatorBorder: !0,
|
|
2530
|
+
tooltipBackgroundColor: {
|
|
2531
|
+
ref: "chromeBackgroundColor"
|
|
2532
|
+
},
|
|
2533
|
+
tooltipTextColor: {
|
|
2534
|
+
ref: "textColor"
|
|
2535
|
+
},
|
|
2536
|
+
tooltipBorder: !0,
|
|
2537
|
+
columnDropCellBackgroundColor: W(0.07),
|
|
2538
|
+
columnDropCellTextColor: {
|
|
2539
|
+
ref: "textColor"
|
|
2540
|
+
},
|
|
2541
|
+
columnDropCellDragHandleColor: {
|
|
2542
|
+
ref: "textColor"
|
|
2543
|
+
},
|
|
2544
|
+
columnDropCellBorder: {
|
|
2545
|
+
color: W(0.13)
|
|
2546
|
+
},
|
|
2547
|
+
selectCellBackgroundColor: W(0.07),
|
|
2548
|
+
selectCellBorder: {
|
|
2549
|
+
color: W(0.13)
|
|
2550
|
+
},
|
|
2551
|
+
advancedFilterBuilderButtonBarBorder: !0,
|
|
2552
|
+
advancedFilterBuilderIndentSize: {
|
|
2553
|
+
calc: "spacing * 2 + iconSize"
|
|
2554
|
+
},
|
|
2555
|
+
advancedFilterBuilderJoinPillColor: "#f08e8d",
|
|
2556
|
+
advancedFilterBuilderColumnPillColor: "#a6e194",
|
|
2557
|
+
advancedFilterBuilderOptionPillColor: "#f3c08b",
|
|
2558
|
+
advancedFilterBuilderValuePillColor: "#85c0e4",
|
|
2559
|
+
findMatchColor: Oe,
|
|
2560
|
+
findMatchBackgroundColor: "#ffff00",
|
|
2561
|
+
findActiveMatchColor: Oe,
|
|
2562
|
+
findActiveMatchBackgroundColor: "#ffa500",
|
|
2563
|
+
filterToolPanelGroupIndent: {
|
|
2564
|
+
ref: "spacing"
|
|
2565
|
+
},
|
|
2566
|
+
rowLoadingSkeletonEffectColor: W(0.15),
|
|
2567
|
+
statusBarLabelColor: Oe,
|
|
2568
|
+
statusBarLabelFontWeight: 500,
|
|
2569
|
+
statusBarValueColor: Oe,
|
|
2570
|
+
statusBarValueFontWeight: 500
|
|
2571
|
+
}, Fa = (
|
|
2572
|
+
/*css*/
|
|
2573
|
+
":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}"
|
|
2574
|
+
), Oa = {
|
|
2575
|
+
buttonTextColor: "inherit",
|
|
2576
|
+
buttonFontWeight: "normal",
|
|
2577
|
+
buttonBackgroundColor: "transparent",
|
|
2578
|
+
buttonBorder: !1,
|
|
2579
|
+
buttonBorderRadius: { ref: "borderRadius" },
|
|
2580
|
+
buttonHorizontalPadding: { calc: "spacing * 2" },
|
|
2581
|
+
buttonVerticalPadding: { ref: "spacing" },
|
|
2582
|
+
buttonHoverTextColor: { ref: "buttonTextColor" },
|
|
2583
|
+
buttonHoverBackgroundColor: { ref: "buttonBackgroundColor" },
|
|
2584
|
+
buttonHoverBorder: { ref: "buttonBorder" },
|
|
2585
|
+
buttonActiveTextColor: { ref: "buttonHoverTextColor" },
|
|
2586
|
+
buttonActiveBackgroundColor: { ref: "buttonHoverBackgroundColor" },
|
|
2587
|
+
buttonActiveBorder: { ref: "buttonHoverBorder" },
|
|
2588
|
+
buttonDisabledTextColor: { ref: "inputDisabledTextColor" },
|
|
2589
|
+
buttonDisabledBackgroundColor: { ref: "inputDisabledBackgroundColor" },
|
|
2590
|
+
buttonDisabledBorder: { ref: "inputDisabledBorder" }
|
|
2591
|
+
}, Ra = () => ne({
|
|
2592
|
+
feature: "buttonStyle",
|
|
2593
|
+
params: {
|
|
2594
|
+
...Oa,
|
|
2595
|
+
buttonBackgroundColor: V,
|
|
2596
|
+
buttonBorder: !0,
|
|
2597
|
+
buttonHoverBackgroundColor: { ref: "rowHoverColor" },
|
|
2598
|
+
buttonActiveBorder: { color: ue }
|
|
2599
|
+
},
|
|
2600
|
+
css: Fa
|
|
2601
|
+
}), Na = /* @__PURE__ */ Ra(), Ha = (
|
|
2602
|
+
/*css*/
|
|
2603
|
+
".ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}"
|
|
2604
|
+
), La = () => ne({
|
|
2605
|
+
feature: "columnDropStyle",
|
|
2606
|
+
css: Ha
|
|
2607
|
+
}), Vo = /* @__PURE__ */ La(), $a = [
|
|
2608
|
+
"colorScheme",
|
|
2609
|
+
"color",
|
|
2610
|
+
"length",
|
|
2611
|
+
"scale",
|
|
2612
|
+
"borderStyle",
|
|
2613
|
+
"border",
|
|
2614
|
+
"shadow",
|
|
2615
|
+
"image",
|
|
2616
|
+
"fontFamily",
|
|
2617
|
+
"fontWeight",
|
|
2618
|
+
"duration"
|
|
2619
|
+
], Ga = za((e) => (e = e.toLowerCase(), $a.find((t) => e.endsWith(t.toLowerCase())) ?? "length")), wt = (e) => typeof e == "object" && e?.ref ? ee(e.ref) : typeof e == "string" ? e : typeof e == "number" ? String(e) : !1, Yt = (e) => {
|
|
2620
|
+
if (typeof e == "string")
|
|
2621
|
+
return e;
|
|
2622
|
+
if (e && "ref" in e) {
|
|
2623
|
+
const t = ee(e.ref);
|
|
2624
|
+
return e.mix == null ? t : `color-mix(in srgb, ${e.onto ? ee(e.onto) : "transparent"}, ${t} ${Ma(e.mix * 100, 0, 100)}%)`;
|
|
2625
|
+
}
|
|
2626
|
+
return !1;
|
|
2627
|
+
}, Va = wt, Ee = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : e && "calc" in e ? `calc(${e.calc.replace(/ ?[*/+] ?/g, " $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi, (o) => o[0] === "-" ? o : ` ${ee(o)} `)})` : e && "ref" in e ? ee(e.ref) : !1, ja = wt, Wa = (e, t) => typeof e == "string" ? e : e === !0 ? "solid 1px var(--ag-border-color)" : e === !1 ? t === "columnBorder" ? "solid 1px transparent" : "none" : e && "ref" in e ? ee(e.ref) : jo(e.style ?? "solid") + " " + Ee(e.width ?? 1) + " " + Yt(e.color ?? { ref: "borderColor" }), Ua = (e) => typeof e == "string" ? e : e === !1 ? "none" : e && "ref" in e ? ee(e.ref) : [
|
|
2628
|
+
Ee(e.offsetX ?? 0),
|
|
2629
|
+
Ee(e.offsetY ?? 0),
|
|
2630
|
+
Ee(e.radius ?? 0),
|
|
2631
|
+
Ee(e.spread ?? 0),
|
|
2632
|
+
Yt(e.color ?? { ref: "foregroundColor" })
|
|
2633
|
+
].join(" "), jo = wt, Wo = (e) => typeof e == "string" ? e.includes(",") ? e : uo(e) : e && "googleFont" in e ? Wo(e.googleFont) : e && "ref" in e ? ee(e.ref) : Array.isArray(e) ? e.map((t) => (typeof t == "object" && "googleFont" in t && (t = t.googleFont), uo(t))).join(", ") : !1, uo = (e) => (
|
|
2634
|
+
// don't quote var() expressions or quote safe identifier names, so that
|
|
2635
|
+
// people can specify fonts like sans-serif which are keywords not strings,
|
|
2636
|
+
// or var(--my-var)
|
|
2637
|
+
/^[\w-]+$|\w\(/.test(e) ? e : JSON.stringify(e)
|
|
2638
|
+
), Xa = wt, Uo = (e) => typeof e == "string" ? e : e && "url" in e ? `url(${JSON.stringify(e.url)})` : e && "svg" in e ? Uo({ url: `data:image/svg+xml,${encodeURIComponent(e.svg)}` }) : e && "ref" in e ? ee(e.ref) : !1, Ya = (e, t) => typeof e == "string" ? e : typeof e == "number" ? (e >= 10 && Ho(104, { value: e, param: t }), `${e}s`) : e && "ref" in e ? ee(e.ref) : !1, Za = {
|
|
2639
|
+
color: Yt,
|
|
2640
|
+
colorScheme: Va,
|
|
2641
|
+
length: Ee,
|
|
2642
|
+
scale: ja,
|
|
2643
|
+
border: Wa,
|
|
2644
|
+
borderStyle: jo,
|
|
2645
|
+
shadow: Ua,
|
|
2646
|
+
image: Uo,
|
|
2647
|
+
fontFamily: Wo,
|
|
2648
|
+
fontWeight: Xa,
|
|
2649
|
+
duration: Ya
|
|
2650
|
+
}, Qa = (e, t) => {
|
|
2651
|
+
const o = Ga(e);
|
|
2652
|
+
return Za[o](t, e);
|
|
2653
|
+
}, qa = () => new Ja().withPart(Na).withPart(Vo), Ja = class Xo {
|
|
2654
|
+
constructor(t = []) {
|
|
2655
|
+
this.parts = t;
|
|
2656
|
+
}
|
|
2657
|
+
withPart(t) {
|
|
2658
|
+
return typeof t == "function" && (t = t()), t instanceof $o ? new Xo([...this.parts, t]) : (xa(259, { part: t }, "Invalid part"), this);
|
|
2659
|
+
}
|
|
2660
|
+
withoutPart(t) {
|
|
2661
|
+
return this.withPart(ne({ feature: t }));
|
|
2662
|
+
}
|
|
2663
|
+
withParams(t, o = de) {
|
|
2664
|
+
return this.withPart(
|
|
2665
|
+
ne({
|
|
2666
|
+
modeParams: { [o]: t }
|
|
2667
|
+
})
|
|
2668
|
+
);
|
|
2669
|
+
}
|
|
2670
|
+
/**
|
|
2671
|
+
* Called by a grid instance when it starts using the theme. This installs
|
|
2672
|
+
* the theme's parts into document head, or the shadow DOM if the provided
|
|
2673
|
+
* container is within a shadow root.
|
|
2674
|
+
*/
|
|
2675
|
+
_startUse({ styleContainer: t, cssLayer: o, nonce: r, loadThemeGoogleFonts: a }) {
|
|
2676
|
+
if (Lo)
|
|
2677
|
+
return;
|
|
2678
|
+
en(), Pa(t, o, r);
|
|
2679
|
+
const n = Ka(this);
|
|
2680
|
+
if (n.length > 0)
|
|
2681
|
+
for (const l of n)
|
|
2682
|
+
a && on(l, r);
|
|
2683
|
+
for (const l of this.parts)
|
|
2684
|
+
l.use(t, o, r);
|
|
2685
|
+
}
|
|
2686
|
+
/**
|
|
2687
|
+
* Return CSS that that applies the params of this theme to elements with
|
|
2688
|
+
* the provided class name
|
|
2689
|
+
*/
|
|
2690
|
+
_getCssClass() {
|
|
2691
|
+
return this._cssClassCache ?? (this._cssClassCache = po(this.parts).map((t) => t.use(void 0, void 0, void 0)).filter(Boolean).join(" "));
|
|
2692
|
+
}
|
|
2693
|
+
_getModeParams() {
|
|
2694
|
+
let t = this._paramsCache;
|
|
2695
|
+
if (!t) {
|
|
2696
|
+
const o = {
|
|
2697
|
+
// NOTE: defining the default mode here is important, it ensures
|
|
2698
|
+
// that the default mode is first in iteration order, which puts
|
|
2699
|
+
// it first in outputted CSS, allowing other modes to override it
|
|
2700
|
+
[de]: { ...Ia }
|
|
2701
|
+
};
|
|
2702
|
+
for (const r of po(this.parts))
|
|
2703
|
+
for (const a of Object.keys(r.modeParams)) {
|
|
2704
|
+
const n = r.modeParams[a];
|
|
2705
|
+
if (n) {
|
|
2706
|
+
const l = o[a] ?? (o[a] = {}), i = /* @__PURE__ */ new Set();
|
|
2707
|
+
for (const s of Object.keys(n)) {
|
|
2708
|
+
const c = n[s];
|
|
2709
|
+
c !== void 0 && (l[s] = c, i.add(s));
|
|
2710
|
+
}
|
|
2711
|
+
if (a === de)
|
|
2712
|
+
for (const s of Object.keys(o)) {
|
|
2713
|
+
const c = o[s];
|
|
2714
|
+
if (s !== de)
|
|
2715
|
+
for (const d of i)
|
|
2716
|
+
delete c[d];
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
this._paramsCache = t = o;
|
|
2721
|
+
}
|
|
2722
|
+
return t;
|
|
2723
|
+
}
|
|
2724
|
+
/**
|
|
2725
|
+
* Return the CSS chunk that is inserted into the grid DOM, and will
|
|
2726
|
+
* therefore be removed automatically when the grid is destroyed or it
|
|
2727
|
+
* starts to use a new theme.
|
|
2728
|
+
*
|
|
2729
|
+
* @param className a unique class name on the grid wrapper used to scope the returned CSS to the grid instance
|
|
2730
|
+
*/
|
|
2731
|
+
_getPerGridCss(t) {
|
|
2732
|
+
const o = "##SELECTOR##";
|
|
2733
|
+
let r = this._paramsCssCache;
|
|
2734
|
+
if (!r) {
|
|
2735
|
+
let a = "", n = "";
|
|
2736
|
+
const l = this._getModeParams();
|
|
2737
|
+
for (const s of Object.keys(l)) {
|
|
2738
|
+
const c = l[s];
|
|
2739
|
+
if (s !== de) {
|
|
2740
|
+
const u = `:where([data-ag-theme-mode="${typeof CSS == "object" ? CSS.escape(s) : s}"]) & {
|
|
2741
|
+
`;
|
|
2742
|
+
a += u, n += u;
|
|
2743
|
+
}
|
|
2744
|
+
for (const d of Object.keys(c).sort()) {
|
|
2745
|
+
const u = c[d], b = Qa(d, u);
|
|
2746
|
+
if (b === !1)
|
|
2747
|
+
Ho(107, { key: d, value: u });
|
|
2748
|
+
else {
|
|
2749
|
+
const y = Go(d), w = y.replace("--ag-", "--ag-inherited-");
|
|
2750
|
+
a += ` ${y}: var(${w}, ${b});
|
|
2751
|
+
`, n += ` ${w}: var(${y});
|
|
2752
|
+
`;
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
s !== de && (a += `}
|
|
2756
|
+
`, n += `}
|
|
2757
|
+
`);
|
|
2758
|
+
}
|
|
2759
|
+
let i = `${o} {
|
|
2760
|
+
${a}}
|
|
2761
|
+
`;
|
|
2762
|
+
i += `:has(> ${o}):not(${o}) {
|
|
2763
|
+
${n}}
|
|
2764
|
+
`, this._paramsCssCache = r = i;
|
|
2765
|
+
}
|
|
2766
|
+
return r.replaceAll(o, `:where(.${t})`);
|
|
2767
|
+
}
|
|
2768
|
+
}, po = (e) => {
|
|
2769
|
+
const t = /* @__PURE__ */ new Map();
|
|
2770
|
+
for (const r of e)
|
|
2771
|
+
t.set(r.feature, r);
|
|
2772
|
+
const o = [];
|
|
2773
|
+
for (const r of e)
|
|
2774
|
+
(!r.feature || t.get(r.feature) === r) && o.push(r);
|
|
2775
|
+
return o;
|
|
2776
|
+
}, Ka = (e) => {
|
|
2777
|
+
const t = /* @__PURE__ */ new Set(), o = (n) => {
|
|
2778
|
+
if (Array.isArray(n))
|
|
2779
|
+
n.forEach(o);
|
|
2780
|
+
else {
|
|
2781
|
+
const l = n?.googleFont;
|
|
2782
|
+
typeof l == "string" && t.add(l);
|
|
2783
|
+
}
|
|
2784
|
+
};
|
|
2785
|
+
return Object.values(e._getModeParams()).flatMap((n) => Object.values(n)).forEach(o), Array.from(t).sort();
|
|
2786
|
+
}, ho = !1, en = () => {
|
|
2787
|
+
if (!ho) {
|
|
2788
|
+
ho = !0;
|
|
2789
|
+
for (const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))
|
|
2790
|
+
e.remove();
|
|
2791
|
+
}
|
|
2792
|
+
}, tn = /* @__PURE__ */ new Set(), on = async (e, t) => {
|
|
2793
|
+
tn.add(e);
|
|
2794
|
+
const o = `@import url('https://${rn}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
2795
|
+
`;
|
|
2796
|
+
ht(o, document.head, `googleFont:${e}`, void 0, 0, t);
|
|
2797
|
+
}, rn = "fonts.googleapis.com", an = (
|
|
2798
|
+
/*css*/
|
|
2799
|
+
'.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}'
|
|
2800
|
+
), nn = () => ne({
|
|
2801
|
+
feature: "checkboxStyle",
|
|
2802
|
+
params: {
|
|
2803
|
+
checkboxBorderWidth: 1,
|
|
2804
|
+
checkboxBorderRadius: {
|
|
2805
|
+
ref: "borderRadius"
|
|
2806
|
+
},
|
|
2807
|
+
checkboxUncheckedBackgroundColor: V,
|
|
2808
|
+
checkboxUncheckedBorderColor: Z(0.3),
|
|
2809
|
+
checkboxCheckedBackgroundColor: ue,
|
|
2810
|
+
checkboxCheckedBorderColor: { ref: "checkboxCheckedBackgroundColor" },
|
|
2811
|
+
checkboxCheckedShapeImage: {
|
|
2812
|
+
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'
|
|
2813
|
+
},
|
|
2814
|
+
checkboxCheckedShapeColor: V,
|
|
2815
|
+
checkboxIndeterminateBackgroundColor: Z(0.3),
|
|
2816
|
+
checkboxIndeterminateBorderColor: { ref: "checkboxIndeterminateBackgroundColor" },
|
|
2817
|
+
checkboxIndeterminateShapeImage: {
|
|
2818
|
+
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'
|
|
2819
|
+
},
|
|
2820
|
+
checkboxIndeterminateShapeColor: V,
|
|
2821
|
+
radioCheckedShapeImage: {
|
|
2822
|
+
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'
|
|
2823
|
+
}
|
|
2824
|
+
},
|
|
2825
|
+
css: an
|
|
2826
|
+
}), ln = /* @__PURE__ */ nn(), Yo = () => ({
|
|
2827
|
+
...ft,
|
|
2828
|
+
backgroundColor: "hsl(217, 0%, 17%)",
|
|
2829
|
+
foregroundColor: "#FFF",
|
|
2830
|
+
chromeBackgroundColor: Z(0.05),
|
|
2831
|
+
rowHoverColor: q(0.15),
|
|
2832
|
+
selectedRowBackgroundColor: q(0.2),
|
|
2833
|
+
menuBackgroundColor: Z(0.1),
|
|
2834
|
+
browserColorScheme: "dark",
|
|
2835
|
+
popupShadow: "0 0px 20px #000A",
|
|
2836
|
+
cardShadow: "0 1px 4px 1px #000A",
|
|
2837
|
+
advancedFilterBuilderJoinPillColor: "#7a3a37",
|
|
2838
|
+
advancedFilterBuilderColumnPillColor: "#355f2d",
|
|
2839
|
+
advancedFilterBuilderOptionPillColor: "#5a3168",
|
|
2840
|
+
advancedFilterBuilderValuePillColor: "#374c86",
|
|
2841
|
+
findMatchColor: V,
|
|
2842
|
+
findActiveMatchColor: V,
|
|
2843
|
+
checkboxUncheckedBorderColor: Z(0.4),
|
|
2844
|
+
toggleButtonOffBackgroundColor: Z(0.4)
|
|
2845
|
+
}), sn = () => ({
|
|
2846
|
+
...Yo(),
|
|
2847
|
+
backgroundColor: "#1f2836"
|
|
2848
|
+
}), cn = () => ne({
|
|
2849
|
+
feature: "colorScheme",
|
|
2850
|
+
params: ft,
|
|
2851
|
+
modeParams: {
|
|
2852
|
+
light: ft,
|
|
2853
|
+
dark: Yo(),
|
|
2854
|
+
"dark-blue": sn()
|
|
2855
|
+
}
|
|
2856
|
+
}), dn = /* @__PURE__ */ cn(), Zo = {
|
|
2857
|
+
aggregation: '<path d="M18 7V4H6l6 8-6 8h12v-3"/>',
|
|
2858
|
+
arrows: '<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',
|
|
2859
|
+
asc: '<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',
|
|
2860
|
+
cancel: '<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',
|
|
2861
|
+
chart: '<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',
|
|
2862
|
+
"color-picker": '<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',
|
|
2863
|
+
columns: '<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',
|
|
2864
|
+
contracted: '<path d="m9 18 6-6-6-6"/>',
|
|
2865
|
+
copy: '<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',
|
|
2866
|
+
cross: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
|
|
2867
|
+
csv: '<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',
|
|
2868
|
+
cut: '<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',
|
|
2869
|
+
desc: '<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',
|
|
2870
|
+
down: '<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',
|
|
2871
|
+
excel: '<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',
|
|
2872
|
+
expanded: '<path d="m15 18-6-6 6-6"/>',
|
|
2873
|
+
"eye-slash": '<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',
|
|
2874
|
+
eye: '<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',
|
|
2875
|
+
filter: '<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',
|
|
2876
|
+
first: '<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',
|
|
2877
|
+
group: '<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',
|
|
2878
|
+
last: '<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',
|
|
2879
|
+
left: '<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',
|
|
2880
|
+
linked: '<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',
|
|
2881
|
+
loading: '<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',
|
|
2882
|
+
maximize: '<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',
|
|
2883
|
+
menu: '<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',
|
|
2884
|
+
"menu-alt": '<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',
|
|
2885
|
+
minimize: '<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',
|
|
2886
|
+
minus: '<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',
|
|
2887
|
+
next: '<path d="m9 18 6-6-6-6"/>',
|
|
2888
|
+
none: '<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',
|
|
2889
|
+
"not-allowed": '<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',
|
|
2890
|
+
paste: '<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',
|
|
2891
|
+
pin: '<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',
|
|
2892
|
+
pivot: '<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',
|
|
2893
|
+
plus: '<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',
|
|
2894
|
+
previous: '<path d="m15 18-6-6 6-6"/>',
|
|
2895
|
+
right: '<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',
|
|
2896
|
+
save: '<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',
|
|
2897
|
+
"small-left": '<path d="m15 18-6-6 6-6"/>',
|
|
2898
|
+
"small-right": '<path d="m9 18 6-6-6-6"/>',
|
|
2899
|
+
tick: '<path d="M20 6 9 17l-5-5"/>',
|
|
2900
|
+
"tree-closed": '<path d="m9 18 6-6-6-6"/>',
|
|
2901
|
+
"tree-indeterminate": '<path d="M5 12h14"/>',
|
|
2902
|
+
"tree-open": '<path d="m6 9 6 6 6-6"/>',
|
|
2903
|
+
unlinked: '<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',
|
|
2904
|
+
up: '<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',
|
|
2905
|
+
grip: '<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',
|
|
2906
|
+
settings: '<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'
|
|
2907
|
+
}, Qo = {
|
|
2908
|
+
"small-down": '<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',
|
|
2909
|
+
"small-up": '<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>'
|
|
2910
|
+
}, gn = (e = {}) => {
|
|
2911
|
+
let t = "";
|
|
2912
|
+
for (const o of [...Object.keys(Zo), ...Object.keys(Qo)]) {
|
|
2913
|
+
const r = un(o, e.strokeWidth);
|
|
2914
|
+
t += `.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
|
|
2915
|
+
`;
|
|
2916
|
+
}
|
|
2917
|
+
return t;
|
|
2918
|
+
}, un = (e, t = 1.5) => {
|
|
2919
|
+
const o = Qo[e];
|
|
2920
|
+
if (o)
|
|
2921
|
+
return o;
|
|
2922
|
+
const r = Zo[e];
|
|
2923
|
+
if (!r)
|
|
2924
|
+
throw new Error(`Missing icon data for ${e}`);
|
|
2925
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>` + r + "</svg>";
|
|
2926
|
+
}, pn = (e = {}) => ne({
|
|
2927
|
+
feature: "iconSet",
|
|
2928
|
+
css: () => gn(e)
|
|
2929
|
+
}), hn = /* @__PURE__ */ pn(), fn = (
|
|
2930
|
+
/*css*/
|
|
2931
|
+
':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}:where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}'
|
|
2932
|
+
), vn = (
|
|
2933
|
+
/*css*/
|
|
2934
|
+
":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){&:focus{box-shadow:var(--ag-focus-shadow)}}"
|
|
2935
|
+
), mn = {
|
|
2936
|
+
inputBackgroundColor: "transparent",
|
|
2937
|
+
inputBorder: !1,
|
|
2938
|
+
inputBorderRadius: 0,
|
|
2939
|
+
inputTextColor: {
|
|
2940
|
+
ref: "textColor"
|
|
2941
|
+
},
|
|
2942
|
+
inputPlaceholderTextColor: {
|
|
2943
|
+
ref: "inputTextColor",
|
|
2944
|
+
mix: 0.5
|
|
2945
|
+
},
|
|
2946
|
+
inputPaddingStart: 0,
|
|
2947
|
+
inputHeight: {
|
|
2948
|
+
calc: "max(iconSize, fontSize) + spacing * 2"
|
|
2949
|
+
},
|
|
2950
|
+
inputFocusBackgroundColor: {
|
|
2951
|
+
ref: "inputBackgroundColor"
|
|
2952
|
+
},
|
|
2953
|
+
inputFocusBorder: {
|
|
2954
|
+
ref: "inputBorder"
|
|
2955
|
+
},
|
|
2956
|
+
inputFocusShadow: "none",
|
|
2957
|
+
inputFocusTextColor: {
|
|
2958
|
+
ref: "inputTextColor"
|
|
2959
|
+
},
|
|
2960
|
+
inputDisabledBackgroundColor: {
|
|
2961
|
+
ref: "inputBackgroundColor"
|
|
2962
|
+
},
|
|
2963
|
+
inputDisabledBorder: {
|
|
2964
|
+
ref: "inputBorder"
|
|
2965
|
+
},
|
|
2966
|
+
inputDisabledTextColor: {
|
|
2967
|
+
ref: "inputTextColor"
|
|
2968
|
+
},
|
|
2969
|
+
inputInvalidBackgroundColor: {
|
|
2970
|
+
ref: "inputBackgroundColor"
|
|
2971
|
+
},
|
|
2972
|
+
inputInvalidBorder: {
|
|
2973
|
+
ref: "inputBorder"
|
|
2974
|
+
},
|
|
2975
|
+
inputInvalidTextColor: {
|
|
2976
|
+
ref: "inputTextColor"
|
|
2977
|
+
},
|
|
2978
|
+
inputIconColor: {
|
|
2979
|
+
ref: "inputTextColor"
|
|
2980
|
+
},
|
|
2981
|
+
pickerButtonBorder: !1,
|
|
2982
|
+
pickerButtonFocusBorder: { ref: "inputFocusBorder" },
|
|
2983
|
+
pickerButtonBackgroundColor: { ref: "backgroundColor" },
|
|
2984
|
+
pickerButtonFocusBackgroundColor: { ref: "backgroundColor" },
|
|
2985
|
+
pickerListBorder: !1,
|
|
2986
|
+
pickerListBackgroundColor: { ref: "backgroundColor" }
|
|
2987
|
+
}, bn = () => ne({
|
|
2988
|
+
feature: "inputStyle",
|
|
2989
|
+
params: {
|
|
2990
|
+
...mn,
|
|
2991
|
+
inputBackgroundColor: V,
|
|
2992
|
+
inputBorder: !0,
|
|
2993
|
+
inputBorderRadius: {
|
|
2994
|
+
ref: "borderRadius"
|
|
2995
|
+
},
|
|
2996
|
+
inputPaddingStart: {
|
|
2997
|
+
ref: "spacing"
|
|
2998
|
+
},
|
|
2999
|
+
inputFocusBorder: {
|
|
3000
|
+
color: ue
|
|
3001
|
+
},
|
|
3002
|
+
inputFocusShadow: {
|
|
3003
|
+
ref: "focusShadow"
|
|
3004
|
+
},
|
|
3005
|
+
inputDisabledBackgroundColor: Z(0.06),
|
|
3006
|
+
inputDisabledTextColor: {
|
|
3007
|
+
ref: "textColor",
|
|
3008
|
+
mix: 0.5
|
|
3009
|
+
},
|
|
3010
|
+
inputInvalidBorder: {
|
|
3011
|
+
color: { ref: "invalidColor" }
|
|
3012
|
+
},
|
|
3013
|
+
pickerButtonBorder: !0,
|
|
3014
|
+
pickerListBorder: !0
|
|
3015
|
+
},
|
|
3016
|
+
css: () => fn + vn
|
|
3017
|
+
}), wn = /* @__PURE__ */ bn(), yn = (
|
|
3018
|
+
/*css*/
|
|
3019
|
+
'.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}'
|
|
3020
|
+
), Cn = {
|
|
3021
|
+
tabBarBackgroundColor: "transparent",
|
|
3022
|
+
tabBarHorizontalPadding: 0,
|
|
3023
|
+
tabBarTopPadding: 0,
|
|
3024
|
+
tabBackgroundColor: "transparent",
|
|
3025
|
+
tabTextColor: {
|
|
3026
|
+
ref: "textColor"
|
|
3027
|
+
},
|
|
3028
|
+
tabHorizontalPadding: {
|
|
3029
|
+
ref: "spacing"
|
|
3030
|
+
},
|
|
3031
|
+
tabTopPadding: {
|
|
3032
|
+
ref: "spacing"
|
|
3033
|
+
},
|
|
3034
|
+
tabBottomPadding: {
|
|
3035
|
+
ref: "spacing"
|
|
3036
|
+
},
|
|
3037
|
+
tabSpacing: "0",
|
|
3038
|
+
tabHoverBackgroundColor: {
|
|
3039
|
+
ref: "tabBackgroundColor"
|
|
3040
|
+
},
|
|
3041
|
+
tabHoverTextColor: {
|
|
3042
|
+
ref: "tabTextColor"
|
|
3043
|
+
},
|
|
3044
|
+
tabSelectedBackgroundColor: {
|
|
3045
|
+
ref: "tabBackgroundColor"
|
|
3046
|
+
},
|
|
3047
|
+
tabSelectedTextColor: {
|
|
3048
|
+
ref: "tabTextColor"
|
|
3049
|
+
},
|
|
3050
|
+
tabSelectedBorderWidth: 1,
|
|
3051
|
+
tabSelectedBorderColor: "transparent",
|
|
3052
|
+
tabSelectedUnderlineColor: "transparent",
|
|
3053
|
+
tabSelectedUnderlineWidth: 0,
|
|
3054
|
+
tabSelectedUnderlineTransitionDuration: 0,
|
|
3055
|
+
tabBarBorder: !1
|
|
3056
|
+
}, xn = () => ne({
|
|
3057
|
+
feature: "tabStyle",
|
|
3058
|
+
params: {
|
|
3059
|
+
...Cn,
|
|
3060
|
+
tabBarBorder: !0,
|
|
3061
|
+
tabBarBackgroundColor: W(0.05),
|
|
3062
|
+
tabTextColor: {
|
|
3063
|
+
ref: "textColor",
|
|
3064
|
+
mix: 0.7
|
|
3065
|
+
},
|
|
3066
|
+
tabSelectedTextColor: {
|
|
3067
|
+
ref: "textColor"
|
|
3068
|
+
},
|
|
3069
|
+
tabHoverTextColor: {
|
|
3070
|
+
ref: "textColor"
|
|
3071
|
+
},
|
|
3072
|
+
tabSelectedBorderColor: {
|
|
3073
|
+
ref: "borderColor"
|
|
3074
|
+
},
|
|
3075
|
+
tabSelectedBackgroundColor: V
|
|
3076
|
+
},
|
|
3077
|
+
css: yn
|
|
3078
|
+
}), kn = /* @__PURE__ */ xn(), Sn = () => qa().withPart(ln).withPart(dn).withPart(hn).withPart(kn).withPart(wn).withPart(Vo).withParams({
|
|
3079
|
+
fontFamily: [
|
|
3080
|
+
{ googleFont: "IBM Plex Sans" },
|
|
3081
|
+
"-apple-system",
|
|
3082
|
+
"BlinkMacSystemFont",
|
|
3083
|
+
"Segoe UI",
|
|
3084
|
+
"Roboto",
|
|
3085
|
+
"Oxygen-Sans",
|
|
3086
|
+
"Ubuntu"
|
|
3087
|
+
]
|
|
3088
|
+
}), Bn = /* @__PURE__ */ Sn();
|
|
3089
|
+
Bn.withParams({
|
|
3090
|
+
headerHeight: "30px",
|
|
3091
|
+
headerBackgroundColor: "white",
|
|
3092
|
+
headerCellHoverBackgroundColor: "rgba(33,150,243,0.18)",
|
|
3093
|
+
headerColumnResizeHandleHeight: "50%",
|
|
3094
|
+
headerColumnResizeHandleWidth: "3px",
|
|
3095
|
+
headerColumnBorder: "none",
|
|
3096
|
+
headerFontWeight: "bold",
|
|
3097
|
+
headerFontSize: "14px",
|
|
3098
|
+
fontFamily: "Inter, sans-serif",
|
|
3099
|
+
fontSize: 14,
|
|
3100
|
+
headerRowBorder: !0
|
|
3101
|
+
});
|
|
3102
|
+
const Dn = ["onClick", "data-active", "aria-label"], Rn = /* @__PURE__ */ he({
|
|
3103
|
+
__name: "PvSegmentedControl",
|
|
3104
|
+
props: {
|
|
3105
|
+
options: {},
|
|
3106
|
+
iconOnly: { type: Boolean, default: !1 },
|
|
3107
|
+
modelValue: {},
|
|
3108
|
+
large: { type: Boolean, default: !1 }
|
|
3109
|
+
},
|
|
3110
|
+
emits: ["update:modelValue"],
|
|
3111
|
+
setup(e, { emit: t }) {
|
|
3112
|
+
const o = t, r = (n) => {
|
|
3113
|
+
o("update:modelValue", n);
|
|
3114
|
+
}, a = re(() => ({
|
|
3115
|
+
"pv-segmented-control": !e.large,
|
|
3116
|
+
"pv-segmented-control-large": e.large,
|
|
3117
|
+
"pv-segmented-control-icon": e.iconOnly
|
|
3118
|
+
}));
|
|
3119
|
+
return (n, l) => (M(), R("div", {
|
|
3120
|
+
class: Te(a.value)
|
|
3121
|
+
}, [
|
|
3122
|
+
(M(!0), R(It, null, wo(n.options, (i) => (M(), R("button", {
|
|
3123
|
+
key: i.value,
|
|
3124
|
+
onClick: (s) => r(i.value),
|
|
3125
|
+
"data-active": n.modelValue === i.value ? !0 : null,
|
|
3126
|
+
"aria-label": n.iconOnly ? i.label : void 0
|
|
3127
|
+
}, [
|
|
3128
|
+
i.iconPosition == "left" ? (M(), At(lt(st), {
|
|
3129
|
+
key: 0,
|
|
3130
|
+
name: i.iconName
|
|
3131
|
+
}, null, 8, ["name"])) : yt("", !0),
|
|
3132
|
+
n.iconOnly ? yt("", !0) : (M(), R(It, { key: 1 }, [
|
|
3133
|
+
bo(vt(i.label), 1)
|
|
3134
|
+
], 64)),
|
|
3135
|
+
i.iconPosition == "right" ? (M(), At(lt(st), {
|
|
3136
|
+
key: 2,
|
|
3137
|
+
name: i.iconName
|
|
3138
|
+
}, null, 8, ["name"])) : yt("", !0)
|
|
3139
|
+
], 8, Dn))), 128))
|
|
3140
|
+
], 2));
|
|
3141
|
+
}
|
|
3142
|
+
}), En = {
|
|
3143
|
+
role: "list",
|
|
3144
|
+
class: "pv-tab-list"
|
|
3145
|
+
}, Pn = ["onClick", "data-active"], _n = {
|
|
3146
|
+
class: "pv-text-body-xs",
|
|
3147
|
+
style: { "font-weight": "500" }
|
|
3148
|
+
}, Tn = /* @__PURE__ */ he({
|
|
3149
|
+
__name: "PvTabList",
|
|
3150
|
+
props: {
|
|
3151
|
+
modelValue: {},
|
|
3152
|
+
options: {}
|
|
3153
|
+
},
|
|
3154
|
+
emits: ["update:modelValue"],
|
|
3155
|
+
setup(e, { emit: t }) {
|
|
3156
|
+
const o = t, r = (a) => {
|
|
3157
|
+
o("update:modelValue", a);
|
|
3158
|
+
};
|
|
3159
|
+
return (a, n) => (M(), R("div", null, [
|
|
3160
|
+
Xe("ul", En, [
|
|
3161
|
+
(M(!0), R(It, null, wo(a.options, (l) => (M(), R("li", {
|
|
3162
|
+
key: l.value,
|
|
3163
|
+
style: { cursor: "pointer" },
|
|
3164
|
+
onClick: (i) => r(l.value),
|
|
3165
|
+
"data-active": a.modelValue === l.value ? !0 : null
|
|
3166
|
+
}, [
|
|
3167
|
+
Xe("button", _n, vt(l.label), 1)
|
|
3168
|
+
], 8, Pn))), 128))
|
|
3169
|
+
])
|
|
3170
|
+
]));
|
|
3171
|
+
}
|
|
3172
|
+
}), Nn = /* @__PURE__ */ Ye(Tn, [["__scopeId", "data-v-498bf523"]]);
|
|
3173
|
+
export {
|
|
3174
|
+
In as PvBadge,
|
|
3175
|
+
An as PvButton,
|
|
3176
|
+
Fn as PvChip,
|
|
3177
|
+
On as PvDropdown,
|
|
3178
|
+
st as PvIcon,
|
|
3179
|
+
aa as PvPopover,
|
|
3180
|
+
Rn as PvSegmentedControl,
|
|
3181
|
+
Nn as PvTabList
|
|
3182
|
+
};
|