@tectra-ng/blocks 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions-menu/README.md +9 -1
- package/app-layout/README.md +3 -2
- package/command-palette/README.md +7 -0
- package/console-layout/README.md +24 -0
- package/cookie-notice/README.md +1 -1
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +40 -18
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +22 -5
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +40 -17
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +101 -22
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +5 -5
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +113 -24
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-hover-effect.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-kanban.mjs +120 -35
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-mascot.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-network-status.mjs +6 -6
- package/fesm2022/tectra-ng-blocks-page-header.mjs +5 -5
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +6 -6
- package/fesm2022/tectra-ng-blocks-public-header.mjs +23 -9
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +9 -9
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-wizard.mjs +160 -23
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks.mjs +1 -1
- package/filters-panel/README.md +20 -1
- package/kanban/README.md +19 -1
- package/package.json +6 -6
- package/page-header/README.md +1 -1
- package/public-header/README.md +6 -0
- package/switch-language/README.md +1 -1
- package/topbar-preferences/README.md +1 -1
- package/types/tectra-ng-blocks-actions-menu.d.ts +9 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-layout.d.ts +10 -3
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-command-palette.d.ts +38 -5
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
- package/types/tectra-ng-blocks-console-layout.d.ts +58 -9
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-cookie-notice.d.ts +5 -5
- package/types/tectra-ng-blocks-filters-panel.d.ts +48 -4
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +47 -7
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-public-header.d.ts +9 -2
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-wizard.d.ts +34 -6
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
- package/types/tectra-ng-blocks.d.ts +1 -1
- package/wizard/README.md +21 -3
|
@@ -107,7 +107,7 @@ var TxMascot = class TxMascot {
|
|
|
107
107
|
}
|
|
108
108
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
109
109
|
minVersion: "12.0.0",
|
|
110
|
-
version: "22.2.
|
|
110
|
+
version: "22.2.6",
|
|
111
111
|
ngImport: i0,
|
|
112
112
|
type: TxMascot,
|
|
113
113
|
deps: [],
|
|
@@ -115,7 +115,7 @@ var TxMascot = class TxMascot {
|
|
|
115
115
|
});
|
|
116
116
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
117
117
|
minVersion: "17.0.0",
|
|
118
|
-
version: "22.2.
|
|
118
|
+
version: "22.2.6",
|
|
119
119
|
type: TxMascot,
|
|
120
120
|
isStandalone: true,
|
|
121
121
|
selector: "tx-mascot",
|
|
@@ -198,7 +198,7 @@ var TxMascot = class TxMascot {
|
|
|
198
198
|
};
|
|
199
199
|
i0.ɵɵngDeclareClassMetadata({
|
|
200
200
|
minVersion: "12.0.0",
|
|
201
|
-
version: "22.2.
|
|
201
|
+
version: "22.2.6",
|
|
202
202
|
ngImport: i0,
|
|
203
203
|
type: TxMascot,
|
|
204
204
|
decorators: [{
|
|
@@ -43,7 +43,7 @@ var TxNetworkService = class TxNetworkService {
|
|
|
43
43
|
}
|
|
44
44
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
45
45
|
minVersion: "12.0.0",
|
|
46
|
-
version: "22.2.
|
|
46
|
+
version: "22.2.6",
|
|
47
47
|
ngImport: i0,
|
|
48
48
|
type: TxNetworkService,
|
|
49
49
|
deps: [],
|
|
@@ -51,7 +51,7 @@ var TxNetworkService = class TxNetworkService {
|
|
|
51
51
|
});
|
|
52
52
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
53
53
|
minVersion: "12.0.0",
|
|
54
|
-
version: "22.2.
|
|
54
|
+
version: "22.2.6",
|
|
55
55
|
ngImport: i0,
|
|
56
56
|
type: TxNetworkService,
|
|
57
57
|
providedIn: "root"
|
|
@@ -59,7 +59,7 @@ var TxNetworkService = class TxNetworkService {
|
|
|
59
59
|
};
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({
|
|
61
61
|
minVersion: "12.0.0",
|
|
62
|
-
version: "22.2.
|
|
62
|
+
version: "22.2.6",
|
|
63
63
|
ngImport: i0,
|
|
64
64
|
type: TxNetworkService,
|
|
65
65
|
decorators: [{
|
|
@@ -144,7 +144,7 @@ var TxNetworkStatus = class TxNetworkStatus {
|
|
|
144
144
|
}
|
|
145
145
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
146
146
|
minVersion: "12.0.0",
|
|
147
|
-
version: "22.2.
|
|
147
|
+
version: "22.2.6",
|
|
148
148
|
ngImport: i0,
|
|
149
149
|
type: TxNetworkStatus,
|
|
150
150
|
deps: [],
|
|
@@ -152,7 +152,7 @@ var TxNetworkStatus = class TxNetworkStatus {
|
|
|
152
152
|
});
|
|
153
153
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
154
154
|
minVersion: "17.0.0",
|
|
155
|
-
version: "22.2.
|
|
155
|
+
version: "22.2.6",
|
|
156
156
|
type: TxNetworkStatus,
|
|
157
157
|
isStandalone: true,
|
|
158
158
|
selector: "tx-network-status",
|
|
@@ -279,7 +279,7 @@ var TxNetworkStatus = class TxNetworkStatus {
|
|
|
279
279
|
};
|
|
280
280
|
i0.ɵɵngDeclareClassMetadata({
|
|
281
281
|
minVersion: "12.0.0",
|
|
282
|
-
version: "22.2.
|
|
282
|
+
version: "22.2.6",
|
|
283
283
|
ngImport: i0,
|
|
284
284
|
type: TxNetworkStatus,
|
|
285
285
|
decorators: [{
|
|
@@ -30,7 +30,7 @@ var TxPageHeader = class TxPageHeader {
|
|
|
30
30
|
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
31
31
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
32
32
|
minVersion: "12.0.0",
|
|
33
|
-
version: "22.2.
|
|
33
|
+
version: "22.2.6",
|
|
34
34
|
ngImport: i0,
|
|
35
35
|
type: TxPageHeader,
|
|
36
36
|
deps: [],
|
|
@@ -38,7 +38,7 @@ var TxPageHeader = class TxPageHeader {
|
|
|
38
38
|
});
|
|
39
39
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
40
40
|
minVersion: "17.0.0",
|
|
41
|
-
version: "22.2.
|
|
41
|
+
version: "22.2.6",
|
|
42
42
|
type: TxPageHeader,
|
|
43
43
|
isStandalone: true,
|
|
44
44
|
selector: "tx-page-header",
|
|
@@ -104,7 +104,7 @@ var TxPageHeader = class TxPageHeader {
|
|
|
104
104
|
},
|
|
105
105
|
ngImport: i0,
|
|
106
106
|
template: "<div class=\"tx-page-header__heading\" [class]=\"passThrough().heading?.class\" [style]=\"passThrough().heading?.style\">\n <ng-template #titleText>{{ title() }}</ng-template>\n @switch (headingLevel()) {\n @case (2) {\n <h2 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2>\n }\n @case (3) {\n <h3 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3>\n }\n @case (4) {\n <h4 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4>\n }\n @case (5) {\n <h5 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5>\n }\n @case (6) {\n <h6 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6>\n }\n @default {\n <h1 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1>\n }\n }\n @if (subtitle()) {\n <p class=\"tx-page-header__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n</div>\n<div class=\"tx-page-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content />\n</div>\n",
|
|
107
|
-
styles: [":host{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}.tx-page-header__heading{display:flex;flex-direction:column;min-width:0}.tx-page-header__title,.tx-page-header__subtitle{margin:0}.tx-page-header__actions{display:flex;flex-wrap:wrap;align-items:center}.tx-page-header__actions:empty{display:none}:host([data-styled]){gap:var(--tx-page-header-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-page-header__heading{gap:var(--tx-page-header-heading-gap)}:host([data-styled]) .tx-page-header__title{color:var(--tx-page-header-title-color);font-size:var(--tx-page-header-title-font-size);font-weight:var(--tx-page-header-title-font-weight);line-height:var(--tx-page-header-title-line-height);letter-spacing:var(--tx-page-header-title-letter-spacing)}:host([data-styled]) .tx-page-header__subtitle{color:var(--tx-page-header-subtitle-color);font-size:var(--tx-page-header-subtitle-font-size);font-variant-numeric:tabular-nums;line-height:var(--tx-page-header-subtitle-line-height)}:host([data-styled]) .tx-page-header__actions{--tx-button-secondary-background: var(--tx-page-header-secondary-button-background);--tx-button-secondary-hover-background: var(--tx-page-header-secondary-button-hover-background);--tx-button-secondary-active-background: var(--tx-page-header-secondary-button-active-background);--tx-button-secondary-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-hover-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-active-border-color: var(--tx-page-header-secondary-button-border-color);gap:var(--tx-page-header-actions-gap)}\n"],
|
|
107
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}.tx-page-header__heading{display:flex;flex-direction:column;min-width:0}.tx-page-header__title,.tx-page-header__subtitle{margin:0}.tx-page-header__actions{display:flex;flex-wrap:wrap;align-items:center}.tx-page-header__actions:empty{display:none}:host([data-styled]){gap:var(--tx-page-header-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-page-header__heading{gap:var(--tx-page-header-heading-gap)}:host([data-styled]) .tx-page-header__title{color:var(--tx-page-header-title-color);font-size:var(--tx-page-header-title-font-size);font-weight:var(--tx-page-header-title-font-weight);line-height:var(--tx-page-header-title-line-height);letter-spacing:var(--tx-page-header-title-letter-spacing)}:host([data-styled]) .tx-page-header__subtitle{color:var(--tx-page-header-subtitle-color);font-size:var(--tx-page-header-subtitle-font-size);font-variant-numeric:tabular-nums;line-height:var(--tx-page-header-subtitle-line-height)}:host([data-styled]) .tx-page-header__actions{--tx-button-secondary-background: var(--tx-page-header-secondary-button-background);--tx-button-secondary-hover-background: var(--tx-page-header-secondary-button-hover-background);--tx-button-secondary-active-background: var(--tx-page-header-secondary-button-active-background);--tx-button-secondary-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-hover-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-active-border-color: var(--tx-page-header-secondary-button-border-color);gap:var(--tx-page-header-actions-gap)}:host([data-styled]) .tx-page-header__actions ::ng-deep .tx-button[data-styled][data-severity=secondary]:not([data-variant],.tx-button--raised,:focus-visible){box-shadow:var(--tx-page-header-secondary-button-shadow)}\n"],
|
|
108
108
|
dependencies: [{
|
|
109
109
|
kind: "directive",
|
|
110
110
|
type: NgTemplateOutlet,
|
|
@@ -121,7 +121,7 @@ var TxPageHeader = class TxPageHeader {
|
|
|
121
121
|
};
|
|
122
122
|
i0.ɵɵngDeclareClassMetadata({
|
|
123
123
|
minVersion: "12.0.0",
|
|
124
|
-
version: "22.2.
|
|
124
|
+
version: "22.2.6",
|
|
125
125
|
ngImport: i0,
|
|
126
126
|
type: TxPageHeader,
|
|
127
127
|
decorators: [{
|
|
@@ -139,7 +139,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
139
139
|
},
|
|
140
140
|
viewProviders: [provideTxIconDefaults(PAGE_HEADER_ICON_DEFAULTS)],
|
|
141
141
|
template: "<div class=\"tx-page-header__heading\" [class]=\"passThrough().heading?.class\" [style]=\"passThrough().heading?.style\">\n <ng-template #titleText>{{ title() }}</ng-template>\n @switch (headingLevel()) {\n @case (2) {\n <h2 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2>\n }\n @case (3) {\n <h3 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3>\n }\n @case (4) {\n <h4 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4>\n }\n @case (5) {\n <h5 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5>\n }\n @case (6) {\n <h6 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6>\n }\n @default {\n <h1 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1>\n }\n }\n @if (subtitle()) {\n <p class=\"tx-page-header__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n</div>\n<div class=\"tx-page-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content />\n</div>\n",
|
|
142
|
-
styles: [":host{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}.tx-page-header__heading{display:flex;flex-direction:column;min-width:0}.tx-page-header__title,.tx-page-header__subtitle{margin:0}.tx-page-header__actions{display:flex;flex-wrap:wrap;align-items:center}.tx-page-header__actions:empty{display:none}:host([data-styled]){gap:var(--tx-page-header-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-page-header__heading{gap:var(--tx-page-header-heading-gap)}:host([data-styled]) .tx-page-header__title{color:var(--tx-page-header-title-color);font-size:var(--tx-page-header-title-font-size);font-weight:var(--tx-page-header-title-font-weight);line-height:var(--tx-page-header-title-line-height);letter-spacing:var(--tx-page-header-title-letter-spacing)}:host([data-styled]) .tx-page-header__subtitle{color:var(--tx-page-header-subtitle-color);font-size:var(--tx-page-header-subtitle-font-size);font-variant-numeric:tabular-nums;line-height:var(--tx-page-header-subtitle-line-height)}:host([data-styled]) .tx-page-header__actions{--tx-button-secondary-background: var(--tx-page-header-secondary-button-background);--tx-button-secondary-hover-background: var(--tx-page-header-secondary-button-hover-background);--tx-button-secondary-active-background: var(--tx-page-header-secondary-button-active-background);--tx-button-secondary-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-hover-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-active-border-color: var(--tx-page-header-secondary-button-border-color);gap:var(--tx-page-header-actions-gap)}\n"]
|
|
142
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}.tx-page-header__heading{display:flex;flex-direction:column;min-width:0}.tx-page-header__title,.tx-page-header__subtitle{margin:0}.tx-page-header__actions{display:flex;flex-wrap:wrap;align-items:center}.tx-page-header__actions:empty{display:none}:host([data-styled]){gap:var(--tx-page-header-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-page-header__heading{gap:var(--tx-page-header-heading-gap)}:host([data-styled]) .tx-page-header__title{color:var(--tx-page-header-title-color);font-size:var(--tx-page-header-title-font-size);font-weight:var(--tx-page-header-title-font-weight);line-height:var(--tx-page-header-title-line-height);letter-spacing:var(--tx-page-header-title-letter-spacing)}:host([data-styled]) .tx-page-header__subtitle{color:var(--tx-page-header-subtitle-color);font-size:var(--tx-page-header-subtitle-font-size);font-variant-numeric:tabular-nums;line-height:var(--tx-page-header-subtitle-line-height)}:host([data-styled]) .tx-page-header__actions{--tx-button-secondary-background: var(--tx-page-header-secondary-button-background);--tx-button-secondary-hover-background: var(--tx-page-header-secondary-button-hover-background);--tx-button-secondary-active-background: var(--tx-page-header-secondary-button-active-background);--tx-button-secondary-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-hover-border-color: var(--tx-page-header-secondary-button-border-color);--tx-button-secondary-active-border-color: var(--tx-page-header-secondary-button-border-color);gap:var(--tx-page-header-actions-gap)}:host([data-styled]) .tx-page-header__actions ::ng-deep .tx-button[data-styled][data-severity=secondary]:not([data-variant],.tx-button--raised,:focus-visible){box-shadow:var(--tx-page-header-secondary-button-shadow)}\n"]
|
|
143
143
|
}]
|
|
144
144
|
}],
|
|
145
145
|
propDecorators: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-page-header.mjs","names":[],"sources":["../../../../packages/blocks/page-header/src/page-header.icons.ts","../../../../packages/blocks/page-header/src/page-header.theme.ts","../../../../packages/blocks/page-header/src/page-header.component.ts","../../../../packages/blocks/page-header/src/page-header.component.html"],"sourcesContent":["import { TxIconSet, txIconHeading } from '@tectra-ng/icons';\n\nexport const PAGE_HEADER_ICON_DEFAULTS: TxIconSet = {\n heading: txIconHeading,\n};\n","import { buttonTokens, pageHeaderTokens } from '@tectra-ng/themes';\n\nexport const PAGE_HEADER_THEME = {\n button: buttonTokens,\n pageHeader: pageHeaderTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraPageHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPageHeaderLevel, TxPageHeaderPart } from './page-header.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { PAGE_HEADER_ICON_DEFAULTS } from './page-header.icons';\nimport { PAGE_HEADER_THEME } from './page-header.theme';\n\n@Component({\n selector: 'tx-page-header',\n imports: [NgTemplateOutlet],\n templateUrl: './page-header.component.html',\n styleUrl: './page-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-page-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(PAGE_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPageHeader {\n private readonly pageHeaderTheme = injectTokens(PAGE_HEADER_THEME);\n\n readonly title = input.required<string>();\n readonly subtitle = input<string | undefined>(undefined);\n readonly headingLevel = input<TxPageHeaderLevel>(1);\n readonly dt = input<TectraDeepPartial<TectraPageHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPageHeaderPart, TxPageHeader> | 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('pageHeader', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-page-header'), ...this.passThrough().root?.style }));\n}\n","<div class=\"tx-page-header__heading\" [class]=\"passThrough().heading?.class\" [style]=\"passThrough().heading?.style\">\n <ng-template #titleText>{{ title() }}</ng-template>\n @switch (headingLevel()) {\n @case (2) {\n <h2 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2>\n }\n @case (3) {\n <h3 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3>\n }\n @case (4) {\n <h4 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4>\n }\n @case (5) {\n <h5 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5>\n }\n @case (6) {\n <h6 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6>\n }\n @default {\n <h1 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1>\n }\n }\n @if (subtitle()) {\n <p class=\"tx-page-header__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n</div>\n<div class=\"tx-page-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content />\n</div>\n"],"mappings":";;;;;;;AAEA,MAAa,4BAAuC,EAClD,SAAS,cACV;ACFD,MAAa,oBAAoB;CAC/B,QAAQ;CACR,YAAY;AACb;ACoBD,IAAa,eAAb,MAAa,aAAY;CACN,kBAAkB,aAAa,iBAAiB;CAExD,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,eAAe,MAAyB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,KAAK,MAA6D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC5E,KAAK,MAAiE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAChF,YAAY,MAAwC,QAAU,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AA;EAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,cAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UCzBzB;EA6BA,QAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-page-header.mjs","names":[],"sources":["../../../../packages/blocks/page-header/src/page-header.icons.ts","../../../../packages/blocks/page-header/src/page-header.theme.ts","../../../../packages/blocks/page-header/src/page-header.component.ts","../../../../packages/blocks/page-header/src/page-header.component.html"],"sourcesContent":["import { TxIconSet, txIconHeading } from '@tectra-ng/icons';\n\nexport const PAGE_HEADER_ICON_DEFAULTS: TxIconSet = {\n heading: txIconHeading,\n};\n","import { buttonTokens, pageHeaderTokens } from '@tectra-ng/themes';\n\nexport const PAGE_HEADER_THEME = {\n button: buttonTokens,\n pageHeader: pageHeaderTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraPageHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPageHeaderLevel, TxPageHeaderPart } from './page-header.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { PAGE_HEADER_ICON_DEFAULTS } from './page-header.icons';\nimport { PAGE_HEADER_THEME } from './page-header.theme';\n\n@Component({\n selector: 'tx-page-header',\n imports: [NgTemplateOutlet],\n templateUrl: './page-header.component.html',\n styleUrl: './page-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-page-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(PAGE_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPageHeader {\n private readonly pageHeaderTheme = injectTokens(PAGE_HEADER_THEME);\n\n readonly title = input.required<string>();\n readonly subtitle = input<string | undefined>(undefined);\n readonly headingLevel = input<TxPageHeaderLevel>(1);\n readonly dt = input<TectraDeepPartial<TectraPageHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPageHeaderPart, TxPageHeader> | 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('pageHeader', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-page-header'), ...this.passThrough().root?.style }));\n}\n","<div class=\"tx-page-header__heading\" [class]=\"passThrough().heading?.class\" [style]=\"passThrough().heading?.style\">\n <ng-template #titleText>{{ title() }}</ng-template>\n @switch (headingLevel()) {\n @case (2) {\n <h2 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h2>\n }\n @case (3) {\n <h3 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h3>\n }\n @case (4) {\n <h4 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h4>\n }\n @case (5) {\n <h5 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h5>\n }\n @case (6) {\n <h6 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h6>\n }\n @default {\n <h1 class=\"tx-page-header__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\"><ng-container [ngTemplateOutlet]=\"titleText\" /></h1>\n }\n }\n @if (subtitle()) {\n <p class=\"tx-page-header__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n</div>\n<div class=\"tx-page-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content />\n</div>\n"],"mappings":";;;;;;;AAEA,MAAa,4BAAuC,EAClD,SAAS,cACV;ACFD,MAAa,oBAAoB;CAC/B,QAAQ;CACR,YAAY;AACb;ACoBD,IAAa,eAAb,MAAa,aAAY;CACN,kBAAkB,aAAa,iBAAiB;CAExD,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,eAAe,MAAyB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,KAAK,MAA6D,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC5E,KAAK,MAAiE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAChF,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAC9D,WAAW,MAAoC,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAEtF,aAAa,eAAe,KAAK,QAAQ;CACzC,cAAc,kBAAkB,cAAc,MAAM,KAAK,IAAI,KAAK,SAAS;CAC3E,YAAY,gBAAgB;EAAE,GAAG,cAAc,KAAK,GAAE,GAAI,kBAAkB;EAAG,GAAG,KAAK,YAAW,CAA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;;AAEtD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EAfxB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,SACjB,CAAC,gBAAgB;GAAC,iBAGV,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,gBAAgB;GACjB;GAAA,eACc,CAAC,sBAAsB,yBAAyB,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,21DAAA;EAAA,CAAA"}
|
|
@@ -42,7 +42,7 @@ var TxPinnedTabsDialog = class TxPinnedTabsDialog {
|
|
|
42
42
|
}
|
|
43
43
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
44
44
|
minVersion: "12.0.0",
|
|
45
|
-
version: "22.2.
|
|
45
|
+
version: "22.2.6",
|
|
46
46
|
ngImport: i0,
|
|
47
47
|
type: TxPinnedTabsDialog,
|
|
48
48
|
deps: [],
|
|
@@ -50,7 +50,7 @@ var TxPinnedTabsDialog = class TxPinnedTabsDialog {
|
|
|
50
50
|
});
|
|
51
51
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
52
52
|
minVersion: "17.0.0",
|
|
53
|
-
version: "22.2.
|
|
53
|
+
version: "22.2.6",
|
|
54
54
|
type: TxPinnedTabsDialog,
|
|
55
55
|
isStandalone: true,
|
|
56
56
|
selector: "tx-pinned-tabs-dialog",
|
|
@@ -176,7 +176,7 @@ var TxPinnedTabsDialog = class TxPinnedTabsDialog {
|
|
|
176
176
|
};
|
|
177
177
|
i0.ɵɵngDeclareClassMetadata({
|
|
178
178
|
minVersion: "12.0.0",
|
|
179
|
-
version: "22.2.
|
|
179
|
+
version: "22.2.6",
|
|
180
180
|
ngImport: i0,
|
|
181
181
|
type: TxPinnedTabsDialog,
|
|
182
182
|
decorators: [{
|
|
@@ -340,7 +340,7 @@ var TxPinnedTabs = class TxPinnedTabs {
|
|
|
340
340
|
}
|
|
341
341
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
342
342
|
minVersion: "12.0.0",
|
|
343
|
-
version: "22.2.
|
|
343
|
+
version: "22.2.6",
|
|
344
344
|
ngImport: i0,
|
|
345
345
|
type: TxPinnedTabs,
|
|
346
346
|
deps: [],
|
|
@@ -348,7 +348,7 @@ var TxPinnedTabs = class TxPinnedTabs {
|
|
|
348
348
|
});
|
|
349
349
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
350
350
|
minVersion: "17.0.0",
|
|
351
|
-
version: "22.2.
|
|
351
|
+
version: "22.2.6",
|
|
352
352
|
type: TxPinnedTabs,
|
|
353
353
|
isStandalone: true,
|
|
354
354
|
selector: "tx-pinned-tabs",
|
|
@@ -585,7 +585,7 @@ var TxPinnedTabs = class TxPinnedTabs {
|
|
|
585
585
|
};
|
|
586
586
|
i0.ɵɵngDeclareClassMetadata({
|
|
587
587
|
minVersion: "12.0.0",
|
|
588
|
-
version: "22.2.
|
|
588
|
+
version: "22.2.6",
|
|
589
589
|
ngImport: i0,
|
|
590
590
|
type: TxPinnedTabs,
|
|
591
591
|
decorators: [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, signal, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, output, signal, viewChild } from "@angular/core";
|
|
3
3
|
import { NgTemplateOutlet } from "@angular/common";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
5
5
|
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
@@ -12,7 +12,7 @@ import { TxTopbarPreferences } from "@tectra-ng/blocks/topbar-preferences";
|
|
|
12
12
|
var TxPublicHeaderBrand = class TxPublicHeaderBrand {
|
|
13
13
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
14
|
minVersion: "12.0.0",
|
|
15
|
-
version: "22.2.
|
|
15
|
+
version: "22.2.6",
|
|
16
16
|
ngImport: i0,
|
|
17
17
|
type: TxPublicHeaderBrand,
|
|
18
18
|
deps: [],
|
|
@@ -20,7 +20,7 @@ var TxPublicHeaderBrand = class TxPublicHeaderBrand {
|
|
|
20
20
|
});
|
|
21
21
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
22
22
|
minVersion: "14.0.0",
|
|
23
|
-
version: "22.2.
|
|
23
|
+
version: "22.2.6",
|
|
24
24
|
type: TxPublicHeaderBrand,
|
|
25
25
|
isStandalone: true,
|
|
26
26
|
selector: "[txPublicHeaderBrand]",
|
|
@@ -29,7 +29,7 @@ var TxPublicHeaderBrand = class TxPublicHeaderBrand {
|
|
|
29
29
|
};
|
|
30
30
|
i0.ɵɵngDeclareClassMetadata({
|
|
31
31
|
minVersion: "12.0.0",
|
|
32
|
-
version: "22.2.
|
|
32
|
+
version: "22.2.6",
|
|
33
33
|
ngImport: i0,
|
|
34
34
|
type: TxPublicHeaderBrand,
|
|
35
35
|
decorators: [{
|
|
@@ -66,6 +66,8 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
66
66
|
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
67
67
|
transform: optionalBoolean
|
|
68
68
|
});
|
|
69
|
+
languageChange = output();
|
|
70
|
+
modeChange = output();
|
|
69
71
|
isUnstyled = injectUnstyled(this.unstyled);
|
|
70
72
|
passThrough = injectPassThrough("publicHeader", this, this.pt, this.ptOptions);
|
|
71
73
|
translations = injectTranslations();
|
|
@@ -149,7 +151,7 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
149
151
|
}
|
|
150
152
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
151
153
|
minVersion: "12.0.0",
|
|
152
|
-
version: "22.2.
|
|
154
|
+
version: "22.2.6",
|
|
153
155
|
ngImport: i0,
|
|
154
156
|
type: TxPublicHeader,
|
|
155
157
|
deps: [],
|
|
@@ -157,7 +159,7 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
157
159
|
});
|
|
158
160
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
159
161
|
minVersion: "17.0.0",
|
|
160
|
-
version: "22.2.
|
|
162
|
+
version: "22.2.6",
|
|
161
163
|
type: TxPublicHeader,
|
|
162
164
|
isStandalone: true,
|
|
163
165
|
selector: "tx-public-header",
|
|
@@ -226,6 +228,10 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
226
228
|
transformFunction: null
|
|
227
229
|
}
|
|
228
230
|
},
|
|
231
|
+
outputs: {
|
|
232
|
+
languageChange: "languageChange",
|
|
233
|
+
modeChange: "modeChange"
|
|
234
|
+
},
|
|
229
235
|
host: {
|
|
230
236
|
listeners: { "document:keydown.escape": "onEscape()" },
|
|
231
237
|
properties: {
|
|
@@ -253,7 +259,7 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
253
259
|
isSignal: true
|
|
254
260
|
}],
|
|
255
261
|
ngImport: i0,
|
|
256
|
-
template: "<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences
|
|
262
|
+
template: "<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences\n class=\"tx-public-header__preferences\"\n [layout]=\"compact() ? 'stacked' : 'inline'\"\n [unstyled]=\"isUnstyled()\"\n (languageChange)=\"languageChange.emit($event)\"\n (modeChange)=\"modeChange.emit($event)\"\n />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n",
|
|
257
263
|
styles: [":host{position:sticky;top:0;display:block}:host([data-responsive=container]){container:tx-public-header/inline-size;contain:layout}.tx-public-header__bar{position:relative}.tx-public-header__inner{display:flex;align-items:center;box-sizing:border-box;margin:0 auto}.tx-public-header__brand{display:flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-public-header__logo{height:auto}.tx-public-header__name{text-box:trim-both cap alphabetic}.tx-public-header__panel{display:flex;flex:1;align-items:center;min-width:0}.tx-public-header__nav{display:flex;align-items:center;min-width:0}.tx-public-header__nav ::ng-deep [txPublicHeaderNav]{display:flex;align-items:center}.tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{text-decoration:none}.tx-public-header__end{display:flex;flex-shrink:0;align-items:center;margin-left:auto}.tx-public-header__actions{display:flex;flex-shrink:0;align-items:center}.tx-public-header__actions ::ng-deep [txPublicHeaderActions]{display:flex;align-items:center}.tx-public-header__toggle{display:none;place-items:center;margin:0 0 0 auto;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}:host([data-styled]){z-index:var(--tx-public-header-z-index);font-family:var(--tx-font-family)}:host([data-styled]) .tx-public-header__bar{border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-background);-webkit-backdrop-filter:var(--tx-public-header-backdrop-filter);backdrop-filter:var(--tx-public-header-backdrop-filter)}:host([data-styled]) .tx-public-header__inner{gap:var(--tx-public-header-gap);max-width:var(--tx-public-header-max-width);height:var(--tx-public-header-height);padding:0 var(--tx-public-header-padding-x)}:host([data-styled]) .tx-public-header__brand{gap:var(--tx-public-header-brand-gap);border-radius:var(--tx-public-header-brand-border-radius);color:var(--tx-public-header-brand-color);font-size:var(--tx-public-header-brand-font-size);font-weight:var(--tx-public-header-brand-font-weight);letter-spacing:var(--tx-public-header-brand-letter-spacing)}:host([data-styled]) .tx-public-header__brand:focus-visible{outline:none;box-shadow:var(--tx-public-header-focus-ring-shadow)}:host([data-styled]) .tx-public-header__logo{width:var(--tx-public-header-brand-logo-width)}:host([data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-gap)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:var(--tx-public-header-nav-gap)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-nav-link-padding-y) var(--tx-public-header-nav-link-padding-x);border-radius:var(--tx-public-header-nav-link-border-radius);color:var(--tx-public-header-nav-link-color);font-size:var(--tx-public-header-nav-link-font-size);transition:color var(--tx-public-header-panel-duration),background-color var(--tx-public-header-panel-duration)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:hover{background:var(--tx-public-header-nav-link-hover-background);color:var(--tx-public-header-nav-link-hover-color)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:focus-visible{outline:none;box-shadow:var(--tx-public-header-focus-ring-shadow)}:host([data-styled]) .tx-public-header__end{gap:var(--tx-public-header-end-gap)}:host([data-styled]) .tx-public-header__actions,:host([data-styled]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{gap:var(--tx-public-header-end-actions-gap)}:host([data-styled]) .tx-public-header__toggle{width:var(--tx-public-header-toggle-size);height:var(--tx-public-header-toggle-size);border-radius:50%;box-shadow:inset 0 0 0 1px var(--tx-public-header-toggle-ring-color);color:var(--tx-public-header-toggle-color);font-size:var(--tx-public-header-toggle-icon-size);transition:background-color var(--tx-public-header-panel-duration)}:host([data-styled]) .tx-public-header__toggle:hover{background:var(--tx-public-header-toggle-hover-background)}:host([data-styled]) .tx-public-header__toggle:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--tx-public-header-toggle-ring-color),var(--tx-public-header-focus-ring-shadow)}@media(width<768px){:host([data-responsive=viewport]) .tx-public-header__toggle{display:grid}:host([data-responsive=viewport]) .tx-public-header__panel{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch}:host([data-responsive=viewport].tx-public-header--open) .tx-public-header__panel,:host([data-responsive=viewport].tx-public-header--closing) .tx-public-header__panel{display:flex}:host([data-responsive=viewport]) .tx-public-header__nav{flex-direction:column;align-items:stretch}:host([data-responsive=viewport]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{flex-direction:column;align-items:stretch}:host([data-responsive=viewport]) .tx-public-header__end{flex-direction:column;align-items:stretch;margin-left:0}:host([data-responsive=viewport]) .tx-public-header__actions,:host([data-responsive=viewport]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{flex-direction:column;align-items:stretch}:host([data-responsive=viewport][data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-panel-gap);padding:var(--tx-public-header-panel-padding);border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-panel-background);box-shadow:var(--tx-public-header-panel-shadow)}:host([data-responsive=viewport][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:0}:host([data-responsive=viewport][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-panel-link-padding);border-bottom:1px solid var(--tx-public-header-border-color);border-radius:var(--tx-public-header-panel-link-border-radius);color:var(--tx-public-header-panel-link-color);font-size:var(--tx-public-header-panel-link-font-size)}:host([data-responsive=viewport][data-styled]) .tx-public-header__end{gap:var(--tx-public-header-panel-gap)}:host([data-responsive=viewport][data-styled].tx-public-header--open) .tx-public-header__panel{animation:tx-public-header-panel-in var(--tx-public-header-panel-duration) ease-out}:host([data-responsive=viewport][data-styled].tx-public-header--closing) .tx-public-header__panel{animation:tx-public-header-panel-out var(--tx-public-header-panel-duration) ease-in forwards}:host([data-responsive=viewport]) .tx-public-header__actions ::ng-deep .tx-button{justify-content:center;width:100%}}@container tx-public-header (width < 768px){:host([data-responsive=container]) .tx-public-header__toggle{display:grid}:host([data-responsive=container]) .tx-public-header__panel{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch}:host([data-responsive=container].tx-public-header--open) .tx-public-header__panel,:host([data-responsive=container].tx-public-header--closing) .tx-public-header__panel{display:flex}:host([data-responsive=container]) .tx-public-header__nav{flex-direction:column;align-items:stretch}:host([data-responsive=container]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{flex-direction:column;align-items:stretch}:host([data-responsive=container]) .tx-public-header__end{flex-direction:column;align-items:stretch;margin-left:0}:host([data-responsive=container]) .tx-public-header__actions,:host([data-responsive=container]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{flex-direction:column;align-items:stretch}:host([data-responsive=container][data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-panel-gap);padding:var(--tx-public-header-panel-padding);border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-panel-background);box-shadow:var(--tx-public-header-panel-shadow)}:host([data-responsive=container][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:0}:host([data-responsive=container][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-panel-link-padding);border-bottom:1px solid var(--tx-public-header-border-color);border-radius:var(--tx-public-header-panel-link-border-radius);color:var(--tx-public-header-panel-link-color);font-size:var(--tx-public-header-panel-link-font-size)}:host([data-responsive=container][data-styled]) .tx-public-header__end{gap:var(--tx-public-header-panel-gap)}:host([data-responsive=container][data-styled].tx-public-header--open) .tx-public-header__panel{animation:tx-public-header-panel-in var(--tx-public-header-panel-duration) ease-out}:host([data-responsive=container][data-styled].tx-public-header--closing) .tx-public-header__panel{animation:tx-public-header-panel-out var(--tx-public-header-panel-duration) ease-in forwards}:host([data-responsive=container]) .tx-public-header__actions ::ng-deep .tx-button{justify-content:center;width:100%}}@keyframes tx-public-header-panel-in{0%{opacity:0;transform:translateY(-6px)}}@keyframes tx-public-header-panel-out{to{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-public-header__panel{animation:none!important}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a,:host([data-styled]) .tx-public-header__toggle{transition:none}}\n"],
|
|
258
264
|
dependencies: [
|
|
259
265
|
{
|
|
@@ -314,7 +320,7 @@ var TxPublicHeader = class TxPublicHeader {
|
|
|
314
320
|
};
|
|
315
321
|
i0.ɵɵngDeclareClassMetadata({
|
|
316
322
|
minVersion: "12.0.0",
|
|
317
|
-
version: "22.2.
|
|
323
|
+
version: "22.2.6",
|
|
318
324
|
ngImport: i0,
|
|
319
325
|
type: TxPublicHeader,
|
|
320
326
|
decorators: [{
|
|
@@ -339,7 +345,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
339
345
|
"(document:keydown.escape)": "onEscape()"
|
|
340
346
|
},
|
|
341
347
|
viewProviders: [provideTxIconDefaults(PUBLIC_HEADER_ICON_DEFAULTS)],
|
|
342
|
-
template: "<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences
|
|
348
|
+
template: "<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences\n class=\"tx-public-header__preferences\"\n [layout]=\"compact() ? 'stacked' : 'inline'\"\n [unstyled]=\"isUnstyled()\"\n (languageChange)=\"languageChange.emit($event)\"\n (modeChange)=\"modeChange.emit($event)\"\n />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n",
|
|
343
349
|
styles: [":host{position:sticky;top:0;display:block}:host([data-responsive=container]){container:tx-public-header/inline-size;contain:layout}.tx-public-header__bar{position:relative}.tx-public-header__inner{display:flex;align-items:center;box-sizing:border-box;margin:0 auto}.tx-public-header__brand{display:flex;flex-shrink:0;align-items:center;color:inherit;text-decoration:none}.tx-public-header__logo{height:auto}.tx-public-header__name{text-box:trim-both cap alphabetic}.tx-public-header__panel{display:flex;flex:1;align-items:center;min-width:0}.tx-public-header__nav{display:flex;align-items:center;min-width:0}.tx-public-header__nav ::ng-deep [txPublicHeaderNav]{display:flex;align-items:center}.tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{text-decoration:none}.tx-public-header__end{display:flex;flex-shrink:0;align-items:center;margin-left:auto}.tx-public-header__actions{display:flex;flex-shrink:0;align-items:center}.tx-public-header__actions ::ng-deep [txPublicHeaderActions]{display:flex;align-items:center}.tx-public-header__toggle{display:none;place-items:center;margin:0 0 0 auto;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}:host([data-styled]){z-index:var(--tx-public-header-z-index);font-family:var(--tx-font-family)}:host([data-styled]) .tx-public-header__bar{border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-background);-webkit-backdrop-filter:var(--tx-public-header-backdrop-filter);backdrop-filter:var(--tx-public-header-backdrop-filter)}:host([data-styled]) .tx-public-header__inner{gap:var(--tx-public-header-gap);max-width:var(--tx-public-header-max-width);height:var(--tx-public-header-height);padding:0 var(--tx-public-header-padding-x)}:host([data-styled]) .tx-public-header__brand{gap:var(--tx-public-header-brand-gap);border-radius:var(--tx-public-header-brand-border-radius);color:var(--tx-public-header-brand-color);font-size:var(--tx-public-header-brand-font-size);font-weight:var(--tx-public-header-brand-font-weight);letter-spacing:var(--tx-public-header-brand-letter-spacing)}:host([data-styled]) .tx-public-header__brand:focus-visible{outline:none;box-shadow:var(--tx-public-header-focus-ring-shadow)}:host([data-styled]) .tx-public-header__logo{width:var(--tx-public-header-brand-logo-width)}:host([data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-gap)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:var(--tx-public-header-nav-gap)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-nav-link-padding-y) var(--tx-public-header-nav-link-padding-x);border-radius:var(--tx-public-header-nav-link-border-radius);color:var(--tx-public-header-nav-link-color);font-size:var(--tx-public-header-nav-link-font-size);transition:color var(--tx-public-header-panel-duration),background-color var(--tx-public-header-panel-duration)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:hover{background:var(--tx-public-header-nav-link-hover-background);color:var(--tx-public-header-nav-link-hover-color)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:focus-visible{outline:none;box-shadow:var(--tx-public-header-focus-ring-shadow)}:host([data-styled]) .tx-public-header__end{gap:var(--tx-public-header-end-gap)}:host([data-styled]) .tx-public-header__actions,:host([data-styled]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{gap:var(--tx-public-header-end-actions-gap)}:host([data-styled]) .tx-public-header__toggle{width:var(--tx-public-header-toggle-size);height:var(--tx-public-header-toggle-size);border-radius:50%;box-shadow:inset 0 0 0 1px var(--tx-public-header-toggle-ring-color);color:var(--tx-public-header-toggle-color);font-size:var(--tx-public-header-toggle-icon-size);transition:background-color var(--tx-public-header-panel-duration)}:host([data-styled]) .tx-public-header__toggle:hover{background:var(--tx-public-header-toggle-hover-background)}:host([data-styled]) .tx-public-header__toggle:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--tx-public-header-toggle-ring-color),var(--tx-public-header-focus-ring-shadow)}@media(width<768px){:host([data-responsive=viewport]) .tx-public-header__toggle{display:grid}:host([data-responsive=viewport]) .tx-public-header__panel{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch}:host([data-responsive=viewport].tx-public-header--open) .tx-public-header__panel,:host([data-responsive=viewport].tx-public-header--closing) .tx-public-header__panel{display:flex}:host([data-responsive=viewport]) .tx-public-header__nav{flex-direction:column;align-items:stretch}:host([data-responsive=viewport]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{flex-direction:column;align-items:stretch}:host([data-responsive=viewport]) .tx-public-header__end{flex-direction:column;align-items:stretch;margin-left:0}:host([data-responsive=viewport]) .tx-public-header__actions,:host([data-responsive=viewport]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{flex-direction:column;align-items:stretch}:host([data-responsive=viewport][data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-panel-gap);padding:var(--tx-public-header-panel-padding);border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-panel-background);box-shadow:var(--tx-public-header-panel-shadow)}:host([data-responsive=viewport][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:0}:host([data-responsive=viewport][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-panel-link-padding);border-bottom:1px solid var(--tx-public-header-border-color);border-radius:var(--tx-public-header-panel-link-border-radius);color:var(--tx-public-header-panel-link-color);font-size:var(--tx-public-header-panel-link-font-size)}:host([data-responsive=viewport][data-styled]) .tx-public-header__end{gap:var(--tx-public-header-panel-gap)}:host([data-responsive=viewport][data-styled].tx-public-header--open) .tx-public-header__panel{animation:tx-public-header-panel-in var(--tx-public-header-panel-duration) ease-out}:host([data-responsive=viewport][data-styled].tx-public-header--closing) .tx-public-header__panel{animation:tx-public-header-panel-out var(--tx-public-header-panel-duration) ease-in forwards}:host([data-responsive=viewport]) .tx-public-header__actions ::ng-deep .tx-button{justify-content:center;width:100%}}@container tx-public-header (width < 768px){:host([data-responsive=container]) .tx-public-header__toggle{display:grid}:host([data-responsive=container]) .tx-public-header__panel{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch}:host([data-responsive=container].tx-public-header--open) .tx-public-header__panel,:host([data-responsive=container].tx-public-header--closing) .tx-public-header__panel{display:flex}:host([data-responsive=container]) .tx-public-header__nav{flex-direction:column;align-items:stretch}:host([data-responsive=container]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{flex-direction:column;align-items:stretch}:host([data-responsive=container]) .tx-public-header__end{flex-direction:column;align-items:stretch;margin-left:0}:host([data-responsive=container]) .tx-public-header__actions,:host([data-responsive=container]) .tx-public-header__actions ::ng-deep [txPublicHeaderActions]{flex-direction:column;align-items:stretch}:host([data-responsive=container][data-styled]) .tx-public-header__panel{gap:var(--tx-public-header-panel-gap);padding:var(--tx-public-header-panel-padding);border-bottom:1px solid var(--tx-public-header-border-color);background:var(--tx-public-header-panel-background);box-shadow:var(--tx-public-header-panel-shadow)}:host([data-responsive=container][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]{gap:0}:host([data-responsive=container][data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a{padding:var(--tx-public-header-panel-link-padding);border-bottom:1px solid var(--tx-public-header-border-color);border-radius:var(--tx-public-header-panel-link-border-radius);color:var(--tx-public-header-panel-link-color);font-size:var(--tx-public-header-panel-link-font-size)}:host([data-responsive=container][data-styled]) .tx-public-header__end{gap:var(--tx-public-header-panel-gap)}:host([data-responsive=container][data-styled].tx-public-header--open) .tx-public-header__panel{animation:tx-public-header-panel-in var(--tx-public-header-panel-duration) ease-out}:host([data-responsive=container][data-styled].tx-public-header--closing) .tx-public-header__panel{animation:tx-public-header-panel-out var(--tx-public-header-panel-duration) ease-in forwards}:host([data-responsive=container]) .tx-public-header__actions ::ng-deep .tx-button{justify-content:center;width:100%}}@keyframes tx-public-header-panel-in{0%{opacity:0;transform:translateY(-6px)}}@keyframes tx-public-header-panel-out{to{opacity:0;transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-public-header__panel{animation:none!important}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a,:host([data-styled]) .tx-public-header__toggle{transition:none}}\n"]
|
|
344
350
|
}]
|
|
345
351
|
}],
|
|
@@ -424,6 +430,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
424
430
|
alias: "unstyled",
|
|
425
431
|
required: false
|
|
426
432
|
}]
|
|
433
|
+
}],
|
|
434
|
+
languageChange: [{
|
|
435
|
+
type: i0.Output,
|
|
436
|
+
args: ["languageChange"]
|
|
437
|
+
}],
|
|
438
|
+
modeChange: [{
|
|
439
|
+
type: i0.Output,
|
|
440
|
+
args: ["modeChange"]
|
|
427
441
|
}]
|
|
428
442
|
}
|
|
429
443
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-public-header.mjs","names":[],"sources":["../../../../packages/blocks/public-header/src/public-header-brand.directive.ts","../../../../packages/blocks/public-header/src/public-header.icons.ts","../../../../packages/blocks/public-header/src/public-header.theme.ts","../../../../packages/blocks/public-header/src/public-header.component.ts","../../../../packages/blocks/public-header/src/public-header.component.html"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({ selector: '[txPublicHeaderBrand]' })\nexport class TxPublicHeaderBrand {}\n","import { TxIconSet, txIconBars, txIconTimes } from '@tectra-ng/icons';\n\nexport const PUBLIC_HEADER_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n times: txIconTimes,\n};\n","import { publicHeaderTokens } from '@tectra-ng/themes';\n\nexport const PUBLIC_HEADER_THEME = {\n publicHeader: publicHeaderTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPublicHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTopbarPreferences } from '@tectra-ng/blocks/topbar-preferences';\nimport { TxPublicHeaderBrand } from './public-header-brand.directive';\nimport { TxPublicHeaderPart, TxPublicHeaderResponsive } from './public-header.types';\nimport { PUBLIC_HEADER_ICON_DEFAULTS } from './public-header.icons';\nimport { PUBLIC_HEADER_THEME } from './public-header.theme';\n\nconst COMPACT_WIDTH = 768;\nconst CLOSE_FALLBACK_MS = 600;\n\n@Component({\n selector: 'tx-public-header',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxTopbarPreferences],\n templateUrl: './public-header.component.html',\n styleUrl: './public-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-public-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-public-header--open]': 'open()',\n '[class.tx-public-header--closing]': 'closing()',\n '(document:keydown.escape)': 'onEscape()',\n },\n viewProviders: [provideTxIconDefaults(PUBLIC_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPublicHeader {\n private readonly publicHeaderTheme = injectTokens(PUBLIC_HEADER_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n protected readonly brandSlot = contentChild(TxPublicHeaderBrand);\n\n readonly brand = input.required<string>();\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[]>('/');\n readonly preferences = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly responsive = input<TxPublicHeaderResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraPublicHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPublicHeaderPart, TxPublicHeader> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('publicHeader', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly panelId = uniqueId('tx-public-header-panel');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-public-header'), ...this.passThrough().root?.style }));\n protected readonly homeHref = computed(() => {\n const link = this.homeLink();\n return typeof link === 'string' ? link : '/' + link.join('/');\n });\n\n readonly open = signal(false);\n readonly compact = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => clearTimeout(this.closingTimer));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (compact: boolean) => {\n this.compact.set(compact);\n if (!compact) {\n this.open.set(false);\n this.finishClosing();\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < COMPACT_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${COMPACT_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n toggle(): void {\n if (this.open()) {\n this.close();\n return;\n }\n this.finishClosing();\n this.open.set(true);\n }\n\n close(): void {\n if (!this.open()) {\n return;\n }\n this.open.set(false);\n if (this.compact() && !this.isUnstyled() && !this.reducedMotion()) {\n this.closing.set(true);\n clearTimeout(this.closingTimer);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n private reducedMotion(): boolean {\n return !!this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n protected onPanelClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target?.closest('a, button') && !target.closest('.tx-public-header__preferences')) {\n this.close();\n }\n }\n}\n","<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences class=\"tx-public-header__preferences\" [layout]=\"compact() ? 'stacked' : 'inline'\" [unstyled]=\"isUnstyled()\" />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAnB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAmB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAD/B,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,wBAAuB,CAAE;;;ACAhD,MAAa,8BAAyC;CACpD,MAAM;CACN,OAAO;AACR;ACHD,MAAa,sBAAsB,EACjC,cAAc,mBACf;ACyBD,MAAM,gBAAgB;AACtB,MAAM,oBAAoB;AAoB1B,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CAC1B,OAAO,OAAgC,UAAU;CACjD,eAAe,UAAyC,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACnE,SAAS,OAAO,gBAAgB,EAAE,UAAU,KAAI,CAAE,IAAI,OAAO,MAAM,IAAI;CACvE,YAAY,aAAa,qBAAoB,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAEvD,QAAQ,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,OAAO,MAA0B,QAAU,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;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-public-header.mjs","names":[],"sources":["../../../../packages/blocks/public-header/src/public-header-brand.directive.ts","../../../../packages/blocks/public-header/src/public-header.icons.ts","../../../../packages/blocks/public-header/src/public-header.theme.ts","../../../../packages/blocks/public-header/src/public-header.component.ts","../../../../packages/blocks/public-header/src/public-header.component.html"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({ selector: '[txPublicHeaderBrand]' })\nexport class TxPublicHeaderBrand {}\n","import { TxIconSet, txIconBars, txIconTimes } from '@tectra-ng/icons';\n\nexport const PUBLIC_HEADER_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n times: txIconTimes,\n};\n","import { publicHeaderTokens } from '@tectra-ng/themes';\n\nexport const PUBLIC_HEADER_THEME = {\n publicHeader: publicHeaderTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions, TxThemeMode } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPublicHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTopbarPreferences } from '@tectra-ng/blocks/topbar-preferences';\nimport { TxPublicHeaderBrand } from './public-header-brand.directive';\nimport { TxPublicHeaderPart, TxPublicHeaderResponsive } from './public-header.types';\nimport { PUBLIC_HEADER_ICON_DEFAULTS } from './public-header.icons';\nimport { PUBLIC_HEADER_THEME } from './public-header.theme';\n\nconst COMPACT_WIDTH = 768;\nconst CLOSE_FALLBACK_MS = 600;\n\n@Component({\n selector: 'tx-public-header',\n imports: [NgTemplateOutlet, RouterLink, TxIcon, TxTopbarPreferences],\n templateUrl: './public-header.component.html',\n styleUrl: './public-header.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-public-header',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n '[class.tx-public-header--open]': 'open()',\n '[class.tx-public-header--closing]': 'closing()',\n '(document:keydown.escape)': 'onEscape()',\n },\n viewProviders: [provideTxIconDefaults(PUBLIC_HEADER_ICON_DEFAULTS)],\n})\nexport class TxPublicHeader {\n private readonly publicHeaderTheme = injectTokens(PUBLIC_HEADER_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n protected readonly brandSlot = contentChild(TxPublicHeaderBrand);\n\n readonly brand = input.required<string>();\n readonly logo = input<string | undefined>(undefined);\n readonly homeLink = input<string | readonly unknown[]>('/');\n readonly preferences = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly responsive = input<TxPublicHeaderResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraPublicHeaderTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPublicHeaderPart, TxPublicHeader> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly languageChange = output<string>();\n readonly modeChange = output<TxThemeMode>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('publicHeader', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly panelId = uniqueId('tx-public-header-panel');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-public-header'), ...this.passThrough().root?.style }));\n protected readonly homeHref = computed(() => {\n const link = this.homeLink();\n return typeof link === 'string' ? link : '/' + link.join('/');\n });\n\n readonly open = signal(false);\n readonly compact = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => clearTimeout(this.closingTimer));\n afterNextRender(() => {\n const view = this.document.defaultView;\n if (!view) {\n return;\n }\n const update = (compact: boolean) => {\n this.compact.set(compact);\n if (!compact) {\n this.open.set(false);\n this.finishClosing();\n }\n };\n if (this.responsive() === 'container' && 'ResizeObserver' in view) {\n const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < COMPACT_WIDTH));\n observer.observe(this.host.nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n return;\n }\n const media = view.matchMedia?.(`(width < ${COMPACT_WIDTH}px)`);\n if (media) {\n const change = () => update(media.matches);\n change();\n media.addEventListener?.('change', change);\n destroyRef.onDestroy(() => media.removeEventListener?.('change', change));\n }\n });\n }\n\n toggle(): void {\n if (this.open()) {\n this.close();\n return;\n }\n this.finishClosing();\n this.open.set(true);\n }\n\n close(): void {\n if (!this.open()) {\n return;\n }\n this.open.set(false);\n if (this.compact() && !this.isUnstyled() && !this.reducedMotion()) {\n this.closing.set(true);\n clearTimeout(this.closingTimer);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n private reducedMotion(): boolean {\n return !!this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.close();\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n protected onPanelClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target?.closest('a, button') && !target.closest('.tx-public-header__preferences')) {\n this.close();\n }\n }\n}\n","<ng-template #brandContent>\n @if (brandSlot()) {\n <ng-content select=\"[txPublicHeaderBrand]\" />\n } @else {\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span class=\"tx-public-header__name\">{{ brand() }}</span>\n }\n</ng-template>\n<header class=\"tx-public-header__bar\" [class]=\"passThrough().bar?.class\" [style]=\"passThrough().bar?.style\">\n <div class=\"tx-public-header__inner\">\n @if (router) {\n <a\n class=\"tx-public-header__brand\"\n [routerLink]=\"homeLink()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n (click)=\"close()\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n } @else {\n <a\n class=\"tx-public-header__brand\"\n [href]=\"homeHref()\"\n [attr.aria-label]=\"brandSlot() ? brand() : null\"\n [class]=\"passThrough().brand?.class\"\n [style]=\"passThrough().brand?.style\"\n >\n <ng-container *ngTemplateOutlet=\"brandContent\" />\n </a>\n }\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- closes the menu after a link or a button inside was used; they handle the keyboard themselves -->\n <div class=\"tx-public-header__panel\" [id]=\"panelId\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\" (click)=\"onPanelClick($event)\" (animationend)=\"onPanelAnimationEnd($event)\">\n <div class=\"tx-public-header__nav\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n <ng-content select=\"[txPublicHeaderNav]\" />\n </div>\n <div class=\"tx-public-header__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n @if (preferences()) {\n <tx-topbar-preferences\n class=\"tx-public-header__preferences\"\n [layout]=\"compact() ? 'stacked' : 'inline'\"\n [unstyled]=\"isUnstyled()\"\n (languageChange)=\"languageChange.emit($event)\"\n (modeChange)=\"modeChange.emit($event)\"\n />\n }\n <div class=\"tx-public-header__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPublicHeaderActions]\" />\n </div>\n </div>\n </div>\n\n <button\n #menuButton\n type=\"button\"\n class=\"tx-public-header__toggle\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"open() ? translations().closeMenu : translations().openMenu\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n (click)=\"toggle()\"\n >\n <tx-icon aria-hidden=\"true\" [name]=\"open() ? 'times' : 'bars'\" />\n </button>\n </div>\n</header>\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB,OAAA,OAAA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,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;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,gBAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -124,7 +124,7 @@ var TxQrCode = class TxQrCode {
|
|
|
124
124
|
}
|
|
125
125
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
126
126
|
minVersion: "12.0.0",
|
|
127
|
-
version: "22.2.
|
|
127
|
+
version: "22.2.6",
|
|
128
128
|
ngImport: i0,
|
|
129
129
|
type: TxQrCode,
|
|
130
130
|
deps: [],
|
|
@@ -132,7 +132,7 @@ var TxQrCode = class TxQrCode {
|
|
|
132
132
|
});
|
|
133
133
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
134
134
|
minVersion: "17.0.0",
|
|
135
|
-
version: "22.2.
|
|
135
|
+
version: "22.2.6",
|
|
136
136
|
type: TxQrCode,
|
|
137
137
|
isStandalone: true,
|
|
138
138
|
selector: "tx-qr-code",
|
|
@@ -302,7 +302,7 @@ var TxQrCode = class TxQrCode {
|
|
|
302
302
|
};
|
|
303
303
|
i0.ɵɵngDeclareClassMetadata({
|
|
304
304
|
minVersion: "12.0.0",
|
|
305
|
-
version: "22.2.
|
|
305
|
+
version: "22.2.6",
|
|
306
306
|
ngImport: i0,
|
|
307
307
|
type: TxQrCode,
|
|
308
308
|
decorators: [{
|
|
@@ -62,7 +62,7 @@ var TxSwitchLanguage = class TxSwitchLanguage {
|
|
|
62
62
|
}
|
|
63
63
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
64
64
|
minVersion: "12.0.0",
|
|
65
|
-
version: "22.2.
|
|
65
|
+
version: "22.2.6",
|
|
66
66
|
ngImport: i0,
|
|
67
67
|
type: TxSwitchLanguage,
|
|
68
68
|
deps: [],
|
|
@@ -70,7 +70,7 @@ var TxSwitchLanguage = class TxSwitchLanguage {
|
|
|
70
70
|
});
|
|
71
71
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
72
72
|
minVersion: "17.0.0",
|
|
73
|
-
version: "22.2.
|
|
73
|
+
version: "22.2.6",
|
|
74
74
|
type: TxSwitchLanguage,
|
|
75
75
|
isStandalone: true,
|
|
76
76
|
selector: "tx-switch-language",
|
|
@@ -189,7 +189,7 @@ var TxSwitchLanguage = class TxSwitchLanguage {
|
|
|
189
189
|
};
|
|
190
190
|
i0.ɵɵngDeclareClassMetadata({
|
|
191
191
|
minVersion: "12.0.0",
|
|
192
|
-
version: "22.2.
|
|
192
|
+
version: "22.2.6",
|
|
193
193
|
ngImport: i0,
|
|
194
194
|
type: TxSwitchLanguage,
|
|
195
195
|
decorators: [{
|