source: trip-planner-front/node_modules/@angular/material/esm2015/tabs/tab-nav-bar/tab-nav-bar.js@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 35.1 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 { Directionality } from '@angular/cdk/bidi';
10import { coerceBooleanProperty } from '@angular/cdk/coercion';
11import { Platform } from '@angular/cdk/platform';
12import { ViewportRuler } from '@angular/cdk/scrolling';
13import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, ElementRef, forwardRef, Inject, Input, NgZone, Optional, QueryList, ViewChild, ViewEncapsulation, } from '@angular/core';
14import { MAT_RIPPLE_GLOBAL_OPTIONS, mixinDisabled, mixinDisableRipple, mixinTabIndex, RippleRenderer, } from '@angular/material/core';
15import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
16import { startWith, takeUntil } from 'rxjs/operators';
17import { MatInkBar } from '../ink-bar';
18import { MatPaginatedTabHeader } from '../paginated-tab-header';
19/**
20 * Base class with all of the `MatTabNav` functionality.
21 * @docs-private
22 */
23export class _MatTabNavBase extends MatPaginatedTabHeader {
24 constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
25 super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
26 this._disableRipple = false;
27 /** Theme color of the nav bar. */
28 this.color = 'primary';
29 }
30 /** Background color of the tab nav. */
31 get backgroundColor() { return this._backgroundColor; }
32 set backgroundColor(value) {
33 const classList = this._elementRef.nativeElement.classList;
34 classList.remove(`mat-background-${this.backgroundColor}`);
35 if (value) {
36 classList.add(`mat-background-${value}`);
37 }
38 this._backgroundColor = value;
39 }
40 /** Whether the ripple effect is disabled or not. */
41 get disableRipple() { return this._disableRipple; }
42 set disableRipple(value) { this._disableRipple = coerceBooleanProperty(value); }
43 _itemSelected() {
44 // noop
45 }
46 ngAfterContentInit() {
47 // We need this to run before the `changes` subscription in parent to ensure that the
48 // selectedIndex is up-to-date by the time the super class starts looking for it.
49 this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
50 this.updateActiveLink();
51 });
52 super.ngAfterContentInit();
53 }
54 /** Notifies the component that the active link has been changed. */
55 updateActiveLink() {
56 if (!this._items) {
57 return;
58 }
59 const items = this._items.toArray();
60 for (let i = 0; i < items.length; i++) {
61 if (items[i].active) {
62 this.selectedIndex = i;
63 this._changeDetectorRef.markForCheck();
64 return;
65 }
66 }
67 // The ink bar should hide itself if no items are active.
68 this.selectedIndex = -1;
69 this._inkBar.hide();
70 }
71}
72_MatTabNavBase.decorators = [
73 { type: Directive }
74];
75_MatTabNavBase.ctorParameters = () => [
76 { type: ElementRef },
77 { type: Directionality, decorators: [{ type: Optional }] },
78 { type: NgZone },
79 { type: ChangeDetectorRef },
80 { type: ViewportRuler },
81 { type: Platform },
82 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
83];
84_MatTabNavBase.propDecorators = {
85 backgroundColor: [{ type: Input }],
86 disableRipple: [{ type: Input }],
87 color: [{ type: Input }]
88};
89/**
90 * Navigation component matching the styles of the tab group header.
91 * Provides anchored navigation with animated ink bar.
92 */
93export class MatTabNav extends _MatTabNavBase {
94 constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
95 super(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);
96 }
97}
98MatTabNav.decorators = [
99 { type: Component, args: [{
100 selector: '[mat-tab-nav-bar]',
101 exportAs: 'matTabNavBar, matTabNav',
102 inputs: ['color'],
103 template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabList\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-links\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
104 host: {
105 'class': 'mat-tab-nav-bar mat-tab-header',
106 '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
107 '[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
108 '[class.mat-primary]': 'color !== "warn" && color !== "accent"',
109 '[class.mat-accent]': 'color === "accent"',
110 '[class.mat-warn]': 'color === "warn"',
111 },
112 encapsulation: ViewEncapsulation.None,
113 // tslint:disable-next-line:validate-decorators
114 changeDetection: ChangeDetectionStrategy.Default,
115 styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"]
116 },] }
117];
118MatTabNav.ctorParameters = () => [
119 { type: ElementRef },
120 { type: Directionality, decorators: [{ type: Optional }] },
121 { type: NgZone },
122 { type: ChangeDetectorRef },
123 { type: ViewportRuler },
124 { type: Platform },
125 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
126];
127MatTabNav.propDecorators = {
128 _items: [{ type: ContentChildren, args: [forwardRef(() => MatTabLink), { descendants: true },] }],
129 _inkBar: [{ type: ViewChild, args: [MatInkBar, { static: true },] }],
130 _tabListContainer: [{ type: ViewChild, args: ['tabListContainer', { static: true },] }],
131 _tabList: [{ type: ViewChild, args: ['tabList', { static: true },] }],
132 _nextPaginator: [{ type: ViewChild, args: ['nextPaginator',] }],
133 _previousPaginator: [{ type: ViewChild, args: ['previousPaginator',] }]
134};
135// Boilerplate for applying mixins to MatTabLink.
136const _MatTabLinkMixinBase = mixinTabIndex(mixinDisableRipple(mixinDisabled(class {
137})));
138/** Base class with all of the `MatTabLink` functionality. */
139export class _MatTabLinkBase extends _MatTabLinkMixinBase {
140 constructor(_tabNavBar,
141 /** @docs-private */ elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {
142 super();
143 this._tabNavBar = _tabNavBar;
144 this.elementRef = elementRef;
145 this._focusMonitor = _focusMonitor;
146 /** Whether the tab link is active or not. */
147 this._isActive = false;
148 this.rippleConfig = globalRippleOptions || {};
149 this.tabIndex = parseInt(tabIndex) || 0;
150 if (animationMode === 'NoopAnimations') {
151 this.rippleConfig.animation = { enterDuration: 0, exitDuration: 0 };
152 }
153 }
154 /** Whether the link is active. */
155 get active() { return this._isActive; }
156 set active(value) {
157 const newValue = coerceBooleanProperty(value);
158 if (newValue !== this._isActive) {
159 this._isActive = value;
160 this._tabNavBar.updateActiveLink();
161 }
162 }
163 /**
164 * Whether ripples are disabled on interaction.
165 * @docs-private
166 */
167 get rippleDisabled() {
168 return this.disabled || this.disableRipple || this._tabNavBar.disableRipple ||
169 !!this.rippleConfig.disabled;
170 }
171 /** Focuses the tab link. */
172 focus() {
173 this.elementRef.nativeElement.focus();
174 }
175 ngAfterViewInit() {
176 this._focusMonitor.monitor(this.elementRef);
177 }
178 ngOnDestroy() {
179 this._focusMonitor.stopMonitoring(this.elementRef);
180 }
181 _handleFocus() {
182 // Since we allow navigation through tabbing in the nav bar, we
183 // have to update the focused index whenever the link receives focus.
184 this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);
185 }
186}
187_MatTabLinkBase.decorators = [
188 { type: Directive }
189];
190_MatTabLinkBase.ctorParameters = () => [
191 { type: _MatTabNavBase },
192 { type: ElementRef },
193 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
194 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
195 { type: FocusMonitor },
196 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
197];
198_MatTabLinkBase.propDecorators = {
199 active: [{ type: Input }]
200};
201/**
202 * Link inside of a `mat-tab-nav-bar`.
203 */
204export class MatTabLink extends _MatTabLinkBase {
205 constructor(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {
206 super(tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);
207 this._tabLinkRipple = new RippleRenderer(this, ngZone, elementRef, platform);
208 this._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);
209 }
210 ngOnDestroy() {
211 super.ngOnDestroy();
212 this._tabLinkRipple._removeTriggerEvents();
213 }
214}
215MatTabLink.decorators = [
216 { type: Directive, args: [{
217 selector: '[mat-tab-link], [matTabLink]',
218 exportAs: 'matTabLink',
219 inputs: ['disabled', 'disableRipple', 'tabIndex'],
220 host: {
221 'class': 'mat-tab-link mat-focus-indicator',
222 '[attr.aria-current]': 'active ? "page" : null',
223 '[attr.aria-disabled]': 'disabled',
224 '[attr.tabIndex]': 'tabIndex',
225 '[class.mat-tab-disabled]': 'disabled',
226 '[class.mat-tab-label-active]': 'active',
227 '(focus)': '_handleFocus()'
228 }
229 },] }
230];
231MatTabLink.ctorParameters = () => [
232 { type: MatTabNav },
233 { type: ElementRef },
234 { type: NgZone },
235 { type: Platform },
236 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
237 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
238 { type: FocusMonitor },
239 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
240];
241//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLW5hdi1iYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvdGFicy90YWItbmF2LWJhci90YWItbmF2LWJhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxPQUFPLEVBQWtCLFlBQVksRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2hFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQWUscUJBQXFCLEVBQWMsTUFBTSx1QkFBdUIsQ0FBQztBQUN2RixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDL0MsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8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