@woovi/ui 6.4.2 → 6.5.1
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/BannerInfos.d.ts +1 -1
- package/dist/datagrid/DataGrid.d.ts +8 -11
- package/dist/datagrid/DataGridRow.d.ts +5 -3
- package/dist/datagrid/cellTypeExpand.d.ts +133 -0
- package/dist/datagrid/cellTypeLink.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/llms.txt +82 -25
- package/dist/mui/Typography.d.ts +1 -1
- package/dist/table/CardListVirtualized.d.ts +0 -1
- package/dist/utils/composeStyles.d.ts +2 -0
- package/package.json +12 -18
package/dist/BannerInfos.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ type BannerInfosArgs<T> = {
|
|
|
23
23
|
refColumn: BannerErrorField<T>;
|
|
24
24
|
};
|
|
25
25
|
type BannerInfosResult = JSX.Element | null;
|
|
26
|
-
export declare const BannerInfos: <T>({ errors, columns, titleHeader, onClose, isOpen, color, name, refColumn
|
|
26
|
+
export declare const BannerInfos: <T>({ errors, columns, titleHeader, onClose, isOpen, color, name, refColumn }: BannerInfosArgs<T>) => BannerInfosResult;
|
|
27
27
|
export default BannerInfos;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataGridProProps as MUIDataGridProProps } from "@mui/x-data-grid-pro";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
export declare const GridDensityTypes: {
|
|
4
4
|
readonly Compact: "compact";
|
|
@@ -7,18 +7,15 @@ export declare const GridDensityTypes: {
|
|
|
7
7
|
};
|
|
8
8
|
export type GridDensityTypes = (typeof GridDensityTypes)[keyof typeof GridDensityTypes];
|
|
9
9
|
export type DataGridProps = MUIDataGridProProps & {
|
|
10
|
+
rowHref?: (row: any) => string;
|
|
10
11
|
maxLines?: number;
|
|
11
|
-
|
|
12
|
+
zebraRow?: boolean;
|
|
12
13
|
tableName?: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
zebraRow?: boolean;
|
|
17
|
-
persistState?: boolean;
|
|
18
|
-
exportTable?: boolean;
|
|
19
|
-
};
|
|
20
|
-
exportBeta?: boolean;
|
|
14
|
+
rowAnchor?: boolean;
|
|
15
|
+
exportTable?: boolean;
|
|
16
|
+
persistState?: boolean;
|
|
21
17
|
getCustomRoute?: (id: string) => string;
|
|
18
|
+
disableSelectAllCheckbox?: boolean;
|
|
22
19
|
};
|
|
23
|
-
declare const DataGrid: ({ columns: _columns,
|
|
20
|
+
declare const DataGrid: ({ rows, slots: slotsProp, rowHref, columns: _columns, maxLines, zebraRow, rowAnchor, onRowClick, exportTable, persistState, initialState, getCustomRoute, ...rest }: DataGridProps) => ReactNode;
|
|
24
21
|
export default DataGrid;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import type { GridRowProps } from "@mui/x-data-grid-pro";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
2
|
-
export type DataGridRowProps = {
|
|
3
|
-
href
|
|
3
|
+
export type DataGridRowProps = GridRowProps & {
|
|
4
|
+
href?: (row: Record<string, unknown>) => string;
|
|
5
|
+
rowAnchor?: boolean;
|
|
4
6
|
};
|
|
5
7
|
/**
|
|
6
8
|
* A custom implementation of the GridRow component focusing in anchored rows.
|
|
7
9
|
*
|
|
8
10
|
* See the default implementation [here](https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/components/GridRow.tsx).
|
|
9
11
|
*/
|
|
10
|
-
declare const DataGridRow: (props: DataGridRowProps) => ReactNode;
|
|
12
|
+
declare const DataGridRow: ({ rowAnchor, ...props }: DataGridRowProps) => ReactNode;
|
|
11
13
|
export default DataGridRow;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { GridAlignment, GridRenderCellParams, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const cellTypeExpand: <T extends GridValidRowModel>(renderExpand?: <T_1 extends GridValidRowModel>(params: GridRenderCellParams<unknown, T_1, unknown>) => boolean) => {
|
|
4
|
+
align: GridAlignment;
|
|
5
|
+
renderCell: (params: GridRenderCellParams<unknown, T, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
field: string;
|
|
7
|
+
headerName?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
flex?: number;
|
|
11
|
+
minWidth?: number;
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
hideable?: boolean;
|
|
14
|
+
sortable?: boolean;
|
|
15
|
+
sortingOrder?: readonly import("@mui/x-data-grid").GridSortDirection[];
|
|
16
|
+
resizable?: boolean;
|
|
17
|
+
editable?: boolean;
|
|
18
|
+
groupable?: boolean;
|
|
19
|
+
pinnable?: boolean;
|
|
20
|
+
sortComparator?: import("@mui/x-data-grid").GridComparatorFn<any> | undefined;
|
|
21
|
+
getSortComparator?: ((sortDirection: import("@mui/x-data-grid").GridSortDirection) => import("@mui/x-data-grid").GridComparatorFn<any> | undefined) | undefined;
|
|
22
|
+
type?: import("@mui/x-data-grid").GridColType;
|
|
23
|
+
valueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
24
|
+
rowSpanValueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
25
|
+
valueSetter?: import("@mui/x-data-grid").GridValueSetter<any, any, any> | undefined;
|
|
26
|
+
valueFormatter?: import("@mui/x-data-grid").GridValueFormatter<any, any, any, never> | undefined;
|
|
27
|
+
valueParser?: import("@mui/x-data-grid").GridValueParser<any, any, any> | undefined;
|
|
28
|
+
cellClassName?: import("@mui/x-data-grid").GridCellClassNamePropType<any, any> | undefined;
|
|
29
|
+
display?: "text" | "flex";
|
|
30
|
+
renderEditCell?: ((params: import("@mui/x-data-grid").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
31
|
+
preProcessEditCellProps?: ((params: import("@mui/x-data-grid").GridPreProcessEditCellProps) => import("@mui/x-data-grid").GridEditCellProps | Promise<import("@mui/x-data-grid").GridEditCellProps>) | undefined;
|
|
32
|
+
headerClassName?: import("@mui/x-data-grid").GridColumnHeaderClassNamePropType;
|
|
33
|
+
renderHeader?: ((params: import("@mui/x-data-grid").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
|
|
34
|
+
headerAlign?: GridAlignment;
|
|
35
|
+
hideSortIcons?: boolean;
|
|
36
|
+
disableColumnMenu?: boolean;
|
|
37
|
+
filterable?: boolean;
|
|
38
|
+
filterOperators?: readonly import("@mui/x-data-grid").GridFilterOperator<any, any, any, any>[] | undefined;
|
|
39
|
+
getApplyQuickFilterFn?: import("@mui/x-data-grid").GetApplyQuickFilterFn<any, any> | undefined;
|
|
40
|
+
disableReorder?: boolean;
|
|
41
|
+
disableExport?: boolean;
|
|
42
|
+
colSpan?: number | import("@mui/x-data-grid").GridColSpanFn<any, any, any> | undefined;
|
|
43
|
+
examples?: any[] | undefined;
|
|
44
|
+
renderHeaderFilter?: (params: import("@mui/x-data-grid-pro").GridRenderHeaderFilterProps) => React.ReactNode;
|
|
45
|
+
} | {
|
|
46
|
+
align: GridAlignment;
|
|
47
|
+
renderCell: (params: GridRenderCellParams<unknown, T, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
type: "actions";
|
|
49
|
+
getActions: (params: import("@mui/x-data-grid").GridRowParams<any>) => readonly React.ReactElement<import("@mui/x-data-grid").GridActionsCellItemProps>[];
|
|
50
|
+
field: string;
|
|
51
|
+
headerName?: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
width?: number;
|
|
54
|
+
flex?: number;
|
|
55
|
+
minWidth?: number;
|
|
56
|
+
maxWidth?: number;
|
|
57
|
+
hideable?: boolean;
|
|
58
|
+
sortable?: boolean;
|
|
59
|
+
sortingOrder?: readonly import("@mui/x-data-grid").GridSortDirection[];
|
|
60
|
+
resizable?: boolean;
|
|
61
|
+
editable?: boolean;
|
|
62
|
+
groupable?: boolean;
|
|
63
|
+
pinnable?: boolean;
|
|
64
|
+
sortComparator?: import("@mui/x-data-grid").GridComparatorFn<any> | undefined;
|
|
65
|
+
getSortComparator?: ((sortDirection: import("@mui/x-data-grid").GridSortDirection) => import("@mui/x-data-grid").GridComparatorFn<any> | undefined) | undefined;
|
|
66
|
+
valueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
67
|
+
rowSpanValueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
68
|
+
valueSetter?: import("@mui/x-data-grid").GridValueSetter<any, any, any> | undefined;
|
|
69
|
+
valueFormatter?: import("@mui/x-data-grid").GridValueFormatter<any, any, any, never> | undefined;
|
|
70
|
+
valueParser?: import("@mui/x-data-grid").GridValueParser<any, any, any> | undefined;
|
|
71
|
+
cellClassName?: import("@mui/x-data-grid").GridCellClassNamePropType<any, any> | undefined;
|
|
72
|
+
display?: "text" | "flex";
|
|
73
|
+
renderEditCell?: ((params: import("@mui/x-data-grid").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
74
|
+
preProcessEditCellProps?: ((params: import("@mui/x-data-grid").GridPreProcessEditCellProps) => import("@mui/x-data-grid").GridEditCellProps | Promise<import("@mui/x-data-grid").GridEditCellProps>) | undefined;
|
|
75
|
+
headerClassName?: import("@mui/x-data-grid").GridColumnHeaderClassNamePropType;
|
|
76
|
+
renderHeader?: ((params: import("@mui/x-data-grid").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
|
|
77
|
+
headerAlign?: GridAlignment;
|
|
78
|
+
hideSortIcons?: boolean;
|
|
79
|
+
disableColumnMenu?: boolean;
|
|
80
|
+
filterable?: boolean;
|
|
81
|
+
filterOperators?: readonly import("@mui/x-data-grid").GridFilterOperator<any, any, any, any>[] | undefined;
|
|
82
|
+
getApplyQuickFilterFn?: import("@mui/x-data-grid").GetApplyQuickFilterFn<any, any> | undefined;
|
|
83
|
+
disableReorder?: boolean;
|
|
84
|
+
disableExport?: boolean;
|
|
85
|
+
colSpan?: number | import("@mui/x-data-grid").GridColSpanFn<any, any, any> | undefined;
|
|
86
|
+
examples?: any[] | undefined;
|
|
87
|
+
renderHeaderFilter?: (params: import("@mui/x-data-grid-pro").GridRenderHeaderFilterProps) => React.ReactNode;
|
|
88
|
+
} | {
|
|
89
|
+
align: GridAlignment;
|
|
90
|
+
renderCell: (params: GridRenderCellParams<unknown, T, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
type: "singleSelect";
|
|
92
|
+
valueOptions?: import("@mui/x-data-grid").ValueOptions[] | ((params: import("@mui/x-data-grid").GridValueOptionsParams<any>) => Array<import("@mui/x-data-grid").ValueOptions>) | undefined;
|
|
93
|
+
getOptionLabel: (value: import("@mui/x-data-grid").ValueOptions) => string;
|
|
94
|
+
getOptionValue: (value: import("@mui/x-data-grid").ValueOptions) => any;
|
|
95
|
+
field: string;
|
|
96
|
+
headerName?: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
width?: number;
|
|
99
|
+
flex?: number;
|
|
100
|
+
minWidth?: number;
|
|
101
|
+
maxWidth?: number;
|
|
102
|
+
hideable?: boolean;
|
|
103
|
+
sortable?: boolean;
|
|
104
|
+
sortingOrder?: readonly import("@mui/x-data-grid").GridSortDirection[];
|
|
105
|
+
resizable?: boolean;
|
|
106
|
+
editable?: boolean;
|
|
107
|
+
groupable?: boolean;
|
|
108
|
+
pinnable?: boolean;
|
|
109
|
+
sortComparator?: import("@mui/x-data-grid").GridComparatorFn<any> | undefined;
|
|
110
|
+
getSortComparator?: ((sortDirection: import("@mui/x-data-grid").GridSortDirection) => import("@mui/x-data-grid").GridComparatorFn<any> | undefined) | undefined;
|
|
111
|
+
valueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
112
|
+
rowSpanValueGetter?: import("@mui/x-data-grid").GridValueGetter<any, any, any, never> | undefined;
|
|
113
|
+
valueSetter?: import("@mui/x-data-grid").GridValueSetter<any, any, any> | undefined;
|
|
114
|
+
valueFormatter?: import("@mui/x-data-grid").GridValueFormatter<any, any, any, never> | undefined;
|
|
115
|
+
valueParser?: import("@mui/x-data-grid").GridValueParser<any, any, any> | undefined;
|
|
116
|
+
cellClassName?: import("@mui/x-data-grid").GridCellClassNamePropType<any, any> | undefined;
|
|
117
|
+
display?: "text" | "flex";
|
|
118
|
+
renderEditCell?: ((params: import("@mui/x-data-grid").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
119
|
+
preProcessEditCellProps?: ((params: import("@mui/x-data-grid").GridPreProcessEditCellProps) => import("@mui/x-data-grid").GridEditCellProps | Promise<import("@mui/x-data-grid").GridEditCellProps>) | undefined;
|
|
120
|
+
headerClassName?: import("@mui/x-data-grid").GridColumnHeaderClassNamePropType;
|
|
121
|
+
renderHeader?: ((params: import("@mui/x-data-grid").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
|
|
122
|
+
headerAlign?: GridAlignment;
|
|
123
|
+
hideSortIcons?: boolean;
|
|
124
|
+
disableColumnMenu?: boolean;
|
|
125
|
+
filterable?: boolean;
|
|
126
|
+
filterOperators?: readonly import("@mui/x-data-grid").GridFilterOperator<any, any, any, any>[] | undefined;
|
|
127
|
+
getApplyQuickFilterFn?: import("@mui/x-data-grid").GetApplyQuickFilterFn<any, any> | undefined;
|
|
128
|
+
disableReorder?: boolean;
|
|
129
|
+
disableExport?: boolean;
|
|
130
|
+
colSpan?: number | import("@mui/x-data-grid").GridColSpanFn<any, any, any> | undefined;
|
|
131
|
+
examples?: any[] | undefined;
|
|
132
|
+
renderHeaderFilter?: (params: import("@mui/x-data-grid-pro").GridRenderHeaderFilterProps) => React.ReactNode;
|
|
133
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GridColTypeDef, GridValidRowModel,
|
|
2
|
-
export declare const cellTypeLink: <R extends GridValidRowModel>(getLink: (
|
|
1
|
+
import type { GridColTypeDef, GridValidRowModel, GridRenderCellParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
export declare const cellTypeLink: <R extends GridValidRowModel>(getLink: (params: GridRenderCellParams<R>) => string) => GridColTypeDef;
|