@tectra-ng/blocks 0.0.0-stage → 0.1.6
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/README.md +16 -2
- package/action-tile/README.md +33 -0
- package/actions-menu/README.md +42 -0
- package/app-footer/README.md +30 -0
- package/app-layout/README.md +51 -0
- package/command-palette/README.md +63 -0
- package/console-layout/README.md +70 -0
- package/cookie-notice/README.md +45 -0
- package/empty-state/README.md +35 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks.mjs +4 -0
- package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
- package/filters-panel/README.md +68 -0
- package/kanban/README.md +55 -0
- package/network-status/README.md +33 -0
- package/package.json +137 -3
- package/page-header/README.md +32 -0
- package/pinned-tabs/README.md +42 -0
- package/public-header/README.md +44 -0
- package/qr-code/README.md +52 -0
- package/switch-language/README.md +33 -0
- package/switch-theme/README.md +32 -0
- package/topbar-preferences/README.md +35 -0
- package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
- package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
- package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
- package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
- package/types/tectra-ng-blocks-kanban.d.ts +260 -0
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
- package/types/tectra-ng-blocks-network-status.d.ts +108 -0
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
- package/types/tectra-ng-blocks-page-header.d.ts +86 -0
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
- package/types/tectra-ng-blocks-public-header.d.ts +142 -0
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
- package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
- package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
- package/types/tectra-ng-blocks-wizard.d.ts +682 -0
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
- package/types/tectra-ng-blocks.d.ts +2 -0
- package/types/tectra-ng-blocks.d.ts.map +1 -0
- package/wizard/README.md +77 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-pinned-tabs.mjs","names":[],"sources":["../../../../packages/blocks/pinned-tabs/src/pinned-tabs-dialog.component.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxDialogContent, TxDialogFooter, TxDialogHeader, injectDialogData, injectDialogRef } from '@tectra-ng/ui/dialog';\nimport { TxMessage } from '@tectra-ng/ui/message';\nimport { TxPinnedTabsDialogData } from './pinned-tabs.types';\n\n@Component({\n selector: 'tx-pinned-tabs-dialog',\n imports: [TxDialogHeader, TxDialogContent, TxDialogFooter, TxButton, TxIcon, TxMessage],\n template: `\n <tx-dialog-header [title]=\"data.title || translations().pinnedTabs\" />\n <tx-dialog-content>\n <div class=\"tx-pinned-tabs-dialog\">\n <tx-message severity=\"secondary\" variant=\"simple\" [text]=\"data.text || translations().pinnedTabsHint\" />\n <div class=\"tx-pinned-tabs-dialog__section\">\n <span class=\"tx-pinned-tabs-dialog__counter\" aria-live=\"polite\">{{ counter() }}</span>\n <div class=\"tx-pinned-tabs-dialog__options\" role=\"group\" [attr.aria-label]=\"data.title || translations().pinnedTabs\">\n @for (option of data.options; track option.value) {\n <button\n type=\"button\"\n role=\"checkbox\"\n class=\"tx-pinned-tabs-dialog__option\"\n [class.tx-pinned-tabs-dialog__option--selected]=\"draft().includes(option.value)\"\n [attr.aria-checked]=\"draft().includes(option.value)\"\n [title]=\"option.label\"\n (click)=\"toggle(option.value)\"\n >\n <span class=\"tx-pinned-tabs-dialog__label\">{{ option.label }}</span>\n <span class=\"tx-pinned-tabs-dialog__check\" aria-hidden=\"true\"><tx-icon name=\"check\" /></span>\n </button>\n }\n </div>\n </div>\n </div>\n </tx-dialog-content>\n <tx-dialog-footer>\n <div class=\"tx-pinned-tabs-dialog__actions\">\n <button txButton type=\"button\" severity=\"secondary\" fluid (click)=\"ref.close()\">{{ translations().cancel }}</button>\n <button txButton type=\"button\" icon=\"check\" fluid (click)=\"save()\">{{ translations().save }}</button>\n </div>\n </tx-dialog-footer>\n `,\n styleUrl: './pinned-tabs-dialog.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TxPinnedTabsDialog {\n private readonly locale = inject(TxLocaleService);\n protected readonly data = injectDialogData<TxPinnedTabsDialogData>();\n protected readonly ref = injectDialogRef<string[]>();\n protected readonly translations = injectTranslations();\n protected readonly draft = signal<readonly string[]>(this.data.pinned);\n protected readonly chosen = computed(() => {\n const draft = this.draft();\n return this.data.options.map((option) => option.value).filter((value) => draft.includes(value));\n });\n protected readonly counter = computed(() =>\n this.locale.translate('pinnedSelected', { count: this.chosen().length, total: this.data.options.length }),\n );\n\n protected toggle(value: string): void {\n this.draft.update((draft) => (draft.includes(value) ? draft.filter((item) => item !== value) : [...draft, value]));\n }\n\n protected save(): void {\n this.ref.close(this.chosen());\n }\n}\n","import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, computed, inject, input, linkedSignal, model } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraPinnedTabsTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxDialogService } from '@tectra-ng/ui/dialog';\nimport { TxTabItem, TxTabValue, TxTabs } from '@tectra-ng/ui/tabs';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TxPinnedTabsDialog } from './pinned-tabs-dialog.component';\nimport { TxPinnedTabOption, TxPinnedTabsDialogData, TxPinnedTabsPart } from './pinned-tabs.types';\n\nconst ALL = '__all__';\n\n@Component({\n selector: 'tx-pinned-tabs',\n imports: [TxButton, TxTabs, TxTooltip],\n template: `\n @if (tabs().length) {\n <tx-tabs\n class=\"tx-pinned-tabs__tabs\"\n variant=\"pills\"\n [ariaLabel]=\"ariaLabel()\"\n [tabs]=\"tabs()\"\n [value]=\"activeTab()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().tabs?.class\"\n [style]=\"passThrough().tabs?.style\"\n (tabChange)=\"pick($event)\"\n />\n }\n <button\n txButton\n type=\"button\"\n class=\"tx-pinned-tabs__button\"\n severity=\"secondary\"\n outlined\n size=\"small\"\n icon=\"sliders-h\"\n [iconOnly]=\"!!tabs().length\"\n [attr.aria-label]=\"tabs().length ? translations().customize : null\"\n [txTooltip]=\"tabs().length ? translations().customize : undefined\"\n [disabled]=\"!options().length\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n (click)=\"openSettings()\"\n >\n @if (!tabs().length) {\n {{ translations().customize }}\n }\n </button>\n `,\n styleUrl: './pinned-tabs.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pinned-tabs',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-pinned-tabs--empty]': '!tabs().length',\n },\n})\nexport class TxPinnedTabs {\n private readonly document = inject(DOCUMENT);\n private readonly dialogs = inject(TxDialogService);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly stateKey = input.required<string>();\n readonly options = input.required<readonly TxPinnedTabOption[]>();\n readonly allLabel = input<string | undefined>(undefined);\n readonly selected = model<readonly string[]>([]);\n readonly dialogTitle = input<string | undefined>(undefined);\n readonly dialogText = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPinnedTabsTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPinnedTabsPart, TxPinnedTabs> | 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('pinnedTabs', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pinned-tabs'), ...this.passThrough().root?.style }));\n\n readonly pinned = linkedSignal<readonly string[]>(() => this.readPinned(this.stateKey()));\n\n readonly tabs = computed<TxTabItem[]>(() => {\n const pinned = this.pinned();\n const tabs = this.options()\n .filter((option) => pinned.includes(option.value))\n .map(({ value, label }) => ({ value, label }));\n return tabs.length ? [{ value: ALL, label: this.allLabel() ?? this.translations().all }, ...tabs] : [];\n });\n\n protected readonly activeTab = computed<TxTabValue | undefined>(() => {\n const selected = this.selected();\n if (!selected.length) {\n return ALL;\n }\n return selected.length === 1 ? selected[0] : undefined;\n });\n\n protected pick(value: TxTabValue): void {\n this.selected.set(value === ALL ? [] : [String(value)]);\n }\n\n openSettings(): void {\n const data: TxPinnedTabsDialogData = {\n options: this.options(),\n pinned: this.pinned(),\n title: this.dialogTitle(),\n text: this.dialogText(),\n };\n this.dialogs\n .open<TxPinnedTabsDialog, TxPinnedTabsDialogData, string[]>(TxPinnedTabsDialog, { data, size: 'medium' })\n .closed.pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((pinned) => {\n if (!pinned) {\n return;\n }\n this.pinned.set(pinned);\n this.writePinned(pinned);\n });\n }\n\n private storage(): Storage | null {\n try {\n return this.document.defaultView?.localStorage ?? null;\n } catch {\n return null;\n }\n }\n\n private readPinned(key: string): string[] {\n try {\n const parsed: unknown = JSON.parse(this.storage()?.getItem(key) ?? '[]');\n return Array.isArray(parsed) ? parsed.map(String) : [];\n } catch {\n return [];\n }\n }\n\n private writePinned(pinned: readonly string[]): void {\n try {\n this.storage()?.setItem(this.stateKey(), JSON.stringify(pinned));\n } catch {\n return;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;AA+CA,IAAa,qBAAb,MAAa,mBAAkB;CACZ,SAAS,OAAO,eAAe;CAC7B,OAAO,iBAAgB;CACvB,MAAM,gBAAe;CACrB,eAAe,mBAAkB;CACjC,QAAQ,OAA0B,KAAK,KAAK,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACnD,SAAS,eAAc;EACxC,MAAM,QAAQ,KAAK,MAAK;EACxB,OAAO,KAAK,KAAK,QAAQ,KAAK,WAAW,OAAO,KAAK,CAAC,CAAC,QAAQ,UAAU,MAAM,SAAS,KAAK,CAAC;CAChG,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACiB,UAAU,eAC3B,KAAK,OAAO,UAAU,kBAAkB;EAAE,OAAO,KAAK,OAAM,CAAE,CAAC;EAAQ,OAAO,KAAK,KAAK,QAAQ;CAAM,CAAE,GACzG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAES,OAAO,OAAa;EAC5B,KAAK,MAAM,QAAQ,UAAW,MAAM,SAAS,KAAK,IAAI,MAAM,QAAQ,SAAS,SAAS,KAAK,IAAI,CAAC,GAAG,OAAO,KAAK,CAAE;CACnH;CAEU,OAAI;EACZ,KAAK,IAAI,MAAM,KAAK,OAAM,CAAE;CAC9B;CApBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAlB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAk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AA,UAAA,CAAA,WAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AA+C1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EAjDxB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,SACjB;IAAC;IAAU;IAAQ;GAAS;GAAC,UAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,iCAAiC;GAClC;GAAA,QAAA,CAAA,gMAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, ElementRef, afterNextRender, booleanAttribute, computed, inject, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { Router, RouterLink } from "@angular/router";
|
|
4
|
+
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
5
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
6
|
+
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
7
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
8
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
9
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
10
|
+
import { TxTopbarPreferences } from "@tectra-ng/blocks/topbar-preferences";
|
|
11
|
+
const COMPACT_WIDTH = 768;
|
|
12
|
+
const CLOSE_FALLBACK_MS = 600;
|
|
13
|
+
var TxPublicHeader = class TxPublicHeader {
|
|
14
|
+
document = inject(DOCUMENT);
|
|
15
|
+
host = inject(ElementRef);
|
|
16
|
+
toggleButton = viewChild("menuButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
|
|
17
|
+
router = inject(Router, { optional: true });
|
|
18
|
+
brand = input.required(...ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []);
|
|
19
|
+
logo = input(void 0, ...ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []);
|
|
20
|
+
homeLink = input("/", ...ngDevMode ? [{ debugName: "homeLink" }] : /* istanbul ignore next */ []);
|
|
21
|
+
preferences = input(true, {
|
|
22
|
+
...ngDevMode ? { debugName: "preferences" } : /* istanbul ignore next */ {},
|
|
23
|
+
transform: booleanAttribute
|
|
24
|
+
});
|
|
25
|
+
responsive = input("viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
|
|
26
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
27
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
28
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
29
|
+
unstyled = input(void 0, {
|
|
30
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
31
|
+
transform: optionalBoolean
|
|
32
|
+
});
|
|
33
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
34
|
+
passThrough = injectPassThrough("publicHeader", this, this.pt, this.ptOptions);
|
|
35
|
+
translations = injectTranslations();
|
|
36
|
+
panelId = uniqueId("tx-public-header-panel");
|
|
37
|
+
hostStyle = computed(() => ({
|
|
38
|
+
...toStyleObject(this.dt(), "--tx-public-header"),
|
|
39
|
+
...this.passThrough().root?.style
|
|
40
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
41
|
+
homeHref = computed(() => {
|
|
42
|
+
const link = this.homeLink();
|
|
43
|
+
return typeof link === "string" ? link : "/" + link.join("/");
|
|
44
|
+
}, ...ngDevMode ? [{ debugName: "homeHref" }] : /* istanbul ignore next */ []);
|
|
45
|
+
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
46
|
+
compact = signal(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
|
|
47
|
+
closing = signal(false, ...ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []);
|
|
48
|
+
closingTimer;
|
|
49
|
+
constructor() {
|
|
50
|
+
const destroyRef = inject(DestroyRef);
|
|
51
|
+
destroyRef.onDestroy(() => clearTimeout(this.closingTimer));
|
|
52
|
+
afterNextRender(() => {
|
|
53
|
+
const view = this.document.defaultView;
|
|
54
|
+
if (!view) return;
|
|
55
|
+
const update = (compact) => {
|
|
56
|
+
this.compact.set(compact);
|
|
57
|
+
if (!compact) {
|
|
58
|
+
this.open.set(false);
|
|
59
|
+
this.finishClosing();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
if (this.responsive() === "container" && "ResizeObserver" in view) {
|
|
63
|
+
const observer = new view.ResizeObserver(([entry]) => update(entry.contentRect.width < COMPACT_WIDTH));
|
|
64
|
+
observer.observe(this.host.nativeElement);
|
|
65
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const media = view.matchMedia?.(`(width < ${COMPACT_WIDTH}px)`);
|
|
69
|
+
if (media) {
|
|
70
|
+
const change = () => update(media.matches);
|
|
71
|
+
change();
|
|
72
|
+
media.addEventListener?.("change", change);
|
|
73
|
+
destroyRef.onDestroy(() => media.removeEventListener?.("change", change));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
toggle() {
|
|
78
|
+
if (this.open()) {
|
|
79
|
+
this.close();
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
this.finishClosing();
|
|
83
|
+
this.open.set(true);
|
|
84
|
+
}
|
|
85
|
+
close() {
|
|
86
|
+
if (!this.open()) return;
|
|
87
|
+
this.open.set(false);
|
|
88
|
+
if (this.compact() && !this.isUnstyled() && !this.reducedMotion()) {
|
|
89
|
+
this.closing.set(true);
|
|
90
|
+
clearTimeout(this.closingTimer);
|
|
91
|
+
this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
onPanelAnimationEnd(event) {
|
|
95
|
+
if (event.target === event.currentTarget && this.closing()) this.finishClosing();
|
|
96
|
+
}
|
|
97
|
+
finishClosing() {
|
|
98
|
+
clearTimeout(this.closingTimer);
|
|
99
|
+
this.closing.set(false);
|
|
100
|
+
}
|
|
101
|
+
reducedMotion() {
|
|
102
|
+
return !!this.document.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
103
|
+
}
|
|
104
|
+
onEscape() {
|
|
105
|
+
if (this.open()) {
|
|
106
|
+
this.close();
|
|
107
|
+
this.toggleButton()?.nativeElement.focus();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
onPanelClick(event) {
|
|
111
|
+
const target = event.target;
|
|
112
|
+
if (target?.closest("a, button") && !target.closest(".tx-public-header__preferences")) this.close();
|
|
113
|
+
}
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.3",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: TxPublicHeader,
|
|
119
|
+
deps: [],
|
|
120
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
121
|
+
});
|
|
122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
123
|
+
minVersion: "17.0.0",
|
|
124
|
+
version: "22.2.3",
|
|
125
|
+
type: TxPublicHeader,
|
|
126
|
+
isStandalone: true,
|
|
127
|
+
selector: "tx-public-header",
|
|
128
|
+
inputs: {
|
|
129
|
+
brand: {
|
|
130
|
+
classPropertyName: "brand",
|
|
131
|
+
publicName: "brand",
|
|
132
|
+
isSignal: true,
|
|
133
|
+
isRequired: true,
|
|
134
|
+
transformFunction: null
|
|
135
|
+
},
|
|
136
|
+
logo: {
|
|
137
|
+
classPropertyName: "logo",
|
|
138
|
+
publicName: "logo",
|
|
139
|
+
isSignal: true,
|
|
140
|
+
isRequired: false,
|
|
141
|
+
transformFunction: null
|
|
142
|
+
},
|
|
143
|
+
homeLink: {
|
|
144
|
+
classPropertyName: "homeLink",
|
|
145
|
+
publicName: "homeLink",
|
|
146
|
+
isSignal: true,
|
|
147
|
+
isRequired: false,
|
|
148
|
+
transformFunction: null
|
|
149
|
+
},
|
|
150
|
+
preferences: {
|
|
151
|
+
classPropertyName: "preferences",
|
|
152
|
+
publicName: "preferences",
|
|
153
|
+
isSignal: true,
|
|
154
|
+
isRequired: false,
|
|
155
|
+
transformFunction: null
|
|
156
|
+
},
|
|
157
|
+
responsive: {
|
|
158
|
+
classPropertyName: "responsive",
|
|
159
|
+
publicName: "responsive",
|
|
160
|
+
isSignal: true,
|
|
161
|
+
isRequired: false,
|
|
162
|
+
transformFunction: null
|
|
163
|
+
},
|
|
164
|
+
dt: {
|
|
165
|
+
classPropertyName: "dt",
|
|
166
|
+
publicName: "dt",
|
|
167
|
+
isSignal: true,
|
|
168
|
+
isRequired: false,
|
|
169
|
+
transformFunction: null
|
|
170
|
+
},
|
|
171
|
+
pt: {
|
|
172
|
+
classPropertyName: "pt",
|
|
173
|
+
publicName: "pt",
|
|
174
|
+
isSignal: true,
|
|
175
|
+
isRequired: false,
|
|
176
|
+
transformFunction: null
|
|
177
|
+
},
|
|
178
|
+
ptOptions: {
|
|
179
|
+
classPropertyName: "ptOptions",
|
|
180
|
+
publicName: "ptOptions",
|
|
181
|
+
isSignal: true,
|
|
182
|
+
isRequired: false,
|
|
183
|
+
transformFunction: null
|
|
184
|
+
},
|
|
185
|
+
unstyled: {
|
|
186
|
+
classPropertyName: "unstyled",
|
|
187
|
+
publicName: "unstyled",
|
|
188
|
+
isSignal: true,
|
|
189
|
+
isRequired: false,
|
|
190
|
+
transformFunction: null
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
host: {
|
|
194
|
+
listeners: { "document:keydown.escape": "onEscape()" },
|
|
195
|
+
properties: {
|
|
196
|
+
"class": "passThrough().root?.class",
|
|
197
|
+
"style": "hostStyle()",
|
|
198
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
199
|
+
"attr.data-responsive": "responsive()",
|
|
200
|
+
"class.tx-public-header--open": "open()",
|
|
201
|
+
"class.tx-public-header--closing": "closing()"
|
|
202
|
+
},
|
|
203
|
+
classAttribute: "tx-public-header"
|
|
204
|
+
},
|
|
205
|
+
viewQueries: [{
|
|
206
|
+
propertyName: "toggleButton",
|
|
207
|
+
first: true,
|
|
208
|
+
predicate: ["menuButton"],
|
|
209
|
+
descendants: true,
|
|
210
|
+
isSignal: true
|
|
211
|
+
}],
|
|
212
|
+
ngImport: i0,
|
|
213
|
+
template: "<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 class=\"tx-public-header__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\" (click)=\"close()\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </a>\n } @else {\n <a class=\"tx-public-header__brand\" [href]=\"homeHref()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </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",
|
|
214
|
+
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__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)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:hover{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"],
|
|
215
|
+
dependencies: [
|
|
216
|
+
{
|
|
217
|
+
kind: "directive",
|
|
218
|
+
type: RouterLink,
|
|
219
|
+
selector: "[routerLink]",
|
|
220
|
+
inputs: [
|
|
221
|
+
"target",
|
|
222
|
+
"queryParams",
|
|
223
|
+
"fragment",
|
|
224
|
+
"queryParamsHandling",
|
|
225
|
+
"state",
|
|
226
|
+
"info",
|
|
227
|
+
"relativeTo",
|
|
228
|
+
"preserveFragment",
|
|
229
|
+
"skipLocationChange",
|
|
230
|
+
"replaceUrl",
|
|
231
|
+
"browserUrl",
|
|
232
|
+
"routerLink"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
kind: "component",
|
|
237
|
+
type: TxIcon,
|
|
238
|
+
selector: "tx-icon",
|
|
239
|
+
inputs: ["name"]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
kind: "component",
|
|
243
|
+
type: TxTopbarPreferences,
|
|
244
|
+
selector: "tx-topbar-preferences",
|
|
245
|
+
inputs: [
|
|
246
|
+
"layout",
|
|
247
|
+
"raised",
|
|
248
|
+
"languages",
|
|
249
|
+
"syncLocale",
|
|
250
|
+
"dt",
|
|
251
|
+
"pt",
|
|
252
|
+
"ptOptions",
|
|
253
|
+
"unstyled"
|
|
254
|
+
],
|
|
255
|
+
outputs: ["languageChange", "modeChange"]
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
262
|
+
minVersion: "12.0.0",
|
|
263
|
+
version: "22.2.3",
|
|
264
|
+
ngImport: i0,
|
|
265
|
+
type: TxPublicHeader,
|
|
266
|
+
decorators: [{
|
|
267
|
+
type: Component,
|
|
268
|
+
args: [{
|
|
269
|
+
selector: "tx-public-header",
|
|
270
|
+
imports: [
|
|
271
|
+
RouterLink,
|
|
272
|
+
TxIcon,
|
|
273
|
+
TxTopbarPreferences
|
|
274
|
+
],
|
|
275
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
276
|
+
host: {
|
|
277
|
+
class: "tx-public-header",
|
|
278
|
+
"[class]": "passThrough().root?.class",
|
|
279
|
+
"[style]": "hostStyle()",
|
|
280
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
281
|
+
"[attr.data-responsive]": "responsive()",
|
|
282
|
+
"[class.tx-public-header--open]": "open()",
|
|
283
|
+
"[class.tx-public-header--closing]": "closing()",
|
|
284
|
+
"(document:keydown.escape)": "onEscape()"
|
|
285
|
+
},
|
|
286
|
+
template: "<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 class=\"tx-public-header__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\" (click)=\"close()\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </a>\n } @else {\n <a class=\"tx-public-header__brand\" [href]=\"homeHref()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </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",
|
|
287
|
+
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__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)}:host([data-styled]) .tx-public-header__nav ::ng-deep [txPublicHeaderNav]>a:hover{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"]
|
|
288
|
+
}]
|
|
289
|
+
}],
|
|
290
|
+
ctorParameters: () => [],
|
|
291
|
+
propDecorators: {
|
|
292
|
+
toggleButton: [{
|
|
293
|
+
type: i0.ViewChild,
|
|
294
|
+
args: ["menuButton", { isSignal: true }]
|
|
295
|
+
}],
|
|
296
|
+
brand: [{
|
|
297
|
+
type: i0.Input,
|
|
298
|
+
args: [{
|
|
299
|
+
isSignal: true,
|
|
300
|
+
alias: "brand",
|
|
301
|
+
required: true
|
|
302
|
+
}]
|
|
303
|
+
}],
|
|
304
|
+
logo: [{
|
|
305
|
+
type: i0.Input,
|
|
306
|
+
args: [{
|
|
307
|
+
isSignal: true,
|
|
308
|
+
alias: "logo",
|
|
309
|
+
required: false
|
|
310
|
+
}]
|
|
311
|
+
}],
|
|
312
|
+
homeLink: [{
|
|
313
|
+
type: i0.Input,
|
|
314
|
+
args: [{
|
|
315
|
+
isSignal: true,
|
|
316
|
+
alias: "homeLink",
|
|
317
|
+
required: false
|
|
318
|
+
}]
|
|
319
|
+
}],
|
|
320
|
+
preferences: [{
|
|
321
|
+
type: i0.Input,
|
|
322
|
+
args: [{
|
|
323
|
+
isSignal: true,
|
|
324
|
+
alias: "preferences",
|
|
325
|
+
required: false
|
|
326
|
+
}]
|
|
327
|
+
}],
|
|
328
|
+
responsive: [{
|
|
329
|
+
type: i0.Input,
|
|
330
|
+
args: [{
|
|
331
|
+
isSignal: true,
|
|
332
|
+
alias: "responsive",
|
|
333
|
+
required: false
|
|
334
|
+
}]
|
|
335
|
+
}],
|
|
336
|
+
dt: [{
|
|
337
|
+
type: i0.Input,
|
|
338
|
+
args: [{
|
|
339
|
+
isSignal: true,
|
|
340
|
+
alias: "dt",
|
|
341
|
+
required: false
|
|
342
|
+
}]
|
|
343
|
+
}],
|
|
344
|
+
pt: [{
|
|
345
|
+
type: i0.Input,
|
|
346
|
+
args: [{
|
|
347
|
+
isSignal: true,
|
|
348
|
+
alias: "pt",
|
|
349
|
+
required: false
|
|
350
|
+
}]
|
|
351
|
+
}],
|
|
352
|
+
ptOptions: [{
|
|
353
|
+
type: i0.Input,
|
|
354
|
+
args: [{
|
|
355
|
+
isSignal: true,
|
|
356
|
+
alias: "ptOptions",
|
|
357
|
+
required: false
|
|
358
|
+
}]
|
|
359
|
+
}],
|
|
360
|
+
unstyled: [{
|
|
361
|
+
type: i0.Input,
|
|
362
|
+
args: [{
|
|
363
|
+
isSignal: true,
|
|
364
|
+
alias: "unstyled",
|
|
365
|
+
required: false
|
|
366
|
+
}]
|
|
367
|
+
}]
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
export { TxPublicHeader };
|
|
371
|
+
|
|
372
|
+
//# sourceMappingURL=tectra-ng-blocks-public-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-public-header.mjs","names":[],"sources":["../../../../packages/blocks/public-header/src/public-header.component.ts","../../../../packages/blocks/public-header/src/public-header.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPublicHeaderTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTopbarPreferences } from '@tectra-ng/blocks/topbar-preferences';\nimport { TxPublicHeaderPart, TxPublicHeaderResponsive } from './public-header.types';\n\nconst COMPACT_WIDTH = 768;\nconst CLOSE_FALLBACK_MS = 600;\n\n@Component({\n selector: 'tx-public-header',\n imports: [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})\nexport class TxPublicHeader {\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('menuButton');\n protected readonly router = inject(Router, { optional: true });\n\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","<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 class=\"tx-public-header__brand\" [routerLink]=\"homeLink()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\" (click)=\"close()\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </a>\n } @else {\n <a class=\"tx-public-header__brand\" [href]=\"homeHref()\" [class]=\"passThrough().brand?.class\" [style]=\"passThrough().brand?.style\">\n @if (logo(); as logo) {\n <img class=\"tx-public-header__logo\" alt=\"\" [src]=\"logo\" [class]=\"passThrough().logo?.class\" [style]=\"passThrough().logo?.style\" />\n }\n <span>{{ brand() }}</span>\n </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":";;;;;;;;;;AAwBA,MAAM,gBAAgB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