source: trip-planner-front/node_modules/primeng/esm2020/slidemenu/slidemenu.mjs@ 76712b2

Last change on this file since 76712b2 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 64.4 KB
Line 
1import { NgModule, Component, Input, Inject, forwardRef, ViewChild, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { trigger, style, transition, animate } from '@angular/animations';
3import { CommonModule } from '@angular/common';
4import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
5import { RouterModule } from '@angular/router';
6import { ZIndexUtils } from 'primeng/utils';
7import { TooltipModule } from 'primeng/tooltip';
8import * as i0 from "@angular/core";
9import * as i1 from "@angular/common";
10import * as i2 from "primeng/tooltip";
11import * as i3 from "@angular/router";
12import * as i4 from "primeng/api";
13export class SlideMenuSub {
14 constructor(slideMenu) {
15 this.backLabel = 'Back';
16 this.easing = 'ease-out';
17 this.slideMenu = slideMenu;
18 }
19 itemClick(event, item, listitem) {
20 if (item.disabled) {
21 event.preventDefault();
22 return;
23 }
24 if (!item.url) {
25 event.preventDefault();
26 }
27 if (item.command) {
28 item.command({
29 originalEvent: event,
30 item: item
31 });
32 }
33 if (item.items && !this.slideMenu.animating) {
34 this.slideMenu.left -= this.slideMenu.menuWidth;
35 this.activeItem = listitem;
36 this.slideMenu.animating = true;
37 setTimeout(() => this.slideMenu.animating = false, this.effectDuration);
38 }
39 if (!item.items && this.slideMenu.popup) {
40 this.slideMenu.hide();
41 }
42 }
43 focusNextList(listitem) {
44 if (!this.slideMenu.animating) {
45 let focusableElements = DomHandler.getFocusableElements(listitem);
46 if (focusableElements && focusableElements.length > 0) {
47 focusableElements[0].focus();
48 }
49 this.unbindTransitionEndListener();
50 }
51 }
52 onItemKeyDown(event) {
53 let listItem = event.currentTarget.parentElement;
54 switch (event.code) {
55 case 'Space':
56 case 'Enter':
57 if (listItem && !DomHandler.hasClass(listItem, 'p-disabled')) {
58 listItem.children[0].click();
59 this.transitionEndListener = this.focusNextList.bind(this, listItem);
60 this.sublistViewChild.nativeElement.addEventListener('transitionend', this.transitionEndListener);
61 }
62 event.preventDefault();
63 break;
64 default:
65 break;
66 }
67 }
68 unbindTransitionEndListener() {
69 if (this.transitionEndListener && this.sublistViewChild) {
70 this.sublistViewChild.nativeElement.removeEventListener('transitionend', this.transitionEndListener);
71 this.transitionEndListener = null;
72 }
73 }
74 ngOnDestroy() {
75 this.activeItem = null;
76 this.unbindTransitionEndListener();
77 }
78 get isActive() {
79 return -this.slideMenu.left == (this.index * this.menuWidth);
80 }
81}
82SlideMenuSub.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuSub, deps: [{ token: forwardRef(() => SlideMenu) }], target: i0.ɵɵFactoryTarget.Component });
83SlideMenuSub.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: SlideMenuSub, selector: "p-slideMenuSub", inputs: { item: "item", root: "root", backLabel: "backLabel", menuWidth: "menuWidth", effectDuration: "effectDuration", easing: "easing", index: "index" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true }], ngImport: i0, template: `
84 <ul #sublist [ngClass]="{'p-slidemenu-rootlist':root, 'p-submenu-list':!root, 'p-active-submenu': isActive}"
85 [style.width.px]="menuWidth" [style.left.px]="root ? slideMenu.left : slideMenu.menuWidth"
86 [style.transitionProperty]="root ? 'left' : 'none'" [style.transitionDuration]="effectDuration + 'ms'" [style.transitionTimingFunction]="easing">
87 <ng-template ngFor let-child [ngForOf]="(root ? item : item.items)">
88 <li *ngIf="child.separator" class="p-menu-separator" [ngClass]="{'p-hidden': child.visible === false}">
89 <li *ngIf="!child.separator" #listitem [ngClass]="{'p-menuitem':true,'p-menuitem-active':listitem==activeItem,'p-hidden': child.visible === false}" pTooltip [tooltipOptions]="child.tooltipOptions"
90 [class]="child.styleClass" [ngStyle]="child.style">
91 <a *ngIf="!child.routerLink" (keydown)="onItemKeyDown($event)" [attr.href]="child.url" class="p-menuitem-link" [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id"
92 [ngClass]="{'p-disabled':child.disabled}" [attr.tabindex]="child.disabled || !isActive ? null : '0'"
93 (click)="itemClick($event, child, listitem)">
94 <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
95 <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
96 <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
97 <span class="p-submenu-icon pi pi-fw pi-angle-right" *ngIf="child.items"></span>
98 </a>
99 <a *ngIf="child.routerLink" (keydown)="onItemKeyDown($event)" [routerLink]="child.routerLink" [queryParams]="child.queryParams" [routerLinkActive]="'p-menuitem-link-active'"
100 [routerLinkActiveOptions]="child.routerLinkActiveOptions||{exact:false}" [href]="child.url" class="p-menuitem-link"
101 [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" [attr.tabindex]="child.disabled || !isActive ? null : '0'"
102 [ngClass]="{'p-disabled':child.disabled}"
103 (click)="itemClick($event, child, listitem)"
104 [fragment]="child.fragment" [queryParamsHandling]="child.queryParamsHandling" [preserveFragment]="child.preserveFragment" [skipLocationChange]="child.skipLocationChange" [replaceUrl]="child.replaceUrl" [state]="child.state">
105 <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
106 <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
107 <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
108 <span class="p-submenu-icon pi pi-fw pi-caret-right" *ngIf="child.items"></span>
109 </a>
110 <p-slideMenuSub class="p-submenu" [item]="child" [index]="index + 1" [menuWidth]="menuWidth" *ngIf="child.items"></p-slideMenuSub>
111 </li>
112 </ng-template>
113 </ul>
114 `, isInline: true, components: [{ type: SlideMenuSub, selector: "p-slideMenuSub", inputs: ["item", "root", "backLabel", "menuWidth", "effectDuration", "easing", "index"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], encapsulation: i0.ViewEncapsulation.None });
115i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuSub, decorators: [{
116 type: Component,
117 args: [{
118 selector: 'p-slideMenuSub',
119 template: `
120 <ul #sublist [ngClass]="{'p-slidemenu-rootlist':root, 'p-submenu-list':!root, 'p-active-submenu': isActive}"
121 [style.width.px]="menuWidth" [style.left.px]="root ? slideMenu.left : slideMenu.menuWidth"
122 [style.transitionProperty]="root ? 'left' : 'none'" [style.transitionDuration]="effectDuration + 'ms'" [style.transitionTimingFunction]="easing">
123 <ng-template ngFor let-child [ngForOf]="(root ? item : item.items)">
124 <li *ngIf="child.separator" class="p-menu-separator" [ngClass]="{'p-hidden': child.visible === false}">
125 <li *ngIf="!child.separator" #listitem [ngClass]="{'p-menuitem':true,'p-menuitem-active':listitem==activeItem,'p-hidden': child.visible === false}" pTooltip [tooltipOptions]="child.tooltipOptions"
126 [class]="child.styleClass" [ngStyle]="child.style">
127 <a *ngIf="!child.routerLink" (keydown)="onItemKeyDown($event)" [attr.href]="child.url" class="p-menuitem-link" [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id"
128 [ngClass]="{'p-disabled':child.disabled}" [attr.tabindex]="child.disabled || !isActive ? null : '0'"
129 (click)="itemClick($event, child, listitem)">
130 <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
131 <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
132 <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
133 <span class="p-submenu-icon pi pi-fw pi-angle-right" *ngIf="child.items"></span>
134 </a>
135 <a *ngIf="child.routerLink" (keydown)="onItemKeyDown($event)" [routerLink]="child.routerLink" [queryParams]="child.queryParams" [routerLinkActive]="'p-menuitem-link-active'"
136 [routerLinkActiveOptions]="child.routerLinkActiveOptions||{exact:false}" [href]="child.url" class="p-menuitem-link"
137 [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" [attr.tabindex]="child.disabled || !isActive ? null : '0'"
138 [ngClass]="{'p-disabled':child.disabled}"
139 (click)="itemClick($event, child, listitem)"
140 [fragment]="child.fragment" [queryParamsHandling]="child.queryParamsHandling" [preserveFragment]="child.preserveFragment" [skipLocationChange]="child.skipLocationChange" [replaceUrl]="child.replaceUrl" [state]="child.state">
141 <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
142 <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
143 <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
144 <span class="p-submenu-icon pi pi-fw pi-caret-right" *ngIf="child.items"></span>
145 </a>
146 <p-slideMenuSub class="p-submenu" [item]="child" [index]="index + 1" [menuWidth]="menuWidth" *ngIf="child.items"></p-slideMenuSub>
147 </li>
148 </ng-template>
149 </ul>
150 `,
151 encapsulation: ViewEncapsulation.None,
152 host: {
153 'class': 'p-element'
154 }
155 }]
156 }], ctorParameters: function () { return [{ type: undefined, decorators: [{
157 type: Inject,
158 args: [forwardRef(() => SlideMenu)]
159 }] }]; }, propDecorators: { item: [{
160 type: Input
161 }], root: [{
162 type: Input
163 }], backLabel: [{
164 type: Input
165 }], menuWidth: [{
166 type: Input
167 }], effectDuration: [{
168 type: Input
169 }], easing: [{
170 type: Input
171 }], index: [{
172 type: Input
173 }], sublistViewChild: [{
174 type: ViewChild,
175 args: ['sublist']
176 }] } });
177export class SlideMenu {
178 constructor(el, renderer, cd, config, overlayService) {
179 this.el = el;
180 this.renderer = renderer;
181 this.cd = cd;
182 this.config = config;
183 this.overlayService = overlayService;
184 this.menuWidth = 190;
185 this.viewportHeight = 180;
186 this.effectDuration = 250;
187 this.easing = 'ease-out';
188 this.backLabel = 'Back';
189 this.autoZIndex = true;
190 this.baseZIndex = 0;
191 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
192 this.hideTransitionOptions = '.1s linear';
193 this.onShow = new EventEmitter();
194 this.onHide = new EventEmitter();
195 this.left = 0;
196 this.animating = false;
197 }
198 ngAfterViewChecked() {
199 if (!this.viewportUpdated && !this.popup && this.containerViewChild) {
200 this.updateViewPort();
201 this.viewportUpdated = true;
202 }
203 }
204 set container(element) {
205 this.containerViewChild = element;
206 }
207 set backward(element) {
208 this.backwardViewChild = element;
209 }
210 set slideMenuContent(element) {
211 this.slideMenuContentViewChild = element;
212 }
213 updateViewPort() {
214 this.slideMenuContentViewChild.nativeElement.style.height = this.viewportHeight - DomHandler.getHiddenElementOuterHeight(this.backwardViewChild.nativeElement) + 'px';
215 }
216 toggle(event) {
217 if (this.visible)
218 this.hide();
219 else
220 this.show(event);
221 this.preventDocumentDefault = true;
222 }
223 show(event) {
224 this.target = event.currentTarget;
225 this.visible = true;
226 this.preventDocumentDefault = true;
227 this.cd.markForCheck();
228 }
229 onOverlayClick(event) {
230 if (this.popup) {
231 this.overlayService.add({
232 originalEvent: event,
233 target: this.el.nativeElement
234 });
235 }
236 this.preventDocumentDefault = true;
237 }
238 onOverlayAnimationStart(event) {
239 switch (event.toState) {
240 case 'visible':
241 if (this.popup) {
242 this.updateViewPort();
243 this.moveOnTop();
244 this.onShow.emit({});
245 this.appendOverlay();
246 DomHandler.absolutePosition(this.containerViewChild.nativeElement, this.target);
247 this.bindDocumentClickListener();
248 this.bindDocumentResizeListener();
249 this.bindScrollListener();
250 }
251 break;
252 case 'void':
253 this.onOverlayHide();
254 this.onHide.emit({});
255 break;
256 }
257 }
258 onOverlayAnimationEnd(event) {
259 switch (event.toState) {
260 case 'void':
261 ZIndexUtils.clear(event.element);
262 break;
263 }
264 }
265 appendOverlay() {
266 if (this.appendTo) {
267 if (this.appendTo === 'body')
268 document.body.appendChild(this.containerViewChild.nativeElement);
269 else
270 DomHandler.appendChild(this.containerViewChild.nativeElement, this.appendTo);
271 }
272 }
273 restoreOverlayAppend() {
274 if (this.container && this.appendTo) {
275 this.el.nativeElement.appendChild(this.containerViewChild.nativeElement);
276 }
277 }
278 moveOnTop() {
279 if (this.autoZIndex) {
280 ZIndexUtils.set('menu', this.containerViewChild.nativeElement, this.baseZIndex + this.config.zIndex.menu);
281 }
282 }
283 hide() {
284 this.visible = false;
285 this.cd.markForCheck();
286 }
287 onWindowResize() {
288 this.hide();
289 }
290 goBack() {
291 this.left += this.menuWidth;
292 }
293 onBackwardKeydown(event) {
294 this.goBack();
295 if (!this.left) {
296 setTimeout(() => {
297 let focusableElements = DomHandler.getFocusableElements(this.el.nativeElement);
298 if (focusableElements && focusableElements.length > 0) {
299 focusableElements[0].focus();
300 }
301 }, 1);
302 }
303 event.preventDefault();
304 }
305 bindDocumentClickListener() {
306 if (!this.documentClickListener) {
307 const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
308 this.documentClickListener = this.renderer.listen(documentTarget, 'click', () => {
309 if (!this.preventDocumentDefault) {
310 this.hide();
311 this.cd.detectChanges();
312 }
313 this.preventDocumentDefault = false;
314 });
315 }
316 }
317 unbindDocumentClickListener() {
318 if (this.documentClickListener) {
319 this.documentClickListener();
320 this.documentClickListener = null;
321 }
322 }
323 bindDocumentResizeListener() {
324 this.documentResizeListener = this.onWindowResize.bind(this);
325 window.addEventListener('resize', this.documentResizeListener);
326 }
327 unbindDocumentResizeListener() {
328 if (this.documentResizeListener) {
329 window.removeEventListener('resize', this.documentResizeListener);
330 this.documentResizeListener = null;
331 }
332 }
333 bindScrollListener() {
334 if (!this.scrollHandler) {
335 this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {
336 if (this.visible) {
337 this.hide();
338 }
339 });
340 }
341 this.scrollHandler.bindScrollListener();
342 }
343 unbindScrollListener() {
344 if (this.scrollHandler) {
345 this.scrollHandler.unbindScrollListener();
346 }
347 }
348 onOverlayHide() {
349 this.unbindDocumentClickListener();
350 this.unbindDocumentResizeListener();
351 this.unbindScrollListener();
352 this.preventDocumentDefault = false;
353 this.target = null;
354 this.left = 0;
355 }
356 ngOnDestroy() {
357 if (this.popup) {
358 if (this.scrollHandler) {
359 this.scrollHandler.destroy();
360 this.scrollHandler = null;
361 }
362 this.restoreOverlayAppend();
363 this.onOverlayHide();
364 }
365 }
366}
367SlideMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenu, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i4.PrimeNGConfig }, { token: i4.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
368SlideMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: SlideMenu, selector: "p-slideMenu", inputs: { model: "model", popup: "popup", style: "style", styleClass: "styleClass", menuWidth: "menuWidth", viewportHeight: "viewportHeight", effectDuration: "effectDuration", easing: "easing", backLabel: "backLabel", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }, { propertyName: "backward", first: true, predicate: ["backward"], descendants: true }, { propertyName: "slideMenuContent", first: true, predicate: ["slideMenuContent"], descendants: true }], ngImport: i0, template: `
369 <div #container [ngClass]="{'p-slidemenu p-component':true, 'p-slidemenu-overlay':popup}"
370 [class]="styleClass" [ngStyle]="style" (click)="onOverlayClick($event)"
371 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" [@.disabled]="popup !== true"
372 (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationEnd($event)" *ngIf="!popup || visible">
373 <div class="p-slidemenu-wrapper" [style.height]="left ? viewportHeight + 'px' : 'auto'" [style.width]="menuWidth + 'px'">
374 <div #slideMenuContent class="p-slidemenu-content">
375 <p-slideMenuSub [item]="model" root="root" [index]="0" [menuWidth]="menuWidth" [effectDuration]="effectDuration" [easing]="easing"></p-slideMenuSub>
376 </div>
377 <a #backward (keydown.enter)="onBackwardKeydown($event)" (keydown.space)="onBackwardKeydown($event)" class="p-slidemenu-backward p-menuitem-link" tabindex="0" [style.display]="left ? 'block' : 'none'" (click)="goBack()">
378 <span class="p-slidemenu-backward-icon pi pi-fw pi-caret-left"></span><span>{{backLabel}}</span>
379 </a>
380 </div>
381 </div>
382 `, isInline: true, styles: [".p-slidemenu{width:12.5rem}.p-slidemenu.p-slidemenu-overlay{position:absolute;top:0;left:0}.p-slidemenu ul{list-style:none;margin:0;padding:0}.p-slidemenu .p-slidemenu-rootlist{position:absolute;top:0}.p-slidemenu .p-submenu-list{display:none;position:absolute;top:0;width:12.5rem}.p-slidemenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden}.p-slidemenu .p-menuitem-icon,.p-slidemenu .p-menuitem-text{vertical-align:middle}.p-slidemenu .p-menuitem{position:relative}.p-slidemenu .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-slidemenu .p-slidemenu-wrapper{position:relative}.p-slidemenu .p-slidemenu-content{overflow-x:hidden;overflow-y:auto;position:relative}.p-slidemenu-backward{position:absolute;bottom:0;width:100%;cursor:pointer;display:none}.p-slidemenu-backward .p-slidemenu-backward-icon,.p-slidemenu-backward span{vertical-align:middle}.p-slidemenu .p-menuitem-active{position:static}.p-slidemenu .p-menuitem-active>.p-submenu>.p-submenu-list{display:block}.p-slidemenu ul:not(.p-active-submenu)>.p-menuitem:not(.p-menuitem-active),.p-slidemenu .p-active-submenu>.p-menuitem-active>.p-submenu>.p-submenu-list{display:none}.p-slidemenu .p-active-submenu>.p-menuitem-active~.p-menuitem{display:block}\n"], components: [{ type: SlideMenuSub, selector: "p-slideMenuSub", inputs: ["item", "root", "backLabel", "menuWidth", "effectDuration", "easing", "index"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], animations: [
383 trigger('overlayAnimation', [
384 transition(':enter', [
385 style({ opacity: 0, transform: 'scaleY(0.8)' }),
386 animate('{{showTransitionParams}}')
387 ]),
388 transition(':leave', [
389 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
390 ])
391 ])
392 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
393i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenu, decorators: [{
394 type: Component,
395 args: [{ selector: 'p-slideMenu', template: `
396 <div #container [ngClass]="{'p-slidemenu p-component':true, 'p-slidemenu-overlay':popup}"
397 [class]="styleClass" [ngStyle]="style" (click)="onOverlayClick($event)"
398 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" [@.disabled]="popup !== true"
399 (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationEnd($event)" *ngIf="!popup || visible">
400 <div class="p-slidemenu-wrapper" [style.height]="left ? viewportHeight + 'px' : 'auto'" [style.width]="menuWidth + 'px'">
401 <div #slideMenuContent class="p-slidemenu-content">
402 <p-slideMenuSub [item]="model" root="root" [index]="0" [menuWidth]="menuWidth" [effectDuration]="effectDuration" [easing]="easing"></p-slideMenuSub>
403 </div>
404 <a #backward (keydown.enter)="onBackwardKeydown($event)" (keydown.space)="onBackwardKeydown($event)" class="p-slidemenu-backward p-menuitem-link" tabindex="0" [style.display]="left ? 'block' : 'none'" (click)="goBack()">
405 <span class="p-slidemenu-backward-icon pi pi-fw pi-caret-left"></span><span>{{backLabel}}</span>
406 </a>
407 </div>
408 </div>
409 `, animations: [
410 trigger('overlayAnimation', [
411 transition(':enter', [
412 style({ opacity: 0, transform: 'scaleY(0.8)' }),
413 animate('{{showTransitionParams}}')
414 ]),
415 transition(':leave', [
416 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
417 ])
418 ])
419 ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
420 'class': 'p-element'
421 }, styles: [".p-slidemenu{width:12.5rem}.p-slidemenu.p-slidemenu-overlay{position:absolute;top:0;left:0}.p-slidemenu ul{list-style:none;margin:0;padding:0}.p-slidemenu .p-slidemenu-rootlist{position:absolute;top:0}.p-slidemenu .p-submenu-list{display:none;position:absolute;top:0;width:12.5rem}.p-slidemenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden}.p-slidemenu .p-menuitem-icon,.p-slidemenu .p-menuitem-text{vertical-align:middle}.p-slidemenu .p-menuitem{position:relative}.p-slidemenu .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-slidemenu .p-slidemenu-wrapper{position:relative}.p-slidemenu .p-slidemenu-content{overflow-x:hidden;overflow-y:auto;position:relative}.p-slidemenu-backward{position:absolute;bottom:0;width:100%;cursor:pointer;display:none}.p-slidemenu-backward .p-slidemenu-backward-icon,.p-slidemenu-backward span{vertical-align:middle}.p-slidemenu .p-menuitem-active{position:static}.p-slidemenu .p-menuitem-active>.p-submenu>.p-submenu-list{display:block}.p-slidemenu ul:not(.p-active-submenu)>.p-menuitem:not(.p-menuitem-active),.p-slidemenu .p-active-submenu>.p-menuitem-active>.p-submenu>.p-submenu-list{display:none}.p-slidemenu .p-active-submenu>.p-menuitem-active~.p-menuitem{display:block}\n"] }]
422 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i4.PrimeNGConfig }, { type: i4.OverlayService }]; }, propDecorators: { model: [{
423 type: Input
424 }], popup: [{
425 type: Input
426 }], style: [{
427 type: Input
428 }], styleClass: [{
429 type: Input
430 }], menuWidth: [{
431 type: Input
432 }], viewportHeight: [{
433 type: Input
434 }], effectDuration: [{
435 type: Input
436 }], easing: [{
437 type: Input
438 }], backLabel: [{
439 type: Input
440 }], appendTo: [{
441 type: Input
442 }], autoZIndex: [{
443 type: Input
444 }], baseZIndex: [{
445 type: Input
446 }], showTransitionOptions: [{
447 type: Input
448 }], hideTransitionOptions: [{
449 type: Input
450 }], onShow: [{
451 type: Output
452 }], onHide: [{
453 type: Output
454 }], container: [{
455 type: ViewChild,
456 args: ['container']
457 }], backward: [{
458 type: ViewChild,
459 args: ['backward']
460 }], slideMenuContent: [{
461 type: ViewChild,
462 args: ['slideMenuContent']
463 }] } });
464export class SlideMenuModule {
465}
466SlideMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
467SlideMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuModule, declarations: [SlideMenu, SlideMenuSub], imports: [CommonModule, RouterModule, TooltipModule], exports: [SlideMenu, RouterModule, TooltipModule] });
468SlideMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuModule, imports: [[CommonModule, RouterModule, TooltipModule], RouterModule, TooltipModule] });
469i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SlideMenuModule, decorators: [{
470 type: NgModule,
471 args: [{
472 imports: [CommonModule, RouterModule, TooltipModule],
473 exports: [SlideMenu, RouterModule, TooltipModule],
474 declarations: [SlideMenu, SlideMenuSub]
475 }]
476 }] });
477//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVtZW51LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL3NsaWRlbWVudS9zbGlkZW1lbnUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQXVDLEtBQUssRUFBVyxNQUFNLEVBQUMsVUFBVSxFQUFDLFNBQVMsRUFBQyxNQUFNLEVBQUMsWUFBWSxFQUFtQix1QkFBdUIsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNwTixPQUFPLEVBQUMsT0FBTyxFQUFDLEtBQUssRUFBQyxVQUFVLEVBQUMsT0FBTyxFQUFnQixNQUFNLHFCQUFxQixDQUFDO0FBQ3BGLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsVUFBVSxFQUFFLDZCQUE2QixFQUFDLE1B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Byb290OiBib29sZWFuO1xuXG4gICAgQElucHV0KCkgYmFja0xhYmVsOiBzdHJpbmcgPSAnQmFjayc7XG5cbiAgICBASW5wdXQoKSBtZW51V2lkdGg6IG51bWJlcjtcblxuICAgIEBJbnB1dCgpIGVmZmVjdER1cmF0aW9uOiBhbnk7XG5cbiAgICBASW5wdXQoKSBlYXNpbmc6IHN0cmluZyA9ICdlYXNlLW91dCc7XG5cbiAgICBASW5wdXQoKSBpbmRleDogbnVtYmVyO1xuXG4gICAgQFZpZXdDaGlsZCgnc3VibGlzdCcpIHN1Ymxpc3RWaWV3Q2hpbGQ6IEVsZW1lbnRSZWY7XG5cbiAgICBzbGlkZU1lbnU6IFNsaWRlTWVudTtcblxuICAgIHRyYW5zaXRpb25FbmRMaXN0ZW5lcjogYW55O1xuXG4gICAgY29uc3RydWN0b3IoQEluamVjdChmb3J3YXJkUmVmKCgpID0+IFNsaWRlTWVudSkpIHNsaWRlTWVudSkge1xuICAgICAgICB0aGlzLnNsaWRlTWVudSA9IHNsaWRlTWVudSBhcyBTbGlkZU1lbnU7XG4gICAgfVxuICAgIGFjdGl2ZUl0ZW06IGFueTtcblxuICAgIGl0ZW1DbGljayhldmVudCwgaXRlbTogTWVudUl0ZW0sIGxpc3RpdGVtOiBhbnkpwqB7XG4gICAgICAgIGlmIChpdGVtLmRpc2FibGVkKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFpdGVtLnVybCkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpdGVtLmNvbW1hbmQpIHtcbiAgICAgICAgICAgIGl0ZW0uY29tbWFuZCh7XG4gICAgICAgICAgICAgICAgb3JpZ2luYWxFdmVudDogZXZlbnQsXG4gICAgICAgICAgICAgICAgaXRlbTogaXRlbVxuICAgICAgICAg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Z2V0OiB0aGlzLmVsLm5hdGl2ZUVsZW1lbnRcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5wcmV2ZW50RG9jdW1lbnREZWZhdWx0ID0gdHJ1ZTtcbiAgICB9XG5cbiAgICBvbk92ZXJsYXlBbmltYXRpb25TdGFydChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoKGV2ZW50LnRvU3RhdGUpIHtcbiAgICAgICAgICAgIGNhc2UgJ3Zpc2libGUnOlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnBvcHVwKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlVmlld1BvcnQoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tb3ZlT25Ub3AoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vblNob3cuZW1pdCh7fSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYXBwZW5kT3ZlcmxheSgpO1xuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmFic29sdXRlUG9zaXRpb24odGhpcy5jb250YWluZXJWaWV3Q2hpbGQubmF0aXZlRWxlbWVudCwgdGhpcy50YXJnZXQpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRSZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uT3ZlcmxheUhpZGUoKTtcbiAgICAgICAgICAgICAgICB0aGlzLm9uSGlkZS5lbWl0KHt9KTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25PdmVybGF5QW5pbWF0aW9uRW5kKGV2ZW50OiBBbmltYXRpb25FdmVudCkge1xuICAgICAgICBzd2l0Y2goZXZlbnQudG9TdGF0ZSkge1xuICAgICAgICAgICAgY2FzZSAndm9pZCc6XG4gICAgICAgICAgICAgICAgWkluZGV4VXRpbHMuY2xlYXIoZXZlbnQuZWxlbWVudCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFwcGVuZE92ZXJsYXkoKSB7XG4gICAgICAgIGlmICh0aGlzLmFwcGVuZFRvKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5hcHBlbmRUbyA9PT0gJ2JvZHknKVxuICAgICAgICAgICAgICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQodGhpcy5jb250YWluZXJWaWV3Q2hpbGQubmF0aXZlRWxlbWVudCk7XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgRG9tSGFuZGxlci5hcHBlbmRDaGlsZCh0aGlzLmNvbnRhaW5lclZpZXdDaGlsZC5uYXRpdmVFbGVtZW50LCB0aGlzLmFwcGVuZFRvKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlc3RvcmVPdmVybGF5QXBwZW5kKCkge1xuICAgICAgICBpZiAodGhpcy5jb250YWluZXIgJiYgdGhpcy5hcHBlbmRUbykge1xuICAgICAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyVmlld0NoaWxkLm5hdGl2ZUVsZW1lbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgbW92ZU9uVG9wKCkge1xuICAgICAgICBpZiAodGhpcy5hdXRvWkluZGV4KSB7XG4gICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ21lbnUnLCB0aGlzLmNvbnRhaW5lclZpZXdDaGlsZC5uYXRpdmVFbGVtZW50LCB0aGlzL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oaXMudGFyZ2V0ID0gbnVsbDtcbiAgICAgICAgdGhpcy5sZWZ0ID0gMDtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgaWYgKHRoaXMucG9wdXApIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnNjcm9sbEhhbmRsZXIpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNjcm9sbEhhbmRsZXIuZGVzdHJveSgpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlciA9IG51bGw7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMucmVzdG9yZU92ZXJsYXlBcHBlbmQoKTtcbiAgICAgICAgICAgIHRoaXMub25PdmVybGF5SGlkZSgpO1xuICAgICAgICB9XG4gICAgfVxuXG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSxSb3V0ZXJNb2R1bGUsVG9vbHRpcE1vZHVsZV0sXG4gICAgZXhwb3J0czogW1NsaWRlTWVudSxSb3V0ZXJNb2R1bGUsVG9vbHRpcE1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbU2xpZGVNZW51LFNsaWRlTWVudVN1Yl1cbn0pXG5leHBvcnQgY2xhc3MgU2xpZGVNZW51TW9kdWxlIHsgfVxuIl19
Note: See TracBrowser for help on using the repository browser.