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 { Directionality } from '@angular/cdk/bidi';
|
---|
9 | import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
---|
10 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, Inject, InjectionToken, Input, NgZone, Optional, QueryList, ViewChild, ViewEncapsulation, } from '@angular/core';
|
---|
11 | import { mixinColor, } from '@angular/material/core';
|
---|
12 | import { fromEvent, merge, Subject } from 'rxjs';
|
---|
13 | import { startWith, take, takeUntil } from 'rxjs/operators';
|
---|
14 | import { MAT_ERROR } from './error';
|
---|
15 | import { matFormFieldAnimations } from './form-field-animations';
|
---|
16 | import { MatFormFieldControl } from './form-field-control';
|
---|
17 | import { getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError, } from './form-field-errors';
|
---|
18 | import { _MAT_HINT } from './hint';
|
---|
19 | import { MatLabel } from './label';
|
---|
20 | import { MatPlaceholder } from './placeholder';
|
---|
21 | import { MAT_PREFIX } from './prefix';
|
---|
22 | import { MAT_SUFFIX } from './suffix';
|
---|
23 | import { Platform } from '@angular/cdk/platform';
|
---|
24 | import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
---|
25 | let nextUniqueId = 0;
|
---|
26 | const floatingLabelScale = 0.75;
|
---|
27 | const outlineGapPadding = 5;
|
---|
28 | /**
|
---|
29 | * Boilerplate for applying mixins to MatFormField.
|
---|
30 | * @docs-private
|
---|
31 | */
|
---|
32 | const _MatFormFieldBase = mixinColor(class {
|
---|
33 | constructor(_elementRef) {
|
---|
34 | this._elementRef = _elementRef;
|
---|
35 | }
|
---|
36 | }, 'primary');
|
---|
37 | /**
|
---|
38 | * Injection token that can be used to configure the
|
---|
39 | * default options for all form field within an app.
|
---|
40 | */
|
---|
41 | export const MAT_FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken('MAT_FORM_FIELD_DEFAULT_OPTIONS');
|
---|
42 | /**
|
---|
43 | * Injection token that can be used to inject an instances of `MatFormField`. It serves
|
---|
44 | * as alternative token to the actual `MatFormField` class which would cause unnecessary
|
---|
45 | * retention of the `MatFormField` class and its component metadata.
|
---|
46 | */
|
---|
47 | export const MAT_FORM_FIELD = new InjectionToken('MatFormField');
|
---|
48 | /** Container for form controls that applies Material Design styling and behavior. */
|
---|
49 | export class MatFormField extends _MatFormFieldBase {
|
---|
50 | constructor(elementRef, _changeDetectorRef,
|
---|
51 | /**
|
---|
52 | * @deprecated `_labelOptions` parameter no longer being used. To be removed.
|
---|
53 | * @breaking-change 12.0.0
|
---|
54 | */
|
---|
55 | // Use `ElementRef` here so Angular has something to inject.
|
---|
56 | _labelOptions, _dir, _defaults, _platform, _ngZone, _animationMode) {
|
---|
57 | super(elementRef);
|
---|
58 | this._changeDetectorRef = _changeDetectorRef;
|
---|
59 | this._dir = _dir;
|
---|
60 | this._defaults = _defaults;
|
---|
61 | this._platform = _platform;
|
---|
62 | this._ngZone = _ngZone;
|
---|
63 | /**
|
---|
64 | * Whether the outline gap needs to be calculated
|
---|
65 | * immediately on the next change detection run.
|
---|
66 | */
|
---|
67 | this._outlineGapCalculationNeededImmediately = false;
|
---|
68 | /** Whether the outline gap needs to be calculated next time the zone has stabilized. */
|
---|
69 | this._outlineGapCalculationNeededOnStable = false;
|
---|
70 | this._destroyed = new Subject();
|
---|
71 | /** Override for the logic that disables the label animation in certain cases. */
|
---|
72 | this._showAlwaysAnimate = false;
|
---|
73 | /** State of the mat-hint and mat-error animations. */
|
---|
74 | this._subscriptAnimationState = '';
|
---|
75 | this._hintLabel = '';
|
---|
76 | // Unique id for the hint label.
|
---|
77 | this._hintLabelId = `mat-hint-${nextUniqueId++}`;
|
---|
78 | // Unique id for the label element.
|
---|
79 | this._labelId = `mat-form-field-label-${nextUniqueId++}`;
|
---|
80 | this.floatLabel = this._getDefaultFloatLabelState();
|
---|
81 | this._animationsEnabled = _animationMode !== 'NoopAnimations';
|
---|
82 | // Set the default through here so we invoke the setter on the first run.
|
---|
83 | this.appearance = (_defaults && _defaults.appearance) ? _defaults.appearance : 'legacy';
|
---|
84 | this._hideRequiredMarker = (_defaults && _defaults.hideRequiredMarker != null) ?
|
---|
85 | _defaults.hideRequiredMarker : false;
|
---|
86 | }
|
---|
87 | /** The form-field appearance style. */
|
---|
88 | get appearance() { return this._appearance; }
|
---|
89 | set appearance(value) {
|
---|
90 | const oldValue = this._appearance;
|
---|
91 | this._appearance = value || (this._defaults && this._defaults.appearance) || 'legacy';
|
---|
92 | if (this._appearance === 'outline' && oldValue !== value) {
|
---|
93 | this._outlineGapCalculationNeededOnStable = true;
|
---|
94 | }
|
---|
95 | }
|
---|
96 | /** Whether the required marker should be hidden. */
|
---|
97 | get hideRequiredMarker() { return this._hideRequiredMarker; }
|
---|
98 | set hideRequiredMarker(value) {
|
---|
99 | this._hideRequiredMarker = coerceBooleanProperty(value);
|
---|
100 | }
|
---|
101 | /** Whether the floating label should always float or not. */
|
---|
102 | _shouldAlwaysFloat() {
|
---|
103 | return this.floatLabel === 'always' && !this._showAlwaysAnimate;
|
---|
104 | }
|
---|
105 | /** Whether the label can float or not. */
|
---|
106 | _canLabelFloat() { return this.floatLabel !== 'never'; }
|
---|
107 | /** Text for the form field hint. */
|
---|
108 | get hintLabel() { return this._hintLabel; }
|
---|
109 | set hintLabel(value) {
|
---|
110 | this._hintLabel = value;
|
---|
111 | this._processHints();
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * Whether the label should always float, never float or float as the user types.
|
---|
115 | *
|
---|
116 | * Note: only the legacy appearance supports the `never` option. `never` was originally added as a
|
---|
117 | * way to make the floating label emulate the behavior of a standard input placeholder. However
|
---|
118 | * the form field now supports both floating labels and placeholders. Therefore in the non-legacy
|
---|
119 | * appearances the `never` option has been disabled in favor of just using the placeholder.
|
---|
120 | */
|
---|
121 | get floatLabel() {
|
---|
122 | return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel;
|
---|
123 | }
|
---|
124 | set floatLabel(value) {
|
---|
125 | if (value !== this._floatLabel) {
|
---|
126 | this._floatLabel = value || this._getDefaultFloatLabelState();
|
---|
127 | this._changeDetectorRef.markForCheck();
|
---|
128 | }
|
---|
129 | }
|
---|
130 | get _control() {
|
---|
131 | // TODO(crisbeto): we need this workaround in order to support both Ivy and ViewEngine.
|
---|
132 | // We should clean this up once Ivy is the default renderer.
|
---|
133 | return this._explicitFormFieldControl || this._controlNonStatic || this._controlStatic;
|
---|
134 | }
|
---|
135 | set _control(value) {
|
---|
136 | this._explicitFormFieldControl = value;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * Gets the id of the label element. If no label is present, returns `null`.
|
---|
140 | */
|
---|
141 | getLabelId() {
|
---|
142 | return this._hasFloatingLabel() ? this._labelId : null;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * Gets an ElementRef for the element that a overlay attached to the form-field should be
|
---|
146 | * positioned relative to.
|
---|
147 | */
|
---|
148 | getConnectedOverlayOrigin() {
|
---|
149 | return this._connectionContainerRef || this._elementRef;
|
---|
150 | }
|
---|
151 | ngAfterContentInit() {
|
---|
152 | this._validateControlChild();
|
---|
153 | const control = this._control;
|
---|
154 | if (control.controlType) {
|
---|
155 | this._elementRef.nativeElement.classList.add(`mat-form-field-type-${control.controlType}`);
|
---|
156 | }
|
---|
157 | // Subscribe to changes in the child control state in order to update the form field UI.
|
---|
158 | control.stateChanges.pipe(startWith(null)).subscribe(() => {
|
---|
159 | this._validatePlaceholders();
|
---|
160 | this._syncDescribedByIds();
|
---|
161 | this._changeDetectorRef.markForCheck();
|
---|
162 | });
|
---|
163 | // Run change detection if the value changes.
|
---|
164 | if (control.ngControl && control.ngControl.valueChanges) {
|
---|
165 | control.ngControl.valueChanges
|
---|
166 | .pipe(takeUntil(this._destroyed))
|
---|
167 | .subscribe(() => this._changeDetectorRef.markForCheck());
|
---|
168 | }
|
---|
169 | // Note that we have to run outside of the `NgZone` explicitly,
|
---|
170 | // in order to avoid throwing users into an infinite loop
|
---|
171 | // if `zone-patch-rxjs` is included.
|
---|
172 | this._ngZone.runOutsideAngular(() => {
|
---|
173 | this._ngZone.onStable.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
---|
174 | if (this._outlineGapCalculationNeededOnStable) {
|
---|
175 | this.updateOutlineGap();
|
---|
176 | }
|
---|
177 | });
|
---|
178 | });
|
---|
179 | // Run change detection and update the outline if the suffix or prefix changes.
|
---|
180 | merge(this._prefixChildren.changes, this._suffixChildren.changes).subscribe(() => {
|
---|
181 | this._outlineGapCalculationNeededOnStable = true;
|
---|
182 | this._changeDetectorRef.markForCheck();
|
---|
183 | });
|
---|
184 | // Re-validate when the number of hints changes.
|
---|
185 | this._hintChildren.changes.pipe(startWith(null)).subscribe(() => {
|
---|
186 | this._processHints();
|
---|
187 | this._changeDetectorRef.markForCheck();
|
---|
188 | });
|
---|
189 | // Update the aria-described by when the number of errors changes.
|
---|
190 | this._errorChildren.changes.pipe(startWith(null)).subscribe(() => {
|
---|
191 | this._syncDescribedByIds();
|
---|
192 | this._changeDetectorRef.markForCheck();
|
---|
193 | });
|
---|
194 | if (this._dir) {
|
---|
195 | this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
---|
196 | if (typeof requestAnimationFrame === 'function') {
|
---|
197 | this._ngZone.runOutsideAngular(() => {
|
---|
198 | requestAnimationFrame(() => this.updateOutlineGap());
|
---|
199 | });
|
---|
200 | }
|
---|
201 | else {
|
---|
202 | this.updateOutlineGap();
|
---|
203 | }
|
---|
204 | });
|
---|
205 | }
|
---|
206 | }
|
---|
207 | ngAfterContentChecked() {
|
---|
208 | this._validateControlChild();
|
---|
209 | if (this._outlineGapCalculationNeededImmediately) {
|
---|
210 | this.updateOutlineGap();
|
---|
211 | }
|
---|
212 | }
|
---|
213 | ngAfterViewInit() {
|
---|
214 | // Avoid animations on load.
|
---|
215 | this._subscriptAnimationState = 'enter';
|
---|
216 | this._changeDetectorRef.detectChanges();
|
---|
217 | }
|
---|
218 | ngOnDestroy() {
|
---|
219 | this._destroyed.next();
|
---|
220 | this._destroyed.complete();
|
---|
221 | }
|
---|
222 | /** Determines whether a class from the NgControl should be forwarded to the host element. */
|
---|
223 | _shouldForward(prop) {
|
---|
224 | const ngControl = this._control ? this._control.ngControl : null;
|
---|
225 | return ngControl && ngControl[prop];
|
---|
226 | }
|
---|
227 | _hasPlaceholder() {
|
---|
228 | return !!(this._control && this._control.placeholder || this._placeholderChild);
|
---|
229 | }
|
---|
230 | _hasLabel() {
|
---|
231 | return !!(this._labelChildNonStatic || this._labelChildStatic);
|
---|
232 | }
|
---|
233 | _shouldLabelFloat() {
|
---|
234 | return this._canLabelFloat() &&
|
---|
235 | ((this._control && this._control.shouldLabelFloat) || this._shouldAlwaysFloat());
|
---|
236 | }
|
---|
237 | _hideControlPlaceholder() {
|
---|
238 | // In the legacy appearance the placeholder is promoted to a label if no label is given.
|
---|
239 | return this.appearance === 'legacy' && !this._hasLabel() ||
|
---|
240 | this._hasLabel() && !this._shouldLabelFloat();
|
---|
241 | }
|
---|
242 | _hasFloatingLabel() {
|
---|
243 | // In the legacy appearance the placeholder is promoted to a label if no label is given.
|
---|
244 | return this._hasLabel() || this.appearance === 'legacy' && this._hasPlaceholder();
|
---|
245 | }
|
---|
246 | /** Determines whether to display hints or errors. */
|
---|
247 | _getDisplayedMessages() {
|
---|
248 | return (this._errorChildren && this._errorChildren.length > 0 &&
|
---|
249 | this._control.errorState) ? 'error' : 'hint';
|
---|
250 | }
|
---|
251 | /** Animates the placeholder up and locks it in position. */
|
---|
252 | _animateAndLockLabel() {
|
---|
253 | if (this._hasFloatingLabel() && this._canLabelFloat()) {
|
---|
254 | // If animations are disabled, we shouldn't go in here,
|
---|
255 | // because the `transitionend` will never fire.
|
---|
256 | if (this._animationsEnabled && this._label) {
|
---|
257 | this._showAlwaysAnimate = true;
|
---|
258 | fromEvent(this._label.nativeElement, 'transitionend').pipe(take(1)).subscribe(() => {
|
---|
259 | this._showAlwaysAnimate = false;
|
---|
260 | });
|
---|
261 | }
|
---|
262 | this.floatLabel = 'always';
|
---|
263 | this._changeDetectorRef.markForCheck();
|
---|
264 | }
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * Ensure that there is only one placeholder (either `placeholder` attribute on the child control
|
---|
268 | * or child element with the `mat-placeholder` directive).
|
---|
269 | */
|
---|
270 | _validatePlaceholders() {
|
---|
271 | if (this._control.placeholder && this._placeholderChild &&
|
---|
272 | (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
---|
273 | throw getMatFormFieldPlaceholderConflictError();
|
---|
274 | }
|
---|
275 | }
|
---|
276 | /** Does any extra processing that is required when handling the hints. */
|
---|
277 | _processHints() {
|
---|
278 | this._validateHints();
|
---|
279 | this._syncDescribedByIds();
|
---|
280 | }
|
---|
281 | /**
|
---|
282 | * Ensure that there is a maximum of one of each `<mat-hint>` alignment specified, with the
|
---|
283 | * attribute being considered as `align="start"`.
|
---|
284 | */
|
---|
285 | _validateHints() {
|
---|
286 | if (this._hintChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
---|
287 | let startHint;
|
---|
288 | let endHint;
|
---|
289 | this._hintChildren.forEach((hint) => {
|
---|
290 | if (hint.align === 'start') {
|
---|
291 | if (startHint || this.hintLabel) {
|
---|
292 | throw getMatFormFieldDuplicatedHintError('start');
|
---|
293 | }
|
---|
294 | startHint = hint;
|
---|
295 | }
|
---|
296 | else if (hint.align === 'end') {
|
---|
297 | if (endHint) {
|
---|
298 | throw getMatFormFieldDuplicatedHintError('end');
|
---|
299 | }
|
---|
300 | endHint = hint;
|
---|
301 | }
|
---|
302 | });
|
---|
303 | }
|
---|
304 | }
|
---|
305 | /** Gets the default float label state. */
|
---|
306 | _getDefaultFloatLabelState() {
|
---|
307 | return (this._defaults && this._defaults.floatLabel) || 'auto';
|
---|
308 | }
|
---|
309 | /**
|
---|
310 | * Sets the list of element IDs that describe the child control. This allows the control to update
|
---|
311 | * its `aria-describedby` attribute accordingly.
|
---|
312 | */
|
---|
313 | _syncDescribedByIds() {
|
---|
314 | if (this._control) {
|
---|
315 | let ids = [];
|
---|
316 | // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug.
|
---|
317 | if (this._control.userAriaDescribedBy &&
|
---|
318 | typeof this._control.userAriaDescribedBy === 'string') {
|
---|
319 | ids.push(...this._control.userAriaDescribedBy.split(' '));
|
---|
320 | }
|
---|
321 | if (this._getDisplayedMessages() === 'hint') {
|
---|
322 | const startHint = this._hintChildren ?
|
---|
323 | this._hintChildren.find(hint => hint.align === 'start') : null;
|
---|
324 | const endHint = this._hintChildren ?
|
---|
325 | this._hintChildren.find(hint => hint.align === 'end') : null;
|
---|
326 | if (startHint) {
|
---|
327 | ids.push(startHint.id);
|
---|
328 | }
|
---|
329 | else if (this._hintLabel) {
|
---|
330 | ids.push(this._hintLabelId);
|
---|
331 | }
|
---|
332 | if (endHint) {
|
---|
333 | ids.push(endHint.id);
|
---|
334 | }
|
---|
335 | }
|
---|
336 | else if (this._errorChildren) {
|
---|
337 | ids.push(...this._errorChildren.map(error => error.id));
|
---|
338 | }
|
---|
339 | this._control.setDescribedByIds(ids);
|
---|
340 | }
|
---|
341 | }
|
---|
342 | /** Throws an error if the form field's control is missing. */
|
---|
343 | _validateControlChild() {
|
---|
344 | if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
---|
345 | throw getMatFormFieldMissingControlError();
|
---|
346 | }
|
---|
347 | }
|
---|
348 | /**
|
---|
349 | * Updates the width and position of the gap in the outline. Only relevant for the outline
|
---|
350 | * appearance.
|
---|
351 | */
|
---|
352 | updateOutlineGap() {
|
---|
353 | const labelEl = this._label ? this._label.nativeElement : null;
|
---|
354 | if (this.appearance !== 'outline' || !labelEl || !labelEl.children.length ||
|
---|
355 | !labelEl.textContent.trim()) {
|
---|
356 | return;
|
---|
357 | }
|
---|
358 | if (!this._platform.isBrowser) {
|
---|
359 | // getBoundingClientRect isn't available on the server.
|
---|
360 | return;
|
---|
361 | }
|
---|
362 | // If the element is not present in the DOM, the outline gap will need to be calculated
|
---|
363 | // the next time it is checked and in the DOM.
|
---|
364 | if (!this._isAttachedToDOM()) {
|
---|
365 | this._outlineGapCalculationNeededImmediately = true;
|
---|
366 | return;
|
---|
367 | }
|
---|
368 | let startWidth = 0;
|
---|
369 | let gapWidth = 0;
|
---|
370 | const container = this._connectionContainerRef.nativeElement;
|
---|
371 | const startEls = container.querySelectorAll('.mat-form-field-outline-start');
|
---|
372 | const gapEls = container.querySelectorAll('.mat-form-field-outline-gap');
|
---|
373 | if (this._label && this._label.nativeElement.children.length) {
|
---|
374 | const containerRect = container.getBoundingClientRect();
|
---|
375 | // If the container's width and height are zero, it means that the element is
|
---|
376 | // invisible and we can't calculate the outline gap. Mark the element as needing
|
---|
377 | // to be checked the next time the zone stabilizes. We can't do this immediately
|
---|
378 | // on the next change detection, because even if the element becomes visible,
|
---|
379 | // the `ClientRect` won't be reclaculated immediately. We reset the
|
---|
380 | // `_outlineGapCalculationNeededImmediately` flag some we don't run the checks twice.
|
---|
381 | if (containerRect.width === 0 && containerRect.height === 0) {
|
---|
382 | this._outlineGapCalculationNeededOnStable = true;
|
---|
383 | this._outlineGapCalculationNeededImmediately = false;
|
---|
384 | return;
|
---|
385 | }
|
---|
386 | const containerStart = this._getStartEnd(containerRect);
|
---|
387 | const labelChildren = labelEl.children;
|
---|
388 | const labelStart = this._getStartEnd(labelChildren[0].getBoundingClientRect());
|
---|
389 | let labelWidth = 0;
|
---|
390 | for (let i = 0; i < labelChildren.length; i++) {
|
---|
391 | labelWidth += labelChildren[i].offsetWidth;
|
---|
392 | }
|
---|
393 | startWidth = Math.abs(labelStart - containerStart) - outlineGapPadding;
|
---|
394 | gapWidth = labelWidth > 0 ? labelWidth * floatingLabelScale + outlineGapPadding * 2 : 0;
|
---|
395 | }
|
---|
396 | for (let i = 0; i < startEls.length; i++) {
|
---|
397 | startEls[i].style.width = `${startWidth}px`;
|
---|
398 | }
|
---|
399 | for (let i = 0; i < gapEls.length; i++) {
|
---|
400 | gapEls[i].style.width = `${gapWidth}px`;
|
---|
401 | }
|
---|
402 | this._outlineGapCalculationNeededOnStable =
|
---|
403 | this._outlineGapCalculationNeededImmediately = false;
|
---|
404 | }
|
---|
405 | /** Gets the start end of the rect considering the current directionality. */
|
---|
406 | _getStartEnd(rect) {
|
---|
407 | return (this._dir && this._dir.value === 'rtl') ? rect.right : rect.left;
|
---|
408 | }
|
---|
409 | /** Checks whether the form field is attached to the DOM. */
|
---|
410 | _isAttachedToDOM() {
|
---|
411 | const element = this._elementRef.nativeElement;
|
---|
412 | if (element.getRootNode) {
|
---|
413 | const rootNode = element.getRootNode();
|
---|
414 | // If the element is inside the DOM the root node will be either the document
|
---|
415 | // or the closest shadow root, otherwise it'll be the element itself.
|
---|
416 | return rootNode && rootNode !== element;
|
---|
417 | }
|
---|
418 | // Otherwise fall back to checking if it's in the document. This doesn't account for
|
---|
419 | // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.
|
---|
420 | return document.documentElement.contains(element);
|
---|
421 | }
|
---|
422 | }
|
---|
423 | MatFormField.decorators = [
|
---|
424 | { type: Component, args: [{
|
---|
425 | selector: 'mat-form-field',
|
---|
426 | exportAs: 'matFormField',
|
---|
427 | template: "<div class=\"mat-form-field-wrapper\">\n <div class=\"mat-form-field-flex\" #connectionContainer\n (click)=\"_control.onContainerClick && _control.onContainerClick($event)\">\n\n <!-- Outline used for outline appearance. -->\n <ng-container *ngIf=\"appearance == 'outline'\">\n <div class=\"mat-form-field-outline\">\n <div class=\"mat-form-field-outline-start\"></div>\n <div class=\"mat-form-field-outline-gap\"></div>\n <div class=\"mat-form-field-outline-end\"></div>\n </div>\n <div class=\"mat-form-field-outline mat-form-field-outline-thick\">\n <div class=\"mat-form-field-outline-start\"></div>\n <div class=\"mat-form-field-outline-gap\"></div>\n <div class=\"mat-form-field-outline-end\"></div>\n </div>\n </ng-container>\n\n <div class=\"mat-form-field-prefix\" *ngIf=\"_prefixChildren.length\">\n <ng-content select=\"[matPrefix]\"></ng-content>\n </div>\n\n <div class=\"mat-form-field-infix\" #inputContainer>\n <ng-content></ng-content>\n\n <span class=\"mat-form-field-label-wrapper\">\n <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\n read if it comes before the control in the DOM. -->\n <label class=\"mat-form-field-label\"\n (cdkObserveContent)=\"updateOutlineGap()\"\n [cdkObserveContentDisabled]=\"appearance != 'outline'\"\n [id]=\"_labelId\"\n [attr.for]=\"_control.id\"\n [attr.aria-owns]=\"_control.id\"\n [class.mat-empty]=\"_control.empty && !_shouldAlwaysFloat()\"\n [class.mat-form-field-empty]=\"_control.empty && !_shouldAlwaysFloat()\"\n [class.mat-accent]=\"color == 'accent'\"\n [class.mat-warn]=\"color == 'warn'\"\n #label\n *ngIf=\"_hasFloatingLabel()\"\n [ngSwitch]=\"_hasLabel()\">\n\n <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\n <ng-container *ngSwitchCase=\"false\">\n <ng-content select=\"mat-placeholder\"></ng-content>\n <span>{{_control.placeholder}}</span>\n </ng-container>\n\n <ng-content select=\"mat-label\" *ngSwitchCase=\"true\"></ng-content>\n\n <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\n <span\n class=\"mat-placeholder-required mat-form-field-required-marker\"\n aria-hidden=\"true\"\n *ngIf=\"!hideRequiredMarker && _control.required && !_control.disabled\"> *</span>\n </label>\n </span>\n </div>\n\n <div class=\"mat-form-field-suffix\" *ngIf=\"_suffixChildren.length\">\n <ng-content select=\"[matSuffix]\"></ng-content>\n </div>\n </div>\n\n <!-- Underline used for legacy, standard, and box appearances. -->\n <div class=\"mat-form-field-underline\" #underline\n *ngIf=\"appearance != 'outline'\">\n <span class=\"mat-form-field-ripple\"\n [class.mat-accent]=\"color == 'accent'\"\n [class.mat-warn]=\"color == 'warn'\"></span>\n </div>\n\n <div class=\"mat-form-field-subscript-wrapper\"\n [ngSwitch]=\"_getDisplayedMessages()\">\n <div *ngSwitchCase=\"'error'\" [@transitionMessages]=\"_subscriptAnimationState\">\n <ng-content select=\"mat-error\"></ng-content>\n </div>\n\n <div class=\"mat-form-field-hint-wrapper\" *ngSwitchCase=\"'hint'\"\n [@transitionMessages]=\"_subscriptAnimationState\">\n <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\n <div *ngIf=\"hintLabel\" [id]=\"_hintLabelId\" class=\"mat-hint\">{{hintLabel}}</div>\n <ng-content select=\"mat-hint:not([align='end'])\"></ng-content>\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint[align='end']\"></ng-content>\n </div>\n </div>\n</div>\n",
|
---|
428 | animations: [matFormFieldAnimations.transitionMessages],
|
---|
429 | host: {
|
---|
430 | 'class': 'mat-form-field',
|
---|
431 | '[class.mat-form-field-appearance-standard]': 'appearance == "standard"',
|
---|
432 | '[class.mat-form-field-appearance-fill]': 'appearance == "fill"',
|
---|
433 | '[class.mat-form-field-appearance-outline]': 'appearance == "outline"',
|
---|
434 | '[class.mat-form-field-appearance-legacy]': 'appearance == "legacy"',
|
---|
435 | '[class.mat-form-field-invalid]': '_control.errorState',
|
---|
436 | '[class.mat-form-field-can-float]': '_canLabelFloat()',
|
---|
437 | '[class.mat-form-field-should-float]': '_shouldLabelFloat()',
|
---|
438 | '[class.mat-form-field-has-label]': '_hasFloatingLabel()',
|
---|
439 | '[class.mat-form-field-hide-placeholder]': '_hideControlPlaceholder()',
|
---|
440 | '[class.mat-form-field-disabled]': '_control.disabled',
|
---|
441 | '[class.mat-form-field-autofilled]': '_control.autofilled',
|
---|
442 | '[class.mat-focused]': '_control.focused',
|
---|
443 | '[class.ng-untouched]': '_shouldForward("untouched")',
|
---|
444 | '[class.ng-touched]': '_shouldForward("touched")',
|
---|
445 | '[class.ng-pristine]': '_shouldForward("pristine")',
|
---|
446 | '[class.ng-dirty]': '_shouldForward("dirty")',
|
---|
447 | '[class.ng-valid]': '_shouldForward("valid")',
|
---|
448 | '[class.ng-invalid]': '_shouldForward("invalid")',
|
---|
449 | '[class.ng-pending]': '_shouldForward("pending")',
|
---|
450 | '[class._mat-animation-noopable]': '!_animationsEnabled',
|
---|
451 | },
|
---|
452 | inputs: ['color'],
|
---|
453 | encapsulation: ViewEncapsulation.None,
|
---|
454 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
455 | providers: [
|
---|
456 | { provide: MAT_FORM_FIELD, useExisting: MatFormField },
|
---|
457 | ],
|
---|
458 | styles: [".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n", ".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\"\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n", ".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\" \";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n", ".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n", ".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n", ".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"]
|
---|
459 | },] }
|
---|
460 | ];
|
---|
461 | MatFormField.ctorParameters = () => [
|
---|
462 | { type: ElementRef },
|
---|
463 | { type: ChangeDetectorRef },
|
---|
464 | { type: undefined, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
---|
465 | { type: Directionality, decorators: [{ type: Optional }] },
|
---|
466 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_FORM_FIELD_DEFAULT_OPTIONS,] }] },
|
---|
467 | { type: Platform },
|
---|
468 | { type: NgZone },
|
---|
469 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
|
---|
470 | ];
|
---|
471 | MatFormField.propDecorators = {
|
---|
472 | appearance: [{ type: Input }],
|
---|
473 | hideRequiredMarker: [{ type: Input }],
|
---|
474 | hintLabel: [{ type: Input }],
|
---|
475 | floatLabel: [{ type: Input }],
|
---|
476 | underlineRef: [{ type: ViewChild, args: ['underline',] }],
|
---|
477 | _connectionContainerRef: [{ type: ViewChild, args: ['connectionContainer', { static: true },] }],
|
---|
478 | _inputContainerRef: [{ type: ViewChild, args: ['inputContainer',] }],
|
---|
479 | _label: [{ type: ViewChild, args: ['label',] }],
|
---|
480 | _controlNonStatic: [{ type: ContentChild, args: [MatFormFieldControl,] }],
|
---|
481 | _controlStatic: [{ type: ContentChild, args: [MatFormFieldControl, { static: true },] }],
|
---|
482 | _labelChildNonStatic: [{ type: ContentChild, args: [MatLabel,] }],
|
---|
483 | _labelChildStatic: [{ type: ContentChild, args: [MatLabel, { static: true },] }],
|
---|
484 | _placeholderChild: [{ type: ContentChild, args: [MatPlaceholder,] }],
|
---|
485 | _errorChildren: [{ type: ContentChildren, args: [MAT_ERROR, { descendants: true },] }],
|
---|
486 | _hintChildren: [{ type: ContentChildren, args: [_MAT_HINT, { descendants: true },] }],
|
---|
487 | _prefixChildren: [{ type: ContentChildren, args: [MAT_PREFIX, { descendants: true },] }],
|
---|
488 | _suffixChildren: [{ type: ContentChildren, args: [MAT_SUFFIX, { descendants: true },] }]
|
---|
489 | };
|
---|
490 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9mb3JtLWZpZWxkL2Zvcm0tZmllbGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBZSxxQkFBcUIsRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQzFFLE9BQU8sRUFJTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxZQUFZLEVBQ1osZUFBZSxFQUNmLFVBQVUsRUFDVixNQUFNLEVBQ04sY0FBYyxFQUNkLEtBQUssRUFDTCxNQUFNLEVBQ04sUUFBUSxFQUNSLFNBQVMsRUFDVCxTQUFTLEVBQ1QsaUJBQWlCLEdBRWxCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxVQUFVLEdBQ1gsTUFBTSx3QkFBd0IsQ0FBQztBQUNoQyxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDL0MsT0FBTyxFQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUQsT0FBTyxFQUFDLFNBQVMsRUFBVyxNQ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