source: trip-planner-front/node_modules/primeng/fesm2015/primeng-toolbar.mjs@ 8d391a1

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

adding photos

  • Property mode set to 100644
File size: 4.7 KB
Line 
1import * as i0 from '@angular/core';
2import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, NgModule } from '@angular/core';
3import * as i1 from '@angular/common';
4import { CommonModule } from '@angular/common';
5import { PrimeTemplate } from 'primeng/api';
6
7class Toolbar {
8 constructor(el) {
9 this.el = el;
10 }
11 getBlockableElement() {
12 return this.el.nativeElement.children[0];
13 }
14 ngAfterContentInit() {
15 this.templates.forEach((item) => {
16 switch (item.getType()) {
17 case 'left':
18 this.leftTemplate = item.template;
19 break;
20 case 'right':
21 this.rightTemplate = item.template;
22 break;
23 }
24 });
25 }
26}
27Toolbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Toolbar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
28Toolbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Toolbar, selector: "p-toolbar", inputs: { style: "style", styleClass: "styleClass" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
29 <div [ngClass]="'p-toolbar p-component'" [ngStyle]="style" [class]="styleClass" role="toolbar">
30 <ng-content></ng-content>
31 <div class="p-toolbar-group-left" *ngIf="leftTemplate">
32 <ng-container *ngTemplateOutlet="leftTemplate"></ng-container>
33 </div>
34 <div class="p-toolbar-group-right" *ngIf="rightTemplate">
35 <ng-container *ngTemplateOutlet="rightTemplate"></ng-container>
36 </div>
37 </div>
38 `, isInline: true, styles: [".p-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.p-toolbar-group-left,.p-toolbar-group-right{display:flex;align-items:center}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
39i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Toolbar, decorators: [{
40 type: Component,
41 args: [{ selector: 'p-toolbar', template: `
42 <div [ngClass]="'p-toolbar p-component'" [ngStyle]="style" [class]="styleClass" role="toolbar">
43 <ng-content></ng-content>
44 <div class="p-toolbar-group-left" *ngIf="leftTemplate">
45 <ng-container *ngTemplateOutlet="leftTemplate"></ng-container>
46 </div>
47 <div class="p-toolbar-group-right" *ngIf="rightTemplate">
48 <ng-container *ngTemplateOutlet="rightTemplate"></ng-container>
49 </div>
50 </div>
51 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
52 'class': 'p-element'
53 }, styles: [".p-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.p-toolbar-group-left,.p-toolbar-group-right{display:flex;align-items:center}\n"] }]
54 }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { style: [{
55 type: Input
56 }], styleClass: [{
57 type: Input
58 }], templates: [{
59 type: ContentChildren,
60 args: [PrimeTemplate]
61 }] } });
62class ToolbarModule {
63}
64ToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
65ToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ToolbarModule, declarations: [Toolbar], imports: [CommonModule], exports: [Toolbar] });
66ToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ToolbarModule, imports: [[CommonModule]] });
67i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ToolbarModule, decorators: [{
68 type: NgModule,
69 args: [{
70 imports: [CommonModule],
71 exports: [Toolbar],
72 declarations: [Toolbar]
73 }]
74 }] });
75
76/**
77 * Generated bundle index. Do not edit.
78 */
79
80export { Toolbar, ToolbarModule };
Note: See TracBrowser for help on using the repository browser.