|
| 1 | +/** |
| 2 | + * @license Angular v20.0.0-next.4+sha-76c60a6 |
| 3 | + * (c) 2010-2025 Google LLC. https://angular.io/ |
| 4 | + * License: MIT |
| 5 | + */ |
| 6 | + |
| 7 | +import * as i0 from '@angular/core'; |
| 8 | +import { b as AnimationPlayer } from './animation_player.d-BR41_NcW.js'; |
| 9 | + |
| 10 | +/** |
| 11 | + * @publicApi |
| 12 | + * |
| 13 | + * `AnimationDriver` implentation for Noop animations |
| 14 | + */ |
| 15 | +declare class NoopAnimationDriver implements AnimationDriver { |
| 16 | + /** |
| 17 | + * @returns Whether `prop` is a valid CSS property |
| 18 | + */ |
| 19 | + validateStyleProperty(prop: string): boolean; |
| 20 | + /** |
| 21 | + * |
| 22 | + * @returns Whether elm1 contains elm2. |
| 23 | + */ |
| 24 | + containsElement(elm1: any, elm2: any): boolean; |
| 25 | + /** |
| 26 | + * @returns Rhe parent of the given element or `null` if the element is the `document` |
| 27 | + */ |
| 28 | + getParentElement(element: unknown): unknown; |
| 29 | + /** |
| 30 | + * @returns The result of the query selector on the element. The array will contain up to 1 item |
| 31 | + * if `multi` is `false`. |
| 32 | + */ |
| 33 | + query(element: any, selector: string, multi: boolean): any[]; |
| 34 | + /** |
| 35 | + * @returns The `defaultValue` or empty string |
| 36 | + */ |
| 37 | + computeStyle(element: any, prop: string, defaultValue?: string): string; |
| 38 | + /** |
| 39 | + * @returns An `NoopAnimationPlayer` |
| 40 | + */ |
| 41 | + animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): AnimationPlayer; |
| 42 | + static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationDriver, never>; |
| 43 | + static ɵprov: i0.ɵɵInjectableDeclaration<NoopAnimationDriver>; |
| 44 | +} |
| 45 | +/** |
| 46 | + * @publicApi |
| 47 | + */ |
| 48 | +declare abstract class AnimationDriver { |
| 49 | + /** |
| 50 | + * @deprecated Use the NoopAnimationDriver class. |
| 51 | + */ |
| 52 | + static NOOP: AnimationDriver; |
| 53 | + abstract validateStyleProperty(prop: string): boolean; |
| 54 | + abstract validateAnimatableStyleProperty?: (prop: string) => boolean; |
| 55 | + abstract containsElement(elm1: any, elm2: any): boolean; |
| 56 | + /** |
| 57 | + * Obtains the parent element, if any. `null` is returned if the element does not have a parent. |
| 58 | + */ |
| 59 | + abstract getParentElement(element: unknown): unknown; |
| 60 | + abstract query(element: any, selector: string, multi: boolean): any[]; |
| 61 | + abstract computeStyle(element: any, prop: string, defaultValue?: string): string; |
| 62 | + abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any; |
| 63 | +} |
| 64 | + |
| 65 | +export { AnimationDriver as A, NoopAnimationDriver as N }; |
0 commit comments