@tectra-ng/blocks 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +1 -0
  2. package/fesm2022/tectra-ng-blocks-action-tile.mjs +12 -3
  3. package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +11 -3
  5. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-blocks-app-footer.mjs +11 -2
  7. package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-blocks-app-layout.mjs +16 -3
  9. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-blocks-command-palette.mjs +15 -3
  11. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-blocks-confetti.mjs +4 -2
  13. package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-blocks-console-layout.mjs +17 -3
  15. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +12 -3
  17. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-blocks-empty-state.mjs +12 -3
  19. package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +27 -6
  21. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-blocks-hover-effect.mjs +4 -2
  23. package/fesm2022/tectra-ng-blocks-hover-effect.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-blocks-kanban.mjs +12 -3
  25. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-blocks-mascot.mjs +8 -2
  27. package/fesm2022/tectra-ng-blocks-mascot.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-blocks-network-status.mjs +12 -3
  29. package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-blocks-page-header.mjs +11 -2
  31. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +17 -3
  33. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-blocks-public-header.mjs +11 -3
  35. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-blocks-qr-code.mjs +8 -2
  37. package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-blocks-switch-language.mjs +4 -2
  39. package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-blocks-switch-theme.mjs +18 -4
  41. package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +8 -2
  43. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-blocks-wizard.mjs +24 -3
  45. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
  46. package/package.json +6 -6
  47. package/types/tectra-ng-blocks-action-tile.d.ts +1 -0
  48. package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -1
  49. package/types/tectra-ng-blocks-actions-menu.d.ts +1 -0
  50. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
  51. package/types/tectra-ng-blocks-app-footer.d.ts +1 -0
  52. package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -1
  53. package/types/tectra-ng-blocks-app-layout.d.ts +1 -0
  54. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
  55. package/types/tectra-ng-blocks-command-palette.d.ts +1 -0
  56. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
  57. package/types/tectra-ng-blocks-confetti.d.ts +1 -0
  58. package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
  59. package/types/tectra-ng-blocks-console-layout.d.ts +4 -1
  60. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
  61. package/types/tectra-ng-blocks-cookie-notice.d.ts +1 -0
  62. package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -1
  63. package/types/tectra-ng-blocks-empty-state.d.ts +1 -0
  64. package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -1
  65. package/types/tectra-ng-blocks-filters-panel.d.ts +3 -0
  66. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
  67. package/types/tectra-ng-blocks-hover-effect.d.ts +1 -0
  68. package/types/tectra-ng-blocks-hover-effect.d.ts.map +1 -1
  69. package/types/tectra-ng-blocks-kanban.d.ts +1 -0
  70. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
  71. package/types/tectra-ng-blocks-mascot.d.ts +1 -0
  72. package/types/tectra-ng-blocks-mascot.d.ts.map +1 -1
  73. package/types/tectra-ng-blocks-network-status.d.ts +1 -0
  74. package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
  75. package/types/tectra-ng-blocks-page-header.d.ts +1 -0
  76. package/types/tectra-ng-blocks-page-header.d.ts.map +1 -1
  77. package/types/tectra-ng-blocks-pinned-tabs.d.ts +3 -1
  78. package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
  79. package/types/tectra-ng-blocks-public-header.d.ts +1 -0
  80. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
  81. package/types/tectra-ng-blocks-qr-code.d.ts +1 -0
  82. package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -1
  83. package/types/tectra-ng-blocks-switch-language.d.ts +1 -0
  84. package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -1
  85. package/types/tectra-ng-blocks-switch-theme.d.ts +2 -0
  86. package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -1
  87. package/types/tectra-ng-blocks-topbar-preferences.d.ts +1 -0
  88. package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -1
  89. package/types/tectra-ng-blocks-wizard.d.ts +5 -0
  90. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
