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 { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
10 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, NgZone, Optional, QueryList, ViewChild, ViewEncapsulation, Input, Inject, Directive, } from '@angular/core';
|
---|
11 | import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
---|
12 | import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
---|
13 | import { MatInkBar } from './ink-bar';
|
---|
14 | import { MatTabLabelWrapper } from './tab-label-wrapper';
|
---|
15 | import { Platform } from '@angular/cdk/platform';
|
---|
16 | import { MatPaginatedTabHeader } from './paginated-tab-header';
|
---|
17 | /**
|
---|
18 | * Base class with all of the `MatTabHeader` functionality.
|
---|
19 | * @docs-private
|
---|
20 | */
|
---|
21 | export class _MatTabHeaderBase extends MatPaginatedTabHeader {
|
---|
22 | constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
|
---|
23 | super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
|
---|
24 | this._disableRipple = false;
|
---|
25 | }
|
---|
26 | /** Whether the ripple effect is disabled or not. */
|
---|
27 | get disableRipple() { return this._disableRipple; }
|
---|
28 | set disableRipple(value) { this._disableRipple = coerceBooleanProperty(value); }
|
---|
29 | _itemSelected(event) {
|
---|
30 | event.preventDefault();
|
---|
31 | }
|
---|
32 | }
|
---|
33 | _MatTabHeaderBase.decorators = [
|
---|
34 | { type: Directive }
|
---|
35 | ];
|
---|
36 | _MatTabHeaderBase.ctorParameters = () => [
|
---|
37 | { type: ElementRef },
|
---|
38 | { type: ChangeDetectorRef },
|
---|
39 | { type: ViewportRuler },
|
---|
40 | { type: Directionality, decorators: [{ type: Optional }] },
|
---|
41 | { type: NgZone },
|
---|
42 | { type: Platform },
|
---|
43 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
|
---|
44 | ];
|
---|
45 | _MatTabHeaderBase.propDecorators = {
|
---|
46 | disableRipple: [{ type: Input }]
|
---|
47 | };
|
---|
48 | /**
|
---|
49 | * The header of the tab group which displays a list of all the tabs in the tab group. Includes
|
---|
50 | * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
|
---|
51 | * width of the header container, then arrows will be displayed to allow the user to scroll
|
---|
52 | * left and right across the header.
|
---|
53 | * @docs-private
|
---|
54 | */
|
---|
55 | export class MatTabHeader extends _MatTabHeaderBase {
|
---|
56 | constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
|
---|
57 | super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
|
---|
58 | }
|
---|
59 | }
|
---|
60 | MatTabHeader.decorators = [
|
---|
61 | { type: Component, args: [{
|
---|
62 | selector: 'mat-tab-header',
|
---|
63 | 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-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n #tabList\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n role=\"tablist\"\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-labels\">\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",
|
---|
64 | inputs: ['selectedIndex'],
|
---|
65 | outputs: ['selectFocusedIndex', 'indexFocused'],
|
---|
66 | encapsulation: ViewEncapsulation.None,
|
---|
67 | // tslint:disable-next-line:validate-decorators
|
---|
68 | changeDetection: ChangeDetectionStrategy.Default,
|
---|
69 | host: {
|
---|
70 | 'class': 'mat-tab-header',
|
---|
71 | '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
---|
72 | '[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
---|
73 | },
|
---|
74 | 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-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-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.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{min-width:72px}}\n"]
|
---|
75 | },] }
|
---|
76 | ];
|
---|
77 | MatTabHeader.ctorParameters = () => [
|
---|
78 | { type: ElementRef },
|
---|
79 | { type: ChangeDetectorRef },
|
---|
80 | { type: ViewportRuler },
|
---|
81 | { type: Directionality, decorators: [{ type: Optional }] },
|
---|
82 | { type: NgZone },
|
---|
83 | { type: Platform },
|
---|
84 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
|
---|
85 | ];
|
---|
86 | MatTabHeader.propDecorators = {
|
---|
87 | _items: [{ type: ContentChildren, args: [MatTabLabelWrapper, { descendants: false },] }],
|
---|
88 | _inkBar: [{ type: ViewChild, args: [MatInkBar, { static: true },] }],
|
---|
89 | _tabListContainer: [{ type: ViewChild, args: ['tabListContainer', { static: true },] }],
|
---|
90 | _tabList: [{ type: ViewChild, args: ['tabList', { static: true },] }],
|
---|
91 | _nextPaginator: [{ type: ViewChild, args: ['nextPaginator',] }],
|
---|
92 | _previousPaginator: [{ type: ViewChild, args: ['previousPaginator',] }]
|
---|
93 | };
|
---|
94 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWhlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC90YWJzL3RhYi1oZWFkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBR0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsZUFBZSxFQUNmLFVBQVUsRUFDVixNQUFNLEVBRU4sUUFBUSxFQUNSLFNBQVMsRUFDVCxTQUFTLEVBQ1QsaUJBQWlCLEVBRWpCLEtBQUssRUFDTCxNQUFNLEVBQ04sU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLHNDQUFzQyxDQUFDO0FBQzNFLE9BQU8sRUFBZSxxQkFBcUIsRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQzFFLE9BQU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