1 | import { AfterContentInit, SimpleChange, ElementRef, QueryList, OnChanges, ModuleWithProviders } from '@angular/core';
|
2 | import { ControlValueAccessor } from '@angular/forms';
|
3 | import { MdError } from '@angular2-material/core';
|
4 | import { Observable } from 'rxjs/Observable';
|
5 | export declare const MD_INPUT_CONTROL_VALUE_ACCESSOR: any;
|
6 | export declare class MdInputPlaceholderConflictError extends MdError {
|
7 | constructor();
|
8 | }
|
9 | export declare class MdInputUnsupportedTypeError extends MdError {
|
10 | constructor(type: string);
|
11 | }
|
12 | export declare class MdInputDuplicatedHintError extends MdError {
|
13 | constructor(align: string);
|
14 | }
|
15 | /**
|
16 | * The placeholder directive. The content can declare this to implement more
|
17 | * complex placeholders.
|
18 | */
|
19 | export declare class MdPlaceholder {
|
20 | }
|
21 |
|
22 | export declare class MdHint {
|
23 | align: 'start' | 'end';
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare class MdInput implements ControlValueAccessor, AfterContentInit, OnChanges {
|
30 | private _focused;
|
31 | private _value;
|
32 |
|
33 | private _onTouchedCallback;
|
34 |
|
35 | private _onChangeCallback;
|
36 | |
37 |
|
38 |
|
39 | ariaLabel: string;
|
40 | ariaLabelledBy: string;
|
41 | ariaDisabled: boolean;
|
42 | ariaRequired: boolean;
|
43 | ariaInvalid: boolean;
|
44 | |
45 |
|
46 |
|
47 | _placeholderChild: MdPlaceholder;
|
48 | _hintChildren: QueryList<MdHint>;
|
49 |
|
50 | readonly focused: boolean;
|
51 | readonly empty: boolean;
|
52 | readonly characterCount: number;
|
53 | readonly inputId: string;
|
54 | |
55 |
|
56 |
|
57 | align: 'start' | 'end';
|
58 | dividerColor: 'primary' | 'accent' | 'warn';
|
59 | floatingPlaceholder: boolean;
|
60 | hintLabel: string;
|
61 | autocomplete: string;
|
62 | autocorrect: string;
|
63 | autocapitalize: string;
|
64 | autofocus: boolean;
|
65 | disabled: boolean;
|
66 | id: string;
|
67 | list: string;
|
68 | max: string | number;
|
69 | maxlength: number;
|
70 | min: string | number;
|
71 | minlength: number;
|
72 | placeholder: string;
|
73 | readonly: boolean;
|
74 | required: boolean;
|
75 | spellcheck: boolean;
|
76 | step: number;
|
77 | tabindex: number;
|
78 | type: string;
|
79 | name: string;
|
80 | private _blurEmitter;
|
81 | private _focusEmitter;
|
82 | readonly onBlur: Observable<FocusEvent>;
|
83 | readonly onFocus: Observable<FocusEvent>;
|
84 | value: any;
|
85 | readonly _align: any;
|
86 | _inputElement: ElementRef;
|
87 |
|
88 | focus(): void;
|
89 | _handleFocus(event: FocusEvent): void;
|
90 | _handleBlur(event: FocusEvent): void;
|
91 | _handleChange(event: Event): void;
|
92 | _hasPlaceholder(): boolean;
|
93 | |
94 |
|
95 |
|
96 |
|
97 | writeValue(value: any): void;
|
98 | |
99 |
|
100 |
|
101 |
|
102 | registerOnChange(fn: any): void;
|
103 | |
104 |
|
105 |
|
106 |
|
107 | registerOnTouched(fn: any): void;
|
108 |
|
109 | ngAfterContentInit(): void;
|
110 |
|
111 | ngOnChanges(changes: {
|
112 | [key: string]: SimpleChange;
|
113 | }): void;
|
114 | |
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 | private _convertValueForInputType(v);
|
121 | |
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 | private _validateConstraints();
|
131 | }
|
132 | export declare class MdInputModule {
|
133 | static forRoot(): ModuleWithProviders;
|
134 | }
|