munza-x-data-grid 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -15
- package/dist/index.js +31 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1407,8 +1407,10 @@ function it(e, t) {
|
|
|
1407
1407
|
} catch {}
|
|
1408
1408
|
}
|
|
1409
1409
|
function at(e, t) {
|
|
1410
|
-
let [n, r] = p(
|
|
1411
|
-
return
|
|
1410
|
+
let [n, r] = p(t);
|
|
1411
|
+
return c(() => {
|
|
1412
|
+
r(rt(e, t));
|
|
1413
|
+
}, [e]), [n, (t) => {
|
|
1412
1414
|
r((n) => {
|
|
1413
1415
|
let r = typeof t == "function" ? t(n) : t;
|
|
1414
1416
|
return it(e, r), r;
|
|
@@ -1433,8 +1435,10 @@ function ct(e, t) {
|
|
|
1433
1435
|
} catch {}
|
|
1434
1436
|
}
|
|
1435
1437
|
function lt(e) {
|
|
1436
|
-
let [t, n] = p(
|
|
1437
|
-
return
|
|
1438
|
+
let [t, n] = p({});
|
|
1439
|
+
return c(() => {
|
|
1440
|
+
n(st(e));
|
|
1441
|
+
}, [e]), [t, (t) => {
|
|
1438
1442
|
n((n) => {
|
|
1439
1443
|
let r = typeof t == "function" ? t(n) : t;
|
|
1440
1444
|
return ct(e, r), r;
|
|
@@ -1459,8 +1463,10 @@ function ft(e, t) {
|
|
|
1459
1463
|
} catch {}
|
|
1460
1464
|
}
|
|
1461
1465
|
function pt(e) {
|
|
1462
|
-
let [t, n] = p(
|
|
1463
|
-
return
|
|
1466
|
+
let [t, n] = p({}), r = f(null);
|
|
1467
|
+
return c(() => {
|
|
1468
|
+
n(dt(e));
|
|
1469
|
+
}, [e]), [t, (t) => {
|
|
1464
1470
|
n((n) => {
|
|
1465
1471
|
let i = typeof t == "function" ? t(n) : t;
|
|
1466
1472
|
return r.current && clearTimeout(r.current), r.current = setTimeout(() => {
|
|
@@ -1487,8 +1493,10 @@ function gt(e, t) {
|
|
|
1487
1493
|
} catch {}
|
|
1488
1494
|
}
|
|
1489
1495
|
function _t(e) {
|
|
1490
|
-
let [t, n] = p(
|
|
1491
|
-
return
|
|
1496
|
+
let [t, n] = p({});
|
|
1497
|
+
return c(() => {
|
|
1498
|
+
n(ht(e));
|
|
1499
|
+
}, [e]), [t, (t) => {
|
|
1492
1500
|
n((n) => {
|
|
1493
1501
|
let r = typeof t == "function" ? t(n) : t;
|
|
1494
1502
|
return gt(e, r), r;
|
|
@@ -1545,8 +1553,10 @@ function wt(e, t) {
|
|
|
1545
1553
|
} catch {}
|
|
1546
1554
|
}
|
|
1547
1555
|
function Tt(e) {
|
|
1548
|
-
let [t, n] = p(
|
|
1549
|
-
return
|
|
1556
|
+
let [t, n] = p(St);
|
|
1557
|
+
return c(() => {
|
|
1558
|
+
n(Ct(e));
|
|
1559
|
+
}, [e]), [t, (t) => {
|
|
1550
1560
|
n((n) => {
|
|
1551
1561
|
let r = typeof t == "function" ? t(n) : t;
|
|
1552
1562
|
return wt(e, r), r;
|
|
@@ -1571,8 +1581,10 @@ function Ot(e, t) {
|
|
|
1571
1581
|
} catch {}
|
|
1572
1582
|
}
|
|
1573
1583
|
function kt(e) {
|
|
1574
|
-
let [t, n] = p(
|
|
1575
|
-
return
|
|
1584
|
+
let [t, n] = p(!1);
|
|
1585
|
+
return c(() => {
|
|
1586
|
+
n(Dt(e));
|
|
1587
|
+
}, [e]), [t, (t) => {
|
|
1576
1588
|
n((n) => {
|
|
1577
1589
|
let r = typeof t == "function" ? t(n) : t;
|
|
1578
1590
|
return Ot(e, r), r;
|
|
@@ -1644,7 +1656,11 @@ var At = ({ refs: e, axis: t = "both" }) => {
|
|
|
1644
1656
|
minSize: 60,
|
|
1645
1657
|
maxSize: 800
|
|
1646
1658
|
}
|
|
1647
|
-
})
|
|
1659
|
+
});
|
|
1660
|
+
t.useEffect(() => {
|
|
1661
|
+
T(bt(x));
|
|
1662
|
+
}, [x]);
|
|
1663
|
+
let L = f(null), R = f(null), ie = f(null), z = f(null), B = f(null), ae = f(null);
|
|
1648
1664
|
At({
|
|
1649
1665
|
refs: [L, R],
|
|
1650
1666
|
axis: "x"
|
|
@@ -11030,7 +11046,7 @@ var u_ = ({ column: e }) => {
|
|
|
11030
11046
|
})
|
|
11031
11047
|
]
|
|
11032
11048
|
});
|
|
11033
|
-
}, 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, isPagination: y, children: b, name: x }) => /* @__PURE__ */ h(Mt, {
|
|
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 }) => /* @__PURE__ */ h(Mt, {
|
|
11034
11050
|
payload: t,
|
|
11035
11051
|
columns: e,
|
|
11036
11052
|
state: n,
|
|
@@ -11054,7 +11070,7 @@ var u_ = ({ column: e }) => {
|
|
|
11054
11070
|
isPagination: y,
|
|
11055
11071
|
children: b
|
|
11056
11072
|
})
|
|
11057
|
-
}), g_ = ({ children: e, isToolbar: t
|
|
11073
|
+
}), g_ = ({ children: e, isToolbar: t, isPagination: n }) => {
|
|
11058
11074
|
let { gridWrapperRef: r } = H(), i = f(null), [a, o] = p(0);
|
|
11059
11075
|
return l(() => {
|
|
11060
11076
|
i.current && o(i.current.getBoundingClientRect().height);
|