source: trip-planner-front/node_modules/@angular/material/input/input.d.ts@ 8d391a1

Last change on this file since 8d391a1 was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 6.7 KB
Line 
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 */
8import { BooleanInput } from '@angular/cdk/coercion';
9import { Platform } from '@angular/cdk/platform';
10import { AutofillMonitor } from '@angular/cdk/text-field';
11import { AfterViewInit, DoCheck, ElementRef, NgZone, OnChanges, OnDestroy } from '@angular/core';
12import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
13import { CanUpdateErrorState, ErrorStateMatcher } from '@angular/material/core';
14import { MatFormFieldControl, MatFormField } from '@angular/material/form-field';
15import { Subject } from 'rxjs';
16/** @docs-private */
17import * as ɵngcc0 from '@angular/core';
18declare const _MatInputBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanUpdateErrorState> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanUpdateErrorState> & {
19 new (_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
20 _defaultErrorStateMatcher: ErrorStateMatcher;
21 _parentForm: NgForm;
22 _parentFormGroup: FormGroupDirective;
23 /** @docs-private */
24 ngControl: NgControl;
25 };
26};
27/** Directive that allows a native input to work inside a `MatFormField`. */
28export declare class MatInput extends _MatInputBase implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck, CanUpdateErrorState {
29 protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
30 protected _platform: Platform;
31 private _autofillMonitor;
32 private _formField?;
33 protected _uid: string;
34 protected _previousNativeValue: any;
35 private _inputValueAccessor;
36 private _previousPlaceholder;
37 /** Whether the component is being rendered on the server. */
38 readonly _isServer: boolean;
39 /** Whether the component is a native html select. */
40 readonly _isNativeSelect: boolean;
41 /** Whether the component is a textarea. */
42 readonly _isTextarea: boolean;
43 /** Whether the input is inside of a form field. */
44 readonly _isInFormField: boolean;
45 /**
46 * Implemented as part of MatFormFieldControl.
47 * @docs-private
48 */
49 focused: boolean;
50 /**
51 * Implemented as part of MatFormFieldControl.
52 * @docs-private
53 */
54 readonly stateChanges: Subject<void>;
55 /**
56 * Implemented as part of MatFormFieldControl.
57 * @docs-private
58 */
59 controlType: string;
60 /**
61 * Implemented as part of MatFormFieldControl.
62 * @docs-private
63 */
64 autofilled: boolean;
65 /**
66 * Implemented as part of MatFormFieldControl.
67 * @docs-private
68 */
69 get disabled(): boolean;
70 set disabled(value: boolean);
71 protected _disabled: boolean;
72 /**
73 * Implemented as part of MatFormFieldControl.
74 * @docs-private
75 */
76 get id(): string;
77 set id(value: string);
78 protected _id: string;
79 /**
80 * Implemented as part of MatFormFieldControl.
81 * @docs-private
82 */
83 placeholder: string;
84 /**
85 * Implemented as part of MatFormFieldControl.
86 * @docs-private
87 */
88 get required(): boolean;
89 set required(value: boolean);
90 protected _required: boolean;
91 /** Input type of the element. */
92 get type(): string;
93 set type(value: string);
94 protected _type: string;
95 /** An object used to control when error messages are shown. */
96 errorStateMatcher: ErrorStateMatcher;
97 /**
98 * Implemented as part of MatFormFieldControl.
99 * @docs-private
100 */
101 userAriaDescribedBy: string;
102 /**
103 * Implemented as part of MatFormFieldControl.
104 * @docs-private
105 */
106 get value(): string;
107 set value(value: string);
108 /** Whether the element is readonly. */
109 get readonly(): boolean;
110 set readonly(value: boolean);
111 private _readonly;
112 protected _neverEmptyInputTypes: string[];
113 constructor(_elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>, _platform: Platform, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, _autofillMonitor: AutofillMonitor, ngZone: NgZone, _formField?: MatFormField | undefined);
114 ngAfterViewInit(): void;
115 ngOnChanges(): void;
116 ngOnDestroy(): void;
117 ngDoCheck(): void;
118 /** Focuses the input. */
119 focus(options?: FocusOptions): void;
120 /** Callback for the cases where the focused state of the input changes. */
121 _focusChanged(isFocused: boolean): void;
122 _onInput(): void;
123 /** Does some manual dirty checking on the native input `placeholder` attribute. */
124 private _dirtyCheckPlaceholder;
125 /** Does some manual dirty checking on the native input `value` property. */
126 protected _dirtyCheckNativeValue(): void;
127 /** Make sure the input is a supported type. */
128 protected _validateType(): void;
129 /** Checks whether the input type is one of the types that are never empty. */
130 protected _isNeverEmpty(): boolean;
131 /** Checks whether the input is invalid based on the native validation. */
132 protected _isBadInput(): boolean;
133 /**
134 * Implemented as part of MatFormFieldControl.
135 * @docs-private
136 */
137 get empty(): boolean;
138 /**
139 * Implemented as part of MatFormFieldControl.
140 * @docs-private
141 */
142 get shouldLabelFloat(): boolean;
143 /**
144 * Implemented as part of MatFormFieldControl.
145 * @docs-private
146 */
147 setDescribedByIds(ids: string[]): void;
148 /**
149 * Implemented as part of MatFormFieldControl.
150 * @docs-private
151 */
152 onContainerClick(): void;
153 /** Whether the form control is a native select that is displayed inline. */
154 _isInlineSelect(): boolean;
155 static ngAcceptInputType_disabled: BooleanInput;
156 static ngAcceptInputType_readonly: BooleanInput;
157 static ngAcceptInputType_required: BooleanInput;
158 static ngAcceptInputType_value: any;
159 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatInput, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, null, null, { optional: true; }]>;
160 static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatInput, "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", ["matInput"], { "id": "id"; "disabled": "disabled"; "required": "required"; "type": "type"; "value": "value"; "readonly": "readonly"; "placeholder": "placeholder"; "errorStateMatcher": "errorStateMatcher"; "userAriaDescribedBy": "aria-describedby"; }, {}, never>;
161}
162export {};
163
164//# sourceMappingURL=input.d.ts.map
Note: See TracBrowser for help on using the repository browser.