@tectra-ng/blocks 0.2.6 → 0.3.1
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/fesm2022/tectra-ng-blocks-action-tile.mjs +12 -3
- package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +11 -3
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +13 -4
- package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +16 -3
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +15 -3
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs +4 -2
- package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +19 -5
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +14 -5
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +12 -3
- package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +27 -6
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-hover-effect.mjs +4 -2
- package/fesm2022/tectra-ng-blocks-hover-effect.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-kanban.mjs +12 -3
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-mascot.mjs +8 -2
- package/fesm2022/tectra-ng-blocks-mascot.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-network-status.mjs +12 -3
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-page-header.mjs +11 -2
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +17 -3
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-public-header.mjs +13 -5
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +8 -2
- package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +4 -2
- package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +18 -4
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +8 -2
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-wizard.mjs +24 -3
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
- package/package.json +6 -6
- package/types/tectra-ng-blocks-action-tile.d.ts +1 -0
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -1
- package/types/tectra-ng-blocks-actions-menu.d.ts +1 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-footer.d.ts +1 -0
- package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-layout.d.ts +1 -0
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-command-palette.d.ts +1 -0
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
- package/types/tectra-ng-blocks-confetti.d.ts +1 -0
- package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
- package/types/tectra-ng-blocks-console-layout.d.ts +4 -1
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-cookie-notice.d.ts +1 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -1
- package/types/tectra-ng-blocks-empty-state.d.ts +1 -0
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -1
- package/types/tectra-ng-blocks-filters-panel.d.ts +3 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
- package/types/tectra-ng-blocks-hover-effect.d.ts +1 -0
- package/types/tectra-ng-blocks-hover-effect.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +1 -0
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-mascot.d.ts +1 -0
- package/types/tectra-ng-blocks-mascot.d.ts.map +1 -1
- package/types/tectra-ng-blocks-network-status.d.ts +1 -0
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
- package/types/tectra-ng-blocks-page-header.d.ts +1 -0
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +3 -1
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
- package/types/tectra-ng-blocks-public-header.d.ts +1 -0
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-qr-code.d.ts +1 -0
- package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -1
- package/types/tectra-ng-blocks-switch-language.d.ts +1 -0
- package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -1
- package/types/tectra-ng-blocks-switch-theme.d.ts +2 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -1
- package/types/tectra-ng-blocks-topbar-preferences.d.ts +1 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -1
- package/types/tectra-ng-blocks-wizard.d.ts +5 -0
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, DOCUMENT, Directive, ElementRef, ViewEncapsulation, computed, inject, input, numberAttribute, output } from "@angular/core";
|
|
3
3
|
import { TxStyleLoader } from "@tectra-ng/core/styles";
|
|
4
|
-
import {
|
|
4
|
+
import { TxIcon, provideTxIconDefaults, txIconMoon, txIconSun } from "@tectra-ng/icons";
|
|
5
|
+
import { TxThemeService, injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
6
|
+
import { switchThemeTokens, toStyleObject } from "@tectra-ng/themes";
|
|
5
7
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
8
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
const SWITCH_THEME_ICON_DEFAULTS = {
|
|
10
|
+
moon: txIconMoon,
|
|
11
|
+
sun: txIconSun
|
|
12
|
+
};
|
|
13
|
+
const SWITCH_THEME_THEME = { switchTheme: switchThemeTokens };
|
|
9
14
|
var TxThemeRevealStyles = class TxThemeRevealStyles {
|
|
15
|
+
switchThemeTheme = injectTokens(SWITCH_THEME_THEME);
|
|
10
16
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
17
|
minVersion: "12.0.0",
|
|
12
18
|
version: "22.2.5",
|
|
@@ -25,6 +31,7 @@ var TxThemeRevealStyles = class TxThemeRevealStyles {
|
|
|
25
31
|
template: "",
|
|
26
32
|
isInline: true,
|
|
27
33
|
styles: ["html.tx-theme-reveal::view-transition-old(root),html.tx-theme-reveal::view-transition-new(root){animation:none;mix-blend-mode:normal}html.tx-theme-reveal *,html.tx-theme-reveal *:before,html.tx-theme-reveal *:after{transition:none!important;view-transition-name:none!important}\n"],
|
|
34
|
+
viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],
|
|
28
35
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
29
36
|
encapsulation: i0.ViewEncapsulation.None
|
|
30
37
|
});
|
|
@@ -41,6 +48,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
41
48
|
template: "",
|
|
42
49
|
encapsulation: ViewEncapsulation.None,
|
|
43
50
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
|
+
viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],
|
|
44
52
|
styles: ["html.tx-theme-reveal::view-transition-old(root),html.tx-theme-reveal::view-transition-new(root){animation:none;mix-blend-mode:normal}html.tx-theme-reveal *,html.tx-theme-reveal *:before,html.tx-theme-reveal *:after{transition:none!important;view-transition-name:none!important}\n"]
|
|
45
53
|
}]
|
|
46
54
|
}]
|
|
@@ -48,6 +56,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
48
56
|
const REVEAL_CLASS = "tx-theme-reveal";
|
|
49
57
|
const TX_THEME_REVEAL_EASING = "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
50
58
|
var TxThemeReveal = class TxThemeReveal {
|
|
59
|
+
switchThemeTheme = injectTokens(SWITCH_THEME_THEME);
|
|
51
60
|
document = inject(DOCUMENT);
|
|
52
61
|
host = inject(ElementRef);
|
|
53
62
|
revealDuration = input(550, {
|
|
@@ -120,6 +129,7 @@ var TxThemeReveal = class TxThemeReveal {
|
|
|
120
129
|
},
|
|
121
130
|
outputs: { themeChange: "themeChange" },
|
|
122
131
|
host: { listeners: { "click": "reveal($event)" } },
|
|
132
|
+
providers: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],
|
|
123
133
|
ngImport: i0
|
|
124
134
|
});
|
|
125
135
|
};
|
|
@@ -132,7 +142,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
132
142
|
type: Directive,
|
|
133
143
|
args: [{
|
|
134
144
|
selector: "[txThemeReveal]",
|
|
135
|
-
host: { "(click)": "reveal($event)" }
|
|
145
|
+
host: { "(click)": "reveal($event)" },
|
|
146
|
+
providers: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)]
|
|
136
147
|
}]
|
|
137
148
|
}],
|
|
138
149
|
ctorParameters: () => [],
|
|
@@ -160,6 +171,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
160
171
|
}
|
|
161
172
|
});
|
|
162
173
|
var TxSwitchTheme = class TxSwitchTheme {
|
|
174
|
+
switchThemeTheme = injectTokens(SWITCH_THEME_THEME);
|
|
163
175
|
theme = inject(TxThemeService);
|
|
164
176
|
revealDuration = input(550, {
|
|
165
177
|
...ngDevMode ? { debugName: "revealDuration" } : /* istanbul ignore next */ {},
|
|
@@ -301,6 +313,7 @@ var TxSwitchTheme = class TxSwitchTheme {
|
|
|
301
313
|
inputs: ["revealDuration", "revealEasing"],
|
|
302
314
|
outputs: ["themeChange"]
|
|
303
315
|
}],
|
|
316
|
+
viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],
|
|
304
317
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
305
318
|
});
|
|
306
319
|
};
|
|
@@ -353,6 +366,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
353
366
|
"[attr.data-styled]": "!isUnstyled() || null",
|
|
354
367
|
"[attr.data-mode]": "theme.mode()"
|
|
355
368
|
},
|
|
369
|
+
viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],
|
|
356
370
|
styles: [":host{display:inline-flex}.tx-switch-theme__button{position:relative;display:grid;place-items:center;margin:0;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}.tx-switch-theme__icon{display:flex;grid-area:1/1}:host([data-styled]) .tx-switch-theme__button{width:var(--tx-switch-theme-size);height:var(--tx-switch-theme-size);border-radius:var(--tx-switch-theme-border-radius);background:var(--tx-switch-theme-background);box-shadow:inset 0 0 0 1px var(--tx-switch-theme-ring-color),var(--tx-switch-theme-shadow);color:var(--tx-switch-theme-color);transition:background-color var(--tx-switch-theme-transition-duration),transform var(--tx-switch-theme-transition-duration)}:host([data-styled]) .tx-switch-theme__button:hover{background:var(--tx-switch-theme-hover-background)}:host([data-styled]) .tx-switch-theme__button:active{transform:scale(var(--tx-switch-theme-active-scale))}:host([data-styled]) .tx-switch-theme__button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--tx-switch-theme-ring-color),var(--tx-switch-theme-focus-ring-shadow)}:host([data-styled]) .tx-switch-theme__icon{font-size:var(--tx-switch-theme-icon-size);transition:opacity var(--tx-switch-theme-icon-duration) var(--tx-switch-theme-icon-easing),transform var(--tx-switch-theme-icon-duration) var(--tx-switch-theme-icon-easing)}:host([data-styled]) .tx-switch-theme__icon--hidden{opacity:0;transform:scale(var(--tx-switch-theme-icon-hidden-scale))}:host([data-styled]) .tx-switch-theme__icon--sun.tx-switch-theme__icon--hidden{transform:scale(var(--tx-switch-theme-icon-hidden-scale)) rotate(90deg)}:host([data-styled]) .tx-switch-theme__icon--moon.tx-switch-theme__icon--hidden{transform:scale(var(--tx-switch-theme-icon-hidden-scale)) rotate(-90deg)}:host-context(.tx-theme-reveal) .tx-switch-theme__icon{transition:opacity var(--tx-switch-theme-icon-duration) var(--tx-switch-theme-icon-easing),transform var(--tx-switch-theme-icon-duration) var(--tx-switch-theme-icon-easing)!important}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-switch-theme__button,:host([data-styled]) .tx-switch-theme__icon{transition:none}:host([data-styled]) .tx-switch-theme__button:active{transform:none}}\n"]
|
|
357
371
|
}]
|
|
358
372
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-switch-theme.mjs","names":[],"sources":["../../../../packages/blocks/switch-theme/src/theme-reveal.styles.ts","../../../../packages/blocks/switch-theme/src/theme-reveal.directive.ts","../../../../packages/blocks/switch-theme/src/switch-theme.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'tx-theme-reveal-styles',\n template: '',\n styles: `\n html.tx-theme-reveal::view-transition-old(root),\n html.tx-theme-reveal::view-transition-new(root) {\n animation: none;\n mix-blend-mode: normal;\n }\n\n html.tx-theme-reveal *,\n html.tx-theme-reveal *::before,\n html.tx-theme-reveal *::after {\n transition: none !important;\n view-transition-name: none !important;\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TxThemeRevealStyles {}\n","import { DOCUMENT, Directive, ElementRef, inject, input, numberAttribute, output } from '@angular/core';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { TxThemeRevealOrigin } from './switch-theme.types';\nimport { TxThemeRevealStyles } from './theme-reveal.styles';\n\nconst REVEAL_CLASS = 'tx-theme-reveal';\n\nexport const TX_THEME_REVEAL_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n@Directive({\n selector: '[txThemeReveal]',\n host: { '(click)': 'reveal($event)' },\n})\nexport class TxThemeReveal {\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly revealDuration = input<number, unknown>(550, { transform: numberAttribute });\n readonly revealEasing = input<string>(TX_THEME_REVEAL_EASING);\n\n readonly themeChange = output<void>();\n\n constructor() {\n inject(TxStyleLoader).load(TxThemeRevealStyles);\n }\n\n reveal(event: MouseEvent): void {\n const view = this.document.defaultView;\n if (!view || typeof this.document.startViewTransition !== 'function' || view.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n this.themeChange.emit();\n return;\n }\n const origin = this.origin(event);\n const radius = Math.hypot(Math.max(origin.x, view.innerWidth - origin.x), Math.max(origin.y, view.innerHeight - origin.y));\n const root = this.document.documentElement;\n root.classList.add(REVEAL_CLASS);\n const transition = this.document.startViewTransition(() => this.themeChange.emit());\n void transition.ready.then(() =>\n root.animate(\n { clipPath: [`circle(0px at ${origin.x}px ${origin.y}px)`, `circle(${radius}px at ${origin.x}px ${origin.y}px)`] },\n { duration: this.revealDuration(), easing: this.revealEasing(), pseudoElement: '::view-transition-new(root)' },\n ),\n );\n void transition.finished.finally(() => root.classList.remove(REVEAL_CLASS));\n }\n\n private origin(event: MouseEvent): TxThemeRevealOrigin {\n if (event.clientX || event.clientY) {\n return { x: event.clientX, y: event.clientY };\n }\n const rect = this.host.nativeElement.getBoundingClientRect();\n return { x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 };\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input, numberAttribute, output } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, TxThemeMode, TxThemeService, 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, TectraSwitchThemeTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxSwitchThemePart } from './switch-theme.types';\nimport { TX_THEME_REVEAL_EASING, TxThemeReveal } from './theme-reveal.directive';\n\n@Component({\n selector: 'tx-switch-theme',\n imports: [TxIcon, TxThemeReveal],\n template: `\n <button\n type=\"button\"\n class=\"tx-switch-theme__button\"\n txThemeReveal\n [revealDuration]=\"revealDuration()\"\n [revealEasing]=\"revealEasing()\"\n [attr.aria-label]=\"label()\"\n [title]=\"label()\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n (themeChange)=\"toggle()\"\n >\n <tx-icon\n class=\"tx-switch-theme__icon tx-switch-theme__icon--sun\"\n name=\"sun\"\n aria-hidden=\"true\"\n [class.tx-switch-theme__icon--hidden]=\"dark()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n />\n <tx-icon\n class=\"tx-switch-theme__icon tx-switch-theme__icon--moon\"\n name=\"moon\"\n aria-hidden=\"true\"\n [class.tx-switch-theme__icon--hidden]=\"!dark()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n />\n </button>\n `,\n styleUrl: './switch-theme.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-switch-theme',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-mode]': 'theme.mode()',\n },\n})\nexport class TxSwitchTheme {\n protected readonly theme = inject(TxThemeService);\n\n readonly revealDuration = input<number, unknown>(550, { transform: numberAttribute });\n readonly revealEasing = input<string>(TX_THEME_REVEAL_EASING);\n readonly dt = input<TectraDeepPartial<TectraSwitchThemeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSwitchThemePart, TxSwitchTheme> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly modeChange = output<TxThemeMode>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('switchTheme', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-switch-theme'), ...this.passThrough().root?.style }));\n protected readonly dark = computed(() => this.theme.mode() === 'dark');\n protected readonly label = computed(() => (this.dark() ? this.translations().switchToLight : this.translations().switchToDark));\n\n toggle(): void {\n this.theme.toggleMode();\n this.modeChange.emit(this.theme.mode());\n }\n}\n"],"mappings":";;;;;;;;AAsBA,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;EAAA,UAlBpB;EAAE,UAAA;EAAA,QAAA,CAAA,yRAAA;EAAA,iBAAA,GAAA,wBAAA;EAAA,eAAA,G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SAAA;CAAA,UAAA;CAAA,MAAA;CAAa,YAAA,CAAA;EA5CzB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,SAClB,CAAC,QAAQ,aAAa;GAAC,UACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;GACrB;GAAA,QAAA,CAAA,uqEAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-switch-theme.mjs","names":[],"sources":["../../../../packages/blocks/switch-theme/src/switch-theme.icons.ts","../../../../packages/blocks/switch-theme/src/switch-theme.theme.ts","../../../../packages/blocks/switch-theme/src/theme-reveal.styles.ts","../../../../packages/blocks/switch-theme/src/theme-reveal.directive.ts","../../../../packages/blocks/switch-theme/src/switch-theme.component.ts"],"sourcesContent":["import { TxIconSet, txIconMoon, txIconSun } from '@tectra-ng/icons';\n\nexport const SWITCH_THEME_ICON_DEFAULTS: TxIconSet = {\n moon: txIconMoon,\n sun: txIconSun,\n};\n","import { switchThemeTokens } from '@tectra-ng/themes';\n\nexport const SWITCH_THEME_THEME = {\n switchTheme: switchThemeTokens,\n};\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SWITCH_THEME_ICON_DEFAULTS } from './switch-theme.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { SWITCH_THEME_THEME } from './switch-theme.theme';\n\n@Component({\n selector: 'tx-theme-reveal-styles',\n template: '',\n styles: `\n html.tx-theme-reveal::view-transition-old(root),\n html.tx-theme-reveal::view-transition-new(root) {\n animation: none;\n mix-blend-mode: normal;\n }\n\n html.tx-theme-reveal *,\n html.tx-theme-reveal *::before,\n html.tx-theme-reveal *::after {\n transition: none !important;\n view-transition-name: none !important;\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],\n})\nexport class TxThemeRevealStyles {\n private readonly switchThemeTheme = injectTokens(SWITCH_THEME_THEME);\n}\n","import { DOCUMENT, Directive, ElementRef, inject, input, numberAttribute, output } from '@angular/core';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { TxThemeRevealOrigin } from './switch-theme.types';\nimport { TxThemeRevealStyles } from './theme-reveal.styles';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SWITCH_THEME_ICON_DEFAULTS } from './switch-theme.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { SWITCH_THEME_THEME } from './switch-theme.theme';\n\nconst REVEAL_CLASS = 'tx-theme-reveal';\n\nexport const TX_THEME_REVEAL_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n@Directive({\n selector: '[txThemeReveal]',\n host: { '(click)': 'reveal($event)' },\n providers: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],\n})\nexport class TxThemeReveal {\n private readonly switchThemeTheme = injectTokens(SWITCH_THEME_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly revealDuration = input<number, unknown>(550, { transform: numberAttribute });\n readonly revealEasing = input<string>(TX_THEME_REVEAL_EASING);\n\n readonly themeChange = output<void>();\n\n constructor() {\n inject(TxStyleLoader).load(TxThemeRevealStyles);\n }\n\n reveal(event: MouseEvent): void {\n const view = this.document.defaultView;\n if (!view || typeof this.document.startViewTransition !== 'function' || view.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n this.themeChange.emit();\n return;\n }\n const origin = this.origin(event);\n const radius = Math.hypot(Math.max(origin.x, view.innerWidth - origin.x), Math.max(origin.y, view.innerHeight - origin.y));\n const root = this.document.documentElement;\n root.classList.add(REVEAL_CLASS);\n const transition = this.document.startViewTransition(() => this.themeChange.emit());\n void transition.ready.then(() =>\n root.animate(\n { clipPath: [`circle(0px at ${origin.x}px ${origin.y}px)`, `circle(${radius}px at ${origin.x}px ${origin.y}px)`] },\n { duration: this.revealDuration(), easing: this.revealEasing(), pseudoElement: '::view-transition-new(root)' },\n ),\n );\n void transition.finished.finally(() => root.classList.remove(REVEAL_CLASS));\n }\n\n private origin(event: MouseEvent): TxThemeRevealOrigin {\n if (event.clientX || event.clientY) {\n return { x: event.clientX, y: event.clientY };\n }\n const rect = this.host.nativeElement.getBoundingClientRect();\n return { x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 };\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input, numberAttribute, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions, TxThemeMode, TxThemeService } 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, TectraSwitchThemeTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxSwitchThemePart } from './switch-theme.types';\nimport { TX_THEME_REVEAL_EASING, TxThemeReveal } from './theme-reveal.directive';\nimport { SWITCH_THEME_ICON_DEFAULTS } from './switch-theme.icons';\nimport { SWITCH_THEME_THEME } from './switch-theme.theme';\n\n@Component({\n selector: 'tx-switch-theme',\n imports: [TxIcon, TxThemeReveal],\n template: `\n <button\n type=\"button\"\n class=\"tx-switch-theme__button\"\n txThemeReveal\n [revealDuration]=\"revealDuration()\"\n [revealEasing]=\"revealEasing()\"\n [attr.aria-label]=\"label()\"\n [title]=\"label()\"\n [class]=\"passThrough().button?.class\"\n [style]=\"passThrough().button?.style\"\n (themeChange)=\"toggle()\"\n >\n <tx-icon\n class=\"tx-switch-theme__icon tx-switch-theme__icon--sun\"\n name=\"sun\"\n aria-hidden=\"true\"\n [class.tx-switch-theme__icon--hidden]=\"dark()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n />\n <tx-icon\n class=\"tx-switch-theme__icon tx-switch-theme__icon--moon\"\n name=\"moon\"\n aria-hidden=\"true\"\n [class.tx-switch-theme__icon--hidden]=\"!dark()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n />\n </button>\n `,\n styleUrl: './switch-theme.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-switch-theme',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-mode]': 'theme.mode()',\n },\n viewProviders: [provideTxIconDefaults(SWITCH_THEME_ICON_DEFAULTS)],\n})\nexport class TxSwitchTheme {\n private readonly switchThemeTheme = injectTokens(SWITCH_THEME_THEME);\n\n protected readonly theme = inject(TxThemeService);\n\n readonly revealDuration = input<number, unknown>(550, { transform: numberAttribute });\n readonly revealEasing = input<string>(TX_THEME_REVEAL_EASING);\n readonly dt = input<TectraDeepPartial<TectraSwitchThemeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSwitchThemePart, TxSwitchTheme> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly modeChange = output<TxThemeMode>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('switchTheme', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-switch-theme'), ...this.passThrough().root?.style }));\n protected readonly dark = computed(() => this.theme.mode() === 'dark');\n protected readonly label = computed(() => (this.dark() ? this.translations().switchToLight : this.translations().switchToDark));\n\n toggle(): void {\n this.theme.toggleMode();\n this.modeChange.emit(this.theme.mode());\n }\n}\n"],"mappings":";;;;;;;;AAEA,MAAa,6BAAwC;CACnD,MAAM;CACN,KA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,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,YAAA,aAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,kBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA1Cd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BT,UAAA;EAAA,QAAA,CAAA,uqEAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA/BS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAa,UAAA;GAAA,QAAA,CAAA,kBAAA,cAAA;GAAA,SAAA,CAAA,aAAA;EAAA,CAAA;EAAA,eAyChB,CAAC,sBAAsB,0BAA0B,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEvD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAa,YAAA,CAAA;EA7CzB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,SAClB,CAAC,QAAQ,aAAa;GAAC,UACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,0BAA0B,CAAC;GAAC,QAAA,CAAA,uqEAAA;EAAA,CAAA"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from "@angular/core";
|
|
3
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
3
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
5
5
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
6
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
import { switchLanguageTokens, switchThemeTokens, toStyleObject, topbarPreferencesTokens } from "@tectra-ng/themes";
|
|
7
7
|
import { TX_LANGUAGES, TxSwitchLanguage } from "@tectra-ng/blocks/switch-language";
|
|
8
8
|
import { TxSwitchTheme } from "@tectra-ng/blocks/switch-theme";
|
|
9
|
+
const TOPBAR_PREFERENCES_THEME = {
|
|
10
|
+
switchLanguage: switchLanguageTokens,
|
|
11
|
+
switchTheme: switchThemeTokens,
|
|
12
|
+
topbarPreferences: topbarPreferencesTokens
|
|
13
|
+
};
|
|
9
14
|
var TxTopbarPreferences = class TxTopbarPreferences {
|
|
15
|
+
topbarPreferencesTheme = injectTokens(TOPBAR_PREFERENCES_THEME);
|
|
10
16
|
layout = input("inline", ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
11
17
|
raised = input(false, {
|
|
12
18
|
...ngDevMode ? { debugName: "raised" } : /* istanbul ignore next */ {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-topbar-preferences.mjs","names":[],"sources":["../../../../packages/blocks/topbar-preferences/src/topbar-preferences.component.ts","../../../../packages/blocks/topbar-preferences/src/topbar-preferences.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-topbar-preferences.mjs","names":[],"sources":["../../../../packages/blocks/topbar-preferences/src/topbar-preferences.theme.ts","../../../../packages/blocks/topbar-preferences/src/topbar-preferences.component.ts","../../../../packages/blocks/topbar-preferences/src/topbar-preferences.component.html"],"sourcesContent":["import { switchLanguageTokens, switchThemeTokens, topbarPreferencesTokens } from '@tectra-ng/themes';\n\nexport const TOPBAR_PREFERENCES_THEME = {\n switchLanguage: switchLanguageTokens,\n switchTheme: switchThemeTokens,\n topbarPreferences: topbarPreferencesTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\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 { TectraDeepPartial, TectraTopbarPreferencesTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TX_LANGUAGES, TxLanguageOption, TxSwitchLanguage } from '@tectra-ng/blocks/switch-language';\nimport { TxSwitchTheme } from '@tectra-ng/blocks/switch-theme';\nimport { TxTopbarPreferencesLayout, TxTopbarPreferencesPart } from './topbar-preferences.types';\nimport { TOPBAR_PREFERENCES_THEME } from './topbar-preferences.theme';\n\n@Component({\n selector: 'tx-topbar-preferences',\n imports: [TxSwitchLanguage, TxSwitchTheme],\n templateUrl: './topbar-preferences.component.html',\n styleUrl: './topbar-preferences.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-topbar-preferences',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n '[class.tx-topbar-preferences--raised]': 'raised()',\n },\n})\nexport class TxTopbarPreferences {\n private readonly topbarPreferencesTheme = injectTokens(TOPBAR_PREFERENCES_THEME);\n\n readonly layout = input<TxTopbarPreferencesLayout>('inline');\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly languages = input<readonly TxLanguageOption[]>(TX_LANGUAGES);\n readonly syncLocale = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraTopbarPreferencesTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTopbarPreferencesPart, TxTopbarPreferences> | 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('topbarPreferences', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-topbar-preferences'), ...this.passThrough().root?.style }));\n\n protected onLanguage(code: string | undefined): void {\n if (code) {\n this.languageChange.emit(code);\n }\n }\n}\n","@if (layout() === 'stacked') {\n <div class=\"tx-topbar-preferences__stack\" [class]=\"passThrough().stack?.class\" [style]=\"passThrough().stack?.style\">\n <div class=\"tx-topbar-preferences__row\" [class]=\"passThrough().row?.class\" [style]=\"passThrough().row?.style\">\n <span class=\"tx-topbar-preferences__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().language }}</span>\n <tx-switch-language\n [languages]=\"languages()\"\n [syncLocale]=\"syncLocale()\"\n [ariaLabel]=\"translations().language\"\n [unstyled]=\"isUnstyled()\"\n (valueChange)=\"onLanguage($event)\"\n />\n </div>\n <div class=\"tx-topbar-preferences__row\" [class]=\"passThrough().row?.class\" [style]=\"passThrough().row?.style\">\n <span class=\"tx-topbar-preferences__label\" aria-hidden=\"true\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().theme }}</span>\n <tx-switch-theme [unstyled]=\"isUnstyled()\" (modeChange)=\"modeChange.emit($event)\" />\n </div>\n </div>\n} @else {\n <div class=\"tx-topbar-preferences__capsule\" [class]=\"passThrough().capsule?.class\" [style]=\"passThrough().capsule?.style\">\n <tx-switch-language\n [languages]=\"languages()\"\n [syncLocale]=\"syncLocale()\"\n [unstyled]=\"isUnstyled()\"\n (valueChange)=\"onLanguage($event)\"\n />\n <span class=\"tx-topbar-preferences__divider\" aria-hidden=\"true\" [class]=\"passThrough().divider?.class\" [style]=\"passThrough().divider?.style\"></span>\n <tx-switch-theme [unstyled]=\"isUnstyled()\" (modeChange)=\"modeChange.emit($event)\" />\n </div>\n}\n"],"mappings":";;;;;;;;AAEA,MAAa,2BAA2B;CACtC,gBAAgB;CAChB,aAAa;CACb,mBAAmB;AACpB;ACmBD,IAAa,sBAAb,MAAa,oBAAmB;CACb,yBAAyB,aAAa,wBAAwB;CAEtE,SAAS,MAAiC,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACnD,SAAS,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACrE,YAAY,MAAmC,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAC5D,aAAa,MAAwB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,KAAK,MAAoE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACnF,KAAK,MAA+E,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAC9F,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,iBAAiB,OAAM;CACvB,aAAa,OAAM;CAEnB,aAAa,eAAe,KAAK,QAAQ;CACzC,cAAc,kBAAkB,qBAAqB,MAAM,KAAK,IAAI,KAAK,SAAS;CACxE,eAAe,mBAAkB;CAC3C,YAAY,gBAAgB;EAAE,GAAG,cAAc,KAA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;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UCzBhC;EA6BA,QAAA,CAAA,urFAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MDjBY;GAAgB,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;GAAA,SAAA,CAAA,aAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAa,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;GAAA,SAAA,CAAA,YAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAa9B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAf/B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAuB,SACxB,CAAC,kBAAkB,aAAa;GAAC,iBAGzB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,sBAAsB;IACtB,yCAAyC;GAC1C;GAAA,UAAA;GAAA,QAAA,CAAA,urFAAA;EAAA,CAAA"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, numberAttribute, output } from "@angular/core";
|
|
3
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
3
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
5
|
+
import { toStyleObject, wizardTokens } from "@tectra-ng/themes";
|
|
6
|
+
import { TxIcon, provideTxIconDefaults, txIconArrowLeft, txIconArrowRight, txIconForward } from "@tectra-ng/icons";
|
|
6
7
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
7
|
-
import { TxIcon } from "@tectra-ng/icons";
|
|
8
8
|
import { TxPill } from "@tectra-ng/ui/pill";
|
|
9
9
|
import { DecimalPipe } from "@angular/common";
|
|
10
10
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
11
|
+
const WIZARD_ICON_DEFAULTS = {
|
|
12
|
+
"arrow-left": txIconArrowLeft,
|
|
13
|
+
"arrow-right": txIconArrowRight,
|
|
14
|
+
forward: txIconForward
|
|
15
|
+
};
|
|
16
|
+
const WIZARD_THEME = { wizard: wizardTokens };
|
|
11
17
|
var TxWizardLayout = class TxWizardLayout {
|
|
18
|
+
wizardTheme = injectTokens(WIZARD_THEME);
|
|
12
19
|
responsive = input("viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
|
|
13
20
|
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
14
21
|
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
@@ -108,6 +115,7 @@ var TxWizardLayout = class TxWizardLayout {
|
|
|
108
115
|
`,
|
|
109
116
|
isInline: true,
|
|
110
117
|
styles: [":host{display:block}.tx-wizard-layout__grid{display:grid;grid-template-columns:minmax(0,1fr);min-height:inherit}:host([data-responsive=container]){container:tx-wizard/inline-size;contain:layout}.tx-wizard-layout__panel{display:flex;justify-content:center;min-width:0}.tx-wizard-layout__inner{display:flex;flex-direction:column;box-sizing:border-box;width:100%}.tx-wizard-layout__main{display:flex;flex:1;flex-direction:column;justify-content:center}.tx-wizard-layout__visual{order:-1;min-width:0}.tx-wizard-layout__visual:empty{display:none}:host([data-styled]){min-height:var(--tx-wizard-layout-min-height);background:var(--tx-wizard-layout-background);color:var(--tx-wizard-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-layout__inner{max-width:var(--tx-wizard-layout-max-width);padding:var(--tx-wizard-layout-padding)}:host([data-styled]) .tx-wizard-layout__main{gap:var(--tx-wizard-layout-main-gap);padding:var(--tx-wizard-layout-main-padding)}:host([data-styled]) ::ng-deep .tx-wizard-step--enter{animation:tx-wizard-step-in var(--tx-wizard-layout-step-duration) var(--tx-wizard-layout-step-easing) both}@media(width>=640px){:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__inner{padding:var(--tx-wizard-layout-small-padding)}}@container tx-wizard (width >= 640px){:host([data-responsive=container][data-styled]) .tx-wizard-layout__inner{padding:var(--tx-wizard-layout-small-padding)}}@media(width>=1024px){:host([data-responsive=viewport]) .tx-wizard-layout__grid{grid-template-columns:repeat(2,minmax(0,1fr))}:host([data-responsive=viewport]) .tx-wizard-layout__visual{position:sticky;top:0;order:0}:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__inner{min-height:var(--tx-wizard-layout-min-height);padding:var(--tx-wizard-layout-wide-padding)}:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__visual{height:var(--tx-wizard-layout-min-height)}}@container tx-wizard (width >= 1024px){:host([data-responsive=container]) .tx-wizard-layout__grid{grid-template-columns:repeat(2,minmax(0,1fr))}:host([data-responsive=container]) .tx-wizard-layout__visual{position:sticky;top:0;order:0}:host([data-responsive=container][data-styled]) .tx-wizard-layout__inner{min-height:var(--tx-wizard-layout-min-height);padding:var(--tx-wizard-layout-wide-padding)}:host([data-responsive=container][data-styled]) .tx-wizard-layout__visual{height:var(--tx-wizard-layout-min-height)}}@keyframes tx-wizard-step-in{0%{opacity:0;transform:translateY(var(--tx-wizard-layout-step-shift))}}@media(prefers-reduced-motion:reduce){:host([data-styled]) ::ng-deep .tx-wizard-step--enter{animation:none}}\n"],
|
|
118
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
111
119
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
112
120
|
});
|
|
113
121
|
};
|
|
@@ -150,6 +158,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
150
158
|
"[attr.data-styled]": "!isUnstyled() || null",
|
|
151
159
|
"[attr.data-responsive]": "responsive()"
|
|
152
160
|
},
|
|
161
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
153
162
|
styles: [":host{display:block}.tx-wizard-layout__grid{display:grid;grid-template-columns:minmax(0,1fr);min-height:inherit}:host([data-responsive=container]){container:tx-wizard/inline-size;contain:layout}.tx-wizard-layout__panel{display:flex;justify-content:center;min-width:0}.tx-wizard-layout__inner{display:flex;flex-direction:column;box-sizing:border-box;width:100%}.tx-wizard-layout__main{display:flex;flex:1;flex-direction:column;justify-content:center}.tx-wizard-layout__visual{order:-1;min-width:0}.tx-wizard-layout__visual:empty{display:none}:host([data-styled]){min-height:var(--tx-wizard-layout-min-height);background:var(--tx-wizard-layout-background);color:var(--tx-wizard-layout-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-layout__inner{max-width:var(--tx-wizard-layout-max-width);padding:var(--tx-wizard-layout-padding)}:host([data-styled]) .tx-wizard-layout__main{gap:var(--tx-wizard-layout-main-gap);padding:var(--tx-wizard-layout-main-padding)}:host([data-styled]) ::ng-deep .tx-wizard-step--enter{animation:tx-wizard-step-in var(--tx-wizard-layout-step-duration) var(--tx-wizard-layout-step-easing) both}@media(width>=640px){:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__inner{padding:var(--tx-wizard-layout-small-padding)}}@container tx-wizard (width >= 640px){:host([data-responsive=container][data-styled]) .tx-wizard-layout__inner{padding:var(--tx-wizard-layout-small-padding)}}@media(width>=1024px){:host([data-responsive=viewport]) .tx-wizard-layout__grid{grid-template-columns:repeat(2,minmax(0,1fr))}:host([data-responsive=viewport]) .tx-wizard-layout__visual{position:sticky;top:0;order:0}:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__inner{min-height:var(--tx-wizard-layout-min-height);padding:var(--tx-wizard-layout-wide-padding)}:host([data-responsive=viewport][data-styled]) .tx-wizard-layout__visual{height:var(--tx-wizard-layout-min-height)}}@container tx-wizard (width >= 1024px){:host([data-responsive=container]) .tx-wizard-layout__grid{grid-template-columns:repeat(2,minmax(0,1fr))}:host([data-responsive=container]) .tx-wizard-layout__visual{position:sticky;top:0;order:0}:host([data-responsive=container][data-styled]) .tx-wizard-layout__inner{min-height:var(--tx-wizard-layout-min-height);padding:var(--tx-wizard-layout-wide-padding)}:host([data-responsive=container][data-styled]) .tx-wizard-layout__visual{height:var(--tx-wizard-layout-min-height)}}@keyframes tx-wizard-step-in{0%{opacity:0;transform:translateY(var(--tx-wizard-layout-step-shift))}}@media(prefers-reduced-motion:reduce){:host([data-styled]) ::ng-deep .tx-wizard-step--enter{animation:none}}\n"]
|
|
154
163
|
}]
|
|
155
164
|
}],
|
|
@@ -197,6 +206,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
197
206
|
}
|
|
198
207
|
});
|
|
199
208
|
var TxWizardProgress = class TxWizardProgress {
|
|
209
|
+
wizardTheme = injectTokens(WIZARD_THEME);
|
|
200
210
|
total = input.required({
|
|
201
211
|
...ngDevMode ? { debugName: "total" } : /* istanbul ignore next */ {},
|
|
202
212
|
transform: numberAttribute
|
|
@@ -325,6 +335,7 @@ var TxWizardProgress = class TxWizardProgress {
|
|
|
325
335
|
`,
|
|
326
336
|
isInline: true,
|
|
327
337
|
styles: [":host{display:flex;flex-direction:column}.tx-wizard-progress__segments{display:flex;margin:0;padding:0;list-style:none}.tx-wizard-progress__segment{position:relative;flex:1;overflow:hidden}.tx-wizard-progress__fill{position:absolute;inset:0;transform-origin:left;scale:0 1}.tx-wizard-progress__segment--done .tx-wizard-progress__fill,.tx-wizard-progress__segment--current .tx-wizard-progress__fill{scale:1 1}:host([data-styled]){gap:var(--tx-wizard-progress-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-progress__label{color:var(--tx-wizard-progress-label-color);font-size:var(--tx-wizard-progress-label-font-size);font-weight:var(--tx-wizard-progress-label-font-weight);letter-spacing:var(--tx-wizard-progress-label-letter-spacing);text-transform:uppercase}:host([data-styled]) .tx-wizard-progress__segments{gap:var(--tx-wizard-progress-segment-gap)}:host([data-styled]) .tx-wizard-progress__segment{height:var(--tx-wizard-progress-segment-height);border-radius:var(--tx-radius-full);background:var(--tx-wizard-progress-segment-background)}:host([data-styled]) .tx-wizard-progress__fill{border-radius:var(--tx-radius-full);background:var(--tx-wizard-progress-fill-background);transition:scale var(--tx-wizard-progress-duration) var(--tx-wizard-progress-easing),opacity var(--tx-wizard-progress-duration) var(--tx-wizard-progress-easing)}:host([data-styled]) .tx-wizard-progress__segment--current .tx-wizard-progress__fill{opacity:var(--tx-wizard-progress-current-opacity)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-wizard-progress__fill{transition:none}}\n"],
|
|
338
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
328
339
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
329
340
|
});
|
|
330
341
|
};
|
|
@@ -364,6 +375,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
364
375
|
"[style]": "hostStyle()",
|
|
365
376
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
366
377
|
},
|
|
378
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
367
379
|
styles: [":host{display:flex;flex-direction:column}.tx-wizard-progress__segments{display:flex;margin:0;padding:0;list-style:none}.tx-wizard-progress__segment{position:relative;flex:1;overflow:hidden}.tx-wizard-progress__fill{position:absolute;inset:0;transform-origin:left;scale:0 1}.tx-wizard-progress__segment--done .tx-wizard-progress__fill,.tx-wizard-progress__segment--current .tx-wizard-progress__fill{scale:1 1}:host([data-styled]){gap:var(--tx-wizard-progress-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-progress__label{color:var(--tx-wizard-progress-label-color);font-size:var(--tx-wizard-progress-label-font-size);font-weight:var(--tx-wizard-progress-label-font-weight);letter-spacing:var(--tx-wizard-progress-label-letter-spacing);text-transform:uppercase}:host([data-styled]) .tx-wizard-progress__segments{gap:var(--tx-wizard-progress-segment-gap)}:host([data-styled]) .tx-wizard-progress__segment{height:var(--tx-wizard-progress-segment-height);border-radius:var(--tx-radius-full);background:var(--tx-wizard-progress-segment-background)}:host([data-styled]) .tx-wizard-progress__fill{border-radius:var(--tx-radius-full);background:var(--tx-wizard-progress-fill-background);transition:scale var(--tx-wizard-progress-duration) var(--tx-wizard-progress-easing),opacity var(--tx-wizard-progress-duration) var(--tx-wizard-progress-easing)}:host([data-styled]) .tx-wizard-progress__segment--current .tx-wizard-progress__fill{opacity:var(--tx-wizard-progress-current-opacity)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-wizard-progress__fill{transition:none}}\n"]
|
|
368
380
|
}]
|
|
369
381
|
}],
|
|
@@ -435,6 +447,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
435
447
|
}
|
|
436
448
|
});
|
|
437
449
|
var TxWizardStepHead = class TxWizardStepHead {
|
|
450
|
+
wizardTheme = injectTokens(WIZARD_THEME);
|
|
438
451
|
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
439
452
|
icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
440
453
|
lead = input(void 0, ...ngDevMode ? [{ debugName: "lead" }] : /* istanbul ignore next */ []);
|
|
@@ -576,6 +589,7 @@ var TxWizardStepHead = class TxWizardStepHead {
|
|
|
576
589
|
],
|
|
577
590
|
outputs: ["removed"]
|
|
578
591
|
}],
|
|
592
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
579
593
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
580
594
|
});
|
|
581
595
|
};
|
|
@@ -612,6 +626,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
612
626
|
"[style]": "hostStyle()",
|
|
613
627
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
614
628
|
},
|
|
629
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
615
630
|
styles: [":host{display:flex;flex-direction:column;align-items:flex-start}.tx-wizard-step-head__icon{display:flex;align-items:center;justify-content:center}.tx-wizard-step-head__title-row{display:flex;flex-wrap:wrap;align-items:center}.tx-wizard-step-head__title,.tx-wizard-step-head__lead{margin:0}:host([data-styled]){gap:var(--tx-wizard-step-head-gap);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-step-head__icon{width:var(--tx-wizard-step-head-icon-size);height:var(--tx-wizard-step-head-icon-size);border-radius:var(--tx-wizard-step-head-icon-border-radius);background:var(--tx-wizard-step-head-icon-background);color:var(--tx-wizard-step-head-icon-color);font-size:var(--tx-wizard-step-head-icon-font-size)}:host([data-styled]) .tx-wizard-step-head__title-row{gap:var(--tx-wizard-step-head-title-gap)}:host([data-styled]) .tx-wizard-step-head__title{color:var(--tx-wizard-step-head-title-color);font-size:var(--tx-wizard-step-head-title-font-size);font-weight:var(--tx-wizard-step-head-title-font-weight);line-height:var(--tx-wizard-step-head-title-line-height);letter-spacing:var(--tx-wizard-step-head-title-letter-spacing)}:host([data-styled]) .tx-wizard-step-head__lead{max-width:var(--tx-wizard-step-head-lead-max-width);color:var(--tx-wizard-step-head-lead-color);font-size:var(--tx-wizard-step-head-lead-font-size);line-height:var(--tx-wizard-step-head-lead-line-height)}\n"]
|
|
616
631
|
}]
|
|
617
632
|
}],
|
|
@@ -683,6 +698,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
683
698
|
}
|
|
684
699
|
});
|
|
685
700
|
var TxWizardStage = class TxWizardStage {
|
|
701
|
+
wizardTheme = injectTokens(WIZARD_THEME);
|
|
686
702
|
layout = inject(TxWizardLayout, { optional: true });
|
|
687
703
|
direction = input("forward", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
|
|
688
704
|
number = input(void 0, ...ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []);
|
|
@@ -800,6 +816,7 @@ var TxWizardStage = class TxWizardStage {
|
|
|
800
816
|
type: DecimalPipe,
|
|
801
817
|
name: "number"
|
|
802
818
|
}],
|
|
819
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
803
820
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
804
821
|
});
|
|
805
822
|
};
|
|
@@ -838,6 +855,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
838
855
|
"[attr.data-direction]": "direction()",
|
|
839
856
|
"[attr.data-responsive]": "responsive()"
|
|
840
857
|
},
|
|
858
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
841
859
|
styles: [":host{--_shift: 1;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;height:100%;overflow:hidden}:host([data-direction=back]){--_shift: -1}.tx-wizard-stage__stage{display:grid;flex-shrink:0;place-items:center}.tx-wizard-stage__caption{display:none;flex-direction:column;align-items:center;text-align:center}:host ::ng-deep .tx-wizard-scene{display:block;grid-area:1/1;width:100%;height:100%}:host([data-styled]){gap:var(--tx-wizard-stage-gap);min-height:var(--tx-wizard-stage-min-height);padding:var(--tx-wizard-stage-padding);background:var(--tx-wizard-stage-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-wizard-stage__stage{width:var(--tx-wizard-stage-size);height:var(--tx-wizard-stage-size);margin-block:calc(var(--tx-wizard-stage-size) * (var(--tx-wizard-stage-narrow-scale) - 1) / 2);scale:var(--tx-wizard-stage-narrow-scale)}:host([data-styled]) .tx-wizard-stage__caption{gap:var(--tx-wizard-stage-caption-gap)}:host([data-styled]) .tx-wizard-stage__caption--enter{animation:tx-wizard-caption-in var(--tx-wizard-stage-caption-duration) var(--tx-wizard-stage-scene-easing) both}:host([data-styled]) .tx-wizard-stage__number{color:var(--tx-wizard-stage-number-color);font-size:var(--tx-wizard-stage-number-font-size);font-weight:var(--tx-wizard-stage-number-font-weight);font-variant-numeric:tabular-nums}:host([data-styled]) .tx-wizard-stage__title{color:var(--tx-wizard-stage-title-color);font-size:var(--tx-wizard-stage-title-font-size);font-weight:var(--tx-wizard-stage-title-font-weight)}:host([data-styled]) ::ng-deep .tx-wizard-scene--enter{animation:tx-wizard-scene-in var(--tx-wizard-stage-scene-enter-duration) var(--tx-wizard-stage-scene-easing) both}:host([data-styled]) ::ng-deep .tx-wizard-scene--leave{animation:tx-wizard-scene-out var(--tx-wizard-stage-scene-leave-duration) ease-in both}@media(width>=1024px){:host([data-responsive=viewport]) .tx-wizard-stage__caption{display:flex}:host([data-responsive=viewport][data-styled]){gap:var(--tx-wizard-stage-wide-gap);padding:var(--tx-wizard-stage-wide-padding)}:host([data-responsive=viewport][data-styled]) .tx-wizard-stage__stage{margin-block:0;scale:1}}@container tx-wizard (width >= 1024px){:host([data-responsive=container]) .tx-wizard-stage__caption{display:flex}:host([data-responsive=container][data-styled]){gap:var(--tx-wizard-stage-wide-gap);padding:var(--tx-wizard-stage-wide-padding)}:host([data-responsive=container][data-styled]) .tx-wizard-stage__stage{margin-block:0;scale:1}}@keyframes tx-wizard-scene-in{0%{opacity:0;transform:translate(calc(var(--_shift) * var(--tx-wizard-stage-scene-enter-shift))) scale(.96)}}@keyframes tx-wizard-scene-out{to{opacity:0;transform:translate(calc(var(--_shift) * -1 * var(--tx-wizard-stage-scene-leave-shift))) scale(.98)}}@keyframes tx-wizard-caption-in{0%{opacity:0;transform:translateY(10px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) ::ng-deep .tx-wizard-scene--enter,:host([data-styled]) ::ng-deep .tx-wizard-scene--leave,:host([data-styled]) .tx-wizard-stage__caption--enter{animation:none}}\n"]
|
|
842
860
|
}]
|
|
843
861
|
}],
|
|
@@ -901,6 +919,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
901
919
|
}
|
|
902
920
|
});
|
|
903
921
|
var TxWizardFooter = class TxWizardFooter {
|
|
922
|
+
wizardTheme = injectTokens(WIZARD_THEME);
|
|
904
923
|
nextLabel = input(void 0, ...ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []);
|
|
905
924
|
nextIcon = input("arrow-right", ...ngDevMode ? [{ debugName: "nextIcon" }] : /* istanbul ignore next */ []);
|
|
906
925
|
backLabel = input(void 0, ...ngDevMode ? [{ debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
@@ -1112,6 +1131,7 @@ var TxWizardFooter = class TxWizardFooter {
|
|
|
1112
1131
|
"unstyled"
|
|
1113
1132
|
]
|
|
1114
1133
|
}],
|
|
1134
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
1115
1135
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1116
1136
|
});
|
|
1117
1137
|
};
|
|
@@ -1181,6 +1201,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1181
1201
|
"[style]": "hostStyle()",
|
|
1182
1202
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
1183
1203
|
},
|
|
1204
|
+
viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],
|
|
1184
1205
|
styles: [":host{display:flex;align-items:center}.tx-wizard-footer__end{display:flex;align-items:center;margin-inline-start:auto}:host([data-styled]){gap:var(--tx-wizard-footer-gap);padding-top:var(--tx-wizard-footer-padding-top);border-top:1px solid var(--tx-wizard-footer-border-color)}:host([data-styled]) .tx-wizard-footer__end{gap:var(--tx-wizard-footer-end-gap)}\n"]
|
|
1185
1206
|
}]
|
|
1186
1207
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-wizard.mjs","names":[],"sources":["../../../../packages/blocks/wizard/src/wizard-layout.component.ts","../../../../packages/blocks/wizard/src/wizard-progress.component.ts","../../../../packages/blocks/wizard/src/wizard-step-head.component.ts","../../../../packages/blocks/wizard/src/wizard-stage.component.ts","../../../../packages/blocks/wizard/src/wizard-footer.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayoutPart, TxWizardResponsive } from './wizard.types';\n\n@Component({\n selector: 'tx-wizard-layout',\n template: `\n <div class=\"tx-wizard-layout__grid\">\n <section class=\"tx-wizard-layout__panel\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\">\n <div class=\"tx-wizard-layout__inner\">\n <div class=\"tx-wizard-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txWizardHeader]\" />\n </div>\n <div class=\"tx-wizard-layout__main\">\n <div class=\"tx-wizard-layout__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-content select=\"[txWizardBody]\" />\n </div>\n <div class=\"tx-wizard-layout__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txWizardFooter]\" />\n </div>\n </div>\n </div>\n </section>\n <aside class=\"tx-wizard-layout__visual\" [class]=\"passThrough().visual?.class\" [style]=\"passThrough().visual?.style\">\n <ng-content select=\"[txWizardVisual]\" />\n </aside>\n </div>\n `,\n styleUrl: './wizard-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n})\nexport class TxWizardLayout {\n readonly responsive = input<TxWizardResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardLayoutPart, TxWizardLayout> | 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('wizardLayout', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';\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, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardProgressPart } from './wizard.types';\n\n@Component({\n selector: 'tx-wizard-progress',\n template: `\n @if (label()) {\n <span class=\"tx-wizard-progress__label\" aria-hidden=\"true\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n }\n <ol class=\"tx-wizard-progress__segments\" [attr.aria-label]=\"label() || translations().wizardProgress\" [class]=\"passThrough().segments?.class\" [style]=\"passThrough().segments?.style\">\n @for (segment of segments(); track $index; let position = $index) {\n <li\n class=\"tx-wizard-progress__segment\"\n [class.tx-wizard-progress__segment--done]=\"position < current()\"\n [class.tx-wizard-progress__segment--current]=\"position === current()\"\n [attr.aria-current]=\"position === current() ? 'step' : null\"\n [attr.aria-label]=\"stepLabels()[position] || null\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n >\n <span class=\"tx-wizard-progress__fill\"></span>\n </li>\n }\n </ol>\n `,\n styleUrl: './wizard-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-progress',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxWizardProgress {\n readonly total = input.required<number, unknown>({ transform: numberAttribute });\n readonly current = input.required<number, unknown>({ transform: numberAttribute });\n readonly label = input<string | undefined>(undefined);\n readonly stepLabels = input<readonly string[]>([]);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardProgressPart, TxWizardProgress> | 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('wizardProgress', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly segments = computed(() => Array.from({ length: Math.max(this.total(), 0) }));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPill } from '@tectra-ng/ui/pill';\nimport { TxWizardStepHeadPart } from './wizard.types';\n\n@Component({\n selector: 'tx-wizard-step-head',\n imports: [TxIcon, TxPill],\n template: `\n @if (icon(); as name) {\n <span class=\"tx-wizard-step-head__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <div class=\"tx-wizard-step-head__title-row\">\n <h1 class=\"tx-wizard-step-head__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</h1>\n @if (badge()) {\n <tx-pill tone=\"neutral\" size=\"small\" [value]=\"badge()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n @if (lead()) {\n <p class=\"tx-wizard-step-head__lead\" [class]=\"passThrough().lead?.class\" [style]=\"passThrough().lead?.style\">{{ lead() }}</p>\n }\n `,\n styleUrl: './wizard-step-head.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-step-head',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxWizardStepHead {\n readonly title = input.required<string>();\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly lead = input<string | undefined>(undefined);\n readonly badge = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStepHeadPart, TxWizardStepHead> | 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('wizardStepHead', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { DecimalPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayout } from './wizard-layout.component';\nimport { TxWizardDirection, TxWizardStagePart } from './wizard.types';\n\n@Component({\n selector: 'tx-wizard-stage',\n imports: [DecimalPipe],\n template: `\n <ng-content select=\"[txWizardBackdrop]\" />\n <div class=\"tx-wizard-stage__stage\" aria-hidden=\"true\" [class]=\"passThrough().stage?.class\" [style]=\"passThrough().stage?.style\">\n <ng-content />\n </div>\n @if (caption(); as text) {\n @for (current of [text]; track current) {\n <div class=\"tx-wizard-stage__caption\" animate.enter=\"tx-wizard-stage__caption--enter\" [class]=\"passThrough().caption?.class\" [style]=\"passThrough().caption?.style\">\n @if (number() !== undefined) {\n <span class=\"tx-wizard-stage__number\">{{ number() | number: '2.0-0' }}</span>\n }\n <span class=\"tx-wizard-stage__title\">{{ current }}</span>\n </div>\n }\n }\n `,\n styleUrl: './wizard-stage.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-stage',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-responsive]': 'responsive()',\n },\n})\nexport class TxWizardStage {\n private readonly layout = inject(TxWizardLayout, { optional: true });\n\n readonly direction = input<TxWizardDirection>('forward');\n readonly number = input<number | undefined>(undefined);\n readonly caption = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStagePart, TxWizardStage> | 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('wizardStage', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\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 { TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxWizardFooterPart } from './wizard.types';\n\n@Component({\n selector: 'tx-wizard-footer',\n imports: [TxButton],\n template: `\n @if (showBack()) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n outlined\n icon=\"arrow-left\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().back?.class\"\n [style]=\"passThrough().back?.style\"\n (click)=\"back.emit()\"\n >\n {{ backLabel() ?? translations().wizardBack }}\n </button>\n }\n <div class=\"tx-wizard-footer__end\">\n @if (skipLabel(); as skipText) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n text\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().skip?.class\"\n [style]=\"passThrough().skip?.style\"\n (click)=\"skip.emit()\"\n >\n {{ skipText }}\n </button>\n }\n <button\n txButton\n type=\"button\"\n [icon]=\"nextIcon()\"\n [loading]=\"loading()\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n (click)=\"next.emit()\"\n >\n {{ nextLabel() ?? translations().wizardNext }}\n </button>\n </div>\n `,\n styleUrl: './wizard-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-footer',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxWizardFooter {\n readonly nextLabel = input<string | undefined>(undefined);\n readonly nextIcon = input<TxIconName | (string & {})>('arrow-right');\n readonly backLabel = input<string | undefined>(undefined);\n readonly showBack = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly skipLabel = input<string | undefined>(undefined);\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardFooterPart, TxWizardFooter> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly back = output<void>();\n readonly next = output<void>();\n readonly skip = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('wizardFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;;;AAwCA,IAAa,iBAAb,MAAa,eAAc;CAChB,aAAa,MAA0B,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAyD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACxE,KAAK,MAAqE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACpF,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,gBAAgB,MAAM,KAAK,IAAI,KAAK,SAAS;CAC7E,YAAY,gBAAgB;EAAE,GAAG,cAAc,KAAK,GAAE,GAAI,aAAa;EAAG,GAAG,KAAK,YAAW,CAAE,CAAC,MAAM;CAAK,IAAI,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAT7G,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,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ACN,WAAW;IACX,WAAW;IACX,sBAAsB;GACvB;GAAA,QAAA,CAAA,yWAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-wizard.mjs","names":[],"sources":["../../../../packages/blocks/wizard/src/wizard.icons.ts","../../../../packages/blocks/wizard/src/wizard.theme.ts","../../../../packages/blocks/wizard/src/wizard-layout.component.ts","../../../../packages/blocks/wizard/src/wizard-progress.component.ts","../../../../packages/blocks/wizard/src/wizard-step-head.component.ts","../../../../packages/blocks/wizard/src/wizard-stage.component.ts","../../../../packages/blocks/wizard/src/wizard-footer.component.ts"],"sourcesContent":["import { TxIconSet, txIconArrowLeft, txIconArrowRight, txIconForward } from '@tectra-ng/icons';\n\nexport const WIZARD_ICON_DEFAULTS: TxIconSet = {\n 'arrow-left': txIconArrowLeft,\n 'arrow-right': txIconArrowRight,\n forward: txIconForward,\n};\n","import { wizardTokens } from '@tectra-ng/themes';\n\nexport const WIZARD_THEME = {\n wizard: wizardTokens,\n};\n","import { 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, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayoutPart, TxWizardResponsive } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n@Component({\n selector: 'tx-wizard-layout',\n template: `\n <div class=\"tx-wizard-layout__grid\">\n <section class=\"tx-wizard-layout__panel\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\">\n <div class=\"tx-wizard-layout__inner\">\n <div class=\"tx-wizard-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txWizardHeader]\" />\n </div>\n <div class=\"tx-wizard-layout__main\">\n <div class=\"tx-wizard-layout__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-content select=\"[txWizardBody]\" />\n </div>\n <div class=\"tx-wizard-layout__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txWizardFooter]\" />\n </div>\n </div>\n </div>\n </section>\n <aside class=\"tx-wizard-layout__visual\" [class]=\"passThrough().visual?.class\" [style]=\"passThrough().visual?.style\">\n <ng-content select=\"[txWizardVisual]\" />\n </aside>\n </div>\n `,\n styleUrl: './wizard-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardLayout {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly responsive = input<TxWizardResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardLayoutPart, TxWizardLayout> | 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('wizardLayout', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';\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 { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardProgressPart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n@Component({\n selector: 'tx-wizard-progress',\n template: `\n @if (label()) {\n <span class=\"tx-wizard-progress__label\" aria-hidden=\"true\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n }\n <ol class=\"tx-wizard-progress__segments\" [attr.aria-label]=\"label() || translations().wizardProgress\" [class]=\"passThrough().segments?.class\" [style]=\"passThrough().segments?.style\">\n @for (segment of segments(); track $index; let position = $index) {\n <li\n class=\"tx-wizard-progress__segment\"\n [class.tx-wizard-progress__segment--done]=\"position < current()\"\n [class.tx-wizard-progress__segment--current]=\"position === current()\"\n [attr.aria-current]=\"position === current() ? 'step' : null\"\n [attr.aria-label]=\"stepLabels()[position] || null\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n >\n <span class=\"tx-wizard-progress__fill\"></span>\n </li>\n }\n </ol>\n `,\n styleUrl: './wizard-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-progress',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardProgress {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly total = input.required<number, unknown>({ transform: numberAttribute });\n readonly current = input.required<number, unknown>({ transform: numberAttribute });\n readonly label = input<string | undefined>(undefined);\n readonly stepLabels = input<readonly string[]>([]);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardProgressPart, TxWizardProgress> | 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('wizardProgress', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly segments = computed(() => Array.from({ length: Math.max(this.total(), 0) }));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { 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 { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPill } from '@tectra-ng/ui/pill';\nimport { TxWizardStepHeadPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n@Component({\n selector: 'tx-wizard-step-head',\n imports: [TxIcon, TxPill],\n template: `\n @if (icon(); as name) {\n <span class=\"tx-wizard-step-head__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <div class=\"tx-wizard-step-head__title-row\">\n <h1 class=\"tx-wizard-step-head__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</h1>\n @if (badge()) {\n <tx-pill tone=\"neutral\" size=\"small\" [value]=\"badge()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n @if (lead()) {\n <p class=\"tx-wizard-step-head__lead\" [class]=\"passThrough().lead?.class\" [style]=\"passThrough().lead?.style\">{{ lead() }}</p>\n }\n `,\n styleUrl: './wizard-step-head.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-step-head',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStepHead {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly title = input.required<string>();\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly lead = input<string | undefined>(undefined);\n readonly badge = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStepHeadPart, TxWizardStepHead> | 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('wizardStepHead', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { DecimalPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayout } from './wizard-layout.component';\nimport { TxWizardDirection, TxWizardStagePart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n@Component({\n selector: 'tx-wizard-stage',\n imports: [DecimalPipe],\n template: `\n <ng-content select=\"[txWizardBackdrop]\" />\n <div class=\"tx-wizard-stage__stage\" aria-hidden=\"true\" [class]=\"passThrough().stage?.class\" [style]=\"passThrough().stage?.style\">\n <ng-content />\n </div>\n @if (caption(); as text) {\n @for (current of [text]; track current) {\n <div class=\"tx-wizard-stage__caption\" animate.enter=\"tx-wizard-stage__caption--enter\" [class]=\"passThrough().caption?.class\" [style]=\"passThrough().caption?.style\">\n @if (number() !== undefined) {\n <span class=\"tx-wizard-stage__number\">{{ number() | number: '2.0-0' }}</span>\n }\n <span class=\"tx-wizard-stage__title\">{{ current }}</span>\n </div>\n }\n }\n `,\n styleUrl: './wizard-stage.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-stage',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStage {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n private readonly layout = inject(TxWizardLayout, { optional: true });\n\n readonly direction = input<TxWizardDirection>('forward');\n readonly number = input<number | undefined>(undefined);\n readonly caption = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStagePart, TxWizardStage> | 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('wizardStage', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\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, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxWizardFooterPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n@Component({\n selector: 'tx-wizard-footer',\n imports: [TxButton],\n template: `\n @if (showBack()) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n outlined\n icon=\"arrow-left\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().back?.class\"\n [style]=\"passThrough().back?.style\"\n (click)=\"back.emit()\"\n >\n {{ backLabel() ?? translations().wizardBack }}\n </button>\n }\n <div class=\"tx-wizard-footer__end\">\n @if (skipLabel(); as skipText) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n text\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().skip?.class\"\n [style]=\"passThrough().skip?.style\"\n (click)=\"skip.emit()\"\n >\n {{ skipText }}\n </button>\n }\n <button\n txButton\n type=\"button\"\n [icon]=\"nextIcon()\"\n [loading]=\"loading()\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n (click)=\"next.emit()\"\n >\n {{ nextLabel() ?? translations().wizardNext }}\n </button>\n </div>\n `,\n styleUrl: './wizard-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-footer',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardFooter {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly nextLabel = input<string | undefined>(undefined);\n readonly nextIcon = input<TxIconName | (string & {})>('arrow-right');\n readonly backLabel = input<string | undefined>(undefined);\n readonly showBack = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly skipLabel = input<string | undefined>(undefined);\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardFooterPart, TxWizardFooter> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly back = output<void>();\n readonly next = output<void>();\n readonly skip = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('wizardFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;;;AAEA,MAAa,uBAAkC;CAC7C,cAAc;CACd,eAAe;CACf,SAAS;AACV;ACJD,MAAa,eAAe,EAC1B,QAAQ,aACT;ACwCD,IAAa,iBAAb,MAAa,eAAc;CACR,cAAc,aAAa,YAAY;CAE/C,aAAa,MAA0B,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAyD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACxE,KAAK,MAAqE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACpF,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,W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for Angular consoles and admin apps on the tectra components: filters panel, page header, empty state, layouts, wizard, command palette and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"@angular/common": "^22.0.0",
|
|
29
29
|
"@angular/core": "^22.0.0",
|
|
30
30
|
"@angular/router": "^22.0.0",
|
|
31
|
-
"@tectra-ng/core": "^0.
|
|
32
|
-
"@tectra-ng/icons": "^0.
|
|
33
|
-
"@tectra-ng/qr": "^0.
|
|
34
|
-
"@tectra-ng/themes": "^0.
|
|
35
|
-
"@tectra-ng/ui": "^0.
|
|
31
|
+
"@tectra-ng/core": "^0.3.1",
|
|
32
|
+
"@tectra-ng/icons": "^0.3.1",
|
|
33
|
+
"@tectra-ng/qr": "^0.3.1",
|
|
34
|
+
"@tectra-ng/themes": "^0.3.1",
|
|
35
|
+
"@tectra-ng/ui": "^0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@angular/router": {
|
|
@@ -4,6 +4,7 @@ import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type TxActionTilePart = 'root' | 'button' | 'icon' | 'body' | 'title' | 'text' | 'end';
|
|
6
6
|
export declare class TxActionTile {
|
|
7
|
+
private readonly actionTileTheme;
|
|
7
8
|
readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
|
|
8
9
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
9
10
|
readonly text: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-action-tile.d.ts","names":[],"sources":["../../../../packages/blocks/action-tile/src/action-tile.types.ts","../../../../packages/blocks/action-tile/src/action-tile.component.ts"],"mappings":";;;;YAAY;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-action-tile.d.ts","names":[],"sources":["../../../../packages/blocks/action-tile/src/action-tile.types.ts","../../../../packages/blocks/action-tile/src/action-tile.component.ts"],"mappings":";;;;YAAY;qBCkDC;mBACM;WAER,8BAAI,YAAA;WACJ,+BAAK;WACL,8BAAI;WACJ,iCAAO;WACP,kCAAQ;WACR,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,mCAAS;WAET,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;WACX,mCAAS;;;YAER;SAnBC,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -11,6 +11,7 @@ export interface TxActionsMenuItem {
|
|
|
11
11
|
export type TxActionsMenuSize = 'small' | 'medium';
|
|
12
12
|
export type TxActionsMenuPart = 'root' | 'trigger' | 'list' | 'item' | 'icon' | 'label';
|
|
13
13
|
export declare class TxActionsMenu {
|
|
14
|
+
private readonly actionsMenuTheme;
|
|
14
15
|
private readonly popover;
|
|
15
16
|
private readonly list;
|
|
16
17
|
private pending;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-actions-menu.d.ts","names":[],"sources":["../../../../packages/blocks/actions-menu/src/actions-menu.types.ts","../../../../packages/blocks/actions-menu/src/actions-menu.component.ts"],"mappings":";;;;iBAEiB;EACf;EACA;EACA,OAAO;EACP;;YAGU;YAEA;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-actions-menu.d.ts","names":[],"sources":["../../../../packages/blocks/actions-menu/src/actions-menu.types.ts","../../../../packages/blocks/actions-menu/src/actions-menu.component.ts"],"mappings":";;;;iBAEiB;EACf;EACA;EACA,OAAO;EACP;;YAGU;YAEA;qBCoBC;mBACM;mBAEA;mBACA;UACT;WAEC,+BAAK,qBAAA;WACL,iCAAO;WACP,mCAAS;WACT,8BAAI,YAAA;WACJ,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WAEV,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;qBACD,sCAAY,wCAAA;qBACZ,oCAAU,OAAA;WACpB,mCAAS;;;qBACC;;;;;qBACA,8BAAI;EAEvB;YAIU,OAAO,MAAM;YAKb;YAQA,UAAU,OAAO;SA3ChB,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -11,6 +11,7 @@ export interface TxAppFooterLink {
|
|
|
11
11
|
target?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare class TxAppFooter {
|
|
14
|
+
private readonly appFooterTheme;
|
|
14
15
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
15
16
|
readonly links: import("@angular/core").InputSignal<readonly TxAppFooterLink[]>;
|
|
16
17
|
readonly variant: import("@angular/core").InputSignal<TxAppFooterVariant>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-app-footer.d.ts","names":[],"sources":["../../../../packages/blocks/app-footer/src/app-footer.types.ts","../../../../packages/blocks/app-footer/src/app-footer.component.ts"],"mappings":";;;YAAY;YAEA;iBAEK;EACf;EACA;EACA,cAAc;EACd;EACA;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-app-footer.d.ts","names":[],"sources":["../../../../packages/blocks/app-footer/src/app-footer.types.ts","../../../../packages/blocks/app-footer/src/app-footer.component.ts"],"mappings":";;;YAAY;YAEA;iBAEK;EACf;EACA;EACA,cAAc;EACd;EACA;;qBCkCW;mBACM;WAER,8BAAI;WACJ,+BAAK,qBAAA;WACL,iCAAO,YAAA;WACP,kCAAQ;WACR,8BAAI;WACJ,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,kDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,kDAAA;qBACD,sCAAY,wCAAA;qBACZ,qCAAW;WACrB,mCAAS;;;SAjBP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -7,6 +7,7 @@ export type TxAppLayoutBackdrop = 'spectrum' | 'accent';
|
|
|
7
7
|
export type TxAppLayoutResponsive = 'viewport' | 'container';
|
|
8
8
|
export type TxAppLayoutPart = 'root' | 'sidebar' | 'brand' | 'menu' | 'topbar' | 'menuButton' | 'content' | 'mask';
|
|
9
9
|
export declare class TxAppLayout implements OnInit {
|
|
10
|
+
private readonly appLayoutTheme;
|
|
10
11
|
private readonly document;
|
|
11
12
|
private readonly host;
|
|
12
13
|
private readonly menuButton;
|