@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.
Files changed (67) hide show
  1. package/README.md +3 -3
  2. package/anchors.component.d.ts +3 -0
  3. package/category.component.d.ts +7 -2
  4. package/ctrl-ngx-emoji-mart.d.ts +1 -0
  5. package/emoji-frequently.service.d.ts +3 -0
  6. package/emoji-search.service.d.ts +3 -0
  7. package/esm2020/anchors.component.mjs +83 -0
  8. package/esm2020/category.component.mjs +386 -0
  9. package/{esm2015/ctrl-ngx-emoji-mart.js → esm2020/ctrl-ngx-emoji-mart.mjs} +0 -0
  10. package/{esm2015/emoji-frequently.service.js → esm2020/emoji-frequently.service.mjs} +10 -8
  11. package/esm2020/emoji-search.service.mjs +177 -0
  12. package/{esm2015/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.js → esm2020/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.mjs} +0 -0
  13. package/{esm2015/ngx-emoji/data/categories.js → esm2020/ngx-emoji/data/categories.mjs} +0 -0
  14. package/{esm2015/ngx-emoji/data/data.interfaces.js → esm2020/ngx-emoji/data/data.interfaces.mjs} +0 -0
  15. package/{esm2015/ngx-emoji/data/emojis.js → esm2020/ngx-emoji/data/emojis.mjs} +11 -6
  16. package/{esm2015/ngx-emoji/data/skins.js → esm2020/ngx-emoji/data/skins.mjs} +0 -0
  17. package/esm2020/ngx-emoji/emoji.component.mjs +236 -0
  18. package/esm2020/ngx-emoji/emoji.module.mjs +18 -0
  19. package/esm2020/ngx-emoji/emoji.service.mjs +144 -0
  20. package/{esm2015/ngx-emoji/index.js → esm2020/ngx-emoji/index.mjs} +0 -0
  21. package/esm2020/picker.component.mjs +505 -0
  22. package/esm2020/picker.module.mjs +49 -0
  23. package/esm2020/preview.component.mjs +187 -0
  24. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  25. package/esm2020/search.component.mjs +165 -0
  26. package/esm2020/skins.component.mjs +108 -0
  27. package/{esm2015/svgs/index.js → esm2020/svgs/index.mjs} +0 -0
  28. package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  29. package/fesm2015/{ctrl-ngx-emoji-mart-ngx-emoji.js → ctrl-ngx-emoji-mart-ngx-emoji.mjs} +111 -49
  30. package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
  31. package/fesm2015/{ctrl-ngx-emoji-mart.js → ctrl-ngx-emoji-mart.mjs} +670 -325
  32. package/fesm2015/ctrl-ngx-emoji-mart.mjs.map +1 -0
  33. package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs +31829 -0
  34. package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
  35. package/fesm2020/ctrl-ngx-emoji-mart.mjs +1757 -0
  36. package/fesm2020/ctrl-ngx-emoji-mart.mjs.map +1 -0
  37. package/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.d.ts +1 -0
  38. package/ngx-emoji/emoji.component.d.ts +3 -0
  39. package/ngx-emoji/emoji.module.d.ts +6 -0
  40. package/ngx-emoji/emoji.service.d.ts +3 -0
  41. package/ngx-emoji/package.json +6 -7
  42. package/package.json +35 -13
  43. package/picker.component.d.ts +3 -0
  44. package/picker.css +0 -1
  45. package/picker.module.d.ts +13 -0
  46. package/preview.component.d.ts +4 -1
  47. package/search.component.d.ts +3 -0
  48. package/skins.component.d.ts +6 -3
  49. package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js +0 -32093
  50. package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js.map +0 -1
  51. package/bundles/ctrl-ngx-emoji-mart.umd.js +0 -1718
  52. package/bundles/ctrl-ngx-emoji-mart.umd.js.map +0 -1
  53. package/ctrl-ngx-emoji-mart.metadata.json +0 -1
  54. package/esm2015/anchors.component.js +0 -54
  55. package/esm2015/category.component.js +0 -276
  56. package/esm2015/emoji-search.service.js +0 -179
  57. package/esm2015/ngx-emoji/emoji.component.js +0 -174
  58. package/esm2015/ngx-emoji/emoji.module.js +0 -13
  59. package/esm2015/ngx-emoji/emoji.service.js +0 -143
  60. package/esm2015/picker.component.js +0 -459
  61. package/esm2015/picker.module.js +0 -34
  62. package/esm2015/preview.component.js +0 -113
  63. package/esm2015/search.component.js +0 -115
  64. package/esm2015/skins.component.js +0 -76
  65. package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.js.map +0 -1
  66. package/fesm2015/ctrl-ngx-emoji-mart.js.map +0 -1
  67. package/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.metadata.json +0 -1
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
3
4
  import { CommonModule } from '@angular/common';
4
5
 
