@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 CHANGED
@@ -16989,13 +16989,12 @@ function GridTable(props) {
16989
16989
  }, [contentWidth, inDocumentScrollLayout, style, tableWidth]);
16990
16990
  return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
16991
16991
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { ref: resizeRef, ...(0, import_runtime56.trussProps)(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)) }),
16992
- as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(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)
16992
+ as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(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)
16993
16993
  ] }) });
16994
16994
  }
16995
16995
  var renders = {
16996
16996
  table: renderTable,
16997
- div: renderDiv,
16998
- virtual: renderVirtual
16997
+ div: renderDiv
16999
16998
  };
17000
16999
  function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
17001
17000
  return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime56.trussProps)({
@@ -17090,7 +17089,23 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
17090
17089
  ] })
17091
17090
  ] });
17092
17091
  }
17093
- function renderVirtual(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, _tableContainerRef, persistScrollPosition = infiniteScroll === void 0) {
17092
+ function VirtualGridTableView({
17093
+ style,
17094
+ id,
17095
+ columns,
17096
+ visibleDataRows,
17097
+ keptSelectedRows,
17098
+ pinnedRows,
17099
+ firstRowMessage,
17100
+ stickyHeader,
17101
+ xss,
17102
+ virtuosoRef,
17103
+ virtuosoRangeRef,
17104
+ tableHeadRows,
17105
+ stickyOffset,
17106
+ infiniteScroll,
17107
+ persistScrollPosition = infiniteScroll === void 0
17108
+ }) {
17094
17109
  const customScrollParent = useVirtualizedScrollParent();
17095
17110
  const inDocumentScrollLayout = useDocumentScrollLayout();
17096
17111
  const [fetchMoreInProgress, setFetchMoreInProgress] = (0, import_react81.useState)(false);