@tectra-ng/blocks 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ var TxActionTile = class TxActionTile {
36
36
  }
37
37
  static ɵfac = i0.ɵɵngDeclareFactory({
38
38
  minVersion: "12.0.0",
39
- version: "22.2.3",
39
+ version: "22.2.5",
40
40
  ngImport: i0,
41
41
  type: TxActionTile,
42
42
  deps: [],
@@ -44,7 +44,7 @@ var TxActionTile = class TxActionTile {
44
44
  });
45
45
  static ɵcmp = i0.ɵɵngDeclareComponent({
46
46
  minVersion: "17.0.0",
47
- version: "22.2.3",
47
+ version: "22.2.5",
48
48
  type: TxActionTile,
49
49
  isStandalone: true,
50
50
  selector: "tx-action-tile",
@@ -164,7 +164,7 @@ var TxActionTile = class TxActionTile {
164
164
  };
165
165
  i0.ɵɵngDeclareClassMetadata({
166
166
  minVersion: "12.0.0",
167
- version: "22.2.3",
167
+ version: "22.2.5",
168
168
  ngImport: i0,
169
169
  type: TxActionTile,
170
170
  decorators: [{
@@ -67,7 +67,7 @@ var TxActionsMenu = class TxActionsMenu {
67
67
  }
68
68
  static ɵfac = i0.ɵɵngDeclareFactory({
69
69
  minVersion: "12.0.0",
70
- version: "22.2.3",
70
+ version: "22.2.5",
71
71
  ngImport: i0,
72
72
  type: TxActionsMenu,
73
73
  deps: [],
@@ -75,7 +75,7 @@ var TxActionsMenu = class TxActionsMenu {
75
75
  });
76
76
  static ɵcmp = i0.ɵɵngDeclareComponent({
77
77
  minVersion: "17.0.0",
78
- version: "22.2.3",
78
+ version: "22.2.5",
79
79
  type: TxActionsMenu,
80
80
  isStandalone: true,
81
81
  selector: "tx-actions-menu",
@@ -270,7 +270,7 @@ var TxActionsMenu = class TxActionsMenu {
270
270
  };
271
271
  i0.ɵɵngDeclareClassMetadata({
272
272
  minVersion: "12.0.0",
273
- version: "22.2.3",
273
+ version: "22.2.5",
274
274
  ngImport: i0,
275
275
  type: TxActionsMenu,
276
276
  decorators: [{
@@ -28,7 +28,7 @@ var TxAppFooter = class TxAppFooter {
28
28
  }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
29
29
  static ɵfac = i0.ɵɵngDeclareFactory({
30
30
  minVersion: "12.0.0",
31
- version: "22.2.3",
31
+ version: "22.2.5",
32
32
  ngImport: i0,
33
33
  type: TxAppFooter,
34
34
  deps: [],
@@ -36,7 +36,7 @@ var TxAppFooter = class TxAppFooter {
36
36
  });
37
37
  static ɵcmp = i0.ɵɵngDeclareComponent({
38
38
  minVersion: "17.0.0",
39
- version: "22.2.3",
39
+ version: "22.2.5",
40
40
  type: TxAppFooter,
41
41
  isStandalone: true,
42
42
  selector: "tx-app-footer",
@@ -159,7 +159,7 @@ var TxAppFooter = class TxAppFooter {
159
159
  };
160
160
  i0.ɵɵngDeclareClassMetadata({
161
161
  minVersion: "12.0.0",
162
- version: "22.2.3",
162
+ version: "22.2.5",
163
163
  ngImport: i0,
164
164
  type: TxAppFooter,
165
165
  decorators: [{
@@ -145,7 +145,7 @@ var TxAppLayout = class TxAppLayout {
145
145
  }
146
146
  static ɵfac = i0.ɵɵngDeclareFactory({
147
147
  minVersion: "12.0.0",
148
- version: "22.2.3",
148
+ version: "22.2.5",
149
149
  ngImport: i0,
150
150
  type: TxAppLayout,
151
151
  deps: [],
@@ -153,7 +153,7 @@ var TxAppLayout = class TxAppLayout {
153
153
  });
154
154
  static ɵcmp = i0.ɵɵngDeclareComponent({
155
155
  minVersion: "17.0.0",
156
- version: "22.2.3",
156
+ version: "22.2.5",
157
157
  type: TxAppLayout,
158
158
  isStandalone: true,
159
159
  selector: "tx-app-layout",
@@ -377,7 +377,7 @@ var TxAppLayout = class TxAppLayout {
377
377
  };
378
378
  i0.ɵɵngDeclareClassMetadata({
379
379
  minVersion: "12.0.0",
380
- version: "22.2.3",
380
+ version: "22.2.5",
381
381
  ngImport: i0,
382
382
  type: TxAppLayout,
383
383
  decorators: [{
@@ -45,7 +45,7 @@ var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
45
45
  }
46
46
  static ɵfac = i0.ɵɵngDeclareFactory({
47
47
  minVersion: "12.0.0",
48
- version: "22.2.3",
48
+ version: "22.2.5",
49
49
  ngImport: i0,
50
50
  type: TxCommandPaletteFilterPipe,
51
51
  deps: [],
@@ -53,7 +53,7 @@ var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
53
53
  });
54
54
  static ɵpipe = i0.ɵɵngDeclarePipe({
55
55
  minVersion: "14.0.0",
56
- version: "22.2.3",
56
+ version: "22.2.5",
57
57
  ngImport: i0,
58
58
  type: TxCommandPaletteFilterPipe,
59
59
  isStandalone: true,
@@ -62,7 +62,7 @@ var TxCommandPaletteFilterPipe = class TxCommandPaletteFilterPipe {
62
62
  };
63
63
  i0.ɵɵngDeclareClassMetadata({
64
64
  minVersion: "12.0.0",
65
- version: "22.2.3",
65
+ version: "22.2.5",
66
66
  ngImport: i0,
67
67
  type: TxCommandPaletteFilterPipe,
68
68
  decorators: [{
@@ -76,7 +76,7 @@ var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
76
76
  }
77
77
  static ɵfac = i0.ɵɵngDeclareFactory({
78
78
  minVersion: "12.0.0",
79
- version: "22.2.3",
79
+ version: "22.2.5",
80
80
  ngImport: i0,
81
81
  type: TxMenuPaletteItemsPipe,
82
82
  deps: [],
@@ -84,7 +84,7 @@ var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
84
84
  });
85
85
  static ɵpipe = i0.ɵɵngDeclarePipe({
86
86
  minVersion: "14.0.0",
87
- version: "22.2.3",
87
+ version: "22.2.5",
88
88
  ngImport: i0,
89
89
  type: TxMenuPaletteItemsPipe,
90
90
  isStandalone: true,
@@ -93,7 +93,7 @@ var TxMenuPaletteItemsPipe = class TxMenuPaletteItemsPipe {
93
93
  };
94
94
  i0.ɵɵngDeclareClassMetadata({
95
95
  minVersion: "12.0.0",
96
- version: "22.2.3",
96
+ version: "22.2.5",
97
97
  ngImport: i0,
98
98
  type: TxMenuPaletteItemsPipe,
99
99
  decorators: [{
@@ -293,7 +293,7 @@ var TxCommandPalette = class TxCommandPalette {
293
293
  }
294
294
  static ɵfac = i0.ɵɵngDeclareFactory({
295
295
  minVersion: "12.0.0",
296
- version: "22.2.3",
296
+ version: "22.2.5",
297
297
  ngImport: i0,
298
298
  type: TxCommandPalette,
299
299
  deps: [],
@@ -301,7 +301,7 @@ var TxCommandPalette = class TxCommandPalette {
301
301
  });
302
302
  static ɵcmp = i0.ɵɵngDeclareComponent({
303
303
  minVersion: "17.0.0",
304
- version: "22.2.3",
304
+ version: "22.2.5",
305
305
  type: TxCommandPalette,
306
306
  isStandalone: true,
307
307
  selector: "tx-command-palette",
@@ -473,7 +473,7 @@ var TxCommandPalette = class TxCommandPalette {
473
473
  };
474
474
  i0.ɵɵngDeclareClassMetadata({
475
475
  minVersion: "12.0.0",
476
- version: "22.2.3",
476
+ version: "22.2.5",
477
477
  ngImport: i0,
478
478
  type: TxCommandPalette,
479
479
  decorators: [{
@@ -91,7 +91,7 @@ var TxConfetti = class TxConfetti {
91
91
  }
92
92
  static ɵfac = i0.ɵɵngDeclareFactory({
93
93
  minVersion: "12.0.0",
94
- version: "22.2.3",
94
+ version: "22.2.5",
95
95
  ngImport: i0,
96
96
  type: TxConfetti,
97
97
  deps: [],
@@ -99,7 +99,7 @@ var TxConfetti = class TxConfetti {
99
99
  });
100
100
  static ɵcmp = i0.ɵɵngDeclareComponent({
101
101
  minVersion: "17.0.0",
102
- version: "22.2.3",
102
+ version: "22.2.5",
103
103
  type: TxConfetti,
104
104
  isStandalone: true,
105
105
  selector: "tx-confetti",
@@ -181,7 +181,7 @@ var TxConfetti = class TxConfetti {
181
181
  };
182
182
  i0.ɵɵngDeclareClassMetadata({
183
183
  minVersion: "12.0.0",
184
- version: "22.2.3",
184
+ version: "22.2.5",
185
185
  ngImport: i0,
186
186
  type: TxConfetti,
187
187
  decorators: [{
@@ -46,7 +46,7 @@ var TxConsoleDocument = class TxConsoleDocument {
46
46
  }
47
47
  static ɵfac = i0.ɵɵngDeclareFactory({
48
48
  minVersion: "12.0.0",
49
- version: "22.2.3",
49
+ version: "22.2.5",
50
50
  ngImport: i0,
51
51
  type: TxConsoleDocument,
52
52
  deps: [],
@@ -54,14 +54,14 @@ var TxConsoleDocument = class TxConsoleDocument {
54
54
  });
55
55
  static ɵprov = i0.ɵɵngDeclareInjectable({
56
56
  minVersion: "12.0.0",
57
- version: "22.2.3",
57
+ version: "22.2.5",
58
58
  ngImport: i0,
59
59
  type: TxConsoleDocument
60
60
  });
61
61
  };
62
62
  i0.ɵɵngDeclareClassMetadata({
63
63
  minVersion: "12.0.0",
64
- version: "22.2.3",
64
+ version: "22.2.5",
65
65
  ngImport: i0,
66
66
  type: TxConsoleDocument,
67
67
  decorators: [{ type: Injectable }]
@@ -76,7 +76,7 @@ var TxConsoleRail = class TxConsoleRail {
76
76
  exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;
77
77
  static ɵfac = i0.ɵɵngDeclareFactory({
78
78
  minVersion: "12.0.0",
79
- version: "22.2.3",
79
+ version: "22.2.5",
80
80
  ngImport: i0,
81
81
  type: TxConsoleRail,
82
82
  deps: [],
@@ -84,7 +84,7 @@ var TxConsoleRail = class TxConsoleRail {
84
84
  });
85
85
  static ɵcmp = i0.ɵɵngDeclareComponent({
86
86
  minVersion: "17.0.0",
87
- version: "22.2.3",
87
+ version: "22.2.5",
88
88
  type: TxConsoleRail,
89
89
  isStandalone: true,
90
90
  selector: "tx-console-rail",
@@ -205,7 +205,7 @@ var TxConsoleRail = class TxConsoleRail {
205
205
  };
206
206
  i0.ɵɵngDeclareClassMetadata({
207
207
  minVersion: "12.0.0",
208
- version: "22.2.3",
208
+ version: "22.2.5",
209
209
  ngImport: i0,
210
210
  type: TxConsoleRail,
211
211
  decorators: [{
@@ -374,7 +374,7 @@ var TxConsoleLayout = class TxConsoleLayout {
374
374
  }
375
375
  static ɵfac = i0.ɵɵngDeclareFactory({
376
376
  minVersion: "12.0.0",
377
- version: "22.2.3",
377
+ version: "22.2.5",
378
378
  ngImport: i0,
379
379
  type: TxConsoleLayout,
380
380
  deps: [],
@@ -382,7 +382,7 @@ var TxConsoleLayout = class TxConsoleLayout {
382
382
  });
383
383
  static ɵcmp = i0.ɵɵngDeclareComponent({
384
384
  minVersion: "17.0.0",
385
- version: "22.2.3",
385
+ version: "22.2.5",
386
386
  type: TxConsoleLayout,
387
387
  isStandalone: true,
388
388
  selector: "tx-console-layout",
@@ -589,7 +589,7 @@ var TxConsoleLayout = class TxConsoleLayout {
589
589
  };
590
590
  i0.ɵɵngDeclareClassMetadata({
591
591
  minVersion: "12.0.0",
592
- version: "22.2.3",
592
+ version: "22.2.5",
593
593
  ngImport: i0,
594
594
  type: TxConsoleLayout,
595
595
  decorators: [{
@@ -802,7 +802,7 @@ var TxConsolePanel = class TxConsolePanel {
802
802
  }
803
803
  static ɵfac = i0.ɵɵngDeclareFactory({
804
804
  minVersion: "12.0.0",
805
- version: "22.2.3",
805
+ version: "22.2.5",
806
806
  ngImport: i0,
807
807
  type: TxConsolePanel,
808
808
  deps: [],
@@ -810,7 +810,7 @@ var TxConsolePanel = class TxConsolePanel {
810
810
  });
811
811
  static ɵcmp = i0.ɵɵngDeclareComponent({
812
812
  minVersion: "17.0.0",
813
- version: "22.2.3",
813
+ version: "22.2.5",
814
814
  type: TxConsolePanel,
815
815
  isStandalone: true,
816
816
  selector: "tx-console-panel",
@@ -943,7 +943,7 @@ var TxConsolePanel = class TxConsolePanel {
943
943
  };
944
944
  i0.ɵɵngDeclareClassMetadata({
945
945
  minVersion: "12.0.0",
946
- version: "22.2.3",
946
+ version: "22.2.5",
947
947
  ngImport: i0,
948
948
  type: TxConsolePanel,
949
949
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-blocks-console-layout.mjs","names":[],"sources":["../../../../packages/blocks/console-layout/src/console-rail-match.ts","../../../../packages/blocks/console-layout/src/console-document.service.ts","../../../../packages/blocks/console-layout/src/console-rail.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.html","../../../../packages/blocks/console-layout/src/console-panel.component.ts"],"sourcesContent":["import { IsActiveMatchOptions } from '@angular/router';\n\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else if (item.url) {\n <a\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n (click)=\"item.command?.()\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </button>\n }\n }\n </nav>\n `,\n styleUrl: './console-rail.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-console-rail', '[attr.data-styled]': '!unstyled() || null' },\n})\nexport class TxConsoleRail {\n readonly items = input.required<readonly TxConsoleRailItem[]>();\n readonly label = input<string | undefined>(undefined);\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { TxAppFooter, TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter, of } from 'rxjs';\nimport { TxConsoleDocument } from './console-document.service';\nimport { TxConsoleLayoutPart, TxConsoleRailItem, TxConsoleResponsive, TxConsoleTranslate } from './console-layout.types';\nimport { TxConsoleRail } from './console-rail.component';\n\n@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n})\nexport class TxConsoleLayout {\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n})\nexport class TxConsolePanel {\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.set(false);\n this.toggleButton()?.nativeElement.focus();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,MAAa,8BAAoD;CAC/D,OAAO;CACP,aAAa;CACb,cAAc;CACd,UAAU;AACX;AAED,MAAa,gCAAsD;CACjE,GAAG;CACH,OAAO;AACR;ACRD,IAAa,oBAAb,MAAa,kBAAiB;CACX,QAAQ,OAAO,KAAK;CACpB,WAAW,OAAO,QAAQ;CAEnC,eAA8B;CAC9B,iBAAgC;CAExC,SAAS,OAAa;EACpB,KAAK,iBAAiB,KAAK,MAAM,SAAQ;EAC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A;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-blocks-console-layout.mjs","names":[],"sources":["../../../../packages/blocks/console-layout/src/console-rail-match.ts","../../../../packages/blocks/console-layout/src/console-document.service.ts","../../../../packages/blocks/console-layout/src/console-rail.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.ts","../../../../packages/blocks/console-layout/src/console-layout.component.html","../../../../packages/blocks/console-layout/src/console-panel.component.ts"],"sourcesContent":["import { IsActiveMatchOptions } from '@angular/router';\n\nexport const TX_CONSOLE_RAIL_EXACT_MATCH: IsActiveMatchOptions = {\n paths: 'exact',\n queryParams: 'ignored',\n matrixParams: 'ignored',\n fragment: 'ignored',\n};\n\nexport const TX_CONSOLE_RAIL_SECTION_MATCH: IsActiveMatchOptions = {\n ...TX_CONSOLE_RAIL_EXACT_MATCH,\n paths: 'subset',\n};\n","import { DOCUMENT, Injectable, OnDestroy, inject } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Injectable()\nexport class TxConsoleDocument implements OnDestroy {\n private readonly title = inject(Title);\n private readonly document = inject(DOCUMENT);\n\n private initialTitle: string | null = null;\n private initialFavicon: string | null = null;\n\n setTitle(title: string): void {\n this.initialTitle ??= this.title.getTitle();\n this.title.setTitle(title);\n }\n\n setFavicon(href: string): void {\n const link = this.faviconLink();\n if (!link) {\n return;\n }\n this.initialFavicon ??= link.getAttribute('href') ?? '';\n link.setAttribute('href', href);\n }\n\n ngOnDestroy(): void {\n if (this.initialTitle !== null) {\n this.title.setTitle(this.initialTitle);\n }\n if (this.initialFavicon !== null) {\n this.faviconLink()?.setAttribute('href', this.initialFavicon);\n }\n }\n\n private faviconLink(): HTMLLinkElement | null {\n return this.document.querySelector<HTMLLinkElement>('link[rel=\"icon\"]');\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxConsoleRailItem } from './console-layout.types';\nimport { TX_CONSOLE_RAIL_EXACT_MATCH } from './console-rail-match';\n\n@Component({\n selector: 'tx-console-rail',\n imports: [RouterLink, RouterLinkActive, TxIcon],\n template: `\n <nav class=\"tx-console-rail__nav\" [attr.aria-label]=\"label() ?? null\">\n @for (item of items(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a\n class=\"tx-console-rail__item\"\n routerLinkActive=\"tx-console-rail__item--active\"\n ariaCurrentWhenActive=\"page\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActiveOptions]=\"item.activeOptions ?? exactMatch\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else if (item.url) {\n <a\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n [attr.href]=\"item.url\"\n [attr.target]=\"item.target ?? null\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"tx-console-rail__item\"\n [class.tx-console-rail__item--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n (click)=\"item.command?.()\"\n >\n <tx-icon class=\"tx-console-rail__icon\" aria-hidden=\"true\" [name]=\"item.icon\" />\n <span class=\"tx-console-rail__label\">{{ item.label }}</span>\n </button>\n }\n }\n </nav>\n `,\n styleUrl: './console-rail.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-console-rail', '[attr.data-styled]': '!unstyled() || null' },\n})\nexport class TxConsoleRail {\n readonly items = input.required<readonly TxConsoleRailItem[]>();\n readonly label = input<string | undefined>(undefined);\n readonly unstyled = input<boolean, unknown>(false, { transform: booleanAttribute });\n protected readonly exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRouteSnapshot, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { TxAppFooter, TxAppFooterLink } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter, of } from 'rxjs';\nimport { TxConsoleDocument } from './console-document.service';\nimport { TxConsoleLayoutPart, TxConsoleRailItem, TxConsoleResponsive, TxConsoleTranslate } from './console-layout.types';\nimport { TxConsoleRail } from './console-rail.component';\n\n@Component({\n selector: 'tx-console-layout',\n imports: [NgTemplateOutlet, RouterLink, TxConsoleRail, TxAppFooter],\n templateUrl: './console-layout.component.html',\n styleUrl: './console-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TxConsoleDocument],\n host: {\n class: 'tx-console-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n})\nexport class TxConsoleLayout {\n private readonly router = inject(Router, { optional: true });\n private readonly consoleDocument = inject(TxConsoleDocument);\n\n readonly title = input.required<string>();\n readonly titleMuted = input<string | undefined>(undefined);\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[] | undefined>(undefined);\n readonly railItems = input<readonly TxConsoleRailItem[]>([]);\n readonly railLabel = input<string | undefined>(undefined);\n readonly crumbKey = input<string>('crumb');\n readonly crumbs = input<readonly string[] | undefined>(undefined);\n readonly footerName = input<string | undefined>(undefined);\n readonly footerLinks = input<readonly TxAppFooterLink[]>([]);\n readonly documentTitle = input<string | undefined>(undefined);\n readonly favicon = input<string | undefined>(undefined);\n readonly translate = input<TxConsoleTranslate | undefined>(undefined);\n readonly responsive = input<TxConsoleResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsoleLayoutPart, TxConsoleLayout> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('consoleLayout', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-console-layout'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n\n private readonly panels = signal(0);\n readonly hasPanel = computed(() => this.panels() > 0);\n\n private readonly navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), {\n initialValue: null,\n });\n\n readonly visibleCrumbs = computed(() => {\n const own = this.crumbs();\n if (own) {\n return own.map((crumb) => this.text(crumb));\n }\n this.navigationEnd();\n return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));\n });\n\n protected readonly visibleRailItems = computed(() => this.railItems().map((item) => ({ ...item, label: this.text(item.label) })));\n readonly visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({ ...link, label: this.text(link.label) })));\n protected readonly railName = computed(() => this.railLabel() ?? this.translations().consoleSections);\n readonly pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(' · '));\n\n constructor() {\n effect(() => {\n if (this.documentTitle()) {\n this.consoleDocument.setTitle(this.pageTitle());\n }\n });\n effect(() => {\n const favicon = this.favicon();\n if (favicon) {\n this.consoleDocument.setFavicon(favicon);\n }\n });\n }\n\n registerPanel(): () => void {\n this.panels.update((count) => count + 1);\n return () => this.panels.update((count) => count - 1);\n }\n\n private text(key: string): string {\n return this.translate()?.(key) ?? key;\n }\n\n private routeCrumbs(key: string): string[] {\n const crumbs: string[] = [];\n let current: ActivatedRouteSnapshot | null = this.router?.routerState.snapshot.root ?? null;\n while (current) {\n const crumb: unknown = current.routeConfig?.data?.[key];\n if (typeof crumb === 'string') {\n crumbs.push(crumb);\n }\n current = current.firstChild;\n }\n return crumbs;\n }\n}\n","<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject, input, signal, viewChild } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { TxAppFooter } from '@tectra-ng/blocks/app-footer';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraConsoleLayoutTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { filter } from 'rxjs';\nimport { TxConsoleLayout } from './console-layout.component';\nimport { TxConsolePanelPart } from './console-layout.types';\n\n@Component({\n selector: 'tx-console-panel',\n imports: [TxAppFooter, TxIcon],\n template: `\n <aside\n class=\"tx-console-panel__aside\"\n [attr.aria-label]=\"label() ?? null\"\n [class]=\"passThrough().aside?.class\"\n [style]=\"passThrough().aside?.style\"\n >\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-console-panel__toggle\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-nav'\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"expanded.set(!expanded())\"\n >\n <tx-icon class=\"tx-console-panel__toggle-icon\" name=\"bars\" aria-hidden=\"true\" />\n <span class=\"tx-console-panel__toggle-label\">{{ label() ?? translations().menu }}</span>\n <tx-icon class=\"tx-console-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n <div class=\"tx-console-panel__collapse\" [class.tx-console-panel__collapse--open]=\"expanded()\">\n <div\n class=\"tx-console-panel__nav\"\n [id]=\"id + '-nav'\"\n [class]=\"passThrough().nav?.class\"\n [style]=\"passThrough().nav?.style\"\n >\n <div class=\"tx-console-panel__nav-inner\">\n <ng-content select=\"[txConsolePanelAside]\" />\n </div>\n </div>\n </div>\n </aside>\n <div class=\"tx-console-panel__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <div class=\"tx-console-panel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </div>\n @if (footerName()) {\n <tx-app-footer variant=\"console\" [name]=\"footerName()\" [links]=\"footerLinks()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n `,\n styleUrl: './console-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-console-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '(click)': 'closeOnLink($event)',\n '(keydown.escape)': 'closeFromKeyboard($event)',\n },\n})\nexport class TxConsolePanel {\n private readonly layout = inject(TxConsoleLayout, { optional: true });\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n\n readonly label = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraConsoleLayoutTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxConsolePanelPart, TxConsolePanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly expanded = signal(false);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-console-panel');\n readonly passThrough = injectPassThrough('consolePanel', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n protected readonly footerName = computed(() => this.layout?.footerName() ?? '');\n protected readonly footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? []);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-console-layout'), ...this.passThrough().root?.style }));\n\n constructor() {\n const unregister = this.layout?.registerPanel();\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n inject(Router, { optional: true })\n ?.events.pipe(\n filter((event) => event instanceof NavigationEnd),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.expanded.set(false));\n }\n\n protected closeOnLink(event: Event): void {\n const picked = (event.target as HTMLElement | null)?.closest(\n 'a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]',\n );\n if (picked?.closest('.tx-console-panel__nav')) {\n this.expanded.set(false);\n }\n }\n\n protected closeFromKeyboard(event: Event): void {\n if (this.expanded() && (event.target as HTMLElement | null)?.closest('.tx-console-panel__aside')) {\n this.expanded.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AA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -66,7 +66,7 @@ var TxCookieNotice = class TxCookieNotice {
66
66
  }
67
67
  static ɵfac = i0.ɵɵngDeclareFactory({
68
68
  minVersion: "12.0.0",
69
- version: "22.2.3",
69
+ version: "22.2.5",
70
70
  ngImport: i0,
71
71
  type: TxCookieNotice,
72
72
  deps: [],
@@ -74,7 +74,7 @@ var TxCookieNotice = class TxCookieNotice {
74
74
  });
75
75
  static ɵcmp = i0.ɵɵngDeclareComponent({
76
76
  minVersion: "17.0.0",
77
- version: "22.2.3",
77
+ version: "22.2.5",
78
78
  type: TxCookieNotice,
79
79
  isStandalone: true,
80
80
  selector: "tx-cookie-notice",
@@ -260,7 +260,7 @@ var TxCookieNotice = class TxCookieNotice {
260
260
  };
261
261
  i0.ɵɵngDeclareClassMetadata({
262
262
  minVersion: "12.0.0",
263
- version: "22.2.3",
263
+ version: "22.2.5",
264
264
  ngImport: i0,
265
265
  type: TxCookieNotice,
266
266
  decorators: [{
@@ -26,7 +26,7 @@ var TxEmptyState = class TxEmptyState {
26
26
  }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
27
27
  static ɵfac = i0.ɵɵngDeclareFactory({
28
28
  minVersion: "12.0.0",
29
- version: "22.2.3",
29
+ version: "22.2.5",
30
30
  ngImport: i0,
31
31
  type: TxEmptyState,
32
32
  deps: [],
@@ -34,7 +34,7 @@ var TxEmptyState = class TxEmptyState {
34
34
  });
35
35
  static ɵcmp = i0.ɵɵngDeclareComponent({
36
36
  minVersion: "17.0.0",
37
- version: "22.2.3",
37
+ version: "22.2.5",
38
38
  type: TxEmptyState,
39
39
  isStandalone: true,
40
40
  selector: "tx-empty-state",
@@ -152,7 +152,7 @@ var TxEmptyState = class TxEmptyState {
152
152
  };
153
153
  i0.ɵɵngDeclareClassMetadata({
154
154
  minVersion: "12.0.0",
155
- version: "22.2.3",
155
+ version: "22.2.5",
156
156
  ngImport: i0,
157
157
  type: TxEmptyState,
158
158
  decorators: [{
@@ -24,7 +24,7 @@ var TxFilterField = class TxFilterField {
24
24
  order = computed(() => this.panel?.fieldOrder(this.txFilterField()) ?? null, ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
25
25
  static ɵfac = i0.ɵɵngDeclareFactory({
26
26
  minVersion: "12.0.0",
27
- version: "22.2.3",
27
+ version: "22.2.5",
28
28
  ngImport: i0,
29
29
  type: TxFilterField,
30
30
  deps: [],
@@ -32,7 +32,7 @@ var TxFilterField = class TxFilterField {
32
32
  });
33
33
  static ɵdir = i0.ɵɵngDeclareDirective({
34
34
  minVersion: "17.1.0",
35
- version: "22.2.3",
35
+ version: "22.2.5",
36
36
  type: TxFilterField,
37
37
  isStandalone: true,
38
38
  selector: "[txFilterField]",
@@ -76,7 +76,7 @@ var TxFilterField = class TxFilterField {
76
76
  };
77
77
  i0.ɵɵngDeclareClassMetadata({
78
78
  minVersion: "12.0.0",
79
- version: "22.2.3",
79
+ version: "22.2.5",
80
80
  ngImport: i0,
81
81
  type: TxFilterField,
82
82
  decorators: [{
@@ -129,7 +129,7 @@ var TxFiltersReset = class TxFiltersReset {
129
129
  }
130
130
  static ɵfac = i0.ɵɵngDeclareFactory({
131
131
  minVersion: "12.0.0",
132
- version: "22.2.3",
132
+ version: "22.2.5",
133
133
  ngImport: i0,
134
134
  type: TxFiltersReset,
135
135
  deps: [],
@@ -137,7 +137,7 @@ var TxFiltersReset = class TxFiltersReset {
137
137
  });
138
138
  static ɵdir = i0.ɵɵngDeclareDirective({
139
139
  minVersion: "14.0.0",
140
- version: "22.2.3",
140
+ version: "22.2.5",
141
141
  type: TxFiltersReset,
142
142
  isStandalone: true,
143
143
  selector: "[txFiltersReset]",
@@ -147,7 +147,7 @@ var TxFiltersReset = class TxFiltersReset {
147
147
  };
148
148
  i0.ɵɵngDeclareClassMetadata({
149
149
  minVersion: "12.0.0",
150
- version: "22.2.3",
150
+ version: "22.2.5",
151
151
  ngImport: i0,
152
152
  type: TxFiltersReset,
153
153
  decorators: [{
@@ -172,7 +172,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
172
172
  }
173
173
  static ɵfac = i0.ɵɵngDeclareFactory({
174
174
  minVersion: "12.0.0",
175
- version: "22.2.3",
175
+ version: "22.2.5",
176
176
  ngImport: i0,
177
177
  type: TxHasFilterValuePipe,
178
178
  deps: [],
@@ -180,7 +180,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
180
180
  });
181
181
  static ɵpipe = i0.ɵɵngDeclarePipe({
182
182
  minVersion: "14.0.0",
183
- version: "22.2.3",
183
+ version: "22.2.5",
184
184
  ngImport: i0,
185
185
  type: TxHasFilterValuePipe,
186
186
  isStandalone: true,
@@ -189,7 +189,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
189
189
  };
190
190
  i0.ɵɵngDeclareClassMetadata({
191
191
  minVersion: "12.0.0",
192
- version: "22.2.3",
192
+ version: "22.2.5",
193
193
  ngImport: i0,
194
194
  type: TxHasFilterValuePipe,
195
195
  decorators: [{
@@ -459,7 +459,7 @@ var TxFiltersPanel = class TxFiltersPanel {
459
459
  }
460
460
  static ɵfac = i0.ɵɵngDeclareFactory({
461
461
  minVersion: "12.0.0",
462
- version: "22.2.3",
462
+ version: "22.2.5",
463
463
  ngImport: i0,
464
464
  type: TxFiltersPanel,
465
465
  deps: [],
@@ -467,7 +467,7 @@ var TxFiltersPanel = class TxFiltersPanel {
467
467
  });
468
468
  static ɵcmp = i0.ɵɵngDeclareComponent({
469
469
  minVersion: "17.0.0",
470
- version: "22.2.3",
470
+ version: "22.2.5",
471
471
  type: TxFiltersPanel,
472
472
  isStandalone: true,
473
473
  selector: "tx-filters-panel",
@@ -785,7 +785,7 @@ var TxFiltersPanel = class TxFiltersPanel {
785
785
  };
786
786
  i0.ɵɵngDeclareClassMetadata({
787
787
  minVersion: "12.0.0",
788
- version: "22.2.3",
788
+ version: "22.2.5",
789
789
  ngImport: i0,
790
790
  type: TxFiltersPanel,
791
791
  decorators: [{
@@ -61,7 +61,7 @@ var TxHoverEffect = class TxHoverEffect {
61
61
  }
62
62
  static ɵfac = i0.ɵɵngDeclareFactory({
63
63
  minVersion: "12.0.0",
64
- version: "22.2.3",
64
+ version: "22.2.5",
65
65
  ngImport: i0,
66
66
  type: TxHoverEffect,
67
67
  deps: [],
@@ -69,7 +69,7 @@ var TxHoverEffect = class TxHoverEffect {
69
69
  });
70
70
  static ɵcmp = i0.ɵɵngDeclareComponent({
71
71
  minVersion: "17.2.0",
72
- version: "22.2.3",
72
+ version: "22.2.5",
73
73
  type: TxHoverEffect,
74
74
  isStandalone: true,
75
75
  selector: "tx-hover-effect",
@@ -157,7 +157,7 @@ var TxHoverEffect = class TxHoverEffect {
157
157
  };
158
158
  i0.ɵɵngDeclareClassMetadata({
159
159
  minVersion: "12.0.0",
160
- version: "22.2.3",
160
+ version: "22.2.5",
161
161
  ngImport: i0,
162
162
  type: TxHoverEffect,
163
163
  decorators: [{