@@ -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.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\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\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@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@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 { 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 { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { 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';\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})\nexport class TxCommandPalette {\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":";;;;;;;;;;;AAIA,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;AAEA,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;KAAE;KAAI;KAAO;KAAO,UAAU,UAAU;KAAW,MAAM,KAAK,QAAQ;KAAQ,YAAY,KAAK;KAAY,aAAa,KAAK;IAAW,CAAE;GAE5J;GACA,IAAI,KAAK,OAAO,QACd,KAAK,KAAK,OAAO,KAAK;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AAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,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"}
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\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\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@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@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":";;;;;;;;;;;AAIA,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;AAEA,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;KAAE;KAAI;KAAO;KAAO,UAAU,UAAU;KAAW,MAAM,KAAK,QAAQ;KAAQ,YAAY,KAAK;KAAY,aAAa,KAAK;IAAW,CAAE;GAE5J;GACA,IAAI,KAAK,OAAO,QACd,KAAK,KAAK,OAAO,KAAK;EAE1B;CACF;CACA,KAAK,MAAM,WAAW,QAAQ,CAAA,GAC5B,IAAI,QAAQ,OAAO,QACjB,KAAK,Q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AAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,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"}
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, computed, input, numberAttribute, signal } from "@angular/core";
3
- import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
3
+ import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
4
4
  import { optionalBoolean } from "@tectra-ng/core/utils";
5
- import { toStyleObject } from "@tectra-ng/themes";
5
+ import { confettiTokens, toStyleObject } from "@tectra-ng/themes";
6
6
  const TX_CONFETTI_PIECES = [
7
7
  {
8
8
  x: -150,
@@ -65,7 +65,9 @@ const TX_CONFETTI_PIECES = [
65
65
  tone: "success"
66
66
  }
67
67
  ];
68
+ const CONFETTI_THEME = { confetti: confettiTokens };
68
69
  var TxConfetti = class TxConfetti {
70
+ confettiTheme = injectTokens(CONFETTI_THEME);
69
71
  pieces = input(TX_CONFETTI_PIECES, ...ngDevMode ? [{ debugName: "pieces" }] : /* istanbul ignore next */ []);
70
72
  delay = input(0, {
71
73
  ...ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {},
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-confetti.mjs","names":[],"sources":["../../../../packages/blocks/confetti/src/confetti.types.ts","../../../../packages/blocks/confetti/src/confetti.component.ts"],"sourcesContent":["export type TxConfettiTone = 'accent' | 'neutral' | 'success';\n\nexport interface TxConfettiPiece {\n x: number;\n y: number;\n rotate: number;\n tone: TxConfettiTone;\n}\n\nexport type TxConfettiPart = 'root' | 'piece';\n\nexport const TX_CONFETTI_PIECES: readonly TxConfettiPiece[] = [\n { x: -150, y: -90, rotate: 25, tone: 'accent' },\n { x: 140, y: -110, rotate: -35, tone: 'neutral' },\n { x: -120, y: 120, rotate: 60, tone: 'neutral' },\n { x: 160, y: 80, rotate: -15, tone: 'accent' },\n { x: -40, y: -160, rotate: 45, tone: 'success' },\n { x: 60, y: 160, rotate: -50, tone: 'success' },\n { x: -180, y: 10, rotate: 10, tone: 'accent' },\n { x: 190, y: -20, rotate: 80, tone: 'neutral' },\n { x: 90, y: -170, rotate: -70, tone: 'accent' },\n { x: -90, y: 175, rotate: 35, tone: 'success' },\n];\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConfettiTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CONFETTI_PIECES, TxConfettiPart, TxConfettiPiece } from './confetti.types';\n\n@Component({\n selector: 'tx-confetti',\n template: `\n @for (run of runs(); track run) {\n @for (piece of pieces(); track $index; let index = $index) {\n <span\n class=\"tx-confetti__piece\"\n [attr.data-tone]=\"piece.tone\"\n [style.--tx-confetti-x.px]=\"piece.x\"\n [style.--tx-confetti-y.px]=\"piece.y\"\n [style.--tx-confetti-r.deg]=\"piece.rotate\"\n [style.--tx-confetti-i]=\"index\"\n [class]=\"passThrough().piece?.class\"\n [style]=\"passThrough().piece?.style\"\n ></span>\n }\n }\n `,\n styleUrl: './confetti.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-confetti',\n 'aria-hidden': 'true',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[style.--tx-confetti-delay.ms]': 'delay()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxConfetti {\n readonly pieces = input<readonly TxConfettiPiece[]>(TX_CONFETTI_PIECES);\n readonly delay = input<number, unknown>(0, { transform: numberAttribute });\n readonly dt = input<TectraDeepPartial<TectraConfettiTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConfettiPart, TxConfetti> | 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('confetti', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-confetti'), ...this.passThrough().root?.style }));\n\n private readonly run = signal(0);\n protected readonly runs = computed(() => [this.run()]);\n\n play(): void {\n this.run.update((run) => run + 1);\n }\n}\n"],"mappings":";;;;;AAWA,MAAa,qBAAiD;CAC5D;EAAE,GAAG;EA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;GAAA,YAAA,EAAA,eAAA,OAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,gCAAA;IAAA,oBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA3BX;;;;;;;;;;;;;;;;EAeT,UAAA;EAAA,QAAA,CAAA,q8CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EA7BtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,UACb;;;;;;;;;;;;;;;;GAeT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,eAAe;IACf,WAAW;IACX,WAAW;IACX,kCAAkC;IAClC,sBAAsB;GACvB;GAAA,QAAA,CAAA,q8CAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-confetti.mjs","names":[],"sources":["../../../../packages/blocks/confetti/src/confetti.types.ts","../../../../packages/blocks/confetti/src/confetti.theme.ts","../../../../packages/blocks/confetti/src/confetti.component.ts"],"sourcesContent":["export type TxConfettiTone = 'accent' | 'neutral' | 'success';\n\nexport interface TxConfettiPiece {\n x: number;\n y: number;\n rotate: number;\n tone: TxConfettiTone;\n}\n\nexport type TxConfettiPart = 'root' | 'piece';\n\nexport const TX_CONFETTI_PIECES: readonly TxConfettiPiece[] = [\n { x: -150, y: -90, rotate: 25, tone: 'accent' },\n { x: 140, y: -110, rotate: -35, tone: 'neutral' },\n { x: -120, y: 120, rotate: 60, tone: 'neutral' },\n { x: 160, y: 80, rotate: -15, tone: 'accent' },\n { x: -40, y: -160, rotate: 45, tone: 'success' },\n { x: 60, y: 160, rotate: -50, tone: 'success' },\n { x: -180, y: 10, rotate: 10, tone: 'accent' },\n { x: 190, y: -20, rotate: 80, tone: 'neutral' },\n { x: 90, y: -170, rotate: -70, tone: 'accent' },\n { x: -90, y: 175, rotate: 35, tone: 'success' },\n];\n","import { confettiTokens } from '@tectra-ng/themes';\n\nexport const CONFETTI_THEME = {\n confetti: confettiTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute, signal } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConfettiTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CONFETTI_PIECES, TxConfettiPart, TxConfettiPiece } from './confetti.types';\nimport { CONFETTI_THEME } from './confetti.theme';\n\n@Component({\n selector: 'tx-confetti',\n template: `\n @for (run of runs(); track run) {\n @for (piece of pieces(); track $index; let index = $index) {\n <span\n class=\"tx-confetti__piece\"\n [attr.data-tone]=\"piece.tone\"\n [style.--tx-confetti-x.px]=\"piece.x\"\n [style.--tx-confetti-y.px]=\"piece.y\"\n [style.--tx-confetti-r.deg]=\"piece.rotate\"\n [style.--tx-confetti-i]=\"index\"\n [class]=\"passThrough().piece?.class\"\n [style]=\"passThrough().piece?.style\"\n ></span>\n }\n }\n `,\n styleUrl: './confetti.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-confetti',\n 'aria-hidden': 'true',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[style.--tx-confetti-delay.ms]': 'delay()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxConfetti {\n private readonly confettiTheme = injectTokens(CONFETTI_THEME);\n\n readonly pieces = input<readonly TxConfettiPiece[]>(TX_CONFETTI_PIECES);\n readonly delay = input<number, unknown>(0, { transform: numberAttribute });\n readonly dt = input<TectraDeepPartial<TectraConfettiTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConfettiPart, TxConfetti> | 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('confetti', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-confetti'), ...this.passThrough().root?.style }));\n\n private readonly run = signal(0);\n protected readonly runs = computed(() => [this.run()]);\n\n play(): void {\n this.run.update((run) => run + 1);\n }\n}\n"],"mappings":";;;;;AAWA,MAAa,qBAAiD;CAC5D;EAAE,GAAG;EAAM,GAAG;EAAK,QAAQ;EAAI,MAAM;CAAQ;CAC7C;EAAE,GAAG;EAAK,GAAG;EAAM,QAAQ;EAAK,MAAM;CAAS;CAC/C;EAAE,GAAG;EAAM,GAAG;EAAK,QAAQ;EAAI,MAAM;CAAS;CAC9C;EAAE,GAAG;EAAK,GAAG;EAAI,QAAQ;EAAK,MAAM;CAAQ;CAC5C;EAAE,GAAG;EAAK,GAAG;EAAM,QAAQ;EAAI,MAAM;CAAS;CAC9C;EAAE,GAAG;EAAI,GAAG;EAAK,QAAQ;EAAK,MAAM;CAAS;CAC7C;EAAE,GAAG;EAAM,GAAG;EAAI,QAAQ;EAAI,MAAM;CAAQ;CAC5C;EAAE,GAAG;EAAK,GAAG;EAAK,QAAQ;EAAI,MAAM;CAAS;CAC7C;EAAE,GAAG;EAAI,GAAG;EAAM,QAAQ;EAAK,MAAM;CAAQ;CAC7C;EAAE,GAAG;EAAK,GAAG;EAAK,QAAQ;EAAI,MAAM;CAAS;AAC9C;ACpBD,MAAa,iBAAiB,EAC5B,UAAU,eACX;ACgCD,IAAa,aAAb,MAAa,WAAU;CACJ,gBAAgB,aAAa,cAAc;CAEnD,SAAS,MAAkC,oBAAmB,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC9D,QAAQ,MAAuB,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAC9D,KAAK,MAA2D,QAAU,GAAA,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AAA;IAAA,mBAAA;GAAA;GAAA,IAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,IAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,eAAA,OAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,gCAAA;IAAA,oBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA3BX;;;;;;;;;;;;;;;;EAeT,UAAA;EAAA,QAAA,CAAA,q8CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EA7BtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,UACb;;;;;;;;;;;;;;;;GAeT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,eAAe;IACf,WAAW;IACX,WAAW;IACX,kCAAkC;IAClC,sBAAsB;GACvB;GAAA,QAAA,CAAA,q8CAAA;EAAA,CAAA"}
@@ -2,14 +2,14 @@ import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Injectable, booleanAttribute, computed, effect, inject, input, signal, viewChild } from "@angular/core";
3
3
  import { Title } from "@angular/platform-browser";
4
4
  import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
5
- import { TxIcon } from "@tectra-ng/icons";
5
+ import { TxIcon, provideTxIconDefaults, txIconBars, txIconChevronDown } from "@tectra-ng/icons";
6
+ import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
7
+ import { consoleLayoutTokens, toStyleObject } from "@tectra-ng/themes";
6
8
  import { takeUntilDestroyed, toSignal } from "@angular/core/rxjs-interop";
7
9
  import { NgTemplateOutlet } from "@angular/common";
8
10
  import { TxAppFooter } from "@tectra-ng/blocks/app-footer";
9
- import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
10
11
  import { injectTranslations } from "@tectra-ng/core/i18n";
11
12
  import { optionalBoolean } from "@tectra-ng/core/utils";
12
- import { toStyleObject } from "@tectra-ng/themes";
13
13
  import { filter, of } from "rxjs";
14
14
  import { uniqueId } from "@tectra-ng/core/a11y";
15
15
  const TX_CONSOLE_RAIL_EXACT_MATCH = {
@@ -66,7 +66,13 @@ i0.ɵɵngDeclareClassMetadata({
66
66
  type: TxConsoleDocument,
67
67
  decorators: [{ type: Injectable }]
68
68
  });
69
+ const CONSOLE_LAYOUT_ICON_DEFAULTS = {
70
+ bars: txIconBars,
71
+ "chevron-down": txIconChevronDown
72
+ };
73
+ const CONSOLE_LAYOUT_THEME = { consoleLayout: consoleLayoutTokens };
69
74
  var TxConsoleRail = class TxConsoleRail {
75
+ consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);
70
76
  items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
71
77
  label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
72
78
  unstyled = input(false, {
@@ -200,6 +206,7 @@ var TxConsoleRail = class TxConsoleRail {
200
206
  inputs: ["name"]
201
207
  }
202
208
  ],
209
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
203
210
  changeDetection: i0.ChangeDetectionStrategy.OnPush
204
211
  });
205
212
  };
@@ -265,6 +272,7 @@ i0.ɵɵngDeclareClassMetadata({
265
272
  class: "tx-console-rail",
266
273
  "[attr.data-styled]": "!unstyled() || null"
267
274
  },
275
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
268
276
  styles: [":host{display:block;height:100%}.tx-console-rail__nav{display:flex;flex-direction:column;box-sizing:border-box;height:100%;overflow-y:auto}.tx-console-rail__item{display:flex;flex-direction:column;align-items:center;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:center;text-decoration:none}.tx-console-rail__label{display:block;max-width:100%;overflow-wrap:break-word}:host([data-styled]) .tx-console-rail__nav{width:var(--tx-console-layout-rail-width);gap:var(--tx-console-layout-rail-gap);padding:var(--tx-console-layout-rail-padding);border-inline-end:1px solid var(--tx-console-layout-rail-border-color);background:var(--tx-console-layout-rail-background)}:host([data-styled]) .tx-console-rail__item{gap:var(--tx-console-layout-rail-item-gap);padding:var(--tx-console-layout-rail-item-padding);border-radius:var(--tx-console-layout-rail-item-border-radius);color:var(--tx-console-layout-rail-item-color);font-size:var(--tx-console-layout-rail-item-font-size);line-height:var(--tx-console-layout-rail-item-line-height);transition:background-color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing),color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-console-rail__item:hover{background:var(--tx-console-layout-rail-item-hover-background);color:var(--tx-console-layout-rail-item-hover-color)}:host([data-styled]) .tx-console-rail__item:focus-visible{outline:var(--tx-console-layout-rail-item-focus-ring-width) solid var(--tx-console-layout-rail-item-focus-ring-color);outline-offset:var(--tx-console-layout-rail-item-focus-ring-offset)}:host([data-styled]) .tx-console-rail__item--active{background:var(--tx-console-layout-rail-item-active-background);color:var(--tx-console-layout-rail-item-active-color);font-weight:var(--tx-console-layout-rail-item-active-font-weight)}:host([data-styled]) .tx-console-rail__item--active:hover{background:var(--tx-console-layout-rail-item-active-hover-background);color:var(--tx-console-layout-rail-item-active-color)}:host([data-styled]) .tx-console-rail__icon{font-size:var(--tx-console-layout-rail-item-icon-size)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=viewport]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=viewport][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=viewport][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=container]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=container][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=container][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-rail__item{transition:none}}\n"]
269
277
  }]
270
278
  }],
