UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

27 lines (26 loc) 1.1 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { EventEmitter, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; export declare type Direction = 'ltr' | 'rtl'; /** Resolves a string value to a specific direction. */ export declare function _resolveDirectionality(rawValue: string): Direction; /** * The directionality (LTR / RTL) context for the application (or a subtree of it). * Exposes the current direction and a stream of direction changes. */ export declare class Directionality implements OnDestroy { /** The current 'ltr' or 'rtl' value. */ readonly value: Direction; /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */ readonly change: EventEmitter<Direction>; constructor(_document?: any); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<Directionality, [{ optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<Directionality>; }