@homebound/beam 3.37.0 → 3.37.1
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 +19 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16529,13 +16529,12 @@ function GridTable(props) {
|
|
|
16529
16529
|
}, [contentWidth, inDocumentScrollLayout, style, tableWidth]);
|
|
16530
16530
|
return /* @__PURE__ */ jsx87(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ jsxs51(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
16531
16531
|
/* @__PURE__ */ jsx87("div", { ref: resizeRef, ...trussProps52(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)) }),
|
|
16532
|
-
as === "card" ? /* @__PURE__ */ jsx87(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
16532
|
+
as === "card" ? /* @__PURE__ */ jsx87(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : _as === "virtual" ? /* @__PURE__ */ jsx87(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
16533
16533
|
] }) });
|
|
16534
16534
|
}
|
|
16535
16535
|
var renders = {
|
|
16536
16536
|
table: renderTable,
|
|
16537
|
-
div: renderDiv
|
|
16538
|
-
virtual: renderVirtual
|
|
16537
|
+
div: renderDiv
|
|
16539
16538
|
};
|
|
16540
16539
|
function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
16541
16540
|
return /* @__PURE__ */ jsxs51("div", { ref: tableContainerRef, ...trussProps52({
|
|
@@ -16630,7 +16629,23 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
|
|
|
16630
16629
|
] })
|
|
16631
16630
|
] });
|
|
16632
16631
|
}
|
|
16633
|
-
function
|
|
16632
|
+
function VirtualGridTableView({
|
|
16633
|
+
style,
|
|
16634
|
+
id,
|
|
16635
|
+
columns,
|
|
16636
|
+
visibleDataRows,
|
|
16637
|
+
keptSelectedRows,
|
|
16638
|
+
pinnedRows,
|
|
16639
|
+
firstRowMessage,
|
|
16640
|
+
stickyHeader,
|
|
16641
|
+
xss,
|
|
16642
|
+
virtuosoRef,
|
|
16643
|
+
virtuosoRangeRef,
|
|
16644
|
+
tableHeadRows,
|
|
16645
|
+
stickyOffset,
|
|
16646
|
+
infiniteScroll,
|
|
16647
|
+
persistScrollPosition = infiniteScroll === void 0
|
|
16648
|
+
}) {
|
|
16634
16649
|
const customScrollParent = useVirtualizedScrollParent();
|
|
16635
16650
|
const inDocumentScrollLayout = useDocumentScrollLayout();
|
|
16636
16651
|
const [fetchMoreInProgress, setFetchMoreInProgress] = useState33(false);
|