@ctrl/ngx-emoji-mart 6.0.1 → 6.1.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 (65) hide show
  1. package/anchors.component.d.ts +3 -0
  2. package/category.component.d.ts +3 -0
  3. package/ctrl-ngx-emoji-mart.d.ts +1 -0
  4. package/emoji-frequently.service.d.ts +3 -0
  5. package/emoji-search.service.d.ts +3 -0
  6. package/esm2020/anchors.component.mjs +83 -0
  7. package/esm2020/category.component.mjs +386 -0
  8. package/{esm2015/ctrl-ngx-emoji-mart.js → esm2020/ctrl-ngx-emoji-mart.mjs} +0 -0
  9. package/{esm2015/emoji-frequently.service.js → esm2020/emoji-frequently.service.mjs} +10 -8
  10. package/esm2020/emoji-search.service.mjs +177 -0
  11. package/{esm2015/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.js → esm2020/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.mjs} +0 -0
  12. package/{esm2015/ngx-emoji/data/categories.js → esm2020/ngx-emoji/data/categories.mjs} +0 -0
  13. package/{esm2015/ngx-emoji/data/data.interfaces.js → esm2020/ngx-emoji/data/data.interfaces.mjs} +0 -0
  14. package/{esm2015/ngx-emoji/data/emojis.js → esm2020/ngx-emoji/data/emojis.mjs} +0 -0
  15. package/{esm2015/ngx-emoji/data/skins.js → esm2020/ngx-emoji/data/skins.mjs} +0 -0
  16. package/esm2020/ngx-emoji/emoji.component.mjs +236 -0
  17. package/esm2020/ngx-emoji/emoji.module.mjs +18 -0
  18. package/esm2020/ngx-emoji/emoji.service.mjs +144 -0
  19. package/{esm2015/ngx-emoji/index.js → esm2020/ngx-emoji/index.mjs} +0 -0
  20. package/esm2020/picker.component.mjs +505 -0
  21. package/esm2020/picker.module.mjs +49 -0
  22. package/esm2020/preview.component.mjs +181 -0
  23. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  24. package/esm2020/search.component.mjs +165 -0
  25. package/esm2020/skins.component.mjs +108 -0
  26. package/{esm2015/svgs/index.js → esm2020/svgs/index.mjs} +0 -0
  27. package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  28. package/fesm2015/{ctrl-ngx-emoji-mart-ngx-emoji.js → ctrl-ngx-emoji-mart-ngx-emoji.mjs} +101 -44
  29. package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
  30. package/fesm2015/{ctrl-ngx-emoji-mart.js → ctrl-ngx-emoji-mart.mjs} +623 -284
  31. package/fesm2015/ctrl-ngx-emoji-mart.mjs.map +1 -0
  32. package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs +31829 -0
  33. package/fesm2020/ctrl-ngx-emoji-mart-ngx-emoji.mjs.map +1 -0
  34. package/fesm2020/ctrl-ngx-emoji-mart.mjs +1751 -0
  35. package/fesm2020/ctrl-ngx-emoji-mart.mjs.map +1 -0
  36. package/ngx-emoji/ctrl-ngx-emoji-mart-ngx-emoji.d.ts +1 -0
  37. package/ngx-emoji/emoji.component.d.ts +3 -0
  38. package/ngx-emoji/emoji.module.d.ts +6 -0
  39. package/ngx-emoji/emoji.service.d.ts +3 -0
  40. package/ngx-emoji/package.json +6 -7
  41. package/package.json +29 -10
  42. package/picker.component.d.ts +3 -0
  43. package/picker.module.d.ts +13 -0
  44. package/preview.component.d.ts +4 -1
  45. package/search.component.d.ts +3 -0
  46. package/skins.component.d.ts +6 -3
  47. package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js +0 -32104
  48. package/bundles/ctrl-ngx-emoji-mart-ngx-emoji.umd.js.map +0 -1
  49. package/bundles/ctrl-ngx-emoji-mart.umd.js +0 -1729
  50. package/bundles/ctrl-ngx-emoji-mart.umd.js.map +0 -1
  51. package/ctrl-ngx-emoji-mart.metadata.json +0 -1
  52. package/esm2015/anchors.component.js +0 -54
  53. package/esm2015/category.component.js +0 -275
  54. package/esm2015/emoji-search.service.js +0 -179
  55. package/esm2015/ngx-emoji/emoji.component.js +0 -174
  56. package/esm2015/ngx-emoji/emoji.module.js +0 -13
  57. package/esm2015/ngx-emoji/emoji.service.js +0 -143
  58. package/esm2015/picker.component.js +0 -459
  59. package/esm2015/picker.module.js +0 -34
  60. package/esm2015/preview.component.js +0 -113
  61. package/esm2015/search.component.js +0 -115
  62. package/esm2015/skins.component.js +0 -76
  63. package/fesm2015/ctrl-ngx-emoji-mart-ngx-emoji.js.map +0 -1
  64. package/fesm2015/ctrl-ngx-emoji-mart.js.map +0 -1
  65. 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 = [
@@ -31568,11 +31569,12 @@ class EmojiService {
31568
31569
  return this.sanitize(this.getData(emoji, skin, set));
31569
31570
  }
31570
31571
  }
