@espresso-lab/mantine-data-table 1.10.10 → 1.10.11
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/DataTable/DataTableInner.d.ts +1 -0
- package/dist/index.es.js +75 -75
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1825,8 +1825,8 @@ function Ka() {
|
|
|
1825
1825
|
return -1;
|
|
1826
1826
|
F = 2, se /= 2, ue /= 2, g /= 2;
|
|
1827
1827
|
}
|
|
1828
|
-
function he(
|
|
1829
|
-
return F === 1 ?
|
|
1828
|
+
function he(ge, we) {
|
|
1829
|
+
return F === 1 ? ge[we] : ge.readUInt16BE(we * F);
|
|
1830
1830
|
}
|
|
1831
1831
|
var re;
|
|
1832
1832
|
if (T) {
|
|
@@ -2901,11 +2901,11 @@ function Rl() {
|
|
|
2901
2901
|
})(Jo)), Jo;
|
|
2902
2902
|
}
|
|
2903
2903
|
Rl();
|
|
2904
|
-
function
|
|
2904
|
+
function me(t, e) {
|
|
2905
2905
|
t != null && this.fromString(t, e);
|
|
2906
2906
|
}
|
|
2907
2907
|
function We() {
|
|
2908
|
-
return new
|
|
2908
|
+
return new me(null);
|
|
2909
2909
|
}
|
|
2910
2910
|
var jt, El = 244837814094590, ci = (El & 16777215) == 15715070;
|
|
2911
2911
|
function Tl(t, e, r, n, i, u) {
|
|
@@ -2930,14 +2930,14 @@ function Nl(t, e, r, n, i, u) {
|
|
|
2930
2930
|
return i;
|
|
2931
2931
|
}
|
|
2932
2932
|
var ui = typeof navigator < "u";
|
|
2933
|
-
ui && ci && navigator.appName == "Microsoft Internet Explorer" ? (
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2933
|
+
ui && ci && navigator.appName == "Microsoft Internet Explorer" ? (me.prototype.am = $l, jt = 30) : ui && ci && navigator.appName != "Netscape" ? (me.prototype.am = Tl, jt = 26) : (me.prototype.am = Nl, jt = 28);
|
|
2934
|
+
me.prototype.DB = jt;
|
|
2935
|
+
me.prototype.DM = (1 << jt) - 1;
|
|
2936
|
+
me.prototype.DV = 1 << jt;
|
|
2937
2937
|
var Xn = 52;
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2938
|
+
me.prototype.FV = Math.pow(2, Xn);
|
|
2939
|
+
me.prototype.F1 = Xn - jt;
|
|
2940
|
+
me.prototype.F2 = 2 * jt - Xn;
|
|
2941
2941
|
var Ll = "0123456789abcdefghijklmnopqrstuvwxyz", Qr = new Array(), tr, ot;
|
|
2942
2942
|
tr = 48;
|
|
2943
2943
|
for (ot = 0; ot <= 9; ++ot) Qr[tr++] = ot;
|
|
@@ -2980,7 +2980,7 @@ function zl(t, e) {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
i = !1, u == 0 ? this[this.t++] = d : u + r > this.DB ? (this[this.t - 1] |= (d & (1 << this.DB - u) - 1) << u, this[this.t++] = d >> this.DB - u) : this[this.t - 1] |= d << u, u += r, u >= this.DB && (u -= this.DB);
|
|
2982
2982
|
}
|
|
2983
|
-
this.clamp(), i &&
|
|
2983
|
+
this.clamp(), i && me.ZERO.subTo(this, this);
|
|
2984
2984
|
}
|
|
2985
2985
|
function Fl() {
|
|
2986
2986
|
for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t; ) --this.t;
|
|
@@ -3002,7 +3002,7 @@ function Wl(t) {
|
|
|
3002
3002
|
}
|
|
3003
3003
|
function Ul() {
|
|
3004
3004
|
var t = We();
|
|
3005
|
-
return
|
|
3005
|
+
return me.ZERO.subTo(this, t), t;
|
|
3006
3006
|
}
|
|
3007
3007
|
function ql() {
|
|
3008
3008
|
return this.s < 0 ? this.negate() : this;
|
|
@@ -3070,7 +3070,7 @@ function Xl(t, e) {
|
|
|
3070
3070
|
var r = this.abs(), n = t.abs(), i = r.t;
|
|
3071
3071
|
for (e.t = i + n.t; --i >= 0; ) e[i] = 0;
|
|
3072
3072
|
for (i = 0; i < n.t; ++i) e[i + r.t] = r.am(0, n[i], e, i, 0, r.t);
|
|
3073
|
-
e.s = 0, e.clamp(), this.s != t.s &&
|
|
3073
|
+
e.s = 0, e.clamp(), this.s != t.s && me.ZERO.subTo(e, e);
|
|
3074
3074
|
}
|
|
3075
3075
|
function ec(t) {
|
|
3076
3076
|
for (var e = this.abs(), r = t.t = 2 * e.t; --r >= 0; ) t[r] = 0;
|
|
@@ -3094,19 +3094,19 @@ function tc(t, e, r) {
|
|
|
3094
3094
|
var b = u.t, _ = u[b - 1];
|
|
3095
3095
|
if (_ != 0) {
|
|
3096
3096
|
var j = _ * (1 << this.F1) + (b > 1 ? u[b - 2] >> this.F2 : 0), C = this.FV / j, S = (1 << this.F1) / j, k = 1 << this.F2, O = r.t, $ = O - b, Y = e ?? We();
|
|
3097
|
-
for (u.dlShiftTo($, Y), r.compareTo(Y) >= 0 && (r[r.t++] = 1, r.subTo(Y, r)),
|
|
3097
|
+
for (u.dlShiftTo($, Y), r.compareTo(Y) >= 0 && (r[r.t++] = 1, r.subTo(Y, r)), me.ONE.dlShiftTo(b, Y), Y.subTo(u, u); u.t < b; ) u[u.t++] = 0;
|
|
3098
3098
|
for (; --$ >= 0; ) {
|
|
3099
3099
|
var L = r[--O] == _ ? this.DM : Math.floor(r[O] * C + (r[O - 1] + k) * S);
|
|
3100
3100
|
if ((r[O] += u.am(0, L, r, $, 0, b)) < L)
|
|
3101
3101
|
for (u.dlShiftTo($, Y), r.subTo(Y, r); r[O] < --L; ) r.subTo(Y, r);
|
|
3102
3102
|
}
|
|
3103
|
-
e != null && (r.drShiftTo(b, e), d != s &&
|
|
3103
|
+
e != null && (r.drShiftTo(b, e), d != s && me.ZERO.subTo(e, e)), r.t = b, r.clamp(), m > 0 && r.rShiftTo(m, r), d < 0 && me.ZERO.subTo(r, r);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
3107
|
function rc(t) {
|
|
3108
3108
|
var e = We();
|
|
3109
|
-
return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(
|
|
3109
|
+
return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(me.ZERO) > 0 && t.subTo(e, e), e;
|
|
3110
3110
|
}
|
|
3111
3111
|
function nc() {
|
|
3112
3112
|
if (this.t < 1) return 0;
|
|
@@ -3153,7 +3153,7 @@ function rr(t) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
function uc(t) {
|
|
3155
3155
|
var e = We();
|
|
3156
|
-
return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(
|
|
3156
|
+
return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(me.ZERO) > 0 && this.m.subTo(e, e), e;
|
|
3157
3157
|
}
|
|
3158
3158
|
function dc(t) {
|
|
3159
3159
|
var e = We();
|
|
@@ -3207,34 +3207,34 @@ function gc(t, e, r) {
|
|
|
3207
3207
|
var Y = d.revert(u);
|
|
3208
3208
|
return r(null, Y), Y;
|
|
3209
3209
|
}
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3210
|
+
me.prototype.copyTo = Bl;
|
|
3211
|
+
me.prototype.fromInt = Yl;
|
|
3212
|
+
me.prototype.fromString = zl;
|
|
3213
|
+
me.prototype.clamp = Fl;
|
|
3214
|
+
me.prototype.dlShiftTo = Gl;
|
|
3215
|
+
me.prototype.drShiftTo = Ql;
|
|
3216
|
+
me.prototype.lShiftTo = Kl;
|
|
3217
|
+
me.prototype.rShiftTo = Zl;
|
|
3218
|
+
me.prototype.subTo = Jl;
|
|
3219
|
+
me.prototype.multiplyTo = Xl;
|
|
3220
|
+
me.prototype.squareTo = ec;
|
|
3221
|
+
me.prototype.divRemTo = tc;
|
|
3222
|
+
me.prototype.invDigit = nc;
|
|
3223
|
+
me.prototype.addTo = ic;
|
|
3224
|
+
me.prototype.toString = Wl;
|
|
3225
|
+
me.prototype.negate = Ul;
|
|
3226
|
+
me.prototype.abs = ql;
|
|
3227
|
+
me.prototype.compareTo = Vl;
|
|
3228
|
+
me.prototype.bitLength = Hl;
|
|
3229
|
+
me.prototype.mod = rc;
|
|
3230
|
+
me.prototype.equals = oc;
|
|
3231
|
+
me.prototype.add = sc;
|
|
3232
|
+
me.prototype.subtract = ac;
|
|
3233
|
+
me.prototype.multiply = lc;
|
|
3234
|
+
me.prototype.divide = cc;
|
|
3235
|
+
me.prototype.modPow = gc;
|
|
3236
|
+
me.ZERO = eo(0);
|
|
3237
|
+
me.ONE = eo(1);
|
|
3238
3238
|
function mc(t, e) {
|
|
3239
3239
|
return e = e || {}, new Promise(function(r, n) {
|
|
3240
3240
|
var i = new XMLHttpRequest(), u = [], d = [], s = {}, m = function() {
|
|
@@ -3494,8 +3494,8 @@ function Tc() {
|
|
|
3494
3494
|
F = Math.max(F, de), se = Math.max(se, fe), ue[re] = new Array(de);
|
|
3495
3495
|
for (var pe = 0; pe < ue[re].length; pe += 1) ue[re][pe] = 255 & g.getBuffer()[pe + T];
|
|
3496
3496
|
T += de;
|
|
3497
|
-
var
|
|
3498
|
-
for (he[re] = new Array(
|
|
3497
|
+
var ge = L.getErrorCorrectPolynomial(fe), we = W(ue[re], ge.getLength() - 1).mod(ge);
|
|
3498
|
+
for (he[re] = new Array(ge.getLength() - 1), pe = 0; pe < he[re].length; pe += 1) {
|
|
3499
3499
|
var Se = pe + we.getLength() - he[re].length;
|
|
3500
3500
|
he[re][pe] = Se >= 0 ? we.getAt(Se) : 0;
|
|
3501
3501
|
}
|
|
@@ -3609,13 +3609,13 @@ function Tc() {
|
|
|
3609
3609
|
return v.createASCII = function(M, N) {
|
|
3610
3610
|
if ((M = M || 1) < 2) return (function(ue) {
|
|
3611
3611
|
ue = ue === void 0 ? 2 : ue;
|
|
3612
|
-
var he, re, de, fe, pe,
|
|
3613
|
-
for (he = 0; he <
|
|
3614
|
-
for (de = Math.floor((he - we) / 1), fe = Math.floor((he + 1 - we) / 1), re = 0; re <
|
|
3612
|
+
var he, re, de, fe, pe, ge = 1 * v.getModuleCount() + 2 * ue, we = ue, Se = ge - ue, Ve = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Re = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, ke = "";
|
|
3613
|
+
for (he = 0; he < ge; he += 2) {
|
|
3614
|
+
for (de = Math.floor((he - we) / 1), fe = Math.floor((he + 1 - we) / 1), re = 0; re < ge; re += 1) pe = "█", we <= re && re < Se && we <= he && he < Se && v.isDark(de, Math.floor((re - we) / 1)) && (pe = " "), we <= re && re < Se && we <= he + 1 && he + 1 < Se && v.isDark(fe, Math.floor((re - we) / 1)) ? pe += " " : pe += "█", ke += ue < 1 && he + 1 >= Se ? Re[pe] : Ve[pe];
|
|
3615
3615
|
ke += `
|
|
3616
3616
|
`;
|
|
3617
3617
|
}
|
|
3618
|
-
return
|
|
3618
|
+
return ge % 2 && ue > 0 ? ke.substring(0, ke.length - ge - 1) + Array(ge + 1).join("▀") : ke.substring(0, ke.length - 1);
|
|
3619
3619
|
})(N);
|
|
3620
3620
|
M -= 1, N = N === void 0 ? 2 * M : N;
|
|
3621
3621
|
var E, I, B, le, o = v.getModuleCount() * M + 2 * N, c = N, g = o - N, A = Array(M + 1).join("██"), T = Array(M + 1).join(" "), F = "", se = "";
|
|
@@ -4351,9 +4351,9 @@ function Tc() {
|
|
|
4351
4351
|
de.draw(se, ue, D, ne), de._element && he && he.appendChild(de._element);
|
|
4352
4352
|
} else {
|
|
4353
4353
|
const de = new _({ svg: this._element, type: ((I = l.cornersSquareOptions) === null || I === void 0 ? void 0 : I.type) || l.dotsOptions.type, window: this._window });
|
|
4354
|
-
for (let fe = 0; fe < L.length; fe++) for (let pe = 0; pe < L[fe].length; pe++) !((B = L[fe]) === null || B === void 0) && B[pe] && (de.draw(se + pe * v, ue + fe * v, v, (
|
|
4354
|
+
for (let fe = 0; fe < L.length; fe++) for (let pe = 0; pe < L[fe].length; pe++) !((B = L[fe]) === null || B === void 0) && B[pe] && (de.draw(se + pe * v, ue + fe * v, v, (ge, we) => {
|
|
4355
4355
|
var Se;
|
|
4356
|
-
return !!(!((Se = L[fe + we]) === null || Se === void 0) && Se[pe +
|
|
4356
|
+
return !!(!((Se = L[fe + we]) === null || Se === void 0) && Se[pe + ge]);
|
|
4357
4357
|
}), de._element && he && he.appendChild(de._element));
|
|
4358
4358
|
}
|
|
4359
4359
|
if ((!((le = l.cornersDotOptions) === null || le === void 0) && le.gradient || !((o = l.cornersDotOptions) === null || o === void 0) && o.color) && (re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), re.setAttribute("id", `clip-path-corners-dot-color-${ee}-${z}-${this._instanceId}`), this._defs.appendChild(re), this._cornersDotClipPath = re, this._createColor({ options: (c = l.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (g = l.cornersDotOptions) === null || g === void 0 ? void 0 : g.color, additionalRotation: ne, x: se + 2 * v, y: ue + 2 * v, height: R, width: R, name: `corners-dot-color-${ee}-${z}-${this._instanceId}` })), ((A = l.cornersDotOptions) === null || A === void 0 ? void 0 : A.type) && O.includes(l.cornersDotOptions.type)) {
|
|
@@ -4361,9 +4361,9 @@ function Tc() {
|
|
|
4361
4361
|
de.draw(se + 2 * v, ue + 2 * v, R, ne), de._element && re && re.appendChild(de._element);
|
|
4362
4362
|
} else {
|
|
4363
4363
|
const de = new _({ svg: this._element, type: ((T = l.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) || l.dotsOptions.type, window: this._window });
|
|
4364
|
-
for (let fe = 0; fe < G.length; fe++) for (let pe = 0; pe < G[fe].length; pe++) !((F = G[fe]) === null || F === void 0) && F[pe] && (de.draw(se + pe * v, ue + fe * v, v, (
|
|
4364
|
+
for (let fe = 0; fe < G.length; fe++) for (let pe = 0; pe < G[fe].length; pe++) !((F = G[fe]) === null || F === void 0) && F[pe] && (de.draw(se + pe * v, ue + fe * v, v, (ge, we) => {
|
|
4365
4365
|
var Se;
|
|
4366
|
-
return !!(!((Se = G[fe + we]) === null || Se === void 0) && Se[pe +
|
|
4366
|
+
return !!(!((Se = G[fe + we]) === null || Se === void 0) && Se[pe + ge]);
|
|
4367
4367
|
}), de._element && re && re.appendChild(de._element));
|
|
4368
4368
|
}
|
|
4369
4369
|
});
|
|
@@ -6829,7 +6829,7 @@ const Iu = {
|
|
|
6829
6829
|
onPreviousMonth: de,
|
|
6830
6830
|
static: fe,
|
|
6831
6831
|
enableKeyboardNavigation: pe,
|
|
6832
|
-
attributes:
|
|
6832
|
+
attributes: ge,
|
|
6833
6833
|
...we
|
|
6834
6834
|
} = r, { resolvedClassNames: Se, resolvedStyles: Ve } = Ni({
|
|
6835
6835
|
classNames: N,
|
|
@@ -6857,7 +6857,7 @@ const Iu = {
|
|
|
6857
6857
|
classNames: Se,
|
|
6858
6858
|
unstyled: I,
|
|
6859
6859
|
size: g,
|
|
6860
|
-
attributes:
|
|
6860
|
+
attributes: ge
|
|
6861
6861
|
}, He = S || C || 1, vt = /* @__PURE__ */ new Date(), $t = B && ce(vt).isAfter(B) ? B : ce(vt).format("YYYY-MM-DD"), Le = Tt || $t, Nt = () => {
|
|
6862
6862
|
const ye = ce(Le).add(He, "month").format("YYYY-MM-DD");
|
|
6863
6863
|
re?.(ye), Ne(ye);
|
|
@@ -7973,8 +7973,8 @@ function Id({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClic
|
|
|
7973
7973
|
function Bd({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: u }) {
|
|
7974
7974
|
return y.jsxs(Is, { ...u, viewportRef: i, 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: [n, y.jsx(je, { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), y.jsx("div", { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), y.jsx("div", { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), y.jsx(je, { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7975
7975
|
}
|
|
7976
|
-
function Yd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: u, shadow: d, verticalAlign: s = "center", fetching: m, columns: b, storeColumnsKey: _, groups: j, pinFirstColumn: C, pinLastColumn: S, defaultColumnProps: k, defaultColumnRender: O, idAccessor: $ = "id", records: Y, selectionTrigger: L = "checkbox", selectedRecords: G, onSelectedRecordsChange: W, selectionColumnClassName: X, selectionColumnStyle: te, isRecordSelectable: H, selectionCheckboxProps: K, allRecordsSelectionCheckboxProps: U = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: q = (Ie, tt) => ({ "aria-label": `Select record ${tt + 1}` }), sortStatus: Q, sortIcons: ie, onSortStatusChange: Z, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: l, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: a = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: V, paginationSize: J = "sm", paginationText: ee = ({ from: Ie, to: tt, totalRecords: mt }) => `${Ie} - ${tt} / ${mt}`, paginationWrapBreakpoint: z = "sm", getPaginationControlProps: ne = (Ie) => Ie === "previous" ? { "aria-label": "Previous page" } : Ie === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: M, customLoader: N, loaderSize: E, loaderType: I, loaderColor: B, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: A, striped: T, noHeader: F, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: re, onCellDoubleClick: de, onCellContextMenu: fe, onScroll: pe, onScrollToTop:
|
|
7977
|
-
let Ie = nt(() => j ? co(j) : b, [b, j]), [tt, mt] = xe(!1), { refs: Ee, onScroll: qt } = rd({ scrollCallbacks: { onScroll: pe, onScrollToTop:
|
|
7976
|
+
function Yd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: u, shadow: d, verticalAlign: s = "center", fetching: m, columns: b, storeColumnsKey: _, groups: j, pinFirstColumn: C, pinLastColumn: S, defaultColumnProps: k, defaultColumnRender: O, idAccessor: $ = "id", records: Y, selectionTrigger: L = "checkbox", selectedRecords: G, onSelectedRecordsChange: W, selectionColumnClassName: X, selectionColumnStyle: te, isRecordSelectable: H, selectionCheckboxProps: K, allRecordsSelectionCheckboxProps: U = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: q = (Ie, tt) => ({ "aria-label": `Select record ${tt + 1}` }), sortStatus: Q, sortIcons: ie, onSortStatusChange: Z, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: l, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: a = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: V, paginationSize: J = "sm", paginationText: ee = ({ from: Ie, to: tt, totalRecords: mt }) => `${Ie} - ${tt} / ${mt}`, paginationWrapBreakpoint: z = "sm", getPaginationControlProps: ne = (Ie) => Ie === "previous" ? { "aria-label": "Previous page" } : Ie === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: M, customLoader: N, loaderSize: E, loaderType: I, loaderColor: B, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: A, striped: T, noHeader: F, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: re, onCellDoubleClick: de, onCellContextMenu: fe, onScroll: pe, onScrollToTop: ge, onScrollToBottom: we, onScrollToLeft: Se, onScrollToRight: Ve, c: Re, backgroundColor: ke, borderColor: Tt, rowBorderColor: Ne, stripedColor: yt, highlightOnHoverColor: He, rowColor: vt, rowBackgroundColor: $t, rowExpansion: Le, rowClassName: Nt, rowStyle: qe, customRowAttributes: bt, scrollViewportRef: Je, scrollAreaProps: pt, tableRef: Xe, bodyRef: st, m: gt, my: ye, mx: Pe, mt: Ge, mb: at, ml: xt, mr: Ct, className: Ut, classNames: wt, style: St, styles: et, rowFactory: Dt, tableWrapper: kt, ...Lt }) {
|
|
7977
|
+
let Ie = nt(() => j ? co(j) : b, [b, j]), [tt, mt] = xe(!1), { refs: Ee, onScroll: qt } = rd({ scrollCallbacks: { onScroll: pe, onScrollToTop: ge, onScrollToBottom: we, onScrollToLeft: Se, onScrollToRight: Ve }, withRowBorders: Lt.withRowBorders }), ve = td({ key: _, columns: Ie, headerRef: Ee.header, scrollViewportRef: Ee.scrollViewport, onFixedLayoutChange: mt }), be = xo(Ee.table, Xe), lt = xo(Ee.scrollViewport, Je), Be = ud({ rowExpansion: Le, records: Y, idAccessor: $ }), Ce = De(!1), Qe = De(x), Ke = De(Y), Vt = Te((_e) => {
|
|
7978
7978
|
Ce.current = !0, Ke.current = Y, w(_e);
|
|
7979
7979
|
}, [w, Y]);
|
|
7980
7980
|
Me(() => {
|
|
@@ -8556,7 +8556,7 @@ function lh(t) {
|
|
|
8556
8556
|
const F = T, se = Zd(B, g.columnAccessor, g.direction), [ue, he] = Qd(Mn[1], "mantine-table-page-size"), [re, de] = xe(1), fe = _ ? se.slice((re - 1) * ue, re * ue) : se;
|
|
8557
8557
|
let pe;
|
|
8558
8558
|
e[19] === Symbol.for("react.memo_cache_sentinel") ? (pe = [], e[19] = pe) : pe = e[19];
|
|
8559
|
-
const [
|
|
8559
|
+
const [ge, we] = xe(pe);
|
|
8560
8560
|
let Se;
|
|
8561
8561
|
e[20] === Symbol.for("react.memo_cache_sentinel") ? (Se = () => {
|
|
8562
8562
|
we([]);
|
|
@@ -8609,21 +8609,21 @@ function lh(t) {
|
|
|
8609
8609
|
let Xe;
|
|
8610
8610
|
e[38] !== M || e[39] !== ie ? (Xe = ie && /* @__PURE__ */ y.jsx(Jt, { variant: "subtle", onClick: () => M(), "aria-label": "Neuladen", children: /* @__PURE__ */ y.jsx(ea, {}) }), e[38] = M, e[39] = ie, e[40] = Xe) : Xe = e[40];
|
|
8611
8611
|
let st;
|
|
8612
|
-
e[41] !== C || e[42] !== H || e[43] !== te || e[44] !== m || e[45] !== Z || e[46] !==
|
|
8613
|
-
const ve = m.find(mh) && (!te ||
|
|
8612
|
+
e[41] !== C || e[42] !== H || e[43] !== te || e[44] !== m || e[45] !== Z || e[46] !== ge || e[47] !== b ? (st = (m.some(yh) || b) && (() => {
|
|
8613
|
+
const ve = m.find(mh) && (!te || ge.length > 0 && te(ge[0])), be = m.find(gh) && (!H || ge.length > 0 && H(ge[0])), lt = (C ?? []).length > 0, Be = ve || be || lt;
|
|
8614
8614
|
return /* @__PURE__ */ y.jsx(je, { ...Z ? {
|
|
8615
8615
|
visibleFrom: "sm"
|
|
8616
8616
|
} : {}, children: /* @__PURE__ */ y.jsxs(ht, { shadow: "md", children: [
|
|
8617
|
-
/* @__PURE__ */ y.jsx(ht.Target, { children: /* @__PURE__ */ y.jsx(_t, { variant: "outline", rightSection: /* @__PURE__ */ y.jsx(Xs, { size: 14 }), disabled: !
|
|
8617
|
+
/* @__PURE__ */ y.jsx(ht.Target, { children: /* @__PURE__ */ y.jsx(_t, { variant: "outline", rightSection: /* @__PURE__ */ y.jsx(Xs, { size: 14 }), disabled: !ge.length || !Be, children: "Aktionen" }) }),
|
|
8618
8618
|
/* @__PURE__ */ y.jsxs(ht.Dropdown, { children: [
|
|
8619
|
-
ve && /* @__PURE__ */ y.jsx(ht.Item, { leftSection: /* @__PURE__ */ y.jsx(wo, { size: 14 }), onClick: () => Ne(!0), disabled:
|
|
8619
|
+
ve && /* @__PURE__ */ y.jsx(ht.Item, { leftSection: /* @__PURE__ */ y.jsx(wo, { size: 14 }), onClick: () => Ne(!0), disabled: ge.length !== 1, children: "Bearbeiten" }),
|
|
8620
8620
|
(C ?? []).map((Ce, Qe) => /* @__PURE__ */ Nr(ht.Item, { ...Ce.icon && {
|
|
8621
8621
|
leftSection: Ce.icon
|
|
8622
|
-
}, key: `custom_action_${Qe}`, onClick: () => Ce.onClick(
|
|
8622
|
+
}, key: `custom_action_${Qe}`, onClick: () => Ce.onClick(ge), disabled: Ce.disabled?.(ge) ?? !1 }, Ce.label)),
|
|
8623
8623
|
be && /* @__PURE__ */ y.jsx(ht.Item, { leftSection: /* @__PURE__ */ y.jsx(_o, { size: 14 }), onClick: () => He(!0), color: "red", children: "Löschen" })
|
|
8624
8624
|
] })
|
|
8625
8625
|
] }) });
|
|
8626
|
-
})(), e[41] = C, e[42] = H, e[43] = te, e[44] = m, e[45] = Z, e[46] =
|
|
8626
|
+
})(), e[41] = C, e[42] = H, e[43] = te, e[44] = m, e[45] = Z, e[46] = ge, e[47] = b, e[48] = st) : st = e[48];
|
|
8627
8627
|
let gt;
|
|
8628
8628
|
e[49] !== $ || e[50] !== m || e[51] !== ne ? (gt = m.find(ph) && /* @__PURE__ */ y.jsx(_t, { onClick: () => ke(!0), disabled: ne, children: $ ?? "Erstellen" }), e[49] = $, e[50] = m, e[51] = ne, e[52] = gt) : gt = e[52];
|
|
8629
8629
|
let ye;
|
|
@@ -8648,11 +8648,11 @@ function lh(t) {
|
|
|
8648
8648
|
Array(5).fill(0).map(hh)
|
|
8649
8649
|
] }), e[68] = ne, e[69] = ae, e[70] = xt) : xt = e[70];
|
|
8650
8650
|
let Ct;
|
|
8651
|
-
e[71] !== H || e[72] !== te || e[73] !== m || e[74] !== F || e[75] !== oe || e[76] !== ne || e[77] !== ae || e[78] !== qe || e[79] !== Z || e[80] !== q || e[81] !== re || e[82] !== ue || e[83] !== _ || e[84] !== fe || e[85] !== U || e[86] !==
|
|
8651
|
+
e[71] !== H || e[72] !== te || e[73] !== m || e[74] !== F || e[75] !== oe || e[76] !== ne || e[77] !== ae || e[78] !== qe || e[79] !== Z || e[80] !== q || e[81] !== re || e[82] !== ue || e[83] !== _ || e[84] !== fe || e[85] !== U || e[86] !== ge || e[87] !== b || e[88] !== de || e[89] !== he || e[90] !== g || e[91] !== se ? (Ct = !ne && !ae && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
8652
8652
|
/* @__PURE__ */ y.jsx(je, { ...Z ? {
|
|
8653
8653
|
visibleFrom: "sm"
|
|
8654
8654
|
} : {}, children: /* @__PURE__ */ y.jsx(Yd, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: oe, records: fe, sortStatus: g, onSortStatusChange: F, ...b && {
|
|
8655
|
-
selectedRecords:
|
|
8655
|
+
selectedRecords: ge,
|
|
8656
8656
|
onSelectedRecordsChange: we
|
|
8657
8657
|
}, ..._ && fe.length && {
|
|
8658
8658
|
totalRecords: se.length,
|
|
@@ -8680,7 +8680,7 @@ function lh(t) {
|
|
|
8680
8680
|
cursor: "pointer"
|
|
8681
8681
|
}
|
|
8682
8682
|
} }) }),
|
|
8683
|
-
Z && /* @__PURE__ */ y.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ y.jsx(th, { records: fe, fields: m, selection: b, selectedRecords:
|
|
8683
|
+
Z && /* @__PURE__ */ y.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ y.jsx(th, { records: fe, fields: m, selection: b, selectedRecords: ge, onSelectedRecordsChange: we, onRowClick: q, sort: {
|
|
8684
8684
|
field: String(g.columnAccessor),
|
|
8685
8685
|
direction: g.direction,
|
|
8686
8686
|
onSortChange: (ve, be) => {
|
|
@@ -8709,24 +8709,24 @@ function lh(t) {
|
|
|
8709
8709
|
canUpdate: te,
|
|
8710
8710
|
canDelete: H
|
|
8711
8711
|
} }) })
|
|
8712
|
-
] }), e[71] = H, e[72] = te, e[73] = m, e[74] = F, e[75] = oe, e[76] = ne, e[77] = ae, e[78] = qe, e[79] = Z, e[80] = q, e[81] = re, e[82] = ue, e[83] = _, e[84] = fe, e[85] = U, e[86] =
|
|
8712
|
+
] }), e[71] = H, e[72] = te, e[73] = m, e[74] = F, e[75] = oe, e[76] = ne, e[77] = ae, e[78] = qe, e[79] = Z, e[80] = q, e[81] = re, e[82] = ue, e[83] = _, e[84] = fe, e[85] = U, e[86] = ge, e[87] = b, e[88] = de, e[89] = he, e[90] = g, e[91] = se, e[92] = Ct) : Ct = e[92];
|
|
8713
8713
|
let Ut;
|
|
8714
8714
|
e[93] === Symbol.for("react.memo_cache_sentinel") ? (Ut = () => {
|
|
8715
8715
|
Ne(!1), we([]);
|
|
8716
8716
|
}, e[93] = Ut) : Ut = e[93];
|
|
8717
8717
|
const wt = r ?? "Bearbeiten";
|
|
8718
8718
|
let St;
|
|
8719
|
-
e[94] !== D || e[95] !== m || e[96] !== n || e[97] !==
|
|
8719
|
+
e[94] !== D || e[95] !== m || e[96] !== n || e[97] !== ge[0] || e[98] !== ge.length || e[99] !== S ? (St = ge.length > 0 && /* @__PURE__ */ y.jsx(zd, { fields: m.filter(uh), queryKey: n, apiPath: D, id: ge[0].id, onClose: () => {
|
|
8720
8720
|
Ne(!1), we([]);
|
|
8721
|
-
}, steps: S }), e[94] = D, e[95] = m, e[96] = n, e[97] =
|
|
8721
|
+
}, steps: S }), e[94] = D, e[95] = m, e[96] = n, e[97] = ge[0], e[98] = ge.length, e[99] = S, e[100] = St) : St = e[100];
|
|
8722
8722
|
let et;
|
|
8723
8723
|
e[101] !== wt || e[102] !== St || e[103] !== Tt ? (et = /* @__PURE__ */ y.jsx(vn, { opened: Tt, onClose: Ut, title: wt, children: St }), e[101] = wt, e[102] = St, e[103] = Tt, e[104] = et) : et = e[104];
|
|
8724
8724
|
let Dt;
|
|
8725
|
-
e[105] !== yt || e[106] !== D || e[107] !== n || e[108] !==
|
|
8725
|
+
e[105] !== yt || e[106] !== D || e[107] !== n || e[108] !== ge || e[109] !== r ? (Dt = ge.length > 0 && /* @__PURE__ */ y.jsx(vn, { opened: yt, onClose: () => {
|
|
8726
8726
|
He(!1), we([]);
|
|
8727
8727
|
}, title: r ?? "Löschen", children: /* @__PURE__ */ y.jsx(Gd, { onClose: () => {
|
|
8728
8728
|
He(!1), we([]);
|
|
8729
|
-
}, queryKey: n, apiPath: D, selectedRecords:
|
|
8729
|
+
}, queryKey: n, apiPath: D, selectedRecords: ge }) }), e[105] = yt, e[106] = D, e[107] = n, e[108] = ge, e[109] = r, e[110] = Dt) : Dt = e[110];
|
|
8730
8730
|
let kt;
|
|
8731
8731
|
e[111] === Symbol.for("react.memo_cache_sentinel") ? (kt = () => {
|
|
8732
8732
|
ke(!1);
|