source: trip-planner-front/node_modules/@angular/material/esm2015/radio/radio.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 71.2 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 { FocusMonitor } from '@angular/cdk/a11y';
9import { coerceBooleanProperty, coerceNumberProperty, } from '@angular/cdk/coercion';
10import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
11import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, Inject, InjectionToken, Input, Optional, Output, QueryList, ViewChild, ViewEncapsulation, } from '@angular/core';
12import { NG_VALUE_ACCESSOR } from '@angular/forms';
13import { mixinDisableRipple, mixinTabIndex, } from '@angular/material/core';
14import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
15export const MAT_RADIO_DEFAULT_OPTIONS = new InjectionToken('mat-radio-default-options', {
16 providedIn: 'root',
17 factory: MAT_RADIO_DEFAULT_OPTIONS_FACTORY
18});
19export function MAT_RADIO_DEFAULT_OPTIONS_FACTORY() {
20 return {
21 color: 'accent'
22 };
23}
24// Increasing integer for generating unique ids for radio components.
25let nextUniqueId = 0;
26/**
27 * Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
28 * allows it to support [(ngModel)] and ngControl.
29 * @docs-private
30 */
31export const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {
32 provide: NG_VALUE_ACCESSOR,
33 useExisting: forwardRef(() => MatRadioGroup),
34 multi: true
35};
36/** Change event object emitted by MatRadio and MatRadioGroup. */
37export class MatRadioChange {
38 constructor(
39 /** The MatRadioButton that emits the change event. */
40 source,
41 /** The value of the MatRadioButton. */
42 value) {
43 this.source = source;
44 this.value = value;
45 }
46}
47/**
48 * Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
49 * alternative token to the actual `MatRadioGroup` class which could cause unnecessary
50 * retention of the class and its component metadata.
51 */
52export const MAT_RADIO_GROUP = new InjectionToken('MatRadioGroup');
53/**
54 * Base class with all of the `MatRadioGroup` functionality.
55 * @docs-private
56 */
57export class _MatRadioGroupBase {
58 constructor(_changeDetector) {
59 this._changeDetector = _changeDetector;
60 /** Selected value for the radio group. */
61 this._value = null;
62 /** The HTML name attribute applied to radio buttons in this group. */
63 this._name = `mat-radio-group-${nextUniqueId++}`;
64 /** The currently selected radio button. Should match value. */
65 this._selected = null;
66 /** Whether the `value` has been set to its initial value. */
67 this._isInitialized = false;
68 /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
69 this._labelPosition = 'after';
70 /** Whether the radio group is disabled. */
71 this._disabled = false;
72 /** Whether the radio group is required. */
73 this._required = false;
74 /** The method to be called in order to update ngModel */
75 this._controlValueAccessorChangeFn = () => { };
76 /**
77 * onTouch function registered via registerOnTouch (ControlValueAccessor).
78 * @docs-private
79 */
80 this.onTouched = () => { };
81 /**
82 * Event emitted when the group value changes.
83 * Change events are only emitted when the value changes due to user interaction with
84 * a radio button (the same behavior as `<input type-"radio">`).
85 */
86 this.change = new EventEmitter();
87 }
88 /** Name of the radio button group. All radio buttons inside this group will use this name. */
89 get name() { return this._name; }
90 set name(value) {
91 this._name = value;
92 this._updateRadioButtonNames();
93 }
94 /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
95 get labelPosition() {
96 return this._labelPosition;
97 }
98 set labelPosition(v) {
99 this._labelPosition = v === 'before' ? 'before' : 'after';
100 this._markRadiosForCheck();
101 }
102 /**
103 * Value for the radio-group. Should equal the value of the selected radio button if there is
104 * a corresponding radio button with a matching value. If there is not such a corresponding
105 * radio button, this value persists to be applied in case a new radio button is added with a
106 * matching value.
107 */
108 get value() { return this._value; }
109 set value(newValue) {
110 if (this._value !== newValue) {
111 // Set this before proceeding to ensure no circular loop occurs with selection.
112 this._value = newValue;
113 this._updateSelectedRadioFromValue();
114 this._checkSelectedRadioButton();
115 }
116 }
117 _checkSelectedRadioButton() {
118 if (this._selected && !this._selected.checked) {
119 this._selected.checked = true;
120 }
121 }
122 /**
123 * The currently selected radio button. If set to a new radio button, the radio group value
124 * will be updated to match the new selected button.
125 */
126 get selected() { return this._selected; }
127 set selected(selected) {
128 this._selected = selected;
129 this.value = selected ? selected.value : null;
130 this._checkSelectedRadioButton();
131 }
132 /** Whether the radio group is disabled */
133 get disabled() { return this._disabled; }
134 set disabled(value) {
135 this._disabled = coerceBooleanProperty(value);
136 this._markRadiosForCheck();
137 }
138 /** Whether the radio group is required */
139 get required() { return this._required; }
140 set required(value) {
141 this._required = coerceBooleanProperty(value);
142 this._markRadiosForCheck();
143 }
144 /**
145 * Initialize properties once content children are available.
146 * This allows us to propagate relevant attributes to associated buttons.
147 */
148 ngAfterContentInit() {
149 // Mark this component as initialized in AfterContentInit because the initial value can
150 // possibly be set by NgModel on MatRadioGroup, and it is possible that the OnInit of the
151 // NgModel occurs *after* the OnInit of the MatRadioGroup.
152 this._isInitialized = true;
153 }
154 /**
155 * Mark this group as being "touched" (for ngModel). Meant to be called by the contained
156 * radio buttons upon their blur.
157 */
158 _touch() {
159 if (this.onTouched) {
160 this.onTouched();
161 }
162 }
163 _updateRadioButtonNames() {
164 if (this._radios) {
165 this._radios.forEach(radio => {
166 radio.name = this.name;
167 radio._markForCheck();
168 });
169 }
170 }
171 /** Updates the `selected` radio button from the internal _value state. */
172 _updateSelectedRadioFromValue() {
173 // If the value already matches the selected radio, do nothing.
174 const isAlreadySelected = this._selected !== null && this._selected.value === this._value;
175 if (this._radios && !isAlreadySelected) {
176 this._selected = null;
177 this._radios.forEach(radio => {
178 radio.checked = this.value === radio.value;
179 if (radio.checked) {
180 this._selected = radio;
181 }
182 });
183 }
184 }
185 /** Dispatch change event with current selection and group value. */
186 _emitChangeEvent() {
187 if (this._isInitialized) {
188 this.change.emit(new MatRadioChange(this._selected, this._value));
189 }
190 }
191 _markRadiosForCheck() {
192 if (this._radios) {
193 this._radios.forEach(radio => radio._markForCheck());
194 }
195 }
196 /**
197 * Sets the model value. Implemented as part of ControlValueAccessor.
198 * @param value
199 */
200 writeValue(value) {
201 this.value = value;
202 this._changeDetector.markForCheck();
203 }
204 /**
205 * Registers a callback to be triggered when the model value changes.
206 * Implemented as part of ControlValueAccessor.
207 * @param fn Callback to be registered.
208 */
209 registerOnChange(fn) {
210 this._controlValueAccessorChangeFn = fn;
211 }
212 /**
213 * Registers a callback to be triggered when the control is touched.
214 * Implemented as part of ControlValueAccessor.
215 * @param fn Callback to be registered.
216 */
217 registerOnTouched(fn) {
218 this.onTouched = fn;
219 }
220 /**
221 * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
222 * @param isDisabled Whether the control should be disabled.
223 */
224 setDisabledState(isDisabled) {
225 this.disabled = isDisabled;
226 this._changeDetector.markForCheck();
227 }
228}
229_MatRadioGroupBase.decorators = [
230 { type: Directive }
231];
232_MatRadioGroupBase.ctorParameters = () => [
233 { type: ChangeDetectorRef }
234];
235_MatRadioGroupBase.propDecorators = {
236 change: [{ type: Output }],
237 color: [{ type: Input }],
238 name: [{ type: Input }],
239 labelPosition: [{ type: Input }],
240 value: [{ type: Input }],
241 selected: [{ type: Input }],
242 disabled: [{ type: Input }],
243 required: [{ type: Input }]
244};
245/**
246 * A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
247 */
248export class MatRadioGroup extends _MatRadioGroupBase {
249}
250MatRadioGroup.decorators = [
251 { type: Directive, args: [{
252 selector: 'mat-radio-group',
253 exportAs: 'matRadioGroup',
254 providers: [
255 MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
256 { provide: MAT_RADIO_GROUP, useExisting: MatRadioGroup },
257 ],
258 host: {
259 'role': 'radiogroup',
260 'class': 'mat-radio-group',
261 },
262 },] }
263];
264MatRadioGroup.propDecorators = {
265 _radios: [{ type: ContentChildren, args: [forwardRef(() => MatRadioButton), { descendants: true },] }]
266};
267// Boilerplate for applying mixins to MatRadioButton.
268/** @docs-private */
269class MatRadioButtonBase {
270 constructor(_elementRef) {
271 this._elementRef = _elementRef;
272 }
273}
274const _MatRadioButtonMixinBase = mixinDisableRipple(mixinTabIndex(MatRadioButtonBase));
275/**
276 * Base class with all of the `MatRadioButton` functionality.
277 * @docs-private
278 */
279export class _MatRadioButtonBase extends _MatRadioButtonMixinBase {
280 constructor(radioGroup, elementRef, _changeDetector, _focusMonitor, _radioDispatcher, animationMode, _providerOverride, tabIndex) {
281 super(elementRef);
282 this._changeDetector = _changeDetector;
283 this._focusMonitor = _focusMonitor;
284 this._radioDispatcher = _radioDispatcher;
285 this._providerOverride = _providerOverride;
286 this._uniqueId = `mat-radio-${++nextUniqueId}`;
287 /** The unique ID for the radio button. */
288 this.id = this._uniqueId;
289 /**
290 * Event emitted when the checked state of this radio button changes.
291 * Change events are only emitted when the value changes due to user interaction with
292 * the radio button (the same behavior as `<input type-"radio">`).
293 */
294 this.change = new EventEmitter();
295 /** Whether this radio is checked. */
296 this._checked = false;
297 /** Value assigned to this radio. */
298 this._value = null;
299 /** Unregister function for _radioDispatcher */
300 this._removeUniqueSelectionListener = () => { };
301 // Assertions. Ideally these should be stripped out by the compiler.
302 // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.
303 this.radioGroup = radioGroup;
304 this._noopAnimations = animationMode === 'NoopAnimations';
305 if (tabIndex) {
306 this.tabIndex = coerceNumberProperty(tabIndex, 0);
307 }
308 this._removeUniqueSelectionListener =
309 _radioDispatcher.listen((id, name) => {
310 if (id !== this.id && name === this.name) {
311 this.checked = false;
312 }
313 });
314 }
315 /** Whether this radio button is checked. */
316 get checked() { return this._checked; }
317 set checked(value) {
318 const newCheckedState = coerceBooleanProperty(value);
319 if (this._checked !== newCheckedState) {
320 this._checked = newCheckedState;
321 if (newCheckedState && this.radioGroup && this.radioGroup.value !== this.value) {
322 this.radioGroup.selected = this;
323 }
324 else if (!newCheckedState && this.radioGroup && this.radioGroup.value === this.value) {
325 // When unchecking the selected radio button, update the selected radio
326 // property on the group.
327 this.radioGroup.selected = null;
328 }
329 if (newCheckedState) {
330 // Notify all radio buttons with the same name to un-check.
331 this._radioDispatcher.notify(this.id, this.name);
332 }
333 this._changeDetector.markForCheck();
334 }
335 }
336 /** The value of this radio button. */
337 get value() { return this._value; }
338 set value(value) {
339 if (this._value !== value) {
340 this._value = value;
341 if (this.radioGroup !== null) {
342 if (!this.checked) {
343 // Update checked when the value changed to match the radio group's value
344 this.checked = this.radioGroup.value === value;
345 }
346 if (this.checked) {
347 this.radioGroup.selected = this;
348 }
349 }
350 }
351 }
352 /** Whether the label should appear after or before the radio button. Defaults to 'after' */
353 get labelPosition() {
354 return this._labelPosition || (this.radioGroup && this.radioGroup.labelPosition) || 'after';
355 }
356 set labelPosition(value) {
357 this._labelPosition = value;
358 }
359 /** Whether the radio button is disabled. */
360 get disabled() {
361 return this._disabled || (this.radioGroup !== null && this.radioGroup.disabled);
362 }
363 set disabled(value) {
364 this._setDisabled(coerceBooleanProperty(value));
365 }
366 /** Whether the radio button is required. */
367 get required() {
368 return this._required || (this.radioGroup && this.radioGroup.required);
369 }
370 set required(value) {
371 this._required = coerceBooleanProperty(value);
372 }
373 /** Theme color of the radio button. */
374 get color() {
375 // As per Material design specifications the selection control radio should use the accent color
376 // palette by default. https://material.io/guidelines/components/selection-controls.html
377 return this._color ||
378 (this.radioGroup && this.radioGroup.color) ||
379 this._providerOverride && this._providerOverride.color || 'accent';
380 }
381 set color(newValue) { this._color = newValue; }
382 /** ID of the native input element inside `<mat-radio-button>` */
383 get inputId() { return `${this.id || this._uniqueId}-input`; }
384 /** Focuses the radio button. */
385 focus(options, origin) {
386 if (origin) {
387 this._focusMonitor.focusVia(this._inputElement, origin, options);
388 }
389 else {
390 this._inputElement.nativeElement.focus(options);
391 }
392 }
393 /**
394 * Marks the radio button as needing checking for change detection.
395 * This method is exposed because the parent radio group will directly
396 * update bound properties of the radio button.
397 */
398 _markForCheck() {
399 // When group value changes, the button will not be notified. Use `markForCheck` to explicit
400 // update radio button's status
401 this._changeDetector.markForCheck();
402 }
403 ngOnInit() {
404 if (this.radioGroup) {
405 // If the radio is inside a radio group, determine if it should be checked
406 this.checked = this.radioGroup.value === this._value;
407 if (this.checked) {
408 this.radioGroup.selected = this;
409 }
410 // Copy name from parent radio group
411 this.name = this.radioGroup.name;
412 }
413 }
414 ngAfterViewInit() {
415 this._focusMonitor
416 .monitor(this._elementRef, true)
417 .subscribe(focusOrigin => {
418 if (!focusOrigin && this.radioGroup) {
419 this.radioGroup._touch();
420 }
421 });
422 }
423 ngOnDestroy() {
424 this._focusMonitor.stopMonitoring(this._elementRef);
425 this._removeUniqueSelectionListener();
426 }
427 /** Dispatch change event with current value. */
428 _emitChangeEvent() {
429 this.change.emit(new MatRadioChange(this, this._value));
430 }
431 _isRippleDisabled() {
432 return this.disableRipple || this.disabled;
433 }
434 _onInputClick(event) {
435 // We have to stop propagation for click events on the visual hidden input element.
436 // By default, when a user clicks on a label element, a generated click event will be
437 // dispatched on the associated input element. Since we are using a label element as our
438 // root container, the click event on the `radio-button` will be executed twice.
439 // The real click event will bubble up, and the generated click event also tries to bubble up.
440 // This will lead to multiple click events.
441 // Preventing bubbling for the second event will solve that issue.
442 event.stopPropagation();
443 }
444 /** Triggered when the radio button receives an interaction from the user. */
445 _onInputInteraction(event) {
446 // We always have to stop propagation on the change event.
447 // Otherwise the change event, from the input element, will bubble up and
448 // emit its event object to the `change` output.
449 event.stopPropagation();
450 if (!this.checked && !this.disabled) {
451 const groupValueChanged = this.radioGroup && this.value !== this.radioGroup.value;
452 this.checked = true;
453 this._emitChangeEvent();
454 if (this.radioGroup) {
455 this.radioGroup._controlValueAccessorChangeFn(this.value);
456 if (groupValueChanged) {
457 this.radioGroup._emitChangeEvent();
458 }
459 }
460 }
461 }
462 /** Sets the disabled state and marks for check if a change occurred. */
463 _setDisabled(value) {
464 if (this._disabled !== value) {
465 this._disabled = value;
466 this._changeDetector.markForCheck();
467 }
468 }
469}
470_MatRadioButtonBase.decorators = [
471 { type: Directive }
472];
473_MatRadioButtonBase.ctorParameters = () => [
474 { type: _MatRadioGroupBase },
475 { type: ElementRef },
476 { type: ChangeDetectorRef },
477 { type: FocusMonitor },
478 { type: UniqueSelectionDispatcher },
479 { type: String },
480 { type: undefined },
481 { type: String }
482];
483_MatRadioButtonBase.propDecorators = {
484 id: [{ type: Input }],
485 name: [{ type: Input }],
486 ariaLabel: [{ type: Input, args: ['aria-label',] }],
487 ariaLabelledby: [{ type: Input, args: ['aria-labelledby',] }],
488 ariaDescribedby: [{ type: Input, args: ['aria-describedby',] }],
489 checked: [{ type: Input }],
490 value: [{ type: Input }],
491 labelPosition: [{ type: Input }],
492 disabled: [{ type: Input }],
493 required: [{ type: Input }],
494 color: [{ type: Input }],
495 change: [{ type: Output }],
496 _inputElement: [{ type: ViewChild, args: ['input',] }]
497};
498/**
499 * A Material design radio-button. Typically placed inside of `<mat-radio-group>` elements.
500 */
501export class MatRadioButton extends _MatRadioButtonBase {
502 constructor(radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex) {
503 super(radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex);
504 }
505}
506MatRadioButton.decorators = [
507 { type: Component, args: [{
508 selector: 'mat-radio-button',
509 template: "<!-- TODO(jelbourn): render the radio on either side of the content -->\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\n<label [attr.for]=\"inputId\" class=\"mat-radio-label\" #label>\n <!-- The actual 'radio' part of the control. -->\n <span class=\"mat-radio-container\">\n <span class=\"mat-radio-outer-circle\"></span>\n <span class=\"mat-radio-inner-circle\"></span>\n <input #input class=\"mat-radio-input cdk-visually-hidden\" type=\"radio\"\n [id]=\"inputId\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [tabIndex]=\"tabIndex\"\n [attr.name]=\"name\"\n [attr.value]=\"value\"\n [required]=\"required\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n (change)=\"_onInputInteraction($event)\"\n (click)=\"_onInputClick($event)\">\n\n <!-- The ripple comes after the input so that we can target it with a CSS\n sibling selector when the input is focused. -->\n <span mat-ripple class=\"mat-radio-ripple mat-focus-indicator\"\n [matRippleTrigger]=\"label\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"true\"\n [matRippleRadius]=\"20\"\n [matRippleAnimation]=\"{enterDuration: _noopAnimations ? 0 : 150}\">\n\n <span class=\"mat-ripple-element mat-radio-persistent-ripple\"></span>\n </span>\n </span>\n\n <!-- The label content for radio control. -->\n <span class=\"mat-radio-label-content\" [class.mat-radio-label-before]=\"labelPosition == 'before'\">\n <!-- Add an invisible span so JAWS can read the label -->\n <span style=\"display:none\">&nbsp;</span>\n <ng-content></ng-content>\n </span>\n</label>\n",
510 inputs: ['disableRipple', 'tabIndex'],
511 encapsulation: ViewEncapsulation.None,
512 exportAs: 'matRadioButton',
513 host: {
514 'class': 'mat-radio-button',
515 '[class.mat-radio-checked]': 'checked',
516 '[class.mat-radio-disabled]': 'disabled',
517 '[class._mat-animation-noopable]': '_noopAnimations',
518 '[class.mat-primary]': 'color === "primary"',
519 '[class.mat-accent]': 'color === "accent"',
520 '[class.mat-warn]': 'color === "warn"',
521 // Needs to be removed since it causes some a11y issues (see #21266).
522 '[attr.tabindex]': 'null',
523 '[attr.id]': 'id',
524 '[attr.aria-label]': 'null',
525 '[attr.aria-labelledby]': 'null',
526 '[attr.aria-describedby]': 'null',
527 // Note: under normal conditions focus shouldn't land on this element, however it may be
528 // programmatically set, for example inside of a focus trap, in this case we want to forward
529 // the focus to the native element.
530 '(focus)': '_inputElement.nativeElement.focus()',
531 },
532 changeDetection: ChangeDetectionStrategy.OnPush,
533 styles: [".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"]
534 },] }
535];
536MatRadioButton.ctorParameters = () => [
537 { type: MatRadioGroup, decorators: [{ type: Optional }, { type: Inject, args: [MAT_RADIO_GROUP,] }] },
538 { type: ElementRef },
539 { type: ChangeDetectorRef },
540 { type: FocusMonitor },
541 { type: UniqueSelectionDispatcher },
542 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] },
543 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_RADIO_DEFAULT_OPTIONS,] }] },
544 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] }
545];
546//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvcmFkaW8vcmFkaW8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFlBQVksRUFBYyxNQUFNLG1CQUFtQixDQUFDO0FBQzVELE9BQU8sRUFFTCxxQkFBcUIsRUFDckIsb0JBQW9CLEdBRXJCLE1BQU0sdUJBQXVCLENBQUM7QUFDL0IsT0FBTyxFQUFDLHlCQUF5QixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDbkUsT0FBTyxFQUdMLFNBQVMsRUFDVCx1QkFBdUIsRU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ZXh0ZW5kcyBfTWF0UmFkaW9CdXR0b25CYXNlIHtcbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgQEluamVjdChNQVRfUkFESU9fR1JPVVApIHJhZGlvR3JvdXA6IE1hdFJhZGlvR3JvdXAsXG4gICAgICAgICAgICAgIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYsXG4gICAgICAgICAgICAgIGNoYW5nZURldGVjdG9yOiBDaGFuZ2VEZXRlY3RvclJlZixcbiAgICAgICAgICAgICAgZm9jdXNNb25pdG9yOiBGb2N1c01vbml0b3IsXG4gICAgICAgICAgICAgIHJhZGlvRGlzcGF0Y2hlcjogVW5pcXVlU2VsZWN0aW9uRGlzcGF0Y2hlcixcbiAgICAgICAgICAgICAgQE9wdGlvbmFsKCkgQEluamVjdChBTklNQVRJT05fTU9EVUxFX1RZUEUpIGFuaW1hdGlvbk1vZGU/OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgQE9wdGlvbmFsKCkgQEluamVjdChNQVRfUkFESU9fREVGQVVMVF9PUFRJT05TKVxuICAgICAgICAgICAgICAgICAgcHJvdmlkZXJPdmVycmlkZT86IE1hdFJhZGlvRGVmYXVsdE9wdGlvbnMsXG4gICAgICAgICAgICAgIEBBdHRyaWJ1dGUoJ3RhYmluZGV4JykgdGFiSW5kZXg/OiBzdHJpbmcpIHtcbiAgICBzdXBlcihyYWRpb0dyb3VwLCBlbGVtZW50UmVmLCBjaGFuZ2VEZXRlY3RvciwgZm9jdXNNb25pdG9yLCByYWRpb0Rpc3BhdGNoZXIsXG4gICAgICAgICAgYW5pbWF0aW9uTW9kZSwgcHJvdmlkZXJPdmVycmlkZSwgdGFiSW5kZXgpO1xuICB9XG59XG4iXX0=
Note: See TracBrowser for help on using the repository browser.