@acorex/components 22.4.42 → 22.4.44

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 (22) hide show
  1. package/conversation/README.md +120 -24
  2. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CYl7g07g.mjs → acorex-components-conversation-acorex-components-conversation-C7ilacTf.mjs} +3197 -1315
  3. package/fesm2022/acorex-components-conversation-acorex-components-conversation-C7ilacTf.mjs.map +1 -0
  4. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-7W9bu_5L.mjs → acorex-components-conversation-picker-rename-file-dialog.component-B_OSm0vS.mjs} +2 -2
  5. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-7W9bu_5L.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-B_OSm0vS.mjs.map} +1 -1
  6. package/fesm2022/acorex-components-conversation.mjs +1 -1
  7. package/fesm2022/acorex-components-emoji.mjs +2 -2
  8. package/fesm2022/acorex-components-emoji.mjs.map +1 -1
  9. package/fesm2022/acorex-components-emojipicker.mjs +22 -5
  10. package/fesm2022/acorex-components-emojipicker.mjs.map +1 -1
  11. package/fesm2022/acorex-components-image.mjs +2 -2
  12. package/fesm2022/acorex-components-image.mjs.map +1 -1
  13. package/fesm2022/acorex-components-menu.mjs +6 -4
  14. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  15. package/fesm2022/acorex-components-popover.mjs +21 -12
  16. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  17. package/package.json +3 -3
  18. package/types/acorex-components-conversation.d.ts +2201 -1900
  19. package/types/acorex-components-emojipicker.d.ts +4 -0
  20. package/types/acorex-components-menu.d.ts +4 -2
  21. package/types/acorex-components-popover.d.ts +2 -0
  22. package/fesm2022/acorex-components-conversation-acorex-components-conversation-CYl7g07g.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-emoji.mjs","sources":["../../../../packages/components/emoji/src/lib/emoji.component.ts","../../../../packages/components/emoji/src/lib/emoji.component.html","../../../../packages/components/emoji/src/lib/emoji.module.ts","../../../../packages/components/emoji/src/acorex-components-emoji.ts"],"sourcesContent":["import { AXComponent } from '@acorex/cdk/common';\nimport { AXEmoji } from '@acorex/core/constants';\nimport { Component, computed, input, ViewEncapsulation } from '@angular/core';\n\n/**\n * Renders a single emoji using its Unicode character from metadata.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-emoji',\n templateUrl: './emoji.component.html',\n styleUrls: ['./emoji.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ax-emoji',\n '[class.ax-emoji-native]': 'appearance() === \"native\"',\n '[style.width.px]': 'size()',\n '[style.height.px]': 'size()',\n '[style.fontSize.px]': 'size()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.role]': 'ariaLabel() ? \"img\" : null',\n },\n providers: [{ provide: AXComponent, useExisting: AXEmojiComponent }],\n})\nexport class AXEmojiComponent {\n /**\n * Emoji metadata to render.\n */\n readonly emoji = input<AXEmoji>();\n\n /**\n * Emoji rendering style.\n * - `google`: Noto Color Emoji (Android/Google look) on all platforms, including Windows.\n * - `native`: OS default fonts (Segoe UI Emoji on Windows).\n *\n * @defaultValue 'google'\n */\n readonly appearance = input<'google' | 'native'>('google');\n\n /**\n * Rendered size in pixels.\n *\n * @defaultValue 20\n */\n readonly size = input(20);\n\n /** Unicode glyph to display. */\n protected readonly glyph = computed(() => this.emoji()?.unicode ?? null);\n\n /** Accessible label sourced from emoji metadata. */\n protected readonly ariaLabel = computed(() => this.emoji()?.name ?? null);\n}\n","@if (glyph(); as character) {\n <span class=\"ax-emoji-glyph\" aria-hidden=\"true\">{{ character }}</span>\n}\n","import { NgModule } from '@angular/core';\nimport { AXEmojiComponent } from './emoji.component';\n\n@NgModule({\n imports: [AXEmojiComponent],\n exports: [AXEmojiComponent],\n})\nexport class AXEmojiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAI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AA,OAAA,EAAA,CAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;+GAEf,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACND;;AAEG;;"}
