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