@movable/ui 2.15.2 → 2.15.4
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/InkCard/InkCard.d.ts +13 -3
- package/lib/components/InkCard/InkCardMedia.d.ts +3 -1
- package/lib/components/InkCard/InkCardMediaLoader.d.ts +1 -0
- package/lib/components/InkCard/InkGalleryContent.d.ts +8 -0
- package/lib/components/InkCard/VariantStyles.d.ts +5 -0
- 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 +59 -5
- package/lib/index.mjs +4270 -4111
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { CardProps } from '@mui/material';
|
|
2
2
|
import { InkCardHeaderProps } from './InkCardHeader';
|
|
3
3
|
import { InkCardMediaProps } from './InkCardMedia';
|
|
4
|
-
|
|
4
|
+
import { InkCardType } from './VariantStyles';
|
|
5
|
+
import { GalleryContentProps } from './InkGalleryContent';
|
|
6
|
+
type InkCardBaseProps = CardProps & {
|
|
5
7
|
cardHeader?: InkCardHeaderProps;
|
|
6
8
|
cardMedia?: InkCardMediaProps;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
cardType?: InkCardType;
|
|
10
|
+
};
|
|
11
|
+
type InkCardProps = (InkCardBaseProps & {
|
|
12
|
+
galleryContent: GalleryContentProps;
|
|
13
|
+
cardType: 'gallery';
|
|
14
|
+
}) | (InkCardBaseProps & {
|
|
15
|
+
galleryContent?: never;
|
|
16
|
+
});
|
|
17
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CardMediaProps } from '@mui/material';
|
|
2
|
+
import { InkCardType } from './VariantStyles';
|
|
2
3
|
export interface InkCardMediaProps extends CardMediaProps {
|
|
3
4
|
mediaContent?: JSX.Element;
|
|
5
|
+
cardType?: InkCardType;
|
|
4
6
|
}
|
|
5
|
-
export declare function InkCardMedia({ mediaContent, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function InkCardMedia({ mediaContent, image, cardType, sx, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InkCardMediaLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
|
2
|
+
export type GalleryContentProps = {
|
|
3
|
+
description?: string;
|
|
4
|
+
buttonProps?: ButtonProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function InkGalleryContent({ description, buttonProps, }: GalleryContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
3
|
+
export declare const MAX_CARD_WIDTH = 382;
|
|
4
|
+
export declare const getComposedCardStyles: (isSelectable: boolean, isSelected: boolean, isDisabled?: boolean, cardType?: InkCardType, customSx?: SxProps<Theme>) => SxProps<Theme>;
|
|
5
|
+
export declare const getGalleryCardStyles: () => SxProps<Theme>;
|
|
@@ -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';
|
|
@@ -170,6 +172,13 @@ declare type FiveThreeSplitContentLayoutProps = {
|
|
|
170
172
|
|
|
171
173
|
export declare const FormSkeletonGrid: ({ skeletonRows, skeletonColumns, }: SkeletonGridType) => JSX_2.Element;
|
|
172
174
|
|
|
175
|
+
declare type GalleryContentProps = {
|
|
176
|
+
description?: string;
|
|
177
|
+
buttonProps?: ButtonProps & {
|
|
178
|
+
label?: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
173
182
|
declare type HeaderLink = {
|
|
174
183
|
label: string;
|
|
175
184
|
path?: string;
|
|
@@ -211,6 +220,38 @@ declare type IFilterDrawer = DrawerProps & {
|
|
|
211
220
|
mainProps?: BoxProps;
|
|
212
221
|
};
|
|
213
222
|
|
|
223
|
+
declare interface IGridToolbarGroupProps {
|
|
224
|
+
value: string;
|
|
225
|
+
onChange: (value: string) => void;
|
|
226
|
+
options: string[];
|
|
227
|
+
children?: React.ReactNode;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare interface IInkGridToolBarProps {
|
|
231
|
+
groupingProps?: IGridToolbarGroupProps;
|
|
232
|
+
showFilterDrawerBtn?: boolean;
|
|
233
|
+
showQuickFilter?: boolean;
|
|
234
|
+
showExportButton?: boolean;
|
|
235
|
+
showFilterButton?: boolean;
|
|
236
|
+
showDensitySelector?: boolean;
|
|
237
|
+
showColumnButton?: boolean;
|
|
238
|
+
onExportClick?: () => void;
|
|
239
|
+
loadingExport?: boolean;
|
|
240
|
+
children?: React.ReactNode;
|
|
241
|
+
columnPickerProps?: {
|
|
242
|
+
columnData: GridColDef[];
|
|
243
|
+
handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
|
|
244
|
+
customGridVisibility: GridColumnVisibilityModel;
|
|
245
|
+
lockedFields?: string[];
|
|
246
|
+
hiddenInColumnPicker?: string[];
|
|
247
|
+
};
|
|
248
|
+
filterDrawerBtnProps?: {
|
|
249
|
+
onShowFilterDrawerClick: () => void;
|
|
250
|
+
filterBtnBadgeContent?: string;
|
|
251
|
+
};
|
|
252
|
+
py?: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
214
255
|
export declare function IndexLayout({ Header, children, sx, ...containerProps }: IndexLayoutProps): JSX_2.Element;
|
|
215
256
|
|
|
216
257
|
declare type IndexLayoutProps = GridProps & {
|
|
@@ -232,7 +273,13 @@ declare type InkAttributeProps = ListItemTextProps & {
|
|
|
232
273
|
};
|
|
233
274
|
};
|
|
234
275
|
|
|
235
|
-
export declare function InkCard({ cardMedia, cardHeader, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
276
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
277
|
+
|
|
278
|
+
declare type InkCardBaseProps = CardProps & {
|
|
279
|
+
cardHeader?: InkCardHeaderProps;
|
|
280
|
+
cardMedia?: InkCardMediaProps;
|
|
281
|
+
cardType?: InkCardType;
|
|
282
|
+
};
|
|
236
283
|
|
|
237
284
|
declare interface InkCardHeaderProps {
|
|
238
285
|
checkboxProps?: CheckboxProps;
|
|
@@ -246,12 +293,17 @@ declare interface InkCardHeaderProps {
|
|
|
246
293
|
|
|
247
294
|
declare interface InkCardMediaProps extends CardMediaProps {
|
|
248
295
|
mediaContent?: JSX.Element;
|
|
296
|
+
cardType?: InkCardType;
|
|
249
297
|
}
|
|
250
298
|
|
|
251
|
-
declare
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
299
|
+
declare type InkCardProps = (InkCardBaseProps & {
|
|
300
|
+
galleryContent: GalleryContentProps;
|
|
301
|
+
cardType: 'gallery';
|
|
302
|
+
}) | (InkCardBaseProps & {
|
|
303
|
+
galleryContent?: never;
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
declare type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
255
307
|
|
|
256
308
|
export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
|
|
257
309
|
|
|
@@ -384,6 +436,8 @@ declare type InkFormTextFieldProps<TFieldValues extends FieldValues, TName exten
|
|
|
384
436
|
label: string;
|
|
385
437
|
} & UseControllerProps<TFieldValues, TName> & TextFieldProps;
|
|
386
438
|
|
|
439
|
+
export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): JSX_2.Element;
|
|
440
|
+
|
|
387
441
|
export declare function InkImage({ src, alt, sx, imageSx, fallbackText, ...rest }: InkImageProps): JSX_2.Element;
|
|
388
442
|
|
|
389
443
|
declare type InkImageProps = BoxProps_2 & {
|