1mpacto-react-ui 0.0.71 → 0.0.72
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +37 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
@@ -11408,7 +11408,7 @@ const D2 = /* @__PURE__ */ Be(() => {
|
|
11408
11408
|
endReached: I
|
11409
11409
|
} = e, [E, C] = de(0), S = () => {
|
11410
11410
|
if (i === "min-max") {
|
11411
|
-
const k = (o + 1) * u;
|
11411
|
+
const k = (o + (o === 0 ? 1 : 0)) * u;
|
11412
11412
|
return { height: o > l ? s : E > k ? E : k };
|
11413
11413
|
}
|
11414
11414
|
return i === "container" ? { height: E } : {};
|
@@ -11728,7 +11728,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11728
11728
|
classNamePointer: c,
|
11729
11729
|
emptyPlaceholder: f
|
11730
11730
|
}) => {
|
11731
|
-
var m, p;
|
11731
|
+
var m, p, b;
|
11732
11732
|
const [g, d] = A.useState(0);
|
11733
11733
|
return /* @__PURE__ */ D.jsx(
|
11734
11734
|
Jm,
|
@@ -11745,67 +11745,67 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11745
11745
|
// eslint-disable-next-line
|
11746
11746
|
// @ts-ignore
|
11747
11747
|
Table: W2,
|
11748
|
-
EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("
|
11749
|
-
var
|
11750
|
-
return d(((
|
11751
|
-
}, children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) })
|
11748
|
+
EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("tbody", { ref: (h) => {
|
11749
|
+
var v;
|
11750
|
+
return d(((v = h == null ? void 0 : h.getBoundingClientRect()) == null ? void 0 : v.height) ?? 0);
|
11751
|
+
}, children: /* @__PURE__ */ D.jsx("tr", { children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) }) })
|
11752
11752
|
},
|
11753
11753
|
classNameContainer: t,
|
11754
|
-
fixedHeaderContent: () => e.getHeaderGroups().map((
|
11755
|
-
var
|
11754
|
+
fixedHeaderContent: () => e.getHeaderGroups().map((h) => /* @__PURE__ */ D.jsx("tr", { children: h.headers.map((v) => {
|
11755
|
+
var y, w;
|
11756
11756
|
return /* @__PURE__ */ D.jsx(
|
11757
11757
|
"th",
|
11758
11758
|
{
|
11759
|
-
colSpan:
|
11760
|
-
style: typeof ((
|
11761
|
-
children:
|
11759
|
+
colSpan: v.colSpan,
|
11760
|
+
style: typeof ((y = v.column.columnDef.meta) == null ? void 0 : y.styleTh) == "function" ? (w = v.column.columnDef.meta) == null ? void 0 : w.styleTh(v.column.columnDef) : {},
|
11761
|
+
children: v.isPlaceholder ? null : /* @__PURE__ */ D.jsxs(
|
11762
11762
|
"div",
|
11763
11763
|
{
|
11764
|
-
className:
|
11765
|
-
onClick:
|
11764
|
+
className: v.column.getCanSort() ? Qr.sorting : "",
|
11765
|
+
onClick: v.column.getToggleSortingHandler(),
|
11766
11766
|
children: [
|
11767
|
-
za(
|
11768
|
-
|
11769
|
-
|
11770
|
-
|
11767
|
+
za(v.column.columnDef.header, v.getContext()),
|
11768
|
+
v.column.getCanSort() && /* @__PURE__ */ D.jsx("span", { className: "1ru-flex-shrink-0", children: v.column.getIsSorted() === "asc" || v.column.getIsSorted() === "desc" ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
11769
|
+
v.column.getIsSorted() === "asc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: s }),
|
11770
|
+
v.column.getIsSorted() === "desc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: l })
|
11771
11771
|
] }) : /* @__PURE__ */ D.jsx(D.Fragment, {}) })
|
11772
11772
|
]
|
11773
11773
|
}
|
11774
11774
|
)
|
11775
11775
|
},
|
11776
|
-
|
11776
|
+
v.id
|
11777
11777
|
);
|
11778
|
-
}) },
|
11779
|
-
itemContent: (
|
11780
|
-
var
|
11781
|
-
const
|
11782
|
-
return /* @__PURE__ */ D.jsx(
|
11778
|
+
}) }, h.id)),
|
11779
|
+
itemContent: (h, v) => {
|
11780
|
+
var w, x;
|
11781
|
+
const y = (x = (w = e.getRowModel()) == null ? void 0 : w.rows) == null ? void 0 : x[v];
|
11782
|
+
return /* @__PURE__ */ D.jsx(h, { children: ({ ...I }) => /* @__PURE__ */ sl(
|
11783
11783
|
"tr",
|
11784
11784
|
{
|
11785
|
-
...
|
11786
|
-
onClick: (
|
11787
|
-
|
11785
|
+
...I,
|
11786
|
+
onClick: (E) => {
|
11787
|
+
E.stopPropagation(), r && typeof n == "function" && n(y.original, y);
|
11788
11788
|
},
|
11789
11789
|
className: r ? c : "",
|
11790
|
-
key:
|
11791
|
-
id: i(
|
11790
|
+
key: y.id,
|
11791
|
+
id: i(y)
|
11792
11792
|
},
|
11793
|
-
|
11794
|
-
var
|
11793
|
+
y.getVisibleCells().map((E) => {
|
11794
|
+
var C, S, B;
|
11795
11795
|
return /* @__PURE__ */ D.jsx(D.Fragment, { children: /* @__PURE__ */ D.jsx(
|
11796
11796
|
"td",
|
11797
11797
|
{
|
11798
|
-
style: typeof ((
|
11799
|
-
className: typeof ((
|
11800
|
-
children: za(
|
11798
|
+
style: typeof ((C = E.column.columnDef.meta) == null ? void 0 : C.styleTd) == "function" ? E.column.columnDef.meta.styleTd(y.original, y) : {},
|
11799
|
+
className: typeof ((S = E.column.columnDef.meta) == null ? void 0 : S.classNameTd) == "function" ? (B = E.column.columnDef.meta) == null ? void 0 : B.classNameTd(y.original, y) : "",
|
11800
|
+
children: za(E.column.columnDef.cell, E.getContext())
|
11801
11801
|
},
|
11802
|
-
|
11802
|
+
E.id
|
11803
11803
|
) });
|
11804
11804
|
})
|
11805
|
-
) },
|
11805
|
+
) }, y.id);
|
11806
11806
|
},
|
11807
11807
|
...a,
|
11808
|
-
minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + g
|
11808
|
+
minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + ((((b = e.getRowModel().rows) == null ? void 0 : b.length) || 0) > 0 ? 0 : g)
|
11809
11809
|
}
|
11810
11810
|
);
|
11811
11811
|
}, wS = ({
|
@@ -11902,7 +11902,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11902
11902
|
endReached: x
|
11903
11903
|
} = e, [I, E] = de(0), C = () => {
|
11904
11904
|
if (i === "min-max") {
|
11905
|
-
const $ = (o + 1) * u;
|
11905
|
+
const $ = (o + (o === 0 ? 1 : 0)) * u;
|
11906
11906
|
return { height: o > l ? s : I > $ ? I : $ };
|
11907
11907
|
}
|
11908
11908
|
return i === "container" ? { height: I } : {};
|