1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
7 | import { Subject } from 'rxjs';
|
8 | import { NbLayoutDirectionService } from '../../services/direction.service';
|
9 | import { NbStatusService } from '../../services/status.service';
|
10 | import { NbFocusMonitor } from '../cdk/a11y/a11y.module';
|
11 | import { NbActiveDescendantKeyManager, NbActiveDescendantKeyManagerFactoryService } from '../cdk/a11y/descendant-key-manager';
|
12 | import { NbBooleanInput } from '../helpers';
|
13 | import { NbComponentSize } from '../component-size';
|
14 | import { NbAutocompleteDirective } from '../autocomplete/autocomplete.directive';
|
15 | import { NbTagComponent } from './tag.component';
|
16 | import { NbTagInputDirective } from './tag-input.directive';
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare class NbTagListComponent implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
40 | protected hostElement: ElementRef<HTMLElement>;
|
41 | protected cd: ChangeDetectorRef;
|
42 | protected renderer: Renderer2;
|
43 | protected zone: NgZone;
|
44 | protected focusMonitor: NbFocusMonitor;
|
45 | protected activeDescendantKeyManagerFactory: NbActiveDescendantKeyManagerFactoryService<NbTagComponent>;
|
46 | protected directionService: NbLayoutDirectionService;
|
47 | protected statusService: NbStatusService;
|
48 | protected readonly destroy$: Subject<void>;
|
49 | protected readonly keyDown$: Subject<KeyboardEvent>;
|
50 | protected readonly tagClick$: Subject<NbTagComponent>;
|
51 | protected focused: boolean;
|
52 | protected keyManager: NbActiveDescendantKeyManager<NbTagComponent>;
|
53 | tags: QueryList<NbTagComponent>;
|
54 | tagInput: NbTagInputDirective;
|
55 | autocompleteDirective: NbAutocompleteDirective<any>;
|
56 | |
57 |
|
58 |
|
59 | size: NbComponentSize;
|
60 | tabIndex: number;
|
61 | role: string;
|
62 | get multiple(): boolean;
|
63 | set multiple(value: boolean);
|
64 | protected _multiple: boolean;
|
65 | static ngAcceptInputType_multiple: NbBooleanInput;
|
66 | activeTagId: string | null;
|
67 | |
68 |
|
69 |
|
70 |
|
71 | readonly tagRemove: EventEmitter<NbTagComponent>;
|
72 | get _hasInput(): boolean;
|
73 | get _isFocused(): boolean;
|
74 | get _isFullWidth(): boolean;
|
75 | get _inputClasses(): string[];
|
76 | _onKeydown(event: KeyboardEvent): void;
|
77 | _onClick({ target }: MouseEvent): void;
|
78 | constructor(hostElement: ElementRef<HTMLElement>, cd: ChangeDetectorRef, renderer: Renderer2, zone: NgZone, focusMonitor: NbFocusMonitor, activeDescendantKeyManagerFactory: NbActiveDescendantKeyManagerFactoryService<NbTagComponent>, directionService: NbLayoutDirectionService, statusService: NbStatusService);
|
79 | ngOnInit(): void;
|
80 | ngAfterContentInit(): void;
|
81 | ngAfterViewInit(): void;
|
82 | ngOnDestroy(): void;
|
83 | protected initKeyManager(): void;
|
84 | protected listenToLayoutDirectionChange(): void;
|
85 | protected listenListKeyDown(): void;
|
86 | protected listenInputKeyDown(): void;
|
87 | protected listenTagClick(): void;
|
88 | protected listenTagRemove(): void;
|
89 | protected listenTagDestroy(): void;
|
90 | protected listenNoTags(): void;
|
91 | protected listenActiveTagChange(): void;
|
92 | protected onFocusChange(isFocused: boolean): void;
|
93 | protected isBackspaceOrDelete(keyCode: number): boolean;
|
94 | protected setAutocompleteCustomHost(): void;
|
95 | protected toggleTag(tagToToggle: NbTagComponent): void;
|
96 | protected focusInput(): void;
|
97 | }
|