1 |
|
2 |
|
3 |
|
4 |
|
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 * as i0 from '@angular/core';
|
14 | import * as i1 from '@angular/platform-browser';
|
15 | import { InjectionToken } from '@angular/core';
|
16 | import { ModuleWithProviders } from '@angular/core';
|
17 | import { NgZone } from '@angular/core';
|
18 | import { OnDestroy } from '@angular/core';
|
19 | import { Renderer2 } from '@angular/core';
|
20 | import { RendererFactory2 } from '@angular/core';
|
21 | import { RendererStyleFlags2 } from '@angular/core';
|
22 | import { RendererType2 } from '@angular/core';
|
23 | import { ɵAnimationEngine } from '@angular/animations/browser';
|
24 | import { ɵAnimationStyleNormalizer } from '@angular/animations/browser';
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
30 |
|
31 | declare class BaseAnimationRenderer implements Renderer2 {
|
32 | protected namespaceId: string;
|
33 | delegate: Renderer2;
|
34 | engine: ɵAnimationEngine;
|
35 | constructor(namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
|
36 | get data(): {
|
37 | [key: string]: any;
|
38 | };
|
39 | destroyNode: ((n: any) => void) | null;
|
40 | destroy(): void;
|
41 | createElement(name: string, namespace?: string | null | undefined): any;
|
42 | createComment(value: string): any;
|
43 | createText(value: string): any;
|
44 | appendChild(parent: any, newChild: any): void;
|
45 | insertBefore(parent: any, newChild: any, refChild: any, isMove?: boolean): void;
|
46 | removeChild(parent: any, oldChild: any, isHostElement: boolean): void;
|
47 | selectRootElement(selectorOrNode: any, preserveContent?: boolean): any;
|
48 | parentNode(node: any): any;
|
49 | nextSibling(node: any): any;
|
50 | setAttribute(el: any, name: string, value: string, namespace?: string | null | undefined): void;
|
51 | removeAttribute(el: any, name: string, namespace?: string | null | undefined): void;
|
52 | addClass(el: any, name: string): void;
|
53 | removeClass(el: any, name: string): void;
|
54 | setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2 | undefined): void;
|
55 | removeStyle(el: any, style: string, flags?: RendererStyleFlags2 | undefined): void;
|
56 | setProperty(el: any, name: string, value: any): void;
|
57 | setValue(node: any, value: string): void;
|
58 | listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void;
|
59 | protected disableAnimations(element: any, value: boolean): void;
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | export declare class BrowserAnimationsModule {
|
68 | |
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>;
|
85 | static ɵfac: i0.ɵɵFactoryDeclaration<BrowserAnimationsModule, never>;
|
86 | static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserAnimationsModule, never, never, [typeof i1.BrowserModule]>;
|
87 | static ɵinj: i0.ɵɵInjectorDeclaration<BrowserAnimationsModule>;
|
88 | }
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 | export declare interface BrowserAnimationsModuleConfig {
|
95 | |
96 |
|
97 |
|
98 |
|
99 | disableAnimations?: boolean;
|
100 | }
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 | export declare class NoopAnimationsModule {
|
107 | static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationsModule, never>;
|
108 | static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAnimationsModule, never, never, [typeof i1.BrowserModule]>;
|
109 | static ɵinj: i0.ɵɵInjectorDeclaration<NoopAnimationsModule>;
|
110 | }
|
111 |
|
112 | export declare class ɵAnimationRenderer extends BaseAnimationRenderer implements Renderer2 {
|
113 | factory: ɵAnimationRendererFactory;
|
114 | constructor(factory: ɵAnimationRendererFactory, namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
|
115 | setProperty(el: any, name: string, value: any): void;
|
116 | listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any): () => void;
|
117 | }
|
118 |
|
119 | export declare class ɵAnimationRendererFactory implements RendererFactory2 {
|
120 | private delegate;
|
121 | private engine;
|
122 | private _zone;
|
123 | private _currentId;
|
124 | private _microtaskId;
|
125 | private _animationCallbacksBuffer;
|
126 | private _rendererCache;
|
127 | private _cdRecurDepth;
|
128 | private promise;
|
129 | constructor(delegate: RendererFactory2, engine: ɵAnimationEngine, _zone: NgZone);
|
130 | createRenderer(hostElement: any, type: RendererType2): Renderer2;
|
131 | begin(): void;
|
132 | private _scheduleCountTask;
|
133 | end(): void;
|
134 | whenRenderingDone(): Promise<any>;
|
135 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵAnimationRendererFactory, never>;
|
136 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵAnimationRendererFactory>;
|
137 | }
|
138 |
|
139 | export declare class ɵBrowserAnimationBuilder extends AnimationBuilder {
|
140 | private _nextAnimationId;
|
141 | private _renderer;
|
142 | constructor(rootRenderer: RendererFactory2, doc: any);
|
143 | build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
|
144 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵBrowserAnimationBuilder, never>;
|
145 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵBrowserAnimationBuilder>;
|
146 | }
|
147 |
|
148 | export declare class ɵBrowserAnimationFactory extends AnimationFactory {
|
149 | private _id;
|
150 | private _renderer;
|
151 | constructor(_id: string, _renderer: ɵAnimationRenderer);
|
152 | create(element: any, options?: AnimationOptions): AnimationPlayer;
|
153 | }
|
154 |
|
155 | export declare class ɵInjectableAnimationEngine extends ɵAnimationEngine implements OnDestroy {
|
156 | constructor(doc: any, driver: AnimationDriver, normalizer: ɵAnimationStyleNormalizer);
|
157 | ngOnDestroy(): void;
|
158 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵInjectableAnimationEngine, never>;
|
159 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵInjectableAnimationEngine>;
|
160 | }
|
161 |
|
162 | export { }
|