1
+ {"version":3,"file":"acorex-components-emoji.mjs","sources":["../../../../packages/components/emoji/src/lib/emoji.component.ts","../../../../packages/components/emoji/src/lib/emoji.component.html","../../../../packages/components/emoji/src/lib/emoji.module.ts","../../../../packages/components/emoji/src/acorex-components-emoji.ts"],"sourcesContent":["import { AXComponent } from '@acorex/cdk/common';\nimport { AXEmoji } from '@acorex/core/constants';\nimport { Component, computed, input, ViewEncapsulation } from '@angular/core';\n\n/**\n * Renders a single emoji using its Unicode character from metadata.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-emoji',\n templateUrl: './emoji.component.html',\n styleUrls: ['./emoji.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ax-emoji',\n '[class.ax-emoji-native]': 'appearance() === \"native\"',\n '[style.width.px]': 'size()',\n '[style.height.px]': 'size()',\n '[style.fontSize.px]': 'size()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.role]': 'ariaLabel() ? \"img\" : null',\n },\n providers: [{ provide: AXComponent, useExisting: AXEmojiComponent }],\n})\nexport class AXEmojiComponent {\n /**\n * Emoji metadata to render.\n */\n readonly emoji = input<AXEmoji>();\n\n /**\n * Emoji rendering style.\n * - `google`: Noto Color Emoji (Android/Google look) on all platforms, including Windows.\n * - `native`: OS default fonts (Segoe UI Emoji on Windows).\n *\n * @defaultValue 'google'\n */\n readonly appearance = input<'google' | 'native'>('google');\n\n /**\n * Rendered size in pixels.\n *\n * @defaultValue 20\n */\n readonly size = input(20);\n\n /** Unicode glyph to display. */\n protected readonly glyph = computed(() => this.emoji()?.unicode ?? null);\n\n /** Accessible label sourced from emoji metadata. */\n protected readonly ariaLabel = computed(() => this.emoji()?.name ?? null);\n}\n","@if (glyph(); as character) {\n <span class=\"ax-emoji-glyph\" aria-hidden=\"true\">{{ character }}</span>\n}\n","import { NgModule } from '@angular/core';\nimport { AXEmojiComponent } from './emoji.component';\n\n@NgModule({\n imports: [AXEmojiComponent],\n exports: [AXEmojiComponent],\n})\nexport class AXEmojiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;AAIG;MAiBU,gBAAgB,CAAA;AAhB7B,IAAA,WAAA,GAAA;AAiBE;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAW;AAEjC;;;;;;AAMG;QACM,IAAA,CAAA,UAAU,GAAG,KAAK,CAAsB,QAAQ;uFAAC;AAE1D;;;;AAIG;QACM,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,EAAE;iFAAC;;AAGN,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,OAAO,IAAI,IAAI;kFAAC;;AAGrD,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,IAAI,IAAI;sFAAC;AAC1E,IAAA;8GA3BY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,U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AE,4BAA4B;qBAC5C,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAA,gBAAkB,EAAE,CAAC,EAAA,QAAA,EAAA,kHAAA,EAAA,MAAA,EAAA,CAAA,6hvGAAA,CAAA,EAAA;;;MEhBzD,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAb,aAAa,EAAA,OAAA,EAAA,CAHd,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;+GAEf,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACND;;AAEG;;"}
@@ -4,9 +4,9 @@ import { AXSearchBoxModule } from '@acorex/components/search-box';
4
4
  import { AXTabsComponent, AXTabItemComponent } from '@acorex/components/tabs';
5
5
  import { isPickerPeopleBodyEmoji, AX_EMOJIS_FOR_PICKER, AX_EMOJI_CATEGORIES, AX_EMOJI_PICKER_CATEGORY_RECENT } from '@acorex/core/constants';
6
6
  import * as i1 from '@angular/cdk/scrolling';
7
- import { ScrollingModule } from '@angular/cdk/scrolling';
7
+ import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
8
8
  import * as i0 from '@angular/core';
9
- import { inject, ElementRef, DestroyRef, input, output, signal, computed, effect, afterNextRender, ViewEncapsulation, Component, NgModule } from '@angular/core';
9
+ import { inject, ElementRef, DestroyRef, viewChild, input, output, signal, computed, effect, afterNextRender, ViewEncapsulation, Component, NgModule } from '@angular/core';
10
10
  import { FormsModule } from '@angular/forms';
11
11
  import { AXEmojiComponent } from '@acorex/components/emoji';
12
12
 
@@ -173,6 +173,8 @@ class AXEmojiPickerComponent {
173
173
  constructor() {
174
174
  this.hostRef = inject((ElementRef));
175
175
  this.destroyRef = inject(DestroyRef);
176
+ this.viewport = viewChild(CdkVirtualScrollViewport, /* @ts-ignore */
177
+ ...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
176
178
  /** Emoji entries available in the picker. */
177
179
  this.items = input(AX_EMOJIS_FOR_PICKER, /* @ts-ignore */
178
180
  ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
@@ -295,6 +297,13 @@ class AXEmojiPickerComponent {
295
297
  /** Whether the current view has no emojis. */
296
298
  this.isEmpty = computed(() => this.visibleEmojis().length === 0, /* @ts-ignore */
297
299
  ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
300
+ /** The grid is often measured before its popover has a height; recheck once layout settles. */
301
+ this.remeasureOnRows = effect(() => {
302
+ this.emojiRows();
303
+ this.containerWidth();
304
+ this.remeasureGrid();
305
+ }, /* @ts-ignore */
306
+ ...(ngDevMode ? [{ debugName: "remeasureOnRows" }] : /* istanbul ignore next */ []));
298
307
  /** Keeps the active tab valid when exclusions change. */
299
308
  this.syncActiveCategory = effect(() => {
300
309
  const categories = this.categories();
@@ -323,6 +332,7 @@ class AXEmojiPickerComponent {
323
332
  observedHost = element;
324
333
  }
325
334
  this.containerWidth.set(resolveEmojiPickerContainerWidth(element));
335
+ this.remeasureGrid();
326
336
  };
327
337
  const observer = new ResizeObserver(updateLayout);
328
338
  const viewport = globalThis.window.visualViewport;
@@ -338,6 +348,13 @@ class AXEmojiPickerComponent {
338
348
  });
339
349
  }
340
350
  onCategorySwipe(event) { }
351
+ remeasureGrid() {
352
+ const viewport = this.viewport();
353
+ if (!viewport) {
354
+ return;
355
+ }
356
+ queueMicrotask(() => viewport.checkViewportSize());
357
+ }
341
358
  /** Selects a category tab and clears search. */
342
359
  selectCategory(categoryId) {
343
360
  this.activeCategoryId.set(categoryId);
@@ -384,7 +401,7 @@ class AXEmojiPickerComponent {
384
401
  this.recentChanged.emit(next);
385
402
  }
386
403
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXEmojiPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
387
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXEmojiPickerComponent, isStandalone: true, selector: "ax-emoji-picker", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showRecent: { classPropertyName: "showRecent", publicName: "showRecent", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, excludeCategories: { classPropertyName: "excludeCategories", publicName: "excludeCategories", isSignal: true, isRequired: false, transformFunction: null }, excludeCodes: { classPropertyName: "excludeCodes", publicName: "excludeCodes", isSignal: true, isRequired: false, transformFunction: null }, excludeUnicode: { classPropertyName: "excludeUnicode", publicName: "excludeUnicode", isSignal: true, isRequired: false, transformFunction: null }, recentItems: { classPropertyName: "recentItems", publicName: "recentItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", recentChanged: "recentChanged" }, host: { properties: { "class.ax-emoji-picker-native": "appearance() === \"native\"", "style.--ax-comp-emoji-picker-columns": "effectiveColumns()", "style.--ax-comp-emoji-picker-available-width": "availableWidthCss()" }, classAttribute: "ax-emoji-picker" }, ngImport: i0, template: "<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n", styles: ["@layer properties;@layer components{ax-emoji-picker{--ax-comp-emoji-picker-max-width: 22rem;--ax-comp-emoji-picker-cell-size: 2.25rem;--ax-comp-emoji-picker-cell-gap: .125rem;--ax-comp-emoji-picker-inline-padding: 1.5rem;--ax-comp-emoji-picker-height: 24rem;--ax-comp-emoji-picker-radius: 1.5rem;--ax-comp-emoji-picker-padding: .75rem;--ax-comp-emoji-picker-columns: 8;--ax-comp-emoji-picker-category-font-family: \"Noto Color Emoji\", \"Twemoji Country Flags\", \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Twemoji Mozilla\", emoji, sans-serif;--ax-comp-emoji-picker-border: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-surface: rgb(var(--ax-sys-color-lightest-surface));--ax-comp-emoji-picker-shadow: 0 1px 2px rgba(var(--ax-sys-color-on-surface), .04);--ax-comp-emoji-picker-text: rgba(var(--ax-sys-color-on-surface), .92);--ax-comp-emoji-picker-muted: rgba(var(--ax-sys-color-on-surface), .52);--ax-comp-emoji-picker-hover: rgba(var(--ax-sys-color-on-surface), .06);--ax-comp-emoji-picker-active: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-placeholder: rgba(var(--ax-sys-color-on-surface), .45);display:flex;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;box-sizing:border-box;width:100%;max-width:min(100%,var(--ax-comp-emoji-picker-max-width),var(--ax-comp-emoji-picker-available-width, 100%));height:var(--ax-comp-emoji-picker-height);min-height:16rem;border-radius:var(--ax-comp-emoji-picker-radius);border:1px solid var(--ax-comp-emoji-picker-border);background:var(--ax-comp-emoji-picker-surface);box-shadow:var(--ax-comp-emoji-picker-shadow);color:var(--ax-comp-emoji-picker-text)}ax-emoji-picker .ax-emoji-picker-layout{display:flex;width:100%;height:100%;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);background-color:rgba(var(--ax-sys-color-lightest-surface))}ax-emoji-picker .ax-emoji-picker-search-container{display:flex;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);padding-inline:calc(var(--spacing, .25rem) * 3);padding-bottom:calc(var(--spacing, .25rem) * 3);padding-top:0}ax-emoji-picker .ax-emoji-picker-categories{width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-shrink:0;gap:calc(var(--spacing, .25rem) * .5);overflow-x:auto;border-radius:0;border-style:var(--tw-border-style);border-width:0px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 2);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);border-bottom-color:var(--ax-comp-emoji-picker-border)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item{display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);min-width:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:.625rem;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0);font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);font-family:var(--ax-comp-emoji-picker-category-font-family);font-variant-emoji:emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item .ax-tab-item-text{padding:calc(var(--spacing, .25rem) * 0)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-state-active{background:var(--ax-comp-emoji-picker-active);box-shadow:none}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-categories ax-tab-item:hover{background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-emoji-picker-tab-recent .ax-tab-item-text{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));opacity:65%}ax-emoji-picker.ax-emoji-picker-native{--ax-comp-emoji-picker-category-font-family: \"Twemoji Country Flags\", \"Segoe UI Emoji\", \"Apple Color Emoji\", \"Twemoji Mozilla\", emoji, sans-serif}ax-emoji-picker .ax-emoji-picker-search{flex-shrink:0}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container{min-height:calc(var(--spacing, .25rem) * 9);border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;padding-inline:calc(var(--spacing, .25rem) * 3);--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background:var(--ax-comp-emoji-picker-hover);transition:background-color .15s ease}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:after{display:none}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:hover:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error),ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:focus-within:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error){border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none;background:var(--ax-comp-emoji-picker-active)}ax-emoji-picker .ax-emoji-picker-search .ax-input,ax-emoji-picker .ax-emoji-picker-search input{min-height:calc(var(--spacing, .25rem) * 9);border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:.8125rem;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none}ax-emoji-picker .ax-emoji-picker-search .ax-input::placeholder,ax-emoji-picker .ax-emoji-picker-search input::placeholder{color:var(--ax-comp-emoji-picker-placeholder)}ax-emoji-picker .ax-emoji-picker-grid{display:block;min-height:0;min-width:0;width:100%;flex:1 1 auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}ax-emoji-picker .ax-emoji-picker-grid .cdk-virtual-scroll-content-wrapper{width:100%;min-width:0}ax-emoji-picker .ax-emoji-picker-row{display:grid;width:100%;min-width:0;padding-block:.125rem;gap:var(--ax-comp-emoji-picker-cell-gap);grid-template-columns:repeat(var(--ax-comp-emoji-picker-columns),minmax(0,1fr))}ax-emoji-picker .ax-emoji-picker-item{display:flex;width:100%;height:var(--ax-comp-emoji-picker-cell-size);cursor:pointer;align-items:center;justify-content:center;border:0;border-radius:.5rem;background:transparent;padding:0;transition:background-color .12s ease,transform .12s ease}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-item:hover{scale:1.06;background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-item:active{scale:.96}ax-emoji-picker .ax-emoji-picker-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 1);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;font-size:.8125rem;color:var(--ax-comp-emoji-picker-muted)}@media(max-width:400px){ax-emoji-picker{--ax-comp-emoji-picker-cell-size: 2rem;--ax-comp-emoji-picker-height: 22rem}}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial;--tw-leading: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i2.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXEmojiComponent, selector: "ax-emoji", inputs: ["emoji", "appearance", "size"] }, { kind: "component", type: AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "reorderable", "reorderDelay", "renderMode", "stacked", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged", "onTabsReordered"] }, { kind: "component", type: AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "directive", type: AXGestureDirective, selector: "[axGesture]", inputs: ["options", "direction", "enablePinch", "enableRotate", "disabled", "tapInterval"], outputs: ["tap", "doubletap", "press", "pan", "panstart", "panmove", "panend", "swipe", "pinch", "rotate"], exportAs: ["axGesture"] }], encapsulation: i0.ViewEncapsulation.None }); }
404
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXEmojiPickerComponent, isStandalone: true, selector: "ax-emoji-picker", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showRecent: { classPropertyName: "showRecent", publicName: "showRecent", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, excludeCategories: { classPropertyName: "excludeCategories", publicName: "excludeCategories", isSignal: true, isRequired: false, transformFunction: null }, excludeCodes: { classPropertyName: "excludeCodes", publicName: "excludeCodes", isSignal: true, isRequired: false, transformFunction: null }, excludeUnicode: { classPropertyName: "excludeUnicode", publicName: "excludeUnicode", isSignal: true, isRequired: false, transformFunction: null }, recentItems: { classPropertyName: "recentItems", publicName: "recentItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", recentChanged: "recentChanged" }, host: { properties: { "class.ax-emoji-picker-native": "appearance() === \"native\"", "style.--ax-comp-emoji-picker-columns": "effectiveColumns()", "style.--ax-comp-emoji-picker-available-width": "availableWidthCss()" }, classAttribute: "ax-emoji-picker" }, viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n", styles: ["@layer properties;@layer components{ax-emoji-picker{--ax-comp-emoji-picker-max-width: 22rem;--ax-comp-emoji-picker-cell-size: 2.25rem;--ax-comp-emoji-picker-cell-gap: .125rem;--ax-comp-emoji-picker-inline-padding: 1.5rem;--ax-comp-emoji-picker-height: 24rem;--ax-comp-emoji-picker-radius: 1.5rem;--ax-comp-emoji-picker-padding: .75rem;--ax-comp-emoji-picker-columns: 8;--ax-comp-emoji-picker-category-font-family: \"Noto Color Emoji\", \"Twemoji Country Flags\", \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Twemoji Mozilla\", emoji, sans-serif;--ax-comp-emoji-picker-border: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-surface: rgb(var(--ax-sys-color-lightest-surface));--ax-comp-emoji-picker-shadow: 0 1px 2px rgba(var(--ax-sys-color-on-surface), .04);--ax-comp-emoji-picker-text: rgba(var(--ax-sys-color-on-surface), .92);--ax-comp-emoji-picker-muted: rgba(var(--ax-sys-color-on-surface), .52);--ax-comp-emoji-picker-hover: rgba(var(--ax-sys-color-on-surface), .06);--ax-comp-emoji-picker-active: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-placeholder: rgba(var(--ax-sys-color-on-surface), .45);display:flex;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;box-sizing:border-box;width:100%;max-width:min(100%,var(--ax-comp-emoji-picker-max-width),var(--ax-comp-emoji-picker-available-width, 100%));height:var(--ax-comp-emoji-picker-height);min-height:16rem;border-radius:var(--ax-comp-emoji-picker-radius);border:1px solid var(--ax-comp-emoji-picker-border);background:var(--ax-comp-emoji-picker-surface);box-shadow:var(--ax-comp-emoji-picker-shadow);color:var(--ax-comp-emoji-picker-text)}ax-emoji-picker .ax-emoji-picker-layout{display:flex;width:100%;height:100%;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);background-color:rgba(var(--ax-sys-color-lightest-surface))}ax-emoji-picker .ax-emoji-picker-search-container{display:flex;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);padding-inline:calc(var(--spacing, .25rem) * 3);padding-bottom:calc(var(--spacing, .25rem) * 3);padding-top:0}ax-emoji-picker .ax-emoji-picker-categories{width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-shrink:0;gap:calc(var(--spacing, .25rem) * .5);overflow-x:auto;border-radius:0;border-style:var(--tw-border-style);border-width:0px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 2);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);border-bottom-color:var(--ax-comp-emoji-picker-border)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item{display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);min-width:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:.625rem;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0);font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);font-family:var(--ax-comp-emoji-picker-category-font-family);font-variant-emoji:emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item .ax-tab-item-text{padding:calc(var(--spacing, .25rem) * 0)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-state-active{background:var(--ax-comp-emoji-picker-active);box-shadow:none}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-categories ax-tab-item:hover{background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-emoji-picker-tab-recent .ax-tab-item-text{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));opacity:65%}ax-emoji-picker.ax-emoji-picker-native{--ax-comp-emoji-picker-category-font-family: \"Twemoji Country Flags\", \"Segoe UI Emoji\", \"Apple Color Emoji\", \"Twemoji Mozilla\", emoji, sans-serif}ax-emoji-picker .ax-emoji-picker-search{flex-shrink:0}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container{min-height:calc(var(--spacing, .25rem) * 9);border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;padding-inline:calc(var(--spacing, .25rem) * 3);--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background:var(--ax-comp-emoji-picker-hover);transition:background-color .15s ease}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:after{display:none}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:hover:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error),ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:focus-within:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error){border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none;background:var(--ax-comp-emoji-picker-active)}ax-emoji-picker .ax-emoji-picker-search .ax-input,ax-emoji-picker .ax-emoji-picker-search input{min-height:calc(var(--spacing, .25rem) * 9);border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:.8125rem;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none}ax-emoji-picker .ax-emoji-picker-search .ax-input::placeholder,ax-emoji-picker .ax-emoji-picker-search input::placeholder{color:var(--ax-comp-emoji-picker-placeholder)}ax-emoji-picker .ax-emoji-picker-grid{display:block;min-height:0;min-width:0;width:100%;flex:1 1 0;scrollbar-width:thin;-webkit-overflow-scrolling:touch}ax-emoji-picker .ax-emoji-picker-grid .cdk-virtual-scroll-content-wrapper{width:100%;min-width:0}ax-emoji-picker .ax-emoji-picker-row{display:grid;width:100%;min-width:0;padding-block:.125rem;gap:var(--ax-comp-emoji-picker-cell-gap);grid-template-columns:repeat(var(--ax-comp-emoji-picker-columns),minmax(0,1fr))}ax-emoji-picker .ax-emoji-picker-item{display:flex;width:100%;height:var(--ax-comp-emoji-picker-cell-size);cursor:pointer;align-items:center;justify-content:center;border:0;border-radius:.5rem;background:transparent;padding:0;transition:background-color .12s ease,transform .12s ease}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-item:hover{scale:1.06;background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-item:active{scale:.96}ax-emoji-picker .ax-emoji-picker-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 1);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;font-size:.8125rem;color:var(--ax-comp-emoji-picker-muted)}@media(max-width:400px){ax-emoji-picker{--ax-comp-emoji-picker-cell-size: 2rem;--ax-comp-emoji-picker-height: 22rem}}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial;--tw-leading: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i2.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXEmojiComponent, selector: "ax-emoji", inputs: ["emoji", "appearance", "size"] }, { kind: "component", type: AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "reorderable", "reorderDelay", "renderMode", "stacked", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged", "onTabsReordered"] }, { kind: "component", type: AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "directive", type: AXGestureDirective, selector: "[axGesture]", inputs: ["options", "direction", "enablePinch", "enableRotate", "disabled", "tapInterval"], outputs: ["tap", "doubletap", "press", "pan", "panstart", "panmove", "panend", "swipe", "pinch", "rotate"], exportAs: ["axGesture"] }], encapsulation: i0.ViewEncapsulation.None }); }
388
405
  }
