@monolith-forensics/monolith-ui 1.3.9 → 1.3.10
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.
|
@@ -159,7 +159,7 @@ export const StyledItem = styled.div `
|
|
|
159
159
|
color: ${(props) => props.theme.palette.text.primary};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
&[data-disabled] {
|
|
162
|
+
&[data-disabled="true"] {
|
|
163
163
|
color: ${(props) => props.theme.palette.text.secondary};
|
|
164
164
|
opacity: 0.5;
|
|
165
165
|
pointer-events: none;
|
|
@@ -33,7 +33,7 @@ const TableMenu = () => {
|
|
|
33
33
|
const inputRef = useRef(null);
|
|
34
34
|
if ((tableMenuOptions === null || tableMenuOptions === void 0 ? void 0 : tableMenuOptions.enabled) !== true)
|
|
35
35
|
return null;
|
|
36
|
-
const { addButtonOptions, filterOptions, tableCountOptions, exportOptions, compactOptions, columnSelectorOptions, searchOptions, children, } = tableMenuOptions;
|
|
36
|
+
const { addButtonOptions, filterOptions, tableCountOptions, exportOptions, compactOptions, columnSelectorOptions, actionOptions, searchOptions, children, } = tableMenuOptions;
|
|
37
37
|
const queryFilter = useQueryFilter({
|
|
38
38
|
defaultFilter: filterState,
|
|
39
39
|
filterDefinitions: (filterOptions === null || filterOptions === void 0 ? void 0 : filterOptions.filterDefinitions) || [],
|
|
@@ -84,7 +84,7 @@ const TableMenu = () => {
|
|
|
84
84
|
}, onItemSelect: handleSelectFilter, dropDownProps: {
|
|
85
85
|
style: { width: 175, maxWidth: 400 },
|
|
86
86
|
}, searchable: true, children: "Filter" })), (tableCountOptions === null || tableCountOptions === void 0 ? void 0 : tableCountOptions.recordsTotalEnabled) === true && (_jsx(InfoBadge, { total: totalRecords || data.length })), enableSelection === true &&
|
|
87
|
-
(tableCountOptions === null || tableCountOptions === void 0 ? void 0 : tableCountOptions.selectionTotalEnabled) === true && (_jsx(InfoBadge, { total: getCalculatedSelectionTotal(), hint: "Selected Items", icon: CheckSquareIcon })), children] }), _jsxs(FlexedRow, { children: [(exportOptions === null || exportOptions === void 0 ? void 0 : exportOptions.enabled) === true && (_jsx(DropDownMenu, { variant: "outlined", size: "xs", data: [
|
|
87
|
+
(tableCountOptions === null || tableCountOptions === void 0 ? void 0 : tableCountOptions.selectionTotalEnabled) === true && (_jsx(InfoBadge, { total: getCalculatedSelectionTotal(), hint: "Selected Items", icon: CheckSquareIcon })), children] }), _jsxs(FlexedRow, { children: [(actionOptions === null || actionOptions === void 0 ? void 0 : actionOptions.enabled) === true && actionOptions.menu, (exportOptions === null || exportOptions === void 0 ? void 0 : exportOptions.enabled) === true && (_jsx(DropDownMenu, { variant: "outlined", size: "xs", data: [
|
|
88
88
|
{
|
|
89
89
|
label: "Export Visible Columns",
|
|
90
90
|
value: TableExportOptions.ExportVisible,
|
package/dist/Table/types.d.ts
CHANGED
|
@@ -227,6 +227,10 @@ export type TableMenuOptions = {
|
|
|
227
227
|
recordsTotalEnabled?: boolean;
|
|
228
228
|
selectionTotalEnabled?: boolean;
|
|
229
229
|
};
|
|
230
|
+
actionOptions?: {
|
|
231
|
+
enabled?: boolean;
|
|
232
|
+
menu?: React.ReactNode;
|
|
233
|
+
};
|
|
230
234
|
searchOptions?: {
|
|
231
235
|
enabled?: boolean;
|
|
232
236
|
placeholder?: string;
|