@tectra-ng/blocks 0.0.0-stage → 0.1.7

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 (101) hide show
  1. package/README.md +16 -2
  2. package/action-tile/README.md +33 -0
  3. package/actions-menu/README.md +42 -0
  4. package/app-footer/README.md +30 -0
  5. package/app-layout/README.md +51 -0
  6. package/command-palette/README.md +63 -0
  7. package/console-layout/README.md +70 -0
  8. package/cookie-notice/README.md +45 -0
  9. package/empty-state/README.md +35 -0
  10. package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
  11. package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
  13. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
  14. package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
  15. package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
  16. package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
  17. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
  18. package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
  19. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
  20. package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
  21. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
  23. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
  25. package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
  27. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
  29. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
  31. package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
  33. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
  35. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
  37. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
  39. package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
  41. package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
  43. package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
  45. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
  47. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-blocks.mjs +4 -0
  49. package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
  50. package/filters-panel/README.md +68 -0
  51. package/kanban/README.md +55 -0
  52. package/network-status/README.md +33 -0
  53. package/package.json +137 -3
  54. package/page-header/README.md +32 -0
  55. package/pinned-tabs/README.md +42 -0
  56. package/public-header/README.md +44 -0
  57. package/qr-code/README.md +52 -0
  58. package/switch-language/README.md +33 -0
  59. package/switch-theme/README.md +32 -0
  60. package/topbar-preferences/README.md +35 -0
  61. package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
  62. package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
  63. package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
  64. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
  65. package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
  66. package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
  67. package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
  68. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
  69. package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
  70. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
  71. package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
  72. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
  73. package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
  74. package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
  75. package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
  76. package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
  77. package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
  78. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
  79. package/types/tectra-ng-blocks-kanban.d.ts +260 -0
  80. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
  81. package/types/tectra-ng-blocks-network-status.d.ts +108 -0
  82. package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
  83. package/types/tectra-ng-blocks-page-header.d.ts +86 -0
  84. package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
  85. package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
  86. package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
  87. package/types/tectra-ng-blocks-public-header.d.ts +142 -0
  88. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
  89. package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
  90. package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
  91. package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
  92. package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
  93. package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
  94. package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
  95. package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
  96. package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
  97. package/types/tectra-ng-blocks-wizard.d.ts +682 -0
  98. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
  99. package/types/tectra-ng-blocks.d.ts +2 -0
  100. package/types/tectra-ng-blocks.d.ts.map +1 -0
  101. package/wizard/README.md +77 -0
