@opengis/table 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DataTable.vue.d.ts +1 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/EditableCell.vue.d.ts +1 -0
- package/dist/components/EditableCell.vue.d.ts.map +1 -1
- package/dist/index.mjs +216 -213
- package/dist/index.umd.js +8 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -50,7 +50,7 @@ function fs() {
|
|
|
50
50
|
const e = mn();
|
|
51
51
|
return e.appContext.config.globalProperties.$i18n ? e.appContext.config.globalProperties.$t : Er;
|
|
52
52
|
}
|
|
53
|
-
const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, wr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, Sr = ["placeholder"],
|
|
53
|
+
const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, wr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, Sr = ["placeholder"], Nr = { class: "p-1 pt-3 max-h-80 overflow-y-auto" }, _r = { class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500" }, Cr = ["onClick"], Tr = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none" }, Or = ["value"], Ir = /* @__PURE__ */ ae({
|
|
54
54
|
__name: "ColumnsSettings",
|
|
55
55
|
props: {
|
|
56
56
|
columns: {}
|
|
@@ -69,10 +69,10 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
69
69
|
}, { deep: !0 }), De(() => n.columns, (w) => {
|
|
70
70
|
JSON.stringify(w) !== JSON.stringify(l.value) && (l.value = [...w]);
|
|
71
71
|
}, { deep: !0 });
|
|
72
|
-
function
|
|
72
|
+
function O(w) {
|
|
73
73
|
Object.assign(w, { hidden: !w.hidden });
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function N() {
|
|
76
76
|
o.value = !o.value, bn(() => {
|
|
77
77
|
if (o.value && (u.value?.focus(), c.value && m.value)) {
|
|
78
78
|
const w = c.value.getBoundingClientRect();
|
|
@@ -92,7 +92,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
92
92
|
document.removeEventListener("click", R, !0);
|
|
93
93
|
}), (w, k) => (v(), E(ne, null, [
|
|
94
94
|
d("button", {
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: N,
|
|
96
96
|
ref_key: "buttonRef",
|
|
97
97
|
ref: c,
|
|
98
98
|
class: L([[X(i).class], "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])
|
|
@@ -120,8 +120,8 @@ 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
|
-
d("div",
|
|
124
|
-
d("span",
|
|
123
|
+
d("div", Nr, [
|
|
124
|
+
d("span", _r, D(X(s)("table.choose")), 1),
|
|
125
125
|
d("div", {
|
|
126
126
|
class: "space-y-1",
|
|
127
127
|
onClick: k[1] || (k[1] = ot(() => {
|
|
@@ -130,7 +130,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
130
130
|
(v(!0), E(ne, null, Se(h.value, (C) => (v(), E("div", {
|
|
131
131
|
key: C.name,
|
|
132
132
|
class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",
|
|
133
|
-
onClick: (
|
|
133
|
+
onClick: (T) => O(C)
|
|
134
134
|
}, [
|
|
135
135
|
d("label", Tr, [
|
|
136
136
|
be(D(C[x.value] || C.ua || C.label) + " ", 1),
|
|
@@ -543,7 +543,7 @@ const ai = "html,body,base,head,link,meta,style,title,address,article,aside,foot
|
|
|
543
543
|
**/
|
|
544
544
|
const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt = Symbol(process.env.NODE_ENV !== "production" ? "Teleport" : ""), gs = Symbol(process.env.NODE_ENV !== "production" ? "Suspense" : ""), Ot = Symbol(process.env.NODE_ENV !== "production" ? "KeepAlive" : ""), wn = Symbol(
|
|
545
545
|
process.env.NODE_ENV !== "production" ? "BaseTransition" : ""
|
|
546
|
-
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), Sn = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""),
|
|
546
|
+
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), Sn = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""), Nn = Symbol(
|
|
547
547
|
process.env.NODE_ENV !== "production" ? "createElementBlock" : ""
|
|
548
548
|
), vs = Symbol(process.env.NODE_ENV !== "production" ? "createVNode" : ""), ys = Symbol(
|
|
549
549
|
process.env.NODE_ENV !== "production" ? "createElementVNode" : ""
|
|
@@ -551,7 +551,7 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
551
551
|
process.env.NODE_ENV !== "production" ? "createCommentVNode" : ""
|
|
552
552
|
), bs = Symbol(
|
|
553
553
|
process.env.NODE_ENV !== "production" ? "createTextVNode" : ""
|
|
554
|
-
),
|
|
554
|
+
), _n = Symbol(
|
|
555
555
|
process.env.NODE_ENV !== "production" ? "createStaticVNode" : ""
|
|
556
556
|
), xs = Symbol(
|
|
557
557
|
process.env.NODE_ENV !== "production" ? "resolveComponent" : ""
|
|
@@ -563,9 +563,9 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
563
563
|
process.env.NODE_ENV !== "production" ? "resolveFilter" : ""
|
|
564
564
|
), Ss = Symbol(
|
|
565
565
|
process.env.NODE_ENV !== "production" ? "withDirectives" : ""
|
|
566
|
-
),
|
|
566
|
+
), Ns = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""), Cn = Symbol(process.env.NODE_ENV !== "production" ? "renderSlot" : ""), Tn = Symbol(process.env.NODE_ENV !== "production" ? "createSlots" : ""), Ft = Symbol(
|
|
567
567
|
process.env.NODE_ENV !== "production" ? "toDisplayString" : ""
|
|
568
|
-
), It = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""),
|
|
568
|
+
), It = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""), _s = Symbol(
|
|
569
569
|
process.env.NODE_ENV !== "production" ? "normalizeClass" : ""
|
|
570
570
|
), Cs = Symbol(
|
|
571
571
|
process.env.NODE_ENV !== "production" ? "normalizeStyle" : ""
|
|
@@ -585,23 +585,23 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
585
585
|
[wn]: "BaseTransition",
|
|
586
586
|
[Je]: "openBlock",
|
|
587
587
|
[Sn]: "createBlock",
|
|
588
|
-
[
|
|
588
|
+
[Nn]: "createElementBlock",
|
|
589
589
|
[vs]: "createVNode",
|
|
590
590
|
[ys]: "createElementVNode",
|
|
591
591
|
[mt]: "createCommentVNode",
|
|
592
592
|
[bs]: "createTextVNode",
|
|
593
|
-
[
|
|
593
|
+
[_n]: "createStaticVNode",
|
|
594
594
|
[xs]: "resolveComponent",
|
|
595
595
|
[Es]: "resolveDynamicComponent",
|
|
596
596
|
[ks]: "resolveDirective",
|
|
597
597
|
[ws]: "resolveFilter",
|
|
598
598
|
[Ss]: "withDirectives",
|
|
599
|
-
[
|
|
599
|
+
[Ns]: "renderList",
|
|
600
600
|
[Cn]: "renderSlot",
|
|
601
601
|
[Tn]: "createSlots",
|
|
602
602
|
[Ft]: "toDisplayString",
|
|
603
603
|
[It]: "mergeProps",
|
|
604
|
-
[
|
|
604
|
+
[_s]: "normalizeClass",
|
|
605
605
|
[Cs]: "normalizeStyle",
|
|
606
606
|
[ut]: "normalizeProps",
|
|
607
607
|
[gt]: "guardReactiveProps",
|
|
@@ -690,7 +690,7 @@ function A(e, t = !1, s = ye, n = 0) {
|
|
|
690
690
|
constType: t ? 3 : n
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Ne(e, t = ye) {
|
|
694
694
|
return {
|
|
695
695
|
type: 8,
|
|
696
696
|
loc: t,
|
|
@@ -747,7 +747,7 @@ function tt(e, t) {
|
|
|
747
747
|
return e || t ? vs : ys;
|
|
748
748
|
}
|
|
749
749
|
function st(e, t) {
|
|
750
|
-
return e || t ? Sn :
|
|
750
|
+
return e || t ? Sn : Nn;
|
|
751
751
|
}
|
|
752
752
|
function Ds(e, { helper: t, removeHelper: s, inSSR: n }) {
|
|
753
753
|
e.isBlock || (e.isBlock = !0, s(tt(n, e.isComponent)), t(Je), t(st(n, e.isComponent)));
|
|
@@ -1189,7 +1189,7 @@ class Si {
|
|
|
1189
1189
|
emitCodePoint(t, s) {
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const Ni = {
|
|
1193
1193
|
COMPILER_IS_ON_ELEMENT: {
|
|
1194
1194
|
message: 'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',
|
|
1195
1195
|
link: "https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"
|
|
@@ -1237,7 +1237,7 @@ function nt(e, t, s, ...n) {
|
|
|
1237
1237
|
function Vt(e, t, s, ...n) {
|
|
1238
1238
|
if (ns(e, t) === "suppress-warning")
|
|
1239
1239
|
return;
|
|
1240
|
-
const { message: i, link: o } =
|
|
1240
|
+
const { message: i, link: o } = Ni[e], a = `(deprecation ${e}) ${typeof i == "function" ? i(...n) : i}${o ? `
|
|
1241
1241
|
Details: ${o}` : ""}`, l = new SyntaxError(a);
|
|
1242
1242
|
l.code = e, s && (l.loc = s), t.onWarn(l);
|
|
1243
1243
|
}
|
|
@@ -1248,10 +1248,10 @@ function In(e) {
|
|
|
1248
1248
|
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${e.message}`);
|
|
1249
1249
|
}
|
|
1250
1250
|
function K(e, t, s, n) {
|
|
1251
|
-
const r = process.env.NODE_ENV !== "production" ? (s ||
|
|
1251
|
+
const r = process.env.NODE_ENV !== "production" ? (s || _i)[e] + (n || "") : `https://vuejs.org/error-reference/#compiler-${e}`, i = new SyntaxError(String(r));
|
|
1252
1252
|
return i.code = e, i.loc = t, i;
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1254
|
+
const _i = {
|
|
1255
1255
|
// parse errors
|
|
1256
1256
|
0: "Illegal comment.",
|
|
1257
1257
|
1: "CDATA section is allowed only in XML context.",
|
|
@@ -1494,7 +1494,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1494
1494
|
let r = oe(s, n);
|
|
1495
1495
|
r.includes("&") && (r = F.decodeEntities(r, !1)), is({
|
|
1496
1496
|
type: 5,
|
|
1497
|
-
content:
|
|
1497
|
+
content: _t(r, !1, ee(s, n)),
|
|
1498
1498
|
loc: ee(e, t)
|
|
1499
1499
|
});
|
|
1500
1500
|
},
|
|
@@ -1524,7 +1524,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1524
1524
|
n = !0, r > 0 && de(24, Y[0].loc.start.offset);
|
|
1525
1525
|
for (let o = 0; o <= r; o++) {
|
|
1526
1526
|
const a = Y.shift();
|
|
1527
|
-
|
|
1527
|
+
Nt(a, t, o < r);
|
|
1528
1528
|
}
|
|
1529
1529
|
break;
|
|
1530
1530
|
}
|
|
@@ -1533,7 +1533,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1533
1533
|
},
|
|
1534
1534
|
onselfclosingtag(e) {
|
|
1535
1535
|
const t = le.tag;
|
|
1536
|
-
le.isSelfClosing = !0, Ys(e), Y[0] && Y[0].tag === t &&
|
|
1536
|
+
le.isSelfClosing = !0, Ys(e), Y[0] && Y[0].tag === t && Nt(Y.shift(), e);
|
|
1537
1537
|
},
|
|
1538
1538
|
onattribname(e, t) {
|
|
1539
1539
|
P = {
|
|
@@ -1576,7 +1576,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1576
1576
|
P.name += s, qe(P.nameLoc, t);
|
|
1577
1577
|
else {
|
|
1578
1578
|
const n = s[0] !== "[";
|
|
1579
|
-
P.arg =
|
|
1579
|
+
P.arg = _t(
|
|
1580
1580
|
n ? s : s.slice(1, -1),
|
|
1581
1581
|
n,
|
|
1582
1582
|
ee(e, t),
|
|
@@ -1622,7 +1622,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1622
1622
|
}, J.inSFCRoot && le.tag === "template" && P.name === "lang" && fe && fe !== "html" && J.enterRCDATA(At("</template"), 0);
|
|
1623
1623
|
else {
|
|
1624
1624
|
let s = 0;
|
|
1625
|
-
P.exp =
|
|
1625
|
+
P.exp = _t(
|
|
1626
1626
|
fe,
|
|
1627
1627
|
!1,
|
|
1628
1628
|
ee(Oe, He),
|
|
@@ -1688,7 +1688,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1688
1688
|
break;
|
|
1689
1689
|
}
|
|
1690
1690
|
for (let t = 0; t < Y.length; t++)
|
|
1691
|
-
|
|
1691
|
+
Nt(Y[t], e - 1), de(24, Y[t].loc.start.offset);
|
|
1692
1692
|
},
|
|
1693
1693
|
oncdata(e, t) {
|
|
1694
1694
|
Y[0].ns !== 0 ? Et(oe(e, t), e, t) : de(1, e - 9);
|
|
@@ -1705,7 +1705,7 @@ function ji(e) {
|
|
|
1705
1705
|
if (!n) return;
|
|
1706
1706
|
const [, r, i] = n, o = (u, f, h = !1) => {
|
|
1707
1707
|
const x = t.start.offset + f, y = x + u.length;
|
|
1708
|
-
return
|
|
1708
|
+
return _t(
|
|
1709
1709
|
u,
|
|
1710
1710
|
!1,
|
|
1711
1711
|
ee(x, y),
|
|
@@ -1746,7 +1746,7 @@ function oe(e, t) {
|
|
|
1746
1746
|
function Ys(e) {
|
|
1747
1747
|
J.inSFCRoot && (le.innerLoc = ee(e + 1, e + 1)), is(le);
|
|
1748
1748
|
const { tag: t, ns: s } = le;
|
|
1749
|
-
s === 0 && F.isPreTag(t) && $s++, F.isVoidTag(t) ?
|
|
1749
|
+
s === 0 && F.isPreTag(t) && $s++, F.isVoidTag(t) ? Nt(le, e) : (Y.unshift(le), (s === 1 || s === 2) && (J.inXML = !0)), le = null;
|
|
1750
1750
|
}
|
|
1751
1751
|
function Et(e, t, s) {
|
|
1752
1752
|
{
|
|
@@ -1760,7 +1760,7 @@ function Et(e, t, s) {
|
|
|
1760
1760
|
loc: ee(t, s)
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Nt(e, t, s = !1) {
|
|
1764
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
|
|
@@ -1947,7 +1947,7 @@ function Yi(e) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
return t;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function _t(e, t = !1, s, n = 0, r = 0) {
|
|
1951
1951
|
return A(e, t, s, n);
|
|
1952
1952
|
}
|
|
1953
1953
|
function de(e, t, s) {
|
|
@@ -2004,8 +2004,8 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2004
2004
|
if (x.type === 13) {
|
|
2005
2005
|
const y = x.patchFlag;
|
|
2006
2006
|
if ((y === void 0 || y === 512 || y === 1) && jn(f, s) >= 2) {
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2007
|
+
const O = Un(f);
|
|
2008
|
+
O && (x.props = s.hoist(O));
|
|
2009
2009
|
}
|
|
2010
2010
|
x.dynamicProps && (x.dynamicProps = s.hoist(x.dynamicProps));
|
|
2011
2011
|
}
|
|
@@ -2149,7 +2149,7 @@ function ve(e, t) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
const eo = /* @__PURE__ */ new Set([
|
|
2152
|
-
|
|
2152
|
+
_s,
|
|
2153
2153
|
Cs,
|
|
2154
2154
|
ut,
|
|
2155
2155
|
gt
|
|
@@ -2203,13 +2203,13 @@ function to(e, {
|
|
|
2203
2203
|
slotted: h = !0,
|
|
2204
2204
|
ssr: x = !1,
|
|
2205
2205
|
inSSR: y = !1,
|
|
2206
|
-
ssrCssVars:
|
|
2207
|
-
bindingMetadata:
|
|
2206
|
+
ssrCssVars: O = "",
|
|
2207
|
+
bindingMetadata: N = Xr,
|
|
2208
2208
|
inline: R = !1,
|
|
2209
2209
|
isTS: w = !1,
|
|
2210
2210
|
onError: k = As,
|
|
2211
2211
|
onWarn: C = In,
|
|
2212
|
-
compatConfig:
|
|
2212
|
+
compatConfig: T
|
|
2213
2213
|
}) {
|
|
2214
2214
|
const I = t.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/), S = {
|
|
2215
2215
|
// options
|
|
@@ -2229,13 +2229,13 @@ function to(e, {
|
|
|
2229
2229
|
slotted: h,
|
|
2230
2230
|
ssr: x,
|
|
2231
2231
|
inSSR: y,
|
|
2232
|
-
ssrCssVars:
|
|
2233
|
-
bindingMetadata:
|
|
2232
|
+
ssrCssVars: O,
|
|
2233
|
+
bindingMetadata: N,
|
|
2234
2234
|
inline: R,
|
|
2235
2235
|
isTS: w,
|
|
2236
2236
|
onError: k,
|
|
2237
2237
|
onWarn: C,
|
|
2238
|
-
compatConfig:
|
|
2238
|
+
compatConfig: T,
|
|
2239
2239
|
// state
|
|
2240
2240
|
root: e,
|
|
2241
2241
|
helpers: /* @__PURE__ */ new Map(),
|
|
@@ -2259,56 +2259,56 @@ function to(e, {
|
|
|
2259
2259
|
childIndex: 0,
|
|
2260
2260
|
inVOnce: !1,
|
|
2261
2261
|
// methods
|
|
2262
|
-
helper(
|
|
2263
|
-
const H = S.helpers.get(
|
|
2264
|
-
return S.helpers.set(
|
|
2262
|
+
helper(_) {
|
|
2263
|
+
const H = S.helpers.get(_) || 0;
|
|
2264
|
+
return S.helpers.set(_, H + 1), _;
|
|
2265
2265
|
},
|
|
2266
|
-
removeHelper(
|
|
2267
|
-
const H = S.helpers.get(
|
|
2266
|
+
removeHelper(_) {
|
|
2267
|
+
const H = S.helpers.get(_);
|
|
2268
2268
|
if (H) {
|
|
2269
2269
|
const B = H - 1;
|
|
2270
|
-
B ? S.helpers.set(
|
|
2270
|
+
B ? S.helpers.set(_, B) : S.helpers.delete(_);
|
|
2271
2271
|
}
|
|
2272
2272
|
},
|
|
2273
|
-
helperString(
|
|
2274
|
-
return `_${Ze[S.helper(
|
|
2273
|
+
helperString(_) {
|
|
2274
|
+
return `_${Ze[S.helper(_)]}`;
|
|
2275
2275
|
},
|
|
2276
|
-
replaceNode(
|
|
2276
|
+
replaceNode(_) {
|
|
2277
2277
|
if (process.env.NODE_ENV !== "production") {
|
|
2278
2278
|
if (!S.currentNode)
|
|
2279
2279
|
throw new Error("Node being replaced is already removed.");
|
|
2280
2280
|
if (!S.parent)
|
|
2281
2281
|
throw new Error("Cannot replace root node.");
|
|
2282
2282
|
}
|
|
2283
|
-
S.parent.children[S.childIndex] = S.currentNode =
|
|
2283
|
+
S.parent.children[S.childIndex] = S.currentNode = _;
|
|
2284
2284
|
},
|
|
2285
|
-
removeNode(
|
|
2285
|
+
removeNode(_) {
|
|
2286
2286
|
if (process.env.NODE_ENV !== "production" && !S.parent)
|
|
2287
2287
|
throw new Error("Cannot remove root node.");
|
|
2288
|
-
const H = S.parent.children, B =
|
|
2288
|
+
const H = S.parent.children, B = _ ? H.indexOf(_) : S.currentNode ? S.childIndex : -1;
|
|
2289
2289
|
if (process.env.NODE_ENV !== "production" && B < 0)
|
|
2290
2290
|
throw new Error("node being removed is not a child of current parent");
|
|
2291
|
-
!
|
|
2291
|
+
!_ || _ === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex > B && (S.childIndex--, S.onNodeRemoved()), S.parent.children.splice(B, 1);
|
|
2292
2292
|
},
|
|
2293
2293
|
onNodeRemoved: Gt,
|
|
2294
|
-
addIdentifiers(
|
|
2294
|
+
addIdentifiers(_) {
|
|
2295
2295
|
},
|
|
2296
|
-
removeIdentifiers(
|
|
2296
|
+
removeIdentifiers(_) {
|
|
2297
2297
|
},
|
|
2298
|
-
hoist(
|
|
2299
|
-
re(
|
|
2298
|
+
hoist(_) {
|
|
2299
|
+
re(_) && (_ = A(_)), S.hoists.push(_);
|
|
2300
2300
|
const H = A(
|
|
2301
2301
|
`_hoisted_${S.hoists.length}`,
|
|
2302
2302
|
!1,
|
|
2303
|
-
|
|
2303
|
+
_.loc,
|
|
2304
2304
|
2
|
|
2305
2305
|
);
|
|
2306
|
-
return H.hoisted =
|
|
2306
|
+
return H.hoisted = _, H;
|
|
2307
2307
|
},
|
|
2308
|
-
cache(
|
|
2308
|
+
cache(_, H = !1, B = !1) {
|
|
2309
2309
|
const $ = ki(
|
|
2310
2310
|
S.cached.length,
|
|
2311
|
-
|
|
2311
|
+
_,
|
|
2312
2312
|
H,
|
|
2313
2313
|
B
|
|
2314
2314
|
);
|
|
@@ -2449,7 +2449,7 @@ function io(e, {
|
|
|
2449
2449
|
helper(y) {
|
|
2450
2450
|
return `_${Ze[y]}`;
|
|
2451
2451
|
},
|
|
2452
|
-
push(y,
|
|
2452
|
+
push(y, O = -2, N) {
|
|
2453
2453
|
h.code += y;
|
|
2454
2454
|
},
|
|
2455
2455
|
indent() {
|
|
@@ -2486,8 +2486,8 @@ function oo(e, t = {}) {
|
|
|
2486
2486
|
ssr: m
|
|
2487
2487
|
} = s, u = Array.from(e.helpers), f = u.length > 0, h = !i && n !== "module";
|
|
2488
2488
|
ao(e, s);
|
|
2489
|
-
const y = m ? "ssrRender" : "render",
|
|
2490
|
-
if (r(`function ${y}(${
|
|
2489
|
+
const y = m ? "ssrRender" : "render", N = (m ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ");
|
|
2490
|
+
if (r(`function ${y}(${N}) {`), o(), h && (r("with (_ctx) {"), o(), f && (r(
|
|
2491
2491
|
`const { ${u.map(zn).join(", ")} } = _Vue
|
|
2492
2492
|
`,
|
|
2493
2493
|
-1
|
|
@@ -2530,7 +2530,7 @@ function ao(e, t) {
|
|
|
2530
2530
|
ys,
|
|
2531
2531
|
mt,
|
|
2532
2532
|
bs,
|
|
2533
|
-
|
|
2533
|
+
_n
|
|
2534
2534
|
].filter((f) => m.includes(f)).map(zn).join(", ");
|
|
2535
2535
|
r(
|
|
2536
2536
|
`const { ${u} } = _Vue
|
|
@@ -2727,8 +2727,8 @@ function mo(e, t) {
|
|
|
2727
2727
|
if (l < 0)
|
|
2728
2728
|
x = l + ` /* ${at[l]} */`;
|
|
2729
2729
|
else {
|
|
2730
|
-
const
|
|
2731
|
-
x = l + ` /* ${
|
|
2730
|
+
const O = Object.keys(at).map(Number).filter((N) => N > 0 && l & N).map((N) => at[N]).join(", ");
|
|
2731
|
+
x = l + ` /* ${O} */`;
|
|
2732
2732
|
}
|
|
2733
2733
|
else
|
|
2734
2734
|
x = String(l);
|
|
@@ -2811,7 +2811,7 @@ function Ke(e, t, s = !1, n = !1) {
|
|
|
2811
2811
|
);
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
|
-
const
|
|
2814
|
+
const No = (e, t) => {
|
|
2815
2815
|
if (e.type === 5)
|
|
2816
2816
|
e.content = Xt(
|
|
2817
2817
|
e.content,
|
|
@@ -2837,7 +2837,7 @@ const _o = (e, t) => {
|
|
|
2837
2837
|
function Xt(e, t, s = !1, n = !1, r = Object.create(t.identifiers)) {
|
|
2838
2838
|
return process.env.NODE_ENV !== "production" && Ke(e, t, s, n), e;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2840
|
+
const _o = Hn(
|
|
2841
2841
|
/^(if|else|else-if)$/,
|
|
2842
2842
|
(e, t, s) => Co(e, t, s, (n, r, i) => {
|
|
2843
2843
|
const o = s.parent.children;
|
|
@@ -3030,7 +3030,7 @@ const Io = (e, t, s) => {
|
|
|
3030
3030
|
(e, t, s) => {
|
|
3031
3031
|
const { helper: n, removeHelper: r } = s;
|
|
3032
3032
|
return Ao(e, t, s, (i) => {
|
|
3033
|
-
const o = se(n(
|
|
3033
|
+
const o = se(n(Ns), [
|
|
3034
3034
|
i.source
|
|
3035
3035
|
]), a = $t(e), l = pe(e, "memo"), c = ft(e, "key", !1, !0);
|
|
3036
3036
|
c && c.type === 7 && !c.exp && Wn(c);
|
|
@@ -3050,7 +3050,7 @@ const Io = (e, t, s) => {
|
|
|
3050
3050
|
e.loc
|
|
3051
3051
|
), () => {
|
|
3052
3052
|
let y;
|
|
3053
|
-
const { children:
|
|
3053
|
+
const { children: O } = i;
|
|
3054
3054
|
process.env.NODE_ENV !== "production" && a && e.children.some((w) => {
|
|
3055
3055
|
if (w.type === 1) {
|
|
3056
3056
|
const k = ft(w, "key");
|
|
@@ -3063,8 +3063,8 @@ const Io = (e, t, s) => {
|
|
|
3063
3063
|
), !0;
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
|
-
const
|
|
3067
|
-
if (R ? (y = R.codegenNode, a && f && Mt(y, f, s)) :
|
|
3066
|
+
const N = O.length !== 1 || O[0].type !== 1, R = Rt(e) ? e : a && e.children.length === 1 && Rt(e.children[0]) ? e.children[0] : null;
|
|
3067
|
+
if (R ? (y = R.codegenNode, a && f && Mt(y, f, s)) : N ? y = dt(
|
|
3068
3068
|
s,
|
|
3069
3069
|
n(ct),
|
|
3070
3070
|
f ? xe([f]) : void 0,
|
|
@@ -3075,7 +3075,7 @@ const Io = (e, t, s) => {
|
|
|
3075
3075
|
!0,
|
|
3076
3076
|
void 0,
|
|
3077
3077
|
!1
|
|
3078
|
-
) : (y =
|
|
3078
|
+
) : (y = O[0].codegenNode, a && f && Mt(y, f, s), y.isBlock !== !h && (y.isBlock ? (r(Je), r(
|
|
3079
3079
|
st(s.inSSR, y.isComponent)
|
|
3080
3080
|
)) : r(
|
|
3081
3081
|
tt(s.inSSR, y.isComponent)
|
|
@@ -3086,15 +3086,15 @@ const Io = (e, t, s) => {
|
|
|
3086
3086
|
])
|
|
3087
3087
|
);
|
|
3088
3088
|
w.body = wi([
|
|
3089
|
-
|
|
3090
|
-
|
|
3089
|
+
Ne(["const _memo = (", l.exp, ")"]),
|
|
3090
|
+
Ne([
|
|
3091
3091
|
"if (_cached",
|
|
3092
3092
|
...u ? [" && _cached.key === ", u] : [],
|
|
3093
3093
|
` && ${s.helperString(
|
|
3094
3094
|
On
|
|
3095
3095
|
)}(_cached, _memo)) return _cached`
|
|
3096
3096
|
]),
|
|
3097
|
-
|
|
3097
|
+
Ne(["const _item = ", y]),
|
|
3098
3098
|
A("_item.memo = _memo"),
|
|
3099
3099
|
A("return _item")
|
|
3100
3100
|
]), o.arguments.push(
|
|
@@ -3190,22 +3190,22 @@ function Mo(e, t, s = Ro) {
|
|
|
3190
3190
|
let a = t.scopes.vSlot > 0 || t.scopes.vFor > 0;
|
|
3191
3191
|
const l = pe(e, "slot", !0);
|
|
3192
3192
|
if (l) {
|
|
3193
|
-
const { arg:
|
|
3194
|
-
|
|
3193
|
+
const { arg: O, exp: N } = l;
|
|
3194
|
+
O && !he(O) && (a = !0), i.push(
|
|
3195
3195
|
Z(
|
|
3196
|
-
|
|
3197
|
-
s(
|
|
3196
|
+
O || A("default", !0),
|
|
3197
|
+
s(N, void 0, n, r)
|
|
3198
3198
|
)
|
|
3199
3199
|
);
|
|
3200
3200
|
}
|
|
3201
3201
|
let c = !1, m = !1;
|
|
3202
3202
|
const u = [], f = /* @__PURE__ */ new Set();
|
|
3203
3203
|
let h = 0;
|
|
3204
|
-
for (let
|
|
3205
|
-
const
|
|
3204
|
+
for (let O = 0; O < n.length; O++) {
|
|
3205
|
+
const N = n[O];
|
|
3206
3206
|
let R;
|
|
3207
|
-
if (!$t(
|
|
3208
|
-
|
|
3207
|
+
if (!$t(N) || !(R = pe(N, "slot", !0))) {
|
|
3208
|
+
N.type !== 3 && u.push(N);
|
|
3209
3209
|
continue;
|
|
3210
3210
|
}
|
|
3211
3211
|
if (l) {
|
|
@@ -3215,16 +3215,16 @@ function Mo(e, t, s = Ro) {
|
|
|
3215
3215
|
break;
|
|
3216
3216
|
}
|
|
3217
3217
|
c = !0;
|
|
3218
|
-
const { children: w, loc: k } =
|
|
3218
|
+
const { children: w, loc: k } = N, {
|
|
3219
3219
|
arg: C = A("default", !0),
|
|
3220
|
-
exp:
|
|
3220
|
+
exp: T,
|
|
3221
3221
|
loc: I
|
|
3222
3222
|
} = R;
|
|
3223
3223
|
let S;
|
|
3224
3224
|
he(C) ? S = C ? C.content : "default" : a = !0;
|
|
3225
|
-
const
|
|
3225
|
+
const _ = pe(N, "for"), H = s(T, _, w, k);
|
|
3226
3226
|
let B, $;
|
|
3227
|
-
if (B = pe(
|
|
3227
|
+
if (B = pe(N, "if"))
|
|
3228
3228
|
a = !0, o.push(
|
|
3229
3229
|
ss(
|
|
3230
3230
|
B.exp,
|
|
@@ -3233,12 +3233,12 @@ function Mo(e, t, s = Ro) {
|
|
|
3233
3233
|
)
|
|
3234
3234
|
);
|
|
3235
3235
|
else if ($ = pe(
|
|
3236
|
-
|
|
3236
|
+
N,
|
|
3237
3237
|
/^else(-if)?$/,
|
|
3238
3238
|
!0
|
|
3239
3239
|
/* allowEmpty */
|
|
3240
3240
|
)) {
|
|
3241
|
-
let z =
|
|
3241
|
+
let z = O, W;
|
|
3242
3242
|
for (; z-- && (W = n[z], !(W.type !== 3 && as(W))); )
|
|
3243
3243
|
;
|
|
3244
3244
|
if (W && $t(W) && pe(W, /^(else-)?if$/)) {
|
|
@@ -3258,11 +3258,11 @@ function Mo(e, t, s = Ro) {
|
|
|
3258
3258
|
t.onError(
|
|
3259
3259
|
K(30, $.loc)
|
|
3260
3260
|
);
|
|
3261
|
-
} else if (
|
|
3261
|
+
} else if (_) {
|
|
3262
3262
|
a = !0;
|
|
3263
|
-
const z =
|
|
3263
|
+
const z = _.forParseResult;
|
|
3264
3264
|
z ? (Gn(z, t), o.push(
|
|
3265
|
-
se(t.helper(
|
|
3265
|
+
se(t.helper(Ns), [
|
|
3266
3266
|
z.source,
|
|
3267
3267
|
et(
|
|
3268
3268
|
os(z),
|
|
@@ -3273,7 +3273,7 @@ function Mo(e, t, s = Ro) {
|
|
|
3273
3273
|
)) : t.onError(
|
|
3274
3274
|
K(
|
|
3275
3275
|
32,
|
|
3276
|
-
|
|
3276
|
+
_.loc
|
|
3277
3277
|
)
|
|
3278
3278
|
);
|
|
3279
3279
|
} else {
|
|
@@ -3293,21 +3293,21 @@ function Mo(e, t, s = Ro) {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
if (!l) {
|
|
3296
|
-
const
|
|
3297
|
-
const w = s(
|
|
3296
|
+
const O = (N, R) => {
|
|
3297
|
+
const w = s(N, void 0, R, r);
|
|
3298
3298
|
return t.compatConfig && (w.isNonScopedSlot = !0), Z("default", w);
|
|
3299
3299
|
};
|
|
3300
3300
|
c ? u.length && // #3766
|
|
3301
3301
|
// with whitespace: 'preserve', whitespaces between slots will end up in
|
|
3302
3302
|
// implicitDefaultChildren. Ignore if all implicit children are whitespaces.
|
|
3303
|
-
u.some((
|
|
3303
|
+
u.some((N) => as(N)) && (m ? t.onError(
|
|
3304
3304
|
K(
|
|
3305
3305
|
39,
|
|
3306
3306
|
u[0].loc
|
|
3307
3307
|
)
|
|
3308
3308
|
) : i.push(
|
|
3309
|
-
|
|
3310
|
-
)) : i.push(
|
|
3309
|
+
O(void 0, u)
|
|
3310
|
+
)) : i.push(O(void 0, n));
|
|
3311
3311
|
}
|
|
3312
3312
|
const x = a ? 2 : Tt(e.children) ? 3 : 1;
|
|
3313
3313
|
let y = xe(
|
|
@@ -3386,9 +3386,9 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3386
3386
|
a
|
|
3387
3387
|
);
|
|
3388
3388
|
l = y.props, m = y.patchFlag, f = y.dynamicPropNames;
|
|
3389
|
-
const
|
|
3390
|
-
h =
|
|
3391
|
-
|
|
3389
|
+
const O = y.directives;
|
|
3390
|
+
h = O && O.length ? We(
|
|
3391
|
+
O.map((N) => Bo(N, t))
|
|
3392
3392
|
) : void 0, y.shouldUseBlock && (x = !0);
|
|
3393
3393
|
}
|
|
3394
3394
|
if (e.children.length > 0)
|
|
@@ -3401,11 +3401,11 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3401
3401
|
)), i && // Teleport is not a real component and has dedicated runtime handling
|
|
3402
3402
|
o !== lt && // explained above.
|
|
3403
3403
|
o !== Ot) {
|
|
3404
|
-
const { slots:
|
|
3405
|
-
c =
|
|
3404
|
+
const { slots: O, hasDynamicSlots: N } = Mo(e, t);
|
|
3405
|
+
c = O, N && (m |= 1024);
|
|
3406
3406
|
} else if (e.children.length === 1 && o !== lt) {
|
|
3407
|
-
const
|
|
3408
|
-
R && ve(
|
|
3407
|
+
const O = e.children[0], N = O.type, R = N === 5 || N === 8;
|
|
3408
|
+
R && ve(O, t) === 0 && (m |= 1), R || N === 2 ? c = O : c = e.children;
|
|
3409
3409
|
} else
|
|
3410
3410
|
c = e.children;
|
|
3411
3411
|
f && f.length && (u = jo(f)), e.codegenNode = dt(
|
|
@@ -3449,8 +3449,8 @@ 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
3451
|
const m = [], u = [], f = l.length > 0;
|
|
3452
|
-
let h = !1, x = 0, y = !1,
|
|
3453
|
-
const C = [],
|
|
3452
|
+
let h = !1, x = 0, y = !1, O = !1, N = !1, R = !1, w = !1, k = !1;
|
|
3453
|
+
const C = [], T = (H) => {
|
|
3454
3454
|
c.length && (m.push(
|
|
3455
3455
|
xe(nn(c), a)
|
|
3456
3456
|
), c = []), H && m.push(H);
|
|
@@ -3470,7 +3470,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3470
3470
|
$ !== "onUpdate:modelValue" && // omit onVnodeXXX hooks
|
|
3471
3471
|
!Us($) && (R = !0), z && Us($) && (k = !0), z && B.type === 14 && (B = B.arguments[0]), B.type === 20 || (B.type === 4 || B.type === 8) && ve(B, t) > 0)
|
|
3472
3472
|
return;
|
|
3473
|
-
$ === "ref" ? y = !0 : $ === "class" ?
|
|
3473
|
+
$ === "ref" ? y = !0 : $ === "class" ? O = !0 : $ === "style" ? N = !0 : $ !== "key" && !C.includes($) && C.push($), n && ($ === "class" || $ === "style") && !C.includes($) && C.push($);
|
|
3474
3474
|
} else
|
|
3475
3475
|
w = !0;
|
|
3476
3476
|
};
|
|
@@ -3495,27 +3495,27 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3495
3495
|
)
|
|
3496
3496
|
);
|
|
3497
3497
|
} else {
|
|
3498
|
-
const { name: $, arg: z, exp: W, loc: G, modifiers: me } = B,
|
|
3498
|
+
const { name: $, arg: z, exp: W, loc: G, modifiers: me } = B, _e = $ === "bind", Be = $ === "on";
|
|
3499
3499
|
if ($ === "slot") {
|
|
3500
3500
|
n || t.onError(
|
|
3501
3501
|
K(40, G)
|
|
3502
3502
|
);
|
|
3503
3503
|
continue;
|
|
3504
3504
|
}
|
|
3505
|
-
if ($ === "once" || $ === "memo" || $ === "is" ||
|
|
3505
|
+
if ($ === "once" || $ === "memo" || $ === "is" || _e && Me(z, "is") && (ls(o) || Fe(
|
|
3506
3506
|
"COMPILER_IS_ON_ELEMENT",
|
|
3507
3507
|
t
|
|
3508
3508
|
)) || Be && i)
|
|
3509
3509
|
continue;
|
|
3510
3510
|
if (
|
|
3511
3511
|
// #938: elements with dynamic keys should be forced into blocks
|
|
3512
|
-
(
|
|
3512
|
+
(_e && Me(z, "key") || // inline before-update hooks need to force block so that it is invoked
|
|
3513
3513
|
// before children
|
|
3514
|
-
Be && f && Me(z, "vue:before-update")) && (h = !0),
|
|
3514
|
+
Be && f && Me(z, "vue:before-update")) && (h = !0), _e && Me(z, "ref") && I(), !z && (_e || Be)
|
|
3515
3515
|
) {
|
|
3516
3516
|
if (w = !0, W)
|
|
3517
|
-
if (
|
|
3518
|
-
if (
|
|
3517
|
+
if (_e) {
|
|
3518
|
+
if (T(), process.env.NODE_ENV !== "production" && m.some((Ee) => Ee.type === 15 ? Ee.properties.some(({ key: je }) => je.type !== 4 || !je.isStatic ? !0 : je.content !== "class" && je.content !== "style" && !Zt(je.content)) : !0) && nt(
|
|
3519
3519
|
"COMPILER_V_BIND_OBJECT_ORDER",
|
|
3520
3520
|
t,
|
|
3521
3521
|
G
|
|
@@ -3526,9 +3526,9 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3526
3526
|
m.unshift(W);
|
|
3527
3527
|
continue;
|
|
3528
3528
|
}
|
|
3529
|
-
I(),
|
|
3529
|
+
I(), T(), m.push(W);
|
|
3530
3530
|
} else
|
|
3531
|
-
|
|
3531
|
+
T({
|
|
3532
3532
|
type: 14,
|
|
3533
3533
|
loc: G,
|
|
3534
3534
|
callee: t.helper(Ts),
|
|
@@ -3537,46 +3537,46 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3537
3537
|
else
|
|
3538
3538
|
t.onError(
|
|
3539
3539
|
K(
|
|
3540
|
-
|
|
3540
|
+
_e ? 34 : 35,
|
|
3541
3541
|
G
|
|
3542
3542
|
)
|
|
3543
3543
|
);
|
|
3544
3544
|
continue;
|
|
3545
3545
|
}
|
|
3546
|
-
|
|
3546
|
+
_e && me.some((Q) => Q.content === "prop") && (x |= 32);
|
|
3547
3547
|
const rt = t.directiveTransforms[$];
|
|
3548
3548
|
if (rt) {
|
|
3549
3549
|
const { props: Q, needRuntime: Ee } = rt(B, e, t);
|
|
3550
|
-
!i && Q.forEach(S), Be && z && !he(z) ?
|
|
3550
|
+
!i && Q.forEach(S), Be && z && !he(z) ? T(xe(Q, a)) : c.push(...Q), Ee && (u.push(B), ps(Ee) && Jn.set(B, Ee));
|
|
3551
3551
|
} else Zr($) || (u.push(B), f && (h = !0));
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
|
-
let
|
|
3555
|
-
if (m.length ? (
|
|
3554
|
+
let _;
|
|
3555
|
+
if (m.length ? (T(), m.length > 1 ? _ = se(
|
|
3556
3556
|
t.helper(It),
|
|
3557
3557
|
m,
|
|
3558
3558
|
a
|
|
3559
|
-
) :
|
|
3559
|
+
) : _ = m[0]) : c.length && (_ = xe(
|
|
3560
3560
|
nn(c),
|
|
3561
3561
|
a
|
|
3562
|
-
)), w ? x |= 16 : (
|
|
3563
|
-
switch (
|
|
3562
|
+
)), w ? x |= 16 : (O && !n && (x |= 2), N && !n && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || k || u.length > 0) && (x |= 512), !t.inSSR && _)
|
|
3563
|
+
switch (_.type) {
|
|
3564
3564
|
case 15:
|
|
3565
3565
|
let H = -1, B = -1, $ = !1;
|
|
3566
|
-
for (let G = 0; G <
|
|
3567
|
-
const me =
|
|
3566
|
+
for (let G = 0; G < _.properties.length; G++) {
|
|
3567
|
+
const me = _.properties[G].key;
|
|
3568
3568
|
he(me) ? me.content === "class" ? H = G : me.content === "style" && (B = G) : me.isHandlerKey || ($ = !0);
|
|
3569
3569
|
}
|
|
3570
|
-
const z =
|
|
3571
|
-
$ ?
|
|
3570
|
+
const z = _.properties[H], W = _.properties[B];
|
|
3571
|
+
$ ? _ = se(
|
|
3572
3572
|
t.helper(ut),
|
|
3573
|
-
[
|
|
3573
|
+
[_]
|
|
3574
3574
|
) : (z && !he(z.value) && (z.value = se(
|
|
3575
|
-
t.helper(
|
|
3575
|
+
t.helper(_s),
|
|
3576
3576
|
[z.value]
|
|
3577
3577
|
)), W && // the static style is compiled into an object,
|
|
3578
3578
|
// so use `hasStyleBinding` to ensure that it is a dynamic style binding
|
|
3579
|
-
(
|
|
3579
|
+
(N || W.value.type === 4 && W.value.content.trim()[0] === "[" || // v-bind:style and style both exist,
|
|
3580
3580
|
// v-bind:style with static literal object
|
|
3581
3581
|
W.value.type === 17) && (W.value = se(
|
|
3582
3582
|
t.helper(Cs),
|
|
@@ -3586,18 +3586,18 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3586
3586
|
case 14:
|
|
3587
3587
|
break;
|
|
3588
3588
|
default:
|
|
3589
|
-
|
|
3589
|
+
_ = se(
|
|
3590
3590
|
t.helper(ut),
|
|
3591
3591
|
[
|
|
3592
3592
|
se(t.helper(gt), [
|
|
3593
|
-
|
|
3593
|
+
_
|
|
3594
3594
|
])
|
|
3595
3595
|
]
|
|
3596
3596
|
);
|
|
3597
3597
|
break;
|
|
3598
3598
|
}
|
|
3599
3599
|
return {
|
|
3600
|
-
props:
|
|
3600
|
+
props: _,
|
|
3601
3601
|
directives: u,
|
|
3602
3602
|
patchFlag: x,
|
|
3603
3603
|
dynamicPropNames: C,
|
|
@@ -3723,7 +3723,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3723
3723
|
);
|
|
3724
3724
|
a = A(f, !0, o.loc);
|
|
3725
3725
|
} else
|
|
3726
|
-
a =
|
|
3726
|
+
a = Ne([
|
|
3727
3727
|
`${s.helperString(ts)}(`,
|
|
3728
3728
|
o,
|
|
3729
3729
|
")"
|
|
@@ -3740,7 +3740,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3740
3740
|
s,
|
|
3741
3741
|
!1,
|
|
3742
3742
|
h
|
|
3743
|
-
), (f || c && u) && (l =
|
|
3743
|
+
), (f || c && u) && (l = Ne([
|
|
3744
3744
|
`${f ? "$event" : "(...args)"} => ${h ? "{" : "("}`,
|
|
3745
3745
|
l,
|
|
3746
3746
|
h ? "}" : ")"
|
|
@@ -3767,7 +3767,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3767
3767
|
for (let a = i + 1; a < s.length; a++) {
|
|
3768
3768
|
const l = s[a];
|
|
3769
3769
|
if (Jt(l))
|
|
3770
|
-
n || (n = s[i] =
|
|
3770
|
+
n || (n = s[i] = Ne(
|
|
3771
3771
|
[o],
|
|
3772
3772
|
o.loc
|
|
3773
3773
|
)), n.children.push(" + ", l), s.splice(a, 1), a--;
|
|
@@ -3832,10 +3832,10 @@ const Xn = (e, t, s, n) => {
|
|
|
3832
3832
|
return s.onError(
|
|
3833
3833
|
K(42, n.loc)
|
|
3834
3834
|
), wt();
|
|
3835
|
-
const l = r || A("modelValue", !0), c = r ? he(r) ? `onUpdate:${Pe(r.content)}` :
|
|
3835
|
+
const l = r || A("modelValue", !0), c = r ? he(r) ? `onUpdate:${Pe(r.content)}` : Ne(['"onUpdate:" + ', r]) : "onUpdate:modelValue";
|
|
3836
3836
|
let m;
|
|
3837
3837
|
const u = s.isTS ? "($event: any)" : "$event";
|
|
3838
|
-
m =
|
|
3838
|
+
m = Ne([
|
|
3839
3839
|
`${u} => ((`,
|
|
3840
3840
|
n,
|
|
3841
3841
|
") = $event)"
|
|
@@ -3847,7 +3847,7 @@ const Xn = (e, t, s, n) => {
|
|
|
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(", "), x = r ? he(r) ? `${r.content}Modifiers` :
|
|
3850
|
+
const h = e.modifiers.map((y) => y.content).map((y) => (Vs(y) ? y : JSON.stringify(y)) + ": true").join(", "), x = r ? he(r) ? `${r.content}Modifiers` : Ne([r, ' + "Modifiers"']) : "modelModifiers";
|
|
3851
3851
|
f.push(
|
|
3852
3852
|
Z(
|
|
3853
3853
|
x,
|
|
@@ -3893,7 +3893,7 @@ function on(e, t) {
|
|
|
3893
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
|
-
x === void 0 ? (m = h + 1, x = s.slice(0, h).trim()) :
|
|
3896
|
+
x === void 0 ? (m = h + 1, x = s.slice(0, h).trim()) : O();
|
|
3897
3897
|
else {
|
|
3898
3898
|
switch (u) {
|
|
3899
3899
|
case 34:
|
|
@@ -3933,14 +3933,14 @@ function on(e, t) {
|
|
|
3933
3933
|
break;
|
|
3934
3934
|
}
|
|
3935
3935
|
if (u === 47) {
|
|
3936
|
-
let
|
|
3937
|
-
for (;
|
|
3936
|
+
let N = h - 1, R;
|
|
3937
|
+
for (; N >= 0 && (R = s.charAt(N), R === " "); N--)
|
|
3938
3938
|
;
|
|
3939
3939
|
(!R || !Ko.test(R)) && (o = !0);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 &&
|
|
3943
|
-
function
|
|
3942
|
+
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 && O();
|
|
3943
|
+
function O() {
|
|
3944
3944
|
y.push(s.slice(m, h).trim()), m = h + 1;
|
|
3945
3945
|
}
|
|
3946
3946
|
if (y.length) {
|
|
@@ -3981,11 +3981,11 @@ function Yo(e) {
|
|
|
3981
3981
|
return [
|
|
3982
3982
|
[
|
|
3983
3983
|
qo,
|
|
3984
|
-
|
|
3984
|
+
_o,
|
|
3985
3985
|
Jo,
|
|
3986
3986
|
Do,
|
|
3987
3987
|
Wo,
|
|
3988
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
3988
|
+
...process.env.NODE_ENV !== "production" ? [No] : [],
|
|
3989
3989
|
Uo,
|
|
3990
3990
|
Lo,
|
|
3991
3991
|
$o,
|
|
@@ -4240,7 +4240,7 @@ const na = {
|
|
|
4240
4240
|
nonKeyModifiers: i,
|
|
4241
4241
|
eventOptionModifiers: o
|
|
4242
4242
|
};
|
|
4243
|
-
}, ln = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? A(t, !0) : e.type !== 4 ?
|
|
4243
|
+
}, ln = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? A(t, !0) : e.type !== 4 ? Ne([
|
|
4244
4244
|
"(",
|
|
4245
4245
|
e,
|
|
4246
4246
|
`) === "onClick" ? "${t}" : (`,
|
|
@@ -4260,7 +4260,7 @@ const na = {
|
|
|
4260
4260
|
JSON.stringify(a)
|
|
4261
4261
|
])), c.length) {
|
|
4262
4262
|
const m = c.map(ms).join("");
|
|
4263
|
-
i = he(i) ? A(`${i.content}${m}`, !0) :
|
|
4263
|
+
i = he(i) ? A(`${i.content}${m}`, !0) : Ne(["(", i, `) + "${m}"`]);
|
|
4264
4264
|
}
|
|
4265
4265
|
return {
|
|
4266
4266
|
props: [Z(i, o)]
|
|
@@ -4516,7 +4516,7 @@ function pn(e) {
|
|
|
4516
4516
|
props: { row: Object, value: null, data: Object, column: Object }
|
|
4517
4517
|
})), Qt[e];
|
|
4518
4518
|
}
|
|
4519
|
-
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" }, ka = { class: "max-w-sm mx-auto" }, wa = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, Sa = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" },
|
|
4519
|
+
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" }, ka = { class: "max-w-sm mx-auto" }, wa = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, Sa = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" }, Na = /* @__PURE__ */ ae({
|
|
4520
4520
|
__name: "nodata",
|
|
4521
4521
|
props: {
|
|
4522
4522
|
title: { default: "No data" },
|
|
@@ -4531,7 +4531,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4531
4531
|
])
|
|
4532
4532
|
]));
|
|
4533
4533
|
}
|
|
4534
|
-
}),
|
|
4534
|
+
}), _a = ["aria-checked", "data-state"], Ca = {
|
|
4535
4535
|
key: 0,
|
|
4536
4536
|
"data-state": "checked",
|
|
4537
4537
|
"data-slot": "checkbox-indicator",
|
|
@@ -4571,20 +4571,21 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4571
4571
|
accent: {},
|
|
4572
4572
|
editable: { type: Boolean },
|
|
4573
4573
|
color: {},
|
|
4574
|
+
classContent: {},
|
|
4574
4575
|
fetchOptions: { type: Function }
|
|
4575
4576
|
},
|
|
4576
4577
|
emits: ["edit", "update"],
|
|
4577
4578
|
setup(e, { emit: t }) {
|
|
4578
|
-
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (
|
|
4579
|
-
|
|
4579
|
+
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (T) => {
|
|
4580
|
+
T.detail.key === "locale" && (c.value = T.detail.newValue);
|
|
4580
4581
|
};
|
|
4581
|
-
De(() => s.value, (
|
|
4582
|
-
a.value =
|
|
4582
|
+
De(() => s.value, (T) => {
|
|
4583
|
+
a.value = T;
|
|
4583
4584
|
});
|
|
4584
4585
|
const u = q(() => {
|
|
4585
|
-
const
|
|
4586
|
-
if (
|
|
4587
|
-
switch (
|
|
4586
|
+
const T = s.column?.schema?.[s.column?.name];
|
|
4587
|
+
if (T?.type)
|
|
4588
|
+
switch (T.type) {
|
|
4588
4589
|
case "Text":
|
|
4589
4590
|
return "text";
|
|
4590
4591
|
case "Number":
|
|
@@ -4613,28 +4614,28 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4613
4614
|
function y() {
|
|
4614
4615
|
n("edit", s.row, s.column.name, a.value), n("update", s.row, s.column.name, a.value), r.value = !1;
|
|
4615
4616
|
}
|
|
4616
|
-
function
|
|
4617
|
+
function O() {
|
|
4617
4618
|
a.value = s.value, r.value = !1;
|
|
4618
4619
|
}
|
|
4619
|
-
function
|
|
4620
|
+
function N(T) {
|
|
4620
4621
|
if (!r.value) return;
|
|
4621
|
-
const I =
|
|
4622
|
+
const I = T.target;
|
|
4622
4623
|
h.value && !h.value.contains(I) && (r.value = !1);
|
|
4623
4624
|
}
|
|
4624
4625
|
Ge(() => {
|
|
4625
|
-
document.addEventListener("click",
|
|
4626
|
+
document.addEventListener("click", N), window.addEventListener("storage", m), c.value = localStorage.locale, document.addEventListener("close-all-popovers", () => {
|
|
4626
4627
|
r.value = !1;
|
|
4627
4628
|
});
|
|
4628
4629
|
}), vn(() => {
|
|
4629
|
-
document.removeEventListener("click",
|
|
4630
|
+
document.removeEventListener("click", N), window.removeEventListener("storage", m), document.removeEventListener("close-all-popovers", () => {
|
|
4630
4631
|
r.value = !1;
|
|
4631
4632
|
});
|
|
4632
4633
|
});
|
|
4633
4634
|
function R() {
|
|
4634
4635
|
s.editable && (a.value = !a.value, n("update", s.row, s.column.name, a.value));
|
|
4635
4636
|
}
|
|
4636
|
-
function w(
|
|
4637
|
-
return s.color ? s.color.startsWith("#") ?
|
|
4637
|
+
function w(T) {
|
|
4638
|
+
return s.color ? s.color.startsWith("#") ? T.replace("{c}", `[${s.color}]`) : T.replace("{c}", `${s.color}-500`) : T.replace("{c}", "cyan-500");
|
|
4638
4639
|
}
|
|
4639
4640
|
const k = q(() => ({
|
|
4640
4641
|
border: w("border-{c}"),
|
|
@@ -4647,16 +4648,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4647
4648
|
if (u.value === "select" && !(s.options && s.options.length > 0 || s.column?.schema?.[s.column?.name]?.options?.length > 0) && l.value.length === 0 && s.fetchOptions)
|
|
4648
4649
|
try {
|
|
4649
4650
|
l.value = await s.fetchOptions(s.column.name);
|
|
4650
|
-
} catch (
|
|
4651
|
-
console.error(`Не удалось загрузить options для ${s.column.name}`,
|
|
4651
|
+
} catch (T) {
|
|
4652
|
+
console.error(`Не удалось загрузить options для ${s.column.name}`, T);
|
|
4652
4653
|
}
|
|
4653
4654
|
}
|
|
4654
|
-
return (
|
|
4655
|
-
class: "relative group w-full max-w-[350px]",
|
|
4655
|
+
return (T, I) => (v(), E("div", {
|
|
4656
|
+
class: L(T.classContent ? T.classContent : "relative group w-full max-w-[350px]"),
|
|
4656
4657
|
ref_key: "cellRef",
|
|
4657
4658
|
ref: h
|
|
4658
4659
|
}, [
|
|
4659
|
-
u.value === "boolean" &&
|
|
4660
|
+
u.value === "boolean" && T.editable ? (v(), E("button", {
|
|
4660
4661
|
key: 0,
|
|
4661
4662
|
type: "button",
|
|
4662
4663
|
role: "checkbox",
|
|
@@ -4686,15 +4687,15 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4686
4687
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4687
4688
|
], -1)
|
|
4688
4689
|
]))) : te("", !0)
|
|
4689
|
-
], 10,
|
|
4690
|
+
], 10, _a)) : (v(), E(ne, { key: 1 }, [
|
|
4690
4691
|
d("div", {
|
|
4691
4692
|
class: "flex items-center justify-between cursor-pointer",
|
|
4692
4693
|
onClick: ot(x, ["stop"])
|
|
4693
4694
|
}, [
|
|
4694
4695
|
d("span", Ta, [
|
|
4695
|
-
Ie(
|
|
4696
|
+
Ie(T.$slots, "default")
|
|
4696
4697
|
]),
|
|
4697
|
-
|
|
4698
|
+
T.editable ? (v(), E("svg", {
|
|
4698
4699
|
key: 0,
|
|
4699
4700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4700
4701
|
fill: "none",
|
|
@@ -4715,12 +4716,12 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4715
4716
|
ref_key: "popoverRef",
|
|
4716
4717
|
ref: o,
|
|
4717
4718
|
class: L(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg", u.value === "select" ? "" : "w-[450px]"]),
|
|
4718
|
-
onKeydown: Kt(ot(
|
|
4719
|
+
onKeydown: Kt(ot(O, ["stop", "prevent"]), ["esc"])
|
|
4719
4720
|
}, [
|
|
4720
4721
|
u.value === "select" ? (v(), E("div", Ia, [
|
|
4721
4722
|
d("div", Da, [
|
|
4722
4723
|
d("span", Aa, [
|
|
4723
|
-
d("span", Va, " Редагувати " + D(
|
|
4724
|
+
d("span", Va, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1)
|
|
4724
4725
|
])
|
|
4725
4726
|
]),
|
|
4726
4727
|
d("div", $a, [
|
|
@@ -4749,9 +4750,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4749
4750
|
])
|
|
4750
4751
|
])
|
|
4751
4752
|
])) : (v(), E("div", Fa, [
|
|
4752
|
-
d("h3", Ba, " Редагувати " + D(
|
|
4753
|
+
d("h3", Ba, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4753
4754
|
d("div", ja, [
|
|
4754
|
-
d("label", Ua, D(
|
|
4755
|
+
d("label", Ua, D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4755
4756
|
u.value === "text" ? ke((v(), E("input", {
|
|
4756
4757
|
key: 0,
|
|
4757
4758
|
ref_key: "inputRef",
|
|
@@ -4810,7 +4811,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4810
4811
|
d("button", {
|
|
4811
4812
|
type: "button",
|
|
4812
4813
|
class: "px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
4813
|
-
onClick:
|
|
4814
|
+
onClick: O
|
|
4814
4815
|
}, " Скасувати "),
|
|
4815
4816
|
d("button", {
|
|
4816
4817
|
type: "button",
|
|
@@ -4821,7 +4822,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4821
4822
|
]))
|
|
4822
4823
|
], 42, Oa)) : te("", !0)
|
|
4823
4824
|
], 64))
|
|
4824
|
-
],
|
|
4825
|
+
], 2));
|
|
4825
4826
|
}
|
|
4826
4827
|
}), Ka = {
|
|
4827
4828
|
key: 0,
|
|
@@ -4854,6 +4855,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4854
4855
|
classTd: { default: "" },
|
|
4855
4856
|
classTh: { default: "" },
|
|
4856
4857
|
classThead: { default: "" },
|
|
4858
|
+
classContent: { default: "" },
|
|
4857
4859
|
classLink: { default: "" },
|
|
4858
4860
|
selectable: { type: Boolean, default: !1 },
|
|
4859
4861
|
selectedRows: { default: () => [] },
|
|
@@ -4906,11 +4908,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4906
4908
|
De(() => s.selectedRows, (p) => {
|
|
4907
4909
|
r.value = p || [];
|
|
4908
4910
|
});
|
|
4909
|
-
const y = (p) => r.value.some((V) => V === p),
|
|
4911
|
+
const y = (p) => r.value.some((V) => V === p), O = (p) => {
|
|
4910
4912
|
const V = r.value.findIndex((b) => b === p);
|
|
4911
4913
|
V > -1 ? r.value.splice(V, 1) : r.value.push(p), n("update:selectedRows", [...r.value]);
|
|
4912
|
-
},
|
|
4913
|
-
|
|
4914
|
+
}, N = q(() => x.value.length > 0 && r.value.length === x.value.length), R = q(() => r.value.length > 0 && r.value.length < x.value.length), w = () => {
|
|
4915
|
+
N.value ? r.value = [] : r.value = [...x.value], n("update:selectedRows", [...r.value]);
|
|
4914
4916
|
}, k = (p, V) => {
|
|
4915
4917
|
if (!s.sortable) return;
|
|
4916
4918
|
if (V?.ctrlKey || V?.metaKey) {
|
|
@@ -4932,7 +4934,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4932
4934
|
asc: g.direction === "asc"
|
|
4933
4935
|
}));
|
|
4934
4936
|
n("sort", j), s.api && Ee();
|
|
4935
|
-
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc",
|
|
4937
|
+
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc", T = (p) => {
|
|
4936
4938
|
const V = i.value.find((b) => b.field === p);
|
|
4937
4939
|
if (!V)
|
|
4938
4940
|
return "";
|
|
@@ -4948,7 +4950,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4948
4950
|
}
|
|
4949
4951
|
}, I = (p) => s.sortable && p.sortable !== !1, S = (p) => {
|
|
4950
4952
|
s.clickable && n("row-click", p);
|
|
4951
|
-
},
|
|
4953
|
+
}, _ = (p, V) => {
|
|
4952
4954
|
const b = V[p.name];
|
|
4953
4955
|
if (s.getCellData || p.getCellData) {
|
|
4954
4956
|
const j = p.getCellData || s.getCellData;
|
|
@@ -4965,7 +4967,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4965
4967
|
const g = `${p.name}${j}`;
|
|
4966
4968
|
return V[g] ? V[g] : null;
|
|
4967
4969
|
}).find((j) => j) || b;
|
|
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),
|
|
4970
|
+
}, H = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px]` : "" : "", B = M(s.page), $ = M(s.limit), z = M(s.total), W = M(1), G = M(10), me = M(0), _e = q(() => s.api ? W.value : B.value), Be = q(() => s.api ? G.value : $.value), rt = q(() => s.api ? me.value : z.value), Q = q(() => {
|
|
4969
4971
|
const { theme: p } = s;
|
|
4970
4972
|
return p === "dark" ? {
|
|
4971
4973
|
container: "dark",
|
|
@@ -5017,7 +5019,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5017
5019
|
l.value = !0, c.value = null;
|
|
5018
5020
|
try {
|
|
5019
5021
|
const p = new URL(s.api, window.location.origin);
|
|
5020
|
-
if (p.searchParams.set("page",
|
|
5022
|
+
if (p.searchParams.set("page", _e.value.toString()), p.searchParams.set("limit", Be.value.toString()), i.value.length > 0) {
|
|
5021
5023
|
const j = i.value.filter((g) => g.direction).map((g) => `${g.field}:${g.direction}`).join(",");
|
|
5022
5024
|
j && p.searchParams.set("sort", j);
|
|
5023
5025
|
}
|
|
@@ -5142,7 +5144,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5142
5144
|
}, [
|
|
5143
5145
|
d("input", {
|
|
5144
5146
|
type: "checkbox",
|
|
5145
|
-
checked:
|
|
5147
|
+
checked: N.value,
|
|
5146
5148
|
indeterminate: R.value,
|
|
5147
5149
|
onChange: w,
|
|
5148
5150
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
@@ -5169,7 +5171,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5169
5171
|
Ie(p.$slots, "sort", {
|
|
5170
5172
|
asc: C(b.name)
|
|
5171
5173
|
}, () => [
|
|
5172
|
-
be(D(
|
|
5174
|
+
be(D(T(b.name)), 1)
|
|
5173
5175
|
])
|
|
5174
5176
|
])) : te("", !0)
|
|
5175
5177
|
])
|
|
@@ -5203,7 +5205,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5203
5205
|
d("input", {
|
|
5204
5206
|
type: "checkbox",
|
|
5205
5207
|
checked: y(b),
|
|
5206
|
-
onChange: (g) =>
|
|
5208
|
+
onChange: (g) => O(b),
|
|
5207
5209
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5208
5210
|
}, null, 42, el)
|
|
5209
5211
|
], 2)) : te("", !0),
|
|
@@ -5218,6 +5220,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5218
5220
|
])
|
|
5219
5221
|
}, [
|
|
5220
5222
|
(v(), $e(qa, {
|
|
5223
|
+
"class-content": s.classContent,
|
|
5221
5224
|
key: b,
|
|
5222
5225
|
editable: g.edit,
|
|
5223
5226
|
row: b,
|
|
@@ -5236,19 +5239,19 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5236
5239
|
}) : X(u).number && g.format === "number" ? Ie(p.$slots, "number", {
|
|
5237
5240
|
key: 1,
|
|
5238
5241
|
row: b,
|
|
5239
|
-
value:
|
|
5242
|
+
value: _(g, b)
|
|
5240
5243
|
}) : X(u).badge && g.format === "badge" ? Ie(p.$slots, "badge", {
|
|
5241
5244
|
key: 2,
|
|
5242
5245
|
row: b,
|
|
5243
|
-
value:
|
|
5246
|
+
value: _(g, b)
|
|
5244
5247
|
}) : X(u).array && g.format === "array" ? Ie(p.$slots, "array", {
|
|
5245
5248
|
key: 3,
|
|
5246
5249
|
row: b,
|
|
5247
|
-
value:
|
|
5250
|
+
value: _(g, b)
|
|
5248
5251
|
}) : g.slotName && yt.value[g.name] ? (v(), $e(bt(yt.value[g.name]), {
|
|
5249
5252
|
key: 4,
|
|
5250
5253
|
data: b,
|
|
5251
|
-
value:
|
|
5254
|
+
value: _(g, b),
|
|
5252
5255
|
row: b,
|
|
5253
5256
|
column: g
|
|
5254
5257
|
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), E("a", {
|
|
@@ -5263,24 +5266,24 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5263
5266
|
data: b,
|
|
5264
5267
|
column: g
|
|
5265
5268
|
}, null, 8, ["row", "value", "data", "column"])) : (v(), E(ne, { key: 1 }, [
|
|
5266
|
-
be(D(
|
|
5269
|
+
be(D(_(g, b)), 1)
|
|
5267
5270
|
], 64))
|
|
5268
5271
|
], 10, tl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), $e(bt(X(pn)(g.slot)), {
|
|
5269
5272
|
key: 6,
|
|
5270
5273
|
row: b,
|
|
5271
|
-
value:
|
|
5274
|
+
value: _(g, b),
|
|
5272
5275
|
data: b,
|
|
5273
5276
|
column: g
|
|
5274
5277
|
}, null, 8, ["row", "value", "data", "column"])) : (v(), $e(bt(dr(g.format)), {
|
|
5275
5278
|
key: 7,
|
|
5276
|
-
value:
|
|
5279
|
+
value: _(g, b),
|
|
5277
5280
|
row: b,
|
|
5278
5281
|
column: g,
|
|
5279
5282
|
href: g.link
|
|
5280
5283
|
}, null, 8, ["value", "row", "column", "href"]))
|
|
5281
5284
|
]),
|
|
5282
5285
|
_: 2
|
|
5283
|
-
}, 1032, ["editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5286
|
+
}, 1032, ["class-content", "editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5284
5287
|
], 2))), 128)),
|
|
5285
5288
|
f.value ? (v(), E("td", sl, [
|
|
5286
5289
|
Ie(p.$slots, "action", { row: b })
|
|
@@ -5299,7 +5302,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5299
5302
|
d("td", {
|
|
5300
5303
|
colspan: Ps.value.length
|
|
5301
5304
|
}, [
|
|
5302
|
-
yr(
|
|
5305
|
+
yr(Na)
|
|
5303
5306
|
], 8, nl)
|
|
5304
5307
|
])
|
|
5305
5308
|
], 2)) : te("", !0)
|
|
@@ -5308,7 +5311,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5308
5311
|
])),
|
|
5309
5312
|
cr.value && !l.value && !s.loading && !c.value ? (v(), $e(kn, {
|
|
5310
5313
|
key: 3,
|
|
5311
|
-
page:
|
|
5314
|
+
page: _e.value,
|
|
5312
5315
|
limit: Be.value,
|
|
5313
5316
|
total: rt.value,
|
|
5314
5317
|
theme: s.theme,
|
|
@@ -5452,7 +5455,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5452
5455
|
}), xl = {
|
|
5453
5456
|
key: 0,
|
|
5454
5457
|
class: "vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"
|
|
5455
|
-
}, El = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12" }, kl = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, wl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Sl = { class: "sr-only" },
|
|
5458
|
+
}, El = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12" }, kl = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, wl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Sl = { class: "sr-only" }, Nl = { class: "ui-dialog__content p-4" }, _l = { class: "p-4" }, Cl = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tl = { class: "text-sm font-[600] text-gray-500" }, Ol = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Il = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Dl = {
|
|
5456
5459
|
key: 0,
|
|
5457
5460
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5458
5461
|
}, Al = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Vl = {
|
|
@@ -5505,7 +5508,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5505
5508
|
function y() {
|
|
5506
5509
|
i.value = [], l.value = "none";
|
|
5507
5510
|
}
|
|
5508
|
-
async function
|
|
5511
|
+
async function O() {
|
|
5509
5512
|
if (i.value.length === 0) return;
|
|
5510
5513
|
a.value = !0;
|
|
5511
5514
|
const w = new URLSearchParams({
|
|
@@ -5518,8 +5521,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5518
5521
|
method: "GET"
|
|
5519
5522
|
});
|
|
5520
5523
|
if (!k.ok) throw new Error("Export failed");
|
|
5521
|
-
const C = await k.blob(),
|
|
5522
|
-
I.href =
|
|
5524
|
+
const C = await k.blob(), T = URL.createObjectURL(C), I = document.createElement("a");
|
|
5525
|
+
I.href = T, I.download = `${n.table}.${o.value}`, document.body.appendChild(I), I.click(), I.remove(), URL.revokeObjectURL(T), f();
|
|
5523
5526
|
} catch (k) {
|
|
5524
5527
|
console.error(k);
|
|
5525
5528
|
const { $notify: C = console.log } = t?.appContext?.config?.globalProperties || {};
|
|
@@ -5528,13 +5531,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5528
5531
|
a.value = !1;
|
|
5529
5532
|
}
|
|
5530
5533
|
}
|
|
5531
|
-
const
|
|
5532
|
-
w.detail.key === "locale" && (
|
|
5534
|
+
const N = M("uk"), R = (w) => {
|
|
5535
|
+
w.detail.key === "locale" && (N.value = w.detail.newValue);
|
|
5533
5536
|
};
|
|
5534
5537
|
return us(() => {
|
|
5535
5538
|
window.removeEventListener("storage", R);
|
|
5536
5539
|
}), Ge(() => {
|
|
5537
|
-
window.addEventListener("storage", R),
|
|
5540
|
+
window.addEventListener("storage", R), N.value = localStorage.locale;
|
|
5538
5541
|
}), (w, k) => (v(), E(ne, null, [
|
|
5539
5542
|
d("button", {
|
|
5540
5543
|
onClick: u,
|
|
@@ -5571,8 +5574,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5571
5574
|
], -1))
|
|
5572
5575
|
])
|
|
5573
5576
|
]),
|
|
5574
|
-
d("div",
|
|
5575
|
-
d("div",
|
|
5577
|
+
d("div", Nl, [
|
|
5578
|
+
d("div", _l, [
|
|
5576
5579
|
d("div", Cl, [
|
|
5577
5580
|
d("h2", Tl, D(X(s)("table.chooseColumns")), 1),
|
|
5578
5581
|
d("div", Ol, [
|
|
@@ -5617,7 +5620,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5617
5620
|
class: "shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",
|
|
5618
5621
|
id: "radio-" + C.name,
|
|
5619
5622
|
value: C.name,
|
|
5620
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
5623
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => i.value = T)
|
|
5621
5624
|
}, null, 8, Fl), [
|
|
5622
5625
|
[xr, i.value]
|
|
5623
5626
|
]),
|
|
@@ -5640,7 +5643,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5640
5643
|
[En, i.value.includes(C.name)]
|
|
5641
5644
|
])
|
|
5642
5645
|
], 4),
|
|
5643
|
-
d("span", Ul, D(C[
|
|
5646
|
+
d("span", Ul, D(C[N.value] || C.header || C.ua || C.name), 1)
|
|
5644
5647
|
], 8, Bl)
|
|
5645
5648
|
])
|
|
5646
5649
|
])
|
|
@@ -5702,7 +5705,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5702
5705
|
}, D(X(s)("table.cancel")), 1),
|
|
5703
5706
|
d("button", {
|
|
5704
5707
|
type: "button",
|
|
5705
|
-
onClick:
|
|
5708
|
+
onClick: O,
|
|
5706
5709
|
disabled: i.value.length === 0 || a.value,
|
|
5707
5710
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"
|
|
5708
5711
|
}, D(X(s)("table.download")), 9, ec)
|