{"version":3,"file":"primeng-tag.mjs","sources":["../../src/app/components/tag/tag.ts","../../src/app/components/tag/primeng-tag.ts"],"sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n    selector: 'p-tag',\n    template: `\n        <span [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n            <ng-content></ng-content>\n            <span class=\"p-tag-icon\" [ngClass]=\"icon\" *ngIf=\"icon\"></span>\n            <span class=\"p-tag-value\">{{value}}</span>\n        </span>\n    `,\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    encapsulation: ViewEncapsulation.None,\n    styleUrls: ['./tag.css'],\n    host: {\n        'class': 'p-element'\n    }\n})\nexport class Tag {\n\n    @Input() styleClass: string;\n\n    @Input() style: any;\n\n    @Input() severity: string;\n\n    @Input() value: string;\n\n    @Input() icon: string;\n\n    @Input() rounded: boolean;\n\n\n    containerClass() {\n        return {\n            'p-tag p-component': true,\n            'p-tag-info': this.severity === 'info',\n            'p-tag-success': this.severity === 'success',\n            'p-tag-warning': this.severity === 'warning',\n            'p-tag-danger': this.severity === 'danger',\n            'p-tag-rounded': this.rounded\n        };\n    }\n}\n\n@NgModule({\n    imports: [CommonModule],\n    exports: [Tag],\n    declarations: [Tag]\n})\nexport class TagModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAmBa,GAAG;IAeZ,cAAc;QACV,OAAO;YACH,mBAAmB,EAAE,IAAI;YACzB,YAAY,EAAE,IAAI,CAAC,QAAQ,KAAK,MAAM;YACtC,eAAe,EAAE,IAAI,CAAC,QAAQ,KAAK,SAAS;YAC5C,eAAe,EAAE,IAAI,CAAC,QAAQ,KAAK,SAAS;YAC5C,cAAc,EAAE,IAAI,CAAC,QAAQ,KAAK,QAAQ;YAC1C,eAAe,EAAE,IAAI,CAAC,OAAO;SAChC,CAAC;KACL;;gGAxBQ,GAAG;oFAAH,GAAG,kNAdF;;;;;;KAMT;2FAQQ,GAAG;kBAhBf,SAAS;+BACI,OAAO,YACP;;;;;;KAMT,mBACgB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,QAE/B;wBACF,OAAO,EAAE,WAAW;qBACvB;8BAIQ,UAAU;sBAAlB,KAAK;gBAEG,KAAK;sBAAb,KAAK;gBAEG,QAAQ;sBAAhB,KAAK;gBAEG,KAAK;sBAAb,KAAK;gBAEG,IAAI;sBAAZ,KAAK;gBAEG,OAAO;sBAAf,KAAK;;MAoBG,SAAS;;sGAAT,SAAS;uGAAT,SAAS,iBAhCT,GAAG,aA4BF,YAAY,aA5Bb,GAAG;uGAgCH,SAAS,YAJT,CAAC,YAAY,CAAC;2FAId,SAAS;kBALrB,QAAQ;mBAAC;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,YAAY,EAAE,CAAC,GAAG,CAAC;iBACtB;;;AClDD;;;;;;"}