@@ -0,0 +1,1060 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Injectable, booleanAttribute, computed, effect, inject, input, signal, viewChild } from "@angular/core";
3
+ import { Title } from "@angular/platform-browser";
4
+ import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
5
+ import { TxIcon } from "@tectra-ng/icons";
6
+ import { takeUntilDestroyed, toSignal } from "@angular/core/rxjs-interop";
7
+ import { NgTemplateOutlet } from "@angular/common";
8
+ import { TxAppFooter } from "@tectra-ng/blocks/app-footer";
9
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
10
+ import { injectTranslations } from "@tectra-ng/core/i18n";
11
+ import { optionalBoolean } from "@tectra-ng/core/utils";
12
+ import { toStyleObject } from "@tectra-ng/themes";
13
+ import { filter, of } from "rxjs";
14
+ import { uniqueId } from "@tectra-ng/core/a11y";
15
+ const TX_CONSOLE_RAIL_EXACT_MATCH = {
16
+ paths: "exact",
17
+ queryParams: "ignored",
18
+ matrixParams: "ignored",
19
+ fragment: "ignored"
20
+ };
21
+ const TX_CONSOLE_RAIL_SECTION_MATCH = {
22
+ ...TX_CONSOLE_RAIL_EXACT_MATCH,
23
+ paths: "subset"
24
+ };
25
+ var TxConsoleDocument = class TxConsoleDocument {
26
+ title = inject(Title);
27
+ document = inject(DOCUMENT);
28
+ initialTitle = null;
29
+ initialFavicon = null;
30
+ setTitle(title) {
31
+ this.initialTitle ??= this.title.getTitle();
32
+ this.title.setTitle(title);
33
+ }
34
+ setFavicon(href) {
35
+ const link = this.faviconLink();
36
+ if (!link) return;
37
+ this.initialFavicon ??= link.getAttribute("href") ?? "";
38
+ link.setAttribute("href", href);
39
+ }
40
+ ngOnDestroy() {
41
+ if (this.initialTitle !== null) this.title.setTitle(this.initialTitle);
42
+ if (this.initialFavicon !== null) this.faviconLink()?.setAttribute("href", this.initialFavicon);
43
+ }
44
+ faviconLink() {
45
+ return this.document.querySelector("link[rel=\"icon\"]");
46
+ }
47
+ static ɵfac = i0.ɵɵngDeclareFactory({
48
+ minVersion: "12.0.0",
49
+ version: "22.2.3",
50
+ ngImport: i0,
51
+ type: TxConsoleDocument,
52
+ deps: [],
53
+ target: i0.ɵɵFactoryTarget.Injectable
54
+ });
55
+ static ɵprov = i0.ɵɵngDeclareInjectable({
56
+ minVersion: "12.0.0",
57
+ version: "22.2.3",
58
+ ngImport: i0,
59
+ type: TxConsoleDocument
60
+ });
61
+ };
62
+ i0.ɵɵngDeclareClassMetadata({
63
+ minVersion: "12.0.0",
64
+ version: "22.2.3",
65
+ ngImport: i0,
66
+ type: TxConsoleDocument,
67
+ decorators: [{ type: Injectable }]
68
+ });
69
+ var TxConsoleRail = class TxConsoleRail {
70
+ items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
71
+ label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
72
+ unstyled = input(false, {
73
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
74
+ transform: booleanAttribute
75
+ });
76
+ exactMatch = TX_CONSOLE_RAIL_EXACT_MATCH;
77
+ static ɵfac = i0.ɵɵngDeclareFactory({
78
+ minVersion: "12.0.0",
79
+ version: "22.2.3",
80
+ ngImport: i0,
81
+ type: TxConsoleRail,
82
+ deps: [],
83
+ target: i0.ɵɵFactoryTarget.Component
84
+ });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({
86
+ minVersion: "17.0.0",
87
+ version: "22.2.3",
88
+ type: TxConsoleRail,
89
+ isStandalone: true,
90
+ selector: "tx-console-rail",
91
+ inputs: {
92
+ items: {
93
+ classPropertyName: "items",
94
+ publicName: "items",
95
+ isSignal: true,
96
+ isRequired: true,
97
+ transformFunction: null
98
+ },
99
+ label: {
100
+ classPropertyName: "label",
101
+ publicName: "label",
102
+ isSignal: true,
103
+ isRequired: false,
104
+ transformFunction: null
105
+ },
106
+ unstyled: {
107
+ classPropertyName: "unstyled",
108
+ publicName: "unstyled",
109
+ isSignal: true,
110
+ isRequired: false,
111
+ transformFunction: null
112
+ }
113
+ },
114
+ host: {
115
+ properties: { "attr.data-styled": "!unstyled() || null" },
116
+ classAttribute: "tx-console-rail"
117
+ },
118
+ ngImport: i0,
119
+ template: `
120
+ <nav class="tx-console-rail__nav" [attr.aria-label]="label() ?? null">
121
+ @for (item of items(); track item.label) {
122
+ @if (item.routerLink !== undefined) {
123
+ <a
124
+ class="tx-console-rail__item"
125
+ routerLinkActive="tx-console-rail__item--active"
126
+ ariaCurrentWhenActive="page"
127
+ [class.tx-console-rail__item--active]="item.active"
128
+ [routerLink]="item.routerLink"
129
+ [queryParams]="item.queryParams"
130
+ [routerLinkActiveOptions]="item.activeOptions ?? exactMatch"
131
+ [attr.target]="item.target ?? null"
132
+ >
133
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
134
+ <span class="tx-console-rail__label">{{ item.label }}</span>
135
+ </a>
136
+ } @else if (item.url) {
137
+ <a
138
+ class="tx-console-rail__item"
139
+ [class.tx-console-rail__item--active]="item.active"
140
+ [attr.aria-current]="item.active ? 'page' : null"
141
+ [attr.href]="item.url"
142
+ [attr.target]="item.target ?? null"
143
+ >
144
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
145
+ <span class="tx-console-rail__label">{{ item.label }}</span>
146
+ </a>
147
+ } @else {
148
+ <button
149
+ type="button"
150
+ class="tx-console-rail__item"
151
+ [class.tx-console-rail__item--active]="item.active"
152
+ [attr.aria-current]="item.active ? 'page' : null"
153
+ (click)="item.command?.()"
154
+ >
155
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
156
+ <span class="tx-console-rail__label">{{ item.label }}</span>
157
+ </button>
158
+ }
159
+ }
160
+ </nav>
161
+ `,
162
+ isInline: true,
163
+ 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"],
164
+ dependencies: [
165
+ {
166
+ kind: "directive",
167
+ type: RouterLink,
168
+ selector: "[routerLink]",
169
+ inputs: [
170
+ "target",
171
+ "queryParams",
172
+ "fragment",
173
+ "queryParamsHandling",
174
+ "state",
175
+ "info",
176
+ "relativeTo",
177
+ "preserveFragment",
178
+ "skipLocationChange",
179
+ "replaceUrl",
180
+ "browserUrl",
181
+ "routerLink"
182
+ ]
183
+ },
184
+ {
185
+ kind: "directive",
186
+ type: RouterLinkActive,
187
+ selector: "[routerLinkActive]",
188
+ inputs: [
189
+ "routerLinkActiveOptions",
190
+ "ariaCurrentWhenActive",
191
+ "routerLinkActive"
192
+ ],
193
+ outputs: ["isActiveChange"],
194
+ exportAs: ["routerLinkActive"]
195
+ },
196
+ {
197
+ kind: "component",
198
+ type: TxIcon,
199
+ selector: "tx-icon",
200
+ inputs: ["name"]
201
+ }
202
+ ],
203
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
204
+ });
205
+ };
206
+ i0.ɵɵngDeclareClassMetadata({
207
+ minVersion: "12.0.0",
208
+ version: "22.2.3",
209
+ ngImport: i0,
210
+ type: TxConsoleRail,
211
+ decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: "tx-console-rail",
215
+ imports: [
216
+ RouterLink,
217
+ RouterLinkActive,
218
+ TxIcon
219
+ ],
220
+ template: `
221
+ <nav class="tx-console-rail__nav" [attr.aria-label]="label() ?? null">
222
+ @for (item of items(); track item.label) {
223
+ @if (item.routerLink !== undefined) {
224
+ <a
225
+ class="tx-console-rail__item"
226
+ routerLinkActive="tx-console-rail__item--active"
227
+ ariaCurrentWhenActive="page"
228
+ [class.tx-console-rail__item--active]="item.active"
229
+ [routerLink]="item.routerLink"
230
+ [queryParams]="item.queryParams"
231
+ [routerLinkActiveOptions]="item.activeOptions ?? exactMatch"
232
+ [attr.target]="item.target ?? null"
233
+ >
234
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
235
+ <span class="tx-console-rail__label">{{ item.label }}</span>
236
+ </a>
237
+ } @else if (item.url) {
238
+ <a
239
+ class="tx-console-rail__item"
240
+ [class.tx-console-rail__item--active]="item.active"
241
+ [attr.aria-current]="item.active ? 'page' : null"
242
+ [attr.href]="item.url"
243
+ [attr.target]="item.target ?? null"
244
+ >
245
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
246
+ <span class="tx-console-rail__label">{{ item.label }}</span>
247
+ </a>
248
+ } @else {
249
+ <button
250
+ type="button"
251
+ class="tx-console-rail__item"
252
+ [class.tx-console-rail__item--active]="item.active"
253
+ [attr.aria-current]="item.active ? 'page' : null"
254
+ (click)="item.command?.()"
255
+ >
256
+ <tx-icon class="tx-console-rail__icon" aria-hidden="true" [name]="item.icon" />
257
+ <span class="tx-console-rail__label">{{ item.label }}</span>
258
+ </button>
259
+ }
260
+ }
261
+ </nav>
262
+ `,
263
+ changeDetection: ChangeDetectionStrategy.OnPush,
264
+ host: {
265
+ class: "tx-console-rail",
266
+ "[attr.data-styled]": "!unstyled() || null"
267
+ },
268
+ styles: [":host{display:block;height:100%}.tx-console-rail__nav{display:flex;flex-direction:column;box-sizing:border-box;height:100%;overflow-y:auto}.tx-console-rail__item{display:flex;flex-direction:column;align-items:center;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:center;text-decoration:none}.tx-console-rail__label{display:block;max-width:100%;overflow-wrap:break-word}:host([data-styled]) .tx-console-rail__nav{width:var(--tx-console-layout-rail-width);gap:var(--tx-console-layout-rail-gap);padding:var(--tx-console-layout-rail-padding);border-inline-end:1px solid var(--tx-console-layout-rail-border-color);background:var(--tx-console-layout-rail-background)}:host([data-styled]) .tx-console-rail__item{gap:var(--tx-console-layout-rail-item-gap);padding:var(--tx-console-layout-rail-item-padding);border-radius:var(--tx-console-layout-rail-item-border-radius);color:var(--tx-console-layout-rail-item-color);font-size:var(--tx-console-layout-rail-item-font-size);line-height:var(--tx-console-layout-rail-item-line-height);transition:background-color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing),color var(--tx-console-layout-rail-item-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-console-rail__item:hover{background:var(--tx-console-layout-rail-item-hover-background);color:var(--tx-console-layout-rail-item-hover-color)}:host([data-styled]) .tx-console-rail__item:focus-visible{outline:var(--tx-console-layout-rail-item-focus-ring-width) solid var(--tx-console-layout-rail-item-focus-ring-color);outline-offset:var(--tx-console-layout-rail-item-focus-ring-offset)}:host([data-styled]) .tx-console-rail__item--active{background:var(--tx-console-layout-rail-item-active-background);color:var(--tx-console-layout-rail-item-active-color);font-weight:var(--tx-console-layout-rail-item-active-font-weight)}:host([data-styled]) .tx-console-rail__item--active:hover{background:var(--tx-console-layout-rail-item-active-hover-background);color:var(--tx-console-layout-rail-item-active-color)}:host([data-styled]) .tx-console-rail__icon{font-size:var(--tx-console-layout-rail-item-icon-size)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=viewport]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=viewport][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=viewport][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-rail__nav{flex-direction:row;width:100%;height:auto;overflow-x:auto;overflow-y:hidden}:host([data-responsive=container]) .tx-console-rail__item{flex-shrink:0}:host([data-responsive=container][data-styled]) .tx-console-rail__nav{width:100%;padding:var(--tx-console-layout-rail-mobile-padding);border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-rail-border-color)}:host([data-responsive=container][data-styled]) .tx-console-rail__item{min-width:var(--tx-console-layout-rail-item-mobile-min-width)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-rail__item{transition:none}}\n"]
269
+ }]
270
+ }],
271
+ propDecorators: {
272
+ items: [{
273
+ type: i0.Input,
274
+ args: [{
275
+ isSignal: true,
276
+ alias: "items",
277
+ required: true
278
+ }]
279
+ }],
280
+ label: [{
281
+ type: i0.Input,
282
+ args: [{
283
+ isSignal: true,
284
+ alias: "label",
285
+ required: false
286
+ }]
287
+ }],
288
+ unstyled: [{
289
+ type: i0.Input,
290
+ args: [{
291
+ isSignal: true,
292
+ alias: "unstyled",
293
+ required: false
294
+ }]
295
+ }]
296
+ }
297
+ });
298
+ var TxConsoleLayout = class TxConsoleLayout {
299
+ router = inject(Router, { optional: true });
300
+ consoleDocument = inject(TxConsoleDocument);
301
+ title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
302
+ titleMuted = input(void 0, ...ngDevMode ? [{ debugName: "titleMuted" }] : /* istanbul ignore next */ []);
303
+ logo = input(void 0, ...ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []);
304
+ homeLink = input(void 0, ...ngDevMode ? [{ debugName: "homeLink" }] : /* istanbul ignore next */ []);
305
+ railItems = input([], ...ngDevMode ? [{ debugName: "railItems" }] : /* istanbul ignore next */ []);
306
+ railLabel = input(void 0, ...ngDevMode ? [{ debugName: "railLabel" }] : /* istanbul ignore next */ []);
307
+ crumbKey = input("crumb", ...ngDevMode ? [{ debugName: "crumbKey" }] : /* istanbul ignore next */ []);
308
+ crumbs = input(void 0, ...ngDevMode ? [{ debugName: "crumbs" }] : /* istanbul ignore next */ []);
309
+ footerName = input(void 0, ...ngDevMode ? [{ debugName: "footerName" }] : /* istanbul ignore next */ []);
310
+ footerLinks = input([], ...ngDevMode ? [{ debugName: "footerLinks" }] : /* istanbul ignore next */ []);
311
+ documentTitle = input(void 0, ...ngDevMode ? [{ debugName: "documentTitle" }] : /* istanbul ignore next */ []);
312
+ favicon = input(void 0, ...ngDevMode ? [{ debugName: "favicon" }] : /* istanbul ignore next */ []);
313
+ translate = input(void 0, ...ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []);
314
+ responsive = input("viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
315
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
316
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
317
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
318
+ unstyled = input(void 0, {
319
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
320
+ transform: optionalBoolean
321
+ });
322
+ isUnstyled = injectUnstyled(this.unstyled);
323
+ passThrough = injectPassThrough("consoleLayout", this, this.pt, this.ptOptions);
324
+ translations = injectTranslations();
325
+ tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-console-layout"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
326
+ hostStyle = computed(() => ({
327
+ ...this.tokenStyle(),
328
+ ...this.passThrough().root?.style
329
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
330
+ panels = signal(0, ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
331
+ hasPanel = computed(() => this.panels() > 0, ...ngDevMode ? [{ debugName: "hasPanel" }] : /* istanbul ignore next */ []);
332
+ navigationEnd = toSignal(this.router ? this.router.events.pipe(filter((event) => event instanceof NavigationEnd)) : of(null), { initialValue: null });
333
+ visibleCrumbs = computed(() => {
334
+ const own = this.crumbs();
335
+ if (own) return own.map((crumb) => this.text(crumb));
336
+ this.navigationEnd();
337
+ return this.routeCrumbs(this.crumbKey()).map((crumb) => this.text(crumb));
338
+ }, ...ngDevMode ? [{ debugName: "visibleCrumbs" }] : /* istanbul ignore next */ []);
339
+ visibleRailItems = computed(() => this.railItems().map((item) => ({
340
+ ...item,
341
+ label: this.text(item.label)
342
+ })), ...ngDevMode ? [{ debugName: "visibleRailItems" }] : /* istanbul ignore next */ []);
343
+ visibleFooterLinks = computed(() => this.footerLinks().map((link) => ({
344
+ ...link,
345
+ label: this.text(link.label)
346
+ })), ...ngDevMode ? [{ debugName: "visibleFooterLinks" }] : /* istanbul ignore next */ []);
347
+ railName = computed(() => this.railLabel() ?? this.translations().consoleSections, ...ngDevMode ? [{ debugName: "railName" }] : /* istanbul ignore next */ []);
348
+ pageTitle = computed(() => [this.visibleCrumbs().at(-1), this.documentTitle()].filter(Boolean).join(" · "), ...ngDevMode ? [{ debugName: "pageTitle" }] : /* istanbul ignore next */ []);
349
+ constructor() {
350
+ effect(() => {
351
+ if (this.documentTitle()) this.consoleDocument.setTitle(this.pageTitle());
352
+ });
353
+ effect(() => {
354
+ const favicon = this.favicon();
355
+ if (favicon) this.consoleDocument.setFavicon(favicon);
356
+ });
357
+ }
358
+ registerPanel() {
359
+ this.panels.update((count) => count + 1);
360
+ return () => this.panels.update((count) => count - 1);
361
+ }
362
+ text(key) {
363
+ return this.translate()?.(key) ?? key;
364
+ }
365
+ routeCrumbs(key) {
366
+ const crumbs = [];
367
+ let current = this.router?.routerState.snapshot.root ?? null;
368
+ while (current) {
369
+ const crumb = current.routeConfig?.data?.[key];
370
+ if (typeof crumb === "string") crumbs.push(crumb);
371
+ current = current.firstChild;
372
+ }
373
+ return crumbs;
374
+ }
375
+ static ɵfac = i0.ɵɵngDeclareFactory({
376
+ minVersion: "12.0.0",
377
+ version: "22.2.3",
378
+ ngImport: i0,
379
+ type: TxConsoleLayout,
380
+ deps: [],
381
+ target: i0.ɵɵFactoryTarget.Component
382
+ });
383
+ static ɵcmp = i0.ɵɵngDeclareComponent({
384
+ minVersion: "17.0.0",
385
+ version: "22.2.3",
386
+ type: TxConsoleLayout,
387
+ isStandalone: true,
388
+ selector: "tx-console-layout",
389
+ inputs: {
390
+ title: {
391
+ classPropertyName: "title",
392
+ publicName: "title",
393
+ isSignal: true,
394
+ isRequired: true,
395
+ transformFunction: null
396
+ },
397
+ titleMuted: {
398
+ classPropertyName: "titleMuted",
399
+ publicName: "titleMuted",
400
+ isSignal: true,
401
+ isRequired: false,
402
+ transformFunction: null
403
+ },
404
+ logo: {
405
+ classPropertyName: "logo",
406
+ publicName: "logo",
407
+ isSignal: true,
408
+ isRequired: false,
409
+ transformFunction: null
410
+ },
411
+ homeLink: {
412
+ classPropertyName: "homeLink",
413
+ publicName: "homeLink",
414
+ isSignal: true,
415
+ isRequired: false,
416
+ transformFunction: null
417
+ },
418
+ railItems: {
419
+ classPropertyName: "railItems",
420
+ publicName: "railItems",
421
+ isSignal: true,
422
+ isRequired: false,
423
+ transformFunction: null
424
+ },
425
+ railLabel: {
426
+ classPropertyName: "railLabel",
427
+ publicName: "railLabel",
428
+ isSignal: true,
429
+ isRequired: false,
430
+ transformFunction: null
431
+ },
432
+ crumbKey: {
433
+ classPropertyName: "crumbKey",
434
+ publicName: "crumbKey",
435
+ isSignal: true,
436
+ isRequired: false,
437
+ transformFunction: null
438
+ },
439
+ crumbs: {
440
+ classPropertyName: "crumbs",
441
+ publicName: "crumbs",
442
+ isSignal: true,
443
+ isRequired: false,
444
+ transformFunction: null
445
+ },
446
+ footerName: {
447
+ classPropertyName: "footerName",
448
+ publicName: "footerName",
449
+ isSignal: true,
450
+ isRequired: false,
451
+ transformFunction: null
452
+ },
453
+ footerLinks: {
454
+ classPropertyName: "footerLinks",
455
+ publicName: "footerLinks",
456
+ isSignal: true,
457
+ isRequired: false,
458
+ transformFunction: null
459
+ },
460
+ documentTitle: {
461
+ classPropertyName: "documentTitle",
462
+ publicName: "documentTitle",
463
+ isSignal: true,
464
+ isRequired: false,
465
+ transformFunction: null
466
+ },
467
+ favicon: {
468
+ classPropertyName: "favicon",
469
+ publicName: "favicon",
470
+ isSignal: true,
471
+ isRequired: false,
472
+ transformFunction: null
473
+ },
474
+ translate: {
475
+ classPropertyName: "translate",
476
+ publicName: "translate",
477
+ isSignal: true,
478
+ isRequired: false,
479
+ transformFunction: null
480
+ },
481
+ responsive: {
482
+ classPropertyName: "responsive",
483
+ publicName: "responsive",
484
+ isSignal: true,
485
+ isRequired: false,
486
+ transformFunction: null
487
+ },
488
+ dt: {
489
+ classPropertyName: "dt",
490
+ publicName: "dt",
491
+ isSignal: true,
492
+ isRequired: false,
493
+ transformFunction: null
494
+ },
495
+ pt: {
496
+ classPropertyName: "pt",
497
+ publicName: "pt",
498
+ isSignal: true,
499
+ isRequired: false,
500
+ transformFunction: null
501
+ },
502
+ ptOptions: {
503
+ classPropertyName: "ptOptions",
504
+ publicName: "ptOptions",
505
+ isSignal: true,
506
+ isRequired: false,
507
+ transformFunction: null
508
+ },
509
+ unstyled: {
510
+ classPropertyName: "unstyled",
511
+ publicName: "unstyled",
512
+ isSignal: true,
513
+ isRequired: false,
514
+ transformFunction: null
515
+ }
516
+ },
517
+ host: {
518
+ properties: {
519
+ "class": "passThrough().root?.class",
520
+ "style": "hostStyle()",
521
+ "attr.data-styled": "!isUnstyled() || null",
522
+ "attr.data-responsive": "responsive()"
523
+ },
524
+ classAttribute: "tx-console-layout"
525
+ },
526
+ providers: [TxConsoleDocument],
527
+ ngImport: i0,
528
+ 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",
529
+ 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"],
530
+ dependencies: [
531
+ {
532
+ kind: "directive",
533
+ type: NgTemplateOutlet,
534
+ selector: "[ngTemplateOutlet]",
535
+ inputs: [
536
+ "ngTemplateOutletContext",
537
+ "ngTemplateOutlet",
538
+ "ngTemplateOutletInjector"
539
+ ]
540
+ },
541
+ {
542
+ kind: "directive",
543
+ type: RouterLink,
544
+ selector: "[routerLink]",
545
+ inputs: [
546
+ "target",
547
+ "queryParams",
548
+ "fragment",
549
+ "queryParamsHandling",
550
+ "state",
551
+ "info",
552
+ "relativeTo",
553
+ "preserveFragment",
554
+ "skipLocationChange",
555
+ "replaceUrl",
556
+ "browserUrl",
557
+ "routerLink"
558
+ ]
559
+ },
560
+ {
561
+ kind: "component",
562
+ type: TxConsoleRail,
563
+ selector: "tx-console-rail",
564
+ inputs: [
565
+ "items",
566
+ "label",
567
+ "unstyled"
568
+ ]
569
+ },
570
+ {
571
+ kind: "component",
572
+ type: TxAppFooter,
573
+ selector: "tx-app-footer",
574
+ inputs: [
575
+ "name",
576
+ "links",
577
+ "variant",
578
+ "navLabel",
579
+ "year",
580
+ "dt",
581
+ "pt",
582
+ "ptOptions",
583
+ "unstyled"
584
+ ]
585
+ }
586
+ ],
587
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
588
+ });
589
+ };
590
+ i0.ɵɵngDeclareClassMetadata({
591
+ minVersion: "12.0.0",
592
+ version: "22.2.3",
593
+ ngImport: i0,
594
+ type: TxConsoleLayout,
595
+ decorators: [{
596
+ type: Component,
597
+ args: [{
598
+ selector: "tx-console-layout",
599
+ imports: [
600
+ NgTemplateOutlet,
601
+ RouterLink,
602
+ TxConsoleRail,
603
+ TxAppFooter
604
+ ],
605
+ changeDetection: ChangeDetectionStrategy.OnPush,
606
+ providers: [TxConsoleDocument],
607
+ host: {
608
+ class: "tx-console-layout",
609
+ "[class]": "passThrough().root?.class",
610
+ "[style]": "hostStyle()",
611
+ "[attr.data-styled]": "!isUnstyled() || null",
612
+ "[attr.data-responsive]": "responsive()"
613
+ },
614
+ template: "<header class=\"tx-console-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-console-layout__start\">\n <div class=\"tx-console-layout__apps\">\n <ng-content select=\"[txConsoleApps]\" />\n </div>\n <div class=\"tx-console-layout__trail\" [class]=\"passThrough().crumbs?.class\" [style]=\"passThrough().crumbs?.style\">\n <ng-template #brand>\n @if (logo()) {\n <img class=\"tx-console-layout__logo\" alt=\"\" [src]=\"logo()\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-console-layout__brand-text\"\n >{{ title() }}\n @if (titleMuted()) {\n <span class=\"tx-console-layout__brand-muted\">{{ titleMuted() }}</span>\n }\n </span>\n </ng-template>\n @if (homeLink() !== undefined) {\n <a class=\"tx-console-layout__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </a>\n } @else {\n <span class=\"tx-console-layout__brand\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n <ng-container [ngTemplateOutlet]=\"brand\" />\n </span>\n }\n @for (crumb of visibleCrumbs(); track $index; let last = $last) {\n <span class=\"tx-console-layout__slash\" aria-hidden=\"true\">/</span>\n <span class=\"tx-console-layout__crumb\" [class.tx-console-layout__crumb--current]=\"last\" [attr.aria-current]=\"last ? 'page' : null\">{{ crumb }}</span>\n }\n </div>\n </div>\n <div class=\"tx-console-layout__actions\">\n <ng-content select=\"[txConsoleActions]\" />\n </div>\n</header>\n<div class=\"tx-console-layout__body\">\n <tx-console-rail\n class=\"tx-console-layout__rail\"\n [items]=\"visibleRailItems()\"\n [label]=\"railName()\"\n [unstyled]=\"isUnstyled()\"\n [attr.data-responsive]=\"responsive()\"\n [class]=\"passThrough().rail?.class\"\n [style]=\"passThrough().rail?.style\"\n />\n <div class=\"tx-console-layout__column\">\n <main class=\"tx-console-layout__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n </main>\n @if (footerName() && !hasPanel()) {\n <tx-app-footer\n class=\"tx-console-layout__footer\"\n variant=\"console\"\n [name]=\"footerName() ?? ''\"\n [links]=\"visibleFooterLinks()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().footer?.class\"\n [style]=\"passThrough().footer?.style\"\n />\n }\n </div>\n</div>\n",
615
+ styles: [":host{display:flex;flex-direction:column}:host([data-responsive=container]){container:tx-console-layout/inline-size}.tx-console-layout__header{position:sticky;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%}.tx-console-layout__start,.tx-console-layout__trail{display:flex;align-items:center;min-width:0}.tx-console-layout__apps{display:grid;flex-shrink:0;place-items:center}.tx-console-layout__apps:empty,.tx-console-layout__actions:empty{display:none}.tx-console-layout__actions{display:flex;align-items:center}.tx-console-layout__brand{display:inline-flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-console-layout__brand-text{white-space:nowrap}.tx-console-layout__crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-layout__body{display:flex;flex:1;min-height:0}.tx-console-layout__rail{position:sticky;flex-shrink:0}.tx-console-layout__column{display:flex;flex:1;flex-direction:column;min-width:0}.tx-console-layout__content{flex:1;min-width:0}:host([data-styled]){min-height:var(--tx-console-layout-min-height);background:var(--tx-console-layout-background);color:var(--tx-console-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-console-layout__header{top:var(--tx-console-layout-top-offset);z-index:var(--tx-console-layout-header-z-index);gap:var(--tx-console-layout-header-gap);min-height:var(--tx-console-layout-header-height);padding:var(--tx-console-layout-header-padding);border-bottom:1px solid var(--tx-console-layout-header-border-color);background:var(--tx-console-layout-header-background)}:host([data-styled]) .tx-console-layout__apps{width:var(--tx-console-layout-rail-width)}:host([data-styled]) .tx-console-layout__trail{gap:var(--tx-console-layout-trail-gap);padding-inline-start:var(--tx-console-layout-trail-padding-start)}:host([data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-alone-padding-start)}:host([data-styled]) .tx-console-layout__brand{gap:var(--tx-console-layout-brand-gap);color:var(--tx-console-layout-brand-color)}:host([data-styled]) .tx-console-layout__logo{flex-shrink:0;width:var(--tx-console-layout-brand-logo-size);height:var(--tx-console-layout-brand-logo-size)}:host([data-styled]) .tx-console-layout__brand-text{font-size:var(--tx-console-layout-brand-font-size);font-weight:var(--tx-console-layout-brand-font-weight)}:host([data-styled]) .tx-console-layout__brand-muted{color:var(--tx-console-layout-brand-muted-color);font-weight:var(--tx-console-layout-brand-muted-font-weight)}:host([data-styled]) .tx-console-layout__slash{color:var(--tx-console-layout-crumb-slash-color);font-size:var(--tx-console-layout-crumb-slash-font-size)}:host([data-styled]) .tx-console-layout__crumb{color:var(--tx-console-layout-crumb-color);font-size:var(--tx-console-layout-crumb-font-size)}:host([data-styled]) .tx-console-layout__crumb--current{color:var(--tx-console-layout-crumb-current-color);font-weight:var(--tx-console-layout-crumb-current-font-weight)}:host([data-styled]) .tx-console-layout__rail{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset))}:host([data-styled]) .tx-console-layout__content{padding:var(--tx-console-layout-content-padding)}@media(width<768px){:host([data-responsive=viewport]) .tx-console-layout__brand-muted,:host([data-responsive=viewport]) .tx-console-layout__slash,:host([data-responsive=viewport]) .tx-console-layout__crumb{display:none}:host([data-responsive=viewport]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=viewport]) .tx-console-layout__rail{position:static}:host([data-responsive=viewport][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=viewport][data-styled]) .tx-console-layout__rail{height:auto}}@container tx-console-layout (width < 768px){:host([data-responsive=container]) .tx-console-layout__brand-muted,:host([data-responsive=container]) .tx-console-layout__slash,:host([data-responsive=container]) .tx-console-layout__crumb{display:none}:host([data-responsive=container]) .tx-console-layout__body{flex-direction:column}:host([data-responsive=container]) .tx-console-layout__rail{position:static}:host([data-responsive=container][data-styled]) .tx-console-layout__body{--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}:host([data-responsive=container][data-styled]) .tx-console-layout__header{padding-inline-end:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps{width:auto;padding-inline-start:var(--tx-console-layout-apps-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-trail-mobile-padding-start)}:host([data-responsive=container][data-styled]) .tx-console-layout__apps:empty+.tx-console-layout__trail{padding-inline-start:var(--tx-console-layout-header-mobile-padding-end)}:host([data-responsive=container][data-styled]) .tx-console-layout__rail{height:auto}}\n"]
616
+ }]
617
+ }],
618
+ ctorParameters: () => [],
619
+ propDecorators: {
620
+ title: [{
621
+ type: i0.Input,
622
+ args: [{
623
+ isSignal: true,
624
+ alias: "title",
625
+ required: true
626
+ }]
627
+ }],
628
+ titleMuted: [{
629
+ type: i0.Input,
630
+ args: [{
631
+ isSignal: true,
632
+ alias: "titleMuted",
633
+ required: false
634
+ }]
635
+ }],
636
+ logo: [{
637
+ type: i0.Input,
638
+ args: [{
639
+ isSignal: true,
640
+ alias: "logo",
641
+ required: false
642
+ }]
643
+ }],
644
+ homeLink: [{
645
+ type: i0.Input,
646
+ args: [{
647
+ isSignal: true,
648
+ alias: "homeLink",
649
+ required: false
650
+ }]
651
+ }],
652
+ railItems: [{
653
+ type: i0.Input,
654
+ args: [{
655
+ isSignal: true,
656
+ alias: "railItems",
657
+ required: false
658
+ }]
659
+ }],
660
+ railLabel: [{
661
+ type: i0.Input,
662
+ args: [{
663
+ isSignal: true,
664
+ alias: "railLabel",
665
+ required: false
666
+ }]
667
+ }],
668
+ crumbKey: [{
669
+ type: i0.Input,
670
+ args: [{
671
+ isSignal: true,
672
+ alias: "crumbKey",
673
+ required: false
674
+ }]
675
+ }],
676
+ crumbs: [{
677
+ type: i0.Input,
678
+ args: [{
679
+ isSignal: true,
680
+ alias: "crumbs",
681
+ required: false
682
+ }]
683
+ }],
684
+ footerName: [{
685
+ type: i0.Input,
686
+ args: [{
687
+ isSignal: true,
688
+ alias: "footerName",
689
+ required: false
690
+ }]
691
+ }],
692
+ footerLinks: [{
693
+ type: i0.Input,
694
+ args: [{
695
+ isSignal: true,
696
+ alias: "footerLinks",
697
+ required: false
698
+ }]
699
+ }],
700
+ documentTitle: [{
701
+ type: i0.Input,
702
+ args: [{
703
+ isSignal: true,
704
+ alias: "documentTitle",
705
+ required: false
706
+ }]
707
+ }],
708
+ favicon: [{
709
+ type: i0.Input,
710
+ args: [{
711
+ isSignal: true,
712
+ alias: "favicon",
713
+ required: false
714
+ }]
715
+ }],
716
+ translate: [{
717
+ type: i0.Input,
718
+ args: [{
719
+ isSignal: true,
720
+ alias: "translate",
721
+ required: false
722
+ }]
723
+ }],
724
+ responsive: [{
725
+ type: i0.Input,
726
+ args: [{
727
+ isSignal: true,
728
+ alias: "responsive",
729
+ required: false
730
+ }]
731
+ }],
732
+ dt: [{
733
+ type: i0.Input,
734
+ args: [{
735
+ isSignal: true,
736
+ alias: "dt",
737
+ required: false
738
+ }]
739
+ }],
740
+ pt: [{
741
+ type: i0.Input,
742
+ args: [{
743
+ isSignal: true,
744
+ alias: "pt",
745
+ required: false
746
+ }]
747
+ }],
748
+ ptOptions: [{
749
+ type: i0.Input,
750
+ args: [{
751
+ isSignal: true,
752
+ alias: "ptOptions",
753
+ required: false
754
+ }]
755
+ }],
756
+ unstyled: [{
757
+ type: i0.Input,
758
+ args: [{
759
+ isSignal: true,
760
+ alias: "unstyled",
761
+ required: false
762
+ }]
763
+ }]
764
+ }
765
+ });
766
+ var TxConsolePanel = class TxConsolePanel {
767
+ layout = inject(TxConsoleLayout, { optional: true });
768
+ toggleButton = viewChild("toggleButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
769
+ label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
770
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
771
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
772
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
773
+ unstyled = input(void 0, {
774
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
775
+ transform: optionalBoolean
776
+ });
777
+ expanded = signal(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
778
+ isUnstyled = injectUnstyled(this.unstyled);
779
+ translations = injectTranslations();
780
+ id = uniqueId("tx-console-panel");
781
+ passThrough = injectPassThrough("consolePanel", this, this.pt, this.ptOptions);
782
+ responsive = computed(() => this.layout?.responsive() ?? "viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
783
+ footerName = computed(() => this.layout?.footerName() ?? "", ...ngDevMode ? [{ debugName: "footerName" }] : /* istanbul ignore next */ []);
784
+ footerLinks = computed(() => this.layout?.visibleFooterLinks() ?? [], ...ngDevMode ? [{ debugName: "footerLinks" }] : /* istanbul ignore next */ []);
785
+ hostStyle = computed(() => ({
786
+ ...toStyleObject(this.dt(), "--tx-console-layout"),
787
+ ...this.passThrough().root?.style
788
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
789
+ constructor() {
790
+ const unregister = this.layout?.registerPanel();
791
+ if (unregister) inject(DestroyRef).onDestroy(unregister);
792
+ inject(Router, { optional: true })?.events.pipe(filter((event) => event instanceof NavigationEnd), takeUntilDestroyed()).subscribe(() => this.expanded.set(false));
793
+ }
794
+ closeOnLink(event) {
795
+ if ((event.target?.closest("a[href], [role=\"treeitem\"]:not([aria-expanded]), [role=\"menuitem\"], [role=\"option\"]"))?.closest(".tx-console-panel__nav")) this.expanded.set(false);
796
+ }
797
+ closeFromKeyboard(event) {
798
+ if (this.expanded() && event.target?.closest(".tx-console-panel__aside")) {
799
+ this.expanded.set(false);
800
+ this.toggleButton()?.nativeElement.focus();
801
+ }
802
+ }
803
+ static ɵfac = i0.ɵɵngDeclareFactory({
804
+ minVersion: "12.0.0",
805
+ version: "22.2.3",
806
+ ngImport: i0,
807
+ type: TxConsolePanel,
808
+ deps: [],
809
+ target: i0.ɵɵFactoryTarget.Component
810
+ });
811
+ static ɵcmp = i0.ɵɵngDeclareComponent({
812
+ minVersion: "17.0.0",
813
+ version: "22.2.3",
814
+ type: TxConsolePanel,
815
+ isStandalone: true,
816
+ selector: "tx-console-panel",
817
+ inputs: {
818
+ label: {
819
+ classPropertyName: "label",
820
+ publicName: "label",
821
+ isSignal: true,
822
+ isRequired: false,
823
+ transformFunction: null
824
+ },
825
+ dt: {
826
+ classPropertyName: "dt",
827
+ publicName: "dt",
828
+ isSignal: true,
829
+ isRequired: false,
830
+ transformFunction: null
831
+ },
832
+ pt: {
833
+ classPropertyName: "pt",
834
+ publicName: "pt",
835
+ isSignal: true,
836
+ isRequired: false,
837
+ transformFunction: null
838
+ },
839
+ ptOptions: {
840
+ classPropertyName: "ptOptions",
841
+ publicName: "ptOptions",
842
+ isSignal: true,
843
+ isRequired: false,
844
+ transformFunction: null
845
+ },
846
+ unstyled: {
847
+ classPropertyName: "unstyled",
848
+ publicName: "unstyled",
849
+ isSignal: true,
850
+ isRequired: false,
851
+ transformFunction: null
852
+ }
853
+ },
854
+ host: {
855
+ listeners: {
856
+ "click": "closeOnLink($event)",
857
+ "keydown.escape": "closeFromKeyboard($event)"
858
+ },
859
+ properties: {
860
+ "class": "passThrough().root?.class",
861
+ "style": "hostStyle()",
862
+ "attr.data-styled": "!isUnstyled() || null",
863
+ "attr.data-responsive": "responsive()"
864
+ },
865
+ classAttribute: "tx-console-panel"
866
+ },
867
+ viewQueries: [{
868
+ propertyName: "toggleButton",
869
+ first: true,
870
+ predicate: ["toggleButton"],
871
+ descendants: true,
872
+ isSignal: true
873
+ }],
874
+ ngImport: i0,
875
+ template: `
876
+ <aside
877
+ class="tx-console-panel__aside"
878
+ [attr.aria-label]="label() ?? null"
879
+ [class]="passThrough().aside?.class"
880
+ [style]="passThrough().aside?.style"
881
+ >
882
+ <button
883
+ #toggleButton
884
+ type="button"
885
+ class="tx-console-panel__toggle"
886
+ [attr.aria-expanded]="expanded()"
887
+ [attr.aria-controls]="id + '-nav'"
888
+ [class]="passThrough().toggle?.class"
889
+ [style]="passThrough().toggle?.style"
890
+ (click)="expanded.set(!expanded())"
891
+ >
892
+ <tx-icon class="tx-console-panel__toggle-icon" name="bars" aria-hidden="true" />
893
+ <span class="tx-console-panel__toggle-label">{{ label() ?? translations().menu }}</span>
894
+ <tx-icon class="tx-console-panel__chevron" name="chevron-down" aria-hidden="true" />
895
+ </button>
896
+ <div class="tx-console-panel__collapse" [class.tx-console-panel__collapse--open]="expanded()">
897
+ <div
898
+ class="tx-console-panel__nav"
899
+ [id]="id + '-nav'"
900
+ [class]="passThrough().nav?.class"
901
+ [style]="passThrough().nav?.style"
902
+ >
903
+ <div class="tx-console-panel__nav-inner">
904
+ <ng-content select="[txConsolePanelAside]" />
905
+ </div>
906
+ </div>
907
+ </div>
908
+ </aside>
909
+ <div class="tx-console-panel__main" [class]="passThrough().main?.class" [style]="passThrough().main?.style">
910
+ <div class="tx-console-panel__content" [class]="passThrough().content?.class" [style]="passThrough().content?.style">
911
+ <ng-content />
912
+ </div>
913
+ @if (footerName()) {
914
+ <tx-app-footer variant="console" [name]="footerName()" [links]="footerLinks()" [unstyled]="isUnstyled()" />
915
+ }
916
+ </div>
917
+ `,
918
+ isInline: true,
919
+ styles: [":host{display:grid;grid-template-columns:var(--tx-console-layout-panel-width) minmax(0,1fr);overflow-x:clip}.tx-console-panel__nav{position:sticky;box-sizing:border-box;overflow-y:auto}.tx-console-panel__toggle{display:none;align-items:center;box-sizing:border-box;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-console-panel__toggle-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-panel__collapse{display:contents}.tx-console-panel__main{display:flex;flex-direction:column;min-width:0}.tx-console-panel__content{flex:1;min-width:0}:host([data-styled]){min-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));margin:calc(-1 * var(--tx-console-layout-content-padding))}:host([data-styled]) .tx-console-panel__aside{border-inline-end:1px solid var(--tx-console-layout-panel-border-color);background:var(--tx-console-layout-panel-background);animation:tx-console-panel-aside-in var(--tx-console-layout-panel-aside-duration) var(--tx-console-layout-panel-aside-easing) both}:host([data-styled]) .tx-console-panel__nav{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));max-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));padding:var(--tx-console-layout-panel-nav-padding)}:host([data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-content-padding);animation:tx-console-panel-fade-in var(--tx-console-layout-panel-content-duration) ease-out var(--tx-console-layout-panel-content-delay) both}@keyframes tx-console-panel-aside-in{0%{transform:translate(-100%)}to{transform:none}}@keyframes tx-console-panel-fade-in{0%{opacity:0}to{opacity:1}}@keyframes tx-console-panel-bar-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@media(width<1024px){:host([data-responsive=viewport]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=viewport]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=viewport]) .tx-console-panel__toggle{display:flex}:host([data-responsive=viewport]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=viewport]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=viewport][data-styled]){min-height:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=viewport][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 1024px){:host([data-responsive=container]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=container]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=container]) .tx-console-panel__toggle{display:flex}:host([data-responsive=container]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=container]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=container][data-styled]){min-height:0}:host([data-responsive=container][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=container][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=container][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=container][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@media(width<768px){:host([data-responsive=viewport][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 768px){:host([data-responsive=container][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-panel__aside,:host([data-styled]) .tx-console-panel__content{animation:none}:host([data-styled]) .tx-console-panel__collapse,:host([data-styled]) .tx-console-panel__chevron{transition:none}}\n"],
920
+ dependencies: [{
921
+ kind: "component",
922
+ type: TxAppFooter,
923
+ selector: "tx-app-footer",
924
+ inputs: [
925
+ "name",
926
+ "links",
927
+ "variant",
928
+ "navLabel",
929
+ "year",
930
+ "dt",
931
+ "pt",
932
+ "ptOptions",
933
+ "unstyled"
934
+ ]
935
+ }, {
936
+ kind: "component",
937
+ type: TxIcon,
938
+ selector: "tx-icon",
939
+ inputs: ["name"]
940
+ }],
941
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
942
+ });
943
+ };
944
+ i0.ɵɵngDeclareClassMetadata({
945
+ minVersion: "12.0.0",
946
+ version: "22.2.3",
947
+ ngImport: i0,
948
+ type: TxConsolePanel,
949
+ decorators: [{
950
+ type: Component,
951
+ args: [{
952
+ selector: "tx-console-panel",
953
+ imports: [TxAppFooter, TxIcon],
954
+ template: `
955
+ <aside
956
+ class="tx-console-panel__aside"
957
+ [attr.aria-label]="label() ?? null"
958
+ [class]="passThrough().aside?.class"
959
+ [style]="passThrough().aside?.style"
960
+ >
961
+ <button
962
+ #toggleButton
963
+ type="button"
964
+ class="tx-console-panel__toggle"
965
+ [attr.aria-expanded]="expanded()"
966
+ [attr.aria-controls]="id + '-nav'"
967
+ [class]="passThrough().toggle?.class"
968
+ [style]="passThrough().toggle?.style"
969
+ (click)="expanded.set(!expanded())"
970
+ >
971
+ <tx-icon class="tx-console-panel__toggle-icon" name="bars" aria-hidden="true" />
972
+ <span class="tx-console-panel__toggle-label">{{ label() ?? translations().menu }}</span>
973
+ <tx-icon class="tx-console-panel__chevron" name="chevron-down" aria-hidden="true" />
974
+ </button>
975
+ <div class="tx-console-panel__collapse" [class.tx-console-panel__collapse--open]="expanded()">
976
+ <div
977
+ class="tx-console-panel__nav"
978
+ [id]="id + '-nav'"
979
+ [class]="passThrough().nav?.class"
980
+ [style]="passThrough().nav?.style"
981
+ >
982
+ <div class="tx-console-panel__nav-inner">
983
+ <ng-content select="[txConsolePanelAside]" />
984
+ </div>
985
+ </div>
986
+ </div>
987
+ </aside>
988
+ <div class="tx-console-panel__main" [class]="passThrough().main?.class" [style]="passThrough().main?.style">
989
+ <div class="tx-console-panel__content" [class]="passThrough().content?.class" [style]="passThrough().content?.style">
990
+ <ng-content />
991
+ </div>
992
+ @if (footerName()) {
993
+ <tx-app-footer variant="console" [name]="footerName()" [links]="footerLinks()" [unstyled]="isUnstyled()" />
994
+ }
995
+ </div>
996
+ `,
997
+ changeDetection: ChangeDetectionStrategy.OnPush,
998
+ host: {
999
+ class: "tx-console-panel",
1000
+ "[class]": "passThrough().root?.class",
1001
+ "[style]": "hostStyle()",
1002
+ "[attr.data-styled]": "!isUnstyled() || null",
1003
+ "[attr.data-responsive]": "responsive()",
1004
+ "(click)": "closeOnLink($event)",
1005
+ "(keydown.escape)": "closeFromKeyboard($event)"
1006
+ },
1007
+ styles: [":host{display:grid;grid-template-columns:var(--tx-console-layout-panel-width) minmax(0,1fr);overflow-x:clip}.tx-console-panel__nav{position:sticky;box-sizing:border-box;overflow-y:auto}.tx-console-panel__toggle{display:none;align-items:center;box-sizing:border-box;width:100%;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:start}.tx-console-panel__toggle-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-console-panel__collapse{display:contents}.tx-console-panel__main{display:flex;flex-direction:column;min-width:0}.tx-console-panel__content{flex:1;min-width:0}:host([data-styled]){min-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));margin:calc(-1 * var(--tx-console-layout-content-padding))}:host([data-styled]) .tx-console-panel__aside{border-inline-end:1px solid var(--tx-console-layout-panel-border-color);background:var(--tx-console-layout-panel-background);animation:tx-console-panel-aside-in var(--tx-console-layout-panel-aside-duration) var(--tx-console-layout-panel-aside-easing) both}:host([data-styled]) .tx-console-panel__nav{top:calc(var(--tx-console-layout-header-height) + var(--tx-console-layout-top-offset));max-height:calc(var(--tx-console-layout-viewport-height) - var(--tx-console-layout-header-height) - var(--tx-console-layout-top-offset));padding:var(--tx-console-layout-panel-nav-padding)}:host([data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-content-padding);animation:tx-console-panel-fade-in var(--tx-console-layout-panel-content-duration) ease-out var(--tx-console-layout-panel-content-delay) both}@keyframes tx-console-panel-aside-in{0%{transform:translate(-100%)}to{transform:none}}@keyframes tx-console-panel-fade-in{0%{opacity:0}to{opacity:1}}@keyframes tx-console-panel-bar-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@media(width<1024px){:host([data-responsive=viewport]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=viewport]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=viewport]) .tx-console-panel__toggle{display:flex}:host([data-responsive=viewport]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=viewport]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=viewport][data-styled]){min-height:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=viewport][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=viewport][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=viewport][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 1024px){:host([data-responsive=container]){grid-template-columns:minmax(0,1fr)}:host([data-responsive=container]) .tx-console-panel__nav{position:static;min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear var(--tx-console-layout-panel-collapse-duration)}:host([data-responsive=container]) .tx-console-panel__toggle{display:flex}:host([data-responsive=container]) .tx-console-panel__collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container]) .tx-console-panel__collapse--open{grid-template-rows:1fr}:host([data-responsive=container]) .tx-console-panel__collapse--open .tx-console-panel__nav{visibility:visible;transition:none}:host([data-responsive=container][data-styled]){min-height:0}:host([data-responsive=container][data-styled]) .tx-console-panel__aside{border-inline-end:0;border-bottom:1px solid var(--tx-console-layout-panel-border-color);animation-name:tx-console-panel-bar-in}:host([data-responsive=container][data-styled]) .tx-console-panel__nav{max-height:none;padding:0}:host([data-responsive=container][data-styled]) .tx-console-panel__nav-inner{padding:var(--tx-console-layout-panel-mobile-nav-padding)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle{gap:var(--tx-console-layout-panel-toggle-gap);height:var(--tx-console-layout-panel-toggle-height);padding:var(--tx-console-layout-panel-toggle-padding);color:var(--tx-console-layout-panel-toggle-color);font-size:var(--tx-console-layout-panel-toggle-font-size);font-weight:var(--tx-console-layout-panel-toggle-font-weight);transition:background-color var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:hover{background:var(--tx-console-layout-panel-toggle-hover-background)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:-2px}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle-icon,:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{color:var(--tx-console-layout-panel-toggle-icon-color)}:host([data-responsive=container][data-styled]) .tx-console-panel__chevron{transition:rotate var(--tx-console-layout-panel-collapse-duration) var(--tx-motion-easing)}:host([data-responsive=container][data-styled]) .tx-console-panel__toggle[aria-expanded=true] .tx-console-panel__chevron{rotate:180deg}:host([data-responsive=container][data-styled]) .tx-console-panel__content{padding:var(--tx-console-layout-mobile-content-padding)}}@media(width<768px){:host([data-responsive=viewport][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@container tx-console-layout (width < 768px){:host([data-responsive=container][data-styled]){--tx-console-layout-content-padding: var(--tx-console-layout-mobile-content-padding)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-console-panel__aside,:host([data-styled]) .tx-console-panel__content{animation:none}:host([data-styled]) .tx-console-panel__collapse,:host([data-styled]) .tx-console-panel__chevron{transition:none}}\n"]
1008
+ }]
1009
+ }],
1010
+ ctorParameters: () => [],
1011
+ propDecorators: {
1012
+ toggleButton: [{
1013
+ type: i0.ViewChild,
1014
+ args: ["toggleButton", { isSignal: true }]
1015
+ }],
1016
+ label: [{
1017
+ type: i0.Input,
1018
+ args: [{
1019
+ isSignal: true,
1020
+ alias: "label",
1021
+ required: false
1022
+ }]
1023
+ }],
1024
+ dt: [{
1025
+ type: i0.Input,
1026
+ args: [{
1027
+ isSignal: true,
1028
+ alias: "dt",
1029
+ required: false
1030
+ }]
1031
+ }],
1032
+ pt: [{
1033
+ type: i0.Input,
1034
+ args: [{
1035
+ isSignal: true,
1036
+ alias: "pt",
1037
+ required: false
1038
+ }]
1039
+ }],
1040
+ ptOptions: [{
1041
+ type: i0.Input,
1042
+ args: [{
1043
+ isSignal: true,
1044
+ alias: "ptOptions",
1045
+ required: false
1046
+ }]
1047
+ }],
1048
+ unstyled: [{
1049
+ type: i0.Input,
1050
+ args: [{
1051
+ isSignal: true,
1052
+ alias: "unstyled",
1053
+ required: false
1054
+ }]
1055
+ }]
1056
+ }
1057
+ });
1058
+ export { TX_CONSOLE_RAIL_EXACT_MATCH, TX_CONSOLE_RAIL_SECTION_MATCH, TxConsoleDocument, TxConsoleLayout, TxConsolePanel, TxConsoleRail };
1059
+
1060
+ //# sourceMappingURL=tectra-ng-blocks-console-layout.mjs.map