@@ -296,6 +304,7 @@ i0.ɵɵngDeclareClassMetadata({
296
304
  }
297
305
  });
298
306
  var TxConsoleLayout = class TxConsoleLayout {
307
+ consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);
299
308
  router = inject(Router, { optional: true });
300
309
  consoleDocument = inject(TxConsoleDocument);
301
310
  title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
@@ -584,6 +593,7 @@ var TxConsoleLayout = class TxConsoleLayout {
584
593
  ]
585
594
  }
586
595
  ],
596
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
587
597
  changeDetection: i0.ChangeDetectionStrategy.OnPush
588
598
  });
589
599
  };
@@ -611,6 +621,7 @@ i0.ɵɵngDeclareClassMetadata({
611
621
  "[attr.data-styled]": "!isUnstyled() || null",
612
622
  "[attr.data-responsive]": "responsive()"
613
623
  },
624
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
614
625
  template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n",
615
626
  styles: [":host{display:flex;flex-direction:column}:host([data-responsive=container]){container:tx-console-layout/inline-size}.tx-console-layout__header{position:sticky;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%}.tx-console-layout__start,.tx-console-layout__trail{display:flex;align-items:center;min-width:0}.tx-console-layout__apps{display:grid;flex-shrink:0;place-items:center}.tx-console-layout__apps:empty,.tx-console-layout__actions:empty{display:none}.tx-console-layout__actions{display:flex;align-items:center}.tx-console-layout__brand{display:inline-flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-console-layout__brand-text{white-space:nowrap}.tx-console-layout__crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-layout__body{display:flex;flex:1;min-height:0}.tx-console-layout__rail{position:sticky;flex-shrink:0}.tx-console-layout__column{display:flex;flex:1;flex-direction:column;min-width:0}.tx-console-layout__content{flex:1;min-width:0}:host([data-styled]){min-height:var(--tx-console-layout-min-height);background:var(--tx-console-layout-background);color:var(--tx-console-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-console-layout__header{top:var(--tx-console-layout-top-offset);z-index:var(--tx-console-layout-header-z-index);gap:var(--tx-console-layout-header-gap);min-height:var(--tx-console-layout-header-height);padding:var(--tx-console-layout-header-padding);border-bottom:1px solid var(--tx-console-layout-header-border-color);background:var(--tx-console-layout-header-background)}:host([data-styled]) .tx-console-layout__apps{width:var(--tx-console-layout-rail-width)}:host([data-styled]) .tx-console-layout__trail{gap:var(--tx-console-layout-trail-gap);padding-inline-start:var(--tx-console-layout-trail-padding-start)}:host([data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-alone-padding-start)}:host([data-styled]) .tx-console-layout__brand{gap:var(--tx-console-layout-brand-gap);color:var(--tx-console-layout-brand-color)}:host([data-styled]) .tx-console-layout__logo{flex-shrink:0;width:var(--tx-console-layout-brand-logo-size);height:var(--tx-console-layout-brand-logo-size)}:host([data-styled]) .tx-console-layout__brand-text{font-size:var(--tx-console-layout-brand-font-size);font-weight:var(--tx-console-layout-brand-font-weight)}:host([data-styled]) .tx-console-layout__brand-muted{color:var(--tx-console-layout-brand-muted-color);font-weight:var(--tx-console-layout-brand-muted-font-weight)}:host([data-styled]) .tx-console-layout__slash{color:var(--tx-console-layout-crumb-slash-color);font-size:var(--tx-console-layout-crumb-slash-font-size)}:host([data-styled]) .tx-console-layout__crumb{color:var(--tx-console-layout-crumb-color);font-size:var(--tx-console-layout-crumb-font-size)}:host([data-styled]) .tx-console-layout__crumb--current{color:var(--tx-console-layout-crumb-current-color);font-weight:var(--tx-console-layout-crumb-current-font-weight)}:host([data-styled]) .tx-console-layout__rail{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset))}:host([data-styled]) .tx-console-layout__content{padding:var(--tx-console-layout-content-padding)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-layout__brand-muted,:host([data-responsive=viewport]) .tx-console-layout__slash,:host([data-responsive=viewport]) .tx-console-layout__crumb{display:none}:host([data-responsive=viewport]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=viewport]) .tx-console-layout__rail{position:static}:host([data-responsive=viewport][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__rail{height:auto}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-layout__brand-muted,:host([data-responsive=container]) .tx-console-layout__slash,:host([data-responsive=container]) .tx-console-layout__crumb{display:none}:host([data-responsive=container]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=container]) .tx-console-layout__rail{position:static}:host([data-responsive=container][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=container][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__rail{height:auto}}\n"]
616
627
  }]
