/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { FocusTrap, FocusTrapFactory } from '@angular/cdk/a11y'; import { Direction, Directionality } from '@angular/cdk/bidi'; import { Overlay, OverlayKeyboardDispatcher, OverlayRef } from '@angular/cdk/overlay'; import { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal'; import { AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef, Type, ViewContainerRef } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { VtsConfigKey, VtsConfigService } from '@ui-vts-kit/ng-vts/core/config'; import { BooleanInput, NgStyleInterface, VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; import { VtsDrawerOptionsOfComponent, VtsDrawerPlacement } from './drawer-options'; import { VtsDrawerRef } from './drawer-ref'; import * as i0 from "@angular/core"; export declare const DRAWER_ANIMATE_DURATION = 300; export declare class VtsDrawerComponent extends VtsDrawerRef implements OnInit, OnDestroy, AfterViewInit, OnChanges, AfterContentInit, VtsDrawerOptionsOfComponent { private cdr; private document; vtsConfigService: VtsConfigService; private renderer; private overlay; private injector; private changeDetectorRef; private focusTrapFactory; private viewContainerRef; private overlayKeyboardDispatcher; private directionality; readonly _vtsModuleName: VtsConfigKey; static ngAcceptInputType_vtsClosable: BooleanInput; static ngAcceptInputType_vtsMaskClosable: BooleanInput; static ngAcceptInputType_vtsMask: BooleanInput; static ngAcceptInputType_vtsNoAnimation: BooleanInput; static ngAcceptInputType_vtsKeyboard: BooleanInput; static ngAcceptInputType_vtsCloseOnNavigation: BooleanInput; vtsContent: TemplateRef<{ $implicit: D; drawerRef: VtsDrawerRef; }> | Type; vtsCloseIcon: string | TemplateRef; vtsClosable: boolean; vtsMaskClosable: boolean; vtsMask: boolean; vtsCloseOnNavigation: boolean; vtsNoAnimation: boolean; vtsKeyboard: boolean; vtsTitle?: string | TemplateRef<{}>; vtsFooter?: string | TemplateRef<{}>; vtsPlacement: VtsDrawerPlacement; vtsMaskStyle: NgStyleInterface; vtsBodyStyle: NgStyleInterface; vtsWrapClassName?: string; vtsWidth: number | string; vtsHeight: number | string; vtsZIndex: number; vtsOffsetX: number; vtsOffsetY: number; private componentInstance; set vtsVisible(value: boolean); get vtsVisible(): boolean; readonly vtsOnViewInit: EventEmitter; readonly vtsOnClose: EventEmitter; readonly vtsVisibleChange: EventEmitter; drawerTemplate: TemplateRef; bodyPortalOutlet?: CdkPortalOutlet; contentFromContentChild?: TemplateRef; private destroy$; previouslyFocusedElement?: HTMLElement; placementChanging: boolean; placementChangeTimeoutId: number | ReturnType; vtsContentParams?: D; overlayRef?: OverlayRef | null; portal?: TemplatePortal; focusTrap?: FocusTrap; isOpen: boolean; templateContext: { $implicit: D | undefined; drawerRef: VtsDrawerRef; }; get offsetTransform(): string | null; get transform(): string | null; get width(): string | null; get height(): string | null; get isLeftOrRight(): boolean; vtsAfterOpen: Subject; vtsAfterClose: Subject; get afterOpen(): Observable; get afterClose(): Observable; isTemplateRef(value: {}): boolean; vtsDirection?: Direction; dir: Direction; constructor(cdr: ChangeDetectorRef, document: VtsSafeAny, vtsConfigService: VtsConfigService, renderer: Renderer2, overlay: Overlay, injector: Injector, changeDetectorRef: ChangeDetectorRef, focusTrapFactory: FocusTrapFactory, viewContainerRef: ViewContainerRef, overlayKeyboardDispatcher: OverlayKeyboardDispatcher, directionality: Directionality); ngOnInit(): void; ngAfterViewInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private getAnimationDuration; private triggerPlacementChangeCycleOnce; close(result?: R): void; open(): void; getContentComponent(): T | null; closeClick(): void; maskClick(): void; private attachBodyContent; private attachOverlay; private disposeOverlay; private getOverlayConfig; private updateOverlayStyle; private updateBodyOverflow; savePreviouslyFocusedElement(): void; private trapFocus; private restoreFocus; static ɵfac: i0.ɵɵFactoryDeclaration, [null, { optional: true; }, null, null, null, null, null, null, null, null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration, "vts-drawer", ["vtsDrawer"], { "vtsContent": { "alias": "vtsContent"; "required": false; }; "vtsCloseIcon": { "alias": "vtsCloseIcon"; "required": false; }; "vtsClosable": { "alias": "vtsClosable"; "required": false; }; "vtsMaskClosable": { "alias": "vtsMaskClosable"; "required": false; }; "vtsMask": { "alias": "vtsMask"; "required": false; }; "vtsCloseOnNavigation": { "alias": "vtsCloseOnNavigation"; "required": false; }; "vtsNoAnimation": { "alias": "vtsNoAnimation"; "required": false; }; "vtsKeyboard": { "alias": "vtsKeyboard"; "required": false; }; "vtsTitle": { "alias": "vtsTitle"; "required": false; }; "vtsFooter": { "alias": "vtsFooter"; "required": false; }; "vtsPlacement": { "alias": "vtsPlacement"; "required": false; }; "vtsMaskStyle": { "alias": "vtsMaskStyle"; "required": false; }; "vtsBodyStyle": { "alias": "vtsBodyStyle"; "required": false; }; "vtsWrapClassName": { "alias": "vtsWrapClassName"; "required": false; }; "vtsWidth": { "alias": "vtsWidth"; "required": false; }; "vtsHeight": { "alias": "vtsHeight"; "required": false; }; "vtsZIndex": { "alias": "vtsZIndex"; "required": false; }; "vtsOffsetX": { "alias": "vtsOffsetX"; "required": false; }; "vtsOffsetY": { "alias": "vtsOffsetY"; "required": false; }; "vtsVisible": { "alias": "vtsVisible"; "required": false; }; }, { "vtsOnViewInit": "vtsOnViewInit"; "vtsOnClose": "vtsOnClose"; "vtsVisibleChange": "vtsVisibleChange"; }, ["contentFromContentChild"], ["*"], false, never>; }