asma-ui-table 1.0.138 → 1.0.139
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/asma-ui-table.es.js
CHANGED
|
@@ -15240,7 +15240,8 @@ const StyledTable = (props) => {
|
|
|
15240
15240
|
showNoRowsOverlay && style$1["table-wrapper--no-rows"],
|
|
15241
15241
|
className
|
|
15242
15242
|
);
|
|
15243
|
-
const
|
|
15243
|
+
const scrollRef = canShowStickyFooter ? wrapperRef : tableScrollRef;
|
|
15244
|
+
const { columnWindow } = useColumnVirtualizer({ table, scrollRef, isMobileView });
|
|
15244
15245
|
const TableMarkup = /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: style$1["styled-table"], style: { width: table.getTotalSize(), minWidth: "100%" }, children: [
|
|
15245
15246
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15246
15247
|
TableHeader,
|
|
@@ -15253,15 +15254,7 @@ const StyledTable = (props) => {
|
|
|
15253
15254
|
}
|
|
15254
15255
|
),
|
|
15255
15256
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Fetching, { fetching: !!fetching }),
|
|
15256
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15257
|
-
TableBody,
|
|
15258
|
-
{
|
|
15259
|
-
table,
|
|
15260
|
-
styledTableProps: options,
|
|
15261
|
-
scrollRef: tableScrollRef,
|
|
15262
|
-
columnWindow
|
|
15263
|
-
}
|
|
15264
|
-
)
|
|
15257
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableBody, { table, styledTableProps: options, scrollRef, columnWindow })
|
|
15265
15258
|
] });
|
|
15266
15259
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(RootContextProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DndProvider, { enabled: !!enableDnd, data, setData, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
15267
15260
|
"div",
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Row } from '@tanstack/react-table';
|
|
2
2
|
import type { MutableRefObject } from 'react';
|
|
3
|
-
export type RowWindow = {
|
|
4
|
-
indexes: number[];
|
|
5
|
-
paddingTop: number;
|
|
6
|
-
paddingBottom: number;
|
|
7
|
-
};
|
|
8
3
|
export declare function useRowVirtualizer<TData extends {
|
|
9
4
|
id: string | number;
|
|
10
5
|
}>({ rows, rowHeight, scrollRef, }: {
|