@@ -764,6 +775,7 @@ i0.ɵɵngDeclareClassMetadata({
764
775
  }
765
776
  });
766
777
  var TxConsolePanel = class TxConsolePanel {
778
+ consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);
767
779
  layout = inject(TxConsoleLayout, { optional: true });
768
780
  toggleButton = viewChild("toggleButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
769
781
  label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
@@ -938,6 +950,7 @@ var TxConsolePanel = class TxConsolePanel {
938
950
  selector: "tx-icon",
939
951
  inputs: ["name"]
940
952
  }],
953
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
941
954
  changeDetection: i0.ChangeDetectionStrategy.OnPush
942
955
  });
943
956
  };
@@ -1004,6 +1017,7 @@ i0.ɵɵngDeclareClassMetadata({
1004
1017
  "(click)": "closeOnLink($event)",
1005
1018
  "(keydown.escape)": "closeFromKeyboard($event)"
1006
1019
  },
1020
+ viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
1007
1021
  styles: [":host{display:grid;grid-template-columns:var(--tx-console-layout-panel-width) minmax(0,1fr);overflow-x:clip}.tx-console-panel__nav{position:sticky;box-sizing:border-box;overflow-y:auto}.tx-console-panel__toggle{display:none;align-items:center;box-sizing:border-box;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-console-panel__toggle-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-panel__collapse{display:contents}.tx-console-panel__main{display:flex;flex-direction:column;min-width:0}.tx-console-panel__content{flex:1;min-width:0}:host([data-styled]){min-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));margin:calc(-1 * var(--tx-console-layout-content-padding))}:host([data-styled]) .tx-console-panel__aside{border-inline-end:1px solid var(--tx-console-layout-panel-border-color);background:var(--tx-console-layout-panel-background);animation:tx-console-panel-aside-in var(--tx-console-layout-panel-aside-duration) var(--tx-console-layout-panel-aside-easing) both}:host([data-styled]) .tx-console-panel__nav{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));max-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));padding:var(--tx-console-layout-panel-nav-padding)}:host([data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-content-padding);animation:tx-console-panel-fade-in var(--tx-console-layout-panel-content-duration) ease-out var(--tx-console-layout-panel-content-delay) both}@keyframes tx-console-panel-aside-in{0%{transform:translate(-100%)}to{transform:none}}@keyframes tx-console-panel-fade-in{0%{opacity:0}to{opacity:1}}@keyframes tx-console-panel-bar-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@media(width<1024px){:host([data-responsive=viewport]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=viewport]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=viewport]) .tx-console-panel__toggle{display:flex}:host([data-responsive=viewport]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=viewport]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=viewport][data-styled]){min-height:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=viewport][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 1024px){:host([data-responsive=container]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=container]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=container]) .tx-console-panel__toggle{display:flex}:host([data-responsive=container]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=container]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=container][data-styled]){min-height:0}:host([data-responsive=container][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=container][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=container][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=container][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@media(width<768px){:host([data-responsive=viewport][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 768px){:host([data-responsive=container][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-panel__aside,:host([data-styled]) .tx-console-panel__content{animation:none}:host([data-styled]) .tx-console-panel__collapse,:host([data-styled]) .tx-console-panel__chevron{transition:none}}\n"]
1008
1022
  }]