389
406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXEmojiPickerComponent, decorators: [{
390
407
  type: Component,
@@ -401,8 +418,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
401
418
  AXTabsComponent,
402
419
  AXTabItemComponent,
403
420
  AXGestureDirective,
404
- ], template: "<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n", styles: ["@layer properties;@layer components{ax-emoji-picker{--ax-comp-emoji-picker-max-width: 22rem;--ax-comp-emoji-picker-cell-size: 2.25rem;--ax-comp-emoji-picker-cell-gap: .125rem;--ax-comp-emoji-picker-inline-padding: 1.5rem;--ax-comp-emoji-picker-height: 24rem;--ax-comp-emoji-picker-radius: 1.5rem;--ax-comp-emoji-picker-padding: .75rem;--ax-comp-emoji-picker-columns: 8;--ax-comp-emoji-picker-category-font-family: \"Noto Color Emoji\", \"Twemoji Country Flags\", \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Twemoji Mozilla\", emoji, sans-serif;--ax-comp-emoji-picker-border: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-surface: rgb(var(--ax-sys-color-lightest-surface));--ax-comp-emoji-picker-shadow: 0 1px 2px rgba(var(--ax-sys-color-on-surface), .04);--ax-comp-emoji-picker-text: rgba(var(--ax-sys-color-on-surface), .92);--ax-comp-emoji-picker-muted: rgba(var(--ax-sys-color-on-surface), .52);--ax-comp-emoji-picker-hover: rgba(var(--ax-sys-color-on-surface), .06);--ax-comp-emoji-picker-active: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-placeholder: rgba(var(--ax-sys-color-on-surface), .45);display:flex;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;box-sizing:border-box;width:100%;max-width:min(100%,var(--ax-comp-emoji-picker-max-width),var(--ax-comp-emoji-picker-available-width, 100%));height:var(--ax-comp-emoji-picker-height);min-height:16rem;border-radius:var(--ax-comp-emoji-picker-radius);border:1px solid var(--ax-comp-emoji-picker-border);background:var(--ax-comp-emoji-picker-surface);box-shadow:var(--ax-comp-emoji-picker-shadow);color:var(--ax-comp-emoji-picker-text)}ax-emoji-picker .ax-emoji-picker-layout{display:flex;width:100%;height:100%;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);background-color:rgba(var(--ax-sys-color-lightest-surface))}ax-emoji-picker .ax-emoji-picker-search-container{display:flex;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);padding-inline:calc(var(--spacing, .25rem) * 3);padding-bottom:calc(var(--spacing, .25rem) * 3);padding-top:0}ax-emoji-picker .ax-emoji-picker-categories{width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-shrink:0;gap:calc(var(--spacing, .25rem) * .5);overflow-x:auto;border-radius:0;border-style:var(--tw-border-style);border-width:0px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 2);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);border-bottom-color:var(--ax-comp-emoji-picker-border)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item{display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);min-width:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:.625rem;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0);font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);font-family:var(--ax-comp-emoji-picker-category-font-family);font-variant-emoji:emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item .ax-tab-item-text{padding:calc(var(--spacing, .25rem) * 0)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-state-active{background:var(--ax-comp-emoji-picker-active);box-shadow:none}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-categories ax-tab-item:hover{background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-emoji-picker-tab-recent .ax-tab-item-text{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));opacity:65%}ax-emoji-picker.ax-emoji-picker-native{--ax-comp-emoji-picker-category-font-family: \"Twemoji Country Flags\", \"Segoe UI Emoji\", \"Apple Color Emoji\", \"Twemoji Mozilla\", emoji, sans-serif}ax-emoji-picker .ax-emoji-picker-search{flex-shrink:0}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container{min-height:calc(var(--spacing, .25rem) * 9);border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;padding-inline:calc(var(--spacing, .25rem) * 3);--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background:var(--ax-comp-emoji-picker-hover);transition:background-color .15s ease}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:after{display:none}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:hover:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error),ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:focus-within:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error){border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none;background:var(--ax-comp-emoji-picker-active)}ax-emoji-picker .ax-emoji-picker-search .ax-input,ax-emoji-picker .ax-emoji-picker-search input{min-height:calc(var(--spacing, .25rem) * 9);border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:.8125rem;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none}ax-emoji-picker .ax-emoji-picker-search .ax-input::placeholder,ax-emoji-picker .ax-emoji-picker-search input::placeholder{color:var(--ax-comp-emoji-picker-placeholder)}ax-emoji-picker .ax-emoji-picker-grid{display:block;min-height:0;min-width:0;width:100%;flex:1 1 auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}ax-emoji-picker .ax-emoji-picker-grid .cdk-virtual-scroll-content-wrapper{width:100%;min-width:0}ax-emoji-picker .ax-emoji-picker-row{display:grid;width:100%;min-width:0;padding-block:.125rem;gap:var(--ax-comp-emoji-picker-cell-gap);grid-template-columns:repeat(var(--ax-comp-emoji-picker-columns),minmax(0,1fr))}ax-emoji-picker .ax-emoji-picker-item{display:flex;width:100%;height:var(--ax-comp-emoji-picker-cell-size);cursor:pointer;align-items:center;justify-content:center;border:0;border-radius:.5rem;background:transparent;padding:0;transition:background-color .12s ease,transform .12s ease}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-item:hover{scale:1.06;background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-item:active{scale:.96}ax-emoji-picker .ax-emoji-picker-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 1);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;font-size:.8125rem;color:var(--ax-comp-emoji-picker-muted)}@media(max-width:400px){ax-emoji-picker{--ax-comp-emoji-picker-cell-size: 2rem;--ax-comp-emoji-picker-height: 22rem}}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial;--tw-leading: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
405
- }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], showRecent: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecent", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], excludeCategories: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeCategories", required: false }] }], excludeCodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeCodes", required: false }] }], excludeUnicode: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeUnicode", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }], recentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "recentItems", required: false }] }], recentChanged: [{ type: i0.Output, args: ["recentChanged"] }] } });
421
+ ], template: "<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n", styles: ["@layer properties;@layer components{ax-emoji-picker{--ax-comp-emoji-picker-max-width: 22rem;--ax-comp-emoji-picker-cell-size: 2.25rem;--ax-comp-emoji-picker-cell-gap: .125rem;--ax-comp-emoji-picker-inline-padding: 1.5rem;--ax-comp-emoji-picker-height: 24rem;--ax-comp-emoji-picker-radius: 1.5rem;--ax-comp-emoji-picker-padding: .75rem;--ax-comp-emoji-picker-columns: 8;--ax-comp-emoji-picker-category-font-family: \"Noto Color Emoji\", \"Twemoji Country Flags\", \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Twemoji Mozilla\", emoji, sans-serif;--ax-comp-emoji-picker-border: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-surface: rgb(var(--ax-sys-color-lightest-surface));--ax-comp-emoji-picker-shadow: 0 1px 2px rgba(var(--ax-sys-color-on-surface), .04);--ax-comp-emoji-picker-text: rgba(var(--ax-sys-color-on-surface), .92);--ax-comp-emoji-picker-muted: rgba(var(--ax-sys-color-on-surface), .52);--ax-comp-emoji-picker-hover: rgba(var(--ax-sys-color-on-surface), .06);--ax-comp-emoji-picker-active: rgba(var(--ax-sys-color-on-surface), .08);--ax-comp-emoji-picker-placeholder: rgba(var(--ax-sys-color-on-surface), .45);display:flex;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;box-sizing:border-box;width:100%;max-width:min(100%,var(--ax-comp-emoji-picker-max-width),var(--ax-comp-emoji-picker-available-width, 100%));height:var(--ax-comp-emoji-picker-height);min-height:16rem;border-radius:var(--ax-comp-emoji-picker-radius);border:1px solid var(--ax-comp-emoji-picker-border);background:var(--ax-comp-emoji-picker-surface);box-shadow:var(--ax-comp-emoji-picker-shadow);color:var(--ax-comp-emoji-picker-text)}ax-emoji-picker .ax-emoji-picker-layout{display:flex;width:100%;height:100%;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);background-color:rgba(var(--ax-sys-color-lightest-surface))}ax-emoji-picker .ax-emoji-picker-search-container{display:flex;min-height:calc(var(--spacing, .25rem) * 0);min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2.5);padding-inline:calc(var(--spacing, .25rem) * 3);padding-bottom:calc(var(--spacing, .25rem) * 3);padding-top:0}ax-emoji-picker .ax-emoji-picker-categories{width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-shrink:0;gap:calc(var(--spacing, .25rem) * .5);overflow-x:auto;border-radius:0;border-style:var(--tw-border-style);border-width:0px;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 2);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);border-bottom-color:var(--ax-comp-emoji-picker-border)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item{display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);min-width:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:.625rem;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0);font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);font-family:var(--ax-comp-emoji-picker-category-font-family);font-variant-emoji:emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item .ax-tab-item-text{padding:calc(var(--spacing, .25rem) * 0)}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-state-active{background:var(--ax-comp-emoji-picker-active);box-shadow:none}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-categories ax-tab-item:hover{background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-categories ax-tab-item.ax-emoji-picker-tab-recent .ax-tab-item-text{font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));opacity:65%}ax-emoji-picker.ax-emoji-picker-native{--ax-comp-emoji-picker-category-font-family: \"Twemoji Country Flags\", \"Segoe UI Emoji\", \"Apple Color Emoji\", \"Twemoji Mozilla\", emoji, sans-serif}ax-emoji-picker .ax-emoji-picker-search{flex-shrink:0}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container{min-height:calc(var(--spacing, .25rem) * 9);border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;padding-inline:calc(var(--spacing, .25rem) * 3);--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background:var(--ax-comp-emoji-picker-hover);transition:background-color .15s ease}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:after{display:none}ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:hover:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error),ax-emoji-picker .ax-emoji-picker-search .ax-editor-container:focus-within:not(.ax-state-disabled,.ax-state-readonly,.ax-state-error){border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none;background:var(--ax-comp-emoji-picker-active)}ax-emoji-picker .ax-emoji-picker-search .ax-input,ax-emoji-picker .ax-emoji-picker-search input{min-height:calc(var(--spacing, .25rem) * 9);border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding-block:calc(var(--spacing, .25rem) * 1.5);font-size:.8125rem;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style: none;outline-style:none}ax-emoji-picker .ax-emoji-picker-search .ax-input::placeholder,ax-emoji-picker .ax-emoji-picker-search input::placeholder{color:var(--ax-comp-emoji-picker-placeholder)}ax-emoji-picker .ax-emoji-picker-grid{display:block;min-height:0;min-width:0;width:100%;flex:1 1 0;scrollbar-width:thin;-webkit-overflow-scrolling:touch}ax-emoji-picker .ax-emoji-picker-grid .cdk-virtual-scroll-content-wrapper{width:100%;min-width:0}ax-emoji-picker .ax-emoji-picker-row{display:grid;width:100%;min-width:0;padding-block:.125rem;gap:var(--ax-comp-emoji-picker-cell-gap);grid-template-columns:repeat(var(--ax-comp-emoji-picker-columns),minmax(0,1fr))}ax-emoji-picker .ax-emoji-picker-item{display:flex;width:100%;height:var(--ax-comp-emoji-picker-cell-size);cursor:pointer;align-items:center;justify-content:center;border:0;border-radius:.5rem;background:transparent;padding:0;transition:background-color .12s ease,transform .12s ease}@media(hover:hover){ax-emoji-picker .ax-emoji-picker-item:hover{scale:1.06;background:var(--ax-comp-emoji-picker-hover)}}ax-emoji-picker .ax-emoji-picker-item:active{scale:.96}ax-emoji-picker .ax-emoji-picker-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 1);padding-inline:calc(var(--spacing, .25rem) * 4);padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;font-size:.8125rem;color:var(--ax-comp-emoji-picker-muted)}@media(max-width:400px){ax-emoji-picker{--ax-comp-emoji-picker-cell-size: 2rem;--ax-comp-emoji-picker-height: 22rem}}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-font-weight: initial;--tw-leading: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
422
+ }], ctorParameters: () => [], propDecorators: { viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], showRecent: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecent", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], excludeCategories: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeCategories", required: false }] }], excludeCodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeCodes", required: false }] }], excludeUnicode: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludeUnicode", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }], recentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "recentItems", required: false }] }], recentChanged: [{ type: i0.Output, args: ["recentChanged"] }] } });
406
423
 
