@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,276 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
3
|
+
import { RouterLink } from "@angular/router";
|
|
4
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
|
+
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
7
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
var TxAppFooter = class TxAppFooter {
|
|
9
|
+
name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
10
|
+
links = input([], ...ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []);
|
|
11
|
+
variant = input("page", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
12
|
+
navLabel = input(void 0, ...ngDevMode ? [{ debugName: "navLabel" }] : /* istanbul ignore next */ []);
|
|
13
|
+
year = input(void 0, ...ngDevMode ? [{ debugName: "year" }] : /* istanbul ignore next */ []);
|
|
14
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
15
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
16
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
17
|
+
unstyled = input(void 0, {
|
|
18
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
19
|
+
transform: optionalBoolean
|
|
20
|
+
});
|
|
21
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
22
|
+
passThrough = injectPassThrough("appFooter", this, this.pt, this.ptOptions);
|
|
23
|
+
translations = injectTranslations();
|
|
24
|
+
currentYear = computed(() => this.year() ?? (/* @__PURE__ */ new Date()).getFullYear(), ...ngDevMode ? [{ debugName: "currentYear" }] : /* istanbul ignore next */ []);
|
|
25
|
+
hostStyle = computed(() => ({
|
|
26
|
+
...toStyleObject(this.dt(), "--tx-app-footer"),
|
|
27
|
+
...this.passThrough().root?.style
|
|
28
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
30
|
+
minVersion: "12.0.0",
|
|
31
|
+
version: "22.2.3",
|
|
32
|
+
ngImport: i0,
|
|
33
|
+
type: TxAppFooter,
|
|
34
|
+
deps: [],
|
|
35
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
36
|
+
});
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
38
|
+
minVersion: "17.0.0",
|
|
39
|
+
version: "22.2.3",
|
|
40
|
+
type: TxAppFooter,
|
|
41
|
+
isStandalone: true,
|
|
42
|
+
selector: "tx-app-footer",
|
|
43
|
+
inputs: {
|
|
44
|
+
name: {
|
|
45
|
+
classPropertyName: "name",
|
|
46
|
+
publicName: "name",
|
|
47
|
+
isSignal: true,
|
|
48
|
+
isRequired: true,
|
|
49
|
+
transformFunction: null
|
|
50
|
+
},
|
|
51
|
+
links: {
|
|
52
|
+
classPropertyName: "links",
|
|
53
|
+
publicName: "links",
|
|
54
|
+
isSignal: true,
|
|
55
|
+
isRequired: false,
|
|
56
|
+
transformFunction: null
|
|
57
|
+
},
|
|
58
|
+
variant: {
|
|
59
|
+
classPropertyName: "variant",
|
|
60
|
+
publicName: "variant",
|
|
61
|
+
isSignal: true,
|
|
62
|
+
isRequired: false,
|
|
63
|
+
transformFunction: null
|
|
64
|
+
},
|
|
65
|
+
navLabel: {
|
|
66
|
+
classPropertyName: "navLabel",
|
|
67
|
+
publicName: "navLabel",
|
|
68
|
+
isSignal: true,
|
|
69
|
+
isRequired: false,
|
|
70
|
+
transformFunction: null
|
|
71
|
+
},
|
|
72
|
+
year: {
|
|
73
|
+
classPropertyName: "year",
|
|
74
|
+
publicName: "year",
|
|
75
|
+
isSignal: true,
|
|
76
|
+
isRequired: false,
|
|
77
|
+
transformFunction: null
|
|
78
|
+
},
|
|
79
|
+
dt: {
|
|
80
|
+
classPropertyName: "dt",
|
|
81
|
+
publicName: "dt",
|
|
82
|
+
isSignal: true,
|
|
83
|
+
isRequired: false,
|
|
84
|
+
transformFunction: null
|
|
85
|
+
},
|
|
86
|
+
pt: {
|
|
87
|
+
classPropertyName: "pt",
|
|
88
|
+
publicName: "pt",
|
|
89
|
+
isSignal: true,
|
|
90
|
+
isRequired: false,
|
|
91
|
+
transformFunction: null
|
|
92
|
+
},
|
|
93
|
+
ptOptions: {
|
|
94
|
+
classPropertyName: "ptOptions",
|
|
95
|
+
publicName: "ptOptions",
|
|
96
|
+
isSignal: true,
|
|
97
|
+
isRequired: false,
|
|
98
|
+
transformFunction: null
|
|
99
|
+
},
|
|
100
|
+
unstyled: {
|
|
101
|
+
classPropertyName: "unstyled",
|
|
102
|
+
publicName: "unstyled",
|
|
103
|
+
isSignal: true,
|
|
104
|
+
isRequired: false,
|
|
105
|
+
transformFunction: null
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
host: {
|
|
109
|
+
properties: {
|
|
110
|
+
"class": "passThrough().root?.class",
|
|
111
|
+
"style": "hostStyle()",
|
|
112
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
113
|
+
"attr.data-variant": "variant()"
|
|
114
|
+
},
|
|
115
|
+
classAttribute: "tx-app-footer"
|
|
116
|
+
},
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
template: `
|
|
119
|
+
<footer class="tx-app-footer__root">
|
|
120
|
+
<div class="tx-app-footer__inner" [class]="passThrough().inner?.class" [style]="passThrough().inner?.style">
|
|
121
|
+
<span class="tx-app-footer__copy" [class]="passThrough().copy?.class" [style]="passThrough().copy?.style">© {{ currentYear() }} {{ name() }}</span>
|
|
122
|
+
@if (links().length) {
|
|
123
|
+
<nav class="tx-app-footer__nav" [attr.aria-label]="navLabel() ?? translations().legal" [class]="passThrough().nav?.class" [style]="passThrough().nav?.style">
|
|
124
|
+
@for (item of links(); track item.label) {
|
|
125
|
+
@if (item.routerLink !== undefined) {
|
|
126
|
+
<a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
|
|
127
|
+
} @else {
|
|
128
|
+
<a class="tx-app-footer__link" [attr.href]="item.url ?? null" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</nav>
|
|
132
|
+
}
|
|
133
|
+
</div>
|
|
134
|
+
</footer>
|
|
135
|
+
`,
|
|
136
|
+
isInline: true,
|
|
137
|
+
styles: [":host{display:block;container:tx-app-footer/inline-size}.tx-app-footer__inner{display:flex;flex-direction:column-reverse}.tx-app-footer__copy{white-space:nowrap}.tx-app-footer__nav{display:flex;flex-wrap:wrap;align-items:center}.tx-app-footer__link{position:relative;white-space:nowrap}@container tx-app-footer (width >= 768px){.tx-app-footer__inner{flex-direction:row;align-items:center;justify-content:space-between}.tx-app-footer__nav{justify-content:flex-end}}:host([data-styled]) .tx-app-footer__root{border-top:1px solid var(--tx-app-footer-border-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-app-footer__inner{gap:var(--tx-app-footer-gap);color:var(--tx-app-footer-color);font-size:var(--tx-app-footer-font-size);line-height:var(--tx-app-footer-line-height)}:host([data-styled][data-variant=page]) .tx-app-footer__inner{max-width:var(--tx-app-footer-page-max-width);margin-inline:auto;padding:var(--tx-app-footer-page-padding)}:host([data-styled][data-variant=app]) .tx-app-footer__root{margin-top:var(--tx-app-footer-app-margin-top)}:host([data-styled][data-variant=app]) .tx-app-footer__inner{padding:var(--tx-app-footer-app-padding)}:host([data-styled][data-variant=console]) .tx-app-footer__inner{padding:var(--tx-app-footer-console-padding)}:host([data-styled]) .tx-app-footer__copy{font-variant-numeric:tabular-nums}:host([data-styled]) .tx-app-footer__link+.tx-app-footer__link:before{position:absolute;top:50%;left:0;width:1px;height:var(--tx-app-footer-link-separator-height);transform:translateY(-50%);background:var(--tx-app-footer-link-separator-color);content:\"\"}:host([data-styled]) .tx-app-footer__nav{row-gap:var(--tx-app-footer-link-row-gap)}:host([data-styled]) .tx-app-footer__link{padding-inline:var(--tx-app-footer-link-padding-x);border-radius:var(--tx-app-footer-link-border-radius);color:var(--tx-app-footer-link-color);text-decoration:none;text-underline-offset:2px;transition:color var(--tx-app-footer-link-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-app-footer__link:first-child{padding-inline-start:0}:host([data-styled]) .tx-app-footer__link:hover{color:var(--tx-app-footer-link-hover-color);text-decoration:underline}:host([data-styled]) .tx-app-footer__link:focus-visible{outline:none;box-shadow:var(--tx-app-footer-link-focus-ring-shadow)}@container tx-app-footer (width >= 768px){:host([data-styled]) .tx-app-footer__inner{gap:var(--tx-app-footer-wide-gap)}:host([data-styled]) .tx-app-footer__link:last-child{padding-inline-end:0}}@container tx-app-footer (width < 768px){:host([data-styled][data-variant=console]) .tx-app-footer__inner{padding-inline:var(--tx-app-footer-console-mobile-padding)}}\n"],
|
|
138
|
+
dependencies: [{
|
|
139
|
+
kind: "directive",
|
|
140
|
+
type: RouterLink,
|
|
141
|
+
selector: "[routerLink]",
|
|
142
|
+
inputs: [
|
|
143
|
+
"target",
|
|
144
|
+
"queryParams",
|
|
145
|
+
"fragment",
|
|
146
|
+
"queryParamsHandling",
|
|
147
|
+
"state",
|
|
148
|
+
"info",
|
|
149
|
+
"relativeTo",
|
|
150
|
+
"preserveFragment",
|
|
151
|
+
"skipLocationChange",
|
|
152
|
+
"replaceUrl",
|
|
153
|
+
"browserUrl",
|
|
154
|
+
"routerLink"
|
|
155
|
+
]
|
|
156
|
+
}],
|
|
157
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
161
|
+
minVersion: "12.0.0",
|
|
162
|
+
version: "22.2.3",
|
|
163
|
+
ngImport: i0,
|
|
164
|
+
type: TxAppFooter,
|
|
165
|
+
decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{
|
|
168
|
+
selector: "tx-app-footer",
|
|
169
|
+
imports: [RouterLink],
|
|
170
|
+
template: `
|
|
171
|
+
<footer class="tx-app-footer__root">
|
|
172
|
+
<div class="tx-app-footer__inner" [class]="passThrough().inner?.class" [style]="passThrough().inner?.style">
|
|
173
|
+
<span class="tx-app-footer__copy" [class]="passThrough().copy?.class" [style]="passThrough().copy?.style">© {{ currentYear() }} {{ name() }}</span>
|
|
174
|
+
@if (links().length) {
|
|
175
|
+
<nav class="tx-app-footer__nav" [attr.aria-label]="navLabel() ?? translations().legal" [class]="passThrough().nav?.class" [style]="passThrough().nav?.style">
|
|
176
|
+
@for (item of links(); track item.label) {
|
|
177
|
+
@if (item.routerLink !== undefined) {
|
|
178
|
+
<a class="tx-app-footer__link" [routerLink]="item.routerLink" [queryParams]="item.queryParams" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
|
|
179
|
+
} @else {
|
|
180
|
+
<a class="tx-app-footer__link" [attr.href]="item.url ?? null" [attr.target]="item.target ?? null" [class]="passThrough().link?.class" [style]="passThrough().link?.style">{{ item.label }}</a>
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
</nav>
|
|
184
|
+
}
|
|
185
|
+
</div>
|
|
186
|
+
</footer>
|
|
187
|
+
`,
|
|
188
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
189
|
+
host: {
|
|
190
|
+
class: "tx-app-footer",
|
|
191
|
+
"[class]": "passThrough().root?.class",
|
|
192
|
+
"[style]": "hostStyle()",
|
|
193
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
194
|
+
"[attr.data-variant]": "variant()"
|
|
195
|
+
},
|
|
196
|
+
styles: [":host{display:block;container:tx-app-footer/inline-size}.tx-app-footer__inner{display:flex;flex-direction:column-reverse}.tx-app-footer__copy{white-space:nowrap}.tx-app-footer__nav{display:flex;flex-wrap:wrap;align-items:center}.tx-app-footer__link{position:relative;white-space:nowrap}@container tx-app-footer (width >= 768px){.tx-app-footer__inner{flex-direction:row;align-items:center;justify-content:space-between}.tx-app-footer__nav{justify-content:flex-end}}:host([data-styled]) .tx-app-footer__root{border-top:1px solid var(--tx-app-footer-border-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-app-footer__inner{gap:var(--tx-app-footer-gap);color:var(--tx-app-footer-color);font-size:var(--tx-app-footer-font-size);line-height:var(--tx-app-footer-line-height)}:host([data-styled][data-variant=page]) .tx-app-footer__inner{max-width:var(--tx-app-footer-page-max-width);margin-inline:auto;padding:var(--tx-app-footer-page-padding)}:host([data-styled][data-variant=app]) .tx-app-footer__root{margin-top:var(--tx-app-footer-app-margin-top)}:host([data-styled][data-variant=app]) .tx-app-footer__inner{padding:var(--tx-app-footer-app-padding)}:host([data-styled][data-variant=console]) .tx-app-footer__inner{padding:var(--tx-app-footer-console-padding)}:host([data-styled]) .tx-app-footer__copy{font-variant-numeric:tabular-nums}:host([data-styled]) .tx-app-footer__link+.tx-app-footer__link:before{position:absolute;top:50%;left:0;width:1px;height:var(--tx-app-footer-link-separator-height);transform:translateY(-50%);background:var(--tx-app-footer-link-separator-color);content:\"\"}:host([data-styled]) .tx-app-footer__nav{row-gap:var(--tx-app-footer-link-row-gap)}:host([data-styled]) .tx-app-footer__link{padding-inline:var(--tx-app-footer-link-padding-x);border-radius:var(--tx-app-footer-link-border-radius);color:var(--tx-app-footer-link-color);text-decoration:none;text-underline-offset:2px;transition:color var(--tx-app-footer-link-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-app-footer__link:first-child{padding-inline-start:0}:host([data-styled]) .tx-app-footer__link:hover{color:var(--tx-app-footer-link-hover-color);text-decoration:underline}:host([data-styled]) .tx-app-footer__link:focus-visible{outline:none;box-shadow:var(--tx-app-footer-link-focus-ring-shadow)}@container tx-app-footer (width >= 768px){:host([data-styled]) .tx-app-footer__inner{gap:var(--tx-app-footer-wide-gap)}:host([data-styled]) .tx-app-footer__link:last-child{padding-inline-end:0}}@container tx-app-footer (width < 768px){:host([data-styled][data-variant=console]) .tx-app-footer__inner{padding-inline:var(--tx-app-footer-console-mobile-padding)}}\n"]
|
|
197
|
+
}]
|
|
198
|
+
}],
|
|
199
|
+
propDecorators: {
|
|
200
|
+
name: [{
|
|
201
|
+
type: i0.Input,
|
|
202
|
+
args: [{
|
|
203
|
+
isSignal: true,
|
|
204
|
+
alias: "name",
|
|
205
|
+
required: true
|
|
206
|
+
}]
|
|
207
|
+
}],
|
|
208
|
+
links: [{
|
|
209
|
+
type: i0.Input,
|
|
210
|
+
args: [{
|
|
211
|
+
isSignal: true,
|
|
212
|
+
alias: "links",
|
|
213
|
+
required: false
|
|
214
|
+
}]
|
|
215
|
+
}],
|
|
216
|
+
variant: [{
|
|
217
|
+
type: i0.Input,
|
|
218
|
+
args: [{
|
|
219
|
+
isSignal: true,
|
|
220
|
+
alias: "variant",
|
|
221
|
+
required: false
|
|
222
|
+
}]
|
|
223
|
+
}],
|
|
224
|
+
navLabel: [{
|
|
225
|
+
type: i0.Input,
|
|
226
|
+
args: [{
|
|
227
|
+
isSignal: true,
|
|
228
|
+
alias: "navLabel",
|
|
229
|
+
required: false
|
|
230
|
+
}]
|
|
231
|
+
}],
|
|
232
|
+
year: [{
|
|
233
|
+
type: i0.Input,
|
|
234
|
+
args: [{
|
|
235
|
+
isSignal: true,
|
|
236
|
+
alias: "year",
|
|
237
|
+
required: false
|
|
238
|
+
}]
|
|
239
|
+
}],
|
|
240
|
+
dt: [{
|
|
241
|
+
type: i0.Input,
|
|
242
|
+
args: [{
|
|
243
|
+
isSignal: true,
|
|
244
|
+
alias: "dt",
|
|
245
|
+
required: false
|
|
246
|
+
}]
|
|
247
|
+
}],
|
|
248
|
+
pt: [{
|
|
249
|
+
type: i0.Input,
|
|
250
|
+
args: [{
|
|
251
|
+
isSignal: true,
|
|
252
|
+
alias: "pt",
|
|
253
|
+
required: false
|
|
254
|
+
}]
|
|
255
|
+
}],
|
|
256
|
+
ptOptions: [{
|
|
257
|
+
type: i0.Input,
|
|
258
|
+
args: [{
|
|
259
|
+
isSignal: true,
|
|
260
|
+
alias: "ptOptions",
|
|
261
|
+
required: false
|
|
262
|
+
}]
|
|
263
|
+
}],
|
|
264
|
+
unstyled: [{
|
|
265
|
+
type: i0.Input,
|
|
266
|
+
args: [{
|
|
267
|
+
isSignal: true,
|
|
268
|
+
alias: "unstyled",
|
|
269
|
+
required: false
|
|
270
|
+
}]
|
|
271
|
+
}]
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
export { TxAppFooter };
|
|
275
|
+
|
|
276
|
+
//# sourceMappingURL=tectra-ng-blocks-app-footer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-app-footer.mjs","names":[],"sources":["../../../../packages/blocks/app-footer/src/app-footer.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\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 { TectraAppFooterTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxAppFooterLink, TxAppFooterPart, TxAppFooterVariant } from './app-footer.types';\n\n@Component({\n selector: 'tx-app-footer',\n imports: [RouterLink],\n template: `\n <footer class=\"tx-app-footer__root\">\n <div class=\"tx-app-footer__inner\" [class]=\"passThrough().inner?.class\" [style]=\"passThrough().inner?.style\">\n <span class=\"tx-app-footer__copy\" [class]=\"passThrough().copy?.class\" [style]=\"passThrough().copy?.style\">© {{ currentYear() }} {{ name() }}</span>\n @if (links().length) {\n <nav class=\"tx-app-footer__nav\" [attr.aria-label]=\"navLabel() ?? translations().legal\" [class]=\"passThrough().nav?.class\" [style]=\"passThrough().nav?.style\">\n @for (item of links(); track item.label) {\n @if (item.routerLink !== undefined) {\n <a class=\"tx-app-footer__link\" [routerLink]=\"item.routerLink\" [queryParams]=\"item.queryParams\" [attr.target]=\"item.target ?? null\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n } @else {\n <a class=\"tx-app-footer__link\" [attr.href]=\"item.url ?? null\" [attr.target]=\"item.target ?? null\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ item.label }}</a>\n }\n }\n </nav>\n }\n </div>\n </footer>\n `,\n styleUrl: './app-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-app-footer',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class TxAppFooter {\n readonly name = input.required<string>();\n readonly links = input<readonly TxAppFooterLink[]>([]);\n readonly variant = input<TxAppFooterVariant>('page');\n readonly navLabel = input<string | undefined>(undefined);\n readonly year = input<number | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAppFooterTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAppFooterPart, TxAppFooter> | 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('appFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly currentYear = computed(() => this.year() ?? new Date().getFullYear());\n readonly hostSt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