@opengis/table 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DataTable.vue.d.ts +5 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/EditableCell.vue.d.ts +1 -0
- package/dist/components/EditableCell.vue.d.ts.map +1 -1
- package/dist/index.mjs +653 -646
- package/dist/index.umd.js +8 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +57 -57
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as hr from "vue";
|
|
2
|
-
import { getCurrentInstance as mn, defineComponent as ae, useAttrs as gn, ref as M, computed as q, onUnmounted as us, onMounted as Ge, watch as
|
|
2
|
+
import { getCurrentInstance as mn, defineComponent as ae, useAttrs as gn, ref as M, computed as q, onUnmounted as us, onMounted as Ge, watch as De, onBeforeUnmount as vn, createElementBlock as E, openBlock as v, Fragment as ne, createElementVNode as d, createBlock as $e, normalizeClass as L, unref as X, createStaticVNode as ds, Teleport as yn, createCommentVNode as te, normalizeStyle as Pt, toDisplayString as D, withDirectives as ke, vModelText as St, withModifiers as ot, renderList as Se, createTextVNode as be, nextTick as bn, renderSlot as Ie, withKeys as Kt, vModelSelect as mr, useSlots as xn, provide as gr, withCtx as vr, resolveDynamicComponent as bt, createVNode as yr, inject as br, vShow as En, vModelCheckbox as xr, vModelRadio as Wt } from "vue";
|
|
3
3
|
const Bs = {
|
|
4
4
|
en: {
|
|
5
5
|
choose: "Оберіть колонки для відображення",
|
|
@@ -50,33 +50,33 @@ function fs() {
|
|
|
50
50
|
const e = mn();
|
|
51
51
|
return e.appContext.config.globalProperties.$i18n ? e.appContext.config.globalProperties.$t : Er;
|
|
52
52
|
}
|
|
53
|
-
const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, wr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, Sr = ["placeholder"],
|
|
53
|
+
const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, wr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, Sr = ["placeholder"], Nr = { class: "p-1 pt-3 max-h-80 overflow-y-auto" }, _r = { class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500" }, Cr = ["onClick"], Tr = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none" }, Or = ["value"], Ir = /* @__PURE__ */ ae({
|
|
54
54
|
__name: "ColumnsSettings",
|
|
55
55
|
props: {
|
|
56
56
|
columns: {}
|
|
57
57
|
},
|
|
58
58
|
emits: ["update:columns"],
|
|
59
59
|
setup(e, { emit: t }) {
|
|
60
|
-
const s = fs(), n = e, r = t, i = gn(), o = M(!1), a = M(""), l = M(n.columns), c = M(null), m = M(null), u = M(null),
|
|
61
|
-
w.detail.key === "locale" && (
|
|
60
|
+
const s = fs(), n = e, r = t, i = gn(), o = M(!1), a = M(""), l = M(n.columns), c = M(null), m = M(null), u = M(null), f = M({ top: 0, left: 0 }), h = q(() => a.value ? l.value.filter((w) => w.ua.toLowerCase().includes(a.value.toLowerCase())) : l.value), x = M("uk"), y = (w) => {
|
|
61
|
+
w.detail.key === "locale" && (x.value = w.detail.newValue);
|
|
62
62
|
};
|
|
63
63
|
us(() => {
|
|
64
64
|
window.removeEventListener("storage", y);
|
|
65
65
|
}), Ge(() => {
|
|
66
|
-
window.addEventListener("storage", y),
|
|
67
|
-
}),
|
|
66
|
+
window.addEventListener("storage", y), x.value = localStorage.locale;
|
|
67
|
+
}), De(l, (w) => {
|
|
68
68
|
r("update:columns", w);
|
|
69
|
-
}, { deep: !0 }),
|
|
69
|
+
}, { deep: !0 }), De(() => n.columns, (w) => {
|
|
70
70
|
JSON.stringify(w) !== JSON.stringify(l.value) && (l.value = [...w]);
|
|
71
71
|
}, { deep: !0 });
|
|
72
|
-
function
|
|
72
|
+
function O(w) {
|
|
73
73
|
Object.assign(w, { hidden: !w.hidden });
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function N() {
|
|
76
76
|
o.value = !o.value, bn(() => {
|
|
77
77
|
if (o.value && (u.value?.focus(), c.value && m.value)) {
|
|
78
78
|
const w = c.value.getBoundingClientRect();
|
|
79
|
-
|
|
79
|
+
f.value = {
|
|
80
80
|
top: w.bottom + window.scrollY + 5,
|
|
81
81
|
left: w.left + window.scrollX - 220
|
|
82
82
|
};
|
|
@@ -90,26 +90,26 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
90
90
|
document.addEventListener("click", R, !0);
|
|
91
91
|
}), vn(() => {
|
|
92
92
|
document.removeEventListener("click", R, !0);
|
|
93
|
-
}), (w, k) => (v(), E(
|
|
94
|
-
|
|
95
|
-
onClick:
|
|
93
|
+
}), (w, k) => (v(), E(ne, null, [
|
|
94
|
+
d("button", {
|
|
95
|
+
onClick: N,
|
|
96
96
|
ref_key: "buttonRef",
|
|
97
97
|
ref: c,
|
|
98
98
|
class: L([[X(i).class], "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])
|
|
99
99
|
}, k[2] || (k[2] = [
|
|
100
100
|
ds('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>', 1)
|
|
101
101
|
]), 2),
|
|
102
|
-
(v(),
|
|
102
|
+
(v(), $e(yn, { to: "body" }, [
|
|
103
103
|
o.value ? (v(), E("div", {
|
|
104
104
|
key: 0,
|
|
105
105
|
ref_key: "modalRef",
|
|
106
106
|
ref: m,
|
|
107
107
|
class: "fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",
|
|
108
|
-
style: Pt([{ position: "fixed" }, { top: `${
|
|
108
|
+
style: Pt([{ position: "fixed" }, { top: `${f.value.top}px`, left: `${f.value.left}px` }])
|
|
109
109
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
ke(
|
|
110
|
+
d("div", kr, D(X(s)("table.columns")), 1),
|
|
111
|
+
d("div", wr, [
|
|
112
|
+
ke(d("input", {
|
|
113
113
|
type: "text",
|
|
114
114
|
ref_key: "searchInput",
|
|
115
115
|
ref: u,
|
|
@@ -120,29 +120,29 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
120
120
|
[St, a.value]
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
d("div", Nr, [
|
|
124
|
+
d("span", _r, D(X(s)("table.choose")), 1),
|
|
125
|
+
d("div", {
|
|
126
126
|
class: "space-y-1",
|
|
127
127
|
onClick: k[1] || (k[1] = ot(() => {
|
|
128
128
|
}, ["stop"]))
|
|
129
129
|
}, [
|
|
130
|
-
(v(!0), E(
|
|
130
|
+
(v(!0), E(ne, null, Se(h.value, (C) => (v(), E("div", {
|
|
131
131
|
key: C.name,
|
|
132
132
|
class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",
|
|
133
|
-
onClick: (
|
|
133
|
+
onClick: (T) => O(C)
|
|
134
134
|
}, [
|
|
135
|
-
|
|
136
|
-
be(D(C[
|
|
137
|
-
|
|
135
|
+
d("label", Tr, [
|
|
136
|
+
be(D(C[x.value] || C.ua || C.label) + " ", 1),
|
|
137
|
+
d("input", {
|
|
138
138
|
type: "checkbox",
|
|
139
139
|
class: "hidden",
|
|
140
140
|
value: C.hidden
|
|
141
141
|
}, null, 8, Or),
|
|
142
|
-
|
|
142
|
+
d("span", {
|
|
143
143
|
class: L(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none", C.hidden ? "bg-white" : "bg-blue-600 border-0"])
|
|
144
144
|
}, k[3] || (k[3] = [
|
|
145
|
-
|
|
145
|
+
d("svg", {
|
|
146
146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
147
147
|
width: "12",
|
|
148
148
|
height: "12",
|
|
@@ -153,7 +153,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
153
153
|
"stroke-linecap": "round",
|
|
154
154
|
"stroke-linejoin": "round"
|
|
155
155
|
}, [
|
|
156
|
-
|
|
156
|
+
d("path", { d: "M20 6 9 17l-5-5" })
|
|
157
157
|
], -1)
|
|
158
158
|
]), 2)
|
|
159
159
|
])
|
|
@@ -259,7 +259,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
259
259
|
setup(e) {
|
|
260
260
|
const t = e, s = q(() => t.value ? Array.isArray(t.value) ? t.value : [t.value] : []), n = (r) => r ? typeof r == "object" && r.name ? r.name : typeof r == "string" || typeof r == "number" ? String(r) : JSON.stringify(r) : "";
|
|
261
261
|
return (r, i) => (v(), E("div", Lr, [
|
|
262
|
-
(v(!0), E(
|
|
262
|
+
(v(!0), E(ne, null, Se(s.value, (o, a) => (v(), E("span", {
|
|
263
263
|
key: a,
|
|
264
264
|
class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"
|
|
265
265
|
}, D(n(o)), 1))), 128))
|
|
@@ -297,9 +297,9 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
297
297
|
// text: resolveColorClass('text-cyan-500'),
|
|
298
298
|
// hover: resolveColorClass('hover:text-border-cyan-500'),
|
|
299
299
|
// bg: resolveColorClass('bg-border-cyan-500 hover:bg-border-cyan-500/90'),
|
|
300
|
-
})), (t, s) => (v(), E(
|
|
300
|
+
})), (t, s) => (v(), E(ne, null, [
|
|
301
301
|
t.value ? (v(), E("span", Br, s[0] || (s[0] = [
|
|
302
|
-
|
|
302
|
+
d("svg", {
|
|
303
303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
304
304
|
width: "24",
|
|
305
305
|
height: "24",
|
|
@@ -311,10 +311,10 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
311
311
|
"stroke-linejoin": "round",
|
|
312
312
|
class: "lucide lucide-check size-3.5"
|
|
313
313
|
}, [
|
|
314
|
-
|
|
314
|
+
d("path", { d: "M20 6 9 17l-5-5" })
|
|
315
315
|
], -1)
|
|
316
316
|
]))) : te("", !0),
|
|
317
|
-
s[1] || (s[1] =
|
|
317
|
+
s[1] || (s[1] = d("span", null, null, -1))
|
|
318
318
|
], 64));
|
|
319
319
|
}
|
|
320
320
|
}), js = {
|
|
@@ -384,8 +384,8 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
384
384
|
u.push(h);
|
|
385
385
|
else {
|
|
386
386
|
u.push(1), s.page > 4 && u.push("...");
|
|
387
|
-
const h = Math.max(2, s.page - 1),
|
|
388
|
-
for (let y = h; y <=
|
|
387
|
+
const h = Math.max(2, s.page - 1), x = Math.min(o.value - 1, s.page + 1);
|
|
388
|
+
for (let y = h; y <= x; y += 1)
|
|
389
389
|
y !== 1 && y !== o.value && u.push(y);
|
|
390
390
|
s.page < o.value - 3 && u.push("..."), o.value > 1 && u.push(o.value);
|
|
391
391
|
}
|
|
@@ -393,27 +393,27 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
393
393
|
}), m = (u) => {
|
|
394
394
|
u >= 1 && u <= o.value && u !== s.page && i("update:page", u);
|
|
395
395
|
};
|
|
396
|
-
return (u,
|
|
396
|
+
return (u, f) => (v(), E("div", {
|
|
397
397
|
class: L(["flex items-center justify-between py-3 border-t", r.value.container])
|
|
398
398
|
}, [
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
d("div", Ur, [
|
|
400
|
+
d("div", {
|
|
401
401
|
class: L(["flex items-center text-sm", r.value.text, n.value.text])
|
|
402
402
|
}, [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
403
|
+
d("span", null, [
|
|
404
|
+
f[2] || (f[2] = be(" Показано ", -1)),
|
|
405
|
+
d("span", Hr, D(a.value), 1),
|
|
406
|
+
f[3] || (f[3] = be(" до ", -1)),
|
|
407
|
+
d("span", zr, D(l.value), 1),
|
|
408
|
+
f[4] || (f[4] = be(" з ", -1)),
|
|
409
|
+
d("span", qr, D(u.total), 1),
|
|
410
|
+
f[5] || (f[5] = be(" результатів ", -1))
|
|
411
411
|
])
|
|
412
412
|
], 2)
|
|
413
413
|
]),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
onClick:
|
|
414
|
+
d("div", Kr, [
|
|
415
|
+
d("button", {
|
|
416
|
+
onClick: f[0] || (f[0] = (h) => m(u.page - 1)),
|
|
417
417
|
disabled: u.page <= 1,
|
|
418
418
|
class: L([
|
|
419
419
|
"relative font-medium rounded-md",
|
|
@@ -426,8 +426,8 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
426
426
|
fill: "none",
|
|
427
427
|
stroke: "currentColor",
|
|
428
428
|
viewBox: "0 0 24 24"
|
|
429
|
-
},
|
|
430
|
-
|
|
429
|
+
}, f[6] || (f[6] = [
|
|
430
|
+
d("path", {
|
|
431
431
|
"stroke-linecap": "round",
|
|
432
432
|
"stroke-linejoin": "round",
|
|
433
433
|
"stroke-width": "2",
|
|
@@ -435,14 +435,14 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
435
435
|
}, null, -1)
|
|
436
436
|
]), 2))
|
|
437
437
|
], 10, Wr),
|
|
438
|
-
|
|
439
|
-
(v(!0), E(
|
|
438
|
+
d("div", Gr, [
|
|
439
|
+
(v(!0), E(ne, null, Se(c.value, (h) => (v(), E(ne, { key: h }, [
|
|
440
440
|
h === "..." ? (v(), E("span", {
|
|
441
441
|
key: 0,
|
|
442
442
|
class: L(["font-medium", n.value.button, r.value.ellipsis])
|
|
443
443
|
}, " ... ", 2)) : (v(), E("button", {
|
|
444
444
|
key: 1,
|
|
445
|
-
onClick: (
|
|
445
|
+
onClick: (x) => m(h),
|
|
446
446
|
class: L([
|
|
447
447
|
"relative font-medium rounded-md",
|
|
448
448
|
n.value.button,
|
|
@@ -451,8 +451,8 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
451
451
|
}, D(h), 11, Jr))
|
|
452
452
|
], 64))), 128))
|
|
453
453
|
]),
|
|
454
|
-
|
|
455
|
-
onClick:
|
|
454
|
+
d("button", {
|
|
455
|
+
onClick: f[1] || (f[1] = (h) => m(u.page + 1)),
|
|
456
456
|
disabled: u.page >= o.value,
|
|
457
457
|
class: L([
|
|
458
458
|
"relative font-medium rounded-md",
|
|
@@ -465,8 +465,8 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
465
465
|
fill: "none",
|
|
466
466
|
stroke: "currentColor",
|
|
467
467
|
viewBox: "0 0 24 24"
|
|
468
|
-
},
|
|
469
|
-
|
|
468
|
+
}, f[7] || (f[7] = [
|
|
469
|
+
d("path", {
|
|
470
470
|
"stroke-linecap": "round",
|
|
471
471
|
"stroke-linejoin": "round",
|
|
472
472
|
"stroke-width": "2",
|
|
@@ -494,7 +494,7 @@ const Xr = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
|
494
494
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
495
495
|
const Gt = () => {
|
|
496
496
|
}, xt = () => !1, Zt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
497
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Ce = Array.isArray,
|
|
497
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Ce = Array.isArray, re = (e) => typeof e == "string", ps = (e) => typeof e == "symbol", Qr = (e) => e !== null && typeof e == "object", Us = /* @__PURE__ */ Te(
|
|
498
498
|
// the leading comma is intentional so empty string "" is also included
|
|
499
499
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
500
500
|
), Zr = /* @__PURE__ */ Te(
|
|
@@ -543,7 +543,7 @@ const ai = "html,body,base,head,link,meta,style,title,address,article,aside,foot
|
|
|
543
543
|
**/
|
|
544
544
|
const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt = Symbol(process.env.NODE_ENV !== "production" ? "Teleport" : ""), gs = Symbol(process.env.NODE_ENV !== "production" ? "Suspense" : ""), Ot = Symbol(process.env.NODE_ENV !== "production" ? "KeepAlive" : ""), wn = Symbol(
|
|
545
545
|
process.env.NODE_ENV !== "production" ? "BaseTransition" : ""
|
|
546
|
-
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), Sn = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""),
|
|
546
|
+
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), Sn = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""), Nn = Symbol(
|
|
547
547
|
process.env.NODE_ENV !== "production" ? "createElementBlock" : ""
|
|
548
548
|
), vs = Symbol(process.env.NODE_ENV !== "production" ? "createVNode" : ""), ys = Symbol(
|
|
549
549
|
process.env.NODE_ENV !== "production" ? "createElementVNode" : ""
|
|
@@ -551,7 +551,7 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
551
551
|
process.env.NODE_ENV !== "production" ? "createCommentVNode" : ""
|
|
552
552
|
), bs = Symbol(
|
|
553
553
|
process.env.NODE_ENV !== "production" ? "createTextVNode" : ""
|
|
554
|
-
),
|
|
554
|
+
), _n = Symbol(
|
|
555
555
|
process.env.NODE_ENV !== "production" ? "createStaticVNode" : ""
|
|
556
556
|
), xs = Symbol(
|
|
557
557
|
process.env.NODE_ENV !== "production" ? "resolveComponent" : ""
|
|
@@ -563,9 +563,9 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
563
563
|
process.env.NODE_ENV !== "production" ? "resolveFilter" : ""
|
|
564
564
|
), Ss = Symbol(
|
|
565
565
|
process.env.NODE_ENV !== "production" ? "withDirectives" : ""
|
|
566
|
-
),
|
|
566
|
+
), Ns = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""), Cn = Symbol(process.env.NODE_ENV !== "production" ? "renderSlot" : ""), Tn = Symbol(process.env.NODE_ENV !== "production" ? "createSlots" : ""), Ft = Symbol(
|
|
567
567
|
process.env.NODE_ENV !== "production" ? "toDisplayString" : ""
|
|
568
|
-
), It = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""),
|
|
568
|
+
), It = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""), _s = Symbol(
|
|
569
569
|
process.env.NODE_ENV !== "production" ? "normalizeClass" : ""
|
|
570
570
|
), Cs = Symbol(
|
|
571
571
|
process.env.NODE_ENV !== "production" ? "normalizeStyle" : ""
|
|
@@ -585,23 +585,23 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
585
585
|
[wn]: "BaseTransition",
|
|
586
586
|
[Je]: "openBlock",
|
|
587
587
|
[Sn]: "createBlock",
|
|
588
|
-
[
|
|
588
|
+
[Nn]: "createElementBlock",
|
|
589
589
|
[vs]: "createVNode",
|
|
590
590
|
[ys]: "createElementVNode",
|
|
591
591
|
[mt]: "createCommentVNode",
|
|
592
592
|
[bs]: "createTextVNode",
|
|
593
|
-
[
|
|
593
|
+
[_n]: "createStaticVNode",
|
|
594
594
|
[xs]: "resolveComponent",
|
|
595
595
|
[Es]: "resolveDynamicComponent",
|
|
596
596
|
[ks]: "resolveDirective",
|
|
597
597
|
[ws]: "resolveFilter",
|
|
598
598
|
[Ss]: "withDirectives",
|
|
599
|
-
[
|
|
599
|
+
[Ns]: "renderList",
|
|
600
600
|
[Cn]: "renderSlot",
|
|
601
601
|
[Tn]: "createSlots",
|
|
602
602
|
[Ft]: "toDisplayString",
|
|
603
603
|
[It]: "mergeProps",
|
|
604
|
-
[
|
|
604
|
+
[_s]: "normalizeClass",
|
|
605
605
|
[Cs]: "normalizeStyle",
|
|
606
606
|
[ut]: "normalizeProps",
|
|
607
607
|
[gt]: "guardReactiveProps",
|
|
@@ -677,7 +677,7 @@ function Z(e, t) {
|
|
|
677
677
|
return {
|
|
678
678
|
type: 16,
|
|
679
679
|
loc: ye,
|
|
680
|
-
key:
|
|
680
|
+
key: re(e) ? A(e, !0) : e,
|
|
681
681
|
value: t
|
|
682
682
|
};
|
|
683
683
|
}
|
|
@@ -690,7 +690,7 @@ function A(e, t = !1, s = ye, n = 0) {
|
|
|
690
690
|
constType: t ? 3 : n
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Ne(e, t = ye) {
|
|
694
694
|
return {
|
|
695
695
|
type: 8,
|
|
696
696
|
loc: t,
|
|
@@ -747,7 +747,7 @@ function tt(e, t) {
|
|
|
747
747
|
return e || t ? vs : ys;
|
|
748
748
|
}
|
|
749
749
|
function st(e, t) {
|
|
750
|
-
return e || t ? Sn :
|
|
750
|
+
return e || t ? Sn : Nn;
|
|
751
751
|
}
|
|
752
752
|
function Ds(e, { helper: t, removeHelper: s, inSSR: n }) {
|
|
753
753
|
e.isBlock || (e.isBlock = !0, s(tt(n, e.isComponent)), t(Je), t(st(n, e.isComponent)));
|
|
@@ -759,7 +759,7 @@ function qs(e) {
|
|
|
759
759
|
function ge(e) {
|
|
760
760
|
return e === 32 || e === 10 || e === 9 || e === 12 || e === 13;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Ve(e) {
|
|
763
763
|
return e === 47 || e === 62 || ge(e);
|
|
764
764
|
}
|
|
765
765
|
function At(e) {
|
|
@@ -768,7 +768,7 @@ function At(e) {
|
|
|
768
768
|
t[s] = e.charCodeAt(s);
|
|
769
769
|
return t;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
771
|
+
const ie = {
|
|
772
772
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
773
773
|
// CDATA[
|
|
774
774
|
CdataEnd: new Uint8Array([93, 93, 62]),
|
|
@@ -851,7 +851,7 @@ class Si {
|
|
|
851
851
|
const s = this.sequenceIndex === this.currentSequence.length;
|
|
852
852
|
if (!(s ? (
|
|
853
853
|
// If we are at the end of the sequence, make sure the tag name has ended
|
|
854
|
-
|
|
854
|
+
Ve(t)
|
|
855
855
|
) : (
|
|
856
856
|
// Otherwise, do a case-insensitive comparison
|
|
857
857
|
(t | 32) === this.currentSequence[this.sequenceIndex]
|
|
@@ -877,10 +877,10 @@ class Si {
|
|
|
877
877
|
}
|
|
878
878
|
this.sequenceIndex = 0;
|
|
879
879
|
}
|
|
880
|
-
(t | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence ===
|
|
880
|
+
(t | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === ie.TitleEnd || this.currentSequence === ie.TextareaEnd && !this.inSFCRoot ? !this.inVPre && t === this.delimiterOpen[0] && (this.state = 2, this.delimiterIndex = 0, this.stateInterpolationOpen(t)) : this.fastForwardTo(60) && (this.sequenceIndex = 1) : this.sequenceIndex = +(t === 60);
|
|
881
881
|
}
|
|
882
882
|
stateCDATASequence(t) {
|
|
883
|
-
t ===
|
|
883
|
+
t === ie.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === ie.Cdata.length && (this.state = 28, this.currentSequence = ie.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = 23, this.stateInDeclaration(t));
|
|
884
884
|
}
|
|
885
885
|
/**
|
|
886
886
|
* When we wait for one specific character, we can speed things up
|
|
@@ -905,7 +905,7 @@ class Si {
|
|
|
905
905
|
* - All characters but the start character of the sequence can be skipped.
|
|
906
906
|
*/
|
|
907
907
|
stateInCommentLike(t) {
|
|
908
|
-
t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence ===
|
|
908
|
+
t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === ie.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index - 2) : this.cbs.oncomment(this.sectionStart, this.index - 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = 1) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : t !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
909
909
|
}
|
|
910
910
|
startSpecial(t, s) {
|
|
911
911
|
this.enterRCDATA(t, s), this.state = 31;
|
|
@@ -917,10 +917,10 @@ class Si {
|
|
|
917
917
|
t === 33 ? (this.state = 22, this.sectionStart = this.index + 1) : t === 63 ? (this.state = 24, this.sectionStart = this.index + 1) : qs(t) ? (this.sectionStart = this.index, this.mode === 0 ? this.state = 6 : this.inSFCRoot ? this.state = 34 : this.inXML ? this.state = 6 : t === 116 ? this.state = 30 : this.state = t === 115 ? 29 : 6) : t === 47 ? this.state = 8 : (this.state = 1, this.stateText(t));
|
|
918
918
|
}
|
|
919
919
|
stateInTagName(t) {
|
|
920
|
-
|
|
920
|
+
Ve(t) && this.handleTagName(t);
|
|
921
921
|
}
|
|
922
922
|
stateInSFCRootTagName(t) {
|
|
923
|
-
if (
|
|
923
|
+
if (Ve(t)) {
|
|
924
924
|
const s = this.buffer.slice(this.sectionStart, this.index);
|
|
925
925
|
s !== "template" && this.enterRCDATA(At("</" + s), 0), this.handleTagName(t);
|
|
926
926
|
}
|
|
@@ -950,25 +950,25 @@ class Si {
|
|
|
950
950
|
t === 62 ? (this.cbs.onselfclosingtag(this.index), this.state = 1, this.sectionStart = this.index + 1, this.inRCDATA = !1) : ge(t) || (this.state = 11, this.stateBeforeAttrName(t));
|
|
951
951
|
}
|
|
952
952
|
stateInAttrName(t) {
|
|
953
|
-
t === 61 ||
|
|
953
|
+
t === 61 || Ve(t) ? (this.cbs.onattribname(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : process.env.NODE_ENV !== "production" && (t === 34 || t === 39 || t === 60) && this.cbs.onerr(
|
|
954
954
|
17,
|
|
955
955
|
this.index
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
958
|
stateInDirName(t) {
|
|
959
|
-
t === 61 ||
|
|
959
|
+
t === 61 || Ve(t) ? (this.cbs.ondirname(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 58 ? (this.cbs.ondirname(this.sectionStart, this.index), this.state = 14, this.sectionStart = this.index + 1) : t === 46 && (this.cbs.ondirname(this.sectionStart, this.index), this.state = 16, this.sectionStart = this.index + 1);
|
|
960
960
|
}
|
|
961
961
|
stateInDirArg(t) {
|
|
962
|
-
t === 61 ||
|
|
962
|
+
t === 61 || Ve(t) ? (this.cbs.ondirarg(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 91 ? this.state = 15 : t === 46 && (this.cbs.ondirarg(this.sectionStart, this.index), this.state = 16, this.sectionStart = this.index + 1);
|
|
963
963
|
}
|
|
964
964
|
stateInDynamicDirArg(t) {
|
|
965
|
-
t === 93 ? this.state = 14 : (t === 61 ||
|
|
965
|
+
t === 93 ? this.state = 14 : (t === 61 || Ve(t)) && (this.cbs.ondirarg(this.sectionStart, this.index + 1), this.handleAttrNameEnd(t), process.env.NODE_ENV !== "production" && this.cbs.onerr(
|
|
966
966
|
27,
|
|
967
967
|
this.index
|
|
968
968
|
));
|
|
969
969
|
}
|
|
970
970
|
stateInDirModifier(t) {
|
|
971
|
-
t === 61 ||
|
|
971
|
+
t === 61 || Ve(t) ? (this.cbs.ondirmodifier(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 46 && (this.cbs.ondirmodifier(this.sectionStart, this.index), this.sectionStart = this.index + 1);
|
|
972
972
|
}
|
|
973
973
|
handleAttrNameEnd(t) {
|
|
974
974
|
this.sectionStart = this.index, this.state = 17, this.cbs.onattribnameend(this.index), this.stateAfterAttrName(t);
|
|
@@ -1007,16 +1007,16 @@ class Si {
|
|
|
1007
1007
|
(t === 62 || this.fastForwardTo(62)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = 1, this.sectionStart = this.index + 1);
|
|
1008
1008
|
}
|
|
1009
1009
|
stateBeforeComment(t) {
|
|
1010
|
-
t === 45 ? (this.state = 28, this.currentSequence =
|
|
1010
|
+
t === 45 ? (this.state = 28, this.currentSequence = ie.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = 23;
|
|
1011
1011
|
}
|
|
1012
1012
|
stateInSpecialComment(t) {
|
|
1013
1013
|
(t === 62 || this.fastForwardTo(62)) && (this.cbs.oncomment(this.sectionStart, this.index), this.state = 1, this.sectionStart = this.index + 1);
|
|
1014
1014
|
}
|
|
1015
1015
|
stateBeforeSpecialS(t) {
|
|
1016
|
-
t ===
|
|
1016
|
+
t === ie.ScriptEnd[3] ? this.startSpecial(ie.ScriptEnd, 4) : t === ie.StyleEnd[3] ? this.startSpecial(ie.StyleEnd, 4) : (this.state = 6, this.stateInTagName(t));
|
|
1017
1017
|
}
|
|
1018
1018
|
stateBeforeSpecialT(t) {
|
|
1019
|
-
t ===
|
|
1019
|
+
t === ie.TitleEnd[3] ? this.startSpecial(ie.TitleEnd, 4) : t === ie.TextareaEnd[3] ? this.startSpecial(ie.TextareaEnd, 4) : (this.state = 6, this.stateInTagName(t));
|
|
1020
1020
|
}
|
|
1021
1021
|
startEntity() {
|
|
1022
1022
|
}
|
|
@@ -1184,12 +1184,12 @@ class Si {
|
|
|
1184
1184
|
/** Handle any trailing data. */
|
|
1185
1185
|
handleTrailingData() {
|
|
1186
1186
|
const t = this.buffer.length;
|
|
1187
|
-
this.sectionStart >= t || (this.state === 28 ? this.currentSequence ===
|
|
1187
|
+
this.sectionStart >= t || (this.state === 28 ? this.currentSequence === ie.CdataEnd ? this.cbs.oncdata(this.sectionStart, t) : this.cbs.oncomment(this.sectionStart, t) : this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9 || this.cbs.ontext(this.sectionStart, t));
|
|
1188
1188
|
}
|
|
1189
1189
|
emitCodePoint(t, s) {
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const Ni = {
|
|
1193
1193
|
COMPILER_IS_ON_ELEMENT: {
|
|
1194
1194
|
message: 'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',
|
|
1195
1195
|
link: "https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"
|
|
@@ -1237,7 +1237,7 @@ function nt(e, t, s, ...n) {
|
|
|
1237
1237
|
function Vt(e, t, s, ...n) {
|
|
1238
1238
|
if (ns(e, t) === "suppress-warning")
|
|
1239
1239
|
return;
|
|
1240
|
-
const { message: i, link: o } =
|
|
1240
|
+
const { message: i, link: o } = Ni[e], a = `(deprecation ${e}) ${typeof i == "function" ? i(...n) : i}${o ? `
|
|
1241
1241
|
Details: ${o}` : ""}`, l = new SyntaxError(a);
|
|
1242
1242
|
l.code = e, s && (l.loc = s), t.onWarn(l);
|
|
1243
1243
|
}
|
|
@@ -1248,10 +1248,10 @@ function In(e) {
|
|
|
1248
1248
|
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${e.message}`);
|
|
1249
1249
|
}
|
|
1250
1250
|
function K(e, t, s, n) {
|
|
1251
|
-
const r = process.env.NODE_ENV !== "production" ? (s ||
|
|
1251
|
+
const r = process.env.NODE_ENV !== "production" ? (s || _i)[e] + (n || "") : `https://vuejs.org/error-reference/#compiler-${e}`, i = new SyntaxError(String(r));
|
|
1252
1252
|
return i.code = e, i.loc = t, i;
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1254
|
+
const _i = {
|
|
1255
1255
|
// parse errors
|
|
1256
1256
|
0: "Illegal comment.",
|
|
1257
1257
|
1: "CDATA section is allowed only in XML context.",
|
|
@@ -1371,7 +1371,7 @@ function Ks(e, t) {
|
|
|
1371
1371
|
function pe(e, t, s = !1) {
|
|
1372
1372
|
for (let n = 0; n < e.props.length; n++) {
|
|
1373
1373
|
const r = e.props[n];
|
|
1374
|
-
if (r.type === 7 && (s || r.exp) && (
|
|
1374
|
+
if (r.type === 7 && (s || r.exp) && (re(t) ? r.name === t : t.test(r.name)))
|
|
1375
1375
|
return r;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
@@ -1414,9 +1414,9 @@ function Rt(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
const Li = /* @__PURE__ */ new Set([ut, gt]);
|
|
1416
1416
|
function $n(e, t = []) {
|
|
1417
|
-
if (e && !
|
|
1417
|
+
if (e && !re(e) && e.type === 14) {
|
|
1418
1418
|
const s = e.callee;
|
|
1419
|
-
if (!
|
|
1419
|
+
if (!re(s) && Li.has(s))
|
|
1420
1420
|
return $n(
|
|
1421
1421
|
e.arguments[0],
|
|
1422
1422
|
t.concat(e)
|
|
@@ -1426,15 +1426,15 @@ function $n(e, t = []) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
function Mt(e, t, s) {
|
|
1428
1428
|
let n, r = e.type === 13 ? e.props : e.arguments[2], i = [], o;
|
|
1429
|
-
if (r && !
|
|
1429
|
+
if (r && !re(r) && r.type === 14) {
|
|
1430
1430
|
const a = $n(r);
|
|
1431
1431
|
r = a[0], i = a[1], o = i[i.length - 1];
|
|
1432
1432
|
}
|
|
1433
|
-
if (r == null ||
|
|
1433
|
+
if (r == null || re(r))
|
|
1434
1434
|
n = xe([t]);
|
|
1435
1435
|
else if (r.type === 14) {
|
|
1436
1436
|
const a = r.arguments[0];
|
|
1437
|
-
!
|
|
1437
|
+
!re(a) && a.type === 15 ? Gs(t, a) || a.properties.unshift(t) : r.callee === Ts ? n = se(s.helper(It), [
|
|
1438
1438
|
xe([t]),
|
|
1439
1439
|
r
|
|
1440
1440
|
]) : r.arguments.unshift(xe([t])), !n && (n = r);
|
|
@@ -1474,32 +1474,32 @@ const Fi = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/, Rn = {
|
|
|
1474
1474
|
comments: process.env.NODE_ENV !== "production",
|
|
1475
1475
|
prefixIdentifiers: !1
|
|
1476
1476
|
};
|
|
1477
|
-
let F = Rn, ht = null,
|
|
1477
|
+
let F = Rn, ht = null, Ae = "", le = null, P = null, fe = "", Oe = -1, He = -1, $s = 0, Re = !1, rs = null;
|
|
1478
1478
|
const Y = [], J = new Si(Y, {
|
|
1479
1479
|
onerr: de,
|
|
1480
1480
|
ontext(e, t) {
|
|
1481
|
-
Et(
|
|
1481
|
+
Et(oe(e, t), e, t);
|
|
1482
1482
|
},
|
|
1483
1483
|
ontextentity(e, t, s) {
|
|
1484
1484
|
Et(e, t, s);
|
|
1485
1485
|
},
|
|
1486
1486
|
oninterpolation(e, t) {
|
|
1487
1487
|
if (Re)
|
|
1488
|
-
return Et(
|
|
1488
|
+
return Et(oe(e, t), e, t);
|
|
1489
1489
|
let s = e + J.delimiterOpen.length, n = t - J.delimiterClose.length;
|
|
1490
|
-
for (; ge(
|
|
1490
|
+
for (; ge(Ae.charCodeAt(s)); )
|
|
1491
1491
|
s++;
|
|
1492
|
-
for (; ge(
|
|
1492
|
+
for (; ge(Ae.charCodeAt(n - 1)); )
|
|
1493
1493
|
n--;
|
|
1494
|
-
let r =
|
|
1494
|
+
let r = oe(s, n);
|
|
1495
1495
|
r.includes("&") && (r = F.decodeEntities(r, !1)), is({
|
|
1496
1496
|
type: 5,
|
|
1497
|
-
content:
|
|
1497
|
+
content: _t(r, !1, ee(s, n)),
|
|
1498
1498
|
loc: ee(e, t)
|
|
1499
1499
|
});
|
|
1500
1500
|
},
|
|
1501
1501
|
onopentagname(e, t) {
|
|
1502
|
-
const s =
|
|
1502
|
+
const s = oe(e, t);
|
|
1503
1503
|
le = {
|
|
1504
1504
|
type: 1,
|
|
1505
1505
|
tag: s,
|
|
@@ -1516,7 +1516,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1516
1516
|
Ys(e);
|
|
1517
1517
|
},
|
|
1518
1518
|
onclosetag(e, t) {
|
|
1519
|
-
const s =
|
|
1519
|
+
const s = oe(e, t);
|
|
1520
1520
|
if (!F.isVoidTag(s)) {
|
|
1521
1521
|
let n = !1;
|
|
1522
1522
|
for (let r = 0; r < Y.length; r++)
|
|
@@ -1524,7 +1524,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1524
1524
|
n = !0, r > 0 && de(24, Y[0].loc.start.offset);
|
|
1525
1525
|
for (let o = 0; o <= r; o++) {
|
|
1526
1526
|
const a = Y.shift();
|
|
1527
|
-
|
|
1527
|
+
Nt(a, t, o < r);
|
|
1528
1528
|
}
|
|
1529
1529
|
break;
|
|
1530
1530
|
}
|
|
@@ -1533,19 +1533,19 @@ const Y = [], J = new Si(Y, {
|
|
|
1533
1533
|
},
|
|
1534
1534
|
onselfclosingtag(e) {
|
|
1535
1535
|
const t = le.tag;
|
|
1536
|
-
le.isSelfClosing = !0, Ys(e), Y[0] && Y[0].tag === t &&
|
|
1536
|
+
le.isSelfClosing = !0, Ys(e), Y[0] && Y[0].tag === t && Nt(Y.shift(), e);
|
|
1537
1537
|
},
|
|
1538
1538
|
onattribname(e, t) {
|
|
1539
1539
|
P = {
|
|
1540
1540
|
type: 6,
|
|
1541
|
-
name:
|
|
1541
|
+
name: oe(e, t),
|
|
1542
1542
|
nameLoc: ee(e, t),
|
|
1543
1543
|
value: void 0,
|
|
1544
1544
|
loc: ee(e)
|
|
1545
1545
|
};
|
|
1546
1546
|
},
|
|
1547
1547
|
ondirname(e, t) {
|
|
1548
|
-
const s =
|
|
1548
|
+
const s = oe(e, t), n = s === "." || s === ":" ? "bind" : s === "@" ? "on" : s === "#" ? "slot" : s.slice(2);
|
|
1549
1549
|
if (!Re && n === "" && de(26, e), Re || n === "")
|
|
1550
1550
|
P = {
|
|
1551
1551
|
type: 6,
|
|
@@ -1571,12 +1571,12 @@ const Y = [], J = new Si(Y, {
|
|
|
1571
1571
|
},
|
|
1572
1572
|
ondirarg(e, t) {
|
|
1573
1573
|
if (e === t) return;
|
|
1574
|
-
const s =
|
|
1574
|
+
const s = oe(e, t);
|
|
1575
1575
|
if (Re && !Ws(P))
|
|
1576
1576
|
P.name += s, qe(P.nameLoc, t);
|
|
1577
1577
|
else {
|
|
1578
1578
|
const n = s[0] !== "[";
|
|
1579
|
-
P.arg =
|
|
1579
|
+
P.arg = _t(
|
|
1580
1580
|
n ? s : s.slice(1, -1),
|
|
1581
1581
|
n,
|
|
1582
1582
|
ee(e, t),
|
|
@@ -1585,7 +1585,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
},
|
|
1587
1587
|
ondirmodifier(e, t) {
|
|
1588
|
-
const s =
|
|
1588
|
+
const s = oe(e, t);
|
|
1589
1589
|
if (Re && !Ws(P))
|
|
1590
1590
|
P.name += "." + s, qe(P.nameLoc, t);
|
|
1591
1591
|
else if (P.name === "slot") {
|
|
@@ -1597,13 +1597,13 @@ const Y = [], J = new Si(Y, {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
},
|
|
1599
1599
|
onattribdata(e, t) {
|
|
1600
|
-
fe +=
|
|
1600
|
+
fe += oe(e, t), Oe < 0 && (Oe = e), He = t;
|
|
1601
1601
|
},
|
|
1602
1602
|
onattribentity(e, t, s) {
|
|
1603
1603
|
fe += e, Oe < 0 && (Oe = t), He = s;
|
|
1604
1604
|
},
|
|
1605
1605
|
onattribnameend(e) {
|
|
1606
|
-
const t = P.loc.start.offset, s =
|
|
1606
|
+
const t = P.loc.start.offset, s = oe(t, e);
|
|
1607
1607
|
P.type === 7 && (P.rawName = s), le.props.some(
|
|
1608
1608
|
(n) => (n.type === 7 ? n.rawName : n.name) === s
|
|
1609
1609
|
) && de(2, t);
|
|
@@ -1622,7 +1622,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1622
1622
|
}, J.inSFCRoot && le.tag === "template" && P.name === "lang" && fe && fe !== "html" && J.enterRCDATA(At("</template"), 0);
|
|
1623
1623
|
else {
|
|
1624
1624
|
let s = 0;
|
|
1625
|
-
P.exp =
|
|
1625
|
+
P.exp = _t(
|
|
1626
1626
|
fe,
|
|
1627
1627
|
!1,
|
|
1628
1628
|
ee(Oe, He),
|
|
@@ -1646,12 +1646,12 @@ const Y = [], J = new Si(Y, {
|
|
|
1646
1646
|
oncomment(e, t) {
|
|
1647
1647
|
F.comments && is({
|
|
1648
1648
|
type: 3,
|
|
1649
|
-
content:
|
|
1649
|
+
content: oe(e, t),
|
|
1650
1650
|
loc: ee(e - 4, t + 3)
|
|
1651
1651
|
});
|
|
1652
1652
|
},
|
|
1653
1653
|
onend() {
|
|
1654
|
-
const e =
|
|
1654
|
+
const e = Ae.length;
|
|
1655
1655
|
if (process.env.NODE_ENV !== "production" && J.state !== 1)
|
|
1656
1656
|
switch (J.state) {
|
|
1657
1657
|
case 5:
|
|
@@ -1666,7 +1666,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1666
1666
|
);
|
|
1667
1667
|
break;
|
|
1668
1668
|
case 28:
|
|
1669
|
-
J.currentSequence ===
|
|
1669
|
+
J.currentSequence === ie.CdataEnd ? de(6, e) : de(7, e);
|
|
1670
1670
|
break;
|
|
1671
1671
|
case 6:
|
|
1672
1672
|
case 7:
|
|
@@ -1688,10 +1688,10 @@ const Y = [], J = new Si(Y, {
|
|
|
1688
1688
|
break;
|
|
1689
1689
|
}
|
|
1690
1690
|
for (let t = 0; t < Y.length; t++)
|
|
1691
|
-
|
|
1691
|
+
Nt(Y[t], e - 1), de(24, Y[t].loc.start.offset);
|
|
1692
1692
|
},
|
|
1693
1693
|
oncdata(e, t) {
|
|
1694
|
-
Y[0].ns !== 0 ? Et(
|
|
1694
|
+
Y[0].ns !== 0 ? Et(oe(e, t), e, t) : de(1, e - 9);
|
|
1695
1695
|
},
|
|
1696
1696
|
onprocessinginstruction(e) {
|
|
1697
1697
|
(Y[0] ? Y[0].ns : F.ns) === 0 && de(
|
|
@@ -1703,12 +1703,12 @@ const Y = [], J = new Si(Y, {
|
|
|
1703
1703
|
function ji(e) {
|
|
1704
1704
|
const t = e.loc, s = e.content, n = s.match(Fi);
|
|
1705
1705
|
if (!n) return;
|
|
1706
|
-
const [, r, i] = n, o = (u,
|
|
1707
|
-
const
|
|
1708
|
-
return
|
|
1706
|
+
const [, r, i] = n, o = (u, f, h = !1) => {
|
|
1707
|
+
const x = t.start.offset + f, y = x + u.length;
|
|
1708
|
+
return _t(
|
|
1709
1709
|
u,
|
|
1710
1710
|
!1,
|
|
1711
|
-
ee(
|
|
1711
|
+
ee(x, y),
|
|
1712
1712
|
0,
|
|
1713
1713
|
h ? 1 : 0
|
|
1714
1714
|
/* Normal */
|
|
@@ -1725,14 +1725,14 @@ function ji(e) {
|
|
|
1725
1725
|
if (m) {
|
|
1726
1726
|
l = l.replace(Js, "").trim();
|
|
1727
1727
|
const u = m[1].trim();
|
|
1728
|
-
let
|
|
1729
|
-
if (u && (
|
|
1728
|
+
let f;
|
|
1729
|
+
if (u && (f = s.indexOf(u, c + l.length), a.key = o(u, f, !0)), m[2]) {
|
|
1730
1730
|
const h = m[2].trim();
|
|
1731
1731
|
h && (a.index = o(
|
|
1732
1732
|
h,
|
|
1733
1733
|
s.indexOf(
|
|
1734
1734
|
h,
|
|
1735
|
-
a.key ?
|
|
1735
|
+
a.key ? f + u.length : c + l.length
|
|
1736
1736
|
),
|
|
1737
1737
|
!0
|
|
1738
1738
|
));
|
|
@@ -1740,13 +1740,13 @@ function ji(e) {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
return l && (a.value = o(l, c, !0)), a;
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1744
|
-
return
|
|
1743
|
+
function oe(e, t) {
|
|
1744
|
+
return Ae.slice(e, t);
|
|
1745
1745
|
}
|
|
1746
1746
|
function Ys(e) {
|
|
1747
1747
|
J.inSFCRoot && (le.innerLoc = ee(e + 1, e + 1)), is(le);
|
|
1748
1748
|
const { tag: t, ns: s } = le;
|
|
1749
|
-
s === 0 && F.isPreTag(t) && $s++, F.isVoidTag(t) ?
|
|
1749
|
+
s === 0 && F.isPreTag(t) && $s++, F.isVoidTag(t) ? Nt(le, e) : (Y.unshift(le), (s === 1 || s === 2) && (J.inXML = !0)), le = null;
|
|
1750
1750
|
}
|
|
1751
1751
|
function Et(e, t, s) {
|
|
1752
1752
|
{
|
|
@@ -1760,8 +1760,8 @@ function Et(e, t, s) {
|
|
|
1760
1760
|
loc: ee(t, s)
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
s ? qe(e.loc, Mn(t, 60)) : qe(e.loc, Ui(t, 62) + 1), J.inSFCRoot && (e.children.length ? e.innerLoc.end = Le({}, e.children[e.children.length - 1].loc.end) : e.innerLoc.end = Le({}, e.innerLoc.start), e.innerLoc.source =
|
|
1763
|
+
function Nt(e, t, s = !1) {
|
|
1764
|
+
s ? qe(e.loc, Mn(t, 60)) : qe(e.loc, Ui(t, 62) + 1), J.inSFCRoot && (e.children.length ? e.innerLoc.end = Le({}, e.children[e.children.length - 1].loc.end) : e.innerLoc.end = Le({}, e.innerLoc.start), e.innerLoc.source = oe(
|
|
1765
1765
|
e.innerLoc.start.offset,
|
|
1766
1766
|
e.innerLoc.end.offset
|
|
1767
1767
|
));
|
|
@@ -1811,7 +1811,7 @@ function _t(e, t, s = !1) {
|
|
|
1811
1811
|
a.loc
|
|
1812
1812
|
) && e.children.length && (a.value = {
|
|
1813
1813
|
type: 2,
|
|
1814
|
-
content:
|
|
1814
|
+
content: oe(
|
|
1815
1815
|
e.children[0].loc.start.offset,
|
|
1816
1816
|
e.children[e.children.length - 1].loc.end.offset
|
|
1817
1817
|
),
|
|
@@ -1821,12 +1821,12 @@ function _t(e, t, s = !1) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
function Ui(e, t) {
|
|
1823
1823
|
let s = e;
|
|
1824
|
-
for (;
|
|
1824
|
+
for (; Ae.charCodeAt(s) !== t && s < Ae.length - 1; ) s++;
|
|
1825
1825
|
return s;
|
|
1826
1826
|
}
|
|
1827
1827
|
function Mn(e, t) {
|
|
1828
1828
|
let s = e;
|
|
1829
|
-
for (;
|
|
1829
|
+
for (; Ae.charCodeAt(s) !== t && s >= 0; ) s--;
|
|
1830
1830
|
return s;
|
|
1831
1831
|
}
|
|
1832
1832
|
const Hi = /* @__PURE__ */ new Set(["if", "else", "else-if", "for", "slot"]);
|
|
@@ -1917,14 +1917,14 @@ function ee(e, t) {
|
|
|
1917
1917
|
// @ts-expect-error allow late attachment
|
|
1918
1918
|
end: t == null ? t : J.getPos(t),
|
|
1919
1919
|
// @ts-expect-error allow late attachment
|
|
1920
|
-
source: t == null ? t :
|
|
1920
|
+
source: t == null ? t : oe(e, t)
|
|
1921
1921
|
};
|
|
1922
1922
|
}
|
|
1923
1923
|
function Ji(e) {
|
|
1924
1924
|
return ee(e.start.offset, e.end.offset);
|
|
1925
1925
|
}
|
|
1926
1926
|
function qe(e, t) {
|
|
1927
|
-
e.end = J.getPos(t), e.source =
|
|
1927
|
+
e.end = J.getPos(t), e.source = oe(e.start.offset, t);
|
|
1928
1928
|
}
|
|
1929
1929
|
function Yi(e) {
|
|
1930
1930
|
const t = {
|
|
@@ -1947,7 +1947,7 @@ function Yi(e) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
return t;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function _t(e, t = !1, s, n = 0, r = 0) {
|
|
1951
1951
|
return A(e, t, s, n);
|
|
1952
1952
|
}
|
|
1953
1953
|
function de(e, t, s) {
|
|
@@ -1959,7 +1959,7 @@ function Xi() {
|
|
|
1959
1959
|
J.reset(), le = null, P = null, fe = "", Oe = -1, He = -1, Y.length = 0;
|
|
1960
1960
|
}
|
|
1961
1961
|
function Qi(e, t) {
|
|
1962
|
-
if (Xi(),
|
|
1962
|
+
if (Xi(), Ae = e, F = Le({}, Rn), t) {
|
|
1963
1963
|
let r;
|
|
1964
1964
|
for (r in t)
|
|
1965
1965
|
t[r] != null && (F[r] = t[r]);
|
|
@@ -1972,7 +1972,7 @@ function Qi(e, t) {
|
|
|
1972
1972
|
const s = t && t.delimiters;
|
|
1973
1973
|
s && (J.delimiterOpen = At(s[0]), J.delimiterClose = At(s[1]));
|
|
1974
1974
|
const n = ht = Ei([], e);
|
|
1975
|
-
return J.parse(
|
|
1975
|
+
return J.parse(Ae), n.loc = ee(0, e.length), n.children = Ln(n.children), ht = null, n;
|
|
1976
1976
|
}
|
|
1977
1977
|
function Zi(e, t) {
|
|
1978
1978
|
Ct(
|
|
@@ -1991,43 +1991,43 @@ function Fn(e) {
|
|
|
1991
1991
|
function Ct(e, t, s, n = !1, r = !1) {
|
|
1992
1992
|
const { children: i } = e, o = [];
|
|
1993
1993
|
for (let u = 0; u < i.length; u++) {
|
|
1994
|
-
const
|
|
1995
|
-
if (
|
|
1996
|
-
const h = n ? 0 : ve(
|
|
1994
|
+
const f = i[u];
|
|
1995
|
+
if (f.type === 1 && f.tagType === 0) {
|
|
1996
|
+
const h = n ? 0 : ve(f, s);
|
|
1997
1997
|
if (h > 0) {
|
|
1998
1998
|
if (h >= 2) {
|
|
1999
|
-
|
|
1999
|
+
f.codegenNode.patchFlag = -1, o.push(f);
|
|
2000
2000
|
continue;
|
|
2001
2001
|
}
|
|
2002
2002
|
} else {
|
|
2003
|
-
const
|
|
2004
|
-
if (
|
|
2005
|
-
const y =
|
|
2006
|
-
if ((y === void 0 || y === 512 || y === 1) && jn(
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2003
|
+
const x = f.codegenNode;
|
|
2004
|
+
if (x.type === 13) {
|
|
2005
|
+
const y = x.patchFlag;
|
|
2006
|
+
if ((y === void 0 || y === 512 || y === 1) && jn(f, s) >= 2) {
|
|
2007
|
+
const O = Un(f);
|
|
2008
|
+
O && (x.props = s.hoist(O));
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
x.dynamicProps && (x.dynamicProps = s.hoist(x.dynamicProps));
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
} else if (
|
|
2014
|
-
|
|
2013
|
+
} else if (f.type === 12 && (n ? 0 : ve(f, s)) >= 2) {
|
|
2014
|
+
f.codegenNode.type === 14 && f.codegenNode.arguments.length > 0 && f.codegenNode.arguments.push(
|
|
2015
2015
|
-1 + (process.env.NODE_ENV !== "production" ? ` /* ${at[-1]} */` : "")
|
|
2016
|
-
), o.push(
|
|
2016
|
+
), o.push(f);
|
|
2017
2017
|
continue;
|
|
2018
2018
|
}
|
|
2019
|
-
if (
|
|
2020
|
-
const h =
|
|
2021
|
-
h && s.scopes.vSlot++, Ct(
|
|
2022
|
-
} else if (
|
|
2023
|
-
Ct(
|
|
2024
|
-
else if (
|
|
2025
|
-
for (let h = 0; h <
|
|
2019
|
+
if (f.type === 1) {
|
|
2020
|
+
const h = f.tagType === 1;
|
|
2021
|
+
h && s.scopes.vSlot++, Ct(f, e, s, !1, r), h && s.scopes.vSlot--;
|
|
2022
|
+
} else if (f.type === 11)
|
|
2023
|
+
Ct(f, e, s, f.children.length === 1, !0);
|
|
2024
|
+
else if (f.type === 9)
|
|
2025
|
+
for (let h = 0; h < f.branches.length; h++)
|
|
2026
2026
|
Ct(
|
|
2027
|
-
|
|
2027
|
+
f.branches[h],
|
|
2028
2028
|
e,
|
|
2029
2029
|
s,
|
|
2030
|
-
|
|
2030
|
+
f.branches[h].children.length === 1,
|
|
2031
2031
|
r
|
|
2032
2032
|
);
|
|
2033
2033
|
}
|
|
@@ -2044,9 +2044,9 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2044
2044
|
We(u.returns)
|
|
2045
2045
|
), a = !0);
|
|
2046
2046
|
} else if (e.tagType === 3 && t && t.type === 1 && t.tagType === 1 && t.codegenNode && t.codegenNode.type === 13 && t.codegenNode.children && !Ce(t.codegenNode.children) && t.codegenNode.children.type === 15) {
|
|
2047
|
-
const u = pe(e, "slot", !0),
|
|
2048
|
-
|
|
2049
|
-
We(
|
|
2047
|
+
const u = pe(e, "slot", !0), f = u && u.arg && m(t.codegenNode, u.arg);
|
|
2048
|
+
f && (l.push(s.cached.length), f.returns = c(
|
|
2049
|
+
We(f.returns)
|
|
2050
2050
|
), a = !0);
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
@@ -2060,13 +2060,13 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2060
2060
|
)
|
|
2061
2061
|
);
|
|
2062
2062
|
function c(u) {
|
|
2063
|
-
const
|
|
2064
|
-
return r && s.hmr && (
|
|
2063
|
+
const f = s.cache(u);
|
|
2064
|
+
return r && s.hmr && (f.needArraySpread = !0), f;
|
|
2065
2065
|
}
|
|
2066
|
-
function m(u,
|
|
2066
|
+
function m(u, f) {
|
|
2067
2067
|
if (u.children && !Ce(u.children) && u.children.type === 15) {
|
|
2068
2068
|
const h = u.children.properties.find(
|
|
2069
|
-
(
|
|
2069
|
+
(x) => x.key === f || x.key.content === f
|
|
2070
2070
|
);
|
|
2071
2071
|
return h && h.value;
|
|
2072
2072
|
}
|
|
@@ -2134,7 +2134,7 @@ function ve(e, t) {
|
|
|
2134
2134
|
let i = 3;
|
|
2135
2135
|
for (let o = 0; o < e.children.length; o++) {
|
|
2136
2136
|
const a = e.children[o];
|
|
2137
|
-
if (
|
|
2137
|
+
if (re(a) || ps(a))
|
|
2138
2138
|
continue;
|
|
2139
2139
|
const l = ve(a, t);
|
|
2140
2140
|
if (l === 0)
|
|
@@ -2149,13 +2149,13 @@ function ve(e, t) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
const eo = /* @__PURE__ */ new Set([
|
|
2152
|
-
|
|
2152
|
+
_s,
|
|
2153
2153
|
Cs,
|
|
2154
2154
|
ut,
|
|
2155
2155
|
gt
|
|
2156
2156
|
]);
|
|
2157
2157
|
function Bn(e, t) {
|
|
2158
|
-
if (e.type === 14 && !
|
|
2158
|
+
if (e.type === 14 && !re(e.callee) && eo.has(e.callee)) {
|
|
2159
2159
|
const s = e.arguments[0];
|
|
2160
2160
|
if (s.type === 4)
|
|
2161
2161
|
return ve(s, t);
|
|
@@ -2199,17 +2199,17 @@ function to(e, {
|
|
|
2199
2199
|
isBuiltInComponent: c = Gt,
|
|
2200
2200
|
isCustomElement: m = Gt,
|
|
2201
2201
|
expressionPlugins: u = [],
|
|
2202
|
-
scopeId:
|
|
2202
|
+
scopeId: f = null,
|
|
2203
2203
|
slotted: h = !0,
|
|
2204
|
-
ssr:
|
|
2204
|
+
ssr: x = !1,
|
|
2205
2205
|
inSSR: y = !1,
|
|
2206
|
-
ssrCssVars:
|
|
2207
|
-
bindingMetadata:
|
|
2206
|
+
ssrCssVars: O = "",
|
|
2207
|
+
bindingMetadata: N = Xr,
|
|
2208
2208
|
inline: R = !1,
|
|
2209
2209
|
isTS: w = !1,
|
|
2210
2210
|
onError: k = As,
|
|
2211
2211
|
onWarn: C = In,
|
|
2212
|
-
compatConfig:
|
|
2212
|
+
compatConfig: T
|
|
2213
2213
|
}) {
|
|
2214
2214
|
const I = t.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/), S = {
|
|
2215
2215
|
// options
|
|
@@ -2225,17 +2225,17 @@ function to(e, {
|
|
|
2225
2225
|
isBuiltInComponent: c,
|
|
2226
2226
|
isCustomElement: m,
|
|
2227
2227
|
expressionPlugins: u,
|
|
2228
|
-
scopeId:
|
|
2228
|
+
scopeId: f,
|
|
2229
2229
|
slotted: h,
|
|
2230
|
-
ssr:
|
|
2230
|
+
ssr: x,
|
|
2231
2231
|
inSSR: y,
|
|
2232
|
-
ssrCssVars:
|
|
2233
|
-
bindingMetadata:
|
|
2232
|
+
ssrCssVars: O,
|
|
2233
|
+
bindingMetadata: N,
|
|
2234
2234
|
inline: R,
|
|
2235
2235
|
isTS: w,
|
|
2236
2236
|
onError: k,
|
|
2237
2237
|
onWarn: C,
|
|
2238
|
-
compatConfig:
|
|
2238
|
+
compatConfig: T,
|
|
2239
2239
|
// state
|
|
2240
2240
|
root: e,
|
|
2241
2241
|
helpers: /* @__PURE__ */ new Map(),
|
|
@@ -2259,56 +2259,56 @@ function to(e, {
|
|
|
2259
2259
|
childIndex: 0,
|
|
2260
2260
|
inVOnce: !1,
|
|
2261
2261
|
// methods
|
|
2262
|
-
helper(
|
|
2263
|
-
const H = S.helpers.get(
|
|
2264
|
-
return S.helpers.set(
|
|
2262
|
+
helper(_) {
|
|
2263
|
+
const H = S.helpers.get(_) || 0;
|
|
2264
|
+
return S.helpers.set(_, H + 1), _;
|
|
2265
2265
|
},
|
|
2266
|
-
removeHelper(
|
|
2267
|
-
const H = S.helpers.get(
|
|
2266
|
+
removeHelper(_) {
|
|
2267
|
+
const H = S.helpers.get(_);
|
|
2268
2268
|
if (H) {
|
|
2269
2269
|
const B = H - 1;
|
|
2270
|
-
B ? S.helpers.set(
|
|
2270
|
+
B ? S.helpers.set(_, B) : S.helpers.delete(_);
|
|
2271
2271
|
}
|
|
2272
2272
|
},
|
|
2273
|
-
helperString(
|
|
2274
|
-
return `_${Ze[S.helper(
|
|
2273
|
+
helperString(_) {
|
|
2274
|
+
return `_${Ze[S.helper(_)]}`;
|
|
2275
2275
|
},
|
|
2276
|
-
replaceNode(
|
|
2276
|
+
replaceNode(_) {
|
|
2277
2277
|
if (process.env.NODE_ENV !== "production") {
|
|
2278
2278
|
if (!S.currentNode)
|
|
2279
2279
|
throw new Error("Node being replaced is already removed.");
|
|
2280
2280
|
if (!S.parent)
|
|
2281
2281
|
throw new Error("Cannot replace root node.");
|
|
2282
2282
|
}
|
|
2283
|
-
S.parent.children[S.childIndex] = S.currentNode =
|
|
2283
|
+
S.parent.children[S.childIndex] = S.currentNode = _;
|
|
2284
2284
|
},
|
|
2285
|
-
removeNode(
|
|
2285
|
+
removeNode(_) {
|
|
2286
2286
|
if (process.env.NODE_ENV !== "production" && !S.parent)
|
|
2287
2287
|
throw new Error("Cannot remove root node.");
|
|
2288
|
-
const H = S.parent.children, B =
|
|
2288
|
+
const H = S.parent.children, B = _ ? H.indexOf(_) : S.currentNode ? S.childIndex : -1;
|
|
2289
2289
|
if (process.env.NODE_ENV !== "production" && B < 0)
|
|
2290
2290
|
throw new Error("node being removed is not a child of current parent");
|
|
2291
|
-
!
|
|
2291
|
+
!_ || _ === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex > B && (S.childIndex--, S.onNodeRemoved()), S.parent.children.splice(B, 1);
|
|
2292
2292
|
},
|
|
2293
2293
|
onNodeRemoved: Gt,
|
|
2294
|
-
addIdentifiers(
|
|
2294
|
+
addIdentifiers(_) {
|
|
2295
2295
|
},
|
|
2296
|
-
removeIdentifiers(
|
|
2296
|
+
removeIdentifiers(_) {
|
|
2297
2297
|
},
|
|
2298
|
-
hoist(
|
|
2299
|
-
|
|
2298
|
+
hoist(_) {
|
|
2299
|
+
re(_) && (_ = A(_)), S.hoists.push(_);
|
|
2300
2300
|
const H = A(
|
|
2301
2301
|
`_hoisted_${S.hoists.length}`,
|
|
2302
2302
|
!1,
|
|
2303
|
-
|
|
2303
|
+
_.loc,
|
|
2304
2304
|
2
|
|
2305
2305
|
);
|
|
2306
|
-
return H.hoisted =
|
|
2306
|
+
return H.hoisted = _, H;
|
|
2307
2307
|
},
|
|
2308
|
-
cache(
|
|
2308
|
+
cache(_, H = !1, B = !1) {
|
|
2309
2309
|
const $ = ki(
|
|
2310
2310
|
S.cached.length,
|
|
2311
|
-
|
|
2311
|
+
_,
|
|
2312
2312
|
H,
|
|
2313
2313
|
B
|
|
2314
2314
|
);
|
|
@@ -2353,7 +2353,7 @@ function ro(e, t) {
|
|
|
2353
2353
|
};
|
|
2354
2354
|
for (; s < e.children.length; s++) {
|
|
2355
2355
|
const r = e.children[s];
|
|
2356
|
-
|
|
2356
|
+
re(r) || (t.grandParent = t.parent, t.parent = e, t.childIndex = s, t.onNodeRemoved = n, Bt(r, t));
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
function Bt(e, t) {
|
|
@@ -2391,7 +2391,7 @@ function Bt(e, t) {
|
|
|
2391
2391
|
n[r]();
|
|
2392
2392
|
}
|
|
2393
2393
|
function Hn(e, t) {
|
|
2394
|
-
const s =
|
|
2394
|
+
const s = re(e) ? (n) => n === e : (n) => e.test(n);
|
|
2395
2395
|
return (n, r) => {
|
|
2396
2396
|
if (n.type === 1) {
|
|
2397
2397
|
const { props: i } = n;
|
|
@@ -2423,7 +2423,7 @@ function io(e, {
|
|
|
2423
2423
|
ssrRuntimeModuleName: c = "vue/server-renderer",
|
|
2424
2424
|
ssr: m = !1,
|
|
2425
2425
|
isTS: u = !1,
|
|
2426
|
-
inSSR:
|
|
2426
|
+
inSSR: f = !1
|
|
2427
2427
|
}) {
|
|
2428
2428
|
const h = {
|
|
2429
2429
|
mode: t,
|
|
@@ -2437,7 +2437,7 @@ function io(e, {
|
|
|
2437
2437
|
ssrRuntimeModuleName: c,
|
|
2438
2438
|
ssr: m,
|
|
2439
2439
|
isTS: u,
|
|
2440
|
-
inSSR:
|
|
2440
|
+
inSSR: f,
|
|
2441
2441
|
source: e.source,
|
|
2442
2442
|
code: "",
|
|
2443
2443
|
column: 1,
|
|
@@ -2449,20 +2449,20 @@ function io(e, {
|
|
|
2449
2449
|
helper(y) {
|
|
2450
2450
|
return `_${Ze[y]}`;
|
|
2451
2451
|
},
|
|
2452
|
-
push(y,
|
|
2452
|
+
push(y, O = -2, N) {
|
|
2453
2453
|
h.code += y;
|
|
2454
2454
|
},
|
|
2455
2455
|
indent() {
|
|
2456
|
-
|
|
2456
|
+
x(++h.indentLevel);
|
|
2457
2457
|
},
|
|
2458
2458
|
deindent(y = !1) {
|
|
2459
|
-
y ? --h.indentLevel :
|
|
2459
|
+
y ? --h.indentLevel : x(--h.indentLevel);
|
|
2460
2460
|
},
|
|
2461
2461
|
newline() {
|
|
2462
|
-
|
|
2462
|
+
x(h.indentLevel);
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
|
-
function
|
|
2465
|
+
function x(y) {
|
|
2466
2466
|
h.push(
|
|
2467
2467
|
`
|
|
2468
2468
|
` + " ".repeat(y),
|
|
@@ -2484,10 +2484,10 @@ function oo(e, t = {}) {
|
|
|
2484
2484
|
newline: l,
|
|
2485
2485
|
scopeId: c,
|
|
2486
2486
|
ssr: m
|
|
2487
|
-
} = s, u = Array.from(e.helpers),
|
|
2487
|
+
} = s, u = Array.from(e.helpers), f = u.length > 0, h = !i && n !== "module";
|
|
2488
2488
|
ao(e, s);
|
|
2489
|
-
const y = m ? "ssrRender" : "render",
|
|
2490
|
-
if (r(`function ${y}(${
|
|
2489
|
+
const y = m ? "ssrRender" : "render", N = (m ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ");
|
|
2490
|
+
if (r(`function ${y}(${N}) {`), o(), h && (r("with (_ctx) {"), o(), f && (r(
|
|
2491
2491
|
`const { ${u.map(zn).join(", ")} } = _Vue
|
|
2492
2492
|
`,
|
|
2493
2493
|
-1
|
|
@@ -2530,8 +2530,8 @@ function ao(e, t) {
|
|
|
2530
2530
|
ys,
|
|
2531
2531
|
mt,
|
|
2532
2532
|
bs,
|
|
2533
|
-
|
|
2534
|
-
].filter((
|
|
2533
|
+
_n
|
|
2534
|
+
].filter((f) => m.includes(f)).map(zn).join(", ");
|
|
2535
2535
|
r(
|
|
2536
2536
|
`const { ${u} } = _Vue
|
|
2537
2537
|
`,
|
|
@@ -2566,7 +2566,7 @@ function lo(e, t) {
|
|
|
2566
2566
|
t.pure = !1;
|
|
2567
2567
|
}
|
|
2568
2568
|
function co(e) {
|
|
2569
|
-
return
|
|
2569
|
+
return re(e) || e.type === 4 || e.type === 2 || e.type === 5 || e.type === 8;
|
|
2570
2570
|
}
|
|
2571
2571
|
function Rs(e, t) {
|
|
2572
2572
|
const s = e.length > 3 || process.env.NODE_ENV !== "production" && e.some((n) => Ce(n) || !co(n));
|
|
@@ -2576,7 +2576,7 @@ function vt(e, t, s = !1, n = !0) {
|
|
|
2576
2576
|
const { push: r, newline: i } = t;
|
|
2577
2577
|
for (let o = 0; o < e.length; o++) {
|
|
2578
2578
|
const a = e[o];
|
|
2579
|
-
|
|
2579
|
+
re(a) ? r(
|
|
2580
2580
|
a,
|
|
2581
2581
|
-3
|
|
2582
2582
|
/* Unknown */
|
|
@@ -2584,7 +2584,7 @@ function vt(e, t, s = !1, n = !0) {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
function ce(e, t) {
|
|
2587
|
-
if (
|
|
2587
|
+
if (re(e)) {
|
|
2588
2588
|
t.push(
|
|
2589
2589
|
e,
|
|
2590
2590
|
-3
|
|
@@ -2684,7 +2684,7 @@ function fo(e, t) {
|
|
|
2684
2684
|
function Kn(e, t) {
|
|
2685
2685
|
for (let s = 0; s < e.children.length; s++) {
|
|
2686
2686
|
const n = e.children[s];
|
|
2687
|
-
|
|
2687
|
+
re(n) ? t.push(
|
|
2688
2688
|
n,
|
|
2689
2689
|
-3
|
|
2690
2690
|
/* Unknown */
|
|
@@ -2718,24 +2718,24 @@ function mo(e, t) {
|
|
|
2718
2718
|
dynamicProps: c,
|
|
2719
2719
|
directives: m,
|
|
2720
2720
|
isBlock: u,
|
|
2721
|
-
disableTracking:
|
|
2721
|
+
disableTracking: f,
|
|
2722
2722
|
isComponent: h
|
|
2723
2723
|
} = e;
|
|
2724
|
-
let
|
|
2724
|
+
let x;
|
|
2725
2725
|
if (l)
|
|
2726
2726
|
if (process.env.NODE_ENV !== "production")
|
|
2727
2727
|
if (l < 0)
|
|
2728
|
-
|
|
2728
|
+
x = l + ` /* ${at[l]} */`;
|
|
2729
2729
|
else {
|
|
2730
|
-
const
|
|
2731
|
-
|
|
2730
|
+
const O = Object.keys(at).map(Number).filter((N) => N > 0 && l & N).map((N) => at[N]).join(", ");
|
|
2731
|
+
x = l + ` /* ${O} */`;
|
|
2732
2732
|
}
|
|
2733
2733
|
else
|
|
2734
|
-
|
|
2735
|
-
m && s(n(Ss) + "("), u && s(`(${n(Je)}(${
|
|
2734
|
+
x = String(l);
|
|
2735
|
+
m && s(n(Ss) + "("), u && s(`(${n(Je)}(${f ? "true" : ""}), `), r && s(jt);
|
|
2736
2736
|
const y = u ? st(t.inSSR, h) : tt(t.inSSR, h);
|
|
2737
2737
|
s(n(y) + "(", -2, e), vt(
|
|
2738
|
-
go([i, o, a,
|
|
2738
|
+
go([i, o, a, x, c]),
|
|
2739
2739
|
t
|
|
2740
2740
|
), s(")"), u && s(")"), m && (s(", "), ce(m, t), s(")"));
|
|
2741
2741
|
}
|
|
@@ -2746,7 +2746,7 @@ function go(e) {
|
|
|
2746
2746
|
return e.slice(0, t + 1).map((s) => s || "null");
|
|
2747
2747
|
}
|
|
2748
2748
|
function vo(e, t) {
|
|
2749
|
-
const { push: s, helper: n, pure: r } = t, i =
|
|
2749
|
+
const { push: s, helper: n, pure: r } = t, i = re(e.callee) ? e.callee : n(e.callee);
|
|
2750
2750
|
r && s(jt), s(i + "(", -2, e), vt(e.arguments, t), s(")");
|
|
2751
2751
|
}
|
|
2752
2752
|
function yo(e, t) {
|
|
@@ -2811,7 +2811,7 @@ function Ke(e, t, s = !1, n = !1) {
|
|
|
2811
2811
|
);
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
|
-
const
|
|
2814
|
+
const No = (e, t) => {
|
|
2815
2815
|
if (e.type === 5)
|
|
2816
2816
|
e.content = Xt(
|
|
2817
2817
|
e.content,
|
|
@@ -2837,7 +2837,7 @@ const _o = (e, t) => {
|
|
|
2837
2837
|
function Xt(e, t, s = !1, n = !1, r = Object.create(t.identifiers)) {
|
|
2838
2838
|
return process.env.NODE_ENV !== "production" && Ke(e, t, s, n), e;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2840
|
+
const _o = Hn(
|
|
2841
2841
|
/^(if|else|else-if)$/,
|
|
2842
2842
|
(e, t, s) => Co(e, t, s, (n, r, i) => {
|
|
2843
2843
|
const o = s.parent.children;
|
|
@@ -3030,18 +3030,18 @@ const Io = (e, t, s) => {
|
|
|
3030
3030
|
(e, t, s) => {
|
|
3031
3031
|
const { helper: n, removeHelper: r } = s;
|
|
3032
3032
|
return Ao(e, t, s, (i) => {
|
|
3033
|
-
const o = se(n(
|
|
3033
|
+
const o = se(n(Ns), [
|
|
3034
3034
|
i.source
|
|
3035
3035
|
]), a = $t(e), l = pe(e, "memo"), c = ft(e, "key", !1, !0);
|
|
3036
3036
|
c && c.type === 7 && !c.exp && Wn(c);
|
|
3037
3037
|
let u = c && (c.type === 6 ? c.value ? A(c.value.content, !0) : void 0 : c.exp);
|
|
3038
|
-
const
|
|
3038
|
+
const f = c && u ? Z("key", u) : null, h = i.source.type === 4 && i.source.constType > 0, x = h ? 64 : c ? 128 : 256;
|
|
3039
3039
|
return i.codegenNode = dt(
|
|
3040
3040
|
s,
|
|
3041
3041
|
n(ct),
|
|
3042
3042
|
void 0,
|
|
3043
3043
|
o,
|
|
3044
|
-
|
|
3044
|
+
x,
|
|
3045
3045
|
void 0,
|
|
3046
3046
|
void 0,
|
|
3047
3047
|
!0,
|
|
@@ -3050,7 +3050,7 @@ const Io = (e, t, s) => {
|
|
|
3050
3050
|
e.loc
|
|
3051
3051
|
), () => {
|
|
3052
3052
|
let y;
|
|
3053
|
-
const { children:
|
|
3053
|
+
const { children: O } = i;
|
|
3054
3054
|
process.env.NODE_ENV !== "production" && a && e.children.some((w) => {
|
|
3055
3055
|
if (w.type === 1) {
|
|
3056
3056
|
const k = ft(w, "key");
|
|
@@ -3063,11 +3063,11 @@ const Io = (e, t, s) => {
|
|
|
3063
3063
|
), !0;
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
|
-
const
|
|
3067
|
-
if (R ? (y = R.codegenNode, a &&
|
|
3066
|
+
const N = O.length !== 1 || O[0].type !== 1, R = Rt(e) ? e : a && e.children.length === 1 && Rt(e.children[0]) ? e.children[0] : null;
|
|
3067
|
+
if (R ? (y = R.codegenNode, a && f && Mt(y, f, s)) : N ? y = dt(
|
|
3068
3068
|
s,
|
|
3069
3069
|
n(ct),
|
|
3070
|
-
|
|
3070
|
+
f ? xe([f]) : void 0,
|
|
3071
3071
|
e.children,
|
|
3072
3072
|
64,
|
|
3073
3073
|
void 0,
|
|
@@ -3075,7 +3075,7 @@ const Io = (e, t, s) => {
|
|
|
3075
3075
|
!0,
|
|
3076
3076
|
void 0,
|
|
3077
3077
|
!1
|
|
3078
|
-
) : (y =
|
|
3078
|
+
) : (y = O[0].codegenNode, a && f && Mt(y, f, s), y.isBlock !== !h && (y.isBlock ? (r(Je), r(
|
|
3079
3079
|
st(s.inSSR, y.isComponent)
|
|
3080
3080
|
)) : r(
|
|
3081
3081
|
tt(s.inSSR, y.isComponent)
|
|
@@ -3086,15 +3086,15 @@ const Io = (e, t, s) => {
|
|
|
3086
3086
|
])
|
|
3087
3087
|
);
|
|
3088
3088
|
w.body = wi([
|
|
3089
|
-
|
|
3090
|
-
|
|
3089
|
+
Ne(["const _memo = (", l.exp, ")"]),
|
|
3090
|
+
Ne([
|
|
3091
3091
|
"if (_cached",
|
|
3092
3092
|
...u ? [" && _cached.key === ", u] : [],
|
|
3093
3093
|
` && ${s.helperString(
|
|
3094
3094
|
On
|
|
3095
3095
|
)}(_cached, _memo)) return _cached`
|
|
3096
3096
|
]),
|
|
3097
|
-
|
|
3097
|
+
Ne(["const _item = ", y]),
|
|
3098
3098
|
A("_item.memo = _memo"),
|
|
3099
3099
|
A("return _item")
|
|
3100
3100
|
]), o.arguments.push(
|
|
@@ -3129,7 +3129,7 @@ function Ao(e, t, s, n) {
|
|
|
3129
3129
|
return;
|
|
3130
3130
|
}
|
|
3131
3131
|
Gn(r, s);
|
|
3132
|
-
const { addIdentifiers: i, removeIdentifiers: o, scopes: a } = s, { source: l, value: c, key: m, index: u } = r,
|
|
3132
|
+
const { addIdentifiers: i, removeIdentifiers: o, scopes: a } = s, { source: l, value: c, key: m, index: u } = r, f = {
|
|
3133
3133
|
type: 11,
|
|
3134
3134
|
loc: t.loc,
|
|
3135
3135
|
source: l,
|
|
@@ -3139,8 +3139,8 @@ function Ao(e, t, s, n) {
|
|
|
3139
3139
|
parseResult: r,
|
|
3140
3140
|
children: $t(e) ? e.children : [e]
|
|
3141
3141
|
};
|
|
3142
|
-
s.replaceNode(
|
|
3143
|
-
const h = n && n(
|
|
3142
|
+
s.replaceNode(f), a.vFor++;
|
|
3143
|
+
const h = n && n(f);
|
|
3144
3144
|
return () => {
|
|
3145
3145
|
a.vFor--, h && h();
|
|
3146
3146
|
};
|
|
@@ -3190,22 +3190,22 @@ function Mo(e, t, s = Ro) {
|
|
|
3190
3190
|
let a = t.scopes.vSlot > 0 || t.scopes.vFor > 0;
|
|
3191
3191
|
const l = pe(e, "slot", !0);
|
|
3192
3192
|
if (l) {
|
|
3193
|
-
const { arg:
|
|
3194
|
-
|
|
3193
|
+
const { arg: O, exp: N } = l;
|
|
3194
|
+
O && !he(O) && (a = !0), i.push(
|
|
3195
3195
|
Z(
|
|
3196
|
-
|
|
3197
|
-
s(
|
|
3196
|
+
O || A("default", !0),
|
|
3197
|
+
s(N, void 0, n, r)
|
|
3198
3198
|
)
|
|
3199
3199
|
);
|
|
3200
3200
|
}
|
|
3201
3201
|
let c = !1, m = !1;
|
|
3202
|
-
const u = [],
|
|
3202
|
+
const u = [], f = /* @__PURE__ */ new Set();
|
|
3203
3203
|
let h = 0;
|
|
3204
|
-
for (let
|
|
3205
|
-
const
|
|
3204
|
+
for (let O = 0; O < n.length; O++) {
|
|
3205
|
+
const N = n[O];
|
|
3206
3206
|
let R;
|
|
3207
|
-
if (!$t(
|
|
3208
|
-
|
|
3207
|
+
if (!$t(N) || !(R = pe(N, "slot", !0))) {
|
|
3208
|
+
N.type !== 3 && u.push(N);
|
|
3209
3209
|
continue;
|
|
3210
3210
|
}
|
|
3211
3211
|
if (l) {
|
|
@@ -3215,16 +3215,16 @@ function Mo(e, t, s = Ro) {
|
|
|
3215
3215
|
break;
|
|
3216
3216
|
}
|
|
3217
3217
|
c = !0;
|
|
3218
|
-
const { children: w, loc: k } =
|
|
3218
|
+
const { children: w, loc: k } = N, {
|
|
3219
3219
|
arg: C = A("default", !0),
|
|
3220
|
-
exp:
|
|
3220
|
+
exp: T,
|
|
3221
3221
|
loc: I
|
|
3222
3222
|
} = R;
|
|
3223
3223
|
let S;
|
|
3224
3224
|
he(C) ? S = C ? C.content : "default" : a = !0;
|
|
3225
|
-
const
|
|
3225
|
+
const _ = pe(N, "for"), H = s(T, _, w, k);
|
|
3226
3226
|
let B, $;
|
|
3227
|
-
if (B = pe(
|
|
3227
|
+
if (B = pe(N, "if"))
|
|
3228
3228
|
a = !0, o.push(
|
|
3229
3229
|
ss(
|
|
3230
3230
|
B.exp,
|
|
@@ -3233,12 +3233,12 @@ function Mo(e, t, s = Ro) {
|
|
|
3233
3233
|
)
|
|
3234
3234
|
);
|
|
3235
3235
|
else if ($ = pe(
|
|
3236
|
-
|
|
3236
|
+
N,
|
|
3237
3237
|
/^else(-if)?$/,
|
|
3238
3238
|
!0
|
|
3239
3239
|
/* allowEmpty */
|
|
3240
3240
|
)) {
|
|
3241
|
-
let z =
|
|
3241
|
+
let z = O, W;
|
|
3242
3242
|
for (; z-- && (W = n[z], !(W.type !== 3 && as(W))); )
|
|
3243
3243
|
;
|
|
3244
3244
|
if (W && $t(W) && pe(W, /^(else-)?if$/)) {
|
|
@@ -3258,11 +3258,11 @@ function Mo(e, t, s = Ro) {
|
|
|
3258
3258
|
t.onError(
|
|
3259
3259
|
K(30, $.loc)
|
|
3260
3260
|
);
|
|
3261
|
-
} else if (
|
|
3261
|
+
} else if (_) {
|
|
3262
3262
|
a = !0;
|
|
3263
|
-
const z =
|
|
3263
|
+
const z = _.forParseResult;
|
|
3264
3264
|
z ? (Gn(z, t), o.push(
|
|
3265
|
-
se(t.helper(
|
|
3265
|
+
se(t.helper(Ns), [
|
|
3266
3266
|
z.source,
|
|
3267
3267
|
et(
|
|
3268
3268
|
os(z),
|
|
@@ -3273,12 +3273,12 @@ function Mo(e, t, s = Ro) {
|
|
|
3273
3273
|
)) : t.onError(
|
|
3274
3274
|
K(
|
|
3275
3275
|
32,
|
|
3276
|
-
|
|
3276
|
+
_.loc
|
|
3277
3277
|
)
|
|
3278
3278
|
);
|
|
3279
3279
|
} else {
|
|
3280
3280
|
if (S) {
|
|
3281
|
-
if (
|
|
3281
|
+
if (f.has(S)) {
|
|
3282
3282
|
t.onError(
|
|
3283
3283
|
K(
|
|
3284
3284
|
38,
|
|
@@ -3287,29 +3287,29 @@ function Mo(e, t, s = Ro) {
|
|
|
3287
3287
|
);
|
|
3288
3288
|
continue;
|
|
3289
3289
|
}
|
|
3290
|
-
|
|
3290
|
+
f.add(S), S === "default" && (m = !0);
|
|
3291
3291
|
}
|
|
3292
3292
|
i.push(Z(C, H));
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
if (!l) {
|
|
3296
|
-
const
|
|
3297
|
-
const w = s(
|
|
3296
|
+
const O = (N, R) => {
|
|
3297
|
+
const w = s(N, void 0, R, r);
|
|
3298
3298
|
return t.compatConfig && (w.isNonScopedSlot = !0), Z("default", w);
|
|
3299
3299
|
};
|
|
3300
3300
|
c ? u.length && // #3766
|
|
3301
3301
|
// with whitespace: 'preserve', whitespaces between slots will end up in
|
|
3302
3302
|
// implicitDefaultChildren. Ignore if all implicit children are whitespaces.
|
|
3303
|
-
u.some((
|
|
3303
|
+
u.some((N) => as(N)) && (m ? t.onError(
|
|
3304
3304
|
K(
|
|
3305
3305
|
39,
|
|
3306
3306
|
u[0].loc
|
|
3307
3307
|
)
|
|
3308
3308
|
) : i.push(
|
|
3309
|
-
|
|
3310
|
-
)) : i.push(
|
|
3309
|
+
O(void 0, u)
|
|
3310
|
+
)) : i.push(O(void 0, n));
|
|
3311
3311
|
}
|
|
3312
|
-
const
|
|
3312
|
+
const x = a ? 2 : Tt(e.children) ? 3 : 1;
|
|
3313
3313
|
let y = xe(
|
|
3314
3314
|
i.concat(
|
|
3315
3315
|
Z(
|
|
@@ -3317,7 +3317,7 @@ function Mo(e, t, s = Ro) {
|
|
|
3317
3317
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
3318
3318
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
3319
3319
|
A(
|
|
3320
|
-
|
|
3320
|
+
x + (process.env.NODE_ENV !== "production" ? ` /* ${si[x]} */` : ""),
|
|
3321
3321
|
!1
|
|
3322
3322
|
)
|
|
3323
3323
|
)
|
|
@@ -3369,7 +3369,7 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3369
3369
|
const { tag: n, props: r } = e, i = e.tagType === 1;
|
|
3370
3370
|
let o = i ? Po(e, t) : `"${n}"`;
|
|
3371
3371
|
const a = Qr(o) && o.callee === Es;
|
|
3372
|
-
let l, c, m = 0, u,
|
|
3372
|
+
let l, c, m = 0, u, f, h, x = (
|
|
3373
3373
|
// dynamic component may resolve to plain elements
|
|
3374
3374
|
a || o === lt || o === gs || !i && // <svg> and <foreignObject> must be forced into blocks so that block
|
|
3375
3375
|
// updates inside get proper isSVG flag at runtime. (#639, #643)
|
|
@@ -3385,14 +3385,14 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3385
3385
|
i,
|
|
3386
3386
|
a
|
|
3387
3387
|
);
|
|
3388
|
-
l = y.props, m = y.patchFlag,
|
|
3389
|
-
const
|
|
3390
|
-
h =
|
|
3391
|
-
|
|
3392
|
-
) : void 0, y.shouldUseBlock && (
|
|
3388
|
+
l = y.props, m = y.patchFlag, f = y.dynamicPropNames;
|
|
3389
|
+
const O = y.directives;
|
|
3390
|
+
h = O && O.length ? We(
|
|
3391
|
+
O.map((N) => Bo(N, t))
|
|
3392
|
+
) : void 0, y.shouldUseBlock && (x = !0);
|
|
3393
3393
|
}
|
|
3394
3394
|
if (e.children.length > 0)
|
|
3395
|
-
if (o === Ot && (
|
|
3395
|
+
if (o === Ot && (x = !0, m |= 1024, process.env.NODE_ENV !== "production" && e.children.length > 1 && t.onError(
|
|
3396
3396
|
K(46, {
|
|
3397
3397
|
start: e.children[0].loc.start,
|
|
3398
3398
|
end: e.children[e.children.length - 1].loc.end,
|
|
@@ -3401,14 +3401,14 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3401
3401
|
)), i && // Teleport is not a real component and has dedicated runtime handling
|
|
3402
3402
|
o !== lt && // explained above.
|
|
3403
3403
|
o !== Ot) {
|
|
3404
|
-
const { slots:
|
|
3405
|
-
c =
|
|
3404
|
+
const { slots: O, hasDynamicSlots: N } = Mo(e, t);
|
|
3405
|
+
c = O, N && (m |= 1024);
|
|
3406
3406
|
} else if (e.children.length === 1 && o !== lt) {
|
|
3407
|
-
const
|
|
3408
|
-
R && ve(
|
|
3407
|
+
const O = e.children[0], N = O.type, R = N === 5 || N === 8;
|
|
3408
|
+
R && ve(O, t) === 0 && (m |= 1), R || N === 2 ? c = O : c = e.children;
|
|
3409
3409
|
} else
|
|
3410
3410
|
c = e.children;
|
|
3411
|
-
|
|
3411
|
+
f && f.length && (u = jo(f)), e.codegenNode = dt(
|
|
3412
3412
|
t,
|
|
3413
3413
|
o,
|
|
3414
3414
|
l,
|
|
@@ -3416,7 +3416,7 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3416
3416
|
m === 0 ? void 0 : m,
|
|
3417
3417
|
u,
|
|
3418
3418
|
h,
|
|
3419
|
-
!!
|
|
3419
|
+
!!x,
|
|
3420
3420
|
!1,
|
|
3421
3421
|
i,
|
|
3422
3422
|
e.loc
|
|
@@ -3448,9 +3448,9 @@ function Po(e, t, s = !1) {
|
|
|
3448
3448
|
function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
3449
3449
|
const { tag: o, loc: a, children: l } = e;
|
|
3450
3450
|
let c = [];
|
|
3451
|
-
const m = [], u = [],
|
|
3452
|
-
let h = !1,
|
|
3453
|
-
const C = [],
|
|
3451
|
+
const m = [], u = [], f = l.length > 0;
|
|
3452
|
+
let h = !1, x = 0, y = !1, O = !1, N = !1, R = !1, w = !1, k = !1;
|
|
3453
|
+
const C = [], T = (H) => {
|
|
3454
3454
|
c.length && (m.push(
|
|
3455
3455
|
xe(nn(c), a)
|
|
3456
3456
|
), c = []), H && m.push(H);
|
|
@@ -3470,7 +3470,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3470
3470
|
$ !== "onUpdate:modelValue" && // omit onVnodeXXX hooks
|
|
3471
3471
|
!Us($) && (R = !0), z && Us($) && (k = !0), z && B.type === 14 && (B = B.arguments[0]), B.type === 20 || (B.type === 4 || B.type === 8) && ve(B, t) > 0)
|
|
3472
3472
|
return;
|
|
3473
|
-
$ === "ref" ? y = !0 : $ === "class" ?
|
|
3473
|
+
$ === "ref" ? y = !0 : $ === "class" ? O = !0 : $ === "style" ? N = !0 : $ !== "key" && !C.includes($) && C.push($), n && ($ === "class" || $ === "style") && !C.includes($) && C.push($);
|
|
3474
3474
|
} else
|
|
3475
3475
|
w = !0;
|
|
3476
3476
|
};
|
|
@@ -3495,27 +3495,27 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3495
3495
|
)
|
|
3496
3496
|
);
|
|
3497
3497
|
} else {
|
|
3498
|
-
const { name: $, arg: z, exp: W, loc: G, modifiers: me } = B,
|
|
3498
|
+
const { name: $, arg: z, exp: W, loc: G, modifiers: me } = B, _e = $ === "bind", Be = $ === "on";
|
|
3499
3499
|
if ($ === "slot") {
|
|
3500
3500
|
n || t.onError(
|
|
3501
3501
|
K(40, G)
|
|
3502
3502
|
);
|
|
3503
3503
|
continue;
|
|
3504
3504
|
}
|
|
3505
|
-
if ($ === "once" || $ === "memo" || $ === "is" ||
|
|
3505
|
+
if ($ === "once" || $ === "memo" || $ === "is" || _e && Me(z, "is") && (ls(o) || Fe(
|
|
3506
3506
|
"COMPILER_IS_ON_ELEMENT",
|
|
3507
3507
|
t
|
|
3508
3508
|
)) || Be && i)
|
|
3509
3509
|
continue;
|
|
3510
3510
|
if (
|
|
3511
3511
|
// #938: elements with dynamic keys should be forced into blocks
|
|
3512
|
-
(
|
|
3512
|
+
(_e && Me(z, "key") || // inline before-update hooks need to force block so that it is invoked
|
|
3513
3513
|
// before children
|
|
3514
|
-
Be &&
|
|
3514
|
+
Be && f && Me(z, "vue:before-update")) && (h = !0), _e && Me(z, "ref") && I(), !z && (_e || Be)
|
|
3515
3515
|
) {
|
|
3516
3516
|
if (w = !0, W)
|
|
3517
|
-
if (
|
|
3518
|
-
if (
|
|
3517
|
+
if (_e) {
|
|
3518
|
+
if (T(), process.env.NODE_ENV !== "production" && m.some((Ee) => Ee.type === 15 ? Ee.properties.some(({ key: je }) => je.type !== 4 || !je.isStatic ? !0 : je.content !== "class" && je.content !== "style" && !Zt(je.content)) : !0) && nt(
|
|
3519
3519
|
"COMPILER_V_BIND_OBJECT_ORDER",
|
|
3520
3520
|
t,
|
|
3521
3521
|
G
|
|
@@ -3526,9 +3526,9 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3526
3526
|
m.unshift(W);
|
|
3527
3527
|
continue;
|
|
3528
3528
|
}
|
|
3529
|
-
I(),
|
|
3529
|
+
I(), T(), m.push(W);
|
|
3530
3530
|
} else
|
|
3531
|
-
|
|
3531
|
+
T({
|
|
3532
3532
|
type: 14,
|
|
3533
3533
|
loc: G,
|
|
3534
3534
|
callee: t.helper(Ts),
|
|
@@ -3537,46 +3537,46 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3537
3537
|
else
|
|
3538
3538
|
t.onError(
|
|
3539
3539
|
K(
|
|
3540
|
-
|
|
3540
|
+
_e ? 34 : 35,
|
|
3541
3541
|
G
|
|
3542
3542
|
)
|
|
3543
3543
|
);
|
|
3544
3544
|
continue;
|
|
3545
3545
|
}
|
|
3546
|
-
|
|
3546
|
+
_e && me.some((Q) => Q.content === "prop") && (x |= 32);
|
|
3547
3547
|
const rt = t.directiveTransforms[$];
|
|
3548
3548
|
if (rt) {
|
|
3549
3549
|
const { props: Q, needRuntime: Ee } = rt(B, e, t);
|
|
3550
|
-
!i && Q.forEach(S), Be && z && !he(z) ?
|
|
3551
|
-
} else Zr($) || (u.push(B),
|
|
3550
|
+
!i && Q.forEach(S), Be && z && !he(z) ? T(xe(Q, a)) : c.push(...Q), Ee && (u.push(B), ps(Ee) && Jn.set(B, Ee));
|
|
3551
|
+
} else Zr($) || (u.push(B), f && (h = !0));
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
|
-
let
|
|
3555
|
-
if (m.length ? (
|
|
3554
|
+
let _;
|
|
3555
|
+
if (m.length ? (T(), m.length > 1 ? _ = se(
|
|
3556
3556
|
t.helper(It),
|
|
3557
3557
|
m,
|
|
3558
3558
|
a
|
|
3559
|
-
) :
|
|
3559
|
+
) : _ = m[0]) : c.length && (_ = xe(
|
|
3560
3560
|
nn(c),
|
|
3561
3561
|
a
|
|
3562
|
-
)), w ?
|
|
3563
|
-
switch (
|
|
3562
|
+
)), w ? x |= 16 : (O && !n && (x |= 2), N && !n && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || k || u.length > 0) && (x |= 512), !t.inSSR && _)
|
|
3563
|
+
switch (_.type) {
|
|
3564
3564
|
case 15:
|
|
3565
3565
|
let H = -1, B = -1, $ = !1;
|
|
3566
|
-
for (let G = 0; G <
|
|
3567
|
-
const me =
|
|
3566
|
+
for (let G = 0; G < _.properties.length; G++) {
|
|
3567
|
+
const me = _.properties[G].key;
|
|
3568
3568
|
he(me) ? me.content === "class" ? H = G : me.content === "style" && (B = G) : me.isHandlerKey || ($ = !0);
|
|
3569
3569
|
}
|
|
3570
|
-
const z =
|
|
3571
|
-
$ ?
|
|
3570
|
+
const z = _.properties[H], W = _.properties[B];
|
|
3571
|
+
$ ? _ = se(
|
|
3572
3572
|
t.helper(ut),
|
|
3573
|
-
[
|
|
3573
|
+
[_]
|
|
3574
3574
|
) : (z && !he(z.value) && (z.value = se(
|
|
3575
|
-
t.helper(
|
|
3575
|
+
t.helper(_s),
|
|
3576
3576
|
[z.value]
|
|
3577
3577
|
)), W && // the static style is compiled into an object,
|
|
3578
3578
|
// so use `hasStyleBinding` to ensure that it is a dynamic style binding
|
|
3579
|
-
(
|
|
3579
|
+
(N || W.value.type === 4 && W.value.content.trim()[0] === "[" || // v-bind:style and style both exist,
|
|
3580
3580
|
// v-bind:style with static literal object
|
|
3581
3581
|
W.value.type === 17) && (W.value = se(
|
|
3582
3582
|
t.helper(Cs),
|
|
@@ -3586,20 +3586,20 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3586
3586
|
case 14:
|
|
3587
3587
|
break;
|
|
3588
3588
|
default:
|
|
3589
|
-
|
|
3589
|
+
_ = se(
|
|
3590
3590
|
t.helper(ut),
|
|
3591
3591
|
[
|
|
3592
3592
|
se(t.helper(gt), [
|
|
3593
|
-
|
|
3593
|
+
_
|
|
3594
3594
|
])
|
|
3595
3595
|
]
|
|
3596
3596
|
);
|
|
3597
3597
|
break;
|
|
3598
3598
|
}
|
|
3599
3599
|
return {
|
|
3600
|
-
props:
|
|
3600
|
+
props: _,
|
|
3601
3601
|
directives: u,
|
|
3602
|
-
patchFlag:
|
|
3602
|
+
patchFlag: x,
|
|
3603
3603
|
dynamicPropNames: C,
|
|
3604
3604
|
shouldUseBlock: h
|
|
3605
3605
|
};
|
|
@@ -3712,7 +3712,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3712
3712
|
if (o.isStatic) {
|
|
3713
3713
|
let u = o.content;
|
|
3714
3714
|
process.env.NODE_ENV !== "production" && u.startsWith("vnode") && s.onError(K(51, o.loc)), u.startsWith("vue:") && (u = `vnode-${u.slice(4)}`);
|
|
3715
|
-
const
|
|
3715
|
+
const f = t.tagType !== 0 || u.startsWith("vnode") || !/[A-Z]/.test(u) ? (
|
|
3716
3716
|
// for non-element and vnode lifecycle event listeners, auto convert
|
|
3717
3717
|
// it to camelCase. See issue #2249
|
|
3718
3718
|
ti(Pe(u))
|
|
@@ -3721,9 +3721,9 @@ const Xn = (e, t, s, n) => {
|
|
|
3721
3721
|
// letters, as these may be custom elements' custom events
|
|
3722
3722
|
`on:${u}`
|
|
3723
3723
|
);
|
|
3724
|
-
a = A(
|
|
3724
|
+
a = A(f, !0, o.loc);
|
|
3725
3725
|
} else
|
|
3726
|
-
a =
|
|
3726
|
+
a = Ne([
|
|
3727
3727
|
`${s.helperString(ts)}(`,
|
|
3728
3728
|
o,
|
|
3729
3729
|
")"
|
|
@@ -3734,14 +3734,14 @@ const Xn = (e, t, s, n) => {
|
|
|
3734
3734
|
l && !l.content.trim() && (l = void 0);
|
|
3735
3735
|
let c = s.cacheHandlers && !l && !s.inVOnce;
|
|
3736
3736
|
if (l) {
|
|
3737
|
-
const u = Vn(l),
|
|
3737
|
+
const u = Vn(l), f = !(u || $i(l)), h = l.content.includes(";");
|
|
3738
3738
|
process.env.NODE_ENV !== "production" && Ke(
|
|
3739
3739
|
l,
|
|
3740
3740
|
s,
|
|
3741
3741
|
!1,
|
|
3742
3742
|
h
|
|
3743
|
-
), (
|
|
3744
|
-
`${
|
|
3743
|
+
), (f || c && u) && (l = Ne([
|
|
3744
|
+
`${f ? "$event" : "(...args)"} => ${h ? "{" : "("}`,
|
|
3745
3745
|
l,
|
|
3746
3746
|
h ? "}" : ")"
|
|
3747
3747
|
]));
|
|
@@ -3767,7 +3767,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3767
3767
|
for (let a = i + 1; a < s.length; a++) {
|
|
3768
3768
|
const l = s[a];
|
|
3769
3769
|
if (Jt(l))
|
|
3770
|
-
n || (n = s[i] =
|
|
3770
|
+
n || (n = s[i] = Ne(
|
|
3771
3771
|
[o],
|
|
3772
3772
|
o.loc
|
|
3773
3773
|
)), n.children.push(" + ", l), s.splice(a, 1), a--;
|
|
@@ -3832,25 +3832,25 @@ const Xn = (e, t, s, n) => {
|
|
|
3832
3832
|
return s.onError(
|
|
3833
3833
|
K(42, n.loc)
|
|
3834
3834
|
), wt();
|
|
3835
|
-
const l = r || A("modelValue", !0), c = r ? he(r) ? `onUpdate:${Pe(r.content)}` :
|
|
3835
|
+
const l = r || A("modelValue", !0), c = r ? he(r) ? `onUpdate:${Pe(r.content)}` : Ne(['"onUpdate:" + ', r]) : "onUpdate:modelValue";
|
|
3836
3836
|
let m;
|
|
3837
3837
|
const u = s.isTS ? "($event: any)" : "$event";
|
|
3838
|
-
m =
|
|
3838
|
+
m = Ne([
|
|
3839
3839
|
`${u} => ((`,
|
|
3840
3840
|
n,
|
|
3841
3841
|
") = $event)"
|
|
3842
3842
|
]);
|
|
3843
|
-
const
|
|
3843
|
+
const f = [
|
|
3844
3844
|
// modelValue: foo
|
|
3845
3845
|
Z(l, e.exp),
|
|
3846
3846
|
// "onUpdate:modelValue": $event => (foo = $event)
|
|
3847
3847
|
Z(c, m)
|
|
3848
3848
|
];
|
|
3849
3849
|
if (e.modifiers.length && t.tagType === 1) {
|
|
3850
|
-
const h = e.modifiers.map((y) => y.content).map((y) => (Vs(y) ? y : JSON.stringify(y)) + ": true").join(", "),
|
|
3851
|
-
|
|
3850
|
+
const h = e.modifiers.map((y) => y.content).map((y) => (Vs(y) ? y : JSON.stringify(y)) + ": true").join(", "), x = r ? he(r) ? `${r.content}Modifiers` : Ne([r, ' + "Modifiers"']) : "modelModifiers";
|
|
3851
|
+
f.push(
|
|
3852
3852
|
Z(
|
|
3853
|
-
|
|
3853
|
+
x,
|
|
3854
3854
|
A(
|
|
3855
3855
|
`{ ${h} }`,
|
|
3856
3856
|
!1,
|
|
@@ -3860,7 +3860,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3860
3860
|
)
|
|
3861
3861
|
);
|
|
3862
3862
|
}
|
|
3863
|
-
return wt(
|
|
3863
|
+
return wt(f);
|
|
3864
3864
|
};
|
|
3865
3865
|
function wt(e = []) {
|
|
3866
3866
|
return { props: e };
|
|
@@ -3881,19 +3881,19 @@ function Lt(e, t) {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
function on(e, t) {
|
|
3883
3883
|
const s = e.content;
|
|
3884
|
-
let n = !1, r = !1, i = !1, o = !1, a = 0, l = 0, c = 0, m = 0, u,
|
|
3884
|
+
let n = !1, r = !1, i = !1, o = !1, a = 0, l = 0, c = 0, m = 0, u, f, h, x, y = [];
|
|
3885
3885
|
for (h = 0; h < s.length; h++)
|
|
3886
|
-
if (
|
|
3887
|
-
u === 39 &&
|
|
3886
|
+
if (f = u, u = s.charCodeAt(h), n)
|
|
3887
|
+
u === 39 && f !== 92 && (n = !1);
|
|
3888
3888
|
else if (r)
|
|
3889
|
-
u === 34 &&
|
|
3889
|
+
u === 34 && f !== 92 && (r = !1);
|
|
3890
3890
|
else if (i)
|
|
3891
|
-
u === 96 &&
|
|
3891
|
+
u === 96 && f !== 92 && (i = !1);
|
|
3892
3892
|
else if (o)
|
|
3893
|
-
u === 47 &&
|
|
3893
|
+
u === 47 && f !== 92 && (o = !1);
|
|
3894
3894
|
else if (u === 124 && // pipe
|
|
3895
3895
|
s.charCodeAt(h + 1) !== 124 && s.charCodeAt(h - 1) !== 124 && !a && !l && !c)
|
|
3896
|
-
|
|
3896
|
+
x === void 0 ? (m = h + 1, x = s.slice(0, h).trim()) : O();
|
|
3897
3897
|
else {
|
|
3898
3898
|
switch (u) {
|
|
3899
3899
|
case 34:
|
|
@@ -3933,14 +3933,14 @@ function on(e, t) {
|
|
|
3933
3933
|
break;
|
|
3934
3934
|
}
|
|
3935
3935
|
if (u === 47) {
|
|
3936
|
-
let
|
|
3937
|
-
for (;
|
|
3936
|
+
let N = h - 1, R;
|
|
3937
|
+
for (; N >= 0 && (R = s.charAt(N), R === " "); N--)
|
|
3938
3938
|
;
|
|
3939
3939
|
(!R || !Ko.test(R)) && (o = !0);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
|
|
3943
|
-
function
|
|
3942
|
+
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 && O();
|
|
3943
|
+
function O() {
|
|
3944
3944
|
y.push(s.slice(m, h).trim()), m = h + 1;
|
|
3945
3945
|
}
|
|
3946
3946
|
if (y.length) {
|
|
@@ -3949,8 +3949,8 @@ function on(e, t) {
|
|
|
3949
3949
|
t,
|
|
3950
3950
|
e.loc
|
|
3951
3951
|
), h = 0; h < y.length; h++)
|
|
3952
|
-
|
|
3953
|
-
e.content =
|
|
3952
|
+
x = Go(x, y[h], t);
|
|
3953
|
+
e.content = x, e.ast = void 0;
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
3956
|
function Go(e, t, s) {
|
|
@@ -3981,11 +3981,11 @@ function Yo(e) {
|
|
|
3981
3981
|
return [
|
|
3982
3982
|
[
|
|
3983
3983
|
qo,
|
|
3984
|
-
|
|
3984
|
+
_o,
|
|
3985
3985
|
Jo,
|
|
3986
3986
|
Do,
|
|
3987
3987
|
Wo,
|
|
3988
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
3988
|
+
...process.env.NODE_ENV !== "production" ? [No] : [],
|
|
3989
3989
|
Uo,
|
|
3990
3990
|
Lo,
|
|
3991
3991
|
$o,
|
|
@@ -4005,7 +4005,7 @@ function Xo(e, t = {}) {
|
|
|
4005
4005
|
t.cacheHandlers && s(K(49)), t.scopeId && !n && s(K(50));
|
|
4006
4006
|
const i = Le({}, t, {
|
|
4007
4007
|
prefixIdentifiers: r
|
|
4008
|
-
}), o =
|
|
4008
|
+
}), o = re(e) ? Qi(e, i) : e, [a, l] = Yo();
|
|
4009
4009
|
return so(
|
|
4010
4010
|
o,
|
|
4011
4011
|
Le({}, i, {
|
|
@@ -4240,7 +4240,7 @@ const na = {
|
|
|
4240
4240
|
nonKeyModifiers: i,
|
|
4241
4241
|
eventOptionModifiers: o
|
|
4242
4242
|
};
|
|
4243
|
-
}, ln = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? A(t, !0) : e.type !== 4 ?
|
|
4243
|
+
}, ln = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? A(t, !0) : e.type !== 4 ? Ne([
|
|
4244
4244
|
"(",
|
|
4245
4245
|
e,
|
|
4246
4246
|
`) === "onClick" ? "${t}" : (`,
|
|
@@ -4260,7 +4260,7 @@ const na = {
|
|
|
4260
4260
|
JSON.stringify(a)
|
|
4261
4261
|
])), c.length) {
|
|
4262
4262
|
const m = c.map(ms).join("");
|
|
4263
|
-
i = he(i) ? A(`${i.content}${m}`, !0) :
|
|
4263
|
+
i = he(i) ? A(`${i.content}${m}`, !0) : Ne(["(", i, `) + "${m}"`]);
|
|
4264
4264
|
}
|
|
4265
4265
|
return {
|
|
4266
4266
|
props: [Z(i, o)]
|
|
@@ -4516,7 +4516,7 @@ function pn(e) {
|
|
|
4516
4516
|
props: { row: Object, value: null, data: Object, column: Object }
|
|
4517
4517
|
})), Qt[e];
|
|
4518
4518
|
}
|
|
4519
|
-
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" }, ka = { class: "max-w-sm mx-auto" }, wa = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, Sa = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" },
|
|
4519
|
+
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" }, ka = { class: "max-w-sm mx-auto" }, wa = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, Sa = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" }, Na = /* @__PURE__ */ ae({
|
|
4520
4520
|
__name: "nodata",
|
|
4521
4521
|
props: {
|
|
4522
4522
|
title: { default: "No data" },
|
|
@@ -4525,13 +4525,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4525
4525
|
setup(e) {
|
|
4526
4526
|
return (t, s) => (v(), E("div", Ea, [
|
|
4527
4527
|
s[0] || (s[0] = ds('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4528
|
+
d("div", ka, [
|
|
4529
|
+
d("p", wa, D(t.title), 1),
|
|
4530
|
+
d("p", Sa, D(t.description), 1)
|
|
4531
4531
|
])
|
|
4532
4532
|
]));
|
|
4533
4533
|
}
|
|
4534
|
-
}),
|
|
4534
|
+
}), _a = ["aria-checked", "data-state"], Ca = {
|
|
4535
4535
|
key: 0,
|
|
4536
4536
|
"data-state": "checked",
|
|
4537
4537
|
"data-slot": "checkbox-indicator",
|
|
@@ -4571,20 +4571,21 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4571
4571
|
accent: {},
|
|
4572
4572
|
editable: { type: Boolean },
|
|
4573
4573
|
color: {},
|
|
4574
|
+
classContent: {},
|
|
4574
4575
|
fetchOptions: { type: Function }
|
|
4575
4576
|
},
|
|
4576
4577
|
emits: ["edit", "update"],
|
|
4577
4578
|
setup(e, { emit: t }) {
|
|
4578
|
-
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (
|
|
4579
|
-
|
|
4579
|
+
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (T) => {
|
|
4580
|
+
T.detail.key === "locale" && (c.value = T.detail.newValue);
|
|
4580
4581
|
};
|
|
4581
|
-
|
|
4582
|
-
a.value =
|
|
4582
|
+
De(() => s.value, (T) => {
|
|
4583
|
+
a.value = T;
|
|
4583
4584
|
});
|
|
4584
4585
|
const u = q(() => {
|
|
4585
|
-
const
|
|
4586
|
-
if (
|
|
4587
|
-
switch (
|
|
4586
|
+
const T = s.column?.schema?.[s.column?.name];
|
|
4587
|
+
if (T?.type)
|
|
4588
|
+
switch (T.type) {
|
|
4588
4589
|
case "Text":
|
|
4589
4590
|
return "text";
|
|
4590
4591
|
case "Number":
|
|
@@ -4600,12 +4601,12 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4600
4601
|
}
|
|
4601
4602
|
const S = (s.format || s.column?.format || "text").toLowerCase();
|
|
4602
4603
|
return ["text", "number", "date", "select", "boolean"].includes(S) ? S : "text";
|
|
4603
|
-
}),
|
|
4604
|
+
}), f = q(() => (s.column?.schema?.[s.column?.name]?.options || s.options || l.value || []).map((I) => ({
|
|
4604
4605
|
value: I.id ?? I.value,
|
|
4605
4606
|
color: I.color,
|
|
4606
4607
|
label: I.text ?? I.label
|
|
4607
4608
|
}))), h = M(null);
|
|
4608
|
-
function
|
|
4609
|
+
function x() {
|
|
4609
4610
|
s.editable && (r.value || document.dispatchEvent(new CustomEvent("close-all-popovers")), r.value = !r.value, r.value && bn(() => {
|
|
4610
4611
|
i.value?.focus?.(), i.value?.showPicker?.(), u.value === "select" && C();
|
|
4611
4612
|
}));
|
|
@@ -4613,28 +4614,28 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4613
4614
|
function y() {
|
|
4614
4615
|
n("edit", s.row, s.column.name, a.value), n("update", s.row, s.column.name, a.value), r.value = !1;
|
|
4615
4616
|
}
|
|
4616
|
-
function
|
|
4617
|
+
function O() {
|
|
4617
4618
|
a.value = s.value, r.value = !1;
|
|
4618
4619
|
}
|
|
4619
|
-
function
|
|
4620
|
+
function N(T) {
|
|
4620
4621
|
if (!r.value) return;
|
|
4621
|
-
const I =
|
|
4622
|
+
const I = T.target;
|
|
4622
4623
|
h.value && !h.value.contains(I) && (r.value = !1);
|
|
4623
4624
|
}
|
|
4624
4625
|
Ge(() => {
|
|
4625
|
-
document.addEventListener("click",
|
|
4626
|
+
document.addEventListener("click", N), window.addEventListener("storage", m), c.value = localStorage.locale, document.addEventListener("close-all-popovers", () => {
|
|
4626
4627
|
r.value = !1;
|
|
4627
4628
|
});
|
|
4628
4629
|
}), vn(() => {
|
|
4629
|
-
document.removeEventListener("click",
|
|
4630
|
+
document.removeEventListener("click", N), window.removeEventListener("storage", m), document.removeEventListener("close-all-popovers", () => {
|
|
4630
4631
|
r.value = !1;
|
|
4631
4632
|
});
|
|
4632
4633
|
});
|
|
4633
4634
|
function R() {
|
|
4634
4635
|
s.editable && (a.value = !a.value, n("update", s.row, s.column.name, a.value));
|
|
4635
4636
|
}
|
|
4636
|
-
function w(
|
|
4637
|
-
return s.color ? s.color.startsWith("#") ?
|
|
4637
|
+
function w(T) {
|
|
4638
|
+
return s.color ? s.color.startsWith("#") ? T.replace("{c}", `[${s.color}]`) : T.replace("{c}", `${s.color}-500`) : T.replace("{c}", "cyan-500");
|
|
4638
4639
|
}
|
|
4639
4640
|
const k = q(() => ({
|
|
4640
4641
|
border: w("border-{c}"),
|
|
@@ -4647,16 +4648,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4647
4648
|
if (u.value === "select" && !(s.options && s.options.length > 0 || s.column?.schema?.[s.column?.name]?.options?.length > 0) && l.value.length === 0 && s.fetchOptions)
|
|
4648
4649
|
try {
|
|
4649
4650
|
l.value = await s.fetchOptions(s.column.name);
|
|
4650
|
-
} catch (
|
|
4651
|
-
console.error(`Не удалось загрузить options для ${s.column.name}`,
|
|
4651
|
+
} catch (T) {
|
|
4652
|
+
console.error(`Не удалось загрузить options для ${s.column.name}`, T);
|
|
4652
4653
|
}
|
|
4653
4654
|
}
|
|
4654
|
-
return (
|
|
4655
|
-
class: "relative group w-full max-w-[350px]",
|
|
4655
|
+
return (T, I) => (v(), E("div", {
|
|
4656
|
+
class: L(T.classContent ? T.classContent : "relative group w-full max-w-[350px]"),
|
|
4656
4657
|
ref_key: "cellRef",
|
|
4657
4658
|
ref: h
|
|
4658
4659
|
}, [
|
|
4659
|
-
u.value === "boolean" &&
|
|
4660
|
+
u.value === "boolean" && T.editable ? (v(), E("button", {
|
|
4660
4661
|
key: 0,
|
|
4661
4662
|
type: "button",
|
|
4662
4663
|
role: "checkbox",
|
|
@@ -4671,7 +4672,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4671
4672
|
onClick: ot(R, ["stop"])
|
|
4672
4673
|
}, [
|
|
4673
4674
|
a.value ? (v(), E("span", Ca, I[4] || (I[4] = [
|
|
4674
|
-
|
|
4675
|
+
d("svg", {
|
|
4675
4676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4676
4677
|
width: "24",
|
|
4677
4678
|
height: "24",
|
|
@@ -4683,18 +4684,18 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4683
4684
|
"stroke-linejoin": "round",
|
|
4684
4685
|
class: "lucide lucide-check size-3.5"
|
|
4685
4686
|
}, [
|
|
4686
|
-
|
|
4687
|
+
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4687
4688
|
], -1)
|
|
4688
4689
|
]))) : te("", !0)
|
|
4689
|
-
], 10,
|
|
4690
|
-
|
|
4690
|
+
], 10, _a)) : (v(), E(ne, { key: 1 }, [
|
|
4691
|
+
d("div", {
|
|
4691
4692
|
class: "flex items-center justify-between cursor-pointer",
|
|
4692
|
-
onClick: ot(
|
|
4693
|
+
onClick: ot(x, ["stop"])
|
|
4693
4694
|
}, [
|
|
4694
|
-
|
|
4695
|
-
|
|
4695
|
+
d("span", Ta, [
|
|
4696
|
+
Ie(T.$slots, "default")
|
|
4696
4697
|
]),
|
|
4697
|
-
|
|
4698
|
+
T.editable ? (v(), E("svg", {
|
|
4698
4699
|
key: 0,
|
|
4699
4700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4700
4701
|
fill: "none",
|
|
@@ -4702,7 +4703,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4702
4703
|
stroke: "currentColor",
|
|
4703
4704
|
class: L(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity", k.value.text])
|
|
4704
4705
|
}, I[5] || (I[5] = [
|
|
4705
|
-
|
|
4706
|
+
d("path", {
|
|
4706
4707
|
"stroke-linecap": "round",
|
|
4707
4708
|
"stroke-linejoin": "round",
|
|
4708
4709
|
"stroke-width": "2",
|
|
@@ -4715,43 +4716,43 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4715
4716
|
ref_key: "popoverRef",
|
|
4716
4717
|
ref: o,
|
|
4717
4718
|
class: L(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg", u.value === "select" ? "" : "w-[450px]"]),
|
|
4718
|
-
onKeydown: Kt(ot(
|
|
4719
|
+
onKeydown: Kt(ot(O, ["stop", "prevent"]), ["esc"])
|
|
4719
4720
|
}, [
|
|
4720
4721
|
u.value === "select" ? (v(), E("div", Ia, [
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4722
|
+
d("div", Da, [
|
|
4723
|
+
d("span", Aa, [
|
|
4724
|
+
d("span", Va, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1)
|
|
4724
4725
|
])
|
|
4725
4726
|
]),
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
(v(!0), E(
|
|
4727
|
+
d("div", $a, [
|
|
4728
|
+
d("div", Ra, [
|
|
4729
|
+
(v(!0), E(ne, null, Se(f.value, (S) => (v(), E("label", {
|
|
4729
4730
|
key: S.value.toString(),
|
|
4730
4731
|
onClick: ot(() => {
|
|
4731
4732
|
a.value = S.value, y();
|
|
4732
4733
|
}, ["prevent"]),
|
|
4733
4734
|
class: "py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"
|
|
4734
4735
|
}, [
|
|
4735
|
-
I[8] || (I[8] =
|
|
4736
|
+
I[8] || (I[8] = d("input", {
|
|
4736
4737
|
type: "radio",
|
|
4737
4738
|
class: "hidden",
|
|
4738
4739
|
id: "hs-pro-chthuts1op",
|
|
4739
4740
|
name: "hs-pro-chthuts1"
|
|
4740
4741
|
}, null, -1)),
|
|
4741
4742
|
S.color ? (v(), E("span", La, I[6] || (I[6] = [
|
|
4742
|
-
|
|
4743
|
+
d("span", { class: "shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full" }, null, -1)
|
|
4743
4744
|
]))) : te("", !0),
|
|
4744
4745
|
be(" " + D(S.label) + " ", 1),
|
|
4745
4746
|
a.value === S.value ? (v(), E("svg", Pa, I[7] || (I[7] = [
|
|
4746
|
-
|
|
4747
|
+
d("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
4747
4748
|
]))) : te("", !0)
|
|
4748
4749
|
], 8, Ma))), 128))
|
|
4749
4750
|
])
|
|
4750
4751
|
])
|
|
4751
4752
|
])) : (v(), E("div", Fa, [
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4753
|
+
d("h3", Ba, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4754
|
+
d("div", ja, [
|
|
4755
|
+
d("label", Ua, D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4755
4756
|
u.value === "text" ? ke((v(), E("input", {
|
|
4756
4757
|
key: 0,
|
|
4757
4758
|
ref_key: "inputRef",
|
|
@@ -4794,11 +4795,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4794
4795
|
"onUpdate:modelValue": I[3] || (I[3] = (S) => a.value = S),
|
|
4795
4796
|
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300", k.value.ring, k.value.border])
|
|
4796
4797
|
}, [
|
|
4797
|
-
I[9] || (I[9] =
|
|
4798
|
+
I[9] || (I[9] = d("option", {
|
|
4798
4799
|
disabled: "",
|
|
4799
4800
|
value: ""
|
|
4800
4801
|
}, "-- виберіть --", -1)),
|
|
4801
|
-
(v(!0), E(
|
|
4802
|
+
(v(!0), E(ne, null, Se(f.value, (S) => (v(), E("option", {
|
|
4802
4803
|
key: S.value.toString(),
|
|
4803
4804
|
value: S.value
|
|
4804
4805
|
}, D(S.label), 9, Ha))), 128))
|
|
@@ -4806,13 +4807,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4806
4807
|
[mr, a.value]
|
|
4807
4808
|
]) : te("", !0)
|
|
4808
4809
|
]),
|
|
4809
|
-
|
|
4810
|
-
|
|
4810
|
+
d("div", za, [
|
|
4811
|
+
d("button", {
|
|
4811
4812
|
type: "button",
|
|
4812
4813
|
class: "px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
4813
|
-
onClick:
|
|
4814
|
+
onClick: O
|
|
4814
4815
|
}, " Скасувати "),
|
|
4815
|
-
|
|
4816
|
+
d("button", {
|
|
4816
4817
|
type: "button",
|
|
4817
4818
|
class: L(["px-4 py-1.5 text-sm rounded-md text-white", k.value.bg]),
|
|
4818
4819
|
onClick: y
|
|
@@ -4821,7 +4822,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4821
4822
|
]))
|
|
4822
4823
|
], 42, Oa)) : te("", !0)
|
|
4823
4824
|
], 64))
|
|
4824
|
-
],
|
|
4825
|
+
], 2));
|
|
4825
4826
|
}
|
|
4826
4827
|
}), Ka = {
|
|
4827
4828
|
key: 0,
|
|
@@ -4854,6 +4855,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4854
4855
|
classTd: { default: "" },
|
|
4855
4856
|
classTh: { default: "" },
|
|
4856
4857
|
classThead: { default: "" },
|
|
4858
|
+
classContent: { default: "" },
|
|
4857
4859
|
classLink: { default: "" },
|
|
4858
4860
|
selectable: { type: Boolean, default: !1 },
|
|
4859
4861
|
selectedRows: { default: () => [] },
|
|
@@ -4873,7 +4875,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4873
4875
|
const s = e, n = t, r = M(s.selectedRows || []), i = M(s.defaultSort.map((p) => ({
|
|
4874
4876
|
field: p.name,
|
|
4875
4877
|
direction: p.asc ? "asc" : "desc"
|
|
4876
|
-
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u = xn(),
|
|
4878
|
+
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u = xn(), f = q(() => u.action);
|
|
4877
4879
|
function h(p) {
|
|
4878
4880
|
if (m.value) {
|
|
4879
4881
|
m.value.push(p);
|
|
@@ -4881,16 +4883,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4881
4883
|
}
|
|
4882
4884
|
location.href = p;
|
|
4883
4885
|
}
|
|
4884
|
-
const
|
|
4886
|
+
const x = q(() => {
|
|
4885
4887
|
if (s.api)
|
|
4886
4888
|
return o.value;
|
|
4887
4889
|
if (s.sortable && i.value.length > 0) {
|
|
4888
4890
|
const p = [...s.rows];
|
|
4889
|
-
return p.sort((V,
|
|
4891
|
+
return p.sort((V, b) => {
|
|
4890
4892
|
for (const j of i.value) {
|
|
4891
4893
|
if (!j.direction)
|
|
4892
4894
|
return 0;
|
|
4893
|
-
const g = V[j.field], U =
|
|
4895
|
+
const g = V[j.field], U = b[j.field];
|
|
4894
4896
|
if (g == null) return 1;
|
|
4895
4897
|
if (U == null) return -1;
|
|
4896
4898
|
let ue = 0;
|
|
@@ -4903,14 +4905,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4903
4905
|
}
|
|
4904
4906
|
return s.rows;
|
|
4905
4907
|
});
|
|
4906
|
-
|
|
4908
|
+
De(() => s.selectedRows, (p) => {
|
|
4907
4909
|
r.value = p || [];
|
|
4908
4910
|
});
|
|
4909
|
-
const y = (p) => r.value.some((V) => V === p),
|
|
4910
|
-
const V = r.value.findIndex((
|
|
4911
|
+
const y = (p) => r.value.some((V) => V === p), O = (p) => {
|
|
4912
|
+
const V = r.value.findIndex((b) => b === p);
|
|
4911
4913
|
V > -1 ? r.value.splice(V, 1) : r.value.push(p), n("update:selectedRows", [...r.value]);
|
|
4912
|
-
},
|
|
4913
|
-
|
|
4914
|
+
}, N = q(() => x.value.length > 0 && r.value.length === x.value.length), R = q(() => r.value.length > 0 && r.value.length < x.value.length), w = () => {
|
|
4915
|
+
N.value ? r.value = [] : r.value = [...x.value], n("update:selectedRows", [...r.value]);
|
|
4914
4916
|
}, k = (p, V) => {
|
|
4915
4917
|
if (!s.sortable) return;
|
|
4916
4918
|
if (V?.ctrlKey || V?.metaKey) {
|
|
@@ -4932,8 +4934,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4932
4934
|
asc: g.direction === "asc"
|
|
4933
4935
|
}));
|
|
4934
4936
|
n("sort", j), s.api && Ee();
|
|
4935
|
-
}, C = (p) => i.value.find((
|
|
4936
|
-
const V = i.value.find((
|
|
4937
|
+
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc", T = (p) => {
|
|
4938
|
+
const V = i.value.find((b) => b.field === p);
|
|
4937
4939
|
if (!V)
|
|
4938
4940
|
return "";
|
|
4939
4941
|
switch (V.direction) {
|
|
@@ -4948,15 +4950,15 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4948
4950
|
}
|
|
4949
4951
|
}, I = (p) => s.sortable && p.sortable !== !1, S = (p) => {
|
|
4950
4952
|
s.clickable && n("row-click", p);
|
|
4951
|
-
},
|
|
4952
|
-
const
|
|
4953
|
+
}, _ = (p, V) => {
|
|
4954
|
+
const b = V[p.name];
|
|
4953
4955
|
if (s.getCellData || p.getCellData) {
|
|
4954
4956
|
const j = p.getCellData || s.getCellData;
|
|
4955
4957
|
if (j) {
|
|
4956
4958
|
const g = {
|
|
4957
4959
|
name: p.name,
|
|
4958
4960
|
row: V,
|
|
4959
|
-
value:
|
|
4961
|
+
value: b
|
|
4960
4962
|
};
|
|
4961
4963
|
return j(g);
|
|
4962
4964
|
}
|
|
@@ -4964,8 +4966,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4964
4966
|
return ["_data", "_text"].map((j) => {
|
|
4965
4967
|
const g = `${p.name}${j}`;
|
|
4966
4968
|
return V[g] ? V[g] : null;
|
|
4967
|
-
}).find((j) => j) ||
|
|
4968
|
-
}, H = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px]` : "" : "", B = M(s.page), $ = M(s.limit), z = M(s.total), W = M(1), G = M(10), me = M(0),
|
|
4969
|
+
}).find((j) => j) || b;
|
|
4970
|
+
}, H = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px]` : "" : "", B = M(s.page), $ = M(s.limit), z = M(s.total), W = M(1), G = M(10), me = M(0), _e = q(() => s.api ? W.value : B.value), Be = q(() => s.api ? G.value : $.value), rt = q(() => s.api ? me.value : z.value), Q = q(() => {
|
|
4969
4971
|
const { theme: p } = s;
|
|
4970
4972
|
return p === "dark" ? {
|
|
4971
4973
|
container: "dark",
|
|
@@ -5005,11 +5007,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5005
5007
|
checkbox: "border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"
|
|
5006
5008
|
};
|
|
5007
5009
|
});
|
|
5008
|
-
|
|
5010
|
+
De(() => s.page, (p) => {
|
|
5009
5011
|
B.value = p;
|
|
5010
|
-
}),
|
|
5012
|
+
}), De(() => s.limit, (p) => {
|
|
5011
5013
|
$.value = p;
|
|
5012
|
-
}),
|
|
5014
|
+
}), De(() => s.total, (p) => {
|
|
5013
5015
|
z.value = p;
|
|
5014
5016
|
});
|
|
5015
5017
|
async function Ee() {
|
|
@@ -5017,15 +5019,15 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5017
5019
|
l.value = !0, c.value = null;
|
|
5018
5020
|
try {
|
|
5019
5021
|
const p = new URL(s.api, window.location.origin);
|
|
5020
|
-
if (p.searchParams.set("page",
|
|
5022
|
+
if (p.searchParams.set("page", _e.value.toString()), p.searchParams.set("limit", Be.value.toString()), i.value.length > 0) {
|
|
5021
5023
|
const j = i.value.filter((g) => g.direction).map((g) => `${g.field}:${g.direction}`).join(",");
|
|
5022
5024
|
j && p.searchParams.set("sort", j);
|
|
5023
5025
|
}
|
|
5024
5026
|
const V = await fetch(p.toString());
|
|
5025
5027
|
if (!V.ok)
|
|
5026
5028
|
throw new Error(`HTTP error! status: ${V.status}`);
|
|
5027
|
-
const
|
|
5028
|
-
|
|
5029
|
+
const b = await V.json();
|
|
5030
|
+
b.rows && Array.isArray(b.rows) && (o.value = b.rows), b.columns && Array.isArray(b.columns) && (a.value = b.columns), b.total !== void 0 && (s.api ? me.value = b.total : z.value = b.total);
|
|
5029
5031
|
} catch (p) {
|
|
5030
5032
|
c.value = p instanceof Error ? p.message : "Failed to fetch data", console.error("Error fetching data:", p);
|
|
5031
5033
|
} finally {
|
|
@@ -5055,7 +5057,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5055
5057
|
window.removeEventListener("resize", Ls);
|
|
5056
5058
|
}), Ge(() => {
|
|
5057
5059
|
window.addEventListener("storage", Ls), Ut.value = localStorage.locale, s.api && (s.page && (W.value = s.page), s.limit && (G.value = s.limit), s.total && (me.value = s.total), Ee());
|
|
5058
|
-
}),
|
|
5060
|
+
}), De(() => s.api, (p) => {
|
|
5059
5061
|
p && (W.value = s.page || 1, G.value = s.limit || 10, me.value = s.total || 0, Ee());
|
|
5060
5062
|
});
|
|
5061
5063
|
const Ps = q(() => s.api ? a.value : s.columns), Ht = M([]), yt = M({});
|
|
@@ -5063,9 +5065,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5063
5065
|
Ht.value.push(p), V && p.slotName && (yt.value[p.name] = V);
|
|
5064
5066
|
});
|
|
5065
5067
|
const zt = q(() => {
|
|
5066
|
-
const p = Ps.value || [], V = [],
|
|
5067
|
-
if (
|
|
5068
|
-
const j =
|
|
5068
|
+
const p = Ps.value || [], V = [], b = u.default?.();
|
|
5069
|
+
if (b) {
|
|
5070
|
+
const j = b.filter((g) => g.type?.name === "Column" || g.type === "Column" || g.type && typeof g.type == "object" && g.type.name === "Column").map((g) => {
|
|
5069
5071
|
const U = g.props || g.componentProps || {}, ue = U.field || U.name || "", Ye = U.header || U.label || "", Fs = g.children && g.children.body, qt = {
|
|
5070
5072
|
name: ue,
|
|
5071
5073
|
// Use field as the name for data access
|
|
@@ -5092,10 +5094,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5092
5094
|
return p.length > 0 ? (console.log("Using default columns:", p.length), p) : [];
|
|
5093
5095
|
}), dr = (p = "text") => js[p.toLowerCase()] || js.text, Ue = M({});
|
|
5094
5096
|
async function fr(p) {
|
|
5095
|
-
const { data: V, api:
|
|
5097
|
+
const { data: V, api: b } = zt.value.find((j) => j.name === p);
|
|
5096
5098
|
if (Ue.value[p]) return Ue.value[p];
|
|
5097
|
-
if (V ||
|
|
5098
|
-
const j =
|
|
5099
|
+
if (V || b) {
|
|
5100
|
+
const j = b || `/api/suggest/${V}?json=1`, U = await (await fetch(j)).json();
|
|
5099
5101
|
U.data && Array.isArray(U.data) && (Ue.value[p] = U.data.map((ue) => ({
|
|
5100
5102
|
value: ue.id ?? ue.value,
|
|
5101
5103
|
label: ue.text ?? ue.label
|
|
@@ -5103,11 +5105,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5103
5105
|
}
|
|
5104
5106
|
return Ue.value[p];
|
|
5105
5107
|
}
|
|
5106
|
-
function pr(p, V,
|
|
5108
|
+
function pr(p, V, b, j) {
|
|
5107
5109
|
const g = j;
|
|
5108
|
-
g !== -1 && (s.rows[g] = { ...s.rows[g], [V]:
|
|
5110
|
+
g !== -1 && (s.rows[g] = { ...s.rows[g], [V]: b }), n("cell-update", p, V, b);
|
|
5109
5111
|
}
|
|
5110
|
-
return
|
|
5112
|
+
return De(() => s.form, async (p) => {
|
|
5111
5113
|
p && (Ue.value = {});
|
|
5112
5114
|
}), Ge(() => {
|
|
5113
5115
|
s.form && (Ue.value = {});
|
|
@@ -5115,9 +5117,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5115
5117
|
class: L(["w-full", Q.value.container])
|
|
5116
5118
|
}, [
|
|
5117
5119
|
l.value || s.loading ? (v(), E("div", Ka, [
|
|
5118
|
-
|
|
5119
|
-
V[0] || (V[0] =
|
|
5120
|
-
|
|
5120
|
+
d("div", Wa, [
|
|
5121
|
+
V[0] || (V[0] = d("div", { class: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }, null, -1)),
|
|
5122
|
+
d("span", {
|
|
5121
5123
|
class: L(Q.value.loading)
|
|
5122
5124
|
}, "Loading...", 2)
|
|
5123
5125
|
])
|
|
@@ -5125,35 +5127,35 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5125
5127
|
key: 1,
|
|
5126
5128
|
class: L(["text-center py-8", Q.value.error])
|
|
5127
5129
|
}, D(c.value), 3)) : s.loading ? te("", !0) : (v(), E("div", Ga, [
|
|
5128
|
-
|
|
5130
|
+
d("div", {
|
|
5129
5131
|
class: L(p.classWrapper ? p.classWrapper : "relative w-full overflow-auto")
|
|
5130
5132
|
}, [
|
|
5131
|
-
|
|
5133
|
+
d("table", {
|
|
5132
5134
|
class: L(p.classTable),
|
|
5133
5135
|
style: Pt(p.tableStyle)
|
|
5134
5136
|
}, [
|
|
5135
|
-
|
|
5137
|
+
d("thead", {
|
|
5136
5138
|
class: L(p.classThead || Q.value.thead)
|
|
5137
5139
|
}, [
|
|
5138
|
-
|
|
5140
|
+
d("tr", null, [
|
|
5139
5141
|
p.selectable ? (v(), E("th", {
|
|
5140
5142
|
key: 0,
|
|
5141
5143
|
class: L(["text-left font-medium uppercase tracking-wider", Q.value.th, it.value.header, s.classTh, "w-12"])
|
|
5142
5144
|
}, [
|
|
5143
|
-
|
|
5145
|
+
d("input", {
|
|
5144
5146
|
type: "checkbox",
|
|
5145
|
-
checked:
|
|
5147
|
+
checked: N.value,
|
|
5146
5148
|
indeterminate: R.value,
|
|
5147
5149
|
onChange: w,
|
|
5148
5150
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5149
5151
|
}, null, 42, Ja)
|
|
5150
5152
|
], 2)) : te("", !0),
|
|
5151
|
-
(v(!0), E(
|
|
5152
|
-
key:
|
|
5153
|
+
(v(!0), E(ne, null, Se(zt.value.filter((b) => !b.hidden), (b) => (v(), E("th", {
|
|
5154
|
+
key: b.name,
|
|
5153
5155
|
class: L([
|
|
5154
|
-
|
|
5155
|
-
I(
|
|
5156
|
-
H(
|
|
5156
|
+
b.align ? `text-${b.align}` : "",
|
|
5157
|
+
I(b) ? ["cursor-pointer", Q.value.thHover] : "",
|
|
5158
|
+
H(b)
|
|
5157
5159
|
].concat(
|
|
5158
5160
|
s.classTh || [
|
|
5159
5161
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5161,20 +5163,20 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5161
5163
|
it.value.header
|
|
5162
5164
|
]
|
|
5163
5165
|
)),
|
|
5164
|
-
onClick: (j) => I(
|
|
5166
|
+
onClick: (j) => I(b) ? k(b.name, j) : void 0
|
|
5165
5167
|
}, [
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
I(
|
|
5169
|
-
|
|
5170
|
-
asc: C(
|
|
5168
|
+
d("div", Xa, [
|
|
5169
|
+
d("span", null, D(b[Ut.value] || b.header || b.ua || b.name), 1),
|
|
5170
|
+
I(b) ? (v(), E("span", Qa, [
|
|
5171
|
+
Ie(p.$slots, "sort", {
|
|
5172
|
+
asc: C(b.name)
|
|
5171
5173
|
}, () => [
|
|
5172
|
-
be(D(
|
|
5174
|
+
be(D(T(b.name)), 1)
|
|
5173
5175
|
])
|
|
5174
5176
|
])) : te("", !0)
|
|
5175
5177
|
])
|
|
5176
5178
|
], 10, Ya))), 128)),
|
|
5177
|
-
|
|
5179
|
+
f.value ? (v(), E("th", {
|
|
5178
5180
|
key: 1,
|
|
5179
5181
|
class: L(["w-[100px]", s.classTh || [
|
|
5180
5182
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5184,127 +5186,132 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5184
5186
|
}, D(X(ur)("table.actions")), 3)) : te("", !0)
|
|
5185
5187
|
])
|
|
5186
5188
|
], 2),
|
|
5187
|
-
|
|
5189
|
+
x.value.length ? (v(), E("tbody", {
|
|
5188
5190
|
key: 0,
|
|
5189
5191
|
class: L(p.classTbody || Q.value.tbody)
|
|
5190
5192
|
}, [
|
|
5191
|
-
(v(!0), E(
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
}, [
|
|
5199
|
-
p.selectable ? (v(), E("td", {
|
|
5200
|
-
key: 0,
|
|
5201
|
-
class: L(["whitespace-nowrap", Q.value.td, it.value.cell, s.classTd, "w-12"])
|
|
5202
|
-
}, [
|
|
5203
|
-
f("input", {
|
|
5204
|
-
type: "checkbox",
|
|
5205
|
-
checked: y(x),
|
|
5206
|
-
onChange: (g) => T(x),
|
|
5207
|
-
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5208
|
-
}, null, 42, el)
|
|
5209
|
-
], 2)) : te("", !0),
|
|
5210
|
-
(v(!0), E(oe, null, Se(zt.value.filter((g) => !g.hidden), (g) => (v(), E("td", {
|
|
5211
|
-
key: g.name,
|
|
5212
|
-
class: L(s.classTd || [
|
|
5213
|
-
"whitespace-nowrap",
|
|
5214
|
-
Q.value.td,
|
|
5215
|
-
it.value.cell,
|
|
5216
|
-
g.align ? `text-${g.align}` : "",
|
|
5217
|
-
H(g)
|
|
5218
|
-
])
|
|
5193
|
+
(v(!0), E(ne, null, Se(x.value, (b, j) => (v(), E(ne, { key: j }, [
|
|
5194
|
+
d("tr", {
|
|
5195
|
+
class: L(s.classTr || [
|
|
5196
|
+
Q.value.tr,
|
|
5197
|
+
s.clickable ? "cursor-pointer" : ""
|
|
5198
|
+
]),
|
|
5199
|
+
onClick: (g) => s.clickable ? S(b) : void 0
|
|
5219
5200
|
}, [
|
|
5220
|
-
(v(),
|
|
5221
|
-
key:
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5257
|
-
onClick: (U) => h(g.link.replace("{id}", x.id))
|
|
5258
|
-
}, [
|
|
5259
|
-
g.slot && typeof g.slot == "string" ? (v(), Ve(bt(X(pn)(g.slot)), {
|
|
5201
|
+
p.selectable ? (v(), E("td", {
|
|
5202
|
+
key: 0,
|
|
5203
|
+
class: L(["whitespace-nowrap", Q.value.td, it.value.cell, s.classTd, "w-12"])
|
|
5204
|
+
}, [
|
|
5205
|
+
d("input", {
|
|
5206
|
+
type: "checkbox",
|
|
5207
|
+
checked: y(b),
|
|
5208
|
+
onChange: (g) => O(b),
|
|
5209
|
+
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5210
|
+
}, null, 42, el)
|
|
5211
|
+
], 2)) : te("", !0),
|
|
5212
|
+
(v(!0), E(ne, null, Se(zt.value.filter((g) => !g.hidden), (g) => (v(), E("td", {
|
|
5213
|
+
key: g.name,
|
|
5214
|
+
class: L(s.classTd || [
|
|
5215
|
+
"whitespace-nowrap",
|
|
5216
|
+
Q.value.td,
|
|
5217
|
+
it.value.cell,
|
|
5218
|
+
g.align ? `text-${g.align}` : "",
|
|
5219
|
+
H(g)
|
|
5220
|
+
])
|
|
5221
|
+
}, [
|
|
5222
|
+
(v(), $e(qa, {
|
|
5223
|
+
"class-content": s.classContent,
|
|
5224
|
+
key: b,
|
|
5225
|
+
editable: g.edit,
|
|
5226
|
+
row: b,
|
|
5227
|
+
column: g,
|
|
5228
|
+
value: b[g.name],
|
|
5229
|
+
format: g.format,
|
|
5230
|
+
options: Ue.value[g.name] || [],
|
|
5231
|
+
color: p.color,
|
|
5232
|
+
onUpdate: (U, ue, Ye) => pr(U, ue, Ye, j),
|
|
5233
|
+
"fetch-options": fr
|
|
5234
|
+
}, {
|
|
5235
|
+
default: vr(() => [
|
|
5236
|
+
g.action && f.value ? Ie(p.$slots, "action", {
|
|
5260
5237
|
key: 0,
|
|
5261
|
-
row:
|
|
5262
|
-
|
|
5263
|
-
|
|
5238
|
+
row: b
|
|
5239
|
+
}) : X(u).number && g.format === "number" ? Ie(p.$slots, "number", {
|
|
5240
|
+
key: 1,
|
|
5241
|
+
row: b,
|
|
5242
|
+
value: _(g, b)
|
|
5243
|
+
}) : X(u).badge && g.format === "badge" ? Ie(p.$slots, "badge", {
|
|
5244
|
+
key: 2,
|
|
5245
|
+
row: b,
|
|
5246
|
+
value: _(g, b)
|
|
5247
|
+
}) : X(u).array && g.format === "array" ? Ie(p.$slots, "array", {
|
|
5248
|
+
key: 3,
|
|
5249
|
+
row: b,
|
|
5250
|
+
value: _(g, b)
|
|
5251
|
+
}) : g.slotName && yt.value[g.name] ? (v(), $e(bt(yt.value[g.name]), {
|
|
5252
|
+
key: 4,
|
|
5253
|
+
data: b,
|
|
5254
|
+
value: _(g, b),
|
|
5255
|
+
row: b,
|
|
5264
5256
|
column: g
|
|
5265
|
-
}, null, 8, ["
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5257
|
+
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), E("a", {
|
|
5258
|
+
key: 5,
|
|
5259
|
+
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5260
|
+
onClick: (U) => h(g.link.replace("{id}", b.id))
|
|
5261
|
+
}, [
|
|
5262
|
+
g.slot && typeof g.slot == "string" ? (v(), $e(bt(X(pn)(g.slot)), {
|
|
5263
|
+
key: 0,
|
|
5264
|
+
row: b,
|
|
5265
|
+
value: b,
|
|
5266
|
+
data: b,
|
|
5267
|
+
column: g
|
|
5268
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), E(ne, { key: 1 }, [
|
|
5269
|
+
be(D(_(g, b)), 1)
|
|
5270
|
+
], 64))
|
|
5271
|
+
], 10, tl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), $e(bt(X(pn)(g.slot)), {
|
|
5272
|
+
key: 6,
|
|
5273
|
+
row: b,
|
|
5274
|
+
value: _(g, b),
|
|
5275
|
+
data: b,
|
|
5276
|
+
column: g
|
|
5277
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), $e(bt(dr(g.format)), {
|
|
5278
|
+
key: 7,
|
|
5279
|
+
value: _(g, b),
|
|
5280
|
+
row: b,
|
|
5281
|
+
column: g,
|
|
5282
|
+
href: g.link
|
|
5283
|
+
}, null, 8, ["value", "row", "column", "href"]))
|
|
5284
|
+
]),
|
|
5285
|
+
_: 2
|
|
5286
|
+
}, 1032, ["class-content", "editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5287
|
+
], 2))), 128)),
|
|
5288
|
+
f.value ? (v(), E("td", sl, [
|
|
5289
|
+
Ie(p.$slots, "action", { row: b })
|
|
5290
|
+
])) : te("", !0)
|
|
5291
|
+
], 10, Za),
|
|
5292
|
+
d("tr", null, [
|
|
5293
|
+
Ie(p.$slots, "under-row", { row: b })
|
|
5294
|
+
])
|
|
5295
|
+
], 64))), 128))
|
|
5289
5296
|
], 2)) : te("", !0),
|
|
5290
|
-
|
|
5297
|
+
x.value.length === 0 ? (v(), E("tbody", {
|
|
5291
5298
|
key: 1,
|
|
5292
5299
|
class: L(["text-center py-8", Q.value.empty])
|
|
5293
5300
|
}, [
|
|
5294
|
-
|
|
5295
|
-
|
|
5301
|
+
d("tr", null, [
|
|
5302
|
+
d("td", {
|
|
5296
5303
|
colspan: Ps.value.length
|
|
5297
5304
|
}, [
|
|
5298
|
-
yr(
|
|
5305
|
+
yr(Na)
|
|
5299
5306
|
], 8, nl)
|
|
5300
5307
|
])
|
|
5301
5308
|
], 2)) : te("", !0)
|
|
5302
5309
|
], 6)
|
|
5303
5310
|
], 2)
|
|
5304
5311
|
])),
|
|
5305
|
-
cr.value && !l.value && !s.loading && !c.value ? (v(),
|
|
5312
|
+
cr.value && !l.value && !s.loading && !c.value ? (v(), $e(kn, {
|
|
5306
5313
|
key: 3,
|
|
5307
|
-
page:
|
|
5314
|
+
page: _e.value,
|
|
5308
5315
|
limit: Be.value,
|
|
5309
5316
|
total: rt.value,
|
|
5310
5317
|
theme: s.theme,
|
|
@@ -5346,9 +5353,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5346
5353
|
slotName: c,
|
|
5347
5354
|
link: m,
|
|
5348
5355
|
action: u,
|
|
5349
|
-
getCellData:
|
|
5356
|
+
getCellData: f,
|
|
5350
5357
|
suffix: h,
|
|
5351
|
-
...
|
|
5358
|
+
...x
|
|
5352
5359
|
} = t, R = {
|
|
5353
5360
|
name: r || i || "",
|
|
5354
5361
|
ua: o || a || "",
|
|
@@ -5357,16 +5364,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5357
5364
|
// Use 'body' slot if it exists
|
|
5358
5365
|
link: m,
|
|
5359
5366
|
action: u,
|
|
5360
|
-
getCellData:
|
|
5367
|
+
getCellData: f,
|
|
5361
5368
|
suffix: h,
|
|
5362
|
-
...
|
|
5369
|
+
...x
|
|
5363
5370
|
};
|
|
5364
5371
|
console.log("Registering column:", R);
|
|
5365
5372
|
const w = s.body;
|
|
5366
5373
|
n(R, w);
|
|
5367
5374
|
}
|
|
5368
5375
|
}), (r, i) => (v(), E("div", rl, [
|
|
5369
|
-
|
|
5376
|
+
Ie(r.$slots, "body", { data: {} })
|
|
5370
5377
|
]));
|
|
5371
5378
|
}
|
|
5372
5379
|
}), ol = { class: "mt-4" }, al = { class: "text-sm text-gray-600 dark:text-gray-300" }, ll = /* @__PURE__ */ ae({
|
|
@@ -5378,7 +5385,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5378
5385
|
setup(e) {
|
|
5379
5386
|
const t = e, s = q(() => t.selectedRows.length);
|
|
5380
5387
|
return (n, r) => (v(), E("div", ol, [
|
|
5381
|
-
|
|
5388
|
+
d("div", al, " Обрано: " + D(s.value) + " з " + D(n.totalCount) + " записів ", 1)
|
|
5382
5389
|
]));
|
|
5383
5390
|
}
|
|
5384
5391
|
}), cl = { class: "mt-4" }, ul = { class: "border-b border-gray-200 dark:border-gray-700" }, dl = { class: "-mb-px flex space-x-8" }, fl = ["onClick"], pl = { class: "mt-4" }, hl = { class: "bg-gray-900 rounded-lg overflow-hidden" }, ml = { class: "flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700" }, gl = { class: "text-sm text-gray-300" }, vl = ["onClick"], yl = { class: "p-4 text-sm text-gray-100 overflow-x-auto" }, bl = /* @__PURE__ */ ae({
|
|
@@ -5396,9 +5403,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5396
5403
|
}
|
|
5397
5404
|
};
|
|
5398
5405
|
return (r, i) => (v(), E("div", cl, [
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
(v(!0), E(
|
|
5406
|
+
d("div", ul, [
|
|
5407
|
+
d("nav", dl, [
|
|
5408
|
+
(v(!0), E(ne, null, Se(r.tabs, (o) => (v(), E("button", {
|
|
5402
5409
|
key: o.id,
|
|
5403
5410
|
onClick: (a) => s.value = o.id,
|
|
5404
5411
|
class: L([
|
|
@@ -5408,25 +5415,25 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5408
5415
|
}, D(o.label), 11, fl))), 128))
|
|
5409
5416
|
])
|
|
5410
5417
|
]),
|
|
5411
|
-
|
|
5412
|
-
(v(!0), E(
|
|
5418
|
+
d("div", pl, [
|
|
5419
|
+
(v(!0), E(ne, null, Se(r.tabs, (o) => ke((v(), E("div", {
|
|
5413
5420
|
key: o.id
|
|
5414
5421
|
}, [
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5422
|
+
d("div", hl, [
|
|
5423
|
+
d("div", ml, [
|
|
5424
|
+
d("span", gl, D(o.label), 1),
|
|
5425
|
+
d("button", {
|
|
5419
5426
|
onClick: (a) => n(o.content),
|
|
5420
5427
|
class: "text-gray-400 hover:text-white transition-colors",
|
|
5421
5428
|
title: "Копіювати код"
|
|
5422
5429
|
}, i[0] || (i[0] = [
|
|
5423
|
-
|
|
5430
|
+
d("svg", {
|
|
5424
5431
|
class: "w-4 h-4",
|
|
5425
5432
|
fill: "none",
|
|
5426
5433
|
stroke: "currentColor",
|
|
5427
5434
|
viewBox: "0 0 24 24"
|
|
5428
5435
|
}, [
|
|
5429
|
-
|
|
5436
|
+
d("path", {
|
|
5430
5437
|
"stroke-linecap": "round",
|
|
5431
5438
|
"stroke-linejoin": "round",
|
|
5432
5439
|
"stroke-width": "2",
|
|
@@ -5435,8 +5442,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5435
5442
|
], -1)
|
|
5436
5443
|
]), 8, vl)
|
|
5437
5444
|
]),
|
|
5438
|
-
|
|
5439
|
-
|
|
5445
|
+
d("pre", yl, [
|
|
5446
|
+
d("code", null, D(o.content), 1)
|
|
5440
5447
|
])
|
|
5441
5448
|
])
|
|
5442
5449
|
])), [
|
|
@@ -5448,7 +5455,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5448
5455
|
}), xl = {
|
|
5449
5456
|
key: 0,
|
|
5450
5457
|
class: "vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"
|
|
5451
|
-
}, El = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12" }, kl = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, wl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Sl = { class: "sr-only" },
|
|
5458
|
+
}, El = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12" }, kl = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, wl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Sl = { class: "sr-only" }, Nl = { class: "ui-dialog__content p-4" }, _l = { class: "p-4" }, Cl = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tl = { class: "text-sm font-[600] text-gray-500" }, Ol = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Il = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Dl = {
|
|
5452
5459
|
key: 0,
|
|
5453
5460
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5454
5461
|
}, Al = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Vl = {
|
|
@@ -5488,20 +5495,20 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5488
5495
|
function u() {
|
|
5489
5496
|
i.value = c.value.map((w) => w.name), o.value = "json", r.value = !0;
|
|
5490
5497
|
}
|
|
5491
|
-
function
|
|
5498
|
+
function f() {
|
|
5492
5499
|
r.value = !1;
|
|
5493
5500
|
}
|
|
5494
5501
|
function h() {
|
|
5495
5502
|
i.value = c.value.map((w) => w.name), l.value = "all";
|
|
5496
5503
|
}
|
|
5497
|
-
function
|
|
5504
|
+
function x() {
|
|
5498
5505
|
const w = c.value.filter((k) => !k.hidden).map((k) => k.name);
|
|
5499
5506
|
i.value = w.length ? w : c.value.map((k) => k.name), l.value = "active";
|
|
5500
5507
|
}
|
|
5501
5508
|
function y() {
|
|
5502
5509
|
i.value = [], l.value = "none";
|
|
5503
5510
|
}
|
|
5504
|
-
async function
|
|
5511
|
+
async function O() {
|
|
5505
5512
|
if (i.value.length === 0) return;
|
|
5506
5513
|
a.value = !0;
|
|
5507
5514
|
const w = new URLSearchParams({
|
|
@@ -5514,8 +5521,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5514
5521
|
method: "GET"
|
|
5515
5522
|
});
|
|
5516
5523
|
if (!k.ok) throw new Error("Export failed");
|
|
5517
|
-
const C = await k.blob(),
|
|
5518
|
-
I.href =
|
|
5524
|
+
const C = await k.blob(), T = URL.createObjectURL(C), I = document.createElement("a");
|
|
5525
|
+
I.href = T, I.download = `${n.table}.${o.value}`, document.body.appendChild(I), I.click(), I.remove(), URL.revokeObjectURL(T), f();
|
|
5519
5526
|
} catch (k) {
|
|
5520
5527
|
console.error(k);
|
|
5521
5528
|
const { $notify: C = console.log } = t?.appContext?.config?.globalProperties || {};
|
|
@@ -5524,33 +5531,33 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5524
5531
|
a.value = !1;
|
|
5525
5532
|
}
|
|
5526
5533
|
}
|
|
5527
|
-
const
|
|
5528
|
-
w.detail.key === "locale" && (
|
|
5534
|
+
const N = M("uk"), R = (w) => {
|
|
5535
|
+
w.detail.key === "locale" && (N.value = w.detail.newValue);
|
|
5529
5536
|
};
|
|
5530
5537
|
return us(() => {
|
|
5531
5538
|
window.removeEventListener("storage", R);
|
|
5532
5539
|
}), Ge(() => {
|
|
5533
|
-
window.addEventListener("storage", R),
|
|
5534
|
-
}), (w, k) => (v(), E(
|
|
5535
|
-
|
|
5540
|
+
window.addEventListener("storage", R), N.value = localStorage.locale;
|
|
5541
|
+
}), (w, k) => (v(), E(ne, null, [
|
|
5542
|
+
d("button", {
|
|
5536
5543
|
onClick: u,
|
|
5537
5544
|
class: L([[X(m).class], "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])
|
|
5538
5545
|
}, [
|
|
5539
5546
|
k[4] || (k[4] = ds('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>', 1)),
|
|
5540
5547
|
be(" " + D(X(s)("table.export")), 1)
|
|
5541
5548
|
], 2),
|
|
5542
|
-
(v(),
|
|
5549
|
+
(v(), $e(yn, { to: "body" }, [
|
|
5543
5550
|
r.value ? (v(), E("div", xl, [
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5551
|
+
d("div", El, [
|
|
5552
|
+
d("div", kl, [
|
|
5553
|
+
d("h3", wl, D(X(s)("table.exportTitle")), 1),
|
|
5554
|
+
d("button", {
|
|
5548
5555
|
type: "button",
|
|
5549
|
-
onClick:
|
|
5556
|
+
onClick: f,
|
|
5550
5557
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"
|
|
5551
5558
|
}, [
|
|
5552
|
-
|
|
5553
|
-
k[5] || (k[5] =
|
|
5559
|
+
d("span", Sl, D(X(s)("table.close")), 1),
|
|
5560
|
+
k[5] || (k[5] = d("svg", {
|
|
5554
5561
|
class: "flex-shrink-0 w-4 h-4",
|
|
5555
5562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5556
5563
|
width: "24",
|
|
@@ -5562,92 +5569,92 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5562
5569
|
"stroke-linecap": "round",
|
|
5563
5570
|
"stroke-linejoin": "round"
|
|
5564
5571
|
}, [
|
|
5565
|
-
|
|
5566
|
-
|
|
5572
|
+
d("path", { d: "M18 6 6 18" }),
|
|
5573
|
+
d("path", { d: "m6 6 12 12" })
|
|
5567
5574
|
], -1))
|
|
5568
5575
|
])
|
|
5569
5576
|
]),
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5577
|
+
d("div", Nl, [
|
|
5578
|
+
d("div", _l, [
|
|
5579
|
+
d("div", Cl, [
|
|
5580
|
+
d("h2", Tl, D(X(s)("table.chooseColumns")), 1),
|
|
5581
|
+
d("div", Ol, [
|
|
5582
|
+
d("button", {
|
|
5576
5583
|
onClick: h,
|
|
5577
5584
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5578
5585
|
}, [
|
|
5579
|
-
|
|
5586
|
+
d("span", Il, [
|
|
5580
5587
|
l.value === "all" ? (v(), E("span", Dl)) : te("", !0)
|
|
5581
5588
|
]),
|
|
5582
5589
|
be(" " + D(X(s)("table.selectAll")), 1)
|
|
5583
5590
|
]),
|
|
5584
|
-
|
|
5585
|
-
onClick:
|
|
5591
|
+
d("button", {
|
|
5592
|
+
onClick: x,
|
|
5586
5593
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5587
5594
|
}, [
|
|
5588
|
-
|
|
5595
|
+
d("span", Al, [
|
|
5589
5596
|
l.value === "active" ? (v(), E("span", Vl)) : te("", !0)
|
|
5590
5597
|
]),
|
|
5591
5598
|
be(" " + D(X(s)("table.selectCurrent")), 1)
|
|
5592
5599
|
]),
|
|
5593
|
-
|
|
5600
|
+
d("button", {
|
|
5594
5601
|
onClick: y,
|
|
5595
5602
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5596
5603
|
}, [
|
|
5597
|
-
|
|
5604
|
+
d("span", $l, [
|
|
5598
5605
|
l.value === "none" ? (v(), E("span", Rl)) : te("", !0)
|
|
5599
5606
|
]),
|
|
5600
5607
|
be(" " + D(X(s)("table.none")), 1)
|
|
5601
5608
|
])
|
|
5602
5609
|
]),
|
|
5603
|
-
|
|
5604
|
-
(v(!0), E(
|
|
5610
|
+
d("div", Ml, [
|
|
5611
|
+
(v(!0), E(ne, null, Se(c.value, (C) => (v(), E("div", {
|
|
5605
5612
|
class: "flex items-center",
|
|
5606
5613
|
style: { width: "calc(50% - 5px)" },
|
|
5607
5614
|
key: C.name
|
|
5608
5615
|
}, [
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
ke(
|
|
5616
|
+
d("div", Ll, [
|
|
5617
|
+
d("div", Pl, [
|
|
5618
|
+
ke(d("input", {
|
|
5612
5619
|
type: "checkbox",
|
|
5613
5620
|
class: "shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",
|
|
5614
5621
|
id: "radio-" + C.name,
|
|
5615
5622
|
value: C.name,
|
|
5616
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
5623
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => i.value = T)
|
|
5617
5624
|
}, null, 8, Fl), [
|
|
5618
5625
|
[xr, i.value]
|
|
5619
5626
|
]),
|
|
5620
|
-
|
|
5627
|
+
d("label", {
|
|
5621
5628
|
for: "radio-" + C.name,
|
|
5622
5629
|
class: "flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"
|
|
5623
5630
|
}, [
|
|
5624
|
-
|
|
5631
|
+
d("div", {
|
|
5625
5632
|
class: "h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",
|
|
5626
5633
|
style: Pt(i.value.includes(C.name) ? "background-color: rgb(37,99,235); border-color: transparent;" : "")
|
|
5627
5634
|
}, [
|
|
5628
5635
|
ke((v(), E("svg", jl, k[6] || (k[6] = [
|
|
5629
|
-
|
|
5636
|
+
d("path", {
|
|
5630
5637
|
stroke: "none",
|
|
5631
5638
|
d: "M0 0h24v24H0z",
|
|
5632
5639
|
fill: "none"
|
|
5633
5640
|
}, null, -1),
|
|
5634
|
-
|
|
5641
|
+
d("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
5635
5642
|
]), 512)), [
|
|
5636
5643
|
[En, i.value.includes(C.name)]
|
|
5637
5644
|
])
|
|
5638
5645
|
], 4),
|
|
5639
|
-
|
|
5646
|
+
d("span", Ul, D(C[N.value] || C.header || C.ua || C.name), 1)
|
|
5640
5647
|
], 8, Bl)
|
|
5641
5648
|
])
|
|
5642
5649
|
])
|
|
5643
5650
|
]))), 128))
|
|
5644
5651
|
])
|
|
5645
5652
|
]),
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
ke(
|
|
5653
|
+
d("div", Hl, [
|
|
5654
|
+
d("h2", zl, D(X(s)("table.chooseFormat")), 1),
|
|
5655
|
+
d("div", ql, [
|
|
5656
|
+
d("div", Kl, [
|
|
5657
|
+
ke(d("input", {
|
|
5651
5658
|
type: "radio",
|
|
5652
5659
|
name: "hs-pro-duecmfm",
|
|
5653
5660
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
|
@@ -5657,10 +5664,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5657
5664
|
}, null, 512), [
|
|
5658
5665
|
[Wt, o.value]
|
|
5659
5666
|
]),
|
|
5660
|
-
|
|
5667
|
+
d("label", Wl, D(X(s)("table.format.json")), 1)
|
|
5661
5668
|
]),
|
|
5662
|
-
|
|
5663
|
-
ke(
|
|
5669
|
+
d("div", Gl, [
|
|
5670
|
+
ke(d("input", {
|
|
5664
5671
|
type: "radio",
|
|
5665
5672
|
name: "hs-pro-duecmfm",
|
|
5666
5673
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
|
@@ -5670,10 +5677,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5670
5677
|
}, null, 512), [
|
|
5671
5678
|
[Wt, o.value]
|
|
5672
5679
|
]),
|
|
5673
|
-
|
|
5680
|
+
d("label", Jl, D(X(s)("table.format.csv")), 1)
|
|
5674
5681
|
]),
|
|
5675
|
-
|
|
5676
|
-
ke(
|
|
5682
|
+
d("div", Yl, [
|
|
5683
|
+
ke(d("input", {
|
|
5677
5684
|
type: "radio",
|
|
5678
5685
|
name: "hs-pro-duecmfm",
|
|
5679
5686
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
|
@@ -5683,22 +5690,22 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5683
5690
|
}, null, 512), [
|
|
5684
5691
|
[Wt, o.value]
|
|
5685
5692
|
]),
|
|
5686
|
-
|
|
5693
|
+
d("label", Xl, D(X(s)("table.format.xlsx")), 1)
|
|
5687
5694
|
])
|
|
5688
5695
|
])
|
|
5689
5696
|
])
|
|
5690
5697
|
])
|
|
5691
5698
|
]),
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5699
|
+
d("div", Ql, [
|
|
5700
|
+
d("div", Zl, [
|
|
5701
|
+
d("button", {
|
|
5695
5702
|
type: "button",
|
|
5696
|
-
onClick:
|
|
5703
|
+
onClick: f,
|
|
5697
5704
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
|
5698
5705
|
}, D(X(s)("table.cancel")), 1),
|
|
5699
|
-
|
|
5706
|
+
d("button", {
|
|
5700
5707
|
type: "button",
|
|
5701
|
-
onClick:
|
|
5708
|
+
onClick: O,
|
|
5702
5709
|
disabled: i.value.length === 0 || a.value,
|
|
5703
5710
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"
|
|
5704
5711
|
}, D(X(s)("table.download")), 9, ec)
|