@opengis/table 0.0.27 → 0.0.28
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 +4 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/index.mjs +477 -473
- package/dist/index.umd.js +5 -5
- 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: "Оберіть колонки для відображення",
|
|
@@ -57,16 +57,16 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
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
72
|
function T(w) {
|
|
@@ -76,7 +76,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
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,8 +90,8 @@ 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
|
-
|
|
93
|
+
}), (w, k) => (v(), E(ne, null, [
|
|
94
|
+
d("button", {
|
|
95
95
|
onClick: _,
|
|
96
96
|
ref_key: "buttonRef",
|
|
97
97
|
ref: c,
|
|
@@ -99,17 +99,17 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
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", _r, [
|
|
124
|
+
d("span", Nr, 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
133
|
onClick: (O) => T(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(
|
|
@@ -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
|
}
|
|
@@ -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,7 +1184,7 @@ 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
|
}
|
|
@@ -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,24 +1474,24 @@ 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
1497
|
content: Nt(r, !1, ee(s, n)),
|
|
@@ -1499,7 +1499,7 @@ const Y = [], J = new Si(Y, {
|
|
|
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++)
|
|
@@ -1538,14 +1538,14 @@ const Y = [], J = new Si(Y, {
|
|
|
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,7 +1571,7 @@ 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 {
|
|
@@ -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);
|
|
@@ -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:
|
|
@@ -1691,7 +1691,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1691
1691
|
_t(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
|
|
1706
|
+
const [, r, i] = n, o = (u, f, h = !1) => {
|
|
1707
|
+
const x = t.start.offset + f, y = x + u.length;
|
|
1708
1708
|
return Nt(
|
|
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,8 +1740,8 @@ 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);
|
|
@@ -1761,7 +1761,7 @@ function Et(e, t, s) {
|
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
1763
|
function _t(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 =
|
|
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 = {
|
|
@@ -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 T = Un(
|
|
2008
|
-
T && (
|
|
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 T = Un(f);
|
|
2008
|
+
T && (x.props = s.hoist(T));
|
|
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)
|
|
@@ -2155,7 +2155,7 @@ const eo = /* @__PURE__ */ new Set([
|
|
|
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,9 +2199,9 @@ 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
2206
|
ssrCssVars: T = "",
|
|
2207
2207
|
bindingMetadata: _ = Xr,
|
|
@@ -2225,9 +2225,9 @@ 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
2232
|
ssrCssVars: T,
|
|
2233
2233
|
bindingMetadata: _,
|
|
@@ -2296,7 +2296,7 @@ function to(e, {
|
|
|
2296
2296
|
removeIdentifiers(N) {
|
|
2297
2297
|
},
|
|
2298
2298
|
hoist(N) {
|
|
2299
|
-
|
|
2299
|
+
re(N) && (N = A(N)), S.hoists.push(N);
|
|
2300
2300
|
const H = A(
|
|
2301
2301
|
`_hoisted_${S.hoists.length}`,
|
|
2302
2302
|
!1,
|
|
@@ -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,
|
|
@@ -2453,16 +2453,16 @@ function io(e, {
|
|
|
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
2489
|
const y = m ? "ssrRender" : "render", _ = (m ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ");
|
|
2490
|
-
if (r(`function ${y}(${_}) {`), o(), h && (r("with (_ctx) {"), o(),
|
|
2490
|
+
if (r(`function ${y}(${_}) {`), o(), h && (r("with (_ctx) {"), o(), f && (r(
|
|
2491
2491
|
`const { ${u.map(zn).join(", ")} } = _Vue
|
|
2492
2492
|
`,
|
|
2493
2493
|
-1
|
|
@@ -2531,7 +2531,7 @@ function ao(e, t) {
|
|
|
2531
2531
|
mt,
|
|
2532
2532
|
bs,
|
|
2533
2533
|
Nn
|
|
2534
|
-
].filter((
|
|
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
2730
|
const T = Object.keys(at).map(Number).filter((_) => _ > 0 && l & _).map((_) => at[_]).join(", ");
|
|
2731
|
-
|
|
2731
|
+
x = l + ` /* ${T} */`;
|
|
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) {
|
|
@@ -3035,13 +3035,13 @@ const Io = (e, t, s) => {
|
|
|
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,
|
|
@@ -3064,10 +3064,10 @@ const Io = (e, t, s) => {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
3066
|
const _ = T.length !== 1 || T[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 &&
|
|
3067
|
+
if (R ? (y = R.codegenNode, a && f && Mt(y, f, s)) : _ ? 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 = T[0].codegenNode, a &&
|
|
3078
|
+
) : (y = T[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)
|
|
@@ -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
|
};
|
|
@@ -3199,7 +3199,7 @@ function Mo(e, t, s = Ro) {
|
|
|
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
3204
|
for (let T = 0; T < n.length; T++) {
|
|
3205
3205
|
const _ = n[T];
|
|
@@ -3278,7 +3278,7 @@ function Mo(e, t, s = Ro) {
|
|
|
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,7 +3287,7 @@ 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
|
}
|
|
@@ -3309,7 +3309,7 @@ function Mo(e, t, s = Ro) {
|
|
|
3309
3309
|
T(void 0, u)
|
|
3310
3310
|
)) : i.push(T(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,
|
|
3388
|
+
l = y.props, m = y.patchFlag, f = y.dynamicPropNames;
|
|
3389
3389
|
const T = y.directives;
|
|
3390
3390
|
h = T && T.length ? We(
|
|
3391
3391
|
T.map((_) => Bo(_, t))
|
|
3392
|
-
) : void 0, y.shouldUseBlock && (
|
|
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,
|
|
@@ -3408,7 +3408,7 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3408
3408
|
R && ve(T, t) === 0 && (m |= 1), R || _ === 2 ? c = T : 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,8 +3448,8 @@ 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,
|
|
3451
|
+
const m = [], u = [], f = l.length > 0;
|
|
3452
|
+
let h = !1, x = 0, y = !1, T = !1, _ = !1, R = !1, w = !1, k = !1;
|
|
3453
3453
|
const C = [], O = (H) => {
|
|
3454
3454
|
c.length && (m.push(
|
|
3455
3455
|
xe(nn(c), a)
|
|
@@ -3511,7 +3511,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3511
3511
|
// #938: elements with dynamic keys should be forced into blocks
|
|
3512
3512
|
(Ne && 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), Ne && Me(z, "ref") && I(), !z && (Ne || Be)
|
|
3515
3515
|
) {
|
|
3516
3516
|
if (w = !0, W)
|
|
3517
3517
|
if (Ne) {
|
|
@@ -3543,12 +3543,12 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3543
3543
|
);
|
|
3544
3544
|
continue;
|
|
3545
3545
|
}
|
|
3546
|
-
Ne && me.some((Q) => Q.content === "prop") && (
|
|
3546
|
+
Ne && 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
3550
|
!i && Q.forEach(S), Be && z && !he(z) ? O(xe(Q, a)) : c.push(...Q), Ee && (u.push(B), ps(Ee) && Jn.set(B, Ee));
|
|
3551
|
-
} else Zr($) || (u.push(B),
|
|
3551
|
+
} else Zr($) || (u.push(B), f && (h = !0));
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
3554
|
let N;
|
|
@@ -3559,7 +3559,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3559
3559
|
) : N = m[0]) : c.length && (N = xe(
|
|
3560
3560
|
nn(c),
|
|
3561
3561
|
a
|
|
3562
|
-
)), w ?
|
|
3562
|
+
)), w ? x |= 16 : (T && !n && (x |= 2), _ && !n && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || k || u.length > 0) && (x |= 512), !t.inSSR && N)
|
|
3563
3563
|
switch (N.type) {
|
|
3564
3564
|
case 15:
|
|
3565
3565
|
let H = -1, B = -1, $ = !1;
|
|
@@ -3599,7 +3599,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3599
3599
|
return {
|
|
3600
3600
|
props: N,
|
|
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,7 +3721,7 @@ 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
3726
|
a = _e([
|
|
3727
3727
|
`${s.helperString(ts)}(`,
|
|
@@ -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 = _e([
|
|
3744
|
+
`${f ? "$event" : "(...args)"} => ${h ? "{" : "("}`,
|
|
3745
3745
|
l,
|
|
3746
3746
|
h ? "}" : ")"
|
|
3747
3747
|
]));
|
|
@@ -3840,17 +3840,17 @@ const Xn = (e, t, s, n) => {
|
|
|
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` : _e([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()) : T();
|
|
3897
3897
|
else {
|
|
3898
3898
|
switch (u) {
|
|
3899
3899
|
case 34:
|
|
@@ -3939,7 +3939,7 @@ function on(e, t) {
|
|
|
3939
3939
|
(!R || !Ko.test(R)) && (o = !0);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
|
|
3942
|
+
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 && T();
|
|
3943
3943
|
function T() {
|
|
3944
3944
|
y.push(s.slice(m, h).trim()), m = h + 1;
|
|
3945
3945
|
}
|
|
@@ -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) {
|
|
@@ -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, {
|
|
@@ -4525,9 +4525,9 @@ 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
|
}
|
|
@@ -4578,7 +4578,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4578
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 = (O) => {
|
|
4579
4579
|
O.detail.key === "locale" && (c.value = O.detail.newValue);
|
|
4580
4580
|
};
|
|
4581
|
-
|
|
4581
|
+
De(() => s.value, (O) => {
|
|
4582
4582
|
a.value = O;
|
|
4583
4583
|
});
|
|
4584
4584
|
const u = q(() => {
|
|
@@ -4600,12 +4600,12 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4600
4600
|
}
|
|
4601
4601
|
const S = (s.format || s.column?.format || "text").toLowerCase();
|
|
4602
4602
|
return ["text", "number", "date", "select", "boolean"].includes(S) ? S : "text";
|
|
4603
|
-
}),
|
|
4603
|
+
}), f = q(() => (s.column?.schema?.[s.column?.name]?.options || s.options || l.value || []).map((I) => ({
|
|
4604
4604
|
value: I.id ?? I.value,
|
|
4605
4605
|
color: I.color,
|
|
4606
4606
|
label: I.text ?? I.label
|
|
4607
4607
|
}))), h = M(null);
|
|
4608
|
-
function
|
|
4608
|
+
function x() {
|
|
4609
4609
|
s.editable && (r.value || document.dispatchEvent(new CustomEvent("close-all-popovers")), r.value = !r.value, r.value && bn(() => {
|
|
4610
4610
|
i.value?.focus?.(), i.value?.showPicker?.(), u.value === "select" && C();
|
|
4611
4611
|
}));
|
|
@@ -4671,7 +4671,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4671
4671
|
onClick: ot(R, ["stop"])
|
|
4672
4672
|
}, [
|
|
4673
4673
|
a.value ? (v(), E("span", Ca, I[4] || (I[4] = [
|
|
4674
|
-
|
|
4674
|
+
d("svg", {
|
|
4675
4675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4676
4676
|
width: "24",
|
|
4677
4677
|
height: "24",
|
|
@@ -4683,16 +4683,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4683
4683
|
"stroke-linejoin": "round",
|
|
4684
4684
|
class: "lucide lucide-check size-3.5"
|
|
4685
4685
|
}, [
|
|
4686
|
-
|
|
4686
|
+
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4687
4687
|
], -1)
|
|
4688
4688
|
]))) : te("", !0)
|
|
4689
|
-
], 10, Na)) : (v(), E(
|
|
4690
|
-
|
|
4689
|
+
], 10, Na)) : (v(), E(ne, { key: 1 }, [
|
|
4690
|
+
d("div", {
|
|
4691
4691
|
class: "flex items-center justify-between cursor-pointer",
|
|
4692
|
-
onClick: ot(
|
|
4692
|
+
onClick: ot(x, ["stop"])
|
|
4693
4693
|
}, [
|
|
4694
|
-
|
|
4695
|
-
|
|
4694
|
+
d("span", Ta, [
|
|
4695
|
+
Ie(O.$slots, "default")
|
|
4696
4696
|
]),
|
|
4697
4697
|
O.editable ? (v(), E("svg", {
|
|
4698
4698
|
key: 0,
|
|
@@ -4702,7 +4702,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4702
4702
|
stroke: "currentColor",
|
|
4703
4703
|
class: L(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity", k.value.text])
|
|
4704
4704
|
}, I[5] || (I[5] = [
|
|
4705
|
-
|
|
4705
|
+
d("path", {
|
|
4706
4706
|
"stroke-linecap": "round",
|
|
4707
4707
|
"stroke-linejoin": "round",
|
|
4708
4708
|
"stroke-width": "2",
|
|
@@ -4718,40 +4718,40 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4718
4718
|
onKeydown: Kt(ot(T, ["stop", "prevent"]), ["esc"])
|
|
4719
4719
|
}, [
|
|
4720
4720
|
u.value === "select" ? (v(), E("div", Ia, [
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4721
|
+
d("div", Da, [
|
|
4722
|
+
d("span", Aa, [
|
|
4723
|
+
d("span", Va, " Редагувати " + D(O.column[c.value] || O.column.header || O.column.ua || O.column.name), 1)
|
|
4724
4724
|
])
|
|
4725
4725
|
]),
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
(v(!0), E(
|
|
4726
|
+
d("div", $a, [
|
|
4727
|
+
d("div", Ra, [
|
|
4728
|
+
(v(!0), E(ne, null, Se(f.value, (S) => (v(), E("label", {
|
|
4729
4729
|
key: S.value.toString(),
|
|
4730
4730
|
onClick: ot(() => {
|
|
4731
4731
|
a.value = S.value, y();
|
|
4732
4732
|
}, ["prevent"]),
|
|
4733
4733
|
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
4734
|
}, [
|
|
4735
|
-
I[8] || (I[8] =
|
|
4735
|
+
I[8] || (I[8] = d("input", {
|
|
4736
4736
|
type: "radio",
|
|
4737
4737
|
class: "hidden",
|
|
4738
4738
|
id: "hs-pro-chthuts1op",
|
|
4739
4739
|
name: "hs-pro-chthuts1"
|
|
4740
4740
|
}, null, -1)),
|
|
4741
4741
|
S.color ? (v(), E("span", La, I[6] || (I[6] = [
|
|
4742
|
-
|
|
4742
|
+
d("span", { class: "shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full" }, null, -1)
|
|
4743
4743
|
]))) : te("", !0),
|
|
4744
4744
|
be(" " + D(S.label) + " ", 1),
|
|
4745
4745
|
a.value === S.value ? (v(), E("svg", Pa, I[7] || (I[7] = [
|
|
4746
|
-
|
|
4746
|
+
d("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
4747
4747
|
]))) : te("", !0)
|
|
4748
4748
|
], 8, Ma))), 128))
|
|
4749
4749
|
])
|
|
4750
4750
|
])
|
|
4751
4751
|
])) : (v(), E("div", Fa, [
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4752
|
+
d("h3", Ba, " Редагувати " + D(O.column[c.value] || O.column.header || O.column.ua || O.column.name), 1),
|
|
4753
|
+
d("div", ja, [
|
|
4754
|
+
d("label", Ua, D(O.column[c.value] || O.column.header || O.column.ua || O.column.name), 1),
|
|
4755
4755
|
u.value === "text" ? ke((v(), E("input", {
|
|
4756
4756
|
key: 0,
|
|
4757
4757
|
ref_key: "inputRef",
|
|
@@ -4794,11 +4794,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4794
4794
|
"onUpdate:modelValue": I[3] || (I[3] = (S) => a.value = S),
|
|
4795
4795
|
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
4796
|
}, [
|
|
4797
|
-
I[9] || (I[9] =
|
|
4797
|
+
I[9] || (I[9] = d("option", {
|
|
4798
4798
|
disabled: "",
|
|
4799
4799
|
value: ""
|
|
4800
4800
|
}, "-- виберіть --", -1)),
|
|
4801
|
-
(v(!0), E(
|
|
4801
|
+
(v(!0), E(ne, null, Se(f.value, (S) => (v(), E("option", {
|
|
4802
4802
|
key: S.value.toString(),
|
|
4803
4803
|
value: S.value
|
|
4804
4804
|
}, D(S.label), 9, Ha))), 128))
|
|
@@ -4806,13 +4806,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4806
4806
|
[mr, a.value]
|
|
4807
4807
|
]) : te("", !0)
|
|
4808
4808
|
]),
|
|
4809
|
-
|
|
4810
|
-
|
|
4809
|
+
d("div", za, [
|
|
4810
|
+
d("button", {
|
|
4811
4811
|
type: "button",
|
|
4812
4812
|
class: "px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
4813
4813
|
onClick: T
|
|
4814
4814
|
}, " Скасувати "),
|
|
4815
|
-
|
|
4815
|
+
d("button", {
|
|
4816
4816
|
type: "button",
|
|
4817
4817
|
class: L(["px-4 py-1.5 text-sm rounded-md text-white", k.value.bg]),
|
|
4818
4818
|
onClick: y
|
|
@@ -4873,7 +4873,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4873
4873
|
const s = e, n = t, r = M(s.selectedRows || []), i = M(s.defaultSort.map((p) => ({
|
|
4874
4874
|
field: p.name,
|
|
4875
4875
|
direction: p.asc ? "asc" : "desc"
|
|
4876
|
-
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u = xn(),
|
|
4876
|
+
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u = xn(), f = q(() => u.action);
|
|
4877
4877
|
function h(p) {
|
|
4878
4878
|
if (m.value) {
|
|
4879
4879
|
m.value.push(p);
|
|
@@ -4881,16 +4881,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4881
4881
|
}
|
|
4882
4882
|
location.href = p;
|
|
4883
4883
|
}
|
|
4884
|
-
const
|
|
4884
|
+
const x = q(() => {
|
|
4885
4885
|
if (s.api)
|
|
4886
4886
|
return o.value;
|
|
4887
4887
|
if (s.sortable && i.value.length > 0) {
|
|
4888
4888
|
const p = [...s.rows];
|
|
4889
|
-
return p.sort((V,
|
|
4889
|
+
return p.sort((V, b) => {
|
|
4890
4890
|
for (const j of i.value) {
|
|
4891
4891
|
if (!j.direction)
|
|
4892
4892
|
return 0;
|
|
4893
|
-
const g = V[j.field], U =
|
|
4893
|
+
const g = V[j.field], U = b[j.field];
|
|
4894
4894
|
if (g == null) return 1;
|
|
4895
4895
|
if (U == null) return -1;
|
|
4896
4896
|
let ue = 0;
|
|
@@ -4903,14 +4903,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4903
4903
|
}
|
|
4904
4904
|
return s.rows;
|
|
4905
4905
|
});
|
|
4906
|
-
|
|
4906
|
+
De(() => s.selectedRows, (p) => {
|
|
4907
4907
|
r.value = p || [];
|
|
4908
4908
|
});
|
|
4909
4909
|
const y = (p) => r.value.some((V) => V === p), T = (p) => {
|
|
4910
|
-
const V = r.value.findIndex((
|
|
4910
|
+
const V = r.value.findIndex((b) => b === p);
|
|
4911
4911
|
V > -1 ? r.value.splice(V, 1) : r.value.push(p), n("update:selectedRows", [...r.value]);
|
|
4912
|
-
}, _ = q(() =>
|
|
4913
|
-
_.value ? r.value = [] : r.value = [...
|
|
4912
|
+
}, _ = q(() => x.value.length > 0 && r.value.length === x.value.length), R = q(() => r.value.length > 0 && r.value.length < x.value.length), w = () => {
|
|
4913
|
+
_.value ? r.value = [] : r.value = [...x.value], n("update:selectedRows", [...r.value]);
|
|
4914
4914
|
}, k = (p, V) => {
|
|
4915
4915
|
if (!s.sortable) return;
|
|
4916
4916
|
if (V?.ctrlKey || V?.metaKey) {
|
|
@@ -4932,8 +4932,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4932
4932
|
asc: g.direction === "asc"
|
|
4933
4933
|
}));
|
|
4934
4934
|
n("sort", j), s.api && Ee();
|
|
4935
|
-
}, C = (p) => i.value.find((
|
|
4936
|
-
const V = i.value.find((
|
|
4935
|
+
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc", O = (p) => {
|
|
4936
|
+
const V = i.value.find((b) => b.field === p);
|
|
4937
4937
|
if (!V)
|
|
4938
4938
|
return "";
|
|
4939
4939
|
switch (V.direction) {
|
|
@@ -4949,14 +4949,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4949
4949
|
}, I = (p) => s.sortable && p.sortable !== !1, S = (p) => {
|
|
4950
4950
|
s.clickable && n("row-click", p);
|
|
4951
4951
|
}, N = (p, V) => {
|
|
4952
|
-
const
|
|
4952
|
+
const b = V[p.name];
|
|
4953
4953
|
if (s.getCellData || p.getCellData) {
|
|
4954
4954
|
const j = p.getCellData || s.getCellData;
|
|
4955
4955
|
if (j) {
|
|
4956
4956
|
const g = {
|
|
4957
4957
|
name: p.name,
|
|
4958
4958
|
row: V,
|
|
4959
|
-
value:
|
|
4959
|
+
value: b
|
|
4960
4960
|
};
|
|
4961
4961
|
return j(g);
|
|
4962
4962
|
}
|
|
@@ -4964,7 +4964,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4964
4964
|
return ["_data", "_text"].map((j) => {
|
|
4965
4965
|
const g = `${p.name}${j}`;
|
|
4966
4966
|
return V[g] ? V[g] : null;
|
|
4967
|
-
}).find((j) => j) ||
|
|
4967
|
+
}).find((j) => j) || b;
|
|
4968
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), Ne = 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
4969
|
const { theme: p } = s;
|
|
4970
4970
|
return p === "dark" ? {
|
|
@@ -5005,11 +5005,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5005
5005
|
checkbox: "border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"
|
|
5006
5006
|
};
|
|
5007
5007
|
});
|
|
5008
|
-
|
|
5008
|
+
De(() => s.page, (p) => {
|
|
5009
5009
|
B.value = p;
|
|
5010
|
-
}),
|
|
5010
|
+
}), De(() => s.limit, (p) => {
|
|
5011
5011
|
$.value = p;
|
|
5012
|
-
}),
|
|
5012
|
+
}), De(() => s.total, (p) => {
|
|
5013
5013
|
z.value = p;
|
|
5014
5014
|
});
|
|
5015
5015
|
async function Ee() {
|
|
@@ -5024,8 +5024,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5024
5024
|
const V = await fetch(p.toString());
|
|
5025
5025
|
if (!V.ok)
|
|
5026
5026
|
throw new Error(`HTTP error! status: ${V.status}`);
|
|
5027
|
-
const
|
|
5028
|
-
|
|
5027
|
+
const b = await V.json();
|
|
5028
|
+
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
5029
|
} catch (p) {
|
|
5030
5030
|
c.value = p instanceof Error ? p.message : "Failed to fetch data", console.error("Error fetching data:", p);
|
|
5031
5031
|
} finally {
|
|
@@ -5055,7 +5055,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5055
5055
|
window.removeEventListener("resize", Ls);
|
|
5056
5056
|
}), Ge(() => {
|
|
5057
5057
|
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
|
-
}),
|
|
5058
|
+
}), De(() => s.api, (p) => {
|
|
5059
5059
|
p && (W.value = s.page || 1, G.value = s.limit || 10, me.value = s.total || 0, Ee());
|
|
5060
5060
|
});
|
|
5061
5061
|
const Ps = q(() => s.api ? a.value : s.columns), Ht = M([]), yt = M({});
|
|
@@ -5063,9 +5063,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5063
5063
|
Ht.value.push(p), V && p.slotName && (yt.value[p.name] = V);
|
|
5064
5064
|
});
|
|
5065
5065
|
const zt = q(() => {
|
|
5066
|
-
const p = Ps.value || [], V = [],
|
|
5067
|
-
if (
|
|
5068
|
-
const j =
|
|
5066
|
+
const p = Ps.value || [], V = [], b = u.default?.();
|
|
5067
|
+
if (b) {
|
|
5068
|
+
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
5069
|
const U = g.props || g.componentProps || {}, ue = U.field || U.name || "", Ye = U.header || U.label || "", Fs = g.children && g.children.body, qt = {
|
|
5070
5070
|
name: ue,
|
|
5071
5071
|
// Use field as the name for data access
|
|
@@ -5092,10 +5092,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5092
5092
|
return p.length > 0 ? (console.log("Using default columns:", p.length), p) : [];
|
|
5093
5093
|
}), dr = (p = "text") => js[p.toLowerCase()] || js.text, Ue = M({});
|
|
5094
5094
|
async function fr(p) {
|
|
5095
|
-
const { data: V, api:
|
|
5095
|
+
const { data: V, api: b } = zt.value.find((j) => j.name === p);
|
|
5096
5096
|
if (Ue.value[p]) return Ue.value[p];
|
|
5097
|
-
if (V ||
|
|
5098
|
-
const j =
|
|
5097
|
+
if (V || b) {
|
|
5098
|
+
const j = b || `/api/suggest/${V}?json=1`, U = await (await fetch(j)).json();
|
|
5099
5099
|
U.data && Array.isArray(U.data) && (Ue.value[p] = U.data.map((ue) => ({
|
|
5100
5100
|
value: ue.id ?? ue.value,
|
|
5101
5101
|
label: ue.text ?? ue.label
|
|
@@ -5103,11 +5103,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5103
5103
|
}
|
|
5104
5104
|
return Ue.value[p];
|
|
5105
5105
|
}
|
|
5106
|
-
function pr(p, V,
|
|
5106
|
+
function pr(p, V, b, j) {
|
|
5107
5107
|
const g = j;
|
|
5108
|
-
g !== -1 && (s.rows[g] = { ...s.rows[g], [V]:
|
|
5108
|
+
g !== -1 && (s.rows[g] = { ...s.rows[g], [V]: b }), n("cell-update", p, V, b);
|
|
5109
5109
|
}
|
|
5110
|
-
return
|
|
5110
|
+
return De(() => s.form, async (p) => {
|
|
5111
5111
|
p && (Ue.value = {});
|
|
5112
5112
|
}), Ge(() => {
|
|
5113
5113
|
s.form && (Ue.value = {});
|
|
@@ -5115,9 +5115,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5115
5115
|
class: L(["w-full", Q.value.container])
|
|
5116
5116
|
}, [
|
|
5117
5117
|
l.value || s.loading ? (v(), E("div", Ka, [
|
|
5118
|
-
|
|
5119
|
-
V[0] || (V[0] =
|
|
5120
|
-
|
|
5118
|
+
d("div", Wa, [
|
|
5119
|
+
V[0] || (V[0] = d("div", { class: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }, null, -1)),
|
|
5120
|
+
d("span", {
|
|
5121
5121
|
class: L(Q.value.loading)
|
|
5122
5122
|
}, "Loading...", 2)
|
|
5123
5123
|
])
|
|
@@ -5125,22 +5125,22 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5125
5125
|
key: 1,
|
|
5126
5126
|
class: L(["text-center py-8", Q.value.error])
|
|
5127
5127
|
}, D(c.value), 3)) : s.loading ? te("", !0) : (v(), E("div", Ga, [
|
|
5128
|
-
|
|
5128
|
+
d("div", {
|
|
5129
5129
|
class: L(p.classWrapper ? p.classWrapper : "relative w-full overflow-auto")
|
|
5130
5130
|
}, [
|
|
5131
|
-
|
|
5131
|
+
d("table", {
|
|
5132
5132
|
class: L(p.classTable),
|
|
5133
5133
|
style: Pt(p.tableStyle)
|
|
5134
5134
|
}, [
|
|
5135
|
-
|
|
5135
|
+
d("thead", {
|
|
5136
5136
|
class: L(p.classThead || Q.value.thead)
|
|
5137
5137
|
}, [
|
|
5138
|
-
|
|
5138
|
+
d("tr", null, [
|
|
5139
5139
|
p.selectable ? (v(), E("th", {
|
|
5140
5140
|
key: 0,
|
|
5141
5141
|
class: L(["text-left font-medium uppercase tracking-wider", Q.value.th, it.value.header, s.classTh, "w-12"])
|
|
5142
5142
|
}, [
|
|
5143
|
-
|
|
5143
|
+
d("input", {
|
|
5144
5144
|
type: "checkbox",
|
|
5145
5145
|
checked: _.value,
|
|
5146
5146
|
indeterminate: R.value,
|
|
@@ -5148,12 +5148,12 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5148
5148
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5149
5149
|
}, null, 42, Ja)
|
|
5150
5150
|
], 2)) : te("", !0),
|
|
5151
|
-
(v(!0), E(
|
|
5152
|
-
key:
|
|
5151
|
+
(v(!0), E(ne, null, Se(zt.value.filter((b) => !b.hidden), (b) => (v(), E("th", {
|
|
5152
|
+
key: b.name,
|
|
5153
5153
|
class: L([
|
|
5154
|
-
|
|
5155
|
-
I(
|
|
5156
|
-
H(
|
|
5154
|
+
b.align ? `text-${b.align}` : "",
|
|
5155
|
+
I(b) ? ["cursor-pointer", Q.value.thHover] : "",
|
|
5156
|
+
H(b)
|
|
5157
5157
|
].concat(
|
|
5158
5158
|
s.classTh || [
|
|
5159
5159
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5161,20 +5161,20 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5161
5161
|
it.value.header
|
|
5162
5162
|
]
|
|
5163
5163
|
)),
|
|
5164
|
-
onClick: (j) => I(
|
|
5164
|
+
onClick: (j) => I(b) ? k(b.name, j) : void 0
|
|
5165
5165
|
}, [
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
I(
|
|
5169
|
-
|
|
5170
|
-
asc: C(
|
|
5166
|
+
d("div", Xa, [
|
|
5167
|
+
d("span", null, D(b[Ut.value] || b.header || b.ua || b.name), 1),
|
|
5168
|
+
I(b) ? (v(), E("span", Qa, [
|
|
5169
|
+
Ie(p.$slots, "sort", {
|
|
5170
|
+
asc: C(b.name)
|
|
5171
5171
|
}, () => [
|
|
5172
|
-
be(D(O(
|
|
5172
|
+
be(D(O(b.name)), 1)
|
|
5173
5173
|
])
|
|
5174
5174
|
])) : te("", !0)
|
|
5175
5175
|
])
|
|
5176
5176
|
], 10, Ya))), 128)),
|
|
5177
|
-
|
|
5177
|
+
f.value ? (v(), E("th", {
|
|
5178
5178
|
key: 1,
|
|
5179
5179
|
class: L(["w-[100px]", s.classTh || [
|
|
5180
5180
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5184,115 +5184,119 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5184
5184
|
}, D(X(ur)("table.actions")), 3)) : te("", !0)
|
|
5185
5185
|
])
|
|
5186
5186
|
], 2),
|
|
5187
|
-
|
|
5187
|
+
x.value.length ? (v(), E("tbody", {
|
|
5188
5188
|
key: 0,
|
|
5189
5189
|
class: L(p.classTbody || Q.value.tbody)
|
|
5190
5190
|
}, [
|
|
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
|
-
])
|
|
5191
|
+
(v(!0), E(ne, null, Se(x.value, (b, j) => (v(), E(ne, { key: j }, [
|
|
5192
|
+
d("tr", {
|
|
5193
|
+
class: L(s.classTr || [
|
|
5194
|
+
Q.value.tr,
|
|
5195
|
+
s.clickable ? "cursor-pointer" : ""
|
|
5196
|
+
]),
|
|
5197
|
+
onClick: (g) => s.clickable ? S(b) : void 0
|
|
5219
5198
|
}, [
|
|
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
|
-
key: 5,
|
|
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)), {
|
|
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
|
+
d("input", {
|
|
5204
|
+
type: "checkbox",
|
|
5205
|
+
checked: y(b),
|
|
5206
|
+
onChange: (g) => T(b),
|
|
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(ne, 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
|
+
])
|
|
5219
|
+
}, [
|
|
5220
|
+
(v(), $e(qa, {
|
|
5221
|
+
key: b,
|
|
5222
|
+
editable: g.edit,
|
|
5223
|
+
row: b,
|
|
5224
|
+
column: g,
|
|
5225
|
+
value: b[g.name],
|
|
5226
|
+
format: g.format,
|
|
5227
|
+
options: Ue.value[g.name] || [],
|
|
5228
|
+
color: p.color,
|
|
5229
|
+
onUpdate: (U, ue, Ye) => pr(U, ue, Ye, j),
|
|
5230
|
+
"fetch-options": fr
|
|
5231
|
+
}, {
|
|
5232
|
+
default: vr(() => [
|
|
5233
|
+
g.action && f.value ? Ie(p.$slots, "action", {
|
|
5260
5234
|
key: 0,
|
|
5261
|
-
row:
|
|
5262
|
-
|
|
5263
|
-
|
|
5235
|
+
row: b
|
|
5236
|
+
}) : X(u).number && g.format === "number" ? Ie(p.$slots, "number", {
|
|
5237
|
+
key: 1,
|
|
5238
|
+
row: b,
|
|
5239
|
+
value: N(g, b)
|
|
5240
|
+
}) : X(u).badge && g.format === "badge" ? Ie(p.$slots, "badge", {
|
|
5241
|
+
key: 2,
|
|
5242
|
+
row: b,
|
|
5243
|
+
value: N(g, b)
|
|
5244
|
+
}) : X(u).array && g.format === "array" ? Ie(p.$slots, "array", {
|
|
5245
|
+
key: 3,
|
|
5246
|
+
row: b,
|
|
5247
|
+
value: N(g, b)
|
|
5248
|
+
}) : g.slotName && yt.value[g.name] ? (v(), $e(bt(yt.value[g.name]), {
|
|
5249
|
+
key: 4,
|
|
5250
|
+
data: b,
|
|
5251
|
+
value: N(g, b),
|
|
5252
|
+
row: b,
|
|
5264
5253
|
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
|
-
|
|
5254
|
+
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), E("a", {
|
|
5255
|
+
key: 5,
|
|
5256
|
+
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5257
|
+
onClick: (U) => h(g.link.replace("{id}", b.id))
|
|
5258
|
+
}, [
|
|
5259
|
+
g.slot && typeof g.slot == "string" ? (v(), $e(bt(X(pn)(g.slot)), {
|
|
5260
|
+
key: 0,
|
|
5261
|
+
row: b,
|
|
5262
|
+
value: b,
|
|
5263
|
+
data: b,
|
|
5264
|
+
column: g
|
|
5265
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), E(ne, { key: 1 }, [
|
|
5266
|
+
be(D(N(g, b)), 1)
|
|
5267
|
+
], 64))
|
|
5268
|
+
], 10, tl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), $e(bt(X(pn)(g.slot)), {
|
|
5269
|
+
key: 6,
|
|
5270
|
+
row: b,
|
|
5271
|
+
value: N(g, b),
|
|
5272
|
+
data: b,
|
|
5273
|
+
column: g
|
|
5274
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), $e(bt(dr(g.format)), {
|
|
5275
|
+
key: 7,
|
|
5276
|
+
value: N(g, b),
|
|
5277
|
+
row: b,
|
|
5278
|
+
column: g,
|
|
5279
|
+
href: g.link
|
|
5280
|
+
}, null, 8, ["value", "row", "column", "href"]))
|
|
5281
|
+
]),
|
|
5282
|
+
_: 2
|
|
5283
|
+
}, 1032, ["editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5284
|
+
], 2))), 128)),
|
|
5285
|
+
f.value ? (v(), E("td", sl, [
|
|
5286
|
+
Ie(p.$slots, "action", { row: b })
|
|
5287
|
+
])) : te("", !0)
|
|
5288
|
+
], 10, Za),
|
|
5289
|
+
d("tr", null, [
|
|
5290
|
+
Ie(p.$slots, "under-row", { row: b })
|
|
5291
|
+
])
|
|
5292
|
+
], 64))), 128))
|
|
5289
5293
|
], 2)) : te("", !0),
|
|
5290
|
-
|
|
5294
|
+
x.value.length === 0 ? (v(), E("tbody", {
|
|
5291
5295
|
key: 1,
|
|
5292
5296
|
class: L(["text-center py-8", Q.value.empty])
|
|
5293
5297
|
}, [
|
|
5294
|
-
|
|
5295
|
-
|
|
5298
|
+
d("tr", null, [
|
|
5299
|
+
d("td", {
|
|
5296
5300
|
colspan: Ps.value.length
|
|
5297
5301
|
}, [
|
|
5298
5302
|
yr(_a)
|
|
@@ -5302,7 +5306,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5302
5306
|
], 6)
|
|
5303
5307
|
], 2)
|
|
5304
5308
|
])),
|
|
5305
|
-
cr.value && !l.value && !s.loading && !c.value ? (v(),
|
|
5309
|
+
cr.value && !l.value && !s.loading && !c.value ? (v(), $e(kn, {
|
|
5306
5310
|
key: 3,
|
|
5307
5311
|
page: Ne.value,
|
|
5308
5312
|
limit: Be.value,
|
|
@@ -5346,9 +5350,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5346
5350
|
slotName: c,
|
|
5347
5351
|
link: m,
|
|
5348
5352
|
action: u,
|
|
5349
|
-
getCellData:
|
|
5353
|
+
getCellData: f,
|
|
5350
5354
|
suffix: h,
|
|
5351
|
-
...
|
|
5355
|
+
...x
|
|
5352
5356
|
} = t, R = {
|
|
5353
5357
|
name: r || i || "",
|
|
5354
5358
|
ua: o || a || "",
|
|
@@ -5357,16 +5361,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5357
5361
|
// Use 'body' slot if it exists
|
|
5358
5362
|
link: m,
|
|
5359
5363
|
action: u,
|
|
5360
|
-
getCellData:
|
|
5364
|
+
getCellData: f,
|
|
5361
5365
|
suffix: h,
|
|
5362
|
-
...
|
|
5366
|
+
...x
|
|
5363
5367
|
};
|
|
5364
5368
|
console.log("Registering column:", R);
|
|
5365
5369
|
const w = s.body;
|
|
5366
5370
|
n(R, w);
|
|
5367
5371
|
}
|
|
5368
5372
|
}), (r, i) => (v(), E("div", rl, [
|
|
5369
|
-
|
|
5373
|
+
Ie(r.$slots, "body", { data: {} })
|
|
5370
5374
|
]));
|
|
5371
5375
|
}
|
|
5372
5376
|
}), ol = { class: "mt-4" }, al = { class: "text-sm text-gray-600 dark:text-gray-300" }, ll = /* @__PURE__ */ ae({
|
|
@@ -5378,7 +5382,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5378
5382
|
setup(e) {
|
|
5379
5383
|
const t = e, s = q(() => t.selectedRows.length);
|
|
5380
5384
|
return (n, r) => (v(), E("div", ol, [
|
|
5381
|
-
|
|
5385
|
+
d("div", al, " Обрано: " + D(s.value) + " з " + D(n.totalCount) + " записів ", 1)
|
|
5382
5386
|
]));
|
|
5383
5387
|
}
|
|
5384
5388
|
}), 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 +5400,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5396
5400
|
}
|
|
5397
5401
|
};
|
|
5398
5402
|
return (r, i) => (v(), E("div", cl, [
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
(v(!0), E(
|
|
5403
|
+
d("div", ul, [
|
|
5404
|
+
d("nav", dl, [
|
|
5405
|
+
(v(!0), E(ne, null, Se(r.tabs, (o) => (v(), E("button", {
|
|
5402
5406
|
key: o.id,
|
|
5403
5407
|
onClick: (a) => s.value = o.id,
|
|
5404
5408
|
class: L([
|
|
@@ -5408,25 +5412,25 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5408
5412
|
}, D(o.label), 11, fl))), 128))
|
|
5409
5413
|
])
|
|
5410
5414
|
]),
|
|
5411
|
-
|
|
5412
|
-
(v(!0), E(
|
|
5415
|
+
d("div", pl, [
|
|
5416
|
+
(v(!0), E(ne, null, Se(r.tabs, (o) => ke((v(), E("div", {
|
|
5413
5417
|
key: o.id
|
|
5414
5418
|
}, [
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
+
d("div", hl, [
|
|
5420
|
+
d("div", ml, [
|
|
5421
|
+
d("span", gl, D(o.label), 1),
|
|
5422
|
+
d("button", {
|
|
5419
5423
|
onClick: (a) => n(o.content),
|
|
5420
5424
|
class: "text-gray-400 hover:text-white transition-colors",
|
|
5421
5425
|
title: "Копіювати код"
|
|
5422
5426
|
}, i[0] || (i[0] = [
|
|
5423
|
-
|
|
5427
|
+
d("svg", {
|
|
5424
5428
|
class: "w-4 h-4",
|
|
5425
5429
|
fill: "none",
|
|
5426
5430
|
stroke: "currentColor",
|
|
5427
5431
|
viewBox: "0 0 24 24"
|
|
5428
5432
|
}, [
|
|
5429
|
-
|
|
5433
|
+
d("path", {
|
|
5430
5434
|
"stroke-linecap": "round",
|
|
5431
5435
|
"stroke-linejoin": "round",
|
|
5432
5436
|
"stroke-width": "2",
|
|
@@ -5435,8 +5439,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5435
5439
|
], -1)
|
|
5436
5440
|
]), 8, vl)
|
|
5437
5441
|
]),
|
|
5438
|
-
|
|
5439
|
-
|
|
5442
|
+
d("pre", yl, [
|
|
5443
|
+
d("code", null, D(o.content), 1)
|
|
5440
5444
|
])
|
|
5441
5445
|
])
|
|
5442
5446
|
])), [
|
|
@@ -5488,13 +5492,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5488
5492
|
function u() {
|
|
5489
5493
|
i.value = c.value.map((w) => w.name), o.value = "json", r.value = !0;
|
|
5490
5494
|
}
|
|
5491
|
-
function
|
|
5495
|
+
function f() {
|
|
5492
5496
|
r.value = !1;
|
|
5493
5497
|
}
|
|
5494
5498
|
function h() {
|
|
5495
5499
|
i.value = c.value.map((w) => w.name), l.value = "all";
|
|
5496
5500
|
}
|
|
5497
|
-
function
|
|
5501
|
+
function x() {
|
|
5498
5502
|
const w = c.value.filter((k) => !k.hidden).map((k) => k.name);
|
|
5499
5503
|
i.value = w.length ? w : c.value.map((k) => k.name), l.value = "active";
|
|
5500
5504
|
}
|
|
@@ -5515,7 +5519,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5515
5519
|
});
|
|
5516
5520
|
if (!k.ok) throw new Error("Export failed");
|
|
5517
5521
|
const C = await k.blob(), O = URL.createObjectURL(C), I = document.createElement("a");
|
|
5518
|
-
I.href = O, I.download = `${n.table}.${o.value}`, document.body.appendChild(I), I.click(), I.remove(), URL.revokeObjectURL(O),
|
|
5522
|
+
I.href = O, I.download = `${n.table}.${o.value}`, document.body.appendChild(I), I.click(), I.remove(), URL.revokeObjectURL(O), f();
|
|
5519
5523
|
} catch (k) {
|
|
5520
5524
|
console.error(k);
|
|
5521
5525
|
const { $notify: C = console.log } = t?.appContext?.config?.globalProperties || {};
|
|
@@ -5531,26 +5535,26 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5531
5535
|
window.removeEventListener("storage", R);
|
|
5532
5536
|
}), Ge(() => {
|
|
5533
5537
|
window.addEventListener("storage", R), _.value = localStorage.locale;
|
|
5534
|
-
}), (w, k) => (v(), E(
|
|
5535
|
-
|
|
5538
|
+
}), (w, k) => (v(), E(ne, null, [
|
|
5539
|
+
d("button", {
|
|
5536
5540
|
onClick: u,
|
|
5537
5541
|
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
5542
|
}, [
|
|
5539
5543
|
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
5544
|
be(" " + D(X(s)("table.export")), 1)
|
|
5541
5545
|
], 2),
|
|
5542
|
-
(v(),
|
|
5546
|
+
(v(), $e(yn, { to: "body" }, [
|
|
5543
5547
|
r.value ? (v(), E("div", xl, [
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
+
d("div", El, [
|
|
5549
|
+
d("div", kl, [
|
|
5550
|
+
d("h3", wl, D(X(s)("table.exportTitle")), 1),
|
|
5551
|
+
d("button", {
|
|
5548
5552
|
type: "button",
|
|
5549
|
-
onClick:
|
|
5553
|
+
onClick: f,
|
|
5550
5554
|
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
5555
|
}, [
|
|
5552
|
-
|
|
5553
|
-
k[5] || (k[5] =
|
|
5556
|
+
d("span", Sl, D(X(s)("table.close")), 1),
|
|
5557
|
+
k[5] || (k[5] = d("svg", {
|
|
5554
5558
|
class: "flex-shrink-0 w-4 h-4",
|
|
5555
5559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5556
5560
|
width: "24",
|
|
@@ -5562,53 +5566,53 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5562
5566
|
"stroke-linecap": "round",
|
|
5563
5567
|
"stroke-linejoin": "round"
|
|
5564
5568
|
}, [
|
|
5565
|
-
|
|
5566
|
-
|
|
5569
|
+
d("path", { d: "M18 6 6 18" }),
|
|
5570
|
+
d("path", { d: "m6 6 12 12" })
|
|
5567
5571
|
], -1))
|
|
5568
5572
|
])
|
|
5569
5573
|
]),
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5574
|
+
d("div", _l, [
|
|
5575
|
+
d("div", Nl, [
|
|
5576
|
+
d("div", Cl, [
|
|
5577
|
+
d("h2", Tl, D(X(s)("table.chooseColumns")), 1),
|
|
5578
|
+
d("div", Ol, [
|
|
5579
|
+
d("button", {
|
|
5576
5580
|
onClick: h,
|
|
5577
5581
|
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
5582
|
}, [
|
|
5579
|
-
|
|
5583
|
+
d("span", Il, [
|
|
5580
5584
|
l.value === "all" ? (v(), E("span", Dl)) : te("", !0)
|
|
5581
5585
|
]),
|
|
5582
5586
|
be(" " + D(X(s)("table.selectAll")), 1)
|
|
5583
5587
|
]),
|
|
5584
|
-
|
|
5585
|
-
onClick:
|
|
5588
|
+
d("button", {
|
|
5589
|
+
onClick: x,
|
|
5586
5590
|
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
5591
|
}, [
|
|
5588
|
-
|
|
5592
|
+
d("span", Al, [
|
|
5589
5593
|
l.value === "active" ? (v(), E("span", Vl)) : te("", !0)
|
|
5590
5594
|
]),
|
|
5591
5595
|
be(" " + D(X(s)("table.selectCurrent")), 1)
|
|
5592
5596
|
]),
|
|
5593
|
-
|
|
5597
|
+
d("button", {
|
|
5594
5598
|
onClick: y,
|
|
5595
5599
|
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
5600
|
}, [
|
|
5597
|
-
|
|
5601
|
+
d("span", $l, [
|
|
5598
5602
|
l.value === "none" ? (v(), E("span", Rl)) : te("", !0)
|
|
5599
5603
|
]),
|
|
5600
5604
|
be(" " + D(X(s)("table.none")), 1)
|
|
5601
5605
|
])
|
|
5602
5606
|
]),
|
|
5603
|
-
|
|
5604
|
-
(v(!0), E(
|
|
5607
|
+
d("div", Ml, [
|
|
5608
|
+
(v(!0), E(ne, null, Se(c.value, (C) => (v(), E("div", {
|
|
5605
5609
|
class: "flex items-center",
|
|
5606
5610
|
style: { width: "calc(50% - 5px)" },
|
|
5607
5611
|
key: C.name
|
|
5608
5612
|
}, [
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
ke(
|
|
5613
|
+
d("div", Ll, [
|
|
5614
|
+
d("div", Pl, [
|
|
5615
|
+
ke(d("input", {
|
|
5612
5616
|
type: "checkbox",
|
|
5613
5617
|
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
5618
|
id: "radio-" + C.name,
|
|
@@ -5617,37 +5621,37 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5617
5621
|
}, null, 8, Fl), [
|
|
5618
5622
|
[xr, i.value]
|
|
5619
5623
|
]),
|
|
5620
|
-
|
|
5624
|
+
d("label", {
|
|
5621
5625
|
for: "radio-" + C.name,
|
|
5622
5626
|
class: "flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"
|
|
5623
5627
|
}, [
|
|
5624
|
-
|
|
5628
|
+
d("div", {
|
|
5625
5629
|
class: "h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",
|
|
5626
5630
|
style: Pt(i.value.includes(C.name) ? "background-color: rgb(37,99,235); border-color: transparent;" : "")
|
|
5627
5631
|
}, [
|
|
5628
5632
|
ke((v(), E("svg", jl, k[6] || (k[6] = [
|
|
5629
|
-
|
|
5633
|
+
d("path", {
|
|
5630
5634
|
stroke: "none",
|
|
5631
5635
|
d: "M0 0h24v24H0z",
|
|
5632
5636
|
fill: "none"
|
|
5633
5637
|
}, null, -1),
|
|
5634
|
-
|
|
5638
|
+
d("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
5635
5639
|
]), 512)), [
|
|
5636
5640
|
[En, i.value.includes(C.name)]
|
|
5637
5641
|
])
|
|
5638
5642
|
], 4),
|
|
5639
|
-
|
|
5643
|
+
d("span", Ul, D(C[_.value] || C.header || C.ua || C.name), 1)
|
|
5640
5644
|
], 8, Bl)
|
|
5641
5645
|
])
|
|
5642
5646
|
])
|
|
5643
5647
|
]))), 128))
|
|
5644
5648
|
])
|
|
5645
5649
|
]),
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
ke(
|
|
5650
|
+
d("div", Hl, [
|
|
5651
|
+
d("h2", zl, D(X(s)("table.chooseFormat")), 1),
|
|
5652
|
+
d("div", ql, [
|
|
5653
|
+
d("div", Kl, [
|
|
5654
|
+
ke(d("input", {
|
|
5651
5655
|
type: "radio",
|
|
5652
5656
|
name: "hs-pro-duecmfm",
|
|
5653
5657
|
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 +5661,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5657
5661
|
}, null, 512), [
|
|
5658
5662
|
[Wt, o.value]
|
|
5659
5663
|
]),
|
|
5660
|
-
|
|
5664
|
+
d("label", Wl, D(X(s)("table.format.json")), 1)
|
|
5661
5665
|
]),
|
|
5662
|
-
|
|
5663
|
-
ke(
|
|
5666
|
+
d("div", Gl, [
|
|
5667
|
+
ke(d("input", {
|
|
5664
5668
|
type: "radio",
|
|
5665
5669
|
name: "hs-pro-duecmfm",
|
|
5666
5670
|
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 +5674,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5670
5674
|
}, null, 512), [
|
|
5671
5675
|
[Wt, o.value]
|
|
5672
5676
|
]),
|
|
5673
|
-
|
|
5677
|
+
d("label", Jl, D(X(s)("table.format.csv")), 1)
|
|
5674
5678
|
]),
|
|
5675
|
-
|
|
5676
|
-
ke(
|
|
5679
|
+
d("div", Yl, [
|
|
5680
|
+
ke(d("input", {
|
|
5677
5681
|
type: "radio",
|
|
5678
5682
|
name: "hs-pro-duecmfm",
|
|
5679
5683
|
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,20 +5687,20 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5683
5687
|
}, null, 512), [
|
|
5684
5688
|
[Wt, o.value]
|
|
5685
5689
|
]),
|
|
5686
|
-
|
|
5690
|
+
d("label", Xl, D(X(s)("table.format.xlsx")), 1)
|
|
5687
5691
|
])
|
|
5688
5692
|
])
|
|
5689
5693
|
])
|
|
5690
5694
|
])
|
|
5691
5695
|
]),
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5696
|
+
d("div", Ql, [
|
|
5697
|
+
d("div", Zl, [
|
|
5698
|
+
d("button", {
|
|
5695
5699
|
type: "button",
|
|
5696
|
-
onClick:
|
|
5700
|
+
onClick: f,
|
|
5697
5701
|
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
5702
|
}, D(X(s)("table.cancel")), 1),
|
|
5699
|
-
|
|
5703
|
+
d("button", {
|
|
5700
5704
|
type: "button",
|
|
5701
5705
|
onClick: T,
|
|
5702
5706
|
disabled: i.value.length === 0 || a.value,
|