source: trip-planner-front/node_modules/@angular/platform-browser/animations/animations.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 8.1 KB
Line 
1/**
2 * @license Angular v12.2.9
3 * (c) 2010-2021 Google LLC. https://angular.io/
4 * License: MIT
5 */
6
7import { AnimationBuilder } from '@angular/animations';
8import { AnimationDriver } from '@angular/animations/browser';
9import { AnimationFactory } from '@angular/animations';
10import { AnimationMetadata } from '@angular/animations';
11import { AnimationOptions } from '@angular/animations';
12import { AnimationPlayer } from '@angular/animations';
13import { InjectionToken } from '@angular/core';
14import { ModuleWithProviders } from '@angular/core';
15import { NgZone } from '@angular/core';
16import { OnDestroy } from '@angular/core';
17import { Provider } from '@angular/core';
18import { Renderer2 } from '@angular/core';
19import { RendererFactory2 } from '@angular/core';
20import { RendererStyleFlags2 } from '@angular/core';
21import { RendererType2 } from '@angular/core';
22import { ɵAnimationEngine } from '@angular/animations/browser';
23import { ɵAnimationStyleNormalizer } from '@angular/animations/browser';
24import { ɵCssKeyframesDriver } from '@angular/animations/browser';
25import { ɵDomRendererFactory2 } from '@angular/platform-browser';
26import { ɵWebAnimationsDriver } from '@angular/animations/browser';
27import { ɵWebAnimationsStyleNormalizer } from '@angular/animations/browser';
28
29/**
30 * @publicApi
31 */
32import * as ɵngcc0 from '@angular/core';
33import * as ɵngcc1 from '@angular/platform-browser';
34export 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 */
41export 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 */
68export 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 */
80export 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
86export declare function ɵangular_packages_platform_browser_animations_animations_a(): ɵWebAnimationsDriver | ɵCssKeyframesDriver;
87
88export declare function ɵangular_packages_platform_browser_animations_animations_b(): ɵWebAnimationsStyleNormalizer;
89
90export 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 */
96export 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 */
102export declare const ɵangular_packages_platform_browser_animations_animations_e: Provider[];
103
104export 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
135export 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
142export 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
162export 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
171export 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
178export 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
185export { }
186
187//# sourceMappingURL=animations.d.ts.map
Note: See TracBrowser for help on using the repository browser.