@homebound/beam 4.14.5 → 4.14.6
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 +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13954,7 +13954,7 @@ function GridTable(props) {
|
|
|
13954
13954
|
}
|
|
13955
13955
|
return /* @__PURE__ */ jsx52(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ jsxs33(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
13956
13956
|
/* @__PURE__ */ jsx52("div", { ref: resizeRef, ...trussProps33(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)), ...tid.probe }),
|
|
13957
|
-
loading && /* @__PURE__ */ jsx52("div", { ...trussProps33(loadingOverlayCss), ...tid.loadingOverlay, children: /* @__PURE__ */ jsx52(Loader, { ...tid.loadingSpinner }) }),
|
|
13957
|
+
loading && /* @__PURE__ */ jsx52("div", { ...trussProps33(loadingOverlayCss), ...tid.loadingOverlay, children: /* @__PURE__ */ jsx52(Loader, { ...tid.loadingSpinner, size: "md" }) }),
|
|
13958
13958
|
as === "card" ? /* @__PURE__ */ jsx52(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition, loading }) : _as === "virtual" ? /* @__PURE__ */ jsx52(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition, loading }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, loading, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
13959
13959
|
] }) });
|
|
13960
13960
|
}
|
|
@@ -24853,11 +24853,12 @@ function GridTableLayoutComponent(props) {
|
|
|
24853
24853
|
const emptyState = useMemo45(() => composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFilters), [layoutEmptyFallback, layoutState, tableProps, clearFilters]);
|
|
24854
24854
|
const tableActionsEl = /* @__PURE__ */ jsx178(_GridTableLayoutActions, { filterDefs: layoutState?.filterDefs, filter: layoutState?.filter, setFilter: layoutState?.setFilter, groupBy: layoutState?.groupBy, searchProps: filterSearchProps, hasHideableColumns, columns, api, withCardView, view, setView, clearFilters, searchApi: searchApiRef, actions });
|
|
24855
24855
|
const cardAs = view === "card" ? "card" : void 0;
|
|
24856
|
+
const tableStyle = useMemo45(() => getDefaultStyle(tableProps.style), [tableProps.style]);
|
|
24856
24857
|
const tableBody = /* @__PURE__ */ jsx178(Fragment40, { children: isGridTableProps(tableProps) ? /* @__PURE__ */ jsx178(GridTable, { ...tableProps, ...cardAs ? {
|
|
24857
24858
|
as: cardAs
|
|
24858
|
-
} : {}, api, emptyState, filter: clientSearch, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) : /* @__PURE__ */ jsx178(QueryTable, { ...tableProps, ...cardAs ? {
|
|
24859
|
+
} : {}, api, emptyState, filter: clientSearch, style: tableStyle, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) : /* @__PURE__ */ jsx178(QueryTable, { ...tableProps, ...cardAs ? {
|
|
24859
24860
|
as: cardAs
|
|
24860
|
-
} : {}, api, emptyState, filter: clientSearch, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) });
|
|
24861
|
+
} : {}, api, emptyState, filter: clientSearch, style: tableStyle, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) });
|
|
24861
24862
|
const tableScrollContent = /* @__PURE__ */ jsxs91(Fragment40, { children: [
|
|
24862
24863
|
showTableActions && /* @__PURE__ */ jsx178("div", { ref: tableActionsRef, ...trussProps101({
|
|
24863
24864
|
...inDocumentScrollLayout ? {
|
|
@@ -24903,6 +24904,13 @@ function GridTableLayoutComponent(props) {
|
|
|
24903
24904
|
);
|
|
24904
24905
|
}
|
|
24905
24906
|
var GridTableLayout = React18.memo(GridTableLayoutComponent);
|
|
24907
|
+
function getDefaultStyle(style) {
|
|
24908
|
+
if (style !== void 0 && !isGridStyleDef(style)) return style;
|
|
24909
|
+
return {
|
|
24910
|
+
allWhite: true,
|
|
24911
|
+
...style
|
|
24912
|
+
};
|
|
24913
|
+
}
|
|
24906
24914
|
function validateColumns(columns) {
|
|
24907
24915
|
for (const col of columns) {
|
|
24908
24916
|
if (!col.id || !col.name) {
|