munza-x-data-grid 3.0.3 → 3.0.4
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.cjs +5 -5
- package/dist/index.js +115 -71
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1616,6 +1616,7 @@ var At = ({ refs: e, axis: t = "both" }) => {
|
|
|
1616
1616
|
};
|
|
1617
1617
|
}, [e, t]);
|
|
1618
1618
|
}, jt = n(void 0), Mt = ({ children: e, payload: n, columns: r, state: i = {}, onColumnFiltersChange: a, onPaginationChange: o, onSortingChange: s, onRowSelectionChange: c, setGlobalFilter: l, manualPagination: d = !1, enableRowSelection: p = !0, isError: m, isLoading: g, isFetching: _, refetch: v, getRowCanExpand: y, renderSubComponent: b, name: x = "munza", height: S }) => {
|
|
1619
|
+
"use no memo";
|
|
1619
1620
|
let C = f(null), [w, T] = t.useState(() => bt(x)), [E, D] = _t(x), [O, k] = lt(x), [A, j] = at(x, u(() => r.map((e) => e.id), [r])), [M, N] = kt(x), [P, F] = pt(x), [I, ee] = t.useState({}), [te, ne] = Tt(x), re = tt({
|
|
1620
1621
|
_features: [yt],
|
|
1621
1622
|
data: n?.data ?? [],
|
|
@@ -7642,6 +7643,7 @@ function Wf({ className: e, ...t }) {
|
|
|
7642
7643
|
//#endregion
|
|
7643
7644
|
//#region src/package/components/pagination/index.tsx
|
|
7644
7645
|
var Gf = ({ pagination: e = [] }) => {
|
|
7646
|
+
"use no memo";
|
|
7645
7647
|
let { table: t, isError: n, isLoading: r, isFetching: i } = H();
|
|
7646
7648
|
return /* @__PURE__ */ g("div", {
|
|
7647
7649
|
className: "mun:flex mun:justify-between mun:flex-wrap",
|
|
@@ -7840,6 +7842,7 @@ var ip = () => /* @__PURE__ */ h("div", {
|
|
|
7840
7842
|
/* @__PURE__ */ h(rp, { children: "No data found" })
|
|
7841
7843
|
] }) })
|
|
7842
7844
|
}), ap = () => {
|
|
7845
|
+
"use no memo";
|
|
7843
7846
|
let { table: e } = H();
|
|
7844
7847
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: /* @__PURE__ */ h(Yf, { children: e.getLeftVisibleLeafColumns().map((e, t) => /* @__PURE__ */ h(Zf, { style: {
|
|
7845
7848
|
width: e.getSize(),
|
|
@@ -7878,18 +7881,22 @@ var cp = [
|
|
|
7878
7881
|
70,
|
|
7879
7882
|
40,
|
|
7880
7883
|
90
|
|
7881
|
-
], lp = ({ column: e, i: t, j: n }) =>
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7884
|
+
], lp = ({ column: e, i: t, j: n }) => {
|
|
7885
|
+
"use no memo";
|
|
7886
|
+
return /* @__PURE__ */ h(m, { children: ["select"].includes(e.id) ? /* @__PURE__ */ h(Pf, {
|
|
7887
|
+
size: 16,
|
|
7888
|
+
className: "animate-spin"
|
|
7889
|
+
}) : [
|
|
7890
|
+
"actions",
|
|
7891
|
+
"pin",
|
|
7892
|
+
"drag-handle",
|
|
7893
|
+
"rowNumber"
|
|
7894
|
+
].includes(e.id) ? /* @__PURE__ */ h(sp, { className: "mun:w-full mun:h-4" }) : /* @__PURE__ */ h(sp, {
|
|
7895
|
+
className: "mun:h-4",
|
|
7896
|
+
style: { width: `${cp[(t + n) % cp.length]}px` }
|
|
7897
|
+
}) });
|
|
7898
|
+
}, up = () => {
|
|
7899
|
+
"use no memo";
|
|
7893
7900
|
let { table: e, isSplit: t, density: n } = H(), r = e.getLeftHeaderGroups().map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
|
|
7894
7901
|
return /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: [...Array(20)].map((e, i) => /* @__PURE__ */ h(Yf, {
|
|
7895
7902
|
className: "mun:*:border-r mun:*:border-border",
|
|
@@ -7910,6 +7917,7 @@ var cp = [
|
|
|
7910
7917
|
}, r))
|
|
7911
7918
|
}, i)) }) });
|
|
7912
7919
|
}, dp = ({ cell: e }) => {
|
|
7920
|
+
"use no memo";
|
|
7913
7921
|
let { density: t, isSplit: n } = H(), r = f(null), i = {
|
|
7914
7922
|
width: e.column.getSize(),
|
|
7915
7923
|
minWidth: e.column.getSize(),
|
|
@@ -7939,6 +7947,7 @@ var cp = [
|
|
|
7939
7947
|
//#endregion
|
|
7940
7948
|
//#region src/package/components/table/TableLeftCellPin.tsx
|
|
7941
7949
|
function fp({ row: e, table: t }) {
|
|
7950
|
+
"use no memo";
|
|
7942
7951
|
return /* @__PURE__ */ h(Yf, {
|
|
7943
7952
|
style: {
|
|
7944
7953
|
backgroundColor: "blue",
|
|
@@ -7953,6 +7962,7 @@ function fp({ row: e, table: t }) {
|
|
|
7953
7962
|
//#endregion
|
|
7954
7963
|
//#region src/package/components/table/TGetLeftBody.tsx
|
|
7955
7964
|
var pp = () => {
|
|
7965
|
+
"use no memo";
|
|
7956
7966
|
let { table: e, isLoading: n, isError: r, renderSubComponent: i } = H();
|
|
7957
7967
|
return n ? /* @__PURE__ */ h(up, {}) : r ? /* @__PURE__ */ h("div", { children: "Error" }) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ h(ap, {}) : /* @__PURE__ */ g(Kf, { children: [
|
|
7958
7968
|
e.getTopRows().map((t) => /* @__PURE__ */ h(fp, {
|
|
@@ -7987,6 +7997,7 @@ var pp = () => {
|
|
|
7987
7997
|
onChange: (e) => o(e.target.value)
|
|
7988
7998
|
});
|
|
7989
7999
|
}, hp = ({ column: e }) => {
|
|
8000
|
+
"use no memo";
|
|
7990
8001
|
let t = e.getFilterValue(), { filterVariant: n } = e.columnDef.meta ?? {}, { isFetching: r } = H(), i = !r && n === "select" ? Array.from(e.getFacetedUniqueValues().keys()).sort().slice(0, 5e3) : [];
|
|
7991
8002
|
return e.getCanFilter() ? /* @__PURE__ */ h("div", {
|
|
7992
8003
|
className: "mun:p-1.5 mun:border-t mun:border-border mun:w-full",
|
|
@@ -8092,6 +8103,7 @@ function Sp({ className: e, ...t }) {
|
|
|
8092
8103
|
//#endregion
|
|
8093
8104
|
//#region src/package/components/header/HeaderMenu.tsx
|
|
8094
8105
|
var Cp = ({ header: e }) => {
|
|
8106
|
+
"use no memo";
|
|
8095
8107
|
let [t, n] = p(!1), { isLoading: r, isError: i } = H();
|
|
8096
8108
|
return e.column.getCanFilter() ? /* @__PURE__ */ g(gp, {
|
|
8097
8109
|
open: t,
|
|
@@ -8152,19 +8164,26 @@ var Cp = ({ header: e }) => {
|
|
|
8152
8164
|
]
|
|
8153
8165
|
})]
|
|
8154
8166
|
}) : null;
|
|
8155
|
-
}, wp = ({ header: e }) =>
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8167
|
+
}, wp = ({ header: e }) => {
|
|
8168
|
+
"use no memo";
|
|
8169
|
+
return /* @__PURE__ */ h("div", {
|
|
8170
|
+
onDoubleClick: () => e.column.resetSize(),
|
|
8171
|
+
onMouseDown: e.getResizeHandler(),
|
|
8172
|
+
onTouchStart: e.getResizeHandler(),
|
|
8173
|
+
className: X("mun:absolute mun:top-0 mun:right-0 mun:h-full mun:w-1.25 mun:bg-black/50 mun:cursor-col-resize mun:select-none mun:touch-none mun:opacity-0 mun:group-hover:opacity-100", e.column.getIsResizing() ? "mun:bg-blue-500 mun:opacity-100" : "")
|
|
8174
|
+
});
|
|
8175
|
+
}, Tp = ({ header: e }) => {
|
|
8176
|
+
"use no memo";
|
|
8177
|
+
return /* @__PURE__ */ g("div", {
|
|
8178
|
+
className: e.column.getCanSort() ? "mun:cursor-pointer mun:select-none mun:flex mun:items-center mun:gap-2" : "",
|
|
8179
|
+
onClick: e.column.getToggleSortingHandler(),
|
|
8180
|
+
children: [Ze(e.column.columnDef.header, e.getContext()), {
|
|
8181
|
+
asc: /* @__PURE__ */ h(wf, { className: "mun:size-4" }),
|
|
8182
|
+
desc: /* @__PURE__ */ h(Sf, { className: "mun:size-4" })
|
|
8183
|
+
}[e.column.getIsSorted()] ?? null]
|
|
8184
|
+
});
|
|
8185
|
+
}, Ep = ({ header: e }) => {
|
|
8186
|
+
"use no memo";
|
|
8168
8187
|
let { isSplit: t } = H(), n = {
|
|
8169
8188
|
position: "relative",
|
|
8170
8189
|
whiteSpace: "nowrap",
|
|
@@ -8186,6 +8205,7 @@ var Cp = ({ header: e }) => {
|
|
|
8186
8205
|
}), /* @__PURE__ */ h(wp, { header: e })]
|
|
8187
8206
|
}, e.id);
|
|
8188
8207
|
}, Dp = () => {
|
|
8208
|
+
"use no memo";
|
|
8189
8209
|
let { table: e } = H();
|
|
8190
8210
|
return /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(qf, {
|
|
8191
8211
|
className: "sticky top-0 z-10 bg-muted",
|
|
@@ -8195,6 +8215,7 @@ var Cp = ({ header: e }) => {
|
|
|
8195
8215
|
}, e.id))
|
|
8196
8216
|
}) });
|
|
8197
8217
|
}, Op = () => {
|
|
8218
|
+
"use no memo";
|
|
8198
8219
|
let { isSplit: e, columnPinning: t, paneRef3: n, paneRef4: r, height: i, isError: a } = H();
|
|
8199
8220
|
return /* @__PURE__ */ h(m, { children: !a && e && (t?.left?.length ?? 0) > 0 ? /* @__PURE__ */ g("div", {
|
|
8200
8221
|
className: "mun:max-w-80 mun:overflow-hidden",
|
|
@@ -8210,6 +8231,7 @@ var Cp = ({ header: e }) => {
|
|
|
8210
8231
|
})]
|
|
8211
8232
|
}) : null });
|
|
8212
8233
|
}, kp = () => {
|
|
8234
|
+
"use no memo";
|
|
8213
8235
|
let { table: e } = H();
|
|
8214
8236
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: /* @__PURE__ */ h(Yf, { children: e.getLeftVisibleLeafColumns().map((e, t) => /* @__PURE__ */ h(Zf, { style: {
|
|
8215
8237
|
width: e.getSize(),
|
|
@@ -8217,6 +8239,7 @@ var Cp = ({ header: e }) => {
|
|
|
8217
8239
|
maxWidth: e.getSize()
|
|
8218
8240
|
} }, t)) }) }) }), /* @__PURE__ */ h(ip, {})] });
|
|
8219
8241
|
}, Ap = () => {
|
|
8242
|
+
"use no memo";
|
|
8220
8243
|
let { table: e, isSplit: t, density: n } = H(), r = e.getRightHeaderGroups().map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
|
|
8221
8244
|
return /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: [...Array(20)].map((e, i) => /* @__PURE__ */ h(Yf, {
|
|
8222
8245
|
className: "mun:*:border-r mun:*:border-border",
|
|
@@ -8240,6 +8263,7 @@ var Cp = ({ header: e }) => {
|
|
|
8240
8263
|
//#endregion
|
|
8241
8264
|
//#region src/package/components/table/TableRightCellPin.tsx
|
|
8242
8265
|
function jp({ row: e, table: t }) {
|
|
8266
|
+
"use no memo";
|
|
8243
8267
|
return /* @__PURE__ */ h(Yf, {
|
|
8244
8268
|
style: {
|
|
8245
8269
|
backgroundColor: "blue",
|
|
@@ -8254,6 +8278,7 @@ function jp({ row: e, table: t }) {
|
|
|
8254
8278
|
//#endregion
|
|
8255
8279
|
//#region src/package/components/table/TGetRightBody.tsx
|
|
8256
8280
|
var Mp = () => {
|
|
8281
|
+
"use no memo";
|
|
8257
8282
|
let { table: e, isLoading: n, isError: r, renderSubComponent: i } = H();
|
|
8258
8283
|
return n ? /* @__PURE__ */ h(Ap, {}) : r ? /* @__PURE__ */ h("div", { children: "Error" }) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ h(kp, {}) : /* @__PURE__ */ g(Kf, { children: [
|
|
8259
8284
|
e.getTopRows().map((t) => /* @__PURE__ */ h(jp, {
|
|
@@ -8274,6 +8299,7 @@ var Mp = () => {
|
|
|
8274
8299
|
}, t.id))
|
|
8275
8300
|
] });
|
|
8276
8301
|
}, Np = () => {
|
|
8302
|
+
"use no memo";
|
|
8277
8303
|
let { table: e } = H();
|
|
8278
8304
|
return /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(qf, {
|
|
8279
8305
|
className: "sticky top-0 z-10 bg-muted",
|
|
@@ -8283,6 +8309,7 @@ var Mp = () => {
|
|
|
8283
8309
|
}, e.id))
|
|
8284
8310
|
}) });
|
|
8285
8311
|
}, Pp = () => {
|
|
8312
|
+
"use no memo";
|
|
8286
8313
|
let { isSplit: e, columnPinning: t, paneRef5: n, paneRef6: r, height: i, isError: a } = H();
|
|
8287
8314
|
return /* @__PURE__ */ h(m, { children: !a && e && (t?.right?.length ?? 0) > 0 ? /* @__PURE__ */ g("div", {
|
|
8288
8315
|
className: "mun:max-w-80 mun:overflow-hidden",
|
|
@@ -8333,6 +8360,7 @@ var Mp = () => {
|
|
|
8333
8360
|
className: "mun:absolute mun:top-1/2 mun:left-1/2 mun:-translate-x-1/2 mun:-translate-y-1/2",
|
|
8334
8361
|
children: /* @__PURE__ */ h(Fp, {})
|
|
8335
8362
|
}), Lp = () => {
|
|
8363
|
+
"use no memo";
|
|
8336
8364
|
let { table: e, isSplit: t } = H();
|
|
8337
8365
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: /* @__PURE__ */ h(Yf, { children: u(() => t ? e.getCenterVisibleLeafColumns() : e.getVisibleLeafColumns(), [e, t]).map((e, t) => /* @__PURE__ */ h(Zf, { style: {
|
|
8338
8366
|
width: e.getSize(),
|
|
@@ -8340,6 +8368,7 @@ var Mp = () => {
|
|
|
8340
8368
|
maxWidth: e.getSize()
|
|
8341
8369
|
} }, t)) }) }) }), /* @__PURE__ */ h(ip, {})] });
|
|
8342
8370
|
}, Rp = () => {
|
|
8371
|
+
"use no memo";
|
|
8343
8372
|
let { table: e, isSplit: t, density: n } = H(), r = (t ? e.getCenterHeaderGroups() : e.getHeaderGroups()).map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
|
|
8344
8373
|
return /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(Jf, { children: [...Array(20)].map((e, i) => /* @__PURE__ */ h(Yf, {
|
|
8345
8374
|
className: "mun:*:border-r mun:*:border-border",
|
|
@@ -8363,6 +8392,7 @@ var Mp = () => {
|
|
|
8363
8392
|
//#endregion
|
|
8364
8393
|
//#region src/package/components/table/TableCellPin.tsx
|
|
8365
8394
|
function zp({ row: e, table: t, isSplit: n }) {
|
|
8395
|
+
"use no memo";
|
|
8366
8396
|
return /* @__PURE__ */ h(Yf, {
|
|
8367
8397
|
style: {
|
|
8368
8398
|
backgroundColor: "blue",
|
|
@@ -8377,6 +8407,7 @@ function zp({ row: e, table: t, isSplit: n }) {
|
|
|
8377
8407
|
//#endregion
|
|
8378
8408
|
//#region src/package/components/table/TBody.tsx
|
|
8379
8409
|
var Bp = () => {
|
|
8410
|
+
"use no memo";
|
|
8380
8411
|
let { table: e, isLoading: n, isError: r, renderSubComponent: i, isSplit: a } = H();
|
|
8381
8412
|
return n ? /* @__PURE__ */ h(Rp, {}) : r ? /* @__PURE__ */ h(Ip, {}) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ h(Lp, {}) : /* @__PURE__ */ h(Kf, {
|
|
8382
8413
|
style: { width: e.getCenterTotalSize() },
|
|
@@ -8402,6 +8433,7 @@ var Bp = () => {
|
|
|
8402
8433
|
] })
|
|
8403
8434
|
});
|
|
8404
8435
|
}, Vp = () => {
|
|
8436
|
+
"use no memo";
|
|
8405
8437
|
let { table: e, isSplit: t } = H();
|
|
8406
8438
|
return /* @__PURE__ */ h(Kf, {
|
|
8407
8439
|
style: { width: e.getCenterTotalSize() },
|
|
@@ -8414,6 +8446,7 @@ var Bp = () => {
|
|
|
8414
8446
|
})
|
|
8415
8447
|
});
|
|
8416
8448
|
}, Hp = () => {
|
|
8449
|
+
"use no memo";
|
|
8417
8450
|
let { paneRef1: e, paneRef2: n, height: r } = H();
|
|
8418
8451
|
return /* @__PURE__ */ g(t.Fragment, { children: [/* @__PURE__ */ h("div", {
|
|
8419
8452
|
className: "mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden",
|
|
@@ -8452,6 +8485,7 @@ function Wp({ className: e, ...t }) {
|
|
|
8452
8485
|
//#endregion
|
|
8453
8486
|
//#region src/package/components/toolbar/ToolbarColumns.tsx
|
|
8454
8487
|
var Gp = () => {
|
|
8488
|
+
"use no memo";
|
|
8455
8489
|
let { table: e, setIsSplit: t, isSplit: n } = H(), [r, i] = p(""), a = u(() => e.getAllLeafColumns().filter((e) => !["rowNumber"].includes(e.id)).filter((e) => e.id.toLowerCase().includes(r.toLowerCase())), [r, e]);
|
|
8456
8490
|
return /* @__PURE__ */ g("div", {
|
|
8457
8491
|
className: "mun:flex mun:flex-col mun:gap-1.5 mun:h-full mun:py-1.5",
|
|
@@ -10737,6 +10771,7 @@ $.Down, $.Right, $.Up, $.Left;
|
|
|
10737
10771
|
//#endregion
|
|
10738
10772
|
//#region src/package/components/toolbar/ToolbarDnd.tsx
|
|
10739
10773
|
var a_ = ({ columnId: e, label: t }) => {
|
|
10774
|
+
"use no memo";
|
|
10740
10775
|
let { attributes: n, isDragging: r, listeners: i, setNodeRef: a, transform: o, transition: s } = r_({ id: e });
|
|
10741
10776
|
return /* @__PURE__ */ g("div", {
|
|
10742
10777
|
ref: a,
|
|
@@ -10827,6 +10862,7 @@ function l_({ ...e }) {
|
|
|
10827
10862
|
//#endregion
|
|
10828
10863
|
//#region src/package/components/toolbar/ToolbarFilters.tsx
|
|
10829
10864
|
var u_ = ({ column: e }) => {
|
|
10865
|
+
"use no memo";
|
|
10830
10866
|
let t = u(() => e.getCanFilter() ? {
|
|
10831
10867
|
id: e.id.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (e) => e.toUpperCase()),
|
|
10832
10868
|
uniqueValues: Array.from(e.getFacetedUniqueValues().keys())
|
|
@@ -10896,6 +10932,7 @@ var u_ = ({ column: e }) => {
|
|
|
10896
10932
|
]
|
|
10897
10933
|
});
|
|
10898
10934
|
}, f_ = () => {
|
|
10935
|
+
"use no memo";
|
|
10899
10936
|
let { table: e, density: t } = H();
|
|
10900
10937
|
return /* @__PURE__ */ g("div", {
|
|
10901
10938
|
className: "mun:flex mun:flex-col mun:gap-1.5 mun:h-full mun:py-1.5",
|
|
@@ -10909,27 +10946,29 @@ var u_ = ({ column: e }) => {
|
|
|
10909
10946
|
}),
|
|
10910
10947
|
/* @__PURE__ */ g("div", {
|
|
10911
10948
|
className: "mun:space-y-2 mun:px-1.5 mun:flex-1",
|
|
10912
|
-
children: [
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10949
|
+
children: [/* @__PURE__ */ h(Wp, { children: "Row Density" }), /* @__PURE__ */ g("div", {
|
|
10950
|
+
className: "mun:flex mun:items-center mun:gap-1.5 mun:flex-wrap",
|
|
10951
|
+
children: [
|
|
10952
|
+
/* @__PURE__ */ h(Z, {
|
|
10953
|
+
variant: t === "sm" ? "default" : "outline",
|
|
10954
|
+
onClick: () => e.setDensity("sm"),
|
|
10955
|
+
size: "sm",
|
|
10956
|
+
children: "Small"
|
|
10957
|
+
}),
|
|
10958
|
+
/* @__PURE__ */ h(Z, {
|
|
10959
|
+
variant: t === "md" ? "default" : "outline",
|
|
10960
|
+
onClick: () => e.setDensity("md"),
|
|
10961
|
+
size: "sm",
|
|
10962
|
+
children: "Default"
|
|
10963
|
+
}),
|
|
10964
|
+
/* @__PURE__ */ h(Z, {
|
|
10965
|
+
variant: t === "lg" ? "default" : "outline",
|
|
10966
|
+
onClick: () => e.setDensity("lg"),
|
|
10967
|
+
size: "sm",
|
|
10968
|
+
children: "Large"
|
|
10969
|
+
})
|
|
10970
|
+
]
|
|
10971
|
+
})]
|
|
10933
10972
|
}),
|
|
10934
10973
|
/* @__PURE__ */ h("div", {
|
|
10935
10974
|
className: "mun:px-1.5",
|
|
@@ -10943,6 +10982,7 @@ var u_ = ({ column: e }) => {
|
|
|
10943
10982
|
]
|
|
10944
10983
|
});
|
|
10945
10984
|
}, p_ = () => {
|
|
10985
|
+
"use no memo";
|
|
10946
10986
|
let { table: e, setIsSplit: t, gridWrapperRef: n, isFetching: r, refetch: i } = H(), [a, o] = p(!1);
|
|
10947
10987
|
return c(() => {
|
|
10948
10988
|
let e = () => {
|
|
@@ -10981,6 +11021,7 @@ var u_ = ({ column: e }) => {
|
|
|
10981
11021
|
})]
|
|
10982
11022
|
});
|
|
10983
11023
|
}, m_ = ({ height: e }) => {
|
|
11024
|
+
"use no memo";
|
|
10984
11025
|
let [t, n] = p(null), r = (e) => {
|
|
10985
11026
|
n(t === e ? null : e);
|
|
10986
11027
|
};
|
|
@@ -11046,31 +11087,34 @@ var u_ = ({ column: e }) => {
|
|
|
11046
11087
|
})
|
|
11047
11088
|
]
|
|
11048
11089
|
});
|
|
11049
|
-
}, h_ = ({ columns: e, payload: t, state: n, onColumnFiltersChange: r, onPaginationChange: i, onSortingChange: a, onRowSelectionChange: o, isLoading: s, isError: c, setGlobalFilter: l, getRowCanExpand: u, renderSubComponent: d, manualPagination: f, enableRowSelection: p, isFetching: m, refetch: g, height: _ = "65vh", isToolbar: v = !0, isPagination: y = !0, children: b, name: x }) =>
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11090
|
+
}, h_ = ({ columns: e, payload: t, state: n, onColumnFiltersChange: r, onPaginationChange: i, onSortingChange: a, onRowSelectionChange: o, isLoading: s, isError: c, setGlobalFilter: l, getRowCanExpand: u, renderSubComponent: d, manualPagination: f, enableRowSelection: p, isFetching: m, refetch: g, height: _ = "65vh", isToolbar: v = !0, isPagination: y = !0, children: b, name: x }) => {
|
|
11091
|
+
"use no memo";
|
|
11092
|
+
return /* @__PURE__ */ h(Mt, {
|
|
11093
|
+
payload: t,
|
|
11094
|
+
columns: e,
|
|
11095
|
+
state: n,
|
|
11096
|
+
onColumnFiltersChange: r,
|
|
11097
|
+
onRowSelectionChange: o,
|
|
11098
|
+
onPaginationChange: i,
|
|
11099
|
+
onSortingChange: a,
|
|
11100
|
+
isLoading: s,
|
|
11101
|
+
isError: c,
|
|
11102
|
+
setGlobalFilter: l,
|
|
11103
|
+
getRowCanExpand: u,
|
|
11104
|
+
renderSubComponent: d,
|
|
11105
|
+
manualPagination: f,
|
|
11106
|
+
enableRowSelection: p,
|
|
11107
|
+
isFetching: m,
|
|
11108
|
+
refetch: g,
|
|
11109
|
+
name: x,
|
|
11110
|
+
height: _,
|
|
11111
|
+
children: /* @__PURE__ */ h(g_, {
|
|
11112
|
+
isToolbar: v,
|
|
11113
|
+
isPagination: y,
|
|
11114
|
+
children: b
|
|
11115
|
+
})
|
|
11116
|
+
});
|
|
11117
|
+
}, g_ = ({ children: e, isToolbar: t, isPagination: n }) => {
|
|
11074
11118
|
let { gridWrapperRef: r } = H(), i = f(null), [a, o] = p(0);
|
|
11075
11119
|
return l(() => {
|
|
11076
11120
|
i.current && o(i.current.getBoundingClientRect().height);
|