source: trip-planner-front/node_modules/primeng/fesm2020/primeng-message.mjs.map@ 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: 3.6 KB
Line 
1{"version":3,"file":"primeng-message.mjs","sources":["../../src/app/components/message/message.ts","../../src/app/components/message/primeng-message.ts"],"sourcesContent":["import {NgModule,Component,Input,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\n@Component({\n selector: 'p-message',\n template: `\n <div aria-live=\"polite\" class=\"p-inline-message p-component p-inline-message\" *ngIf=\"severity\" [ngStyle]=\"style\" [class]=\"styleClass\"\n [ngClass]=\"{'p-inline-message-info': (severity === 'info'),\n 'p-inline-message-warn': (severity === 'warn'),\n 'p-inline-message-error': (severity === 'error'),\n 'p-inline-message-success': (severity === 'success'),\n 'p-inline-message-icon-only': this.text == null}\">\n <span class=\"p-inline-message-icon\" [ngClass]=\"icon\"></span>\n <div *ngIf=\"!escape; else escapeOut\">\n <span *ngIf=\"!escape\" class=\"p-inline-message-text\" [innerHTML]=\"text\"></span>\n </div>\n <ng-template #escapeOut>\n <span *ngIf=\"escape\" class=\"p-inline-message-text\">{{text}}</span>\n </ng-template>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./message.css'],\n host: {\n 'class': 'p-element'\n }\n})\nexport class UIMessage {\n\n @Input() severity: string;\n\n @Input() text: string;\n\n @Input() escape: boolean = true;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n get icon(): string {\n let icon: string = null;\n\n if (this.severity) {\n switch(this.severity) {\n case 'success':\n icon = 'pi pi-check';\n break;\n\n case 'info':\n icon = 'pi pi-info-circle';\n break;\n\n case 'error':\n icon = 'pi pi-times-circle';\n break;\n\n case 'warn':\n icon = 'pi pi-exclamation-triangle';\n break;\n\n default:\n icon = 'pi pi-info-circle';\n break;\n }\n }\n\n return icon;\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [UIMessage],\n declarations: [UIMessage]\n})\nexport class MessageModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MA4Ba,SAAS;IAzBtB;QA+Ba,WAAM,GAAY,IAAI,CAAC;KAmCnC;IA7BG,IAAI,IAAI;QACJ,IAAI,IAAI,GAAW,IAAI,CAAC;QAExB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,QAAO,IAAI,CAAC,QAAQ;gBAChB,KAAK,SAAS;oBACV,IAAI,GAAG,aAAa,CAAC;oBACzB,MAAM;gBAEN,KAAK,MAAM;oBACP,IAAI,GAAG,mBAAmB,CAAC;oBAC/B,MAAM;gBAEN,KAAK,OAAO;oBACR,IAAI,GAAG,oBAAoB,CAAC;oBAChC,MAAM;gBAEN,KAAK,MAAM;oBACP,IAAI,GAAG,4BAA4B,CAAC;oBACxC,MAAM;gBAEN;oBACI,IAAI,GAAG,mBAAmB,CAAC;oBAC/B,MAAM;aACT;SACJ;QAED,OAAO,IAAI,CAAC;KACf;;sGAxCQ,SAAS;0FAAT,SAAS,oMAvBR;;;;;;;;;;;;;;;KAeT;2FAQQ,SAAS;kBAzBrB,SAAS;+BACI,WAAW,YACX;;;;;;;;;;;;;;;KAeT,mBACgB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,QAE/B;wBACF,OAAO,EAAE,WAAW;qBACvB;8BAIQ,QAAQ;sBAAhB,KAAK;gBAEG,IAAI;sBAAZ,KAAK;gBAEG,MAAM;sBAAd,KAAK;gBAEG,KAAK;sBAAb,KAAK;gBAEG,UAAU;sBAAlB,KAAK;;MAsCG,aAAa;;0GAAb,aAAa;2GAAb,aAAa,iBAhDb,SAAS,aA4CR,YAAY,aA5Cb,SAAS;2GAgDT,aAAa,YAJb,CAAC,YAAY,CAAC;2FAId,aAAa;kBALzB,QAAQ;mBAAC;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,YAAY,EAAE,CAAC,SAAS,CAAC;iBAC5B;;;AC3ED;;;;;;"}
Note: See TracBrowser for help on using the repository browser.