@tectra-ng/blocks 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/actions-menu/README.md +9 -1
  2. package/app-layout/README.md +3 -2
  3. package/command-palette/README.md +7 -0
  4. package/console-layout/README.md +24 -0
  5. package/cookie-notice/README.md +1 -1
  6. package/fesm2022/tectra-ng-blocks-action-tile.mjs +3 -3
  7. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +40 -18
  8. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-blocks-app-footer.mjs +3 -3
  10. package/fesm2022/tectra-ng-blocks-app-layout.mjs +22 -5
  11. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-blocks-command-palette.mjs +40 -17
  13. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-blocks-confetti.mjs +3 -3
  15. package/fesm2022/tectra-ng-blocks-console-layout.mjs +101 -22
  16. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +5 -5
  18. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-blocks-empty-state.mjs +3 -3
  20. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +113 -24
  21. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-blocks-hover-effect.mjs +3 -3
  23. package/fesm2022/tectra-ng-blocks-kanban.mjs +120 -35
  24. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-blocks-mascot.mjs +3 -3
  26. package/fesm2022/tectra-ng-blocks-network-status.mjs +6 -6
  27. package/fesm2022/tectra-ng-blocks-page-header.mjs +5 -5
  28. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +6 -6
  30. package/fesm2022/tectra-ng-blocks-public-header.mjs +23 -9
  31. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-blocks-qr-code.mjs +3 -3
  33. package/fesm2022/tectra-ng-blocks-switch-language.mjs +3 -3
  34. package/fesm2022/tectra-ng-blocks-switch-theme.mjs +9 -9
  35. package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +3 -3
  36. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +3 -3
  37. package/fesm2022/tectra-ng-blocks-wizard.mjs +160 -23
  38. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-blocks.mjs +1 -1
  40. package/filters-panel/README.md +20 -1
  41. package/kanban/README.md +19 -1
  42. package/package.json +6 -6
  43. package/page-header/README.md +1 -1
  44. package/public-header/README.md +6 -0
  45. package/switch-language/README.md +1 -1
  46. package/topbar-preferences/README.md +1 -1
  47. package/types/tectra-ng-blocks-actions-menu.d.ts +9 -0
  48. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
  49. package/types/tectra-ng-blocks-app-layout.d.ts +10 -3
  50. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
  51. package/types/tectra-ng-blocks-command-palette.d.ts +38 -5
  52. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
  53. package/types/tectra-ng-blocks-console-layout.d.ts +58 -9
  54. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
  55. package/types/tectra-ng-blocks-cookie-notice.d.ts +5 -5
  56. package/types/tectra-ng-blocks-filters-panel.d.ts +48 -4
  57. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
  58. package/types/tectra-ng-blocks-kanban.d.ts +47 -7
  59. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
  60. package/types/tectra-ng-blocks-public-header.d.ts +9 -2
  61. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
  62. package/types/tectra-ng-blocks-wizard.d.ts +34 -6
  63. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
  64. package/types/tectra-ng-blocks.d.ts +1 -1
  65. package/wizard/README.md +21 -3
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-app-layout.mjs","names":[],"sources":["../../../../packages/blocks/app-layout/src/app-layout.icons.ts","../../../../packages/blocks/app-layout/src/app-layout.theme.ts","../../../../packages/blocks/app-layout/src/app-layout.component.ts","../../../../packages/blocks/app-layout/src/app-layout.component.html"],"sourcesContent":["import { TxIconSet, txIconAngleDoubleLeft, txIconBars, txIconSidebar, txIconThumbtack } from '@tectra-ng/icons';\n\nexport const APP_LAYOUT_ICON_DEFAULTS: TxIconSet = {\n 'angle-double-left': txIconAngleDoubleLeft,\n bars: txIconBars,\n sidebar: txIconSidebar,\n thumbtack: txIconThumbtack,\n};\n","import { appLayoutTokens, panelMenuTokens } from '@tectra-ng/themes';\n\nexport const APP_LAYOUT_THEME = {\n appLayout: appLayoutTokens,\n panelMenu: panelMenuTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n OnInit,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraAppLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxPanelMenu, TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { filter } from 'rxjs';\nimport { TxAppLayoutBackdrop, TxAppLayoutPart, TxAppLayoutResponsive } from './app-layout.types';\nimport { APP_LAYOUT_ICON_DEFAULTS } from './app-layout.icons';\nimport { APP_LAYOUT_THEME } from './app-layout.theme';\n\nconst MOBILE_WIDTH = 1024;\nconst PICKED = 'a[href], [role=\"treeitem\"]:not([aria-expanded])';\n\n@Component({\n selector: 'tx-app-layout',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxPanelMenu, TxTooltip],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-app-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-app-layout--plain]': '!sidebar()',\n '[class.tx-app-layout--anchored]': 'sidebar() && anchored()',\n '[class.tx-app-layout--wide]': 'sidebar() && wide()',\n '[class.tx-app-layout--open]': 'sidebar() && mobileOpen()',\n '(keydown.escape)': 'closeFromKeyboard()',\n },\n viewProviders: [provideTxIconDefaults(APP_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxAppLayout implements OnInit {\n private readonly appLayoutTheme = injectTokens(APP_LAYOUT_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly menuButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n\n readonly model = input<TxPanelMenuItem[]>([]);\n readonly logo = input<string | undefined>(undefined);\n readonly title = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>('/');\n readonly sidebar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly anchored = model(true);\n readonly stateKey = input<string | undefined>(undefined);\n readonly backdrop = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly backdropVariant = input<TxAppLayoutBackdrop>('spectrum');\n readonly responsive = input<TxAppLayoutResponsive>('viewport');\n readonly menuLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAppLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAppLayoutPart, TxAppLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('appLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-app-layout');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-app-layout'), ...this.passThrough().root?.style }));\n\n readonly mobile = signal(false);\n readonly mobileOpen = signal(false);\n private readonly hovered = signal(false);\n private readonly focused = signal(false);\n readonly expanded = computed(() => this.anchored() || this.hovered() || this.focused());\n readonly wide = computed(() => this.mobile() || this.expanded());\n protected readonly menuName = computed(() => this.menuLabel() ?? this.translations().menu);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.mobileOpen.set(false));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (mobile: boolean) => {\n this.mobile.set(mobile);\n if (!mobile) {\n this.mobileOpen.set(false);\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < MOBILE_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${MOBILE_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n ngOnInit(): void {\n const stored = this.readAnchored();\n if (stored !== null) {\n this.anchored.set(stored);\n }\n }\n\n toggleAnchored(): void {\n const next = !this.anchored();\n this.anchored.set(next);\n this.hovered.set(true);\n this.writeAnchored(next);\n }\n\n toggleMobile(): void {\n this.mobileOpen.update((open) => !open);\n }\n\n closeMobile(): void {\n this.mobileOpen.set(false);\n }\n\n protected setHovered(hovered: boolean): void {\n this.hovered.set(hovered);\n }\n\n protected onFocusIn(event: FocusEvent): void {\n this.focused.set((event.target as HTMLElement | null)?.matches(':focus-visible') ?? false);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !(event.currentTarget as HTMLElement).contains(next)) {\n this.focused.set(false);\n }\n }\n\n protected onSidebarClick(event: Event): void {\n if (this.mobile() && (event.target as HTMLElement | null)?.closest(PICKED)) {\n this.mobileOpen.set(false);\n }\n }\n\n protected closeFromKeyboard(): void {\n if (this.mobileOpen()) {\n this.mobileOpen.set(false);\n this.menuButton()?.nativeElement.focus();\n }\n }\n\n private storage(): Storage | null {\n try {\n return this.document.defaultView?.localStorage ?? null;\n } catch {\n return null;\n }\n }\n\n private readAnchored(): boolean | null {\n const key = this.stateKey();\n if (!key) {\n return null;\n }\n try {\n const value = this.storage()?.getItem(key);\n return value === null || value === undefined ? null : value === 'true';\n } catch {\n return null;\n }\n }\n\n private writeAnchored(value: boolean): void {\n const key = this.stateKey();\n if (!key) {\n return;\n }\n try {\n this.storage()?.setItem(key, String(value));\n } catch {\n return;\n }\n }\n}\n","@if (backdrop()) {\n <div class=\"tx-app-layout__backdrop\" aria-hidden=\"true\" [attr.data-variant]=\"backdropVariant()\"></div>\n}\n@if (sidebar()) {\n <div class=\"tx-app-layout__slot\">\n <aside\n class=\"tx-app-layout__sidebar\"\n [id]=\"id + '-sidebar'\"\n [attr.aria-label]=\"menuName()\"\n [attr.inert]=\"mobile() && !mobileOpen() ? '' : null\"\n [class]=\"passThrough().sidebar?.class\"\n [style]=\"passThrough().sidebar?.style\"\n (mouseenter)=\"setHovered(true)\"\n (mouseleave)=\"setHovered(false)\"\n (focusin)=\"onFocusIn($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"tx-app-layout__sidebar-header\">\n @if (homeLink() !== undefined) {\n <a class=\"tx-app-layout__brand\" [routerLink]=\"homeLink()\" [attr.aria-label]=\"title() ?? null\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-app-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n <button\n type=\"button\"\n class=\"tx-app-layout__anchor\"\n tooltipPlacement=\"right\"\n [attr.aria-pressed]=\"anchored()\"\n [attr.aria-label]=\"anchored() ? translations().unpinMenu : translations().pinMenu\"\n [txTooltip]=\"anchored() ? translations().unpinMenu : translations().pinMenu\"\n (click)=\"toggleAnchored()\"\n >\n <tx-icon class=\"tx-app-layout__pin-icon\" aria-hidden=\"true\" name=\"thumbtack\" [class.tx-app-layout__pin-icon--on]=\"!anchored()\" />\n <tx-icon class=\"tx-app-layout__pin-icon\" aria-hidden=\"true\" name=\"angle-double-left\" [class.tx-app-layout__pin-icon--on]=\"anchored()\" />\n </button>\n </div>\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- picks inside the menu are its own links and tree items -->\n <div class=\"tx-app-layout__menu\" (click)=\"onSidebarClick($event)\">\n <tx-panel-menu\n variant=\"sidebar\"\n [ariaLabel]=\"menuName()\"\n [model]=\"model()\"\n [collapsed]=\"!wide()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().menu?.class\"\n [style]=\"passThrough().menu?.style\"\n />\n </div>\n </aside>\n </div>\n <div class=\"tx-app-layout__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\" (click)=\"closeMobile()\"></div>\n}\n<div class=\"tx-app-layout__column\">\n <header class=\"tx-app-layout__topbar\" [class]=\"passThrough().topbar?.class\" [style]=\"passThrough().topbar?.style\">\n @if (sidebar()) {\n <button\n #menuButton\n type=\"button\"\n class=\"tx-app-layout__menu-button\"\n [attr.aria-label]=\"menuName()\"\n [attr.aria-expanded]=\"mobileOpen()\"\n [attr.aria-controls]=\"id + '-sidebar'\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n (click)=\"toggleMobile()\"\n >\n <tx-icon name=\"bars\" aria-hidden=\"true\" />\n </button>\n } @else {\n @if (homeLink() !== undefined) {\n <a class=\"tx-app-layout__plain-brand\" [routerLink]=\"homeLink()\" [attr.aria-label]=\"title() ?? null\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-app-layout__plain-brand\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n }\n <div class=\"tx-app-layout__topbar-end\">\n <ng-content select=\"[txAppTopbar]\" />\n </div>\n </header>\n <div class=\"tx-app-layout__wrapper\">\n <main class=\"tx-app-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n <ng-content select=\"[txAppFooter]\" />\n </div>\n</div>\n\n<ng-template #brand>\n @if (logo()) {\n <img class=\"tx-app-layout__logo\" alt=\"\" [src]=\"logo()\" />\n }\n @if (title()) {\n <span class=\"tx-app-layout__name\">{{ title() }}</span>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,2BAAsC;CACjD,qBAAqB;CACrB,MAAM;CACN,SAAS;CACT,WAAW;AACZ;ACLD,MAAa,mBAAmB;CAC9B,WAAW;CACX,WAAW;AACZ;AC2BD,MAAM,eAAe;AACrB,MAAM,SAAS;AAuBf,IAAa,cAAb,MAAa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../packages/blocks/app-layout/src/app-layout.icons.ts","../../../../packages/blocks/app-layout/src/app-layout.theme.ts","../../../../packages/blocks/app-layout/src/app-layout.component.ts","../../../../packages/blocks/app-layout/src/app-layout.component.html"],"sourcesContent":["import { TxIconSet, txIconAngleDoubleLeft, txIconBars, txIconSidebar, txIconThumbtack } from '@tectra-ng/icons';\n\nexport const APP_LAYOUT_ICON_DEFAULTS: TxIconSet = {\n 'angle-double-left': txIconAngleDoubleLeft,\n bars: txIconBars,\n sidebar: txIconSidebar,\n thumbtack: txIconThumbtack,\n};\n","import { appLayoutTokens, panelMenuTokens } from '@tectra-ng/themes';\n\nexport const APP_LAYOUT_THEME = {\n appLayout: appLayoutTokens,\n panelMenu: panelMenuTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n OnInit,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraAppLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxPanelMenu, TxPanelMenuItem, TxPanelMenuTranslate } from '@tectra-ng/ui/panel-menu';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { filter } from 'rxjs';\nimport { TxAppLayoutBackdrop, TxAppLayoutPart, TxAppLayoutResponsive } from './app-layout.types';\nimport { APP_LAYOUT_ICON_DEFAULTS } from './app-layout.icons';\nimport { APP_LAYOUT_THEME } from './app-layout.theme';\n\nconst MOBILE_WIDTH = 1024;\nconst PICKED = 'a[href], [role=\"treeitem\"]:not([aria-expanded])';\n\n@Component({\n selector: 'tx-app-layout',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxPanelMenu, TxTooltip],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-app-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-app-layout--plain]': '!sidebar()',\n '[class.tx-app-layout--anchored]': 'sidebar() && anchored()',\n '[class.tx-app-layout--wide]': 'sidebar() && wide()',\n '[class.tx-app-layout--open]': 'sidebar() && mobileOpen()',\n '(keydown.escape)': 'closeFromKeyboard()',\n },\n viewProviders: [provideTxIconDefaults(APP_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxAppLayout implements OnInit {\n private readonly appLayoutTheme = injectTokens(APP_LAYOUT_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly menuButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n\n readonly model = input<TxPanelMenuItem[]>([]);\n readonly logo = input<string | undefined>(undefined);\n readonly title = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>('/');\n readonly sidebar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly anchored = model(true);\n readonly stateKey = input<string | undefined>(undefined);\n readonly backdrop = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly backdropVariant = input<TxAppLayoutBackdrop>('spectrum');\n readonly responsive = input<TxAppLayoutResponsive>('viewport');\n readonly menuLabel = input<string | undefined>(undefined);\n readonly translate = input<TxPanelMenuTranslate | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAppLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAppLayoutPart, TxAppLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('appLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-app-layout');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-app-layout'), ...this.passThrough().root?.style }));\n\n readonly mobile = signal(false);\n readonly mobileOpen = signal(false);\n private readonly hovered = signal(false);\n private readonly focused = signal(false);\n readonly expanded = computed(() => this.anchored() || this.hovered() || this.focused());\n readonly wide = computed(() => this.mobile() || this.expanded());\n protected readonly menuName = computed(() => this.menuLabel() ?? this.translations().menu);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.mobileOpen.set(false));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (mobile: boolean) => {\n this.mobile.set(mobile);\n if (!mobile) {\n this.mobileOpen.set(false);\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < MOBILE_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${MOBILE_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n ngOnInit(): void {\n const stored = this.readAnchored();\n if (stored !== null) {\n this.anchored.set(stored);\n }\n }\n\n toggleAnchored(): void {\n const next = !this.anchored();\n this.anchored.set(next);\n this.hovered.set(true);\n this.writeAnchored(next);\n }\n\n toggleMobile(): void {\n this.mobileOpen.update((open) => !open);\n }\n\n closeMobile(): void {\n this.mobileOpen.set(false);\n }\n\n protected setHovered(hovered: boolean): void {\n this.hovered.set(hovered);\n }\n\n protected onFocusIn(event: FocusEvent): void {\n this.focused.set((event.target as HTMLElement | null)?.matches(':focus-visible') ?? false);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !(event.currentTarget as HTMLElement).contains(next)) {\n this.focused.set(false);\n }\n }\n\n protected onSidebarClick(event: Event): void {\n if (this.mobile() && (event.target as HTMLElement | null)?.closest(PICKED)) {\n this.mobileOpen.set(false);\n }\n }\n\n protected closeFromKeyboard(): void {\n if (this.mobileOpen()) {\n this.mobileOpen.set(false);\n this.menuButton()?.nativeElement.focus();\n }\n }\n\n private storage(): Storage | null {\n try {\n return this.document.defaultView?.localStorage ?? null;\n } catch {\n return null;\n }\n }\n\n private readAnchored(): boolean | null {\n const key = this.stateKey();\n if (!key) {\n return null;\n }\n try {\n const value = this.storage()?.getItem(key);\n return value === null || value === undefined ? null : value === 'true';\n } catch {\n return null;\n }\n }\n\n private writeAnchored(value: boolean): void {\n const key = this.stateKey();\n if (!key) {\n return;\n }\n try {\n this.storage()?.setItem(key, String(value));\n } catch {\n return;\n }\n }\n}\n","@if (backdrop()) {\n <div class=\"tx-app-layout__backdrop\" aria-hidden=\"true\" [attr.data-variant]=\"backdropVariant()\"></div>\n}\n@if (sidebar()) {\n <div class=\"tx-app-layout__slot\">\n <aside\n class=\"tx-app-layout__sidebar\"\n [id]=\"id + '-sidebar'\"\n [attr.aria-label]=\"menuName()\"\n [attr.inert]=\"mobile() && !mobileOpen() ? '' : null\"\n [class]=\"passThrough().sidebar?.class\"\n [style]=\"passThrough().sidebar?.style\"\n (mouseenter)=\"setHovered(true)\"\n (mouseleave)=\"setHovered(false)\"\n (focusin)=\"onFocusIn($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n <div class=\"tx-app-layout__sidebar-header\">\n @if (homeLink() !== undefined) {\n <a class=\"tx-app-layout__brand\" [routerLink]=\"homeLink()\" [attr.aria-label]=\"title() ?? null\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-app-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n <button\n type=\"button\"\n class=\"tx-app-layout__anchor\"\n tooltipPlacement=\"right\"\n [attr.aria-pressed]=\"anchored()\"\n [attr.aria-label]=\"anchored() ? translations().unpinMenu : translations().pinMenu\"\n [txTooltip]=\"anchored() ? translations().unpinMenu : translations().pinMenu\"\n (click)=\"toggleAnchored()\"\n >\n <tx-icon class=\"tx-app-layout__pin-icon\" aria-hidden=\"true\" name=\"thumbtack\" [class.tx-app-layout__pin-icon--on]=\"!anchored()\" />\n <tx-icon class=\"tx-app-layout__pin-icon\" aria-hidden=\"true\" name=\"angle-double-left\" [class.tx-app-layout__pin-icon--on]=\"anchored()\" />\n </button>\n </div>\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- picks inside the menu are its own links and tree items -->\n <div class=\"tx-app-layout__menu\" (click)=\"onSidebarClick($event)\">\n <tx-panel-menu\n variant=\"sidebar\"\n [ariaLabel]=\"menuName()\"\n [model]=\"model()\"\n [translate]=\"translate()\"\n [collapsed]=\"!wide()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().menu?.class\"\n [style]=\"passThrough().menu?.style\"\n />\n </div>\n </aside>\n </div>\n <div class=\"tx-app-layout__mask\" aria-hidden=\"true\" [class]=\"passThrough().mask?.class\" [style]=\"passThrough().mask?.style\" (click)=\"closeMobile()\"></div>\n}\n<div class=\"tx-app-layout__column\">\n <header class=\"tx-app-layout__topbar\" [class]=\"passThrough().topbar?.class\" [style]=\"passThrough().topbar?.style\">\n @if (sidebar()) {\n <button\n #menuButton\n type=\"button\"\n class=\"tx-app-layout__menu-button\"\n [attr.aria-label]=\"menuName()\"\n [attr.aria-expanded]=\"mobileOpen()\"\n [attr.aria-controls]=\"id + '-sidebar'\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n (click)=\"toggleMobile()\"\n >\n <tx-icon name=\"bars\" aria-hidden=\"true\" />\n </button>\n } @else {\n @if (homeLink() !== undefined) {\n <a class=\"tx-app-layout__plain-brand\" [routerLink]=\"homeLink()\" [attr.aria-label]=\"title() ?? null\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-app-layout__plain-brand\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n }\n <div class=\"tx-app-layout__topbar-end\">\n <ng-content select=\"[txAppTopbar]\" />\n </div>\n </header>\n <div class=\"tx-app-layout__wrapper\">\n <main class=\"tx-app-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n <ng-content select=\"[txAppFooter]\" />\n </div>\n</div>\n\n<ng-template #brand>\n @if (logo()) {\n <img class=\"tx-app-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n @if (title()) {\n <span class=\"tx-app-layout__name\">{{ title() }}</span>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,2BAAsC;CACjD,qBAAqB;CACrB,MAAM;CACN,SAAS;CACT,WAAW;AACZ;ACLD,MAAa,mBAAmB;CAC9B,WAAW;CACX,WAAW;AACZ;AC2BD,MAAM,eAAe;AACrB,MAAM,SAAS;AAuBf,IAAa,cAAb,MAAa,YAAW;CACL,iBAAiB,aAAa,gBAAgB;CAE9C,WAAW,OAAO,QAAQ;CAC1B,OAAO,OAAgC,UAAU;CACjD,aAAa,UAAyC,cAAa,GAAA,YAAA,CAAA,EAAA,WA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,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -14,12 +14,15 @@ function filterPaletteItems(items, query) {
14
14
  if (!term) return [...items];
15
15
  return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? "").toLowerCase().includes(term));
