@gridsuite/commons-ui 0.77.2 → 0.79.0

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.
@@ -1,97 +0,0 @@
1
- import { CustomColumnProps, KeyedColumnsRowIndexer, RowProps } from './KeyedColumnsRowIndexer';
2
- import { ColumnProps, RowMouseEventHandlerParams, TableCellProps } from 'react-virtualized';
3
- import { SxProps } from '@mui/material';
4
- import { PureComponent, MouseEvent, KeyboardEvent, MutableRefObject } from 'react';
5
-
6
- export declare const DEFAULT_CELL_PADDING = 16;
7
- export declare const DEFAULT_HEADER_HEIGHT = 48;
8
- export declare const DEFAULT_ROW_HEIGHT = 48;
9
- export declare const generateMuiVirtualizedTableClass: (className: string) => string;
10
- export interface MuiVirtualizedTableProps extends CustomColumnProps {
11
- headerHeight: number;
12
- columns: CustomColumnProps[];
13
- defersFilterChanges: (() => void) | null;
14
- rows: RowProps[];
15
- filter: unknown;
16
- sort: unknown;
17
- classes: Record<string, string>;
18
- onRowClick?: (event: RowMouseEventHandlerParams) => void;
19
- rowHeight: number;
20
- onCellClick: (row: RowProps, column: ColumnProps) => void;
21
- tooltipSx: SxProps;
22
- name: string;
23
- exportCSVDataKeys: unknown[];
24
- enableExportCSV: boolean;
25
- }
26
- export interface MuiVirtualizedTableState {
27
- headerHeight: number;
28
- indexer: KeyedColumnsRowIndexer | null;
29
- indirectionVersion: number;
30
- popoverAnchorEl: Element | null;
31
- popoverColKey: string | null;
32
- deferredFilterChange: null | {
33
- newVal: unknown[] | null;
34
- colKey: string | null;
35
- };
36
- }
37
- declare class MuiVirtualizedTableComponent extends PureComponent<MuiVirtualizedTableProps, MuiVirtualizedTableState> {
38
- static defaultProps: {
39
- headerHeight: number;
40
- rowHeight: number;
41
- enableExportCSV: boolean;
42
- classes: {};
43
- };
44
- headers: MutableRefObject<any>;
45
- observer: IntersectionObserver;
46
- dropDownVisible: boolean;
47
- constructor(props: MuiVirtualizedTableProps, context: any);
48
- setVersion: (v: number) => void;
49
- componentDidUpdate(oldProps: MuiVirtualizedTableProps): void;
50
- componentDidMount(): void;
51
- componentWillUnmount(): void;
52
- _registerHeader(label: string, header: unknown): void;
53
- _registerObserver(element: Element): void;
54
- computeDataWidth: (text: string) => number;
55
- sizes: import('memoize-one').MemoizedFn<(this: any, columns: any, rows: any, rowGetter: any) => Record<string, number>>;
56
- openPopover: (popoverTarget: Element, colKey: string) => void;
57
- handleKeyDownOnPopover: (evt: KeyboardEvent<HTMLDivElement>) => void;
58
- closePopover: (_: KeyboardEvent<HTMLDivElement>, reason: string) => void;
59
- makeColumnFilterEditor: () => import("react/jsx-runtime").JSX.Element;
60
- _commitFilterChange: () => boolean;
61
- onFilterParamsChange(newVal: unknown[] | null, colKey: string | null): void;
62
- sortClickHandler: (evt: MouseEvent, _: unknown, columnIndex: number) => void;
63
- filterClickHandler: (_: MouseEvent, target: Element | undefined, columnIndex: number) => void;
64
- sortableHeader: ({ label, columnIndex }: {
65
- label: string;
66
- columnIndex: number;
67
- }) => import("react/jsx-runtime").JSX.Element;
68
- simpleHeaderRenderer: ({ label }: {
69
- label: string;
70
- }) => import("react/jsx-runtime").JSX.Element;
71
- getRowClassName: ({ index, rowGetter, }: {
72
- index: number;
73
- rowGetter: any;
74
- }) => string;
75
- onClickableRowClick: (event: RowMouseEventHandlerParams) => void;
76
- cellRenderer: ({ cellData, columnIndex, rowIndex }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
77
- getDisplayValue(column: CustomColumnProps, cellData: any): any;
78
- _computeHeaderSize(): void;
79
- makeHeaderRenderer(dataKey: string, columnIndex: number): (headerProps: any) => import("react/jsx-runtime").JSX.Element;
80
- makeSizedTable: (height: number, width: number, sizes: Record<string, number>, reorderedIndex: number[] | null, rowGetter: ((index: number) => RowProps) | ((index: number) => number)) => import("react/jsx-runtime").JSX.Element;
81
- getCSVFilename: () => string;
82
- getCSVData: () => Promise<Record<string, any>[]>;
83
- csvHeaders: import('memoize-one').MemoizedFn<(this: any, columns: any, exportCSVDataKeys: any) => {
84
- displayName: string;
85
- id: string;
86
- }[]>;
87
- render(): import("react/jsx-runtime").JSX.Element;
88
- }
89
- export declare const MuiVirtualizedTable: import('@emotion/styled').StyledComponent<Pick<MuiVirtualizedTableProps, "className" | "id" | "name" | "style" | "width" | "filter" | "aria-label" | "maxWidth" | "label" | "rows" | "sort" | "flexGrow" | "flexShrink" | "minWidth" | "columns" | "numeric" | "tooltipSx" | "cellRenderer" | "sortable" | "unit" | "clickable" | "defersFilterChanges" | "onRowClick" | "onCellClick" | "exportCSVDataKeys" | "indexer" | "fractionDigits" | "extra" | "nostat" | "cellDataGetter" | "columnData" | "dataKey" | "defaultSortDirection" | "disableSort" | "headerClassName" | "headerRenderer" | "headerStyle"> & {
90
- classes?: Record<string, string> | undefined;
91
- headerHeight?: number | undefined;
92
- rowHeight?: number | undefined;
93
- enableExportCSV?: boolean | undefined;
94
- } & {} & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {
95
- ref?: import("react").Ref<MuiVirtualizedTableComponent> | undefined;
96
- }>;
97
- export {};