1 | import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, AfterViewInit, NgZone, Renderer2 } from '@angular/core';
|
2 | import { Observable, Subject } from 'rxjs';
|
3 | import { NbBooleanInput } from '../helpers';
|
4 | import { NbFocusableOption } from '../cdk/a11y/focus-key-manager';
|
5 | import { NbHighlightableOption } from '../cdk/a11y/descendant-key-manager';
|
6 | import { NbSelectComponent } from '../select/select.component';
|
7 | import * as i0 from "@angular/core";
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export declare class NbOptionComponent<T = any> implements OnDestroy, AfterViewInit, NbFocusableOption, NbHighlightableOption {
|
54 | protected elementRef: ElementRef;
|
55 | protected cd: ChangeDetectorRef;
|
56 | protected zone: NgZone;
|
57 | protected renderer: Renderer2;
|
58 | protected disabledByGroup: boolean;
|
59 | |
60 |
|
61 |
|
62 | value: T;
|
63 | get disabled(): boolean;
|
64 | set disabled(value: boolean);
|
65 | protected _disabled: boolean;
|
66 | static ngAcceptInputType_disabled: NbBooleanInput;
|
67 | |
68 |
|
69 |
|
70 | selectionChange: EventEmitter<NbOptionComponent<T>>;
|
71 | |
72 |
|
73 |
|
74 | protected click$: Subject<NbOptionComponent<T>>;
|
75 | get click(): Observable<NbOptionComponent<T>>;
|
76 | selected: boolean;
|
77 | protected parent: NbSelectComponent;
|
78 | protected alive: boolean;
|
79 | |
80 |
|
81 |
|
82 | id: string;
|
83 | constructor(parent: any, elementRef: ElementRef, cd: ChangeDetectorRef, zone: NgZone, renderer: Renderer2);
|
84 | ngOnDestroy(): void;
|
85 | ngAfterViewInit(): void;
|
86 | /**
|
87 | * Determines should we render checkbox.
|
88 | * */
|
89 | get withCheckbox(): boolean;
|
90 | get content(): any;
|
91 | get hidden(): any;
|
92 | get multiple(): boolean;
|
93 | get selectedClass(): boolean;
|
94 | get disabledAttribute(): '' | null;
|
95 | get tabindex(): string;
|
96 | get activeClass(): boolean;
|
97 | protected _active: boolean;
|
98 | onClick(event: any): void;
|
99 | select(): void;
|
100 | deselect(): void;
|
101 | /**
|
102 | * Sets disabled by group state and marks component for check.
|
103 | */
|
104 | setDisabledByGroupState(disabled: boolean): void;
|
105 | protected setSelection(selected: boolean): void;
|
106 | focus(): void;
|
107 | getLabel(): string;
|
108 | setActiveStyles(): void;
|
109 | setInactiveStyles(): void;
|
110 | static ɵfac: i0.ɵɵFactoryDeclaration<NbOptionComponent<any>, [{ optional: true; }, null, null, null, null]>;
|
111 | static ɵcmp: i0.ɵɵComponentDeclaration<NbOptionComponent<any>, "nb-option", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["*"], false, never>;
|
112 | }
|