Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
5.6 KB
|
Line | |
---|
1 | {"version":3,"file":"dialog-container.d.ts","sources":["dialog-container.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { AnimationEvent } from '@angular/animations';\nimport { FocusMonitor, FocusOrigin, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter } from '@angular/core';\nimport { MatDialogConfig } from './dialog-config';\n/** Event that captures the state of dialog container animations. */\ninterface DialogAnimationEvent {\n state: 'opened' | 'opening' | 'closing' | 'closed';\n totalTime: number;\n}\n/**\n * Throws an exception for the case when a ComponentPortal is\n * attached to a DomPortalOutlet without an origin.\n * @docs-private\n */\nexport declare function throwMatDialogContentAlreadyAttachedError(): void;\n/**\n * Base class for the `MatDialogContainer`. The base class does not implement\n * animations as these are left to implementers of the dialog container.\n */\nexport declare abstract class _MatDialogContainerBase extends BasePortalOutlet {\n protected _elementRef: ElementRef;\n protected _focusTrapFactory: FocusTrapFactory;\n protected _changeDetectorRef: ChangeDetectorRef;\n /** The dialog configuration. */\n _config: MatDialogConfig;\n private _focusMonitor?;\n protected _document: Document;\n /** The portal outlet inside of this container into which the dialog content will be loaded. */\n _portalOutlet: CdkPortalOutlet;\n /** The class that traps and manages focus within the dialog. */\n private _focusTrap;\n /** Emits when an animation state changes. */\n _animationStateChanged: EventEmitter<DialogAnimationEvent>;\n /** Element that was focused before the dialog was opened. Save this to restore upon close. */\n private _elementFocusedBeforeDialogWasOpened;\n /**\n * Type of interaction that led to the dialog being closed. This is used to determine\n * whether the focus style will be applied when returning focus to its original location\n * after the dialog is closed.\n */\n _closeInteractionType: FocusOrigin | null;\n /** ID of the element that should be considered as the dialog's label. */\n _ariaLabelledBy: string | null;\n /** ID for the container DOM element. */\n _id: string;\n constructor(_elementRef: ElementRef, _focusTrapFactory: FocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any, \n /** The dialog configuration. */\n _config: MatDialogConfig, _focusMonitor?: FocusMonitor | undefined);\n /** Starts the dialog exit animation. */\n abstract _startExitAnimation(): void;\n /** Initializes the dialog container with the attached content. */\n _initializeWithAttachedContent(): void;\n /**\n * Attach a ComponentPortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;\n /**\n * Attach a TemplatePortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;\n /**\n * Attaches a DOM portal to the dialog container.\n * @param portal Portal to be attached.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n attachDomPortal: (portal: DomPortal) => void;\n /** Moves focus back into the dialog if it was moved out. */\n _recaptureFocus(): void;\n /** Moves the focus inside the focus trap. */\n protected _trapFocus(): void;\n /** Restores focus to the element that was focused before the dialog opened. */\n protected _restoreFocus(): void;\n /** Sets up the focus trap. */\n private _setupFocusTrap;\n /** Captures the element that was focused before the dialog was opened. */\n private _capturePreviouslyFocusedElement;\n /** Focuses the dialog container. */\n private _focusDialogContainer;\n /** Returns whether focus is inside the dialog. */\n private _containsFocus;\n}\n/**\n * Internal component that wraps user-provided dialog content.\n * Animation is based on https://material.io/guidelines/motion/choreography.html.\n * @docs-private\n */\nexport declare class MatDialogContainer extends _MatDialogContainerBase {\n /** State of the dialog animation. */\n _state: 'void' | 'enter' | 'exit';\n /** Callback, invoked whenever an animation on the host completes. */\n _onAnimationDone({ toState, totalTime }: AnimationEvent): void;\n /** Callback, invoked when an animation on the host starts. */\n _onAnimationStart({ toState, totalTime }: AnimationEvent): void;\n /** Starts the dialog exit animation. */\n _startExitAnimation(): void;\n}\nexport {};\n"]} |
---|
Note:
See
TracBrowser
for help on using the repository browser.