5
6
  const categories = [
@@ -1909,7 +1910,8 @@ const emojis = [
1909
1910
  'laugh',
1910
1911
  'like',
1911
1912
  ':D',
1912
- ':)'
1913
+ ':)',
1914
+ 'smile'
1913
1915
  ],
1914
1916
  sheet: [30, 36],
1915
1917
  shortName: 'smile'
@@ -1974,7 +1976,8 @@ const emojis = [
1974
1976
  'floor',
1975
1977
  'laughing',
1976
1978
  'lol',
1977
- 'haha'
1979
+ 'haha',
1980
+ 'rofl'
1978
1981
  ],
1979
1982
  sheet: [38, 19],
1980
1983
  shortName: 'rolling_on_the_floor_laughing'
@@ -4665,7 +4668,8 @@ const emojis = [
4665
4668
  'accept',
4666
4669
  'cool',
4667
4670
  'hand',
4668
- 'like'
4671
+ 'like',
4672
+ '+1'
4669
4673
  ],
4670
4674
  sheet: [13, 28],
4671
4675
  skinVariations: [
@@ -4701,7 +4705,8 @@ const emojis = [
4701
4705
  'thumbsdown',
4702
4706
  'no',
4703
4707
  'dislike',
4704
- 'hand'
4708
+ 'hand',
4709
+ '-1'
4705
4710
  ],
4706
4711
  sheet: [13, 34],
4707
4712
  skinVariations: [
@@ -21042,7 +21047,8 @@ const emojis = [
21042
21047
  'birthday',
21043
21048
  'magic',
21044
21049
  'circus',
21045
- 'celebration'
21050
+ 'celebration',
21051
+ 'tada'
21046
21052
  ],
21047
21053
  sheet: [7, 38],
21048
21054
  shortName: 'tada'
@@ -31563,11 +31569,12 @@ class EmojiService {
31563
31569
  return this.sanitize(this.getData(emoji, skin, set));
31564
31570
  }
31565
31571
  }
31566
- EmojiService.ɵprov = i0.ɵɵdefineInjectable({ factory: function EmojiService_Factory() { return new EmojiService(); }, token: EmojiService, providedIn: "root" });
31567
- EmojiService.decorators = [
31568
- { type: Injectable, args: [{ providedIn: 'root' },] }
31569
- ];
31570
- EmojiService.ctorParameters = () => [];
31572
+ EmojiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
31573
+ EmojiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiService, providedIn: 'root' });
31574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiService, decorators: [{
31575
+ type: Injectable,
31576
+ args: [{ providedIn: 'root' }]
31577
+ }], ctorParameters: function () { return []; } });
31571
31578
 
