import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core'; import { NgxSidebarContainerComponent } from './../ngx-sidebar-container/ngx-sidebar-container.component'; export declare class NgxSidebarComponent implements OnInit { private _container; private _ref; opened: boolean; openedChange: EventEmitter; mode: 'over' | 'push' | 'slide'; dock: boolean; dockedSize: string; position: 'start' | 'end' | 'left' | 'right' | 'top' | 'bottom'; animate: boolean; autoCollapseHeight: number; autoCollapseWidth: number; autoCollapseOnInit: boolean; sidebarClass: string; ariaLabel: string; trapFocus: boolean; autoFocus: boolean; showBackdrop: boolean; closeOnClickBackdrop: boolean; closeOnClickOutside: boolean; keyClose: boolean; keyCode: number; onOpenStart: EventEmitter; onOpened: EventEmitter; onCloseStart: EventEmitter; onClosed: EventEmitter; onTransitionEnd: EventEmitter; onModeChange: EventEmitter; onPositionChange: EventEmitter; /** @internal */ _onRerender: EventEmitter; /** @internal */ _elSidebar: ElementRef; private _focusableElementsString; private _focusableElements; private _focusedBeforeOpen; private _tabIndexAttr; private _tabIndexIndicatorAttr; private _wasCollapsed; private _shouldAnimate; private _clickEvent; private _onClickOutsideAttached; private _onKeyDownAttached; private _onResizeAttached; private _isBrowser; constructor(_container: NgxSidebarContainerComponent, _ref: ChangeDetectorRef, platformId: Object); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * Opens the sidebar and emits the appropriate events. */ open(): void; /** * Closes the sidebar and emits the appropriate events. */ close(): void; /** * Manually trigger a re-render of the container. Useful if the sidebar contents might change. */ triggerRerender(): void; _getStyle(): CSSStyleDeclaration; /** * @internal * * Handles the `transitionend` event on the sidebar to emit the onOpened/onClosed events after the transform * transition is completed. */ _onTransitionEnd(e: TransitionEvent): void; private readonly _shouldTrapFocus; /** * Sets focus to the first focusable element inside the sidebar. */ private _focusFirstItem; /** * Loops focus back to the start of the sidebar if set to do so. */ private _onFocusTrap; /** * Handles the ability to focus sidebar elements when it's open/closed to ensure that the sidebar is inert when * appropriate. */ private _setFocused; /** * Initializes event handlers for the closeOnClickOutside and keyClose options. */ private _initCloseListeners; private _initCloseClickListener; private _initCloseKeyDownListener; /** * Destroys all event handlers from _initCloseListeners. */ private _destroyCloseListeners; private _destroyCloseClickListener; private _destroyCloseKeyDownListener; /** * Handles `click` events on anything while the sidebar is open for the closeOnClickOutside option. * Programatically closes the sidebar if a click occurs outside the sidebar. * * @param e {MouseEvent} Mouse click event. */ private _onClickOutside; /** * Handles the `keydown` event for the keyClose option. * * @param e {KeyboardEvent} Normalized keydown event. */ private _onKeyDown; private _initCollapseListeners; private _destroyCollapseListeners; private _collapse; readonly _height: number; readonly _width: number; readonly _dockedSize: number; readonly _isModeOver: boolean; readonly _isModePush: boolean; readonly _isModeSlide: boolean; readonly _isDocked: boolean; readonly _isLeftOrTop: boolean; readonly _isLeftOrRight: boolean; readonly _isInert: boolean; /** * "Normalizes" position. For example, "start" would be "left" if the page is LTR. */ private _normalizePosition; }