source: trip-planner-front/node_modules/primeng/esm2020/card/card.mjs@ bdd6491

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

adding photos

  • Property mode set to 100644
File size: 14.1 KB
Line 
1import { NgModule, Component, Input, ContentChild, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { SharedModule, Header, Footer, PrimeTemplate } from 'primeng/api';
4import * as i0 from "@angular/core";
5import * as i1 from "@angular/common";
6export class Card {
7 constructor(el) {
8 this.el = el;
9 }
10 ngAfterContentInit() {
11 this.templates.forEach((item) => {
12 switch (item.getType()) {
13 case 'header':
14 this.headerTemplate = item.template;
15 break;
16 case 'title':
17 this.titleTemplate = item.template;
18 break;
19 case 'subtitle':
20 this.subtitleTemplate = item.template;
21 break;
22 case 'content':
23 this.contentTemplate = item.template;
24 break;
25 case 'footer':
26 this.footerTemplate = item.template;
27 break;
28 default:
29 this.contentTemplate = item.template;
30 break;
31 }
32 });
33 }
34 getBlockableElement() {
35 return this.el.nativeElement.children[0];
36 }
37}
38Card.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Card, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
39Card.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Card, selector: "p-card", inputs: { header: "header", subheader: "subheader", style: "style", styleClass: "styleClass" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
40 <div [ngClass]="'p-card p-component'" [ngStyle]="style" [class]="styleClass">
41 <div class="p-card-header" *ngIf="headerFacet || headerTemplate">
42 <ng-content select="p-header"></ng-content>
43 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
44 </div>
45 <div class="p-card-body">
46 <div class="p-card-title" *ngIf="header || titleTemplate">
47 {{header}}
48 <ng-container *ngTemplateOutlet="titleTemplate"></ng-container>
49 </div>
50 <div class="p-card-subtitle" *ngIf="subheader || subtitleTemplate">
51 {{subheader}}
52 <ng-container *ngTemplateOutlet="subtitleTemplate"></ng-container>
53 </div>
54 <div class="p-card-content">
55 <ng-content></ng-content>
56 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
57 </div>
58 <div class="p-card-footer" *ngIf="footerFacet || footerTemplate">
59 <ng-content select="p-footer"></ng-content>
60 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
61 </div>
62 </div>
63 </div>
64 `, isInline: true, styles: [".p-card-header img{width:100%}\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 });
65i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Card, decorators: [{
66 type: Component,
67 args: [{ selector: 'p-card', template: `
68 <div [ngClass]="'p-card p-component'" [ngStyle]="style" [class]="styleClass">
69 <div class="p-card-header" *ngIf="headerFacet || headerTemplate">
70 <ng-content select="p-header"></ng-content>
71 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
72 </div>
73 <div class="p-card-body">
74 <div class="p-card-title" *ngIf="header || titleTemplate">
75 {{header}}
76 <ng-container *ngTemplateOutlet="titleTemplate"></ng-container>
77 </div>
78 <div class="p-card-subtitle" *ngIf="subheader || subtitleTemplate">
79 {{subheader}}
80 <ng-container *ngTemplateOutlet="subtitleTemplate"></ng-container>
81 </div>
82 <div class="p-card-content">
83 <ng-content></ng-content>
84 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
85 </div>
86 <div class="p-card-footer" *ngIf="footerFacet || footerTemplate">
87 <ng-content select="p-footer"></ng-content>
88 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
89 </div>
90 </div>
91 </div>
92 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
93 'class': 'p-element'
94 }, styles: [".p-card-header img{width:100%}\n"] }]
95 }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { header: [{
96 type: Input
97 }], subheader: [{
98 type: Input
99 }], style: [{
100 type: Input
101 }], styleClass: [{
102 type: Input
103 }], headerFacet: [{
104 type: ContentChild,
105 args: [Header]
106 }], footerFacet: [{
107 type: ContentChild,
108 args: [Footer]
109 }], templates: [{
110 type: ContentChildren,
111 args: [PrimeTemplate]
112 }] } });
113export class CardModule {
114}
115CardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
116CardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CardModule, declarations: [Card], imports: [CommonModule], exports: [Card, SharedModule] });
117CardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CardModule, imports: [[CommonModule], SharedModule] });
118i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CardModule, decorators: [{
119 type: NgModule,
120 args: [{
121 imports: [CommonModule],
122 exports: [Card, SharedModule],
123 declarations: [Card]
124 }]
125 }] });
126//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9j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icC1oZWFkZXJcIj48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRlclRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJwLWNhcmQtYm9keVwiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJwLWNhcmQtdGl0bGVcIiAqbmdJZj1cImhlYWRlciB8fCB0aXRsZVRlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgIHt7aGVhZGVyfX1cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInRpdGxlVGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1jYXJkLXN1YnRpdGxlXCIgKm5nSWY9XCJzdWJoZWFkZXIgfHwgc3VidGl0bGVUZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICB7e3N1YmhlYWRlcn19XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJzdWJ0aXRsZVRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInAtY2FyZC1jb250ZW50XCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImNvbnRlbnRUZW1wbGF0ZVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgI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zZSAnZm9vdGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mb290ZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbnRlbnRUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGdldEJsb2NrYWJsZUVsZW1lbnQoKTogSFRNTEVsZW1lbnQgwqB7XG4gICAgICAgIHJldHVybiB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuY2hpbGRyZW5bMF07XG4gICAgfVxuXG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gICAgZXhwb3J0czogW0NhcmQsIFNoYXJlZE1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbQ2FyZF1cbn0pXG5leHBvcnQgY2xhc3MgQ2FyZE1vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.