@scvzerng/element-ui-ag-grid-vue2 0.0.20 → 0.0.22
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 +8771 -9179
- 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/renders.d.ts +1 -1
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridOptions } from 'ag-grid-community';
|
|
2
|
-
import { RestrictedAgGridOptions } from '
|
|
2
|
+
import type { RestrictedAgGridOptions } from '@scvzerng/ag-grid-core';
|
|
3
3
|
export type AgGridMenuOptions = Pick<GridOptions, 'onCellContextMenu' | 'suppressContextMenu' | 'getContextMenuItems' | 'onColumnHeaderContextMenu' | 'onContextMenuVisibleChanged' | 'preventDefaultOnContextMenu' | 'allowContextMenuWithControlKey'>;
|
|
4
4
|
/**
|
|
5
5
|
* 适配器函数,用于将GridOptions转换为AgGridMenuOptions
|
|
@@ -4,7 +4,7 @@ import type { Ref } from 'vue';
|
|
|
4
4
|
import type { GridApi, GridOptions, IRowNode } from 'ag-grid-community';
|
|
5
5
|
type __VLS_Props = Props<any>;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
7
|
-
gridOptions: any;
|
|
7
|
+
gridOptions: () => any;
|
|
8
8
|
modules: () => any;
|
|
9
9
|
statusBar: undefined;
|
|
10
10
|
sideBar: undefined;
|
|
@@ -437,7 +437,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
437
437
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
438
438
|
"update:modelValue": (...args: any[]) => void;
|
|
439
439
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
440
|
-
gridOptions: any;
|
|
440
|
+
gridOptions: () => any;
|
|
441
441
|
modules: () => any;
|
|
442
442
|
statusBar: undefined;
|
|
443
443
|
sideBar: undefined;
|
|
@@ -866,11 +866,23 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
866
866
|
'onBatch-editing-started': undefined;
|
|
867
867
|
'onBatch-editing-stopped': undefined;
|
|
868
868
|
}>>>, {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
869
|
+
components: {
|
|
870
|
+
[p: string]: any;
|
|
871
|
+
};
|
|
872
|
+
icons: {
|
|
873
|
+
[key: string]: string | ((...args: any[]) => any);
|
|
874
|
+
};
|
|
875
|
+
singleClickEdit: boolean;
|
|
876
|
+
loadingCellRenderer: any;
|
|
877
|
+
loadingCellRendererParams: any;
|
|
878
|
+
loadingCellRendererSelector: import("ag-grid-community").LoadingCellRendererSelectorFunc<any, any, any>;
|
|
879
|
+
rowDragText: (params: import("ag-grid-community").IRowDragItem, dragItemCount: number) => string;
|
|
880
|
+
sortingOrder: import("ag-grid-community").SortDirection[];
|
|
881
|
+
unSortIcon: boolean;
|
|
882
|
+
suppressAutoSize: boolean;
|
|
883
|
+
context: any;
|
|
884
|
+
gridOptions: GridOptions<any>;
|
|
885
|
+
modules: import("ag-grid-community").Module[];
|
|
874
886
|
statusBar: {
|
|
875
887
|
statusPanels: import("ag-grid-community").StatusPanelDef[];
|
|
876
888
|
};
|
|
@@ -924,18 +936,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
924
936
|
suppressMakeColumnVisibleAfterUnGroup: boolean;
|
|
925
937
|
suppressRowGroupHidesColumns: boolean;
|
|
926
938
|
colResizeDefault: "shift";
|
|
927
|
-
suppressAutoSize: boolean;
|
|
928
939
|
autoSizePadding: number;
|
|
929
940
|
skipHeaderOnAutoSize: boolean;
|
|
930
941
|
autoSizeStrategy: any | undefined;
|
|
931
|
-
components: {
|
|
932
|
-
[p: string]: any;
|
|
933
|
-
};
|
|
934
942
|
editType: import("ag-grid-community").EditStrategyType;
|
|
935
943
|
suppressStartEditOnTab: boolean;
|
|
936
944
|
getFullRowEditValidationErrors: import("ag-grid-community").GetFullRowEditValidationErrors;
|
|
937
945
|
invalidEditValueMode: import("ag-grid-community").EditValidationCommitType;
|
|
938
|
-
singleClickEdit: boolean;
|
|
939
946
|
suppressClickEdit: boolean;
|
|
940
947
|
readOnlyEdit: boolean;
|
|
941
948
|
stopEditingWhenCellsLoseFocus: boolean;
|
|
@@ -970,9 +977,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
970
977
|
filterHandlers: {
|
|
971
978
|
[key: string]: import("ag-grid-community").CreateFilterHandlerFunc<any, any, any, any, any>;
|
|
972
979
|
};
|
|
973
|
-
loadingCellRenderer: any;
|
|
974
|
-
loadingCellRendererParams: any;
|
|
975
|
-
loadingCellRendererSelector: import("ag-grid-community").LoadingCellRendererSelectorFunc<any, any, any>;
|
|
976
980
|
localeText: {
|
|
977
981
|
[key: string]: string;
|
|
978
982
|
};
|
|
@@ -983,7 +987,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
983
987
|
detailCellRendererParams: any;
|
|
984
988
|
detailRowHeight: number;
|
|
985
989
|
detailRowAutoHeight: boolean;
|
|
986
|
-
context: any;
|
|
987
990
|
alignedGrids: import("ag-grid-community").AlignedGrid[] | (() => import("ag-grid-community").AlignedGrid[]);
|
|
988
991
|
tabIndex: number;
|
|
989
992
|
rowBuffer: number;
|
|
@@ -1045,7 +1048,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1045
1048
|
suppressMoveWhenRowDragging: boolean;
|
|
1046
1049
|
rowDragEntireRow: boolean;
|
|
1047
1050
|
rowDragMultiRow: boolean;
|
|
1048
|
-
rowDragText: (params: import("ag-grid-community").IRowDragItem, dragItemCount: number) => string;
|
|
1049
1051
|
dragAndDropImageComponent: any;
|
|
1050
1052
|
dragAndDropImageComponentParams: any;
|
|
1051
1053
|
fullWidthCellRenderer: any;
|
|
@@ -1077,6 +1079,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1077
1079
|
treeDataParentIdField: string;
|
|
1078
1080
|
rowGroupPanelSuppressSort: boolean;
|
|
1079
1081
|
suppressGroupRowsSticky: boolean;
|
|
1082
|
+
groupHierarchyConfig: {
|
|
1083
|
+
[k: string]: import("ag-grid-community").ColDef<any, any>;
|
|
1084
|
+
};
|
|
1080
1085
|
pinnedTopRowData: any[];
|
|
1081
1086
|
pinnedBottomRowData: any[];
|
|
1082
1087
|
enableRowPinning: boolean | "top" | "bottom";
|
|
@@ -1130,17 +1135,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1130
1135
|
enableFillHandle: boolean;
|
|
1131
1136
|
fillHandleDirection: "x" | "y" | "xy";
|
|
1132
1137
|
suppressClearOnFillReduction: boolean;
|
|
1133
|
-
sortingOrder: import("ag-grid-community").SortDirection[];
|
|
1134
1138
|
accentedSort: boolean;
|
|
1135
|
-
unSortIcon: boolean;
|
|
1136
1139
|
suppressMultiSort: boolean;
|
|
1137
1140
|
alwaysMultiSort: boolean;
|
|
1138
1141
|
multiSortKey: "ctrl";
|
|
1139
1142
|
suppressMaintainUnsortedOrder: boolean;
|
|
1140
|
-
icons: {
|
|
1141
|
-
[key: string]: string | ((...args: any[]) => any);
|
|
1142
|
-
};
|
|
1143
1143
|
rowHeight: number;
|
|
1144
|
+
rowStyle: import("ag-grid-community").RowStyle;
|
|
1145
|
+
rowClass: string | string[];
|
|
1146
|
+
rowClassRules: import("ag-grid-community").RowClassRules<any, any>;
|
|
1144
1147
|
suppressRowHoverHighlight: boolean;
|
|
1145
1148
|
suppressRowTransform: boolean;
|
|
1146
1149
|
columnHoverHighlight: boolean;
|
|
@@ -1178,6 +1181,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1178
1181
|
paginationNumberFormatter: (params: import("ag-grid-community").PaginationNumberFormatterParams<any, any>) => string;
|
|
1179
1182
|
getGroupRowAgg: (params: import("ag-grid-community").GetGroupRowAggParams<any, any>) => any;
|
|
1180
1183
|
isGroupOpenByDefault: (params: import("ag-grid-community").IsGroupOpenByDefaultParams<any, any>) => boolean;
|
|
1184
|
+
ssrmExpandAllAffectsAllRows: boolean;
|
|
1181
1185
|
initialGroupOrderComparator: (params: import("ag-grid-community").InitialGroupOrderComparatorParams<any, any>) => number;
|
|
1182
1186
|
processPivotResultColDef: (colDef: import("ag-grid-community").ColDef<any, any>) => void;
|
|
1183
1187
|
processPivotResultColGroupDef: (colGroupDef: import("ag-grid-community").ColGroupDef<any>) => void;
|
|
@@ -1196,15 +1200,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1196
1200
|
isRowMaster: import("ag-grid-community").IsRowMaster<any>;
|
|
1197
1201
|
fillOperation: (params: import("ag-grid-community").FillOperationParams<any, any>) => any;
|
|
1198
1202
|
postSortRows: (params: import("ag-grid-community").PostSortRowsParams<any, any>) => void;
|
|
1203
|
+
getRowStyle: (params: import("ag-grid-community").RowClassParams<any, any>) => import("ag-grid-community").RowStyle | undefined;
|
|
1204
|
+
getRowClass: (params: import("ag-grid-community").RowClassParams<any, any>) => string | string[] | undefined;
|
|
1199
1205
|
getRowHeight: (params: import("ag-grid-community").RowHeightParams<any, any>) => number | undefined | null;
|
|
1200
1206
|
isFullWidthRow: (params: import("ag-grid-community").IsFullWidthRowParams<any, any>) => boolean;
|
|
1201
1207
|
isRowValidDropPosition: import("ag-grid-community").IsRowValidDropPositionCallback<any>;
|
|
1202
|
-
gridOptions: GridOptions<any>;
|
|
1203
|
-
modules: import("ag-grid-community").Module[];
|
|
1204
|
-
groupHierarchyConfig: {
|
|
1205
|
-
[k: string]: import("ag-grid-community").ColDef<any, any>;
|
|
1206
|
-
};
|
|
1207
|
-
ssrmExpandAllAffectsAllRows: boolean;
|
|
1208
1208
|
'onTool-panel-visible-changed': ToolPanelVisibleChangedEvent<any, any>;
|
|
1209
1209
|
'onTool-panel-size-changed': ToolPanelSizeChangedEvent<any, any>;
|
|
1210
1210
|
'onColumn-menu-visible-changed': ColumnMenuVisibleChangedEvent<any, any>;
|
|
@@ -1264,7 +1264,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
1264
1264
|
'onChart-range-selection-changed': ChartRangeSelectionChangedEvent<any, any>;
|
|
1265
1265
|
'onChart-options-changed': ChartOptionsChangedEvent<any, any>;
|
|
1266
1266
|
'onChart-destroyed': ChartDestroyedEvent<any, any>;
|
|
1267
|
-
'onCell-key-down':
|
|
1267
|
+
'onCell-key-down': CellKeyDownEvent<any, any, any> | FullWidthCellKeyDownEvent<any, any>;
|
|
1268
1268
|
'onGrid-ready': GridReadyEvent<any, any>;
|
|
1269
1269
|
'onGrid-pre-destroyed': GridPreDestroyedEvent<any, any>;
|
|
1270
1270
|
'onFirst-data-rendered': FirstDataRenderedEvent<any, any>;
|
|
@@ -1672,7 +1672,7 @@ export interface Props<TData> {
|
|
|
1672
1672
|
'onSort-changed'?: SortChangedEvent<TData>;
|
|
1673
1673
|
}
|
|
1674
1674
|
export declare function getProps(): {
|
|
1675
|
-
gridOptions: any;
|
|
1675
|
+
gridOptions: () => any;
|
|
1676
1676
|
modules: () => any;
|
|
1677
1677
|
statusBar: undefined;
|
|
1678
1678
|
sideBar: undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { PluginObject } from 'vue';
|
|
2
2
|
import type { ColDef, ColGroupDef, ICellRendererParams } from 'ag-grid-community';
|
|
3
|
-
import type { RestrictedAgGridOptions } from '
|
|
3
|
+
import type { RestrictedAgGridOptions } from '@scvzerng/ag-grid-core';
|
|
4
4
|
import 'ag-grid-community/styles/ag-grid.css';
|
|
5
5
|
import 'ag-grid-community/styles/ag-theme-alpine.css';
|
|
6
6
|
import "@scvzerng/vue2-context-menu/lib/vue2-context-menu.css";
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
7
|
+
export * from '@scvzerng/ag-grid-core';
|
|
8
|
+
export * from '@scvzerng/ag-grid-core';
|
|
9
|
+
export * from '@scvzerng/ag-grid-core';
|
|
10
10
|
export { default as Grid } from './Grid.vue';
|
|
11
11
|
export * from './renders';
|
|
12
12
|
export * from "./helper/vModel";
|
|
13
13
|
export * from "./search";
|
|
14
|
-
export * from
|
|
14
|
+
export * from '@scvzerng/ag-grid-core';
|
|
15
15
|
export type Options<TData = any> = RestrictedAgGridOptions<TData>;
|
|
16
16
|
export type Column<T = any> = ColDef<T> | ColGroupDef<T>;
|
|
17
17
|
export type ContextMenuItem<TData> = {
|
package/dist/types/renders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColDef, ColGroupDef, type ICellRendererParams, type IHeaderParams } from 'ag-grid-community';
|
|
2
2
|
import type { VNode } from 'vue';
|
|
3
|
-
import { GridRow } from '
|
|
3
|
+
import { GridRow } from '@scvzerng/ag-grid-core';
|
|
4
4
|
export declare const withRender: (column: ColDef) => CellRenderAdapter;
|
|
5
5
|
type CellRender<ROW = any, VALUE = any> = (params: ICellRendererParams<ROW, VALUE>) => VNode | VNode[] | undefined | string;
|
|
6
6
|
type EditCellRender<HOST_OBJECT = any> = (params: ICellRendererParams<HOST_OBJECT> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnPinnedType } from 'ag-grid-community';
|
|
2
2
|
import type { Tree } from 'element-ui';
|
|
3
3
|
export declare const useColumnsSetting: () => {
|
|
4
|
-
treeData: import("vue").Ref<any[]
|
|
4
|
+
treeData: import("vue").Ref<any[]>;
|
|
5
5
|
defaultCheckedKeys: import("vue").Ref<(string | number)[]>;
|
|
6
6
|
treeRef: import("vue").Ref<Tree<unknown, unknown> | undefined>;
|
|
7
7
|
refreshTreeData: () => void;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import { GridApi, type GridOptions } from 'ag-grid-community';
|
|
3
1
|
import type { GridProps } from './use-grid';
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Vue2 适配: useFooter 薄壳, 委托给 core
|
|
4
|
+
*/
|
|
5
|
+
export declare const useFooter: (props: GridProps, gridRef: any, gridStyles: any) => {
|
|
5
6
|
setFooterData: (data: any[]) => void;
|
|
6
|
-
footerGridApi: Ref<GridApi<any> | undefined>;
|
|
7
|
-
footerData: Ref<any[]>;
|
|
7
|
+
footerGridApi: import("vue").Ref<import("ag-grid-community").GridApi<any> | undefined, import("ag-grid-community").GridApi<any> | undefined>;
|
|
8
|
+
footerData: import("vue").Ref<any[], any[]>;
|
|
8
9
|
footerStyles: import("vue").ComputedRef<{
|
|
9
10
|
height: string;
|
|
10
11
|
} | {
|
|
11
12
|
height?: undefined;
|
|
12
13
|
}>;
|
|
13
|
-
footerGridOptions: import("vue").ComputedRef<GridOptions<any>>;
|
|
14
|
+
footerGridOptions: import("vue").ComputedRef<import("ag-grid-community").GridOptions<any>>;
|
|
14
15
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import { GridApi } from 'ag-grid-community';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const useGridStateAdapter: (id: string | undefined, gridApi: Ref<GridApi | undefined>, width: Ref<number | undefined>) => {
|
|
4
4
|
storeGridState: import("lodash-unified").DebouncedFunc<() => void>;
|
|
5
5
|
restoreGridState: () => Promise<void>;
|
|
6
6
|
resetGridState: () => void;
|
|
7
7
|
initGridState: () => void;
|
|
8
|
-
isStateInitialized: Ref<boolean>;
|
|
8
|
+
isStateInitialized: import("vue").Ref<boolean, boolean>;
|
|
9
9
|
};
|