1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { EventEmitter, AfterContentInit, OnDestroy } from '@angular/core';
|
---|
9 | import { Direction, Directionality } from './directionality';
|
---|
10 | /**
|
---|
11 | * Directive to listen for changes of direction of part of the DOM.
|
---|
12 | *
|
---|
13 | * Provides itself as Directionality such that descendant directives only need to ever inject
|
---|
14 | * Directionality to get the closest direction.
|
---|
15 | */
|
---|
16 | import * as ɵngcc0 from '@angular/core';
|
---|
17 | export declare class Dir implements Directionality, AfterContentInit, OnDestroy {
|
---|
18 | /** Normalized direction that accounts for invalid/unsupported values. */
|
---|
19 | private _dir;
|
---|
20 | /** Whether the `value` has been set to its initial value. */
|
---|
21 | private _isInitialized;
|
---|
22 | /** Direction as passed in by the consumer. */
|
---|
23 | _rawDir: string;
|
---|
24 | /** Event emitted when the direction changes. */
|
---|
25 | readonly change: EventEmitter<Direction>;
|
---|
26 | /** @docs-private */
|
---|
27 | get dir(): Direction;
|
---|
28 | set dir(value: Direction);
|
---|
29 | /** Current layout direction of the element. */
|
---|
30 | get value(): Direction;
|
---|
31 | /** Initialize once default value has been set. */
|
---|
32 | ngAfterContentInit(): void;
|
---|
33 | ngOnDestroy(): void;
|
---|
34 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<Dir, never>;
|
---|
35 | static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never>;
|
---|
36 | }
|
---|
37 |
|
---|
38 | //# sourceMappingURL=dir.d.ts.map |
---|