{"version":3,"file":"primeng-chip.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":[],"mappings":";;;MAkBa,IAAI;IAfjB;QA6Ba,eAAU,GAAW,oBAAoB,CAAC;QAEzC,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAE3D,YAAO,GAAY,IAAI,CAAC;KAa3B;IAXG,cAAc;QACV,OAAO;YACH,oBAAoB,EAAE,IAAI;YAC1B,cAAc,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;SACrC,CAAC;KACL;IAED,KAAK,CAAC,KAAK;QACP,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC5B;;;YA7CJ,SAAS,SAAC;gBACP,QAAQ,EAAE,QAAQ;gBAClB,QAAQ,EAAE;;;;;;;;KAQT;gBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;aAExC;;;oBAGI,KAAK;mBAEL,KAAK;oBAEL,KAAK;oBAEL,KAAK;yBAEL,KAAK;wBAEL,KAAK;yBAEL,KAAK;uBAEL,MAAM;;MAsBE,UAAU;;;YALtB,QAAQ,SAAC;gBACN,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,IAAI,CAAC;gBACf,YAAY,EAAE,CAAC,IAAI,CAAC;aACvB;;;ACvDD;;;;;;"}