Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-message.mjs.map

1 line
6.5 KiB
Plaintext
Raw Normal View History

2024-07-16 15:23:22 +00:00
{"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,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ;AACpD,YAAA,4BAA4B,EAAE,IAAI,CAAC,IAAI,IAAI,I