{"version":3,"file":"primeng-rating.mjs","sources":["../../src/app/components/rating/rating.ts","../../src/app/components/rating/primeng-rating.ts"],"sourcesContent":["import {NgModule,Component,OnInit,Input,Output,EventEmitter,forwardRef,ChangeDetectorRef,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\n\nexport const RATING_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Rating),\n multi: true\n};\n\n@Component({\n selector: 'p-rating',\n template: `\n
\n `,\n providers: [RATING_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./rating.css'],\n host: {\n 'class': 'p-element'\n }\n})\nexport class Rating implements OnInit,ControlValueAccessor {\n\n @Input() disabled: boolean;\n\n @Input() readonly: boolean;\n\n @Input() stars: number = 5;\n\n @Input() cancel: boolean = true;\n\n @Input() iconOnClass: string = 'pi pi-star-fill';\n\n @Input() iconOnStyle: any;\n\n @Input() iconOffClass: string = 'pi pi-star';\n\n @Input() iconOffStyle: any;\n\n @Input() iconCancelClass: string = 'pi pi-ban';\n\n @Input() iconCancelStyle: any;\n\n @Output() onRate: EventEmitter