1009
1023
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-console-layout.mjs","names":[],"sources":["../../../../packages/blocks/console-layout/src/console-rail-match.ts","../../../../packages/blocks/console-layout/src/console-document.service.ts","../../../../packages/blocks/console-layout/src/console-rail.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.html","../../../../packages/blocks/console-layout/src/console-panel.component.ts"],"sourcesContent":["import { IsActiveMatchOptions } from '@angular/router';\n\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else if (item.url) {\n <a\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n (click)=\"item.command?.()\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </button>\n }\n }\n </nav>\n `,\n styleUrl: './console-rail.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-console-rail', '[attr.data-styled]': '!unstyled() || null' },\n})\nexport class TxConsoleRail {\n readonly items = input.required<readonly TxConsoleRailItem[]>();\n readonly label = input<string | undefined>(undefined);\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { TxAppFooter, TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter, of } from 'rxjs';\nimport { TxConsoleDocument } from './console-document.service';\nimport { TxConsoleLayoutPart, TxConsoleRailItem, TxConsoleResponsive, TxConsoleTranslate } from './console-layout.types';\nimport { TxConsoleRail } from './console-rail.component';\n\n@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n})\nexport class TxConsoleLayout {\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | 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('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n})\nexport class TxConsolePanel {\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.set(false);\n this.toggleButton()?.nativeElement.focus();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAED,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACRD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iBAAgC;CAExC,SAAS,OAAa;EACpB,KAAK,iBAAiB,KAAK,MAAM,SAAQ;EACzC,KAAK,MAAM,SAAS,KAAK;CAC3B;CAEA,WAAW,MAAY;EACrB,MAAM,OAAO,KAAK,YAAW;EAC7B,IAAI,CAAC,MACH;EAEF,KAAK,mBAAmB,KAAK,aAAa,MAAM,KAAK;EACrD,KAAK,aAAa,QAAQ,IAAI;CAChC;CAEA,cAAW;EACT,IAAI,KAAK,iBAAiB,MACxB,KAAK,MAAM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A;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-console-layout.mjs","names":[],"sources":["../../../../packages/blocks/console-layout/src/console-rail-match.ts","../../../../packages/blocks/console-layout/src/console-document.service.ts","../../../../packages/blocks/console-layout/src/console-layout.icons.ts","../../../../packages/blocks/console-layout/src/console-layout.theme.ts","../../../../packages/blocks/console-layout/src/console-rail.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.html","../../../../packages/blocks/console-layout/src/console-panel.component.ts"],"sourcesContent":["import { IsActiveMatchOptions } from '@angular/router';\n\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { TxIconSet, txIconBars, txIconChevronDown } from '@tectra-ng/icons';\n\nexport const CONSOLE_LAYOUT_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n 'chevron-down': txIconChevronDown,\n};\n","import { consoleLayoutTokens } from '@tectra-ng/themes';\n\nexport const CONSOLE_LAYOUT_THEME = {\n consoleLayout: consoleLayoutTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else if (item.url) {\n <a\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n (click)=\"item.command?.()\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </button>\n }\n }\n </nav>\n `,\n styleUrl: './console-rail.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-console-rail', '[attr.data-styled]': '!unstyled() || null' },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsoleRail {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n readonly items = input.required<readonly TxConsoleRailItem[]>();\n readonly label = input<string | undefined>(undefined);\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { TxAppFooter, TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\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 { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter, of } from 'rxjs';\nimport { TxConsoleDocument } from './console-document.service';\nimport { TxConsoleLayoutPart, TxConsoleRailItem, TxConsoleResponsive, TxConsoleTranslate } from './console-layout.types';\nimport { TxConsoleRail } from './console-rail.component';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsoleLayout {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | 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('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsolePanel {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.set(false);\n this.toggleButton()?.nativeElement.focus();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAED,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACRD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iBAAgC;CAExC,SAAS,OAAa;EACpB,KAAK,iBAAiB,KAAK,MAAM,SAAQ;EACzC,KAAK,MAAM,SAAS,KAAK;CAC3B;CAEA,WAAW,MAAY;EACrB,MAAM,OAAO,KAAK,YAAW;EAC7B,IAAI,CAAC,MACH;EAEF,KAAK,mBAAmB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,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,14 +1,21 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, computed, inject, input, numberAttribute, output, signal } from "@angular/core";
3
3
  import { Router, RouterLink } from "@angular/router";
4
- import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
4
+ import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
5
5
  import { injectTranslations } from "@tectra-ng/core/i18n";
6
6
  import { optionalBoolean } from "@tectra-ng/core/utils";
7
- import { TxIcon } from "@tectra-ng/icons";
8
- import { toStyleObject } from "@tectra-ng/themes";
7
+ import { TxIcon, provideTxIconDefaults, txIconLink, txIconShield, txIconText } from "@tectra-ng/icons";
8
+ import { cookieNoticeTokens, toStyleObject } from "@tectra-ng/themes";
9
9
  import { TxButton } from "@tectra-ng/ui/button";
10
+ const COOKIE_NOTICE_ICON_DEFAULTS = {
11
+ link: txIconLink,
12
+ shield: txIconShield,
13
+ text: txIconText
14
+ };
15
+ const COOKIE_NOTICE_THEME = { cookieNotice: cookieNoticeTokens };
10
16
  const DAY_SECONDS = 86400;
11
17
  var TxCookieNotice = class TxCookieNotice {
18
+ cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);
12
19
  document = inject(DOCUMENT);
13
20
  router = inject(Router, { optional: true });
14
21
  title = input(void 0, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
@@ -255,6 +262,7 @@ var TxCookieNotice = class TxCookieNotice {
255
262
  inputs: ["name"]
256
263
  }
257
264
  ],
265
+ viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],
258
266
  changeDetection: i0.ChangeDetectionStrategy.OnPush
259
267
  });
