@espresso-lab/mantine-data-table 1.9.9 → 1.9.10
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/index.es.js +127 -133
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4578,7 +4578,7 @@ ${new this._window.XMLSerializer().serializeToString(p)}`;
|
|
|
4578
4578
|
}
|
|
4579
4579
|
U2();
|
|
4580
4580
|
const Oh = hl(void 0);
|
|
4581
|
-
function
|
|
4581
|
+
function bx(i) {
|
|
4582
4582
|
const n = kn.c(9), {
|
|
4583
4583
|
children: r,
|
|
4584
4584
|
baseUrl: s,
|
|
@@ -4654,7 +4654,7 @@ async function V2(i, n) {
|
|
|
4654
4654
|
return r;
|
|
4655
4655
|
}).then((r) => r.status == 204 ? n : r.json()).then((r) => r);
|
|
4656
4656
|
}
|
|
4657
|
-
async function
|
|
4657
|
+
async function xx(i, n, r) {
|
|
4658
4658
|
return fetch(n, {
|
|
4659
4659
|
method: i,
|
|
4660
4660
|
headers: await hi(),
|
|
@@ -7360,14 +7360,14 @@ function Jw(i) {
|
|
|
7360
7360
|
isPending: se
|
|
7361
7361
|
} = Rh(g, u), ue = oe || se;
|
|
7362
7362
|
let Z;
|
|
7363
|
-
n[0] !== r ? (Z = new Set(r.filter(
|
|
7363
|
+
n[0] !== r ? (Z = new Set(r.filter(rb).map(nb)), n[0] = r, n[1] = Z) : Z = n[1];
|
|
7364
7364
|
let te;
|
|
7365
7365
|
n[2] !== Z ? (te = [...Z], n[2] = Z, n[3] = te) : te = n[3];
|
|
7366
7366
|
const Q = te;
|
|
7367
7367
|
let G;
|
|
7368
|
-
n[4] !== r ? (G = r.reduce(
|
|
7368
|
+
n[4] !== r ? (G = r.reduce(tb, {}), n[4] = r, n[5] = G) : G = n[5];
|
|
7369
7369
|
let he;
|
|
7370
|
-
n[6] !== r ? (he = r.filter(
|
|
7370
|
+
n[6] !== r ? (he = r.filter(eb).reduce(Xw, {}), n[6] = r, n[7] = he) : he = n[7];
|
|
7371
7371
|
let fe;
|
|
7372
7372
|
n[8] !== G || n[9] !== he ? (fe = {
|
|
7373
7373
|
mode: "uncontrolled",
|
|
@@ -7434,26 +7434,23 @@ function Jw(i) {
|
|
|
7434
7434
|
] }), n[44] = p, n[45] = k, n[46] = b) : b = n[46], b;
|
|
7435
7435
|
}
|
|
7436
7436
|
function Xw(i, n) {
|
|
7437
|
-
return i[n.id] =
|
|
7437
|
+
return i[n.id] = (r, s) => n.conditional && !n.conditional(s) || r ? null : "Pflichtfeld", i;
|
|
7438
7438
|
}
|
|
7439
7439
|
function eb(i) {
|
|
7440
|
-
return i ? null : "Pflichtfeld";
|
|
7441
|
-
}
|
|
7442
|
-
function tb(i) {
|
|
7443
7440
|
return i.required;
|
|
7444
7441
|
}
|
|
7445
|
-
function
|
|
7442
|
+
function tb(i, n) {
|
|
7446
7443
|
return i[n.id] = n.type === "boolean" ? !1 : n.defaultValue ?? "", i;
|
|
7447
7444
|
}
|
|
7448
|
-
function
|
|
7445
|
+
function nb(i) {
|
|
7449
7446
|
return i.step;
|
|
7450
7447
|
}
|
|
7451
|
-
function
|
|
7448
|
+
function rb(i) {
|
|
7452
7449
|
return typeof i.step == "number";
|
|
7453
7450
|
}
|
|
7454
|
-
var [
|
|
7451
|
+
var [ib, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColumnProvider"), Vf = (i) => {
|
|
7455
7452
|
let { children: n, columnsOrder: r, setColumnsOrder: s, columnsToggle: u, setColumnsToggle: g, resetColumnsOrder: m, resetColumnsToggle: h, setColumnWidth: C, setMultipleColumnWidths: A, resetColumnsWidth: R } = i, [N, M] = Xe(""), [L, I] = Xe("");
|
|
7456
|
-
return O.jsx(
|
|
7453
|
+
return O.jsx(ib, { value: { sourceColumn: N, setSourceColumn: M, targetColumn: L, setTargetColumn: I, columnsToggle: u, setColumnsToggle: g, swapColumns: () => {
|
|
7457
7454
|
if (!r || !s || !N || !L) return;
|
|
7458
7455
|
let $ = r.indexOf(N), q = r.indexOf(L);
|
|
7459
7456
|
if ($ !== -1 && q !== -1) {
|
|
@@ -7462,16 +7459,16 @@ var [ob, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColum
|
|
|
7462
7459
|
}
|
|
7463
7460
|
}, resetColumnsOrder: m, resetColumnsToggle: h, setColumnWidth: C, setMultipleColumnWidths: A, resetColumnsWidth: R }, children: n });
|
|
7464
7461
|
};
|
|
7465
|
-
function
|
|
7462
|
+
function ob() {
|
|
7466
7463
|
return O.jsx("tr", { className: "mantine-datatable-empty-row", children: O.jsx("td", {}) });
|
|
7467
7464
|
}
|
|
7468
|
-
function
|
|
7465
|
+
function sb() {
|
|
7469
7466
|
return O.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" }), O.jsx("path", { d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" }), O.jsx("path", { d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" }), O.jsx("path", { d: "M3 3l18 18" })] });
|
|
7470
7467
|
}
|
|
7471
|
-
function
|
|
7472
|
-
return O.jsx(oi, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: s || O.jsxs(O.Fragment, { children: [i || O.jsx("div", { className: "mantine-datatable-empty-state-icon", children: O.jsx(
|
|
7468
|
+
function ab({ icon: i, text: n, active: r, children: s }) {
|
|
7469
|
+
return O.jsx(oi, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: s || O.jsxs(O.Fragment, { children: [i || O.jsx("div", { className: "mantine-datatable-empty-state-icon", children: O.jsx(sb, {}) }), O.jsx(Gi, { component: "div", size: "sm", c: "dimmed", children: n })] }) });
|
|
7473
7470
|
}
|
|
7474
|
-
var
|
|
7471
|
+
var lb = ({ key: i, columns: n = [], getInitialValueInEffect: r = !0 }) => {
|
|
7475
7472
|
function s(Z, te) {
|
|
7476
7473
|
let Q = [];
|
|
7477
7474
|
return Z.forEach((G) => {
|
|
@@ -7565,7 +7562,7 @@ function Ka(i, n, r) {
|
|
|
7565
7562
|
};
|
|
7566
7563
|
}
|
|
7567
7564
|
}
|
|
7568
|
-
function
|
|
7565
|
+
function ub({ scrollCallbacks: i, withRowBorders: n }) {
|
|
7569
7566
|
let r = { root: yt(null), table: yt(null), scrollViewport: yt(null), header: yt(null), footer: yt(null), selectionColumnHeader: yt(null) }, { root: s, table: u, scrollViewport: g, header: m, footer: h, selectionColumnHeader: C } = r, A = Zf({ withRowBorders: n }), R = Zf(i), N = yt(() => {
|
|
7570
7567
|
}), M = yt(() => {
|
|
7571
7568
|
}), L = Fn((I) => {
|
|
@@ -7619,13 +7616,13 @@ function cb({ scrollCallbacks: i, withRowBorders: n }) {
|
|
|
7619
7616
|
M.current();
|
|
7620
7617
|
}, [n]), { refs: r, onScroll: L };
|
|
7621
7618
|
}
|
|
7622
|
-
function
|
|
7619
|
+
function cb(i) {
|
|
7623
7620
|
let [n, r] = Xe(null), s = i?.join(":") || "";
|
|
7624
7621
|
return xt(() => {
|
|
7625
7622
|
r(null);
|
|
7626
7623
|
}, [s]), { lastSelectionChangeIndex: n, setLastSelectionChangeIndex: r };
|
|
7627
7624
|
}
|
|
7628
|
-
function
|
|
7625
|
+
function fb(i, n) {
|
|
7629
7626
|
let r = () => {
|
|
7630
7627
|
n(i.map((u) => u.matches));
|
|
7631
7628
|
}, s = i.map((u) => {
|
|
@@ -7639,20 +7636,20 @@ function hb(i, n) {
|
|
|
7639
7636
|
s.forEach((u) => u());
|
|
7640
7637
|
};
|
|
7641
7638
|
}
|
|
7642
|
-
function
|
|
7639
|
+
function hb(i, n) {
|
|
7643
7640
|
return n || (typeof window < "u" && "matchMedia" in window ? i.map((r) => window.matchMedia(r).matches) : i.map(() => !1));
|
|
7644
7641
|
}
|
|
7645
|
-
function
|
|
7646
|
-
let [s, u] = Xe(r ? n :
|
|
7642
|
+
function db(i, n, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
|
|
7643
|
+
let [s, u] = Xe(r ? n : hb(i, n)), g = yt(null);
|
|
7647
7644
|
return xt(() => {
|
|
7648
|
-
if ("matchMedia" in window) return g.current = i.map((m) => window.matchMedia(m)), u(g.current.map((m) => m.matches)),
|
|
7645
|
+
if ("matchMedia" in window) return g.current = i.map((m) => window.matchMedia(m)), u(g.current.map((m) => m.matches)), fb(g.current, (m) => {
|
|
7649
7646
|
u(m);
|
|
7650
7647
|
});
|
|
7651
7648
|
}, [i]), s;
|
|
7652
7649
|
}
|
|
7653
|
-
function
|
|
7650
|
+
function pb(i) {
|
|
7654
7651
|
let n = dh(), r = Lr(() => i.map((u) => (typeof u == "function" ? u(n) : u) ?? ""), [i, n]), s = Lr(() => i.map(() => !0), [i]);
|
|
7655
|
-
return
|
|
7652
|
+
return db(r, s);
|
|
7656
7653
|
}
|
|
7657
7654
|
function xs(i) {
|
|
7658
7655
|
let n = dh(), r = typeof i == "function" ? i(n) : i;
|
|
@@ -7662,7 +7659,7 @@ function Al(i) {
|
|
|
7662
7659
|
let n = i.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase();
|
|
7663
7660
|
return `${n.charAt(0).toUpperCase()}${n.slice(1)}`;
|
|
7664
7661
|
}
|
|
7665
|
-
function
|
|
7662
|
+
function gb(i, n, r) {
|
|
7666
7663
|
return i.filter((s) => !n.map(r).includes(r(s)));
|
|
7667
7664
|
}
|
|
7668
7665
|
function Za(i, n) {
|
|
@@ -7674,7 +7671,7 @@ function Hh(i, n) {
|
|
|
7674
7671
|
function $t(i, n) {
|
|
7675
7672
|
return typeof n == "string" ? Hh(i, n) : n(i);
|
|
7676
7673
|
}
|
|
7677
|
-
function
|
|
7674
|
+
function vb({ rowExpansion: i, records: n, idAccessor: r }) {
|
|
7678
7675
|
let s = [];
|
|
7679
7676
|
if (i && n) {
|
|
7680
7677
|
let { trigger: h, allowMultiple: C, initiallyExpanded: A } = i;
|
|
@@ -7691,43 +7688,43 @@ function mb({ rowExpansion: i, records: n, idAccessor: r }) {
|
|
|
7691
7688
|
}, collapseRow: M, collapseProps: R, content: ({ record: L, index: I }) => () => N({ record: L, index: I, collapse: () => M(L) }) };
|
|
7692
7689
|
}
|
|
7693
7690
|
}
|
|
7694
|
-
function
|
|
7691
|
+
function mb(i, n) {
|
|
7695
7692
|
let [r, s] = Xe(i), [u, g] = Xe(i), m = Hc(() => s(!0), 0), h = Hc(() => g(!1), n || 200);
|
|
7696
7693
|
return xt(() => {
|
|
7697
7694
|
i ? (h.clear(), g(!0), m.start()) : (m.clear(), s(!1), h.start());
|
|
7698
7695
|
}, [m, h, i]), { expanded: r, visible: u };
|
|
7699
7696
|
}
|
|
7700
|
-
var Ol = "mantine-datatable-nowrap", Rl = "mantine-datatable-ellipsis", li = "mantine-datatable-pointer-cursor", Gh = "mantine-datatable-context-menu-cursor",
|
|
7701
|
-
function
|
|
7697
|
+
var Ol = "mantine-datatable-nowrap", Rl = "mantine-datatable-ellipsis", li = "mantine-datatable-pointer-cursor", Gh = "mantine-datatable-context-menu-cursor", yb = "mantine-datatable-text-selection-disabled", Cs = "mantine-datatable-text-align-left", Ss = "mantine-datatable-text-align-center", Ds = "mantine-datatable-text-align-right";
|
|
7698
|
+
function _b({ className: i, style: n, visibleMediaQuery: r, title: s, noWrap: u, ellipsis: g, textAlign: m, width: h }) {
|
|
7702
7699
|
return xs(r) ? O.jsx(Ji, { className: ft({ [Ol]: u || g, [Rl]: g, [Cs]: m === "left", [Ss]: m === "center", [Ds]: m === "right" }, i), style: [{ width: h, minWidth: h, maxWidth: h }, n], children: s }) : null;
|
|
7703
7700
|
}
|
|
7704
|
-
function
|
|
7701
|
+
function wb({ shadowVisible: i }) {
|
|
7705
7702
|
return O.jsx(Ji, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": i || void 0 });
|
|
7706
7703
|
}
|
|
7707
|
-
function
|
|
7708
|
-
return O.jsx(ey, { ref: m, className: ft("mantine-datatable-footer", i), style: n, children: O.jsxs(ai, { children: [u && O.jsx(
|
|
7704
|
+
function bb({ className: i, style: n, columns: r, defaultColumnProps: s, selectionVisible: u, selectorCellShadowVisible: g, ref: m }) {
|
|
7705
|
+
return O.jsx(ey, { ref: m, className: ft("mantine-datatable-footer", i), style: n, children: O.jsxs(ai, { children: [u && O.jsx(wb, { shadowVisible: g }), r.map(({ hidden: h, ...C }) => {
|
|
7709
7706
|
if (h) return null;
|
|
7710
7707
|
let { accessor: A, visibleMediaQuery: R, textAlign: N, width: M, footer: L, footerClassName: I, footerStyle: $, noWrap: q, ellipsis: oe } = { ...s, ...C };
|
|
7711
|
-
return O.jsx(
|
|
7708
|
+
return O.jsx(_b, { className: I, style: $, visibleMediaQuery: R, textAlign: N, width: M, title: L, noWrap: q, ellipsis: oe }, A);
|
|
7712
7709
|
})] }) });
|
|
7713
7710
|
}
|
|
7714
|
-
function
|
|
7715
|
-
let m = Lr(() => n.map(({ visibleMediaQuery: A }) => A), [n]), h =
|
|
7711
|
+
function xb({ group: { id: i, columns: n, title: r, textAlign: s, className: u, style: g } }) {
|
|
7712
|
+
let m = Lr(() => n.map(({ visibleMediaQuery: A }) => A), [n]), h = pb(m), C = Lr(() => n.filter(({ hidden: A }, R) => !A && h?.[R]).length, [n, h]);
|
|
7716
7713
|
return C > 0 ? O.jsx(Ji, { colSpan: C, className: ft("mantine-datatable-column-group-header-cell", { [Cs]: s === "left", [Ss]: s === "center", [Ds]: s === "right" }, u), style: g, children: r ?? Al(i) }) : null;
|
|
7717
7714
|
}
|
|
7718
|
-
function
|
|
7715
|
+
function Cb() {
|
|
7719
7716
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
|
|
7720
7717
|
}
|
|
7721
|
-
function
|
|
7718
|
+
function Sb() {
|
|
7722
7719
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
|
|
7723
7720
|
}
|
|
7724
|
-
function
|
|
7725
|
-
let [u, { close: g, toggle: m }] = yy(!1), h = n ?
|
|
7721
|
+
function Db({ children: i, isActive: n, filterPopoverProps: r, filterPopoverDisableClickOutside: s }) {
|
|
7722
|
+
let [u, { close: g, toggle: m }] = yy(!1), h = n ? Sb : Cb, C = vh(g);
|
|
7726
7723
|
return s && (C = void 0), O.jsxs(qi, { withArrow: !0, shadow: "md", opened: u, onClose: g, trapFocus: !0, ...r, children: [O.jsx(fh, { children: O.jsx(Xo, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": n || void 0, size: "sm", variant: "default", onClick: (A) => {
|
|
7727
7724
|
A.preventDefault(), m();
|
|
7728
7725
|
}, onKeyDown: (A) => A.stopPropagation(), children: O.jsx(h, {}) }) }), O.jsx(hh, { ref: C, onClick: (A) => A.stopPropagation(), onKeyDown: (A) => A.stopPropagation(), children: typeof i == "function" ? i({ close: g }) : i })] });
|
|
7729
7726
|
}
|
|
7730
|
-
var
|
|
7727
|
+
var Ab = (i) => {
|
|
7731
7728
|
let { accessor: n, columnRef: r } = i, [s, u] = Xe(!1), g = yt(0), m = yt({ current: 0, next: 0 }), { setMultipleColumnWidths: h } = Dl(), C = Fn((R) => {
|
|
7732
7729
|
if (R.preventDefault(), R.stopPropagation(), !r.current) return;
|
|
7733
7730
|
let N = r.current, M = N.nextElementSibling;
|
|
@@ -7779,19 +7776,19 @@ var Ob = (i) => {
|
|
|
7779
7776
|
}, [n, h]);
|
|
7780
7777
|
return O.jsx("div", { className: "mantine-datatable-header-resizable-handle", style: { cursor: s ? "col-resize" : void 0 }, onMouseDown: C, onDoubleClick: A, onClick: (R) => R.stopPropagation(), title: "Drag to resize column, double-click to reset" });
|
|
7781
7778
|
};
|
|
7782
|
-
function
|
|
7779
|
+
function Ob() {
|
|
7783
7780
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M12 5l0 14" }), O.jsx("path", { d: "M16 9l-4 -4" }), O.jsx("path", { d: "M8 9l4 -4" })] });
|
|
7784
7781
|
}
|
|
7785
|
-
function
|
|
7782
|
+
function Rb() {
|
|
7786
7783
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M8 7l4 -4l4 4" }), O.jsx("path", { d: "M8 17l4 4l4 -4" }), O.jsx("path", { d: "M12 3l0 18" })] });
|
|
7787
7784
|
}
|
|
7788
|
-
function
|
|
7785
|
+
function Eb() {
|
|
7789
7786
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" })] });
|
|
7790
7787
|
}
|
|
7791
|
-
function
|
|
7788
|
+
function Pb() {
|
|
7792
7789
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M18 6l-12 12" }), O.jsx("path", { d: "M6 6l12 12" })] });
|
|
7793
7790
|
}
|
|
7794
|
-
function
|
|
7791
|
+
function Tb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title: u, sortable: g, draggable: m, toggleable: h, resizable: C, sortIcons: A, textAlign: R, width: N, sortStatus: M, onSortStatusChange: L, filter: I, filterPopoverProps: $, filterPopoverDisableClickOutside: q, filtering: oe, sortKey: ae }) {
|
|
7795
7792
|
let { setSourceColumn: se, setTargetColumn: ue, swapColumns: Z, setColumnsToggle: te } = Dl(), [Q, G] = Xe(!1), he = yt(null);
|
|
7796
7793
|
if (!xs(s)) return null;
|
|
7797
7794
|
let fe = u ?? Al(r), ne = typeof fe == "string" ? fe : void 0, Se = g && L ? (b) => {
|
|
@@ -7811,80 +7808,80 @@ function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title:
|
|
|
7811
7808
|
};
|
|
7812
7809
|
return O.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": C }, i), style: [{ width: N, ...C ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: Se, onKeyDown: (b) => b.key === "Enter" && Se?.(), ref: he, children: [O.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [O.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": m, "mantine-datatable-header-cell-drag-over": Q }), draggable: m, onDragStart: m ? De : void 0, onDragEnter: m ? S : void 0, onDragOver: m ? k : void 0, onDrop: m ? E : void 0, onDragLeave: m ? d : void 0, children: [m ? O.jsx(oi, { role: "img", "aria-label": "Drag column", children: O.jsx(Xo, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (b) => {
|
|
7813
7810
|
b.stopPropagation();
|
|
7814
|
-
}, children: O.jsx(
|
|
7811
|
+
}, children: O.jsx(Eb, {}) }) }) : null, O.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: ne, children: fe })] }), h ? O.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: O.jsx(Xo, { size: "xs", variant: "light", onClick: p, children: O.jsx(Pb, {}) }) }) : null, g || M?.columnAccessor === r ? O.jsx(O.Fragment, { children: M?.columnAccessor === r ? O.jsx(oi, { className: ft("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": M.direction === "desc" }), role: "img", "aria-label": `Sorted ${M.direction === "desc" ? "descending" : "ascending"}`, children: A?.sorted || O.jsx(Ob, {}) }) : O.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: A?.unsorted || O.jsx(Rb, {}) }) }) : null, I ? O.jsx(Db, { filterPopoverProps: $, isActive: !!oe, filterPopoverDisableClickOutside: q, children: I }) : null] }), C && r !== "__selection__" ? O.jsx(Ab, { accessor: r, columnRef: he }) : null] });
|
|
7815
7812
|
}
|
|
7816
|
-
function
|
|
7813
|
+
function Mb({ className: i, style: n, trigger: r, shadowVisible: s, checked: u, indeterminate: g, checkboxProps: m, onChange: h, rowSpan: C, ref: A }) {
|
|
7817
7814
|
let R = !m.disabled;
|
|
7818
7815
|
return O.jsx(Ji, { ref: A, className: ft("mantine-datatable-header-selector-cell", { [li]: r === "cell" && R }, i), style: n, rowSpan: C, "data-shadow-visible": s || void 0, "data-accessor": "__selection__", onClick: r === "cell" && R ? h : void 0, children: O.jsx(Qi, { classNames: R ? { input: li } : void 0, checked: u, indeterminate: g, onChange: h, ...m, disabled: !(h || m.onChange) || m.disabled }) });
|
|
7819
7816
|
}
|
|
7820
|
-
function
|
|
7821
|
-
let se = R ? O.jsx(
|
|
7817
|
+
function kb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s, sortIcons: u, onSortStatusChange: g, columns: m, defaultColumnProps: h, groups: C, selectionTrigger: A, selectionVisible: R, selectionChecked: N, selectionIndeterminate: M, onSelectionChange: L, selectionCheckboxProps: I, selectorCellShadowVisible: $, selectionColumnClassName: q, selectionColumnStyle: oe, ref: ae }) {
|
|
7818
|
+
let se = R ? O.jsx(Mb, { ref: i, className: q, style: oe, trigger: A, shadowVisible: $, checked: N, indeterminate: M, checkboxProps: I, onChange: L, rowSpan: C ? 2 : void 0 }) : null, { columnsToggle: ue, setColumnsToggle: Z } = Dl(), [te, Q] = Xe(!1), G = m.some((ne) => ne.toggleable), he = G ? Object.fromEntries(m.map(({ accessor: ne, title: Se }) => [ne, Se ?? Al(String(ne))])) : void 0, fe = O.jsxs(Xm, { className: ft("mantine-datatable-header", n), style: r, ref: ae, onContextMenu: G ? (ne) => {
|
|
7822
7819
|
ne.preventDefault(), Q((Se) => !Se);
|
|
7823
|
-
} : void 0, children: [C && O.jsxs(ai, { children: [se, C.map((ne) => O.jsx(
|
|
7820
|
+
} : void 0, children: [C && O.jsxs(ai, { children: [se, C.map((ne) => O.jsx(xb, { group: ne }, ne.id))] }), O.jsxs(ai, { children: [!C && se, m.map(({ hidden: ne, ...Se }, De) => {
|
|
7824
7821
|
if (ne) return null;
|
|
7825
7822
|
let { accessor: k, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D, titleClassName: Y, titleStyle: H, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J, sortKey: _e } = { ...h, ...Se };
|
|
7826
|
-
return O.jsx(
|
|
7823
|
+
return O.jsx(Tb, { accessor: k, className: Y, style: H, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D && De < m.length - 1, sortStatus: s, sortIcons: u, sortKey: _e, onSortStatusChange: g, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J }, k);
|
|
7827
7824
|
})] })] });
|
|
7828
7825
|
return G ? O.jsxs(qi, { position: "bottom", withArrow: !0, shadow: "md", opened: te, onChange: Q, children: [O.jsx(fh, { children: fe }), O.jsx(hh, { children: O.jsx(dl, { children: ue.filter((ne) => ne.toggleable).map((ne) => O.jsx(nr, { children: O.jsx(Qi, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: he[ne.accessor], checked: ne.toggled, onChange: (Se) => {
|
|
7829
7826
|
Z(ue.map((De) => De.accessor === ne.accessor ? { ...De, toggled: Se.currentTarget.checked } : De));
|
|
7830
7827
|
} }) }, ne.accessor)) }) })] }) : fe;
|
|
7831
7828
|
}
|
|
7832
|
-
function
|
|
7829
|
+
function Lb({ fetching: i, customContent: n, backgroundBlur: r, size: s, type: u, color: g }) {
|
|
7833
7830
|
return O.jsx(oi, { className: ft("mantine-datatable-loader", { "mantine-datatable-loader-fetching": i }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: i && (n || O.jsx(ny, { size: s, type: u, color: g })) });
|
|
7834
7831
|
}
|
|
7835
7832
|
function mt(i, n, r) {
|
|
7836
7833
|
return i ? ry({ color: typeof i == "object" ? i[r] : i, theme: n }).value : void 0;
|
|
7837
7834
|
}
|
|
7838
|
-
function
|
|
7835
|
+
function Nb({ theme: i, c: n, backgroundColor: r, borderColor: s, rowBorderColor: u, stripedColor: g, highlightOnHoverColor: m }) {
|
|
7839
7836
|
return { "--mantine-datatable-color-light": mt(n, i, "light"), "--mantine-datatable-color-dark": mt(n, i, "dark"), "--mantine-datatable-background-color-light": mt(r, i, "light"), "--mantine-datatable-background-color-dark": mt(r, i, "dark"), "--mantine-datatable-border-color-light": mt(s, i, "light"), "--mantine-datatable-border-color-dark": mt(s, i, "dark"), "--mantine-datatable-row-border-color-light": mt(u, i, "light"), "--mantine-datatable-row-border-color-dark": mt(u, i, "dark"), "--mantine-datatable-striped-color-light": mt(g, i, "light"), "--mantine-datatable-striped-color-dark": mt(g, i, "dark"), "--mantine-datatable-highlight-on-hover-color-light": mt(m, i, "light"), "--mantine-datatable-highlight-on-hover-color-dark": mt(m, i, "dark") };
|
|
7840
7837
|
}
|
|
7841
7838
|
function Vh({ theme: i, paginationActiveTextColor: n, paginationActiveBackgroundColor: r }) {
|
|
7842
7839
|
return { "--mantine-datatable-pagination-active-text-color-light": mt(n, i, "light"), "--mantine-datatable-pagination-active-text-color-dark": mt(n, i, "dark"), "--mantine-datatable-pagination-active-background-color-light": mt(r, i, "light"), "--mantine-datatable-pagination-active-background-color-dark": mt(r, i, "dark") };
|
|
7843
7840
|
}
|
|
7844
|
-
function
|
|
7841
|
+
function Ib({ theme: i, color: n, backgroundColor: r }) {
|
|
7845
7842
|
return { "--mantine-datatable-row-color-light": mt(n, i, "light"), "--mantine-datatable-row-color-dark": mt(n, i, "dark"), "--mantine-datatable-row-background-color-light": mt(r, i, "light"), "--mantine-datatable-row-background-color-dark": mt(r, i, "dark") };
|
|
7846
7843
|
}
|
|
7847
|
-
function
|
|
7844
|
+
function $b() {
|
|
7848
7845
|
return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M8 9l4 -4l4 4" }), O.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
|
|
7849
7846
|
}
|
|
7850
7847
|
var th = { xs: kr(22), sm: kr(26), md: kr(32), lg: kr(38), xl: kr(44) };
|
|
7851
|
-
function
|
|
7852
|
-
return O.jsxs(nr, { gap: "xs", children: [O.jsx(Gi, { component: "div", size: i, children: n }), O.jsxs(Mr, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [O.jsx(sy, { children: O.jsx(rr, { size: i, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: O.jsx(
|
|
7848
|
+
function jb({ size: i, label: n, values: r, value: s, activeTextColor: u, activeBackgroundColor: g, onChange: m }) {
|
|
7849
|
+
return O.jsxs(nr, { gap: "xs", children: [O.jsx(Gi, { component: "div", size: i, children: n }), O.jsxs(Mr, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [O.jsx(sy, { children: O.jsx(rr, { size: i, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: O.jsx($b, {}), style: [{ fontWeight: "normal" }, (h) => ({ height: th[i], paddingLeft: h.spacing[i], paddingRight: h.spacing[i] })], children: s }) }), O.jsx(ay, { children: r.map((h) => {
|
|
7853
7850
|
let C = h === s;
|
|
7854
7851
|
return O.jsx(ly, { className: ft({ "mantine-datatable-page-size-selector-active": C }), style: [{ height: th[i] }, C && (u || g) ? (A) => Vh({ theme: A, paginationActiveTextColor: u, paginationActiveBackgroundColor: g }) : void 0], disabled: C, onClick: () => m(h), children: O.jsx(Gi, { component: "div", size: i, children: h }) }, h);
|
|
7855
7852
|
}) })] })] });
|
|
7856
7853
|
}
|
|
7857
|
-
function
|
|
7854
|
+
function Bb({ className: i, style: n, fetching: r, page: s, onPageChange: u, paginationWithEdges: g, paginationWithControls: m, paginationActiveTextColor: h, paginationActiveBackgroundColor: C, paginationSize: A, loadingText: R, noRecordsText: N, paginationText: M, totalRecords: L, recordsPerPage: I, onRecordsPerPageChange: $, recordsPerPageLabel: q, recordsPerPageOptions: oe, recordsLength: ae, horizontalSpacing: se, paginationWrapBreakpoint: ue, getPaginationControlProps: Z }) {
|
|
7858
7855
|
let te;
|
|
7859
7856
|
if (L) {
|
|
7860
7857
|
let G = (s - 1) * I + 1, he = G + (ae || 0) - 1;
|
|
7861
7858
|
te = M({ from: G, to: he, totalRecords: L });
|
|
7862
7859
|
} else te = r ? R : N;
|
|
7863
7860
|
let Q = xs(({ breakpoints: G }) => `(min-width: ${typeof ue == "number" ? `${kr(ue)}rem` : G[ue] || ue})`);
|
|
7864
|
-
return O.jsxs(Bt, { px: se ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Q ? "row" : "column" }, n], children: [O.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: A, children: te }), oe && O.jsx(
|
|
7861
|
+
return O.jsxs(Bt, { px: se ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Q ? "row" : "column" }, n], children: [O.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: A, children: te }), oe && O.jsx(jb, { activeTextColor: h, activeBackgroundColor: C, size: A, label: q, values: oe, value: I, onChange: $ }), O.jsx(ty, { classNames: { root: ft("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !ae }), control: "mantine-datatable-pagination-pages-control" }, style: h || C ? (G) => Vh({ theme: G, paginationActiveTextColor: h, paginationActiveBackgroundColor: C }) : void 0, withEdges: g, withControls: m, value: s, onChange: u, size: A, total: Math.ceil(L / I), getControlProps: Z })] });
|
|
7865
7862
|
}
|
|
7866
|
-
function
|
|
7863
|
+
function Yb({ className: i, style: n, visibleMediaQuery: r, record: s, index: u, onClick: g, onDoubleClick: m, onContextMenu: h, noWrap: C, ellipsis: A, textAlign: R, width: N, accessor: M, render: L, defaultRender: I, customCellAttributes: $ }) {
|
|
7867
7864
|
return xs(r) ? O.jsx(pl, { className: ft({ [Ol]: C || A, [Rl]: A, [li]: g || m, [Gh]: h, [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, i), style: [{ width: N, minWidth: N, maxWidth: N }, n], onClick: g, onDoubleClick: m, onContextMenu: h, ...$?.(s, u), children: L ? L(s, u) : I ? I(s, u, M) : Hh(s, M) }) : null;
|
|
7868
7865
|
}
|
|
7869
|
-
function
|
|
7870
|
-
let { expanded: u, visible: g } =
|
|
7866
|
+
function Wb({ open: i, colSpan: n, content: r, collapseProps: s }) {
|
|
7867
|
+
let { expanded: u, visible: g } = mb(i, s?.transitionDuration);
|
|
7871
7868
|
return g ? O.jsxs(O.Fragment, { children: [O.jsx(ai, {}), O.jsx(ai, { children: O.jsx(pl, { className: "mantine-datatable-row-expansion-cell", colSpan: n, children: O.jsx(oy, { in: u, ...s, children: O.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
|
|
7872
7869
|
}
|
|
7873
|
-
function
|
|
7870
|
+
function Fb({ className: i, style: n, record: r, index: s, trigger: u, onChange: g, withRightShadow: m, checkboxProps: h, getCheckboxProps: C, ...A }) {
|
|
7874
7871
|
let R = { ...h, ...C(r, s) }, N = !A.disabled && !R.disabled, M = (L) => {
|
|
7875
7872
|
L.stopPropagation(), u === "cell" && N && g?.(L);
|
|
7876
7873
|
};
|
|
7877
7874
|
return O.jsx(pl, { className: ft("mantine-datatable-row-selector-cell", { [li]: u === "cell" && N }, i), style: n, "data-shadow-visible": m || void 0, onClick: M, children: O.jsx(Qi, { classNames: N ? { input: li } : void 0, onChange: g, ...A, ...R }) });
|
|
7878
7875
|
}
|
|
7879
|
-
function
|
|
7880
|
-
let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(
|
|
7876
|
+
function Ub({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: u, selectionTrigger: g, selectionVisible: m, selectionChecked: h, onSelectionChange: C, isRecordSelectable: A, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: M, onDoubleClick: L, onContextMenu: I, onCellClick: $, onCellDoubleClick: q, onCellContextMenu: oe, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q, selectorCellShadowVisible: G, selectionColumnClassName: he, selectionColumnStyle: fe, rowFactory: ne }) {
|
|
7877
|
+
let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(Fb, { className: he, style: fe, record: i, index: n, trigger: g, withRightShadow: G, checked: h, disabled: !C || (A ? !A(i, n) : !1), onChange: C, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: E, hiddenContent: S, ...d }, p) => {
|
|
7881
7878
|
if (E || S) return null;
|
|
7882
7879
|
let { accessor: b, visibleMediaQuery: f, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, cellsClassName: le, cellsStyle: ye, customCellAttributes: J } = { ...s, ...d };
|
|
7883
|
-
return O.jsx(
|
|
7884
|
-
})] }), De = ae && O.jsx(
|
|
7880
|
+
return O.jsx(Yb, { className: typeof le == "function" ? le(i, n) : le, style: ye?.(i, n), visibleMediaQuery: f, record: i, index: n, onClick: $ ? (_e) => $({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onDoubleClick: q ? (_e) => q({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, accessor: b, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, defaultRender: u, customCellAttributes: J }, b);
|
|
7881
|
+
})] }), De = ae && O.jsx(Wb, { colSpan: r.filter(({ hidden: E }) => !E).length + (m ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), k = zb({ record: i, index: n, selectionChecked: h, onClick: M, onDoubleClick: L, onContextMenu: I, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q });
|
|
7885
7882
|
return ne ? ne({ record: i, index: n, rowProps: k, children: Se, expandedElement: De }) : O.jsxs(O.Fragment, { children: [O.jsx(ai, { ...k, children: Se }), De] });
|
|
7886
7883
|
}
|
|
7887
|
-
function
|
|
7884
|
+
function zb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClick: u, onContextMenu: g, expansion: m, customAttributes: h, color: C, backgroundColor: A, className: R, style: N }) {
|
|
7888
7885
|
return { className: ft("mantine-datatable-row", { [li]: s || u || m?.isExpandable({ record: i, index: n }) && m?.expandOnClick }, { [Gh]: g }, typeof R == "function" ? R(i, n) : R), "data-selected": r || void 0, onClick: (M) => {
|
|
7889
7886
|
if (m) {
|
|
7890
7887
|
let { isExpandable: L, isRowExpanded: I, expandOnClick: $, expandRow: q, collapseRow: oe } = m;
|
|
@@ -7893,28 +7890,28 @@ function qb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClic
|
|
|
7893
7890
|
s?.({ event: M, record: i, index: n });
|
|
7894
7891
|
}, onDoubleClick: u ? (M) => u({ event: M, record: i, index: n }) : void 0, onContextMenu: g ? (M) => g({ event: M, record: i, index: n }) : void 0, style: [C || A ? (M) => {
|
|
7895
7892
|
let L = C?.(i, n), I = A?.(i, n);
|
|
7896
|
-
return
|
|
7893
|
+
return Ib({ theme: M, color: L, backgroundColor: I });
|
|
7897
7894
|
} : void 0, N?.(i, n)], ...h?.(i, n) ?? {} };
|
|
7898
7895
|
}
|
|
7899
|
-
function
|
|
7896
|
+
function qb({ leftShadowBehind: i, rightShadowBehind: n, onScrollPositionChange: r, children: s, viewportRef: u, scrollAreaProps: g }) {
|
|
7900
7897
|
return O.jsxs(Jm, { ...g, viewportRef: u, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [s, O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": i }) }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": n }) }), O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7901
7898
|
}
|
|
7902
|
-
function
|
|
7903
|
-
let vt = Lr(() => N?.flatMap((He) => He.columns) ?? A, [A, N]), Ve = Lr(() => vt.some((He) => He.resizable), [vt]), lt =
|
|
7899
|
+
function Hb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: u, maxHeight: g, shadow: m, verticalAlign: h = "center", fetching: C, columns: A, storeColumnsKey: R, groups: N, pinFirstColumn: M, pinLastColumn: L, defaultColumnProps: I, defaultColumnRender: $, idAccessor: q = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: se, onSelectedRecordsChange: ue, selectionColumnClassName: Z, selectionColumnStyle: te, isRecordSelectable: Q, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: fe = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: De, horizontalSpacing: k, page: E, onPageChange: S, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v = "Records per page", paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le = "sm", paginationText: ye = ({ from: vt, to: Ve, totalRecords: lt }) => `${vt} - ${Ve} / ${lt}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: _e = (vt) => vt === "previous" ? { "aria-label": "Previous page" } : vt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: me, customLoader: ge, loaderSize: j, loaderType: K, loaderColor: W, loadingText: V = "...", emptyState: X, noRecordsText: xe = "No records", noRecordsIcon: l, highlightOnHover: c, striped: _, noHeader: T, onRowClick: F, onRowDoubleClick: ee, onRowContextMenu: Ce, onCellClick: be, onCellDoubleClick: Re, onCellContextMenu: ve, onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct, rowColor: Sn, rowBackgroundColor: St, rowExpansion: Wt, rowClassName: Dn, rowStyle: gt, customRowAttributes: sn, scrollViewportRef: an, scrollAreaProps: Ft, tableRef: Mt, bodyRef: Ut, m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt, className: Ln, classNames: ln, style: br, styles: un, rowFactory: Nn, tableWrapper: cn, ...fn }) {
|
|
7900
|
+
let vt = Lr(() => N?.flatMap((He) => He.columns) ?? A, [A, N]), Ve = Lr(() => vt.some((He) => He.resizable), [vt]), lt = lb({ key: R, columns: vt }), { refs: Ht, onScroll: Un } = ub({ scrollCallbacks: { onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke }, withRowBorders: fn.withRowBorders }), $r = qc(Ht.table, Mt), zn = qc(Ht.scrollViewport, an), jr = vb({ rowExpansion: Wt, records: oe, idAccessor: q }), qn = Fn((He) => {
|
|
7904
7901
|
Ht.scrollViewport.current?.scrollTo({ top: 0, left: 0 }), S(He);
|
|
7905
7902
|
}, [S, Ht.scrollViewport]), Br = oe?.length, Xi = oe?.map((He) => $t(He, q)), ir = !!se, or = se?.map((He) => $t(He, q)), di = Xi !== void 0 && or !== void 0 && or.length > 0, Yr = Q ? oe?.filter(Q) : oe, Wr = Yr?.map((He) => $t(He, q)), Fr = di && Wr.every((He) => or.includes(He)), As = di && Wr.some((He) => or.includes(He)), Os = Fn(() => {
|
|
7906
7903
|
se && ue && ue(Fr ? se.filter((He) => !Wr.includes($t(He, q))) : Za([...se, ...Yr], (He) => $t(He, q)));
|
|
7907
|
-
}, [Fr, q, ue, Wr, Yr, se]), { lastSelectionChangeIndex: xr, setLastSelectionChangeIndex: eo } =
|
|
7908
|
-
return O.jsx(Vf, { ...lt, children: O.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...
|
|
7904
|
+
}, [Fr, q, ue, Wr, Yr, se]), { lastSelectionChangeIndex: xr, setLastSelectionChangeIndex: eo } = cb(Xi), Ur = ir && !M, pi = { m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt }, Rs = Fn(({ children: He }) => cn ? cn({ children: He }) : He, [cn]);
|
|
7905
|
+
return O.jsx(Vf, { ...lt, children: O.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...Nb({ theme: He, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct }), borderRadius: He.radius[n] || n, boxShadow: He.shadows[m] || m, height: s, minHeight: u, maxHeight: g }), br, un?.root, { position: "relative" }], children: [O.jsx(qb, { viewportRef: zn, leftShadowBehind: ir || !!M, rightShadowBehind: L, onScrollPositionChange: Un, scrollAreaProps: Ft, children: O.jsx(Rs, { children: O.jsxs(Qm, { ref: $r, horizontalSpacing: k, className: ft("mantine-datatable-table", { [yb]: r, "mantine-datatable-vertical-align-top": h === "top", "mantine-datatable-vertical-align-bottom": h === "bottom", "mantine-datatable-pin-last-column": L, "mantine-datatable-selection-column-visible": ir, "mantine-datatable-pin-first-column": M, "mantine-datatable-resizable-columns": Ve }, ln?.table), style: { ...un?.table }, "data-striped": Br && _ || void 0, "data-highlight-on-hover": c || void 0, ...fn, children: [T ? null : O.jsx(Vf, { ...lt, children: O.jsx(kb, { ref: Ht.header, selectionColumnHeaderRef: Ht.selectionColumnHeader, className: ln?.header, style: un?.header, columns: vt, defaultColumnProps: I, groups: N, sortStatus: ne, sortIcons: Se, onSortStatusChange: De, selectionTrigger: ae, selectionVisible: ir, selectionChecked: Fr, selectionIndeterminate: As && !Fr, onSelectionChange: Os, selectionCheckboxProps: { ...G, ...he }, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te }) }), O.jsx("tbody", { ref: Ut, children: Br ? oe.map((He, In) => {
|
|
7909
7906
|
let zr = $t(He, q), gi = or?.includes(zr) || !1, vi;
|
|
7910
7907
|
return ue && se && (vi = (to) => {
|
|
7911
7908
|
if (to.nativeEvent.shiftKey && xr !== null) {
|
|
7912
7909
|
let $n = oe.filter(In > xr ? (Hn, jn) => jn >= xr && jn <= In && (Q ? Q(Hn, jn) : !0) : (Hn, jn) => jn >= In && jn <= xr && (Q ? Q(Hn, jn) : !0));
|
|
7913
|
-
ue(gi ?
|
|
7910
|
+
ue(gi ? gb(se, $n, (Hn) => $t(Hn, q)) : Za([...se, ...$n], (Hn) => $t(Hn, q)));
|
|
7914
7911
|
} else ue(gi ? se.filter(($n) => $t($n, q) !== zr) : Za([...se, He], ($n) => $t($n, q)));
|
|
7915
7912
|
eo(In);
|
|
7916
|
-
}), O.jsx(
|
|
7917
|
-
}) : O.jsx(
|
|
7913
|
+
}), O.jsx(Ub, { record: He, index: In, columns: vt, defaultColumnProps: I, defaultColumnRender: $, selectionTrigger: ae, selectionVisible: ir, selectionChecked: gi, onSelectionChange: vi, isRecordSelectable: Q, selectionCheckboxProps: G, getSelectionCheckboxProps: fe, onClick: F, onDoubleClick: ee, onCellClick: be, onCellDoubleClick: Re, onContextMenu: Ce, onCellContextMenu: ve, expansion: jr, color: Sn, backgroundColor: St, className: Dn, style: gt, customAttributes: sn, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te, idAccessor: q, rowFactory: Nn }, zr);
|
|
7914
|
+
}) : O.jsx(ob, {}) }), vt.some(({ footer: He }) => He) && O.jsx(bb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: I, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), E && O.jsx(Bb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: k, fetching: C, page: E, onPageChange: qn, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v, paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le, paginationText: ye, paginationWrapBreakpoint: J, getPaginationControlProps: _e, noRecordsText: xe, loadingText: V, recordsLength: Br }), O.jsx(Lb, { fetching: C, backgroundBlur: me, customContent: ge, size: j, type: K, color: W }), O.jsx(ab, { icon: l, text: xe, active: !C && !Br, children: X })] }) });
|
|
7918
7915
|
}
|
|
7919
7916
|
var Ui = { exports: {} };
|
|
7920
7917
|
/**
|
|
@@ -7925,8 +7922,8 @@ var Ui = { exports: {} };
|
|
|
7925
7922
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7926
7923
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
7927
7924
|
*/
|
|
7928
|
-
var
|
|
7929
|
-
function
|
|
7925
|
+
var Gb = Ui.exports, nh;
|
|
7926
|
+
function Vb() {
|
|
7930
7927
|
return nh || (nh = 1, function(i, n) {
|
|
7931
7928
|
(function() {
|
|
7932
7929
|
var r, s = "4.17.21", u = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", h = "Invalid `variable` option passed into `_.template`", C = "__lodash_hash_undefined__", A = 500, R = "__lodash_placeholder__", N = 1, M = 2, L = 4, I = 1, $ = 2, q = 1, oe = 2, ae = 4, se = 8, ue = 16, Z = 32, te = 64, Q = 128, G = 256, he = 512, fe = 30, ne = "...", Se = 800, De = 16, k = 1, E = 2, S = 3, d = 1 / 0, p = 9007199254740991, b = 17976931348623157e292, f = NaN, v = 4294967295, D = v - 1, Y = v >>> 1, H = [
|
|
@@ -11586,11 +11583,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11586
11583
|
}], qe.prototype.clone = op, qe.prototype.reverse = sp, qe.prototype.value = ap, w.prototype.at = I1, w.prototype.chain = $1, w.prototype.commit = j1, w.prototype.next = B1, w.prototype.plant = W1, w.prototype.reverse = F1, w.prototype.toJSON = w.prototype.valueOf = w.prototype.value = U1, w.prototype.first = w.prototype.head, yi && (w.prototype[yi] = Y1), w;
|
|
11587
11584
|
}, Kr = jd();
|
|
11588
11585
|
Cr ? ((Cr.exports = Kr)._ = Kr, Ms._ = Kr) : Dt._ = Kr;
|
|
11589
|
-
}).call(
|
|
11586
|
+
}).call(Gb);
|
|
11590
11587
|
}(Ui, Ui.exports)), Ui.exports;
|
|
11591
11588
|
}
|
|
11592
|
-
var rh =
|
|
11593
|
-
function
|
|
11589
|
+
var rh = Vb();
|
|
11590
|
+
function Kb(i) {
|
|
11594
11591
|
const n = kn.c(41), {
|
|
11595
11592
|
fields: r,
|
|
11596
11593
|
onClose: s,
|
|
@@ -11608,14 +11605,14 @@ function Zb(i) {
|
|
|
11608
11605
|
isPending: oe
|
|
11609
11606
|
} = Rh(g, u);
|
|
11610
11607
|
let ae;
|
|
11611
|
-
n[0] !== r ? (ae = new Set(r.filter(
|
|
11608
|
+
n[0] !== r ? (ae = new Set(r.filter(tx).map(ex)), n[0] = r, n[1] = ae) : ae = n[1];
|
|
11612
11609
|
let se;
|
|
11613
11610
|
n[2] !== ae ? (se = [...ae], n[2] = ae, n[3] = se) : se = n[3];
|
|
11614
11611
|
const ue = se;
|
|
11615
11612
|
let Z;
|
|
11616
|
-
n[4] !== r ? (Z = r.reduce(
|
|
11613
|
+
n[4] !== r ? (Z = r.reduce(Xb, {}), n[4] = r, n[5] = Z) : Z = n[5];
|
|
11617
11614
|
let te;
|
|
11618
|
-
n[6] !== r ? (te = r.filter(
|
|
11615
|
+
n[6] !== r ? (te = r.filter(Jb).reduce(Qb, {}), n[6] = r, n[7] = te) : te = n[7];
|
|
11619
11616
|
let Q;
|
|
11620
11617
|
n[8] !== Z || n[9] !== te ? (Q = {
|
|
11621
11618
|
mode: "uncontrolled",
|
|
@@ -11663,7 +11660,7 @@ function Zb(i) {
|
|
|
11663
11660
|
let k;
|
|
11664
11661
|
n[24] !== C || n[25] !== r || n[26] !== G || n[27] !== R || n[28] !== m || n[29] !== L || n[30] !== oe || n[31] !== $ || n[32] !== s || n[33] !== Se || n[34] !== h || n[35] !== ue || n[36] !== I ? (k = L ? /* @__PURE__ */ O.jsxs(dl, { gap: "md", children: [
|
|
11665
11662
|
/* @__PURE__ */ O.jsx(si, { height: 40 }),
|
|
11666
|
-
Array(r.length).fill(0).map(
|
|
11663
|
+
Array(r.length).fill(0).map(Zb),
|
|
11667
11664
|
/* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
|
|
11668
11665
|
/* @__PURE__ */ O.jsx(si, { width: 100, height: 36 }),
|
|
11669
11666
|
/* @__PURE__ */ O.jsx(si, { width: 100, height: 36 })
|
|
@@ -11688,28 +11685,25 @@ function Zb(i) {
|
|
|
11688
11685
|
k
|
|
11689
11686
|
] }), n[38] = k, n[39] = De, n[40] = E) : E = n[40], E;
|
|
11690
11687
|
}
|
|
11691
|
-
function
|
|
11688
|
+
function Zb(i, n) {
|
|
11692
11689
|
return /* @__PURE__ */ O.jsx(si, { height: 35 }, `skeleton-field-${n}`);
|
|
11693
11690
|
}
|
|
11694
|
-
function
|
|
11695
|
-
return i[n.id] =
|
|
11696
|
-
}
|
|
11697
|
-
function Xb(i) {
|
|
11698
|
-
return i ? null : "Pflichtfeld";
|
|
11691
|
+
function Qb(i, n) {
|
|
11692
|
+
return i[n.id] = (r, s) => n.conditional && !n.conditional(s) || r ? null : "Pflichtfeld", i;
|
|
11699
11693
|
}
|
|
11700
|
-
function
|
|
11694
|
+
function Jb(i) {
|
|
11701
11695
|
return i.required;
|
|
11702
11696
|
}
|
|
11703
|
-
function
|
|
11697
|
+
function Xb(i, n) {
|
|
11704
11698
|
return i[n.id] = n.type === "boolean" ? n.defaultValue ?? !1 : n.defaultValue ?? "", i;
|
|
11705
11699
|
}
|
|
11706
|
-
function
|
|
11700
|
+
function ex(i) {
|
|
11707
11701
|
return i.step;
|
|
11708
11702
|
}
|
|
11709
|
-
function
|
|
11703
|
+
function tx(i) {
|
|
11710
11704
|
return typeof i.step == "number";
|
|
11711
11705
|
}
|
|
11712
|
-
function
|
|
11706
|
+
function nx({
|
|
11713
11707
|
queryKey: i,
|
|
11714
11708
|
apiPath: n,
|
|
11715
11709
|
onClose: r,
|
|
@@ -11739,7 +11733,7 @@ function ix({
|
|
|
11739
11733
|
] })
|
|
11740
11734
|
] }) : /* @__PURE__ */ O.jsx(O.Fragment, {});
|
|
11741
11735
|
}
|
|
11742
|
-
function
|
|
11736
|
+
function rx(i, n) {
|
|
11743
11737
|
const r = kn.c(8);
|
|
11744
11738
|
let s;
|
|
11745
11739
|
r[0] !== i || r[1] !== n ? (s = () => {
|
|
@@ -11756,7 +11750,7 @@ function ox(i, n) {
|
|
|
11756
11750
|
return r[5] !== h || r[6] !== u ? (C = [u, h], r[5] = h, r[6] = u, r[7] = C) : C = r[7], C;
|
|
11757
11751
|
}
|
|
11758
11752
|
const ih = [10, 15, 20, 50, 100, 500];
|
|
11759
|
-
function
|
|
11753
|
+
function ix(i) {
|
|
11760
11754
|
const n = kn.c(147), {
|
|
11761
11755
|
title: r,
|
|
11762
11756
|
queryKey: s,
|
|
@@ -11788,7 +11782,7 @@ function sx(i) {
|
|
|
11788
11782
|
he = {
|
|
11789
11783
|
...$,
|
|
11790
11784
|
...Ve
|
|
11791
|
-
}, fe = he ? "?" + Object.entries(he).filter(
|
|
11785
|
+
}, fe = he ? "?" + Object.entries(he).filter(gx).map(px).join("&") : "", n[3] = te, n[4] = $, n[5] = q, n[6] = he, n[7] = fe;
|
|
11792
11786
|
} else
|
|
11793
11787
|
he = n[6], fe = n[7];
|
|
11794
11788
|
const ne = fe;
|
|
@@ -11860,7 +11854,7 @@ function sx(i) {
|
|
|
11860
11854
|
}, n[29] = f, n[30] = J.columnAccessor, n[31] = J.direction, n[32] = K) : K = n[32];
|
|
11861
11855
|
let W;
|
|
11862
11856
|
n[33] !== f || n[34] !== J ? (W = [J, f], n[33] = f, n[34] = J, n[35] = W) : W = n[35], xt(K, W);
|
|
11863
|
-
const [V, X] =
|
|
11857
|
+
const [V, X] = rx(ih[1], "mantine-table-page-size"), [xe, l] = Xe(1);
|
|
11864
11858
|
let c;
|
|
11865
11859
|
n[36] !== V || n[37] !== A || n[38] !== ge ? (c = A ? ge.slice(0, V) : ge, n[36] = V, n[37] = A, n[38] = ge, n[39] = c) : c = n[39];
|
|
11866
11860
|
const [_, T] = Xe(c);
|
|
@@ -11903,18 +11897,18 @@ function sx(i) {
|
|
|
11903
11897
|
let gt;
|
|
11904
11898
|
n[64] !== Wt ? (gt = /* @__PURE__ */ O.jsx(Xo, { variant: "subtle", onClick: Wt, "aria-label": "Neuladen", children: Dn }), n[64] = Wt, n[65] = gt) : gt = n[65];
|
|
11905
11899
|
let sn;
|
|
11906
|
-
n[66] !== N || n[67] !== h || n[68] !== ve || n[69] !== C ? (sn = (h.some(
|
|
11900
|
+
n[66] !== N || n[67] !== h || n[68] !== ve || n[69] !== C ? (sn = (h.some(dx) || C) && /* @__PURE__ */ O.jsxs(Mr, { shadow: "md", children: [
|
|
11907
11901
|
/* @__PURE__ */ O.jsx(Mr.Target, { children: /* @__PURE__ */ O.jsx(rr, { variant: "outline", rightSection: /* @__PURE__ */ O.jsx(cy, { size: 14 }), disabled: !ve.length, children: "Aktionen" }) }),
|
|
11908
11902
|
/* @__PURE__ */ O.jsxs(Mr.Dropdown, { children: [
|
|
11909
|
-
h.find(
|
|
11903
|
+
h.find(hx) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(fy, { size: 14 }), onClick: () => nt(!0), disabled: ve.length !== 1, children: "Bearbeiten" }),
|
|
11910
11904
|
(N ?? []).map((Ve, lt) => /* @__PURE__ */ Ko(Mr.Item, { ...Ve.icon && {
|
|
11911
11905
|
leftSection: Ve.icon
|
|
11912
11906
|
}, key: `custom_action_${lt}`, onClick: () => Ve.onClick(ve) }, Ve.label)),
|
|
11913
|
-
h.find(
|
|
11907
|
+
h.find(fx) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(hy, { size: 14 }), onClick: () => Ct(!0), color: "red", children: "Löschen" })
|
|
11914
11908
|
] })
|
|
11915
11909
|
] }), n[66] = N, n[67] = h, n[68] = ve, n[69] = C, n[70] = sn) : sn = n[70];
|
|
11916
11910
|
let an;
|
|
11917
|
-
n[71] !== I || n[72] !== h || n[73] !== E ? (an = h.find(
|
|
11911
|
+
n[71] !== I || n[72] !== h || n[73] !== E ? (an = h.find(cx) && /* @__PURE__ */ O.jsx(rr, { onClick: () => Rt(!0), disabled: E, children: I ?? "Erstellen" }), n[71] = I, n[72] = h, n[73] = E, n[74] = an) : an = n[74];
|
|
11918
11912
|
let Ft;
|
|
11919
11913
|
n[75] !== m || n[76] !== gt || n[77] !== sn || n[78] !== an ? (Ft = /* @__PURE__ */ O.jsxs(nr, { align: "center", gap: "xs", children: [
|
|
11920
11914
|
gt,
|
|
@@ -11928,16 +11922,16 @@ function sx(i) {
|
|
|
11928
11922
|
Ft
|
|
11929
11923
|
] }), n[80] = Sn, n[81] = St, n[82] = Ft, n[83] = Mt) : Mt = n[83];
|
|
11930
11924
|
let Ut;
|
|
11931
|
-
n[84] !== te || n[85] !== G || n[86] !== q ? (Ut = q && q.length > 0 && /* @__PURE__ */ O.jsx(Ja, { value: te, onChange: G, mt: "md", children: /* @__PURE__ */ O.jsx(Ja.List, { children: q.map(
|
|
11925
|
+
n[84] !== te || n[85] !== G || n[86] !== q ? (Ut = q && q.length > 0 && /* @__PURE__ */ O.jsx(Ja, { value: te, onChange: G, mt: "md", children: /* @__PURE__ */ O.jsx(Ja.List, { children: q.map(ux) }) }), n[84] = te, n[85] = G, n[86] = q, n[87] = Ut) : Ut = n[87];
|
|
11932
11926
|
let zt;
|
|
11933
11927
|
n[88] !== S ? (zt = S && /* @__PURE__ */ O.jsx(os, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ O.jsx(py, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), n[88] = S, n[89] = zt) : zt = n[89];
|
|
11934
11928
|
let Qt;
|
|
11935
11929
|
n[90] !== E || n[91] !== d ? (Qt = (E || d) && /* @__PURE__ */ O.jsxs(dl, { my: "md", children: [
|
|
11936
11930
|
/* @__PURE__ */ O.jsx(si, { height: 40 }),
|
|
11937
|
-
Array(5).fill(0).map(
|
|
11931
|
+
Array(5).fill(0).map(lx)
|
|
11938
11932
|
] }), n[90] = E, n[91] = d, n[92] = Qt) : Qt = n[92];
|
|
11939
11933
|
let qt;
|
|
11940
|
-
n[93] !== h || n[94] !== S || n[95] !== E || n[96] !== d || n[97] !== xe || n[98] !== V || n[99] !== A || n[100] !== _ || n[101] !== ve || n[102] !== C || n[103] !== X || n[104] !== J || n[105] !== ge ? (qt = !E && !d && /* @__PURE__ */ O.jsx(
|
|
11934
|
+
n[93] !== h || n[94] !== S || n[95] !== E || n[96] !== d || n[97] !== xe || n[98] !== V || n[99] !== A || n[100] !== _ || n[101] !== ve || n[102] !== C || n[103] !== X || n[104] !== J || n[105] !== ge ? (qt = !E && !d && /* @__PURE__ */ O.jsx(Hb, { my: "md", striped: !0, minHeight: 150, fetching: S, records: _, sortStatus: J, onSortStatusChange: _e, ...C && {
|
|
11941
11935
|
selectedRecords: ve,
|
|
11942
11936
|
onSelectedRecordsChange: Pe
|
|
11943
11937
|
}, ...A && _.length && {
|
|
@@ -11948,14 +11942,14 @@ function sx(i) {
|
|
|
11948
11942
|
recordsPerPageOptions: ih,
|
|
11949
11943
|
onRecordsPerPageChange: X,
|
|
11950
11944
|
recordsPerPageLabel: "Einträge pro Seite"
|
|
11951
|
-
}, columns: h.map(
|
|
11945
|
+
}, columns: h.map(ax), noRecordsText: "Keine Einträge gefunden" }), n[93] = h, n[94] = S, n[95] = E, n[96] = d, n[97] = xe, n[98] = V, n[99] = A, n[100] = _, n[101] = ve, n[102] = C, n[103] = X, n[104] = J, n[105] = ge, n[106] = qt) : qt = n[106];
|
|
11952
11946
|
let Fe;
|
|
11953
11947
|
n[107] === Symbol.for("react.memo_cache_sentinel") ? (Fe = () => {
|
|
11954
11948
|
nt(!1), Pe([]);
|
|
11955
11949
|
}, n[107] = Fe) : Fe = n[107];
|
|
11956
11950
|
const ot = r ?? "Bearbeiten";
|
|
11957
11951
|
let kt;
|
|
11958
|
-
n[108] !== g || n[109] !== h || n[110] !== s || n[111] !== ve[0] || n[112] !== ve.length || n[113] !== M ? (kt = ve.length > 0 && /* @__PURE__ */ O.jsx(
|
|
11952
|
+
n[108] !== g || n[109] !== h || n[110] !== s || n[111] !== ve[0] || n[112] !== ve.length || n[113] !== M ? (kt = ve.length > 0 && /* @__PURE__ */ O.jsx(Kb, { fields: h.filter(sx), queryKey: s, apiPath: g, id: ve[0].id, onClose: () => {
|
|
11959
11953
|
nt(!1), Pe([]);
|
|
11960
11954
|
}, steps: M }), n[108] = g, n[109] = h, n[110] = s, n[111] = ve[0], n[112] = ve.length, n[113] = M, n[114] = kt) : kt = n[114];
|
|
11961
11955
|
let Jt;
|
|
@@ -11963,7 +11957,7 @@ function sx(i) {
|
|
|
11963
11957
|
let Ln;
|
|
11964
11958
|
n[119] !== g || n[120] !== Cn || n[121] !== s || n[122] !== ve || n[123] !== r ? (Ln = ve.length > 0 && /* @__PURE__ */ O.jsx($a, { opened: Cn, onClose: () => {
|
|
11965
11959
|
Ct(!1), Pe([]);
|
|
11966
|
-
}, title: r ?? "Löschen", children: /* @__PURE__ */ O.jsx(
|
|
11960
|
+
}, title: r ?? "Löschen", children: /* @__PURE__ */ O.jsx(nx, { onClose: () => {
|
|
11967
11961
|
Ct(!1), Pe([]);
|
|
11968
11962
|
}, queryKey: s, apiPath: g, selectedRecords: ve }) }), n[119] = g, n[120] = Cn, n[121] = s, n[122] = ve, n[123] = r, n[124] = Ln) : Ln = n[124];
|
|
11969
11963
|
let ln;
|
|
@@ -11976,7 +11970,7 @@ function sx(i) {
|
|
|
11976
11970
|
Rt(!1);
|
|
11977
11971
|
}, n[126] = un) : un = n[126];
|
|
11978
11972
|
let Nn;
|
|
11979
|
-
n[127] !== h ? (Nn = h.filter(
|
|
11973
|
+
n[127] !== h ? (Nn = h.filter(ox), n[127] = h, n[128] = Nn) : Nn = n[128];
|
|
11980
11974
|
let cn;
|
|
11981
11975
|
n[129] !== g || n[130] !== s || n[131] !== M || n[132] !== Nn ? (cn = /* @__PURE__ */ O.jsx(Jw, { queryKey: s, apiPath: g, onClose: un, fields: Nn, steps: M }), n[129] = g, n[130] = s, n[131] = M, n[132] = Nn, n[133] = cn) : cn = n[133];
|
|
11982
11976
|
let fn;
|
|
@@ -11993,54 +11987,54 @@ function sx(i) {
|
|
|
11993
11987
|
fn
|
|
11994
11988
|
] }), n[138] = Mt, n[139] = Ut, n[140] = zt, n[141] = Qt, n[142] = qt, n[143] = Jt, n[144] = Ln, n[145] = fn, n[146] = vt) : vt = n[146], vt;
|
|
11995
11989
|
}
|
|
11996
|
-
function
|
|
11990
|
+
function ox(i) {
|
|
11997
11991
|
return i.create;
|
|
11998
11992
|
}
|
|
11999
|
-
function
|
|
11993
|
+
function sx(i) {
|
|
12000
11994
|
return i.update;
|
|
12001
11995
|
}
|
|
12002
|
-
function
|
|
11996
|
+
function ax(i) {
|
|
12003
11997
|
return i.column;
|
|
12004
11998
|
}
|
|
12005
|
-
function
|
|
11999
|
+
function lx(i, n) {
|
|
12006
12000
|
return /* @__PURE__ */ O.jsx(si, { height: 35 }, `skeleton-${n}`);
|
|
12007
12001
|
}
|
|
12008
|
-
function
|
|
12002
|
+
function ux(i) {
|
|
12009
12003
|
return /* @__PURE__ */ O.jsx(Ja.Tab, { value: i.value, leftSection: i.icon, children: i.label }, i.value);
|
|
12010
12004
|
}
|
|
12011
|
-
function
|
|
12005
|
+
function cx(i) {
|
|
12012
12006
|
return i.create;
|
|
12013
12007
|
}
|
|
12014
|
-
function
|
|
12008
|
+
function fx(i) {
|
|
12015
12009
|
return i.delete;
|
|
12016
12010
|
}
|
|
12017
|
-
function
|
|
12011
|
+
function hx(i) {
|
|
12018
12012
|
return i.update;
|
|
12019
12013
|
}
|
|
12020
|
-
function
|
|
12014
|
+
function dx(i) {
|
|
12021
12015
|
return i.update;
|
|
12022
12016
|
}
|
|
12023
|
-
function
|
|
12017
|
+
function px(i) {
|
|
12024
12018
|
const [n, r] = i;
|
|
12025
12019
|
return `${n}=${encodeURIComponent(r ?? "")}`;
|
|
12026
12020
|
}
|
|
12027
|
-
function
|
|
12021
|
+
function gx(i) {
|
|
12028
12022
|
const [, n] = i;
|
|
12029
12023
|
return n != null;
|
|
12030
12024
|
}
|
|
12031
|
-
function
|
|
12025
|
+
function Cx(i) {
|
|
12032
12026
|
const n = kn.c(5), {
|
|
12033
12027
|
queryClient: r
|
|
12034
12028
|
} = Ir();
|
|
12035
12029
|
let s;
|
|
12036
|
-
n[0] !== i ? (s = /* @__PURE__ */ O.jsx(
|
|
12030
|
+
n[0] !== i ? (s = /* @__PURE__ */ O.jsx(ix, { ...i }), n[0] = i, n[1] = s) : s = n[1];
|
|
12037
12031
|
let u;
|
|
12038
12032
|
return n[2] !== r || n[3] !== s ? (u = /* @__PURE__ */ O.jsx(bh, { client: r, children: s }), n[2] = r, n[3] = s, n[4] = u) : u = n[4], u;
|
|
12039
12033
|
}
|
|
12040
12034
|
export {
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12035
|
+
Cx as DataTable,
|
|
12036
|
+
bx as DataTableProvider,
|
|
12037
|
+
xx as api,
|
|
12044
12038
|
V2 as createOne,
|
|
12045
12039
|
G2 as deleteOne,
|
|
12046
12040
|
q2 as getAll,
|
|
@@ -12052,7 +12046,7 @@ export {
|
|
|
12052
12046
|
ow as useDeleteOne,
|
|
12053
12047
|
J2 as useGetAll,
|
|
12054
12048
|
Z2 as useGetOne,
|
|
12055
|
-
|
|
12049
|
+
rx as usePersistentState,
|
|
12056
12050
|
Rh as useUpdateOne
|
|
12057
12051
|
};
|
|
12058
12052
|
//# sourceMappingURL=index.es.js.map
|