407
424
  class AXEmojiPickerModule {
408
425
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXEmojiPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-emojipicker.mjs","sources":["../../../../packages/components/emojipicker/src/lib/emoji-picker.utils.ts","../../../../packages/components/emojipicker/src/lib/emoji-picker.component.ts","../../../../packages/components/emojipicker/src/lib/emoji-picker.component.html","../../../../packages/components/emojipicker/src/lib/emojipicker.module.ts","../../../../packages/components/emojipicker/src/acorex-components-emojipicker.ts"],"sourcesContent":["import { AXEmoji, AXEmojiCategory, isPickerPeopleBodyEmoji } from '@acorex/core/constants';\n\n/** Maximum number of emojis kept in the recent list. */\nexport const RECENT_EMOJI_LIMIT = 20;\n\n/** Grid cell size in px (`--ax-comp-emoji-picker-cell-size`). */\nexport const EMOJI_PICKER_CELL_SIZE_PX = 36;\n\n/** Grid cell size in px on narrow viewports. */\nexport const EMOJI_PICKER_CELL_SIZE_PX_COMPACT = 32;\n\n/** Gap between grid cells in px (`--ax-comp-emoji-picker-cell-gap`). */\nexport const EMOJI_PICKER_CELL_GAP_PX = 2;\n\n/** Horizontal padding around the emoji grid in px. */\nexport const EMOJI_PICKER_GRID_PADDING_PX = 24;\n\n/** Minimum column count. */\nexport const EMOJI_PICKER_MIN_COLUMNS = 1;\n\nfunction contentBoxWidth(element: HTMLElement): number {\n const style = getComputedStyle(element);\n const paddingX =\n (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);\n return Math.max(0, element.clientWidth - paddingX);\n}\n\nfunction isClippedOverflow(overflowX: string): boolean {\n return overflowX === 'hidden' || overflowX === 'auto' || overflowX === 'scroll' || overflowX === 'clip';\n}\n\n/** Remaining inline space for `element` inside `container`. */\nfunction visibleInlineSpace(elementRect: DOMRect, container: HTMLElement, isRtl: boolean): number {\n const containerRect = container.getBoundingClientRect();\n const start = isRtl\n ? containerRect.right - Math.min(elementRect.right, containerRect.right)\n : Math.min(elementRect.left, containerRect.right) - containerRect.left;\n\n return Math.max(0, contentBoxWidth(container) - Math.max(0, start));\n}\n\n/** Nearest ancestor that participates in layout (skips `display: contents`). */\nexport function getEmojiPickerLayoutContainer(element: HTMLElement): HTMLElement {\n let current: HTMLElement | null = element.parentElement;\n\n while (current) {\n const display = getComputedStyle(current).display;\n if (display !== 'contents' && current.clientWidth > 0) {\n return current;\n }\n current = current.parentElement;\n }\n\n return element;\n}\n\n/**\n * Available width for the picker grid.\n * Uses the tightest ancestor content box and the visible viewport slot so an\n * overflowing parent cannot keep an 8-column grid that is clipped off-screen.\n */\nexport function resolveEmojiPickerContainerWidth(element: HTMLElement): number {\n const viewportWidth =\n typeof globalThis.window !== 'undefined' ? globalThis.window.innerWidth : 0;\n const isRtl = getComputedStyle(element).direction === 'rtl';\n const rect = element.getBoundingClientRect();\n let available = viewportWidth > 0 ? viewportWidth : 0;\n\n if (viewportWidth > 0) {\n const visibleInViewport = isRtl ? Math.max(0, rect.right) : viewportWidth - Math.max(0, rect.left);\n available = available > 0 ? Math.min(available, visibleInViewport) : visibleInViewport;\n }\n\n let current: HTMLElement | null = element.parentElement;\n\n while (current) {\n const style = getComputedStyle(current);\n if (style.display !== 'contents' && current.clientWidth > 0) {\n available = available > 0 ? Math.min(available, contentBoxWidth(current)) : contentBoxWidth(current);\n\n if (isClippedOverflow(style.overflowX) || isClippedOverflow(style.overflow)) {\n available = Math.min(available, visibleInlineSpace(rect, current, isRtl));\n }\n }\n current = current.parentElement;\n }\n\n return Math.max(0, Math.floor(available));\n}\n\n/** Resolves column count from container width while keeping a fixed cell size and gap. */\nexport function resolveEmojiPickerColumns(containerWidth: number, requested: number): number {\n const maxColumns = Math.max(EMOJI_PICKER_MIN_COLUMNS, requested);\n\n if (containerWidth <= 0) {\n return maxColumns;\n }\n\n const cellSizePx =\n containerWidth < 400 ? EMOJI_PICKER_CELL_SIZE_PX_COMPACT : EMOJI_PICKER_CELL_SIZE_PX;\n const availableWidth = Math.max(0, containerWidth - EMOJI_PICKER_GRID_PADDING_PX);\n const fittedColumns = Math.floor(\n (availableWidth + EMOJI_PICKER_CELL_GAP_PX) / (cellSizePx + EMOJI_PICKER_CELL_GAP_PX),\n );\n\n return Math.max(EMOJI_PICKER_MIN_COLUMNS, Math.min(maxColumns, fittedColumns));\n}\n\n/** Maximum number of emojis returned by search. */\nexport const SEARCH_RESULT_LIMIT = 200;\n\n/** User-defined exclusions for picker emoji lists. */\nexport interface AXEmojiPickerFilter {\n /** Unicode emoji group categories to hide from tabs and results. */\n readonly excludeCategories?: readonly AXEmojiCategory[];\n /** `AXEmoji.code` values to hide (hyphen-separated code points, e.g. `1f595`). */\n readonly excludeCodes?: readonly string[];\n /** `AXEmoji.unicode` glyph values to hide (e.g. `👋`). */\n readonly excludeUnicode?: readonly string[];\n}\n\ninterface AXResolvedEmojiPickerFilter {\n excludeCategories: ReadonlySet<AXEmojiCategory>;\n excludeCodes: ReadonlySet<string>;\n excludeUnicode: ReadonlySet<string>;\n}\n\nconst categoryIndexCache = new WeakMap<readonly AXEmoji[], ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]>>();\n\nfunction normalizeCode(value: string): string {\n return value.trim().toLowerCase();\n}\n\nfunction resolvePickerFilter(filter?: AXEmojiPickerFilter): AXResolvedEmojiPickerFilter {\n return {\n excludeCategories: new Set(filter?.excludeCategories ?? []),\n excludeCodes: new Set((filter?.excludeCodes ?? []).map(normalizeCode)),\n excludeUnicode: new Set(filter?.excludeUnicode ?? []),\n };\n}\n\nfunction isPickerEmojiAllowed(emoji: AXEmoji, filter: AXResolvedEmojiPickerFilter): boolean {\n if (emoji.category === 'component') {\n return false;\n }\n\n if (emoji.category === 'people-body' && !isPickerPeopleBodyEmoji(emoji.code)) {\n return false;\n }\n\n if (filter.excludeCategories.has(emoji.category)) {\n return false;\n }\n\n if (filter.excludeCodes.has(normalizeCode(emoji.code))) {\n return false;\n }\n\n if (filter.excludeUnicode.has(emoji.unicode)) {\n return false;\n }\n\n return true;\n}\n\n/** Applies picker exclusions and default people-body curation. */\nexport function filterPickerItems(items: readonly AXEmoji[], filter?: AXEmojiPickerFilter): readonly AXEmoji[] {\n const resolvedFilter = resolvePickerFilter(filter);\n return items.filter((emoji) => isPickerEmojiAllowed(emoji, resolvedFilter));\n}\n\n/**\n * Builds a category index for picker rendering.\n * Expects items to be pre-filtered with {@link filterPickerItems}.\n */\nexport function buildEmojiPickerIndex(items: readonly AXEmoji[]): ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]> {\n const cached = categoryIndexCache.get(items);\n if (cached) {\n return cached;\n }\n\n const map = new Map<AXEmojiCategory, AXEmoji[]>();\n\n for (const emoji of items) {\n const bucket = map.get(emoji.category) ?? [];\n bucket.push(emoji);\n map.set(emoji.category, bucket);\n }\n\n const readonlyMap: ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]> = map;\n categoryIndexCache.set(items, readonlyMap);\n return readonlyMap;\n}\n\n/** Searches pre-filtered emoji metadata by name and keywords. */\nexport function searchPickerEmojis(\n items: readonly AXEmoji[],\n query: string,\n limit = SEARCH_RESULT_LIMIT,\n): readonly AXEmoji[] {\n const normalizedQuery = query.toLowerCase().trim();\n if (!normalizedQuery) {\n return [];\n }\n\n const results: AXEmoji[] = [];\n\n for (const emoji of items) {\n const haystack = `${emoji.name} ${emoji.keywords.join(' ')}`.toLowerCase();\n if (!haystack.includes(normalizedQuery)) {\n continue;\n }\n\n results.push(emoji);\n if (results.length >= limit) {\n break;\n }\n }\n\n return results;\n}\n","import { AXValueChangedEvent } from '@acorex/cdk/common';\nimport { AXGestureDirective, AXGestureEvent } from '@acorex/cdk/gesture';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTabItemComponent, AXTabsComponent, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport {\n AX_EMOJI_CATEGORIES,\n AX_EMOJI_PICKER_CATEGORY_RECENT,\n AX_EMOJIS_FOR_PICKER,\n AXEmoji,\n AXEmojiCategory,\n AXEmojiCategoryMeta,\n AXEmojiPickerCategoryId,\n} from '@acorex/core/constants';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\nimport {\n afterNextRender,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXEmojiComponent } from '@acorex/components/emoji';\nimport {\n buildEmojiPickerIndex,\n filterPickerItems,\n getEmojiPickerLayoutContainer,\n RECENT_EMOJI_LIMIT,\n resolveEmojiPickerColumns,\n resolveEmojiPickerContainerWidth,\n searchPickerEmojis,\n} from './emoji-picker.utils';\n\nconst DEFAULT_COLUMNS = 8;\n\n/**\n * Telegram-style emoji picker with category tabs, search, and recent emojis.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-emoji-picker',\n templateUrl: './emoji-picker.component.html',\n styleUrls: ['./emoji-picker.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ax-emoji-picker',\n '[class.ax-emoji-picker-native]': 'appearance() === \"native\"',\n '[style.--ax-comp-emoji-picker-columns]': 'effectiveColumns()',\n '[style.--ax-comp-emoji-picker-available-width]': 'availableWidthCss()',\n },\n imports: [\n FormsModule,\n ScrollingModule,\n AXSearchBoxModule,\n AXEmojiComponent,\n AXTabsComponent,\n AXTabItemComponent,\n AXGestureDirective,\n ],\n})\nexport class AXEmojiPickerComponent {\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n private readonly destroyRef = inject(DestroyRef);\n\n /** Emoji entries available in the picker. */\n readonly items = input<readonly AXEmoji[]>(AX_EMOJIS_FOR_PICKER);\n\n /** Rendered emoji size in the grid. */\n readonly size = input(24);\n\n /**\n * Emoji rendering style passed to {@link AXEmojiComponent}.\n * `google` uses Noto Color Emoji (Android/Google look) on Windows too.\n *\n * @defaultValue 'google'\n */\n readonly appearance = input<'google' | 'native'>('google');\n\n /** Whether the search box is shown. */\n readonly showSearch = input(true);\n\n /** Whether the recent category tab is shown. */\n readonly showRecent = input(true);\n\n /** Number of emoji columns in the virtualized grid. */\n readonly columns = input(DEFAULT_COLUMNS);\n\n /** Search box placeholder text. */\n readonly searchPlaceholder = input('Search...');\n\n /** Unicode emoji group categories to hide from tabs and results. */\n readonly excludeCategories = input<readonly AXEmojiCategory[]>([]);\n\n /** `AXEmoji.code` values to hide (e.g. `1f595`). */\n readonly excludeCodes = input<readonly string[]>([]);\n\n /** `AXEmoji.unicode` glyph values to hide (e.g. `🖕`). */\n readonly excludeUnicode = input<readonly string[]>([]);\n\n /** Emits when the user selects an emoji. */\n readonly selected = output<AXEmoji>();\n\n /**\n * Recently used emojis supplied by the parent (e.g. API, LocalStorage).\n * Rendered in the Recent tab when {@link showRecent} is enabled.\n */\n readonly recentItems = input<readonly AXEmoji[]>([]);\n\n /** Emits the updated recent list after the user selects an allowed emoji. */\n readonly recentChanged = output<readonly AXEmoji[]>();\n\n /** Current search query. */\n protected readonly searchQuery = signal('');\n\n /** Active category tab. */\n protected readonly activeCategoryId = signal<AXEmojiPickerCategoryId>('smileys-emotion');\n\n private readonly containerWidth = signal(0);\n\n protected readonly effectiveColumns = computed(() =>\n resolveEmojiPickerColumns(this.containerWidth(), this.columns()),\n );\n\n protected readonly availableWidthCss = computed(() => {\n const width = this.containerWidth();\n return width > 0 ? `${width}px` : '100%';\n });\n\n constructor() {\n afterNextRender(() => {\n const element = this.hostRef.nativeElement;\n let observedContainer: HTMLElement | null = null;\n let observedHost: HTMLElement | null = null;\n\n const updateLayout = () => {\n const container = getEmojiPickerLayoutContainer(element);\n\n if (observedContainer !== container) {\n if (observedContainer) {\n observer.unobserve(observedContainer);\n }\n observer.observe(container);\n observedContainer = container;\n }\n\n if (observedHost !== element) {\n observer.observe(element);\n observedHost = element;\n }\n\n this.containerWidth.set(resolveEmojiPickerContainerWidth(element));\n };\n\n const observer = new ResizeObserver(updateLayout);\n const viewport = globalThis.window.visualViewport;\n\n globalThis.window.addEventListener('resize', updateLayout);\n viewport?.addEventListener('resize', updateLayout);\n observer.observe(document.documentElement);\n updateLayout();\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n globalThis.window.removeEventListener('resize', updateLayout);\n viewport?.removeEventListener('resize', updateLayout);\n });\n });\n }\n\n /** Items after picker exclusions are applied. */\n protected readonly filteredItems = computed(() =>\n filterPickerItems(this.items(), {\n excludeCategories: this.excludeCategories(),\n excludeCodes: this.excludeCodes(),\n excludeUnicode: this.excludeUnicode(),\n }),\n );\n\n private readonly categoryIndex = computed(() => buildEmojiPickerIndex(this.filteredItems()));\n\n /** Recent items after active exclusions are applied for display. */\n protected readonly visibleRecentItems = computed(() => {\n const allowedCodes = new Set(this.filteredItems().map((emoji) => emoji.code));\n return this.recentItems().filter((emoji) => allowedCodes.has(emoji.code));\n });\n\n protected onCategorySwipe(event: AXGestureEvent): void {}\n\n /** Visible category tabs. */\n protected readonly categories = computed((): readonly AXEmojiCategoryMeta[] => {\n const excludedCategories = new Set(this.excludeCategories());\n const categories = this.showRecent()\n ? AX_EMOJI_CATEGORIES\n : AX_EMOJI_CATEGORIES.filter((category) => category.id !== AX_EMOJI_PICKER_CATEGORY_RECENT);\n\n return categories.filter((category) => {\n if (category.id === AX_EMOJI_PICKER_CATEGORY_RECENT) {\n return true;\n }\n\n return !excludedCategories.has(category.id as AXEmojiCategory);\n });\n });\n\n /** Emojis shown in the current view (category or search results). */\n protected readonly visibleEmojis = computed((): readonly AXEmoji[] => {\n const query = this.searchQuery().trim();\n if (query) {\n return searchPickerEmojis(this.filteredItems(), query);\n }\n\n const categoryId = this.activeCategoryId();\n if (categoryId === AX_EMOJI_PICKER_CATEGORY_RECENT) {\n return this.visibleRecentItems();\n }\n\n return this.categoryIndex().get(categoryId as AXEmojiCategory) ?? [];\n });\n\n /** Rows used by the virtual scroll viewport. */\n protected readonly emojiRows = computed((): readonly (readonly AXEmoji[])[] => {\n const emojis = this.visibleEmojis();\n const columnCount = Math.max(1, this.effectiveColumns());\n const rows: AXEmoji[][] = [];\n\n for (let index = 0; index < emojis.length; index += columnCount) {\n rows.push(emojis.slice(index, index + columnCount));\n }\n\n return rows;\n });\n\n /** Virtual scroll row height in pixels. */\n protected readonly rowHeight = computed(() => this.size() + 6);\n\n /** Whether the user is searching. */\n protected readonly isSearching = computed(() => this.searchQuery().trim().length > 0);\n\n /** Whether the current view has no emojis. */\n protected readonly isEmpty = computed(() => this.visibleEmojis().length === 0);\n\n /** Keeps the active tab valid when exclusions change. */\n private readonly syncActiveCategory = effect(() => {\n const categories = this.categories();\n const activeCategoryId = this.activeCategoryId();\n\n if (categories.some((category) => category.id === activeCategoryId)) {\n return;\n }\n\n this.activeCategoryId.set(categories[0]?.id ?? 'smileys-emotion');\n });\n\n /** Selects a category tab and clears search. */\n protected selectCategory(categoryId: AXEmojiPickerCategoryId): void {\n this.activeCategoryId.set(categoryId);\n this.searchQuery.set('');\n }\n\n /** Whether the given category tab is active. */\n protected isCategoryActive(categoryId: AXEmojiPickerCategoryId): boolean {\n return !this.isSearching() && this.activeCategoryId() === categoryId;\n }\n\n /** Whether the category tab is the virtual recent group. */\n protected isRecentCategory(categoryId: AXEmojiPickerCategoryId): boolean {\n return categoryId === AX_EMOJI_PICKER_CATEGORY_RECENT;\n }\n\n /** Syncs the active emoji category when a tab is selected. */\n protected onCategoryTabChanged(event: AXTabStripChangedEvent): void {\n const categoryId = event.tab?.key as AXEmojiPickerCategoryId | undefined;\n if (categoryId) {\n this.selectCategory(categoryId);\n }\n }\n\n /** Updates the search query from the search box. */\n protected onSearchChanged(event: AXValueChangedEvent<string>): void {\n this.searchQuery.set(event.value ?? '');\n }\n\n /** Emits the selected emoji and notifies the parent of the updated recent list. */\n protected selectEmoji(emoji: AXEmoji): void {\n this.rememberRecent(emoji);\n this.selected.emit(emoji);\n }\n\n /** @ignore */\n protected trackRow(index: number, row: readonly AXEmoji[]): string {\n return row[0]?.code ?? String(index);\n }\n\n private rememberRecent(emoji: AXEmoji): void {\n const isAllowed =\n filterPickerItems([emoji], {\n excludeCategories: this.excludeCategories(),\n excludeCodes: this.excludeCodes(),\n excludeUnicode: this.excludeUnicode(),\n }).length > 0;\n\n if (!isAllowed) {\n return;\n }\n\n const next = [emoji, ...this.recentItems().filter((item) => item.code !== emoji.code)].slice(0, RECENT_EMOJI_LIMIT);\n\n this.recentChanged.emit(next);\n }\n}\n","<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { AXEmojiPickerComponent } from './emoji-picker.component';\n\n@NgModule({\n imports: [AXEmojiPickerComponent],\n exports: [AXEmojiPickerComponent],\n})\nexport class AXEmojiPickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEA;AACO,MAAM,kBAAkB,GAAG;AAElC;AACO,MAAM,yBAAyB,GAAG;AAEzC;AACO,MAAM,iCAAiC,GAAG;AAEjD;AACO,MAAM,wBAAwB,GAAG;AAExC;AACO,MAAM,4BAA4B,GAAG;AAE5C;AACO,MAAM,wBAAwB,GAAG;AAExC,SAAS,eAAe,CAAC,OAAoB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC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B,CAAA,EAAA,CAAA,CAAA;AAErB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,sBAAsB,CAAA,EAAA,CAAA,CAAA;;2FAGrB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;;ACND;;AAEG;;"}
1
+ {"version":3,"file":"acorex-components-emojipicker.mjs","sources":["../../../../packages/components/emojipicker/src/lib/emoji-picker.utils.ts","../../../../packages/components/emojipicker/src/lib/emoji-picker.component.ts","../../../../packages/components/emojipicker/src/lib/emoji-picker.component.html","../../../../packages/components/emojipicker/src/lib/emojipicker.module.ts","../../../../packages/components/emojipicker/src/acorex-components-emojipicker.ts"],"sourcesContent":["import { AXEmoji, AXEmojiCategory, isPickerPeopleBodyEmoji } from '@acorex/core/constants';\n\n/** Maximum number of emojis kept in the recent list. */\nexport const RECENT_EMOJI_LIMIT = 20;\n\n/** Grid cell size in px (`--ax-comp-emoji-picker-cell-size`). */\nexport const EMOJI_PICKER_CELL_SIZE_PX = 36;\n\n/** Grid cell size in px on narrow viewports. */\nexport const EMOJI_PICKER_CELL_SIZE_PX_COMPACT = 32;\n\n/** Gap between grid cells in px (`--ax-comp-emoji-picker-cell-gap`). */\nexport const EMOJI_PICKER_CELL_GAP_PX = 2;\n\n/** Horizontal padding around the emoji grid in px. */\nexport const EMOJI_PICKER_GRID_PADDING_PX = 24;\n\n/** Minimum column count. */\nexport const EMOJI_PICKER_MIN_COLUMNS = 1;\n\nfunction contentBoxWidth(element: HTMLElement): number {\n const style = getComputedStyle(element);\n const paddingX =\n (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);\n return Math.max(0, element.clientWidth - paddingX);\n}\n\nfunction isClippedOverflow(overflowX: string): boolean {\n return overflowX === 'hidden' || overflowX === 'auto' || overflowX === 'scroll' || overflowX === 'clip';\n}\n\n/** Remaining inline space for `element` inside `container`. */\nfunction visibleInlineSpace(elementRect: DOMRect, container: HTMLElement, isRtl: boolean): number {\n const containerRect = container.getBoundingClientRect();\n const start = isRtl\n ? containerRect.right - Math.min(elementRect.right, containerRect.right)\n : Math.min(elementRect.left, containerRect.right) - containerRect.left;\n\n return Math.max(0, contentBoxWidth(container) - Math.max(0, start));\n}\n\n/** Nearest ancestor that participates in layout (skips `display: contents`). */\nexport function getEmojiPickerLayoutContainer(element: HTMLElement): HTMLElement {\n let current: HTMLElement | null = element.parentElement;\n\n while (current) {\n const display = getComputedStyle(current).display;\n if (display !== 'contents' && current.clientWidth > 0) {\n return current;\n }\n current = current.parentElement;\n }\n\n return element;\n}\n\n/**\n * Available width for the picker grid.\n * Uses the tightest ancestor content box and the visible viewport slot so an\n * overflowing parent cannot keep an 8-column grid that is clipped off-screen.\n */\nexport function resolveEmojiPickerContainerWidth(element: HTMLElement): number {\n const viewportWidth =\n typeof globalThis.window !== 'undefined' ? globalThis.window.innerWidth : 0;\n const isRtl = getComputedStyle(element).direction === 'rtl';\n const rect = element.getBoundingClientRect();\n let available = viewportWidth > 0 ? viewportWidth : 0;\n\n if (viewportWidth > 0) {\n const visibleInViewport = isRtl ? Math.max(0, rect.right) : viewportWidth - Math.max(0, rect.left);\n available = available > 0 ? Math.min(available, visibleInViewport) : visibleInViewport;\n }\n\n let current: HTMLElement | null = element.parentElement;\n\n while (current) {\n const style = getComputedStyle(current);\n if (style.display !== 'contents' && current.clientWidth > 0) {\n available = available > 0 ? Math.min(available, contentBoxWidth(current)) : contentBoxWidth(current);\n\n if (isClippedOverflow(style.overflowX) || isClippedOverflow(style.overflow)) {\n available = Math.min(available, visibleInlineSpace(rect, current, isRtl));\n }\n }\n current = current.parentElement;\n }\n\n return Math.max(0, Math.floor(available));\n}\n\n/** Resolves column count from container width while keeping a fixed cell size and gap. */\nexport function resolveEmojiPickerColumns(containerWidth: number, requested: number): number {\n const maxColumns = Math.max(EMOJI_PICKER_MIN_COLUMNS, requested);\n\n if (containerWidth <= 0) {\n return maxColumns;\n }\n\n const cellSizePx =\n containerWidth < 400 ? EMOJI_PICKER_CELL_SIZE_PX_COMPACT : EMOJI_PICKER_CELL_SIZE_PX;\n const availableWidth = Math.max(0, containerWidth - EMOJI_PICKER_GRID_PADDING_PX);\n const fittedColumns = Math.floor(\n (availableWidth + EMOJI_PICKER_CELL_GAP_PX) / (cellSizePx + EMOJI_PICKER_CELL_GAP_PX),\n );\n\n return Math.max(EMOJI_PICKER_MIN_COLUMNS, Math.min(maxColumns, fittedColumns));\n}\n\n/** Maximum number of emojis returned by search. */\nexport const SEARCH_RESULT_LIMIT = 200;\n\n/** User-defined exclusions for picker emoji lists. */\nexport interface AXEmojiPickerFilter {\n /** Unicode emoji group categories to hide from tabs and results. */\n readonly excludeCategories?: readonly AXEmojiCategory[];\n /** `AXEmoji.code` values to hide (hyphen-separated code points, e.g. `1f595`). */\n readonly excludeCodes?: readonly string[];\n /** `AXEmoji.unicode` glyph values to hide (e.g. `👋`). */\n readonly excludeUnicode?: readonly string[];\n}\n\ninterface AXResolvedEmojiPickerFilter {\n excludeCategories: ReadonlySet<AXEmojiCategory>;\n excludeCodes: ReadonlySet<string>;\n excludeUnicode: ReadonlySet<string>;\n}\n\nconst categoryIndexCache = new WeakMap<readonly AXEmoji[], ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]>>();\n\nfunction normalizeCode(value: string): string {\n return value.trim().toLowerCase();\n}\n\nfunction resolvePickerFilter(filter?: AXEmojiPickerFilter): AXResolvedEmojiPickerFilter {\n return {\n excludeCategories: new Set(filter?.excludeCategories ?? []),\n excludeCodes: new Set((filter?.excludeCodes ?? []).map(normalizeCode)),\n excludeUnicode: new Set(filter?.excludeUnicode ?? []),\n };\n}\n\nfunction isPickerEmojiAllowed(emoji: AXEmoji, filter: AXResolvedEmojiPickerFilter): boolean {\n if (emoji.category === 'component') {\n return false;\n }\n\n if (emoji.category === 'people-body' && !isPickerPeopleBodyEmoji(emoji.code)) {\n return false;\n }\n\n if (filter.excludeCategories.has(emoji.category)) {\n return false;\n }\n\n if (filter.excludeCodes.has(normalizeCode(emoji.code))) {\n return false;\n }\n\n if (filter.excludeUnicode.has(emoji.unicode)) {\n return false;\n }\n\n return true;\n}\n\n/** Applies picker exclusions and default people-body curation. */\nexport function filterPickerItems(items: readonly AXEmoji[], filter?: AXEmojiPickerFilter): readonly AXEmoji[] {\n const resolvedFilter = resolvePickerFilter(filter);\n return items.filter((emoji) => isPickerEmojiAllowed(emoji, resolvedFilter));\n}\n\n/**\n * Builds a category index for picker rendering.\n * Expects items to be pre-filtered with {@link filterPickerItems}.\n */\nexport function buildEmojiPickerIndex(items: readonly AXEmoji[]): ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]> {\n const cached = categoryIndexCache.get(items);\n if (cached) {\n return cached;\n }\n\n const map = new Map<AXEmojiCategory, AXEmoji[]>();\n\n for (const emoji of items) {\n const bucket = map.get(emoji.category) ?? [];\n bucket.push(emoji);\n map.set(emoji.category, bucket);\n }\n\n const readonlyMap: ReadonlyMap<AXEmojiCategory, readonly AXEmoji[]> = map;\n categoryIndexCache.set(items, readonlyMap);\n return readonlyMap;\n}\n\n/** Searches pre-filtered emoji metadata by name and keywords. */\nexport function searchPickerEmojis(\n items: readonly AXEmoji[],\n query: string,\n limit = SEARCH_RESULT_LIMIT,\n): readonly AXEmoji[] {\n const normalizedQuery = query.toLowerCase().trim();\n if (!normalizedQuery) {\n return [];\n }\n\n const results: AXEmoji[] = [];\n\n for (const emoji of items) {\n const haystack = `${emoji.name} ${emoji.keywords.join(' ')}`.toLowerCase();\n if (!haystack.includes(normalizedQuery)) {\n continue;\n }\n\n results.push(emoji);\n if (results.length >= limit) {\n break;\n }\n }\n\n return results;\n}\n","import { AXValueChangedEvent } from '@acorex/cdk/common';\nimport { AXGestureDirective, AXGestureEvent } from '@acorex/cdk/gesture';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTabItemComponent, AXTabsComponent, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport {\n AX_EMOJI_CATEGORIES,\n AX_EMOJI_PICKER_CATEGORY_RECENT,\n AX_EMOJIS_FOR_PICKER,\n AXEmoji,\n AXEmojiCategory,\n AXEmojiCategoryMeta,\n AXEmojiPickerCategoryId,\n} from '@acorex/core/constants';\nimport { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';\nimport {\n afterNextRender,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXEmojiComponent } from '@acorex/components/emoji';\nimport {\n buildEmojiPickerIndex,\n filterPickerItems,\n getEmojiPickerLayoutContainer,\n RECENT_EMOJI_LIMIT,\n resolveEmojiPickerColumns,\n resolveEmojiPickerContainerWidth,\n searchPickerEmojis,\n} from './emoji-picker.utils';\n\nconst DEFAULT_COLUMNS = 8;\n\n/**\n * Telegram-style emoji picker with category tabs, search, and recent emojis.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-emoji-picker',\n templateUrl: './emoji-picker.component.html',\n styleUrls: ['./emoji-picker.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ax-emoji-picker',\n '[class.ax-emoji-picker-native]': 'appearance() === \"native\"',\n '[style.--ax-comp-emoji-picker-columns]': 'effectiveColumns()',\n '[style.--ax-comp-emoji-picker-available-width]': 'availableWidthCss()',\n },\n imports: [\n FormsModule,\n ScrollingModule,\n AXSearchBoxModule,\n AXEmojiComponent,\n AXTabsComponent,\n AXTabItemComponent,\n AXGestureDirective,\n ],\n})\nexport class AXEmojiPickerComponent {\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewport = viewChild(CdkVirtualScrollViewport);\n\n /** Emoji entries available in the picker. */\n readonly items = input<readonly AXEmoji[]>(AX_EMOJIS_FOR_PICKER);\n\n /** Rendered emoji size in the grid. */\n readonly size = input(24);\n\n /**\n * Emoji rendering style passed to {@link AXEmojiComponent}.\n * `google` uses Noto Color Emoji (Android/Google look) on Windows too.\n *\n * @defaultValue 'google'\n */\n readonly appearance = input<'google' | 'native'>('google');\n\n /** Whether the search box is shown. */\n readonly showSearch = input(true);\n\n /** Whether the recent category tab is shown. */\n readonly showRecent = input(true);\n\n /** Number of emoji columns in the virtualized grid. */\n readonly columns = input(DEFAULT_COLUMNS);\n\n /** Search box placeholder text. */\n readonly searchPlaceholder = input('Search...');\n\n /** Unicode emoji group categories to hide from tabs and results. */\n readonly excludeCategories = input<readonly AXEmojiCategory[]>([]);\n\n /** `AXEmoji.code` values to hide (e.g. `1f595`). */\n readonly excludeCodes = input<readonly string[]>([]);\n\n /** `AXEmoji.unicode` glyph values to hide (e.g. `🖕`). */\n readonly excludeUnicode = input<readonly string[]>([]);\n\n /** Emits when the user selects an emoji. */\n readonly selected = output<AXEmoji>();\n\n /**\n * Recently used emojis supplied by the parent (e.g. API, LocalStorage).\n * Rendered in the Recent tab when {@link showRecent} is enabled.\n */\n readonly recentItems = input<readonly AXEmoji[]>([]);\n\n /** Emits the updated recent list after the user selects an allowed emoji. */\n readonly recentChanged = output<readonly AXEmoji[]>();\n\n /** Current search query. */\n protected readonly searchQuery = signal('');\n\n /** Active category tab. */\n protected readonly activeCategoryId = signal<AXEmojiPickerCategoryId>('smileys-emotion');\n\n private readonly containerWidth = signal(0);\n\n protected readonly effectiveColumns = computed(() =>\n resolveEmojiPickerColumns(this.containerWidth(), this.columns()),\n );\n\n protected readonly availableWidthCss = computed(() => {\n const width = this.containerWidth();\n return width > 0 ? `${width}px` : '100%';\n });\n\n constructor() {\n afterNextRender(() => {\n const element = this.hostRef.nativeElement;\n let observedContainer: HTMLElement | null = null;\n let observedHost: HTMLElement | null = null;\n\n const updateLayout = () => {\n const container = getEmojiPickerLayoutContainer(element);\n\n if (observedContainer !== container) {\n if (observedContainer) {\n observer.unobserve(observedContainer);\n }\n observer.observe(container);\n observedContainer = container;\n }\n\n if (observedHost !== element) {\n observer.observe(element);\n observedHost = element;\n }\n\n this.containerWidth.set(resolveEmojiPickerContainerWidth(element));\n this.remeasureGrid();\n };\n\n const observer = new ResizeObserver(updateLayout);\n const viewport = globalThis.window.visualViewport;\n\n globalThis.window.addEventListener('resize', updateLayout);\n viewport?.addEventListener('resize', updateLayout);\n observer.observe(document.documentElement);\n updateLayout();\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n globalThis.window.removeEventListener('resize', updateLayout);\n viewport?.removeEventListener('resize', updateLayout);\n });\n });\n }\n\n /** Items after picker exclusions are applied. */\n protected readonly filteredItems = computed(() =>\n filterPickerItems(this.items(), {\n excludeCategories: this.excludeCategories(),\n excludeCodes: this.excludeCodes(),\n excludeUnicode: this.excludeUnicode(),\n }),\n );\n\n private readonly categoryIndex = computed(() => buildEmojiPickerIndex(this.filteredItems()));\n\n /** Recent items after active exclusions are applied for display. */\n protected readonly visibleRecentItems = computed(() => {\n const allowedCodes = new Set(this.filteredItems().map((emoji) => emoji.code));\n return this.recentItems().filter((emoji) => allowedCodes.has(emoji.code));\n });\n\n protected onCategorySwipe(event: AXGestureEvent): void {}\n\n /** Visible category tabs. */\n protected readonly categories = computed((): readonly AXEmojiCategoryMeta[] => {\n const excludedCategories = new Set(this.excludeCategories());\n const categories = this.showRecent()\n ? AX_EMOJI_CATEGORIES\n : AX_EMOJI_CATEGORIES.filter((category) => category.id !== AX_EMOJI_PICKER_CATEGORY_RECENT);\n\n return categories.filter((category) => {\n if (category.id === AX_EMOJI_PICKER_CATEGORY_RECENT) {\n return true;\n }\n\n return !excludedCategories.has(category.id as AXEmojiCategory);\n });\n });\n\n /** Emojis shown in the current view (category or search results). */\n protected readonly visibleEmojis = computed((): readonly AXEmoji[] => {\n const query = this.searchQuery().trim();\n if (query) {\n return searchPickerEmojis(this.filteredItems(), query);\n }\n\n const categoryId = this.activeCategoryId();\n if (categoryId === AX_EMOJI_PICKER_CATEGORY_RECENT) {\n return this.visibleRecentItems();\n }\n\n return this.categoryIndex().get(categoryId as AXEmojiCategory) ?? [];\n });\n\n /** Rows used by the virtual scroll viewport. */\n protected readonly emojiRows = computed((): readonly (readonly AXEmoji[])[] => {\n const emojis = this.visibleEmojis();\n const columnCount = Math.max(1, this.effectiveColumns());\n const rows: AXEmoji[][] = [];\n\n for (let index = 0; index < emojis.length; index += columnCount) {\n rows.push(emojis.slice(index, index + columnCount));\n }\n\n return rows;\n });\n\n /** Virtual scroll row height in pixels. */\n protected readonly rowHeight = computed(() => this.size() + 6);\n\n /** Whether the user is searching. */\n protected readonly isSearching = computed(() => this.searchQuery().trim().length > 0);\n\n /** Whether the current view has no emojis. */\n protected readonly isEmpty = computed(() => this.visibleEmojis().length === 0);\n\n /** The grid is often measured before its popover has a height; recheck once layout settles. */\n private readonly remeasureOnRows = effect(() => {\n this.emojiRows();\n this.containerWidth();\n this.remeasureGrid();\n });\n\n private remeasureGrid(): void {\n const viewport = this.viewport();\n if (!viewport) {\n return;\n }\n queueMicrotask(() => viewport.checkViewportSize());\n }\n\n /** Keeps the active tab valid when exclusions change. */\n private readonly syncActiveCategory = effect(() => {\n const categories = this.categories();\n const activeCategoryId = this.activeCategoryId();\n\n if (categories.some((category) => category.id === activeCategoryId)) {\n return;\n }\n\n this.activeCategoryId.set(categories[0]?.id ?? 'smileys-emotion');\n });\n\n /** Selects a category tab and clears search. */\n protected selectCategory(categoryId: AXEmojiPickerCategoryId): void {\n this.activeCategoryId.set(categoryId);\n this.searchQuery.set('');\n }\n\n /** Whether the given category tab is active. */\n protected isCategoryActive(categoryId: AXEmojiPickerCategoryId): boolean {\n return !this.isSearching() && this.activeCategoryId() === categoryId;\n }\n\n /** Whether the category tab is the virtual recent group. */\n protected isRecentCategory(categoryId: AXEmojiPickerCategoryId): boolean {\n return categoryId === AX_EMOJI_PICKER_CATEGORY_RECENT;\n }\n\n /** Syncs the active emoji category when a tab is selected. */\n protected onCategoryTabChanged(event: AXTabStripChangedEvent): void {\n const categoryId = event.tab?.key as AXEmojiPickerCategoryId | undefined;\n if (categoryId) {\n this.selectCategory(categoryId);\n }\n }\n\n /** Updates the search query from the search box. */\n protected onSearchChanged(event: AXValueChangedEvent<string>): void {\n this.searchQuery.set(event.value ?? '');\n }\n\n /** Emits the selected emoji and notifies the parent of the updated recent list. */\n protected selectEmoji(emoji: AXEmoji): void {\n this.rememberRecent(emoji);\n this.selected.emit(emoji);\n }\n\n /** @ignore */\n protected trackRow(index: number, row: readonly AXEmoji[]): string {\n return row[0]?.code ?? String(index);\n }\n\n private rememberRecent(emoji: AXEmoji): void {\n const isAllowed =\n filterPickerItems([emoji], {\n excludeCategories: this.excludeCategories(),\n excludeCodes: this.excludeCodes(),\n excludeUnicode: this.excludeUnicode(),\n }).length > 0;\n\n if (!isAllowed) {\n return;\n }\n\n const next = [emoji, ...this.recentItems().filter((item) => item.code !== emoji.code)].slice(0, RECENT_EMOJI_LIMIT);\n\n this.recentChanged.emit(next);\n }\n}\n","<div class=\"ax-emoji-picker-layout\">\n <ax-tabs\n class=\"ax-emoji-picker-categories\"\n [look]=\"'pills'\"\n location=\"bottom\"\n [attr.aria-label]=\"'Emoji categories'\"\n (onActiveTabChanged)=\"onCategoryTabChanged($event)\"\n axGesture\n direction=\"horizontal\"\n (swipe)=\"onCategorySwipe($event)\"\n >\n @for (category of categories(); track category.id) {\n <ax-tab-item\n [text]=\"category.iconUnicode\"\n [key]=\"category.id\"\n [active]=\"isCategoryActive(category.id)\"\n [class.ax-emoji-picker-tab-recent]=\"isRecentCategory(category.id)\"\n [attr.aria-label]=\"category.label\"\n [title]=\"category.label\"\n ></ax-tab-item>\n }\n </ax-tabs>\n\n <div class=\"ax-emoji-picker-search-container\">\n @if (showSearch()) {\n <div class=\"ax-emoji-picker-search\">\n <ax-search-box\n [look]=\"'fill'\"\n [value]=\"searchQuery()\"\n [placeholder]=\"searchPlaceholder()\"\n [delayTime]=\"250\"\n (onValueChanged)=\"onSearchChanged($event)\"\n ></ax-search-box>\n </div>\n }\n\n @if (isEmpty()) {\n <div class=\"ax-emoji-picker-empty\">\n @if (isSearching()) {\n <span>No emojis found</span>\n } @else if (activeCategoryId() === 'recent') {\n <span>No recent emojis yet</span>\n } @else {\n <span>No emojis in this category</span>\n }\n </div>\n } @else {\n <cdk-virtual-scroll-viewport\n class=\"ax-emoji-picker-grid\"\n [itemSize]=\"rowHeight()\"\n [minBufferPx]=\"rowHeight() * 4\"\n [maxBufferPx]=\"rowHeight() * 8\"\n >\n <div class=\"ax-emoji-picker-row\" *cdkVirtualFor=\"let row of emojiRows(); trackBy: trackRow\">\n @for (emoji of row; track emoji.code) {\n <button\n type=\"button\"\n class=\"ax-emoji-picker-item\"\n (click)=\"selectEmoji(emoji)\"\n [attr.aria-label]=\"emoji.name\"\n [title]=\"emoji.name\"\n >\n <ax-emoji [emoji]=\"emoji\" [size]=\"size()\" [appearance]=\"appearance()\"></ax-emoji>\n </button>\n }\n </div>\n </cdk-virtual-scroll-viewport>\n }\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { AXEmojiPickerComponent } from './emoji-picker.component';\n\n@NgModule({\n imports: [AXEmojiPickerComponent],\n exports: [AXEmojiPickerComponent],\n})\nexport class AXEmojiPickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEA;AACO,MAAM,kBAAkB,GAAG;AAElC;AACO,MAAM,yBAAyB,GAAG;AAEzC;AACO,MAAM,iCAAiC,GAAG;AAEjD;AACO,MAAM,wBAAwB,GAAG;AAExC;AACO,MAAM,4BAA4B,GAAG;AAE5C;AACO,MAAM,wBAAwB,GAAG;AAExC,SAAS,eAAe,CAAC,O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A,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;MEhEnD,mBAAmB,CAAA;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAnB,mBAAmB,EAAA,OAAA,EAAA,CAHpB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAErB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,sBAAsB,CAAA,EAAA,CAAA,CAAA;;2FAGrB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;;ACND;;AAEG;;"}
@@ -104,14 +104,14 @@ class AXImageComponent extends MXBaseComponent {
104
104
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXImageComponent, isStandalone: true, selector: "ax-image", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, overlayMode: { classPropertyName: "overlayMode", publicName: "overlayMode", isSignal: false, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: false, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: false, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: false, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onLoad: "onLoad", onError: "onError" }, host: { properties: { "class": "this.__hostClass", "style": "this.__hostStyle" } }, providers: [
105
105
  { provide: 'ax-image', useValue: AXImageComponent },
106
106
  { provide: AXComponent, useExisting: AXImageComponent },
107
- ], usesInheritance: true, ngImport: i0, template: "@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n", styles: ["@layer components{ax-image{--ax-comp-image-overlay-color: rgb(0 0 0 / .75);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}ax-image img{display:block;height:100%;width:100%}ax-image img.ax-state-hidden{position:absolute;inset:calc(var(--spacing, .25rem) * 0);opacity:0%}ax-image img.ax-state-loaded{opacity:100%}ax-image.ax-overlay-hover ax-overlay{display:none}ax-image.ax-overlay-hover:hover ax-overlay{display:flex}ax-image.ax-overlay-always ax-overlay{display:flex}ax-image ax-overlay{position:absolute;top:calc(var(--spacing, .25rem) * 0);display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--ax-comp-image-overlay-color)}ax-image ax-loading{position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:flex;align-items:center;justify-content:center}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], encapsulation: i0.ViewEncapsulation.None }); }
107
+ ], usesInheritance: true, ngImport: i0, template: "@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n", styles: ["@layer components{ax-image{--ax-comp-image-overlay-color: rgb(0 0 0 / .75);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}ax-image img{display:block;height:100%;width:100%}ax-image img.ax-state-hidden{position:absolute;inset:calc(var(--spacing, .25rem) * 0);opacity:0%}ax-image img.ax-state-loaded{position:static;opacity:100%}ax-image.ax-overlay-hover ax-overlay{display:none}ax-image.ax-overlay-hover:hover ax-overlay{display:flex}ax-image.ax-overlay-always ax-overlay{display:flex}ax-image ax-overlay{position:absolute;top:calc(var(--spacing, .25rem) * 0);display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--ax-comp-image-overlay-color)}ax-image ax-loading{position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:flex;align-items:center;justify-content:center}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], encapsulation: i0.ViewEncapsulation.None }); }
108
108
  }
109
109
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXImageComponent, decorators: [{
110
110
  type: Component,
111
111
  args: [{ selector: 'ax-image', encapsulation: ViewEncapsulation.None, providers: [
112
112
  { provide: 'ax-image', useValue: AXImageComponent },
113
113
  { provide: AXComponent, useExisting: AXImageComponent },
114
- ], imports: [], template: "@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n", styles: ["@layer components{ax-image{--ax-comp-image-overlay-color: rgb(0 0 0 / .75);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}ax-image img{display:block;height:100%;width:100%}ax-image img.ax-state-hidden{position:absolute;inset:calc(var(--spacing, .25rem) * 0);opacity:0%}ax-image img.ax-state-loaded{opacity:100%}ax-image.ax-overlay-hover ax-overlay{display:none}ax-image.ax-overlay-hover:hover ax-overlay{display:flex}ax-image.ax-overlay-always ax-overlay{display:flex}ax-image ax-overlay{position:absolute;top:calc(var(--spacing, .25rem) * 0);display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--ax-comp-image-overlay-color)}ax-image ax-loading{position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:flex;align-items:center;justify-content:center}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
114
+ ], imports: [], template: "@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n", styles: ["@layer components{ax-image{--ax-comp-image-overlay-color: rgb(0 0 0 / .75);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}ax-image img{display:block;height:100%;width:100%}ax-image img.ax-state-hidden{position:absolute;inset:calc(var(--spacing, .25rem) * 0);opacity:0%}ax-image img.ax-state-loaded{position:static;opacity:100%}ax-image.ax-overlay-hover ax-overlay{display:none}ax-image.ax-overlay-hover:hover ax-overlay{display:flex}ax-image.ax-overlay-always ax-overlay{display:flex}ax-image ax-overlay{position:absolute;top:calc(var(--spacing, .25rem) * 0);display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--ax-comp-image-overlay-color)}ax-image ax-loading{position:absolute;inset:calc(var(--spacing, .25rem) * 0);display:flex;align-items:center;justify-content:center}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
115
115
  }], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], overlayMode: [{
116
116
  type: Input
117
117
  }], src: [{
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-image.mjs","sources":["../../../../packages/components/image/src/lib/image.component.ts","../../../../packages/components/image/src/lib/image.component.html","../../../../packages/components/image/src/lib/image.module.ts","../../../../packages/components/image/src/acorex-components-image.ts"],"sourcesContent":["import { AXComponent, AXHtmlEvent, MXBaseComponent } from '@acorex/cdk/common';\n\nimport { Component, EventEmitter, HostBinding, input, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';\n\n/**\n * Displays an image with customizable settings.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-image',\n templateUrl: './image.component.html',\n styleUrls: ['./image.component.css'],\n encapsulation: ViewEncapsulation.None,\n\n providers: [\n { provide: 'ax-image', useValue: AXImageComponent },\n { provide: AXComponent, useExisting: AXImageComponent },\n ],\n imports: [],\n})\nexport class AXImageComponent extends MXBaseComponent implements OnInit {\n readonly width = input<number>(null);\n readonly height = input<number>(null);\n\n /**\n * Specifies when the image overlay should be shown.\n *\n * @defaultValue 'hover'\n */\n @Input()\n overlayMode: 'always' | 'hover' = 'hover';\n\n /**\n * The URL of the image to be displayed.\n *\n * @defaultValue null\n */\n @Input()\n src?: string | null;\n\n /**\n * The alternative text for the image, for accessibility purposes.\n *\n * @defaultValue null\n */\n @Input()\n alt?: string | null;\n\n /**\n * Priority for image loading.\n *\n * @defaultValue 'auto'\n */\n @Input()\n priority: 'low' | 'auto' | 'high' = 'auto';\n\n /**\n * Indicates if the image should be loaded lazily.\n *\n * @defaultValue false\n */\n @Input()\n lazy: boolean;\n\n /**\n * Emits an event when the image has successfully loaded.\n *\n * @event\n */\n @Output()\n onLoad: EventEmitter<AXHtmlEvent> = new EventEmitter<AXHtmlEvent>();\n\n /**\n * Emits an event when there is an error loading the image.\n *\n * @event\n */\n @Output()\n onError: EventEmitter<AXHtmlEvent<ErrorEvent>> = new EventEmitter<AXHtmlEvent<ErrorEvent>>();\n\n /**\n * @ignore\n */\n protected _hasError = false;\n\n /**\n * @ignore\n */\n protected _isLoaded = false;\n\n /**\n * @ignore\n */\n protected _isLoading = false;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit();\n this._isLoading = this.src != null;\n }\n\n /**\n * @ignore\n */\n protected _handleLoadImage(e: Event) {\n this._isLoaded = true;\n this._hasError = false;\n this._isLoading = false;\n this.onLoad.emit({\n component: this,\n htmlElement: this.getHostElement(),\n isUserInteraction: false,\n nativeEvent: e,\n });\n }\n\n /**\n * @ignore\n */\n protected _handleErrorImage(e: ErrorEvent) {\n this._hasError = true;\n this._isLoaded = false;\n this._isLoading = false;\n this.onError.emit({\n component: this,\n htmlElement: this.getHostElement(),\n isUserInteraction: false,\n nativeEvent: e,\n });\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n get __hostClass(): string[] {\n return [\n `ax-overlay-${this.overlayMode}`,\n `${this._hasError || !this.src ? 'ax-state-empty' : ''}`,\n `${this._isLoading ? 'ax-state-loading' : ''}`,\n ];\n }\n\n @HostBinding('style')\n private get __hostStyle(): string {\n return `width: ${this.width()}px; height: ${this.height()}px`;\n }\n}\n","@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXImageComponent } from './image.component';\n\n@NgModule({\n imports: [CommonModule, AXImageComponent],\n exports: [AXImageComponent],\n providers: [],\n})\nexport class AXImageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;AAIG;AAaG,MAAO,gBAAiB,SAAQ,eAAe,CAAA;AAZrD,IAAA,WAAA,GAAA;;QAaW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,IAAI;kFAAC;QAC3B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,IAAI;mFAAC;AAErC;;;;AAIG;QAEH,IAAA,CAAA,WAAW,GAAuB,OAAO;AAkBzC;;;;AAIG;QAEH,IAAA,CAAA,QAAQ,GAA4B,MAAM;AAU1C;;;;AAIG;AAEH,QAAA,IAAA,CAAA,MAAM,GAA8B,IAAI,YAAY,EAAe;AAEnE;;;;AAIG;AAEH,QAAA,IAAA,CAAA,OAAO,GAA0C,IAAI,YAAY,EAA2B;AAE5F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OAAA,EACQ,EAAE,EAAA,QAAA,EAAA,2iBAAA,EAAA,MAAA,EAAA,CAAA,w5BAAA,CAAA,EAAA;;sBAWV;;sBAQA;;sBAQA;;sBAQA;;sBAQA;;sBAQA;;sBAQA;;sBA2DA,WAAW;uBAAC,OAAO;;sBASnB,WAAW;uBAAC,OAAO;;;MEzIT,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAJd,YAAY,EAAE,gBAAgB,aAC9B,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAGf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAJd,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIX,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;oBACzC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC3B,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACRD;;AAEG;;"}
1
+ {"version":3,"file":"acorex-components-image.mjs","sources":["../../../../packages/components/image/src/lib/image.component.ts","../../../../packages/components/image/src/lib/image.component.html","../../../../packages/components/image/src/lib/image.module.ts","../../../../packages/components/image/src/acorex-components-image.ts"],"sourcesContent":["import { AXComponent, AXHtmlEvent, MXBaseComponent } from '@acorex/cdk/common';\n\nimport { Component, EventEmitter, HostBinding, input, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';\n\n/**\n * Displays an image with customizable settings.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-image',\n templateUrl: './image.component.html',\n styleUrls: ['./image.component.css'],\n encapsulation: ViewEncapsulation.None,\n\n providers: [\n { provide: 'ax-image', useValue: AXImageComponent },\n { provide: AXComponent, useExisting: AXImageComponent },\n ],\n imports: [],\n})\nexport class AXImageComponent extends MXBaseComponent implements OnInit {\n readonly width = input<number>(null);\n readonly height = input<number>(null);\n\n /**\n * Specifies when the image overlay should be shown.\n *\n * @defaultValue 'hover'\n */\n @Input()\n overlayMode: 'always' | 'hover' = 'hover';\n\n /**\n * The URL of the image to be displayed.\n *\n * @defaultValue null\n */\n @Input()\n src?: string | null;\n\n /**\n * The alternative text for the image, for accessibility purposes.\n *\n * @defaultValue null\n */\n @Input()\n alt?: string | null;\n\n /**\n * Priority for image loading.\n *\n * @defaultValue 'auto'\n */\n @Input()\n priority: 'low' | 'auto' | 'high' = 'auto';\n\n /**\n * Indicates if the image should be loaded lazily.\n *\n * @defaultValue false\n */\n @Input()\n lazy: boolean;\n\n /**\n * Emits an event when the image has successfully loaded.\n *\n * @event\n */\n @Output()\n onLoad: EventEmitter<AXHtmlEvent> = new EventEmitter<AXHtmlEvent>();\n\n /**\n * Emits an event when there is an error loading the image.\n *\n * @event\n */\n @Output()\n onError: EventEmitter<AXHtmlEvent<ErrorEvent>> = new EventEmitter<AXHtmlEvent<ErrorEvent>>();\n\n /**\n * @ignore\n */\n protected _hasError = false;\n\n /**\n * @ignore\n */\n protected _isLoaded = false;\n\n /**\n * @ignore\n */\n protected _isLoading = false;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit();\n this._isLoading = this.src != null;\n }\n\n /**\n * @ignore\n */\n protected _handleLoadImage(e: Event) {\n this._isLoaded = true;\n this._hasError = false;\n this._isLoading = false;\n this.onLoad.emit({\n component: this,\n htmlElement: this.getHostElement(),\n isUserInteraction: false,\n nativeEvent: e,\n });\n }\n\n /**\n * @ignore\n */\n protected _handleErrorImage(e: ErrorEvent) {\n this._hasError = true;\n this._isLoaded = false;\n this._isLoading = false;\n this.onError.emit({\n component: this,\n htmlElement: this.getHostElement(),\n isUserInteraction: false,\n nativeEvent: e,\n });\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n get __hostClass(): string[] {\n return [\n `ax-overlay-${this.overlayMode}`,\n `${this._hasError || !this.src ? 'ax-state-empty' : ''}`,\n `${this._isLoading ? 'ax-state-loading' : ''}`,\n ];\n }\n\n @HostBinding('style')\n private get __hostStyle(): string {\n return `width: ${this.width()}px; height: ${this.height()}px`;\n }\n}\n","@if (src) {\n <img\n class=\"ax-state-hidden\"\n [class.ax-state-loaded]=\"_isLoaded\"\n [src]=\"src\"\n [alt]=\"alt\"\n [attr.fetchpriority]=\"priority\"\n [attr.loading]=\"lazy ? 'lazy' : 'eager'\"\n (load)=\"_handleLoadImage($event)\"\n (error)=\"_handleErrorImage($event)\"\n />\n}\n<ng-content select=\"ax-overlay\"></ng-content>\n@if (!src || _hasError) {\n <ng-content select=\"ax-placeholder, ng-content\"></ng-content>\n}\n@if (_isLoading) {\n <ng-content select=\"ax-loading, ax-loading-spinner\"></ng-content>\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXImageComponent } from './image.component';\n\n@NgModule({\n imports: [CommonModule, AXImageComponent],\n exports: [AXImageComponent],\n providers: [],\n})\nexport class AXImageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;AAIG;AAaG,MAAO,gBAAiB,SAAQ,eAAe,CAAA;AAZrD,IAAA,WAAA,GAAA;;QAaW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,IAAI;kFAAC;QAC3B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,IAAI;mFAAC;AAErC;;;;AAIG;QAEH,IAAA,CA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