1
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ __pycache__/
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
#dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"name": "ag-grid-community",
|
||||
"version": "34.1.2",
|
||||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
|
||||
"main": "./dist/package/main.cjs.js",
|
||||
"types": "./dist/types/src/main.d.ts",
|
||||
"module": "./dist/package/main.esm.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/package/main.esm.mjs",
|
||||
"types": "./dist/types/src/main.d.ts",
|
||||
"require": "./dist/package/main.cjs.js",
|
||||
"default": "./dist/package/main.cjs.js"
|
||||
},
|
||||
"./styles/ag-grid-no-native-widgets.css": "./styles/ag-grid-no-native-widgets.css",
|
||||
"./styles/ag-grid-no-native-widgets.min.css": "./styles/ag-grid-no-native-widgets.min.css",
|
||||
"./styles/ag-grid.css": "./styles/ag-grid.css",
|
||||
"./styles/ag-grid.min.css": "./styles/ag-grid.min.css",
|
||||
"./styles/ag-theme-alpine-no-font.css": "./styles/ag-theme-alpine-no-font.css",
|
||||
"./styles/ag-theme-alpine-no-font.min.css": "./styles/ag-theme-alpine-no-font.min.css",
|
||||
"./styles/ag-theme-alpine.css": "./styles/ag-theme-alpine.css",
|
||||
"./styles/ag-theme-alpine.min.css": "./styles/ag-theme-alpine.min.css",
|
||||
"./styles/ag-theme-balham-no-font.css": "./styles/ag-theme-balham-no-font.css",
|
||||
"./styles/ag-theme-balham-no-font.min.css": "./styles/ag-theme-balham-no-font.min.css",
|
||||
"./styles/ag-theme-balham.css": "./styles/ag-theme-balham.css",
|
||||
"./styles/ag-theme-balham.min.css": "./styles/ag-theme-balham.min.css",
|
||||
"./styles/ag-theme-material-no-font.css": "./styles/ag-theme-material-no-font.css",
|
||||
"./styles/ag-theme-material-no-font.min.css": "./styles/ag-theme-material-no-font.min.css",
|
||||
"./styles/ag-theme-material.css": "./styles/ag-theme-material.css",
|
||||
"./styles/ag-theme-material.min.css": "./styles/ag-theme-material.min.css",
|
||||
"./styles/ag-theme-quartz-no-font.css": "./styles/ag-theme-quartz-no-font.css",
|
||||
"./styles/ag-theme-quartz-no-font.min.css": "./styles/ag-theme-quartz-no-font.min.css",
|
||||
"./styles/ag-theme-quartz.css": "./styles/ag-theme-quartz.css",
|
||||
"./styles/ag-theme-quartz.min.css": "./styles/ag-theme-quartz.min.css",
|
||||
"./styles/agGridAlpineFont.css": "./styles/agGridAlpineFont.css",
|
||||
"./styles/agGridAlpineFont.min.css": "./styles/agGridAlpineFont.min.css",
|
||||
"./styles/agGridBalhamFont.css": "./styles/agGridBalhamFont.css",
|
||||
"./styles/agGridBalhamFont.min.css": "./styles/agGridBalhamFont.min.css",
|
||||
"./styles/agGridClassicFont.css": "./styles/agGridClassicFont.css",
|
||||
"./styles/agGridClassicFont.min.css": "./styles/agGridClassicFont.min.css",
|
||||
"./styles/agGridMaterialFont.css": "./styles/agGridMaterialFont.css",
|
||||
"./styles/agGridMaterialFont.min.css": "./styles/agGridMaterialFont.min.css",
|
||||
"./styles/agGridQuartzFont.css": "./styles/agGridQuartzFont.css",
|
||||
"./styles/agGridQuartzFont.min.css": "./styles/agGridQuartzFont.min.css",
|
||||
"./styles": "./styles/_index.scss"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./styles/ag-grid-no-native-widgets.css",
|
||||
"./styles/ag-grid-no-native-widgets.min.css",
|
||||
"./styles/ag-grid.css",
|
||||
"./styles/ag-grid.min.css",
|
||||
"./styles/ag-theme-alpine-no-font.css",
|
||||
"./styles/ag-theme-alpine-no-font.min.css",
|
||||
"./styles/ag-theme-alpine.css",
|
||||
"./styles/ag-theme-alpine.min.css",
|
||||
"./styles/ag-theme-balham-no-font.css",
|
||||
"./styles/ag-theme-balham-no-font.min.css",
|
||||
"./styles/ag-theme-balham.css",
|
||||
"./styles/ag-theme-balham.min.css",
|
||||
"./styles/ag-theme-material-no-font.css",
|
||||
"./styles/ag-theme-material-no-font.min.css",
|
||||
"./styles/ag-theme-material.css",
|
||||
"./styles/ag-theme-material.min.css",
|
||||
"./styles/ag-theme-quartz-no-font.css",
|
||||
"./styles/ag-theme-quartz-no-font.min.css",
|
||||
"./styles/ag-theme-quartz.css",
|
||||
"./styles/ag-theme-quartz.min.css",
|
||||
"./styles/agGridAlpineFont.css",
|
||||
"./styles/agGridAlpineFont.min.css",
|
||||
"./styles/agGridBalhamFont.css",
|
||||
"./styles/agGridBalhamFont.min.css",
|
||||
"./styles/agGridClassicFont.css",
|
||||
"./styles/agGridClassicFont.min.css",
|
||||
"./styles/agGridMaterialFont.css",
|
||||
"./styles/agGridMaterialFont.min.css",
|
||||
"./styles/agGridQuartzFont.css",
|
||||
"./styles/agGridQuartzFont.min.css"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ag-grid/ag-grid.git"
|
||||
},
|
||||
"keywords": [
|
||||
"ag",
|
||||
"ag-grid",
|
||||
"datagrid",
|
||||
"data-grid",
|
||||
"data grid",
|
||||
"datatable",
|
||||
"data-table",
|
||||
"data table",
|
||||
"grid",
|
||||
"table",
|
||||
"react",
|
||||
"table",
|
||||
"angular",
|
||||
"angular data grid",
|
||||
"angular table",
|
||||
"angular-component",
|
||||
"react",
|
||||
"react data grid",
|
||||
"react table",
|
||||
"react-component",
|
||||
"reactjs",
|
||||
"vue",
|
||||
"vuejs"
|
||||
],
|
||||
"author": "Sean Landsman <sean@thelandsmans.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ag-grid/ag-grid/issues"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not ie >= 0",
|
||||
"not ie_mob >= 0",
|
||||
"not blackberry > 0"
|
||||
],
|
||||
"homepage": "https://www.ag-grid.com/",
|
||||
"dependencies": {
|
||||
"ag-charts-types": "12.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"source-map-loader": "^5.0.0",
|
||||
"ts-loader": "^9.5.1",
|
||||
"style-loader": "^3.3.4",
|
||||
"css-loader": "^6.10.0",
|
||||
"postcss-loader": "^8.1.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"terser-webpack-plugin": "^5.3.10",
|
||||
"postcss-preset-env": "^9.5.0",
|
||||
"web-streams-polyfill": "^3.3.2",
|
||||
"blob-polyfill": "^7.0.20220408",
|
||||
"compression-streams-polyfill": "^0.1.7",
|
||||
"text-encoding-polyfill": "^0.6.7",
|
||||
"@types/jest": "^29.5.0",
|
||||
"jest": "^29.5.0",
|
||||
"jest-environment-jsdom": "^29.7.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"name": "ag-grid-community",
|
||||
"version": "34.1.2",
|
||||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
|
||||
"main": "./dist/package/main.cjs.js",
|
||||
"types": "./dist/types/src/main.d.ts",
|
||||
"module": "./dist/package/main.esm.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/package/main.esm.mjs",
|
||||
"types": "./dist/types/src/main.d.ts",
|
||||
"require": "./dist/package/main.cjs.js",
|
||||
"default": "./dist/package/main.cjs.js"
|
||||
},
|
||||
"./styles/ag-grid-no-native-widgets.css": "./styles/ag-grid-no-native-widgets.css",
|
||||
"./styles/ag-grid-no-native-widgets.min.css": "./styles/ag-grid-no-native-widgets.min.css",
|
||||
"./styles/ag-grid.css": "./styles/ag-grid.css",
|
||||
"./styles/ag-grid.min.css": "./styles/ag-grid.min.css",
|
||||
"./styles/ag-theme-alpine-no-font.css": "./styles/ag-theme-alpine-no-font.css",
|
||||
"./styles/ag-theme-alpine-no-font.min.css": "./styles/ag-theme-alpine-no-font.min.css",
|
||||
"./styles/ag-theme-alpine.css": "./styles/ag-theme-alpine.css",
|
||||
"./styles/ag-theme-alpine.min.css": "./styles/ag-theme-alpine.min.css",
|
||||
"./styles/ag-theme-balham-no-font.css": "./styles/ag-theme-balham-no-font.css",
|
||||
"./styles/ag-theme-balham-no-font.min.css": "./styles/ag-theme-balham-no-font.min.css",
|
||||
"./styles/ag-theme-balham.css": "./styles/ag-theme-balham.css",
|
||||
"./styles/ag-theme-balham.min.css": "./styles/ag-theme-balham.min.css",
|
||||
"./styles/ag-theme-material-no-font.css": "./styles/ag-theme-material-no-font.css",
|
||||
"./styles/ag-theme-material-no-font.min.css": "./styles/ag-theme-material-no-font.min.css",
|
||||
"./styles/ag-theme-material.css": "./styles/ag-theme-material.css",
|
||||
"./styles/ag-theme-material.min.css": "./styles/ag-theme-material.min.css",
|
||||
"./styles/ag-theme-quartz-no-font.css": "./styles/ag-theme-quartz-no-font.css",
|
||||
"./styles/ag-theme-quartz-no-font.min.css": "./styles/ag-theme-quartz-no-font.min.css",
|
||||
"./styles/ag-theme-quartz.css": "./styles/ag-theme-quartz.css",
|
||||
"./styles/ag-theme-quartz.min.css": "./styles/ag-theme-quartz.min.css",
|
||||
"./styles/agGridAlpineFont.css": "./styles/agGridAlpineFont.css",
|
||||
"./styles/agGridAlpineFont.min.css": "./styles/agGridAlpineFont.min.css",
|
||||
"./styles/agGridBalhamFont.css": "./styles/agGridBalhamFont.css",
|
||||
"./styles/agGridBalhamFont.min.css": "./styles/agGridBalhamFont.min.css",
|
||||
"./styles/agGridClassicFont.css": "./styles/agGridClassicFont.css",
|
||||
"./styles/agGridClassicFont.min.css": "./styles/agGridClassicFont.min.css",
|
||||
"./styles/agGridMaterialFont.css": "./styles/agGridMaterialFont.css",
|
||||
"./styles/agGridMaterialFont.min.css": "./styles/agGridMaterialFont.min.css",
|
||||
"./styles/agGridQuartzFont.css": "./styles/agGridQuartzFont.css",
|
||||
"./styles/agGridQuartzFont.min.css": "./styles/agGridQuartzFont.min.css",
|
||||
"./styles": "./styles/_index.scss"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./styles/ag-grid-no-native-widgets.css",
|
||||
"./styles/ag-grid-no-native-widgets.min.css",
|
||||
"./styles/ag-grid.css",
|
||||
"./styles/ag-grid.min.css",
|
||||
"./styles/ag-theme-alpine-no-font.css",
|
||||
"./styles/ag-theme-alpine-no-font.min.css",
|
||||
"./styles/ag-theme-alpine.css",
|
||||
"./styles/ag-theme-alpine.min.css",
|
||||
"./styles/ag-theme-balham-no-font.css",
|
||||
"./styles/ag-theme-balham-no-font.min.css",
|
||||
"./styles/ag-theme-balham.css",
|
||||
"./styles/ag-theme-balham.min.css",
|
||||
"./styles/ag-theme-material-no-font.css",
|
||||
"./styles/ag-theme-material-no-font.min.css",
|
||||
"./styles/ag-theme-material.css",
|
||||
"./styles/ag-theme-material.min.css",
|
||||
"./styles/ag-theme-quartz-no-font.css",
|
||||
"./styles/ag-theme-quartz-no-font.min.css",
|
||||
"./styles/ag-theme-quartz.css",
|
||||
"./styles/ag-theme-quartz.min.css",
|
||||
"./styles/agGridAlpineFont.css",
|
||||
"./styles/agGridAlpineFont.min.css",
|
||||
"./styles/agGridBalhamFont.css",
|
||||
"./styles/agGridBalhamFont.min.css",
|
||||
"./styles/agGridClassicFont.css",
|
||||
"./styles/agGridClassicFont.min.css",
|
||||
"./styles/agGridMaterialFont.css",
|
||||
"./styles/agGridMaterialFont.min.css",
|
||||
"./styles/agGridQuartzFont.css",
|
||||
"./styles/agGridQuartzFont.min.css"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ag-grid/ag-grid.git"
|
||||
},
|
||||
"keywords": [
|
||||
"ag",
|
||||
"ag-grid",
|
||||
"datagrid",
|
||||
"data-grid",
|
||||
"data grid",
|
||||
"datatable",
|
||||
"data-table",
|
||||
"data table",
|
||||
"grid",
|
||||
"table",
|
||||
"react",
|
||||
"table",
|
||||
"angular",
|
||||
"angular data grid",
|
||||
"angular table",
|
||||
"angular-component",
|
||||
"react",
|
||||
"react data grid",
|
||||
"react table",
|
||||
"react-component",
|
||||
"reactjs",
|
||||
"vue",
|
||||
"vuejs"
|
||||
],
|
||||
"author": "Sean Landsman <sean@thelandsmans.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ag-grid/ag-grid/issues"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not ie >= 0",
|
||||
"not ie_mob >= 0",
|
||||
"not blackberry > 0"
|
||||
],
|
||||
"homepage": "https://www.ag-grid.com/",
|
||||
"dependencies": {
|
||||
"ag-charts-types": "12.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"source-map-loader": "^5.0.0",
|
||||
"ts-loader": "^9.5.1",
|
||||
"style-loader": "^3.3.4",
|
||||
"css-loader": "^6.10.0",
|
||||
"postcss-loader": "^8.1.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"terser-webpack-plugin": "^5.3.10",
|
||||
"postcss-preset-env": "^9.5.0",
|
||||
"web-streams-polyfill": "^3.3.2",
|
||||
"blob-polyfill": "^7.0.20220408",
|
||||
"compression-streams-polyfill": "^0.1.7",
|
||||
"text-encoding-polyfill": "^0.6.7",
|
||||
"@types/jest": "^29.5.0",
|
||||
"jest": "^29.5.0",
|
||||
"jest-environment-jsdom": "^29.7.0"
|
||||
},
|
||||
"type": "commonjs"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { _ModuleWithoutApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Other -> Aligned Grids
|
||||
* @gridOption alignedGrids
|
||||
*/
|
||||
export declare const AlignedGridsModule: _ModuleWithoutApi;
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgEvent, ColumnEvent } from '../events';
|
||||
export declare class AlignedGridsService extends BeanStub implements NamedBean {
|
||||
beanName: "alignedGridsSvc";
|
||||
private consuming;
|
||||
private getAlignedGridApis;
|
||||
private isGridApi;
|
||||
postConstruct(): void;
|
||||
private fireEvent;
|
||||
private onEvent;
|
||||
private fireColumnEvent;
|
||||
private fireScrollEvent;
|
||||
private onScrollEvent;
|
||||
private extractDataFromEvent;
|
||||
getMasterColumns(event: ColumnEvent): AgColumn[];
|
||||
getColumnIds(event: ColumnEvent): string[];
|
||||
onColumnEvent(event: AgEvent): void;
|
||||
private processGroupOpenedEvent;
|
||||
private processColumnEvent;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { _ModuleWithoutApi } from './interfaces/iModule';
|
||||
/**
|
||||
* @feature All Community Features
|
||||
*/
|
||||
export declare const AllCommunityModule: _ModuleWithoutApi;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { GridApi } from './gridApi';
|
||||
import type { ApiFunction, ApiFunctionName } from './iApiFunction';
|
||||
export declare class ApiFunctionService extends BeanStub implements NamedBean {
|
||||
beanName: "apiFunctionSvc";
|
||||
readonly api: GridApi;
|
||||
private fns;
|
||||
private preDestroyLink;
|
||||
constructor();
|
||||
postConstruct(): void;
|
||||
addFunction<TFunctionName extends ApiFunctionName>(functionName: TFunctionName, func: ApiFunction<TFunctionName>): void;
|
||||
private makeApi;
|
||||
private apiNotFound;
|
||||
destroy(): void;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
import type { _RowGridApi, _ScrollGridApi } from './gridApi';
|
||||
/**
|
||||
* @feature Rows
|
||||
*/
|
||||
export declare const RowApiModule: _ModuleWithApi<_RowGridApi<any>>;
|
||||
/**
|
||||
* @feature Scrolling
|
||||
*/
|
||||
export declare const ScrollApiModule: _ModuleWithApi<_ScrollGridApi<any>>;
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { Context } from '../context/context';
|
||||
import type { GridApi } from './gridApi';
|
||||
export declare function createGridApi(context: Context): {
|
||||
beanName: 'gridApi';
|
||||
bean: GridApi;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { ManagedGridOptionKey, ManagedGridOptions } from '../gridOptionsInitial';
|
||||
import type { AgModuleName } from '../interfaces/iModule';
|
||||
export declare function getGridId(beans: BeanCollection): string;
|
||||
export declare function destroy(beans: BeanCollection): void;
|
||||
export declare function isDestroyed(beans: BeanCollection): boolean;
|
||||
export declare function getGridOption<Key extends keyof GridOptions<TData>, TData = any>(beans: BeanCollection, key: Key): GridOptions<TData>[Key];
|
||||
export declare function setGridOption<Key extends ManagedGridOptionKey, TData = any>(beans: BeanCollection, key: Key, value: GridOptions<TData>[Key]): void;
|
||||
export declare function updateGridOptions<TDataUpdate = any>(beans: BeanCollection, options: ManagedGridOptions<TDataUpdate>): void;
|
||||
export declare function isModuleRegistered(beans: BeanCollection, moduleName: AgModuleName): boolean;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
export declare function expandAll(beans: BeanCollection): void;
|
||||
export declare function collapseAll(beans: BeanCollection): void;
|
||||
export declare function onRowHeightChanged(beans: BeanCollection): void;
|
||||
File diff suppressed because it is too large
Load Diff
+3
@@ -0,0 +1,3 @@
|
||||
import type { ValidationModuleName } from '../interfaces/iModule';
|
||||
import type { GridApi } from './gridApi';
|
||||
export declare const gridApiFunctionsMap: Record<keyof GridApi, ValidationModuleName>;
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { GridApi } from './gridApi';
|
||||
export type ApiFunctionName = keyof GridApi;
|
||||
export type ApiFunction<TName extends ApiFunctionName> = (beans: BeanCollection, ...args: Parameters<GridApi[TName]>) => ReturnType<GridApi[TName]>;
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { RenderedRowEvent } from '../interfaces/iCallbackParams';
|
||||
import type { RedrawRowsParams } from '../interfaces/iRedrawRowsParams';
|
||||
import type { IRowNode } from '../interfaces/iRowNode';
|
||||
export declare function redrawRows<TData = any>(beans: BeanCollection, params?: RedrawRowsParams<TData>): void;
|
||||
export declare function setRowNodeExpanded(beans: BeanCollection, rowNode: IRowNode, expanded: boolean, expandParents?: boolean, forceSync?: boolean): void;
|
||||
export declare function getRowNode<TData = any>(beans: BeanCollection, id: string): IRowNode<TData> | undefined;
|
||||
export declare function addRenderedRowListener(beans: BeanCollection, eventName: RenderedRowEvent, rowIndex: number, callback: (...args: any[]) => any): void;
|
||||
export declare function getRenderedNodes<TData = any>(beans: BeanCollection): IRowNode<TData>[];
|
||||
export declare function forEachNode<TData = any>(beans: BeanCollection, callback: (rowNode: IRowNode<TData>, index: number) => void, includeFooterNodes?: boolean): void;
|
||||
export declare function getFirstDisplayedRowIndex(beans: BeanCollection): number;
|
||||
export declare function getLastDisplayedRowIndex(beans: BeanCollection): number;
|
||||
export declare function getDisplayedRowAtIndex<TData = any>(beans: BeanCollection, index: number): IRowNode<TData> | undefined;
|
||||
export declare function getDisplayedRowCount(beans: BeanCollection): number;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { InfiniteRowModel } from '../infiniteRowModel/infiniteRowModel';
|
||||
import type { IClientSideRowModel } from '../interfaces/iClientSideRowModel';
|
||||
import type { IServerSideRowModel } from '../interfaces/iServerSideRowModel';
|
||||
export declare function _getClientSideRowModel(beans: BeanCollection): IClientSideRowModel | undefined;
|
||||
export declare function _getInfiniteRowModel(beans: BeanCollection): InfiniteRowModel | undefined;
|
||||
export declare function _getServerSideRowModel(beans: BeanCollection): IServerSideRowModel | undefined;
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { Column } from '../interfaces/iColumn';
|
||||
import type { IRowNode } from '../interfaces/iRowNode';
|
||||
export declare function getVerticalPixelRange(beans: BeanCollection): {
|
||||
top: number;
|
||||
bottom: number;
|
||||
};
|
||||
export declare function getHorizontalPixelRange(beans: BeanCollection): {
|
||||
left: number;
|
||||
right: number;
|
||||
};
|
||||
export declare function ensureColumnVisible(beans: BeanCollection, key: string | Column, position?: 'auto' | 'start' | 'middle' | 'end'): void;
|
||||
export declare function ensureIndexVisible(beans: BeanCollection, index: number, position?: 'top' | 'bottom' | 'middle' | null): void;
|
||||
export declare function ensureNodeVisible<TData = any>(beans: BeanCollection, nodeSelector: TData | IRowNode<TData> | ((row: IRowNode<TData>) => boolean), position?: 'top' | 'bottom' | 'middle' | null): void;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
import type { _CsrmSsrmSharedGridApi, _SsrmInfiniteSharedGridApi } from './gridApi';
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const CsrmSsrmSharedApiModule: _ModuleWithApi<_CsrmSsrmSharedGridApi>;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const SsrmInfiniteSharedApiModule: _ModuleWithApi<_SsrmInfiniteSharedGridApi>;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
export declare function setRowCount(beans: BeanCollection, rowCount: number, maxRowFound?: boolean): void;
|
||||
export declare function getCacheBlockState(beans: BeanCollection): any;
|
||||
export declare function isLastRowIndexKnown(beans: BeanCollection): boolean | undefined;
|
||||
@@ -0,0 +1,35 @@
|
||||
export declare class AutoScrollService {
|
||||
private tickingInterval;
|
||||
private scrollHorizontally;
|
||||
private scrollVertically;
|
||||
private tickLeft;
|
||||
private tickRight;
|
||||
private tickUp;
|
||||
private tickDown;
|
||||
private scrollContainer;
|
||||
private scrollByTick;
|
||||
private getVerticalPosition;
|
||||
private setVerticalPosition;
|
||||
private getHorizontalPosition;
|
||||
private setHorizontalPosition;
|
||||
private shouldSkipVerticalScroll;
|
||||
private shouldSkipHorizontalScroll;
|
||||
private onScrollCallback;
|
||||
private tickCount;
|
||||
constructor(params: {
|
||||
scrollContainer: HTMLElement;
|
||||
scrollAxis: 'x' | 'y' | 'xy';
|
||||
scrollByTick?: number;
|
||||
getVerticalPosition?: () => number;
|
||||
setVerticalPosition?: (position: number) => void;
|
||||
getHorizontalPosition?: () => number;
|
||||
setHorizontalPosition?: (position: number) => void;
|
||||
shouldSkipVerticalScroll?: () => boolean;
|
||||
shouldSkipHorizontalScroll?: () => boolean;
|
||||
onScrollCallback?: () => void;
|
||||
});
|
||||
check(mouseEvent: MouseEvent, forceSkipVerticalScroll?: boolean): void;
|
||||
private ensureTickingStarted;
|
||||
private doTick;
|
||||
ensureCleared(): void;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export declare const BASE_URL = "https://www.ag-grid.com";
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { GetRowIdFunc } from '../entities/gridOptions';
|
||||
import { RowNode } from '../entities/rowNode';
|
||||
import type { ClientSideNodeManagerUpdateRowDataResult, IClientSideNodeManager } from '../interfaces/iClientSideNodeManager';
|
||||
import type { IChangedRowNodes, RefreshModelParams } from '../interfaces/iClientSideRowModel';
|
||||
import type { RowDataTransaction } from '../interfaces/rowDataTransaction';
|
||||
/**
|
||||
* This is the type of any row in allLeafChildren and childrenAfterGroup of the ClientSideNodeManager rootNode.
|
||||
* ClientSideNodeManager is allowed to update the sourceRowIndex property of the nodes.
|
||||
*/
|
||||
interface ClientSideNodeManagerRowNode<TData> extends RowNode<TData> {
|
||||
sourceRowIndex: number;
|
||||
}
|
||||
/**
|
||||
* This is the type of the root RowNode of the ClientSideNodeManager
|
||||
* ClientSideNodeManager is allowed to update the allLeafChildren and childrenAfterGroup properties of the root node.
|
||||
*/
|
||||
interface ClientSideNodeManagerRootNode<TData> extends RowNode<TData> {
|
||||
sibling: ClientSideNodeManagerRootNode<TData>;
|
||||
allLeafChildren: ClientSideNodeManagerRowNode<TData>[] | null;
|
||||
childrenAfterGroup: ClientSideNodeManagerRowNode<TData>[] | null;
|
||||
}
|
||||
export declare namespace AbstractClientSideNodeManager {
|
||||
type RowNode<TData> = ClientSideNodeManagerRowNode<TData>;
|
||||
type RootNode<TData> = ClientSideNodeManagerRootNode<TData>;
|
||||
}
|
||||
export declare abstract class AbstractClientSideNodeManager<TData = any> extends BeanStub implements IClientSideNodeManager<TData> {
|
||||
private nextId;
|
||||
protected allNodesMap: {
|
||||
[id: string]: RowNode<TData>;
|
||||
};
|
||||
rootNode: AbstractClientSideNodeManager.RootNode<TData> | null;
|
||||
getRowNode(id: string): RowNode | undefined;
|
||||
extractRowData(): TData[] | null | undefined;
|
||||
activate(rootNode: ClientSideNodeManagerRootNode<TData>): void;
|
||||
deactivate(): void;
|
||||
destroy(): void;
|
||||
setNewRowData(rowData: TData[]): void;
|
||||
private updateRootSiblingArrays;
|
||||
protected loadNewRowData(rowData: TData[]): void;
|
||||
setImmutableRowData(params: RefreshModelParams<TData>, rowData: TData[]): void;
|
||||
/** Called when a node needs to be deleted */
|
||||
protected rowNodeDeleted(node: RowNode<TData>): void;
|
||||
updateRowData(rowDataTran: RowDataTransaction<TData>, changedRowNodes: IChangedRowNodes<TData>): ClientSideNodeManagerUpdateRowDataResult<TData>;
|
||||
protected executeAdd(rowDataTran: RowDataTransaction, result: ClientSideNodeManagerUpdateRowDataResult<TData>): void;
|
||||
protected executeRemove(getRowIdFunc: GetRowIdFunc<TData> | undefined, rowDataTran: RowDataTransaction, { changedRowNodes, rowNodeTransaction }: ClientSideNodeManagerUpdateRowDataResult<TData>, nodesToUnselect: RowNode<TData>[]): void;
|
||||
protected executeUpdate(getRowIdFunc: GetRowIdFunc<TData> | undefined, rowDataTran: RowDataTransaction, { changedRowNodes, rowNodeTransaction }: ClientSideNodeManagerUpdateRowDataResult<TData>, nodesToUnselect: RowNode<TData>[]): void;
|
||||
protected dispatchRowDataUpdateStartedEvent(rowData?: TData[] | null): void;
|
||||
protected deselectNodes(nodesToUnselect: RowNode<TData>[]): void;
|
||||
private sanitizeAddIndex;
|
||||
protected createRowNode(data: TData, sourceRowIndex: number): RowNode<TData>;
|
||||
protected lookupRowNode(getRowIdFunc: ((data: any) => string) | undefined, data: TData): RowNode<TData> | null;
|
||||
}
|
||||
export {};
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import type { RowNode } from '../entities/rowNode';
|
||||
import type { IRowNode } from '../interfaces/iRowNode';
|
||||
export declare class ChangedRowNodes<TData = any> {
|
||||
readonly removals: Set<RowNode<TData>>;
|
||||
readonly updates: Set<RowNode<TData>>;
|
||||
readonly adds: Set<RowNode<TData>>;
|
||||
/** Marks a row as removed. Order of operations is: remove, update, add */
|
||||
remove(node: IRowNode<TData>): void;
|
||||
/** Marks a row as updated. Order of operations is: remove, update, add */
|
||||
update(node: IRowNode<TData>): void;
|
||||
/** Marks a row as added. Order of operation is: remove, update, add */
|
||||
add(node: IRowNode<TData>): void;
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { AbstractClientSideNodeManager } from './abstractClientSideNodeManager';
|
||||
export declare class ClientSideNodeManager<TData> extends AbstractClientSideNodeManager<TData> implements NamedBean {
|
||||
beanName: "csrmNodeSvc";
|
||||
}
|
||||
Vendored
+136
@@ -0,0 +1,136 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import { RowNode } from '../entities/rowNode';
|
||||
import type { IClientSideRowModel, RefreshModelParams } from '../interfaces/iClientSideRowModel';
|
||||
import type { RowBounds, RowModelType } from '../interfaces/iRowModel';
|
||||
import type { RowDataTransaction } from '../interfaces/rowDataTransaction';
|
||||
import type { RowNodeTransaction } from '../interfaces/rowNodeTransaction';
|
||||
import { ChangedPath } from '../utils/changedPath';
|
||||
export declare class ClientSideRowModel extends BeanStub implements IClientSideRowModel, NamedBean {
|
||||
beanName: "rowModel";
|
||||
private colModel;
|
||||
private valueCache?;
|
||||
private filterStage?;
|
||||
private sortStage?;
|
||||
private flattenStage?;
|
||||
private groupStage?;
|
||||
private aggStage?;
|
||||
private pivotStage?;
|
||||
private filterAggStage?;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
rootNode: RowNode | null;
|
||||
private rowsToDisplay;
|
||||
private nodeManager;
|
||||
private rowDataTransactionBatch;
|
||||
/** Keep track if row data was updated. Important with suppressModelUpdateAfterUpdateTransaction and refreshModel api is called */
|
||||
private rowDataUpdatedPending;
|
||||
private applyAsyncTransactionsTimeout;
|
||||
/** Has the start method been called */
|
||||
private started;
|
||||
/**
|
||||
* This is to prevent refresh model being called when it's already being called.
|
||||
* E.g. the group stage can trigger initial state filter model to be applied. This fires onFilterChanged,
|
||||
* which then triggers the listener here that calls refresh model again but at the filter stage
|
||||
* (which is about to be run by the original call).
|
||||
*/
|
||||
private isRefreshingModel;
|
||||
private rowNodesCountReady;
|
||||
private rowCountReady;
|
||||
private orderedStages;
|
||||
postConstruct(): void;
|
||||
private getNewNodeManager;
|
||||
private addPropertyListeners;
|
||||
start(): void;
|
||||
private setInitialData;
|
||||
ensureRowHeightsValid(startPixel: number, endPixel: number, startLimitIndex: number, endLimitIndex: number): boolean;
|
||||
private onPropChange;
|
||||
private setRowTopAndRowIndex;
|
||||
private clearRowTopAndRowIndex;
|
||||
isLastRowIndexKnown(): boolean;
|
||||
getRowCount(): number;
|
||||
/**
|
||||
* Returns the number of rows with level === 1
|
||||
*/
|
||||
getTopLevelRowCount(): number;
|
||||
/**
|
||||
* Get the row display index by the top level index
|
||||
* top level index is the index of rows with level === 1
|
||||
*/
|
||||
getTopLevelRowDisplayedIndex(topLevelIndex: number): number;
|
||||
/**
|
||||
* The opposite of `getTopLevelRowDisplayedIndex`
|
||||
*/
|
||||
getTopLevelIndexFromDisplayedIndex(displayedIndex: number): number;
|
||||
getRowBounds(index: number): RowBounds | null;
|
||||
onRowGroupOpened(): void;
|
||||
private onFilterChanged;
|
||||
private onSortChanged;
|
||||
getType(): RowModelType;
|
||||
private onValueChanged;
|
||||
private createChangePath;
|
||||
private isSuppressModelUpdateAfterUpdateTransaction;
|
||||
refreshModel(params: RefreshModelParams): void;
|
||||
isEmpty(): boolean;
|
||||
isRowsToRender(): boolean;
|
||||
getNodesInRangeForSelection(firstInRange: RowNode, lastInRange: RowNode): RowNode[];
|
||||
getTopLevelNodes(): RowNode[] | null;
|
||||
getRow(index: number): RowNode;
|
||||
isRowPresent(rowNode: RowNode): boolean;
|
||||
getRowIndexAtPixel(pixelToMatch: number): number;
|
||||
private isRowInPixel;
|
||||
forEachLeafNode(callback: (node: RowNode, index: number) => void): void;
|
||||
forEachNode(callback: (node: RowNode, index: number) => void, includeFooterNodes?: boolean): void;
|
||||
forEachDisplayedNode(callback: (rowNode: RowNode<any>, index: number) => void): void;
|
||||
forEachNodeAfterFilter(callback: (node: RowNode, index: number) => void, includeFooterNodes?: boolean): void;
|
||||
forEachNodeAfterFilterAndSort(callback: (node: RowNode, index: number) => void, includeFooterNodes?: boolean): void;
|
||||
forEachPivotNode(callback: (node: RowNode, index: number) => void, includeFooterNodes?: boolean, afterSort?: boolean): void;
|
||||
/**
|
||||
* Iterate through each node and all of its children
|
||||
* @param callback the function to execute for each node
|
||||
* @param includeFooterNodes whether to also iterate over footer nodes
|
||||
* @param nodes the nodes to start iterating over
|
||||
* @param getChildren a function to determine the recursion strategy
|
||||
* @param startIndex the index to start from
|
||||
* @returns the index ended at
|
||||
*/
|
||||
private depthFirstSearchRowNodes;
|
||||
doAggregate(changedPath?: ChangedPath): void;
|
||||
private doFilterAggregates;
|
||||
private doSort;
|
||||
private doRowGrouping;
|
||||
private doFilter;
|
||||
private doPivot;
|
||||
getRowNode(id: string): RowNode | undefined;
|
||||
batchUpdateRowData(rowDataTransaction: RowDataTransaction, callback?: (res: RowNodeTransaction) => void): void;
|
||||
flushAsyncTransactions(): void;
|
||||
private executeBatchUpdateRowData;
|
||||
/**
|
||||
* Used to apply transaction changes.
|
||||
* Called by gridApi & rowDragFeature
|
||||
*/
|
||||
updateRowData(rowDataTran: RowDataTransaction): RowNodeTransaction | null;
|
||||
/**
|
||||
* Common to:
|
||||
* - executeBatchUpdateRowData (batch transactions)
|
||||
* - updateRowData (single transaction)
|
||||
* - setImmutableRowData (generated transaction)
|
||||
*
|
||||
* @param rowNodeTrans - the transactions to apply
|
||||
* @param orderChanged - whether the order of the rows has changed, either via generated transaction or user provided addIndex
|
||||
*/
|
||||
private commitTransactions;
|
||||
private doRowsToDisplay;
|
||||
onRowHeightChanged(): void;
|
||||
resetRowHeights(): void;
|
||||
private resetRowHeightsForAllRowNodes;
|
||||
private onGridStylesChanges;
|
||||
private onGridReady;
|
||||
isRowDataLoaded(): boolean;
|
||||
destroy(): void;
|
||||
private onRowHeightChanged_debounced;
|
||||
/**
|
||||
* @deprecated v33.1
|
||||
*/
|
||||
onRowHeightChangedDebounced(): void;
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { ClientSideRowModelStep } from '../interfaces/iClientSideRowModel';
|
||||
import type { IRowNode } from '../interfaces/iRowNode';
|
||||
import type { RowDataTransaction } from '../interfaces/rowDataTransaction';
|
||||
import type { RowNodeTransaction } from '../interfaces/rowNodeTransaction';
|
||||
export declare function onGroupExpandedOrCollapsed(beans: BeanCollection): void;
|
||||
export declare function refreshClientSideRowModel(beans: BeanCollection, step?: ClientSideRowModelStep): void;
|
||||
export declare function isRowDataEmpty(beans: BeanCollection): boolean;
|
||||
export declare function forEachLeafNode<TData = any>(beans: BeanCollection, callback: (rowNode: IRowNode<TData>) => void): void;
|
||||
export declare function forEachNodeAfterFilter<TData = any>(beans: BeanCollection, callback: (rowNode: IRowNode<TData>, index: number) => void): void;
|
||||
export declare function forEachNodeAfterFilterAndSort<TData = any>(beans: BeanCollection, callback: (rowNode: IRowNode<TData>, index: number) => void): void;
|
||||
export declare function resetRowHeights(beans: BeanCollection): void;
|
||||
export declare function applyTransaction<TData = any>(beans: BeanCollection, rowDataTransaction: RowDataTransaction<TData>): RowNodeTransaction<TData> | null | undefined;
|
||||
export declare function applyTransactionAsync<TData = any>(beans: BeanCollection, rowDataTransaction: RowDataTransaction<TData>, callback?: (res: RowNodeTransaction<TData>) => void): void;
|
||||
export declare function flushAsyncTransactions(beans: BeanCollection): void;
|
||||
export declare function getBestCostNodeSelection<TData = any>(beans: BeanCollection): IRowNode<TData>[] | undefined;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import type { _ClientSideRowModelGridApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi, _ModuleWithoutApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Client-Side Row Model
|
||||
*/
|
||||
export declare const ClientSideRowModelModule: _ModuleWithoutApi;
|
||||
/**
|
||||
* @feature Client-Side Row Model
|
||||
*/
|
||||
export declare const ClientSideRowModelApiModule: _ModuleWithApi<_ClientSideRowModelGridApi<any>>;
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { RowNode } from '../entities/rowNode';
|
||||
import type { ClientSideRowModelStage } from '../interfaces/iClientSideRowModel';
|
||||
import type { IRowNodeStage, StageExecuteParams } from '../interfaces/iRowNodeStage';
|
||||
export declare function updateRowNodeAfterFilter(rowNode: RowNode): void;
|
||||
export declare class FilterStage extends BeanStub implements IRowNodeStage, NamedBean {
|
||||
beanName: "filterStage";
|
||||
refreshProps: Set<keyof GridOptions<any>>;
|
||||
step: ClientSideRowModelStage;
|
||||
private filterManager?;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
execute(params: StageExecuteParams): void;
|
||||
private filter;
|
||||
private filterNodes;
|
||||
private doingTreeDataFiltering;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { RowNode } from '../entities/rowNode';
|
||||
import type { ClientSideRowModelStage } from '../interfaces/iClientSideRowModel';
|
||||
import type { IRowNodeStage, StageExecuteParams } from '../interfaces/iRowNodeStage';
|
||||
export declare function updateRowNodeAfterSort(rowNode: RowNode): void;
|
||||
export declare class SortStage extends BeanStub implements NamedBean, IRowNodeStage {
|
||||
beanName: "sortStage";
|
||||
refreshProps: Set<keyof GridOptions<any>>;
|
||||
step: ClientSideRowModelStage;
|
||||
execute(params: StageExecuteParams): void;
|
||||
private sort;
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { ColDef } from '../entities/colDef';
|
||||
import type { ISizeAllColumnsToContentParams, ISizeColumnsToContentParams, ISizeColumnsToFitParams } from '../interfaces/autoSize';
|
||||
import type { Column } from '../interfaces/iColumn';
|
||||
export declare function sizeColumnsToFit(beans: BeanCollection, paramsOrGridWidth?: ISizeColumnsToFitParams | number): void;
|
||||
export declare function autoSizeColumns(beans: BeanCollection, keys: (string | ColDef | Column)[], skipHeader?: boolean): void;
|
||||
export declare function autoSizeColumns(beans: BeanCollection, params: ISizeColumnsToContentParams): void;
|
||||
export declare function autoSizeAllColumns(beans: BeanCollection, params: ISizeAllColumnsToContentParams): void;
|
||||
export declare function autoSizeAllColumns(beans: BeanCollection, skipHeader?: boolean): void;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import type { _ColumnAutosizeApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Columns -> Column Sizing
|
||||
* @gridOption autoSizeStrategy
|
||||
*/
|
||||
export declare const ColumnAutoSizeModule: _ModuleWithApi<_ColumnAutosizeApi>;
|
||||
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
import type { ColKey, Maybe } from '../columns/columnModel';
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { ISizeColumnsToFitParams, SizeColumnsToContentColumnLimits } from '../interfaces/autoSize';
|
||||
export declare class ColumnAutosizeService extends BeanStub implements NamedBean {
|
||||
beanName: "colAutosize";
|
||||
private timesDelayed;
|
||||
shouldQueueResizeOperations: boolean;
|
||||
private resizeOperationQueue;
|
||||
postConstruct(): void;
|
||||
autoSizeCols(params: {
|
||||
colKeys: ColKey[];
|
||||
skipHeader?: boolean;
|
||||
skipHeaderGroups?: boolean;
|
||||
stopAtGroup?: AgColumnGroup;
|
||||
defaultMinWidth?: number;
|
||||
defaultMaxWidth?: number;
|
||||
columnLimits?: SizeColumnsToContentColumnLimits[];
|
||||
source?: ColumnEventType;
|
||||
}): void;
|
||||
autoSizeColumn(key: Maybe<ColKey>, source: ColumnEventType, skipHeader?: boolean): void;
|
||||
private autoSizeColumnGroupsByColumns;
|
||||
autoSizeAllColumns(params: {
|
||||
skipHeader?: boolean;
|
||||
defaultMinWidth?: number;
|
||||
defaultMaxWidth?: number;
|
||||
columnLimits?: SizeColumnsToContentColumnLimits[];
|
||||
source?: ColumnEventType;
|
||||
}): void;
|
||||
addColumnAutosize(element: HTMLElement, column: AgColumn): () => void;
|
||||
addColumnGroupResize(element: HTMLElement, columnGroup: AgColumnGroup, callback: () => void): () => void;
|
||||
sizeColumnsToFitGridBody(params?: ISizeColumnsToFitParams, nextTimeout?: number): void;
|
||||
sizeColumnsToFit(gridWidth: any, source?: ColumnEventType, silent?: boolean, params?: ISizeColumnsToFitParams): void;
|
||||
applyAutosizeStrategy(): void;
|
||||
private onFirstDataRendered;
|
||||
processResizeOperations(): void;
|
||||
pushResizeOperation(func: () => void): void;
|
||||
destroy(): void;
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare const columnMovingCSS = ":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}";
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
export declare class ColumnAnimationService extends BeanStub implements NamedBean {
|
||||
beanName: "colAnimation";
|
||||
private gridBodyCtrl;
|
||||
private executeNextFuncs;
|
||||
private executeLaterFuncs;
|
||||
private active;
|
||||
private activeNext;
|
||||
private suppressAnimation;
|
||||
private animationThreadCount;
|
||||
postConstruct(): void;
|
||||
isActive(): boolean;
|
||||
setSuppressAnimation(suppress: boolean): void;
|
||||
start(): void;
|
||||
finish(): void;
|
||||
executeNextVMTurn(func: (...args: any[]) => any): void;
|
||||
executeLaterVMTurn(func: (...args: any[]) => any): void;
|
||||
private ensureAnimationCssClassPresent;
|
||||
private flush;
|
||||
}
|
||||
yuthon_report/static/src/lib/ag-grid-c/dist/types/src/columnMove/columnDrag/bodyDropPivotTarget.d.ts
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { DragAndDropIcon, DraggingEvent } from '../../dragAndDrop/dragAndDropService';
|
||||
import type { ColumnPinnedType } from '../../interfaces/iColumn';
|
||||
import type { DropListener } from './bodyDropTarget';
|
||||
export declare class BodyDropPivotTarget extends BeanStub implements DropListener {
|
||||
private readonly pinned;
|
||||
private columnsToAggregate;
|
||||
private columnsToGroup;
|
||||
private columnsToPivot;
|
||||
constructor(pinned: ColumnPinnedType);
|
||||
/** Callback for when drag enters */
|
||||
onDragEnter(draggingEvent: DraggingEvent): void;
|
||||
getIconName(): DragAndDropIcon | null;
|
||||
/** Callback for when drag leaves */
|
||||
onDragLeave(draggingEvent: DraggingEvent): void;
|
||||
private clearColumnsList;
|
||||
/** Callback for when dragging */
|
||||
onDragging(draggingEvent: DraggingEvent): void;
|
||||
/** Callback for when drag stops */
|
||||
onDragStop(draggingEvent: DraggingEvent): void;
|
||||
onDragCancel(): void;
|
||||
}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { DragAndDropIcon, DraggingEvent, DropTarget } from '../../dragAndDrop/dragAndDropService';
|
||||
import { DragSourceType } from '../../dragAndDrop/dragAndDropService';
|
||||
import type { ColumnPinnedType } from '../../interfaces/iColumn';
|
||||
export interface DropListener {
|
||||
getIconName(): DragAndDropIcon | null;
|
||||
onDragEnter(params: DraggingEvent): void;
|
||||
onDragLeave(params: DraggingEvent): void;
|
||||
onDragging(params: DraggingEvent): void;
|
||||
onDragStop(params: DraggingEvent): void;
|
||||
onDragCancel(): void;
|
||||
}
|
||||
export declare class BodyDropTarget extends BeanStub implements DropTarget {
|
||||
private readonly pinned;
|
||||
private readonly eContainer;
|
||||
private eSecondaryContainers;
|
||||
private currentDropListener;
|
||||
private moveColumnFeature;
|
||||
private bodyDropPivotTarget;
|
||||
constructor(pinned: ColumnPinnedType, eContainer: HTMLElement);
|
||||
postConstruct(): void;
|
||||
isInterestedIn(type: DragSourceType): boolean;
|
||||
getSecondaryContainers(): HTMLElement[][];
|
||||
getContainer(): HTMLElement;
|
||||
getIconName(): DragAndDropIcon | null;
|
||||
private isDropColumnInPivotMode;
|
||||
onDragEnter(draggingEvent: DraggingEvent): void;
|
||||
onDragLeave(params: DraggingEvent): void;
|
||||
onDragging(params: DraggingEvent): void;
|
||||
onDragStop(params: DraggingEvent): void;
|
||||
onDragCancel(): void;
|
||||
}
|
||||
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { DragAndDropIcon, DraggingEvent } from '../../dragAndDrop/dragAndDropService';
|
||||
import type { AgColumn } from '../../entities/agColumn';
|
||||
import type { ColumnEventType } from '../../events';
|
||||
import type { ColumnPinnedType } from '../../interfaces/iColumn';
|
||||
import type { DropListener } from './bodyDropTarget';
|
||||
export declare class MoveColumnFeature extends BeanStub implements DropListener {
|
||||
private readonly pinned;
|
||||
private gridBodyCon;
|
||||
private needToMoveLeft;
|
||||
private needToMoveRight;
|
||||
private movingIntervalId;
|
||||
private intervalCount;
|
||||
private isCenterContainer;
|
||||
private lastDraggingEvent;
|
||||
private lastHighlightedColumn;
|
||||
private lastMovedInfo;
|
||||
private failedMoveAttempts;
|
||||
constructor(pinned: ColumnPinnedType);
|
||||
postConstruct(): void;
|
||||
getIconName(): DragAndDropIcon;
|
||||
onDragEnter(draggingEvent: DraggingEvent): void;
|
||||
onDragging(draggingEvent?: DraggingEvent | null, fromEnter?: boolean, fakeEvent?: boolean, finished?: boolean): void;
|
||||
onDragLeave(): void;
|
||||
onDragStop(): void;
|
||||
onDragCancel(): void;
|
||||
setColumnsVisible(columns: AgColumn[] | null | undefined, visible: boolean, source: ColumnEventType): void;
|
||||
private finishColumnMoving;
|
||||
private updateDragItemContainerType;
|
||||
private handleColumnDragWhileSuppressingMovement;
|
||||
private handleColumnDragWhileAllowingMovement;
|
||||
private getAllMovingColumns;
|
||||
private getMoveColumnParams;
|
||||
private highlightHoveredColumn;
|
||||
private getNormalisedXPositionInfo;
|
||||
private getColumnMoveAndTargetInfo;
|
||||
private normaliseDirection;
|
||||
private getNormalisedColumnLeft;
|
||||
private isAttemptingToPin;
|
||||
private moveColumnsAfterHighlight;
|
||||
private clearHighlighted;
|
||||
private checkCenterForScrolling;
|
||||
private ensureIntervalStarted;
|
||||
private ensureIntervalCleared;
|
||||
private moveInterval;
|
||||
private getPinDirection;
|
||||
private attemptToPinColumns;
|
||||
destroy(): void;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { ColDef } from '../entities/colDef';
|
||||
import type { Column } from '../interfaces/iColumn';
|
||||
export declare function moveColumnByIndex(beans: BeanCollection, fromIndex: number, toIndex: number): void;
|
||||
export declare function moveColumns(beans: BeanCollection, columnsToMoveKeys: (string | ColDef | Column)[], toIndex: number): void;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { _ColumnMoveApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Columns -> Column Moving
|
||||
*/
|
||||
export declare const ColumnMoveModule: _ModuleWithApi<_ColumnMoveApi>;
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import type { ColKey } from '../columns/columnModel';
|
||||
import type { HorizontalDirection } from '../constants/direction';
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { DragSource } from '../dragAndDrop/dragAndDropService';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
import { BodyDropTarget } from './columnDrag/bodyDropTarget';
|
||||
export declare class ColumnMoveService extends BeanStub implements NamedBean {
|
||||
beanName: "colMoves";
|
||||
moveColumnByIndex(fromIndex: number, toIndex: number, source: ColumnEventType): void;
|
||||
moveColumns(columnsToMoveKeys: ColKey[], toIndex: number, source: ColumnEventType, finished?: boolean): void;
|
||||
private doesMovePassRules;
|
||||
doesOrderPassRules(gridOrder: AgColumn[]): boolean;
|
||||
getProposedColumnOrder(columnsToMove: AgColumn[], toIndex: number): AgColumn[];
|
||||
createBodyDropTarget(pinned: ColumnPinnedType, dropContainer: HTMLElement): BodyDropTarget;
|
||||
moveHeader(hDirection: HorizontalDirection, eGui: HTMLElement, column: AgColumn | AgColumnGroup, pinned: ColumnPinnedType, bean: BeanStub): void;
|
||||
setDragSourceForHeader(eSource: HTMLElement, column: AgColumn | AgColumnGroup, displayName: string | null): DragSource;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
||||
import type { GridOptionsService } from '../gridOptionsService';
|
||||
export declare function placeLockedColumns(cols: AgColumn[], gos: GridOptionsService): AgColumn[];
|
||||
export declare function doesMovePassMarryChildren(allColumnsCopy: AgColumn[], gridBalancedTree: (AgColumn | AgProvidedColumnGroup)[]): boolean;
|
||||
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
import type { ColumnModel } from '../columns/columnModel';
|
||||
import type { VisibleColsService } from '../columns/visibleColsService';
|
||||
import type { CtrlsService } from '../ctrlsService';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { GridOptionsService } from '../gridOptionsService';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
import type { ColumnMoveService } from './columnMoveService';
|
||||
export interface ColumnMoveParams {
|
||||
allMovingColumns: AgColumn[];
|
||||
isFromHeader: boolean;
|
||||
fromLeft: boolean;
|
||||
xPosition: number;
|
||||
fromEnter: boolean;
|
||||
fakeEvent: boolean;
|
||||
pinned: ColumnPinnedType;
|
||||
gos: GridOptionsService;
|
||||
colModel: ColumnModel;
|
||||
colMoves: ColumnMoveService;
|
||||
visibleCols: VisibleColsService;
|
||||
}
|
||||
export declare function getBestColumnMoveIndexFromXPosition(params: ColumnMoveParams): {
|
||||
columns: AgColumn[];
|
||||
toIndex: number;
|
||||
} | undefined;
|
||||
export declare function attemptMoveColumns(params: ColumnMoveParams & {
|
||||
finished: boolean;
|
||||
}): {
|
||||
columns: AgColumn[];
|
||||
toIndex: number;
|
||||
} | null | undefined;
|
||||
export declare function normaliseX(params: {
|
||||
x: number;
|
||||
pinned?: ColumnPinnedType;
|
||||
fromKeyboard?: boolean;
|
||||
useHeaderRow?: boolean;
|
||||
skipScrollPadding?: boolean;
|
||||
gos: GridOptionsService;
|
||||
ctrlsSvc: CtrlsService;
|
||||
}): number;
|
||||
export declare function setColumnsMoving(columns: AgColumn[], isMoving: boolean): void;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { ColDef } from '../entities/colDef';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { Column } from '../interfaces/iColumn';
|
||||
export declare function setColumnWidths(beans: BeanCollection, columnWidths: {
|
||||
key: string | ColDef | Column;
|
||||
newWidth: number;
|
||||
}[], finished?: boolean, source?: ColumnEventType): void;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { _ColumnResizeApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Columns -> Column Sizing
|
||||
*/
|
||||
export declare const ColumnResizeModule: _ModuleWithApi<_ColumnResizeApi>;
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
import type { ColKey } from '../columns/columnModel';
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { HeaderCellCtrl, IHeaderCellComp } from '../headerRendering/cells/column/headerCellCtrl';
|
||||
import type { IHeaderGroupCellComp } from '../headerRendering/cells/columnGroup/headerGroupCellCtrl';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
import { GroupResizeFeature } from './groupResizeFeature';
|
||||
import { ResizeFeature } from './resizeFeature';
|
||||
export interface ColumnResizeSet {
|
||||
columns: AgColumn[];
|
||||
ratios: number[];
|
||||
width: number;
|
||||
}
|
||||
export declare class ColumnResizeService extends BeanStub implements NamedBean {
|
||||
beanName: "colResize";
|
||||
setColumnWidths(columnWidths: {
|
||||
key: ColKey;
|
||||
newWidth: number;
|
||||
}[], shiftKey: boolean, // @takeFromAdjacent - if user has 'shift' pressed, then pixels are taken from adjacent column
|
||||
finished: boolean, // @finished - ends up in the event, tells the user if more events are to come
|
||||
source: ColumnEventType): void;
|
||||
resizeColumnSets(params: {
|
||||
resizeSets: ColumnResizeSet[];
|
||||
finished: boolean;
|
||||
source: ColumnEventType;
|
||||
}): void;
|
||||
resizeHeader(column: AgColumn, delta: number, shiftKey: boolean): void;
|
||||
createResizeFeature(pinned: ColumnPinnedType, column: AgColumn, eResize: HTMLElement, comp: IHeaderCellComp, ctrl: HeaderCellCtrl): ResizeFeature;
|
||||
createGroupResizeFeature(comp: IHeaderGroupCellComp, eResize: HTMLElement, pinned: ColumnPinnedType, columnGroup: AgColumnGroup): GroupResizeFeature;
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { IHeaderResizeFeature } from '../headerRendering/cells/abstractCell/abstractHeaderCellCtrl';
|
||||
import type { IHeaderGroupCellComp } from '../headerRendering/cells/columnGroup/headerGroupCellCtrl';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
interface ColumnSizeAndRatios {
|
||||
columnsToResize: AgColumn[];
|
||||
resizeStartWidth: number;
|
||||
resizeRatios: number[];
|
||||
groupAfterColumns?: AgColumn[];
|
||||
groupAfterStartWidth?: number;
|
||||
groupAfterRatios?: number[];
|
||||
}
|
||||
export declare class GroupResizeFeature extends BeanStub implements IHeaderResizeFeature {
|
||||
private comp;
|
||||
private eResize;
|
||||
private pinned;
|
||||
private columnGroup;
|
||||
private resizeCols?;
|
||||
private resizeStartWidth;
|
||||
private resizeRatios?;
|
||||
private resizeTakeFromCols?;
|
||||
private resizeTakeFromStartWidth?;
|
||||
private resizeTakeFromRatios?;
|
||||
constructor(comp: IHeaderGroupCellComp, eResize: HTMLElement, pinned: ColumnPinnedType, columnGroup: AgColumnGroup);
|
||||
postConstruct(): void;
|
||||
private onResizeStart;
|
||||
onResizing(finished: boolean, resizeAmount: any, source?: ColumnEventType): void;
|
||||
getInitialValues(shiftKey?: boolean): ColumnSizeAndRatios;
|
||||
resizeLeafColumnsToFit(source: ColumnEventType): void;
|
||||
private resizeColumnsFromLocalValues;
|
||||
resizeColumns(initialValues: ColumnSizeAndRatios, totalWidth: number, source: ColumnEventType, finished?: boolean): void;
|
||||
toggleColumnResizing(resizing: boolean): void;
|
||||
private getColumnsToResize;
|
||||
private normaliseDragChange;
|
||||
destroy(): void;
|
||||
}
|
||||
export {};
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { IHeaderResizeFeature } from '../headerRendering/cells/abstractCell/abstractHeaderCellCtrl';
|
||||
import type { HeaderCellCtrl, IHeaderCellComp } from '../headerRendering/cells/column/headerCellCtrl';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
export declare class ResizeFeature extends BeanStub implements IHeaderResizeFeature {
|
||||
private pinned;
|
||||
private column;
|
||||
private eResize;
|
||||
private comp;
|
||||
private ctrl;
|
||||
private lastResizeAmount;
|
||||
private resizeStartWidth;
|
||||
private resizeWithShiftKey;
|
||||
constructor(pinned: ColumnPinnedType, column: AgColumn, eResize: HTMLElement, comp: IHeaderCellComp, ctrl: HeaderCellCtrl);
|
||||
postConstruct(): void;
|
||||
private onResizing;
|
||||
private onResizeStart;
|
||||
toggleColumnResizing(resizing: boolean): void;
|
||||
private normaliseResizeAmount;
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { IAggFuncService } from '../interfaces/iAggFuncService';
|
||||
import type { ColumnExtractors, ColumnOrdering, ColumnProcessor, ColumnProcessors, IColsService } from '../interfaces/iColsService';
|
||||
import type { ColumnChangedEventType } from './columnApi';
|
||||
import { dispatchColumnChangedEvent } from './columnEventUtils';
|
||||
import type { ColKey, ColumnModel, Maybe } from './columnModel';
|
||||
import type { ColumnState, ColumnStateParams } from './columnStateUtils';
|
||||
import type { VisibleColsService } from './visibleColsService';
|
||||
export declare abstract class BaseColsService extends BeanStub implements IColsService {
|
||||
protected colModel: ColumnModel;
|
||||
protected aggFuncSvc?: IAggFuncService;
|
||||
protected visibleCols: VisibleColsService;
|
||||
protected dispatchColumnChangedEvent: typeof dispatchColumnChangedEvent;
|
||||
abstract eventName: ColumnChangedEventType;
|
||||
abstract columnProcessors: ColumnProcessors;
|
||||
abstract columnExtractors: ColumnExtractors;
|
||||
columnOrdering: ColumnOrdering;
|
||||
columns: AgColumn[];
|
||||
columnIndexMap: {
|
||||
[key: string]: number;
|
||||
};
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
sortColumns(compareFn?: (a: AgColumn, b: AgColumn) => number): void;
|
||||
setColumns(colKeys: ColKey[] | undefined, source: ColumnEventType): void;
|
||||
addColumns(colKeys: ColKey[] | undefined, source: ColumnEventType): void;
|
||||
removeColumns(colKeys: ColKey[] | undefined, source: ColumnEventType): void;
|
||||
getColumnIndex(colId: string): number | undefined;
|
||||
protected updateIndexMap: () => void;
|
||||
protected setColList(colKeys: ColKey[] | undefined, masterList: AgColumn[], eventName: IColsService['eventName'], detectOrderChange: boolean, autoGroupsNeedBuilding: boolean, columnCallback: ColumnProcessor, source: ColumnEventType): void;
|
||||
protected updateColList(keys: Maybe<ColKey>[] | undefined, masterList: AgColumn[], actionIsAdd: boolean, autoGroupsNeedBuilding: boolean, columnCallback: ColumnProcessor, eventType: IColsService['eventName'], source: ColumnEventType): void;
|
||||
extractCols(source: ColumnEventType, oldProvidedCols?: AgColumn[]): AgColumn[];
|
||||
abstract syncColumnWithState(column: AgColumn, source: ColumnEventType, getValue: <U extends keyof ColumnStateParams, S extends keyof ColumnStateParams>(key1: U, key2?: S) => {
|
||||
value1: ColumnStateParams[U] | undefined;
|
||||
value2: ColumnStateParams[S] | undefined;
|
||||
}, rowIndex: {
|
||||
[key: string]: number;
|
||||
} | null): void;
|
||||
restoreColumnOrder(columnStateAccumulator: {
|
||||
[colId: string]: ColumnState;
|
||||
}, incomingColumnState: {
|
||||
[colId: string]: ColumnState;
|
||||
}): {
|
||||
[colId: string]: ColumnState;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { ColDef, ColGroupDef, HeaderLocation } from '../entities/colDef';
|
||||
import type { Column, ColumnPinnedType } from '../interfaces/iColumn';
|
||||
import type { ApplyColumnStateParams, ColumnState } from './columnStateUtils';
|
||||
export type ColumnChangedEventType = 'columnValueChanged' | 'columnPivotChanged' | 'columnRowGroupChanged';
|
||||
export declare function getColumnDef<TValue = any, TData = any>(beans: BeanCollection, key: string | Column<TValue>): ColDef<TData, TValue> | null;
|
||||
export declare function getColumnDefs<TData = any>(beans: BeanCollection): (ColDef<TData> | ColGroupDef<TData>)[] | undefined;
|
||||
export declare function getDisplayNameForColumn(beans: BeanCollection, column: Column, location: HeaderLocation): string;
|
||||
export declare function getColumn<TValue = any, TData = any>(beans: BeanCollection, key: string | ColDef<TData, TValue> | Column<TValue>): Column<TValue> | null;
|
||||
export declare function getColumns(beans: BeanCollection): Column[] | null;
|
||||
export declare function applyColumnState(beans: BeanCollection, params: ApplyColumnStateParams): boolean;
|
||||
export declare function getColumnState(beans: BeanCollection): ColumnState[];
|
||||
export declare function resetColumnState(beans: BeanCollection): void;
|
||||
export declare function isPinning(beans: BeanCollection): boolean;
|
||||
export declare function isPinningLeft(beans: BeanCollection): boolean;
|
||||
export declare function isPinningRight(beans: BeanCollection): boolean;
|
||||
export declare function getDisplayedColAfter(beans: BeanCollection, col: Column): Column | null;
|
||||
export declare function getDisplayedColBefore(beans: BeanCollection, col: Column): Column | null;
|
||||
export declare function setColumnsVisible(beans: BeanCollection, keys: (string | Column)[], visible: boolean): void;
|
||||
export declare function setColumnsPinned(beans: BeanCollection, keys: (string | ColDef | Column)[], pinned: ColumnPinnedType): void;
|
||||
export declare function getAllGridColumns(beans: BeanCollection): Column[];
|
||||
export declare function getDisplayedLeftColumns(beans: BeanCollection): Column[];
|
||||
export declare function getDisplayedCenterColumns(beans: BeanCollection): Column[];
|
||||
export declare function getDisplayedRightColumns(beans: BeanCollection): Column[];
|
||||
export declare function getAllDisplayedColumns(beans: BeanCollection): Column[];
|
||||
export declare function getAllDisplayedVirtualColumns(beans: BeanCollection): Column[];
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { ColDef, ColGroupDef } from '../entities/colDef';
|
||||
export declare function _deepCloneDefinition<T>(object: T, keysToSkip?: string[]): T | undefined;
|
||||
export declare class ColumnDefFactory extends BeanStub implements NamedBean {
|
||||
beanName: "colDefFactory";
|
||||
private rowGroupColsSvc?;
|
||||
private pivotColsSvc?;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
getColumnDefs(colDefColsList: AgColumn[], showingPivotResult: boolean, lastOrder: AgColumn[] | null, colsList: AgColumn[]): (ColDef | ColGroupDef)[] | undefined;
|
||||
private buildColumnDefs;
|
||||
private createDefFromGroup;
|
||||
private createDefFromColumn;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { EventService } from '../eventService';
|
||||
import type { ColumnEventType } from '../events';
|
||||
export declare function dispatchColumnPinnedEvent(eventSvc: EventService, changedColumns: AgColumn[], source: ColumnEventType): void;
|
||||
export declare function dispatchColumnVisibleEvent(eventSvc: EventService, changedColumns: AgColumn[], source: ColumnEventType): void;
|
||||
export declare function dispatchColumnChangedEvent<T extends 'columnValueChanged' | 'columnPivotChanged' | 'columnRowGroupChanged'>(eventSvc: EventService, type: T, columns: AgColumn[], source: ColumnEventType): void;
|
||||
export declare function dispatchColumnResizedEvent(eventSvc: EventService, columns: AgColumn[] | null, finished: boolean, source: ColumnEventType, flexColumns?: AgColumn[] | null): void;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import { AgColumn } from '../entities/agColumn';
|
||||
import { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
||||
import type { ColDef, ColGroupDef, SortDirection } from '../entities/colDef';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { IColumnKeyCreator } from './columnKeyCreator';
|
||||
/**
|
||||
* A performant approach to _createColumnTree where the function assumes all defs have an ID.
|
||||
* Used for Pivoting.
|
||||
*/
|
||||
export declare function _createColumnTreeWithIds(beans: BeanCollection, defs: (ColDef<any, any> | ColGroupDef<any>)[] | null | undefined, primaryColumns: boolean, existingTree: (AgColumn | AgProvidedColumnGroup)[] | undefined, source: ColumnEventType): {
|
||||
columnTree: (AgColumn | AgProvidedColumnGroup)[];
|
||||
treeDepth: number;
|
||||
};
|
||||
export declare function _createColumnTree(beans: BeanCollection, defs: (ColDef<any, any> | ColGroupDef<any>)[] | null | undefined, primaryColumns: boolean, existingTree: (AgColumn | AgProvidedColumnGroup)[] | undefined, source: ColumnEventType): {
|
||||
columnTree: (AgColumn | AgProvidedColumnGroup)[];
|
||||
treeDepth: number;
|
||||
};
|
||||
export declare function _recursivelyCreateColumns(beans: BeanCollection, defs: (ColDef | ColGroupDef)[] | null, level: number, primaryColumns: boolean, existingColsCopy: AgColumn[], columnKeyCreator: IColumnKeyCreator, existingGroups: AgProvidedColumnGroup[], source: ColumnEventType): (AgColumn | AgProvidedColumnGroup)[];
|
||||
/** Updates hide, sort, sortIndex, pinned and flex */
|
||||
export declare function updateSomeColumnState(beans: BeanCollection, column: AgColumn, hide: boolean | null | undefined, sort: SortDirection | undefined, sortIndex: number | null | undefined, pinned: boolean | 'left' | 'right' | null | undefined, flex: number | null | undefined, source: ColumnEventType): void;
|
||||
export declare function _updateColumnState(beans: BeanCollection, column: AgColumn, colDef: ColDef, source: ColumnEventType): void;
|
||||
export declare function _addColumnDefaultAndTypes(beans: BeanCollection, colDef: ColDef, colId: string, isAutoCol?: boolean): ColDef;
|
||||
export declare function depthFirstOriginalTreeSearch(parent: AgProvidedColumnGroup | null, tree: (AgColumn | AgProvidedColumnGroup)[], callback: (treeNode: AgColumn | AgProvidedColumnGroup, parent: AgProvidedColumnGroup | null) => void): void;
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { ColumnEventType } from '../events';
|
||||
export declare class ColumnFlexService extends BeanStub implements NamedBean {
|
||||
beanName: "colFlex";
|
||||
private flexViewportWidth;
|
||||
refreshFlexedColumns(params?: {
|
||||
resizingCols?: AgColumn[];
|
||||
skipSetLeft?: boolean;
|
||||
viewportWidth?: number;
|
||||
source?: ColumnEventType;
|
||||
fireResizedEvent?: boolean;
|
||||
updateBodyWidths?: boolean;
|
||||
}): AgColumn[];
|
||||
initCol(column: AgColumn): void;
|
||||
setColFlex(column: AgColumn, flex: number | null): void;
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import type { BeanCollection } from '../../context/context';
|
||||
import type { HeaderLocation } from '../../entities/colDef';
|
||||
import type { Column, ColumnGroup, ProvidedColumnGroup } from '../../interfaces/iColumn';
|
||||
export declare function setColumnGroupOpened(beans: BeanCollection, group: ProvidedColumnGroup | string, newValue: boolean): void;
|
||||
export declare function getColumnGroup(beans: BeanCollection, name: string, instanceId?: number): ColumnGroup | null;
|
||||
export declare function getProvidedColumnGroup(beans: BeanCollection, name: string): ProvidedColumnGroup | null;
|
||||
export declare function getDisplayNameForColumnGroup(beans: BeanCollection, columnGroup: ColumnGroup, location: HeaderLocation): string;
|
||||
export declare function getColumnGroupState(beans: BeanCollection): {
|
||||
groupId: string;
|
||||
open: boolean;
|
||||
}[];
|
||||
export declare function setColumnGroupState(beans: BeanCollection, stateItems: {
|
||||
groupId: string;
|
||||
open: boolean;
|
||||
}[]): void;
|
||||
export declare function resetColumnGroupState(beans: BeanCollection): void;
|
||||
export declare function getLeftDisplayedColumnGroups(beans: BeanCollection): (Column | ColumnGroup)[];
|
||||
export declare function getCenterDisplayedColumnGroups(beans: BeanCollection): (Column | ColumnGroup)[];
|
||||
export declare function getRightDisplayedColumnGroups(beans: BeanCollection): (Column | ColumnGroup)[];
|
||||
export declare function getAllDisplayedColumnGroups(beans: BeanCollection): (Column | ColumnGroup)[] | null;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import type { _ColumnGroupGridApi } from '../../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../../interfaces/iModule';
|
||||
/**
|
||||
* @feature Columns -> Column Groups
|
||||
* @colGroupDef
|
||||
*/
|
||||
export declare const ColumnGroupModule: _ModuleWithApi<_ColumnGroupGridApi>;
|
||||
Vendored
+50
@@ -0,0 +1,50 @@
|
||||
import type { NamedBean } from '../../context/bean';
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { AgColumn } from '../../entities/agColumn';
|
||||
import { AgColumnGroup } from '../../entities/agColumnGroup';
|
||||
import { AgProvidedColumnGroup } from '../../entities/agProvidedColumnGroup';
|
||||
import type { ColGroupDef } from '../../entities/colDef';
|
||||
import type { ColumnEventType } from '../../events';
|
||||
import type { ColumnPinnedType } from '../../interfaces/iColumn';
|
||||
import type { IColumnKeyCreator } from '../columnKeyCreator';
|
||||
import type { GroupInstanceIdCreator } from '../groupInstanceIdCreator';
|
||||
export interface CreateGroupsParams {
|
||||
columns: AgColumn[];
|
||||
idCreator: GroupInstanceIdCreator;
|
||||
pinned: ColumnPinnedType;
|
||||
oldDisplayedGroups?: (AgColumn | AgColumnGroup)[];
|
||||
isStandaloneStructure?: boolean;
|
||||
}
|
||||
export declare class ColumnGroupService extends BeanStub implements NamedBean {
|
||||
beanName: "colGroupSvc";
|
||||
getColumnGroupState(): {
|
||||
groupId: string;
|
||||
open: boolean;
|
||||
}[];
|
||||
resetColumnGroupState(source: ColumnEventType): void;
|
||||
setColumnGroupState(stateItems: {
|
||||
groupId: string;
|
||||
open: boolean | undefined;
|
||||
}[], source: ColumnEventType): void;
|
||||
setColumnGroupOpened(key: AgProvidedColumnGroup | string | null, newValue: boolean, source: ColumnEventType): void;
|
||||
getProvidedColGroup(key: string): AgProvidedColumnGroup | null;
|
||||
getGroupAtDirection(columnGroup: AgColumnGroup, direction: 'After' | 'Before'): AgColumnGroup | null;
|
||||
getColGroupAtLevel(column: AgColumn, level: number): AgColumnGroup | null;
|
||||
updateOpenClosedVisibility(): void;
|
||||
getColumnGroup(colId: string | AgColumnGroup, partId?: number): AgColumnGroup | null;
|
||||
createColumnGroups(params: CreateGroupsParams): (AgColumn | AgColumnGroup)[];
|
||||
createProvidedColumnGroup(primaryColumns: boolean, colGroupDef: ColGroupDef, level: number, existingColumns: AgColumn[], columnKeyCreator: IColumnKeyCreator, existingGroups: AgProvidedColumnGroup[], source: ColumnEventType): AgProvidedColumnGroup;
|
||||
balanceColumnTree(unbalancedTree: (AgColumn | AgProvidedColumnGroup)[], currentDepth: number, columnDepth: number, columnKeyCreator: IColumnKeyCreator): (AgColumn | AgProvidedColumnGroup)[];
|
||||
findDepth(balancedColumnTree: (AgColumn | AgProvidedColumnGroup)[]): number;
|
||||
findMaxDepth(treeChildren: (AgColumn | AgProvidedColumnGroup)[], depth: number): number;
|
||||
/**
|
||||
* Inserts dummy group columns in the hierarchy above auto-generated columns
|
||||
* in order to ensure auto-generated columns are leaf nodes (and therefore are
|
||||
* displayed correctly)
|
||||
*/
|
||||
balanceTreeForAutoCols(autoCols: AgColumn[], depth: number): (AgColumn | AgProvidedColumnGroup)[];
|
||||
private findExistingGroup;
|
||||
private createColumnGroup;
|
||||
private mapOldGroupsById;
|
||||
private setupParentsIntoCols;
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import type { BeanCollection } from '../../context/context';
|
||||
import type { ColGroupDef } from '../../entities/colDef';
|
||||
export declare function createMergedColGroupDef(beans: BeanCollection, colGroupDef: ColGroupDef | null, groupId: string): ColGroupDef;
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import type { BeanCollection } from '../../context/context';
|
||||
import type { Column } from '../../interfaces/iColumn';
|
||||
export declare function isColumnHovered(beans: BeanCollection, column: Column): boolean;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import type { _ColumnHoverApi } from '../../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../../interfaces/iModule';
|
||||
/**
|
||||
* @feature Rows -> Styling Rows
|
||||
* @gridOption columnHoverHighlight
|
||||
*/
|
||||
export declare const ColumnHoverModule: _ModuleWithApi<_ColumnHoverApi>;
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
import type { NamedBean } from '../../context/bean';
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { AgColumn } from '../../entities/agColumn';
|
||||
import type { IHeaderCellComp } from '../../headerRendering/cells/column/headerCellCtrl';
|
||||
import type { IHeaderFilterCellComp } from '../../headerRendering/cells/floatingFilter/iHeaderFilterCellComp';
|
||||
import type { ICellComp } from '../../rendering/cell/cellCtrl';
|
||||
export declare class ColumnHoverService extends BeanStub implements NamedBean {
|
||||
beanName: "colHover";
|
||||
private selectedColumns;
|
||||
postConstruct(): void;
|
||||
setMouseOver(columns: AgColumn[]): void;
|
||||
clearMouseOver(): void;
|
||||
isHovered(column: AgColumn): boolean;
|
||||
addHeaderColumnHoverListener(compBean: BeanStub, comp: IHeaderCellComp, column: AgColumn): void;
|
||||
onCellColumnHover(column: AgColumn, cellComp?: ICellComp): void;
|
||||
addHeaderFilterColumnHoverListener(compBean: BeanStub, comp: IHeaderFilterCellComp, column: AgColumn, eGui: HTMLElement): void;
|
||||
createHoverFeature(compBean: BeanStub, columns: AgColumn[], eGui: HTMLElement): void;
|
||||
private updateState;
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { AgColumn } from '../../entities/agColumn';
|
||||
export declare class HoverFeature extends BeanStub {
|
||||
private readonly columns;
|
||||
private readonly element;
|
||||
constructor(columns: AgColumn[], element: HTMLElement);
|
||||
private destroyManagedListeners;
|
||||
postConstruct(): void;
|
||||
private enableFeature;
|
||||
destroy(): void;
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
export type IColumnKeyCreator = {
|
||||
getUniqueKey(colId?: string | null, colField?: string | null): string;
|
||||
};
|
||||
export declare class ColumnKeyCreator implements IColumnKeyCreator {
|
||||
private existingKeys;
|
||||
addExistingKeys(keys: string[]): void;
|
||||
getUniqueKey(colId?: string | null, colField?: string | null): string;
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import { AgColumn } from '../entities/agColumn';
|
||||
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
||||
import type { ColDef, ColGroupDef } from '../entities/colDef';
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { PropertyChangedEvent, PropertyValueChangedEvent } from '../gridOptionsService';
|
||||
import type { Column } from '../interfaces/iColumn';
|
||||
export type ColKey<TData = any, TValue = any> = string | ColDef<TData, TValue> | Column<TValue>;
|
||||
export type Maybe<T> = T | null | undefined;
|
||||
export interface ColumnCollections {
|
||||
tree: (AgColumn | AgProvidedColumnGroup)[];
|
||||
treeDepth: number;
|
||||
list: AgColumn[];
|
||||
map: {
|
||||
[id: string]: AgColumn;
|
||||
};
|
||||
}
|
||||
export declare class ColumnModel extends BeanStub implements NamedBean {
|
||||
beanName: "colModel";
|
||||
private colDefs?;
|
||||
colDefCols?: ColumnCollections;
|
||||
cols?: ColumnCollections;
|
||||
private pivotMode;
|
||||
private showingPivotResult;
|
||||
private lastOrder;
|
||||
private lastPivotOrder;
|
||||
colSpanActive: boolean;
|
||||
ready: boolean;
|
||||
changeEventsDispatching: boolean;
|
||||
postConstruct(): void;
|
||||
private createColsFromColDefs;
|
||||
refreshCols(newColDefs: boolean): void;
|
||||
private createColumnsForService;
|
||||
private selectCols;
|
||||
getColsToShow(): AgColumn[];
|
||||
refreshAll(source: ColumnEventType): void;
|
||||
setColsVisible(keys: (string | AgColumn)[], visible: boolean | undefined, source: ColumnEventType): void;
|
||||
/**
|
||||
* Restores provided columns order to the previous order in this.lastPivotOrder / this.lastOrder
|
||||
* If columns are not in the last order:
|
||||
* - Check column groups, and apply column after the last column in the lowest shared group
|
||||
* - If no sibling is found, apply the column at the end of the cols
|
||||
*/
|
||||
private restoreColOrder;
|
||||
private positionLockedCols;
|
||||
private saveColOrder;
|
||||
getColumnDefs(): (ColDef | ColGroupDef)[] | undefined;
|
||||
private setColSpanActive;
|
||||
isPivotMode(): boolean;
|
||||
private setPivotMode;
|
||||
isPivotActive(): boolean;
|
||||
recreateColumnDefs(e: PropertyChangedEvent | PropertyValueChangedEvent<keyof GridOptions>): void;
|
||||
setColumnDefs(columnDefs: (ColDef | ColGroupDef)[], source: ColumnEventType): void;
|
||||
destroy(): void;
|
||||
getColTree(): (AgColumn | AgProvidedColumnGroup)[];
|
||||
getColDefColTree(): (AgColumn | AgProvidedColumnGroup)[];
|
||||
getColDefCols(): AgColumn[] | null;
|
||||
getCols(): AgColumn[];
|
||||
forAllCols(callback: (column: AgColumn) => void): void;
|
||||
getColsForKeys(keys: ColKey[]): AgColumn[];
|
||||
getColDefCol(key: ColKey): AgColumn | null;
|
||||
getCol(key: Maybe<ColKey>): AgColumn | null;
|
||||
/**
|
||||
* Get column exclusively by ID.
|
||||
*
|
||||
* Note getCol/getColFromCollection have poor performance when col has been removed.
|
||||
*/
|
||||
getColById(key: string): AgColumn | null;
|
||||
getColFromCollection(key: ColKey, cols?: ColumnCollections): AgColumn | null;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import type { _ColumnGridApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi, _ModuleWithoutApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const DataTypeModule: _ModuleWithoutApi;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const ColumnFlexModule: _ModuleWithoutApi;
|
||||
/**
|
||||
* @feature Columns
|
||||
*/
|
||||
export declare const ColumnApiModule: _ModuleWithApi<_ColumnGridApi<any>>;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
||||
import type { HeaderLocation } from '../entities/colDef';
|
||||
export declare class ColumnNameService extends BeanStub implements NamedBean {
|
||||
beanName: "colNames";
|
||||
getDisplayNameForColumn(column: AgColumn | null, location: HeaderLocation, includeAggFunc?: boolean): string | null;
|
||||
getDisplayNameForProvidedColumnGroup(columnGroup: AgColumnGroup | null, providedColumnGroup: AgProvidedColumnGroup | null, location: HeaderLocation): string | null;
|
||||
getDisplayNameForColumnGroup(columnGroup: AgColumnGroup, location: HeaderLocation): string | null;
|
||||
private getHeaderName;
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { IAggFunc } from '../entities/colDef';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
export interface ColumnStateParams {
|
||||
/** True if the column is hidden */
|
||||
hide?: boolean | null;
|
||||
/** Width of the column in pixels */
|
||||
width?: number;
|
||||
/** Column's flex if flex is set */
|
||||
flex?: number | null;
|
||||
/** Sort applied to the column */
|
||||
sort?: 'asc' | 'desc' | null;
|
||||
/** The order of the sort, if sorting by many columns */
|
||||
sortIndex?: number | null;
|
||||
/** The aggregation function applied */
|
||||
aggFunc?: string | IAggFunc | null;
|
||||
/** True if pivot active */
|
||||
pivot?: boolean | null;
|
||||
/** The order of the pivot, if pivoting by many columns */
|
||||
pivotIndex?: number | null;
|
||||
/** Set if column is pinned */
|
||||
pinned?: ColumnPinnedType;
|
||||
/** True if row group active */
|
||||
rowGroup?: boolean | null;
|
||||
/** The order of the row group, if grouping by many columns */
|
||||
rowGroupIndex?: number | null;
|
||||
}
|
||||
export interface ColumnState extends ColumnStateParams {
|
||||
/** ID of the column */
|
||||
colId: string;
|
||||
}
|
||||
export interface ApplyColumnStateParams {
|
||||
/** The state from `getColumnState` */
|
||||
state?: ColumnState[];
|
||||
/** Whether column order should be applied */
|
||||
applyOrder?: boolean;
|
||||
/** State to apply to columns where state is missing for those columns */
|
||||
defaultState?: ColumnStateParams;
|
||||
}
|
||||
export declare function _applyColumnState(beans: BeanCollection, params: ApplyColumnStateParams, source: ColumnEventType): boolean;
|
||||
export declare function _resetColumnState(beans: BeanCollection, source: ColumnEventType): void;
|
||||
/**
|
||||
* calculates what events to fire between column state changes. gets used when:
|
||||
* a) apply column state
|
||||
* b) apply new column definitions (so changes from old cols)
|
||||
*/
|
||||
export declare function _compareColumnStatesAndDispatchEvents(beans: BeanCollection, source: ColumnEventType): () => void;
|
||||
export declare function _getColumnState(beans: BeanCollection): ColumnState[];
|
||||
export declare function getColumnStateFromColDef(column: AgColumn): ColumnState;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgProvidedColumnGroup } from '../entities/agProvidedColumnGroup';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { PropertyChangedSource } from '../gridOptionsService';
|
||||
import type { ColKey, ColumnCollections } from './columnModel';
|
||||
import type { ColumnState, ColumnStateParams } from './columnStateUtils';
|
||||
export declare const GROUP_AUTO_COLUMN_ID: "ag-Grid-AutoColumn";
|
||||
export declare const SELECTION_COLUMN_ID: "ag-Grid-SelectionColumn";
|
||||
export declare const ROW_NUMBERS_COLUMN_ID: "ag-Grid-RowNumbersColumn";
|
||||
export declare function _getColumnsFromTree(rootColumns: (AgColumn | AgProvidedColumnGroup)[]): AgColumn[];
|
||||
export declare function getWidthOfColsInList(columnList: AgColumn[]): number;
|
||||
export declare function _destroyColumnTree(beans: BeanCollection, oldTree: (AgColumn | AgProvidedColumnGroup)[] | null | undefined, newTree?: (AgColumn | AgProvidedColumnGroup)[] | null): void;
|
||||
export declare function isColumnGroupAutoCol(col: AgColumn): boolean;
|
||||
export declare function isColumnSelectionCol(col: ColKey): boolean;
|
||||
export declare function isRowNumberCol(col: ColKey): boolean;
|
||||
export declare function isSpecialCol(col: ColKey): boolean;
|
||||
export declare function convertColumnTypes(type: string | string[]): string[];
|
||||
export declare function _areColIdsEqual(colsA: AgColumn[] | null, colsB: AgColumn[] | null): boolean;
|
||||
export declare function _updateColsMap(cols: ColumnCollections): void;
|
||||
export declare function _convertColumnEventSourceType(source: PropertyChangedSource): ColumnEventType;
|
||||
export declare function _columnsMatch(column: AgColumn, key: ColKey): boolean;
|
||||
export declare const getValueFactory: (stateItem: ColumnState | null, defaultState: ColumnStateParams | undefined) => <U extends keyof ColumnStateParams, S extends keyof ColumnStateParams>(key1: U, key2?: S | undefined) => {
|
||||
value1: ColumnStateParams[U] | undefined;
|
||||
value2: ColumnStateParams[S] | undefined;
|
||||
};
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { RowNode } from '../entities/rowNode';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
export declare class ColumnViewportService extends BeanStub implements NamedBean {
|
||||
beanName: "colViewport";
|
||||
private visibleCols;
|
||||
private colModel;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
private colsWithinViewport;
|
||||
private headerColsWithinViewport;
|
||||
colsWithinViewportHash: string;
|
||||
private rowsOfHeadersToRenderLeft;
|
||||
private rowsOfHeadersToRenderRight;
|
||||
private rowsOfHeadersToRenderCenter;
|
||||
private columnsToRenderLeft;
|
||||
private columnsToRenderRight;
|
||||
private columnsToRenderCenter;
|
||||
private scrollWidth;
|
||||
private scrollPosition;
|
||||
private viewportLeft;
|
||||
private viewportRight;
|
||||
private suppressColumnVirtualisation;
|
||||
postConstruct(): void;
|
||||
setScrollPosition(scrollWidth: number, scrollPosition: number, afterScroll?: boolean): void;
|
||||
/**
|
||||
* Returns the columns that are currently rendered in the viewport.
|
||||
*/
|
||||
getColumnHeadersToRender(type: ColumnPinnedType): AgColumn[];
|
||||
/**
|
||||
* Returns the column groups that are currently rendered in the viewport at a specific header row index.
|
||||
*/
|
||||
getHeadersToRender(type: ColumnPinnedType, depth: number): AgColumnGroup[];
|
||||
private extractViewportColumns;
|
||||
private isColumnVirtualisationSuppressed;
|
||||
clear(): void;
|
||||
private isColumnInHeaderViewport;
|
||||
private isColumnInRowViewport;
|
||||
getViewportColumns(): AgColumn[];
|
||||
getColsWithinViewport(rowNode: RowNode): AgColumn[];
|
||||
checkViewportColumns(afterScroll?: boolean): void;
|
||||
private calculateHeaderRows;
|
||||
private extractViewport;
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { ColDef } from '../entities/colDef';
|
||||
import type { BaseCellDataType, CoreDataTypeDefinition, DataTypeDefinition, DataTypeFormatValueFunc } from '../entities/dataType';
|
||||
export declare class DataTypeService extends BeanStub implements NamedBean {
|
||||
beanName: "dataTypeSvc";
|
||||
private colModel;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
private dataTypeDefinitions;
|
||||
private dataTypeMatchers;
|
||||
private formatValueFuncs;
|
||||
isPendingInference: boolean;
|
||||
private hasObjectValueParser;
|
||||
private hasObjectValueFormatter;
|
||||
private initialData;
|
||||
private isColumnTypeOverrideInDataTypeDefinitions;
|
||||
private columnStateUpdatesPendingInference;
|
||||
private columnStateUpdateListenerDestroyFuncs;
|
||||
postConstruct(): void;
|
||||
private processDataTypeDefinitions;
|
||||
/**
|
||||
* Sorts the keys in the matchers object.
|
||||
* Does not mutate the original object, creates a copy of it with sorted keys instead.
|
||||
*/
|
||||
private sortKeysInMatchers;
|
||||
private processDataTypeDefinition;
|
||||
updateColDefAndGetColumnType(colDef: ColDef, userColDef: ColDef, colId: string): string | string[] | undefined;
|
||||
addColumnListeners(column: AgColumn): void;
|
||||
private canInferCellDataType;
|
||||
private inferCellDataType;
|
||||
private getInitialData;
|
||||
private initWaitForRowData;
|
||||
private processColumnsPendingInference;
|
||||
private generateColumnStateForRowGroupAndPivotIndexes;
|
||||
private resetColDefIntoCol;
|
||||
private getDateStringTypeDefinition;
|
||||
getDateParserFunction(column?: AgColumn | null): (value: string | undefined) => Date | undefined;
|
||||
getDateFormatterFunction(column?: AgColumn | null): (value: Date | undefined) => string | undefined;
|
||||
getDateIncludesTimeFlag(cellDataType?: any): boolean;
|
||||
getDataTypeDefinition(column: AgColumn): DataTypeDefinition | CoreDataTypeDefinition | undefined;
|
||||
getBaseDataType(column: AgColumn): BaseCellDataType | undefined;
|
||||
checkType(column: AgColumn, value: any): boolean;
|
||||
validateColDef(colDef: ColDef): void;
|
||||
postProcess(colDef: ColDef): void;
|
||||
getFormatValue(cellDataType: string): DataTypeFormatValueFunc | undefined;
|
||||
isColPendingInference(colId: string): boolean;
|
||||
private columnDefinitionPropsPerDataType;
|
||||
private setColDefPropertiesForBaseDataType;
|
||||
private getDateObjectTypeDef;
|
||||
private getDateStringTypeDef;
|
||||
private getDefaultDataTypes;
|
||||
private destroyColumnStateUpdateListeners;
|
||||
destroy(): void;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export declare class GroupInstanceIdCreator {
|
||||
private existingIds;
|
||||
getInstanceIdForKey(key: string): number;
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import { AgColumn } from '../entities/agColumn';
|
||||
import type { PropertyValueChangedEvent } from '../gridOptionsService';
|
||||
import type { IColumnCollectionService } from '../interfaces/iColumnCollectionService';
|
||||
import type { ColKey, ColumnCollections } from './columnModel';
|
||||
export declare class SelectionColService extends BeanStub implements NamedBean, IColumnCollectionService {
|
||||
beanName: "selectionColSvc";
|
||||
columns: ColumnCollections | null;
|
||||
postConstruct(): void;
|
||||
addColumns(cols: ColumnCollections): void;
|
||||
createColumns(cols: ColumnCollections, updateOrders: (callback: (cols: AgColumn[] | null) => AgColumn[] | null) => void): void;
|
||||
updateColumns(event: PropertyValueChangedEvent<'selectionColumnDef'>): void;
|
||||
getColumn(key: ColKey): AgColumn | null;
|
||||
getColumns(): AgColumn[] | null;
|
||||
isSelectionColumnEnabled(): boolean;
|
||||
private createSelectionColDef;
|
||||
private generateSelectionCols;
|
||||
private onSelectionOptionsChanged;
|
||||
destroy(): void;
|
||||
/**
|
||||
* Refreshes visibility of the selection column based on which columns are currently visible.
|
||||
* Called by the VisibleColsService with the columns that are currently visible in left/center/right
|
||||
* containers. This method *MUTATES* those arrays directly.
|
||||
*
|
||||
* The selection column should be visible if all of the following are true
|
||||
* - The selection column is not disabled
|
||||
* - The number of visible columns excluding the selection column and row numbers column is greater than 0
|
||||
* @param leftCols Visible columns in the left-pinned container
|
||||
* @param centerCols Visible columns in the center viewport
|
||||
* @param rightCols Visible columns in the right-pinned container
|
||||
*/
|
||||
refreshVisibility(leftCols: AgColumn[], centerCols: AgColumn[], rightCols: AgColumn[]): void;
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { AgColumn } from '../entities/agColumn';
|
||||
import type { AgColumnGroup } from '../entities/agColumnGroup';
|
||||
import type { RowNode } from '../entities/rowNode';
|
||||
import type { ColumnEventType } from '../events';
|
||||
import type { ColumnPinnedType } from '../interfaces/iColumn';
|
||||
export declare class VisibleColsService extends BeanStub implements NamedBean {
|
||||
beanName: "visibleCols";
|
||||
treeLeft: (AgColumn | AgColumnGroup)[];
|
||||
treeRight: (AgColumn | AgColumnGroup)[];
|
||||
treeCenter: (AgColumn | AgColumnGroup)[];
|
||||
private colsAndGroupsMap;
|
||||
leftCols: AgColumn[];
|
||||
rightCols: AgColumn[];
|
||||
centerCols: AgColumn[];
|
||||
allCols: AgColumn[];
|
||||
headerGroupRowCount: number;
|
||||
autoHeightCols: AgColumn[];
|
||||
bodyWidth: number;
|
||||
private leftWidth;
|
||||
private rightWidth;
|
||||
isBodyWidthDirty: boolean;
|
||||
private ariaOrderColumns;
|
||||
refresh(source: ColumnEventType, skipTreeBuild?: boolean): void;
|
||||
private getHeaderRowCount;
|
||||
updateBodyWidths(): void;
|
||||
setLeftValues(source: ColumnEventType): void;
|
||||
private setFirstRightAndLastLeftPinned;
|
||||
private buildTrees;
|
||||
clear(): void;
|
||||
private joinColsAriaOrder;
|
||||
getAriaColIndex(colOrGroup: AgColumn | AgColumnGroup): number;
|
||||
private setLeftValuesOfGroups;
|
||||
private setLeftValuesOfCols;
|
||||
private joinCols;
|
||||
getAllTrees(): (AgColumn | AgColumnGroup)[] | null;
|
||||
isColDisplayed(column: AgColumn): boolean;
|
||||
getLeftColsForRow(rowNode: RowNode): AgColumn[];
|
||||
getRightColsForRow(rowNode: RowNode): AgColumn[];
|
||||
getColsForRow(rowNode: RowNode, displayedColumns: AgColumn[], filterCallback?: (column: AgColumn) => boolean, emptySpaceBeforeColumn?: (column: AgColumn) => boolean): AgColumn[];
|
||||
getContainerWidth(pinned: ColumnPinnedType): number;
|
||||
getColBefore(col: AgColumn): AgColumn | null;
|
||||
isPinningLeft(): boolean;
|
||||
isPinningRight(): boolean;
|
||||
private updateColsAndGroupsMap;
|
||||
isVisible(item: AgColumn | AgColumnGroup): boolean;
|
||||
getFirstColumn(): AgColumn | null;
|
||||
getColAfter(col: AgColumn): AgColumn | null;
|
||||
getColsLeftWidth(): number;
|
||||
getDisplayedColumnsRightWidth(): number;
|
||||
isColAtEdge(col: AgColumn | AgColumnGroup, edge: 'first' | 'last'): boolean;
|
||||
}
|
||||
export declare function depthFirstAllColumnTreeSearch(tree: (AgColumn | AgColumnGroup)[] | null, useDisplayedChildren: boolean, callback: (treeNode: AgColumn | AgColumnGroup) => void): void;
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { BeanStub } from '../context/beanStub';
|
||||
import type { Context } from '../context/context';
|
||||
/**
|
||||
* An EmptyBean can be used to manage the lifecycle of event handlers that are tied to a component instead of a controller.
|
||||
* Used in React to avoid duplicating listeners and setup logic while React is running in StrictMode where setComp will be called multiple times.
|
||||
* This is only required for the Components where the ctrl is managed by AG Grid and passed into the React component.
|
||||
* Both React and the Ctrl can decide to destroy the EmptyBean which will clean up listeners setup against it.
|
||||
*/
|
||||
export declare class EmptyBean extends BeanStub {
|
||||
}
|
||||
/**
|
||||
* Sets up the logic for managing the lifecycle of a compBean against a ctrl so that we always cleanup
|
||||
* our listeners and destroy the compBean when the ctrl is destroyed no matter which is destroyed first.
|
||||
* Closely related to React StrictMode as the compBean is provided from React so it can double render
|
||||
* and correctly cleanup listeners from the first render.
|
||||
* @param ctrl Ctrl that has setComp called against it
|
||||
* @param ctx Context to use to destroy the compBean
|
||||
* @param compBean Optional compBean to use, if not provided, the ctrl will be used
|
||||
* @returns The compBean if provided, otherwise the ctrl
|
||||
*/
|
||||
export declare function setupCompBean(ctrl: BeanStub<any>, ctx: Context, compBean: BeanStub<any> | undefined): BeanStub<any>;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import type { NamedBean } from '../../context/bean';
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { ComponentType } from '../../interfaces/iUserCompDetails';
|
||||
export declare class AgComponentUtils extends BeanStub implements NamedBean {
|
||||
beanName: "agCompUtils";
|
||||
adaptFunction(type: ComponentType, jsCompFunc: any): any;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import type { _ModuleWithoutApi } from '../../interfaces/iModule';
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const CellRendererFunctionModule: _ModuleWithoutApi;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import type { IComponent } from '../../interfaces/iComponent';
|
||||
import type { ComponentType } from '../../interfaces/iUserCompDetails';
|
||||
/**
|
||||
* B the business interface (ie IHeader)
|
||||
* A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
|
||||
*/
|
||||
export interface FrameworkComponentWrapper {
|
||||
wrap<A extends IComponent<any>>(frameworkComponent: {
|
||||
new (): any;
|
||||
} | null, mandatoryMethods: string[] | undefined, optionalMethods: string[] | undefined, componentType: ComponentType): A;
|
||||
}
|
||||
export interface WrappableInterface {
|
||||
hasMethod(name: string): boolean;
|
||||
callMethod(name: string, args: IArguments): void;
|
||||
addMethod(name: string, callback: (...args: any[]) => any): void;
|
||||
}
|
||||
export declare abstract class BaseComponentWrapper<F extends WrappableInterface> implements FrameworkComponentWrapper {
|
||||
wrap<A extends IComponent<any>>(OriginalConstructor: {
|
||||
new (): any;
|
||||
}, mandatoryMethods: string[] | undefined, optionalMethods: string[] | undefined, componentType: ComponentType): A;
|
||||
protected abstract createWrapper(OriginalConstructor: {
|
||||
new (): any;
|
||||
}, componentType: ComponentType): F;
|
||||
private createMethod;
|
||||
protected createMethodProxy(wrapper: F, methodName: string, mandatory: boolean): (...args: any[]) => any;
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import type { NamedBean } from '../../context/bean';
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { DynamicBeanName, ProcessParamsFunc } from '../../context/context';
|
||||
import type { Module } from '../../interfaces/iModule';
|
||||
import type { IconName, IconValue } from '../../utils/icon';
|
||||
import type { AgComponentSelector, ComponentSelector } from '../../widgets/component';
|
||||
export declare class Registry extends BeanStub implements NamedBean {
|
||||
beanName: "registry";
|
||||
private agGridDefaults;
|
||||
private agGridDefaultOverrides;
|
||||
private jsComps;
|
||||
private dynamicBeans;
|
||||
private selectors;
|
||||
private icons;
|
||||
postConstruct(): void;
|
||||
registerModule(module: Module): void;
|
||||
getUserComponent(propertyName: string, name: string): {
|
||||
componentFromFramework: boolean;
|
||||
component: any;
|
||||
params?: any;
|
||||
processParams?: ProcessParamsFunc;
|
||||
} | null;
|
||||
createDynamicBean<T>(name: DynamicBeanName, mandatory: boolean, ...args: any[]): T | undefined;
|
||||
getSelector(name: AgComponentSelector): ComponentSelector | undefined;
|
||||
getIcon(name: IconName): IconValue | undefined;
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare function _unwrapUserComp<T>(comp: T): T;
|
||||
Vendored
+53
@@ -0,0 +1,53 @@
|
||||
import type { IDragAndDropImageComponent, IDragAndDropImageParams } from '../../dragAndDrop/dragAndDropImageComponent';
|
||||
import type { ColDef } from '../../entities/colDef';
|
||||
import type { IFloatingFilterComp, IFloatingFilterParams } from '../../filter/floating/floatingFilter';
|
||||
import type { IHeaderGroupComp, IHeaderGroupParams, IInnerHeaderGroupComponent } from '../../headerRendering/cells/columnGroup/headerGroupComp';
|
||||
import type { IDateComp, IDateParams } from '../../interfaces/dateComponent';
|
||||
import type { ICellEditorComp, ICellEditorParams } from '../../interfaces/iCellEditor';
|
||||
import type { AgGridCommon } from '../../interfaces/iCommon';
|
||||
import type { IComponent } from '../../interfaces/iComponent';
|
||||
import type { IFilterComp, IFilterDef, IFilterParams, SharedFilterParams, SharedFilterUi } from '../../interfaces/iFilter';
|
||||
import type { IFrameworkOverrides } from '../../interfaces/iFrameworkOverrides';
|
||||
import type { IHeaderComp, IHeaderParams, IInnerHeaderComponent } from '../../interfaces/iHeader';
|
||||
import type { ILoadingCellRendererComp } from '../../interfaces/iLoadingCellRenderer';
|
||||
import type { UserCompDetails } from '../../interfaces/iUserCompDetails';
|
||||
import type { ICellRendererComp, ICellRendererParams } from '../../rendering/cellRenderers/iCellRenderer';
|
||||
import type { ILoadingOverlayComp, ILoadingOverlayParams } from '../../rendering/overlays/loadingOverlayComponent';
|
||||
import type { INoRowsOverlayComp, INoRowsOverlayParams } from '../../rendering/overlays/noRowsOverlayComponent';
|
||||
import type { ITooltipComp, ITooltipParams } from '../../tooltip/tooltipComponent';
|
||||
import type { UserComponentFactory } from './userComponentFactory';
|
||||
export declare function _getDragAndDropImageCompDetails(userCompFactory: UserComponentFactory, params: IDragAndDropImageParams): UserCompDetails<IDragAndDropImageComponent> | undefined;
|
||||
export declare function _getInnerCellRendererDetails<TDefinition = any>(userCompFactory: UserComponentFactory, def: TDefinition, params: ICellRendererParams): UserCompDetails<ICellRendererComp> | undefined;
|
||||
export declare function _getHeaderCompDetails(userCompFactory: UserComponentFactory, colDef: ColDef, params: IHeaderParams): UserCompDetails<IHeaderComp> | undefined;
|
||||
export declare function _getInnerHeaderCompDetails(userCompFactory: UserComponentFactory, headerCompParams: IHeaderParams, params: IHeaderParams): UserCompDetails<IInnerHeaderComponent> | undefined;
|
||||
export declare function _getHeaderGroupCompDetails(userCompFactory: UserComponentFactory, params: IHeaderGroupParams): UserCompDetails<IHeaderGroupComp> | undefined;
|
||||
export declare function _getInnerHeaderGroupCompDetails(userCompFactory: UserComponentFactory, headerGroupCompParams: IHeaderGroupParams, params: IHeaderGroupParams): UserCompDetails<IInnerHeaderGroupComponent> | undefined;
|
||||
export declare function _getFullWidthCellRendererDetails(userCompFactory: UserComponentFactory, params: ICellRendererParams): UserCompDetails<ICellRendererComp> | undefined;
|
||||
export declare function _getFullWidthLoadingCellRendererDetails(userCompFactory: UserComponentFactory, params: ICellRendererParams): UserCompDetails<ILoadingCellRendererComp> | undefined;
|
||||
export declare function _getFullWidthGroupCellRendererDetails(userCompFactory: UserComponentFactory, params: ICellRendererParams): UserCompDetails<ICellRendererComp> | undefined;
|
||||
export declare function _getFullWidthDetailCellRendererDetails(userCompFactory: UserComponentFactory, params: ICellRendererParams): UserCompDetails<ICellRendererComp> | undefined;
|
||||
export declare function _getCellRendererDetails<TDefinition = ColDef, TParams extends AgGridCommon<any, any> = ICellRendererParams>(userCompFactory: UserComponentFactory, def: TDefinition, params: TParams): UserCompDetails<ICellRendererComp> | undefined;
|
||||
export declare function _getEditorRendererDetails<TDefinition, TEditorParams extends AgGridCommon<any, any>>(userCompFactory: UserComponentFactory, def: TDefinition, params: TEditorParams): UserCompDetails | undefined;
|
||||
export declare function _getLoadingCellRendererDetails(userCompFactory: UserComponentFactory, def: ColDef, params: ICellRendererParams): UserCompDetails<ILoadingCellRendererComp> | undefined;
|
||||
export declare function _getCellEditorDetails(userCompFactory: UserComponentFactory, def: ColDef, params: ICellEditorParams): UserCompDetails<ICellEditorComp> | undefined;
|
||||
/**
|
||||
* @param defaultFilter provided filters only
|
||||
*/
|
||||
export declare function _getFilterDetails<TFilter extends SharedFilterUi & IComponent<SharedFilterParams> = IFilterComp>(userCompFactory: UserComponentFactory, def: IFilterDef, params: SharedFilterParams, defaultFilter: string): UserCompDetails<TFilter> | undefined;
|
||||
export declare function _getDateCompDetails(userCompFactory: UserComponentFactory, def: ColDef, params: IDateParams): UserCompDetails<IDateComp> | undefined;
|
||||
export declare function _getLoadingOverlayCompDetails(userCompFactory: UserComponentFactory, params: ILoadingOverlayParams): UserCompDetails<ILoadingOverlayComp> | undefined;
|
||||
export declare function _getNoRowsOverlayCompDetails(userCompFactory: UserComponentFactory, params: INoRowsOverlayParams): UserCompDetails<INoRowsOverlayComp> | undefined;
|
||||
export declare function _getTooltipCompDetails(userCompFactory: UserComponentFactory, params: ITooltipParams): UserCompDetails<ITooltipComp> | undefined;
|
||||
/**
|
||||
* @param defaultFloatingFilter provided floating filters only
|
||||
*/
|
||||
export declare function _getFloatingFilterCompDetails(userCompFactory: UserComponentFactory, def: IFilterDef, params: IFloatingFilterParams<any>, defaultFloatingFilter: string): UserCompDetails<IFloatingFilterComp> | undefined;
|
||||
export declare function _getFilterCompKeys(frameworkOverrides: IFrameworkOverrides, def: IFilterDef): {
|
||||
compName?: string | undefined;
|
||||
jsComp: any;
|
||||
fwComp: any;
|
||||
paramsFromSelector: any;
|
||||
popupFromSelector?: boolean | undefined;
|
||||
popupPositionFromSelector?: "over" | "under" | undefined;
|
||||
};
|
||||
export declare function _mergeFilterParamsWithApplicationProvidedParams(userCompFactory: UserComponentFactory, defObject: IFilterDef, paramsFromGrid: IFilterParams): IFilterParams;
|
||||
yuthon_report/static/src/lib/ag-grid-c/dist/types/src/components/framework/userComponentFactory.d.ts
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
import type { NamedBean } from '../../context/bean';
|
||||
import { BeanStub } from '../../context/beanStub';
|
||||
import type { BeanCollection, ProcessParamsFunc } from '../../context/context';
|
||||
import type { AgGridCommon } from '../../interfaces/iCommon';
|
||||
import type { IComponent } from '../../interfaces/iComponent';
|
||||
import type { IFrameworkOverrides } from '../../interfaces/iFrameworkOverrides';
|
||||
import type { ComponentType, UserCompDetails } from '../../interfaces/iUserCompDetails';
|
||||
export declare function _getUserCompKeys<TDefinition>(frameworkOverrides: IFrameworkOverrides, defObject: TDefinition, type: ComponentType, params?: any): {
|
||||
compName?: string;
|
||||
jsComp: any;
|
||||
fwComp: any;
|
||||
paramsFromSelector: any;
|
||||
popupFromSelector?: boolean;
|
||||
popupPositionFromSelector?: 'over' | 'under';
|
||||
};
|
||||
export declare class UserComponentFactory extends BeanStub implements NamedBean {
|
||||
beanName: "userCompFactory";
|
||||
private gridOptions;
|
||||
private agCompUtils?;
|
||||
private registry;
|
||||
private frameworkCompWrapper?;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
getCompDetailsFromGridOptions(type: ComponentType, defaultName: string | undefined, params: AgGridCommon<any, any>, mandatory?: boolean): UserCompDetails | undefined;
|
||||
getCompDetails<TDefinition, TComp extends IComponent<any>>(defObject: TDefinition, type: ComponentType, defaultName: string | undefined, params: AgGridCommon<any, any>, mandatory?: boolean): UserCompDetails<TComp> | undefined;
|
||||
private newAgStackInstance;
|
||||
/**
|
||||
* merges params with application provided params
|
||||
* used by Floating Filter
|
||||
*/
|
||||
mergeParams<TDefinition>(defObject: TDefinition, type: ComponentType, paramsFromGrid: AgGridCommon<any, any>, paramsFromSelector?: any, defaultCompParams?: any, defaultCompProcessParams?: ProcessParamsFunc): any;
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export type VerticalDirection = 'up' | 'down';
|
||||
export type HorizontalDirection = 'left' | 'right';
|
||||
export declare enum Direction {
|
||||
Vertical = 0,
|
||||
Horizontal = 1
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
export declare const KeyCode: {
|
||||
readonly BACKSPACE: "Backspace";
|
||||
readonly TAB: "Tab";
|
||||
readonly ENTER: "Enter";
|
||||
readonly ESCAPE: "Escape";
|
||||
readonly SPACE: " ";
|
||||
readonly LEFT: "ArrowLeft";
|
||||
readonly UP: "ArrowUp";
|
||||
readonly RIGHT: "ArrowRight";
|
||||
readonly DOWN: "ArrowDown";
|
||||
readonly DELETE: "Delete";
|
||||
readonly F2: "F2";
|
||||
readonly PAGE_UP: "PageUp";
|
||||
readonly PAGE_DOWN: "PageDown";
|
||||
readonly PAGE_HOME: "Home";
|
||||
readonly PAGE_END: "End";
|
||||
readonly A: "KeyA";
|
||||
readonly C: "KeyC";
|
||||
readonly D: "KeyD";
|
||||
readonly V: "KeyV";
|
||||
readonly X: "KeyX";
|
||||
readonly Y: "KeyY";
|
||||
readonly Z: "KeyZ";
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { BeanCollection, BeanName } from './context';
|
||||
import type { GenericBean } from './genericBean';
|
||||
export interface Bean extends GenericBean<BeanName, BeanCollection> {
|
||||
}
|
||||
/** For any Bean that is required via auto wired or extracted by name from the Context must have a beanName */
|
||||
export type NamedBean = Required<Pick<Bean, 'beanName'>>;
|
||||
@@ -0,0 +1,83 @@
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { EventService } from '../eventService';
|
||||
import type { AgEventType } from '../eventTypes';
|
||||
import type { AgEvent, AgEventListener, AgEventTypeParams } from '../events';
|
||||
import type { GridOptionsService, PropertyChangedListener, PropertyValueChangedListener } from '../gridOptionsService';
|
||||
import type { IAgEventEmitter, IEventEmitter } from '../interfaces/iEventEmitter';
|
||||
import { LocalEventService } from '../localEventService';
|
||||
import type { LocaleTextFunc } from '../misc/locale/localeUtils';
|
||||
import type { Bean } from './bean';
|
||||
import type { BeanCollection, Context } from './context';
|
||||
import type { BaseBean } from './genericContext';
|
||||
export type BeanStubEvent = 'destroyed';
|
||||
type EventOrDestroyed<TEventType extends string> = TEventType | BeanStubEvent;
|
||||
type EventHandlers<TEventKey extends string, TEvent = any> = {
|
||||
[K in TEventKey]?: (event?: TEvent) => void;
|
||||
};
|
||||
type AgEventHandlers = {
|
||||
[K in AgEventType]?: (event: AgEventTypeParams[K]) => void;
|
||||
};
|
||||
export declare abstract class BeanStub<TEventType extends string = BeanStubEvent> implements BaseBean<BeanCollection>, Bean, IEventEmitter<EventOrDestroyed<TEventType>> {
|
||||
protected localEventService?: LocalEventService<EventOrDestroyed<TEventType>>;
|
||||
private stubContext;
|
||||
private destroyFunctions;
|
||||
private destroyed;
|
||||
__v_skip: boolean;
|
||||
protected beans: BeanCollection;
|
||||
protected eventSvc: EventService;
|
||||
protected gos: GridOptionsService;
|
||||
preWireBeans(beans: BeanCollection): void;
|
||||
destroy(): void;
|
||||
/** Add a local event listener against this BeanStub */
|
||||
addEventListener<T extends TEventType>(eventType: T, listener: AgEventListener<any, any, any>, async?: boolean): void;
|
||||
/** Remove a local event listener from this BeanStub */
|
||||
removeEventListener<T extends TEventType>(eventType: T, listener: AgEventListener<any, any, any>, async?: boolean): void;
|
||||
dispatchLocalEvent<TEvent extends AgEvent<TEventType>>(event: TEvent): void;
|
||||
addManagedElementListeners<TEvent extends keyof HTMLElementEventMap>(object: Element | Document | ShadowRoot, handlers: EventHandlers<TEvent, HTMLElementEventMap[TEvent]>): (() => null)[];
|
||||
addManagedEventListeners(handlers: AgEventHandlers): (() => null)[];
|
||||
addManagedListeners<TEvent extends string>(object: IEventEmitter<TEvent> | IAgEventEmitter<TEvent>, handlers: EventHandlers<TEvent>): (() => null)[];
|
||||
private _setupListeners;
|
||||
private _setupListener;
|
||||
/**
|
||||
* Setup a managed property listener for the given GridOption property.
|
||||
* However, stores the destroy function in the beanStub so that if this bean
|
||||
* is a component the destroy function will be called when the component is destroyed
|
||||
* as opposed to being cleaned up only when the GridOptionsService is destroyed.
|
||||
*/
|
||||
private setupGridOptionListener;
|
||||
/**
|
||||
* Setup a managed property listener for the given GridOption property.
|
||||
* @param event GridOption property to listen to changes for.
|
||||
* @param listener Listener to run when property value changes
|
||||
*/
|
||||
addManagedPropertyListener<K extends keyof GridOptions>(event: K, listener: PropertyValueChangedListener<K>): () => null;
|
||||
private propertyListenerId;
|
||||
private lastChangeSetIdLookup;
|
||||
/**
|
||||
* Setup managed property listeners for the given set of GridOption properties.
|
||||
* The listener will be run if any of the property changes but will only run once if
|
||||
* multiple of the properties change within the same framework lifecycle event.
|
||||
* Works on the basis that GridOptionsService updates all properties *before* any property change events are fired.
|
||||
* @param events Array of GridOption properties to listen for changes too.
|
||||
* @param listener Shared listener to run if any of the properties change
|
||||
*/
|
||||
addManagedPropertyListeners(events: (keyof GridOptions)[], listener: PropertyChangedListener): void;
|
||||
isAlive: () => boolean;
|
||||
getLocaleTextFunc(): LocaleTextFunc;
|
||||
addDestroyFunc(func: () => void): void;
|
||||
/** doesn't throw an error if `bean` is undefined */
|
||||
createOptionalManagedBean<T extends Bean | null | undefined>(bean: T, context?: Context): T | undefined;
|
||||
createManagedBean<T extends Bean>(bean: T, context?: Context): T;
|
||||
createBean<T extends Bean>(bean: T, context?: Context | null, afterPreCreateCallback?: (bean: Bean) => void): T;
|
||||
/**
|
||||
* Destroys a bean and returns undefined to support destruction and clean up in a single line.
|
||||
* this.dateComp = this.context.destroyBean(this.dateComp);
|
||||
*/
|
||||
destroyBean<T extends Bean | null | undefined>(bean: T, context?: Context): undefined;
|
||||
/**
|
||||
* Destroys an array of beans and returns an empty array to support destruction and clean up in a single line.
|
||||
* this.dateComps = this.context.destroyBeans(this.dateComps);
|
||||
*/
|
||||
protected destroyBeans<T extends Bean | null | undefined>(beans: T[], context?: Context): T[];
|
||||
}
|
||||
export {};
|
||||
@@ -0,0 +1,279 @@
|
||||
import type { AlignedGridsService } from '../alignedGrids/alignedGridsService';
|
||||
import type { ApiFunctionService } from '../api/apiFunctionService';
|
||||
import type { GridApi } from '../api/gridApi';
|
||||
import type { ColumnAutosizeService } from '../columnAutosize/columnAutosizeService';
|
||||
import type { ColumnAnimationService } from '../columnMove/columnAnimationService';
|
||||
import type { ColumnMoveService } from '../columnMove/columnMoveService';
|
||||
import type { ColumnResizeService } from '../columnResize/columnResizeService';
|
||||
import type { ColumnDefFactory } from '../columns/columnDefFactory';
|
||||
import type { ColumnFlexService } from '../columns/columnFlexService';
|
||||
import type { ColumnGroupService } from '../columns/columnGroups/columnGroupService';
|
||||
import type { ColumnHoverService } from '../columns/columnHover/columnHoverService';
|
||||
import type { ColumnModel } from '../columns/columnModel';
|
||||
import type { ColumnNameService } from '../columns/columnNameService';
|
||||
import type { ColumnViewportService } from '../columns/columnViewportService';
|
||||
import type { DataTypeService } from '../columns/dataTypeService';
|
||||
import type { SelectionColService } from '../columns/selectionColService';
|
||||
import type { VisibleColsService } from '../columns/visibleColsService';
|
||||
import type { AgComponentUtils } from '../components/framework/agComponentUtils';
|
||||
import type { FrameworkComponentWrapper } from '../components/framework/frameworkComponentWrapper';
|
||||
import type { Registry } from '../components/framework/registry';
|
||||
import type { UserComponentFactory } from '../components/framework/userComponentFactory';
|
||||
import type { CtrlsService } from '../ctrlsService';
|
||||
import type { DragAndDropService } from '../dragAndDrop/dragAndDropService';
|
||||
import type { DragService } from '../dragAndDrop/dragService';
|
||||
import type { HorizontalResizeService } from '../dragAndDrop/horizontalResizeService';
|
||||
import type { RowDragService } from '../dragAndDrop/rowDragService';
|
||||
import type { GridOptions } from '../entities/gridOptions';
|
||||
import type { Environment } from '../environment';
|
||||
import type { EventService } from '../eventService';
|
||||
import type { AgGlobalEventListener } from '../events';
|
||||
import type { ColumnFilterService } from '../filter/columnFilterService';
|
||||
import type { FilterManager } from '../filter/filterManager';
|
||||
import type { FilterValueService } from '../filter/filterValueService';
|
||||
import type { QuickFilterService } from '../filter/quickFilterService';
|
||||
import type { FocusService } from '../focusService';
|
||||
import type { ScrollVisibleService } from '../gridBodyComp/scrollVisibleService';
|
||||
import type { GridDestroyService } from '../gridDestroyService';
|
||||
import type { GridOptionsService } from '../gridOptionsService';
|
||||
import type { RowNodeBlockLoader } from '../infiniteRowModel/rowNodeBlockLoader';
|
||||
import type { IChartService } from '../interfaces/IChartService';
|
||||
import type { IRangeService } from '../interfaces/IRangeService';
|
||||
import type { IRowDropHighlightService } from '../interfaces/IRowDropHighlightService';
|
||||
import type { EditStrategyType } from '../interfaces/editStrategyType';
|
||||
import type { IAdvancedFilterService } from '../interfaces/iAdvancedFilterService';
|
||||
import type { IAggColumnNameService } from '../interfaces/iAggColumnNameService';
|
||||
import type { IAggFuncService } from '../interfaces/iAggFuncService';
|
||||
import type { IClientSideNodeManager } from '../interfaces/iClientSideNodeManager';
|
||||
import type { IClipboardService } from '../interfaces/iClipboardService';
|
||||
import type { IColsService } from '../interfaces/iColsService';
|
||||
import type { IColumnCollectionService } from '../interfaces/iColumnCollectionService';
|
||||
import type { IContextMenuService } from '../interfaces/iContextMenu';
|
||||
import type { ICsvCreator } from '../interfaces/iCsvCreator';
|
||||
import type { IEditModelService } from '../interfaces/iEditModelService';
|
||||
import type { IEditService } from '../interfaces/iEditService';
|
||||
import type { IExcelCreator } from '../interfaces/iExcelCreator';
|
||||
import type { IExpansionService } from '../interfaces/iExpansionService';
|
||||
import type { IFindService } from '../interfaces/iFind';
|
||||
import type { IFooterService } from '../interfaces/iFooterService';
|
||||
import type { IFrameworkOverrides } from '../interfaces/iFrameworkOverrides';
|
||||
import type { IGroupFilterService } from '../interfaces/iGroupFilterService';
|
||||
import type { IMenuFactory } from '../interfaces/iMenuFactory';
|
||||
import type { IMultiFilterService } from '../interfaces/iMultiFilterService';
|
||||
import type { IFilterPanelService, ISelectableFilterService } from '../interfaces/iNewFiltersToolPanel';
|
||||
import type { IPinnedRowModel } from '../interfaces/iPinnedRowModel';
|
||||
import type { IPivotColDefService } from '../interfaces/iPivotColDefService';
|
||||
import type { IPivotResultColsService } from '../interfaces/iPivotResultColsService';
|
||||
import type { IRowChildrenService } from '../interfaces/iRowChildrenService';
|
||||
import type { IRowModel } from '../interfaces/iRowModel';
|
||||
import type { IRowGroupStage, IRowNodeStage } from '../interfaces/iRowNodeStage';
|
||||
import type { ISelectionService } from '../interfaces/iSelectionService';
|
||||
import type { IServerSideTransactionManager } from '../interfaces/iServerSideRowModel';
|
||||
import type { IShowRowGroupColsService } from '../interfaces/iShowRowGroupColsService';
|
||||
import type { IShowRowGroupColsValueService } from '../interfaces/iShowRowGroupColsValueService';
|
||||
import type { ISideBarService } from '../interfaces/iSideBar';
|
||||
import type { IStickyRowService } from '../interfaces/iStickyRows';
|
||||
import type { ITestIdService } from '../interfaces/iTestIdService';
|
||||
import type { IMasterDetailService } from '../interfaces/masterDetail';
|
||||
import type { IRenderStatusService } from '../interfaces/renderStatusService';
|
||||
import type { IRowNumbersService } from '../interfaces/rowNumbers';
|
||||
import type { AnimationFrameService } from '../misc/animationFrameService';
|
||||
import type { ApiEventService } from '../misc/apiEvents/apiEventService';
|
||||
import type { LocaleService } from '../misc/locale/localeService';
|
||||
import type { MenuService } from '../misc/menu/menuService';
|
||||
import type { StateService } from '../misc/state/stateService';
|
||||
import type { TouchService } from '../misc/touchService';
|
||||
import type { CellNavigationService } from '../navigation/cellNavigationService';
|
||||
import type { HeaderNavigationService } from '../navigation/headerNavigationService';
|
||||
import type { NavigationService } from '../navigation/navigationService';
|
||||
import type { PageBoundsListener } from '../pagination/pageBoundsListener';
|
||||
import type { PageBoundsService } from '../pagination/pageBoundsService';
|
||||
import type { PaginationAutoPageSizeService } from '../pagination/paginationAutoPageSizeService';
|
||||
import type { PaginationService } from '../pagination/paginationService';
|
||||
import type { PinnedColumnService } from '../pinnedColumns/pinnedColumnService';
|
||||
import type { AriaAnnouncementService } from '../rendering/ariaAnnouncementService';
|
||||
import type { AutoWidthCalculator } from '../rendering/autoWidthCalculator';
|
||||
import type { CellFlashService } from '../rendering/cell/cellFlashService';
|
||||
import type { OverlayService } from '../rendering/overlays/overlayService';
|
||||
import type { RowAutoHeightService } from '../rendering/row/rowAutoHeightService';
|
||||
import type { RowContainerHeightService } from '../rendering/rowContainerHeightService';
|
||||
import type { RowRenderer } from '../rendering/rowRenderer';
|
||||
import type { RowSpanService } from '../rendering/spanning/rowSpanService';
|
||||
import type { SpannedRowRenderer } from '../rendering/spanning/spannedRowRenderer';
|
||||
import type { RowNodeSorter } from '../sort/rowNodeSorter';
|
||||
import type { SortService } from '../sort/sortService';
|
||||
import type { CellStyleService } from '../styling/cellStyleService';
|
||||
import type { RowStyleService } from '../styling/rowStyleService';
|
||||
import type { SyncService } from '../syncService';
|
||||
import type { TooltipService } from '../tooltip/tooltipService';
|
||||
import type { UndoRedoService } from '../undoRedo/undoRedoService';
|
||||
import type { ValidationService } from '../validation/validationService';
|
||||
import type { ExpressionService } from '../valueService/expressionService';
|
||||
import type { ValueCache } from '../valueService/valueCache';
|
||||
import type { ValueService } from '../valueService/valueService';
|
||||
import type { PopupService } from '../widgets/popupService';
|
||||
import type { GenericContextParams, GenericSingletonBean } from './genericContext';
|
||||
import { GenericContext } from './genericContext';
|
||||
export interface ContextParams extends GenericContextParams<BeanName, BeanCollection> {
|
||||
gridId: string;
|
||||
destroyCallback?: () => void;
|
||||
}
|
||||
export interface SingletonBean extends GenericSingletonBean<BeanName, BeanCollection> {
|
||||
}
|
||||
export type DynamicBeanName = 'detailCellRendererCtrl' | 'dndSourceComp' | 'fillHandle' | 'groupCellRendererCtrl' | 'headerFilterCellCtrl' | 'headerGroupCellCtrl' | 'rangeHandle' | 'tooltipFeature' | 'groupStrategy' | 'treeGroupStrategy' | EditStrategyType | 'rowNumberRowResizer' | 'agSetColumnFilterHandler' | 'agMultiColumnFilterHandler' | 'agGroupColumnFilterHandler' | 'agNumberColumnFilterHandler' | 'agDateColumnFilterHandler' | 'agTextColumnFilterHandler';
|
||||
export type UserComponentName = 'agDragAndDropImage' | 'agColumnHeader' | 'agColumnGroupHeader' | 'agSortIndicator' | 'agAnimateShowChangeCellRenderer' | 'agAnimateSlideCellRenderer' | 'agLoadingCellRenderer' | 'agSkeletonCellRenderer' | 'agCheckboxCellRenderer' | 'agLoadingOverlay' | 'agNoRowsOverlay' | 'agTooltipComponent' | 'agReadOnlyFloatingFilter' | 'agTextColumnFilter' | 'agNumberColumnFilter' | 'agDateColumnFilter' | 'agDateInput' | 'agTextColumnFloatingFilter' | 'agNumberColumnFloatingFilter' | 'agDateColumnFloatingFilter' | 'agMultiColumnFilter' | 'agMultiColumnFloatingFilter' | 'agGroupColumnFilter' | 'agGroupColumnFloatingFilter' | 'agSetColumnFilter' | 'agSetColumnFloatingFilter' | 'agCellEditor' | 'agSelectCellEditor' | 'agTextCellEditor' | 'agNumberCellEditor' | 'agDateCellEditor' | 'agDateStringCellEditor' | 'agCheckboxCellEditor' | 'agLargeTextCellEditor' | 'agRichSelect' | 'agRichSelectCellEditor' | 'agMenuItem' | 'agColumnsToolPanel' | 'agFiltersToolPanel' | 'agNewFiltersToolPanel' | 'agGroupRowRenderer' | 'agGroupCellRenderer' | 'agDetailCellRenderer' | 'agSparklineCellRenderer' | 'agAggregationComponent' | 'agSelectedRowCountComponent' | 'agTotalRowCountComponent' | 'agFilteredRowCountComponent' | 'agTotalAndFilteredRowCountComponent' | 'agFindCellRenderer';
|
||||
export type ClassImp = new (...args: []) => object;
|
||||
interface ComponentMetaWithParams {
|
||||
classImp: ClassImp;
|
||||
/** Default params for provided components */
|
||||
params?: any;
|
||||
/** Update params for provided components before they are created */
|
||||
processParams?: ProcessParamsFunc;
|
||||
}
|
||||
interface ComponentMetaFunc {
|
||||
getComp: (beans: BeanCollection) => ClassImp | ComponentMetaWithParams;
|
||||
}
|
||||
export declare function isComponentMetaFunc(componentMeta: ClassImp | ComponentMetaWithParams | ComponentMetaFunc): componentMeta is ComponentMetaFunc;
|
||||
export type ComponentMeta = ClassImp | ComponentMetaWithParams | ComponentMetaFunc;
|
||||
export type ProcessParamsFunc<TParams = any> = (params: TParams) => TParams;
|
||||
interface CoreBeanCollection {
|
||||
context: Context;
|
||||
pageBoundsListener: PageBoundsListener;
|
||||
gos: GridOptionsService;
|
||||
environment: Environment;
|
||||
rowRenderer: RowRenderer;
|
||||
valueSvc: ValueService;
|
||||
eventSvc: EventService;
|
||||
colModel: ColumnModel;
|
||||
colViewport: ColumnViewportService;
|
||||
colNames: ColumnNameService;
|
||||
visibleCols: VisibleColsService;
|
||||
colMoves?: ColumnMoveService;
|
||||
colFlex?: ColumnFlexService;
|
||||
colResize?: ColumnResizeService;
|
||||
headerNavigation?: HeaderNavigationService;
|
||||
navigation?: NavigationService;
|
||||
colAnimation?: ColumnAnimationService;
|
||||
focusSvc: FocusService;
|
||||
popupSvc?: PopupService;
|
||||
cellStyles?: CellStyleService;
|
||||
colHover?: ColumnHoverService;
|
||||
userCompFactory: UserComponentFactory;
|
||||
registry: Registry;
|
||||
animationFrameSvc?: AnimationFrameService;
|
||||
dragSvc?: DragService;
|
||||
dragAndDrop?: DragAndDropService;
|
||||
sortSvc?: SortService;
|
||||
colFilter?: ColumnFilterService;
|
||||
filterManager?: FilterManager;
|
||||
rowContainerHeight: RowContainerHeightService;
|
||||
frameworkOverrides: IFrameworkOverrides;
|
||||
selectionSvc?: ISelectionService;
|
||||
rowStyleSvc?: RowStyleService;
|
||||
rowModel: IRowModel;
|
||||
ctrlsSvc: CtrlsService;
|
||||
valueCache?: ValueCache;
|
||||
localeSvc?: LocaleService;
|
||||
syncSvc: SyncService;
|
||||
ariaAnnounce: AriaAnnouncementService;
|
||||
rangeSvc?: IRangeService;
|
||||
validation?: ValidationService;
|
||||
gridApi: GridApi;
|
||||
gridOptions: GridOptions;
|
||||
eGridDiv: HTMLElement;
|
||||
pivotResultCols?: IPivotResultColsService;
|
||||
autoColSvc?: IColumnCollectionService;
|
||||
selectionColSvc?: SelectionColService;
|
||||
rowNumbersSvc?: IRowNumbersService;
|
||||
colDefFactory?: ColumnDefFactory;
|
||||
colAutosize?: ColumnAutosizeService;
|
||||
rowGroupColsSvc?: IColsService;
|
||||
valueColsSvc?: IColsService;
|
||||
pivotColsSvc?: IColsService;
|
||||
quickFilter?: QuickFilterService;
|
||||
showRowGroupCols?: IShowRowGroupColsService;
|
||||
showRowGroupColValueSvc?: IShowRowGroupColsValueService;
|
||||
dataTypeSvc?: DataTypeService;
|
||||
globalListener: AgGlobalEventListener;
|
||||
globalSyncListener: AgGlobalEventListener;
|
||||
stateSvc?: StateService;
|
||||
overlays?: OverlayService;
|
||||
pinnedRowModel?: IPinnedRowModel;
|
||||
menuSvc?: MenuService;
|
||||
apiEventSvc?: ApiEventService;
|
||||
undoRedo?: UndoRedoService;
|
||||
rowNodeBlockLoader?: RowNodeBlockLoader;
|
||||
csvCreator?: ICsvCreator;
|
||||
excelCreator?: IExcelCreator;
|
||||
clipboardSvc?: IClipboardService;
|
||||
cellNavigation?: CellNavigationService;
|
||||
scrollVisibleSvc: ScrollVisibleService;
|
||||
pinnedCols?: PinnedColumnService;
|
||||
expressionSvc?: ExpressionService;
|
||||
autoWidthCalc?: AutoWidthCalculator;
|
||||
agCompUtils?: AgComponentUtils;
|
||||
frameworkCompWrapper: FrameworkComponentWrapper;
|
||||
horizontalResizeSvc?: HorizontalResizeService;
|
||||
filterMenuFactory?: IMenuFactory;
|
||||
enterpriseMenuFactory?: IMenuFactory;
|
||||
contextMenuSvc?: IContextMenuService;
|
||||
editSvc?: IEditService;
|
||||
editModelSvc?: IEditModelService;
|
||||
alignedGridsSvc?: AlignedGridsService;
|
||||
paginationAutoPageSizeSvc?: PaginationAutoPageSizeService;
|
||||
pagination?: PaginationService;
|
||||
pageBounds: PageBoundsService;
|
||||
apiFunctionSvc: ApiFunctionService;
|
||||
gridDestroySvc: GridDestroyService;
|
||||
expansionSvc?: IExpansionService;
|
||||
sideBar?: ISideBarService;
|
||||
ssrmTxnManager?: IServerSideTransactionManager;
|
||||
aggFuncSvc?: IAggFuncService;
|
||||
advancedFilter: IAdvancedFilterService;
|
||||
filterStage?: IRowNodeStage;
|
||||
sortStage?: IRowNodeStage;
|
||||
flattenStage?: IRowNodeStage;
|
||||
groupStage?: IRowGroupStage;
|
||||
aggStage?: IRowNodeStage;
|
||||
pivotStage?: IRowNodeStage;
|
||||
filterAggStage?: IRowNodeStage;
|
||||
rowNodeSorter?: RowNodeSorter;
|
||||
pivotColDefSvc?: IPivotColDefService;
|
||||
chartSvc?: IChartService;
|
||||
aggColNameSvc?: IAggColumnNameService;
|
||||
renderStatus?: IRenderStatusService;
|
||||
rowDropHighlightSvc?: IRowDropHighlightService;
|
||||
rowDragSvc?: RowDragService;
|
||||
stickyRowSvc?: IStickyRowService;
|
||||
filterValueSvc?: FilterValueService;
|
||||
csrmNodeSvc?: IClientSideNodeManager;
|
||||
csrmChildrenTreeNodeSvc?: IClientSideNodeManager;
|
||||
cellFlashSvc?: CellFlashService;
|
||||
masterDetailSvc?: IMasterDetailService;
|
||||
tooltipSvc?: TooltipService;
|
||||
colGroupSvc?: ColumnGroupService;
|
||||
rowAutoHeight?: RowAutoHeightService;
|
||||
rowChildrenSvc?: IRowChildrenService;
|
||||
footerSvc?: IFooterService;
|
||||
touchSvc?: TouchService;
|
||||
rowSpanSvc?: RowSpanService;
|
||||
spannedRowRenderer?: SpannedRowRenderer;
|
||||
findSvc?: IFindService;
|
||||
groupFilter?: IGroupFilterService;
|
||||
multiFilter?: IMultiFilterService;
|
||||
filterPanelSvc?: IFilterPanelService;
|
||||
selectableFilter?: ISelectableFilterService;
|
||||
testIdSvc?: ITestIdService;
|
||||
}
|
||||
export type BeanCollection = CoreBeanCollection & {
|
||||
[key in Exclude<BeanName, keyof CoreBeanCollection>]?: unknown;
|
||||
};
|
||||
export declare class Context extends GenericContext<BeanName, BeanCollection> {
|
||||
private gridId;
|
||||
private destroyCallback?;
|
||||
protected init(params: ContextParams): void;
|
||||
destroy(): void;
|
||||
getGridId(): string;
|
||||
}
|
||||
export type BeanName = 'advFilterExpSvc' | 'advancedFilter' | 'advSettingsMenuFactory' | 'aggFuncSvc' | 'agCompUtils' | 'aggColNameSvc' | 'aggStage' | 'alignedGridsSvc' | 'animationFrameSvc' | 'apiFunctionSvc' | 'ariaAnnounce' | 'apiEventSvc' | 'autoColSvc' | 'autoWidthCalc' | 'beans' | 'cellFlashSvc' | 'cellNavigation' | 'cellStyles' | 'changeDetectionSvc' | 'chartColSvc' | 'chartCrossFilterSvc' | 'chartMenuItemMapper' | 'chartMenuListFactory' | 'chartMenuSvc' | 'chartTranslation' | 'chartSvc' | 'agChartsExports' | 'clipboardSvc' | 'colAnimation' | 'colAutosize' | 'colChooserFactory' | 'colDefFactory' | 'colFilter' | 'colFlex' | 'colGroupSvc' | 'colHover' | 'colMenuFactory' | 'colModel' | 'colMoves' | 'colNames' | 'colResize' | 'colToolPanelFactory' | 'colViewport' | 'pivotResultCols' | 'context' | 'contextMenuSvc' | 'selectionColSvc' | 'ctrlsSvc' | 'csvCreator' | 'dataTypeSvc' | 'visibleCols' | 'dragAndDrop' | 'dragSvc' | 'editSvc' | 'editModelSvc' | 'excelCreator' | 'enterpriseMenuFactory' | 'environment' | 'eventSvc' | 'eGridDiv' | 'enterpriseChartProxyFactory' | 'expansionSvc' | 'expressionSvc' | 'filterAggStage' | 'filterManager' | 'filterMenuFactory' | 'filterPanelSvc' | 'filterStage' | 'filterValueSvc' | 'findSvc' | 'flashCellSvc' | 'flattenStage' | 'focusSvc' | 'footerSvc' | 'funcColsSvc' | 'rowNumbersSvc' | 'pivotColsSvc' | 'rowGroupColsSvc' | 'valueColsSvc' | 'frameworkCompWrapper' | 'frameworkOverrides' | 'globalListener' | 'globalSyncListener' | 'gridApi' | 'gridDestroySvc' | 'gridOptions' | 'gos' | 'gridOptionsWrapper' | 'gridSerializer' | 'groupFilter' | 'groupStage' | 'headerNavigation' | 'horizontalResizeSvc' | 'lazyBlockLoadingSvc' | 'licenseManager' | 'localeSvc' | 'masterDetailSvc' | 'menuItemMapper' | 'menuSvc' | 'menuUtils' | 'multiFilter' | 'navigation' | 'overlays' | 'paginationAutoPageSizeSvc' | 'pagination' | 'pinnedRowModel' | 'pinnedCols' | 'pivotColDefSvc' | 'pivotStage' | 'popupSvc' | 'quickFilter' | 'rangeSvc' | 'pageBoundsListener' | 'pageBounds' | 'registry' | 'renderStatus' | 'rowAutoHeight' | 'rowChildrenSvc' | 'rowContainerHeight' | 'rowDragSvc' | 'rowEditSvc' | 'rowModel' | 'rowNodeBlockLoader' | 'rowNodeSorter' | 'rowRenderer' | 'rowStyleSvc' | 'scrollVisibleSvc' | 'selectableFilter' | 'selectionController' | 'selectionSvc' | 'showRowGroupCols' | 'sideBar' | 'sortSvc' | 'sortStage' | 'ssrmBlockUtils' | 'ssrmExpandListener' | 'ssrmFilterListener' | 'ssrmListenerUtils' | 'ssrmNodeManager' | 'ssrmSortSvc' | 'ssrmStoreFactory' | 'ssrmStoreUtils' | 'ssrmTxnManager' | 'stateSvc' | 'statusBarSvc' | 'stickyRowSvc' | 'syncSvc' | 'tooltipSvc' | 'touchSvc' | 'undoRedo' | 'userCompFactory' | 'valueCache' | 'valueSvc' | 'validationLogger' | 'validation' | 'csrmNodeSvc' | 'csrmChildrenTreeNodeSvc' | 'rowSpanSvc' | 'spannedRowRenderer' | 'showRowGroupColValueSvc' | 'rowDropHighlightSvc' | 'testIdSvc';
|
||||
export {};
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
export interface GenericBean<TBeanName, TBeanCollection> {
|
||||
/** AG Grid internal - do not use */
|
||||
beanName?: TBeanName;
|
||||
/** AG Grid internal - do not call */
|
||||
wireBeans?(beans: TBeanCollection): void;
|
||||
/** AG Grid internal - do not call */
|
||||
postConstruct?(): void;
|
||||
/** AG Grid internal - do not call */
|
||||
destroy?(): void;
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
import type { GenericBean } from './genericBean';
|
||||
type BeanComparator<TBeanName extends string, TBeanCollection extends {
|
||||
[key in TBeanName]?: any;
|
||||
}> = (bean1: GenericBean<TBeanName, TBeanCollection>, bean2: GenericBean<TBeanName, TBeanCollection>) => number;
|
||||
export interface GenericContextParams<TBeanName extends string, TBeanCollection extends {
|
||||
[key in TBeanName]?: any;
|
||||
}> {
|
||||
providedBeanInstances: Partial<{
|
||||
[key in TBeanName]: GenericBean<TBeanName, TBeanCollection>;
|
||||
}>;
|
||||
beanClasses: GenericSingletonBean<TBeanName, TBeanCollection>[];
|
||||
derivedBeans?: ((context: GenericContext<TBeanName, TBeanCollection>) => {
|
||||
beanName: TBeanName;
|
||||
bean: TBeanCollection[TBeanName];
|
||||
})[];
|
||||
beanInitComparator?: BeanComparator<TBeanName, TBeanCollection>;
|
||||
beanDestroyComparator?: BeanComparator<TBeanName, TBeanCollection>;
|
||||
}
|
||||
export interface GenericSingletonBean<TBeanName extends string, TBeanCollection extends {
|
||||
[key in TBeanName]?: any;
|
||||
}> {
|
||||
new (): GenericBean<TBeanName, TBeanCollection>;
|
||||
}
|
||||
export interface ComponentBean {
|
||||
preConstruct(): void;
|
||||
}
|
||||
/**
|
||||
* The BaseBean can be used to avoid having to call super.wireBeans() in every subclass of a shared base bean, .i.e BeanStub, Component
|
||||
* It is used to pre-wire beans before the wireBeans() method is called which is equivalent to calling super.wireBeans() in a sub class
|
||||
*/
|
||||
export interface BaseBean<TBeanCollection> {
|
||||
preWireBeans?(beans: TBeanCollection): void;
|
||||
}
|
||||
export declare class GenericContext<TBeanName extends string, TBeanCollection extends {
|
||||
[key in TBeanName]?: any;
|
||||
}> {
|
||||
protected beans: TBeanCollection;
|
||||
private createdBeans;
|
||||
private beanDestroyComparator?;
|
||||
private destroyed;
|
||||
constructor(params: GenericContextParams<TBeanName, TBeanCollection>);
|
||||
protected init(params: GenericContextParams<TBeanName, TBeanCollection>): void;
|
||||
private getBeanInstances;
|
||||
createBean<T extends GenericBean<TBeanName, TBeanCollection>>(bean: T, afterPreCreateCallback?: (bean: GenericBean<TBeanName, TBeanCollection>) => void): T;
|
||||
private initBeans;
|
||||
getBeans(): TBeanCollection;
|
||||
getBean<T extends TBeanName>(name: T): TBeanCollection[T];
|
||||
destroy(): void;
|
||||
/**
|
||||
* Destroys a bean and returns undefined to support destruction and clean up in a single line.
|
||||
* this.dateComp = this.context.destroyBean(this.dateComp);
|
||||
*/
|
||||
destroyBean(bean: GenericBean<TBeanName, TBeanCollection> | null | undefined): undefined;
|
||||
/**
|
||||
* Destroys an array of beans and returns an empty array to support destruction and clean up in a single line.
|
||||
* this.dateComps = this.context.destroyBeans(this.dateComps);
|
||||
*/
|
||||
destroyBeans(beans: (GenericBean<TBeanName, TBeanCollection> | null | undefined)[]): [];
|
||||
isDestroyed(): boolean;
|
||||
}
|
||||
export {};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { BeanCollection, BeanName } from './context';
|
||||
import type { GenericBean } from './genericBean';
|
||||
export declare function gridBeanInitComparator(bean1: GenericBean<BeanName, BeanCollection>, bean2: GenericBean<BeanName, BeanCollection>): number;
|
||||
export declare function gridBeanDestroyComparator(bean1: GenericBean<BeanName, BeanCollection>, bean2: GenericBean<BeanName, BeanCollection>): number;
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import type { NamedBean } from '../context/bean';
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import { BaseCreator } from '../export/baseCreator';
|
||||
import type { CsvCustomContent, CsvExportParams } from '../interfaces/exportParams';
|
||||
import type { ICsvCreator } from '../interfaces/iCsvCreator';
|
||||
import { CsvSerializingSession } from './csvSerializingSession';
|
||||
export declare class CsvCreator extends BaseCreator<CsvCustomContent, CsvSerializingSession, CsvExportParams> implements NamedBean, ICsvCreator {
|
||||
beanName: "csvCreator";
|
||||
private colModel;
|
||||
private colNames;
|
||||
private rowGroupColsSvc?;
|
||||
private valueSvc;
|
||||
wireBeans(beans: BeanCollection): void;
|
||||
protected getMergedParams(params?: CsvExportParams): CsvExportParams;
|
||||
protected export(userParams?: CsvExportParams): void;
|
||||
exportDataAsCsv(params?: CsvExportParams): void;
|
||||
getDataAsCsv(params?: CsvExportParams, skipDefaultParams?: boolean): string;
|
||||
getDefaultFileExtension(): string;
|
||||
createSerializingSession(params?: CsvExportParams): CsvSerializingSession;
|
||||
isExportSuppressed(): boolean;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { BeanCollection } from '../context/context';
|
||||
import type { CsvExportParams } from '../interfaces/exportParams';
|
||||
export declare function getDataAsCsv(beans: BeanCollection, params?: CsvExportParams): string | undefined;
|
||||
export declare function exportDataAsCsv(beans: BeanCollection, params?: CsvExportParams): void;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { _CsvExportGridApi } from '../api/gridApi';
|
||||
import type { _ModuleWithApi } from '../interfaces/iModule';
|
||||
/**
|
||||
* @feature Import & Export -> CSV Export
|
||||
*/
|
||||
export declare const CsvExportModule: _ModuleWithApi<_CsvExportGridApi>;
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import { BaseGridSerializingSession } from '../export/baseGridSerializingSession';
|
||||
import type { GridSerializingParams, RowAccumulator, RowSpanningAccumulator } from '../export/iGridSerializer';
|
||||
import type { CsvCustomContent } from '../interfaces/exportParams';
|
||||
interface CsvSerializingParams extends GridSerializingParams {
|
||||
suppressQuotes: boolean;
|
||||
columnSeparator: string;
|
||||
}
|
||||
export declare class CsvSerializingSession extends BaseGridSerializingSession<CsvCustomContent> {
|
||||
private config;
|
||||
private isFirstLine;
|
||||
private result;
|
||||
private suppressQuotes;
|
||||
private columnSeparator;
|
||||
constructor(config: CsvSerializingParams);
|
||||
addCustomContent(content: CsvCustomContent): void;
|
||||
onNewHeaderGroupingRow(): RowSpanningAccumulator;
|
||||
private onNewHeaderGroupingRowColumn;
|
||||
private appendEmptyCells;
|
||||
onNewHeaderRow(): RowAccumulator;
|
||||
private onNewHeaderRowColumn;
|
||||
onNewBodyRow(): RowAccumulator;
|
||||
private onNewBodyRowColumn;
|
||||
private putInQuotes;
|
||||
parse(): string;
|
||||
private beginNewLine;
|
||||
}
|
||||
export {};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user