UNPKG

1.92 kBTypeScriptView Raw
1import { NgZone } from '@angular/core';
2import type { FrameworkOverridesIncomingSource, IFrameworkEventListenerService, LocalEventService } from 'ag-grid-community';
3import { VanillaFrameworkOverrides } from 'ag-grid-community';
4import * as i0 from "@angular/core";
5export declare class AngularFrameworkOverrides extends VanillaFrameworkOverrides {
6 private _ngZone;
7 private isRunningWithinTestZone;
8 private runOutside;
9 constructor(_ngZone: NgZone);
10 wrapIncoming: <T>(callback: () => T, source?: FrameworkOverridesIncomingSource) => T;
11 /**
12 * The shouldWrapOutgoing property is used to determine if events should be run outside of Angular or not.
13 * If an event handler is registered outside of Angular then we should not wrap the event handler
14 * with runInsideAngular() as the user may not have wanted this.
15 * This is also used to not wrap internal event listeners that are registered with RowNodes and Columns.
16 */
17 get shouldWrapOutgoing(): boolean;
18 /**
19 * Make sure that any code that is executed outside of AG Grid is running within the Angular zone.
20 * This means users can update templates and use binding without having to do anything extra.
21 */
22 wrapOutgoing: <T>(callback: () => T) => T;
23 createLocalEventListenerWrapper(existingFrameworkEventListenerService: IFrameworkEventListenerService<any, any> | undefined, localEventService: LocalEventService<any>): IFrameworkEventListenerService<any, any> | undefined;
24 createGlobalEventListenerWrapper(): IFrameworkEventListenerService<any, any>;
25 isFrameworkComponent(comp: any): boolean;
26 runInsideAngular<T>(callback: () => T): T;
27 runOutsideAngular<T>(callback: () => T, source?: FrameworkOverridesIncomingSource): T;
28 static ɵfac: i0.ɵɵFactoryDeclaration<AngularFrameworkOverrides, never>;
29 static ɵprov: i0.ɵɵInjectableDeclaration<AngularFrameworkOverrides>;
30}