@opengis/table 0.0.31 → 0.0.32
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.map +1 -1
- package/dist/formats/BadgeFormat.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +160 -159
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as yr from "vue";
|
|
2
|
-
import { getCurrentInstance as bs, defineComponent as ie, useAttrs as xs, ref as $, computed as q, onUnmounted as Bt, onMounted as Ge, watch as Te, onBeforeUnmount as ks, createElementBlock as k, openBlock as v, Fragment as se, createElementVNode as d, createBlock as Ce, normalizeClass as L, unref as
|
|
2
|
+
import { getCurrentInstance as bs, defineComponent as ie, useAttrs as xs, ref as $, computed as q, onUnmounted as Bt, onMounted as Ge, watch as Te, onBeforeUnmount as ks, createElementBlock as k, openBlock as v, Fragment as se, createElementVNode as d, createBlock as Ce, normalizeClass as L, unref as Z, createStaticVNode as hn, Teleport as jt, createCommentVNode as Y, normalizeStyle as lt, toDisplayString as A, withDirectives as Ee, vModelText as _t, withModifiers as ot, renderList as Se, createTextVNode as be, nextTick as mn, renderSlot as Ae, withKeys as Jt, vModelSelect as br, useSlots as Es, provide as xr, withCtx as kr, resolveDynamicComponent as xt, createVNode as Er, inject as wr, vShow as ws, vModelCheckbox as Sr, vModelRadio as Yt } from "vue";
|
|
3
3
|
const Kn = {
|
|
4
4
|
en: {
|
|
5
5
|
choose: "Оберіть колонки для відображення",
|
|
@@ -95,7 +95,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
95
95
|
onClick: _,
|
|
96
96
|
ref_key: "buttonRef",
|
|
97
97
|
ref: u,
|
|
98
|
-
class: L([[
|
|
98
|
+
class: L([[Z(i).class], "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])
|
|
99
99
|
}, E[2] || (E[2] = [
|
|
100
100
|
hn('<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),
|
|
@@ -107,7 +107,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
107
107
|
class: "fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",
|
|
108
108
|
style: lt([{ position: "fixed" }, { top: `${f.value.top}px`, left: `${f.value.left}px` }])
|
|
109
109
|
}, [
|
|
110
|
-
d("div", Nr, A(
|
|
110
|
+
d("div", Nr, A(Z(n)("table.columns")), 1),
|
|
111
111
|
d("div", Cr, [
|
|
112
112
|
Ee(d("input", {
|
|
113
113
|
type: "text",
|
|
@@ -115,13 +115,13 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
115
115
|
ref: c,
|
|
116
116
|
"onUpdate:modelValue": E[0] || (E[0] = (C) => a.value = C),
|
|
117
117
|
class: "py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",
|
|
118
|
-
placeholder:
|
|
118
|
+
placeholder: Z(n)("table.search")
|
|
119
119
|
}, null, 8, Tr), [
|
|
120
120
|
[_t, a.value]
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
123
|
d("div", Or, [
|
|
124
|
-
d("span", Ir, A(
|
|
124
|
+
d("span", Ir, A(Z(n)("table.choose")), 1),
|
|
125
125
|
d("div", {
|
|
126
126
|
class: "space-y-1",
|
|
127
127
|
onClick: E[1] || (E[1] = ot(() => {
|
|
@@ -160,7 +160,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
160
160
|
], 8, Dr))), 128))
|
|
161
161
|
])
|
|
162
162
|
])
|
|
163
|
-
], 4)) :
|
|
163
|
+
], 4)) : Y("", !0)
|
|
164
164
|
]))
|
|
165
165
|
], 64));
|
|
166
166
|
}
|
|
@@ -238,17 +238,18 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
238
238
|
color: s(t.value.color, 0.8)
|
|
239
239
|
} : i;
|
|
240
240
|
});
|
|
241
|
-
return (i, o) => (v(), k("span", {
|
|
241
|
+
return (i, o) => i.value ? (v(), k("span", {
|
|
242
|
+
key: 0,
|
|
242
243
|
class: L(["badge", n.value]),
|
|
243
244
|
style: lt(r.value)
|
|
244
|
-
}, A(i.value?.text || i.value || "-"), 7));
|
|
245
|
+
}, A(i.value?.text || i.value || "-"), 7)) : Y("", !0);
|
|
245
246
|
}
|
|
246
247
|
}), Fr = (e, t) => {
|
|
247
248
|
const n = e.__vccOpts || e;
|
|
248
249
|
for (const [s, r] of t)
|
|
249
250
|
n[s] = r;
|
|
250
251
|
return n;
|
|
251
|
-
}, Br = /* @__PURE__ */ Fr(Pr, [["__scopeId", "data-v-
|
|
252
|
+
}, Br = /* @__PURE__ */ Fr(Pr, [["__scopeId", "data-v-59a2b734"]]), jr = { class: "flex flex-wrap gap-1" }, Ur = /* @__PURE__ */ ie({
|
|
252
253
|
name: "ArrayFormat",
|
|
253
254
|
__name: "ArrayFormat",
|
|
254
255
|
props: {
|
|
@@ -313,7 +314,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
313
314
|
}, [
|
|
314
315
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
315
316
|
], -1)
|
|
316
|
-
]))) :
|
|
317
|
+
]))) : Y("", !0),
|
|
317
318
|
n[1] || (n[1] = d("span", null, null, -1))
|
|
318
319
|
], 64));
|
|
319
320
|
}
|
|
@@ -436,7 +437,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
436
437
|
class: "w-full h-full"
|
|
437
438
|
}, null, 512)
|
|
438
439
|
])
|
|
439
|
-
])) :
|
|
440
|
+
])) : Y("", !0)
|
|
440
441
|
]))
|
|
441
442
|
]));
|
|
442
443
|
}
|
|
@@ -1595,8 +1596,8 @@ const Ki = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/, Ls = {
|
|
|
1595
1596
|
comments: process.env.NODE_ENV !== "production",
|
|
1596
1597
|
prefixIdentifiers: !1
|
|
1597
1598
|
};
|
|
1598
|
-
let F = Ls, ht = null, $e = "", le = null,
|
|
1599
|
-
const
|
|
1599
|
+
let F = Ls, ht = null, $e = "", le = null, z = null, fe = "", De = -1, ze = -1, Pn = 0, Me = !1, ln = null;
|
|
1600
|
+
const X = [], J = new Di(X, {
|
|
1600
1601
|
onerr: de,
|
|
1601
1602
|
ontext(e, t) {
|
|
1602
1603
|
Et(ae(e, t), e, t);
|
|
@@ -1624,7 +1625,7 @@ const Y = [], J = new Di(Y, {
|
|
|
1624
1625
|
le = {
|
|
1625
1626
|
type: 1,
|
|
1626
1627
|
tag: n,
|
|
1627
|
-
ns: F.getNamespace(n,
|
|
1628
|
+
ns: F.getNamespace(n, X[0], F.ns),
|
|
1628
1629
|
tagType: 0,
|
|
1629
1630
|
// will be refined on tag close
|
|
1630
1631
|
props: [],
|
|
@@ -1640,11 +1641,11 @@ const Y = [], J = new Di(Y, {
|
|
|
1640
1641
|
const n = ae(e, t);
|
|
1641
1642
|
if (!F.isVoidTag(n)) {
|
|
1642
1643
|
let s = !1;
|
|
1643
|
-
for (let r = 0; r <
|
|
1644
|
-
if (
|
|
1645
|
-
s = !0, r > 0 && de(24,
|
|
1644
|
+
for (let r = 0; r < X.length; r++)
|
|
1645
|
+
if (X[r].tag.toLowerCase() === n.toLowerCase()) {
|
|
1646
|
+
s = !0, r > 0 && de(24, X[0].loc.start.offset);
|
|
1646
1647
|
for (let o = 0; o <= r; o++) {
|
|
1647
|
-
const a =
|
|
1648
|
+
const a = X.shift();
|
|
1648
1649
|
Ct(a, t, o < r);
|
|
1649
1650
|
}
|
|
1650
1651
|
break;
|
|
@@ -1654,10 +1655,10 @@ const Y = [], J = new Di(Y, {
|
|
|
1654
1655
|
},
|
|
1655
1656
|
onselfclosingtag(e) {
|
|
1656
1657
|
const t = le.tag;
|
|
1657
|
-
le.isSelfClosing = !0, ts(e),
|
|
1658
|
+
le.isSelfClosing = !0, ts(e), X[0] && X[0].tag === t && Ct(X.shift(), e);
|
|
1658
1659
|
},
|
|
1659
1660
|
onattribname(e, t) {
|
|
1660
|
-
|
|
1661
|
+
z = {
|
|
1661
1662
|
type: 6,
|
|
1662
1663
|
name: ae(e, t),
|
|
1663
1664
|
nameLoc: te(e, t),
|
|
@@ -1668,14 +1669,14 @@ const Y = [], J = new Di(Y, {
|
|
|
1668
1669
|
ondirname(e, t) {
|
|
1669
1670
|
const n = ae(e, t), s = n === "." || n === ":" ? "bind" : n === "@" ? "on" : n === "#" ? "slot" : n.slice(2);
|
|
1670
1671
|
if (!Me && s === "" && de(26, e), Me || s === "")
|
|
1671
|
-
|
|
1672
|
+
z = {
|
|
1672
1673
|
type: 6,
|
|
1673
1674
|
name: n,
|
|
1674
1675
|
nameLoc: te(e, t),
|
|
1675
1676
|
value: void 0,
|
|
1676
1677
|
loc: te(e)
|
|
1677
1678
|
};
|
|
1678
|
-
else if (
|
|
1679
|
+
else if (z = {
|
|
1679
1680
|
type: 7,
|
|
1680
1681
|
name: s,
|
|
1681
1682
|
rawName: n,
|
|
@@ -1694,10 +1695,10 @@ const Y = [], J = new Di(Y, {
|
|
|
1694
1695
|
if (e === t) return;
|
|
1695
1696
|
const n = ae(e, t);
|
|
1696
1697
|
if (Me)
|
|
1697
|
-
|
|
1698
|
+
z.name += n, qe(z.nameLoc, t);
|
|
1698
1699
|
else {
|
|
1699
1700
|
const s = n[0] !== "[";
|
|
1700
|
-
|
|
1701
|
+
z.arg = Tt(
|
|
1701
1702
|
s ? n : n.slice(1, -1),
|
|
1702
1703
|
s,
|
|
1703
1704
|
te(e, t),
|
|
@@ -1708,13 +1709,13 @@ const Y = [], J = new Di(Y, {
|
|
|
1708
1709
|
ondirmodifier(e, t) {
|
|
1709
1710
|
const n = ae(e, t);
|
|
1710
1711
|
if (Me)
|
|
1711
|
-
|
|
1712
|
-
else if (
|
|
1713
|
-
const s =
|
|
1712
|
+
z.name += "." + n, qe(z.nameLoc, t);
|
|
1713
|
+
else if (z.name === "slot") {
|
|
1714
|
+
const s = z.arg;
|
|
1714
1715
|
s && (s.content += "." + n, qe(s.loc, t));
|
|
1715
1716
|
} else {
|
|
1716
1717
|
const s = V(n, !0, te(e, t));
|
|
1717
|
-
|
|
1718
|
+
z.modifiers.push(s);
|
|
1718
1719
|
}
|
|
1719
1720
|
},
|
|
1720
1721
|
onattribdata(e, t) {
|
|
@@ -1724,43 +1725,43 @@ const Y = [], J = new Di(Y, {
|
|
|
1724
1725
|
fe += e, De < 0 && (De = t), ze = n;
|
|
1725
1726
|
},
|
|
1726
1727
|
onattribnameend(e) {
|
|
1727
|
-
const t =
|
|
1728
|
-
|
|
1728
|
+
const t = z.loc.start.offset, n = ae(t, e);
|
|
1729
|
+
z.type === 7 && (z.rawName = n), le.props.some(
|
|
1729
1730
|
(s) => (s.type === 7 ? s.rawName : s.name) === n
|
|
1730
1731
|
) && de(2, t);
|
|
1731
1732
|
},
|
|
1732
1733
|
onattribend(e, t) {
|
|
1733
|
-
if (le &&
|
|
1734
|
-
if (qe(
|
|
1734
|
+
if (le && z) {
|
|
1735
|
+
if (qe(z.loc, t), e !== 0)
|
|
1735
1736
|
if (fe.includes("&") && (fe = F.decodeEntities(
|
|
1736
1737
|
fe,
|
|
1737
1738
|
!0
|
|
1738
|
-
)),
|
|
1739
|
-
|
|
1739
|
+
)), z.type === 6)
|
|
1740
|
+
z.name === "class" && (fe = Bs(fe).trim()), e === 1 && !fe && de(13, t), z.value = {
|
|
1740
1741
|
type: 2,
|
|
1741
1742
|
content: fe,
|
|
1742
1743
|
loc: e === 1 ? te(De, ze) : te(De - 1, ze + 1)
|
|
1743
|
-
}, J.inSFCRoot && le.tag === "template" &&
|
|
1744
|
+
}, J.inSFCRoot && le.tag === "template" && z.name === "lang" && fe && fe !== "html" && J.enterRCDATA(Vt("</template"), 0);
|
|
1744
1745
|
else {
|
|
1745
1746
|
let n = 0;
|
|
1746
|
-
|
|
1747
|
+
z.exp = Tt(
|
|
1747
1748
|
fe,
|
|
1748
1749
|
!1,
|
|
1749
1750
|
te(De, ze),
|
|
1750
1751
|
0,
|
|
1751
1752
|
n
|
|
1752
|
-
),
|
|
1753
|
+
), z.name === "for" && (z.forParseResult = Gi(z.exp));
|
|
1753
1754
|
let s = -1;
|
|
1754
|
-
|
|
1755
|
+
z.name === "bind" && (s = z.modifiers.findIndex(
|
|
1755
1756
|
(r) => r.content === "sync"
|
|
1756
1757
|
)) > -1 && st(
|
|
1757
1758
|
"COMPILER_V_BIND_SYNC",
|
|
1758
1759
|
F,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
) && (
|
|
1760
|
+
z.loc,
|
|
1761
|
+
z.arg.loc.source
|
|
1762
|
+
) && (z.name = "model", z.modifiers.splice(s, 1));
|
|
1762
1763
|
}
|
|
1763
|
-
(
|
|
1764
|
+
(z.type !== 7 || z.name !== "pre") && le.props.push(z);
|
|
1764
1765
|
}
|
|
1765
1766
|
fe = "", De = ze = -1;
|
|
1766
1767
|
},
|
|
@@ -1808,14 +1809,14 @@ const Y = [], J = new Di(Y, {
|
|
|
1808
1809
|
de(9, e);
|
|
1809
1810
|
break;
|
|
1810
1811
|
}
|
|
1811
|
-
for (let t = 0; t <
|
|
1812
|
-
Ct(
|
|
1812
|
+
for (let t = 0; t < X.length; t++)
|
|
1813
|
+
Ct(X[t], e - 1), de(24, X[t].loc.start.offset);
|
|
1813
1814
|
},
|
|
1814
1815
|
oncdata(e, t) {
|
|
1815
|
-
|
|
1816
|
+
X[0].ns !== 0 ? Et(ae(e, t), e, t) : de(1, e - 9);
|
|
1816
1817
|
},
|
|
1817
1818
|
onprocessinginstruction(e) {
|
|
1818
|
-
(
|
|
1819
|
+
(X[0] ? X[0].ns : F.ns) === 0 && de(
|
|
1819
1820
|
21,
|
|
1820
1821
|
e - 1
|
|
1821
1822
|
);
|
|
@@ -1867,14 +1868,14 @@ function ae(e, t) {
|
|
|
1867
1868
|
function ts(e) {
|
|
1868
1869
|
J.inSFCRoot && (le.innerLoc = te(e + 1, e + 1)), cn(le);
|
|
1869
1870
|
const { tag: t, ns: n } = le;
|
|
1870
|
-
n === 0 && F.isPreTag(t) && Pn++, F.isVoidTag(t) ? Ct(le, e) : (
|
|
1871
|
+
n === 0 && F.isPreTag(t) && Pn++, F.isVoidTag(t) ? Ct(le, e) : (X.unshift(le), (n === 1 || n === 2) && (J.inXML = !0)), le = null;
|
|
1871
1872
|
}
|
|
1872
1873
|
function Et(e, t, n) {
|
|
1873
1874
|
{
|
|
1874
|
-
const i =
|
|
1875
|
+
const i = X[0] && X[0].tag;
|
|
1875
1876
|
i !== "script" && i !== "style" && e.includes("&") && (e = F.decodeEntities(e, !1));
|
|
1876
1877
|
}
|
|
1877
|
-
const s =
|
|
1878
|
+
const s = X[0] || ht, r = s.children[s.children.length - 1];
|
|
1878
1879
|
r && r.type === 2 ? (r.content += e, qe(r.loc, n)) : s.children.push({
|
|
1879
1880
|
type: 2,
|
|
1880
1881
|
content: e,
|
|
@@ -1891,7 +1892,7 @@ function Ct(e, t, n = !1) {
|
|
|
1891
1892
|
const o = i[0];
|
|
1892
1893
|
o && o.type === 2 && (o.content = o.content.replace(/^\r?\n/, ""));
|
|
1893
1894
|
}
|
|
1894
|
-
r === 0 && F.isPreTag(s) && Pn--, ln === e && (Me = J.inVPre = !1, ln = null), J.inXML && (
|
|
1895
|
+
r === 0 && F.isPreTag(s) && Pn--, ln === e && (Me = J.inVPre = !1, ln = null), J.inXML && (X[0] ? X[0].ns : F.ns) === 0 && (J.inXML = !1);
|
|
1895
1896
|
{
|
|
1896
1897
|
const o = e.props;
|
|
1897
1898
|
if (process.env.NODE_ENV !== "production" && Fe(
|
|
@@ -1920,7 +1921,7 @@ function Ct(e, t, n = !1) {
|
|
|
1920
1921
|
F,
|
|
1921
1922
|
e.loc
|
|
1922
1923
|
);
|
|
1923
|
-
const l =
|
|
1924
|
+
const l = X[0] || ht, u = l.children.indexOf(e);
|
|
1924
1925
|
l.children.splice(u, 1, ...e.children);
|
|
1925
1926
|
}
|
|
1926
1927
|
const a = o.find(
|
|
@@ -2030,7 +2031,7 @@ function Bs(e) {
|
|
|
2030
2031
|
return t;
|
|
2031
2032
|
}
|
|
2032
2033
|
function cn(e) {
|
|
2033
|
-
(
|
|
2034
|
+
(X[0] || ht).children.push(e);
|
|
2034
2035
|
}
|
|
2035
2036
|
function te(e, t) {
|
|
2036
2037
|
return {
|
|
@@ -2077,7 +2078,7 @@ function de(e, t, n) {
|
|
|
2077
2078
|
);
|
|
2078
2079
|
}
|
|
2079
2080
|
function ro() {
|
|
2080
|
-
J.reset(), le = null,
|
|
2081
|
+
J.reset(), le = null, z = null, fe = "", De = -1, ze = -1, X.length = 0;
|
|
2081
2082
|
}
|
|
2082
2083
|
function io(e, t) {
|
|
2083
2084
|
if (ro(), $e = e, F = Le({}, Ls), t) {
|
|
@@ -2379,14 +2380,14 @@ function lo(e, {
|
|
|
2379
2380
|
inVOnce: !1,
|
|
2380
2381
|
// methods
|
|
2381
2382
|
helper(N) {
|
|
2382
|
-
const
|
|
2383
|
-
return S.helpers.set(N,
|
|
2383
|
+
const B = S.helpers.get(N) || 0;
|
|
2384
|
+
return S.helpers.set(N, B + 1), N;
|
|
2384
2385
|
},
|
|
2385
2386
|
removeHelper(N) {
|
|
2386
|
-
const
|
|
2387
|
-
if (
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2387
|
+
const B = S.helpers.get(N);
|
|
2388
|
+
if (B) {
|
|
2389
|
+
const j = B - 1;
|
|
2390
|
+
j ? S.helpers.set(N, j) : S.helpers.delete(N);
|
|
2390
2391
|
}
|
|
2391
2392
|
},
|
|
2392
2393
|
helperString(N) {
|
|
@@ -2404,10 +2405,10 @@ function lo(e, {
|
|
|
2404
2405
|
removeNode(N) {
|
|
2405
2406
|
if (process.env.NODE_ENV !== "production" && !S.parent)
|
|
2406
2407
|
throw new Error("Cannot remove root node.");
|
|
2407
|
-
const
|
|
2408
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2408
|
+
const B = S.parent.children, j = N ? B.indexOf(N) : S.currentNode ? S.childIndex : -1;
|
|
2409
|
+
if (process.env.NODE_ENV !== "production" && j < 0)
|
|
2409
2410
|
throw new Error("node being removed is not a child of current parent");
|
|
2410
|
-
!N || N === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex >
|
|
2411
|
+
!N || N === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex > j && (S.childIndex--, S.onNodeRemoved()), S.parent.children.splice(j, 1);
|
|
2411
2412
|
},
|
|
2412
2413
|
onNodeRemoved: Xt,
|
|
2413
2414
|
addIdentifiers(N) {
|
|
@@ -2416,20 +2417,20 @@ function lo(e, {
|
|
|
2416
2417
|
},
|
|
2417
2418
|
hoist(N) {
|
|
2418
2419
|
re(N) && (N = V(N)), S.hoists.push(N);
|
|
2419
|
-
const
|
|
2420
|
+
const B = V(
|
|
2420
2421
|
`_hoisted_${S.hoists.length}`,
|
|
2421
2422
|
!1,
|
|
2422
2423
|
N.loc,
|
|
2423
2424
|
2
|
|
2424
2425
|
);
|
|
2425
|
-
return
|
|
2426
|
+
return B.hoisted = N, B;
|
|
2426
2427
|
},
|
|
2427
|
-
cache(N,
|
|
2428
|
+
cache(N, B = !1, j = !1) {
|
|
2428
2429
|
const M = Oi(
|
|
2429
2430
|
S.cached.length,
|
|
2430
2431
|
N,
|
|
2431
|
-
|
|
2432
|
-
|
|
2432
|
+
B,
|
|
2433
|
+
j
|
|
2433
2434
|
);
|
|
2434
2435
|
return S.cached.push(M), M;
|
|
2435
2436
|
}
|
|
@@ -3341,13 +3342,13 @@ function zo(e, t, n = Uo) {
|
|
|
3341
3342
|
} = R;
|
|
3342
3343
|
let S;
|
|
3343
3344
|
he(C) ? S = C ? C.content : "default" : a = !0;
|
|
3344
|
-
const N = pe(_, "for"),
|
|
3345
|
-
let
|
|
3346
|
-
if (
|
|
3345
|
+
const N = pe(_, "for"), B = n(T, N, w, E);
|
|
3346
|
+
let j, M;
|
|
3347
|
+
if (j = pe(_, "if"))
|
|
3347
3348
|
a = !0, o.push(
|
|
3348
3349
|
on(
|
|
3349
|
-
|
|
3350
|
-
wt(C,
|
|
3350
|
+
j.exp,
|
|
3351
|
+
wt(C, B, h++),
|
|
3351
3352
|
as
|
|
3352
3353
|
)
|
|
3353
3354
|
);
|
|
@@ -3368,11 +3369,11 @@ function zo(e, t, n = Uo) {
|
|
|
3368
3369
|
M.exp,
|
|
3369
3370
|
wt(
|
|
3370
3371
|
C,
|
|
3371
|
-
|
|
3372
|
+
B,
|
|
3372
3373
|
h++
|
|
3373
3374
|
),
|
|
3374
3375
|
as
|
|
3375
|
-
) : wt(C,
|
|
3376
|
+
) : wt(C, B, h++);
|
|
3376
3377
|
} else
|
|
3377
3378
|
t.onError(
|
|
3378
3379
|
K(30, M.loc)
|
|
@@ -3385,7 +3386,7 @@ function zo(e, t, n = Uo) {
|
|
|
3385
3386
|
H.source,
|
|
3386
3387
|
et(
|
|
3387
3388
|
un(H),
|
|
3388
|
-
wt(C,
|
|
3389
|
+
wt(C, B),
|
|
3389
3390
|
!0
|
|
3390
3391
|
)
|
|
3391
3392
|
])
|
|
@@ -3408,7 +3409,7 @@ function zo(e, t, n = Uo) {
|
|
|
3408
3409
|
}
|
|
3409
3410
|
f.add(S), S === "default" && (m = !0);
|
|
3410
3411
|
}
|
|
3411
|
-
i.push(ee(C,
|
|
3412
|
+
i.push(ee(C, B));
|
|
3412
3413
|
}
|
|
3413
3414
|
}
|
|
3414
3415
|
if (!l) {
|
|
@@ -3569,10 +3570,10 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3569
3570
|
let u = [];
|
|
3570
3571
|
const m = [], c = [], f = l.length > 0;
|
|
3571
3572
|
let h = !1, x = 0, y = !1, O = !1, _ = !1, R = !1, w = !1, E = !1;
|
|
3572
|
-
const C = [], T = (
|
|
3573
|
+
const C = [], T = (B) => {
|
|
3573
3574
|
u.length && (m.push(
|
|
3574
3575
|
xe(ls(u), a)
|
|
3575
|
-
), u = []),
|
|
3576
|
+
), u = []), B && m.push(B);
|
|
3576
3577
|
}, I = () => {
|
|
3577
3578
|
t.scopes.vFor > 0 && u.push(
|
|
3578
3579
|
ee(
|
|
@@ -3580,23 +3581,23 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3580
3581
|
V("true")
|
|
3581
3582
|
)
|
|
3582
3583
|
);
|
|
3583
|
-
}, S = ({ key:
|
|
3584
|
-
if (he(
|
|
3585
|
-
const M =
|
|
3584
|
+
}, S = ({ key: B, value: j }) => {
|
|
3585
|
+
if (he(B)) {
|
|
3586
|
+
const M = B.content, H = nn(M);
|
|
3586
3587
|
if (H && (!s || r) && // omit the flag for click handlers because hydration gives click
|
|
3587
3588
|
// dedicated fast path.
|
|
3588
3589
|
M.toLowerCase() !== "onclick" && // omit v-model handlers
|
|
3589
3590
|
M !== "onUpdate:modelValue" && // omit onVnodeXXX hooks
|
|
3590
|
-
!Gn(M) && (R = !0), H && Gn(M) && (E = !0), H &&
|
|
3591
|
+
!Gn(M) && (R = !0), H && Gn(M) && (E = !0), H && j.type === 14 && (j = j.arguments[0]), j.type === 20 || (j.type === 4 || j.type === 8) && ve(j, t) > 0)
|
|
3591
3592
|
return;
|
|
3592
3593
|
M === "ref" ? y = !0 : M === "class" ? O = !0 : M === "style" ? _ = !0 : M !== "key" && !C.includes(M) && C.push(M), s && (M === "class" || M === "style") && !C.includes(M) && C.push(M);
|
|
3593
3594
|
} else
|
|
3594
3595
|
w = !0;
|
|
3595
3596
|
};
|
|
3596
|
-
for (let
|
|
3597
|
-
const
|
|
3598
|
-
if (
|
|
3599
|
-
const { loc: M, name: H, nameLoc: W, value: G } =
|
|
3597
|
+
for (let B = 0; B < n.length; B++) {
|
|
3598
|
+
const j = n[B];
|
|
3599
|
+
if (j.type === 6) {
|
|
3600
|
+
const { loc: M, name: H, nameLoc: W, value: G } = j;
|
|
3600
3601
|
let me = !0;
|
|
3601
3602
|
if (H === "ref" && (y = !0, I()), H === "is" && (fn(o) || G && G.content.startsWith("vue:") || Fe(
|
|
3602
3603
|
"COMPILER_IS_ON_ELEMENT",
|
|
@@ -3614,7 +3615,7 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3614
3615
|
)
|
|
3615
3616
|
);
|
|
3616
3617
|
} else {
|
|
3617
|
-
const { name: M, arg: H, exp: W, loc: G, modifiers: me } =
|
|
3618
|
+
const { name: M, arg: H, exp: W, loc: G, modifiers: me } = j, Ne = M === "bind", Be = M === "on";
|
|
3618
3619
|
if (M === "slot") {
|
|
3619
3620
|
s || t.onError(
|
|
3620
3621
|
K(40, G)
|
|
@@ -3665,9 +3666,9 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3665
3666
|
Ne && me.some((Q) => Q.content === "prop") && (x |= 32);
|
|
3666
3667
|
const rt = t.directiveTransforms[M];
|
|
3667
3668
|
if (rt) {
|
|
3668
|
-
const { props: Q, needRuntime: ke } = rt(
|
|
3669
|
-
!i && Q.forEach(S), Be && H && !he(H) ? T(xe(Q, a)) : u.push(...Q), ke && (c.push(
|
|
3670
|
-
} else oi(M) || (c.push(
|
|
3669
|
+
const { props: Q, needRuntime: ke } = rt(j, e, t);
|
|
3670
|
+
!i && Q.forEach(S), Be && H && !he(H) ? T(xe(Q, a)) : u.push(...Q), ke && (c.push(j), vn(ke) && Xs.set(j, ke));
|
|
3671
|
+
} else oi(M) || (c.push(j), f && (h = !0));
|
|
3671
3672
|
}
|
|
3672
3673
|
}
|
|
3673
3674
|
let N;
|
|
@@ -3681,12 +3682,12 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3681
3682
|
)), w ? x |= 16 : (O && !s && (x |= 2), _ && !s && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || E || c.length > 0) && (x |= 512), !t.inSSR && N)
|
|
3682
3683
|
switch (N.type) {
|
|
3683
3684
|
case 15:
|
|
3684
|
-
let
|
|
3685
|
+
let B = -1, j = -1, M = !1;
|
|
3685
3686
|
for (let G = 0; G < N.properties.length; G++) {
|
|
3686
3687
|
const me = N.properties[G].key;
|
|
3687
|
-
he(me) ? me.content === "class" ?
|
|
3688
|
+
he(me) ? me.content === "class" ? B = G : me.content === "style" && (j = G) : me.isHandlerKey || (M = !0);
|
|
3688
3689
|
}
|
|
3689
|
-
const H = N.properties[
|
|
3690
|
+
const H = N.properties[B], W = N.properties[j];
|
|
3690
3691
|
M ? N = ne(
|
|
3691
3692
|
t.helper(ut),
|
|
3692
3693
|
[N]
|
|
@@ -4772,7 +4773,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4772
4773
|
}
|
|
4773
4774
|
}
|
|
4774
4775
|
return (T, I) => (v(), k("div", {
|
|
4775
|
-
class: L(T.classContent ? T.classContent : "relative group w-full
|
|
4776
|
+
class: L(T.classContent ? T.classContent : "relative group w-full"),
|
|
4776
4777
|
ref_key: "cellRef",
|
|
4777
4778
|
ref: h
|
|
4778
4779
|
}, [
|
|
@@ -4805,7 +4806,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4805
4806
|
}, [
|
|
4806
4807
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4807
4808
|
], -1)
|
|
4808
|
-
]))) :
|
|
4809
|
+
]))) : Y("", !0)
|
|
4809
4810
|
], 10, $a)) : (v(), k(se, { key: 1 }, [
|
|
4810
4811
|
d("div", {
|
|
4811
4812
|
class: "flex items-center justify-between cursor-pointer",
|
|
@@ -4828,7 +4829,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4828
4829
|
"stroke-width": "2",
|
|
4829
4830
|
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"
|
|
4830
4831
|
}, null, -1)
|
|
4831
|
-
]), 2)) :
|
|
4832
|
+
]), 2)) : Y("", !0)
|
|
4832
4833
|
]),
|
|
4833
4834
|
r.value ? (v(), k("div", {
|
|
4834
4835
|
key: 0,
|
|
@@ -4860,11 +4861,11 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4860
4861
|
}, null, -1)),
|
|
4861
4862
|
S.color ? (v(), k("span", Ha, I[6] || (I[6] = [
|
|
4862
4863
|
d("span", { class: "shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full" }, null, -1)
|
|
4863
|
-
]))) :
|
|
4864
|
+
]))) : Y("", !0),
|
|
4864
4865
|
be(" " + A(S.label) + " ", 1),
|
|
4865
4866
|
a.value === S.value ? (v(), k("svg", qa, I[7] || (I[7] = [
|
|
4866
4867
|
d("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
4867
|
-
]))) :
|
|
4868
|
+
]))) : Y("", !0)
|
|
4868
4869
|
], 8, za))), 128))
|
|
4869
4870
|
])
|
|
4870
4871
|
])
|
|
@@ -4924,7 +4925,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4924
4925
|
}, A(S.label), 9, Ya))), 128))
|
|
4925
4926
|
], 2)), [
|
|
4926
4927
|
[br, a.value]
|
|
4927
|
-
]) :
|
|
4928
|
+
]) : Y("", !0)
|
|
4928
4929
|
]),
|
|
4929
4930
|
d("div", Xa, [
|
|
4930
4931
|
d("button", {
|
|
@@ -4939,7 +4940,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4939
4940
|
}, " Зберегти ", 2)
|
|
4940
4941
|
])
|
|
4941
4942
|
]))
|
|
4942
|
-
], 42, Ra)) :
|
|
4943
|
+
], 42, Ra)) : Y("", !0)
|
|
4943
4944
|
], 64))
|
|
4944
4945
|
], 2));
|
|
4945
4946
|
}
|
|
@@ -5014,11 +5015,11 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5014
5015
|
for (const P of i.value) {
|
|
5015
5016
|
if (!P.direction)
|
|
5016
5017
|
return 0;
|
|
5017
|
-
const g = D[P.field],
|
|
5018
|
+
const g = D[P.field], U = b[P.field];
|
|
5018
5019
|
if (g == null) return 1;
|
|
5019
|
-
if (
|
|
5020
|
+
if (U == null) return -1;
|
|
5020
5021
|
let ue = 0;
|
|
5021
|
-
typeof g == "string" && typeof
|
|
5022
|
+
typeof g == "string" && typeof U == "string" ? ue = g.localeCompare(U) : g < U ? ue = -1 : g > U ? ue = 1 : ue = 0;
|
|
5022
5023
|
const Ye = P.direction === "desc" ? -ue : ue;
|
|
5023
5024
|
if (Ye !== 0) return Ye;
|
|
5024
5025
|
}
|
|
@@ -5038,17 +5039,17 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5038
5039
|
}, E = (p, D) => {
|
|
5039
5040
|
if (!n.sortable) return;
|
|
5040
5041
|
if (D?.ctrlKey || D?.metaKey) {
|
|
5041
|
-
const g = i.value.findIndex((
|
|
5042
|
+
const g = i.value.findIndex((U) => U.field === p);
|
|
5042
5043
|
if (g >= 0) {
|
|
5043
|
-
const
|
|
5044
|
-
|
|
5044
|
+
const U = i.value[g];
|
|
5045
|
+
U.direction === "asc" ? U.direction = "desc" : U.direction === "desc" && i.value.splice(g, 1);
|
|
5045
5046
|
} else
|
|
5046
5047
|
i.value.unshift({
|
|
5047
5048
|
field: p,
|
|
5048
5049
|
direction: "asc"
|
|
5049
5050
|
});
|
|
5050
5051
|
} else {
|
|
5051
|
-
const g = i.value.find((
|
|
5052
|
+
const g = i.value.find((U) => U.field === p);
|
|
5052
5053
|
g ? g.direction === "asc" ? g.direction = "desc" : g.direction === "desc" && (i.value = []) : i.value = [{ field: p, direction: "asc" }];
|
|
5053
5054
|
}
|
|
5054
5055
|
const P = i.value.filter((g) => g.direction).map((g) => ({
|
|
@@ -5088,8 +5089,8 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5088
5089
|
return ["_data", "_text"].map((P) => {
|
|
5089
5090
|
const g = `${p.name}${P}`;
|
|
5090
5091
|
return D[g] ? D[g] : null;
|
|
5091
|
-
}).find((P) => P) || p.link ? b || "-" : b;
|
|
5092
|
-
},
|
|
5092
|
+
}).find((P) => P) || (p.link ? b || "-" : b);
|
|
5093
|
+
}, B = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px] max-w-[${p.width}px] min-w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px] max-w-[${p.width}px] min-w-[${p.width}px]` : "" : "", j = $(n.page), M = $(n.limit), H = $(n.total), W = $(1), G = $(10), me = $(0), Ne = q(() => n.api ? W.value : j.value), Be = q(() => n.api ? G.value : M.value), rt = q(() => n.api ? me.value : H.value), Q = q(() => {
|
|
5093
5094
|
const { theme: p } = n;
|
|
5094
5095
|
return p === "dark" ? {
|
|
5095
5096
|
container: "dark",
|
|
@@ -5130,7 +5131,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5130
5131
|
};
|
|
5131
5132
|
});
|
|
5132
5133
|
Te(() => n.page, (p) => {
|
|
5133
|
-
|
|
5134
|
+
j.value = p;
|
|
5134
5135
|
}), Te(() => n.limit, (p) => {
|
|
5135
5136
|
M.value = p;
|
|
5136
5137
|
}), Te(() => n.total, (p) => {
|
|
@@ -5158,7 +5159,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5158
5159
|
}
|
|
5159
5160
|
}
|
|
5160
5161
|
const je = (p) => {
|
|
5161
|
-
n.api ? W.value = p : (
|
|
5162
|
+
n.api ? W.value = p : (j.value = p, s("update:page", p)), n.api && ke();
|
|
5162
5163
|
}, dr = q(() => n.showPagination && rt.value > 0), it = q(() => ({
|
|
5163
5164
|
small: {
|
|
5164
5165
|
header: "px-3 py-2 text-xs",
|
|
@@ -5190,37 +5191,37 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5190
5191
|
const p = Un.value || [], D = [], b = c.default?.();
|
|
5191
5192
|
if (b) {
|
|
5192
5193
|
const P = b.filter((g) => g.type?.name === "Column" || g.type === "Column" || g.type && typeof g.type == "object" && g.type.name === "Column").map((g) => {
|
|
5193
|
-
const
|
|
5194
|
+
const U = g.props || g.componentProps || {}, ue = U.field || U.name || "", Ye = U.header || U.label || "", qn = g.children && g.children.body, Gt = {
|
|
5194
5195
|
name: ue,
|
|
5195
5196
|
// Use field as the name for data access
|
|
5196
5197
|
ua: Ye,
|
|
5197
5198
|
// Use header as the display name
|
|
5198
|
-
format:
|
|
5199
|
+
format: U.format || "text",
|
|
5199
5200
|
slotName: qn ? "body" : void 0,
|
|
5200
|
-
...
|
|
5201
|
+
...U
|
|
5201
5202
|
};
|
|
5202
5203
|
return qn && Gt.name && (bt.value[Gt.name] = g.children.body), Gt;
|
|
5203
5204
|
});
|
|
5204
5205
|
D.push(...P);
|
|
5205
5206
|
}
|
|
5206
5207
|
if (qt.value.length > 0 && D.push(...qt.value), D.length > 0) {
|
|
5207
|
-
const P = [], g = new Set(D.map((
|
|
5208
|
-
return p.forEach((
|
|
5209
|
-
g.has(
|
|
5208
|
+
const P = [], g = new Set(D.map((U) => U.name));
|
|
5209
|
+
return p.forEach((U) => {
|
|
5210
|
+
g.has(U.name) || P.push(U);
|
|
5210
5211
|
}), P.push(...D), console.log("Combined columns:", {
|
|
5211
5212
|
default: p.length,
|
|
5212
5213
|
custom: D.length,
|
|
5213
5214
|
combined: P.length
|
|
5214
5215
|
}), P;
|
|
5215
5216
|
}
|
|
5216
|
-
return p.length > 0 ?
|
|
5217
|
+
return p.length > 0 ? p : [];
|
|
5217
5218
|
}), pr = (p = "text") => Wn[p.toLowerCase()] || Wn.text, Ue = $({});
|
|
5218
5219
|
async function hr(p) {
|
|
5219
5220
|
const { data: D, api: b } = Kt.value.find((P) => P.name === p);
|
|
5220
5221
|
if (Ue.value[p]) return Ue.value[p];
|
|
5221
5222
|
if (D || b) {
|
|
5222
|
-
const P = b || `/api/suggest/${D}?json=1`,
|
|
5223
|
-
|
|
5223
|
+
const P = b || `/api/suggest/${D}?json=1`, U = await (await fetch(P)).json();
|
|
5224
|
+
U.data && Array.isArray(U.data) && (Ue.value[p] = U.data.map((ue) => ({
|
|
5224
5225
|
value: ue.id ?? ue.value,
|
|
5225
5226
|
label: ue.text ?? ue.label
|
|
5226
5227
|
})));
|
|
@@ -5263,7 +5264,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5263
5264
|
])) : u.value ? (v(), k("div", {
|
|
5264
5265
|
key: 1,
|
|
5265
5266
|
class: L(["text-center py-8", Q.value.error])
|
|
5266
|
-
}, A(u.value), 3)) : n.loading ?
|
|
5267
|
+
}, A(u.value), 3)) : n.loading ? Y("", !0) : (v(), k("div", tl, [
|
|
5267
5268
|
d("div", {
|
|
5268
5269
|
class: L(p.classWrapper ? p.classWrapper : "relative w-full overflow-auto")
|
|
5269
5270
|
}, [
|
|
@@ -5286,13 +5287,13 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5286
5287
|
onChange: w,
|
|
5287
5288
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5288
5289
|
}, null, 42, nl)
|
|
5289
|
-
], 2)) :
|
|
5290
|
+
], 2)) : Y("", !0),
|
|
5290
5291
|
(v(!0), k(se, null, Se(Kt.value.filter((b) => !b.hidden), (b) => (v(), k("th", {
|
|
5291
5292
|
key: b.name,
|
|
5292
5293
|
class: L([
|
|
5293
5294
|
b.align ? `text-${b.align}` : "",
|
|
5294
5295
|
I(b) ? ["cursor-pointer", Q.value.thHover] : "",
|
|
5295
|
-
|
|
5296
|
+
B(b)
|
|
5296
5297
|
].concat(
|
|
5297
5298
|
n.classTh || [
|
|
5298
5299
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5333,9 +5334,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5333
5334
|
key: 0,
|
|
5334
5335
|
style: lt(Hn.value),
|
|
5335
5336
|
class: "fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"
|
|
5336
|
-
}, A(zn(b)), 5)) :
|
|
5337
|
+
}, A(zn(b)), 5)) : Y("", !0)
|
|
5337
5338
|
]))
|
|
5338
|
-
])) :
|
|
5339
|
+
])) : Y("", !0)
|
|
5339
5340
|
]),
|
|
5340
5341
|
I(b) ? (v(), k("span", ll, [
|
|
5341
5342
|
Ae(p.$slots, "sort", {
|
|
@@ -5343,7 +5344,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5343
5344
|
}, () => [
|
|
5344
5345
|
be(A(T(b.name)), 1)
|
|
5345
5346
|
])
|
|
5346
|
-
])) :
|
|
5347
|
+
])) : Y("", !0)
|
|
5347
5348
|
])
|
|
5348
5349
|
], 10, sl))), 128)),
|
|
5349
5350
|
f.value ? (v(), k("th", {
|
|
@@ -5353,7 +5354,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5353
5354
|
Q.value.th,
|
|
5354
5355
|
it.value.header
|
|
5355
5356
|
]])
|
|
5356
|
-
}, A(
|
|
5357
|
+
}, A(Z(fr)("table.actions")), 3)) : Y("", !0)
|
|
5357
5358
|
])
|
|
5358
5359
|
], 2),
|
|
5359
5360
|
x.value.length ? (v(), k("tbody", {
|
|
@@ -5378,15 +5379,15 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5378
5379
|
onChange: (g) => O(b),
|
|
5379
5380
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5380
5381
|
}, null, 42, ul)
|
|
5381
|
-
], 2)) :
|
|
5382
|
+
], 2)) : Y("", !0),
|
|
5382
5383
|
(v(!0), k(se, null, Se(Kt.value.filter((g) => !g.hidden), (g) => (v(), k("td", {
|
|
5383
5384
|
key: g.name,
|
|
5384
|
-
class: L(n.classTd
|
|
5385
|
+
class: L(n.classTd ? [n.classTd, B(g)] : [
|
|
5385
5386
|
"whitespace-nowrap",
|
|
5386
5387
|
Q.value.td,
|
|
5387
5388
|
it.value.cell,
|
|
5388
5389
|
g.align ? `text-${g.align}` : "",
|
|
5389
|
-
|
|
5390
|
+
B(g)
|
|
5390
5391
|
])
|
|
5391
5392
|
}, [
|
|
5392
5393
|
(v(), Ce(Za, {
|
|
@@ -5399,22 +5400,22 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5399
5400
|
format: g.format,
|
|
5400
5401
|
options: Ue.value[g.name] || [],
|
|
5401
5402
|
color: p.color,
|
|
5402
|
-
onUpdate: (
|
|
5403
|
+
onUpdate: (U, ue, Ye) => mr(U, ue, Ye, P),
|
|
5403
5404
|
"fetch-options": hr
|
|
5404
5405
|
}, {
|
|
5405
5406
|
default: kr(() => [
|
|
5406
5407
|
g.action && f.value ? Ae(p.$slots, "action", {
|
|
5407
5408
|
key: 0,
|
|
5408
5409
|
row: b
|
|
5409
|
-
}) :
|
|
5410
|
+
}) : Z(c).number && g.format === "number" ? Ae(p.$slots, "number", {
|
|
5410
5411
|
key: 1,
|
|
5411
5412
|
row: b,
|
|
5412
5413
|
value: N(g, b)
|
|
5413
|
-
}) :
|
|
5414
|
+
}) : Z(c).badge && g.format === "badge" ? Ae(p.$slots, "badge", {
|
|
5414
5415
|
key: 2,
|
|
5415
5416
|
row: b,
|
|
5416
5417
|
value: N(g, b)
|
|
5417
|
-
}) :
|
|
5418
|
+
}) : Z(c).array && g.format === "array" ? Ae(p.$slots, "array", {
|
|
5418
5419
|
key: 3,
|
|
5419
5420
|
row: b,
|
|
5420
5421
|
value: N(g, b)
|
|
@@ -5427,9 +5428,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5427
5428
|
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), k("a", {
|
|
5428
5429
|
key: 5,
|
|
5429
5430
|
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5430
|
-
onClick: (
|
|
5431
|
+
onClick: (U) => h(g.link.replace("{id}", b.id))
|
|
5431
5432
|
}, [
|
|
5432
|
-
g.slot && typeof g.slot == "string" ? (v(), Ce(xt(
|
|
5433
|
+
g.slot && typeof g.slot == "string" ? (v(), Ce(xt(Z(vs)(g.slot)), {
|
|
5433
5434
|
key: 0,
|
|
5434
5435
|
row: b,
|
|
5435
5436
|
value: b,
|
|
@@ -5438,7 +5439,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5438
5439
|
}, null, 8, ["row", "value", "data", "column"])) : (v(), k(se, { key: 1 }, [
|
|
5439
5440
|
be(A(N(g, b)), 1)
|
|
5440
5441
|
], 64))
|
|
5441
|
-
], 10, dl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), Ce(xt(
|
|
5442
|
+
], 10, dl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), Ce(xt(Z(vs)(g.slot)), {
|
|
5442
5443
|
key: 6,
|
|
5443
5444
|
row: b,
|
|
5444
5445
|
value: N(g, b),
|
|
@@ -5457,13 +5458,13 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5457
5458
|
], 2))), 128)),
|
|
5458
5459
|
f.value ? (v(), k("td", fl, [
|
|
5459
5460
|
Ae(p.$slots, "action", { row: b })
|
|
5460
|
-
])) :
|
|
5461
|
+
])) : Y("", !0)
|
|
5461
5462
|
], 10, cl),
|
|
5462
5463
|
d("tr", null, [
|
|
5463
5464
|
Ae(p.$slots, "under-row", { row: b })
|
|
5464
5465
|
])
|
|
5465
5466
|
], 64))), 128))
|
|
5466
|
-
], 2)) :
|
|
5467
|
+
], 2)) : Y("", !0),
|
|
5467
5468
|
x.value.length === 0 ? (v(), k("tbody", {
|
|
5468
5469
|
key: 1,
|
|
5469
5470
|
class: L(["text-center py-8", Q.value.empty])
|
|
@@ -5475,7 +5476,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5475
5476
|
Er(Aa)
|
|
5476
5477
|
], 8, pl)
|
|
5477
5478
|
])
|
|
5478
|
-
], 2)) :
|
|
5479
|
+
], 2)) : Y("", !0)
|
|
5479
5480
|
], 6)
|
|
5480
5481
|
], 2)
|
|
5481
5482
|
])),
|
|
@@ -5487,7 +5488,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5487
5488
|
theme: n.theme,
|
|
5488
5489
|
size: n.size,
|
|
5489
5490
|
"onUpdate:page": je
|
|
5490
|
-
}, null, 8, ["page", "limit", "total", "theme", "size"])) :
|
|
5491
|
+
}, null, 8, ["page", "limit", "total", "theme", "size"])) : Y("", !0)
|
|
5491
5492
|
], 2));
|
|
5492
5493
|
}
|
|
5493
5494
|
}), hl = { style: { display: "none" } }, ml = /* @__PURE__ */ ie({
|
|
@@ -5711,22 +5712,22 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5711
5712
|
}), (w, E) => (v(), k(se, null, [
|
|
5712
5713
|
d("button", {
|
|
5713
5714
|
onClick: c,
|
|
5714
|
-
class: L([[
|
|
5715
|
+
class: L([[Z(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"])
|
|
5715
5716
|
}, [
|
|
5716
5717
|
E[4] || (E[4] = hn('<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)),
|
|
5717
|
-
be(" " + A(
|
|
5718
|
+
be(" " + A(Z(n)("table.export")), 1)
|
|
5718
5719
|
], 2),
|
|
5719
5720
|
(v(), Ce(jt, { to: "body" }, [
|
|
5720
5721
|
r.value ? (v(), k("div", Il, [
|
|
5721
5722
|
d("div", Dl, [
|
|
5722
5723
|
d("div", Al, [
|
|
5723
|
-
d("h3", $l, A(
|
|
5724
|
+
d("h3", $l, A(Z(n)("table.exportTitle")), 1),
|
|
5724
5725
|
d("button", {
|
|
5725
5726
|
type: "button",
|
|
5726
5727
|
onClick: f,
|
|
5727
5728
|
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"
|
|
5728
5729
|
}, [
|
|
5729
|
-
d("span", Vl, A(
|
|
5730
|
+
d("span", Vl, A(Z(n)("table.close")), 1),
|
|
5730
5731
|
E[5] || (E[5] = d("svg", {
|
|
5731
5732
|
class: "flex-shrink-0 w-4 h-4",
|
|
5732
5733
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5747,34 +5748,34 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5747
5748
|
d("div", Ml, [
|
|
5748
5749
|
d("div", Rl, [
|
|
5749
5750
|
d("div", Ll, [
|
|
5750
|
-
d("h2", Pl, A(
|
|
5751
|
+
d("h2", Pl, A(Z(n)("table.chooseColumns")), 1),
|
|
5751
5752
|
d("div", Fl, [
|
|
5752
5753
|
d("button", {
|
|
5753
5754
|
onClick: h,
|
|
5754
5755
|
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"
|
|
5755
5756
|
}, [
|
|
5756
5757
|
d("span", Bl, [
|
|
5757
|
-
l.value === "all" ? (v(), k("span", jl)) :
|
|
5758
|
+
l.value === "all" ? (v(), k("span", jl)) : Y("", !0)
|
|
5758
5759
|
]),
|
|
5759
|
-
be(" " + A(
|
|
5760
|
+
be(" " + A(Z(n)("table.selectAll")), 1)
|
|
5760
5761
|
]),
|
|
5761
5762
|
d("button", {
|
|
5762
5763
|
onClick: x,
|
|
5763
5764
|
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"
|
|
5764
5765
|
}, [
|
|
5765
5766
|
d("span", Ul, [
|
|
5766
|
-
l.value === "active" ? (v(), k("span", zl)) :
|
|
5767
|
+
l.value === "active" ? (v(), k("span", zl)) : Y("", !0)
|
|
5767
5768
|
]),
|
|
5768
|
-
be(" " + A(
|
|
5769
|
+
be(" " + A(Z(n)("table.selectCurrent")), 1)
|
|
5769
5770
|
]),
|
|
5770
5771
|
d("button", {
|
|
5771
5772
|
onClick: y,
|
|
5772
5773
|
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"
|
|
5773
5774
|
}, [
|
|
5774
5775
|
d("span", Hl, [
|
|
5775
|
-
l.value === "none" ? (v(), k("span", ql)) :
|
|
5776
|
+
l.value === "none" ? (v(), k("span", ql)) : Y("", !0)
|
|
5776
5777
|
]),
|
|
5777
|
-
be(" " + A(
|
|
5778
|
+
be(" " + A(Z(n)("table.none")), 1)
|
|
5778
5779
|
])
|
|
5779
5780
|
]),
|
|
5780
5781
|
d("div", Kl, [
|
|
@@ -5821,7 +5822,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5821
5822
|
])
|
|
5822
5823
|
]),
|
|
5823
5824
|
d("div", Ql, [
|
|
5824
|
-
d("h2", ec, A(
|
|
5825
|
+
d("h2", ec, A(Z(n)("table.chooseFormat")), 1),
|
|
5825
5826
|
d("div", tc, [
|
|
5826
5827
|
d("div", nc, [
|
|
5827
5828
|
Ee(d("input", {
|
|
@@ -5834,7 +5835,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5834
5835
|
}, null, 512), [
|
|
5835
5836
|
[Yt, o.value]
|
|
5836
5837
|
]),
|
|
5837
|
-
d("label", sc, A(
|
|
5838
|
+
d("label", sc, A(Z(n)("table.format.json")), 1)
|
|
5838
5839
|
]),
|
|
5839
5840
|
d("div", rc, [
|
|
5840
5841
|
Ee(d("input", {
|
|
@@ -5847,7 +5848,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5847
5848
|
}, null, 512), [
|
|
5848
5849
|
[Yt, o.value]
|
|
5849
5850
|
]),
|
|
5850
|
-
d("label", ic, A(
|
|
5851
|
+
d("label", ic, A(Z(n)("table.format.csv")), 1)
|
|
5851
5852
|
]),
|
|
5852
5853
|
d("div", oc, [
|
|
5853
5854
|
Ee(d("input", {
|
|
@@ -5860,7 +5861,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5860
5861
|
}, null, 512), [
|
|
5861
5862
|
[Yt, o.value]
|
|
5862
5863
|
]),
|
|
5863
|
-
d("label", ac, A(
|
|
5864
|
+
d("label", ac, A(Z(n)("table.format.xlsx")), 1)
|
|
5864
5865
|
])
|
|
5865
5866
|
])
|
|
5866
5867
|
])
|
|
@@ -5872,17 +5873,17 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5872
5873
|
type: "button",
|
|
5873
5874
|
onClick: f,
|
|
5874
5875
|
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"
|
|
5875
|
-
}, A(
|
|
5876
|
+
}, A(Z(n)("table.cancel")), 1),
|
|
5876
5877
|
d("button", {
|
|
5877
5878
|
type: "button",
|
|
5878
5879
|
onClick: O,
|
|
5879
5880
|
disabled: i.value.length === 0 || a.value,
|
|
5880
5881
|
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"
|
|
5881
|
-
}, A(
|
|
5882
|
+
}, A(Z(n)("table.download")), 9, uc)
|
|
5882
5883
|
])
|
|
5883
5884
|
])
|
|
5884
5885
|
])
|
|
5885
|
-
])) :
|
|
5886
|
+
])) : Y("", !0)
|
|
5886
5887
|
]))
|
|
5887
5888
|
], 64));
|
|
5888
5889
|
}
|