source: trip-planner-front/node_modules/@angular/material/esm2015/expansion/expansion-panel-header.js@ b738035

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

initial commit

  • Property mode set to 100644
File size: 27.4 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 { ENTER, hasModifierKey, SPACE } from '@angular/cdk/keycodes';
10import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, ElementRef, Host, Inject, Input, Optional, ViewEncapsulation, } from '@angular/core';
11import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
12import { mixinTabIndex } from '@angular/material/core';
13import { EMPTY, merge, Subscription } from 'rxjs';
14import { filter } from 'rxjs/operators';
15import { matExpansionAnimations } from './expansion-animations';
16import { MatExpansionPanel, MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, } from './expansion-panel';
17// Boilerplate for applying mixins to MatExpansionPanelHeader.
18/** @docs-private */
19class MatExpansionPanelHeaderBase {
20}
21const _MatExpansionPanelHeaderMixinBase = mixinTabIndex(MatExpansionPanelHeaderBase);
22/**
23 * Header element of a `<mat-expansion-panel>`.
24 */
25export class MatExpansionPanelHeader extends _MatExpansionPanelHeaderMixinBase {
26 constructor(panel, _element, _focusMonitor, _changeDetectorRef, defaultOptions, _animationMode, tabIndex) {
27 super();
28 this.panel = panel;
29 this._element = _element;
30 this._focusMonitor = _focusMonitor;
31 this._changeDetectorRef = _changeDetectorRef;
32 this._animationMode = _animationMode;
33 this._parentChangeSubscription = Subscription.EMPTY;
34 const accordionHideToggleChange = panel.accordion ?
35 panel.accordion._stateChanges.pipe(filter(changes => !!(changes['hideToggle'] || changes['togglePosition']))) :
36 EMPTY;
37 this.tabIndex = parseInt(tabIndex || '') || 0;
38 // Since the toggle state depends on an @Input on the panel, we
39 // need to subscribe and trigger change detection manually.
40 this._parentChangeSubscription =
41 merge(panel.opened, panel.closed, accordionHideToggleChange, panel._inputChanges.pipe(filter(changes => {
42 return !!(changes['hideToggle'] ||
43 changes['disabled'] ||
44 changes['togglePosition']);
45 })))
46 .subscribe(() => this._changeDetectorRef.markForCheck());
47 // Avoids focus being lost if the panel contained the focused element and was closed.
48 panel.closed
49 .pipe(filter(() => panel._containsFocus()))
50 .subscribe(() => _focusMonitor.focusVia(_element, 'program'));
51 if (defaultOptions) {
52 this.expandedHeight = defaultOptions.expandedHeight;
53 this.collapsedHeight = defaultOptions.collapsedHeight;
54 }
55 }
56 /**
57 * Whether the associated panel is disabled. Implemented as a part of `FocusableOption`.
58 * @docs-private
59 */
60 get disabled() {
61 return this.panel.disabled;
62 }
63 /** Toggles the expanded state of the panel. */
64 _toggle() {
65 if (!this.disabled) {
66 this.panel.toggle();
67 }
68 }
69 /** Gets whether the panel is expanded. */
70 _isExpanded() {
71 return this.panel.expanded;
72 }
73 /** Gets the expanded state string of the panel. */
74 _getExpandedState() {
75 return this.panel._getExpandedState();
76 }
77 /** Gets the panel id. */
78 _getPanelId() {
79 return this.panel.id;
80 }
81 /** Gets the toggle position for the header. */
82 _getTogglePosition() {
83 return this.panel.togglePosition;
84 }
85 /** Gets whether the expand indicator should be shown. */
86 _showToggle() {
87 return !this.panel.hideToggle && !this.panel.disabled;
88 }
89 /**
90 * Gets the current height of the header. Null if no custom height has been
91 * specified, and if the default height from the stylesheet should be used.
92 */
93 _getHeaderHeight() {
94 const isExpanded = this._isExpanded();
95 if (isExpanded && this.expandedHeight) {
96 return this.expandedHeight;
97 }
98 else if (!isExpanded && this.collapsedHeight) {
99 return this.collapsedHeight;
100 }
101 return null;
102 }
103 /** Handle keydown event calling to toggle() if appropriate. */
104 _keydown(event) {
105 switch (event.keyCode) {
106 // Toggle for space and enter keys.
107 case SPACE:
108 case ENTER:
109 if (!hasModifierKey(event)) {
110 event.preventDefault();
111 this._toggle();
112 }
113 break;
114 default:
115 if (this.panel.accordion) {
116 this.panel.accordion._handleHeaderKeydown(event);
117 }
118 return;
119 }
120 }
121 /**
122 * Focuses the panel header. Implemented as a part of `FocusableOption`.
123 * @param origin Origin of the action that triggered the focus.
124 * @docs-private
125 */
126 focus(origin, options) {
127 if (origin) {
128 this._focusMonitor.focusVia(this._element, origin, options);
129 }
130 else {
131 this._element.nativeElement.focus(options);
132 }
133 }
134 ngAfterViewInit() {
135 this._focusMonitor.monitor(this._element).subscribe(origin => {
136 if (origin && this.panel.accordion) {
137 this.panel.accordion._handleHeaderFocus(this);
138 }
139 });
140 }
141 ngOnDestroy() {
142 this._parentChangeSubscription.unsubscribe();
143 this._focusMonitor.stopMonitoring(this._element);
144 }
145}
146MatExpansionPanelHeader.decorators = [
147 { type: Component, args: [{
148 selector: 'mat-expansion-panel-header',
149 template: "<span class=\"mat-content\">\n <ng-content select=\"mat-panel-title\"></ng-content>\n <ng-content select=\"mat-panel-description\"></ng-content>\n <ng-content></ng-content>\n</span>\n<span [@indicatorRotate]=\"_getExpandedState()\" *ngIf=\"_showToggle()\"\n class=\"mat-expansion-indicator\"></span>\n",
150 encapsulation: ViewEncapsulation.None,
151 changeDetection: ChangeDetectionStrategy.OnPush,
152 inputs: ['tabIndex'],
153 animations: [
154 matExpansionAnimations.indicatorRotate,
155 ],
156 host: {
157 'class': 'mat-expansion-panel-header mat-focus-indicator',
158 'role': 'button',
159 '[attr.id]': 'panel._headerId',
160 '[attr.tabindex]': 'tabIndex',
161 '[attr.aria-controls]': '_getPanelId()',
162 '[attr.aria-expanded]': '_isExpanded()',
163 '[attr.aria-disabled]': 'panel.disabled',
164 '[class.mat-expanded]': '_isExpanded()',
165 '[class.mat-expansion-toggle-indicator-after]': `_getTogglePosition() === 'after'`,
166 '[class.mat-expansion-toggle-indicator-before]': `_getTogglePosition() === 'before'`,
167 '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
168 '[style.height]': '_getHeaderHeight()',
169 '(click)': '_toggle()',
170 '(keydown)': '_keydown($event)',
171 },
172 styles: [".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:\"\";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:\"\"}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n"]
173 },] }
174];
175MatExpansionPanelHeader.ctorParameters = () => [
176 { type: MatExpansionPanel, decorators: [{ type: Host }] },
177 { type: ElementRef },
178 { type: FocusMonitor },
179 { type: ChangeDetectorRef },
180 { type: undefined, decorators: [{ type: Inject, args: [MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,] }, { type: Optional }] },
181 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] },
182 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] }
183];
184MatExpansionPanelHeader.propDecorators = {
185 expandedHeight: [{ type: Input }],
186 collapsedHeight: [{ type: Input }]
187};
188/**
189 * Description element of a `<mat-expansion-panel-header>`.
190 */
191export class MatExpansionPanelDescription {
192}
193MatExpansionPanelDescription.decorators = [
194 { type: Directive, args: [{
195 selector: 'mat-panel-description',
196 host: {
197 class: 'mat-expansion-panel-header-description'
198 }
199 },] }
200];
201/**
202 * Title element of a `<mat-expansion-panel-header>`.
203 */
204export class MatExpansionPanelTitle {
205}
206MatExpansionPanelTitle.decorators = [
207 { type: Directive, args: [{
208 selector: 'mat-panel-title',
209 host: {
210 class: 'mat-expansion-panel-header-title'
211 }
212 },] }
213];
214//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwYW5zaW9uLXBhbmVsLWhlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9leHBhbnNpb24vZXhwYW5zaW9uLXBhbmVsLWhlYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQWtCLFlBQVksRUFBYyxNQUFNLG1CQUFtQixDQUFDO0FBQzdFLE9BQU8sRUFBQyxLQUFLLEVBQUUsY0FBYyxFQUFFLEtBQUssRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQ25FLE9BQU8sRUFFTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1Qs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