@scvzerng/element-ui-ag-grid-vue2 0.0.19 → 0.0.21
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/ElementPlusAgGrid.es.js +8790 -9178
- package/dist/ElementPlusAgGrid.umd.js +24 -24
- package/dist/style.css +1 -1
- package/dist/types/Grid.vue.d.ts +708 -705
- package/dist/types/ag-grid/options/ag-grid-menu-options.d.ts +1 -1
- package/dist/types/ag-grid-vue/components/AgGridVue.vue.d.ts +29 -29
- package/dist/types/ag-grid-vue/components/utils.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/render/CellRenderer.vue.d.ts +1 -1
- package/dist/types/render/HeaderRenderer.vue.d.ts +2 -2
- package/dist/types/render/HeaderVNodeRender.d.ts +11 -0
- package/dist/types/render/types/ICellRendererParamsExt.d.ts +5 -0
- package/dist/types/renders.d.ts +7 -2
- package/dist/types/toolbar/features/use-columns-setting.d.ts +1 -1
- package/dist/types/use-footer.d.ts +7 -6
- package/dist/types/use-grid-state.d.ts +2 -2
- package/dist/types/use-grid.d.ts +155 -115
- package/dist/types/use-proxy.d.ts +10 -11
- package/package.json +3 -1
- package/dist/types/GridDataCache.d.ts +0 -52
- package/dist/types/GridDataSource.d.ts +0 -39
- package/dist/types/PageGetRowsParams.d.ts +0 -32
- package/dist/types/ag-grid/options/ag-grid-options-clean.d.ts +0 -2
- package/dist/types/ag-grid/options/ag-grid-options.d.ts +0 -10
- package/dist/types/clientSideRowModel/abstractClientSideNodeManager.d.ts +0 -50
- package/dist/types/clientSideRowModel/changedRowNodes.d.ts +0 -12
- package/dist/types/clientSideRowModel/clientSideNodeManager.d.ts +0 -5
- package/dist/types/clientSideRowModel/clientSideRowModel.d.ts +0 -129
- package/dist/types/clientSideRowModel/clientSideRowModelApi.d.ts +0 -12
- package/dist/types/clientSideRowModel/clientSideRowModelModule.d.ts +0 -9
- package/dist/types/clientSideRowModel/filterStage.d.ts +0 -14
- package/dist/types/clientSideRowModel/sortStage.d.ts +0 -10
- package/dist/types/model/row/ActualRow.d.ts +0 -79
- package/dist/types/model/row/CellValue.d.ts +0 -37
- package/dist/types/model/row/EditableRow.d.ts +0 -53
- package/dist/types/model/row/GridRow.d.ts +0 -36
- package/dist/types/model/row/ProjectionRow.d.ts +0 -50
- package/dist/types/model/row/SpanInfo.d.ts +0 -25
- package/dist/types/selection/baseSelectionService.d.ts +0 -45
- package/dist/types/selection/checkboxSelectionComponent.d.ts +0 -24
- package/dist/types/selection/rowRangeSelectionContext.d.ts +0 -54
- package/dist/types/selection/rowSelectionApi.d.ts +0 -18
- package/dist/types/selection/rowSelectionModule.d.ts +0 -9
- package/dist/types/selection/selectAllFeature.d.ts +0 -28
- package/dist/types/selection/selectionColService.d.ts +0 -38
- package/dist/types/selection/selectionService.d.ts +0 -73
- package/dist/types/selection/utils.d.ts +0 -12
- package/dist/types/tokens.d.ts +0 -22
- package/dist/types/use-grid-scroll.d.ts +0 -10
- package/dist/types/use-sort.d.ts +0 -4
- package/dist/types/utils/GridUtils.d.ts +0 -4
- package/dist/types/version.d.ts +0 -1
- /package/dist/{favicon.ico → public/favicon.ico} +0 -0
package/dist/types/use-grid.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GridDataCache } from './GridDataCache';
|
|
1
|
+
import { ActualRow, EditableRow, GridRow, type RowChangeCallback } from '@scvzerng/ag-grid-core';
|
|
3
2
|
import type { Column, Options, RowIdMapper } from './index';
|
|
4
|
-
import type {
|
|
3
|
+
import type { GridOptions } from 'ag-grid-community';
|
|
5
4
|
import type { Searchable } from './search';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Vue2 适配: useGrid 的薄壳
|
|
7
|
+
* - 注入 element-ui 的 Message.error 作为 onError 回调
|
|
8
|
+
* - 注入 instance 遍历上下文 (instance.proxy.$options.name / instance.proxy.$parent)
|
|
9
|
+
* - 暴露 useGrid 的全部返回值
|
|
10
|
+
*/
|
|
11
|
+
export type RowData<T> = T[] | ((page: import('@scvzerng/ag-grid-core').PageFetchParams) => Promise<T[]>);
|
|
11
12
|
export type RefreshCallback = () => Promise<void>;
|
|
12
13
|
export type GridProps = {
|
|
13
14
|
id?: string;
|
|
@@ -15,10 +16,12 @@ export type GridProps = {
|
|
|
15
16
|
columns: Column[];
|
|
16
17
|
rowData: RowData<any>;
|
|
17
18
|
pageSize: number;
|
|
18
|
-
tools:
|
|
19
|
+
tools: ('search' | 'refresh' | 'setting')[];
|
|
19
20
|
searches: Searchable[];
|
|
20
21
|
gridOptions: Options;
|
|
21
22
|
footerHeight?: number;
|
|
23
|
+
editable?: 'cell' | 'row';
|
|
24
|
+
onRowChange?: RowChangeCallback<any>;
|
|
22
25
|
};
|
|
23
26
|
export declare const useGrid: <T = any>(props: GridProps) => {
|
|
24
27
|
gridOptions: import("vue").ComputedRef<GridOptions<any>>;
|
|
@@ -28,14 +31,14 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
28
31
|
getGridId: () => string;
|
|
29
32
|
destroy: () => void;
|
|
30
33
|
isDestroyed: () => boolean;
|
|
31
|
-
getGridOption: <Key extends keyof GridOptions<TData>>(key: Key) => GridOptions<ProjectionRow<any>>[Key];
|
|
32
|
-
setGridOption: <Key extends import("ag-grid-community").ManagedGridOptionKey>(key: Key, value: GridOptions<ProjectionRow<any>>[Key]) => void;
|
|
33
|
-
updateGridOptions: <TDataUpdate extends ProjectionRow<any>>(options: import("ag-grid-community").ManagedGridOptions<TDataUpdate>) => void;
|
|
34
|
+
getGridOption: <Key extends keyof GridOptions<TData>>(key: Key) => GridOptions<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[Key];
|
|
35
|
+
setGridOption: <Key extends import("ag-grid-community").ManagedGridOptionKey>(key: Key, value: GridOptions<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[Key]) => void;
|
|
36
|
+
updateGridOptions: <TDataUpdate extends import("@scvzerng/ag-grid-core").ProjectionRow<any>>(options: import("ag-grid-community").ManagedGridOptions<TDataUpdate>) => void;
|
|
34
37
|
isModuleRegistered: (moduleName: import("ag-grid-community").AgModuleName) => boolean;
|
|
35
38
|
getState: () => import("ag-grid-community").GridState;
|
|
36
39
|
setState: (state: import("ag-grid-community").GridState, propertiesToIgnore?: import("ag-grid-community").GridStateKey[]) => void;
|
|
37
40
|
setNodesSelected: (params: {
|
|
38
|
-
nodes: import("ag-grid-community").IRowNode<ProjectionRow<any>>[];
|
|
41
|
+
nodes: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
39
42
|
newValue: boolean;
|
|
40
43
|
source?: import("ag-grid-community").SelectionEventSourceType;
|
|
41
44
|
}) => void;
|
|
@@ -45,17 +48,17 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
45
48
|
deselectAllFiltered: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
46
49
|
selectAllOnCurrentPage: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
47
50
|
deselectAllOnCurrentPage: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
48
|
-
getSelectedNodes: () => import("ag-grid-community").IRowNode<ProjectionRow<any>>[];
|
|
49
|
-
getSelectedRows: () => ProjectionRow<any>[];
|
|
50
|
-
redrawRows: (params?: import("ag-grid-community").RedrawRowsParams<ProjectionRow<any>> | undefined) => void;
|
|
51
|
-
setRowNodeExpanded: (rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>, expanded: boolean, expandParents?: boolean, forceSync?: boolean) => void;
|
|
52
|
-
getRowNode: (id: string) => import("ag-grid-community").IRowNode<ProjectionRow<any>> | undefined;
|
|
51
|
+
getSelectedNodes: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
52
|
+
getSelectedRows: () => import("@scvzerng/ag-grid-core").ProjectionRow<any>[];
|
|
53
|
+
redrawRows: (params?: import("ag-grid-community").RedrawRowsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
54
|
+
setRowNodeExpanded: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, expanded: boolean, expandParents?: boolean, forceSync?: boolean) => void;
|
|
55
|
+
getRowNode: (id: string) => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
53
56
|
addRenderedRowListener: (eventName: import("ag-grid-community/dist/types/src/interfaces/iCallbackParams").RenderedRowEvent, rowIndex: number, callback: (...args: any[]) => any) => void;
|
|
54
|
-
getRenderedNodes: () => import("ag-grid-community").IRowNode<ProjectionRow<any>>[];
|
|
55
|
-
forEachNode: (callback: (rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>, index: number) => void, includeFooterNodes?: boolean) => void;
|
|
57
|
+
getRenderedNodes: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
58
|
+
forEachNode: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void, includeFooterNodes?: boolean) => void;
|
|
56
59
|
getFirstDisplayedRowIndex: () => number;
|
|
57
60
|
getLastDisplayedRowIndex: () => number;
|
|
58
|
-
getDisplayedRowAtIndex: (index: number) => import("ag-grid-community").IRowNode<ProjectionRow<any>> | undefined;
|
|
61
|
+
getDisplayedRowAtIndex: (index: number) => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
59
62
|
getDisplayedRowCount: () => number;
|
|
60
63
|
getVerticalPixelRange: () => {
|
|
61
64
|
top: number;
|
|
@@ -67,21 +70,21 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
67
70
|
};
|
|
68
71
|
ensureColumnVisible: (key: string | import("ag-grid-community").Column, position?: "auto" | "start" | "middle" | "end") => void;
|
|
69
72
|
ensureIndexVisible: (index: number, position?: "top" | "bottom" | "middle" | null) => void;
|
|
70
|
-
ensureNodeVisible: (nodeSelector: ProjectionRow<any> | import("ag-grid-community").IRowNode<ProjectionRow<any>> | ((row: import("ag-grid-community").IRowNode<ProjectionRow<any>>) => boolean), position?: "top" | "bottom" | "middle" | null) => void;
|
|
73
|
+
ensureNodeVisible: (nodeSelector: import("@scvzerng/ag-grid-core").ProjectionRow<any> | import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | ((row: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => boolean), position?: "top" | "bottom" | "middle" | null) => void;
|
|
71
74
|
getFocusedCell: () => import("ag-grid-community").CellPosition | null;
|
|
72
75
|
clearFocusedCell: () => void;
|
|
73
76
|
setFocusedCell: (rowIndex: number, colKey: string | import("ag-grid-community").Column, rowPinned?: import("ag-grid-community").RowPinnedType) => void;
|
|
74
77
|
setFocusedHeader: (colKey: string | import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup, floatingFilter?: boolean) => void;
|
|
75
78
|
tabToNextCell: (event?: KeyboardEvent) => boolean;
|
|
76
79
|
tabToPreviousCell: (event?: KeyboardEvent) => boolean;
|
|
77
|
-
addEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<ProjectionRow<any>, any, TEventType>) => void;
|
|
78
|
-
removeEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<ProjectionRow<any>, any, TEventType>) => void;
|
|
79
|
-
addGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<ProjectionRow<any>, any, TEventType>) => void;
|
|
80
|
-
removeGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<ProjectionRow<any>, any, TEventType>) => void;
|
|
80
|
+
addEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
81
|
+
removeEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
82
|
+
addGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
83
|
+
removeGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
81
84
|
expireValueCache: () => void;
|
|
82
85
|
getCellValue: {
|
|
83
86
|
<TValue = any>(params: {
|
|
84
|
-
rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>;
|
|
87
|
+
rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
85
88
|
colKey: string | import("ag-grid-community").Column<TValue>;
|
|
86
89
|
useFormatter: true;
|
|
87
90
|
}): string | null | undefined;
|
|
@@ -101,7 +104,7 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
101
104
|
getPinnedBottomRow: <TPinnedData = any>(index: number) => import("ag-grid-community").IRowNode<TPinnedData> | undefined;
|
|
102
105
|
forEachPinnedRow: <TPinnedData = any>(floating: NonNullable<import("ag-grid-community").RowPinnedType>, callback: (rowNode: import("ag-grid-community").IRowNode<TPinnedData>) => void) => void;
|
|
103
106
|
setGridAriaProperty: (property: string, value: string | null) => void;
|
|
104
|
-
refreshCells: (params?: import("ag-grid-community").RefreshCellsParams<ProjectionRow<any>> | undefined) => void;
|
|
107
|
+
refreshCells: (params?: import("ag-grid-community").RefreshCellsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
105
108
|
refreshHeader: () => void;
|
|
106
109
|
isAnimationFrameQueueEmpty: () => boolean;
|
|
107
110
|
flushAllAnimationFrames: () => void;
|
|
@@ -109,13 +112,13 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
109
112
|
rowHeight: number;
|
|
110
113
|
headerHeight: number;
|
|
111
114
|
};
|
|
112
|
-
getCellRendererInstances: (params?: import("ag-grid-community").GetCellRendererInstancesParams<ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellRenderer<ProjectionRow<any>>[];
|
|
113
|
-
flashCells: (params?: import("ag-grid-community").FlashCellsParams<ProjectionRow<any>> | undefined) => void;
|
|
115
|
+
getCellRendererInstances: (params?: import("ag-grid-community").GetCellRendererInstancesParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellRenderer<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
116
|
+
flashCells: (params?: import("ag-grid-community").FlashCellsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
114
117
|
addRowDropZone: (params: import("ag-grid-community").RowDropZoneParams) => void;
|
|
115
118
|
removeRowDropZone: (params: import("ag-grid-community").RowDropZoneParams) => void;
|
|
116
119
|
getRowDropZoneParams: (events?: import("ag-grid-community").RowDropZoneEvents) => import("ag-grid-community").RowDropZoneParams | undefined;
|
|
117
|
-
getRowDropPositionIndicator: () => import("ag-grid-community").RowDropPositionIndicator<ProjectionRow<any>>;
|
|
118
|
-
setRowDropPositionIndicator: (highlight: import("ag-grid-community").SetRowDropPositionIndicatorParams<ProjectionRow<any>> | null | undefined) => void;
|
|
120
|
+
getRowDropPositionIndicator: () => import("ag-grid-community").RowDropPositionIndicator<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
121
|
+
setRowDropPositionIndicator: (highlight: import("ag-grid-community").SetRowDropPositionIndicatorParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | null | undefined) => void;
|
|
119
122
|
sizeColumnsToFit: (paramsOrGridWidth?: import("ag-grid-community").ISizeColumnsToFitParams | number) => void;
|
|
120
123
|
autoSizeColumns: {
|
|
121
124
|
(keys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[], skipHeader?: boolean): void;
|
|
@@ -132,10 +135,10 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
132
135
|
moveColumnByIndex: (fromIndex: number, toIndex: number) => void;
|
|
133
136
|
moveColumns: (columnsToMoveKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[], toIndex: number) => void;
|
|
134
137
|
isColumnHovered: (column: import("ag-grid-community").Column) => boolean;
|
|
135
|
-
getColumnDefs: () => (import("ag-grid-community").ColDef<ProjectionRow<any>, any> | import("ag-grid-community").ColGroupDef<ProjectionRow<any>>)[] | undefined;
|
|
136
|
-
getColumnDef: <TValue = any>(key: string | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").ColDef<ProjectionRow<any>, TValue> | null;
|
|
138
|
+
getColumnDefs: () => (import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any> | import("ag-grid-community").ColGroupDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>>)[] | undefined;
|
|
139
|
+
getColumnDef: <TValue = any>(key: string | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | null;
|
|
137
140
|
getDisplayNameForColumn: (column: import("ag-grid-community").Column, location: import("ag-grid-community").HeaderLocation) => string;
|
|
138
|
-
getColumn: <TValue = any>(key: string | import("ag-grid-community").ColDef<ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
141
|
+
getColumn: <TValue = any>(key: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
139
142
|
getColumns: () => import("ag-grid-community").Column[] | null;
|
|
140
143
|
applyColumnState: (params: import("ag-grid-community").ApplyColumnStateParams) => boolean;
|
|
141
144
|
getColumnState: () => import("ag-grid-community").ColumnState[];
|
|
@@ -170,7 +173,7 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
170
173
|
getCenterDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[];
|
|
171
174
|
getRightDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[];
|
|
172
175
|
getAllDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[] | null;
|
|
173
|
-
getCellEditorInstances: (params?: import("ag-grid-community").GetCellEditorInstancesParams<ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellEditor[];
|
|
176
|
+
getCellEditorInstances: (params?: import("ag-grid-community").GetCellEditorInstancesParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellEditor[];
|
|
174
177
|
getEditingCells: () => import("ag-grid-community").EditingCellPosition[];
|
|
175
178
|
stopEditing: (cancel?: boolean) => void;
|
|
176
179
|
startEditingCell: (params: import("ag-grid-community").StartEditingCellParams) => void;
|
|
@@ -201,9 +204,9 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
201
204
|
findGetTotalMatches: () => number;
|
|
202
205
|
findGoTo: (match: number, force?: boolean) => void;
|
|
203
206
|
findClearActive: () => void;
|
|
204
|
-
findGetActiveMatch: () => import("ag-grid-community").FindMatch<ProjectionRow<any>, any> | undefined;
|
|
205
|
-
findGetNumMatches: (params: import("ag-grid-community").FindCellParams<ProjectionRow<any>, any>) => number;
|
|
206
|
-
findGetParts: (params: import("ag-grid-community").FindCellValueParams<ProjectionRow<any>, any>) => import("ag-grid-community").FindPart[];
|
|
207
|
+
findGetActiveMatch: () => import("ag-grid-community").FindMatch<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any> | undefined;
|
|
208
|
+
findGetNumMatches: (params: import("ag-grid-community").FindCellParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>) => number;
|
|
209
|
+
findGetParts: (params: import("ag-grid-community").FindCellValueParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>) => import("ag-grid-community").FindPart[];
|
|
207
210
|
findRefresh: () => void;
|
|
208
211
|
paginationIsLastPageFound: () => boolean;
|
|
209
212
|
paginationGetPageSize: () => number;
|
|
@@ -223,14 +226,14 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
223
226
|
isLastRowIndexKnown: () => boolean | undefined;
|
|
224
227
|
onGroupExpandedOrCollapsed: () => void;
|
|
225
228
|
refreshClientSideRowModel: (step?: import("ag-grid-community").ClientSideRowModelStep) => void;
|
|
226
|
-
forEachLeafNode: (callback: (rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>) => void) => void;
|
|
227
|
-
forEachNodeAfterFilter: (callback: (rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>, index: number) => void) => void;
|
|
228
|
-
forEachNodeAfterFilterAndSort: (callback: (rowNode: import("ag-grid-community").IRowNode<ProjectionRow<any>>, index: number) => void) => void;
|
|
229
|
+
forEachLeafNode: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) => void;
|
|
230
|
+
forEachNodeAfterFilter: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void) => void;
|
|
231
|
+
forEachNodeAfterFilterAndSort: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void) => void;
|
|
229
232
|
resetRowHeights: () => void;
|
|
230
|
-
applyTransaction: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<ProjectionRow<any>>) => import("ag-grid-community").RowNodeTransaction<ProjectionRow<any>> | null | undefined;
|
|
231
|
-
applyTransactionAsync: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<ProjectionRow<any>>, callback?: ((res: import("ag-grid-community").RowNodeTransaction<ProjectionRow<any>>) => void) | undefined) => void;
|
|
233
|
+
applyTransaction: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => import("ag-grid-community").RowNodeTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | null | undefined;
|
|
234
|
+
applyTransactionAsync: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, callback?: ((res: import("ag-grid-community").RowNodeTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) | undefined) => void;
|
|
232
235
|
flushAsyncTransactions: () => void;
|
|
233
|
-
getBestCostNodeSelection: () => import("ag-grid-community").IRowNode<ProjectionRow<any>>[] | undefined;
|
|
236
|
+
getBestCostNodeSelection: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[] | undefined;
|
|
234
237
|
isRowDataEmpty: () => boolean;
|
|
235
238
|
isSideBarVisible: () => boolean;
|
|
236
239
|
setSideBarVisible: (show: boolean) => void;
|
|
@@ -243,11 +246,11 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
243
246
|
getToolPanelInstance: {
|
|
244
247
|
(id: "columns"): import("ag-grid-community").IColumnToolPanel | undefined;
|
|
245
248
|
(id: "filters"): import("ag-grid-community").IFiltersToolPanel | undefined;
|
|
246
|
-
<TToolPanel = import("ag-grid-community").IToolPanel<ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
247
|
-
<TToolPanel = import("ag-grid-community").IToolPanel<ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
249
|
+
<TToolPanel = import("ag-grid-community").IToolPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
250
|
+
<TToolPanel = import("ag-grid-community").IToolPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
248
251
|
};
|
|
249
252
|
getSideBar: () => import("ag-grid-community").SideBarDef | undefined;
|
|
250
|
-
getStatusPanel: <TStatusPanel = import("ag-grid-community").IStatusPanel<ProjectionRow<any>, any>>(key: string) => TStatusPanel | undefined;
|
|
253
|
+
getStatusPanel: <TStatusPanel = import("ag-grid-community").IStatusPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>>(key: string) => TStatusPanel | undefined;
|
|
251
254
|
refreshInfiniteCache: () => void;
|
|
252
255
|
purgeInfiniteCache: () => void;
|
|
253
256
|
getInfiniteRowCount: () => number | undefined;
|
|
@@ -259,12 +262,12 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
259
262
|
addRowGroupColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
260
263
|
getRowGroupColumns: () => import("ag-grid-community").Column[];
|
|
261
264
|
addAggFuncs: (aggFuncs: {
|
|
262
|
-
[key: string]: import("ag-grid-community").IAggFunc<ProjectionRow<any>, any, any>;
|
|
265
|
+
[key: string]: import("ag-grid-community").IAggFunc<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>;
|
|
263
266
|
}) => void;
|
|
264
267
|
clearAggFuncs: () => void;
|
|
265
|
-
setColumnAggFunc: <TValue = any>(key: string | import("ag-grid-community").ColDef<ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>, aggFunc: string | import("ag-grid-community").IAggFunc<ProjectionRow<any>, TValue, any> | null | undefined) => void;
|
|
268
|
+
setColumnAggFunc: <TValue = any>(key: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>, aggFunc: string | import("ag-grid-community").IAggFunc<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue, any> | null | undefined) => void;
|
|
266
269
|
isPivotMode: () => boolean;
|
|
267
|
-
getPivotResultColumn: <TValue = any>(pivotKeys: string[], valueColKey: string | import("ag-grid-community").ColDef<ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
270
|
+
getPivotResultColumn: <TValue = any>(pivotKeys: string[], valueColKey: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
268
271
|
setValueColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
269
272
|
getValueColumns: () => import("ag-grid-community").Column[];
|
|
270
273
|
removeValueColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
@@ -281,10 +284,10 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
281
284
|
clearCellSelection: () => void;
|
|
282
285
|
getServerSideSelectionState: () => import("ag-grid-community").IServerSideSelectionState | import("ag-grid-community").IServerSideGroupSelectionState | null;
|
|
283
286
|
setServerSideSelectionState: (state: import("ag-grid-community").IServerSideSelectionState | import("ag-grid-community").IServerSideGroupSelectionState) => void;
|
|
284
|
-
applyServerSideTransaction: (transaction: import("ag-grid-community").ServerSideTransaction) => import("ag-grid-community").ServerSideTransactionResult<ProjectionRow<any>> | undefined;
|
|
285
|
-
applyServerSideTransactionAsync: (transaction: import("ag-grid-community").ServerSideTransaction, callback?: ((res: import("ag-grid-community").ServerSideTransactionResult<ProjectionRow<any>>) => void) | undefined) => void;
|
|
287
|
+
applyServerSideTransaction: (transaction: import("ag-grid-community").ServerSideTransaction) => import("ag-grid-community").ServerSideTransactionResult<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
288
|
+
applyServerSideTransactionAsync: (transaction: import("ag-grid-community").ServerSideTransaction, callback?: ((res: import("ag-grid-community").ServerSideTransactionResult<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) | undefined) => void;
|
|
286
289
|
applyServerSideRowData: (params: {
|
|
287
|
-
successParams: import("ag-grid-community").LoadSuccessParams<ProjectionRow<any>>;
|
|
290
|
+
successParams: import("ag-grid-community").LoadSuccessParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
288
291
|
route?: string[];
|
|
289
292
|
startRow?: number;
|
|
290
293
|
}) => void;
|
|
@@ -336,28 +339,20 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
336
339
|
pageNum: number;
|
|
337
340
|
pageSize: number;
|
|
338
341
|
}) => void;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
height: string;
|
|
342
|
-
width: string;
|
|
343
|
-
}>;
|
|
344
|
-
dataCache: import("vue").Ref<{
|
|
345
|
-
pageNum: number;
|
|
346
|
-
pageSize: number;
|
|
347
|
-
isFinished: boolean;
|
|
348
|
-
gridApi: {
|
|
342
|
+
}, import("@scvzerng/ag-grid-core").GridDataSource<any> | {
|
|
343
|
+
api: {
|
|
349
344
|
dispatchEvent: (event: import("ag-grid-community").AgEvent) => void;
|
|
350
345
|
getGridId: () => string;
|
|
351
346
|
destroy: () => void;
|
|
352
347
|
isDestroyed: () => boolean;
|
|
353
|
-
getGridOption: <Key extends keyof GridOptions<TData>>(key: Key) => GridOptions<
|
|
354
|
-
setGridOption: <Key extends import("ag-grid-community").ManagedGridOptionKey>(key: Key, value: GridOptions<
|
|
355
|
-
updateGridOptions: <TDataUpdate extends
|
|
348
|
+
getGridOption: <Key extends keyof GridOptions<TData>>(key: Key) => GridOptions<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[Key];
|
|
349
|
+
setGridOption: <Key extends import("ag-grid-community").ManagedGridOptionKey>(key: Key, value: GridOptions<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[Key]) => void;
|
|
350
|
+
updateGridOptions: <TDataUpdate extends import("@scvzerng/ag-grid-core").ProjectionRow<any>>(options: import("ag-grid-community").ManagedGridOptions<TDataUpdate>) => void;
|
|
356
351
|
isModuleRegistered: (moduleName: import("ag-grid-community").AgModuleName) => boolean;
|
|
357
352
|
getState: () => import("ag-grid-community").GridState;
|
|
358
353
|
setState: (state: import("ag-grid-community").GridState, propertiesToIgnore?: import("ag-grid-community").GridStateKey[]) => void;
|
|
359
354
|
setNodesSelected: (params: {
|
|
360
|
-
nodes: import("ag-grid-community").IRowNode<
|
|
355
|
+
nodes: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
361
356
|
newValue: boolean;
|
|
362
357
|
source?: import("ag-grid-community").SelectionEventSourceType;
|
|
363
358
|
}) => void;
|
|
@@ -367,17 +362,17 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
367
362
|
deselectAllFiltered: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
368
363
|
selectAllOnCurrentPage: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
369
364
|
deselectAllOnCurrentPage: (source?: import("ag-grid-community").SelectionEventSourceType) => void;
|
|
370
|
-
getSelectedNodes: () => import("ag-grid-community").IRowNode<
|
|
371
|
-
getSelectedRows: () =>
|
|
372
|
-
redrawRows: (params?: import("ag-grid-community").RedrawRowsParams<
|
|
373
|
-
setRowNodeExpanded: (rowNode: import("ag-grid-community").IRowNode<
|
|
374
|
-
getRowNode: (id: string) => import("ag-grid-community").IRowNode<
|
|
365
|
+
getSelectedNodes: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
366
|
+
getSelectedRows: () => import("@scvzerng/ag-grid-core").ProjectionRow<any>[];
|
|
367
|
+
redrawRows: (params?: import("ag-grid-community").RedrawRowsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
368
|
+
setRowNodeExpanded: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, expanded: boolean, expandParents?: boolean, forceSync?: boolean) => void;
|
|
369
|
+
getRowNode: (id: string) => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
375
370
|
addRenderedRowListener: (eventName: import("ag-grid-community/dist/types/src/interfaces/iCallbackParams").RenderedRowEvent, rowIndex: number, callback: (...args: any[]) => any) => void;
|
|
376
|
-
getRenderedNodes: () => import("ag-grid-community").IRowNode<
|
|
377
|
-
forEachNode: (callback: (rowNode: import("ag-grid-community").IRowNode<
|
|
371
|
+
getRenderedNodes: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
372
|
+
forEachNode: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void, includeFooterNodes?: boolean) => void;
|
|
378
373
|
getFirstDisplayedRowIndex: () => number;
|
|
379
374
|
getLastDisplayedRowIndex: () => number;
|
|
380
|
-
getDisplayedRowAtIndex: (index: number) => import("ag-grid-community").IRowNode<
|
|
375
|
+
getDisplayedRowAtIndex: (index: number) => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
381
376
|
getDisplayedRowCount: () => number;
|
|
382
377
|
getVerticalPixelRange: () => {
|
|
383
378
|
top: number;
|
|
@@ -389,21 +384,21 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
389
384
|
};
|
|
390
385
|
ensureColumnVisible: (key: string | import("ag-grid-community").Column, position?: "auto" | "start" | "middle" | "end") => void;
|
|
391
386
|
ensureIndexVisible: (index: number, position?: "top" | "bottom" | "middle" | null) => void;
|
|
392
|
-
ensureNodeVisible: (nodeSelector:
|
|
387
|
+
ensureNodeVisible: (nodeSelector: import("@scvzerng/ag-grid-core").ProjectionRow<any> | import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | ((row: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => boolean), position?: "top" | "bottom" | "middle" | null) => void;
|
|
393
388
|
getFocusedCell: () => import("ag-grid-community").CellPosition | null;
|
|
394
389
|
clearFocusedCell: () => void;
|
|
395
390
|
setFocusedCell: (rowIndex: number, colKey: string | import("ag-grid-community").Column, rowPinned?: import("ag-grid-community").RowPinnedType) => void;
|
|
396
391
|
setFocusedHeader: (colKey: string | import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup, floatingFilter?: boolean) => void;
|
|
397
392
|
tabToNextCell: (event?: KeyboardEvent) => boolean;
|
|
398
393
|
tabToPreviousCell: (event?: KeyboardEvent) => boolean;
|
|
399
|
-
addEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<
|
|
400
|
-
removeEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<
|
|
401
|
-
addGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<
|
|
402
|
-
removeGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<
|
|
394
|
+
addEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
395
|
+
removeEventListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(eventType: TEventType, listener: import("ag-grid-community").AgEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
396
|
+
addGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
397
|
+
removeGlobalListener: <TEventType extends import("ag-grid-community").AgPublicEventType>(listener: import("ag-grid-community").AgGlobalEventListener<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, TEventType>) => void;
|
|
403
398
|
expireValueCache: () => void;
|
|
404
399
|
getCellValue: {
|
|
405
400
|
<TValue = any>(params: {
|
|
406
|
-
rowNode: import("ag-grid-community").IRowNode<
|
|
401
|
+
rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
407
402
|
colKey: string | import("ag-grid-community").Column<TValue>;
|
|
408
403
|
useFormatter: true;
|
|
409
404
|
}): string | null | undefined;
|
|
@@ -423,7 +418,7 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
423
418
|
getPinnedBottomRow: <TPinnedData = any>(index: number) => import("ag-grid-community").IRowNode<TPinnedData> | undefined;
|
|
424
419
|
forEachPinnedRow: <TPinnedData = any>(floating: NonNullable<import("ag-grid-community").RowPinnedType>, callback: (rowNode: import("ag-grid-community").IRowNode<TPinnedData>) => void) => void;
|
|
425
420
|
setGridAriaProperty: (property: string, value: string | null) => void;
|
|
426
|
-
refreshCells: (params?: import("ag-grid-community").RefreshCellsParams<
|
|
421
|
+
refreshCells: (params?: import("ag-grid-community").RefreshCellsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
427
422
|
refreshHeader: () => void;
|
|
428
423
|
isAnimationFrameQueueEmpty: () => boolean;
|
|
429
424
|
flushAllAnimationFrames: () => void;
|
|
@@ -431,13 +426,13 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
431
426
|
rowHeight: number;
|
|
432
427
|
headerHeight: number;
|
|
433
428
|
};
|
|
434
|
-
getCellRendererInstances: (params?: import("ag-grid-community").GetCellRendererInstancesParams<
|
|
435
|
-
flashCells: (params?: import("ag-grid-community").FlashCellsParams<
|
|
429
|
+
getCellRendererInstances: (params?: import("ag-grid-community").GetCellRendererInstancesParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellRenderer<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[];
|
|
430
|
+
flashCells: (params?: import("ag-grid-community").FlashCellsParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => void;
|
|
436
431
|
addRowDropZone: (params: import("ag-grid-community").RowDropZoneParams) => void;
|
|
437
432
|
removeRowDropZone: (params: import("ag-grid-community").RowDropZoneParams) => void;
|
|
438
433
|
getRowDropZoneParams: (events?: import("ag-grid-community").RowDropZoneEvents) => import("ag-grid-community").RowDropZoneParams | undefined;
|
|
439
|
-
getRowDropPositionIndicator: () => import("ag-grid-community").RowDropPositionIndicator<
|
|
440
|
-
setRowDropPositionIndicator: (highlight: import("ag-grid-community").SetRowDropPositionIndicatorParams<
|
|
434
|
+
getRowDropPositionIndicator: () => import("ag-grid-community").RowDropPositionIndicator<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
435
|
+
setRowDropPositionIndicator: (highlight: import("ag-grid-community").SetRowDropPositionIndicatorParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | null | undefined) => void;
|
|
441
436
|
sizeColumnsToFit: (paramsOrGridWidth?: import("ag-grid-community").ISizeColumnsToFitParams | number) => void;
|
|
442
437
|
autoSizeColumns: {
|
|
443
438
|
(keys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[], skipHeader?: boolean): void;
|
|
@@ -454,10 +449,10 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
454
449
|
moveColumnByIndex: (fromIndex: number, toIndex: number) => void;
|
|
455
450
|
moveColumns: (columnsToMoveKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[], toIndex: number) => void;
|
|
456
451
|
isColumnHovered: (column: import("ag-grid-community").Column) => boolean;
|
|
457
|
-
getColumnDefs: () => (import("ag-grid-community").ColDef<
|
|
458
|
-
getColumnDef: <TValue = any>(key: string | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").ColDef<
|
|
452
|
+
getColumnDefs: () => (import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any> | import("ag-grid-community").ColGroupDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>>)[] | undefined;
|
|
453
|
+
getColumnDef: <TValue = any>(key: string | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | null;
|
|
459
454
|
getDisplayNameForColumn: (column: import("ag-grid-community").Column, location: import("ag-grid-community").HeaderLocation) => string;
|
|
460
|
-
getColumn: <TValue = any>(key: string | import("ag-grid-community").ColDef<
|
|
455
|
+
getColumn: <TValue = any>(key: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
461
456
|
getColumns: () => import("ag-grid-community").Column[] | null;
|
|
462
457
|
applyColumnState: (params: import("ag-grid-community").ApplyColumnStateParams) => boolean;
|
|
463
458
|
getColumnState: () => import("ag-grid-community").ColumnState[];
|
|
@@ -492,7 +487,7 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
492
487
|
getCenterDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[];
|
|
493
488
|
getRightDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[];
|
|
494
489
|
getAllDisplayedColumnGroups: () => (import("ag-grid-community").Column | import("ag-grid-community").ColumnGroup)[] | null;
|
|
495
|
-
getCellEditorInstances: (params?: import("ag-grid-community").GetCellEditorInstancesParams<
|
|
490
|
+
getCellEditorInstances: (params?: import("ag-grid-community").GetCellEditorInstancesParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined) => import("ag-grid-community").ICellEditor[];
|
|
496
491
|
getEditingCells: () => import("ag-grid-community").EditingCellPosition[];
|
|
497
492
|
stopEditing: (cancel?: boolean) => void;
|
|
498
493
|
startEditingCell: (params: import("ag-grid-community").StartEditingCellParams) => void;
|
|
@@ -523,9 +518,9 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
523
518
|
findGetTotalMatches: () => number;
|
|
524
519
|
findGoTo: (match: number, force?: boolean) => void;
|
|
525
520
|
findClearActive: () => void;
|
|
526
|
-
findGetActiveMatch: () => import("ag-grid-community").FindMatch<
|
|
527
|
-
findGetNumMatches: (params: import("ag-grid-community").FindCellParams<
|
|
528
|
-
findGetParts: (params: import("ag-grid-community").FindCellValueParams<
|
|
521
|
+
findGetActiveMatch: () => import("ag-grid-community").FindMatch<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any> | undefined;
|
|
522
|
+
findGetNumMatches: (params: import("ag-grid-community").FindCellParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>) => number;
|
|
523
|
+
findGetParts: (params: import("ag-grid-community").FindCellValueParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>) => import("ag-grid-community").FindPart[];
|
|
529
524
|
findRefresh: () => void;
|
|
530
525
|
paginationIsLastPageFound: () => boolean;
|
|
531
526
|
paginationGetPageSize: () => number;
|
|
@@ -545,14 +540,14 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
545
540
|
isLastRowIndexKnown: () => boolean | undefined;
|
|
546
541
|
onGroupExpandedOrCollapsed: () => void;
|
|
547
542
|
refreshClientSideRowModel: (step?: import("ag-grid-community").ClientSideRowModelStep) => void;
|
|
548
|
-
forEachLeafNode: (callback: (rowNode: import("ag-grid-community").IRowNode<
|
|
549
|
-
forEachNodeAfterFilter: (callback: (rowNode: import("ag-grid-community").IRowNode<
|
|
550
|
-
forEachNodeAfterFilterAndSort: (callback: (rowNode: import("ag-grid-community").IRowNode<
|
|
543
|
+
forEachLeafNode: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) => void;
|
|
544
|
+
forEachNodeAfterFilter: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void) => void;
|
|
545
|
+
forEachNodeAfterFilterAndSort: (callback: (rowNode: import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, index: number) => void) => void;
|
|
551
546
|
resetRowHeights: () => void;
|
|
552
|
-
applyTransaction: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<
|
|
553
|
-
applyTransactionAsync: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<
|
|
547
|
+
applyTransaction: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => import("ag-grid-community").RowNodeTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | null | undefined;
|
|
548
|
+
applyTransactionAsync: (rowDataTransaction: import("ag-grid-community").RowDataTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>, callback?: ((res: import("ag-grid-community").RowNodeTransaction<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) | undefined) => void;
|
|
554
549
|
flushAsyncTransactions: () => void;
|
|
555
|
-
getBestCostNodeSelection: () => import("ag-grid-community").IRowNode<
|
|
550
|
+
getBestCostNodeSelection: () => import("ag-grid-community").IRowNode<import("@scvzerng/ag-grid-core").ProjectionRow<any>>[] | undefined;
|
|
556
551
|
isRowDataEmpty: () => boolean;
|
|
557
552
|
isSideBarVisible: () => boolean;
|
|
558
553
|
setSideBarVisible: (show: boolean) => void;
|
|
@@ -565,11 +560,11 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
565
560
|
getToolPanelInstance: {
|
|
566
561
|
(id: "columns"): import("ag-grid-community").IColumnToolPanel | undefined;
|
|
567
562
|
(id: "filters"): import("ag-grid-community").IFiltersToolPanel | undefined;
|
|
568
|
-
<TToolPanel = import("ag-grid-community").IToolPanel<
|
|
569
|
-
<TToolPanel = import("ag-grid-community").IToolPanel<
|
|
563
|
+
<TToolPanel = import("ag-grid-community").IToolPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
564
|
+
<TToolPanel = import("ag-grid-community").IToolPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>>(id: string): TToolPanel | undefined;
|
|
570
565
|
};
|
|
571
566
|
getSideBar: () => import("ag-grid-community").SideBarDef | undefined;
|
|
572
|
-
getStatusPanel: <TStatusPanel = import("ag-grid-community").IStatusPanel<
|
|
567
|
+
getStatusPanel: <TStatusPanel = import("ag-grid-community").IStatusPanel<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any>>(key: string) => TStatusPanel | undefined;
|
|
573
568
|
refreshInfiniteCache: () => void;
|
|
574
569
|
purgeInfiniteCache: () => void;
|
|
575
570
|
getInfiniteRowCount: () => number | undefined;
|
|
@@ -581,12 +576,12 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
581
576
|
addRowGroupColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
582
577
|
getRowGroupColumns: () => import("ag-grid-community").Column[];
|
|
583
578
|
addAggFuncs: (aggFuncs: {
|
|
584
|
-
[key: string]: import("ag-grid-community").IAggFunc<
|
|
579
|
+
[key: string]: import("ag-grid-community").IAggFunc<import("@scvzerng/ag-grid-core").ProjectionRow<any>, any, any>;
|
|
585
580
|
}) => void;
|
|
586
581
|
clearAggFuncs: () => void;
|
|
587
|
-
setColumnAggFunc: <TValue = any>(key: string | import("ag-grid-community").ColDef<
|
|
582
|
+
setColumnAggFunc: <TValue = any>(key: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>, aggFunc: string | import("ag-grid-community").IAggFunc<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue, any> | null | undefined) => void;
|
|
588
583
|
isPivotMode: () => boolean;
|
|
589
|
-
getPivotResultColumn: <TValue = any>(pivotKeys: string[], valueColKey: string | import("ag-grid-community").ColDef<
|
|
584
|
+
getPivotResultColumn: <TValue = any>(pivotKeys: string[], valueColKey: string | import("ag-grid-community").ColDef<import("@scvzerng/ag-grid-core").ProjectionRow<any>, TValue> | import("ag-grid-community").Column<TValue>) => import("ag-grid-community").Column<TValue> | null;
|
|
590
585
|
setValueColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
591
586
|
getValueColumns: () => import("ag-grid-community").Column[];
|
|
592
587
|
removeValueColumns: (colKeys: (string | import("ag-grid-community").ColDef | import("ag-grid-community").Column)[]) => void;
|
|
@@ -603,10 +598,10 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
603
598
|
clearCellSelection: () => void;
|
|
604
599
|
getServerSideSelectionState: () => import("ag-grid-community").IServerSideSelectionState | import("ag-grid-community").IServerSideGroupSelectionState | null;
|
|
605
600
|
setServerSideSelectionState: (state: import("ag-grid-community").IServerSideSelectionState | import("ag-grid-community").IServerSideGroupSelectionState) => void;
|
|
606
|
-
applyServerSideTransaction: (transaction: import("ag-grid-community").ServerSideTransaction) => import("ag-grid-community").ServerSideTransactionResult<
|
|
607
|
-
applyServerSideTransactionAsync: (transaction: import("ag-grid-community").ServerSideTransaction, callback?: ((res: import("ag-grid-community").ServerSideTransactionResult<
|
|
601
|
+
applyServerSideTransaction: (transaction: import("ag-grid-community").ServerSideTransaction) => import("ag-grid-community").ServerSideTransactionResult<import("@scvzerng/ag-grid-core").ProjectionRow<any>> | undefined;
|
|
602
|
+
applyServerSideTransactionAsync: (transaction: import("ag-grid-community").ServerSideTransaction, callback?: ((res: import("ag-grid-community").ServerSideTransactionResult<import("@scvzerng/ag-grid-core").ProjectionRow<any>>) => void) | undefined) => void;
|
|
608
603
|
applyServerSideRowData: (params: {
|
|
609
|
-
successParams: import("ag-grid-community").LoadSuccessParams<
|
|
604
|
+
successParams: import("ag-grid-community").LoadSuccessParams<import("@scvzerng/ag-grid-core").ProjectionRow<any>>;
|
|
610
605
|
route?: string[];
|
|
611
606
|
startRow?: number;
|
|
612
607
|
}) => void;
|
|
@@ -652,21 +647,66 @@ export declare const useGrid: <T = any>(props: GridProps) => {
|
|
|
652
647
|
cancelBatchEdit: () => void;
|
|
653
648
|
isBatchEditing: () => boolean;
|
|
654
649
|
};
|
|
650
|
+
destroy: () => void;
|
|
651
|
+
loadData: () => void;
|
|
652
|
+
getRows: (params: import("ag-grid-community").IGetRowsParams & {
|
|
653
|
+
pageNum: number;
|
|
654
|
+
pageSize: number;
|
|
655
|
+
}) => void;
|
|
656
|
+
}>;
|
|
657
|
+
gridStyles: import("vue").Ref<{
|
|
658
|
+
height: string;
|
|
659
|
+
width: string;
|
|
660
|
+
}, {
|
|
661
|
+
height: string;
|
|
662
|
+
width: string;
|
|
663
|
+
} | {
|
|
664
|
+
height: string;
|
|
665
|
+
width: string;
|
|
666
|
+
}>;
|
|
667
|
+
dataCache: import("vue").Ref<{
|
|
668
|
+
pageNum: number;
|
|
669
|
+
pageSize: number;
|
|
670
|
+
isFinished: boolean;
|
|
671
|
+
bridge?: {
|
|
672
|
+
reload: () => void;
|
|
673
|
+
redraw: (row: GridRow<any>) => void;
|
|
674
|
+
redrawCell: (row: GridRow<any>, rowId: string, column: import("ag-grid-community").Column) => void;
|
|
675
|
+
getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
|
|
676
|
+
} | undefined;
|
|
677
|
+
createRow: (data: T) => ActualRow<T>;
|
|
678
|
+
setRows: (rows: (ActualRow<T> | EditableRow<T>)[]) => import("@scvzerng/ag-grid-core").GridDataCache<T>;
|
|
679
|
+
replace: (row: ActualRow<T> | EditableRow<T> | import("@scvzerng/ag-grid-core").CellEditableRow<T>) => void;
|
|
680
|
+
remove: (row: (ActualRow<T> | EditableRow<T>)[]) => void;
|
|
681
|
+
getRows: () => (ActualRow<T> | EditableRow<T> | import("@scvzerng/ag-grid-core").CellEditableRow<T>)[];
|
|
682
|
+
appendRows: (rows: ActualRow<T>[]) => void;
|
|
683
|
+
insertRows: (rows: (ActualRow<T> | EditableRow<T>)[], index?: number) => void;
|
|
684
|
+
deleteRows: (rows: string[] | GridRow<T>[]) => void;
|
|
685
|
+
}, import("@scvzerng/ag-grid-core").GridDataCache<T> | {
|
|
686
|
+
pageNum: number;
|
|
687
|
+
pageSize: number;
|
|
688
|
+
isFinished: boolean;
|
|
689
|
+
bridge?: {
|
|
690
|
+
reload: () => void;
|
|
691
|
+
redraw: (row: GridRow<any>) => void;
|
|
692
|
+
redrawCell: (row: GridRow<any>, rowId: string, column: import("ag-grid-community").Column) => void;
|
|
693
|
+
getColumns: () => import("@scvzerng/ag-grid-core").SpanColumn[];
|
|
694
|
+
} | undefined;
|
|
655
695
|
createRow: (data: T) => ActualRow<T>;
|
|
656
|
-
setRows: (rows: (ActualRow<T> | EditableRow<T>)[]) => GridDataCache<T>;
|
|
657
|
-
replace: (row: ActualRow<T> | EditableRow<T>) => void;
|
|
696
|
+
setRows: (rows: (ActualRow<T> | EditableRow<T>)[]) => import("@scvzerng/ag-grid-core").GridDataCache<T>;
|
|
697
|
+
replace: (row: ActualRow<T> | EditableRow<T> | import("@scvzerng/ag-grid-core").CellEditableRow<T>) => void;
|
|
658
698
|
remove: (row: (ActualRow<T> | EditableRow<T>)[]) => void;
|
|
659
|
-
getRows: () => (ActualRow<T> | EditableRow<T>)[];
|
|
699
|
+
getRows: () => (ActualRow<T> | EditableRow<T> | import("@scvzerng/ag-grid-core").CellEditableRow<T>)[];
|
|
660
700
|
appendRows: (rows: ActualRow<T>[]) => void;
|
|
661
701
|
insertRows: (rows: (ActualRow<T> | EditableRow<T>)[], index?: number) => void;
|
|
662
702
|
deleteRows: (rows: string[] | GridRow<T>[]) => void;
|
|
663
703
|
}>;
|
|
664
|
-
gridApi: import("vue").Ref<GridApi<GridRow<T>> | undefined>;
|
|
665
|
-
gridElRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
704
|
+
gridApi: import("vue").Ref<import("ag-grid-community").GridApi<GridRow<T>> | undefined, import("ag-grid-community").GridApi<GridRow<T>> | undefined>;
|
|
705
|
+
gridElRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
666
706
|
resetGridState: () => void;
|
|
667
707
|
reload: () => void;
|
|
668
708
|
insertRows: (rows: (ActualRow<T> | EditableRow<T>)[], index?: number) => Promise<void>;
|
|
669
709
|
existRow: (row: GridRow<T>) => boolean;
|
|
670
|
-
getRows: <T_1>() => (ActualRow<T_1> | EditableRow<T_1>)[];
|
|
710
|
+
getRows: <T_1>() => (ActualRow<T_1> | EditableRow<T_1> | import("@scvzerng/ag-grid-core").CellEditableRow<T_1>)[];
|
|
671
711
|
refresh: () => Promise<void>;
|
|
672
712
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const defaultColDefCellClassRules: CellClassRules;
|
|
5
|
-
export declare const mergeRowClass: (cellClass: CellClassRules, rowClassRules?: RowClassRules) => {
|
|
6
|
-
[x: string]: string | ((params: import("ag-grid-community").RowClassParams<any, any>) => boolean) | ((params: import("ag-grid-community").CellClassParams<any, any, any>) => boolean);
|
|
7
|
-
};
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { GridOptions } from 'ag-grid-community';
|
|
3
|
+
import { type ProxyCtx } from '@scvzerng/ag-grid-core';
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* Vue2 适配: buildProxyOptions 的薄壳
|
|
6
|
+
* - 注入 element-ui 的 Message.error 作为错误回调
|
|
7
|
+
* - 把 props 拆成 ctx 字段
|
|
12
8
|
*/
|
|
13
|
-
export declare const useProxy: (options: GridOptions, gridElRef: Ref<HTMLElement | undefined
|
|
9
|
+
export declare const useProxy: (options: GridOptions, gridElRef: Ref<HTMLElement | undefined>, props: {
|
|
10
|
+
editable?: "cell" | "row";
|
|
11
|
+
onRowChange?: ProxyCtx["onRowChange"];
|
|
12
|
+
}) => GridOptions;
|