{"version":3,"sources":["src/app/core/components/ui-kit/dropdown/dropdown.component.ts","src/app/core/components/ui-kit/dropdown/dropdown.component.html"],"sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ControlContainer,\n FormGroupDirective,\n FormsModule,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { DropdownChangeEvent } from 'primeng/dropdown';\nimport { SelectModule } from 'primeng/select';\nimport { SharedModule } from 'src/app/core/shared.module';\n\n@Component({\n selector: 'v-dropdown',\n imports: [SharedModule, SelectModule, FormsModule, ReactiveFormsModule],\n styleUrl: './dropdown.component.scss',\n templateUrl: './dropdown.component.html',\n encapsulation: ViewEncapsulation.None,\n viewProviders: [\n {\n provide: ControlContainer,\n useExisting: FormGroupDirective,\n },\n ],\n})\nexport class VDropdownComponent {\n /**\n * Options to display in the dropdown\n */\n @Input()\n public options: any[] = [];\n\n /**\n * Placeholder text to display\n */\n @Input()\n public placeholder = 'Select';\n\n /**\n * Optional form control name\n */\n @Input()\n fControlName?: string;\n\n /**\n * The key to use for the option label\n */\n @Input()\n optionLabel = 'label';\n\n /**\n * The key to use for the option value\n */\n @Input()\n optionValue = 'value';\n\n @Input()\n appendDropdownTo?: any;\n\n @Output()\n changed = new EventEmitter();\n\n style = {\n colorScheme: {\n dark: {\n focusRing: {\n width: '2px',\n style: 'solid',\n color: 'var(--v-input-outline-color)',\n offset: '1px',\n },\n overlay: {\n background: 'var(--v-dropdown-panel-background-color)',\n border: {\n radius: 'var(--v-border-radius)',\n color: '#43474c',\n },\n },\n option: {\n padding: '.5rem 1rem',\n border: {\n radius: 'calc(var(--v-border-radius) / 1.5)',\n },\n },\n placeholder: {\n color: 'var(--v-input-placeholder-color)',\n },\n },\n },\n };\n}\n","\n"],"names":["VDropdownComponent","constructor","options","placeholder","optionLabel","optionValue","changed","EventEmitter","style","colorScheme","dark","focusRing","width","color","offset","overlay","background","border","radius","option","padding","selectors","inputs","fControlName","appendDropdownTo","outputs","features","ɵɵProvidersFeature","provide","ControlContainer","useExisting","FormGroupDirective","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵlistener","$event","emit","ɵɵelementEnd","ɵɵproperty","SharedModule","SelectModule","Select","FormsModule","NgControlStatus","ReactiveFormsModule","FormControlName","styles","encapsulation"],"mappings":";;4PA8BA,IAAaA,GAAkB,IAAA,CAAzB,MAAOA,CAAkB,CAb/BC,aAAA,CAkBS,KAAAC,QAAiB,CAAA,EAMjB,KAAAC,YAAc,SAYrB,KAAAC,YAAc,QAMd,KAAAC,YAAc,QAMd,KAAAC,QAAU,IAAIC,EAEd,KAAAC,MAAQ,CACNC,YAAa,CACXC,KAAM,CACJC,UAAW,CACTC,MAAO,MACPJ,MAAO,QACPK,MAAO,+BACPC,OAAQ,OAEVC,QAAS,CACPC,WAAY,2CACZC,OAAQ,CACNC,OAAQ,yBACRL,MAAO,YAGXM,OAAQ,CACNC,QAAS,aACTH,OAAQ,CACNC,OAAQ,uCAGZf,YAAa,CACXU,MAAO,uFA5DJb,EAAkB,CAAA,+BAAlBA,EAAkBqB,UAAA,CAAA,CAAA,YAAA,CAAA,EAAAC,OAAA,CAAApB,QAAA,UAAAC,YAAA,cAAAoB,aAAA,eAAAnB,YAAA,cAAAC,YAAA,cAAAmB,iBAAA,kBAAA,EAAAC,QAAA,CAAAnB,QAAA,SAAA,EAAAoB,SAAA,CAAAC,EAAA,CAAA,EAPd,CACb,CACEC,QAASC,EACTC,YAAaC,EACd,CACF,CAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,OAAA,CAAA,CAAA,aAAA,aAAA,EAAA,WAAA,UAAA,cAAA,cAAA,cAAA,kBAAA,WAAA,IAAA,CAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,IC5BHE,EAAA,EAAA,WAAA,CAAA,EASEC,EAAA,WAAA,SAAAC,EAAA,CAAA,OAAYH,EAAA/B,QAAAmC,KAAAD,CAAA,CAAoB,CAAA,EAA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