1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { AfterViewInit, ElementRef, EventEmitter, NgZone, Renderer2 } from '@angular/core';
|
7 | import { Subject } from 'rxjs';
|
8 | import { NbStatusService } from '../../services/status.service';
|
9 | import { NbFocusMonitor } from '../cdk/a11y/a11y.module';
|
10 | import { NbInputDirective } from '../input/input.directive';
|
11 | import * as i0 from "@angular/core";
|
12 | export interface NbTagInputAddEvent {
|
13 | input: ElementRef<HTMLInputElement>;
|
14 | value: string;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare class NbTagInputDirective extends NbInputDirective implements AfterViewInit {
|
38 | _hostElement: ElementRef<HTMLInputElement>;
|
39 | protected focusMonitor: NbFocusMonitor;
|
40 | protected renderer: Renderer2;
|
41 | protected zone: NgZone;
|
42 | protected statusService: NbStatusService;
|
43 | protected readonly keyDown$: Subject<KeyboardEvent>;
|
44 | get _value(): string;
|
45 | |
46 |
|
47 |
|
48 | separatorKeys: number[];
|
49 | |
50 |
|
51 |
|
52 | tagAdd: EventEmitter<NbTagInputAddEvent>;
|
53 | readonly nbTagInputClass = true;
|
54 | _onKeydown(event: KeyboardEvent): void;
|
55 | constructor(_hostElement: ElementRef<HTMLInputElement>, focusMonitor: NbFocusMonitor, renderer: Renderer2, zone: NgZone, statusService: NbStatusService);
|
56 | ngAfterViewInit(): void;
|
57 | protected isSeparatorKey(keyCode: number): boolean;
|
58 | static ɵfac: i0.ɵɵFactoryDeclaration<NbTagInputDirective, never>;
|
59 | static ɵdir: i0.ɵɵDirectiveDeclaration<NbTagInputDirective, "input[nbTagInput]", ["nbTagInput"], { "separatorKeys": { "alias": "separatorKeys"; "required": false; }; }, { "tagAdd": "tagAdd"; }, never, never, false, never>;
|
60 | }
|