@homebound/beam 3.98.0 → 3.99.0
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 +6 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24073,7 +24073,7 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
24073
24073
|
setView,
|
|
24074
24074
|
clearFilters,
|
|
24075
24075
|
searchApi,
|
|
24076
|
-
|
|
24076
|
+
actions
|
|
24077
24077
|
} = props;
|
|
24078
24078
|
const testId = useTestIds(props, "gridTableLayoutActions");
|
|
24079
24079
|
const filterTid = useTestIds({}, filterTestIdPrefix);
|
|
@@ -24148,12 +24148,10 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
24148
24148
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Icon, { icon: showFilters ? "chevronUp" : "chevronDown" })
|
|
24149
24149
|
] }), variant: "secondaryBlack", onClick: () => setShowFilters(!showFilters), active: showFilters, ...testId.filterButton })
|
|
24150
24150
|
] }),
|
|
24151
|
-
(hasHideableColumns || withCardView ||
|
|
24151
|
+
(hasHideableColumns || withCardView || !!actions?.length) && /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: "df aic gap_12px", children: [
|
|
24152
24152
|
hasHideableColumns && view === "list" && columns && api && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(EditColumnsButton, { columns, api, tooltip: "Display columns" }),
|
|
24153
24153
|
withCardView && view !== void 0 && setView && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(ViewToggleButton, { view, onChange: setView }),
|
|
24154
|
-
|
|
24155
|
-
icon: "verticalDots"
|
|
24156
|
-
} })
|
|
24154
|
+
!!actions?.length && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(HeaderActions, { actions, ...testId.actions })
|
|
24157
24155
|
] })
|
|
24158
24156
|
] }),
|
|
24159
24157
|
sm && showSearch && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { ...(0, import_runtime113.trussProps)(pageContentPaddingX), children: searchTextField }),
|
|
@@ -24284,7 +24282,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24284
24282
|
const {
|
|
24285
24283
|
tableProps,
|
|
24286
24284
|
layoutState,
|
|
24287
|
-
|
|
24285
|
+
actions,
|
|
24288
24286
|
hideEditColumns = false,
|
|
24289
24287
|
withCardView,
|
|
24290
24288
|
defaultView = "list",
|
|
@@ -24302,7 +24300,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24302
24300
|
const api = (0, import_react127.useMemo)(() => tableProps.api ?? new GridTableApiImpl(), [tableProps.api]);
|
|
24303
24301
|
const [view, setView] = usePersistedTableView(defaultView, !!withCardView);
|
|
24304
24302
|
const clientSearch = layoutState?.search === "client" ? layoutState.searchString : void 0;
|
|
24305
|
-
const showTableActions = !!(layoutState?.filterDefs || layoutState?.search || hasHideableColumns || withCardView ||
|
|
24303
|
+
const showTableActions = !!(layoutState?.filterDefs || layoutState?.search || hasHideableColumns || withCardView || actions?.length);
|
|
24306
24304
|
const isVirtualized = tableProps.as === "virtual" || view === "card";
|
|
24307
24305
|
const inDocumentScrollLayout = useDocumentScrollLayout();
|
|
24308
24306
|
const tableActionsRef = (0, import_react127.useRef)(null);
|
|
@@ -24324,7 +24322,7 @@ function GridTableLayoutComponent(props) {
|
|
|
24324
24322
|
searchApiRef.current?.clear();
|
|
24325
24323
|
}, [layoutState]);
|
|
24326
24324
|
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,
|
|
24325
|
+
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
24326
|
const cardAs = view === "card" ? "card" : void 0;
|
|
24329
24327
|
const tableStyle = resolveGridTableLayoutStyle(tableProps.style, inDocumentScrollLayout);
|
|
24330
24328
|
const tableBody = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_jsx_runtime186.Fragment, { children: isGridTableProps(tableProps) ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(GridTable, { ...tableProps, ...cardAs ? {
|