1 line
6.5 KiB
Plaintext
1 line
6.5 KiB
Plaintext
{"version":3,"file":"primeng-message.mjs","sources":["../../src/app/components/message/message.ts","../../src/app/components/message/primeng-message.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, NgModule, ViewEncapsulation, booleanAttribute } from '@angular/core';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { ExclamationTriangleIcon } from 'primeng/icons/exclamationtriangle';\nimport { InfoCircleIcon } from 'primeng/icons/infocircle';\nimport { TimesCircleIcon } from 'primeng/icons/timescircle';\n/**\n * Message groups a collection of contents in tabs.\n * @group Components\n */\n@Component({\n selector: 'p-message',\n template: `\n <div aria-live=\"polite\" class=\"p-inline-message p-component p-inline-message\" [ngStyle]=\"style\" [class]=\"styleClass\" [ngClass]=\"containerClass\">\n <CheckIcon *ngIf=\"icon === 'success'\" [styleClass]=\"'p-inline-message-icon'\" />\n <InfoCircleIcon *ngIf=\"icon === 'info'\" [styleClass]=\"'p-inline-message-icon'\" />\n <TimesCircleIcon *ngIf=\"icon === 'error'\" [styleClass]=\"'p-inline-message-icon'\" />\n <ExclamationTriangleIcon *ngIf=\"icon === 'warn'\" [styleClass]=\"'p-inline-message-icon'\" />\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 * Severity level of the message.\n * @group Props\n */\n @Input() severity: 'success' | 'info' | 'warning' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;\n /**\n * Text content.\n * @group Props\n */\n @Input() text: string | undefined;\n /**\n * Whether displaying messages would be escaped or not.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) escape: boolean = true;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n\n get icon() {\n if (this.severity) {\n return this.severity === 'success' ? 'success' : this.severity === 'info' ? 'info' : this.severity === 'warning' ? 'warn' : this.severity === 'danger' ? 'error' : 'info';\n } else {\n return 'info';\n }\n }\n\n get containerClass() {\n return {\n [`p-inline-message-${this.severity}`]: this.severity,\n 'p-inline-message-icon-only': this.text == null\n };\n }\n}\n\n@NgModule({\n imports: [CommonModule, CheckIcon, InfoCircleIcon, TimesCircleIcon, ExclamationTriangleIcon],\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":";;;;;;;;;AAMA;;;AAGG;MAwBU,SAAS,CAAA;AAClB;;;AAGG;AACM,IAAA,QAAQ,CAA+G;AAChI;;;AAGG;AACM,IAAA,IAAI,CAAqB;AAClC;;;AAGG;IACqC,MAAM,GAAY,IAAI,CAAC;AAC/D;;;AAGG;AACM,IAAA,KAAK,CAA8C;AAC5D;;;AAGG;AACM,IAAA,UAAU,CAAqB;AAExC,IAAA,IAAI,IAAI,GAAA;QACJ,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,KAAK,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,QAAQ,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAC7K,SAAA;AAAM,aAAA;AACH,YAAA,OAAO,MAAM,CAAC;AACjB,SAAA;KACJ;AAED,IAAA,IAAI,cAAc,GAAA;QACd,OAAO;YACH,CAAC,CAAA,iBAAA,EAAoB,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