source: trip-planner-front/node_modules/primeng/fesm2015/primeng-message.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: 5.6 KB
Line 
1import * as i0 from '@angular/core';
2import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, NgModule } from '@angular/core';
3import * as i1 from '@angular/common';
4import { CommonModule } from '@angular/common';
5
6class UIMessage {
7 constructor() {
8 this.escape = true;
9 }
10 get icon() {
11 let icon = null;
12 if (this.severity) {
13 switch (this.severity) {
14 case 'success':
15 icon = 'pi pi-check';
16 break;
17 case 'info':
18 icon = 'pi pi-info-circle';
19 break;
20 case 'error':
21 icon = 'pi pi-times-circle';
22 break;
23 case 'warn':
24 icon = 'pi pi-exclamation-triangle';
25 break;
26 default:
27 icon = 'pi pi-info-circle';
28 break;
29 }
30 }
31 return icon;
32 }
33}
34UIMessage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: UIMessage, deps: [], target: i0.ɵɵFactoryTarget.Component });
35UIMessage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: UIMessage, selector: "p-message", inputs: { severity: "severity", text: "text", escape: "escape", style: "style", styleClass: "styleClass" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
36 <div aria-live="polite" class="p-inline-message p-component p-inline-message" *ngIf="severity" [ngStyle]="style" [class]="styleClass"
37 [ngClass]="{'p-inline-message-info': (severity === 'info'),
38 'p-inline-message-warn': (severity === 'warn'),
39 'p-inline-message-error': (severity === 'error'),
40 'p-inline-message-success': (severity === 'success'),
41 'p-inline-message-icon-only': this.text == null}">
42 <span class="p-inline-message-icon" [ngClass]="icon"></span>
43 <div *ngIf="!escape; else escapeOut">
44 <span *ngIf="!escape" class="p-inline-message-text" [innerHTML]="text"></span>
45 </div>
46 <ng-template #escapeOut>
47 <span *ngIf="escape" class="p-inline-message-text">{{text}}</span>
48 </ng-template>
49 </div>
50 `, isInline: true, styles: [".p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
51i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: UIMessage, decorators: [{
52 type: Component,
53 args: [{ selector: 'p-message', template: `
54 <div aria-live="polite" class="p-inline-message p-component p-inline-message" *ngIf="severity" [ngStyle]="style" [class]="styleClass"
55 [ngClass]="{'p-inline-message-info': (severity === 'info'),
56 'p-inline-message-warn': (severity === 'warn'),
57 'p-inline-message-error': (severity === 'error'),
58 'p-inline-message-success': (severity === 'success'),
59 'p-inline-message-icon-only': this.text == null}">
60 <span class="p-inline-message-icon" [ngClass]="icon"></span>
61 <div *ngIf="!escape; else escapeOut">
62 <span *ngIf="!escape" class="p-inline-message-text" [innerHTML]="text"></span>
63 </div>
64 <ng-template #escapeOut>
65 <span *ngIf="escape" class="p-inline-message-text">{{text}}</span>
66 </ng-template>
67 </div>
68 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
69 'class': 'p-element'
70 }, styles: [".p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}\n"] }]
71 }], propDecorators: { severity: [{
72 type: Input
73 }], text: [{
74 type: Input
75 }], escape: [{
76 type: Input
77 }], style: [{
78 type: Input
79 }], styleClass: [{
80 type: Input
81 }] } });
82class MessageModule {
83}
84MessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
85MessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MessageModule, declarations: [UIMessage], imports: [CommonModule], exports: [UIMessage] });
86MessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MessageModule, imports: [[CommonModule]] });
87i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MessageModule, decorators: [{
88 type: NgModule,
89 args: [{
90 imports: [CommonModule],
91 exports: [UIMessage],
92 declarations: [UIMessage]
93 }]
94 }] });
95
96/**
97 * Generated bundle index. Do not edit.
98 */
99
100export { MessageModule, UIMessage };
Note: See TracBrowser for help on using the repository browser.