1 | /**
|
---|
2 | * @license Angular v12.2.13
|
---|
3 | * (c) 2010-2021 Google LLC. https://angular.io/
|
---|
4 | * License: MIT
|
---|
5 | */
|
---|
6 |
|
---|
7 | import { AnimationBuilder } from '@angular/animations';
|
---|
8 | import { AnimationDriver } from '@angular/animations/browser';
|
---|
9 | import { AnimationFactory } from '@angular/animations';
|
---|
10 | import { AnimationMetadata } from '@angular/animations';
|
---|
11 | import { AnimationOptions } from '@angular/animations';
|
---|
12 | import { AnimationPlayer } from '@angular/animations';
|
---|
13 | import { InjectionToken } from '@angular/core';
|
---|
14 | import { ModuleWithProviders } from '@angular/core';
|
---|
15 | import { NgZone } from '@angular/core';
|
---|
16 | import { OnDestroy } from '@angular/core';
|
---|
17 | import { Provider } from '@angular/core';
|
---|
18 | import { Renderer2 } from '@angular/core';
|
---|
19 | import { RendererFactory2 } from '@angular/core';
|
---|
20 | import { RendererStyleFlags2 } from '@angular/core';
|
---|
21 | import { RendererType2 } from '@angular/core';
|
---|
22 | import { ɵAnimationEngine } from '@angular/animations/browser';
|
---|
23 | import { ɵAnimationStyleNormalizer } from '@angular/animations/browser';
|
---|
24 | import { ɵCssKeyframesDriver } from '@angular/animations/browser';
|
---|
25 | import { ɵDomRendererFactory2 } from '@angular/platform-browser';
|
---|
26 | import { ɵWebAnimationsDriver } from '@angular/animations/browser';
|
---|
27 | import { ɵWebAnimationsStyleNormalizer } from '@angular/animations/browser';
|
---|
28 |
|
---|
29 | /**
|
---|
30 | * @publicApi
|
---|
31 | */
|
---|
32 | import * as ɵngcc0 from '@angular/core';
|
---|
33 | import * as ɵngcc1 from '@angular/platform-browser';
|
---|
34 | export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)
|
---|
38 | * for use with animations. See [Animations](guide/animations).
|
---|
39 | * @publicApi
|
---|
40 | */
|
---|
41 | export declare class BrowserAnimationsModule {
|
---|
42 | /**
|
---|
43 | * Configures the module based on the specified object.
|
---|
44 | *
|
---|
45 | * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.
|
---|
46 | * @see `BrowserAnimationsModuleConfig`
|
---|
47 | *
|
---|
48 | * @usageNotes
|
---|
49 | * When registering the `BrowserAnimationsModule`, you can use the `withConfig`
|
---|
50 | * function as follows:
|
---|
51 | * ```
|
---|
52 | * @NgModule({
|
---|
53 | * imports: [BrowserAnimationsModule.withConfig(config)]
|
---|
54 | * })
|
---|
55 | * class MyNgModule {}
|
---|
56 | * ```
|
---|
57 | */
|
---|
58 | static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>;
|
---|
59 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<BrowserAnimationsModule, never>;
|
---|
60 | static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<BrowserAnimationsModule, never, never, [typeof ɵngcc1.BrowserModule]>;
|
---|
61 | static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<BrowserAnimationsModule>;
|
---|
62 | }
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * Object used to configure the behavior of {@link BrowserAnimationsModule}
|
---|
66 | * @publicApi
|
---|
67 | */
|
---|
68 | export declare interface BrowserAnimationsModuleConfig {
|
---|
69 | /**
|
---|
70 | * Whether animations should be disabled. Passing this is identical to providing the
|
---|
71 | * `NoopAnimationsModule`, but it can be controlled based on a runtime value.
|
---|
72 | */
|
---|
73 | disableAnimations?: boolean;
|
---|
74 | }
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * A null player that must be imported to allow disabling of animations.
|
---|
78 | * @publicApi
|
---|
79 | */
|
---|
80 | export declare class NoopAnimationsModule {
|
---|
81 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<NoopAnimationsModule, never>;
|
---|
82 | static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<NoopAnimationsModule, never, never, [typeof ɵngcc1.BrowserModule]>;
|
---|
83 | static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<NoopAnimationsModule>;
|
---|
84 | }
|
---|
85 |
|
---|
86 | export declare function ɵangular_packages_platform_browser_animations_animations_a(): ɵWebAnimationsDriver | ɵCssKeyframesDriver;
|
---|
87 |
|
---|
88 | export declare function ɵangular_packages_platform_browser_animations_animations_b(): ɵWebAnimationsStyleNormalizer;
|
---|
89 |
|
---|
90 | export declare function ɵangular_packages_platform_browser_animations_animations_c(renderer: ɵDomRendererFactory2, engine: ɵAnimationEngine, zone: NgZone): ɵAnimationRendererFactory;
|
---|
91 |
|
---|
92 | /**
|
---|
93 | * Separate providers from the actual module so that we can do a local modification in Google3 to
|
---|
94 | * include them in the BrowserModule.
|
---|
95 | */
|
---|
96 | export declare const ɵangular_packages_platform_browser_animations_animations_d: Provider[];
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * Separate providers from the actual module so that we can do a local modification in Google3 to
|
---|
100 | * include them in the BrowserTestingModule.
|
---|
101 | */
|
---|
102 | export declare const ɵangular_packages_platform_browser_animations_animations_e: Provider[];
|
---|
103 |
|
---|
104 | export declare class ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
|
---|
105 | protected namespaceId: string;
|
---|
106 | delegate: Renderer2;
|
---|
107 | engine: ɵAnimationEngine;
|
---|
108 | constructor(namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
|
---|
109 | get data(): {
|
---|
110 | [key: string]: any;
|
---|
111 | };
|
---|
112 | destroyNode: ((n: any) => void) | null;
|
---|
113 | destroy(): void;
|
---|
114 | createElement(name: string, namespace?: string | null | undefined): any;
|
---|
115 | createComment(value: string): any;
|
---|
116 | createText(value: string): any;
|
---|
117 | appendChild(parent: any, newChild: any): void;
|
---|
118 | insertBefore(parent: any, newChild: any, refChild: any, isMove?: boolean): void;
|
---|
119 | removeChild(parent: any, oldChild: any, isHostElement: boolean): void;
|
---|
120 | selectRootElement(selectorOrNode: any, preserveContent?: boolean): any;
|
---|
121 | parentNode(node: any): any;
|
---|
122 | nextSibling(node: any): any;
|
---|
123 | setAttribute(el: any, name: string, value: string, namespace?: string | null | undefined): void;
|
---|
124 | removeAttribute(el: any, name: string, namespace?: string | null | undefined): void;
|
---|
125 | addClass(el: any, name: string): void;
|
---|
126 | removeClass(el: any, name: string): void;
|
---|
127 | setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2 | undefined): void;
|
---|
128 | removeStyle(el: any, style: string, flags?: RendererStyleFlags2 | undefined): void;
|
---|
129 | setProperty(el: any, name: string, value: any): void;
|
---|
130 | setValue(node: any, value: string): void;
|
---|
131 | listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void;
|
---|
132 | protected disableAnimations(element: any, value: boolean): void;
|
---|
133 | }
|
---|
134 |
|
---|
135 | export declare class ɵAnimationRenderer extends ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
|
---|
136 | factory: ɵAnimationRendererFactory;
|
---|
137 | constructor(factory: ɵAnimationRendererFactory, namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
|
---|
138 | setProperty(el: any, name: string, value: any): void;
|
---|
139 | listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any): () => void;
|
---|
140 | }
|
---|
141 |
|
---|
142 | export declare class ɵAnimationRendererFactory implements RendererFactory2 {
|
---|
143 | private delegate;
|
---|
144 | private engine;
|
---|
145 | private _zone;
|
---|
146 | private _currentId;
|
---|
147 | private _microtaskId;
|
---|
148 | private _animationCallbacksBuffer;
|
---|
149 | private _rendererCache;
|
---|
150 | private _cdRecurDepth;
|
---|
151 | private promise;
|
---|
152 | constructor(delegate: RendererFactory2, engine: ɵAnimationEngine, _zone: NgZone);
|
---|
153 | createRenderer(hostElement: any, type: RendererType2): Renderer2;
|
---|
154 | begin(): void;
|
---|
155 | private _scheduleCountTask;
|
---|
156 | end(): void;
|
---|
157 | whenRenderingDone(): Promise<any>;
|
---|
158 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ɵAnimationRendererFactory, never>;
|
---|
159 | static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ɵAnimationRendererFactory>;
|
---|
160 | }
|
---|
161 |
|
---|
162 | export declare class ɵBrowserAnimationBuilder extends AnimationBuilder {
|
---|
163 | private _nextAnimationId;
|
---|
164 | private _renderer;
|
---|
165 | constructor(rootRenderer: RendererFactory2, doc: any);
|
---|
166 | build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
|
---|
167 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ɵBrowserAnimationBuilder, never>;
|
---|
168 | static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ɵBrowserAnimationBuilder>;
|
---|
169 | }
|
---|
170 |
|
---|
171 | export declare class ɵBrowserAnimationFactory extends AnimationFactory {
|
---|
172 | private _id;
|
---|
173 | private _renderer;
|
---|
174 | constructor(_id: string, _renderer: ɵAnimationRenderer);
|
---|
175 | create(element: any, options?: AnimationOptions): AnimationPlayer;
|
---|
176 | }
|
---|
177 |
|
---|
178 | export declare class ɵInjectableAnimationEngine extends ɵAnimationEngine implements OnDestroy {
|
---|
179 | constructor(doc: any, driver: AnimationDriver, normalizer: ɵAnimationStyleNormalizer);
|
---|
180 | ngOnDestroy(): void;
|
---|
181 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ɵInjectableAnimationEngine, never>;
|
---|
182 | static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ɵInjectableAnimationEngine>;
|
---|
183 | }
|
---|
184 |
|
---|
185 | export { }
|
---|
186 |
|
---|
187 | //# sourceMappingURL=animations.d.ts.map |
---|