@ctrl/ngx-emoji-mart 9.1.2 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
- import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { EmojiSearch } from './emoji-search.service';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SearchComponent implements AfterViewInit, OnInit {
4
+ export declare class SearchComponent implements AfterViewInit, OnInit, OnDestroy {
5
+ private ngZone;
5
6
  private emojiSearch;
6
7
  maxResults: number;
7
8
  autoFocus: boolean;
@@ -14,19 +15,21 @@ export declare class SearchComponent implements AfterViewInit, OnInit {
14
15
  };
15
16
  emojisToShowFilter?: (x: any) => boolean;
16
17
  searchResults: EventEmitter<any[]>;
17
- enterKey: EventEmitter<any>;
18
+ enterKeyOutsideAngular: EventEmitter<KeyboardEvent>;
18
19
  private inputRef;
19
20
  isSearching: boolean;
20
21
  icon?: string;
21
22
  query: string;
22
23
  inputId: string;
23
- constructor(emojiSearch: EmojiSearch);
24
+ private destroy$;
25
+ constructor(ngZone: NgZone, emojiSearch: EmojiSearch);
24
26
  ngOnInit(): void;
25
27
  ngAfterViewInit(): void;
28
+ ngOnDestroy(): void;
26
29
  clear(): void;
27
- handleEnterKey($event: Event): void;
28
30
  handleSearch(value: string): void;
29
31
  handleChange(): void;
32
+ private setupKeyupListener;
30
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "emoji-search", never, { "maxResults": { "alias": "maxResults"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "include": { "alias": "include"; "required": false; }; "exclude": { "alias": "exclude"; "required": false; }; "custom": { "alias": "custom"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "emojisToShowFilter": { "alias": "emojisToShowFilter"; "required": false; }; }, { "searchResults": "searchResults"; "enterKey": "enterKey"; }, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "emoji-search", never, { "maxResults": { "alias": "maxResults"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "include": { "alias": "include"; "required": false; }; "exclude": { "alias": "exclude"; "required": false; }; "custom": { "alias": "custom"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "emojisToShowFilter": { "alias": "emojisToShowFilter"; "required": false; }; }, { "searchResults": "searchResults"; "enterKeyOutsideAngular": "enterKeyOutsideAngular"; }, never, never, true, never>;
32
35
  }