@tectra-ng/blocks 0.3.0 → 0.3.1

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.
@@ -130,7 +130,7 @@ var TxAppFooter = class TxAppFooter {
130
130
  <nav class="tx-app-footer__nav" [attr.aria-label]="navLabel() ?? translations().legal" [class]="passThrough().nav?.class" [style]="passThrough().nav?.style">
131
131
  @for (item of links(); track item.label) {
132
132
  @if (item.routerLink !== undefined) {
133
- <a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
133
+ <a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [target]="item.target" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
134
134
  } @else {
135
135
  <a class="tx-app-footer__link" [attr.href]="item.url ?? null" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
136
136
  }
@@ -183,7 +183,7 @@ i0.ɵɵngDeclareClassMetadata({
183
183
  <nav class="tx-app-footer__nav" [attr.aria-label]="navLabel() ?? translations().legal" [class]="passThrough().nav?.class" [style]="passThrough().nav?.style">
184
184
  @for (item of links(); track item.label) {
185
185
  @if (item.routerLink !== undefined) {
186
- <a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
186
+ <a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [target]="item.target" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
187
187
  } @else {
188
188
  <a class="tx-app-footer__link" [attr.href]="item.url ?? null" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
189
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-app-footer.mjs","names":[],"sources":["../../../../packages/blocks/app-footer/src/app-footer.icons.ts","../../../../packages/blocks/app-footer/src/app-footer.theme.ts","../../../../packages/blocks/app-footer/src/app-footer.component.ts"],"sourcesContent":["import { TxIconSet, txIconCopy, txIconLink } from '@tectra-ng/icons';\n\nexport const APP_FOOTER_ICON_DEFAULTS: TxIconSet = {\n copy: txIconCopy,\n link: txIconLink,\n};\n","import { appFooterTokens } from '@tectra-ng/themes';\n\nexport const APP_FOOTER_THEME = {\n appFooter: appFooterTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\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 { TectraAppFooterTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxAppFooterLink, TxAppFooterPart, TxAppFooterVariant } from './app-footer.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { APP_FOOTER_ICON_DEFAULTS } from './app-footer.icons';\nimport { APP_FOOTER_THEME } from './app-footer.theme';\n\n@Component({\n selector: 'tx-app-footer',\n imports: [RouterLink],\n template: `\n <footer class=\"tx-app-footer__root\">\n <div class=\"tx-app-footer__inner\" [class]=\"passThrough().inner?.class\" [style]=\"passThrough().inner?.style\">\n <span class=\"tx-app-footer__copy\" [class]=\"passThrough().copy?.class\" [style]=\"passThrough().copy?.style\">© {{ currentYear() }} {{ name() }}</span>\n @if (links().length) {\n <nav class=\"tx-app-footer__nav\" [attr.aria-label]=\"navLabel() ?? translations().legal\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n @for (item of links(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a class=\"tx-app-footer__link\" [routerLink]=\"item.routerLink\" [queryParams]=\"item.queryParams\" [attr.target]=\"item.target ?? null\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n } @else {\n <a class=\"tx-app-footer__link\" [attr.href]=\"item.url ?? null\" [attr.target]=\"item.target ?? null\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n }\n }\n </nav>\n }\n </div>\n </footer>\n `,\n styleUrl: './app-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-app-footer',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n },\n viewProviders: [provideTxIconDefaults(APP_FOOTER_ICON_DEFAULTS)],\n})\nexport class TxAppFooter {\n private readonly appFooterTheme = injectTokens(APP_FOOTER_THEME);\n\n readonly name = input.required<string>();\n readonly links = input<readonly TxAppFooterLink[]>([]);\n readonly variant = input<TxAppFooterVariant>('page');\n readonly navLabel = input<string | undefined>(undefined);\n readonly year = input<number | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAppFooterTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAppFooterPart, TxAppFooter> | 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('appFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly currentYear = computed(() => this.year() ?? new Date().getFullYear());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-app-footer'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;AAEA,MAAa,2BAAsC;CACjD,MAAM;CACN,MAAM;AACP;ACHD,MAAa,mBAAmB,EAC9B,WAAW,gBACZ;ACuCD,IAAa,cAAb,MAAa,YAAW;CACL,iBAAiB,aAAa,gBAAgB;C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;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,eA4BL,CAAC,sBAAsB,wBAAwB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAErD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAhCvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAC,UAAU;GAAC,UACX;;;;;;;;;;;;;;;;;;GAiBT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,uBAAuB;GACxB;GAAA,eACc,CAAC,sBAAsB,wBAAwB,CAAC;GAAC,QAAA,CAAA,moFAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-app-footer.mjs","names":[],"sources":["../../../../packages/blocks/app-footer/src/app-footer.icons.ts","../../../../packages/blocks/app-footer/src/app-footer.theme.ts","../../../../packages/blocks/app-footer/src/app-footer.component.ts"],"sourcesContent":["import { TxIconSet, txIconCopy, txIconLink } from '@tectra-ng/icons';\n\nexport const APP_FOOTER_ICON_DEFAULTS: TxIconSet = {\n copy: txIconCopy,\n link: txIconLink,\n};\n","import { appFooterTokens } from '@tectra-ng/themes';\n\nexport const APP_FOOTER_THEME = {\n appFooter: appFooterTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\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 { TectraAppFooterTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxAppFooterLink, TxAppFooterPart, TxAppFooterVariant } from './app-footer.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { APP_FOOTER_ICON_DEFAULTS } from './app-footer.icons';\nimport { APP_FOOTER_THEME } from './app-footer.theme';\n\n@Component({\n selector: 'tx-app-footer',\n imports: [RouterLink],\n template: `\n <footer class=\"tx-app-footer__root\">\n <div class=\"tx-app-footer__inner\" [class]=\"passThrough().inner?.class\" [style]=\"passThrough().inner?.style\">\n <span class=\"tx-app-footer__copy\" [class]=\"passThrough().copy?.class\" [style]=\"passThrough().copy?.style\">© {{ currentYear() }} {{ name() }}</span>\n @if (links().length) {\n <nav class=\"tx-app-footer__nav\" [attr.aria-label]=\"navLabel() ?? translations().legal\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n @for (item of links(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a class=\"tx-app-footer__link\" [routerLink]=\"item.routerLink\" [queryParams]=\"item.queryParams\" [target]=\"item.target\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n } @else {\n <a class=\"tx-app-footer__link\" [attr.href]=\"item.url ?? null\" [attr.target]=\"item.target ?? null\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n }\n }\n </nav>\n }\n </div>\n </footer>\n `,\n styleUrl: './app-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-app-footer',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n },\n viewProviders: [provideTxIconDefaults(APP_FOOTER_ICON_DEFAULTS)],\n})\nexport class TxAppFooter {\n private readonly appFooterTheme = injectTokens(APP_FOOTER_THEME);\n\n readonly name = input.required<string>();\n readonly links = input<readonly TxAppFooterLink[]>([]);\n readonly variant = input<TxAppFooterVariant>('page');\n readonly navLabel = input<string | undefined>(undefined);\n readonly year = input<number | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAppFooterTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAppFooterPart, TxAppFooter> | 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('appFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly currentYear = computed(() => this.year() ?? new Date().getFullYear());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-app-footer'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;AAEA,MAAa,2BAAsC;CACjD,MAAM;CACN,MAAM;AACP;ACHD,MAAa,mBAAmB,EAC9B,WAAW,gBACZ;ACuCD,IAAa,cAAb,MAAa,YAAW;CACL,iBAAiB,aAAa,gBAAgB;CAEtD,OAAO,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,QAAQ,MAAkC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,UAAU,MAA0B,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,KAAK,MAA4D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC3E,KAAK,MAA+D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC9E,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAA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;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;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,qBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA7BZ;;;;;;;;;;;;;;;;;;EAiBT,UAAA;EAAA,QAAA,CAAA,moFAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAlBS;GAAU,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,eA4BL,CAAC,sBAAsB,wBAAwB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAErD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAhCvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAC,UAAU;GAAC,UACX;;;;;;;;;;;;;;;;;;GAiBT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,uBAAuB;GACxB;GAAA,eACc,CAAC,sBAAsB,wBAAwB,CAAC;GAAC,QAAA,CAAA,moFAAA;EAAA,CAAA"}
@@ -134,7 +134,7 @@ var TxConsoleRail = class TxConsoleRail {
134
134
  [routerLink]="item.routerLink"
135
135
  [queryParams]="item.queryParams"
136
136
  [routerLinkActiveOptions]="item.activeOptions ?? exactMatch"
137
- [attr.target]="item.target ?? null"
137
+ [target]="item.target"
138
138
  >
139
139
  <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
140
140
  <span class="tx-console-rail__label">{{ item.label }}</span>
@@ -236,7 +236,7 @@ i0.ɵɵngDeclareClassMetadata({
236
236
  [routerLink]="item.routerLink"
237
237
  [queryParams]="item.queryParams"
238
238
  [routerLinkActiveOptions]="item.activeOptions ?? exactMatch"
239
- [attr.target]="item.target ?? null"
239
+ [target]="item.target"
240
240
  >
241
241
  <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
242
242
  <span class="tx-console-rail__label">{{ item.label }}</span>
@@ -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\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { TxIconSet, txIconBars, txIconChevronDown } from '@tectra-ng/icons';\n\nexport const CONSOLE_LAYOUT_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n 'chevron-down': txIconChevronDown,\n};\n","import { consoleLayoutTokens } from '@tectra-ng/themes';\n\nexport const CONSOLE_LAYOUT_THEME = {\n consoleLayout: consoleLayoutTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else if (item.url) {\n <a\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n (click)=\"item.command?.()\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </button>\n }\n }\n </nav>\n `,\n styleUrl: './console-rail.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-console-rail', '[attr.data-styled]': '!unstyled() || null' },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsoleRail {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n readonly items = input.required<readonly TxConsoleRailItem[]>();\n readonly label = input<string | undefined>(undefined);\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { TxAppFooter, TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter, of } from 'rxjs';\nimport { TxConsoleDocument } from './console-document.service';\nimport { TxConsoleLayoutPart, TxConsoleRailItem, TxConsoleResponsive, TxConsoleTranslate } from './console-layout.types';\nimport { TxConsoleRail } from './console-rail.component';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsoleLayout {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsolePanel {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.set(false);\n this.toggleButton()?.nativeElement.focus();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aA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;;;;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\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { TxIconSet, txIconBars, txIconChevronDown } from '@tectra-ng/icons';\n\nexport const CONSOLE_LAYOUT_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n 'chevron-down': txIconChevronDown,\n};\n","import { consoleLayoutTokens } from '@tectra-ng/themes';\n\nexport const CONSOLE_LAYOUT_THEME = {\n consoleLayout: consoleLayoutTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [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@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsoleLayout {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\nimport { CONSOLE_LAYOUT_ICON_DEFAULTS } from './console-layout.icons';\nimport { CONSOLE_LAYOUT_THEME } from './console-layout.theme';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],\n})\nexport class TxConsolePanel {\n private readonly consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);\n\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.set(false);\n this.toggleButton()?.nativeElement.focus();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAED,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACRD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iBAAgC;CAExC,SAAS,OAAa;EACpB,KAAK,iBAAiB,KAAK,MAAM,SAAQ;EACzC,KAAK,MAAM,SAAS,KAAK;CAC3B;CAEA,WAAW,MAAY;EACrB,MAAM,OAAO,KAAK,YAAW;EAC7B,IAAI,CAAC,MACH;EAEF,KAAK,mBAAmB,KAAK,aAAa,MAAM,KAAK;EACrD,KAAK,aAAa,QAAQ,IAAI;CAChC;CAEA,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;CAhCW,OAAA,OAAA,GAAA,mBAAA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A;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,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, computed, inject, input, numberAttribute, output, signal } from "@angular/core";
3
- import { Router, RouterLink } from "@angular/router";
3
+ import { ActivatedRoute, Router, RouterLink } from "@angular/router";
4
4
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
5
5
  import { injectTranslations } from "@tectra-ng/core/i18n";
6
6
  import { optionalBoolean } from "@tectra-ng/core/utils";
@@ -17,7 +17,7 @@ const DAY_SECONDS = 86400;
17
17
  var TxCookieNotice = class TxCookieNotice {
18
18
  cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);
19
19
  document = inject(DOCUMENT);
20
- router = inject(Router, { optional: true });
20
+ router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;
21
21
  title = input(void 0, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
22
22
  text = input(void 0, ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
23
23
  icon = input("shield", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-cookie-notice.mjs","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.icons.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.theme.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.html"],"sourcesContent":["import { TxIconSet, txIconLink, txIconShield, txIconText } from '@tectra-ng/icons';\n\nexport const COOKIE_NOTICE_ICON_DEFAULTS: TxIconSet = {\n link: txIconLink,\n shield: txIconShield,\n text: txIconText,\n};\n","import { cookieNoticeTokens } from '@tectra-ng/themes';\n\nexport const COOKIE_NOTICE_THEME = {\n cookieNotice: cookieNoticeTokens,\n};\n","import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\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 { TectraCookieNoticeTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxCookieNoticePart } from './cookie-notice.types';\nimport { COOKIE_NOTICE_ICON_DEFAULTS } from './cookie-notice.icons';\nimport { COOKIE_NOTICE_THEME } from './cookie-notice.theme';\n\nconst DAY_SECONDS = 86400;\n\n@Component({\n selector: 'tx-cookie-notice',\n imports: [RouterLink, TxButton, TxIcon],\n templateUrl: './cookie-notice.component.html',\n styleUrl: './cookie-notice.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-cookie-notice',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],\n})\nexport class TxCookieNotice {\n private readonly cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);\n\n private readonly document = inject(DOCUMENT);\n protected readonly router = inject(Router, { optional: true });\n\n readonly title = input<string | undefined>(undefined);\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('shield');\n readonly link = input<string | readonly unknown[] | undefined>(undefined);\n readonly href = input<string | undefined>(undefined);\n readonly linkLabel = input<string | undefined>(undefined);\n readonly acceptLabel = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly cookieName = input<string>('cookieNoticeDismissed');\n readonly maxAgeDays = input<number, unknown>(365, { transform: numberAttribute });\n readonly sharedDomain = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraCookieNoticeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCookieNoticePart, TxCookieNotice> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly dismissed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('cookieNotice', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-cookie-notice'), ...this.passThrough().root?.style }));\n\n readonly visible = signal(false);\n\n constructor() {\n afterNextRender(() => this.visible.set(!this.readDismissed()));\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n this.writeDismissed();\n this.visible.set(false);\n this.dismissed.emit();\n }\n\n private readDismissed(): boolean {\n const name = `${encodeURIComponent(this.cookieName())}=`;\n return this.document.cookie.split('; ').some((entry) => entry === `${name}1`);\n }\n\n private writeDismissed(): void {\n const location = this.document.location;\n const shared = this.sharedDomain();\n const domain = shared && location?.hostname.endsWith(`.${shared}`) ? `; domain=.${shared}` : '';\n const secure = location?.protocol === 'https:' ? '; secure' : '';\n const maxAge = Math.round(this.maxAgeDays() * DAY_SECONDS);\n this.document.cookie = `${encodeURIComponent(this.cookieName())}=1; max-age=${maxAge}; path=/${domain}${secure}; samesite=lax`;\n }\n}\n","@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() ?? translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n"],"mappings":";;;;;;;;;AAEA,MAAa,8BAAyC;CACpD,MAAM;CACN,QAAQ;CACR,MAAM;AACP;ACJD,MAAa,sBAAsB,EACjC,cAAc,mBACf;ACQD,MAAM,cAAc;AAgBpB,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CACxB,SAAS,OAAO,QAAQ,EAAE,UAAU,KAAI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A;GAAA,QAAA,CAAA,2uGAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-cookie-notice.mjs","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.icons.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.theme.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.html"],"sourcesContent":["import { TxIconSet, txIconLink, txIconShield, txIconText } from '@tectra-ng/icons';\n\nexport const COOKIE_NOTICE_ICON_DEFAULTS: TxIconSet = {\n link: txIconLink,\n shield: txIconShield,\n text: txIconText,\n};\n","import { cookieNoticeTokens } from '@tectra-ng/themes';\n\nexport const COOKIE_NOTICE_THEME = {\n cookieNotice: cookieNoticeTokens,\n};\n","import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, computed, inject, input, numberAttribute, output, signal } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\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 { TectraCookieNoticeTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxCookieNoticePart } from './cookie-notice.types';\nimport { COOKIE_NOTICE_ICON_DEFAULTS } from './cookie-notice.icons';\nimport { COOKIE_NOTICE_THEME } from './cookie-notice.theme';\n\nconst DAY_SECONDS = 86400;\n\n@Component({\n selector: 'tx-cookie-notice',\n imports: [RouterLink, TxButton, TxIcon],\n templateUrl: './cookie-notice.component.html',\n styleUrl: './cookie-notice.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-cookie-notice',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],\n})\nexport class TxCookieNotice {\n private readonly cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);\n\n private readonly document = inject(DOCUMENT);\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n\n readonly title = input<string | undefined>(undefined);\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('shield');\n readonly link = input<string | readonly unknown[] | undefined>(undefined);\n readonly href = input<string | undefined>(undefined);\n readonly linkLabel = input<string | undefined>(undefined);\n readonly acceptLabel = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly cookieName = input<string>('cookieNoticeDismissed');\n readonly maxAgeDays = input<number, unknown>(365, { transform: numberAttribute });\n readonly sharedDomain = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraCookieNoticeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCookieNoticePart, TxCookieNotice> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly dismissed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('cookieNotice', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-cookie-notice'), ...this.passThrough().root?.style }));\n\n readonly visible = signal(false);\n\n constructor() {\n afterNextRender(() => this.visible.set(!this.readDismissed()));\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n this.writeDismissed();\n this.visible.set(false);\n this.dismissed.emit();\n }\n\n private readDismissed(): boolean {\n const name = `${encodeURIComponent(this.cookieName())}=`;\n return this.document.cookie.split('; ').some((entry) => entry === `${name}1`);\n }\n\n private writeDismissed(): void {\n const location = this.document.location;\n const shared = this.sharedDomain();\n const domain = shared && location?.hostname.endsWith(`.${shared}`) ? `; domain=.${shared}` : '';\n const secure = location?.protocol === 'https:' ? '; secure' : '';\n const maxAge = Math.round(this.maxAgeDays() * DAY_SECONDS);\n this.document.cookie = `${encodeURIComponent(this.cookieName())}=1; max-age=${maxAge}; path=/${domain}${secure}; samesite=lax`;\n }\n}\n","@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()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B,2BAA2B,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAExD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAd1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB;IAAC;IAAY;IAAU;GAAM;GAAC,iBAGtB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;GACvB;GAAA,eACc,CAAC,sBAAsB,2BAA2B,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,2uGAAA;EAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, signal, viewChild } from "@angular/core";
3
3
  import { NgTemplateOutlet } from "@angular/common";
4
- import { Router, RouterLink } from "@angular/router";
4
+ import { ActivatedRoute, Router, RouterLink } from "@angular/router";
5
5
  import { uniqueId } from "@tectra-ng/core/a11y";
6
6
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
7
7
  import { injectTranslations } from "@tectra-ng/core/i18n";
@@ -49,7 +49,7 @@ var TxPublicHeader = class TxPublicHeader {
49
49
  document = inject(DOCUMENT);
50
50
  host = inject(ElementRef);
51
51
  toggleButton = viewChild("menuButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
52
- router = inject(Router, { optional: true });
52
+ router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;
53
53
  brandSlot = contentChild(TxPublicHeaderBrand, ...ngDevMode ? [{ debugName: "brandSlot" }] : /* istanbul ignore next */ []);
54
54
  brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
55
55
  logo = input(void 0, ...ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []);
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-public-header.mjs","names":[],"sources":["../../../../packages/blocks/public-header/src/public-header-brand.directive.ts","../../../../packages/blocks/public-header/src/public-header.icons.ts","../../../../packages/blocks/public-header/src/public-header.theme.ts","../../../../packages/blocks/public-header/src/public-header.component.ts","../../../../packages/blocks/public-header/src/public-header.component.html"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({ selector: '[txPublicHeaderBrand]' })\nexport class TxPublicHeaderBrand {}\n","import { TxIconSet, txIconBars, txIconTimes } from '@tectra-ng/icons';\n\nexport const PUBLIC_HEADER_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n times: txIconTimes,\n};\n","import { publicHeaderTokens } from '@tectra-ng/themes';\n\nexport const PUBLIC_HEADER_THEME = {\n publicHeader: publicHeaderTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPublicHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTopbarPreferences } from '@tectra-ng/blocks/topbar-preferences';\nimport { TxPublicHeaderBrand } from './public-header-brand.directive';\nimport { TxPublicHeaderPart, TxPublicHeaderResponsive } from './public-header.types';\nimport { PUBLIC_HEADER_ICON_DEFAULTS } from './public-header.icons';\nimport { PUBLIC_HEADER_THEME } from './public-header.theme';\n\nconst COMPACT_WIDTH = 768;\nconst CLOSE_FALLBACK_MS = 600;\n\n@Component({\n selector: 'tx-public-header',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxTopbarPreferences],\n templateUrl: './public-header.component.html',\n styleUrl: './public-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-public-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-public-header--open]': 'open()',\n '[class.tx-public-header--closing]': 'closing()',\n '(document:keydown.escape)': 'onEscape()',\n },\n viewProviders: [provideTxIconDefaults(PUBLIC_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPublicHeader {\n private readonly publicHeaderTheme = injectTokens(PUBLIC_HEADER_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n protected readonly router = inject(Router, { optional: true });\n protected readonly brandSlot = contentChild(TxPublicHeaderBrand);\n\n readonly brand = input.required<string>();\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[]>('/');\n readonly preferences = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly responsive = input<TxPublicHeaderResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraPublicHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPublicHeaderPart, TxPublicHeader> | 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('publicHeader', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly panelId = uniqueId('tx-public-header-panel');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-public-header'), ...this.passThrough().root?.style }));\n protected readonly homeHref = computed(() => {\n const link = this.homeLink();\n return typeof link === 'string' ? link : '/' + link.join('/');\n });\n\n readonly open = signal(false);\n readonly compact = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => clearTimeout(this.closingTimer));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (compact: boolean) => {\n this.compact.set(compact);\n if (!compact) {\n this.open.set(false);\n this.finishClosing();\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < COMPACT_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${COMPACT_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n toggle(): void {\n if (this.open()) {\n this.close();\n return;\n }\n this.finishClosing();\n this.open.set(true);\n }\n\n close(): void {\n if (!this.open()) {\n return;\n }\n this.open.set(false);\n if (this.compact() && !this.isUnstyled() && !this.reducedMotion()) {\n this.closing.set(true);\n clearTimeout(this.closingTimer);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n private reducedMotion(): boolean {\n return !!this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n protected onPanelClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target?.closest('a, button') && !target.closest('.tx-public-header__preferences')) {\n this.close();\n }\n }\n}\n","<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences class=\"tx-public-header__preferences\" [layout]=\"compact() ? 'stacked' : 'inline'\" [unstyled]=\"isUnstyled()\" />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAnB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAmB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAD/B,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,wBAAuB,CAAE;;;ACAhD,MAAa,8BAAyC;CACpD,MAAM;CACN,OAAO;AACR;ACHD,MAAa,sBAAsB,EACjC,cAAc,mBACf;ACyBD,MAAM,gBAAgB;AACtB,MAAM,oBAAoB;AAoB1B,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CAC1B,OAAO,OAAgC,UAAU;CACjD,eAAe,UAAyC,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACnE,SAAS,OAAO,QAAQ,EAAE,UAAU,KAAI,CAAE;CAC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AAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,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-public-header.mjs","names":[],"sources":["../../../../packages/blocks/public-header/src/public-header-brand.directive.ts","../../../../packages/blocks/public-header/src/public-header.icons.ts","../../../../packages/blocks/public-header/src/public-header.theme.ts","../../../../packages/blocks/public-header/src/public-header.component.ts","../../../../packages/blocks/public-header/src/public-header.component.html"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({ selector: '[txPublicHeaderBrand]' })\nexport class TxPublicHeaderBrand {}\n","import { TxIconSet, txIconBars, txIconTimes } from '@tectra-ng/icons';\n\nexport const PUBLIC_HEADER_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n times: txIconTimes,\n};\n","import { publicHeaderTokens } from '@tectra-ng/themes';\n\nexport const PUBLIC_HEADER_THEME = {\n publicHeader: publicHeaderTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPublicHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTopbarPreferences } from '@tectra-ng/blocks/topbar-preferences';\nimport { TxPublicHeaderBrand } from './public-header-brand.directive';\nimport { TxPublicHeaderPart, TxPublicHeaderResponsive } from './public-header.types';\nimport { PUBLIC_HEADER_ICON_DEFAULTS } from './public-header.icons';\nimport { PUBLIC_HEADER_THEME } from './public-header.theme';\n\nconst COMPACT_WIDTH = 768;\nconst CLOSE_FALLBACK_MS = 600;\n\n@Component({\n selector: 'tx-public-header',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxTopbarPreferences],\n templateUrl: './public-header.component.html',\n styleUrl: './public-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-public-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-public-header--open]': 'open()',\n '[class.tx-public-header--closing]': 'closing()',\n '(document:keydown.escape)': 'onEscape()',\n },\n viewProviders: [provideTxIconDefaults(PUBLIC_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPublicHeader {\n private readonly publicHeaderTheme = injectTokens(PUBLIC_HEADER_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n protected readonly brandSlot = contentChild(TxPublicHeaderBrand);\n\n readonly brand = input.required<string>();\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[]>('/');\n readonly preferences = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly responsive = input<TxPublicHeaderResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraPublicHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPublicHeaderPart, TxPublicHeader> | 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('publicHeader', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly panelId = uniqueId('tx-public-header-panel');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-public-header'), ...this.passThrough().root?.style }));\n protected readonly homeHref = computed(() => {\n const link = this.homeLink();\n return typeof link === 'string' ? link : '/' + link.join('/');\n });\n\n readonly open = signal(false);\n readonly compact = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => clearTimeout(this.closingTimer));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (compact: boolean) => {\n this.compact.set(compact);\n if (!compact) {\n this.open.set(false);\n this.finishClosing();\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < COMPACT_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${COMPACT_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n toggle(): void {\n if (this.open()) {\n this.close();\n return;\n }\n this.finishClosing();\n this.open.set(true);\n }\n\n close(): void {\n if (!this.open()) {\n return;\n }\n this.open.set(false);\n if (this.compact() && !this.isUnstyled() && !this.reducedMotion()) {\n this.closing.set(true);\n clearTimeout(this.closingTimer);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n private reducedMotion(): boolean {\n return !!this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n protected onPanelClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target?.closest('a, button') && !target.closest('.tx-public-header__preferences')) {\n this.close();\n }\n }\n}\n","<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences class=\"tx-public-header__preferences\" [layout]=\"compact() ? 'stacked' : 'inline'\" [unstyled]=\"isUnstyled()\" />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n"],"mappings":";;;;;;;;;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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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/blocks",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Ready page blocks for Angular consoles and admin apps on the tectra components: filters panel, page header, empty state, layouts, wizard, command palette and more.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -28,11 +28,11 @@
28
28
  "@angular/common": "^22.0.0",
29
29
  "@angular/core": "^22.0.0",
30
30
  "@angular/router": "^22.0.0",
31
- "@tectra-ng/core": "^0.3.0",
32
- "@tectra-ng/icons": "^0.3.0",
33
- "@tectra-ng/qr": "^0.3.0",
34
- "@tectra-ng/themes": "^0.3.0",
35
- "@tectra-ng/ui": "^0.3.0"
31
+ "@tectra-ng/core": "^0.3.1",
32
+ "@tectra-ng/icons": "^0.3.1",
33
+ "@tectra-ng/qr": "^0.3.1",
34
+ "@tectra-ng/themes": "^0.3.1",
35
+ "@tectra-ng/ui": "^0.3.1"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@angular/router": {