@choosemycompany/ui 0.14.1 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +103 -99
- package/dist/index.umd.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, mergeModels as K, useModel as ne, computed as S, useSlots as Xt, createElementBlock as h, openBlock as L, normalizeClass as F, createCommentVNode as z, createElementVNode as I, toDisplayString as k, renderSlot as N, withDirectives as
|
|
1
|
+
import { defineComponent as b, mergeModels as K, useModel as ne, computed as S, useSlots as Xt, createElementBlock as h, openBlock as L, normalizeClass as F, createCommentVNode as z, createElementVNode as I, toDisplayString as k, renderSlot as N, withDirectives as xe, unref as T, vModelDynamic as Qt, ref as W, shallowRef as yt, onMounted as vt, watch as wt, onUnmounted as xt, h as Q, nextTick as Wt, createBlock as J, Fragment as Z, renderList as U, useId as _e, createVNode as O, withCtx as Xe, vModelCheckbox as _t, createStaticVNode as Se, withModifiers as Ae, resolveDynamicComponent as Yt, vModelSelect as Jt, isRef as e0, watchEffect as t0, createTextVNode as n0, withKeys as ce } from "vue";
|
|
2
2
|
import './assets/index.css';const St = {
|
|
3
3
|
small: "small",
|
|
4
4
|
medium: "medium"
|
|
@@ -62,7 +62,7 @@ import './assets/index.css';const St = {
|
|
|
62
62
|
t.description ? (L(), h("div", r0, k(t.description), 1)) : z("", !0),
|
|
63
63
|
I("div", l0, [
|
|
64
64
|
N(f.$slots, "left", {}, void 0, !0),
|
|
65
|
-
|
|
65
|
+
xe(I("input", {
|
|
66
66
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => r.value = c),
|
|
67
67
|
id: t.id,
|
|
68
68
|
type: t.type,
|
|
@@ -131,13 +131,13 @@ import './assets/index.css';const St = {
|
|
|
131
131
|
width: 16,
|
|
132
132
|
height: 16
|
|
133
133
|
}
|
|
134
|
-
),
|
|
134
|
+
), we = Object.freeze({
|
|
135
135
|
rotate: 0,
|
|
136
136
|
vFlip: !1,
|
|
137
137
|
hFlip: !1
|
|
138
138
|
}), Re = Object.freeze({
|
|
139
139
|
...$t,
|
|
140
|
-
...
|
|
140
|
+
...we
|
|
141
141
|
}), Te = Object.freeze({
|
|
142
142
|
...Re,
|
|
143
143
|
body: "",
|
|
@@ -152,7 +152,7 @@ function u0(e, n) {
|
|
|
152
152
|
function ot(e, n) {
|
|
153
153
|
const t = u0(e, n);
|
|
154
154
|
for (const o in Te)
|
|
155
|
-
o in
|
|
155
|
+
o in we ? o in e && !(o in t) && (t[o] = we[o]) : o in n ? t[o] = n[o] : o in e && (t[o] = e[o]);
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
158
|
function c0(e, n) {
|
|
@@ -311,7 +311,7 @@ const zt = Object.freeze({
|
|
|
311
311
|
// Dimensions
|
|
312
312
|
...zt,
|
|
313
313
|
// Transformations
|
|
314
|
-
...
|
|
314
|
+
...we
|
|
315
315
|
}), h0 = /(-?[0-9.]*[0-9]+[0-9.]*)/g, y0 = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
316
316
|
function lt(e, n, t) {
|
|
317
317
|
if (n === 1)
|
|
@@ -353,12 +353,12 @@ function v0(e, n = "defs") {
|
|
|
353
353
|
content: e
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function w0(e, n) {
|
|
357
357
|
return e ? "<defs>" + e + "</defs>" + n : n;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function x0(e, n, t) {
|
|
360
360
|
const o = v0(e);
|
|
361
|
-
return
|
|
361
|
+
return w0(o.defs, n + o.content + t);
|
|
362
362
|
}
|
|
363
363
|
const _0 = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
364
364
|
function S0(e, n) {
|
|
@@ -376,11 +376,11 @@ function S0(e, n) {
|
|
|
376
376
|
};
|
|
377
377
|
let l = t.body;
|
|
378
378
|
[t, o].forEach((C) => {
|
|
379
|
-
const m = [], y = C.hFlip,
|
|
379
|
+
const m = [], y = C.hFlip, x = C.vFlip;
|
|
380
380
|
let _ = C.rotate;
|
|
381
|
-
y ?
|
|
381
|
+
y ? x ? _ += 2 : (m.push(
|
|
382
382
|
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
383
|
-
), m.push("scale(-1 1)"), r.top = r.left = 0) :
|
|
383
|
+
), m.push("scale(-1 1)"), r.top = r.left = 0) : x && (m.push(
|
|
384
384
|
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
385
385
|
), m.push("scale(1 -1)"), r.top = r.left = 0);
|
|
386
386
|
let R;
|
|
@@ -401,7 +401,7 @@ function S0(e, n) {
|
|
|
401
401
|
);
|
|
402
402
|
break;
|
|
403
403
|
}
|
|
404
|
-
_ % 2 === 1 && (r.left !== r.top && (R = r.left, r.left = r.top, r.top = R), r.width !== r.height && (R = r.width, r.width = r.height, r.height = R)), m.length && (l =
|
|
404
|
+
_ % 2 === 1 && (r.left !== r.top && (R = r.left, r.left = r.top, r.top = R), r.width !== r.height && (R = r.width, r.width = r.height, r.height = R)), m.length && (l = x0(
|
|
405
405
|
l,
|
|
406
406
|
'<g transform="' + m.join(" ") + '">',
|
|
407
407
|
"</g>"
|
|
@@ -731,7 +731,7 @@ function N0(e, n, t, o) {
|
|
|
731
731
|
abort: C
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function x() {
|
|
735
735
|
a = "failed", c.forEach((M) => {
|
|
736
736
|
M(void 0, g);
|
|
737
737
|
});
|
|
@@ -754,11 +754,11 @@ function N0(e, n, t, o) {
|
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
756
|
if (E === "abort") {
|
|
757
|
-
g = q,
|
|
757
|
+
g = q, x();
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
760
|
if (ee) {
|
|
761
|
-
g = q, d.length || (i.length ? P() :
|
|
761
|
+
g = q, d.length || (i.length ? P() : x());
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
if (p(), _(), !e.random) {
|
|
@@ -777,11 +777,11 @@ function N0(e, n, t, o) {
|
|
|
777
777
|
if (M === void 0) {
|
|
778
778
|
if (d.length) {
|
|
779
779
|
f = setTimeout(() => {
|
|
780
|
-
p(), a === "pending" && (_(),
|
|
780
|
+
p(), a === "pending" && (_(), x());
|
|
781
781
|
}, e.timeout);
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
|
-
|
|
784
|
+
x();
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
787
|
const E = {
|
|
@@ -1227,7 +1227,7 @@ const an = {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return r.value ? a() : vt(() => {
|
|
1229
1229
|
r.value = !0, a();
|
|
1230
|
-
}),
|
|
1230
|
+
}), wt(() => e.icon, a), xt(o), () => {
|
|
1231
1231
|
const u = i.value;
|
|
1232
1232
|
if (!u)
|
|
1233
1233
|
return pt(an, e);
|
|
@@ -1380,15 +1380,15 @@ const an = {
|
|
|
1380
1380
|
y.key === "Escape" && (i.value = !1);
|
|
1381
1381
|
}
|
|
1382
1382
|
function c(y) {
|
|
1383
|
-
const
|
|
1384
|
-
s.value &&
|
|
1383
|
+
const x = y.target;
|
|
1384
|
+
s.value && x && !s.value.contains(x) && (i.value = !1);
|
|
1385
1385
|
}
|
|
1386
1386
|
function p(y) {
|
|
1387
1387
|
i.value = !0, o("update:modelValue", y);
|
|
1388
1388
|
}
|
|
1389
1389
|
vt(() => {
|
|
1390
1390
|
window.addEventListener("click", c);
|
|
1391
|
-
}),
|
|
1391
|
+
}), xt(() => {
|
|
1392
1392
|
window.removeEventListener("click", c);
|
|
1393
1393
|
});
|
|
1394
1394
|
const C = S(() => ({
|
|
@@ -1398,7 +1398,7 @@ const an = {
|
|
|
1398
1398
|
autocomplete__icon_chevron: !0,
|
|
1399
1399
|
"autocomplete__icon_chevron--open": i.value
|
|
1400
1400
|
}));
|
|
1401
|
-
return (y,
|
|
1401
|
+
return (y, x) => (L(), h("div", {
|
|
1402
1402
|
ref_key: "autocompleteRef",
|
|
1403
1403
|
ref: s,
|
|
1404
1404
|
class: F(C.value),
|
|
@@ -1408,8 +1408,8 @@ const an = {
|
|
|
1408
1408
|
id: a.value,
|
|
1409
1409
|
modelValue: r.value,
|
|
1410
1410
|
"onUpdate:modelValue": [
|
|
1411
|
-
|
|
1412
|
-
|
|
1411
|
+
x[0] || (x[0] = (_) => r.value = _),
|
|
1412
|
+
x[1] || (x[1] = (_) => p(_))
|
|
1413
1413
|
],
|
|
1414
1414
|
label: l.value,
|
|
1415
1415
|
placeholder: t.placeholder,
|
|
@@ -1456,16 +1456,16 @@ const an = {
|
|
|
1456
1456
|
}, vn = {
|
|
1457
1457
|
default: "default",
|
|
1458
1458
|
danger: "danger"
|
|
1459
|
-
},
|
|
1459
|
+
}, wn = {
|
|
1460
1460
|
small: "small",
|
|
1461
1461
|
medium: "medium"
|
|
1462
|
-
},
|
|
1462
|
+
}, xn = ["disabled"], _n = { class: "button__icon" }, Sn = /* @__PURE__ */ b({
|
|
1463
1463
|
name: "CmcButton",
|
|
1464
1464
|
__name: "CmcButton",
|
|
1465
1465
|
props: {
|
|
1466
1466
|
kind: { default: yn.primary },
|
|
1467
1467
|
variant: { default: vn.default },
|
|
1468
|
-
size: { default:
|
|
1468
|
+
size: { default: wn.medium },
|
|
1469
1469
|
icon: {},
|
|
1470
1470
|
disabled: { type: Boolean, default: !1 },
|
|
1471
1471
|
loading: { type: Boolean, default: !1 }
|
|
@@ -1494,7 +1494,7 @@ const an = {
|
|
|
1494
1494
|
}, null, 8, ["name"])) : z("", !0)
|
|
1495
1495
|
]),
|
|
1496
1496
|
N(s.$slots, "default", {}, void 0, !0)
|
|
1497
|
-
], 10,
|
|
1497
|
+
], 10, xn));
|
|
1498
1498
|
}
|
|
1499
1499
|
}), Jo = /* @__PURE__ */ $(Sn, [["__scopeId", "data-v-d1e66acd"]]), Ot = {
|
|
1500
1500
|
medium: "medium"
|
|
@@ -1520,6 +1520,8 @@ const an = {
|
|
|
1520
1520
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
1521
1521
|
version="1.1"
|
|
1522
1522
|
viewBox="35 35 435 435"
|
|
1523
|
+
width="%width%"
|
|
1524
|
+
height="%height%"
|
|
1523
1525
|
>
|
|
1524
1526
|
<defs>
|
|
1525
1527
|
<style>
|
|
@@ -1815,7 +1817,9 @@ const an = {
|
|
|
1815
1817
|
primaryType: { default: H.employees },
|
|
1816
1818
|
rank: { default: le.bronze },
|
|
1817
1819
|
period: { default: 2026 },
|
|
1818
|
-
country: { default: "France" }
|
|
1820
|
+
country: { default: "France" },
|
|
1821
|
+
width: { default: 300 },
|
|
1822
|
+
height: { default: 300 }
|
|
1819
1823
|
},
|
|
1820
1824
|
setup(e) {
|
|
1821
1825
|
const n = e, t = {
|
|
@@ -1869,7 +1873,7 @@ const an = {
|
|
|
1869
1873
|
`class="label-type" style="fill:${a}"`
|
|
1870
1874
|
);
|
|
1871
1875
|
}
|
|
1872
|
-
return i.replace(/%color%/g, r.value).replace(/global-gradient/g, `global-gradient-${n.primaryType}`).replace(/%region%/g, n.country).replace(/%labeltype%/g, n.primaryType.toUpperCase()).replace(/%period%/g, n.period.toString());
|
|
1876
|
+
return i.replace(/%color%/g, r.value).replace(/%width%/g, n.width ? n.width.toString() : "300").replace(/%height%/g, n.height ? n.height.toString() : "300").replace(/global-gradient/g, `global-gradient-${n.primaryType}`).replace(/%region%/g, n.country).replace(/%labeltype%/g, n.primaryType.toUpperCase()).replace(/%period%/g, n.period.toString());
|
|
1873
1877
|
});
|
|
1874
1878
|
return (i, s) => (L(), h("div", { innerHTML: l.value }, null, 8, En));
|
|
1875
1879
|
}
|
|
@@ -1908,7 +1912,7 @@ const An = /* @__PURE__ */ $(Zn, [["render", On]]), Tn = ["id", "disabled", "req
|
|
|
1908
1912
|
return (l, i) => (L(), h("div", {
|
|
1909
1913
|
class: F(r.value)
|
|
1910
1914
|
}, [
|
|
1911
|
-
|
|
1915
|
+
xe(I("input", {
|
|
1912
1916
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
1913
1917
|
id: o.value,
|
|
1914
1918
|
type: "checkbox",
|
|
@@ -2049,7 +2053,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2049
2053
|
}), or = /* @__PURE__ */ $(p1, [["__scopeId", "data-v-cc384ddd"]]), C1 = { class: "pagination" }, m1 = ["disabled"], L1 = ["onClick"], h1 = {
|
|
2050
2054
|
key: 1,
|
|
2051
2055
|
class: "pagination__ellipsis"
|
|
2052
|
-
}, y1 = ["disabled"], v1 = 2,
|
|
2056
|
+
}, y1 = ["disabled"], v1 = 2, w1 = /* @__PURE__ */ b({
|
|
2053
2057
|
name: "CmcPagination",
|
|
2054
2058
|
__name: "CmcPagination",
|
|
2055
2059
|
props: {
|
|
@@ -2077,8 +2081,8 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2077
2081
|
if (C.push(1), d === 1) return C;
|
|
2078
2082
|
let m = Math.max(2, c - p), y = Math.min(d - 1, c + p);
|
|
2079
2083
|
m > 2 && C.push("...");
|
|
2080
|
-
for (let
|
|
2081
|
-
|
|
2084
|
+
for (let x = m; x <= y; x++)
|
|
2085
|
+
x !== 1 && x !== d && C.push(x);
|
|
2082
2086
|
return y < d - 1 && C.push("..."), d > 1 && C.push(d), C;
|
|
2083
2087
|
}), a = S(() => t.currentPage > 1), u = S(() => t.currentPage < r()), g = () => {
|
|
2084
2088
|
a.value && o("update:currentPage", t.currentPage - 1);
|
|
@@ -2107,7 +2111,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2107
2111
|
}, " › ", 10, y1)
|
|
2108
2112
|
]));
|
|
2109
2113
|
}
|
|
2110
|
-
}),
|
|
2114
|
+
}), x1 = /* @__PURE__ */ $(w1, [["__scopeId", "data-v-8be37a19"]]), _1 = /* @__PURE__ */ b({
|
|
2111
2115
|
name: "CmcSearch",
|
|
2112
2116
|
__name: "CmcSearch",
|
|
2113
2117
|
props: /* @__PURE__ */ K({
|
|
@@ -2202,7 +2206,7 @@ const a1 = /* @__PURE__ */ $(l1, [["render", s1]]), u1 = {
|
|
|
2202
2206
|
}, k(e.label), 9, S1)) : z("", !0),
|
|
2203
2207
|
n.description ? (L(), h("div", M1, k(n.description), 1)) : z("", !0),
|
|
2204
2208
|
I("div", R1, [
|
|
2205
|
-
|
|
2209
|
+
xe(I("select", {
|
|
2206
2210
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
2207
2211
|
id: e.id,
|
|
2208
2212
|
required: e.required,
|
|
@@ -2313,7 +2317,7 @@ function v(e, n, t) {
|
|
|
2313
2317
|
return r;
|
|
2314
2318
|
};
|
|
2315
2319
|
}
|
|
2316
|
-
function
|
|
2320
|
+
function w(e, n, t, o) {
|
|
2317
2321
|
return {
|
|
2318
2322
|
debug: () => {
|
|
2319
2323
|
var r;
|
|
@@ -2340,7 +2344,7 @@ function D1(e, n, t, o) {
|
|
|
2340
2344
|
cell: u,
|
|
2341
2345
|
getValue: u.getValue,
|
|
2342
2346
|
renderValue: u.renderValue
|
|
2343
|
-
}),
|
|
2347
|
+
}), w(e.options, "debugCells", "cell.getContext"))
|
|
2344
2348
|
};
|
|
2345
2349
|
return e._features.forEach((i) => {
|
|
2346
2350
|
i.createCell == null || i.createCell(l, t, n, e);
|
|
@@ -2372,7 +2376,7 @@ function O1(e, n, t, o) {
|
|
|
2372
2376
|
getFlatColumns: v(() => [!0], () => {
|
|
2373
2377
|
var d;
|
|
2374
2378
|
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((c) => c.getFlatColumns())];
|
|
2375
|
-
},
|
|
2379
|
+
}, w(e.options, "debugColumns", "column.getFlatColumns")),
|
|
2376
2380
|
getLeafColumns: v(() => [e._getOrderColumnsFn()], (d) => {
|
|
2377
2381
|
var c;
|
|
2378
2382
|
if ((c = f.columns) != null && c.length) {
|
|
@@ -2380,7 +2384,7 @@ function O1(e, n, t, o) {
|
|
|
2380
2384
|
return d(p);
|
|
2381
2385
|
}
|
|
2382
2386
|
return [f];
|
|
2383
|
-
},
|
|
2387
|
+
}, w(e.options, "debugColumns", "column.getLeafColumns"))
|
|
2384
2388
|
};
|
|
2385
2389
|
for (const d of e._features)
|
|
2386
2390
|
d.createColumn == null || d.createColumn(f, e);
|
|
@@ -2422,27 +2426,27 @@ const A1 = {
|
|
|
2422
2426
|
var l, i;
|
|
2423
2427
|
const s = (l = o?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? l : [], a = (i = r?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? i : [], u = t.filter((f) => !(o != null && o.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
2424
2428
|
return fe(n, [...s, ...u, ...a], e);
|
|
2425
|
-
},
|
|
2429
|
+
}, w(e.options, V, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((l) => !(o != null && o.includes(l.id)) && !(r != null && r.includes(l.id))), fe(n, t, e, "center")), w(e.options, V, "getCenterHeaderGroups")), e.getLeftHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
2426
2430
|
var r;
|
|
2427
2431
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2428
2432
|
return fe(n, l, e, "left");
|
|
2429
|
-
},
|
|
2433
|
+
}, w(e.options, V, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
2430
2434
|
var r;
|
|
2431
2435
|
const l = (r = o?.map((i) => t.find((s) => s.id === i)).filter(Boolean)) != null ? r : [];
|
|
2432
2436
|
return fe(n, l, e, "right");
|
|
2433
|
-
},
|
|
2437
|
+
}, w(e.options, V, "getRightHeaderGroups")), e.getFooterGroups = v(() => [e.getHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getFooterGroups")), e.getLeftFooterGroups = v(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getLeftFooterGroups")), e.getCenterFooterGroups = v(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getCenterFooterGroups")), e.getRightFooterGroups = v(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), w(e.options, V, "getRightFooterGroups")), e.getFlatHeaders = v(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getFlatHeaders")), e.getLeftFlatHeaders = v(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getLeftFlatHeaders")), e.getCenterFlatHeaders = v(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getCenterFlatHeaders")), e.getRightFlatHeaders = v(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), w(e.options, V, "getRightFlatHeaders")), e.getCenterLeafHeaders = v(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
2434
2438
|
var o;
|
|
2435
2439
|
return !((o = t.subHeaders) != null && o.length);
|
|
2436
|
-
}),
|
|
2440
|
+
}), w(e.options, V, "getCenterLeafHeaders")), e.getLeftLeafHeaders = v(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
2437
2441
|
var o;
|
|
2438
2442
|
return !((o = t.subHeaders) != null && o.length);
|
|
2439
|
-
}),
|
|
2443
|
+
}), w(e.options, V, "getLeftLeafHeaders")), e.getRightLeafHeaders = v(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
2440
2444
|
var o;
|
|
2441
2445
|
return !((o = t.subHeaders) != null && o.length);
|
|
2442
|
-
}),
|
|
2446
|
+
}), w(e.options, V, "getRightLeafHeaders")), e.getLeafHeaders = v(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
|
|
2443
2447
|
var r, l, i, s, a, u;
|
|
2444
2448
|
return [...(r = (l = n[0]) == null ? void 0 : l.headers) != null ? r : [], ...(i = (s = t[0]) == null ? void 0 : s.headers) != null ? i : [], ...(a = (u = o[0]) == null ? void 0 : u.headers) != null ? a : []].map((g) => g.getLeafHeaders()).flat();
|
|
2445
|
-
},
|
|
2449
|
+
}, w(e.options, V, "getLeafHeaders"));
|
|
2446
2450
|
}
|
|
2447
2451
|
};
|
|
2448
2452
|
function fe(e, n, t, o) {
|
|
@@ -2463,9 +2467,9 @@ function fe(e, n, t, o) {
|
|
|
2463
2467
|
headers: []
|
|
2464
2468
|
}, C = [];
|
|
2465
2469
|
d.forEach((m) => {
|
|
2466
|
-
const y = [...C].reverse()[0],
|
|
2470
|
+
const y = [...C].reverse()[0], x = m.column.depth === p.depth;
|
|
2467
2471
|
let _, R = !1;
|
|
2468
|
-
if (
|
|
2472
|
+
if (x && m.column.parent ? _ = m.column.parent : (_ = m.column, R = !0), y && y?.column === _)
|
|
2469
2473
|
y.subHeaders.push(m);
|
|
2470
2474
|
else {
|
|
2471
2475
|
const P = mt(t, _, {
|
|
@@ -2493,8 +2497,8 @@ function fe(e, n, t, o) {
|
|
|
2493
2497
|
} = _;
|
|
2494
2498
|
C += R, y.push(P);
|
|
2495
2499
|
})) : C = 1;
|
|
2496
|
-
const
|
|
2497
|
-
return m = m +
|
|
2500
|
+
const x = Math.min(...y);
|
|
2501
|
+
return m = m + x, p.colSpan = C, p.rowSpan = m, {
|
|
2498
2502
|
colSpan: C,
|
|
2499
2503
|
rowSpan: m
|
|
2500
2504
|
};
|
|
@@ -2540,8 +2544,8 @@ const T1 = (e, n, t, o, r, l, i) => {
|
|
|
2540
2544
|
}
|
|
2541
2545
|
return a.reverse();
|
|
2542
2546
|
},
|
|
2543
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) => D1(e, s, u, u.id)),
|
|
2544
|
-
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u, g) => (u[g.column.id] = g, u), {}),
|
|
2547
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (a) => a.map((u) => D1(e, s, u, u.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2548
|
+
_getAllCellsByColumnId: v(() => [s.getAllCells()], (a) => a.reduce((u, g) => (u[g.column.id] = g, u), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2545
2549
|
};
|
|
2546
2550
|
for (let a = 0; a < e._features.length; a++) {
|
|
2547
2551
|
const u = e._features[a];
|
|
@@ -2825,7 +2829,7 @@ const eo = {
|
|
|
2825
2829
|
onColumnOrderChange: D("columnOrder", e)
|
|
2826
2830
|
}),
|
|
2827
2831
|
createColumn: (e, n) => {
|
|
2828
|
-
e.getIndex = v((t) => [ae(n, t)], (t) => t.findIndex((o) => o.id === e.id),
|
|
2832
|
+
e.getIndex = v((t) => [ae(n, t)], (t) => t.findIndex((o) => o.id === e.id), w(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
2829
2833
|
var o;
|
|
2830
2834
|
return ((o = ae(n, t)[0]) == null ? void 0 : o.id) === e.id;
|
|
2831
2835
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -2851,7 +2855,7 @@ const eo = {
|
|
|
2851
2855
|
l = [...l, ...s];
|
|
2852
2856
|
}
|
|
2853
2857
|
return J1(l, t, o);
|
|
2854
|
-
},
|
|
2858
|
+
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
2855
2859
|
}
|
|
2856
2860
|
}, ze = () => ({
|
|
2857
2861
|
left: [],
|
|
@@ -2907,13 +2911,13 @@ const eo = {
|
|
|
2907
2911
|
e.getCenterVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
|
|
2908
2912
|
const l = [...o ?? [], ...r ?? []];
|
|
2909
2913
|
return t.filter((i) => !l.includes(i.column.id));
|
|
2910
|
-
},
|
|
2914
|
+
}, w(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
2911
2915
|
...l,
|
|
2912
2916
|
position: "left"
|
|
2913
|
-
})),
|
|
2917
|
+
})), w(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = v(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((l) => t.find((i) => i.column.id === l)).filter(Boolean).map((l) => ({
|
|
2914
2918
|
...l,
|
|
2915
2919
|
position: "right"
|
|
2916
|
-
})),
|
|
2920
|
+
})), w(n.options, "debugRows", "getRightVisibleCells"));
|
|
2917
2921
|
},
|
|
2918
2922
|
createTable: (e) => {
|
|
2919
2923
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -2927,10 +2931,10 @@ const eo = {
|
|
|
2927
2931
|
return !!((r = o.left) != null && r.length || (l = o.right) != null && l.length);
|
|
2928
2932
|
}
|
|
2929
2933
|
return !!((t = o[n]) != null && t.length);
|
|
2930
|
-
}, e.getLeftLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean),
|
|
2934
|
+
}, e.getLeftLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), w(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = v(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
|
|
2931
2935
|
const r = [...t ?? [], ...o ?? []];
|
|
2932
2936
|
return n.filter((l) => !r.includes(l.id));
|
|
2933
|
-
},
|
|
2937
|
+
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
2934
2938
|
}
|
|
2935
2939
|
};
|
|
2936
2940
|
function no(e) {
|
|
@@ -2965,7 +2969,7 @@ const pe = {
|
|
|
2965
2969
|
var t, o, r;
|
|
2966
2970
|
const l = n.getState().columnSizing[e.id];
|
|
2967
2971
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : pe.minSize, (o = l ?? e.columnDef.size) != null ? o : pe.size), (r = e.columnDef.maxSize) != null ? r : pe.maxSize);
|
|
2968
|
-
}, e.getStart = v((t) => [t, ae(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0),
|
|
2972
|
+
}, e.getStart = v((t) => [t, ae(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, ae(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), w(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
2969
2973
|
n.setColumnSizing((t) => {
|
|
2970
2974
|
let {
|
|
2971
2975
|
[e.id]: o,
|
|
@@ -3001,10 +3005,10 @@ const pe = {
|
|
|
3001
3005
|
return (l) => {
|
|
3002
3006
|
if (!o || !r || (l.persist == null || l.persist(), ke(l) && l.touches && l.touches.length > 1))
|
|
3003
3007
|
return;
|
|
3004
|
-
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a = ke(l) ? Math.round(l.touches[0].clientX) : l.clientX, u = {}, g = (y,
|
|
3005
|
-
typeof
|
|
3008
|
+
const i = e.getSize(), s = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[o.id, o.getSize()]], a = ke(l) ? Math.round(l.touches[0].clientX) : l.clientX, u = {}, g = (y, x) => {
|
|
3009
|
+
typeof x == "number" && (n.setColumnSizingInfo((_) => {
|
|
3006
3010
|
var R, P;
|
|
3007
|
-
const M = n.options.columnResizeDirection === "rtl" ? -1 : 1, E = (
|
|
3011
|
+
const M = n.options.columnResizeDirection === "rtl" ? -1 : 1, E = (x - ((R = _?.startOffset) != null ? R : 0)) * M, q = Math.max(E / ((P = _?.startSize) != null ? P : 0), -0.999999);
|
|
3008
3012
|
return _.columnSizingStart.forEach((ee) => {
|
|
3009
3013
|
let [G, nt] = ee;
|
|
3010
3014
|
u[G] = Math.round(Math.max(nt + nt * q, 0) * 100) / 100;
|
|
@@ -3018,8 +3022,8 @@ const pe = {
|
|
|
3018
3022
|
...u
|
|
3019
3023
|
})));
|
|
3020
3024
|
}, f = (y) => g("move", y), d = (y) => {
|
|
3021
|
-
g("end", y), n.setColumnSizingInfo((
|
|
3022
|
-
...
|
|
3025
|
+
g("end", y), n.setColumnSizingInfo((x) => ({
|
|
3026
|
+
...x,
|
|
3023
3027
|
isResizingColumn: !1,
|
|
3024
3028
|
startOffset: null,
|
|
3025
3029
|
startSize: null,
|
|
@@ -3035,8 +3039,8 @@ const pe = {
|
|
|
3035
3039
|
}, C = {
|
|
3036
3040
|
moveHandler: (y) => (y.cancelable && (y.preventDefault(), y.stopPropagation()), f(y.touches[0].clientX), !1),
|
|
3037
3041
|
upHandler: (y) => {
|
|
3038
|
-
var
|
|
3039
|
-
c?.removeEventListener("touchmove", C.moveHandler), c?.removeEventListener("touchend", C.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), d((
|
|
3042
|
+
var x;
|
|
3043
|
+
c?.removeEventListener("touchmove", C.moveHandler), c?.removeEventListener("touchend", C.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), d((x = y.touches[0]) == null ? void 0 : x.clientX);
|
|
3040
3044
|
}
|
|
3041
3045
|
}, m = ro() ? {
|
|
3042
3046
|
passive: !1
|
|
@@ -3121,10 +3125,10 @@ const lo = {
|
|
|
3121
3125
|
};
|
|
3122
3126
|
},
|
|
3123
3127
|
createRow: (e, n) => {
|
|
3124
|
-
e._getAllVisibleCells = v(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()),
|
|
3128
|
+
e._getAllVisibleCells = v(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), w(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = v(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], w(n.options, "debugRows", "getVisibleCells"));
|
|
3125
3129
|
},
|
|
3126
3130
|
createTable: (e) => {
|
|
3127
|
-
const n = (t, o) => v(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((l) => l.getIsVisible == null ? void 0 : l.getIsVisible()),
|
|
3131
|
+
const n = (t, o) => v(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((l) => l.getIsVisible == null ? void 0 : l.getIsVisible()), w(e.options, "debugColumns", t));
|
|
3128
3132
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
3129
3133
|
var o;
|
|
3130
3134
|
e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
@@ -3340,7 +3344,7 @@ const io = {
|
|
|
3340
3344
|
}), e.getPageOptions = v(() => [e.getPageCount()], (o) => {
|
|
3341
3345
|
let r = [];
|
|
3342
3346
|
return o && o > 0 && (r = [...new Array(o)].fill(null).map((l, i) => i)), r;
|
|
3343
|
-
},
|
|
3347
|
+
}, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
3344
3348
|
const {
|
|
3345
3349
|
pageIndex: o
|
|
3346
3350
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -3452,10 +3456,10 @@ const io = {
|
|
|
3452
3456
|
...i,
|
|
3453
3457
|
position: o
|
|
3454
3458
|
}));
|
|
3455
|
-
}, e.getTopRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"),
|
|
3459
|
+
}, e.getTopRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), w(e.options, "debugRows", "getTopRows")), e.getBottomRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), w(e.options, "debugRows", "getBottomRows")), e.getCenterRows = v(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
|
|
3456
3460
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
|
|
3457
3461
|
return n.filter((l) => !r.has(l.id));
|
|
3458
|
-
},
|
|
3462
|
+
}, w(e.options, "debugRows", "getCenterRows"));
|
|
3459
3463
|
}
|
|
3460
3464
|
}, go = {
|
|
3461
3465
|
getInitialState: (e) => ({
|
|
@@ -3498,15 +3502,15 @@ const io = {
|
|
|
3498
3502
|
rows: [],
|
|
3499
3503
|
flatRows: [],
|
|
3500
3504
|
rowsById: {}
|
|
3501
|
-
},
|
|
3505
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3502
3506
|
rows: [],
|
|
3503
3507
|
flatRows: [],
|
|
3504
3508
|
rowsById: {}
|
|
3505
|
-
},
|
|
3509
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? De(e, t) : {
|
|
3506
3510
|
rows: [],
|
|
3507
3511
|
flatRows: [],
|
|
3508
3512
|
rowsById: {}
|
|
3509
|
-
},
|
|
3513
|
+
}, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
3510
3514
|
const n = e.getFilteredRowModel().flatRows, {
|
|
3511
3515
|
rowSelection: t
|
|
3512
3516
|
} = e.getState();
|
|
@@ -3759,7 +3763,7 @@ const ie = {
|
|
|
3759
3763
|
go,
|
|
3760
3764
|
oo
|
|
3761
3765
|
];
|
|
3762
|
-
function
|
|
3766
|
+
function wo(e) {
|
|
3763
3767
|
var n, t;
|
|
3764
3768
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
3765
3769
|
const o = [...vo, ...(n = e._features) != null ? n : []];
|
|
@@ -3837,23 +3841,23 @@ function xo(e) {
|
|
|
3837
3841
|
...r._features.reduce((p, C) => Object.assign(p, C.getDefaultColumnDef == null ? void 0 : C.getDefaultColumnDef()), {}),
|
|
3838
3842
|
...d
|
|
3839
3843
|
};
|
|
3840
|
-
},
|
|
3844
|
+
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
3841
3845
|
_getColumnDefs: () => r.options.columns,
|
|
3842
3846
|
getAllColumns: v(() => [r._getColumnDefs()], (d) => {
|
|
3843
3847
|
const c = function(p, C, m) {
|
|
3844
3848
|
return m === void 0 && (m = 0), p.map((y) => {
|
|
3845
|
-
const
|
|
3846
|
-
return
|
|
3849
|
+
const x = O1(r, y, m, C), _ = y;
|
|
3850
|
+
return x.columns = _.columns ? c(_.columns, x, m + 1) : [], x;
|
|
3847
3851
|
});
|
|
3848
3852
|
};
|
|
3849
3853
|
return c(d);
|
|
3850
|
-
},
|
|
3851
|
-
getAllFlatColumns: v(() => [r.getAllColumns()], (d) => d.flatMap((c) => c.getFlatColumns()),
|
|
3852
|
-
_getAllFlatColumnsById: v(() => [r.getAllFlatColumns()], (d) => d.reduce((c, p) => (c[p.id] = p, c), {}),
|
|
3854
|
+
}, w(e, "debugColumns", "getAllColumns")),
|
|
3855
|
+
getAllFlatColumns: v(() => [r.getAllColumns()], (d) => d.flatMap((c) => c.getFlatColumns()), w(e, "debugColumns", "getAllFlatColumns")),
|
|
3856
|
+
_getAllFlatColumnsById: v(() => [r.getAllFlatColumns()], (d) => d.reduce((c, p) => (c[p.id] = p, c), {}), w(e, "debugColumns", "getAllFlatColumnsById")),
|
|
3853
3857
|
getAllLeafColumns: v(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, c) => {
|
|
3854
3858
|
let p = d.flatMap((C) => C.getLeafColumns());
|
|
3855
3859
|
return c(p);
|
|
3856
|
-
},
|
|
3860
|
+
}, w(e, "debugColumns", "getAllLeafColumns")),
|
|
3857
3861
|
getColumn: (d) => {
|
|
3858
3862
|
const c = r._getAllFlatColumnsById()[d];
|
|
3859
3863
|
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${d}' does not exist.`), c;
|
|
@@ -3866,7 +3870,7 @@ function xo(e) {
|
|
|
3866
3870
|
}
|
|
3867
3871
|
return r;
|
|
3868
3872
|
}
|
|
3869
|
-
function
|
|
3873
|
+
function xo() {
|
|
3870
3874
|
return (e) => v(() => [e.options.data], (n) => {
|
|
3871
3875
|
const t = {
|
|
3872
3876
|
rows: [],
|
|
@@ -3885,7 +3889,7 @@ function wo() {
|
|
|
3885
3889
|
return s;
|
|
3886
3890
|
};
|
|
3887
3891
|
return t.rows = o(n), t;
|
|
3888
|
-
},
|
|
3892
|
+
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
3889
3893
|
}
|
|
3890
3894
|
function _o() {
|
|
3891
3895
|
return (e) => v(() => [e.getState().sorting, e.getPreSortedRowModel()], (n, t) => {
|
|
@@ -3911,17 +3915,17 @@ function _o() {
|
|
|
3911
3915
|
for (let c = 0; c < l.length; c += 1) {
|
|
3912
3916
|
var d;
|
|
3913
3917
|
const p = l[c], C = i[p.id], m = C.sortUndefined, y = (d = p?.desc) != null ? d : !1;
|
|
3914
|
-
let
|
|
3918
|
+
let x = 0;
|
|
3915
3919
|
if (m) {
|
|
3916
3920
|
const _ = g.getValue(p.id), R = f.getValue(p.id), P = _ === void 0, M = R === void 0;
|
|
3917
3921
|
if (P || M) {
|
|
3918
3922
|
if (m === "first") return P ? -1 : 1;
|
|
3919
3923
|
if (m === "last") return P ? 1 : -1;
|
|
3920
|
-
|
|
3924
|
+
x = P && M ? 0 : P ? m : -m;
|
|
3921
3925
|
}
|
|
3922
3926
|
}
|
|
3923
|
-
if (
|
|
3924
|
-
return y && (
|
|
3927
|
+
if (x === 0 && (x = C.sortingFn(g, f, p.id)), x !== 0)
|
|
3928
|
+
return y && (x *= -1), C.invertSorting && (x *= -1), x;
|
|
3925
3929
|
}
|
|
3926
3930
|
return g.index - f.index;
|
|
3927
3931
|
}), u.forEach((g) => {
|
|
@@ -3934,7 +3938,7 @@ function _o() {
|
|
|
3934
3938
|
flatRows: r,
|
|
3935
3939
|
rowsById: t.rowsById
|
|
3936
3940
|
};
|
|
3937
|
-
},
|
|
3941
|
+
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
3938
3942
|
}
|
|
3939
3943
|
/**
|
|
3940
3944
|
* vue-table
|
|
@@ -4021,10 +4025,10 @@ function Ro(e) {
|
|
|
4021
4025
|
...i
|
|
4022
4026
|
} : se(l, i);
|
|
4023
4027
|
}
|
|
4024
|
-
}, n ? ht(e) : e), o =
|
|
4028
|
+
}, n ? ht(e) : e), o = wo(t);
|
|
4025
4029
|
if (n) {
|
|
4026
4030
|
const l = yt(e.data);
|
|
4027
|
-
|
|
4031
|
+
wt(l, () => {
|
|
4028
4032
|
o.setState((i) => ({
|
|
4029
4033
|
...i,
|
|
4030
4034
|
data: l.value
|
|
@@ -4158,7 +4162,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4158
4162
|
return i.value;
|
|
4159
4163
|
},
|
|
4160
4164
|
columns: s.value,
|
|
4161
|
-
getCoreRowModel:
|
|
4165
|
+
getCoreRowModel: xo(),
|
|
4162
4166
|
getSortedRowModel: _o()
|
|
4163
4167
|
}), u = S(() => a.getHeaderGroups()), g = S(() => a.getRowModel().rows), f = S(() => a.getAllLeafColumns().length);
|
|
4164
4168
|
return (d, c) => (L(), h("table", null, [
|
|
@@ -4195,7 +4199,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4195
4199
|
rows: l.value,
|
|
4196
4200
|
class: "table__pagination--table"
|
|
4197
4201
|
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
4198
|
-
O(
|
|
4202
|
+
O(x1, {
|
|
4199
4203
|
currentPage: e.currentPage,
|
|
4200
4204
|
itemsPerPage: e.itemsPerPage,
|
|
4201
4205
|
totalItems: e.totalItems ?? e.rows.length,
|
|
@@ -4245,7 +4249,7 @@ const $o = ["aria-sort"], bo = /* @__PURE__ */ b({
|
|
|
4245
4249
|
return (l, i) => (L(), h("div", {
|
|
4246
4250
|
class: F(r.value)
|
|
4247
4251
|
}, [
|
|
4248
|
-
|
|
4252
|
+
xe(I("input", {
|
|
4249
4253
|
id: o.value,
|
|
4250
4254
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => t.value = s),
|
|
4251
4255
|
disabled: n.disabled,
|
|
@@ -4340,7 +4344,7 @@ export {
|
|
|
4340
4344
|
Mt as CmcInput,
|
|
4341
4345
|
nr as CmcLoading,
|
|
4342
4346
|
or as CmcLogo,
|
|
4343
|
-
|
|
4347
|
+
x1 as CmcPagination,
|
|
4344
4348
|
rr as CmcSearch,
|
|
4345
4349
|
lr as CmcSelect,
|
|
4346
4350
|
ir as CmcStatus,
|
|
@@ -4350,7 +4354,7 @@ export {
|
|
|
4350
4354
|
ur as CmcToggle,
|
|
4351
4355
|
cr as CmcWizard,
|
|
4352
4356
|
yn as buttonKindOptions,
|
|
4353
|
-
|
|
4357
|
+
wn as buttonSizeOptions,
|
|
4354
4358
|
vn as buttonVariantOptions,
|
|
4355
4359
|
ve as headingLevelOptions,
|
|
4356
4360
|
Wo as iconColorOptions,
|