create apiEnum components

This commit is contained in:
2026-03-10 20:23:56 +03:30
parent b379787002
commit d61a5a6250
20 changed files with 207 additions and 6 deletions
@@ -13,7 +13,7 @@ export interface ISelectItem {
template: '',
})
export abstract class AbstractSelectComponent<T = ISelectItem, serviceResponse = T[]> {
@Input() control = new FormControl<Maybe<number | T>>(null);
@Input() control = new FormControl<Maybe<number | string | T>>(null);
@Input() canInsert: boolean = false;
@Input() showLabel: boolean = true;
@Input() showErrors: boolean = true;
@@ -39,6 +39,7 @@ export abstract class AbstractSelectComponent<T = ISelectItem, serviceResponse =
}
abstract getDataService(): Observable<serviceResponse>;
getData() {
this.loading.set(true);
this.getDataService().subscribe({