@movable/ui 2.15.2 → 2.15.3

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.
@@ -0,0 +1,6 @@
1
+ interface IExportButton {
2
+ loadingExport?: boolean;
3
+ onClick?: () => void;
4
+ }
5
+ export declare function ExportButton({ onClick, loadingExport }: IExportButton): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface IFiltersButton {
2
+ onClick: () => void;
3
+ }
4
+ export declare function FiltersButton({ onClick }: IFiltersButton): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface IGridToolbarGroupProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ options: string[];
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare function GridToolbarGroup({ value, onChange, options, }: IGridToolbarGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { GridColDef, GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
2
+ import { IGridToolbarGroupProps } from './GridToolbarGroup';
3
+ export interface IInkGridToolBarProps {
4
+ groupingProps?: IGridToolbarGroupProps;
5
+ showFilterDrawerBtn?: boolean;
6
+ showQuickFilter?: boolean;
7
+ showExportButton?: boolean;
8
+ showFilterButton?: boolean;
9
+ showDensitySelector?: boolean;
10
+ showColumnButton?: boolean;
11
+ onExportClick?: () => void;
12
+ loadingExport?: boolean;
13
+ children?: React.ReactNode;
14
+ columnPickerProps?: {
15
+ columnData: GridColDef[];
16
+ handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
17
+ customGridVisibility: GridColumnVisibilityModel;
18
+ lockedFields?: string[];
19
+ hiddenInColumnPicker?: string[];
20
+ };
21
+ filterDrawerBtnProps?: {
22
+ onShowFilterDrawerClick: () => void;
23
+ filterBtnBadgeContent?: string;
24
+ };
25
+ py?: number;
26
+ }
27
+ export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { GridColDef, GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
2
+ interface ITableActionsColumnPickerProps {
3
+ columnData: GridColDef[];
4
+ handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
5
+ customGridVisibility: GridColumnVisibilityModel;
6
+ lockedFields?: string[];
7
+ hiddenInColumnPicker?: string[];
8
+ }
9
+ export declare function TableFilterColumnPicker({ columnData, handleColumnFilterChange, customGridVisibility, lockedFields, hiddenInColumnPicker, }: ITableActionsColumnPickerProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { InkGridToolBar } from './InkGridToolBar';
@@ -23,3 +23,4 @@ export * from './InkSelect';
23
23
  export { InternalUseOnlyLabel, InternalUseOnlyAlert, } from './InternalUseOnlyIndicators';
24
24
  export { InkChart } from './InkChart';
25
25
  export { InkCard } from './InkCard';
26
+ export { InkGridToolBar } from './InkGridToolBar';
package/lib/index.d.ts CHANGED
@@ -21,6 +21,8 @@ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
21
21
  import { FormGroupProps } from '@mui/material/FormGroup';
22
22
  import { FormLabelProps } from '@mui/material/FormLabel';
23
23
  import { ForwardRefExoticComponent } from 'react';
24
+ import { GridColDef } from '@mui/x-data-grid-premium';
25
+ import { GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
24
26
  import { GridProps } from '@mui/material/Grid';
25
27
  import { GridProps as GridProps_2 } from '@mui/material';
26
28
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -211,6 +213,38 @@ declare type IFilterDrawer = DrawerProps & {
211
213
  mainProps?: BoxProps;
212
214
  };
213
215
 
216
+ declare interface IGridToolbarGroupProps {
217
+ value: string;
218
+ onChange: (value: string) => void;
219
+ options: string[];
220
+ children?: React.ReactNode;
221
+ }
222
+
223
+ declare interface IInkGridToolBarProps {
224
+ groupingProps?: IGridToolbarGroupProps;
225
+ showFilterDrawerBtn?: boolean;
226
+ showQuickFilter?: boolean;
227
+ showExportButton?: boolean;
228
+ showFilterButton?: boolean;
229
+ showDensitySelector?: boolean;
230
+ showColumnButton?: boolean;
231
+ onExportClick?: () => void;
232
+ loadingExport?: boolean;
233
+ children?: React.ReactNode;
234
+ columnPickerProps?: {
235
+ columnData: GridColDef[];
236
+ handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
237
+ customGridVisibility: GridColumnVisibilityModel;
238
+ lockedFields?: string[];
239
+ hiddenInColumnPicker?: string[];
240
+ };
241
+ filterDrawerBtnProps?: {
242
+ onShowFilterDrawerClick: () => void;
243
+ filterBtnBadgeContent?: string;
244
+ };
245
+ py?: number;
246
+ }
247
+
214
248
  export declare function IndexLayout({ Header, children, sx, ...containerProps }: IndexLayoutProps): JSX_2.Element;
215
249
 
216
250
  declare type IndexLayoutProps = GridProps & {
@@ -384,6 +418,8 @@ declare type InkFormTextFieldProps<TFieldValues extends FieldValues, TName exten
384
418
  label: string;
385
419
  } & UseControllerProps<TFieldValues, TName> & TextFieldProps;
386
420
 
421
+ export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): JSX_2.Element;
422
+
387
423
  export declare function InkImage({ src, alt, sx, imageSx, fallbackText, ...rest }: InkImageProps): JSX_2.Element;
388
424
 
389
425
  declare type InkImageProps = BoxProps_2 & {