@movable/ui 2.15.1 → 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.
- package/lib/components/InkDrawer/InkDrawer.d.ts +6 -2
- package/lib/components/InkGridToolBar/ExportButton.d.ts +6 -0
- package/lib/components/InkGridToolBar/FiltersButton.d.ts +5 -0
- package/lib/components/InkGridToolBar/GridToolbarGroup.d.ts +7 -0
- package/lib/components/InkGridToolBar/InkGridToolBar.d.ts +27 -0
- package/lib/components/InkGridToolBar/TableFilterColumnPicker.d.ts +10 -0
- package/lib/components/InkGridToolBar/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/index.d.ts +43 -1
- package/lib/index.mjs +4066 -3963
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,15 @@ import { BoxProps, DrawerProps, SxProps, Theme } from '@mui/material';
|
|
|
3
3
|
import { SvgIconTypeMap } from '@mui/material';
|
|
4
4
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
5
5
|
type DrawerType = 'basic' | 'panel' | 'filter';
|
|
6
|
+
declare const defaultDrawerWidths: {
|
|
7
|
+
md: number;
|
|
8
|
+
lg: number;
|
|
9
|
+
xl: number;
|
|
10
|
+
};
|
|
6
11
|
interface CommonDrawerProps extends DrawerProps {
|
|
7
12
|
drawerType: DrawerType;
|
|
8
13
|
drawerContent: JSX.Element;
|
|
9
|
-
drawerWidth?: number
|
|
14
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
10
15
|
leftOffset?: string;
|
|
11
16
|
bottomContent?: JSX.Element;
|
|
12
17
|
headerLabel?: string;
|
|
@@ -24,6 +29,5 @@ interface PanelDrawerProps extends CommonDrawerProps {
|
|
|
24
29
|
drawerType: 'panel';
|
|
25
30
|
}
|
|
26
31
|
type InkDrawerProps = CollapsibleDrawerProps | PanelDrawerProps;
|
|
27
|
-
export declare const defaultFilterDrawerWidth = 280;
|
|
28
32
|
export declare function InkDrawer(props: PropsWithChildren<InkDrawerProps>): import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
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';
|
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';
|
|
@@ -113,7 +115,7 @@ declare interface CollapsibleDrawerProps extends CommonDrawerProps {
|
|
|
113
115
|
declare interface CommonDrawerProps extends DrawerProps_2 {
|
|
114
116
|
drawerType: DrawerType;
|
|
115
117
|
drawerContent: JSX.Element;
|
|
116
|
-
drawerWidth?: number
|
|
118
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
117
119
|
leftOffset?: string;
|
|
118
120
|
bottomContent?: JSX.Element;
|
|
119
121
|
headerLabel?: string;
|
|
@@ -127,6 +129,12 @@ declare type CopiedValue = string | null;
|
|
|
127
129
|
|
|
128
130
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
129
131
|
|
|
132
|
+
declare const defaultDrawerWidths: {
|
|
133
|
+
md: number;
|
|
134
|
+
lg: number;
|
|
135
|
+
xl: number;
|
|
136
|
+
};
|
|
137
|
+
|
|
130
138
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
131
139
|
|
|
132
140
|
declare type DemoComponentProps = {
|
|
@@ -205,6 +213,38 @@ declare type IFilterDrawer = DrawerProps & {
|
|
|
205
213
|
mainProps?: BoxProps;
|
|
206
214
|
};
|
|
207
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
|
+
|
|
208
248
|
export declare function IndexLayout({ Header, children, sx, ...containerProps }: IndexLayoutProps): JSX_2.Element;
|
|
209
249
|
|
|
210
250
|
declare type IndexLayoutProps = GridProps & {
|
|
@@ -378,6 +418,8 @@ declare type InkFormTextFieldProps<TFieldValues extends FieldValues, TName exten
|
|
|
378
418
|
label: string;
|
|
379
419
|
} & UseControllerProps<TFieldValues, TName> & TextFieldProps;
|
|
380
420
|
|
|
421
|
+
export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): JSX_2.Element;
|
|
422
|
+
|
|
381
423
|
export declare function InkImage({ src, alt, sx, imageSx, fallbackText, ...rest }: InkImageProps): JSX_2.Element;
|
|
382
424
|
|
|
383
425
|
declare type InkImageProps = BoxProps_2 & {
|