@homebound/beam 3.98.0 → 3.99.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 +7 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21978,9 +21978,7 @@ function HeaderActions(props) {
|
|
|
21978
21978
|
...menuProps
|
|
21979
21979
|
} = action;
|
|
21980
21980
|
void kind;
|
|
21981
|
-
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ButtonMenu, { ...menuProps,
|
|
21982
|
-
icon: "verticalDots"
|
|
21983
|
-
} }, key);
|
|
21981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ButtonMenu, { ...menuProps }, key);
|
|
21984
21982
|
}
|
|
21985
21983
|
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Button, { ...action }, key);
|
|
21986
21984
|
}) });
|
|
@@ -24073,7 +24071,7 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
24073
24071
|
setView,
|
|
24074
24072
|
clearFilters,
|
|
24075
24073
|
searchApi,
|
|
24076
|
-
|
|
24074
|
+
actions
|
|
24077
24075
|
} = props;
|
|
24078
24076
|
const testId = useTestIds(props, "gridTableLayoutActions");
|
|
24079
24077
|
const filterTid = useTestIds({}, filterTestIdPrefix);
|
|
@@ -24148,12 +24146,10 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
24148
24146
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Icon, { icon: showFilters ? "chevronUp" : "chevronDown" })
|
|
24149
24147
|
] }), variant: "secondaryBlack", onClick: () => setShowFilters(!showFilters), active: showFilters, ...testId.filterButton })
|
|
24150
24148
|
] }),
|
|
24151
|
-
(hasHideableColumns || withCardView ||
|
|
24149
|
+
(hasHideableColumns || withCardView || !!actions?.length) && /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: "df aic gap_12px", children: [
|
|
24152
24150
|
hasHideableColumns && view === "list" && columns && api && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(EditColumnsButton, { columns, api, tooltip: "Display columns" }),
|
|
24153
24151
|
withCardView && view !== void 0 && setView && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(ViewToggleButton, { view, onChange: setView }),
|
|
24154
|
-
|
|
24155
|
-
icon: "verticalDots"
|
|
24156
|
-
} })
|
|
24152
|
+
!!actions?.length && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(HeaderActions, { actions, ...testId.actions })
|
|
24157
24153
|
] })
|
|
24158
24154
|
] }),
|
|
24159
24155
|
sm && showSearch && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { ...(0, import_runtime113.trussProps)(pageContentPaddingX), children: searchTextField }),
|
|
@@ -24284,7 +24280,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24284
24280
|
const {
|
|
24285
24281
|
tableProps,
|
|
24286
24282
|
layoutState,
|
|
24287
|
-
|
|
24283
|
+
actions,
|
|
24288
24284
|
hideEditColumns = false,
|
|
24289
24285
|
withCardView,
|
|
24290
24286
|
defaultView = "list",
|
|
@@ -24302,7 +24298,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24302
24298
|
const api = (0, import_react127.useMemo)(() => tableProps.api ?? new GridTableApiImpl(), [tableProps.api]);
|
|
24303
24299
|
const [view, setView] = usePersistedTableView(defaultView, !!withCardView);
|
|
24304
24300
|
const clientSearch = layoutState?.search === "client" ? layoutState.searchString : void 0;
|
|
24305
|
-
const showTableActions = !!(layoutState?.filterDefs || layoutState?.search || hasHideableColumns || withCardView ||
|
|
24301
|
+
const showTableActions = !!(layoutState?.filterDefs || layoutState?.search || hasHideableColumns || withCardView || actions?.length);
|
|
24306
24302
|
const isVirtualized = tableProps.as === "virtual" || view === "card";
|
|
24307
24303
|
const inDocumentScrollLayout = useDocumentScrollLayout();
|
|
24308
24304
|
const tableActionsRef = (0, import_react127.useRef)(null);
|
|
@@ -24324,7 +24320,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24324
24320
|
searchApiRef.current?.clear();
|
|
24325
24321
|
}, [layoutState]);
|
|
24326
24322
|
const emptyState = (0, import_react127.useMemo)(() => composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFilters), [layoutEmptyFallback, layoutState, tableProps, clearFilters]);
|
|
24327
|
-
const tableActionsEl = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(_GridTableLayoutActions, { filterDefs: layoutState?.filterDefs, filter: layoutState?.filter, setFilter: layoutState?.setFilter, groupBy: layoutState?.groupBy, searchProps: filterSearchProps, hasHideableColumns, columns, api, withCardView, view, setView, clearFilters, searchApi: searchApiRef,
|
|
24323
|
+
const tableActionsEl = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(_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 });
|
|
24328
24324
|
const cardAs = view === "card" ? "card" : void 0;
|
|
24329
24325
|
const tableStyle = resolveGridTableLayoutStyle(tableProps.style, inDocumentScrollLayout);
|
|
24330
24326
|
const tableBody = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_jsx_runtime186.Fragment, { children: isGridTableProps(tableProps) ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(GridTable, { ...tableProps, ...cardAs ? {
|