@choosemycompany/ui 0.9.1 → 0.9.2
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 +12 -11
- package/dist/index.js +217 -213
- package/dist/index.umd.js +5 -5
- package/package.json +22 -17
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as U, shallowRef as ft, onMounted as pt, watch as mt, onUnmounted as ht, h as W, nextTick as jt, computed as x, createBlock as se, openBlock as v, unref as T, normalizeClass as F, createElementBlock as C, createElementVNode as L, renderSlot as z, createCommentVNode as M, Fragment as
|
|
1
|
+
import { defineComponent as P, ref as U, shallowRef as ft, onMounted as pt, watch as mt, onUnmounted as ht, h as W, nextTick as jt, computed as x, createBlock as se, openBlock as v, unref as T, normalizeClass as F, createElementBlock as C, createElementVNode as L, renderSlot as z, createCommentVNode as M, Fragment as b, toDisplayString as A, mergeModels as Te, useModel as Oe, useSlots as qt, withDirectives as vt, vModelDynamic as Ut, createVNode as G, renderList as j, vModelSelect as Kt, useId as Ct, withCtx as Be, isRef as Xt, watchEffect as Qt, createTextVNode as Wt, withKeys as le, withModifiers as We } from "vue";
|
|
2
2
|
import './assets/index.css';const Yt = {
|
|
3
3
|
primary: "primary",
|
|
4
4
|
secondary: "secondary"
|
|
@@ -20,7 +20,7 @@ import './assets/index.css';const Yt = {
|
|
|
20
20
|
plus: "ic:baseline-plus",
|
|
21
21
|
profile: "iconamoon:profile-light",
|
|
22
22
|
search: "material-symbols:search"
|
|
23
|
-
},
|
|
23
|
+
}, oi = {
|
|
24
24
|
primary: "primary",
|
|
25
25
|
secondary: "secondary",
|
|
26
26
|
light: "light"
|
|
@@ -632,7 +632,7 @@ var An = {
|
|
|
632
632
|
random: !1,
|
|
633
633
|
dataAfterTimeout: !1
|
|
634
634
|
};
|
|
635
|
-
function
|
|
635
|
+
function bn(e, o, t, n) {
|
|
636
636
|
const r = e.resources.length, i = e.random ? Math.floor(Math.random() * r) : e.index;
|
|
637
637
|
let s;
|
|
638
638
|
if (e.random) {
|
|
@@ -743,7 +743,7 @@ function Vt(e) {
|
|
|
743
743
|
t = t.filter((l) => l().status === "pending");
|
|
744
744
|
}
|
|
745
745
|
function r(l, u, a) {
|
|
746
|
-
const d =
|
|
746
|
+
const d = bn(
|
|
747
747
|
o,
|
|
748
748
|
l,
|
|
749
749
|
u,
|
|
@@ -769,7 +769,7 @@ function Vt(e) {
|
|
|
769
769
|
function nt() {
|
|
770
770
|
}
|
|
771
771
|
const Re = /* @__PURE__ */ Object.create(null);
|
|
772
|
-
function
|
|
772
|
+
function Hn(e) {
|
|
773
773
|
if (!Re[e]) {
|
|
774
774
|
const o = qe(e);
|
|
775
775
|
if (!o)
|
|
@@ -789,7 +789,7 @@ function zn(e, o, t) {
|
|
|
789
789
|
if (!i)
|
|
790
790
|
return t(void 0, 424), nt;
|
|
791
791
|
r = i.send;
|
|
792
|
-
const s =
|
|
792
|
+
const s = Hn(e);
|
|
793
793
|
s && (n = s.redundancy);
|
|
794
794
|
} else {
|
|
795
795
|
const i = Ne(e);
|
|
@@ -1221,12 +1221,12 @@ const Jn = {
|
|
|
1221
1221
|
icon: n.value
|
|
1222
1222
|
}, null, 8, ["class", "icon"]));
|
|
1223
1223
|
}
|
|
1224
|
-
}),
|
|
1224
|
+
}), E = (e, o) => {
|
|
1225
1225
|
const t = e.__vccOpts || e;
|
|
1226
1226
|
for (const [n, r] of o)
|
|
1227
1227
|
t[n] = r;
|
|
1228
1228
|
return t;
|
|
1229
|
-
}, Y = /* @__PURE__ */
|
|
1229
|
+
}, Y = /* @__PURE__ */ E(to, [["__scopeId", "data-v-3d2e1b1f"]]), no = ["disabled"], oo = { class: "button__icon" }, ro = /* @__PURE__ */ P({
|
|
1230
1230
|
name: "CmcButton",
|
|
1231
1231
|
__name: "CmcButton",
|
|
1232
1232
|
props: {
|
|
@@ -1263,7 +1263,7 @@ const Jn = {
|
|
|
1263
1263
|
z(l.$slots, "default", {}, void 0, !0)
|
|
1264
1264
|
], 10, no));
|
|
1265
1265
|
}
|
|
1266
|
-
}),
|
|
1266
|
+
}), ri = /* @__PURE__ */ E(ro, [["__scopeId", "data-v-d1e66acd"]]), Q = {
|
|
1267
1267
|
h1: "h1",
|
|
1268
1268
|
h2: "h2",
|
|
1269
1269
|
h3: "h3",
|
|
@@ -1281,7 +1281,7 @@ const Jn = {
|
|
|
1281
1281
|
heading: !0,
|
|
1282
1282
|
[`heading-${o.level}`]: !0
|
|
1283
1283
|
}));
|
|
1284
|
-
return (n, r) => (v(), C(
|
|
1284
|
+
return (n, r) => (v(), C(b, null, [
|
|
1285
1285
|
T(Q).h1 === o.level ? (v(), C("h1", {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
class: F(t.value)
|
|
@@ -1320,7 +1320,7 @@ const Jn = {
|
|
|
1320
1320
|
], 2)) : M("", !0)
|
|
1321
1321
|
], 64));
|
|
1322
1322
|
}
|
|
1323
|
-
}), so = /* @__PURE__ */
|
|
1323
|
+
}), so = /* @__PURE__ */ E(io, [["__scopeId", "data-v-34a792a2"]]), lo = {
|
|
1324
1324
|
success: "success",
|
|
1325
1325
|
danger: "danger",
|
|
1326
1326
|
warning: "warning"
|
|
@@ -1328,7 +1328,7 @@ const Jn = {
|
|
|
1328
1328
|
name: "CmcStatus",
|
|
1329
1329
|
__name: "CmcStatus",
|
|
1330
1330
|
props: {
|
|
1331
|
-
text: {
|
|
1331
|
+
text: {},
|
|
1332
1332
|
status: { default: lo.success }
|
|
1333
1333
|
},
|
|
1334
1334
|
setup(e) {
|
|
@@ -1340,10 +1340,10 @@ const Jn = {
|
|
|
1340
1340
|
class: F(t.value)
|
|
1341
1341
|
}, [
|
|
1342
1342
|
r[0] || (r[0] = L("span", { class: "status__dot" }, null, -1)),
|
|
1343
|
-
L("span", uo,
|
|
1343
|
+
L("span", uo, A(o.text), 1)
|
|
1344
1344
|
], 2));
|
|
1345
1345
|
}
|
|
1346
|
-
}),
|
|
1346
|
+
}), ii = /* @__PURE__ */ E(ao, [["__scopeId", "data-v-9ebfdda4"]]), Et = {
|
|
1347
1347
|
small: "small",
|
|
1348
1348
|
medium: "medium"
|
|
1349
1349
|
}, co = {
|
|
@@ -1394,7 +1394,7 @@ const Jn = {
|
|
|
1394
1394
|
key: 0,
|
|
1395
1395
|
for: o.id,
|
|
1396
1396
|
class: "input__label"
|
|
1397
|
-
},
|
|
1397
|
+
}, A(o.label), 9, go)) : M("", !0),
|
|
1398
1398
|
L("div", fo, [
|
|
1399
1399
|
z(a.$slots, "left", {}, void 0, !0),
|
|
1400
1400
|
vt(L("input", {
|
|
@@ -1411,10 +1411,10 @@ const Jn = {
|
|
|
1411
1411
|
]),
|
|
1412
1412
|
z(a.$slots, "right", {}, void 0, !0)
|
|
1413
1413
|
]),
|
|
1414
|
-
n.value ? (v(), C("div", mo,
|
|
1414
|
+
n.value ? (v(), C("div", mo, A(o.errorMessage), 1)) : M("", !0)
|
|
1415
1415
|
], 2));
|
|
1416
1416
|
}
|
|
1417
|
-
}), Dt = /* @__PURE__ */
|
|
1417
|
+
}), Dt = /* @__PURE__ */ E(ho, [["__scopeId", "data-v-33ea19f7"]]), ae = {
|
|
1418
1418
|
outlined: "outlined",
|
|
1419
1419
|
filled: "filled",
|
|
1420
1420
|
underline: "underline"
|
|
@@ -1430,13 +1430,13 @@ const Jn = {
|
|
|
1430
1430
|
__name: "CmcSelect",
|
|
1431
1431
|
props: /* @__PURE__ */ Te({
|
|
1432
1432
|
id: {},
|
|
1433
|
+
options: {},
|
|
1433
1434
|
label: {},
|
|
1434
1435
|
placeholder: {},
|
|
1435
1436
|
required: { type: Boolean, default: !1 },
|
|
1436
1437
|
disabled: { type: Boolean, default: !1 },
|
|
1437
1438
|
errorMessage: {},
|
|
1438
|
-
variant: { default: ae.outlined }
|
|
1439
|
-
options: {}
|
|
1439
|
+
variant: { default: ae.outlined }
|
|
1440
1440
|
}, {
|
|
1441
1441
|
modelValue: { default: "" },
|
|
1442
1442
|
modelModifiers: {}
|
|
@@ -1458,7 +1458,7 @@ const Jn = {
|
|
|
1458
1458
|
key: 0,
|
|
1459
1459
|
for: i.id,
|
|
1460
1460
|
class: "input__label"
|
|
1461
|
-
},
|
|
1461
|
+
}, A(i.label), 9, vo)) : M("", !0),
|
|
1462
1462
|
L("div", Co, [
|
|
1463
1463
|
vt(L("select", {
|
|
1464
1464
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -1467,12 +1467,12 @@ const Jn = {
|
|
|
1467
1467
|
disabled: i.disabled,
|
|
1468
1468
|
"aria-invalid": n.value
|
|
1469
1469
|
}, [
|
|
1470
|
-
i.placeholder ? (v(), C("option", _o,
|
|
1471
|
-
(v(!0), C(
|
|
1470
|
+
i.placeholder ? (v(), C("option", _o, A(i.placeholder), 1)) : M("", !0),
|
|
1471
|
+
(v(!0), C(b, null, j(i.options, (l) => (v(), C("option", {
|
|
1472
1472
|
key: l.value,
|
|
1473
1473
|
value: l.value,
|
|
1474
1474
|
disabled: l.disabled
|
|
1475
|
-
},
|
|
1475
|
+
}, A(l.label), 9, wo))), 128))
|
|
1476
1476
|
], 8, So), [
|
|
1477
1477
|
[Kt, t.value]
|
|
1478
1478
|
]),
|
|
@@ -1483,26 +1483,26 @@ const Jn = {
|
|
|
1483
1483
|
name: "chevronDown"
|
|
1484
1484
|
})
|
|
1485
1485
|
]),
|
|
1486
|
-
n.value ? (v(), C("div", Ro,
|
|
1486
|
+
n.value ? (v(), C("div", Ro, A(i.errorMessage), 1)) : M("", !0)
|
|
1487
1487
|
], 2));
|
|
1488
1488
|
}
|
|
1489
|
-
}),
|
|
1489
|
+
}), si = /* @__PURE__ */ E(yo, [["__scopeId", "data-v-2b9f4973"]]), $o = "https://cmc-ui-assets.s3.fr-par.scw.cloud/", xo = ["src"], Io = /* @__PURE__ */ P({
|
|
1490
1490
|
name: "CmcLoading",
|
|
1491
1491
|
__name: "CmcLoading",
|
|
1492
1492
|
setup(e) {
|
|
1493
|
-
const o = x(() => "/
|
|
1493
|
+
const o = x(() => $o + "img/loader-cmc.gif"), t = x(() => ({
|
|
1494
1494
|
loading: !0
|
|
1495
1495
|
}));
|
|
1496
1496
|
return (n, r) => (v(), C("img", {
|
|
1497
1497
|
class: F(t.value),
|
|
1498
1498
|
alt: "CMC Logo Loader",
|
|
1499
1499
|
src: o.value
|
|
1500
|
-
}, null, 10,
|
|
1500
|
+
}, null, 10, xo));
|
|
1501
1501
|
}
|
|
1502
|
-
}),
|
|
1502
|
+
}), li = /* @__PURE__ */ E(Io, [["__scopeId", "data-v-0c671cb3"]]), Fo = { class: "pagination" }, Po = ["disabled"], Vo = ["onClick"], Mo = {
|
|
1503
1503
|
key: 1,
|
|
1504
1504
|
class: "pagination__ellipsis"
|
|
1505
|
-
},
|
|
1505
|
+
}, Eo = ["disabled"], Do = 2, ko = /* @__PURE__ */ P({
|
|
1506
1506
|
name: "CmcPagination",
|
|
1507
1507
|
__name: "CmcPagination",
|
|
1508
1508
|
props: {
|
|
@@ -1515,13 +1515,13 @@ const Jn = {
|
|
|
1515
1515
|
setup(e, { emit: o }) {
|
|
1516
1516
|
const t = e, n = o;
|
|
1517
1517
|
function r() {
|
|
1518
|
-
return Math.ceil(t.totalItems / t.itemsPerPage);
|
|
1518
|
+
return Math.ceil((t.totalItems ?? 0) / t.itemsPerPage);
|
|
1519
1519
|
}
|
|
1520
1520
|
function i() {
|
|
1521
1521
|
return Math.max(1, Math.min(t.currentPage, r()));
|
|
1522
1522
|
}
|
|
1523
1523
|
function s() {
|
|
1524
|
-
return t.visibleRange ??
|
|
1524
|
+
return t.visibleRange ?? Do;
|
|
1525
1525
|
}
|
|
1526
1526
|
const l = x(() => {
|
|
1527
1527
|
const g = r(), c = i(), p = s();
|
|
@@ -1538,31 +1538,31 @@ const Jn = {
|
|
|
1538
1538
|
}, f = () => {
|
|
1539
1539
|
a.value && n("update:currentPage", t.currentPage + 1);
|
|
1540
1540
|
};
|
|
1541
|
-
return (g, c) => (v(), C("nav",
|
|
1541
|
+
return (g, c) => (v(), C("nav", Fo, [
|
|
1542
1542
|
L("button", {
|
|
1543
1543
|
class: F(["pagination__page-button", { "is-invisible": !u.value }]),
|
|
1544
1544
|
disabled: !u.value,
|
|
1545
1545
|
"aria-label": "Page précédente",
|
|
1546
1546
|
onClick: d
|
|
1547
|
-
}, " ‹ ", 10,
|
|
1548
|
-
(v(!0), C(
|
|
1547
|
+
}, " ‹ ", 10, Po),
|
|
1548
|
+
(v(!0), C(b, null, j(l.value, (p, m) => (v(), C(b, { key: m }, [
|
|
1549
1549
|
typeof p == "number" ? (v(), C("button", {
|
|
1550
1550
|
key: 0,
|
|
1551
1551
|
class: F(["pagination__page-button", { "is-active": p === i() }]),
|
|
1552
1552
|
onClick: () => n("update:currentPage", p)
|
|
1553
|
-
},
|
|
1553
|
+
}, A(p), 11, Vo)) : (v(), C("span", Mo, "…"))
|
|
1554
1554
|
], 64))), 128)),
|
|
1555
1555
|
L("button", {
|
|
1556
1556
|
class: F(["pagination__page-button", { "is-invisible": !a.value }]),
|
|
1557
1557
|
disabled: !a.value,
|
|
1558
1558
|
"aria-label": "Page suivante",
|
|
1559
1559
|
onClick: f
|
|
1560
|
-
}, " › ", 10,
|
|
1560
|
+
}, " › ", 10, Eo)
|
|
1561
1561
|
]));
|
|
1562
1562
|
}
|
|
1563
|
-
}),
|
|
1563
|
+
}), Lo = /* @__PURE__ */ E(ko, [["__scopeId", "data-v-8be37a19"]]), kt = {
|
|
1564
1564
|
medium: "medium"
|
|
1565
|
-
},
|
|
1565
|
+
}, Ao = /* @__PURE__ */ P({
|
|
1566
1566
|
name: "CmcButtonGroup",
|
|
1567
1567
|
__name: "CmcButtonGroup",
|
|
1568
1568
|
props: {
|
|
@@ -1579,7 +1579,7 @@ const Jn = {
|
|
|
1579
1579
|
z(n.$slots, "default", {}, void 0, !0)
|
|
1580
1580
|
], 2));
|
|
1581
1581
|
}
|
|
1582
|
-
}),
|
|
1582
|
+
}), bo = /* @__PURE__ */ E(Ao, [["__scopeId", "data-v-e9a8f405"]]), Ho = /* @__PURE__ */ P({
|
|
1583
1583
|
name: "CmcSearch",
|
|
1584
1584
|
__name: "CmcSearch",
|
|
1585
1585
|
props: /* @__PURE__ */ Te({
|
|
@@ -1623,7 +1623,7 @@ const Jn = {
|
|
|
1623
1623
|
}, 8, ["id", "modelValue", "placeholder", "size", "variant"])
|
|
1624
1624
|
], 2));
|
|
1625
1625
|
}
|
|
1626
|
-
}),
|
|
1626
|
+
}), ui = /* @__PURE__ */ E(Ho, [["__scopeId", "data-v-1d69ad4a"]]), zo = { key: 1 }, Go = /* @__PURE__ */ P({
|
|
1627
1627
|
__name: "HighlightText",
|
|
1628
1628
|
props: {
|
|
1629
1629
|
text: {},
|
|
@@ -1653,21 +1653,21 @@ const Jn = {
|
|
|
1653
1653
|
isHighlighted: !1
|
|
1654
1654
|
}), i;
|
|
1655
1655
|
}
|
|
1656
|
-
return (n, r) => (v(!0), C(
|
|
1656
|
+
return (n, r) => (v(!0), C(b, null, j(t(o.text, o.searchTerm), (i, s) => (v(), C(b, { key: s }, [
|
|
1657
1657
|
i.isHighlighted ? (v(), C("span", {
|
|
1658
1658
|
key: 0,
|
|
1659
1659
|
class: F(["highlight__match", n.highlightClass])
|
|
1660
|
-
},
|
|
1660
|
+
}, A(i.text), 3)) : (v(), C("span", zo, A(i.text), 1))
|
|
1661
1661
|
], 64))), 128));
|
|
1662
1662
|
}
|
|
1663
|
-
}),
|
|
1663
|
+
}), To = /* @__PURE__ */ E(Go, [["__scopeId", "data-v-914c4ca9"]]), Oo = {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "autocomplete__list",
|
|
1666
1666
|
role: "listbox"
|
|
1667
|
-
},
|
|
1667
|
+
}, Bo = { key: 1 }, No = ["onClick"], jo = {
|
|
1668
1668
|
key: 2,
|
|
1669
1669
|
class: "autocomplete__list--no-results"
|
|
1670
|
-
},
|
|
1670
|
+
}, qo = /* @__PURE__ */ P({
|
|
1671
1671
|
name: "CmcAutocomplete",
|
|
1672
1672
|
__name: "CmcAutocomplete",
|
|
1673
1673
|
props: {
|
|
@@ -1736,7 +1736,7 @@ const Jn = {
|
|
|
1736
1736
|
]),
|
|
1737
1737
|
_: 1
|
|
1738
1738
|
}, 8, ["id", "modelValue", "label", "placeholder"]),
|
|
1739
|
-
r.value ? (v(), C("div",
|
|
1739
|
+
r.value ? (v(), C("div", Oo, [
|
|
1740
1740
|
o.loading ? (v(), se(Y, {
|
|
1741
1741
|
key: 0,
|
|
1742
1742
|
"aria-hidden": "true",
|
|
@@ -1744,25 +1744,25 @@ const Jn = {
|
|
|
1744
1744
|
color: "light",
|
|
1745
1745
|
name: "loading"
|
|
1746
1746
|
})) : M("", !0),
|
|
1747
|
-
l.value.length > 0 ? (v(), C("ul",
|
|
1748
|
-
(v(!0), C(
|
|
1747
|
+
l.value.length > 0 ? (v(), C("ul", Bo, [
|
|
1748
|
+
(v(!0), C(b, null, j(l.value, (h, S) => (v(), C("li", {
|
|
1749
1749
|
key: S,
|
|
1750
1750
|
onClick: (R) => u(h)
|
|
1751
1751
|
}, [
|
|
1752
|
-
G(
|
|
1752
|
+
G(To, {
|
|
1753
1753
|
"search-term": t.value,
|
|
1754
1754
|
text: h
|
|
1755
1755
|
}, null, 8, ["search-term", "text"])
|
|
1756
|
-
], 8,
|
|
1757
|
-
])) : r.value && !l.value.length ? (v(), C("div",
|
|
1756
|
+
], 8, No))), 128))
|
|
1757
|
+
])) : r.value && !l.value.length ? (v(), C("div", jo, A(o.emptyValue), 1)) : M("", !0)
|
|
1758
1758
|
])) : M("", !0)
|
|
1759
1759
|
], 34));
|
|
1760
1760
|
}
|
|
1761
|
-
}),
|
|
1761
|
+
}), ai = /* @__PURE__ */ E(qo, [["__scopeId", "data-v-aed660c5"]]), ci = /* @__PURE__ */ P({
|
|
1762
1762
|
name: "CmcTitle",
|
|
1763
1763
|
__name: "CmcTitle",
|
|
1764
1764
|
setup(e) {
|
|
1765
|
-
return (o, t) => (v(), C(
|
|
1765
|
+
return (o, t) => (v(), C(b, null, [
|
|
1766
1766
|
G(so, {
|
|
1767
1767
|
level: T(Q).h1
|
|
1768
1768
|
}, {
|
|
@@ -1788,7 +1788,7 @@ const Jn = {
|
|
|
1788
1788
|
function K(e, o) {
|
|
1789
1789
|
return typeof e == "function" ? e(o) : e;
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function H(e, o) {
|
|
1792
1792
|
return (t) => {
|
|
1793
1793
|
o.setState((n) => ({
|
|
1794
1794
|
...n,
|
|
@@ -1799,10 +1799,10 @@ function b(e, o) {
|
|
|
1799
1799
|
function _e(e) {
|
|
1800
1800
|
return e instanceof Function;
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function Uo(e) {
|
|
1803
1803
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Ko(e, o) {
|
|
1806
1806
|
const t = [], n = (r) => {
|
|
1807
1807
|
r.forEach((i) => {
|
|
1808
1808
|
t.push(i);
|
|
@@ -1846,7 +1846,7 @@ function w(e, o, t, n) {
|
|
|
1846
1846
|
onChange: n
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Xo(e, o, t, n) {
|
|
1850
1850
|
const r = () => {
|
|
1851
1851
|
var s;
|
|
1852
1852
|
return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
|
|
@@ -1869,7 +1869,7 @@ function Ko(e, o, t, n) {
|
|
|
1869
1869
|
s.createCell == null || s.createCell(i, t, o, e);
|
|
1870
1870
|
}, {}), i;
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function Qo(e, o, t, n) {
|
|
1873
1873
|
var r, i;
|
|
1874
1874
|
const l = {
|
|
1875
1875
|
...e._getDefaultColumnDef(),
|
|
@@ -1909,7 +1909,7 @@ function Xo(e, o, t, n) {
|
|
|
1909
1909
|
g.createColumn == null || g.createColumn(f, e);
|
|
1910
1910
|
return f;
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1912
|
+
const D = "debugHeaders";
|
|
1913
1913
|
function ct(e, o, t) {
|
|
1914
1914
|
var n;
|
|
1915
1915
|
let i = {
|
|
@@ -1939,33 +1939,33 @@ function ct(e, o, t) {
|
|
|
1939
1939
|
s.createHeader == null || s.createHeader(i, e);
|
|
1940
1940
|
}), i;
|
|
1941
1941
|
}
|
|
1942
|
-
const
|
|
1942
|
+
const Wo = {
|
|
1943
1943
|
createTable: (e) => {
|
|
1944
1944
|
e.getHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
1945
1945
|
var i, s;
|
|
1946
1946
|
const l = (i = n?.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], u = (s = r?.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? s : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
1947
1947
|
return ce(o, [...l, ...a, ...u], e);
|
|
1948
|
-
}, w(e.options,
|
|
1948
|
+
}, w(e.options, D, "getHeaderGroups")), e.getCenterHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), ce(o, t, e, "center")), w(e.options, D, "getCenterHeaderGroups")), e.getLeftHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
1949
1949
|
var r;
|
|
1950
1950
|
const i = (r = n?.map((s) => t.find((l) => l.id === s)).filter(Boolean)) != null ? r : [];
|
|
1951
1951
|
return ce(o, i, e, "left");
|
|
1952
|
-
}, w(e.options,
|
|
1952
|
+
}, w(e.options, D, "getLeftHeaderGroups")), e.getRightHeaderGroups = _(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
1953
1953
|
var r;
|
|
1954
1954
|
const i = (r = n?.map((s) => t.find((l) => l.id === s)).filter(Boolean)) != null ? r : [];
|
|
1955
1955
|
return ce(o, i, e, "right");
|
|
1956
|
-
}, w(e.options,
|
|
1956
|
+
}, w(e.options, D, "getRightHeaderGroups")), e.getFooterGroups = _(() => [e.getHeaderGroups()], (o) => [...o].reverse(), w(e.options, D, "getFooterGroups")), e.getLeftFooterGroups = _(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), w(e.options, D, "getLeftFooterGroups")), e.getCenterFooterGroups = _(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), w(e.options, D, "getCenterFooterGroups")), e.getRightFooterGroups = _(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), w(e.options, D, "getRightFooterGroups")), e.getFlatHeaders = _(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, D, "getFlatHeaders")), e.getLeftFlatHeaders = _(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, D, "getLeftFlatHeaders")), e.getCenterFlatHeaders = _(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, D, "getCenterFlatHeaders")), e.getRightFlatHeaders = _(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, D, "getRightFlatHeaders")), e.getCenterLeafHeaders = _(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
1957
1957
|
var n;
|
|
1958
1958
|
return !((n = t.subHeaders) != null && n.length);
|
|
1959
|
-
}), w(e.options,
|
|
1959
|
+
}), w(e.options, D, "getCenterLeafHeaders")), e.getLeftLeafHeaders = _(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
1960
1960
|
var n;
|
|
1961
1961
|
return !((n = t.subHeaders) != null && n.length);
|
|
1962
|
-
}), w(e.options,
|
|
1962
|
+
}), w(e.options, D, "getLeftLeafHeaders")), e.getRightLeafHeaders = _(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
1963
1963
|
var n;
|
|
1964
1964
|
return !((n = t.subHeaders) != null && n.length);
|
|
1965
|
-
}), w(e.options,
|
|
1965
|
+
}), w(e.options, D, "getRightLeafHeaders")), e.getLeafHeaders = _(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
1966
1966
|
var r, i, s, l, u, a;
|
|
1967
1967
|
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(s = (l = t[0]) == null ? void 0 : l.headers) != null ? s : [], ...(u = (a = n[0]) == null ? void 0 : a.headers) != null ? u : []].map((d) => d.getLeafHeaders()).flat();
|
|
1968
|
-
}, w(e.options,
|
|
1968
|
+
}, w(e.options, D, "getLeafHeaders"));
|
|
1969
1969
|
}
|
|
1970
1970
|
};
|
|
1971
1971
|
function ce(e, o, t, n) {
|
|
@@ -2024,7 +2024,7 @@ function ce(e, o, t, n) {
|
|
|
2024
2024
|
});
|
|
2025
2025
|
return f((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
|
|
2026
2026
|
}
|
|
2027
|
-
const
|
|
2027
|
+
const Yo = (e, o, t, n, r, i, s) => {
|
|
2028
2028
|
let l = {
|
|
2029
2029
|
id: o,
|
|
2030
2030
|
index: n,
|
|
@@ -2052,7 +2052,7 @@ const Wo = (e, o, t, n, r, i, s) => {
|
|
|
2052
2052
|
return (a = l.getValue(u)) != null ? a : e.options.renderFallbackValue;
|
|
2053
2053
|
},
|
|
2054
2054
|
subRows: [],
|
|
2055
|
-
getLeafRows: () =>
|
|
2055
|
+
getLeafRows: () => Ko(l.subRows, (u) => u.subRows),
|
|
2056
2056
|
getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
|
|
2057
2057
|
getParentRows: () => {
|
|
2058
2058
|
let u = [], a = l;
|
|
@@ -2063,7 +2063,7 @@ const Wo = (e, o, t, n, r, i, s) => {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
return u.reverse();
|
|
2065
2065
|
},
|
|
2066
|
-
getAllCells: _(() => [e.getAllLeafColumns()], (u) => u.map((a) =>
|
|
2066
|
+
getAllCells: _(() => [e.getAllLeafColumns()], (u) => u.map((a) => Xo(e, l, a, a.id)), w(e.options, "debugRows", "getAllCells")),
|
|
2067
2067
|
_getAllCellsByColumnId: _(() => [l.getAllCells()], (u) => u.reduce((a, d) => (a[d.column.id] = d, a), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
2068
2068
|
};
|
|
2069
2069
|
for (let u = 0; u < e._features.length; u++) {
|
|
@@ -2071,7 +2071,7 @@ const Wo = (e, o, t, n, r, i, s) => {
|
|
|
2071
2071
|
a == null || a.createRow == null || a.createRow(l, e);
|
|
2072
2072
|
}
|
|
2073
2073
|
return l;
|
|
2074
|
-
},
|
|
2074
|
+
}, Zo = {
|
|
2075
2075
|
createColumn: (e, o) => {
|
|
2076
2076
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
2077
2077
|
if (e._getFacetedMinMaxValues)
|
|
@@ -2089,16 +2089,16 @@ const At = (e, o, t) => {
|
|
|
2089
2089
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
2090
2090
|
};
|
|
2091
2091
|
At.autoRemove = (e) => O(e);
|
|
2092
|
-
const
|
|
2092
|
+
const bt = (e, o, t) => {
|
|
2093
2093
|
var n;
|
|
2094
2094
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
|
2095
2095
|
};
|
|
2096
|
-
|
|
2097
|
-
const
|
|
2096
|
+
bt.autoRemove = (e) => O(e);
|
|
2097
|
+
const Ht = (e, o, t) => {
|
|
2098
2098
|
var n;
|
|
2099
2099
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
2100
2100
|
};
|
|
2101
|
-
|
|
2101
|
+
Ht.autoRemove = (e) => O(e);
|
|
2102
2102
|
const zt = (e, o, t) => !t.some((n) => {
|
|
2103
2103
|
var r;
|
|
2104
2104
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
@@ -2130,8 +2130,8 @@ Ue.autoRemove = (e) => O(e) || O(e[0]) && O(e[1]);
|
|
|
2130
2130
|
const N = {
|
|
2131
2131
|
includesString: Lt,
|
|
2132
2132
|
includesStringSensitive: At,
|
|
2133
|
-
equalsString:
|
|
2134
|
-
arrIncludes:
|
|
2133
|
+
equalsString: bt,
|
|
2134
|
+
arrIncludes: Ht,
|
|
2135
2135
|
arrIncludesAll: zt,
|
|
2136
2136
|
arrIncludesSome: Gt,
|
|
2137
2137
|
equals: Tt,
|
|
@@ -2141,7 +2141,7 @@ const N = {
|
|
|
2141
2141
|
function O(e) {
|
|
2142
2142
|
return e == null || e === "";
|
|
2143
2143
|
}
|
|
2144
|
-
const
|
|
2144
|
+
const Jo = {
|
|
2145
2145
|
getDefaultColumnDef: () => ({
|
|
2146
2146
|
filterFn: "auto"
|
|
2147
2147
|
}),
|
|
@@ -2150,7 +2150,7 @@ const Zo = {
|
|
|
2150
2150
|
...e
|
|
2151
2151
|
}),
|
|
2152
2152
|
getDefaultOptions: (e) => ({
|
|
2153
|
-
onColumnFiltersChange:
|
|
2153
|
+
onColumnFiltersChange: H("columnFilters", e),
|
|
2154
2154
|
filterFromLeafRows: !1,
|
|
2155
2155
|
maxLeafRowFilterDepth: 100
|
|
2156
2156
|
}),
|
|
@@ -2219,54 +2219,54 @@ const Zo = {
|
|
|
2219
2219
|
function dt(e, o, t) {
|
|
2220
2220
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2222
|
+
const er = (e, o, t) => t.reduce((n, r) => {
|
|
2223
2223
|
const i = r.getValue(e);
|
|
2224
2224
|
return n + (typeof i == "number" ? i : 0);
|
|
2225
|
-
}, 0),
|
|
2225
|
+
}, 0), tr = (e, o, t) => {
|
|
2226
2226
|
let n;
|
|
2227
2227
|
return t.forEach((r) => {
|
|
2228
2228
|
const i = r.getValue(e);
|
|
2229
2229
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
2230
2230
|
}), n;
|
|
2231
|
-
},
|
|
2231
|
+
}, nr = (e, o, t) => {
|
|
2232
2232
|
let n;
|
|
2233
2233
|
return t.forEach((r) => {
|
|
2234
2234
|
const i = r.getValue(e);
|
|
2235
2235
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
2236
2236
|
}), n;
|
|
2237
|
-
},
|
|
2237
|
+
}, or = (e, o, t) => {
|
|
2238
2238
|
let n, r;
|
|
2239
2239
|
return t.forEach((i) => {
|
|
2240
2240
|
const s = i.getValue(e);
|
|
2241
2241
|
s != null && (n === void 0 ? s >= s && (n = r = s) : (n > s && (n = s), r < s && (r = s)));
|
|
2242
2242
|
}), [n, r];
|
|
2243
|
-
},
|
|
2243
|
+
}, rr = (e, o) => {
|
|
2244
2244
|
let t = 0, n = 0;
|
|
2245
2245
|
if (o.forEach((r) => {
|
|
2246
2246
|
let i = r.getValue(e);
|
|
2247
2247
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
2248
2248
|
}), t) return n / t;
|
|
2249
|
-
},
|
|
2249
|
+
}, ir = (e, o) => {
|
|
2250
2250
|
if (!o.length)
|
|
2251
2251
|
return;
|
|
2252
2252
|
const t = o.map((i) => i.getValue(e));
|
|
2253
|
-
if (!
|
|
2253
|
+
if (!Uo(t))
|
|
2254
2254
|
return;
|
|
2255
2255
|
if (t.length === 1)
|
|
2256
2256
|
return t[0];
|
|
2257
2257
|
const n = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
|
|
2258
2258
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
2259
|
-
},
|
|
2260
|
-
sum:
|
|
2261
|
-
min:
|
|
2262
|
-
max:
|
|
2263
|
-
extent:
|
|
2264
|
-
mean:
|
|
2265
|
-
median:
|
|
2266
|
-
unique:
|
|
2267
|
-
uniqueCount:
|
|
2268
|
-
count:
|
|
2269
|
-
},
|
|
2259
|
+
}, sr = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), lr = (e, o) => new Set(o.map((t) => t.getValue(e))).size, ur = (e, o) => o.length, ye = {
|
|
2260
|
+
sum: er,
|
|
2261
|
+
min: tr,
|
|
2262
|
+
max: nr,
|
|
2263
|
+
extent: or,
|
|
2264
|
+
mean: rr,
|
|
2265
|
+
median: ir,
|
|
2266
|
+
unique: sr,
|
|
2267
|
+
uniqueCount: lr,
|
|
2268
|
+
count: ur
|
|
2269
|
+
}, ar = {
|
|
2270
2270
|
getDefaultColumnDef: () => ({
|
|
2271
2271
|
aggregatedCell: (e) => {
|
|
2272
2272
|
var o, t;
|
|
@@ -2279,7 +2279,7 @@ const Jo = (e, o, t) => t.reduce((n, r) => {
|
|
|
2279
2279
|
...e
|
|
2280
2280
|
}),
|
|
2281
2281
|
getDefaultOptions: (e) => ({
|
|
2282
|
-
onGroupingChange:
|
|
2282
|
+
onGroupingChange: H("grouping", e),
|
|
2283
2283
|
groupedColumnMode: "reorder"
|
|
2284
2284
|
}),
|
|
2285
2285
|
createColumn: (e, o) => {
|
|
@@ -2333,19 +2333,19 @@ const Jo = (e, o, t) => t.reduce((n, r) => {
|
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
};
|
|
2336
|
-
function
|
|
2336
|
+
function cr(e, o, t) {
|
|
2337
2337
|
if (!(o != null && o.length) || !t)
|
|
2338
2338
|
return e;
|
|
2339
2339
|
const n = e.filter((i) => !o.includes(i.id));
|
|
2340
2340
|
return t === "remove" ? n : [...o.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...n];
|
|
2341
2341
|
}
|
|
2342
|
-
const
|
|
2342
|
+
const dr = {
|
|
2343
2343
|
getInitialState: (e) => ({
|
|
2344
2344
|
columnOrder: [],
|
|
2345
2345
|
...e
|
|
2346
2346
|
}),
|
|
2347
2347
|
getDefaultOptions: (e) => ({
|
|
2348
|
-
onColumnOrderChange:
|
|
2348
|
+
onColumnOrderChange: H("columnOrder", e)
|
|
2349
2349
|
}),
|
|
2350
2350
|
createColumn: (e, o) => {
|
|
2351
2351
|
e.getIndex = _((t) => [re(o, t)], (t) => t.findIndex((n) => n.id === e.id), w(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
@@ -2373,19 +2373,19 @@ const cr = {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
i = [...i, ...l];
|
|
2375
2375
|
}
|
|
2376
|
-
return
|
|
2376
|
+
return cr(i, t, n);
|
|
2377
2377
|
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
2378
2378
|
}
|
|
2379
2379
|
}, $e = () => ({
|
|
2380
2380
|
left: [],
|
|
2381
2381
|
right: []
|
|
2382
|
-
}),
|
|
2382
|
+
}), gr = {
|
|
2383
2383
|
getInitialState: (e) => ({
|
|
2384
2384
|
columnPinning: $e(),
|
|
2385
2385
|
...e
|
|
2386
2386
|
}),
|
|
2387
2387
|
getDefaultOptions: (e) => ({
|
|
2388
|
-
onColumnPinningChange:
|
|
2388
|
+
onColumnPinningChange: H("columnPinning", e)
|
|
2389
2389
|
}),
|
|
2390
2390
|
createColumn: (e, o) => {
|
|
2391
2391
|
e.pin = (t) => {
|
|
@@ -2456,7 +2456,7 @@ const cr = {
|
|
|
2456
2456
|
}, w(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
2457
2457
|
}
|
|
2458
2458
|
};
|
|
2459
|
-
function
|
|
2459
|
+
function fr(e) {
|
|
2460
2460
|
return e || (typeof document < "u" ? document : null);
|
|
2461
2461
|
}
|
|
2462
2462
|
const de = {
|
|
@@ -2470,7 +2470,7 @@ const de = {
|
|
|
2470
2470
|
deltaPercentage: null,
|
|
2471
2471
|
isResizingColumn: !1,
|
|
2472
2472
|
columnSizingStart: []
|
|
2473
|
-
}),
|
|
2473
|
+
}), pr = {
|
|
2474
2474
|
getDefaultColumnDef: () => de,
|
|
2475
2475
|
getInitialState: (e) => ({
|
|
2476
2476
|
columnSizing: {},
|
|
@@ -2480,8 +2480,8 @@ const de = {
|
|
|
2480
2480
|
getDefaultOptions: (e) => ({
|
|
2481
2481
|
columnResizeMode: "onEnd",
|
|
2482
2482
|
columnResizeDirection: "ltr",
|
|
2483
|
-
onColumnSizingChange:
|
|
2484
|
-
onColumnSizingInfoChange:
|
|
2483
|
+
onColumnSizingChange: H("columnSizing", e),
|
|
2484
|
+
onColumnSizingInfoChange: H("columnSizingInfo", e)
|
|
2485
2485
|
}),
|
|
2486
2486
|
createColumn: (e, o) => {
|
|
2487
2487
|
e.getSize = () => {
|
|
@@ -2550,7 +2550,7 @@ const de = {
|
|
|
2550
2550
|
deltaPercentage: null,
|
|
2551
2551
|
columnSizingStart: []
|
|
2552
2552
|
}));
|
|
2553
|
-
}, c =
|
|
2553
|
+
}, c = fr(t), p = {
|
|
2554
2554
|
moveHandler: (S) => f(S.clientX),
|
|
2555
2555
|
upHandler: (S) => {
|
|
2556
2556
|
c?.removeEventListener("mousemove", p.moveHandler), c?.removeEventListener("mouseup", p.upHandler), g(S.clientX);
|
|
@@ -2561,7 +2561,7 @@ const de = {
|
|
|
2561
2561
|
var R;
|
|
2562
2562
|
c?.removeEventListener("touchmove", m.moveHandler), c?.removeEventListener("touchend", m.upHandler), S.cancelable && (S.preventDefault(), S.stopPropagation()), g((R = S.touches[0]) == null ? void 0 : R.clientX);
|
|
2563
2563
|
}
|
|
2564
|
-
}, h =
|
|
2564
|
+
}, h = mr() ? {
|
|
2565
2565
|
passive: !1
|
|
2566
2566
|
} : !1;
|
|
2567
2567
|
Ie(i) ? (c?.addEventListener("touchmove", m.moveHandler, h), c?.addEventListener("touchend", m.upHandler, h)) : (c?.addEventListener("mousemove", p.moveHandler, h), c?.addEventListener("mouseup", p.upHandler, h)), o.setColumnSizingInfo((S) => ({
|
|
@@ -2599,7 +2599,7 @@ const de = {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
};
|
|
2601
2601
|
let ge = null;
|
|
2602
|
-
function
|
|
2602
|
+
function mr() {
|
|
2603
2603
|
if (typeof ge == "boolean") return ge;
|
|
2604
2604
|
let e = !1;
|
|
2605
2605
|
try {
|
|
@@ -2618,13 +2618,13 @@ function pr() {
|
|
|
2618
2618
|
function Ie(e) {
|
|
2619
2619
|
return e.type === "touchstart";
|
|
2620
2620
|
}
|
|
2621
|
-
const
|
|
2621
|
+
const hr = {
|
|
2622
2622
|
getInitialState: (e) => ({
|
|
2623
2623
|
columnVisibility: {},
|
|
2624
2624
|
...e
|
|
2625
2625
|
}),
|
|
2626
2626
|
getDefaultOptions: (e) => ({
|
|
2627
|
-
onColumnVisibilityChange:
|
|
2627
|
+
onColumnVisibilityChange: H("columnVisibility", e)
|
|
2628
2628
|
}),
|
|
2629
2629
|
createColumn: (e, o) => {
|
|
2630
2630
|
e.toggleVisibility = (t) => {
|
|
@@ -2666,20 +2666,20 @@ const mr = {
|
|
|
2666
2666
|
function re(e, o) {
|
|
2667
2667
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2669
|
+
const vr = {
|
|
2670
2670
|
createTable: (e) => {
|
|
2671
2671
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
2672
2672
|
if (e._getGlobalFacetedMinMaxValues)
|
|
2673
2673
|
return e._getGlobalFacetedMinMaxValues();
|
|
2674
2674
|
};
|
|
2675
2675
|
}
|
|
2676
|
-
},
|
|
2676
|
+
}, Cr = {
|
|
2677
2677
|
getInitialState: (e) => ({
|
|
2678
2678
|
globalFilter: void 0,
|
|
2679
2679
|
...e
|
|
2680
2680
|
}),
|
|
2681
2681
|
getDefaultOptions: (e) => ({
|
|
2682
|
-
onGlobalFilterChange:
|
|
2682
|
+
onGlobalFilterChange: H("globalFilter", e),
|
|
2683
2683
|
globalFilterFn: "auto",
|
|
2684
2684
|
getColumnCanGlobalFilter: (o) => {
|
|
2685
2685
|
var t;
|
|
@@ -2706,13 +2706,13 @@ const hr = {
|
|
|
2706
2706
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
|
-
},
|
|
2709
|
+
}, Sr = {
|
|
2710
2710
|
getInitialState: (e) => ({
|
|
2711
2711
|
expanded: {},
|
|
2712
2712
|
...e
|
|
2713
2713
|
}),
|
|
2714
2714
|
getDefaultOptions: (e) => ({
|
|
2715
|
-
onExpandedChange:
|
|
2715
|
+
onExpandedChange: H("expanded", e),
|
|
2716
2716
|
paginateExpandedRows: !0
|
|
2717
2717
|
}),
|
|
2718
2718
|
createTable: (e) => {
|
|
@@ -2793,10 +2793,10 @@ const hr = {
|
|
|
2793
2793
|
};
|
|
2794
2794
|
};
|
|
2795
2795
|
}
|
|
2796
|
-
}, Ae = 0,
|
|
2796
|
+
}, Ae = 0, be = 10, Fe = () => ({
|
|
2797
2797
|
pageIndex: Ae,
|
|
2798
|
-
pageSize:
|
|
2799
|
-
}),
|
|
2798
|
+
pageSize: be
|
|
2799
|
+
}), _r = {
|
|
2800
2800
|
getInitialState: (e) => ({
|
|
2801
2801
|
...e,
|
|
2802
2802
|
pagination: {
|
|
@@ -2805,7 +2805,7 @@ const hr = {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
}),
|
|
2807
2807
|
getDefaultOptions: (e) => ({
|
|
2808
|
-
onPaginationChange:
|
|
2808
|
+
onPaginationChange: H("pagination", e)
|
|
2809
2809
|
}),
|
|
2810
2810
|
createTable: (e) => {
|
|
2811
2811
|
let o = !1, t = !1;
|
|
@@ -2843,7 +2843,7 @@ const hr = {
|
|
|
2843
2843
|
e.setPageIndex(n ? Ae : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : Ae);
|
|
2844
2844
|
}, e.resetPageSize = (n) => {
|
|
2845
2845
|
var r, i;
|
|
2846
|
-
e.setPageSize(n ?
|
|
2846
|
+
e.setPageSize(n ? be : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : be);
|
|
2847
2847
|
}, e.setPageSize = (n) => {
|
|
2848
2848
|
e.setPagination((r) => {
|
|
2849
2849
|
const i = Math.max(1, K(n, r.pageSize)), s = r.pageSize * r.pageIndex, l = Math.floor(s / i);
|
|
@@ -2879,13 +2879,13 @@ const hr = {
|
|
|
2879
2879
|
}, Pe = () => ({
|
|
2880
2880
|
top: [],
|
|
2881
2881
|
bottom: []
|
|
2882
|
-
}),
|
|
2882
|
+
}), wr = {
|
|
2883
2883
|
getInitialState: (e) => ({
|
|
2884
2884
|
rowPinning: Pe(),
|
|
2885
2885
|
...e
|
|
2886
2886
|
}),
|
|
2887
2887
|
getDefaultOptions: (e) => ({
|
|
2888
|
-
onRowPinningChange:
|
|
2888
|
+
onRowPinningChange: H("rowPinning", e)
|
|
2889
2889
|
}),
|
|
2890
2890
|
createRow: (e, o) => {
|
|
2891
2891
|
e.pin = (t, n, r) => {
|
|
@@ -2980,13 +2980,13 @@ const hr = {
|
|
|
2980
2980
|
return o.filter((i) => !r.has(i.id));
|
|
2981
2981
|
}, w(e.options, "debugRows", "getCenterRows"));
|
|
2982
2982
|
}
|
|
2983
|
-
},
|
|
2983
|
+
}, Rr = {
|
|
2984
2984
|
getInitialState: (e) => ({
|
|
2985
2985
|
rowSelection: {},
|
|
2986
2986
|
...e
|
|
2987
2987
|
}),
|
|
2988
2988
|
getDefaultOptions: (e) => ({
|
|
2989
|
-
onRowSelectionChange:
|
|
2989
|
+
onRowSelectionChange: H("rowSelection", e),
|
|
2990
2990
|
enableRowSelection: !0,
|
|
2991
2991
|
enableMultiRowSelection: !0,
|
|
2992
2992
|
enableSubRowSelection: !0
|
|
@@ -3015,7 +3015,7 @@ const hr = {
|
|
|
3015
3015
|
...t
|
|
3016
3016
|
};
|
|
3017
3017
|
return e.getRowModel().rows.forEach((i) => {
|
|
3018
|
-
|
|
3018
|
+
He(r, i.id, n, !0, e);
|
|
3019
3019
|
}), r;
|
|
3020
3020
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = _(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Ve(e, t) : {
|
|
3021
3021
|
rows: [],
|
|
@@ -3064,7 +3064,7 @@ const hr = {
|
|
|
3064
3064
|
const l = {
|
|
3065
3065
|
...i
|
|
3066
3066
|
};
|
|
3067
|
-
return
|
|
3067
|
+
return He(l, e.id, t, (s = n?.selectChildren) != null ? s : !0, o), l;
|
|
3068
3068
|
});
|
|
3069
3069
|
}, e.getIsSelected = () => {
|
|
3070
3070
|
const {
|
|
@@ -3098,10 +3098,10 @@ const hr = {
|
|
|
3098
3098
|
};
|
|
3099
3099
|
};
|
|
3100
3100
|
}
|
|
3101
|
-
},
|
|
3101
|
+
}, He = (e, o, t, n, r) => {
|
|
3102
3102
|
var i;
|
|
3103
3103
|
const s = r.getRow(o, !0);
|
|
3104
|
-
t ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((l) =>
|
|
3104
|
+
t ? (s.getCanMultiSelect() || Object.keys(e).forEach((l) => delete e[l]), s.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((l) => He(e, l.id, t, n, r));
|
|
3105
3105
|
};
|
|
3106
3106
|
function Ve(e, o) {
|
|
3107
3107
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(s, l) {
|
|
@@ -3136,10 +3136,10 @@ function ze(e, o, t) {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
}), r ? "all" : i ? "some" : !1;
|
|
3138
3138
|
}
|
|
3139
|
-
const Ge = /([0-9]+)/gm,
|
|
3139
|
+
const Ge = /([0-9]+)/gm, yr = (e, o, t) => Bt(X(e.getValue(t)).toLowerCase(), X(o.getValue(t)).toLowerCase()), $r = (e, o, t) => Bt(X(e.getValue(t)), X(o.getValue(t))), xr = (e, o, t) => Xe(X(e.getValue(t)).toLowerCase(), X(o.getValue(t)).toLowerCase()), Ir = (e, o, t) => Xe(X(e.getValue(t)), X(o.getValue(t))), Fr = (e, o, t) => {
|
|
3140
3140
|
const n = e.getValue(t), r = o.getValue(t);
|
|
3141
3141
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
3142
|
-
},
|
|
3142
|
+
}, Pr = (e, o, t) => Xe(e.getValue(t), o.getValue(t));
|
|
3143
3143
|
function Xe(e, o) {
|
|
3144
3144
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
3145
3145
|
}
|
|
@@ -3167,13 +3167,13 @@ function Bt(e, o) {
|
|
|
3167
3167
|
return t.length - n.length;
|
|
3168
3168
|
}
|
|
3169
3169
|
const ne = {
|
|
3170
|
-
alphanumeric:
|
|
3171
|
-
alphanumericCaseSensitive:
|
|
3172
|
-
text:
|
|
3173
|
-
textCaseSensitive:
|
|
3174
|
-
datetime:
|
|
3175
|
-
basic:
|
|
3176
|
-
},
|
|
3170
|
+
alphanumeric: yr,
|
|
3171
|
+
alphanumericCaseSensitive: $r,
|
|
3172
|
+
text: xr,
|
|
3173
|
+
textCaseSensitive: Ir,
|
|
3174
|
+
datetime: Fr,
|
|
3175
|
+
basic: Pr
|
|
3176
|
+
}, Vr = {
|
|
3177
3177
|
getInitialState: (e) => ({
|
|
3178
3178
|
sorting: [],
|
|
3179
3179
|
...e
|
|
@@ -3183,7 +3183,7 @@ const ne = {
|
|
|
3183
3183
|
sortUndefined: 1
|
|
3184
3184
|
}),
|
|
3185
3185
|
getDefaultOptions: (e) => ({
|
|
3186
|
-
onSortingChange:
|
|
3186
|
+
onSortingChange: H("sorting", e),
|
|
3187
3187
|
isMultiSortEvent: (o) => o.shiftKey
|
|
3188
3188
|
}),
|
|
3189
3189
|
createColumn: (e, o) => {
|
|
@@ -3262,30 +3262,30 @@ const ne = {
|
|
|
3262
3262
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
3263
3263
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
3264
3264
|
}
|
|
3265
|
-
},
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
cr,
|
|
3265
|
+
}, Mr = [
|
|
3266
|
+
Wo,
|
|
3267
|
+
hr,
|
|
3269
3268
|
dr,
|
|
3270
|
-
|
|
3269
|
+
gr,
|
|
3271
3270
|
Zo,
|
|
3272
|
-
|
|
3273
|
-
//depends on ColumnFaceting
|
|
3271
|
+
Jo,
|
|
3274
3272
|
vr,
|
|
3273
|
+
//depends on ColumnFaceting
|
|
3274
|
+
Cr,
|
|
3275
3275
|
//depends on ColumnFiltering
|
|
3276
|
-
|
|
3277
|
-
|
|
3276
|
+
Vr,
|
|
3277
|
+
ar,
|
|
3278
3278
|
//depends on RowSorting
|
|
3279
|
-
Cr,
|
|
3280
3279
|
Sr,
|
|
3281
3280
|
_r,
|
|
3282
3281
|
wr,
|
|
3283
|
-
|
|
3282
|
+
Rr,
|
|
3283
|
+
pr
|
|
3284
3284
|
];
|
|
3285
|
-
function
|
|
3285
|
+
function Er(e) {
|
|
3286
3286
|
var o, t;
|
|
3287
3287
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
3288
|
-
const n = [...
|
|
3288
|
+
const n = [...Mr, ...(o = e._features) != null ? o : []];
|
|
3289
3289
|
let r = {
|
|
3290
3290
|
_features: n
|
|
3291
3291
|
};
|
|
@@ -3365,7 +3365,7 @@ function Mr(e) {
|
|
|
3365
3365
|
getAllColumns: _(() => [r._getColumnDefs()], (g) => {
|
|
3366
3366
|
const c = function(p, m, h) {
|
|
3367
3367
|
return h === void 0 && (h = 0), p.map((S) => {
|
|
3368
|
-
const R =
|
|
3368
|
+
const R = Qo(r, S, h, m), y = S;
|
|
3369
3369
|
return R.columns = y.columns ? c(y.columns, R, h + 1) : [], R;
|
|
3370
3370
|
});
|
|
3371
3371
|
};
|
|
@@ -3389,7 +3389,7 @@ function Mr(e) {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
return r;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function Dr() {
|
|
3393
3393
|
return (e) => _(() => [e.options.data], (o) => {
|
|
3394
3394
|
const t = {
|
|
3395
3395
|
rows: [],
|
|
@@ -3399,7 +3399,7 @@ function Er() {
|
|
|
3399
3399
|
i === void 0 && (i = 0);
|
|
3400
3400
|
const l = [];
|
|
3401
3401
|
for (let a = 0; a < r.length; a++) {
|
|
3402
|
-
const d =
|
|
3402
|
+
const d = Yo(e, e._getRowId(r[a], a, s), r[a], a, i, void 0, s?.id);
|
|
3403
3403
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
3404
3404
|
var u;
|
|
3405
3405
|
d.originalSubRows = e.options.getSubRows(r[a], a), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
@@ -3410,7 +3410,7 @@ function Er() {
|
|
|
3410
3410
|
return t.rows = n(o), t;
|
|
3411
3411
|
}, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
3412
3412
|
}
|
|
3413
|
-
function
|
|
3413
|
+
function kr() {
|
|
3414
3414
|
return (e) => _(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
3415
3415
|
if (!t.rows.length || !(o != null && o.length))
|
|
3416
3416
|
return t;
|
|
@@ -3472,9 +3472,9 @@ function Dr() {
|
|
|
3472
3472
|
function fe() {
|
|
3473
3473
|
return !0;
|
|
3474
3474
|
}
|
|
3475
|
-
const
|
|
3475
|
+
const Lr = Symbol("merge-proxy"), Ar = {
|
|
3476
3476
|
get(e, o, t) {
|
|
3477
|
-
return o ===
|
|
3477
|
+
return o === Lr ? t : e.get(o);
|
|
3478
3478
|
},
|
|
3479
3479
|
has(e, o) {
|
|
3480
3480
|
return e.has(o);
|
|
@@ -3519,7 +3519,7 @@ function oe() {
|
|
|
3519
3519
|
for (let r = 0; r < o.length; r++) n.push(...Object.keys(Me(o[r])));
|
|
3520
3520
|
return [...Array.from(new Set(n))];
|
|
3521
3521
|
}
|
|
3522
|
-
},
|
|
3522
|
+
}, Ar);
|
|
3523
3523
|
}
|
|
3524
3524
|
const Nt = P({
|
|
3525
3525
|
props: ["render", "props"],
|
|
@@ -3530,7 +3530,7 @@ function gt(e) {
|
|
|
3530
3530
|
data: T(e.data)
|
|
3531
3531
|
});
|
|
3532
3532
|
}
|
|
3533
|
-
function
|
|
3533
|
+
function br(e) {
|
|
3534
3534
|
const o = Xt(e.data), t = oe({
|
|
3535
3535
|
state: {},
|
|
3536
3536
|
// Dummy state
|
|
@@ -3544,7 +3544,7 @@ function Ar(e) {
|
|
|
3544
3544
|
...s
|
|
3545
3545
|
} : oe(i, s);
|
|
3546
3546
|
}
|
|
3547
|
-
}, o ? gt(e) : e), n =
|
|
3547
|
+
}, o ? gt(e) : e), n = Er(t);
|
|
3548
3548
|
if (o) {
|
|
3549
3549
|
const i = ft(e.data);
|
|
3550
3550
|
mt(i, () => {
|
|
@@ -3577,7 +3577,7 @@ function Ar(e) {
|
|
|
3577
3577
|
});
|
|
3578
3578
|
}), n;
|
|
3579
3579
|
}
|
|
3580
|
-
const Hr = ["aria-sort"],
|
|
3580
|
+
const Hr = ["aria-sort"], zr = /* @__PURE__ */ P({
|
|
3581
3581
|
__name: "CmcTableHeader",
|
|
3582
3582
|
props: {
|
|
3583
3583
|
headerGroups: {}
|
|
@@ -3588,10 +3588,10 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3588
3588
|
return n ? n === "asc" ? "ascending" : "descending" : "none";
|
|
3589
3589
|
};
|
|
3590
3590
|
return (t, n) => (v(), C("thead", null, [
|
|
3591
|
-
(v(!0), C(
|
|
3591
|
+
(v(!0), C(b, null, j(t.headerGroups, (r) => (v(), C("tr", {
|
|
3592
3592
|
key: r.id
|
|
3593
3593
|
}, [
|
|
3594
|
-
(v(!0), C(
|
|
3594
|
+
(v(!0), C(b, null, j(r.headers, (i) => (v(), C("th", {
|
|
3595
3595
|
key: i.id,
|
|
3596
3596
|
"aria-sort": o(i),
|
|
3597
3597
|
scope: "col"
|
|
@@ -3605,7 +3605,7 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3605
3605
|
]))), 128))
|
|
3606
3606
|
]));
|
|
3607
3607
|
}
|
|
3608
|
-
}),
|
|
3608
|
+
}), Gr = /* @__PURE__ */ E(zr, [["__scopeId", "data-v-9eba66c8"]]), Tr = { key: 0 }, Or = { key: 1 }, Br = ["colspan"], Nr = /* @__PURE__ */ P({
|
|
3609
3609
|
__name: "CmcTableBody",
|
|
3610
3610
|
props: {
|
|
3611
3611
|
rows: {},
|
|
@@ -3613,11 +3613,11 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3613
3613
|
leafColCount: {}
|
|
3614
3614
|
},
|
|
3615
3615
|
setup(e) {
|
|
3616
|
-
return (o, t) => o.rows.length ? (v(), C("tbody",
|
|
3617
|
-
(v(!0), C(
|
|
3616
|
+
return (o, t) => o.rows.length ? (v(), C("tbody", Tr, [
|
|
3617
|
+
(v(!0), C(b, null, j(o.rows, (n) => (v(), C("tr", {
|
|
3618
3618
|
key: n.id
|
|
3619
3619
|
}, [
|
|
3620
|
-
(v(!0), C(
|
|
3620
|
+
(v(!0), C(b, null, j(n.getVisibleCells(), (r) => (v(), C("td", {
|
|
3621
3621
|
key: r.id
|
|
3622
3622
|
}, [
|
|
3623
3623
|
G(T(Nt), {
|
|
@@ -3626,20 +3626,20 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3626
3626
|
}, null, 8, ["props", "render"])
|
|
3627
3627
|
]))), 128))
|
|
3628
3628
|
]))), 128))
|
|
3629
|
-
])) : (v(), C("tbody",
|
|
3629
|
+
])) : (v(), C("tbody", Or, [
|
|
3630
3630
|
L("tr", null, [
|
|
3631
3631
|
L("td", {
|
|
3632
3632
|
colspan: o.leafColCount,
|
|
3633
3633
|
class: "td__empty"
|
|
3634
3634
|
}, [
|
|
3635
3635
|
z(o.$slots, "empty", {}, () => [
|
|
3636
|
-
Wt(
|
|
3636
|
+
Wt(A(o.emptyText), 1)
|
|
3637
3637
|
], !0)
|
|
3638
|
-
], 8,
|
|
3638
|
+
], 8, Br)
|
|
3639
3639
|
])
|
|
3640
3640
|
]));
|
|
3641
3641
|
}
|
|
3642
|
-
}),
|
|
3642
|
+
}), jr = /* @__PURE__ */ E(Nr, [["__scopeId", "data-v-f962b8ac"]]), qr = /* @__PURE__ */ P({
|
|
3643
3643
|
__name: "CmcTable",
|
|
3644
3644
|
props: {
|
|
3645
3645
|
rows: { default: () => [] },
|
|
@@ -3665,7 +3665,7 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3665
3665
|
})), c.type === "buttons" && (c.cellRenderer = ({ getValue: p }) => {
|
|
3666
3666
|
const h = p().map((S) => n(S));
|
|
3667
3667
|
return W(
|
|
3668
|
-
|
|
3668
|
+
bo,
|
|
3669
3669
|
{ gap: kt.medium },
|
|
3670
3670
|
() => h
|
|
3671
3671
|
);
|
|
@@ -3676,30 +3676,30 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3676
3676
|
})
|
|
3677
3677
|
), i = (g) => g.map((c) => ({ ...c })), s = x(() => i(o.rows)), l = x(
|
|
3678
3678
|
() => r(o.columns)
|
|
3679
|
-
), u =
|
|
3679
|
+
), u = br({
|
|
3680
3680
|
get data() {
|
|
3681
3681
|
return s.value;
|
|
3682
3682
|
},
|
|
3683
3683
|
columns: l.value,
|
|
3684
|
-
getCoreRowModel:
|
|
3685
|
-
getSortedRowModel:
|
|
3684
|
+
getCoreRowModel: Dr(),
|
|
3685
|
+
getSortedRowModel: kr()
|
|
3686
3686
|
}), a = x(() => u.getHeaderGroups()), d = x(() => u.getRowModel().rows), f = x(() => u.getAllLeafColumns().length);
|
|
3687
3687
|
return (g, c) => (v(), C("table", null, [
|
|
3688
|
-
G(
|
|
3689
|
-
G(
|
|
3688
|
+
G(Gr, { headerGroups: a.value }, null, 8, ["headerGroups"]),
|
|
3689
|
+
G(jr, {
|
|
3690
3690
|
rows: d.value,
|
|
3691
3691
|
emptyText: g.emptyText,
|
|
3692
3692
|
leafColCount: f.value
|
|
3693
3693
|
}, null, 8, ["rows", "emptyText", "leafColCount"])
|
|
3694
3694
|
]));
|
|
3695
3695
|
}
|
|
3696
|
-
}),
|
|
3696
|
+
}), Ur = /* @__PURE__ */ E(qr, [["__scopeId", "data-v-b5d0ccaf"]]), Kr = ["aria-current", "aria-label", "onClick", "onKeydown"], Xr = {
|
|
3697
3697
|
key: 1,
|
|
3698
3698
|
class: "wizard__number"
|
|
3699
|
-
},
|
|
3699
|
+
}, Qr = { class: "wizard__label" }, Wr = ["tabindex", "onClick", "onKeydown"], Yr = {
|
|
3700
3700
|
key: 0,
|
|
3701
3701
|
class: "wizard__separator"
|
|
3702
|
-
},
|
|
3702
|
+
}, Zr = /* @__PURE__ */ P({
|
|
3703
3703
|
name: "CmcWizard",
|
|
3704
3704
|
__name: "CmcWizard",
|
|
3705
3705
|
props: {
|
|
@@ -3726,7 +3726,7 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3726
3726
|
class: F(["wizard", { "wizard--clickable": f.clickable }]),
|
|
3727
3727
|
role: "list"
|
|
3728
3728
|
}, [
|
|
3729
|
-
(v(!0), C(
|
|
3729
|
+
(v(!0), C(b, null, j(f.steps, (c, p) => (v(), C(b, { key: p }, [
|
|
3730
3730
|
L("div", {
|
|
3731
3731
|
class: F(["wizard__step", s(p)]),
|
|
3732
3732
|
"aria-current": a(p) ? "step" : void 0,
|
|
@@ -3741,9 +3741,9 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3741
3741
|
key: 0,
|
|
3742
3742
|
color: "secondary",
|
|
3743
3743
|
name: "check"
|
|
3744
|
-
})) : (v(), C("span",
|
|
3745
|
-
], 42,
|
|
3746
|
-
L("div",
|
|
3744
|
+
})) : (v(), C("span", Xr, A(p + 1), 1))
|
|
3745
|
+
], 42, Kr),
|
|
3746
|
+
L("div", Qr, [
|
|
3747
3747
|
L("span", {
|
|
3748
3748
|
class: F(["wizard__label-text", l(p)]),
|
|
3749
3749
|
tabindex: f.clickable ? 0 : -1,
|
|
@@ -3752,19 +3752,21 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3752
3752
|
le((m) => i(p), ["enter"]),
|
|
3753
3753
|
le(We((m) => i(p), ["prevent"]), ["space"])
|
|
3754
3754
|
]
|
|
3755
|
-
},
|
|
3755
|
+
}, A(c.label), 43, Wr)
|
|
3756
3756
|
]),
|
|
3757
|
-
n.value !== p ? (v(), C("hr",
|
|
3757
|
+
n.value !== p ? (v(), C("hr", Yr)) : M("", !0)
|
|
3758
3758
|
], 64))), 128))
|
|
3759
3759
|
], 2));
|
|
3760
3760
|
}
|
|
3761
|
-
}),
|
|
3761
|
+
}), di = /* @__PURE__ */ E(Zr, [["__scopeId", "data-v-f6bee53d"]]), Jr = { class: "table__pagination" }, ei = 10, ti = /* @__PURE__ */ P({
|
|
3762
3762
|
__name: "CmcTablePagination",
|
|
3763
3763
|
props: {
|
|
3764
|
+
itemsPerPage: { default: ei },
|
|
3765
|
+
currentPage: { default: 1 },
|
|
3764
3766
|
rows: { default: () => [] },
|
|
3765
3767
|
columns: { default: () => [] },
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
+
totalItems: {},
|
|
3769
|
+
emptyText: {}
|
|
3768
3770
|
},
|
|
3769
3771
|
emits: ["update:currentPage"],
|
|
3770
3772
|
setup(e, { emit: o }) {
|
|
@@ -3774,41 +3776,43 @@ const Hr = ["aria-sort"], br = /* @__PURE__ */ P({
|
|
|
3774
3776
|
const s = (t.currentPage - 1) * t.itemsPerPage;
|
|
3775
3777
|
return t.rows.slice(s, s + t.itemsPerPage);
|
|
3776
3778
|
});
|
|
3777
|
-
return (s, l) => (v(), C(
|
|
3778
|
-
G(
|
|
3779
|
+
return (s, l) => (v(), C("div", Jr, [
|
|
3780
|
+
G(Ur, {
|
|
3779
3781
|
columns: s.columns,
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3782
|
+
"empty-text": s.emptyText,
|
|
3783
|
+
rows: i.value,
|
|
3784
|
+
class: "table__pagination--table"
|
|
3785
|
+
}, null, 8, ["columns", "empty-text", "rows"]),
|
|
3786
|
+
G(Lo, {
|
|
3783
3787
|
currentPage: s.currentPage,
|
|
3784
3788
|
itemsPerPage: s.itemsPerPage,
|
|
3785
|
-
totalItems: s.rows.length,
|
|
3789
|
+
totalItems: s.totalItems ?? s.rows.length,
|
|
3786
3790
|
"onUpdate:currentPage": r
|
|
3787
3791
|
}, null, 8, ["currentPage", "itemsPerPage", "totalItems"])
|
|
3788
|
-
]
|
|
3792
|
+
]));
|
|
3789
3793
|
}
|
|
3790
|
-
});
|
|
3794
|
+
}), gi = /* @__PURE__ */ E(ti, [["__scopeId", "data-v-a2a0b05e"]]);
|
|
3791
3795
|
export {
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3796
|
+
ai as CmcAutocomplete,
|
|
3797
|
+
ri as CmcButton,
|
|
3798
|
+
bo as CmcButtonGroup,
|
|
3795
3799
|
so as CmcHeading,
|
|
3796
3800
|
Y as CmcIcon,
|
|
3797
3801
|
Dt as CmcInputText,
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3802
|
+
li as CmcLoading,
|
|
3803
|
+
Lo as CmcPagination,
|
|
3804
|
+
ui as CmcSearch,
|
|
3805
|
+
si as CmcSelect,
|
|
3806
|
+
ii as CmcStatus,
|
|
3807
|
+
Ur as CmcTable,
|
|
3808
|
+
gi as CmcTablePagination,
|
|
3809
|
+
ci as CmcTitle,
|
|
3810
|
+
di as CmcWizard,
|
|
3807
3811
|
Yt as buttonKindOptions,
|
|
3808
3812
|
Jt as buttonSizeOptions,
|
|
3809
3813
|
Zt as buttonVariantOptions,
|
|
3810
3814
|
Q as headingLevelOptions,
|
|
3811
|
-
|
|
3815
|
+
oi as iconColorOptions,
|
|
3812
3816
|
Ye as iconNameOptions,
|
|
3813
3817
|
Et as inputTextSizeOptions,
|
|
3814
3818
|
co as inputTextTypeOptions,
|