select.component.d.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { DestroyRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
  2. import { FormOptionBase } from '../../model/forms/form-base.model';
  3. import { Subject } from 'rxjs';
  4. import { FormGroupDirective } from '@angular/forms';
  5. import { FormGenericComponent } from '../../services/form-generic.abstract';
  6. import { ComponentDisposition } from '../../model/components/component-disposition.enum';
  7. import * as i0 from "@angular/core";
  8. export declare class SelectComponent extends FormGenericComponent implements OnInit, OnChanges {
  9. protected formGroupDirective: FormGroupDirective;
  10. private readonly destroyRef;
  11. focusOut$: Subject<any>;
  12. isOpen: boolean;
  13. option: string;
  14. formControlName: string;
  15. key: string;
  16. options: FormOptionBase[];
  17. label: string;
  18. helper: string;
  19. placeholder: string;
  20. value: any;
  21. disposition: ComponentDisposition;
  22. fullSize: boolean;
  23. showError: boolean;
  24. selected: EventEmitter<any>;
  25. trigger: ElementRef<HTMLButtonElement>;
  26. panel: ElementRef<HTMLDivElement>;
  27. constructor(formGroupDirective: FormGroupDirective, destroyRef: DestroyRef);
  28. ngOnInit(): void;
  29. ngOnChanges(changes: SimpleChanges): void;
  30. toggle(): void;
  31. close(): void;
  32. selectOption(key: any, propagate?: boolean): void;
  33. writeValue(value: any): void;
  34. static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; }, null]>;
  35. static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ct-select", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "key": { "alias": "key"; "required": false; }; "options": { "alias": "options"; "required": true; }; "label": { "alias": "label"; "required": false; }; "helper": { "alias": "helper"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disposition": { "alias": "disposition"; "required": false; }; "fullSize": { "alias": "fullSize"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; }, { "selected": "selected"; }, never, never, true, never>;
  36. }