16
16
  }
17
- function menuPaletteItems(menu, group = "pages") {
17
+ function menuPaletteItems(menu, options = "pages") {
18
+ const { group = "pages", translate, icon: mapIcon, defaultIcon = "file" } = typeof options === "string" ? { group: options } : options;
19
+ const text = (key) => key && translate ? translate(key) : key ?? "";
20
+ const iconOf = (node) => paletteIcon(node, mapIcon) ?? defaultIcon;
18
21
  const items = /* @__PURE__ */ new Map();
19
22
  const walk = (nodes, parent) => {
20
23
  for (const node of nodes) {
21
24
  if (node.visible === false || node.disabled || node.separator) continue;
22
- const label = node.label ?? "";
25
+ const label = text(node.label);
23
26
  if (node.routerLink !== void 0) {
24
27
  const id = `page:${typeof node.routerLink === "string" ? node.routerLink : node.routerLink.join("/")}:${JSON.stringify(node.queryParams ?? {})}`;
25
28
  if (!items.has(id)) items.set(id, {
@@ -27,7 +30,7 @@ function menuPaletteItems(menu, group = "pages") {
27
30
  group,
28
31
  label,
29
32
  sublabel: parent || void 0,
30
- icon: node.icon ?? "file",
33
+ icon: iconOf(node),
31
34
  routerLink: node.routerLink,
32
35
  queryParams: node.queryParams
33
36
  });
@@ -35,17 +38,21 @@ function menuPaletteItems(menu, group = "pages") {
35
38
  if (node.items?.length) walk(node.items, label);
36
39
  }
37
40
  };
38
- for (const section of menu ?? []) if (section.items?.length) walk(section.items, section.label ?? "");
41
+ for (const section of menu ?? []) if (section.items?.length) walk(section.items, text(section.label));
39
42
  else walk([section], "");
40
43
  return [...items.values()];
41
44
  }
45
+ function paletteIcon(node, map) {
46
+ if (typeof map === "function") return map(node) ?? node.icon;
47
+ return node.icon && map?.[node.icon] || node.icon;
48
+ }
42
49
  var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
43
50
  transform(items, query) {
44
51
  return filterPaletteItems(items, query);
45
52
  }
46
53
  static ɵfac = i0.ɵɵngDeclareFactory({
47
54
  minVersion: "12.0.0",
48
- version: "22.2.5",
55
+ version: "22.2.6",
49
56
  ngImport: i0,
50
57
  type: TxCommandPaletteFilterPipe,
51
58
  deps: [],
@@ -53,7 +60,7 @@ var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
53
60
  });
54
61
  static ɵpipe = i0.ɵɵngDeclarePipe({
55
62
  minVersion: "14.0.0",
56
- version: "22.2.5",
63
+ version: "22.2.6",
57
64
  ngImport: i0,
58
65
  type: TxCommandPaletteFilterPipe,
59
66
  isStandalone: true,
@@ -62,7 +69,7 @@ var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
62
69
  };
63
70
  i0.ɵɵngDeclareClassMetadata({
64
71
  minVersion: "12.0.0",
65
- version: "22.2.5",
72
+ version: "22.2.6",
66
73
  ngImport: i0,
67
74
  type: TxCommandPaletteFilterPipe,
68
75
  decorators: [{
@@ -71,12 +78,12 @@ i0.ɵɵngDeclareClassMetadata({
71
78
  }]
72
79
  });
73
80
  var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
74
- transform(menu, group = "pages") {
75
- return menuPaletteItems(menu, group);
81
+ transform(menu, options = "pages") {
82
+ return menuPaletteItems(menu, options);
76
83
  }
77
84
  static ɵfac = i0.ɵɵngDeclareFactory({
78
85
  minVersion: "12.0.0",
79
- version: "22.2.5",
86
+ version: "22.2.6",
80
87
  ngImport: i0,
81
88
  type: TxMenuPaletteItemsPipe,
82
89
  deps: [],
@@ -84,7 +91,7 @@ var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
84
91
  });
85
92
  static ɵpipe = i0.ɵɵngDeclarePipe({
86
93
  minVersion: "14.0.0",
87
- version: "22.2.5",
94
+ version: "22.2.6",
88
95
  ngImport: i0,
89
96
  type: TxMenuPaletteItemsPipe,
90
97
  isStandalone: true,
@@ -93,7 +100,7 @@ var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
93
100
  };
94
101
  i0.ɵɵngDeclareClassMetadata({
95
102
  minVersion: "12.0.0",
96
- version: "22.2.5",
103
+ version: "22.2.6",
97
104
  ngImport: i0,
98
105
  type: TxMenuPaletteItemsPipe,
99
106
  decorators: [{
@@ -132,6 +139,7 @@ var TxCommandPalette = class TxCommandPalette {
132
139
  });
133
140
  emptyText = input(void 0, ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
134
141
  loadingText = input(void 0, ...ngDevMode ? [{ debugName: "loadingText" }] : /* istanbul ignore next */ []);
142
+ hintTexts = input({}, ...ngDevMode ? [{ debugName: "hintTexts" }] : /* istanbul ignore next */ []);
135
143
  minQueryLength = input(2, {
136
144
  ...ngDevMode ? { debugName: "minQueryLength" } : /* istanbul ignore next */ {},
137
145
  transform: numberAttribute
@@ -303,7 +311,7 @@ var TxCommandPalette = class TxCommandPalette {
303
311
  }
304
312
  static ɵfac = i0.ɵɵngDeclareFactory({
305
313
  minVersion: "12.0.0",
306
- version: "22.2.5",
314
+ version: "22.2.6",
307
315
  ngImport: i0,
308
316
  type: TxCommandPalette,
309
317
  deps: [],
@@ -311,7 +319,7 @@ var TxCommandPalette = class TxCommandPalette {
311
319
  });
312
320
  static ɵcmp = i0.ɵɵngDeclareComponent({
313
321
  minVersion: "17.0.0",
314
- version: "22.2.5",
322
+ version: "22.2.6",
315
323
  type: TxCommandPalette,
316
324
  isStandalone: true,
317
325
  selector: "tx-command-palette",
@@ -372,6 +380,13 @@ var TxCommandPalette = class TxCommandPalette {
372
380
  isRequired: false,
373
381
  transformFunction: null
374
382
  },
383
+ hintTexts: {
384
+ classPropertyName: "hintTexts",
385
+ publicName: "hintTexts",
386
+ isSignal: true,
387
+ isRequired: false,
388
+ transformFunction: null
389
+ },
375
390
  minQueryLength: {
376
391
  classPropertyName: "minQueryLength",
377
392
  publicName: "minQueryLength",
@@ -461,7 +476,7 @@ var TxCommandPalette = class TxCommandPalette {
461
476
  isSignal: true
462
477
  }],
463
478
  ngImport: i0,
464
- template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
479
+ template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
465
480
  styles: [":host{display:inline-flex}.tx-command-palette__trigger{position:relative;display:inline-flex;align-items:center;border:0;cursor:pointer;font:inherit}.tx-command-palette__overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center}.tx-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow:hidden}.tx-command-palette__search{display:flex;align-items:center}.tx-command-palette__input{flex:1;min-width:0;padding:0;border:0;outline:none;background:transparent;color:inherit;font:inherit}.tx-command-palette__results{flex:1;min-height:0;overflow-y:auto}.tx-command-palette__list{display:flex;flex-direction:column}.tx-command-palette__item{display:flex;align-items:center;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-command-palette__item-icon{display:grid;flex-shrink:0;place-items:center}.tx-command-palette__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__sublabel{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__arrow{opacity:0}.tx-command-palette__item--active .tx-command-palette__arrow{opacity:1}.tx-command-palette__status{display:flex;align-items:center;justify-content:center}.tx-command-palette__footer,.tx-command-palette__hint{display:flex;align-items:center}.tx-command-palette__spinner{animation:tx-command-palette-spin 1s linear infinite}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-command-palette__trigger{gap:var(--tx-command-palette-trigger-gap);height:var(--tx-command-palette-trigger-height);padding:var(--tx-command-palette-trigger-padding);border-radius:var(--tx-command-palette-trigger-border-radius);background:var(--tx-command-palette-trigger-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-shadow);color:var(--tx-command-palette-trigger-color);font-size:var(--tx-command-palette-trigger-font-size);transition:background-color var(--tx-command-palette-trigger-duration),color var(--tx-command-palette-trigger-duration),box-shadow var(--tx-command-palette-trigger-duration),scale var(--tx-command-palette-trigger-duration)}:host([data-styled]) .tx-command-palette__trigger:hover{background:var(--tx-command-palette-trigger-hover-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-hover-shadow);color:var(--tx-command-palette-trigger-hover-color)}:host([data-styled]) .tx-command-palette__trigger:active{scale:var(--tx-command-palette-trigger-active-scale)}:host([data-styled]) .tx-command-palette__trigger:focus-visible{outline:none;box-shadow:var(--tx-command-palette-trigger-focus-ring-shadow)}:host([data-styled]) .tx-command-palette__kbd{margin-inline-start:var(--tx-command-palette-trigger-kbd-margin-start);padding:var(--tx-command-palette-trigger-kbd-padding);border-radius:var(--tx-command-palette-trigger-kbd-border-radius);background:var(--tx-command-palette-trigger-kbd-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-kbd-ring-color);font-family:inherit;font-size:var(--tx-command-palette-trigger-kbd-font-size);font-weight:var(--tx-command-palette-trigger-kbd-font-weight);line-height:1}.tx-command-palette__overlay[data-styled]{z-index:var(--tx-command-palette-overlay-z-index);padding:var(--tx-command-palette-overlay-padding);background:var(--tx-command-palette-overlay-background);font-family:var(--tx-font-family);-webkit-backdrop-filter:blur(var(--tx-command-palette-overlay-blur));backdrop-filter:blur(var(--tx-command-palette-overlay-blur))}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter{animation:tx-command-palette-fade-in var(--tx-command-palette-overlay-enter-duration) ease-out}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave{animation:tx-command-palette-fade-out var(--tx-command-palette-overlay-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel{max-width:var(--tx-command-palette-panel-max-width);max-height:var(--tx-command-palette-panel-max-height);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-panel-border-radius);background:var(--tx-command-palette-panel-background);box-shadow:var(--tx-command-palette-panel-shadow);color:var(--tx-command-palette-panel-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter{animation:tx-command-palette-pop-in var(--tx-command-palette-panel-enter-duration) var(--tx-command-palette-panel-easing)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:tx-command-palette-pop-out var(--tx-command-palette-panel-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__search{gap:var(--tx-command-palette-search-gap);padding:var(--tx-command-palette-search-padding);border-bottom:1px solid var(--tx-command-palette-panel-border-color);font-size:var(--tx-command-palette-search-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__search-icon{color:var(--tx-command-palette-search-icon-color);font-size:var(--tx-command-palette-search-icon-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__input::placeholder{color:var(--tx-command-palette-search-placeholder-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__spinner{color:var(--tx-command-palette-search-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__results{padding:var(--tx-command-palette-results-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__group{padding:var(--tx-command-palette-results-group-padding);color:var(--tx-command-palette-results-group-color);font-size:var(--tx-command-palette-results-group-font-size);font-weight:var(--tx-command-palette-results-group-font-weight);letter-spacing:var(--tx-command-palette-results-group-letter-spacing);text-transform:var(--tx-command-palette-results-group-text-transform)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item{gap:var(--tx-command-palette-item-gap);padding:var(--tx-command-palette-item-padding);border-radius:var(--tx-command-palette-item-border-radius);color:var(--tx-command-palette-item-color);font-size:var(--tx-command-palette-item-font-size);transition:background-color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active{background:var(--tx-command-palette-item-active-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon{width:var(--tx-command-palette-item-icon-size);height:var(--tx-command-palette-item-icon-size);border-radius:var(--tx-command-palette-item-icon-border-radius);background:var(--tx-command-palette-item-icon-background);color:var(--tx-command-palette-item-icon-color);font-size:var(--tx-command-palette-item-icon-font-size);transition:background-color var(--tx-command-palette-item-duration),color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active .tx-command-palette__item-icon{background:var(--tx-command-palette-item-active-icon-background);color:var(--tx-command-palette-item-active-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__label{font-weight:var(--tx-command-palette-item-label-font-weight)}.tx-command-palette__overlay[data-styled] .tx-command-palette__sublabel{color:var(--tx-command-palette-item-sublabel-color);font-size:var(--tx-command-palette-item-sublabel-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{color:var(--tx-command-palette-item-arrow-color);font-size:var(--tx-command-palette-item-arrow-size);transition:opacity var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status{gap:var(--tx-command-palette-results-status-gap);padding:var(--tx-command-palette-results-status-padding);color:var(--tx-command-palette-results-status-color);font-size:var(--tx-command-palette-results-status-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status--empty{padding:var(--tx-command-palette-results-empty-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__footer{gap:var(--tx-command-palette-footer-gap);padding:var(--tx-command-palette-footer-padding);border-top:1px solid var(--tx-command-palette-panel-border-color);background:var(--tx-command-palette-footer-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint{gap:var(--tx-command-palette-footer-hint-gap);color:var(--tx-command-palette-footer-hint-color);font-size:var(--tx-command-palette-footer-hint-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tx-command-palette-footer-kbd-min-width);box-sizing:border-box;padding:var(--tx-command-palette-footer-kbd-padding);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-footer-kbd-border-radius);background:var(--tx-command-palette-footer-kbd-background);font-family:inherit;font-size:var(--tx-command-palette-footer-kbd-font-size);font-weight:var(--tx-font-weight-medium)}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}@media(width<=768px){:host([data-styled]) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}}@keyframes tx-command-palette-spin{to{rotate:360deg}}@keyframes tx-command-palette-fade-in{0%{opacity:0}}@keyframes tx-command-palette-fade-out{to{opacity:0}}@keyframes tx-command-palette-pop-in{0%{opacity:0;transform:translateY(-8px) scale(.98)}}@keyframes tx-command-palette-pop-out{to{opacity:0;transform:translateY(-8px) scale(.98)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-command-palette__trigger{transition:none}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter,.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:none}.tx-command-palette__overlay[data-styled] .tx-command-palette__item,.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon,.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{transition:none}}\n"],
466
481
  dependencies: [{
467
482
  kind: "directive",
@@ -484,7 +499,7 @@ var TxCommandPalette = class TxCommandPalette {
484
499
  };
485
500
  i0.ɵɵngDeclareClassMetadata({
486
501
  minVersion: "12.0.0",
487
- version: "22.2.5",
502
+ version: "22.2.6",
488
503
  ngImport: i0,
489
504
  type: TxCommandPalette,
490
505
  decorators: [{
@@ -502,7 +517,7 @@ i0.ɵɵngDeclareClassMetadata({
502
517
  "(document:keydown)": "onDocumentKeydown($event)"
503
518
  },
504
519
  viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],
505
- template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
520
+ template: "<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n",
506
521
  styles: [":host{display:inline-flex}.tx-command-palette__trigger{position:relative;display:inline-flex;align-items:center;border:0;cursor:pointer;font:inherit}.tx-command-palette__overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center}.tx-command-palette__panel{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow:hidden}.tx-command-palette__search{display:flex;align-items:center}.tx-command-palette__input{flex:1;min-width:0;padding:0;border:0;outline:none;background:transparent;color:inherit;font:inherit}.tx-command-palette__results{flex:1;min-height:0;overflow-y:auto}.tx-command-palette__list{display:flex;flex-direction:column}.tx-command-palette__item{display:flex;align-items:center;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-command-palette__item-icon{display:grid;flex-shrink:0;place-items:center}.tx-command-palette__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__sublabel{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-command-palette__arrow{opacity:0}.tx-command-palette__item--active .tx-command-palette__arrow{opacity:1}.tx-command-palette__status{display:flex;align-items:center;justify-content:center}.tx-command-palette__footer,.tx-command-palette__hint{display:flex;align-items:center}.tx-command-palette__spinner{animation:tx-command-palette-spin 1s linear infinite}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-command-palette__trigger{gap:var(--tx-command-palette-trigger-gap);height:var(--tx-command-palette-trigger-height);padding:var(--tx-command-palette-trigger-padding);border-radius:var(--tx-command-palette-trigger-border-radius);background:var(--tx-command-palette-trigger-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-shadow);color:var(--tx-command-palette-trigger-color);font-size:var(--tx-command-palette-trigger-font-size);transition:background-color var(--tx-command-palette-trigger-duration),color var(--tx-command-palette-trigger-duration),box-shadow var(--tx-command-palette-trigger-duration),scale var(--tx-command-palette-trigger-duration)}:host([data-styled]) .tx-command-palette__trigger:hover{background:var(--tx-command-palette-trigger-hover-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-ring-color),var(--tx-command-palette-trigger-hover-shadow);color:var(--tx-command-palette-trigger-hover-color)}:host([data-styled]) .tx-command-palette__trigger:active{scale:var(--tx-command-palette-trigger-active-scale)}:host([data-styled]) .tx-command-palette__trigger:focus-visible{outline:none;box-shadow:var(--tx-command-palette-trigger-focus-ring-shadow)}:host([data-styled]) .tx-command-palette__kbd{margin-inline-start:var(--tx-command-palette-trigger-kbd-margin-start);padding:var(--tx-command-palette-trigger-kbd-padding);border-radius:var(--tx-command-palette-trigger-kbd-border-radius);background:var(--tx-command-palette-trigger-kbd-background);box-shadow:inset 0 0 0 1px var(--tx-command-palette-trigger-kbd-ring-color);font-family:inherit;font-size:var(--tx-command-palette-trigger-kbd-font-size);font-weight:var(--tx-command-palette-trigger-kbd-font-weight);line-height:1}.tx-command-palette__overlay[data-styled]{z-index:var(--tx-command-palette-overlay-z-index);padding:var(--tx-command-palette-overlay-padding);background:var(--tx-command-palette-overlay-background);font-family:var(--tx-font-family);-webkit-backdrop-filter:blur(var(--tx-command-palette-overlay-blur));backdrop-filter:blur(var(--tx-command-palette-overlay-blur))}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter{animation:tx-command-palette-fade-in var(--tx-command-palette-overlay-enter-duration) ease-out}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave{animation:tx-command-palette-fade-out var(--tx-command-palette-overlay-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel{max-width:var(--tx-command-palette-panel-max-width);max-height:var(--tx-command-palette-panel-max-height);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-panel-border-radius);background:var(--tx-command-palette-panel-background);box-shadow:var(--tx-command-palette-panel-shadow);color:var(--tx-command-palette-panel-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter{animation:tx-command-palette-pop-in var(--tx-command-palette-panel-enter-duration) var(--tx-command-palette-panel-easing)}.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:tx-command-palette-pop-out var(--tx-command-palette-panel-leave-duration) ease-in forwards}.tx-command-palette__overlay[data-styled] .tx-command-palette__search{gap:var(--tx-command-palette-search-gap);padding:var(--tx-command-palette-search-padding);border-bottom:1px solid var(--tx-command-palette-panel-border-color);font-size:var(--tx-command-palette-search-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__search-icon{color:var(--tx-command-palette-search-icon-color);font-size:var(--tx-command-palette-search-icon-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__input::placeholder{color:var(--tx-command-palette-search-placeholder-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__spinner{color:var(--tx-command-palette-search-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__results{padding:var(--tx-command-palette-results-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__group{padding:var(--tx-command-palette-results-group-padding);color:var(--tx-command-palette-results-group-color);font-size:var(--tx-command-palette-results-group-font-size);font-weight:var(--tx-command-palette-results-group-font-weight);letter-spacing:var(--tx-command-palette-results-group-letter-spacing);text-transform:var(--tx-command-palette-results-group-text-transform)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item{gap:var(--tx-command-palette-item-gap);padding:var(--tx-command-palette-item-padding);border-radius:var(--tx-command-palette-item-border-radius);color:var(--tx-command-palette-item-color);font-size:var(--tx-command-palette-item-font-size);transition:background-color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active{background:var(--tx-command-palette-item-active-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon{width:var(--tx-command-palette-item-icon-size);height:var(--tx-command-palette-item-icon-size);border-radius:var(--tx-command-palette-item-icon-border-radius);background:var(--tx-command-palette-item-icon-background);color:var(--tx-command-palette-item-icon-color);font-size:var(--tx-command-palette-item-icon-font-size);transition:background-color var(--tx-command-palette-item-duration),color var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__item--active .tx-command-palette__item-icon{background:var(--tx-command-palette-item-active-icon-background);color:var(--tx-command-palette-item-active-icon-color)}.tx-command-palette__overlay[data-styled] .tx-command-palette__label{font-weight:var(--tx-command-palette-item-label-font-weight)}.tx-command-palette__overlay[data-styled] .tx-command-palette__sublabel{color:var(--tx-command-palette-item-sublabel-color);font-size:var(--tx-command-palette-item-sublabel-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{color:var(--tx-command-palette-item-arrow-color);font-size:var(--tx-command-palette-item-arrow-size);transition:opacity var(--tx-command-palette-item-duration)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status{gap:var(--tx-command-palette-results-status-gap);padding:var(--tx-command-palette-results-status-padding);color:var(--tx-command-palette-results-status-color);font-size:var(--tx-command-palette-results-status-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__status--empty{padding:var(--tx-command-palette-results-empty-padding)}.tx-command-palette__overlay[data-styled] .tx-command-palette__footer{gap:var(--tx-command-palette-footer-gap);padding:var(--tx-command-palette-footer-padding);border-top:1px solid var(--tx-command-palette-panel-border-color);background:var(--tx-command-palette-footer-background)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint{gap:var(--tx-command-palette-footer-hint-gap);color:var(--tx-command-palette-footer-hint-color);font-size:var(--tx-command-palette-footer-hint-font-size)}.tx-command-palette__overlay[data-styled] .tx-command-palette__hint kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tx-command-palette-footer-kbd-min-width);box-sizing:border-box;padding:var(--tx-command-palette-footer-kbd-padding);border:1px solid var(--tx-command-palette-panel-border-color);border-radius:var(--tx-command-palette-footer-kbd-border-radius);background:var(--tx-command-palette-footer-kbd-background);font-family:inherit;font-size:var(--tx-command-palette-footer-kbd-font-size);font-weight:var(--tx-font-weight-medium)}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled].tx-command-palette--compact) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}@media(width<=768px){:host([data-styled]) .tx-command-palette__trigger{justify-content:center;width:var(--tx-command-palette-trigger-height);padding:0}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__trigger-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-styled]) .tx-command-palette__trigger .tx-command-palette__kbd{display:none}}@keyframes tx-command-palette-spin{to{rotate:360deg}}@keyframes tx-command-palette-fade-in{0%{opacity:0}}@keyframes tx-command-palette-fade-out{to{opacity:0}}@keyframes tx-command-palette-pop-in{0%{opacity:0;transform:translateY(-8px) scale(.98)}}@keyframes tx-command-palette-pop-out{to{opacity:0;transform:translateY(-8px) scale(.98)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-command-palette__trigger{transition:none}.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--enter,.tx-command-palette__overlay[data-styled].tx-command-palette__overlay--leave,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--enter,.tx-command-palette__overlay[data-styled] .tx-command-palette__panel--leave{animation:none}.tx-command-palette__overlay[data-styled] .tx-command-palette__item,.tx-command-palette__overlay[data-styled] .tx-command-palette__item-icon,.tx-command-palette__overlay[data-styled] .tx-command-palette__arrow{transition:none}}\n"]
507
522
  }]
508
523
  }],
@@ -576,6 +591,14 @@ i0.ɵɵngDeclareClassMetadata({
576
591
  required: false
577
592
  }]
578
593
  }],
594
+ hintTexts: [{
595
+ type: i0.Input,
596
+ args: [{
597
+ isSignal: true,
598
+ alias: "hintTexts",
599
+ required: false
600
+ }]
601
+ }],
579
602
  minQueryLength: [{
580
603
  type: i0.Input,
581
604
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-command-palette.mjs","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.icons.ts","../../../../packages/blocks/command-palette/src/command-palette.theme.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts","../../../../packages/blocks/command-palette/src/command-palette.component.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxCommandPaletteItem } from './command-palette.types';\n\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The group is `pages` by default.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = node.label ?? '';\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: node.icon ?? 'file', routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, section.label ?? '');\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/** `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`. */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, group);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OAAgC;CACtH,MAAM,QAAQ,SAAS,GAAA,CAAI,KAAI,CAAE,CAAC,YAAW;CAC7C,IAAI,CAAC,MACH,OAAO,CAAC,GAAG,KAAK;CAElB,OAAO,MAAM,QAAQ,SAAS,KAAK,MAAM,YAAW,CAAE,CAAC,SAAS,IAAI,MAAM,KAAK,YAAY,GAAA,CAAI,YAAW,CAAE,CAAC,SAAS,IAAI,CAAC;AAC7H;AAMA,SAAgB,iBAAiB,MAAqD,QAAQ,SAAO;CACnG,MAAM,wBAAQ,IAAI,IAAG;CACrB,MAAM,QAAQ,OAAmC,WAAkB;EACjE,KAAK,MAAM,QAAQ,OAAO;GACxB,IAAI,KAAK,YAAY,SAAS,KAAK,YAAY,KAAK,WAClD;GAEF,MAAM,QAAQ,KAAK,SAAS;GAC5B,IAAI,KAAK,eAAe,QAAW;IAEjC,MAAM,KAAK,QADE,OAAO,KAAK,eAAe,WAAW,KAAK,aAAa,KAAK,WAAW,KAAK,GAAG,EACtE,GAAI,KAAK,UAAU,KAAK,eAAe,CAAA,CAAE;IAChE,IAAI,CAAC,MAAM,IAAI,EAAE,GACf,MAAM,IAAI,IAAI;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,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-command-palette.mjs","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.icons.ts","../../../../packages/blocks/command-palette/src/command-palette.theme.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts","../../../../packages/blocks/command-palette/src/command-palette.component.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxCommandPaletteItem, TxMenuPaletteIcon, TxMenuPaletteOptions } from './command-palette.types';\n\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The second argument is the group (`pages` by default) or `TxMenuPaletteOptions` with a\n * translate function for the labels and an icon mapping.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, options: string | TxMenuPaletteOptions = 'pages'): TxCommandPaletteItem[] {\n const { group = 'pages', translate, icon: mapIcon, defaultIcon = 'file' } = typeof options === 'string' ? { group: options } : options;\n const text = (key: string | undefined) => (key && translate ? translate(key) : (key ?? ''));\n const iconOf = (node: TxPanelMenuItem) => paletteIcon(node, mapIcon) ?? defaultIcon;\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = text(node.label);\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: iconOf(node), routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, text(section.label));\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\nfunction paletteIcon(node: TxPanelMenuItem, map: TxMenuPaletteIcon | undefined): string | undefined {\n if (typeof map === 'function') {\n return map(node) ?? node.icon;\n }\n return (node.icon && map?.[node.icon]) || node.icon;\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/**\n * `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`; pass a new options\n * object when the language changes.\n */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, options: string | TxMenuPaletteOptions = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, options);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteHints, TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly hintTexts = input<TxCommandPaletteHints>({});\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ hintTexts().navigate || translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ hintTexts().open || translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ hintTexts().close || translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OAAgC;CACtH,MAAM,QAAQ,SAAS,GAAA,CAAI,KAAI,CAAE,CAAC,YAAW;CAC7C,IAAI,CAAC,MACH,OAAO,CAAC,GAAG,KAAK;CAElB,OAAO,MAAM,QAAQ,SAAS,KAAK,MAAM,YAAW,CAAE,CAAC,SAAS,IAAI,MAAM,KAAK,YAAY,GAAA,CAAI,YAAW,CAAE,CAAC,SAAS,IAAI,CAAC;AAC7H;AAOA,SAAgB,iBAAiB,MAAqD,UAAyC,SAAO;CACpI,MAAM,EAAE,QAAQ,SAAS,WAAW,MAAM,SAAS,cAAc,WAAW,OAAO,YAAY,WAAW,EAAE,OAAO,QAAO,IAAK;CAC/H,MAAM,QAAQ,QAA6B,OAAO,YAAY,UAAU,GAAG,IAAK,OAAO;CACvF,MAAM,UAAU,SAA0B,YAAY,MAAM,OAAO,KAAK;CACxE,MAAM,wBAAQ,IAAI,IAAG;CACrB,MAAM,QAAQ,OAAmC,WAAkB;EACjE,KAAK,MAAM,QAAQ,OAAO;GACxB,IAAI,KAAK,YAAY,SAAS,KAAK,YAAY,KAAK,WAClD;GAEF,MAAM,QAAQ,KAAK,KAAK,KAAK;GAC7B,IAAI,KAAK,eAAe,QAAW;IAEjC,MAAM,KAAK,QADE,OAAO,KAAK,eAAe,WAAW,KAAK,aAAa,KAAK,WAAW,KAAK,GAAG,EACtE,GAAI,KAAK,UAAU,KAAK,eAAe,CAAA,CAAE;IAChE,IAAI,CAAC,MAAM,IAAI,EAAE,GACf,MAAM,IAAI,IAAI;KAAE;KAAI;KAAO;KAAO,UAAU,UAAU;KAAW,MAAM,OAAO,IAAI;KAAG,YAAY,KAAK;KAAY,aAAa,KAAK;IAAW,CAAE;GAErJ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A,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -101,7 +101,7 @@ var TxConfetti = class TxConfetti {
101
101
  }
102
102
  static ɵfac = i0.ɵɵngDeclareFactory({
103
103
  minVersion: "12.0.0",
104
- version: "22.2.5",
104
+ version: "22.2.6",
105
105
  ngImport: i0,
106
106
  type: TxConfetti,
107
107
  deps: [],
@@ -109,7 +109,7 @@ var TxConfetti = class TxConfetti {
109
109
  });
110
110
  static ɵcmp = i0.ɵɵngDeclareComponent({
111
111
  minVersion: "17.0.0",
112
- version: "22.2.5",
112
+ version: "22.2.6",
113
113
  type: TxConfetti,
114
114
  isStandalone: true,
115
115
  selector: "tx-confetti",
@@ -192,7 +192,7 @@ var TxConfetti = class TxConfetti {
192
192
  };
193
193
  i0.ɵɵngDeclareClassMetadata({
194
194
  minVersion: "12.0.0",
195
- version: "22.2.5",
195
+ version: "22.2.6",
196
196
  ngImport: i0,
197
197
  type: TxConfetti,
198
198
  decorators: [{