31572
31579
  class EmojiComponent {
31573
31580
  constructor(emojiService) {
@@ -31674,10 +31681,48 @@ class EmojiComponent {
31674
31681
  this.emojiLeave.emit({ emoji, $event });
31675
31682
  }
31676
31683
  }
31677
- EmojiComponent.decorators = [
31678
- { type: Component, args: [{
31679
- selector: 'ngx-emoji',
31680
- template: `
31684
+ EmojiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiComponent, deps: [{ token: EmojiService }], target: i0.ɵɵFactoryTarget.Component });
31685
+ EmojiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: EmojiComponent, selector: "ngx-emoji", inputs: { skin: "skin", set: "set", sheetSize: "sheetSize", isNative: "isNative", forceSize: "forceSize", tooltip: "tooltip", size: "size", emoji: "emoji", fallback: "fallback", hideObsolete: "hideObsolete", sheetRows: "sheetRows", sheetColumns: "sheetColumns", useButton: "useButton", backgroundImageFn: "backgroundImageFn", imageUrlFn: "imageUrlFn" }, outputs: { emojiOver: "emojiOver", emojiLeave: "emojiLeave", emojiClick: "emojiClick" }, usesOnChanges: true, ngImport: i0, template: `
31686
+ <button
31687
+ *ngIf="useButton && isVisible"
31688
+ type="button"
31689
+ (click)="handleClick($event)"
31690
+ (mouseenter)="handleOver($event)"
31691
+ (mouseleave)="handleLeave($event)"
31692
+ [title]="title"
31693
+ [attr.aria-label]="label"
31694
+ class="emoji-mart-emoji"
31695
+ [class.emoji-mart-emoji-native]="isNative"
31696
+ [class.emoji-mart-emoji-custom]="custom"
31697
+ >
31698
+ <span [ngStyle]="style">
31699
+ <ng-template [ngIf]="isNative">{{ unified }}</ng-template>
31700
+ <ng-content></ng-content>
31701
+ </span>
31702
+ </button>
31703
+
31704
+ <span
31705
+ *ngIf="!useButton && isVisible"
31706
+ (click)="handleClick($event)"
31707
+ (mouseenter)="handleOver($event)"
31708
+ (mouseleave)="handleLeave($event)"
31709
+ [title]="title"
31710
+ [attr.aria-label]="label"
31711
+ class="emoji-mart-emoji"
31712
+ [class.emoji-mart-emoji-native]="isNative"
31713
+ [class.emoji-mart-emoji-custom]="custom"
31714
+ >
31715
+ <span [ngStyle]="style">
31716
+ <ng-template [ngIf]="isNative">{{ unified }}</ng-template>
31717
+ <ng-content></ng-content>
31718
+ </span>
31719
+ </span>
31720
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31721
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiComponent, decorators: [{
31722
+ type: Component,
31723
+ args: [{
31724
+ selector: 'ngx-emoji',
31725
+ template: `
31681
31726
  <button
31682
31727
  *ngIf="useButton && isVisible"
31683
31728
  type="button"
@@ -31713,47 +31758,64 @@ EmojiComponent.decorators = [
31713
31758
  </span>
31714
31759
  </span>
31715
31760
  `,
31716
- changeDetection: ChangeDetectionStrategy.OnPush,
31717
- preserveWhitespaces: false
31718
- },] }
31719
- ];
31720
- EmojiComponent.ctorParameters = () => [
31721
- { type: EmojiService }
31722
- ];
31723
- EmojiComponent.propDecorators = {
31724
- skin: [{ type: Input }],
31725
- set: [{ type: Input }],
31726
- sheetSize: [{ type: Input }],
31727
- isNative: [{ type: Input }],
31728
- forceSize: [{ type: Input }],
31729
- tooltip: [{ type: Input }],
31730
- size: [{ type: Input }],
31731
- emoji: [{ type: Input }],
31732
- fallback: [{ type: Input }],
31733
- hideObsolete: [{ type: Input }],
31734
- sheetRows: [{ type: Input }],
31735
- sheetColumns: [{ type: Input }],
31736
- useButton: [{ type: Input }],
31737
- emojiOver: [{ type: Output }],
31738
- emojiLeave: [{ type: Output }],
31739
- emojiClick: [{ type: Output }],
31740
- backgroundImageFn: [{ type: Input }],
31741
- imageUrlFn: [{ type: Input }]
31742
- };
31761
+ changeDetection: ChangeDetectionStrategy.OnPush,
31762
+ preserveWhitespaces: false,
31763
+ }]
31764
+ }], ctorParameters: function () { return [{ type: EmojiService }]; }, propDecorators: { skin: [{
31765
+ type: Input
31766
+ }], set: [{
31767
+ type: Input
31768
+ }], sheetSize: [{
31769
+ type: Input
31770
+ }], isNative: [{
31771
+ type: Input
31772
+ }], forceSize: [{
31773
+ type: Input
31774
+ }], tooltip: [{
31775
+ type: Input
31776
+ }], size: [{
31777
+ type: Input
31778
+ }], emoji: [{
31779
+ type: Input
31780
+ }], fallback: [{
31781
+ type: Input
31782
+ }], hideObsolete: [{
31783
+ type: Input
31784
+ }], sheetRows: [{
31785
+ type: Input
31786
+ }], sheetColumns: [{
31787
+ type: Input
31788
+ }], useButton: [{
31789
+ type: Input
31790
+ }], emojiOver: [{
31791
+ type: Output
31792
+ }], emojiLeave: [{
31793
+ type: Output
31794
+ }], emojiClick: [{
31795
+ type: Output
31796
+ }], backgroundImageFn: [{
31797
+ type: Input
31798
+ }], imageUrlFn: [{
31799
+ type: Input
31800
+ }] } });
31743
31801
 
31744
31802
  class EmojiModule {
31745
31803
  }
31746
- EmojiModule.decorators = [
31747
- { type: NgModule, args: [{
31748
- imports: [CommonModule],
31749
- exports: [EmojiComponent],
31750
- declarations: [EmojiComponent],
31751
- },] }
31752
- ];
31804
+ EmojiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
31805
+ EmojiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiModule, declarations: [EmojiComponent], imports: [CommonModule], exports: [EmojiComponent] });
31806
+ EmojiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiModule, imports: [[CommonModule]] });
31807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: EmojiModule, decorators: [{
31808
+ type: NgModule,
31809
+ args: [{
31810
+ imports: [CommonModule],
31811
+ exports: [EmojiComponent],
31812
+ declarations: [EmojiComponent],
31813
+ }]
31814
+ }] });
31753
31815
 
31754
31816
  /**
31755
31817
  * Generated bundle index. Do not edit.
31756
31818
  */
31757
31819
 
31758
31820
  export { DEFAULT_BACKGROUNDFN, EmojiComponent, EmojiModule, EmojiService, categories, emojis, skins };
31759
- //# sourceMappingURL=ctrl-ngx-emoji-mart-ngx-emoji.js.map
31821
+ //# sourceMappingURL=ctrl-ngx-emoji-mart-ngx-emoji.mjs.map