260
268
  };
@@ -279,6 +287,7 @@ i0.ɵɵngDeclareClassMetadata({
279
287
  "[style]": "hostStyle()",
280
288
  "[attr.data-styled]": "!isUnstyled() || null"
281
289
  },
290
+ viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],
282
291
  template: "@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() ?? translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n",
283
292
  styles: [":host{display:contents}.tx-cookie-notice__panel{position:fixed;display:flex;align-items:flex-start;box-sizing:border-box}.tx-cookie-notice__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-cookie-notice__body{display:flex;flex:1;flex-direction:column;min-width:0}.tx-cookie-notice__title,.tx-cookie-notice__text{margin:0}.tx-cookie-notice__actions{display:flex;align-items:center;justify-content:flex-end}.tx-cookie-notice__link{text-decoration:none;text-underline-offset:2px}.tx-cookie-notice__link:hover{text-decoration:underline}:host([data-styled]) .tx-cookie-notice__panel{z-index:var(--tx-cookie-notice-z-index);right:var(--tx-cookie-notice-inset);bottom:var(--tx-cookie-notice-inset);left:var(--tx-cookie-notice-inset);gap:var(--tx-cookie-notice-gap);padding:var(--tx-cookie-notice-padding);border-radius:var(--tx-cookie-notice-border-radius);background:var(--tx-cookie-notice-background);box-shadow:0 0 0 1px var(--tx-cookie-notice-ring-color),var(--tx-cookie-notice-shadow);font-family:var(--tx-font-family);-webkit-backdrop-filter:var(--tx-cookie-notice-backdrop-filter);backdrop-filter:var(--tx-cookie-notice-backdrop-filter)}:host([data-styled]) .tx-cookie-notice__icon{width:var(--tx-cookie-notice-icon-size);height:var(--tx-cookie-notice-icon-size);border-radius:50%;background:var(--tx-cookie-notice-icon-background);color:var(--tx-cookie-notice-icon-color);font-size:var(--tx-cookie-notice-icon-font-size)}:host([data-styled]) .tx-cookie-notice__body{gap:var(--tx-cookie-notice-body-gap)}:host([data-styled]) .tx-cookie-notice__title{color:var(--tx-cookie-notice-title-color);font-size:var(--tx-cookie-notice-title-font-size);font-weight:var(--tx-cookie-notice-title-font-weight)}:host([data-styled]) .tx-cookie-notice__text{color:var(--tx-cookie-notice-text-color);font-size:var(--tx-cookie-notice-text-font-size);line-height:var(--tx-cookie-notice-text-line-height)}:host([data-styled]) .tx-cookie-notice__actions{gap:var(--tx-cookie-notice-actions-gap);margin-top:var(--tx-cookie-notice-actions-margin-top)}:host([data-styled]) .tx-cookie-notice__link{border-radius:2px;color:var(--tx-cookie-notice-link-color);font-size:var(--tx-cookie-notice-link-font-size);font-weight:var(--tx-cookie-notice-link-font-weight)}:host([data-styled]) .tx-cookie-notice__link:focus-visible{outline:none;box-shadow:var(--tx-cookie-notice-link-focus-ring-shadow)}:host([data-styled]) .tx-cookie-notice__panel--enter{animation:tx-cookie-notice-in var(--tx-cookie-notice-motion-enter-duration) var(--tx-cookie-notice-motion-enter-easing) var(--tx-cookie-notice-motion-enter-delay) both}:host([data-styled]) .tx-cookie-notice__panel--leave{animation:tx-cookie-notice-out var(--tx-cookie-notice-motion-leave-duration) ease-in forwards}@media(width>=640px){:host([data-styled]) .tx-cookie-notice__panel{right:auto;bottom:var(--tx-cookie-notice-wide-inset);left:var(--tx-cookie-notice-wide-inset);width:var(--tx-cookie-notice-wide-width)}}@keyframes tx-cookie-notice-in{0%{opacity:0;transform:translateY(16px) scale(.98)}}@keyframes tx-cookie-notice-out{to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-cookie-notice__panel--enter,:host([data-styled]) .tx-cookie-notice__panel--leave{animation-duration:1ms;animation-delay:0s}}\n"]
284
293
  }]