@tectra-ng/blocks 0.0.0-stage → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/action-tile/README.md +33 -0
- package/actions-menu/README.md +42 -0
- package/app-footer/README.md +30 -0
- package/app-layout/README.md +51 -0
- package/command-palette/README.md +63 -0
- package/console-layout/README.md +70 -0
- package/cookie-notice/README.md +45 -0
- package/empty-state/README.md +35 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
- package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
- package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
- package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
- package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
- package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
- package/fesm2022/tectra-ng-blocks.mjs +4 -0
- package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
- package/filters-panel/README.md +68 -0
- package/kanban/README.md +55 -0
- package/network-status/README.md +33 -0
- package/package.json +137 -3
- package/page-header/README.md +32 -0
- package/pinned-tabs/README.md +42 -0
- package/public-header/README.md +44 -0
- package/qr-code/README.md +52 -0
- package/switch-language/README.md +33 -0
- package/switch-theme/README.md +32 -0
- package/topbar-preferences/README.md +35 -0
- package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
- package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
- package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
- package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
- package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
- package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
- package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
- package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
- package/types/tectra-ng-blocks-kanban.d.ts +260 -0
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
- package/types/tectra-ng-blocks-network-status.d.ts +108 -0
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
- package/types/tectra-ng-blocks-page-header.d.ts +86 -0
- package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
- package/types/tectra-ng-blocks-public-header.d.ts +142 -0
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
- package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
- package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
- package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
- package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
- package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
- package/types/tectra-ng-blocks-wizard.d.ts +682 -0
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
- package/types/tectra-ng-blocks.d.ts +2 -0
- package/types/tectra-ng-blocks.d.ts.map +1 -0
- package/wizard/README.md +77 -0
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, numberAttribute, output } from "@angular/core";
|
|
3
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
7
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
8
|
+
import { TxPill } from "@tectra-ng/ui/pill";
|
|
9
|
+
import { DecimalPipe } from "@angular/common";
|
|
10
|
+
import { TxButton } from "@tectra-ng/ui/button";
|
|
11
|
+
var TxWizardLayout = class TxWizardLayout {
|
|
12
|
+
responsive = input("viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
|
|
13
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
14
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
15
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
16
|
+
unstyled = input(void 0, {
|
|
17
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
18
|
+
transform: optionalBoolean
|
|
19
|
+
});
|
|
20
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
21
|
+
passThrough = injectPassThrough("wizardLayout", this, this.pt, this.ptOptions);
|
|
22
|
+
hostStyle = computed(() => ({
|
|
23
|
+
...toStyleObject(this.dt(), "--tx-wizard"),
|
|
24
|
+
...this.passThrough().root?.style
|
|
25
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
27
|
+
minVersion: "12.0.0",
|
|
28
|
+
version: "22.2.3",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: TxWizardLayout,
|
|
31
|
+
deps: [],
|
|
32
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
33
|
+
});
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
35
|
+
minVersion: "17.1.0",
|
|
36
|
+
version: "22.2.3",
|
|
37
|
+
type: TxWizardLayout,
|
|
38
|
+
isStandalone: true,
|
|
39
|
+
selector: "tx-wizard-layout",
|
|
40
|
+
inputs: {
|
|
41
|
+
responsive: {
|
|
42
|
+
classPropertyName: "responsive",
|
|
43
|
+
publicName: "responsive",
|
|
44
|
+
isSignal: true,
|
|
45
|
+
isRequired: false,
|
|
46
|
+
transformFunction: null
|
|
47
|
+
},
|
|
48
|
+
dt: {
|
|
49
|
+
classPropertyName: "dt",
|
|
50
|
+
publicName: "dt",
|
|
51
|
+
isSignal: true,
|
|
52
|
+
isRequired: false,
|
|
53
|
+
transformFunction: null
|
|
54
|
+
},
|
|
55
|
+
pt: {
|
|
56
|
+
classPropertyName: "pt",
|
|
57
|
+
publicName: "pt",
|
|
58
|
+
isSignal: true,
|
|
59
|
+
isRequired: false,
|
|
60
|
+
transformFunction: null
|
|
61
|
+
},
|
|
62
|
+
ptOptions: {
|
|
63
|
+
classPropertyName: "ptOptions",
|
|
64
|
+
publicName: "ptOptions",
|
|
65
|
+
isSignal: true,
|
|
66
|
+
isRequired: false,
|
|
67
|
+
transformFunction: null
|
|
68
|
+
},
|
|
69
|
+
unstyled: {
|
|
70
|
+
classPropertyName: "unstyled",
|
|
71
|
+
publicName: "unstyled",
|
|
72
|
+
isSignal: true,
|
|
73
|
+
isRequired: false,
|
|
74
|
+
transformFunction: null
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
host: {
|
|
78
|
+
properties: {
|
|
79
|
+
"class": "passThrough().root?.class",
|
|
80
|
+
"style": "hostStyle()",
|
|
81
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
82
|
+
"attr.data-responsive": "responsive()"
|
|
83
|
+
},
|
|
84
|
+
classAttribute: "tx-wizard-layout"
|
|
85
|
+
},
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
template: `
|
|
88
|
+
<div class="tx-wizard-layout__grid">
|
|
89
|
+
<section class="tx-wizard-layout__panel" [class]="passThrough().panel?.class" [style]="passThrough().panel?.style">
|
|
90
|
+
<div class="tx-wizard-layout__inner">
|
|
91
|
+
<div class="tx-wizard-layout__header" [class]="passThrough().header?.class" [style]="passThrough().header?.style">
|
|
92
|
+
<ng-content select="[txWizardHeader]" />
|
|
93
|
+
</div>
|
|
94
|
+
<div class="tx-wizard-layout__main">
|
|
95
|
+
<div class="tx-wizard-layout__body" [class]="passThrough().body?.class" [style]="passThrough().body?.style">
|
|
96
|
+
<ng-content select="[txWizardBody]" />
|
|
97
|
+
</div>
|
|
98
|
+
<div class="tx-wizard-layout__footer" [class]="passThrough().footer?.class" [style]="passThrough().footer?.style">
|
|
99
|
+
<ng-content select="[txWizardFooter]" />
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</section>
|
|
104
|
+
<aside class="tx-wizard-layout__visual" [class]="passThrough().visual?.class" [style]="passThrough().visual?.style">
|
|
105
|
+
<ng-content select="[txWizardVisual]" />
|
|
106
|
+
</aside>
|
|
107
|
+
</div>
|
|
108
|
+
`,
|
|
109
|
+
isInline: true,
|
|
110
|
+
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"],
|
|
111
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.3",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: TxWizardLayout,
|
|
119
|
+
decorators: [{
|
|
120
|
+
type: Component,
|
|
121
|
+
args: [{
|
|
122
|
+
selector: "tx-wizard-layout",
|
|
123
|
+
template: `
|
|
124
|
+
<div class="tx-wizard-layout__grid">
|
|
125
|
+
<section class="tx-wizard-layout__panel" [class]="passThrough().panel?.class" [style]="passThrough().panel?.style">
|
|
126
|
+
<div class="tx-wizard-layout__inner">
|
|
127
|
+
<div class="tx-wizard-layout__header" [class]="passThrough().header?.class" [style]="passThrough().header?.style">
|
|
128
|
+
<ng-content select="[txWizardHeader]" />
|
|
129
|
+
</div>
|
|
130
|
+
<div class="tx-wizard-layout__main">
|
|
131
|
+
<div class="tx-wizard-layout__body" [class]="passThrough().body?.class" [style]="passThrough().body?.style">
|
|
132
|
+
<ng-content select="[txWizardBody]" />
|
|
133
|
+
</div>
|
|
134
|
+
<div class="tx-wizard-layout__footer" [class]="passThrough().footer?.class" [style]="passThrough().footer?.style">
|
|
135
|
+
<ng-content select="[txWizardFooter]" />
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</section>
|
|
140
|
+
<aside class="tx-wizard-layout__visual" [class]="passThrough().visual?.class" [style]="passThrough().visual?.style">
|
|
141
|
+
<ng-content select="[txWizardVisual]" />
|
|
142
|
+
</aside>
|
|
143
|
+
</div>
|
|
144
|
+
`,
|
|
145
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
146
|
+
host: {
|
|
147
|
+
class: "tx-wizard-layout",
|
|
148
|
+
"[class]": "passThrough().root?.class",
|
|
149
|
+
"[style]": "hostStyle()",
|
|
150
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
151
|
+
"[attr.data-responsive]": "responsive()"
|
|
152
|
+
},
|
|
153
|
+
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
|
+
}]
|
|
155
|
+
}],
|
|
156
|
+
propDecorators: {
|
|
157
|
+
responsive: [{
|
|
158
|
+
type: i0.Input,
|
|
159
|
+
args: [{
|
|
160
|
+
isSignal: true,
|
|
161
|
+
alias: "responsive",
|
|
162
|
+
required: false
|
|
163
|
+
}]
|
|
164
|
+
}],
|
|
165
|
+
dt: [{
|
|
166
|
+
type: i0.Input,
|
|
167
|
+
args: [{
|
|
168
|
+
isSignal: true,
|
|
169
|
+
alias: "dt",
|
|
170
|
+
required: false
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
pt: [{
|
|
174
|
+
type: i0.Input,
|
|
175
|
+
args: [{
|
|
176
|
+
isSignal: true,
|
|
177
|
+
alias: "pt",
|
|
178
|
+
required: false
|
|
179
|
+
}]
|
|
180
|
+
}],
|
|
181
|
+
ptOptions: [{
|
|
182
|
+
type: i0.Input,
|
|
183
|
+
args: [{
|
|
184
|
+
isSignal: true,
|
|
185
|
+
alias: "ptOptions",
|
|
186
|
+
required: false
|
|
187
|
+
}]
|
|
188
|
+
}],
|
|
189
|
+
unstyled: [{
|
|
190
|
+
type: i0.Input,
|
|
191
|
+
args: [{
|
|
192
|
+
isSignal: true,
|
|
193
|
+
alias: "unstyled",
|
|
194
|
+
required: false
|
|
195
|
+
}]
|
|
196
|
+
}]
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
var TxWizardProgress = class TxWizardProgress {
|
|
200
|
+
total = input.required({
|
|
201
|
+
...ngDevMode ? { debugName: "total" } : /* istanbul ignore next */ {},
|
|
202
|
+
transform: numberAttribute
|
|
203
|
+
});
|
|
204
|
+
current = input.required({
|
|
205
|
+
...ngDevMode ? { debugName: "current" } : /* istanbul ignore next */ {},
|
|
206
|
+
transform: numberAttribute
|
|
207
|
+
});
|
|
208
|
+
label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
209
|
+
stepLabels = input([], ...ngDevMode ? [{ debugName: "stepLabels" }] : /* istanbul ignore next */ []);
|
|
210
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
211
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
212
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
213
|
+
unstyled = input(void 0, {
|
|
214
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
215
|
+
transform: optionalBoolean
|
|
216
|
+
});
|
|
217
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
218
|
+
passThrough = injectPassThrough("wizardProgress", this, this.pt, this.ptOptions);
|
|
219
|
+
translations = injectTranslations();
|
|
220
|
+
segments = computed(() => Array.from({ length: Math.max(this.total(), 0) }), ...ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []);
|
|
221
|
+
hostStyle = computed(() => ({
|
|
222
|
+
...toStyleObject(this.dt(), "--tx-wizard"),
|
|
223
|
+
...this.passThrough().root?.style
|
|
224
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
226
|
+
minVersion: "12.0.0",
|
|
227
|
+
version: "22.2.3",
|
|
228
|
+
ngImport: i0,
|
|
229
|
+
type: TxWizardProgress,
|
|
230
|
+
deps: [],
|
|
231
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
232
|
+
});
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
234
|
+
minVersion: "17.0.0",
|
|
235
|
+
version: "22.2.3",
|
|
236
|
+
type: TxWizardProgress,
|
|
237
|
+
isStandalone: true,
|
|
238
|
+
selector: "tx-wizard-progress",
|
|
239
|
+
inputs: {
|
|
240
|
+
total: {
|
|
241
|
+
classPropertyName: "total",
|
|
242
|
+
publicName: "total",
|
|
243
|
+
isSignal: true,
|
|
244
|
+
isRequired: true,
|
|
245
|
+
transformFunction: null
|
|
246
|
+
},
|
|
247
|
+
current: {
|
|
248
|
+
classPropertyName: "current",
|
|
249
|
+
publicName: "current",
|
|
250
|
+
isSignal: true,
|
|
251
|
+
isRequired: true,
|
|
252
|
+
transformFunction: null
|
|
253
|
+
},
|
|
254
|
+
label: {
|
|
255
|
+
classPropertyName: "label",
|
|
256
|
+
publicName: "label",
|
|
257
|
+
isSignal: true,
|
|
258
|
+
isRequired: false,
|
|
259
|
+
transformFunction: null
|
|
260
|
+
},
|
|
261
|
+
stepLabels: {
|
|
262
|
+
classPropertyName: "stepLabels",
|
|
263
|
+
publicName: "stepLabels",
|
|
264
|
+
isSignal: true,
|
|
265
|
+
isRequired: false,
|
|
266
|
+
transformFunction: null
|
|
267
|
+
},
|
|
268
|
+
dt: {
|
|
269
|
+
classPropertyName: "dt",
|
|
270
|
+
publicName: "dt",
|
|
271
|
+
isSignal: true,
|
|
272
|
+
isRequired: false,
|
|
273
|
+
transformFunction: null
|
|
274
|
+
},
|
|
275
|
+
pt: {
|
|
276
|
+
classPropertyName: "pt",
|
|
277
|
+
publicName: "pt",
|
|
278
|
+
isSignal: true,
|
|
279
|
+
isRequired: false,
|
|
280
|
+
transformFunction: null
|
|
281
|
+
},
|
|
282
|
+
ptOptions: {
|
|
283
|
+
classPropertyName: "ptOptions",
|
|
284
|
+
publicName: "ptOptions",
|
|
285
|
+
isSignal: true,
|
|
286
|
+
isRequired: false,
|
|
287
|
+
transformFunction: null
|
|
288
|
+
},
|
|
289
|
+
unstyled: {
|
|
290
|
+
classPropertyName: "unstyled",
|
|
291
|
+
publicName: "unstyled",
|
|
292
|
+
isSignal: true,
|
|
293
|
+
isRequired: false,
|
|
294
|
+
transformFunction: null
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
host: {
|
|
298
|
+
properties: {
|
|
299
|
+
"class": "passThrough().root?.class",
|
|
300
|
+
"style": "hostStyle()",
|
|
301
|
+
"attr.data-styled": "!isUnstyled() || null"
|
|
302
|
+
},
|
|
303
|
+
classAttribute: "tx-wizard-progress"
|
|
304
|
+
},
|
|
305
|
+
ngImport: i0,
|
|
306
|
+
template: `
|
|
307
|
+
@if (label()) {
|
|
308
|
+
<span class="tx-wizard-progress__label" aria-hidden="true" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ label() }}</span>
|
|
309
|
+
}
|
|
310
|
+
<ol class="tx-wizard-progress__segments" [attr.aria-label]="label() || translations().wizardProgress" [class]="passThrough().segments?.class" [style]="passThrough().segments?.style">
|
|
311
|
+
@for (segment of segments(); track $index; let position = $index) {
|
|
312
|
+
<li
|
|
313
|
+
class="tx-wizard-progress__segment"
|
|
314
|
+
[class.tx-wizard-progress__segment--done]="position < current()"
|
|
315
|
+
[class.tx-wizard-progress__segment--current]="position === current()"
|
|
316
|
+
[attr.aria-current]="position === current() ? 'step' : null"
|
|
317
|
+
[attr.aria-label]="stepLabels()[position] || null"
|
|
318
|
+
[class]="passThrough().segment?.class"
|
|
319
|
+
[style]="passThrough().segment?.style"
|
|
320
|
+
>
|
|
321
|
+
<span class="tx-wizard-progress__fill"></span>
|
|
322
|
+
</li>
|
|
323
|
+
}
|
|
324
|
+
</ol>
|
|
325
|
+
`,
|
|
326
|
+
isInline: true,
|
|
327
|
+
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"],
|
|
328
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
329
|
+
});
|
|
330
|
+
};
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
332
|
+
minVersion: "12.0.0",
|
|
333
|
+
version: "22.2.3",
|
|
334
|
+
ngImport: i0,
|
|
335
|
+
type: TxWizardProgress,
|
|
336
|
+
decorators: [{
|
|
337
|
+
type: Component,
|
|
338
|
+
args: [{
|
|
339
|
+
selector: "tx-wizard-progress",
|
|
340
|
+
template: `
|
|
341
|
+
@if (label()) {
|
|
342
|
+
<span class="tx-wizard-progress__label" aria-hidden="true" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ label() }}</span>
|
|
343
|
+
}
|
|
344
|
+
<ol class="tx-wizard-progress__segments" [attr.aria-label]="label() || translations().wizardProgress" [class]="passThrough().segments?.class" [style]="passThrough().segments?.style">
|
|
345
|
+
@for (segment of segments(); track $index; let position = $index) {
|
|
346
|
+
<li
|
|
347
|
+
class="tx-wizard-progress__segment"
|
|
348
|
+
[class.tx-wizard-progress__segment--done]="position < current()"
|
|
349
|
+
[class.tx-wizard-progress__segment--current]="position === current()"
|
|
350
|
+
[attr.aria-current]="position === current() ? 'step' : null"
|
|
351
|
+
[attr.aria-label]="stepLabels()[position] || null"
|
|
352
|
+
[class]="passThrough().segment?.class"
|
|
353
|
+
[style]="passThrough().segment?.style"
|
|
354
|
+
>
|
|
355
|
+
<span class="tx-wizard-progress__fill"></span>
|
|
356
|
+
</li>
|
|
357
|
+
}
|
|
358
|
+
</ol>
|
|
359
|
+
`,
|
|
360
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
361
|
+
host: {
|
|
362
|
+
class: "tx-wizard-progress",
|
|
363
|
+
"[class]": "passThrough().root?.class",
|
|
364
|
+
"[style]": "hostStyle()",
|
|
365
|
+
"[attr.data-styled]": "!isUnstyled() || null"
|
|
366
|
+
},
|
|
367
|
+
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
|
+
}]
|
|
369
|
+
}],
|
|
370
|
+
propDecorators: {
|
|
371
|
+
total: [{
|
|
372
|
+
type: i0.Input,
|
|
373
|
+
args: [{
|
|
374
|
+
isSignal: true,
|
|
375
|
+
alias: "total",
|
|
376
|
+
required: true
|
|
377
|
+
}]
|
|
378
|
+
}],
|
|
379
|
+
current: [{
|
|
380
|
+
type: i0.Input,
|
|
381
|
+
args: [{
|
|
382
|
+
isSignal: true,
|
|
383
|
+
alias: "current",
|
|
384
|
+
required: true
|
|
385
|
+
}]
|
|
386
|
+
}],
|
|
387
|
+
label: [{
|
|
388
|
+
type: i0.Input,
|
|
389
|
+
args: [{
|
|
390
|
+
isSignal: true,
|
|
391
|
+
alias: "label",
|
|
392
|
+
required: false
|
|
393
|
+
}]
|
|
394
|
+
}],
|
|
395
|
+
stepLabels: [{
|
|
396
|
+
type: i0.Input,
|
|
397
|
+
args: [{
|
|
398
|
+
isSignal: true,
|
|
399
|
+
alias: "stepLabels",
|
|
400
|
+
required: false
|
|
401
|
+
}]
|
|
402
|
+
}],
|
|
403
|
+
dt: [{
|
|
404
|
+
type: i0.Input,
|
|
405
|
+
args: [{
|
|
406
|
+
isSignal: true,
|
|
407
|
+
alias: "dt",
|
|
408
|
+
required: false
|
|
409
|
+
}]
|
|
410
|
+
}],
|
|
411
|
+
pt: [{
|
|
412
|
+
type: i0.Input,
|
|
413
|
+
args: [{
|
|
414
|
+
isSignal: true,
|
|
415
|
+
alias: "pt",
|
|
416
|
+
required: false
|
|
417
|
+
}]
|
|
418
|
+
}],
|
|
419
|
+
ptOptions: [{
|
|
420
|
+
type: i0.Input,
|
|
421
|
+
args: [{
|
|
422
|
+
isSignal: true,
|
|
423
|
+
alias: "ptOptions",
|
|
424
|
+
required: false
|
|
425
|
+
}]
|
|
426
|
+
}],
|
|
427
|
+
unstyled: [{
|
|
428
|
+
type: i0.Input,
|
|
429
|
+
args: [{
|
|
430
|
+
isSignal: true,
|
|
431
|
+
alias: "unstyled",
|
|
432
|
+
required: false
|
|
433
|
+
}]
|
|
434
|
+
}]
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
var TxWizardStepHead = class TxWizardStepHead {
|
|
438
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
439
|
+
icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
440
|
+
lead = input(void 0, ...ngDevMode ? [{ debugName: "lead" }] : /* istanbul ignore next */ []);
|
|
441
|
+
badge = input(void 0, ...ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []);
|
|
442
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
443
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
444
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
445
|
+
unstyled = input(void 0, {
|
|
446
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
447
|
+
transform: optionalBoolean
|
|
448
|
+
});
|
|
449
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
450
|
+
passThrough = injectPassThrough("wizardStepHead", this, this.pt, this.ptOptions);
|
|
451
|
+
hostStyle = computed(() => ({
|
|
452
|
+
...toStyleObject(this.dt(), "--tx-wizard"),
|
|
453
|
+
...this.passThrough().root?.style
|
|
454
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
455
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
456
|
+
minVersion: "12.0.0",
|
|
457
|
+
version: "22.2.3",
|
|
458
|
+
ngImport: i0,
|
|
459
|
+
type: TxWizardStepHead,
|
|
460
|
+
deps: [],
|
|
461
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
462
|
+
});
|
|
463
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
464
|
+
minVersion: "17.0.0",
|
|
465
|
+
version: "22.2.3",
|
|
466
|
+
type: TxWizardStepHead,
|
|
467
|
+
isStandalone: true,
|
|
468
|
+
selector: "tx-wizard-step-head",
|
|
469
|
+
inputs: {
|
|
470
|
+
title: {
|
|
471
|
+
classPropertyName: "title",
|
|
472
|
+
publicName: "title",
|
|
473
|
+
isSignal: true,
|
|
474
|
+
isRequired: true,
|
|
475
|
+
transformFunction: null
|
|
476
|
+
},
|
|
477
|
+
icon: {
|
|
478
|
+
classPropertyName: "icon",
|
|
479
|
+
publicName: "icon",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
lead: {
|
|
485
|
+
classPropertyName: "lead",
|
|
486
|
+
publicName: "lead",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
badge: {
|
|
492
|
+
classPropertyName: "badge",
|
|
493
|
+
publicName: "badge",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
dt: {
|
|
499
|
+
classPropertyName: "dt",
|
|
500
|
+
publicName: "dt",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
pt: {
|
|
506
|
+
classPropertyName: "pt",
|
|
507
|
+
publicName: "pt",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
},
|
|
512
|
+
ptOptions: {
|
|
513
|
+
classPropertyName: "ptOptions",
|
|
514
|
+
publicName: "ptOptions",
|
|
515
|
+
isSignal: true,
|
|
516
|
+
isRequired: false,
|
|
517
|
+
transformFunction: null
|
|
518
|
+
},
|
|
519
|
+
unstyled: {
|
|
520
|
+
classPropertyName: "unstyled",
|
|
521
|
+
publicName: "unstyled",
|
|
522
|
+
isSignal: true,
|
|
523
|
+
isRequired: false,
|
|
524
|
+
transformFunction: null
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
host: {
|
|
528
|
+
properties: {
|
|
529
|
+
"class": "passThrough().root?.class",
|
|
530
|
+
"style": "hostStyle()",
|
|
531
|
+
"attr.data-styled": "!isUnstyled() || null"
|
|
532
|
+
},
|
|
533
|
+
classAttribute: "tx-wizard-step-head"
|
|
534
|
+
},
|
|
535
|
+
ngImport: i0,
|
|
536
|
+
template: `
|
|
537
|
+
@if (icon(); as name) {
|
|
538
|
+
<span class="tx-wizard-step-head__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
|
|
539
|
+
<tx-icon [name]="name" />
|
|
540
|
+
</span>
|
|
541
|
+
}
|
|
542
|
+
<div class="tx-wizard-step-head__title-row">
|
|
543
|
+
<h1 class="tx-wizard-step-head__title" [class]="passThrough().title?.class" [style]="passThrough().title?.style">{{ title() }}</h1>
|
|
544
|
+
@if (badge()) {
|
|
545
|
+
<tx-pill tone="neutral" size="small" [value]="badge()" [unstyled]="isUnstyled()" />
|
|
546
|
+
}
|
|
547
|
+
</div>
|
|
548
|
+
@if (lead()) {
|
|
549
|
+
<p class="tx-wizard-step-head__lead" [class]="passThrough().lead?.class" [style]="passThrough().lead?.style">{{ lead() }}</p>
|
|
550
|
+
}
|
|
551
|
+
`,
|
|
552
|
+
isInline: true,
|
|
553
|
+
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"],
|
|
554
|
+
dependencies: [{
|
|
555
|
+
kind: "component",
|
|
556
|
+
type: TxIcon,
|
|
557
|
+
selector: "tx-icon",
|
|
558
|
+
inputs: ["name"]
|
|
559
|
+
}, {
|
|
560
|
+
kind: "component",
|
|
561
|
+
type: TxPill,
|
|
562
|
+
selector: "tx-pill",
|
|
563
|
+
inputs: [
|
|
564
|
+
"value",
|
|
565
|
+
"tone",
|
|
566
|
+
"variant",
|
|
567
|
+
"size",
|
|
568
|
+
"icon",
|
|
569
|
+
"dot",
|
|
570
|
+
"removable",
|
|
571
|
+
"removeLabel",
|
|
572
|
+
"dt",
|
|
573
|
+
"pt",
|
|
574
|
+
"ptOptions",
|
|
575
|
+
"unstyled"
|
|
576
|
+
],
|
|
577
|
+
outputs: ["removed"]
|
|
578
|
+
}],
|
|
579
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
583
|
+
minVersion: "12.0.0",
|
|
584
|
+
version: "22.2.3",
|
|
585
|
+
ngImport: i0,
|
|
586
|
+
type: TxWizardStepHead,
|
|
587
|
+
decorators: [{
|
|
588
|
+
type: Component,
|
|
589
|
+
args: [{
|
|
590
|
+
selector: "tx-wizard-step-head",
|
|
591
|
+
imports: [TxIcon, TxPill],
|
|
592
|
+
template: `
|
|
593
|
+
@if (icon(); as name) {
|
|
594
|
+
<span class="tx-wizard-step-head__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
|
|
595
|
+
<tx-icon [name]="name" />
|
|
596
|
+
</span>
|
|
597
|
+
}
|
|
598
|
+
<div class="tx-wizard-step-head__title-row">
|
|
599
|
+
<h1 class="tx-wizard-step-head__title" [class]="passThrough().title?.class" [style]="passThrough().title?.style">{{ title() }}</h1>
|
|
600
|
+
@if (badge()) {
|
|
601
|
+
<tx-pill tone="neutral" size="small" [value]="badge()" [unstyled]="isUnstyled()" />
|
|
602
|
+
}
|
|
603
|
+
</div>
|
|
604
|
+
@if (lead()) {
|
|
605
|
+
<p class="tx-wizard-step-head__lead" [class]="passThrough().lead?.class" [style]="passThrough().lead?.style">{{ lead() }}</p>
|
|
606
|
+
}
|
|
607
|
+
`,
|
|
608
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
609
|
+
host: {
|
|
610
|
+
class: "tx-wizard-step-head",
|
|
611
|
+
"[class]": "passThrough().root?.class",
|
|
612
|
+
"[style]": "hostStyle()",
|
|
613
|
+
"[attr.data-styled]": "!isUnstyled() || null"
|
|
614
|
+
},
|
|
615
|
+
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
|
+
}]
|
|
617
|
+
}],
|
|
618
|
+
propDecorators: {
|
|
619
|
+
title: [{
|
|
620
|
+
type: i0.Input,
|
|
621
|
+
args: [{
|
|
622
|
+
isSignal: true,
|
|
623
|
+
alias: "title",
|
|
624
|
+
required: true
|
|
625
|
+
}]
|
|
626
|
+
}],
|
|
627
|
+
icon: [{
|
|
628
|
+
type: i0.Input,
|
|
629
|
+
args: [{
|
|
630
|
+
isSignal: true,
|
|
631
|
+
alias: "icon",
|
|
632
|
+
required: false
|
|
633
|
+
}]
|
|
634
|
+
}],
|
|
635
|
+
lead: [{
|
|
636
|
+
type: i0.Input,
|
|
637
|
+
args: [{
|
|
638
|
+
isSignal: true,
|
|
639
|
+
alias: "lead",
|
|
640
|
+
required: false
|
|
641
|
+
}]
|
|
642
|
+
}],
|
|
643
|
+
badge: [{
|
|
644
|
+
type: i0.Input,
|
|
645
|
+
args: [{
|
|
646
|
+
isSignal: true,
|
|
647
|
+
alias: "badge",
|
|
648
|
+
required: false
|
|
649
|
+
}]
|
|
650
|
+
}],
|
|
651
|
+
dt: [{
|
|
652
|
+
type: i0.Input,
|
|
653
|
+
args: [{
|
|
654
|
+
isSignal: true,
|
|
655
|
+
alias: "dt",
|
|
656
|
+
required: false
|
|
657
|
+
}]
|
|
658
|
+
}],
|
|
659
|
+
pt: [{
|
|
660
|
+
type: i0.Input,
|
|
661
|
+
args: [{
|
|
662
|
+
isSignal: true,
|
|
663
|
+
alias: "pt",
|
|
664
|
+
required: false
|
|
665
|
+
}]
|
|
666
|
+
}],
|
|
667
|
+
ptOptions: [{
|
|
668
|
+
type: i0.Input,
|
|
669
|
+
args: [{
|
|
670
|
+
isSignal: true,
|
|
671
|
+
alias: "ptOptions",
|
|
672
|
+
required: false
|
|
673
|
+
}]
|
|
674
|
+
}],
|
|
675
|
+
unstyled: [{
|
|
676
|
+
type: i0.Input,
|
|
677
|
+
args: [{
|
|
678
|
+
isSignal: true,
|
|
679
|
+
alias: "unstyled",
|
|
680
|
+
required: false
|
|
681
|
+
}]
|
|
682
|
+
}]
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
var TxWizardStage = class TxWizardStage {
|
|
686
|
+
layout = inject(TxWizardLayout, { optional: true });
|
|
687
|
+
direction = input("forward", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
|
|
688
|
+
number = input(void 0, ...ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []);
|
|
689
|
+
caption = input(void 0, ...ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []);
|
|
690
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
691
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
692
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
693
|
+
unstyled = input(void 0, {
|
|
694
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
695
|
+
transform: optionalBoolean
|
|
696
|
+
});
|
|
697
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
698
|
+
passThrough = injectPassThrough("wizardStage", this, this.pt, this.ptOptions);
|
|
699
|
+
responsive = computed(() => this.layout?.responsive() ?? "viewport", ...ngDevMode ? [{ debugName: "responsive" }] : /* istanbul ignore next */ []);
|
|
700
|
+
hostStyle = computed(() => ({
|
|
701
|
+
...toStyleObject(this.dt(), "--tx-wizard"),
|
|
702
|
+
...this.passThrough().root?.style
|
|
703
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
704
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
705
|
+
minVersion: "12.0.0",
|
|
706
|
+
version: "22.2.3",
|
|
707
|
+
ngImport: i0,
|
|
708
|
+
type: TxWizardStage,
|
|
709
|
+
deps: [],
|
|
710
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
711
|
+
});
|
|
712
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
713
|
+
minVersion: "17.0.0",
|
|
714
|
+
version: "22.2.3",
|
|
715
|
+
type: TxWizardStage,
|
|
716
|
+
isStandalone: true,
|
|
717
|
+
selector: "tx-wizard-stage",
|
|
718
|
+
inputs: {
|
|
719
|
+
direction: {
|
|
720
|
+
classPropertyName: "direction",
|
|
721
|
+
publicName: "direction",
|
|
722
|
+
isSignal: true,
|
|
723
|
+
isRequired: false,
|
|
724
|
+
transformFunction: null
|
|
725
|
+
},
|
|
726
|
+
number: {
|
|
727
|
+
classPropertyName: "number",
|
|
728
|
+
publicName: "number",
|
|
729
|
+
isSignal: true,
|
|
730
|
+
isRequired: false,
|
|
731
|
+
transformFunction: null
|
|
732
|
+
},
|
|
733
|
+
caption: {
|
|
734
|
+
classPropertyName: "caption",
|
|
735
|
+
publicName: "caption",
|
|
736
|
+
isSignal: true,
|
|
737
|
+
isRequired: false,
|
|
738
|
+
transformFunction: null
|
|
739
|
+
},
|
|
740
|
+
dt: {
|
|
741
|
+
classPropertyName: "dt",
|
|
742
|
+
publicName: "dt",
|
|
743
|
+
isSignal: true,
|
|
744
|
+
isRequired: false,
|
|
745
|
+
transformFunction: null
|
|
746
|
+
},
|
|
747
|
+
pt: {
|
|
748
|
+
classPropertyName: "pt",
|
|
749
|
+
publicName: "pt",
|
|
750
|
+
isSignal: true,
|
|
751
|
+
isRequired: false,
|
|
752
|
+
transformFunction: null
|
|
753
|
+
},
|
|
754
|
+
ptOptions: {
|
|
755
|
+
classPropertyName: "ptOptions",
|
|
756
|
+
publicName: "ptOptions",
|
|
757
|
+
isSignal: true,
|
|
758
|
+
isRequired: false,
|
|
759
|
+
transformFunction: null
|
|
760
|
+
},
|
|
761
|
+
unstyled: {
|
|
762
|
+
classPropertyName: "unstyled",
|
|
763
|
+
publicName: "unstyled",
|
|
764
|
+
isSignal: true,
|
|
765
|
+
isRequired: false,
|
|
766
|
+
transformFunction: null
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
host: {
|
|
770
|
+
properties: {
|
|
771
|
+
"class": "passThrough().root?.class",
|
|
772
|
+
"style": "hostStyle()",
|
|
773
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
774
|
+
"attr.data-direction": "direction()",
|
|
775
|
+
"attr.data-responsive": "responsive()"
|
|
776
|
+
},
|
|
777
|
+
classAttribute: "tx-wizard-stage"
|
|
778
|
+
},
|
|
779
|
+
ngImport: i0,
|
|
780
|
+
template: `
|
|
781
|
+
<ng-content select="[txWizardBackdrop]" />
|
|
782
|
+
<div class="tx-wizard-stage__stage" aria-hidden="true" [class]="passThrough().stage?.class" [style]="passThrough().stage?.style">
|
|
783
|
+
<ng-content />
|
|
784
|
+
</div>
|
|
785
|
+
@if (caption(); as text) {
|
|
786
|
+
@for (current of [text]; track current) {
|
|
787
|
+
<div class="tx-wizard-stage__caption" animate.enter="tx-wizard-stage__caption--enter" [class]="passThrough().caption?.class" [style]="passThrough().caption?.style">
|
|
788
|
+
@if (number() !== undefined) {
|
|
789
|
+
<span class="tx-wizard-stage__number">{{ number() | number: '2.0-0' }}</span>
|
|
790
|
+
}
|
|
791
|
+
<span class="tx-wizard-stage__title">{{ current }}</span>
|
|
792
|
+
</div>
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
`,
|
|
796
|
+
isInline: true,
|
|
797
|
+
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"],
|
|
798
|
+
dependencies: [{
|
|
799
|
+
kind: "pipe",
|
|
800
|
+
type: DecimalPipe,
|
|
801
|
+
name: "number"
|
|
802
|
+
}],
|
|
803
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
804
|
+
});
|
|
805
|
+
};
|
|
806
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
807
|
+
minVersion: "12.0.0",
|
|
808
|
+
version: "22.2.3",
|
|
809
|
+
ngImport: i0,
|
|
810
|
+
type: TxWizardStage,
|
|
811
|
+
decorators: [{
|
|
812
|
+
type: Component,
|
|
813
|
+
args: [{
|
|
814
|
+
selector: "tx-wizard-stage",
|
|
815
|
+
imports: [DecimalPipe],
|
|
816
|
+
template: `
|
|
817
|
+
<ng-content select="[txWizardBackdrop]" />
|
|
818
|
+
<div class="tx-wizard-stage__stage" aria-hidden="true" [class]="passThrough().stage?.class" [style]="passThrough().stage?.style">
|
|
819
|
+
<ng-content />
|
|
820
|
+
</div>
|
|
821
|
+
@if (caption(); as text) {
|
|
822
|
+
@for (current of [text]; track current) {
|
|
823
|
+
<div class="tx-wizard-stage__caption" animate.enter="tx-wizard-stage__caption--enter" [class]="passThrough().caption?.class" [style]="passThrough().caption?.style">
|
|
824
|
+
@if (number() !== undefined) {
|
|
825
|
+
<span class="tx-wizard-stage__number">{{ number() | number: '2.0-0' }}</span>
|
|
826
|
+
}
|
|
827
|
+
<span class="tx-wizard-stage__title">{{ current }}</span>
|
|
828
|
+
</div>
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
`,
|
|
832
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
833
|
+
host: {
|
|
834
|
+
class: "tx-wizard-stage",
|
|
835
|
+
"[class]": "passThrough().root?.class",
|
|
836
|
+
"[style]": "hostStyle()",
|
|
837
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
838
|
+
"[attr.data-direction]": "direction()",
|
|
839
|
+
"[attr.data-responsive]": "responsive()"
|
|
840
|
+
},
|
|
841
|
+
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
|
+
}]
|
|
843
|
+
}],
|
|
844
|
+
propDecorators: {
|
|
845
|
+
direction: [{
|
|
846
|
+
type: i0.Input,
|
|
847
|
+
args: [{
|
|
848
|
+
isSignal: true,
|
|
849
|
+
alias: "direction",
|
|
850
|
+
required: false
|
|
851
|
+
}]
|
|
852
|
+
}],
|
|
853
|
+
number: [{
|
|
854
|
+
type: i0.Input,
|
|
855
|
+
args: [{
|
|
856
|
+
isSignal: true,
|
|
857
|
+
alias: "number",
|
|
858
|
+
required: false
|
|
859
|
+
}]
|
|
860
|
+
}],
|
|
861
|
+
caption: [{
|
|
862
|
+
type: i0.Input,
|
|
863
|
+
args: [{
|
|
864
|
+
isSignal: true,
|
|
865
|
+
alias: "caption",
|
|
866
|
+
required: false
|
|
867
|
+
}]
|
|
868
|
+
}],
|
|
869
|
+
dt: [{
|
|
870
|
+
type: i0.Input,
|
|
871
|
+
args: [{
|
|
872
|
+
isSignal: true,
|
|
873
|
+
alias: "dt",
|
|
874
|
+
required: false
|
|
875
|
+
}]
|
|
876
|
+
}],
|
|
877
|
+
pt: [{
|
|
878
|
+
type: i0.Input,
|
|
879
|
+
args: [{
|
|
880
|
+
isSignal: true,
|
|
881
|
+
alias: "pt",
|
|
882
|
+
required: false
|
|
883
|
+
}]
|
|
884
|
+
}],
|
|
885
|
+
ptOptions: [{
|
|
886
|
+
type: i0.Input,
|
|
887
|
+
args: [{
|
|
888
|
+
isSignal: true,
|
|
889
|
+
alias: "ptOptions",
|
|
890
|
+
required: false
|
|
891
|
+
}]
|
|
892
|
+
}],
|
|
893
|
+
unstyled: [{
|
|
894
|
+
type: i0.Input,
|
|
895
|
+
args: [{
|
|
896
|
+
isSignal: true,
|
|
897
|
+
alias: "unstyled",
|
|
898
|
+
required: false
|
|
899
|
+
}]
|
|
900
|
+
}]
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
var TxWizardFooter = class TxWizardFooter {
|
|
904
|
+
nextLabel = input(void 0, ...ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []);
|
|
905
|
+
nextIcon = input("arrow-right", ...ngDevMode ? [{ debugName: "nextIcon" }] : /* istanbul ignore next */ []);
|
|
906
|
+
backLabel = input(void 0, ...ngDevMode ? [{ debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
907
|
+
showBack = input(true, {
|
|
908
|
+
...ngDevMode ? { debugName: "showBack" } : /* istanbul ignore next */ {},
|
|
909
|
+
transform: booleanAttribute
|
|
910
|
+
});
|
|
911
|
+
skipLabel = input(void 0, ...ngDevMode ? [{ debugName: "skipLabel" }] : /* istanbul ignore next */ []);
|
|
912
|
+
loading = input(false, {
|
|
913
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
914
|
+
transform: booleanAttribute
|
|
915
|
+
});
|
|
916
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
917
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
918
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
919
|
+
unstyled = input(void 0, {
|
|
920
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
921
|
+
transform: optionalBoolean
|
|
922
|
+
});
|
|
923
|
+
back = output();
|
|
924
|
+
next = output();
|
|
925
|
+
skip = output();
|
|
926
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
927
|
+
passThrough = injectPassThrough("wizardFooter", this, this.pt, this.ptOptions);
|
|
928
|
+
translations = injectTranslations();
|
|
929
|
+
hostStyle = computed(() => ({
|
|
930
|
+
...toStyleObject(this.dt(), "--tx-wizard"),
|
|
931
|
+
...this.passThrough().root?.style
|
|
932
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
933
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
934
|
+
minVersion: "12.0.0",
|
|
935
|
+
version: "22.2.3",
|
|
936
|
+
ngImport: i0,
|
|
937
|
+
type: TxWizardFooter,
|
|
938
|
+
deps: [],
|
|
939
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
940
|
+
});
|
|
941
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
942
|
+
minVersion: "17.0.0",
|
|
943
|
+
version: "22.2.3",
|
|
944
|
+
type: TxWizardFooter,
|
|
945
|
+
isStandalone: true,
|
|
946
|
+
selector: "tx-wizard-footer",
|
|
947
|
+
inputs: {
|
|
948
|
+
nextLabel: {
|
|
949
|
+
classPropertyName: "nextLabel",
|
|
950
|
+
publicName: "nextLabel",
|
|
951
|
+
isSignal: true,
|
|
952
|
+
isRequired: false,
|
|
953
|
+
transformFunction: null
|
|
954
|
+
},
|
|
955
|
+
nextIcon: {
|
|
956
|
+
classPropertyName: "nextIcon",
|
|
957
|
+
publicName: "nextIcon",
|
|
958
|
+
isSignal: true,
|
|
959
|
+
isRequired: false,
|
|
960
|
+
transformFunction: null
|
|
961
|
+
},
|
|
962
|
+
backLabel: {
|
|
963
|
+
classPropertyName: "backLabel",
|
|
964
|
+
publicName: "backLabel",
|
|
965
|
+
isSignal: true,
|
|
966
|
+
isRequired: false,
|
|
967
|
+
transformFunction: null
|
|
968
|
+
},
|
|
969
|
+
showBack: {
|
|
970
|
+
classPropertyName: "showBack",
|
|
971
|
+
publicName: "showBack",
|
|
972
|
+
isSignal: true,
|
|
973
|
+
isRequired: false,
|
|
974
|
+
transformFunction: null
|
|
975
|
+
},
|
|
976
|
+
skipLabel: {
|
|
977
|
+
classPropertyName: "skipLabel",
|
|
978
|
+
publicName: "skipLabel",
|
|
979
|
+
isSignal: true,
|
|
980
|
+
isRequired: false,
|
|
981
|
+
transformFunction: null
|
|
982
|
+
},
|
|
983
|
+
loading: {
|
|
984
|
+
classPropertyName: "loading",
|
|
985
|
+
publicName: "loading",
|
|
986
|
+
isSignal: true,
|
|
987
|
+
isRequired: false,
|
|
988
|
+
transformFunction: null
|
|
989
|
+
},
|
|
990
|
+
dt: {
|
|
991
|
+
classPropertyName: "dt",
|
|
992
|
+
publicName: "dt",
|
|
993
|
+
isSignal: true,
|
|
994
|
+
isRequired: false,
|
|
995
|
+
transformFunction: null
|
|
996
|
+
},
|
|
997
|
+
pt: {
|
|
998
|
+
classPropertyName: "pt",
|
|
999
|
+
publicName: "pt",
|
|
1000
|
+
isSignal: true,
|
|
1001
|
+
isRequired: false,
|
|
1002
|
+
transformFunction: null
|
|
1003
|
+
},
|
|
1004
|
+
ptOptions: {
|
|
1005
|
+
classPropertyName: "ptOptions",
|
|
1006
|
+
publicName: "ptOptions",
|
|
1007
|
+
isSignal: true,
|
|
1008
|
+
isRequired: false,
|
|
1009
|
+
transformFunction: null
|
|
1010
|
+
},
|
|
1011
|
+
unstyled: {
|
|
1012
|
+
classPropertyName: "unstyled",
|
|
1013
|
+
publicName: "unstyled",
|
|
1014
|
+
isSignal: true,
|
|
1015
|
+
isRequired: false,
|
|
1016
|
+
transformFunction: null
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
outputs: {
|
|
1020
|
+
back: "back",
|
|
1021
|
+
next: "next",
|
|
1022
|
+
skip: "skip"
|
|
1023
|
+
},
|
|
1024
|
+
host: {
|
|
1025
|
+
attributes: { "role": "group" },
|
|
1026
|
+
properties: {
|
|
1027
|
+
"class": "passThrough().root?.class",
|
|
1028
|
+
"style": "hostStyle()",
|
|
1029
|
+
"attr.data-styled": "!isUnstyled() || null"
|
|
1030
|
+
},
|
|
1031
|
+
classAttribute: "tx-wizard-footer"
|
|
1032
|
+
},
|
|
1033
|
+
ngImport: i0,
|
|
1034
|
+
template: `
|
|
1035
|
+
@if (showBack()) {
|
|
1036
|
+
<button
|
|
1037
|
+
txButton
|
|
1038
|
+
type="button"
|
|
1039
|
+
severity="secondary"
|
|
1040
|
+
outlined
|
|
1041
|
+
icon="arrow-left"
|
|
1042
|
+
[disabled]="loading()"
|
|
1043
|
+
[unstyled]="isUnstyled()"
|
|
1044
|
+
[class]="passThrough().back?.class"
|
|
1045
|
+
[style]="passThrough().back?.style"
|
|
1046
|
+
(click)="back.emit()"
|
|
1047
|
+
>
|
|
1048
|
+
{{ backLabel() ?? translations().wizardBack }}
|
|
1049
|
+
</button>
|
|
1050
|
+
}
|
|
1051
|
+
<div class="tx-wizard-footer__end">
|
|
1052
|
+
@if (skipLabel(); as skipText) {
|
|
1053
|
+
<button
|
|
1054
|
+
txButton
|
|
1055
|
+
type="button"
|
|
1056
|
+
severity="secondary"
|
|
1057
|
+
text
|
|
1058
|
+
[disabled]="loading()"
|
|
1059
|
+
[unstyled]="isUnstyled()"
|
|
1060
|
+
[class]="passThrough().skip?.class"
|
|
1061
|
+
[style]="passThrough().skip?.style"
|
|
1062
|
+
(click)="skip.emit()"
|
|
1063
|
+
>
|
|
1064
|
+
{{ skipText }}
|
|
1065
|
+
</button>
|
|
1066
|
+
}
|
|
1067
|
+
<button
|
|
1068
|
+
txButton
|
|
1069
|
+
type="button"
|
|
1070
|
+
[icon]="nextIcon()"
|
|
1071
|
+
[loading]="loading()"
|
|
1072
|
+
[disabled]="loading()"
|
|
1073
|
+
[unstyled]="isUnstyled()"
|
|
1074
|
+
[class]="passThrough().next?.class"
|
|
1075
|
+
[style]="passThrough().next?.style"
|
|
1076
|
+
(click)="next.emit()"
|
|
1077
|
+
>
|
|
1078
|
+
{{ nextLabel() ?? translations().wizardNext }}
|
|
1079
|
+
</button>
|
|
1080
|
+
</div>
|
|
1081
|
+
`,
|
|
1082
|
+
isInline: true,
|
|
1083
|
+
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"],
|
|
1084
|
+
dependencies: [{
|
|
1085
|
+
kind: "component",
|
|
1086
|
+
type: TxButton,
|
|
1087
|
+
selector: "button[txButton], a[txButton]",
|
|
1088
|
+
inputs: [
|
|
1089
|
+
"label",
|
|
1090
|
+
"severity",
|
|
1091
|
+
"size",
|
|
1092
|
+
"variant",
|
|
1093
|
+
"outlined",
|
|
1094
|
+
"text",
|
|
1095
|
+
"link",
|
|
1096
|
+
"rounded",
|
|
1097
|
+
"raised",
|
|
1098
|
+
"plain",
|
|
1099
|
+
"fluid",
|
|
1100
|
+
"disabled",
|
|
1101
|
+
"tabindex",
|
|
1102
|
+
"icon",
|
|
1103
|
+
"iconPos",
|
|
1104
|
+
"iconOnly",
|
|
1105
|
+
"loading",
|
|
1106
|
+
"loadingIcon",
|
|
1107
|
+
"badge",
|
|
1108
|
+
"badgeSeverity",
|
|
1109
|
+
"dt",
|
|
1110
|
+
"pt",
|
|
1111
|
+
"ptOptions",
|
|
1112
|
+
"unstyled"
|
|
1113
|
+
]
|
|
1114
|
+
}],
|
|
1115
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1116
|
+
});
|
|
1117
|
+
};
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1119
|
+
minVersion: "12.0.0",
|
|
1120
|
+
version: "22.2.3",
|
|
1121
|
+
ngImport: i0,
|
|
1122
|
+
type: TxWizardFooter,
|
|
1123
|
+
decorators: [{
|
|
1124
|
+
type: Component,
|
|
1125
|
+
args: [{
|
|
1126
|
+
selector: "tx-wizard-footer",
|
|
1127
|
+
imports: [TxButton],
|
|
1128
|
+
template: `
|
|
1129
|
+
@if (showBack()) {
|
|
1130
|
+
<button
|
|
1131
|
+
txButton
|
|
1132
|
+
type="button"
|
|
1133
|
+
severity="secondary"
|
|
1134
|
+
outlined
|
|
1135
|
+
icon="arrow-left"
|
|
1136
|
+
[disabled]="loading()"
|
|
1137
|
+
[unstyled]="isUnstyled()"
|
|
1138
|
+
[class]="passThrough().back?.class"
|
|
1139
|
+
[style]="passThrough().back?.style"
|
|
1140
|
+
(click)="back.emit()"
|
|
1141
|
+
>
|
|
1142
|
+
{{ backLabel() ?? translations().wizardBack }}
|
|
1143
|
+
</button>
|
|
1144
|
+
}
|
|
1145
|
+
<div class="tx-wizard-footer__end">
|
|
1146
|
+
@if (skipLabel(); as skipText) {
|
|
1147
|
+
<button
|
|
1148
|
+
txButton
|
|
1149
|
+
type="button"
|
|
1150
|
+
severity="secondary"
|
|
1151
|
+
text
|
|
1152
|
+
[disabled]="loading()"
|
|
1153
|
+
[unstyled]="isUnstyled()"
|
|
1154
|
+
[class]="passThrough().skip?.class"
|
|
1155
|
+
[style]="passThrough().skip?.style"
|
|
1156
|
+
(click)="skip.emit()"
|
|
1157
|
+
>
|
|
1158
|
+
{{ skipText }}
|
|
1159
|
+
</button>
|
|
1160
|
+
}
|
|
1161
|
+
<button
|
|
1162
|
+
txButton
|
|
1163
|
+
type="button"
|
|
1164
|
+
[icon]="nextIcon()"
|
|
1165
|
+
[loading]="loading()"
|
|
1166
|
+
[disabled]="loading()"
|
|
1167
|
+
[unstyled]="isUnstyled()"
|
|
1168
|
+
[class]="passThrough().next?.class"
|
|
1169
|
+
[style]="passThrough().next?.style"
|
|
1170
|
+
(click)="next.emit()"
|
|
1171
|
+
>
|
|
1172
|
+
{{ nextLabel() ?? translations().wizardNext }}
|
|
1173
|
+
</button>
|
|
1174
|
+
</div>
|
|
1175
|
+
`,
|
|
1176
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1177
|
+
host: {
|
|
1178
|
+
class: "tx-wizard-footer",
|
|
1179
|
+
role: "group",
|
|
1180
|
+
"[class]": "passThrough().root?.class",
|
|
1181
|
+
"[style]": "hostStyle()",
|
|
1182
|
+
"[attr.data-styled]": "!isUnstyled() || null"
|
|
1183
|
+
},
|
|
1184
|
+
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
|
+
}]
|
|
1186
|
+
}],
|
|
1187
|
+
propDecorators: {
|
|
1188
|
+
nextLabel: [{
|
|
1189
|
+
type: i0.Input,
|
|
1190
|
+
args: [{
|
|
1191
|
+
isSignal: true,
|
|
1192
|
+
alias: "nextLabel",
|
|
1193
|
+
required: false
|
|
1194
|
+
}]
|
|
1195
|
+
}],
|
|
1196
|
+
nextIcon: [{
|
|
1197
|
+
type: i0.Input,
|
|
1198
|
+
args: [{
|
|
1199
|
+
isSignal: true,
|
|
1200
|
+
alias: "nextIcon",
|
|
1201
|
+
required: false
|
|
1202
|
+
}]
|
|
1203
|
+
}],
|
|
1204
|
+
backLabel: [{
|
|
1205
|
+
type: i0.Input,
|
|
1206
|
+
args: [{
|
|
1207
|
+
isSignal: true,
|
|
1208
|
+
alias: "backLabel",
|
|
1209
|
+
required: false
|
|
1210
|
+
}]
|
|
1211
|
+
}],
|
|
1212
|
+
showBack: [{
|
|
1213
|
+
type: i0.Input,
|
|
1214
|
+
args: [{
|
|
1215
|
+
isSignal: true,
|
|
1216
|
+
alias: "showBack",
|
|
1217
|
+
required: false
|
|
1218
|
+
}]
|
|
1219
|
+
}],
|
|
1220
|
+
skipLabel: [{
|
|
1221
|
+
type: i0.Input,
|
|
1222
|
+
args: [{
|
|
1223
|
+
isSignal: true,
|
|
1224
|
+
alias: "skipLabel",
|
|
1225
|
+
required: false
|
|
1226
|
+
}]
|
|
1227
|
+
}],
|
|
1228
|
+
loading: [{
|
|
1229
|
+
type: i0.Input,
|
|
1230
|
+
args: [{
|
|
1231
|
+
isSignal: true,
|
|
1232
|
+
alias: "loading",
|
|
1233
|
+
required: false
|
|
1234
|
+
}]
|
|
1235
|
+
}],
|
|
1236
|
+
dt: [{
|
|
1237
|
+
type: i0.Input,
|
|
1238
|
+
args: [{
|
|
1239
|
+
isSignal: true,
|
|
1240
|
+
alias: "dt",
|
|
1241
|
+
required: false
|
|
1242
|
+
}]
|
|
1243
|
+
}],
|
|
1244
|
+
pt: [{
|
|
1245
|
+
type: i0.Input,
|
|
1246
|
+
args: [{
|
|
1247
|
+
isSignal: true,
|
|
1248
|
+
alias: "pt",
|
|
1249
|
+
required: false
|
|
1250
|
+
}]
|
|
1251
|
+
}],
|
|
1252
|
+
ptOptions: [{
|
|
1253
|
+
type: i0.Input,
|
|
1254
|
+
args: [{
|
|
1255
|
+
isSignal: true,
|
|
1256
|
+
alias: "ptOptions",
|
|
1257
|
+
required: false
|
|
1258
|
+
}]
|
|
1259
|
+
}],
|
|
1260
|
+
unstyled: [{
|
|
1261
|
+
type: i0.Input,
|
|
1262
|
+
args: [{
|
|
1263
|
+
isSignal: true,
|
|
1264
|
+
alias: "unstyled",
|
|
1265
|
+
required: false
|
|
1266
|
+
}]
|
|
1267
|
+
}],
|
|
1268
|
+
back: [{
|
|
1269
|
+
type: i0.Output,
|
|
1270
|
+
args: ["back"]
|
|
1271
|
+
}],
|
|
1272
|
+
next: [{
|
|
1273
|
+
type: i0.Output,
|
|
1274
|
+
args: ["next"]
|
|
1275
|
+
}],
|
|
1276
|
+
skip: [{
|
|
1277
|
+
type: i0.Output,
|
|
1278
|
+
args: ["skip"]
|
|
1279
|
+
}]
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
export { TxWizardFooter, TxWizardLayout, TxWizardProgress, TxWizardStage, TxWizardStepHead };
|
|
1283
|
+
|
|
1284
|
+
//# sourceMappingURL=tectra-ng-blocks-wizard.mjs.map
|