@homebound/beam 4.47.0 → 4.47.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 +31 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15045,7 +15045,28 @@ function GridTable(props) {
|
|
|
15045
15045
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
15046
15046
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ref: resizeRef, ...(0, import_runtime43.trussProps)(getTableRefWidthStyles(as === "virtual", columnMeasureWidth)), ...tid.probe }),
|
|
15047
15047
|
loading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ...(0, import_runtime43.trussProps)(loadingOverlayCss), ...tid.loadingOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Loader, { ...tid.loadingSpinner, size: "md" }) }),
|
|
15048
|
-
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition, loading }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
15048
|
+
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition, loading }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
15049
|
+
VirtualGridTableView,
|
|
15050
|
+
{
|
|
15051
|
+
style,
|
|
15052
|
+
minWidthPx: tableStyle.minWidthPx,
|
|
15053
|
+
id,
|
|
15054
|
+
columns: layoutColumns,
|
|
15055
|
+
visibleDataRows,
|
|
15056
|
+
keptSelectedRows,
|
|
15057
|
+
pinnedRows,
|
|
15058
|
+
firstRowMessage,
|
|
15059
|
+
stickyHeader,
|
|
15060
|
+
xss,
|
|
15061
|
+
virtuosoRef,
|
|
15062
|
+
virtuosoRangeRef,
|
|
15063
|
+
tableHeadRows,
|
|
15064
|
+
stickyOffset,
|
|
15065
|
+
infiniteScroll,
|
|
15066
|
+
persistScrollPosition,
|
|
15067
|
+
loading
|
|
15068
|
+
}
|
|
15069
|
+
) : renders[_as](tableStyle, id, layoutColumns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, loading, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
15049
15070
|
] }) });
|
|
15050
15071
|
}
|
|
15051
15072
|
var loadingOverlayCss = {
|
|
@@ -15169,6 +15190,7 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
|
|
|
15169
15190
|
}
|
|
15170
15191
|
function VirtualGridTableView({
|
|
15171
15192
|
style,
|
|
15193
|
+
minWidthPx,
|
|
15172
15194
|
id,
|
|
15173
15195
|
columns,
|
|
15174
15196
|
visibleDataRows,
|
|
@@ -15201,9 +15223,8 @@ function VirtualGridTableView({
|
|
|
15201
15223
|
// the div/table render paths so virtualized tables pin below the global nav + page header.
|
|
15202
15224
|
TopItemList: import_react51.default.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ...props, ref, ...(0, import_runtime43.mergeProps)(void 0, {
|
|
15203
15225
|
...props.style,
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
} : {},
|
|
15226
|
+
// Read from a CSS variable so a width change doesn't recreate this component and remount every row
|
|
15227
|
+
minWidth: `var(${virtualTableMinWidthVar}, auto)`,
|
|
15207
15228
|
zIndex: zIndices.tableStickyHeader,
|
|
15208
15229
|
top: stickyTableHeaderOffset(stickyOffset)
|
|
15209
15230
|
}, {
|
|
@@ -15228,6 +15249,9 @@ function VirtualGridTableView({
|
|
|
15228
15249
|
overscan: 5,
|
|
15229
15250
|
ref: virtuosoRef,
|
|
15230
15251
|
...loading ? (0, import_runtime43.trussProps)(loadingTableCss) : {},
|
|
15252
|
+
style: minWidthPx !== void 0 ? {
|
|
15253
|
+
[virtualTableMinWidthVar]: `${minWidthPx}px`
|
|
15254
|
+
} : void 0,
|
|
15231
15255
|
...customScrollParent ? {
|
|
15232
15256
|
customScrollParent
|
|
15233
15257
|
} : {},
|
|
@@ -15384,6 +15408,7 @@ function CardView({
|
|
|
15384
15408
|
}
|
|
15385
15409
|
} : {} }) });
|
|
15386
15410
|
}
|
|
15411
|
+
var virtualTableMinWidthVar = "--beam-virtual-table-min-width";
|
|
15387
15412
|
var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
15388
15413
|
return import_react51.default.forwardRef(function VirtualRoot2({
|
|
15389
15414
|
style,
|
|
@@ -19026,7 +19051,8 @@ var widths = {
|
|
|
19026
19051
|
md: 480,
|
|
19027
19052
|
lg: 640,
|
|
19028
19053
|
xl: 800,
|
|
19029
|
-
xxl: 900
|
|
19054
|
+
xxl: 900,
|
|
19055
|
+
"3xl": 1180
|
|
19030
19056
|
};
|
|
19031
19057
|
var defaultMinHeight = 204;
|
|
19032
19058
|
function getSize(size) {
|