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

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

initial commit

  • Property mode set to 100644
File size: 27.6 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 { CdkAccordionItem } from '@angular/cdk/accordion';
9import { coerceBooleanProperty } from '@angular/cdk/coercion';
10import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
11import { TemplatePortal } from '@angular/cdk/portal';
12import { DOCUMENT } from '@angular/common';
13import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Directive, ElementRef, EventEmitter, Inject, InjectionToken, Input, Optional, Output, SkipSelf, ViewChild, ViewContainerRef, ViewEncapsulation, } from '@angular/core';
14import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
15import { Subject } from 'rxjs';
16import { distinctUntilChanged, filter, startWith, take } from 'rxjs/operators';
17import { MAT_ACCORDION } from './accordion-base';
18import { matExpansionAnimations } from './expansion-animations';
19import { MatExpansionPanelContent } from './expansion-panel-content';
20/** Counter for generating unique element ids. */
21let uniqueId = 0;
22/**
23 * Injection token that can be used to configure the default
24 * options for the expansion panel component.
25 */
26export const MAT_EXPANSION_PANEL_DEFAULT_OPTIONS = new InjectionToken('MAT_EXPANSION_PANEL_DEFAULT_OPTIONS');
27const ɵ0 = undefined;
28/**
29 * This component can be used as a single element to show expandable content, or as one of
30 * multiple children of an element with the MatAccordion directive attached.
31 */
32export class MatExpansionPanel extends CdkAccordionItem {
33 constructor(accordion, _changeDetectorRef, _uniqueSelectionDispatcher, _viewContainerRef, _document, _animationMode, defaultOptions) {
34 super(accordion, _changeDetectorRef, _uniqueSelectionDispatcher);
35 this._viewContainerRef = _viewContainerRef;
36 this._animationMode = _animationMode;
37 this._hideToggle = false;
38 /** An event emitted after the body's expansion animation happens. */
39 this.afterExpand = new EventEmitter();
40 /** An event emitted after the body's collapse animation happens. */
41 this.afterCollapse = new EventEmitter();
42 /** Stream that emits for changes in `@Input` properties. */
43 this._inputChanges = new Subject();
44 /** ID for the associated header element. Used for a11y labelling. */
45 this._headerId = `mat-expansion-panel-header-${uniqueId++}`;
46 /** Stream of body animation done events. */
47 this._bodyAnimationDone = new Subject();
48 this.accordion = accordion;
49 this._document = _document;
50 // We need a Subject with distinctUntilChanged, because the `done` event
51 // fires twice on some browsers. See https://github.com/angular/angular/issues/24084
52 this._bodyAnimationDone.pipe(distinctUntilChanged((x, y) => {
53 return x.fromState === y.fromState && x.toState === y.toState;
54 })).subscribe(event => {
55 if (event.fromState !== 'void') {
56 if (event.toState === 'expanded') {
57 this.afterExpand.emit();
58 }
59 else if (event.toState === 'collapsed') {
60 this.afterCollapse.emit();
61 }
62 }
63 });
64 if (defaultOptions) {
65 this.hideToggle = defaultOptions.hideToggle;
66 }
67 }
68 /** Whether the toggle indicator should be hidden. */
69 get hideToggle() {
70 return this._hideToggle || (this.accordion && this.accordion.hideToggle);
71 }
72 set hideToggle(value) {
73 this._hideToggle = coerceBooleanProperty(value);
74 }
75 /** The position of the expansion indicator. */
76 get togglePosition() {
77 return this._togglePosition || (this.accordion && this.accordion.togglePosition);
78 }
79 set togglePosition(value) {
80 this._togglePosition = value;
81 }
82 /** Determines whether the expansion panel should have spacing between it and its siblings. */
83 _hasSpacing() {
84 if (this.accordion) {
85 return this.expanded && this.accordion.displayMode === 'default';
86 }
87 return false;
88 }
89 /** Gets the expanded state string. */
90 _getExpandedState() {
91 return this.expanded ? 'expanded' : 'collapsed';
92 }
93 /** Toggles the expanded state of the expansion panel. */
94 toggle() {
95 this.expanded = !this.expanded;
96 }
97 /** Sets the expanded state of the expansion panel to false. */
98 close() {
99 this.expanded = false;
100 }
101 /** Sets the expanded state of the expansion panel to true. */
102 open() {
103 this.expanded = true;
104 }
105 ngAfterContentInit() {
106 if (this._lazyContent) {
107 // Render the content as soon as the panel becomes open.
108 this.opened.pipe(startWith(null), filter(() => this.expanded && !this._portal), take(1)).subscribe(() => {
109 this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);
110 });
111 }
112 }
113 ngOnChanges(changes) {
114 this._inputChanges.next(changes);
115 }
116 ngOnDestroy() {
117 super.ngOnDestroy();
118 this._bodyAnimationDone.complete();
119 this._inputChanges.complete();
120 }
121 /** Checks whether the expansion panel's content contains the currently-focused element. */
122 _containsFocus() {
123 if (this._body) {
124 const focusedElement = this._document.activeElement;
125 const bodyElement = this._body.nativeElement;
126 return focusedElement === bodyElement || bodyElement.contains(focusedElement);
127 }
128 return false;
129 }
130}
131MatExpansionPanel.decorators = [
132 { type: Component, args: [{
133 selector: 'mat-expansion-panel',
134 exportAs: 'matExpansionPanel',
135 template: "<ng-content select=\"mat-expansion-panel-header\"></ng-content>\n<div class=\"mat-expansion-panel-content\"\n role=\"region\"\n [@bodyExpansion]=\"_getExpandedState()\"\n (@bodyExpansion.done)=\"_bodyAnimationDone.next($event)\"\n [attr.aria-labelledby]=\"_headerId\"\n [id]=\"id\"\n #body>\n <div class=\"mat-expansion-panel-body\">\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n </div>\n <ng-content select=\"mat-action-row\"></ng-content>\n</div>\n",
136 encapsulation: ViewEncapsulation.None,
137 changeDetection: ChangeDetectionStrategy.OnPush,
138 inputs: ['disabled', 'expanded'],
139 outputs: ['opened', 'closed', 'expandedChange'],
140 animations: [matExpansionAnimations.bodyExpansion],
141 providers: [
142 // Provide MatAccordion as undefined to prevent nested expansion panels from registering
143 // to the same accordion.
144 { provide: MAT_ACCORDION, useValue: ɵ0 },
145 ],
146 host: {
147 'class': 'mat-expansion-panel',
148 '[class.mat-expanded]': 'expanded',
149 '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
150 '[class.mat-expansion-panel-spacing]': '_hasSpacing()',
151 },
152 styles: [".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"]
153 },] }
154];
155MatExpansionPanel.ctorParameters = () => [
156 { type: undefined, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [MAT_ACCORDION,] }] },
157 { type: ChangeDetectorRef },
158 { type: UniqueSelectionDispatcher },
159 { type: ViewContainerRef },
160 { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
161 { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] },
162 { type: undefined, decorators: [{ type: Inject, args: [MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,] }, { type: Optional }] }
163];
164MatExpansionPanel.propDecorators = {
165 hideToggle: [{ type: Input }],
166 togglePosition: [{ type: Input }],
167 afterExpand: [{ type: Output }],
168 afterCollapse: [{ type: Output }],
169 _lazyContent: [{ type: ContentChild, args: [MatExpansionPanelContent,] }],
170 _body: [{ type: ViewChild, args: ['body',] }]
171};
172/**
173 * Actions of a `<mat-expansion-panel>`.
174 */
175export class MatExpansionPanelActionRow {
176}
177MatExpansionPanelActionRow.decorators = [
178 { type: Directive, args: [{
179 selector: 'mat-action-row',
180 host: {
181 class: 'mat-action-row'
182 }
183 },] }
184];
185export { ɵ0 };
186//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwYW5zaW9uLXBhbmVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2V4cGFuc2lvbi9leHBhbnNpb24tcGFuZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDeEQsT0FBTyxFQUFlLHFCQUFxQixFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDMUUsT0FBTyxFQUFDLHlCQUF5QixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDbkUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQ25ELE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUN6QyxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsWUFBWSxFQUNaLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixjQUFjLEVBQ2QsS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