UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

113 lines (112 loc) 5.23 kB
import { ElementRef, AfterViewChecked, OnDestroy, Renderer2, EventEmitter, ChangeDetectorRef, QueryList, TemplateRef, AfterContentInit } from '@angular/core'; import { AnimationEvent } from '@angular/animations'; import { ConnectedOverlayScrollHandler } from 'primeng/dom'; import { MenuItem, OverlayService, PrimeNGConfig } from 'primeng/api'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "@angular/router"; import * as i3 from "primeng/tooltip"; import * as i4 from "primeng/api"; import * as i5 from "primeng/icons/caretleft"; import * as i6 from "primeng/icons/caretright"; import * as i7 from "primeng/icons/angleright"; export declare class SlideMenuSub implements OnDestroy { private document; private platformId; private renderer; item: MenuItem; root: boolean; backLabel: string; menuWidth: number; effectDuration: any; easing: string; index: number; sublistViewChild: ElementRef; slideMenu: SlideMenu; transitionEndListener: VoidFunction | null; constructor(slideMenu: any, document: Document, platformId: any, renderer: Renderer2); activeItem: any; itemClick(event: any, item: MenuItem, listitem: any): void; focusNextList(listitem: any): void; onItemKeyDown(event: any): void; unbindTransitionEndListener(): void; ngOnDestroy(): void; get isActive(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<SlideMenuSub, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SlideMenuSub, "p-slideMenuSub", never, { "item": "item"; "root": "root"; "backLabel": "backLabel"; "menuWidth": "menuWidth"; "effectDuration": "effectDuration"; "easing": "easing"; "index": "index"; }, {}, never, never, false, never>; } export declare class SlideMenu implements AfterViewChecked, AfterContentInit, OnDestroy { private document; private platformId; el: ElementRef; renderer: Renderer2; cd: ChangeDetectorRef; config: PrimeNGConfig; overlayService: OverlayService; model: MenuItem[]; popup: boolean; style: any; styleClass: string; menuWidth: number; viewportHeight: number; effectDuration: any; easing: string; backLabel: string; appendTo: any; autoZIndex: boolean; baseZIndex: number; showTransitionOptions: string; hideTransitionOptions: string; onShow: EventEmitter<any>; onHide: EventEmitter<any>; templates: QueryList<any>; containerViewChild: ElementRef; backwardViewChild: ElementRef; slideMenuContentViewChild: ElementRef; documentClickListener: VoidFunction | null; documentResizeListener: VoidFunction | null; preventDocumentDefault: boolean; scrollHandler: ConnectedOverlayScrollHandler | null; left: number; animating: boolean; target: any; visible: boolean; viewportUpdated: boolean; window: Window; submenuIconTemplate: TemplateRef<any>; backIconTemplate: TemplateRef<any>; constructor(document: Document, platformId: any, el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef, config: PrimeNGConfig, overlayService: OverlayService); ngAfterViewChecked(): void; ngAfterContentInit(): void; set container(element: ElementRef); set backward(element: ElementRef); set slideMenuContent(element: ElementRef); updateViewPort(): void; toggle(event: any): void; show(event: any): void; onOverlayClick(event: any): void; onOverlayAnimationStart(event: AnimationEvent): void; onOverlayAnimationEnd(event: AnimationEvent): void; appendOverlay(): void; restoreOverlayAppend(): void; moveOnTop(): void; hide(): void; onWindowResize(): void; goBack(): void; onBackwardKeydown(event: any): void; bindDocumentClickListener(): void; unbindDocumentClickListener(): void; bindDocumentResizeListener(): void; unbindDocumentResizeListener(): void; bindScrollListener(): void; unbindScrollListener(): void; onOverlayHide(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SlideMenu, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SlideMenu, "p-slideMenu", never, { "model": "model"; "popup": "popup"; "style": "style"; "styleClass": "styleClass"; "menuWidth": "menuWidth"; "viewportHeight": "viewportHeight"; "effectDuration": "effectDuration"; "easing": "easing"; "backLabel": "backLabel"; "appendTo": "appendTo"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; }, { "onShow": "onShow"; "onHide": "onHide"; }, ["templates"], never, false, never>; } export declare class SlideMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration<SlideMenuModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<SlideMenuModule, [typeof SlideMenu, typeof SlideMenuSub], [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.TooltipModule, typeof i4.SharedModule, typeof i5.CaretLeftIcon, typeof i6.CaretRightIcon, typeof i7.AngleRightIcon], [typeof SlideMenu, typeof i2.RouterModule, typeof i3.TooltipModule, typeof i4.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<SlideMenuModule>; }