@tectra-ng/blocks 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/actions-menu/README.md +9 -1
  2. package/app-layout/README.md +3 -2
  3. package/command-palette/README.md +7 -0
  4. package/console-layout/README.md +24 -0
  5. package/cookie-notice/README.md +1 -1
  6. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +37 -15
  7. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-blocks-app-layout.mjs +19 -2
  9. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-blocks-command-palette.mjs +31 -8
  11. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-blocks-console-layout.mjs +89 -10
  13. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +2 -2
  15. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +101 -12
  17. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-blocks-kanban.mjs +102 -17
  19. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-blocks-page-header.mjs +2 -2
  21. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-blocks-public-header.mjs +17 -3
  23. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-blocks-wizard.mjs +145 -8
  25. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-blocks.mjs +1 -1
  27. package/filters-panel/README.md +20 -1
  28. package/kanban/README.md +19 -1
  29. package/package.json +6 -6
  30. package/page-header/README.md +1 -1
  31. package/public-header/README.md +6 -0
  32. package/switch-language/README.md +1 -1
  33. package/topbar-preferences/README.md +1 -1
  34. package/types/tectra-ng-blocks-actions-menu.d.ts +9 -0
  35. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
  36. package/types/tectra-ng-blocks-app-layout.d.ts +10 -3
  37. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
  38. package/types/tectra-ng-blocks-command-palette.d.ts +38 -5
  39. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
  40. package/types/tectra-ng-blocks-console-layout.d.ts +58 -9
  41. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
  42. package/types/tectra-ng-blocks-cookie-notice.d.ts +5 -5
  43. package/types/tectra-ng-blocks-filters-panel.d.ts +48 -4
  44. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
  45. package/types/tectra-ng-blocks-kanban.d.ts +47 -7
  46. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
  47. package/types/tectra-ng-blocks-public-header.d.ts +9 -2
  48. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
  49. package/types/tectra-ng-blocks-wizard.d.ts +34 -6
  50. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
  51. package/types/tectra-ng-blocks.d.ts +1 -1
  52. package/wizard/README.md +21 -3
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Injectable, booleanAttribute, computed, effect, inject, input, signal, viewChild } from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Injectable, InjectionToken, booleanAttribute, computed, effect, forwardRef, inject, input, signal, viewChild } from "@angular/core";
3
3
  import { Title } from "@angular/platform-browser";
4
4
  import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
5
5
  import { TxIcon, provideTxIconDefaults, txIconBars, txIconChevronDown } from "@tectra-ng/icons";
@@ -12,6 +12,51 @@ import { injectTranslations } from "@tectra-ng/core/i18n";
12
12
  import { optionalBoolean } from "@tectra-ng/core/utils";
13
13
  import { filter, of } from "rxjs";
14
14
  import { uniqueId } from "@tectra-ng/core/a11y";
