source: trip-planner-front/node_modules/@angular/material/esm2015/tabs/tab-group.js@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 54.9 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 { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
9import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, ElementRef, EventEmitter, Inject, Input, Optional, Output, QueryList, ViewChild, ViewEncapsulation, } from '@angular/core';
10import { mixinColor, mixinDisableRipple, } from '@angular/material/core';
11import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
12import { merge, Subscription } from 'rxjs';
13import { startWith } from 'rxjs/operators';
14import { MAT_TAB_GROUP, MatTab } from './tab';
15import { MAT_TABS_CONFIG } from './tab-config';
16/** Used to generate unique ID's for each tab component */
17let nextId = 0;
18/** A simple change event emitted on focus or selection changes. */
19export class MatTabChangeEvent {
20}
21// Boilerplate for applying mixins to MatTabGroup.
22/** @docs-private */
23const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(class {
24 constructor(_elementRef) {
25 this._elementRef = _elementRef;
26 }
27}), 'primary');
28/**
29 * Base class with all of the `MatTabGroupBase` functionality.
30 * @docs-private
31 */
32export class _MatTabGroupBase extends _MatTabGroupMixinBase {
33 constructor(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {
34 var _a;
35 super(elementRef);
36 this._changeDetectorRef = _changeDetectorRef;
37 this._animationMode = _animationMode;
38 /** All of the tabs that belong to the group. */
39 this._tabs = new QueryList();
40 /** The tab index that should be selected after the content has been checked. */
41 this._indexToSelect = 0;
42 /** Snapshot of the height of the tab body wrapper before another tab is activated. */
43 this._tabBodyWrapperHeight = 0;
44 /** Subscription to tabs being added/removed. */
45 this._tabsSubscription = Subscription.EMPTY;
46 /** Subscription to changes in the tab labels. */
47 this._tabLabelSubscription = Subscription.EMPTY;
48 this._selectedIndex = null;
49 /** Position of the tab header. */
50 this.headerPosition = 'above';
51 /** Output to enable support for two-way binding on `[(selectedIndex)]` */
52 this.selectedIndexChange = new EventEmitter();
53 /** Event emitted when focus has changed within a tab group. */
54 this.focusChange = new EventEmitter();
55 /** Event emitted when the body animation has completed */
56 this.animationDone = new EventEmitter();
57 /** Event emitted when the tab selection has changed. */
58 this.selectedTabChange = new EventEmitter(true);
59 this._groupId = nextId++;
60 this.animationDuration = defaultConfig && defaultConfig.animationDuration ?
61 defaultConfig.animationDuration : '500ms';
62 this.disablePagination = defaultConfig && defaultConfig.disablePagination != null ?
63 defaultConfig.disablePagination : false;
64 this.dynamicHeight = defaultConfig && defaultConfig.dynamicHeight != null ?
65 defaultConfig.dynamicHeight : false;
66 this.contentTabIndex = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.contentTabIndex) !== null && _a !== void 0 ? _a : null;
67 }
68 /** Whether the tab group should grow to the size of the active tab. */
69 get dynamicHeight() { return this._dynamicHeight; }
70 set dynamicHeight(value) { this._dynamicHeight = coerceBooleanProperty(value); }
71 /** The index of the active tab. */
72 get selectedIndex() { return this._selectedIndex; }
73 set selectedIndex(value) {
74 this._indexToSelect = coerceNumberProperty(value, null);
75 }
76 /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
77 get animationDuration() { return this._animationDuration; }
78 set animationDuration(value) {
79 this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
80 }
81 /**
82 * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved
83 * accessibility when the tab does not have focusable elements or if it has scrollable content.
84 * The `tabindex` will be removed automatically for inactive tabs.
85 * Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html
86 */
87 get contentTabIndex() { return this._contentTabIndex; }
88 set contentTabIndex(value) {
89 this._contentTabIndex = coerceNumberProperty(value, null);
90 }
91 /** Background color of the tab group. */
92 get backgroundColor() { return this._backgroundColor; }
93 set backgroundColor(value) {
94 const nativeElement = this._elementRef.nativeElement;
95 nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);
96 if (value) {
97 nativeElement.classList.add(`mat-background-${value}`);
98 }
99 this._backgroundColor = value;
100 }
101 /**
102 * After the content is checked, this component knows what tabs have been defined
103 * and what the selected index should be. This is where we can know exactly what position
104 * each tab should be in according to the new selected index, and additionally we know how
105 * a new selected tab should transition in (from the left or right).
106 */
107 ngAfterContentChecked() {
108 // Don't clamp the `indexToSelect` immediately in the setter because it can happen that
109 // the amount of tabs changes before the actual change detection runs.
110 const indexToSelect = this._indexToSelect = this._clampTabIndex(this._indexToSelect);
111 // If there is a change in selected index, emit a change event. Should not trigger if
112 // the selected index has not yet been initialized.
113 if (this._selectedIndex != indexToSelect) {
114 const isFirstRun = this._selectedIndex == null;
115 if (!isFirstRun) {
116 this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));
117 // Preserve the height so page doesn't scroll up during tab change.
118 // Fixes https://stackblitz.com/edit/mat-tabs-scroll-page-top-on-tab-change
119 const wrapper = this._tabBodyWrapper.nativeElement;
120 wrapper.style.minHeight = wrapper.clientHeight + 'px';
121 }
122 // Changing these values after change detection has run
123 // since the checked content may contain references to them.
124 Promise.resolve().then(() => {
125 this._tabs.forEach((tab, index) => tab.isActive = index === indexToSelect);
126 if (!isFirstRun) {
127 this.selectedIndexChange.emit(indexToSelect);
128 // Clear the min-height, this was needed during tab change to avoid
129 // unnecessary scrolling.
130 this._tabBodyWrapper.nativeElement.style.minHeight = '';
131 }
132 });
133 }
134 // Setup the position for each tab and optionally setup an origin on the next selected tab.
135 this._tabs.forEach((tab, index) => {
136 tab.position = index - indexToSelect;
137 // If there is already a selected tab, then set up an origin for the next selected tab
138 // if it doesn't have one already.
139 if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {
140 tab.origin = indexToSelect - this._selectedIndex;
141 }
142 });
143 if (this._selectedIndex !== indexToSelect) {
144 this._selectedIndex = indexToSelect;
145 this._changeDetectorRef.markForCheck();
146 }
147 }
148 ngAfterContentInit() {
149 this._subscribeToAllTabChanges();
150 this._subscribeToTabLabels();
151 // Subscribe to changes in the amount of tabs, in order to be
152 // able to re-render the content as new tabs are added or removed.
153 this._tabsSubscription = this._tabs.changes.subscribe(() => {
154 const indexToSelect = this._clampTabIndex(this._indexToSelect);
155 // Maintain the previously-selected tab if a new tab is added or removed and there is no
156 // explicit change that selects a different tab.
157 if (indexToSelect === this._selectedIndex) {
158 const tabs = this._tabs.toArray();
159 for (let i = 0; i < tabs.length; i++) {
160 if (tabs[i].isActive) {
161 // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed
162 // event, otherwise the consumer may end up in an infinite loop in some edge cases like
163 // adding a tab within the `selectedIndexChange` event.
164 this._indexToSelect = this._selectedIndex = i;
165 break;
166 }
167 }
168 }
169 this._changeDetectorRef.markForCheck();
170 });
171 }
172 /** Listens to changes in all of the tabs. */
173 _subscribeToAllTabChanges() {
174 // Since we use a query with `descendants: true` to pick up the tabs, we may end up catching
175 // some that are inside of nested tab groups. We filter them out manually by checking that
176 // the closest group to the tab is the current one.
177 this._allTabs.changes
178 .pipe(startWith(this._allTabs))
179 .subscribe((tabs) => {
180 this._tabs.reset(tabs.filter(tab => {
181 return tab._closestTabGroup === this || !tab._closestTabGroup;
182 }));
183 this._tabs.notifyOnChanges();
184 });
185 }
186 ngOnDestroy() {
187 this._tabs.destroy();
188 this._tabsSubscription.unsubscribe();
189 this._tabLabelSubscription.unsubscribe();
190 }
191 /** Re-aligns the ink bar to the selected tab element. */
192 realignInkBar() {
193 if (this._tabHeader) {
194 this._tabHeader._alignInkBarToSelectedTab();
195 }
196 }
197 /**
198 * Sets focus to a particular tab.
199 * @param index Index of the tab to be focused.
200 */
201 focusTab(index) {
202 const header = this._tabHeader;
203 if (header) {
204 header.focusIndex = index;
205 }
206 }
207 _focusChanged(index) {
208 this.focusChange.emit(this._createChangeEvent(index));
209 }
210 _createChangeEvent(index) {
211 const event = new MatTabChangeEvent;
212 event.index = index;
213 if (this._tabs && this._tabs.length) {
214 event.tab = this._tabs.toArray()[index];
215 }
216 return event;
217 }
218 /**
219 * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
220 * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the
221 * binding to be updated, we need to subscribe to changes in it and trigger change detection
222 * manually.
223 */
224 _subscribeToTabLabels() {
225 if (this._tabLabelSubscription) {
226 this._tabLabelSubscription.unsubscribe();
227 }
228 this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges))
229 .subscribe(() => this._changeDetectorRef.markForCheck());
230 }
231 /** Clamps the given index to the bounds of 0 and the tabs length. */
232 _clampTabIndex(index) {
233 // Note the `|| 0`, which ensures that values like NaN can't get through
234 // and which would otherwise throw the component into an infinite loop
235 // (since Math.max(NaN, 0) === NaN).
236 return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));
237 }
238 /** Returns a unique id for each tab label element */
239 _getTabLabelId(i) {
240 return `mat-tab-label-${this._groupId}-${i}`;
241 }
242 /** Returns a unique id for each tab content element */
243 _getTabContentId(i) {
244 return `mat-tab-content-${this._groupId}-${i}`;
245 }
246 /**
247 * Sets the height of the body wrapper to the height of the activating tab if dynamic
248 * height property is true.
249 */
250 _setTabBodyWrapperHeight(tabHeight) {
251 if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {
252 return;
253 }
254 const wrapper = this._tabBodyWrapper.nativeElement;
255 wrapper.style.height = this._tabBodyWrapperHeight + 'px';
256 // This conditional forces the browser to paint the height so that
257 // the animation to the new height can have an origin.
258 if (this._tabBodyWrapper.nativeElement.offsetHeight) {
259 wrapper.style.height = tabHeight + 'px';
260 }
261 }
262 /** Removes the height of the tab body wrapper. */
263 _removeTabBodyWrapperHeight() {
264 const wrapper = this._tabBodyWrapper.nativeElement;
265 this._tabBodyWrapperHeight = wrapper.clientHeight;
266 wrapper.style.height = '';
267 this.animationDone.emit();
268 }
269 /** Handle click events, setting new selected index if appropriate. */
270 _handleClick(tab, tabHeader, index) {
271 if (!tab.disabled) {
272 this.selectedIndex = tabHeader.focusIndex = index;
273 }
274 }
275 /** Retrieves the tabindex for the tab. */
276 _getTabIndex(tab, idx) {
277 if (tab.disabled) {
278 return null;
279 }
280 return this.selectedIndex === idx ? 0 : -1;
281 }
282 /** Callback for when the focused state of a tab has changed. */
283 _tabFocusChanged(focusOrigin, index) {
284 // Mouse/touch focus happens during the `mousedown`/`touchstart` phase which
285 // can cause the tab to be moved out from under the pointer, interrupting the
286 // click sequence (see #21898). We don't need to scroll the tab into view for
287 // such cases anyway, because it will be done when the tab becomes selected.
288 if (focusOrigin && focusOrigin !== 'mouse' && focusOrigin !== 'touch') {
289 this._tabHeader.focusIndex = index;
290 }
291 }
292}
293_MatTabGroupBase.decorators = [
294 { type: Directive }
295];
296_MatTabGroupBase.ctorParameters = () => [
297 { type: ElementRef },
298 { type: ChangeDetectorRef },
299 { type: undefined, decorators: [{ type: Inject, args: [MAT_TABS_CONFIG,] }, { type: Optional }] },
300 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
301];
302_MatTabGroupBase.propDecorators = {
303 dynamicHeight: [{ type: Input }],
304 selectedIndex: [{ type: Input }],
305 headerPosition: [{ type: Input }],
306 animationDuration: [{ type: Input }],
307 contentTabIndex: [{ type: Input }],
308 disablePagination: [{ type: Input }],
309 backgroundColor: [{ type: Input }],
310 selectedIndexChange: [{ type: Output }],
311 focusChange: [{ type: Output }],
312 animationDone: [{ type: Output }],
313 selectedTabChange: [{ type: Output }]
314};
315/**
316 * Material design tab-group component. Supports basic tab pairs (label + content) and includes
317 * animated ink-bar, keyboard navigation, and screen reader.
318 * See: https://material.io/design/components/tabs.html
319 */
320export class MatTabGroup extends _MatTabGroupBase {
321 constructor(elementRef, changeDetectorRef, defaultConfig, animationMode) {
322 super(elementRef, changeDetectorRef, defaultConfig, animationMode);
323 }
324}
325MatTabGroup.decorators = [
326 { type: Component, args: [{
327 selector: 'mat-tab-group',
328 exportAs: 'matTabGroup',
329 template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\"\n (cdkFocusChange)=\"_tabFocusChanged($event, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.tabindex]=\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex === i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin\"\n [animationDuration]=\"animationDuration\"\n (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n </mat-tab-body>\n</div>\n",
330 encapsulation: ViewEncapsulation.None,
331 // tslint:disable-next-line:validate-decorators
332 changeDetection: ChangeDetectionStrategy.Default,
333 inputs: ['color', 'disableRipple'],
334 providers: [{
335 provide: MAT_TAB_GROUP,
336 useExisting: MatTabGroup
337 }],
338 host: {
339 'class': 'mat-tab-group',
340 '[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
341 '[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
342 },
343 styles: [".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
344 },] }
345];
346MatTabGroup.ctorParameters = () => [
347 { type: ElementRef },
348 { type: ChangeDetectorRef },
349 { type: undefined, decorators: [{ type: Inject, args: [MAT_TABS_CONFIG,] }, { type: Optional }] },
350 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
351];
352MatTabGroup.propDecorators = {
353 _allTabs: [{ type: ContentChildren, args: [MatTab, { descendants: true },] }],
354 _tabBodyWrapper: [{ type: ViewChild, args: ['tabBodyWrapper',] }],
355 _tabHeader: [{ type: ViewChild, args: ['tabHeader',] }]
356};
357//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL3RhYnMvdGFiLWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFFTCxxQkFBcUIsRUFDckIsb0JBQW9CLEVBRXJCLE1BQU0sdUJBQXVCLENBQUM7QUFDL0IsT0FBTyxFQUdMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULGVBQWUsRUFDZixTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixNQUFNLEVBQ04sS0FBSyxFQUVMLFFBQVEsRUFDUixNQUFNLEVBQ04sU0FBUyxFQUNULFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFF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Yi1ncm91cC1pbnZlcnRlZC1oZWFkZXJdJzogJ2hlYWRlclBvc2l0aW9uID09PSBcImJlbG93XCInLFxuICB9LFxufSlcbmV4cG9ydCBjbGFzcyBNYXRUYWJHcm91cCBleHRlbmRzIF9NYXRUYWJHcm91cEJhc2Uge1xuICBAQ29udGVudENoaWxkcmVuKE1hdFRhYiwge2Rlc2NlbmRhbnRzOiB0cnVlfSkgX2FsbFRhYnM6IFF1ZXJ5TGlzdDxNYXRUYWI+O1xuICBAVmlld0NoaWxkKCd0YWJCb2R5V3JhcHBlcicpIF90YWJCb2R5V3JhcHBlcjogRWxlbWVudFJlZjtcbiAgQFZpZXdDaGlsZCgndGFiSGVhZGVyJykgX3RhYkhlYWRlcjogTWF0VGFiR3JvdXBCYXNlSGVhZGVyO1xuXG4gIGNvbnN0cnVjdG9yKGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYsXG4gICAgICAgICAgICAgIGNoYW5nZURldGVjdG9yUmVmOiBDaGFuZ2VEZXRlY3RvclJlZixcbiAgICAgICAgICAgICAgQEluamVjdChNQVRfVEFCU19DT05GSUcpIEBPcHRpb25hbCgpIGRlZmF1bHRDb25maWc/OiBNYXRUYWJzQ29uZmlnLFxuICAgICAgICAgICAgICBAT3B0aW9uYWwoKSBASW5qZWN0KEFOSU1BVElPTl9NT0RVTEVfVFlQRSkgYW5pbWF0aW9uTW9kZT86IHN0cmluZykge1xuICAgIHN1cGVyKGVsZW1lbnRSZWYsIGNoYW5nZURldGVjdG9yUmVmLCBkZWZhdWx0Q29uZmlnLCBhbmltYXRpb25Nb2RlKTtcbiAgfVxufVxuIl19
Note: See TracBrowser for help on using the repository browser.