ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
38 lines (37 loc) • 2.06 kB
TypeScript
import type { AgPropertyChangedSource } from '../agStack/interfaces/iProperties';
import type { ApiFunction, ApiFunctionName } from '../api/iApiFunction';
import type { NamedBean } from '../context/bean';
import { BeanStub } from '../context/beanStub';
import type { BeanCollection, DynamicBeanName, UserComponentName } from '../context/context';
import type { ColDef, ColGroupDef } from '../entities/colDef';
import type { GridOptions } from '../entities/gridOptions';
import type { RowNodeEventType } from '../interfaces/iRowNode';
import type { IconName } from '../utils/icon';
export declare class ValidationService extends BeanStub implements NamedBean {
beanName: "validation";
private gridOptions;
/**
* Caches per-property-name validation results keyed by objectName.
* Each inner map records: property name → true if valid for runtime checks, false if not.
* A property is invalid if it has an unsupported row model, or is an unrecognised name.
* Deprecation warnings and fuzzy suggestions are emitted once when first encountered.
*/
private readonly propertyNameCache;
wireBeans(beans: BeanCollection): void;
warnOnInitialPropertyUpdate(source: AgPropertyChangedSource, key: string): void;
processGridOptions(options: GridOptions): void;
validateApiFunction<TFunctionName extends ApiFunctionName>(functionName: TFunctionName, apiFunction: ApiFunction<TFunctionName>): ApiFunction<TFunctionName>;
missingUserComponent(propertyName: string, componentName: string, agGridDefaults: {
[key in UserComponentName]?: any;
}, jsComps: {
[key: string]: any;
}): void;
missingDynamicBean(beanName: DynamicBeanName): string | undefined;
checkRowEvents(eventType: RowNodeEventType): void;
validateIcon(iconName: IconName): void;
isProvidedUserComp(compName: string): boolean;
/** Should only be called via the GridOptionsService */
validateColDef(colDef: ColDef | ColGroupDef): void;
private processOptions;
private checkForRequiredDependencies;
}