1 | {"ast":null,"code":"import * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';\n\nfunction Card_div_1_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Card_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 8);\n i0.ɵɵprojection(1, 1);\n i0.ɵɵtemplate(2, Card_div_1_ng_container_2_Template, 1, 0, \"ng-container\", 6);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.headerTemplate);\n }\n}\n\nfunction Card_div_3_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Card_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 9);\n i0.ɵɵtext(1);\n i0.ɵɵtemplate(2, Card_div_3_ng_container_2_Template, 1, 0, \"ng-container\", 6);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.header, \" \");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.titleTemplate);\n }\n}\n\nfunction Card_div_4_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Card_div_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 10);\n i0.ɵɵtext(1);\n i0.ɵɵtemplate(2, Card_div_4_ng_container_2_Template, 1, 0, \"ng-container\", 6);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r2.subheader, \" \");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.subtitleTemplate);\n }\n}\n\nfunction Card_ng_container_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Card_div_8_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\n\nfunction Card_div_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 11);\n i0.ɵɵprojection(1, 2);\n i0.ɵɵtemplate(2, Card_div_8_ng_container_2_Template, 1, 0, \"ng-container\", 6);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext();\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r4.footerTemplate);\n }\n}\n\nconst _c0 = [\"*\", [[\"p-header\"]], [[\"p-footer\"]]];\nconst _c1 = [\"*\", \"p-header\", \"p-footer\"];\n\nclass Card {\n constructor(el) {\n this.el = el;\n }\n\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n\n case 'title':\n this.titleTemplate = item.template;\n break;\n\n case 'subtitle':\n this.subtitleTemplate = item.template;\n break;\n\n case 'content':\n this.contentTemplate = item.template;\n break;\n\n case 'footer':\n this.footerTemplate = item.template;\n break;\n\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n\n}\n\nCard.ɵfac = function Card_Factory(t) {\n return new (t || Card)(i0.ɵɵdirectiveInject(i0.ElementRef));\n};\n\nCard.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Card,\n selectors: [[\"p-card\"]],\n contentQueries: function Card_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, Header, 5);\n i0.ɵɵcontentQuery(dirIndex, Footer, 5);\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n\n if (rf & 2) {\n let _t;\n\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerFacet = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n header: \"header\",\n subheader: \"subheader\",\n style: \"style\",\n styleClass: \"styleClass\"\n },\n ngContentSelectors: _c1,\n decls: 9,\n vars: 9,\n consts: [[3, \"ngClass\", \"ngStyle\"], [\"class\", \"p-card-header\", 4, \"ngIf\"], [1, \"p-card-body\"], [\"class\", \"p-card-title\", 4, \"ngIf\"], [\"class\", \"p-card-subtitle\", 4, \"ngIf\"], [1, \"p-card-content\"], [4, \"ngTemplateOutlet\"], [\"class\", \"p-card-footer\", 4, \"ngIf\"], [1, \"p-card-header\"], [1, \"p-card-title\"], [1, \"p-card-subtitle\"], [1, \"p-card-footer\"]],\n template: function Card_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c0);\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵtemplate(1, Card_div_1_Template, 3, 1, \"div\", 1);\n i0.ɵɵelementStart(2, \"div\", 2);\n i0.ɵɵtemplate(3, Card_div_3_Template, 3, 2, \"div\", 3);\n i0.ɵɵtemplate(4, Card_div_4_Template, 3, 2, \"div\", 4);\n i0.ɵɵelementStart(5, \"div\", 5);\n i0.ɵɵprojection(6);\n i0.ɵɵtemplate(7, Card_ng_container_7_Template, 1, 0, \"ng-container\", 6);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(8, Card_div_8_Template, 3, 1, \"div\", 7);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", \"p-card p-component\")(\"ngStyle\", ctx.style);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.headerFacet || ctx.headerTemplate);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.header || ctx.titleTemplate);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.subheader || ctx.subtitleTemplate);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.contentTemplate);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.footerFacet || ctx.footerTemplate);\n }\n },\n directives: [i1.NgClass, i1.NgStyle, i1.NgIf, i1.NgTemplateOutlet],\n styles: [\".p-card-header img{width:100%}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(Card, [{\n type: Component,\n args: [{\n selector: 'p-card',\n template: `\n <div [ngClass]=\"'p-card p-component'\" [ngStyle]=\"style\" [class]=\"styleClass\">\n <div class=\"p-card-header\" *ngIf=\"headerFacet || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"p-card-body\">\n <div class=\"p-card-title\" *ngIf=\"header || titleTemplate\">\n {{header}}\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\n {{subheader}}\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div class=\"p-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'p-element'\n },\n styles: [\".p-card-header img{width:100%}\\n\"]\n }]\n }], function () {\n return [{\n type: i0.ElementRef\n }];\n }, {\n header: [{\n type: Input\n }],\n subheader: [{\n type: Input\n }],\n style: [{\n type: Input\n }],\n styleClass: [{\n type: Input\n }],\n headerFacet: [{\n type: ContentChild,\n args: [Header]\n }],\n footerFacet: [{\n type: ContentChild,\n args: [Footer]\n }],\n templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }]\n });\n})();\n\nclass CardModule {}\n\nCardModule.ɵfac = function CardModule_Factory(t) {\n return new (t || CardModule)();\n};\n\nCardModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: CardModule\n});\nCardModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule], SharedModule]\n});\n\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(CardModule, [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n exports: [Card, SharedModule],\n declarations: [Card]\n }]\n }], null, null);\n})();\n/**\n * Generated bundle index. Do not edit.\n */\n\n\nexport { Card, CardModule };","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/node_modules/primeng/fesm2015/primeng-card.mjs"],"names":["i0","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","ContentChild","ContentChildren","NgModule","i1","CommonModule","Header","Footer","PrimeTemplate","SharedModule","Card","constructor","el","ngAfterContentInit","templates","forEach","item","getType","headerTemplate","template","titleTemplate","subtitleTemplate","contentTemplate","footerTemplate","getBlockableElement","nativeElement","children","ɵfac","ElementRef","ɵcmp","NgClass","NgStyle","NgIf","NgTemplateOutlet","type","args","selector","changeDetection","OnPush","encapsulation","None","host","styles","header","subheader","style","styleClass","headerFacet","footerFacet","CardModule","ɵmod","ɵinj","imports","exports","declarations"],"mappings":"AAAA,OAAO,KAAKA,EAAZ,MAAoB,eAApB;AACA,SAASC,SAAT,EAAoBC,uBAApB,EAA6CC,iBAA7C,EAAgEC,KAAhE,EAAuEC,YAAvE,EAAqFC,eAArF,EAAsGC,QAAtG,QAAsH,eAAtH;AACA,OAAO,KAAKC,EAAZ,MAAoB,iBAApB;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,MAAT,EAAiBC,MAAjB,EAAyBC,aAAzB,EAAwCC,YAAxC,QAA4D,aAA5D;;;;AAkCuFb,IAAAA,EAKvE,sB;;;;;;AALuEA,IAAAA,EAG3E,4B;AAH2EA,IAAAA,EAIvE,mB;AAJuEA,IAAAA,EAKvE,2E;AALuEA,IAAAA,EAM3E,e;;;;mBAN2EA,E;AAAAA,IAAAA,EAKxD,a;AALwDA,IAAAA,EAKxD,sD;;;;;;AALwDA,IAAAA,EAUnE,sB;;;;;;AAVmEA,IAAAA,EAQvE,4B;AARuEA,IAAAA,EASnE,U;AATmEA,IAAAA,EAUnE,2E;AAVmEA,IAAAA,EAWvE,e;;;;mBAXuEA,E;AAAAA,IAAAA,EASnE,a;AATmEA,IAAAA,EASnE,4C;AATmEA,IAAAA,EAUpD,a;AAVoDA,IAAAA,EAUpD,qD;;;;;;AAVoDA,IAAAA,EAcnE,sB;;;;;;AAdmEA,IAAAA,EAYvE,6B;AAZuEA,IAAAA,EAanE,U;AAbmEA,IAAAA,EAcnE,2E;AAdmEA,IAAAA,EAevE,e;;;;mBAfuEA,E;AAAAA,IAAAA,EAanE,a;AAbmEA,IAAAA,EAanE,+C;AAbmEA,IAAAA,EAcpD,a;AAdoDA,IAAAA,EAcpD,wD;;;;;;AAdoDA,IAAAA,EAkBnE,sB;;;;;;AAlBmEA,IAA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AAFQ,KAAD,CAXkE;AAc/EO,IAAAA,SAAS,EAAE,CAAC;AACZoB,MAAAA,IAAI,EAAEhC,eADM;AAEZiC,MAAAA,IAAI,EAAE,CAAC3B,aAAD;AAFM,KAAD;AAdoE,GA9B/F;AAAA;;AAgDA,MAAMyC,UAAN,CAAiB;;AAEjBA,UAAU,CAACtB,IAAX;AAAA,mBAAuGsB,UAAvG;AAAA;;AACAA,UAAU,CAACC,IAAX,kBA9EuFtD,EA8EvF;AAAA,QAAwGqD;AAAxG;AACAA,UAAU,CAACE,IAAX,kBA/EuFvD,EA+EvF;AAAA,YAA8H,CAACS,YAAD,CAA9H,EAA8II,YAA9I;AAAA;;AACA;AAAA,qDAhFuFb,EAgFvF,mBAA2FqD,UAA3F,EAAmH,CAAC;AACxGf,IAAAA,IAAI,EAAE/B,QADkG;AAExGgC,IAAAA,IAAI,EAAE,CAAC;AACCiB,MAAAA,OAAO,EAAE,CAAC/C,YAAD,CADV;AAECgD,MAAAA,OAAO,EAAE,CAAC3C,IAAD,EAAOD,YAAP,CAFV;AAGC6C,MAAAA,YAAY,EAAE,CAAC5C,IAAD;AAHf,KAAD;AAFkG,GAAD,CAAnH;AAAA;AASA;AACA;AACA;;;AAEA,SAASA,IAAT,EAAeuC,UAAf","sourcesContent":["import * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';\n\nclass Card {\n constructor(el) {\n this.el = el;\n }\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'title':\n this.titleTemplate = item.template;\n break;\n case 'subtitle':\n this.subtitleTemplate = item.template;\n break;\n case 'content':\n this.contentTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n}\nCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Card, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\nCard.ɵ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: `\n <div [ngClass]=\"'p-card p-component'\" [ngStyle]=\"style\" [class]=\"styleClass\">\n <div class=\"p-card-header\" *ngIf=\"headerFacet || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"p-card-body\">\n <div class=\"p-card-title\" *ngIf=\"header || titleTemplate\">\n {{header}}\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\n {{subheader}}\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div class=\"p-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n `, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: Card, decorators: [{\n type: Component,\n args: [{ selector: 'p-card', template: `\n <div [ngClass]=\"'p-card p-component'\" [ngStyle]=\"style\" [class]=\"styleClass\">\n <div class=\"p-card-header\" *ngIf=\"headerFacet || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"p-card-body\">\n <div class=\"p-card-title\" *ngIf=\"header || titleTemplate\">\n {{header}}\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\n {{subheader}}\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\n </div>\n <div class=\"p-card-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div class=\"p-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {\n 'class': 'p-element'\n }, styles: [\".p-card-header img{width:100%}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { header: [{\n type: Input\n }], subheader: [{\n type: Input\n }], style: [{\n type: Input\n }], styleClass: [{\n type: Input\n }], headerFacet: [{\n type: ContentChild,\n args: [Header]\n }], footerFacet: [{\n type: ContentChild,\n args: [Footer]\n }], templates: [{\n type: ContentChildren,\n args: [PrimeTemplate]\n }] } });\nclass CardModule {\n}\nCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: CardModule, declarations: [Card], imports: [CommonModule], exports: [Card, SharedModule] });\nCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: CardModule, imports: [[CommonModule], SharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: CardModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n exports: [Card, SharedModule],\n declarations: [Card]\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Card, CardModule };\n"]},"metadata":{},"sourceType":"module"} |
---|