-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathpicker.component.html
69 lines (69 loc) · 2.17 KB
/
picker.component.html
1
2
3
4
5
6
7
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div class="emoji-mart"
[style.width.px]="perLine * (emojiSize + 12) + 12 + 2 + measureScrollbar"
[ngStyle]="style">
<div class="emoji-mart-bar">
<emoji-mart-anchors
[categories]="categories"
(anchorClick)="handleAnchorClick($event)"
[color]="color"
[selected]="selected"
[i18n]="i18n"
[icons]="categoriesIcons"
></emoji-mart-anchors>
</div>
<emoji-search
#searchRef
[i18n]="i18n"
(search)="handleSearch($event)"
(enterKey)="handleEnterKey($event)"
[include]="include"
[exclude]="exclude"
[custom]="custom"
[autoFocus]="autoFocus"
[icons]="searchIcons"
[emojisToShowFilter]="emojisToShowFilter"
></emoji-search>
<div #scrollRef class="emoji-mart-scroll" (scroll)="handleScroll()">
<emoji-category
*ngFor="let category of activeCategories; let idx = index; trackBy: categoryTrack"
#categoryRef
[id]="category.id"
[name]="category.name"
[emojis]="category.emojis"
[perLine]="perLine"
[totalFrequentLines]="totalFrequentLines"
[hasStickyPosition]="isNative"
[i18n]="i18n"
[hideObsolete]="hideObsolete"
[notFoundEmoji]="notFoundEmoji"
[custom]="category.id == RECENT_CATEGORY.id ? CUSTOM_CATEGORY.emojis : undefined"
[recent]="category.id == RECENT_CATEGORY.id ? recent : undefined"
[emojiIsNative]="isNative"
[emojiSkin]="skin"
[emojiSize]="emojiSize"
[emojiSet]="set"
[emojiSheetSize]="sheetSize"
[emojiForceSize]="isNative"
[emojiTooltip]="emojiTooltip"
[emojiBackgroundImageFn]="backgroundImageFn"
(emojiOver)="handleEmojiOver($event)"
(emojiLeave)="handleEmojiLeave()"
(emojiClick)="handleEmojiClick($event)"
></emoji-category>
</div>
<div class="emoji-mart-bar" *ngIf="showPreview">
<emoji-preview
#previewRef
[title]="title"
[emoji]="previewEmoji"
[idleEmoji]="emoji"
[emojiIsNative]="isNative"
[emojiSize]="38"
[emojiSkin]="skin"
[emojiSet]="set"
[emojiSheetSize]="sheetSize"
[emojiBackgroundImageFn]="backgroundImageFn"
(skinChange)="handleSkinChange($event)"
></emoji-preview>
</div>
</div>