UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

57 lines (56 loc) 2.5 kB
import { AfterViewInit, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core'; import { SplitAreaDirective } from 'angular-split'; import * as i0 from "@angular/core"; export declare class SplitterAccessibilityDirective implements OnInit, AfterViewInit, OnDestroy { private readonly _elementRef; private readonly _renderer; private readonly _splitter; private readonly _focusIndicatorService; private readonly _platform; /** Emit an event whenever the gutter is moved using the keyboard */ gutterKeydown: EventEmitter<KeyboardEvent>; /** Find all the split areas */ areas: QueryList<SplitAreaDirective>; /** Store all the gutter elements */ private _gutters; /** Watch for gutters being added or removed */ private _observer; /** Teardown our observables on destroy */ private readonly _onDestroy; /** Store references to all focus indicators */ private _focusIndicators; ngOnInit(): void; /** Once initialised make the gutters accessible */ ngAfterViewInit(): void; /** Destroy all observables and observers */ ngOnDestroy(): void; /** We should focus the gutter when it is clicked */ onClick(event: MouseEvent): void; /** Find all the gutters and set their attributes */ private onGutterChange; /** Get all the gutter elements */ private getGutters; /** Set the appropriate attributes on the gutter elements */ private setGutterAttributes; /** Apply the aria attribute values */ private updateGutterAttributes; /** Apply the value now aria attribute */ private setGutterValueNow; /** Apply the value min aria attribute */ private setGutterValueMin; /** Apply the value max aria attribute */ private setGutterValueMax; onKeydown(event: KeyboardEvent): void; onIncreaseKey(event: KeyboardEvent): void; onDecreaseKey(event: KeyboardEvent): void; onHomeKey(event: KeyboardEvent): void; onEndKey(event: KeyboardEvent): void; /** Determine if an element is a gutter */ private isSplitterGutter; /** Update the gutter position */ private setGutterPosition; /** Get the split areas associated with a given gutter */ private getAreasFromGutter; static ɵfac: i0.ɵɵFactoryDeclaration<SplitterAccessibilityDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SplitterAccessibilityDirective, "as-split", never, {}, { "gutterKeydown": "gutterKeydown"; }, ["areas"], never, false, never>; }