123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import * as i0 from '@angular/core';
- import { OnDestroy, EventEmitter, AfterContentInit } from '@angular/core';
- type Direction = 'ltr' | 'rtl';
- /**
- * The directionality (LTR / RTL) context for the application (or a subtree of it).
- * Exposes the current direction and a stream of direction changes.
- */
- 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(...args: unknown[]);
- ngOnDestroy(): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<Directionality, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<Directionality>;
- }
- /**
- * Directive to listen for changes of direction of part of the DOM.
- *
- * Provides itself as Directionality such that descendant directives only need to ever inject
- * Directionality to get the closest direction.
- */
- declare class Dir implements Directionality, AfterContentInit, OnDestroy {
- /** Normalized direction that accounts for invalid/unsupported values. */
- private _dir;
- /** Whether the `value` has been set to its initial value. */
- private _isInitialized;
- /** Direction as passed in by the consumer. */
- _rawDir: string;
- /** Event emitted when the direction changes. */
- readonly change: EventEmitter<Direction>;
- /** @docs-private */
- get dir(): Direction;
- set dir(value: Direction | 'auto');
- /** Current layout direction of the element. */
- get value(): Direction;
- /** Initialize once default value has been set. */
- ngAfterContentInit(): void;
- ngOnDestroy(): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": { "alias": "dir"; "required": false; }; }, { "change": "dirChange"; }, never, never, true, never>;
- }
- declare class BidiModule {
- static ɵfac: i0.ɵɵFactoryDeclaration<BidiModule, never>;
- static ɵmod: i0.ɵɵNgModuleDeclaration<BidiModule, never, [typeof Dir], [typeof Dir]>;
- static ɵinj: i0.ɵɵInjectorDeclaration<BidiModule>;
- }
- export { BidiModule as B, Directionality as D, Dir as b };
- export type { Direction as a };
|