source: trip-planner-front/node_modules/@angular/material/esm2015/button-toggle/button-toggle.js@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 62.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 } from '@angular/cdk/coercion';
10import { SelectionModel } from '@angular/cdk/collections';
11import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, Input, Optional, Output, QueryList, ViewChild, ViewEncapsulation, InjectionToken, Inject, } from '@angular/core';
12import { NG_VALUE_ACCESSOR } from '@angular/forms';
13import { mixinDisableRipple, } from '@angular/material/core';
14/**
15 * Injection token that can be used to configure the
16 * default options for all button toggles within an app.
17 */
18export const MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS = new InjectionToken('MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS');
19/**
20 * Injection token that can be used to reference instances of `MatButtonToggleGroup`.
21 * It serves as alternative token to the actual `MatButtonToggleGroup` class which
22 * could cause unnecessary retention of the class and its component metadata.
23 */
24export const MAT_BUTTON_TOGGLE_GROUP = new InjectionToken('MatButtonToggleGroup');
25/**
26 * Provider Expression that allows mat-button-toggle-group to register as a ControlValueAccessor.
27 * This allows it to support [(ngModel)].
28 * @docs-private
29 */
30export const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR = {
31 provide: NG_VALUE_ACCESSOR,
32 useExisting: forwardRef(() => MatButtonToggleGroup),
33 multi: true
34};
35// Counter used to generate unique IDs.
36let uniqueIdCounter = 0;
37/** Change event object emitted by MatButtonToggle. */
38export class MatButtonToggleChange {
39 constructor(
40 /** The MatButtonToggle that emits the event. */
41 source,
42 /** The value assigned to the MatButtonToggle. */
43 value) {
44 this.source = source;
45 this.value = value;
46 }
47}
48/** Exclusive selection button toggle group that behaves like a radio-button group. */
49export class MatButtonToggleGroup {
50 constructor(_changeDetector, defaultOptions) {
51 this._changeDetector = _changeDetector;
52 this._vertical = false;
53 this._multiple = false;
54 this._disabled = false;
55 /**
56 * The method to be called in order to update ngModel.
57 * Now `ngModel` binding is not supported in multiple selection mode.
58 */
59 this._controlValueAccessorChangeFn = () => { };
60 /** onTouch function registered via registerOnTouch (ControlValueAccessor). */
61 this._onTouched = () => { };
62 this._name = `mat-button-toggle-group-${uniqueIdCounter++}`;
63 /**
64 * Event that emits whenever the value of the group changes.
65 * Used to facilitate two-way data binding.
66 * @docs-private
67 */
68 this.valueChange = new EventEmitter();
69 /** Event emitted when the group's value changes. */
70 this.change = new EventEmitter();
71 this.appearance =
72 defaultOptions && defaultOptions.appearance ? defaultOptions.appearance : 'standard';
73 }
74 /** `name` attribute for the underlying `input` element. */
75 get name() { return this._name; }
76 set name(value) {
77 this._name = value;
78 if (this._buttonToggles) {
79 this._buttonToggles.forEach(toggle => {
80 toggle.name = this._name;
81 toggle._markForCheck();
82 });
83 }
84 }
85 /** Whether the toggle group is vertical. */
86 get vertical() { return this._vertical; }
87 set vertical(value) {
88 this._vertical = coerceBooleanProperty(value);
89 }
90 /** Value of the toggle group. */
91 get value() {
92 const selected = this._selectionModel ? this._selectionModel.selected : [];
93 if (this.multiple) {
94 return selected.map(toggle => toggle.value);
95 }
96 return selected[0] ? selected[0].value : undefined;
97 }
98 set value(newValue) {
99 this._setSelectionByValue(newValue);
100 this.valueChange.emit(this.value);
101 }
102 /** Selected button toggles in the group. */
103 get selected() {
104 const selected = this._selectionModel ? this._selectionModel.selected : [];
105 return this.multiple ? selected : (selected[0] || null);
106 }
107 /** Whether multiple button toggles can be selected. */
108 get multiple() { return this._multiple; }
109 set multiple(value) {
110 this._multiple = coerceBooleanProperty(value);
111 }
112 /** Whether multiple button toggle group is disabled. */
113 get disabled() { return this._disabled; }
114 set disabled(value) {
115 this._disabled = coerceBooleanProperty(value);
116 if (this._buttonToggles) {
117 this._buttonToggles.forEach(toggle => toggle._markForCheck());
118 }
119 }
120 ngOnInit() {
121 this._selectionModel = new SelectionModel(this.multiple, undefined, false);
122 }
123 ngAfterContentInit() {
124 this._selectionModel.select(...this._buttonToggles.filter(toggle => toggle.checked));
125 }
126 /**
127 * Sets the model value. Implemented as part of ControlValueAccessor.
128 * @param value Value to be set to the model.
129 */
130 writeValue(value) {
131 this.value = value;
132 this._changeDetector.markForCheck();
133 }
134 // Implemented as part of ControlValueAccessor.
135 registerOnChange(fn) {
136 this._controlValueAccessorChangeFn = fn;
137 }
138 // Implemented as part of ControlValueAccessor.
139 registerOnTouched(fn) {
140 this._onTouched = fn;
141 }
142 // Implemented as part of ControlValueAccessor.
143 setDisabledState(isDisabled) {
144 this.disabled = isDisabled;
145 }
146 /** Dispatch change event with current selection and group value. */
147 _emitChangeEvent() {
148 const selected = this.selected;
149 const source = Array.isArray(selected) ? selected[selected.length - 1] : selected;
150 const event = new MatButtonToggleChange(source, this.value);
151 this._controlValueAccessorChangeFn(event.value);
152 this.change.emit(event);
153 }
154 /**
155 * Syncs a button toggle's selected state with the model value.
156 * @param toggle Toggle to be synced.
157 * @param select Whether the toggle should be selected.
158 * @param isUserInput Whether the change was a result of a user interaction.
159 * @param deferEvents Whether to defer emitting the change events.
160 */
161 _syncButtonToggle(toggle, select, isUserInput = false, deferEvents = false) {
162 // Deselect the currently-selected toggle, if we're in single-selection
163 // mode and the button being toggled isn't selected at the moment.
164 if (!this.multiple && this.selected && !toggle.checked) {
165 this.selected.checked = false;
166 }
167 if (this._selectionModel) {
168 if (select) {
169 this._selectionModel.select(toggle);
170 }
171 else {
172 this._selectionModel.deselect(toggle);
173 }
174 }
175 else {
176 deferEvents = true;
177 }
178 // We need to defer in some cases in order to avoid "changed after checked errors", however
179 // the side-effect is that we may end up updating the model value out of sequence in others
180 // The `deferEvents` flag allows us to decide whether to do it on a case-by-case basis.
181 if (deferEvents) {
182 Promise.resolve().then(() => this._updateModelValue(isUserInput));
183 }
184 else {
185 this._updateModelValue(isUserInput);
186 }
187 }
188 /** Checks whether a button toggle is selected. */
189 _isSelected(toggle) {
190 return this._selectionModel && this._selectionModel.isSelected(toggle);
191 }
192 /** Determines whether a button toggle should be checked on init. */
193 _isPrechecked(toggle) {
194 if (typeof this._rawValue === 'undefined') {
195 return false;
196 }
197 if (this.multiple && Array.isArray(this._rawValue)) {
198 return this._rawValue.some(value => toggle.value != null && value === toggle.value);
199 }
200 return toggle.value === this._rawValue;
201 }
202 /** Updates the selection state of the toggles in the group based on a value. */
203 _setSelectionByValue(value) {
204 this._rawValue = value;
205 if (!this._buttonToggles) {
206 return;
207 }
208 if (this.multiple && value) {
209 if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
210 throw Error('Value must be an array in multiple-selection mode.');
211 }
212 this._clearSelection();
213 value.forEach((currentValue) => this._selectValue(currentValue));
214 }
215 else {
216 this._clearSelection();
217 this._selectValue(value);
218 }
219 }
220 /** Clears the selected toggles. */
221 _clearSelection() {
222 this._selectionModel.clear();
223 this._buttonToggles.forEach(toggle => toggle.checked = false);
224 }
225 /** Selects a value if there's a toggle that corresponds to it. */
226 _selectValue(value) {
227 const correspondingOption = this._buttonToggles.find(toggle => {
228 return toggle.value != null && toggle.value === value;
229 });
230 if (correspondingOption) {
231 correspondingOption.checked = true;
232 this._selectionModel.select(correspondingOption);
233 }
234 }
235 /** Syncs up the group's value with the model and emits the change event. */
236 _updateModelValue(isUserInput) {
237 // Only emit the change event for user input.
238 if (isUserInput) {
239 this._emitChangeEvent();
240 }
241 // Note: we emit this one no matter whether it was a user interaction, because
242 // it is used by Angular to sync up the two-way data binding.
243 this.valueChange.emit(this.value);
244 }
245}
246MatButtonToggleGroup.decorators = [
247 { type: Directive, args: [{
248 selector: 'mat-button-toggle-group',
249 providers: [
250 MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR,
251 { provide: MAT_BUTTON_TOGGLE_GROUP, useExisting: MatButtonToggleGroup },
252 ],
253 host: {
254 'role': 'group',
255 'class': 'mat-button-toggle-group',
256 '[attr.aria-disabled]': 'disabled',
257 '[class.mat-button-toggle-vertical]': 'vertical',
258 '[class.mat-button-toggle-group-appearance-standard]': 'appearance === "standard"',
259 },
260 exportAs: 'matButtonToggleGroup',
261 },] }
262];
263MatButtonToggleGroup.ctorParameters = () => [
264 { type: ChangeDetectorRef },
265 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS,] }] }
266];
267MatButtonToggleGroup.propDecorators = {
268 _buttonToggles: [{ type: ContentChildren, args: [forwardRef(() => MatButtonToggle), {
269 // Note that this would technically pick up toggles
270 // from nested groups, but that's not a case that we support.
271 descendants: true
272 },] }],
273 appearance: [{ type: Input }],
274 name: [{ type: Input }],
275 vertical: [{ type: Input }],
276 value: [{ type: Input }],
277 valueChange: [{ type: Output }],
278 multiple: [{ type: Input }],
279 disabled: [{ type: Input }],
280 change: [{ type: Output }]
281};
282// Boilerplate for applying mixins to the MatButtonToggle class.
283/** @docs-private */
284const _MatButtonToggleBase = mixinDisableRipple(class {
285});
286/** Single button inside of a toggle group. */
287export class MatButtonToggle extends _MatButtonToggleBase {
288 constructor(toggleGroup, _changeDetectorRef, _elementRef, _focusMonitor, defaultTabIndex, defaultOptions) {
289 super();
290 this._changeDetectorRef = _changeDetectorRef;
291 this._elementRef = _elementRef;
292 this._focusMonitor = _focusMonitor;
293 this._isSingleSelector = false;
294 this._checked = false;
295 /**
296 * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
297 */
298 this.ariaLabelledby = null;
299 this._disabled = false;
300 /** Event emitted when the group value changes. */
301 this.change = new EventEmitter();
302 const parsedTabIndex = Number(defaultTabIndex);
303 this.tabIndex = (parsedTabIndex || parsedTabIndex === 0) ? parsedTabIndex : null;
304 this.buttonToggleGroup = toggleGroup;
305 this.appearance =
306 defaultOptions && defaultOptions.appearance ? defaultOptions.appearance : 'standard';
307 }
308 /** Unique ID for the underlying `button` element. */
309 get buttonId() { return `${this.id}-button`; }
310 /** The appearance style of the button. */
311 get appearance() {
312 return this.buttonToggleGroup ? this.buttonToggleGroup.appearance : this._appearance;
313 }
314 set appearance(value) {
315 this._appearance = value;
316 }
317 /** Whether the button is checked. */
318 get checked() {
319 return this.buttonToggleGroup ? this.buttonToggleGroup._isSelected(this) : this._checked;
320 }
321 set checked(value) {
322 const newValue = coerceBooleanProperty(value);
323 if (newValue !== this._checked) {
324 this._checked = newValue;
325 if (this.buttonToggleGroup) {
326 this.buttonToggleGroup._syncButtonToggle(this, this._checked);
327 }
328 this._changeDetectorRef.markForCheck();
329 }
330 }
331 /** Whether the button is disabled. */
332 get disabled() {
333 return this._disabled || (this.buttonToggleGroup && this.buttonToggleGroup.disabled);
334 }
335 set disabled(value) { this._disabled = coerceBooleanProperty(value); }
336 ngOnInit() {
337 const group = this.buttonToggleGroup;
338 this._isSingleSelector = group && !group.multiple;
339 this.id = this.id || `mat-button-toggle-${uniqueIdCounter++}`;
340 if (this._isSingleSelector) {
341 this.name = group.name;
342 }
343 if (group) {
344 if (group._isPrechecked(this)) {
345 this.checked = true;
346 }
347 else if (group._isSelected(this) !== this._checked) {
348 // As as side effect of the circular dependency between the toggle group and the button,
349 // we may end up in a state where the button is supposed to be checked on init, but it
350 // isn't, because the checked value was assigned too early. This can happen when Ivy
351 // assigns the static input value before the `ngOnInit` has run.
352 group._syncButtonToggle(this, this._checked);
353 }
354 }
355 }
356 ngAfterViewInit() {
357 this._focusMonitor.monitor(this._elementRef, true);
358 }
359 ngOnDestroy() {
360 const group = this.buttonToggleGroup;
361 this._focusMonitor.stopMonitoring(this._elementRef);
362 // Remove the toggle from the selection once it's destroyed. Needs to happen
363 // on the next tick in order to avoid "changed after checked" errors.
364 if (group && group._isSelected(this)) {
365 group._syncButtonToggle(this, false, false, true);
366 }
367 }
368 /** Focuses the button. */
369 focus(options) {
370 this._buttonElement.nativeElement.focus(options);
371 }
372 /** Checks the button toggle due to an interaction with the underlying native button. */
373 _onButtonClick() {
374 const newChecked = this._isSingleSelector ? true : !this._checked;
375 if (newChecked !== this._checked) {
376 this._checked = newChecked;
377 if (this.buttonToggleGroup) {
378 this.buttonToggleGroup._syncButtonToggle(this, this._checked, true);
379 this.buttonToggleGroup._onTouched();
380 }
381 }
382 // Emit a change event when it's the single selector
383 this.change.emit(new MatButtonToggleChange(this, this.value));
384 }
385 /**
386 * Marks the button toggle as needing checking for change detection.
387 * This method is exposed because the parent button toggle group will directly
388 * update bound properties of the radio button.
389 */
390 _markForCheck() {
391 // When the group value changes, the button will not be notified.
392 // Use `markForCheck` to explicit update button toggle's status.
393 this._changeDetectorRef.markForCheck();
394 }
395}
396MatButtonToggle.decorators = [
397 { type: Component, args: [{
398 selector: 'mat-button-toggle',
399 template: "<button #button class=\"mat-button-toggle-button mat-focus-indicator\"\n type=\"button\"\n [id]=\"buttonId\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [attr.aria-pressed]=\"checked\"\n [disabled]=\"disabled || null\"\n [attr.name]=\"name || null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n (click)=\"_onButtonClick()\">\n <span class=\"mat-button-toggle-label-content\">\n <ng-content></ng-content>\n </span>\n</button>\n\n<span class=\"mat-button-toggle-focus-overlay\"></span>\n<span class=\"mat-button-toggle-ripple\" matRipple\n [matRippleTrigger]=\"button\"\n [matRippleDisabled]=\"this.disableRipple || this.disabled\">\n</span>\n",
400 encapsulation: ViewEncapsulation.None,
401 exportAs: 'matButtonToggle',
402 changeDetection: ChangeDetectionStrategy.OnPush,
403 inputs: ['disableRipple'],
404 host: {
405 '[class.mat-button-toggle-standalone]': '!buttonToggleGroup',
406 '[class.mat-button-toggle-checked]': 'checked',
407 '[class.mat-button-toggle-disabled]': 'disabled',
408 '[class.mat-button-toggle-appearance-standard]': 'appearance === "standard"',
409 'class': 'mat-button-toggle',
410 '[attr.aria-label]': 'null',
411 '[attr.aria-labelledby]': 'null',
412 '[attr.id]': 'id',
413 '[attr.name]': 'null',
414 '(focus)': 'focus()',
415 'role': 'presentation',
416 },
417 styles: [".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"]
418 },] }
419];
420MatButtonToggle.ctorParameters = () => [
421 { type: MatButtonToggleGroup, decorators: [{ type: Optional }, { type: Inject, args: [MAT_BUTTON_TOGGLE_GROUP,] }] },
422 { type: ChangeDetectorRef },
423 { type: ElementRef },
424 { type: FocusMonitor },
425 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
426 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS,] }] }
427];
428MatButtonToggle.propDecorators = {
429 ariaLabel: [{ type: Input, args: ['aria-label',] }],
430 ariaLabelledby: [{ type: Input, args: ['aria-labelledby',] }],
431 _buttonElement: [{ type: ViewChild, args: ['button',] }],
432 id: [{ type: Input }],
433 name: [{ type: Input }],
434 value: [{ type: Input }],
435 tabIndex: [{ type: Input }],
436 appearance: [{ type: Input }],
437 checked: [{ type: Input }],
438 disabled: [{ type: Input }],
439 change: [{ type: Output }]
440};
441//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXRvZ2dsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhb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