31571
- EmojiService.ɵprov = i0.ɵɵdefineInjectable({ factory: function EmojiService_Factory() { return new EmojiService(); }, token: EmojiService, providedIn: "root" });
31572
- EmojiService.decorators = [
31573
- { type: Injectable, args: [{ providedIn: 'root' },] }
31574
- ];
31575
- EmojiService.ctorParameters = () => [];
31572
+ EmojiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
31573
+ EmojiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiService, providedIn: 'root' });
31574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiService, decorators: [{
31575
+ type: Injectable,
31576
+ args: [{ providedIn: 'root' }]
31577
+ }], ctorParameters: function () { return []; } });
31576
31578
 
31577
31579
  class EmojiComponent {
31578
31580
  constructor(emojiService) {
@@ -31679,10 +31681,48 @@ class EmojiComponent {
31679
31681
  this.emojiLeave.emit({ emoji, $event });
31680
31682
  }
31681
31683
  }
31682
- EmojiComponent.decorators = [
31683
- { type: Component, args: [{
31684
- selector: 'ngx-emoji',
31685
- template: `
31684
+ EmojiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiComponent, deps: [{ token: EmojiService }], target: i0.ɵɵFactoryTarget.Component });
31685
+ EmojiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", 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.0.0", ngImport: i0, type: EmojiComponent, decorators: [{
31722
+ type: Component,
31723
+ args: [{
31724
+ selector: 'ngx-emoji',
31725
+ template: `
31686
31726
  <button
31687
31727
  *ngIf="useButton && isVisible"
31688
31728
  type="button"
@@ -31718,47 +31758,64 @@ EmojiComponent.decorators = [
31718
31758
  </span>
31719
31759
  </span>
31720
31760
  `,
31721
- changeDetection: ChangeDetectionStrategy.OnPush,
31722
- preserveWhitespaces: false
31723
- },] }
31724
- ];
31725
- EmojiComponent.ctorParameters = () => [
31726
- { type: EmojiService }
31727
- ];
31728
- EmojiComponent.propDecorators = {
31729
- skin: [{ type: Input }],
31730
- set: [{ type: Input }],
31731
- sheetSize: [{ type: Input }],
31732
- isNative: [{ type: Input }],
31733
- forceSize: [{ type: Input }],
31734
- tooltip: [{ type: Input }],
31735
- size: [{ type: Input }],
31736
- emoji: [{ type: Input }],
31737
- fallback: [{ type: Input }],
31738
- hideObsolete: [{ type: Input }],
31739
- sheetRows: [{ type: Input }],
31740
- sheetColumns: [{ type: Input }],
31741
- useButton: [{ type: Input }],
31742
- emojiOver: [{ type: Output }],
31743
- emojiLeave: [{ type: Output }],
31744
- emojiClick: [{ type: Output }],
31745
- backgroundImageFn: [{ type: Input }],
31746
- imageUrlFn: [{ type: Input }]
31747
- };
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
+ }] } });
31748
31801
 
31749
31802
  class EmojiModule {
31750
31803
  }
31751
- EmojiModule.decorators = [
31752
- { type: NgModule, args: [{
31753
- imports: [CommonModule],
31754
- exports: [EmojiComponent],
31755
- declarations: [EmojiComponent],
31756
- },] }
31757
- ];
31804
+ EmojiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
31805
+ EmojiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiModule, declarations: [EmojiComponent], imports: [CommonModule], exports: [EmojiComponent] });
31806
+ EmojiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiModule, imports: [[CommonModule]] });
31807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EmojiModule, decorators: [{
31808
+ type: NgModule,
31809
+ args: [{
31810
+ imports: [CommonModule],
31811
+ exports: [EmojiComponent],
31812
+ declarations: [EmojiComponent],
31813
+ }]
31814
+ }] });
31758
31815
 
31759
31816
  /**
31760
31817
  * Generated bundle index. Do not edit.
31761
31818
  */
31762
31819
 
31763
31820
  export { DEFAULT_BACKGROUNDFN, EmojiComponent, EmojiModule, EmojiService, categories, emojis, skins };
31764
- //# sourceMappingURL=ctrl-ngx-emoji-mart-ngx-emoji.js.map
31821
+ //# sourceMappingURL=ctrl-ngx-emoji-mart-ngx-emoji.mjs.map