{"version":3,"file":"primeng-chip.umd.js","sources":["../../src/app/components/chip/chip.ts","../../src/app/components/chip/primeng-chip.ts"],"sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'p-chip',\n template: `\n
\n \n \n \n
{{label}}
\n \n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./chip.css']\n})\nexport class Chip {\n\n @Input() label: string;\n\n @Input() icon: string;\n\n @Input() image: string;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() removable: boolean;\n\n @Input() removeIcon: string = \"pi pi-times-circle\";\n\n @Output() onRemove: EventEmitter = new EventEmitter();\n\n visible: boolean = true;\n\n containerClass() {\n return {\n 'p-chip p-component': true,\n 'p-chip-image': this.image != null\n };\n }\n\n close(event) {\n this.visible = false;\n this.onRemove.emit(event)\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Chip],\n declarations: [Chip]\n})\nexport class ChipModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["EventEmitter","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","Output","NgModule","CommonModule"],"mappings":";;;;;;;QAGA;YA6Ba,eAAU,GAAW,oBAAoB,CAAC;YAEzC,aAAQ,GAAsB,IAAIA,iBAAY,EAAE,CAAC;YAE3D,YAAO,GAAY,IAAI,CAAC;SAa3B;QAXG,6BAAc,GAAd;YACI,OAAO;gBACH,oBAAoB,EAAE,IAAI;gBAC1B,cAAc,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;aACrC,CAAC;SACL;QAED,oBAAK,GAAL,UAAM,KAAK;YACP,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;SAC5B;;;;gBA7CJC,cAAS,SAAC;oBACP,QAAQ,EAAE,QAAQ;oBAClB,QAAQ,EAAE,4mBAQT;oBACD,eAAe,EAAEC,4BAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBAExC;;;wBAGIC,UAAK;uBAELA,UAAK;wBAELA,UAAK;wBAELA,UAAK;6BAELA,UAAK;4BAELA,UAAK;6BAELA,UAAK;2BAELC,WAAM;;;QAsBX;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,IAAI,CAAC;oBACf,YAAY,EAAE,CAAC,IAAI,CAAC;iBACvB;;;ICvDD;;;;;;;;;;;;;"}