15
+ const TX_CONSOLE_LAYOUT = new InjectionToken("TX_CONSOLE_LAYOUT");
16
+ var TxConsoleLayoutRelay = class TxConsoleLayoutRelay {
17
+ target = signal(null, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
18
+ panels = signal(0, ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
19
+ panelCount = this.panels.asReadonly();
20
+ responsive = computed(() => this.target()?.responsive() ?? "viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
21
+ footerName = computed(() => this.target()?.footerName(), ...ngDevMode ? [{ debugName: "footerName" }] : /* istanbul ignore next */ []);
22
+ visibleFooterLinks = computed(() => this.target()?.visibleFooterLinks() ?? [], ...ngDevMode ? [{ debugName: "visibleFooterLinks" }] : /* istanbul ignore next */ []);
23
+ registerPanel() {
24
+ this.panels.update((count) => count + 1);
25
+ return () => this.panels.update((count) => count - 1);
26
+ }
27
+ connect(layout) {
28
+ if (this.target()) return null;
29
+ this.target.set(layout);
30
+ return () => this.target.set(null);
31
+ }
32
+ static ɵfac = i0.ɵɵngDeclareFactory({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.6",
35
+ ngImport: i0,
36
+ type: TxConsoleLayoutRelay,
37
+ deps: [],
38
+ target: i0.ɵɵFactoryTarget.Injectable
39
+ });
40
+ static ɵprov = i0.ɵɵngDeclareInjectable({
41
+ minVersion: "12.0.0",
42
+ version: "22.2.6",
43
+ ngImport: i0,
44
+ type: TxConsoleLayoutRelay
45
+ });
46
+ };
47
+ i0.ɵɵngDeclareClassMetadata({
48
+ minVersion: "12.0.0",
49
+ version: "22.2.6",
50
+ ngImport: i0,
51
+ type: TxConsoleLayoutRelay,
52
+ decorators: [{ type: Injectable }]
53
+ });
54
+ function provideTxConsoleLayoutRelay() {
55
+ return [TxConsoleLayoutRelay, {
56
+ provide: TX_CONSOLE_LAYOUT,
57
+ useExisting: TxConsoleLayoutRelay
58
+ }];
59
+ }
15
60
  const TX_CONSOLE_RAIL_EXACT_MATCH = {
16
61
  paths: "exact",
17
62
  queryParams: "ignored",
@@ -75,6 +120,7 @@ var TxConsoleRail = class TxConsoleRail {
75
120
  consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);
76
121
  items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
77
122
  label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
123
+ responsive = input("viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
78
124
  unstyled = input(false, {
79
125
  ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
80
126
  transform: booleanAttribute
@@ -109,6 +155,13 @@ var TxConsoleRail = class TxConsoleRail {
109
155
  isRequired: false,
110
156
  transformFunction: null
111
157
  },
158
+ responsive: {
159
+ classPropertyName: "responsive",
160
+ publicName: "responsive",
161
+ isSignal: true,
162
+ isRequired: false,
163
+ transformFunction: null
164
+ },
112
165
  unstyled: {
113
166
  classPropertyName: "unstyled",
114
167
  publicName: "unstyled",
@@ -118,7 +171,10 @@ var TxConsoleRail = class TxConsoleRail {
118
171
  }
119
172
  },
120
173
  host: {
121
- properties: { "attr.data-styled": "!unstyled() || null" },
174
+ properties: {
175
+ "attr.data-styled": "!unstyled() || null",
176
+ "attr.data-responsive": "responsive() === \"none\" ? null : responsive()"
177
+ },
122
178
  classAttribute: "tx-console-rail"
123
179
  },
124
180
  ngImport: i0,
@@ -270,7 +326,8 @@ i0.ɵɵngDeclareClassMetadata({
270
326
  changeDetection: ChangeDetectionStrategy.OnPush,
271
327
  host: {
272
328
  class: "tx-console-rail",
273
- "[attr.data-styled]": "!unstyled() || null"
329
+ "[attr.data-styled]": "!unstyled() || null",
330
+ "[attr.data-responsive]": "responsive() === \"none\" ? null : responsive()"
274
331
  },
275
332
  viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
276
333
  styles: [":host{display:block;height:100%}.tx-console-rail__nav{display:flex;flex-direction:column;box-sizing:border-box;height:100%;overflow-y:auto}.tx-console-rail__item{display:flex;flex-direction:column;align-items:center;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:center;text-decoration:none}.tx-console-rail__label{display:block;max-width:100%;overflow-wrap:break-word}:host([data-styled]) .tx-console-rail__nav{width:var(--tx-console-layout-rail-width);gap:var(--tx-console-layout-rail-gap);padding:var(--tx-console-layout-rail-padding);border-inline-end:1px solid var(--tx-console-layout-rail-border-color);background:var(--tx-console-layout-rail-background)}:host([data-styled]) .tx-console-rail__item{gap:var(--tx-console-layout-rail-item-gap);padding:var(--tx-console-layout-rail-item-padding);border-radius:var(--tx-console-layout-rail-item-border-radius);color:var(--tx-console-layout-rail-item-color);font-size:var(--tx-console-layout-rail-item-font-size);line-height:var(--tx-console-layout-rail-item-line-height);transition:background-color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing),color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-console-rail__item:hover{background:var(--tx-console-layout-rail-item-hover-background);color:var(--tx-console-layout-rail-item-hover-color)}:host([data-styled]) .tx-console-rail__item:focus-visible{outline:var(--tx-console-layout-rail-item-focus-ring-width) solid var(--tx-console-layout-rail-item-focus-ring-color);outline-offset:var(--tx-console-layout-rail-item-focus-ring-offset)}:host([data-styled]) .tx-console-rail__item--active{background:var(--tx-console-layout-rail-item-active-background);color:var(--tx-console-layout-rail-item-active-color);font-weight:var(--tx-console-layout-rail-item-active-font-weight)}:host([data-styled]) .tx-console-rail__item--active:hover{background:var(--tx-console-layout-rail-item-active-hover-background);color:var(--tx-console-layout-rail-item-active-color)}:host([data-styled]) .tx-console-rail__icon{font-size:var(--tx-console-layout-rail-item-icon-size)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=viewport]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=viewport][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=viewport][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=container]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=container][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=container][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-rail__item{transition:none}}\n"]
@@ -293,6 +350,14 @@ i0.ɵɵngDeclareClassMetadata({
293
350
  required: false
294
351
  }]
295
352
  }],
353
+ responsive: [{
354
+ type: i0.Input,
355
+ args: [{
356
+ isSignal: true,
357
+ alias: "responsive",
358
+ required: false
359
+ }]
360
+ }],
296
361
  unstyled: [{
297
362
  type: i0.Input,
298
363
  args: [{
@@ -337,7 +402,8 @@ var TxConsoleLayout = class TxConsoleLayout {
337
402
  ...this.passThrough().root?.style
338
403
  }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
339
404
  panels = signal(0, ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
340
- hasPanel = computed(() => this.panels() > 0, ...ngDevMode ? [{ debugName: "hasPanel" }] : /* istanbul ignore next */ []);
405
+ relay = signal(null, ...ngDevMode ? [{ debugName: "relay" }] : /* istanbul ignore next */ []);
406
+ hasPanel = computed(() => this.panels() + (this.relay()?.panelCount() ?? 0) > 0, ...ngDevMode ? [{ debugName: "hasPanel" }] : /* istanbul ignore next */ []);
341
407
  navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), { initialValue: null });
342
408
  visibleCrumbs = computed(() => {
343
409
  const own = this.crumbs();
@@ -356,6 +422,12 @@ var TxConsoleLayout = class TxConsoleLayout {
356
422
  railName = computed(() => this.railLabel() ?? this.translations().consoleSections, ...ngDevMode ? [{ debugName: "railName" }] : /* istanbul ignore next */ []);
357
423
  pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(" · "), ...ngDevMode ? [{ debugName: "pageTitle" }] : /* istanbul ignore next */ []);
358
424
  constructor() {
425
+ const relay = inject(TxConsoleLayoutRelay, { optional: true });
426
+ const disconnect = relay?.connect(this);
427
+ if (relay && disconnect) {
428
+ this.relay.set(relay);
429
+ inject(DestroyRef).onDestroy(disconnect);
430
+ }
359
431
  effect(() => {
360
432
  if (this.documentTitle()) this.consoleDocument.setTitle(this.pageTitle());
361
433
  });
@@ -533,9 +605,12 @@ var TxConsoleLayout = class TxConsoleLayout {
533
605
  },
534
606
  classAttribute: "tx-console-layout"
535
607
  },
536
- providers: [TxConsoleDocument],
608
+ providers: [TxConsoleDocument, {
609
+ provide: TX_CONSOLE_LAYOUT,
610
+ useExisting: forwardRef(() => TxConsoleLayout)
611
+ }],
537
612
  ngImport: i0,
538
- template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n",
613
+ template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [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",
539
614
  styles: [":host{display:flex;flex-direction:column}:host([data-responsive=container]){container:tx-console-layout/inline-size}.tx-console-layout__header{position:sticky;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%}.tx-console-layout__start,.tx-console-layout__trail{display:flex;align-items:center;min-width:0}.tx-console-layout__apps{display:grid;flex-shrink:0;place-items:center}.tx-console-layout__apps:empty,.tx-console-layout__actions:empty{display:none}.tx-console-layout__actions{display:flex;align-items:center}.tx-console-layout__brand{display:inline-flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-console-layout__brand-text{white-space:nowrap}.tx-console-layout__crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-layout__body{display:flex;flex:1;min-height:0}.tx-console-layout__rail{position:sticky;flex-shrink:0}.tx-console-layout__column{display:flex;flex:1;flex-direction:column;min-width:0}.tx-console-layout__content{flex:1;min-width:0}:host([data-styled]){min-height:var(--tx-console-layout-min-height);background:var(--tx-console-layout-background);color:var(--tx-console-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-console-layout__header{top:var(--tx-console-layout-top-offset);z-index:var(--tx-console-layout-header-z-index);gap:var(--tx-console-layout-header-gap);min-height:var(--tx-console-layout-header-height);padding:var(--tx-console-layout-header-padding);border-bottom:1px solid var(--tx-console-layout-header-border-color);background:var(--tx-console-layout-header-background)}:host([data-styled]) .tx-console-layout__apps{width:var(--tx-console-layout-rail-width)}:host([data-styled]) .tx-console-layout__trail{gap:var(--tx-console-layout-trail-gap);padding-inline-start:var(--tx-console-layout-trail-padding-start)}:host([data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-alone-padding-start)}:host([data-styled]) .tx-console-layout__brand{gap:var(--tx-console-layout-brand-gap);color:var(--tx-console-layout-brand-color)}:host([data-styled]) .tx-console-layout__logo{flex-shrink:0;width:var(--tx-console-layout-brand-logo-size);height:var(--tx-console-layout-brand-logo-size)}:host([data-styled]) .tx-console-layout__brand-text{font-size:var(--tx-console-layout-brand-font-size);font-weight:var(--tx-console-layout-brand-font-weight)}:host([data-styled]) .tx-console-layout__brand-muted{color:var(--tx-console-layout-brand-muted-color);font-weight:var(--tx-console-layout-brand-muted-font-weight)}:host([data-styled]) .tx-console-layout__slash{color:var(--tx-console-layout-crumb-slash-color);font-size:var(--tx-console-layout-crumb-slash-font-size)}:host([data-styled]) .tx-console-layout__crumb{color:var(--tx-console-layout-crumb-color);font-size:var(--tx-console-layout-crumb-font-size)}:host([data-styled]) .tx-console-layout__crumb--current{color:var(--tx-console-layout-crumb-current-color);font-weight:var(--tx-console-layout-crumb-current-font-weight)}:host([data-styled]) .tx-console-layout__rail{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset))}:host([data-styled]) .tx-console-layout__content{padding:var(--tx-console-layout-content-padding)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-layout__brand-muted,:host([data-responsive=viewport]) .tx-console-layout__slash,:host([data-responsive=viewport]) .tx-console-layout__crumb{display:none}:host([data-responsive=viewport]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=viewport]) .tx-console-layout__rail{position:static}:host([data-responsive=viewport][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__rail{height:auto}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-layout__brand-muted,:host([data-responsive=container]) .tx-console-layout__slash,:host([data-responsive=container]) .tx-console-layout__crumb{display:none}:host([data-responsive=container]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=container]) .tx-console-layout__rail{position:static}:host([data-responsive=container][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=container][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__rail{height:auto}}\n"],
540
615
  dependencies: [
541
616
  {
@@ -574,6 +649,7 @@ var TxConsoleLayout = class TxConsoleLayout {
574
649
  inputs: [
575
650
  "items",
576
651
  "label",
652
+ "responsive",
577
653
  "unstyled"
578
654
  ]
579
655
  },
@@ -614,7 +690,10 @@ i0.ɵɵngDeclareClassMetadata({
614
690
  TxAppFooter
615
691
  ],
616
692
  changeDetection: ChangeDetectionStrategy.OnPush,
617
- providers: [TxConsoleDocument],
693
+ providers: [TxConsoleDocument, {
694
+ provide: TX_CONSOLE_LAYOUT,
695
+ useExisting: forwardRef(() => TxConsoleLayout)
696
+ }],
618
697
  host: {
619
698
  class: "tx-console-layout",
620
699
  "[class]": "passThrough().root?.class",
@@ -624,7 +703,7 @@ i0.ɵɵngDeclareClassMetadata({
624
703
  "[attr.data-responsive]": "responsive()"
625
704
  },
626
705
  viewProviders: [provideTxIconDefaults(CONSOLE_LAYOUT_ICON_DEFAULTS)],
627
- template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n",
706
+ template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [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",
628
707
  styles: [":host{display:flex;flex-direction:column}:host([data-responsive=container]){container:tx-console-layout/inline-size}.tx-console-layout__header{position:sticky;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%}.tx-console-layout__start,.tx-console-layout__trail{display:flex;align-items:center;min-width:0}.tx-console-layout__apps{display:grid;flex-shrink:0;place-items:center}.tx-console-layout__apps:empty,.tx-console-layout__actions:empty{display:none}.tx-console-layout__actions{display:flex;align-items:center}.tx-console-layout__brand{display:inline-flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-console-layout__brand-text{white-space:nowrap}.tx-console-layout__crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-layout__body{display:flex;flex:1;min-height:0}.tx-console-layout__rail{position:sticky;flex-shrink:0}.tx-console-layout__column{display:flex;flex:1;flex-direction:column;min-width:0}.tx-console-layout__content{flex:1;min-width:0}:host([data-styled]){min-height:var(--tx-console-layout-min-height);background:var(--tx-console-layout-background);color:var(--tx-console-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-console-layout__header{top:var(--tx-console-layout-top-offset);z-index:var(--tx-console-layout-header-z-index);gap:var(--tx-console-layout-header-gap);min-height:var(--tx-console-layout-header-height);padding:var(--tx-console-layout-header-padding);border-bottom:1px solid var(--tx-console-layout-header-border-color);background:var(--tx-console-layout-header-background)}:host([data-styled]) .tx-console-layout__apps{width:var(--tx-console-layout-rail-width)}:host([data-styled]) .tx-console-layout__trail{gap:var(--tx-console-layout-trail-gap);padding-inline-start:var(--tx-console-layout-trail-padding-start)}:host([data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-alone-padding-start)}:host([data-styled]) .tx-console-layout__brand{gap:var(--tx-console-layout-brand-gap);color:var(--tx-console-layout-brand-color)}:host([data-styled]) .tx-console-layout__logo{flex-shrink:0;width:var(--tx-console-layout-brand-logo-size);height:var(--tx-console-layout-brand-logo-size)}:host([data-styled]) .tx-console-layout__brand-text{font-size:var(--tx-console-layout-brand-font-size);font-weight:var(--tx-console-layout-brand-font-weight)}:host([data-styled]) .tx-console-layout__brand-muted{color:var(--tx-console-layout-brand-muted-color);font-weight:var(--tx-console-layout-brand-muted-font-weight)}:host([data-styled]) .tx-console-layout__slash{color:var(--tx-console-layout-crumb-slash-color);font-size:var(--tx-console-layout-crumb-slash-font-size)}:host([data-styled]) .tx-console-layout__crumb{color:var(--tx-console-layout-crumb-color);font-size:var(--tx-console-layout-crumb-font-size)}:host([data-styled]) .tx-console-layout__crumb--current{color:var(--tx-console-layout-crumb-current-color);font-weight:var(--tx-console-layout-crumb-current-font-weight)}:host([data-styled]) .tx-console-layout__rail{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset))}:host([data-styled]) .tx-console-layout__content{padding:var(--tx-console-layout-content-padding)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-layout__brand-muted,:host([data-responsive=viewport]) .tx-console-layout__slash,:host([data-responsive=viewport]) .tx-console-layout__crumb{display:none}:host([data-responsive=viewport]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=viewport]) .tx-console-layout__rail{position:static}:host([data-responsive=viewport][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__rail{height:auto}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-layout__brand-muted,:host([data-responsive=container]) .tx-console-layout__slash,:host([data-responsive=container]) .tx-console-layout__crumb{display:none}:host([data-responsive=container]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=container]) .tx-console-layout__rail{position:static}:host([data-responsive=container][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=container][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__rail{height:auto}}\n"]
629
708
  }]
630
709
  }],
@@ -778,7 +857,7 @@ i0.ɵɵngDeclareClassMetadata({
778
857
  });
779
858
  var TxConsolePanel = class TxConsolePanel {
780
859
  consoleLayoutTheme = injectTokens(CONSOLE_LAYOUT_THEME);
781
- layout = inject(TxConsoleLayout, { optional: true });
860
+ layout = inject(TX_CONSOLE_LAYOUT, { optional: true });
782
861
  toggleButton = viewChild("toggleButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
783
862
  label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
784
863
  dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
@@ -1071,6 +1150,6 @@ i0.ɵɵngDeclareClassMetadata({
1071
1150
  }]
1072
1151
  }
1073
1152
  });
1074
- export { TX_CONSOLE_RAIL_EXACT_MATCH, TX_CONSOLE_RAIL_SECTION_MATCH, TxConsoleDocument, TxConsoleLayout, TxConsolePanel, TxConsoleRail };
1153
+ export { TX_CONSOLE_LAYOUT, TX_CONSOLE_RAIL_EXACT_MATCH, TX_CONSOLE_RAIL_SECTION_MATCH, TxConsoleDocument, TxConsoleLayout, TxConsoleLayoutRelay, TxConsolePanel, TxConsoleRail, provideTxConsoleLayoutRelay };
1075
1154
 
1076
1155
  //# sourceMappingURL=tectra-ng-blocks-console-layout.mjs.map
@@ -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.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,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,KAA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AA;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-layout.context.ts","../../../../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 { Injectable, InjectionToken, Provider, Signal, computed, signal } from '@angular/core';\nimport { TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\nimport { TxConsoleResponsive } from './console-layout.types';\n\n/** What a `tx-console-panel` reads from its console. */\nexport interface TxConsoleLayoutContext {\n /** What the console breakpoints measure. */\n readonly responsive: Signal<TxConsoleResponsive>;\n /** Name in the footer that the panel shows next to its page; empty for none. */\n readonly footerName: Signal<string | undefined>;\n /** Footer links, already translated. */\n readonly visibleFooterLinks: Signal<readonly TxAppFooterLink[]>;\n /** Tells the console that a panel shows the footer; returns the function to call when the panel goes away. */\n registerPanel(): () => void;\n}\n\n/**\n * Injection token through which a `tx-console-panel` finds its console; `tx-console-layout` provides it, and\n * so can a component that wraps the console (`provideTxConsoleLayoutRelay`).\n */\nexport const TX_CONSOLE_LAYOUT = new InjectionToken<TxConsoleLayoutContext>('TX_CONSOLE_LAYOUT');\n\n/**\n * Passes the settings of the `tx-console-layout` inside a wrapper component to the panels projected into that\n * wrapper, which Angular cannot find through the wrapper. Provide it with `provideTxConsoleLayoutRelay()`.\n */\n@Injectable()\nexport class TxConsoleLayoutRelay implements TxConsoleLayoutContext {\n private readonly target = signal<TxConsoleLayoutContext | null>(null);\n private readonly panels = signal(0);\n\n /** Number of panels registered through the relay. */\n readonly panelCount = this.panels.asReadonly();\n /** What the connected console's breakpoints measure; `viewport` before a console connects. */\n readonly responsive = computed<TxConsoleResponsive>(() => this.target()?.responsive() ?? 'viewport');\n /** Footer name of the connected console. */\n readonly footerName = computed(() => this.target()?.footerName());\n /** Translated footer links of the connected console; empty before a console connects. */\n readonly visibleFooterLinks = computed<readonly TxAppFooterLink[]>(() => this.target()?.visibleFooterLinks() ?? []);\n\n /** Counts a projected panel that shows the footer; returns the function to call when the panel goes away. */\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n /** Connects the first console created inside the wrapper; returns the function that disconnects it, or `null` when another console is connected. */\n connect(layout: TxConsoleLayoutContext): (() => void) | null {\n if (this.target()) {\n return null;\n }\n this.target.set(layout);\n return () => this.target.set(null);\n }\n}\n\n/**\n * Providers for a component that wraps `tx-console-layout` and projects `tx-console-panel` into it:\n * `providers: [provideTxConsoleLayoutRelay()]`.\n */\nexport function provideTxConsoleLayoutRelay(): Provider[] {\n return [TxConsoleLayoutRelay, { provide: TX_CONSOLE_LAYOUT, useExisting: TxConsoleLayoutRelay }];\n}\n","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, TxConsoleRailResponsive } 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: {\n class: 'tx-console-rail',\n '[attr.data-styled]': '!unstyled() || null',\n '[attr.data-responsive]': 'responsive() === \"none\" ? null : responsive()',\n },\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 responsive = input<TxConsoleRailResponsive>('viewport');\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, computed, effect, forwardRef, 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 { TX_CONSOLE_LAYOUT, TxConsoleLayoutContext, TxConsoleLayoutRelay } from './console-layout.context';\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, { provide: TX_CONSOLE_LAYOUT, useExisting: forwardRef(() => TxConsoleLayout) }],\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 implements TxConsoleLayoutContext {\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 private readonly relay = signal<TxConsoleLayoutRelay | null>(null);\n readonly hasPanel = computed(() => this.panels() + (this.relay()?.panelCount() ?? 0) > 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 const relay = inject(TxConsoleLayoutRelay, { optional: true });\n const disconnect = relay?.connect(this);\n if (relay && disconnect) {\n this.relay.set(relay);\n inject(DestroyRef).onDestroy(disconnect);\n }\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 [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 { TX_CONSOLE_LAYOUT } from './console-layout.context';\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(TX_CONSOLE_LAYOUT, { 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":";;;;;;;;;;;;;;AAoBA,MAAa,oBAAoB,IAAI,eAAuC,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AA,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"}
@@ -231,7 +231,7 @@ var TxCookieNotice = class TxCookieNotice {
231
231
  classAttribute: "tx-cookie-notice"
232
232
  },
233
233
  ngImport: i0,
234
- template: "@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() ?? translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n",
234
+ template: "@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() || translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() || translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() || translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() || translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n",
235
235
  styles: [":host{display:contents}.tx-cookie-notice__panel{position:fixed;display:flex;align-items:flex-start;box-sizing:border-box}.tx-cookie-notice__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-cookie-notice__body{display:flex;flex:1;flex-direction:column;min-width:0}.tx-cookie-notice__title,.tx-cookie-notice__text{margin:0}.tx-cookie-notice__actions{display:flex;align-items:center;justify-content:flex-end}.tx-cookie-notice__link{text-decoration:none;text-underline-offset:2px}.tx-cookie-notice__link:hover{text-decoration:underline}:host([data-styled]) .tx-cookie-notice__panel{z-index:var(--tx-cookie-notice-z-index);right:var(--tx-cookie-notice-inset);bottom:calc(var(--tx-cookie-notice-inset) + var(--tx-bottom-overlay-offset, 0px));left:var(--tx-cookie-notice-inset);gap:var(--tx-cookie-notice-gap);padding:var(--tx-cookie-notice-padding);border-radius:var(--tx-cookie-notice-border-radius);background:var(--tx-cookie-notice-background);box-shadow:0 0 0 1px var(--tx-cookie-notice-ring-color),var(--tx-cookie-notice-shadow);font-family:var(--tx-font-family);-webkit-backdrop-filter:var(--tx-cookie-notice-backdrop-filter);backdrop-filter:var(--tx-cookie-notice-backdrop-filter);transition:bottom var(--tx-cookie-notice-motion-enter-duration) var(--tx-cookie-notice-motion-enter-easing)}:host([data-styled]) .tx-cookie-notice__icon{width:var(--tx-cookie-notice-icon-size);height:var(--tx-cookie-notice-icon-size);border-radius:50%;background:var(--tx-cookie-notice-icon-background);color:var(--tx-cookie-notice-icon-color);font-size:var(--tx-cookie-notice-icon-font-size)}:host([data-styled]) .tx-cookie-notice__body{gap:var(--tx-cookie-notice-body-gap)}:host([data-styled]) .tx-cookie-notice__title{color:var(--tx-cookie-notice-title-color);font-size:var(--tx-cookie-notice-title-font-size);font-weight:var(--tx-cookie-notice-title-font-weight)}:host([data-styled]) .tx-cookie-notice__text{color:var(--tx-cookie-notice-text-color);font-size:var(--tx-cookie-notice-text-font-size);line-height:var(--tx-cookie-notice-text-line-height)}:host([data-styled]) .tx-cookie-notice__actions{gap:var(--tx-cookie-notice-actions-gap);margin-top:var(--tx-cookie-notice-actions-margin-top)}:host([data-styled]) .tx-cookie-notice__link{border-radius:2px;color:var(--tx-cookie-notice-link-color);font-size:var(--tx-cookie-notice-link-font-size);font-weight:var(--tx-cookie-notice-link-font-weight)}:host([data-styled]) .tx-cookie-notice__link:focus-visible{outline:none;box-shadow:var(--tx-cookie-notice-link-focus-ring-shadow)}:host([data-styled]) .tx-cookie-notice__panel--enter{animation:tx-cookie-notice-in var(--tx-cookie-notice-motion-enter-duration) var(--tx-cookie-notice-motion-enter-easing) var(--tx-cookie-notice-motion-enter-delay) both}:host([data-styled]) .tx-cookie-notice__panel--leave{animation:tx-cookie-notice-out var(--tx-cookie-notice-motion-leave-duration) ease-in forwards}@media(width>=640px){:host([data-styled]) .tx-cookie-notice__panel{right:auto;bottom:calc(var(--tx-cookie-notice-wide-inset) + var(--tx-bottom-overlay-offset, 0px));left:var(--tx-cookie-notice-wide-inset);width:var(--tx-cookie-notice-wide-width)}}@keyframes tx-cookie-notice-in{0%{opacity:0;transform:translateY(16px) scale(.98)}}@keyframes tx-cookie-notice-out{to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-cookie-notice__panel--enter,:host([data-styled]) .tx-cookie-notice__panel--leave{animation-duration:1ms;animation-delay:0s}:host([data-styled]) .tx-cookie-notice__panel{transition:none}}\n"],
236
236
  dependencies: [
237
237
  {
@@ -318,7 +318,7 @@ i0.ɵɵngDeclareClassMetadata({
318
318
  "[attr.title]": "null"
319
319
  },
320
320
  viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],
321
- template: "@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() ?? translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n",
321
+ template: "@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() || translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() || translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() || translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() || translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n",
322
322
  styles: [":host{display:contents}.tx-cookie-notice__panel{position:fixed;display:flex;align-items:flex-start;box-sizing:border-box}.tx-cookie-notice__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-cookie-notice__body{display:flex;flex:1;flex-direction:column;min-width:0}.tx-cookie-notice__title,.tx-cookie-notice__text{margin:0}.tx-cookie-notice__actions{display:flex;align-items:center;justify-content:flex-end}.tx-cookie-notice__link{text-decoration:none;text-underline-offset:2px}.tx-cookie-notice__link:hover{text-decoration:underline}:host([data-styled]) .tx-cookie-notice__panel{z-index:var(--tx-cookie-notice-z-index);right:var(--tx-cookie-notice-inset);bottom:calc(var(--tx-cookie-notice-inset) + var(--tx-bottom-overlay-offset, 0px));left:var(--tx-cookie-notice-inset);gap:var(--tx-cookie-notice-gap);padding:var(--tx-cookie-notice-padding);border-radius:var(--tx-cookie-notice-border-radius);background:var(--tx-cookie-notice-background);box-shadow:0 0 0 1px var(--tx-cookie-notice-ring-color),var(--tx-cookie-notice-shadow);font-family:var(--tx-font-family);-webkit-backdrop-filter:var(--tx-cookie-notice-backdrop-filter);backdrop-filter:var(--tx-cookie-notice-backdrop-filter);transition:bottom var(--tx-cookie-notice-motion-enter-duration) var(--tx-cookie-notice-motion-enter-easing)}:host([data-styled]) .tx-cookie-notice__icon{width:var(--tx-cookie-notice-icon-size);height:var(--tx-cookie-notice-icon-size);border-radius:50%;background:var(--tx-cookie-notice-icon-background);color:var(--tx-cookie-notice-icon-color);font-size:var(--tx-cookie-notice-icon-font-size)}:host([data-styled]) .tx-cookie-notice__body{gap:var(--tx-cookie-notice-body-gap)}:host([data-styled]) .tx-cookie-notice__title{color:var(--tx-cookie-notice-title-color);font-size:var(--tx-cookie-notice-title-font-size);font-weight:var(--tx-cookie-notice-title-font-weight)}:host([data-styled]) .tx-cookie-notice__text{color:var(--tx-cookie-notice-text-color);font-size:var(--tx-cookie-notice-text-font-size);line-height:var(--tx-cookie-notice-text-line-height)}:host([data-styled]) .tx-cookie-notice__actions{gap:var(--tx-cookie-notice-actions-gap);margin-top:var(--tx-cookie-notice-actions-margin-top)}:host([data-styled]) .tx-cookie-notice__link{border-radius:2px;color:var(--tx-cookie-notice-link-color);font-size:var(--tx-cookie-notice-link-font-size);font-weight:var(--tx-cookie-notice-link-font-weight)}:host([data-styled]) .tx-cookie-notice__link:focus-visible{outline:none;box-shadow:var(--tx-cookie-notice-link-focus-ring-shadow)}:host([data-styled]) .tx-cookie-notice__panel--enter{animation:tx-cookie-notice-in var(--tx-cookie-notice-motion-enter-duration) var(--tx-cookie-notice-motion-enter-easing) var(--tx-cookie-notice-motion-enter-delay) both}:host([data-styled]) .tx-cookie-notice__panel--leave{animation:tx-cookie-notice-out var(--tx-cookie-notice-motion-leave-duration) ease-in forwards}@media(width>=640px){:host([data-styled]) .tx-cookie-notice__panel{right:auto;bottom:calc(var(--tx-cookie-notice-wide-inset) + var(--tx-bottom-overlay-offset, 0px));left:var(--tx-cookie-notice-wide-inset);width:var(--tx-cookie-notice-wide-width)}}@keyframes tx-cookie-notice-in{0%{opacity:0;transform:translateY(16px) scale(.98)}}@keyframes tx-cookie-notice-out{to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-cookie-notice__panel--enter,:host([data-styled]) .tx-cookie-notice__panel--leave{animation-duration:1ms;animation-delay:0s}:host([data-styled]) .tx-cookie-notice__panel{transition:none}}\n"]
323
323
  }]
324
324
  }],
@@ -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, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } 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 '[attr.title]': '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 autoShow = input(true, { transform: booleanAttribute });\n readonly preview = input(false, { transform: booleanAttribute });\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 private readonly rendered = signal(false);\n\n constructor() {\n afterNextRender(() => this.rendered.set(true));\n effect(() => {\n if (!this.rendered()) {\n return;\n }\n const preview = this.preview();\n untracked(() => this.visible.set(preview || (this.autoShow() && !this.readDismissed())));\n });\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n if (!this.preview()) {\n this.writeDismissed();\n }\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;AAiBpB,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CACxB,SAAS,OAAO,gBAAgB,EAAE,UAAU,KAAI,CAAE,IAAI,OAAO,MAAM,IAAI;CAEjF,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CA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A;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAM,UAAA;IAAA,QAAA,CAAA,MAAA;GAAA;EAAA;EAAA,eAWvB,CAAC,sBAAsB,2BAA2B,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAExD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAf1B,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;IACtB,gBAAgB;GACjB;GAAA,eACc,CAAC,sBAAsB,2BAA2B,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,++GAAA;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, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } 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 '[attr.title]': '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 | null | undefined>(undefined);\n readonly text = input<string | null | 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 | null | undefined>(undefined);\n readonly acceptLabel = input<string | null | undefined>(undefined);\n readonly label = input<string | null | 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 autoShow = input(true, { transform: booleanAttribute });\n readonly preview = input(false, { transform: booleanAttribute });\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 private readonly rendered = signal(false);\n\n constructor() {\n afterNextRender(() => this.rendered.set(true));\n effect(() => {\n if (!this.rendered()) {\n return;\n }\n const preview = this.preview();\n untracked(() => this.visible.set(preview || (this.autoShow() && !this.readDismissed())));\n });\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n if (!this.preview()) {\n this.writeDismissed();\n }\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;AAiBpB,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CACxB,SAAS,OAAO,gBAAgB,EAAE,UAAU,KAAI,CAAE,IAAI,OAAO,MAAM,IAAI;CAEjF,QAAQ,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;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