@tectra-ng/blocks 0.4.1 → 0.4.3
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.
- package/app-layout/README.md +2 -0
- package/confetti/README.md +1 -1
- package/cookie-notice/README.md +3 -1
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +2 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +4 -2
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +2 -2
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs +13 -3
- package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +2 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +53 -7
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +2 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +2 -2
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-kanban.mjs +90 -10
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-network-status.mjs +140 -39
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-page-header.mjs +4 -2
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +62 -6
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-public-header.mjs +4 -4
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +422 -0
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs +55 -25
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks.mjs +1 -1
- package/kanban/README.md +13 -2
- package/network-status/README.md +21 -4
- package/package.json +11 -6
- package/pinned-tabs/README.md +6 -1
- package/theme-configurator/README.md +59 -0
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-confetti.d.ts +3 -0
- package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-cookie-notice.d.ts +15 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -1
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +51 -11
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-network-status.d.ts +36 -7
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +22 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
- package/types/tectra-ng-blocks-theme-configurator.d.ts +98 -0
- package/types/tectra-ng-blocks-theme-configurator.d.ts.map +1 -0
- package/types/tectra-ng-blocks-wizard.d.ts +2 -0
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
- package/types/tectra-ng-blocks.d.ts +1 -1
- package/wizard/README.md +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.icons.ts","../../../../packages/blocks/command-palette/src/command-palette.theme.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts","../../../../packages/blocks/command-palette/src/command-palette.component.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { TxPanelMenuItem } from '@tectra-ng/ui/panel-menu';\nimport { TxCommandPaletteItem } from './command-palette.types';\n\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The group is `pages` by default.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = node.label ?? '';\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: node.icon ?? 'file', routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, section.label ?? '');\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/** `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`. */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, group);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OAAgC;CACtH,MAAM,QAAQ,SAAS,GAAA,CAAI,KAAI,CAAE,CAAC,YAAW;CAC7C,IAAI,CAAC,MACH,OAAO,CAAC,GAAG,KAAK;CAElB,OAAO,MAAM,QAAQ,SAAS,KAAK,MAAM,YAAW,CAAE,CAAC,SAAS,IAAI,MAAM,KAAK,YAAY,GAAA,CAAI,YAAW,CAAE,CAAC,SAAS,IAAI,CAAC;AAC7H;AAMA,SAAgB,iBAAiB,MAAqD,QAAQ,SAAO;CACnG,MAAM,wBAAQ,IAAI,IAAG;CACrB,MAAM,QAAQ,OAAmC,WAAkB;EACjE,KAAK,MAAM,QAAQ,O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AA;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\n/**\n * Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an\n * empty query.\n */\nexport function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n const term = (query ?? '').trim().toLowerCase();\n if (!term) {\n return [...items];\n }\n return items.filter((item) => item.label.toLowerCase().includes(term) || (item.sublabel ?? '').toLowerCase().includes(term));\n}\n\n/**\n * Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are\n * left out. The group is `pages` by default.\n */\nexport function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n const items = new Map<string, TxCommandPaletteItem>();\n const walk = (nodes: readonly TxPanelMenuItem[], parent: string) => {\n for (const node of nodes) {\n if (node.visible === false || node.disabled || node.separator) {\n continue;\n }\n const label = node.label ?? '';\n if (node.routerLink !== undefined) {\n const path = typeof node.routerLink === 'string' ? node.routerLink : node.routerLink.join('/');\n const id = `page:${path}:${JSON.stringify(node.queryParams ?? {})}`;\n if (!items.has(id)) {\n items.set(id, { id, group, label, sublabel: parent || undefined, icon: node.icon ?? 'file', routerLink: node.routerLink, queryParams: node.queryParams });\n }\n }\n if (node.items?.length) {\n walk(node.items, label);\n }\n }\n };\n for (const section of menu ?? []) {\n if (section.items?.length) {\n walk(section.items, section.label ?? '');\n } else {\n walk([section], '');\n }\n }\n return [...items.values()];\n}\n\n/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */\n@Pipe({ name: 'commandPaletteFilter' })\nexport class TxCommandPaletteFilterPipe implements PipeTransform {\n transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[] {\n return filterPaletteItems(items, query);\n }\n}\n\n/** `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`. */\n@Pipe({ name: 'menuPaletteItems' })\nexport class TxMenuPaletteItemsPipe implements PipeTransform {\n transform(menu: readonly TxPanelMenuItem[] | null | undefined, group = 'pages'): TxCommandPaletteItem[] {\n return menuPaletteItems(menu, group);\n }\n}\n","import { TxIconSet, txIconArrowRight, txIconFile, txIconList, txIconSearch, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const COMMAND_PALETTE_ICON_DEFAULTS: TxIconSet = {\n 'arrow-right': txIconArrowRight,\n file: txIconFile,\n list: txIconList,\n search: txIconSearch,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { commandPaletteTokens } from '@tectra-ng/themes';\n\nexport const COMMAND_PALETTE_THEME = {\n commandPalette: commandPaletteTokens,\n};\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n Injector,\n TemplateRef,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { TxFocusTrap, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCommandPaletteTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filterPaletteItems } from './command-palette.pipes';\nimport { TxCommandPaletteItem, TxCommandPalettePart } from './command-palette.types';\nimport { COMMAND_PALETTE_ICON_DEFAULTS } from './command-palette.icons';\nimport { COMMAND_PALETTE_THEME } from './command-palette.theme';\n\nconst MAC = /mac|iphone|ipad/i;\n\n@Component({\n selector: 'tx-command-palette',\n imports: [TxFocusTrap, TxIcon],\n templateUrl: './command-palette.component.html',\n styleUrl: './command-palette.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-command-palette',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-command-palette--compact]': 'compact()',\n '(document:keydown)': 'onDocumentKeydown($event)',\n },\n viewProviders: [provideTxIconDefaults(COMMAND_PALETTE_ICON_DEFAULTS)],\n})\nexport class TxCommandPalette {\n private readonly commandPaletteTheme = injectTokens(COMMAND_PALETTE_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly router = inject(Router, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly layer = viewChild.required<TemplateRef<unknown>>('layer');\n private overlayRef: OverlayRef | null = null;\n\n readonly label = input<string | undefined>(undefined);\n readonly placeholder = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('search');\n readonly items = input<readonly TxCommandPaletteItem[]>([]);\n readonly groupLabels = input<Record<string, string>>({});\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyText = input<string | undefined>(undefined);\n readonly loadingText = input<string | undefined>(undefined);\n readonly minQueryLength = input<number, unknown>(2, { transform: numberAttribute });\n readonly debounceTime = input<number, unknown>(300, { transform: numberAttribute });\n readonly shortcutKey = input<string>('k');\n readonly localFilter = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCommandPaletteTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCommandPalettePart, TxCommandPalette> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly queryChange = output<string>();\n readonly searchChange = output<string>();\n readonly itemSelect = output<TxCommandPaletteItem>();\n readonly opened = output<void>();\n readonly closed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('commandPalette', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-command-palette');\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-command-palette'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n readonly isOpen = signal(false);\n readonly query = signal('');\n readonly activeIndex = signal(0);\n private readonly mac = signal(false);\n\n protected readonly name = computed(() => this.label() ?? this.translations().search);\n protected readonly hint = computed(() => this.placeholder() ?? this.name());\n protected readonly shortcutLabel = computed(() => `${this.mac() ? '⌘' : 'Ctrl '}${this.shortcutKey().toUpperCase()}`);\n protected readonly shortcutAria = computed(() => `${this.mac() ? 'Meta' : 'Control'}+${this.shortcutKey().toUpperCase()}`);\n readonly visibleItems = computed(() => (this.localFilter() ? filterPaletteItems(this.items(), this.query()) : [...this.items()]));\n protected readonly activeId = computed(() => (this.visibleItems().length ? `${this.id}-option-${this.activeIndex()}` : null));\n\n private searchTimer: ReturnType<typeof setTimeout> | undefined;\n private lockedOverflow: string | null = null;\n\n constructor() {\n afterNextRender(() => {\n const navigator = this.document.defaultView?.navigator;\n this.mac.set(MAC.test(navigator?.platform ?? navigator?.userAgent ?? ''));\n });\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.searchTimer);\n this.unlockScroll();\n this.overlayRef?.dispose();\n });\n }\n\n open(): void {\n if (this.isOpen()) {\n return;\n }\n this.activeIndex.set(0);\n this.attachLayer();\n this.isOpen.set(true);\n this.lockScroll();\n this.opened.emit();\n }\n\n close(): void {\n if (!this.isOpen()) {\n return;\n }\n clearTimeout(this.searchTimer);\n this.isOpen.set(false);\n this.query.set('');\n this.activeIndex.set(0);\n this.unlockScroll();\n this.closed.emit();\n }\n\n select(item: TxCommandPaletteItem): void {\n this.itemSelect.emit(item);\n if (item.routerLink !== undefined && this.router) {\n const commands = typeof item.routerLink === 'string' ? [item.routerLink] : [...item.routerLink];\n void this.router.navigate(commands, { queryParams: item.queryParams });\n }\n item.command?.();\n this.close();\n }\n\n protected onDocumentKeydown(event: KeyboardEvent): void {\n if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === this.shortcutKey().toLowerCase()) {\n event.preventDefault();\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n return;\n }\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault();\n this.close();\n }\n }\n\n protected onPanelKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.move(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.move(-1);\n break;\n case 'Home':\n case 'End':\n if (this.visibleItems().length && event.target instanceof HTMLElement && event.target.getAttribute('role') !== 'combobox') {\n event.preventDefault();\n this.setActive(event.key === 'Home' ? 0 : this.visibleItems().length - 1);\n }\n break;\n case 'Enter': {\n const item = this.visibleItems()[this.activeIndex()];\n if (item) {\n event.preventDefault();\n this.select(item);\n }\n break;\n }\n }\n }\n\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.query.set(value.trim());\n this.activeIndex.set(0);\n this.queryChange.emit(this.query());\n clearTimeout(this.searchTimer);\n this.searchTimer = setTimeout(() => {\n const term = value.trim();\n this.searchChange.emit(term.length >= this.minQueryLength() ? term : '');\n }, this.debounceTime());\n }\n\n protected setActive(index: number): void {\n this.activeIndex.set(index);\n afterNextRender(\n () => {\n const option = this.document.getElementById(`${this.id}-option-${index}`);\n option?.scrollIntoView?.({ block: 'nearest' });\n },\n { injector: this.injector },\n );\n }\n\n protected isNewGroup(index: number): boolean {\n const items = this.visibleItems();\n return index === 0 || items[index].group !== items[index - 1].group;\n }\n\n protected groupLabel(group: string): string {\n return this.groupLabels()[group] ?? group;\n }\n\n private attachLayer(): void {\n if (!this.overlayRef) {\n this.overlayRef = this.overlay.create({ positionStrategy: this.overlay.position().global() });\n }\n if (!this.overlayRef.hasAttached()) {\n this.overlayRef.attach(new TemplatePortal(this.layer(), this.viewContainerRef));\n }\n }\n\n private move(delta: number): void {\n const total = this.visibleItems().length;\n if (total) {\n this.setActive((this.activeIndex() + delta + total) % total);\n }\n }\n\n private lockScroll(): void {\n const body = this.document.body;\n if (!body || this.lockedOverflow !== null || !this.host.nativeElement.isConnected) {\n return;\n }\n this.lockedOverflow = body.style.overflow;\n body.style.overflow = 'hidden';\n }\n\n private unlockScroll(): void {\n if (this.lockedOverflow === null) {\n return;\n }\n this.document.body.style.overflow = this.lockedOverflow;\n this.lockedOverflow = null;\n }\n}\n","<button\n type=\"button\"\n class=\"tx-command-palette__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-keyshortcuts]=\"shortcutAria()\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n (click)=\"open()\"\n>\n <tx-icon class=\"tx-command-palette__trigger-icon\" aria-hidden=\"true\" [name]=\"icon()\" />\n <span class=\"tx-command-palette__trigger-text\">{{ name() }}</span>\n <kbd class=\"tx-command-palette__kbd\" aria-hidden=\"true\">{{ shortcutLabel() }}</kbd>\n</button>\n<ng-template #layer>\n @if (isOpen()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the mask closes on a click; Escape closes from the panel -->\n <div\n class=\"tx-command-palette__overlay\"\n animate.enter=\"tx-command-palette__overlay--enter\"\n animate.leave=\"tx-command-palette__overlay--leave\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [style]=\"tokenStyle()\"\n [class]=\"passThrough().overlay?.class\"\n (click)=\"close()\"\n >\n <div\n class=\"tx-command-palette__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n txFocusTrap\n animate.enter=\"tx-command-palette__panel--enter\"\n animate.leave=\"tx-command-palette__panel--leave\"\n [attr.aria-label]=\"name()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n <div class=\"tx-command-palette__search\" [class]=\"passThrough().search?.class\" [style]=\"passThrough().search?.style\">\n <tx-icon class=\"tx-command-palette__search-icon\" aria-hidden=\"true\" name=\"search\" />\n <input\n class=\"tx-command-palette__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n [attr.aria-controls]=\"id + '-list'\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-label]=\"hint()\"\n [placeholder]=\"hint()\"\n (input)=\"onInput($event)\"\n />\n @if (loading()) {\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n }\n </div>\n <div class=\"tx-command-palette__results\" [class]=\"passThrough().results?.class\" [style]=\"passThrough().results?.style\">\n <div class=\"tx-command-palette__list\" role=\"listbox\" [id]=\"id + '-list'\" [attr.aria-label]=\"name()\">\n @for (item of visibleItems(); track item.id; let index = $index) {\n @if (isNewGroup(index)) {\n <div class=\"tx-command-palette__group\" role=\"presentation\">{{ groupLabel(item.group) }}</div>\n }\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"tx-command-palette__item\"\n [id]=\"id + '-option-' + index\"\n [class.tx-command-palette__item--active]=\"activeIndex() === index\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n (mouseenter)=\"activeIndex.set(index)\"\n (click)=\"select(item)\"\n >\n <span class=\"tx-command-palette__item-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon ?? 'file'\" /></span>\n <span class=\"tx-command-palette__label\">{{ item.label }}</span>\n @if (item.sublabel) {\n <span class=\"tx-command-palette__sublabel\">{{ item.sublabel }}</span>\n }\n <tx-icon class=\"tx-command-palette__arrow\" aria-hidden=\"true\" name=\"arrow-right\" />\n </button>\n }\n </div>\n @if (loading()) {\n <div class=\"tx-command-palette__status\" role=\"status\">\n <tx-icon class=\"tx-command-palette__spinner\" aria-hidden=\"true\" name=\"spinner\" />\n <span>{{ loadingText() ?? translations().searching }}</span>\n </div>\n } @else if (!visibleItems().length && query()) {\n <div class=\"tx-command-palette__status tx-command-palette__status--empty\" role=\"status\">{{ emptyText() ?? translations().nothingFound }}</div>\n }\n </div>\n <div class=\"tx-command-palette__footer\" aria-hidden=\"true\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-command-palette__hint\"><kbd>↑</kbd><kbd>↓</kbd> {{ translations().paletteNavigate }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>↵</kbd> {{ translations().paletteOpen }}</span>\n <span class=\"tx-command-palette__hint\"><kbd>esc</kbd> {{ translations().paletteClose }}</span>\n </div>\n </div>\n </div>\n }\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,mBAAmD,OAAqB,OA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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"}
|
|
@@ -87,10 +87,18 @@ var TxConfetti = class TxConfetti {
|
|
|
87
87
|
...this.passThrough().root?.style
|
|
88
88
|
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
89
89
|
run = signal(0, ...ngDevMode ? [{ debugName: "run" }] : /* istanbul ignore next */ []);
|
|
90
|
-
|
|
90
|
+
endedRun = signal(-1, ...ngDevMode ? [{ debugName: "endedRun" }] : /* istanbul ignore next */ []);
|
|
91
|
+
endedPieces = 0;
|
|
92
|
+
runs = computed(() => this.endedRun() === this.run() ? [] : [this.run()], ...ngDevMode ? [{ debugName: "runs" }] : /* istanbul ignore next */ []);
|
|
91
93
|
play() {
|
|
94
|
+
this.endedPieces = 0;
|
|
92
95
|
this.run.update((run) => run + 1);
|
|
93
96
|
}
|
|
97
|
+
pieceEnded(event) {
|
|
98
|
+
if (!/(fade|glimpse)$/.test(event.animationName)) return;
|
|
99
|
+
this.endedPieces += 1;
|
|
100
|
+
if (this.endedPieces >= this.pieces().length) this.endedRun.set(this.run());
|
|
101
|
+
}
|
|
94
102
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
95
103
|
minVersion: "12.0.0",
|
|
96
104
|
version: "22.2.5",
|
|
@@ -172,12 +180,13 @@ var TxConfetti = class TxConfetti {
|
|
|
172
180
|
[style.--tx-confetti-i]="index"
|
|
173
181
|
[class]="passThrough().piece?.class"
|
|
174
182
|
[style]="passThrough().piece?.style"
|
|
183
|
+
(animationend)="pieceEnded($event)"
|
|
175
184
|
></span>
|
|
176
185
|
}
|
|
177
186
|
}
|
|
178
187
|
`,
|
|
179
188
|
isInline: true,
|
|
180
|
-
styles: [":host{position:absolute;inset:0;overflow:visible;pointer-events:none}.tx-confetti__piece{position:absolute;top:50%;left:50%}:host([data-styled]) .tx-confetti__piece{width:var(--tx-confetti-piece-size);height:var(--tx-confetti-piece-size);margin:calc(var(--tx-confetti-piece-size) / -2) 0 0 calc(var(--tx-confetti-piece-size) / -2);border-radius:var(--tx-confetti-piece-border-radius);background:var(--tx-confetti-colors-accent);animation:tx-confetti-burst var(--tx-confetti-motion-duration) var(--tx-confetti-motion-easing) both
|
|
189
|
+
styles: [":host{position:absolute;inset:0;overflow:visible;pointer-events:none}.tx-confetti__piece{position:absolute;top:50%;left:50%}:host([data-styled]) .tx-confetti__piece{width:var(--tx-confetti-piece-size);height:var(--tx-confetti-piece-size);margin:calc(var(--tx-confetti-piece-size) / -2) 0 0 calc(var(--tx-confetti-piece-size) / -2);border-radius:var(--tx-confetti-piece-border-radius);background:var(--tx-confetti-colors-accent);--_start: calc(var(--tx-confetti-i) * var(--tx-confetti-motion-stagger) + var(--tx-confetti-delay, 0ms));animation:tx-confetti-burst var(--tx-confetti-motion-duration) var(--tx-confetti-motion-easing) var(--_start) both,tx-confetti-fade var(--tx-confetti-motion-fade-duration) ease-in calc(var(--_start) + var(--tx-confetti-motion-duration) + var(--tx-confetti-motion-hold)) forwards}:host([data-styled]) .tx-confetti__piece[data-tone=neutral]{width:var(--tx-confetti-piece-neutral-width);height:var(--tx-confetti-piece-neutral-height);margin:calc(var(--tx-confetti-piece-neutral-height) / -2) 0 0 calc(var(--tx-confetti-piece-neutral-width) / -2);background:var(--tx-confetti-colors-neutral)}:host([data-styled]) .tx-confetti__piece[data-tone=success]{border-radius:50%;background:var(--tx-confetti-colors-success)}@keyframes tx-confetti-burst{0%{opacity:0;transform:translate(0) rotate(0) scale(.4)}30%{opacity:1}to{opacity:1;transform:translate(var(--tx-confetti-x),var(--tx-confetti-y)) rotate(var(--tx-confetti-r)) scale(1)}}@keyframes tx-confetti-fade{to{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-confetti__piece{opacity:0;transform:translate(var(--tx-confetti-x),var(--tx-confetti-y)) rotate(var(--tx-confetti-r));animation:tx-confetti-glimpse calc(var(--tx-confetti-motion-duration) + var(--tx-confetti-motion-hold) + var(--tx-confetti-motion-fade-duration)) linear var(--tx-confetti-delay, 0ms) both}}@keyframes tx-confetti-glimpse{0%,to{opacity:0}15%,70%{opacity:1}}\n"],
|
|
181
190
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
182
191
|
});
|
|
183
192
|
};
|
|
@@ -202,6 +211,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
202
211
|
[style.--tx-confetti-i]="index"
|
|
203
212
|
[class]="passThrough().piece?.class"
|
|
204
213
|
[style]="passThrough().piece?.style"
|
|
214
|
+
(animationend)="pieceEnded($event)"
|
|
205
215
|
></span>
|
|
206
216
|
}
|
|
207
217
|
}
|
|
@@ -215,7 +225,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
215
225
|
"[style.--tx-confetti-delay.ms]": "delay()",
|
|
216
226
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
217
227
|
},
|
|
218
|
-
styles: [":host{position:absolute;inset:0;overflow:visible;pointer-events:none}.tx-confetti__piece{position:absolute;top:50%;left:50%}:host([data-styled]) .tx-confetti__piece{width:var(--tx-confetti-piece-size);height:var(--tx-confetti-piece-size);margin:calc(var(--tx-confetti-piece-size) / -2) 0 0 calc(var(--tx-confetti-piece-size) / -2);border-radius:var(--tx-confetti-piece-border-radius);background:var(--tx-confetti-colors-accent);animation:tx-confetti-burst var(--tx-confetti-motion-duration) var(--tx-confetti-motion-easing) both
|
|
228
|
+
styles: [":host{position:absolute;inset:0;overflow:visible;pointer-events:none}.tx-confetti__piece{position:absolute;top:50%;left:50%}:host([data-styled]) .tx-confetti__piece{width:var(--tx-confetti-piece-size);height:var(--tx-confetti-piece-size);margin:calc(var(--tx-confetti-piece-size) / -2) 0 0 calc(var(--tx-confetti-piece-size) / -2);border-radius:var(--tx-confetti-piece-border-radius);background:var(--tx-confetti-colors-accent);--_start: calc(var(--tx-confetti-i) * var(--tx-confetti-motion-stagger) + var(--tx-confetti-delay, 0ms));animation:tx-confetti-burst var(--tx-confetti-motion-duration) var(--tx-confetti-motion-easing) var(--_start) both,tx-confetti-fade var(--tx-confetti-motion-fade-duration) ease-in calc(var(--_start) + var(--tx-confetti-motion-duration) + var(--tx-confetti-motion-hold)) forwards}:host([data-styled]) .tx-confetti__piece[data-tone=neutral]{width:var(--tx-confetti-piece-neutral-width);height:var(--tx-confetti-piece-neutral-height);margin:calc(var(--tx-confetti-piece-neutral-height) / -2) 0 0 calc(var(--tx-confetti-piece-neutral-width) / -2);background:var(--tx-confetti-colors-neutral)}:host([data-styled]) .tx-confetti__piece[data-tone=success]{border-radius:50%;background:var(--tx-confetti-colors-success)}@keyframes tx-confetti-burst{0%{opacity:0;transform:translate(0) rotate(0) scale(.4)}30%{opacity:1}to{opacity:1;transform:translate(var(--tx-confetti-x),var(--tx-confetti-y)) rotate(var(--tx-confetti-r)) scale(1)}}@keyframes tx-confetti-fade{to{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-confetti__piece{opacity:0;transform:translate(var(--tx-confetti-x),var(--tx-confetti-y)) rotate(var(--tx-confetti-r));animation:tx-confetti-glimpse calc(var(--tx-confetti-motion-duration) + var(--tx-confetti-motion-hold) + var(--tx-confetti-motion-fade-duration)) linear var(--tx-confetti-delay, 0ms) both}}@keyframes tx-confetti-glimpse{0%,to{opacity:0}15%,70%{opacity:1}}\n"]
|
|
219
229
|
}]
|
|
220
230
|
}],
|
|
221
231
|
propDecorators: {
|
|
@@ -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.theme.ts","../../../../packages/blocks/confetti/src/confetti.component.ts"],"sourcesContent":["/** Colour of a confetti piece: `accent`, `neutral` or `success`. */\nexport type TxConfettiTone = 'accent' | 'neutral' | 'success';\n\n/** One piece of a confetti burst. */\nexport interface TxConfettiPiece {\n /** Where the piece lands, horizontally from the middle, in px. */\n x: number;\n /** Where the piece lands, vertically from the middle, in px. */\n y: number;\n /** Turn of the piece when it lands, in degrees. */\n rotate: number;\n /** Colour of the piece. */\n tone: TxConfettiTone;\n}\n\n/** Names of the parts of `tx-confetti` that its `pt` input can style. */\nexport type TxConfettiPart = 'root' | 'piece';\n\n/** The ten pieces `tx-confetti` bursts by default. */\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":";;;;;AAmBA,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;AC5BD,MAAa,iBAAiB,EAC5B,UAAU,eACX;
|
|
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":["/** Colour of a confetti piece: `accent`, `neutral` or `success`. */\nexport type TxConfettiTone = 'accent' | 'neutral' | 'success';\n\n/** One piece of a confetti burst. */\nexport interface TxConfettiPiece {\n /** Where the piece lands, horizontally from the middle, in px. */\n x: number;\n /** Where the piece lands, vertically from the middle, in px. */\n y: number;\n /** Turn of the piece when it lands, in degrees. */\n rotate: number;\n /** Colour of the piece. */\n tone: TxConfettiTone;\n}\n\n/** Names of the parts of `tx-confetti` that its `pt` input can style. */\nexport type TxConfettiPart = 'root' | 'piece';\n\n/** The ten pieces `tx-confetti` bursts by default. */\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 (animationend)=\"pieceEnded($event)\"\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 private readonly endedRun = signal(-1);\n private endedPieces = 0;\n protected readonly runs = computed(() => (this.endedRun() === this.run() ? [] : [this.run()]));\n\n play(): void {\n this.endedPieces = 0;\n this.run.update((run) => run + 1);\n }\n\n protected pieceEnded(event: AnimationEvent): void {\n if (!/(fade|glimpse)$/.test(event.animationName)) {\n return;\n }\n this.endedPieces += 1;\n if (this.endedPieces >= this.pieces().length) {\n this.endedRun.set(this.run());\n }\n }\n}\n"],"mappings":";;;;;AAmBA,MAAa,qBAAiD;CAC5D;EAAE,GAAG;EAAM,GAAG;EAAK,QAAQ;EAAI,MAAM;CAAQ;CAC7C;EAAE,GAAG;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;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,UA5BX;;;;;;;;;;;;;;;;;EAgBT,UAAA;EAAA,QAAA,CAAA,o5DAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAYU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EA9BtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,UACb;;;;;;;;;;;;;;;;;GAgBT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,eAAe;IACf,WAAW;IACX,WAAW;IACX,kCAAkC;IAClC,sBAAsB;GACvB;GAAA,QAAA,CAAA,o5DAAA;EAAA,CAAA"}
|
|
@@ -528,6 +528,7 @@ var TxConsoleLayout = class TxConsoleLayout {
|
|
|
528
528
|
"class": "passThrough().root?.class",
|
|
529
529
|
"style": "hostStyle()",
|
|
530
530
|
"attr.data-styled": "!isUnstyled() || null",
|
|
531
|
+
"attr.title": "null",
|
|
531
532
|
"attr.data-responsive": "responsive()"
|
|
532
533
|
},
|
|
533
534
|
classAttribute: "tx-console-layout"
|
|
@@ -619,6 +620,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
619
620
|
"[class]": "passThrough().root?.class",
|
|
620
621
|
"[style]": "hostStyle()",
|
|
621
622
|
"[attr.data-styled]": "!isUnstyled() || null",
|
|
623
|
+
"[attr.title]": "null",
|
|
622
624
|
"[attr.data-responsive]": "responsive()"
|
|
623
625
|
},
|
|
624
626
|
viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
|
|
@@ -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-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\n/** Active-link rule that marks a rail section only on its exact path; use it for the home section. */\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\n/** Active-link rule that marks a rail section for its path and everything below it. */\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/** Sets the browser tab title and icon while a console is open and puts the old ones back when it closes. */\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 /** Sets the tab title; the first title is kept to restore later. */\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n /** Sets the tab icon; the first icon is kept to restore later. */\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 /** Puts the original tab title and icon back. */\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/** The row of icon sections at the side of `tx-console-layout`. */\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 [target]=\"item.target\"\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/** The frame of a console: a header with brand and crumbs, an icon rail, the page and a footer. */\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/** A sticky list or tree at the left of a console page; below 1024px it folds into a bar above the page. */\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":";;;;;;;;;;;;;;AAGA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAGD,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACTD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iBAAgC;CAGxC,SAAS,OAAa;EACpB,KAAK,iBAAiB,KAAK,MAAM,SAAQ;EACzC,KAAK,MAAM,SAAS,KAAK;CAC3B;CAGA,WAAW,MAAY;EACrB,MAAM,OAAO,KAAK,YAAW;EAC7B,IAAI,CAAC,MACH;EAEF,KAAK,mBAAmB,KAAK,aAAa,MAAM,KAAK;EACrD,KAAK,aAAa,QAAQ,IAAI;CAChC;CAGA,cAAW;EACT,IAAI,KAAK,iBAAiB,MACxB,KAAK,MAAM,SAAS,KAAK,YAAY;EAEvC,IAAI,KAAK,mBAAmB,MAC1B,KAAK,YAAW,CAAE,EAAE,aAAa,QAAQ,KAAK,cAAc;CAEhE;CAEQ,cAAW;EACjB,OAAO,KAAK,SAAS,cAA+B,oBAAkB;CACxE;CAnCW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAjB,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;CAAiB,CAAA;;AAAjB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA,EAD7B,MAAA,W;;ACFD,MAAa,+BAA0C;CACrD,MAAM;CACN,gBAAgB;AACjB;ACHD,MAA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A,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EA3D1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB,CAAC,aAAa,MAAM;GAAC,UACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,0BAA0B;IAC1B,WAAW;IACX,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,4BAA4B,CAAC;GAAC,QAAA,CAAA,40PAAA;EAAA,CAAA;CAMK,CAAA;CAAA,sBAAA,CAAA;CAAA,gBAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,gBAAc,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,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;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\n/** Active-link rule that marks a rail section only on its exact path; use it for the home section. */\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\n/** Active-link rule that marks a rail section for its path and everything below it. */\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/** Sets the browser tab title and icon while a console is open and puts the old ones back when it closes. */\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 /** Sets the tab title; the first title is kept to restore later. */\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n /** Sets the tab icon; the first icon is kept to restore later. */\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 /** Puts the original tab title and icon back. */\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/** The row of icon sections at the side of `tx-console-layout`. */\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 [target]=\"item.target\"\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/** The frame of a console: a header with brand and crumbs, an icon rail, the page and a footer. */\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.title]': '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/** A sticky list or tree at the left of a console page; below 1024px it folds into a bar above the page. */\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":";;;;;;;;;;;;;;AAGA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAGD,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACTD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iB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