@ctrl/ngx-emoji-mart 6.0.0 → 6.2.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.
- package/README.md +3 -3
- package/anchors.component.d.ts +3 -0
- package/category.component.d.ts +7 -2
- package/ctrl-ngx-emoji-mart.d.ts +1 -0
- package/emoji-frequently.service.d.ts +3 -0
- package/emoji-search.service.d.ts +3 -0
- package/esm2020/anchors.component.mjs +83 -0
- package/esm2020/category.component.mjs +386 -0
- package/{esm2015/ctrl-ngx-emoji-mart.js → esm2020/ctrl-ngx-emoji-mart.mjs} +0 -0
- package/{esm2015/emoji-frequently.service.js → esm2020/emoji-frequently.service.mjs} +10 -8
- package/esm2020/emoji-search.service.mjs +177 -0
- package/{esm2015/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.js → esm2020/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.mjs} +0 -0
- package/{esm2015/ngx-emoji/data/categories.js → esm2020/ngx-emoji/data/categories.mjs} +0 -0
- package/{esm2015/ngx-emoji/data/data.interfaces.js → esm2020/ngx-emoji/data/data.interfaces.mjs} +0 -0
- package/{esm2015/ngx-emoji/data/emojis.js → esm2020/ngx-emoji/data/emojis.mjs} +11 -6
- package/{esm2015/ngx-emoji/data/skins.js → esm2020/ngx-emoji/data/skins.mjs} +0 -0
- package/esm2020/ngx-emoji/emoji.component.mjs +236 -0
- package/esm2020/ngx-emoji/emoji.module.mjs +18 -0
- package/esm2020/ngx-emoji/emoji.service.mjs +144 -0
- package/{esm2015/ngx-emoji/index.js → esm2020/ngx-emoji/index.mjs} +0 -0
- package/esm2020/picker.component.mjs +505 -0
- package/esm2020/picker.module.mjs +49 -0
- package/esm2020/preview.component.mjs +187 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/search.component.mjs +165 -0
- package/esm2020/skins.component.mjs +108 -0
- package/{esm2015/svgs/index.js → esm2020/svgs/index.mjs} +0 -0
- package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- package/fesm2015/{ctrl-ngx-emoji-mart-ngx-emoji.js → ctrl-ngx-emoji-mart-ngx-emoji.mjs} +111 -49
- package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
- package/fesm2015/{ctrl-ngx-emoji-mart.js → ctrl-ngx-emoji-mart.mjs} +670 -325
- package/fesm2015/ctrl-ngx-emoji-mart.mjs.map +1 -0
- package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs +31829 -0
- package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
- package/fesm2020/ctrl-ngx-emoji-mart.mjs +1757 -0
- package/fesm2020/ctrl-ngx-emoji-mart.mjs.map +1 -0
- package/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.d.ts +1 -0
- package/ngx-emoji/emoji.component.d.ts +3 -0
- package/ngx-emoji/emoji.module.d.ts +6 -0
- package/ngx-emoji/emoji.service.d.ts +3 -0
- package/ngx-emoji/package.json +6 -7
- package/package.json +35 -13
- package/picker.component.d.ts +3 -0
- package/picker.css +0 -1
- package/picker.module.d.ts +13 -0
- package/preview.component.d.ts +4 -1
- package/search.component.d.ts +3 -0
- package/skins.component.d.ts +6 -3
- package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js +0 -32093
- package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js.map +0 -1
- package/bundles/ctrl-ngx-emoji-mart.umd.js +0 -1718
- package/bundles/ctrl-ngx-emoji-mart.umd.js.map +0 -1
- package/ctrl-ngx-emoji-mart.metadata.json +0 -1
- package/esm2015/anchors.component.js +0 -54
- package/esm2015/category.component.js +0 -276
- package/esm2015/emoji-search.service.js +0 -179
- package/esm2015/ngx-emoji/emoji.component.js +0 -174
- package/esm2015/ngx-emoji/emoji.module.js +0 -13
- package/esm2015/ngx-emoji/emoji.service.js +0 -143
- package/esm2015/picker.component.js +0 -459
- package/esm2015/picker.module.js +0 -34
- package/esm2015/preview.component.js +0 -113
- package/esm2015/search.component.js +0 -115
- package/esm2015/skins.component.js +0 -76
- package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.js.map +0 -1
- package/fesm2015/ctrl-ngx-emoji-mart.js.map +0 -1
- package/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.metadata.json +0 -1
@@ -1,9 +1,11 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, Injectable, Inject,
|
3
|
-
import * as
|
4
|
-
import { EmojiService, categories as categories$1, EmojiModule } from '@ctrl/ngx-emoji-mart/ngx-emoji';
|
5
|
-
import { Subject } from 'rxjs';
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, PLATFORM_ID, Injectable, Inject, ViewChild, ViewChildren, NgModule } from '@angular/core';
|
3
|
+
import * as i3 from '@angular/common';
|
6
4
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
5
|
+
import { Subject } from 'rxjs';
|
6
|
+
import * as i1 from '@ctrl/ngx-emoji-mart/ngx-emoji';
|
7
|
+
import { categories as categories$1, EmojiModule } from '@ctrl/ngx-emoji-mart/ngx-emoji';
|
8
|
+
import * as i2 from '@angular/forms';
|
7
9
|
import { FormsModule } from '@angular/forms';
|
8
10
|
|
9
11
|
class AnchorsComponent {
|
@@ -22,10 +24,33 @@ class AnchorsComponent {
|
|
22
24
|
});
|
23
25
|
}
|
24
26
|
}
|
25
|
-
AnchorsComponent
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
AnchorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AnchorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
28
|
+
AnchorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AnchorsComponent, selector: "emoji-mart-anchors", inputs: { categories: "categories", color: "color", selected: "selected", i18n: "i18n", icons: "icons" }, outputs: { anchorClick: "anchorClick" }, ngImport: i0, template: `
|
29
|
+
<div class="emoji-mart-anchors">
|
30
|
+
<ng-template ngFor let-category [ngForOf]="categories" let-idx="index" [ngForTrackBy]="trackByFn">
|
31
|
+
<span
|
32
|
+
*ngIf="category.anchor !== false"
|
33
|
+
[attr.title]="i18n.categories[category.id]"
|
34
|
+
(click)="this.handleClick($event, idx)"
|
35
|
+
class="emoji-mart-anchor"
|
36
|
+
[class.emoji-mart-anchor-selected]="category.name === selected"
|
37
|
+
[style.color]="category.name === selected ? color : null"
|
38
|
+
>
|
39
|
+
<div>
|
40
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
41
|
+
<path [attr.d]="icons[category.id]" />
|
42
|
+
</svg>
|
43
|
+
</div>
|
44
|
+
<span class="emoji-mart-anchor-bar" [style.background-color]="color"></span>
|
45
|
+
</span>
|
46
|
+
</ng-template>
|
47
|
+
</div>
|
48
|
+
`, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AnchorsComponent, decorators: [{
|
50
|
+
type: Component,
|
51
|
+
args: [{
|
52
|
+
selector: 'emoji-mart-anchors',
|
53
|
+
template: `
|
29
54
|
<div class="emoji-mart-anchors">
|
30
55
|
<ng-template ngFor let-category [ngForOf]="categories" let-idx="index" [ngForTrackBy]="trackByFn">
|
31
56
|
<span
|
@@ -46,18 +71,22 @@ AnchorsComponent.decorators = [
|
|
46
71
|
</ng-template>
|
47
72
|
</div>
|
48
73
|
`,
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
]
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
}
|
74
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
75
|
+
preserveWhitespaces: false,
|
76
|
+
}]
|
77
|
+
}], propDecorators: { categories: [{
|
78
|
+
type: Input
|
79
|
+
}], color: [{
|
80
|
+
type: Input
|
81
|
+
}], selected: [{
|
82
|
+
type: Input
|
83
|
+
}], i18n: [{
|
84
|
+
type: Input
|
85
|
+
}], icons: [{
|
86
|
+
type: Input
|
87
|
+
}], anchorClick: [{
|
88
|
+
type: Output
|
89
|
+
}] } });
|
61
90
|
|
62
91
|
class EmojiFrequentlyService {
|
63
92
|
constructor(platformId) {
|
@@ -134,19 +163,24 @@ class EmojiFrequentlyService {
|
|
134
163
|
return sliced;
|
135
164
|
}
|
136
165
|
}
|
137
|
-
EmojiFrequentlyService.ɵ
|
138
|
-
EmojiFrequentlyService
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
166
|
+
EmojiFrequentlyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiFrequentlyService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
167
|
+
EmojiFrequentlyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiFrequentlyService, providedIn: 'root' });
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiFrequentlyService, decorators: [{
|
169
|
+
type: Injectable,
|
170
|
+
args: [{ providedIn: 'root' }]
|
171
|
+
}], ctorParameters: function () {
|
172
|
+
return [{ type: undefined, decorators: [{
|
173
|
+
type: Inject,
|
174
|
+
args: [PLATFORM_ID]
|
175
|
+
}] }];
|
176
|
+
} });
|
144
177
|
|
145
178
|
class CategoryComponent {
|
146
179
|
constructor(ref, emojiService, frequently) {
|
147
180
|
this.ref = ref;
|
148
181
|
this.emojiService = emojiService;
|
149
182
|
this.frequently = frequently;
|
183
|
+
this.emojis = null;
|
150
184
|
this.hasStickyPosition = true;
|
151
185
|
this.name = '';
|
152
186
|
this.perLine = 9;
|
@@ -160,6 +194,7 @@ class CategoryComponent {
|
|
160
194
|
this.emojiLeave = new EventEmitter();
|
161
195
|
this.emojiClick = new EventEmitter();
|
162
196
|
this.containerStyles = {};
|
197
|
+
this.emojisToDisplay = [];
|
163
198
|
this.filteredEmojisSubject = new Subject();
|
164
199
|
this.filteredEmojis$ = this.filteredEmojisSubject.asObservable();
|
165
200
|
this.labelStyles = {};
|
@@ -171,8 +206,9 @@ class CategoryComponent {
|
|
171
206
|
this.rows = 0;
|
172
207
|
}
|
173
208
|
ngOnInit() {
|
174
|
-
this.
|
175
|
-
|
209
|
+
this.updateRecentEmojis();
|
210
|
+
this.emojisToDisplay = this.filterEmojis();
|
211
|
+
if (this.noEmojiToDisplay) {
|
176
212
|
this.containerStyles = { display: 'none' };
|
177
213
|
}
|
178
214
|
if (!this.hasStickyPosition) {
|
@@ -183,22 +219,25 @@ class CategoryComponent {
|
|
183
219
|
ngOnChanges(changes) {
|
184
220
|
var _a, _b, _c, _d;
|
185
221
|
if (((_b = (_a = changes.emojis) === null || _a === void 0 ? void 0 : _a.currentValue) === null || _b === void 0 ? void 0 : _b.length) !== ((_d = (_c = changes.emojis) === null || _c === void 0 ? void 0 : _c.previousValue) === null || _d === void 0 ? void 0 : _d.length)) {
|
222
|
+
this.emojisToDisplay = this.filterEmojis();
|
186
223
|
this.ngAfterViewInit();
|
187
224
|
}
|
188
225
|
}
|
189
226
|
ngAfterViewInit() {
|
190
|
-
var _a
|
191
|
-
if (!this.virtualize
|
227
|
+
var _a;
|
228
|
+
if (!this.virtualize) {
|
192
229
|
return;
|
193
230
|
}
|
194
|
-
this.emojis = this.filterEmojis();
|
195
231
|
const { width } = this.container.nativeElement.getBoundingClientRect();
|
196
232
|
const perRow = Math.floor(width / (this.emojiSize + 12));
|
197
|
-
this.rows = Math.ceil(this.
|
233
|
+
this.rows = Math.ceil(this.emojisToDisplay.length / perRow);
|
198
234
|
this.containerStyles = Object.assign(Object.assign({}, this.containerStyles), { minHeight: `${this.rows * (this.emojiSize + 12) + 28}px` });
|
199
|
-
(
|
235
|
+
(_a = this.ref) === null || _a === void 0 ? void 0 : _a.detectChanges();
|
200
236
|
this.handleScroll(this.container.nativeElement.parentNode.parentNode.scrollTop);
|
201
237
|
}
|
238
|
+
get noEmojiToDisplay() {
|
239
|
+
return this.emojisToDisplay.length === 0;
|
240
|
+
}
|
202
241
|
memoizeSize() {
|
203
242
|
const parent = this.container.nativeElement.parentNode.parentNode;
|
204
243
|
const { top, height } = this.container.nativeElement.getBoundingClientRect();
|
@@ -220,7 +259,7 @@ class CategoryComponent {
|
|
220
259
|
const { top, height } = this.container.nativeElement.getBoundingClientRect();
|
221
260
|
const parentHeight = this.container.nativeElement.parentNode.parentNode.clientHeight;
|
222
261
|
if (parentHeight + (parentHeight + this.virtualizeOffset) >= top && -height - (parentHeight + this.virtualizeOffset) <= top) {
|
223
|
-
this.filteredEmojisSubject.next(this.
|
262
|
+
this.filteredEmojisSubject.next(this.emojisToDisplay);
|
224
263
|
}
|
225
264
|
else {
|
226
265
|
this.filteredEmojisSubject.next([]);
|
@@ -237,35 +276,30 @@ class CategoryComponent {
|
|
237
276
|
this.ref.detectChanges();
|
238
277
|
return true;
|
239
278
|
}
|
240
|
-
|
241
|
-
if (this.name
|
242
|
-
|
243
|
-
if (!frequentlyUsed || !frequentlyUsed.length) {
|
244
|
-
frequentlyUsed = this.frequently.get(this.perLine, this.totalFrequentLines);
|
245
|
-
}
|
246
|
-
if (frequentlyUsed.length) {
|
247
|
-
this.emojis = frequentlyUsed
|
248
|
-
.map(id => {
|
249
|
-
const emoji = this.custom.filter((e) => e.id === id)[0];
|
250
|
-
if (emoji) {
|
251
|
-
return emoji;
|
252
|
-
}
|
253
|
-
return id;
|
254
|
-
})
|
255
|
-
.filter(id => !!this.emojiService.getData(id));
|
256
|
-
}
|
257
|
-
if ((!this.emojis || this.emojis.length === 0) && frequentlyUsed.length > 0) {
|
258
|
-
return null;
|
259
|
-
}
|
279
|
+
updateRecentEmojis() {
|
280
|
+
if (this.name !== 'Recent') {
|
281
|
+
return;
|
260
282
|
}
|
261
|
-
|
262
|
-
|
283
|
+
let frequentlyUsed = this.recent || this.frequently.get(this.perLine, this.totalFrequentLines);
|
284
|
+
if (!frequentlyUsed || !frequentlyUsed.length) {
|
285
|
+
frequentlyUsed = this.frequently.get(this.perLine, this.totalFrequentLines);
|
286
|
+
}
|
287
|
+
if (!frequentlyUsed.length) {
|
288
|
+
return;
|
263
289
|
}
|
264
|
-
|
290
|
+
this.emojis = frequentlyUsed
|
291
|
+
.map(id => {
|
292
|
+
const emoji = this.custom.filter((e) => e.id === id)[0];
|
293
|
+
if (emoji) {
|
294
|
+
return emoji;
|
295
|
+
}
|
296
|
+
return id;
|
297
|
+
})
|
298
|
+
.filter(id => !!this.emojiService.getData(id));
|
265
299
|
}
|
266
300
|
updateDisplay(display) {
|
267
301
|
this.containerStyles.display = display;
|
268
|
-
this.
|
302
|
+
this.updateRecentEmojis();
|
269
303
|
this.ref.detectChanges();
|
270
304
|
}
|
271
305
|
trackById(index, item) {
|
@@ -286,15 +320,13 @@ class CategoryComponent {
|
|
286
320
|
return newEmojis;
|
287
321
|
}
|
288
322
|
}
|
289
|
-
CategoryComponent
|
290
|
-
|
291
|
-
selector: 'emoji-category',
|
292
|
-
template: `
|
323
|
+
CategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CategoryComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.EmojiService }, { token: EmojiFrequentlyService }], target: i0.ɵɵFactoryTarget.Component });
|
324
|
+
CategoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CategoryComponent, selector: "emoji-category", inputs: { emojis: "emojis", hasStickyPosition: "hasStickyPosition", name: "name", perLine: "perLine", totalFrequentLines: "totalFrequentLines", recent: "recent", custom: "custom", i18n: "i18n", id: "id", hideObsolete: "hideObsolete", notFoundEmoji: "notFoundEmoji", virtualize: "virtualize", virtualizeOffset: "virtualizeOffset", emojiIsNative: "emojiIsNative", emojiSkin: "emojiSkin", emojiSize: "emojiSize", emojiSet: "emojiSet", emojiSheetSize: "emojiSheetSize", emojiForceSize: "emojiForceSize", emojiTooltip: "emojiTooltip", emojiBackgroundImageFn: "emojiBackgroundImageFn", emojiImageUrlFn: "emojiImageUrlFn", emojiUseButton: "emojiUseButton" }, outputs: { emojiOver: "emojiOver", emojiLeave: "emojiLeave", emojiClick: "emojiClick" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "label", first: true, predicate: ["label"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
293
325
|
<section
|
294
326
|
#container
|
295
327
|
class="emoji-mart-category"
|
296
328
|
[attr.aria-label]="i18n.categories[id]"
|
297
|
-
[class.emoji-mart-no-results]="
|
329
|
+
[class.emoji-mart-no-results]="noEmojiToDisplay"
|
298
330
|
[ngStyle]="containerStyles"
|
299
331
|
>
|
300
332
|
<div class="emoji-mart-category-label" [ngStyle]="labelStyles" [attr.data-name]="name">
|
@@ -329,11 +361,11 @@ CategoryComponent.decorators = [
|
|
329
361
|
</div>
|
330
362
|
</div>
|
331
363
|
|
332
|
-
<div *ngIf="
|
364
|
+
<div *ngIf="noEmojiToDisplay">
|
333
365
|
<div>
|
334
366
|
<ngx-emoji
|
335
367
|
[emoji]="notFoundEmoji"
|
336
|
-
size="38"
|
368
|
+
[size]="38"
|
337
369
|
[skin]="emojiSkin"
|
338
370
|
[isNative]="emojiIsNative"
|
339
371
|
[set]="emojiSet"
|
@@ -352,9 +384,8 @@ CategoryComponent.decorators = [
|
|
352
384
|
</section>
|
353
385
|
|
354
386
|
<ng-template #normalRenderTemplate>
|
355
|
-
<div *ngIf="emojis">
|
356
387
|
<ngx-emoji
|
357
|
-
*ngFor="let emoji of
|
388
|
+
*ngFor="let emoji of emojisToDisplay; trackBy: trackById"
|
358
389
|
[emoji]="emoji"
|
359
390
|
[size]="emojiSize"
|
360
391
|
[skin]="emojiSkin"
|
@@ -371,48 +402,157 @@ CategoryComponent.decorators = [
|
|
371
402
|
(emojiLeave)="emojiLeave.emit($event)"
|
372
403
|
(emojiClick)="emojiClick.emit($event)"
|
373
404
|
></ngx-emoji>
|
405
|
+
</ng-template>
|
406
|
+
`, isInline: true, components: [{ type: i1.EmojiComponent, selector: "ngx-emoji", inputs: ["skin", "set", "sheetSize", "isNative", "forceSize", "tooltip", "size", "emoji", "fallback", "hideObsolete", "sheetRows", "sheetColumns", "useButton", "backgroundImageFn", "imageUrlFn"], outputs: ["emojiOver", "emojiLeave", "emojiClick"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CategoryComponent, decorators: [{
|
408
|
+
type: Component,
|
409
|
+
args: [{
|
410
|
+
selector: 'emoji-category',
|
411
|
+
template: `
|
412
|
+
<section
|
413
|
+
#container
|
414
|
+
class="emoji-mart-category"
|
415
|
+
[attr.aria-label]="i18n.categories[id]"
|
416
|
+
[class.emoji-mart-no-results]="noEmojiToDisplay"
|
417
|
+
[ngStyle]="containerStyles"
|
418
|
+
>
|
419
|
+
<div class="emoji-mart-category-label" [ngStyle]="labelStyles" [attr.data-name]="name">
|
420
|
+
<!-- already labeled by the section aria-label -->
|
421
|
+
<span #label [ngStyle]="labelSpanStyles" aria-hidden="true">
|
422
|
+
{{ i18n.categories[id] }}
|
423
|
+
</span>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
<div
|
427
|
+
*ngIf="virtualize; else normalRenderTemplate"
|
428
|
+
>
|
429
|
+
<div *ngIf="filteredEmojis$ | async as filteredEmojis">
|
430
|
+
<ngx-emoji
|
431
|
+
*ngFor="let emoji of filteredEmojis; trackBy: trackById"
|
432
|
+
[emoji]="emoji"
|
433
|
+
[size]="emojiSize"
|
434
|
+
[skin]="emojiSkin"
|
435
|
+
[isNative]="emojiIsNative"
|
436
|
+
[set]="emojiSet"
|
437
|
+
[sheetSize]="emojiSheetSize"
|
438
|
+
[forceSize]="emojiForceSize"
|
439
|
+
[tooltip]="emojiTooltip"
|
440
|
+
[backgroundImageFn]="emojiBackgroundImageFn"
|
441
|
+
[imageUrlFn]="emojiImageUrlFn"
|
442
|
+
[hideObsolete]="hideObsolete"
|
443
|
+
[useButton]="emojiUseButton"
|
444
|
+
(emojiOver)="emojiOver.emit($event)"
|
445
|
+
(emojiLeave)="emojiLeave.emit($event)"
|
446
|
+
(emojiClick)="emojiClick.emit($event)"
|
447
|
+
></ngx-emoji>
|
448
|
+
</div>
|
449
|
+
</div>
|
450
|
+
|
451
|
+
<div *ngIf="noEmojiToDisplay">
|
452
|
+
<div>
|
453
|
+
<ngx-emoji
|
454
|
+
[emoji]="notFoundEmoji"
|
455
|
+
[size]="38"
|
456
|
+
[skin]="emojiSkin"
|
457
|
+
[isNative]="emojiIsNative"
|
458
|
+
[set]="emojiSet"
|
459
|
+
[sheetSize]="emojiSheetSize"
|
460
|
+
[forceSize]="emojiForceSize"
|
461
|
+
[tooltip]="emojiTooltip"
|
462
|
+
[backgroundImageFn]="emojiBackgroundImageFn"
|
463
|
+
[useButton]="emojiUseButton"
|
464
|
+
></ngx-emoji>
|
465
|
+
</div>
|
466
|
+
|
467
|
+
<div class="emoji-mart-no-results-label">
|
468
|
+
{{ i18n.notfound }}
|
469
|
+
</div>
|
374
470
|
</div>
|
471
|
+
</section>
|
472
|
+
|
473
|
+
<ng-template #normalRenderTemplate>
|
474
|
+
<ngx-emoji
|
475
|
+
*ngFor="let emoji of emojisToDisplay; trackBy: trackById"
|
476
|
+
[emoji]="emoji"
|
477
|
+
[size]="emojiSize"
|
478
|
+
[skin]="emojiSkin"
|
479
|
+
[isNative]="emojiIsNative"
|
480
|
+
[set]="emojiSet"
|
481
|
+
[sheetSize]="emojiSheetSize"
|
482
|
+
[forceSize]="emojiForceSize"
|
483
|
+
[tooltip]="emojiTooltip"
|
484
|
+
[backgroundImageFn]="emojiBackgroundImageFn"
|
485
|
+
[imageUrlFn]="emojiImageUrlFn"
|
486
|
+
[hideObsolete]="hideObsolete"
|
487
|
+
[useButton]="emojiUseButton"
|
488
|
+
(emojiOver)="emojiOver.emit($event)"
|
489
|
+
(emojiLeave)="emojiLeave.emit($event)"
|
490
|
+
(emojiClick)="emojiClick.emit($event)"
|
491
|
+
></ngx-emoji>
|
375
492
|
</ng-template>
|
376
493
|
`,
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
];
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
494
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
495
|
+
preserveWhitespaces: false,
|
496
|
+
}]
|
497
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.EmojiService }, { type: EmojiFrequentlyService }]; }, propDecorators: { emojis: [{
|
498
|
+
type: Input
|
499
|
+
}], hasStickyPosition: [{
|
500
|
+
type: Input
|
501
|
+
}], name: [{
|
502
|
+
type: Input
|
503
|
+
}], perLine: [{
|
504
|
+
type: Input
|
505
|
+
}], totalFrequentLines: [{
|
506
|
+
type: Input
|
507
|
+
}], recent: [{
|
508
|
+
type: Input
|
509
|
+
}], custom: [{
|
510
|
+
type: Input
|
511
|
+
}], i18n: [{
|
512
|
+
type: Input
|
513
|
+
}], id: [{
|
514
|
+
type: Input
|
515
|
+
}], hideObsolete: [{
|
516
|
+
type: Input
|
517
|
+
}], notFoundEmoji: [{
|
518
|
+
type: Input
|
519
|
+
}], virtualize: [{
|
520
|
+
type: Input
|
521
|
+
}], virtualizeOffset: [{
|
522
|
+
type: Input
|
523
|
+
}], emojiIsNative: [{
|
524
|
+
type: Input
|
525
|
+
}], emojiSkin: [{
|
526
|
+
type: Input
|
527
|
+
}], emojiSize: [{
|
528
|
+
type: Input
|
529
|
+
}], emojiSet: [{
|
530
|
+
type: Input
|
531
|
+
}], emojiSheetSize: [{
|
532
|
+
type: Input
|
533
|
+
}], emojiForceSize: [{
|
534
|
+
type: Input
|
535
|
+
}], emojiTooltip: [{
|
536
|
+
type: Input
|
537
|
+
}], emojiBackgroundImageFn: [{
|
538
|
+
type: Input
|
539
|
+
}], emojiImageUrlFn: [{
|
540
|
+
type: Input
|
541
|
+
}], emojiUseButton: [{
|
542
|
+
type: Input
|
543
|
+
}], emojiOver: [{
|
544
|
+
type: Output
|
545
|
+
}], emojiLeave: [{
|
546
|
+
type: Output
|
547
|
+
}], emojiClick: [{
|
548
|
+
type: Output
|
549
|
+
}], container: [{
|
550
|
+
type: ViewChild,
|
551
|
+
args: ['container', { static: true }]
|
552
|
+
}], label: [{
|
553
|
+
type: ViewChild,
|
554
|
+
args: ['label', { static: true }]
|
555
|
+
}] } });
|
416
556
|
|
417
557
|
function uniq(arr) {
|
418
558
|
return arr.reduce((acc, item) => {
|
@@ -610,13 +750,117 @@ class EmojiSearch {
|
|
610
750
|
return search.join(',');
|
611
751
|
}
|
612
752
|
}
|
613
|
-
EmojiSearch.ɵ
|
614
|
-
EmojiSearch
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
753
|
+
EmojiSearch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiSearch, deps: [{ token: i1.EmojiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
754
|
+
EmojiSearch.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiSearch, providedIn: 'root' });
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiSearch, decorators: [{
|
756
|
+
type: Injectable,
|
757
|
+
args: [{ providedIn: 'root' }]
|
758
|
+
}], ctorParameters: function () { return [{ type: i1.EmojiService }]; } });
|
759
|
+
|
760
|
+
class SkinComponent {
|
761
|
+
constructor() {
|
762
|
+
this.changeSkin = new EventEmitter();
|
763
|
+
this.opened = false;
|
764
|
+
this.skinTones = [1, 2, 3, 4, 5, 6];
|
765
|
+
}
|
766
|
+
toggleOpen() {
|
767
|
+
this.opened = !this.opened;
|
768
|
+
}
|
769
|
+
isSelected(skinTone) {
|
770
|
+
return skinTone === this.skin;
|
771
|
+
}
|
772
|
+
isVisible(skinTone) {
|
773
|
+
return this.opened || this.isSelected(skinTone);
|
774
|
+
}
|
775
|
+
pressed(skinTone) {
|
776
|
+
return this.opened ? !!this.isSelected(skinTone) : '';
|
777
|
+
}
|
778
|
+
tabIndex(skinTone) {
|
779
|
+
return this.isVisible(skinTone) ? '0' : '';
|
780
|
+
}
|
781
|
+
expanded(skinTone) {
|
782
|
+
return this.isSelected(skinTone) ? this.opened : '';
|
783
|
+
}
|
784
|
+
handleClick(skin) {
|
785
|
+
if (!this.opened) {
|
786
|
+
this.opened = true;
|
787
|
+
return;
|
788
|
+
}
|
789
|
+
this.opened = false;
|
790
|
+
if (skin !== this.skin) {
|
791
|
+
this.changeSkin.emit(skin);
|
792
|
+
}
|
793
|
+
}
|
794
|
+
}
|
795
|
+
SkinComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SkinComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
796
|
+
SkinComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: SkinComponent, selector: "emoji-skins", inputs: { skin: "skin", i18n: "i18n" }, outputs: { changeSkin: "changeSkin" }, ngImport: i0, template: `
|
797
|
+
<section
|
798
|
+
class="emoji-mart-skin-swatches"
|
799
|
+
[class.opened]="opened"
|
800
|
+
>
|
801
|
+
<span
|
802
|
+
*ngFor="let skinTone of skinTones"
|
803
|
+
class="emoji-mart-skin-swatch"
|
804
|
+
[class.selected]="skinTone === skin"
|
805
|
+
>
|
806
|
+
<span
|
807
|
+
(click)="handleClick(skinTone)"
|
808
|
+
(keyup.enter)="handleClick(skinTone)"
|
809
|
+
(keyup.space)="handleClick(skinTone)"
|
810
|
+
class="emoji-mart-skin emoji-mart-skin-tone-{{ skinTone }}"
|
811
|
+
role="button"
|
812
|
+
[tabIndex]="tabIndex(skinTone)"
|
813
|
+
[attr.aria-hidden]="!isVisible(skinTone)"
|
814
|
+
[attr.aria-pressed]="pressed(skinTone)"
|
815
|
+
[attr.aria-haspopup]="!!isSelected(skinTone)"
|
816
|
+
[attr.aria-expanded]="expanded(skinTone)"
|
817
|
+
[attr.aria-label]="i18n.skintones[skinTone]"
|
818
|
+
[title]="i18n.skintones[skinTone]"
|
819
|
+
></span>
|
820
|
+
</span>
|
821
|
+
</section>
|
822
|
+
`, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SkinComponent, decorators: [{
|
824
|
+
type: Component,
|
825
|
+
args: [{
|
826
|
+
selector: 'emoji-skins',
|
827
|
+
template: `
|
828
|
+
<section
|
829
|
+
class="emoji-mart-skin-swatches"
|
830
|
+
[class.opened]="opened"
|
831
|
+
>
|
832
|
+
<span
|
833
|
+
*ngFor="let skinTone of skinTones"
|
834
|
+
class="emoji-mart-skin-swatch"
|
835
|
+
[class.selected]="skinTone === skin"
|
836
|
+
>
|
837
|
+
<span
|
838
|
+
(click)="handleClick(skinTone)"
|
839
|
+
(keyup.enter)="handleClick(skinTone)"
|
840
|
+
(keyup.space)="handleClick(skinTone)"
|
841
|
+
class="emoji-mart-skin emoji-mart-skin-tone-{{ skinTone }}"
|
842
|
+
role="button"
|
843
|
+
[tabIndex]="tabIndex(skinTone)"
|
844
|
+
[attr.aria-hidden]="!isVisible(skinTone)"
|
845
|
+
[attr.aria-pressed]="pressed(skinTone)"
|
846
|
+
[attr.aria-haspopup]="!!isSelected(skinTone)"
|
847
|
+
[attr.aria-expanded]="expanded(skinTone)"
|
848
|
+
[attr.aria-label]="i18n.skintones[skinTone]"
|
849
|
+
[title]="i18n.skintones[skinTone]"
|
850
|
+
></span>
|
851
|
+
</span>
|
852
|
+
</section>
|
853
|
+
`,
|
854
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
855
|
+
preserveWhitespaces: false,
|
856
|
+
}]
|
857
|
+
}], propDecorators: { skin: [{
|
858
|
+
type: Input
|
859
|
+
}], i18n: [{
|
860
|
+
type: Input
|
861
|
+
}], changeSkin: [{
|
862
|
+
type: Output
|
863
|
+
}] } });
|
620
864
|
|
621
865
|
class PreviewComponent {
|
622
866
|
constructor(ref, emojiService) {
|
@@ -645,10 +889,8 @@ class PreviewComponent {
|
|
645
889
|
(_a = this.ref) === null || _a === void 0 ? void 0 : _a.detectChanges();
|
646
890
|
}
|
647
891
|
}
|
648
|
-
PreviewComponent
|
649
|
-
|
650
|
-
selector: 'emoji-preview',
|
651
|
-
template: `
|
892
|
+
PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PreviewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.EmojiService }], target: i0.ɵɵFactoryTarget.Component });
|
893
|
+
PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: PreviewComponent, selector: "emoji-preview", inputs: { title: "title", emoji: "emoji", idleEmoji: "idleEmoji", i18n: "i18n", emojiIsNative: "emojiIsNative", emojiSkin: "emojiSkin", emojiSize: "emojiSize", emojiSet: "emojiSet", emojiSheetSize: "emojiSheetSize", emojiBackgroundImageFn: "emojiBackgroundImageFn", emojiImageUrlFn: "emojiImageUrlFn" }, outputs: { skinChange: "skinChange" }, usesOnChanges: true, ngImport: i0, template: `
|
652
894
|
<div class="emoji-mart-preview" *ngIf="emoji && emojiData">
|
653
895
|
<div class="emoji-mart-preview-emoji">
|
654
896
|
<ngx-emoji
|
@@ -682,7 +924,7 @@ PreviewComponent.decorators = [
|
|
682
924
|
</div>
|
683
925
|
</div>
|
684
926
|
|
685
|
-
<div class="emoji-mart-preview"
|
927
|
+
<div class="emoji-mart-preview" [hidden]="emoji">
|
686
928
|
<div class="emoji-mart-preview-emoji">
|
687
929
|
<ngx-emoji
|
688
930
|
*ngIf="idleEmoji && idleEmoji.length"
|
@@ -701,33 +943,107 @@ PreviewComponent.decorators = [
|
|
701
943
|
</div>
|
702
944
|
|
703
945
|
<div class="emoji-mart-preview-skins">
|
704
|
-
<emoji-skins
|
705
|
-
|
946
|
+
<emoji-skins
|
947
|
+
[skin]="emojiSkin"
|
948
|
+
(changeSkin)="skinChange.emit($event)"
|
949
|
+
[i18n]="i18n"
|
950
|
+
></emoji-skins>
|
951
|
+
</div>
|
952
|
+
</div>
|
953
|
+
`, isInline: true, components: [{ type: i1.EmojiComponent, selector: "ngx-emoji", inputs: ["skin", "set", "sheetSize", "isNative", "forceSize", "tooltip", "size", "emoji", "fallback", "hideObsolete", "sheetRows", "sheetColumns", "useButton", "backgroundImageFn", "imageUrlFn"], outputs: ["emojiOver", "emojiLeave", "emojiClick"] }, { type: SkinComponent, selector: "emoji-skins", inputs: ["skin", "i18n"], outputs: ["changeSkin"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PreviewComponent, decorators: [{
|
955
|
+
type: Component,
|
956
|
+
args: [{
|
957
|
+
selector: 'emoji-preview',
|
958
|
+
template: `
|
959
|
+
<div class="emoji-mart-preview" *ngIf="emoji && emojiData">
|
960
|
+
<div class="emoji-mart-preview-emoji">
|
961
|
+
<ngx-emoji
|
962
|
+
[emoji]="emoji"
|
963
|
+
[size]="38"
|
964
|
+
[isNative]="emojiIsNative"
|
965
|
+
[skin]="emojiSkin"
|
966
|
+
[size]="emojiSize"
|
967
|
+
[set]="emojiSet"
|
968
|
+
[sheetSize]="emojiSheetSize"
|
969
|
+
[backgroundImageFn]="emojiBackgroundImageFn"
|
970
|
+
[imageUrlFn]="emojiImageUrlFn"
|
971
|
+
></ngx-emoji>
|
972
|
+
</div>
|
973
|
+
|
974
|
+
<div class="emoji-mart-preview-data">
|
975
|
+
<div class="emoji-mart-preview-name">{{ emojiData.name }}</div>
|
976
|
+
<div class="emoji-mart-preview-shortname">
|
977
|
+
<span
|
978
|
+
class="emoji-mart-preview-shortname"
|
979
|
+
*ngFor="let short_name of emojiData.shortNames"
|
980
|
+
>
|
981
|
+
:{{ short_name }}:
|
982
|
+
</span>
|
983
|
+
</div>
|
984
|
+
<div class="emoji-mart-preview-emoticons">
|
985
|
+
<span class="emoji-mart-preview-emoticon" *ngFor="let emoticon of listedEmoticons">
|
986
|
+
{{ emoticon }}
|
987
|
+
</span>
|
988
|
+
</div>
|
989
|
+
</div>
|
990
|
+
</div>
|
991
|
+
|
992
|
+
<div class="emoji-mart-preview" [hidden]="emoji">
|
993
|
+
<div class="emoji-mart-preview-emoji">
|
994
|
+
<ngx-emoji
|
995
|
+
*ngIf="idleEmoji && idleEmoji.length"
|
996
|
+
[isNative]="emojiIsNative"
|
997
|
+
[skin]="emojiSkin"
|
998
|
+
[set]="emojiSet"
|
999
|
+
[emoji]="idleEmoji"
|
1000
|
+
[backgroundImageFn]="emojiBackgroundImageFn"
|
1001
|
+
[size]="38"
|
1002
|
+
[imageUrlFn]="emojiImageUrlFn"
|
1003
|
+
></ngx-emoji>
|
1004
|
+
</div>
|
1005
|
+
|
1006
|
+
<div class="emoji-mart-preview-data">
|
1007
|
+
<span class="emoji-mart-title-label">{{ title }}</span>
|
1008
|
+
</div>
|
1009
|
+
|
1010
|
+
<div class="emoji-mart-preview-skins">
|
1011
|
+
<emoji-skins
|
1012
|
+
[skin]="emojiSkin"
|
1013
|
+
(changeSkin)="skinChange.emit($event)"
|
1014
|
+
[i18n]="i18n"
|
1015
|
+
></emoji-skins>
|
706
1016
|
</div>
|
707
1017
|
</div>
|
708
1018
|
`,
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
];
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
]
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
}
|
1019
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1020
|
+
preserveWhitespaces: false,
|
1021
|
+
}]
|
1022
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.EmojiService }]; }, propDecorators: { title: [{
|
1023
|
+
type: Input
|
1024
|
+
}], emoji: [{
|
1025
|
+
type: Input
|
1026
|
+
}], idleEmoji: [{
|
1027
|
+
type: Input
|
1028
|
+
}], i18n: [{
|
1029
|
+
type: Input
|
1030
|
+
}], emojiIsNative: [{
|
1031
|
+
type: Input
|
1032
|
+
}], emojiSkin: [{
|
1033
|
+
type: Input
|
1034
|
+
}], emojiSize: [{
|
1035
|
+
type: Input
|
1036
|
+
}], emojiSet: [{
|
1037
|
+
type: Input
|
1038
|
+
}], emojiSheetSize: [{
|
1039
|
+
type: Input
|
1040
|
+
}], emojiBackgroundImageFn: [{
|
1041
|
+
type: Input
|
1042
|
+
}], emojiImageUrlFn: [{
|
1043
|
+
type: Input
|
1044
|
+
}], skinChange: [{
|
1045
|
+
type: Output
|
1046
|
+
}] } });
|
731
1047
|
|
732
1048
|
let id = 0;
|
733
1049
|
class SearchComponent {
|
@@ -780,10 +1096,51 @@ class SearchComponent {
|
|
780
1096
|
this.handleSearch(this.query);
|
781
1097
|
}
|
782
1098
|
}
|
783
|
-
SearchComponent
|
784
|
-
|
785
|
-
|
786
|
-
|
1099
|
+
SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SearchComponent, deps: [{ token: EmojiSearch }], target: i0.ɵɵFactoryTarget.Component });
|
1100
|
+
SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: SearchComponent, selector: "emoji-search", inputs: { maxResults: "maxResults", autoFocus: "autoFocus", i18n: "i18n", include: "include", exclude: "exclude", custom: "custom", icons: "icons", emojisToShowFilter: "emojisToShowFilter" }, outputs: { searchResults: "searchResults", enterKey: "enterKey" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }], ngImport: i0, template: `
|
1101
|
+
<div class="emoji-mart-search">
|
1102
|
+
<input
|
1103
|
+
[id]="inputId"
|
1104
|
+
#inputRef
|
1105
|
+
type="search"
|
1106
|
+
(keyup.enter)="handleEnterKey($event)"
|
1107
|
+
[placeholder]="i18n.search"
|
1108
|
+
[autofocus]="autoFocus"
|
1109
|
+
[(ngModel)]="query"
|
1110
|
+
(ngModelChange)="handleChange()"
|
1111
|
+
/>
|
1112
|
+
<!--
|
1113
|
+
Use a <label> in addition to the placeholder for accessibility, but place it off-screen
|
1114
|
+
http://www.maxability.co.in/2016/01/placeholder-attribute-and-why-it-is-not-accessible/
|
1115
|
+
-->
|
1116
|
+
<label class="emoji-mart-sr-only" [htmlFor]="inputId">
|
1117
|
+
{{ i18n.search }}
|
1118
|
+
</label>
|
1119
|
+
<button
|
1120
|
+
type="button"
|
1121
|
+
class="emoji-mart-search-icon"
|
1122
|
+
(click)="clear()"
|
1123
|
+
(keyup.enter)="clear()"
|
1124
|
+
[disabled]="!isSearching"
|
1125
|
+
[attr.aria-label]="i18n.clear"
|
1126
|
+
>
|
1127
|
+
<svg
|
1128
|
+
xmlns="http://www.w3.org/2000/svg"
|
1129
|
+
viewBox="0 0 20 20"
|
1130
|
+
width="13"
|
1131
|
+
height="13"
|
1132
|
+
opacity="0.5"
|
1133
|
+
>
|
1134
|
+
<path [attr.d]="icon" />
|
1135
|
+
</svg>
|
1136
|
+
</button>
|
1137
|
+
</div>
|
1138
|
+
`, isInline: true, directives: [{ type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
1139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: SearchComponent, decorators: [{
|
1140
|
+
type: Component,
|
1141
|
+
args: [{
|
1142
|
+
selector: 'emoji-search',
|
1143
|
+
template: `
|
787
1144
|
<div class="emoji-mart-search">
|
788
1145
|
<input
|
789
1146
|
[id]="inputId"
|
@@ -822,25 +1179,32 @@ SearchComponent.decorators = [
|
|
822
1179
|
</button>
|
823
1180
|
</div>
|
824
1181
|
`,
|
825
|
-
|
826
|
-
|
827
|
-
];
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
}
|
1182
|
+
preserveWhitespaces: false,
|
1183
|
+
}]
|
1184
|
+
}], ctorParameters: function () { return [{ type: EmojiSearch }]; }, propDecorators: { maxResults: [{
|
1185
|
+
type: Input
|
1186
|
+
}], autoFocus: [{
|
1187
|
+
type: Input
|
1188
|
+
}], i18n: [{
|
1189
|
+
type: Input
|
1190
|
+
}], include: [{
|
1191
|
+
type: Input
|
1192
|
+
}], exclude: [{
|
1193
|
+
type: Input
|
1194
|
+
}], custom: [{
|
1195
|
+
type: Input
|
1196
|
+
}], icons: [{
|
1197
|
+
type: Input
|
1198
|
+
}], emojisToShowFilter: [{
|
1199
|
+
type: Input
|
1200
|
+
}], searchResults: [{
|
1201
|
+
type: Output
|
1202
|
+
}], enterKey: [{
|
1203
|
+
type: Output
|
1204
|
+
}], inputRef: [{
|
1205
|
+
type: ViewChild,
|
1206
|
+
args: ['inputRef', { static: true }]
|
1207
|
+
}] } });
|
844
1208
|
|
845
1209
|
/* eslint-disable max-len */
|
846
1210
|
const categories = {
|
@@ -1062,7 +1426,8 @@ class PickerComponent {
|
|
1062
1426
|
});
|
1063
1427
|
}
|
1064
1428
|
ngOnDestroy() {
|
1065
|
-
|
1429
|
+
var _a;
|
1430
|
+
(_a = this.scrollListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
1066
1431
|
// This is called here because the component might be destroyed
|
1067
1432
|
// but there will still be a `requestAnimationFrame` callback in the queue
|
1068
1433
|
// that calls `detectChanges()` on the `ViewRef`. This will lead to a runtime
|
@@ -1198,7 +1563,7 @@ class PickerComponent {
|
|
1198
1563
|
}
|
1199
1564
|
const component = this.categoryRefs.toArray()[1];
|
1200
1565
|
if (component && this.enableFrequentEmojiSort) {
|
1201
|
-
component.
|
1566
|
+
component.updateRecentEmojis();
|
1202
1567
|
component.ref.markForCheck();
|
1203
1568
|
}
|
1204
1569
|
}
|
@@ -1249,169 +1614,149 @@ class PickerComponent {
|
|
1249
1614
|
}
|
1250
1615
|
}
|
1251
1616
|
}
|
1252
|
-
PickerComponent
|
1253
|
-
{ type:
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
{
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
]
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
}
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
class="emoji-mart-skin-swatches"
|
1354
|
-
[class.opened]="opened"
|
1355
|
-
>
|
1356
|
-
<span
|
1357
|
-
*ngFor="let skinTone of skinTones"
|
1358
|
-
class="emoji-mart-skin-swatch"
|
1359
|
-
[class.selected]="skinTone === skin"
|
1360
|
-
>
|
1361
|
-
<span
|
1362
|
-
(click)="this.handleClick(skinTone)"
|
1363
|
-
(keyup.enter)="handleClick(skinTone)"
|
1364
|
-
(keyup.space)="handleClick(skinTone)"
|
1365
|
-
class="emoji-mart-skin emoji-mart-skin-tone-{{ skinTone }}"
|
1366
|
-
role="button"
|
1367
|
-
[tabIndex]="tabIndex(skinTone)"
|
1368
|
-
[attr.aria-hidden]="!isVisible(skinTone)"
|
1369
|
-
[attr.aria-pressed]="pressed(skinTone)"
|
1370
|
-
[attr.aria-haspopup]="!!isSelected(skinTone)"
|
1371
|
-
[attr.aria-expanded]="expanded(skinTone)"
|
1372
|
-
[attr.aria-label]="i18n.skintones[skinTone]"
|
1373
|
-
[title]="i18n.skintones[skinTone]"
|
1374
|
-
></span>
|
1375
|
-
</span>
|
1376
|
-
</section>
|
1377
|
-
`,
|
1378
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1379
|
-
preserveWhitespaces: false
|
1380
|
-
},] }
|
1381
|
-
];
|
1382
|
-
SkinComponent.propDecorators = {
|
1383
|
-
skin: [{ type: Input }],
|
1384
|
-
i18n: [{ type: Input }],
|
1385
|
-
changeSkin: [{ type: Output }]
|
1386
|
-
};
|
1617
|
+
PickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: EmojiFrequentlyService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|
1618
|
+
PickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: PickerComponent, selector: "emoji-mart", inputs: { perLine: "perLine", totalFrequentLines: "totalFrequentLines", i18n: "i18n", style: "style", title: "title", emoji: "emoji", darkMode: "darkMode", color: "color", hideObsolete: "hideObsolete", categories: "categories", activeCategories: "activeCategories", set: "set", skin: "skin", isNative: "isNative", emojiSize: "emojiSize", sheetSize: "sheetSize", emojisToShowFilter: "emojisToShowFilter", showPreview: "showPreview", emojiTooltip: "emojiTooltip", autoFocus: "autoFocus", custom: "custom", hideRecent: "hideRecent", imageUrlFn: "imageUrlFn", include: "include", exclude: "exclude", notFoundEmoji: "notFoundEmoji", categoriesIcons: "categoriesIcons", searchIcons: "searchIcons", useButton: "useButton", enableFrequentEmojiSort: "enableFrequentEmojiSort", enableSearch: "enableSearch", showSingleCategory: "showSingleCategory", virtualize: "virtualize", virtualizeOffset: "virtualizeOffset", recent: "recent", backgroundImageFn: "backgroundImageFn" }, outputs: { emojiClick: "emojiClick", emojiSelect: "emojiSelect", skinChange: "skinChange" }, viewQueries: [{ propertyName: "scrollRef", first: true, predicate: ["scrollRef"], descendants: true, static: true }, { propertyName: "previewRef", first: true, predicate: PreviewComponent, descendants: true }, { propertyName: "searchRef", first: true, predicate: SearchComponent, descendants: true }, { propertyName: "categoryRefs", predicate: CategoryComponent, descendants: true }], ngImport: i0, template: "<section\n class=\"emoji-mart {{ darkMode ? 'emoji-mart-dark' : '' }}\"\n [style.width]=\"getWidth()\"\n [ngStyle]=\"style\"\n>\n <div class=\"emoji-mart-bar\">\n <emoji-mart-anchors\n [categories]=\"categories\"\n (anchorClick)=\"handleAnchorClick($event)\"\n [color]=\"color\"\n [selected]=\"selected\"\n [i18n]=\"i18n\"\n [icons]=\"categoriesIcons\"\n ></emoji-mart-anchors>\n </div>\n <emoji-search\n *ngIf=\"enableSearch\"\n [i18n]=\"i18n\"\n (searchResults)=\"handleSearch($event)\"\n (enterKey)=\"handleEnterKey($event)\"\n [include]=\"include\"\n [exclude]=\"exclude\"\n [custom]=\"custom\"\n [autoFocus]=\"autoFocus\"\n [icons]=\"searchIcons\"\n [emojisToShowFilter]=\"emojisToShowFilter\"\n ></emoji-search>\n <section #scrollRef class=\"emoji-mart-scroll\" [attr.aria-label]=\"i18n.emojilist\">\n <emoji-category\n *ngFor=\"let category of activeCategories; let idx = index; trackBy: categoryTrack\"\n [id]=\"category.id\"\n [name]=\"category.name\"\n [emojis]=\"category.emojis\"\n [perLine]=\"perLine\"\n [totalFrequentLines]=\"totalFrequentLines\"\n [hasStickyPosition]=\"isNative\"\n [i18n]=\"i18n\"\n [hideObsolete]=\"hideObsolete\"\n [notFoundEmoji]=\"notFoundEmoji\"\n [custom]=\"category.id === RECENT_CATEGORY.id ? CUSTOM_CATEGORY.emojis : undefined\"\n [recent]=\"category.id === RECENT_CATEGORY.id ? recent : undefined\"\n [virtualize]=\"virtualize\"\n [virtualizeOffset]=\"virtualizeOffset\"\n [emojiIsNative]=\"isNative\"\n [emojiSkin]=\"skin\"\n [emojiSize]=\"emojiSize\"\n [emojiSet]=\"set\"\n [emojiSheetSize]=\"sheetSize\"\n [emojiForceSize]=\"isNative\"\n [emojiTooltip]=\"emojiTooltip\"\n [emojiBackgroundImageFn]=\"backgroundImageFn\"\n [emojiImageUrlFn]=\"imageUrlFn\"\n [emojiUseButton]=\"useButton\"\n (emojiOver)=\"handleEmojiOver($event)\"\n (emojiLeave)=\"handleEmojiLeave()\"\n (emojiClick)=\"handleEmojiClick($event)\"\n ></emoji-category>\n </section>\n <div class=\"emoji-mart-bar\" *ngIf=\"showPreview\">\n <emoji-preview\n [title]=\"title\"\n [emoji]=\"previewEmoji\"\n [idleEmoji]=\"emoji\"\n [emojiIsNative]=\"isNative\"\n [emojiSize]=\"38\"\n [emojiSkin]=\"skin\"\n [emojiSet]=\"set\"\n [i18n]=\"i18n\"\n [emojiSheetSize]=\"sheetSize\"\n [emojiBackgroundImageFn]=\"backgroundImageFn\"\n [emojiImageUrlFn]=\"imageUrlFn\"\n (skinChange)=\"handleSkinChange($event)\"\n ></emoji-preview>\n </div>\n</section>\n", components: [{ type: AnchorsComponent, selector: "emoji-mart-anchors", inputs: ["categories", "color", "selected", "i18n", "icons"], outputs: ["anchorClick"] }, { type: SearchComponent, selector: "emoji-search", inputs: ["maxResults", "autoFocus", "i18n", "include", "exclude", "custom", "icons", "emojisToShowFilter"], outputs: ["searchResults", "enterKey"] }, { type: CategoryComponent, selector: "emoji-category", inputs: ["emojis", "hasStickyPosition", "name", "perLine", "totalFrequentLines", "recent", "custom", "i18n", "id", "hideObsolete", "notFoundEmoji", "virtualize", "virtualizeOffset", "emojiIsNative", "emojiSkin", "emojiSize", "emojiSet", "emojiSheetSize", "emojiForceSize", "emojiTooltip", "emojiBackgroundImageFn", "emojiImageUrlFn", "emojiUseButton"], outputs: ["emojiOver", "emojiLeave", "emojiClick"] }, { type: PreviewComponent, selector: "emoji-preview", inputs: ["title", "emoji", "idleEmoji", "i18n", "emojiIsNative", "emojiSkin", "emojiSize", "emojiSet", "emojiSheetSize", "emojiBackgroundImageFn", "emojiImageUrlFn"], outputs: ["skinChange"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerComponent, decorators: [{
|
1620
|
+
type: Component,
|
1621
|
+
args: [{ selector: 'emoji-mart', changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "<section\n class=\"emoji-mart {{ darkMode ? 'emoji-mart-dark' : '' }}\"\n [style.width]=\"getWidth()\"\n [ngStyle]=\"style\"\n>\n <div class=\"emoji-mart-bar\">\n <emoji-mart-anchors\n [categories]=\"categories\"\n (anchorClick)=\"handleAnchorClick($event)\"\n [color]=\"color\"\n [selected]=\"selected\"\n [i18n]=\"i18n\"\n [icons]=\"categoriesIcons\"\n ></emoji-mart-anchors>\n </div>\n <emoji-search\n *ngIf=\"enableSearch\"\n [i18n]=\"i18n\"\n (searchResults)=\"handleSearch($event)\"\n (enterKey)=\"handleEnterKey($event)\"\n [include]=\"include\"\n [exclude]=\"exclude\"\n [custom]=\"custom\"\n [autoFocus]=\"autoFocus\"\n [icons]=\"searchIcons\"\n [emojisToShowFilter]=\"emojisToShowFilter\"\n ></emoji-search>\n <section #scrollRef class=\"emoji-mart-scroll\" [attr.aria-label]=\"i18n.emojilist\">\n <emoji-category\n *ngFor=\"let category of activeCategories; let idx = index; trackBy: categoryTrack\"\n [id]=\"category.id\"\n [name]=\"category.name\"\n [emojis]=\"category.emojis\"\n [perLine]=\"perLine\"\n [totalFrequentLines]=\"totalFrequentLines\"\n [hasStickyPosition]=\"isNative\"\n [i18n]=\"i18n\"\n [hideObsolete]=\"hideObsolete\"\n [notFoundEmoji]=\"notFoundEmoji\"\n [custom]=\"category.id === RECENT_CATEGORY.id ? CUSTOM_CATEGORY.emojis : undefined\"\n [recent]=\"category.id === RECENT_CATEGORY.id ? recent : undefined\"\n [virtualize]=\"virtualize\"\n [virtualizeOffset]=\"virtualizeOffset\"\n [emojiIsNative]=\"isNative\"\n [emojiSkin]=\"skin\"\n [emojiSize]=\"emojiSize\"\n [emojiSet]=\"set\"\n [emojiSheetSize]=\"sheetSize\"\n [emojiForceSize]=\"isNative\"\n [emojiTooltip]=\"emojiTooltip\"\n [emojiBackgroundImageFn]=\"backgroundImageFn\"\n [emojiImageUrlFn]=\"imageUrlFn\"\n [emojiUseButton]=\"useButton\"\n (emojiOver)=\"handleEmojiOver($event)\"\n (emojiLeave)=\"handleEmojiLeave()\"\n (emojiClick)=\"handleEmojiClick($event)\"\n ></emoji-category>\n </section>\n <div class=\"emoji-mart-bar\" *ngIf=\"showPreview\">\n <emoji-preview\n [title]=\"title\"\n [emoji]=\"previewEmoji\"\n [idleEmoji]=\"emoji\"\n [emojiIsNative]=\"isNative\"\n [emojiSize]=\"38\"\n [emojiSkin]=\"skin\"\n [emojiSet]=\"set\"\n [i18n]=\"i18n\"\n [emojiSheetSize]=\"sheetSize\"\n [emojiBackgroundImageFn]=\"backgroundImageFn\"\n [emojiImageUrlFn]=\"imageUrlFn\"\n (skinChange)=\"handleSkinChange($event)\"\n ></emoji-preview>\n </div>\n</section>\n" }]
|
1622
|
+
}], ctorParameters: function () {
|
1623
|
+
return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: EmojiFrequentlyService }, { type: undefined, decorators: [{
|
1624
|
+
type: Inject,
|
1625
|
+
args: [PLATFORM_ID]
|
1626
|
+
}] }];
|
1627
|
+
}, propDecorators: { perLine: [{
|
1628
|
+
type: Input
|
1629
|
+
}], totalFrequentLines: [{
|
1630
|
+
type: Input
|
1631
|
+
}], i18n: [{
|
1632
|
+
type: Input
|
1633
|
+
}], style: [{
|
1634
|
+
type: Input
|
1635
|
+
}], title: [{
|
1636
|
+
type: Input
|
1637
|
+
}], emoji: [{
|
1638
|
+
type: Input
|
1639
|
+
}], darkMode: [{
|
1640
|
+
type: Input
|
1641
|
+
}], color: [{
|
1642
|
+
type: Input
|
1643
|
+
}], hideObsolete: [{
|
1644
|
+
type: Input
|
1645
|
+
}], categories: [{
|
1646
|
+
type: Input
|
1647
|
+
}], activeCategories: [{
|
1648
|
+
type: Input
|
1649
|
+
}], set: [{
|
1650
|
+
type: Input
|
1651
|
+
}], skin: [{
|
1652
|
+
type: Input
|
1653
|
+
}], isNative: [{
|
1654
|
+
type: Input
|
1655
|
+
}], emojiSize: [{
|
1656
|
+
type: Input
|
1657
|
+
}], sheetSize: [{
|
1658
|
+
type: Input
|
1659
|
+
}], emojisToShowFilter: [{
|
1660
|
+
type: Input
|
1661
|
+
}], showPreview: [{
|
1662
|
+
type: Input
|
1663
|
+
}], emojiTooltip: [{
|
1664
|
+
type: Input
|
1665
|
+
}], autoFocus: [{
|
1666
|
+
type: Input
|
1667
|
+
}], custom: [{
|
1668
|
+
type: Input
|
1669
|
+
}], hideRecent: [{
|
1670
|
+
type: Input
|
1671
|
+
}], imageUrlFn: [{
|
1672
|
+
type: Input
|
1673
|
+
}], include: [{
|
1674
|
+
type: Input
|
1675
|
+
}], exclude: [{
|
1676
|
+
type: Input
|
1677
|
+
}], notFoundEmoji: [{
|
1678
|
+
type: Input
|
1679
|
+
}], categoriesIcons: [{
|
1680
|
+
type: Input
|
1681
|
+
}], searchIcons: [{
|
1682
|
+
type: Input
|
1683
|
+
}], useButton: [{
|
1684
|
+
type: Input
|
1685
|
+
}], enableFrequentEmojiSort: [{
|
1686
|
+
type: Input
|
1687
|
+
}], enableSearch: [{
|
1688
|
+
type: Input
|
1689
|
+
}], showSingleCategory: [{
|
1690
|
+
type: Input
|
1691
|
+
}], virtualize: [{
|
1692
|
+
type: Input
|
1693
|
+
}], virtualizeOffset: [{
|
1694
|
+
type: Input
|
1695
|
+
}], recent: [{
|
1696
|
+
type: Input
|
1697
|
+
}], emojiClick: [{
|
1698
|
+
type: Output
|
1699
|
+
}], emojiSelect: [{
|
1700
|
+
type: Output
|
1701
|
+
}], skinChange: [{
|
1702
|
+
type: Output
|
1703
|
+
}], scrollRef: [{
|
1704
|
+
type: ViewChild,
|
1705
|
+
args: ['scrollRef', { static: true }]
|
1706
|
+
}], previewRef: [{
|
1707
|
+
type: ViewChild,
|
1708
|
+
args: [PreviewComponent, { static: false }]
|
1709
|
+
}], searchRef: [{
|
1710
|
+
type: ViewChild,
|
1711
|
+
args: [SearchComponent, { static: false }]
|
1712
|
+
}], categoryRefs: [{
|
1713
|
+
type: ViewChildren,
|
1714
|
+
args: [CategoryComponent]
|
1715
|
+
}], backgroundImageFn: [{
|
1716
|
+
type: Input
|
1717
|
+
}] } });
|
1387
1718
|
|
1388
1719
|
class PickerModule {
|
1389
1720
|
}
|
1390
|
-
PickerModule
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1721
|
+
PickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1722
|
+
PickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerModule, declarations: [PickerComponent,
|
1723
|
+
AnchorsComponent,
|
1724
|
+
CategoryComponent,
|
1725
|
+
SearchComponent,
|
1726
|
+
PreviewComponent,
|
1727
|
+
SkinComponent], imports: [CommonModule, FormsModule, EmojiModule], exports: [PickerComponent,
|
1728
|
+
AnchorsComponent,
|
1729
|
+
CategoryComponent,
|
1730
|
+
SearchComponent,
|
1731
|
+
PreviewComponent,
|
1732
|
+
SkinComponent] });
|
1733
|
+
PickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerModule, imports: [[CommonModule, FormsModule, EmojiModule]] });
|
1734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PickerModule, decorators: [{
|
1735
|
+
type: NgModule,
|
1736
|
+
args: [{
|
1737
|
+
imports: [CommonModule, FormsModule, EmojiModule],
|
1738
|
+
exports: [
|
1739
|
+
PickerComponent,
|
1740
|
+
AnchorsComponent,
|
1741
|
+
CategoryComponent,
|
1742
|
+
SearchComponent,
|
1743
|
+
PreviewComponent,
|
1744
|
+
SkinComponent,
|
1745
|
+
],
|
1746
|
+
declarations: [
|
1747
|
+
PickerComponent,
|
1748
|
+
AnchorsComponent,
|
1749
|
+
CategoryComponent,
|
1750
|
+
SearchComponent,
|
1751
|
+
PreviewComponent,
|
1752
|
+
SkinComponent,
|
1753
|
+
],
|
1754
|
+
}]
|
1755
|
+
}] });
|
1411
1756
|
|
1412
1757
|
/**
|
1413
1758
|
* Generated bundle index. Do not edit.
|
1414
1759
|
*/
|
1415
1760
|
|
1416
1761
|
export { AnchorsComponent, CategoryComponent, EmojiFrequentlyService, EmojiSearch, PickerComponent, PickerModule, PreviewComponent, SearchComponent, SkinComponent };
|
1417
|
-
//# sourceMappingURL=ctrl-ngx-emoji-mart.
|
1762
|
+
//# sourceMappingURL=ctrl-ngx-emoji-mart.mjs.map
|