@tectra-ng/blocks 0.4.1 → 0.4.3

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.
Files changed (60) hide show
  1. package/app-layout/README.md +2 -0
  2. package/confetti/README.md +1 -1
  3. package/cookie-notice/README.md +3 -1
  4. package/fesm2022/tectra-ng-blocks-action-tile.mjs +2 -0
  5. package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-blocks-app-layout.mjs +4 -2
  7. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-blocks-command-palette.mjs +2 -2
  9. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-blocks-confetti.mjs +13 -3
  11. package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-blocks-console-layout.mjs +2 -0
  13. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +53 -7
  15. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-blocks-empty-state.mjs +2 -0
  17. package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +2 -2
  19. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-blocks-kanban.mjs +90 -10
  21. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-blocks-network-status.mjs +140 -39
  23. package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-blocks-page-header.mjs +4 -2
  25. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +62 -6
  27. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-blocks-public-header.mjs +4 -4
  29. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +422 -0
  31. package/fesm2022/tectra-ng-blocks-theme-configurator.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-blocks-wizard.mjs +55 -25
  33. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-blocks.mjs +1 -1
  35. package/kanban/README.md +13 -2
  36. package/network-status/README.md +21 -4
  37. package/package.json +11 -6
  38. package/pinned-tabs/README.md +6 -1
  39. package/theme-configurator/README.md +59 -0
  40. package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -1
  41. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
  42. package/types/tectra-ng-blocks-confetti.d.ts +3 -0
  43. package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
  44. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
  45. package/types/tectra-ng-blocks-cookie-notice.d.ts +15 -0
  46. package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -1
  47. package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -1
  48. package/types/tectra-ng-blocks-kanban.d.ts +51 -11
  49. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
  50. package/types/tectra-ng-blocks-network-status.d.ts +36 -7
  51. package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
  52. package/types/tectra-ng-blocks-page-header.d.ts.map +1 -1
  53. package/types/tectra-ng-blocks-pinned-tabs.d.ts +22 -0
  54. package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
  55. package/types/tectra-ng-blocks-theme-configurator.d.ts +98 -0
  56. package/types/tectra-ng-blocks-theme-configurator.d.ts.map +1 -0
  57. package/types/tectra-ng-blocks-wizard.d.ts +2 -0
  58. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
  59. package/types/tectra-ng-blocks.d.ts +1 -1
  60. package/wizard/README.md +1 -1
@@ -0,0 +1,422 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, inject, input, numberAttribute, output, viewChildren } from "@angular/core";
3
+ import * as i1 from "@angular/forms";
4
+ import { FormsModule } from "@angular/forms";
5
+ import { uniqueId } from "@tectra-ng/core/a11y";
6
+ import { TxThemeService, injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
7
+ import { injectTranslations } from "@tectra-ng/core/i18n";
8
+ import { optionalBoolean } from "@tectra-ng/core/utils";
9
+ import { tectraPrimaryChoices, tectraSurfaceChoices, themeConfiguratorTokens, toStyleObject } from "@tectra-ng/themes";
10
+ import { TxButton } from "@tectra-ng/ui/button";
11
+ import { TxButtonGroup } from "@tectra-ng/ui/button-group";
12
+ import { TxColorSwatches } from "@tectra-ng/ui/color-swatches";
13
+ import { TxToggleSwitch } from "@tectra-ng/ui/toggle-switch";
14
+ const THEME_CONFIGURATOR_THEME = { themeConfigurator: themeConfiguratorTokens };
15
+ const STEPS = {
16
+ ArrowRight: 1,
17
+ ArrowDown: 1,
18
+ ArrowLeft: -1,
19
+ ArrowUp: -1
20
+ };
21
+ const ALL_PRIMARIES = tectraPrimaryChoices();
22
+ const ALL_SURFACES = tectraSurfaceChoices();
23
+ var TxThemeConfigurator = class TxThemeConfigurator {
24
+ themeConfiguratorTheme = injectTokens(THEME_CONFIGURATOR_THEME);
25
+ theme = inject(TxThemeService);
26
+ styles = input([], ...ngDevMode ? [{ debugName: "styles" }] : /* istanbul ignore next */ []);
27
+ primaries = input(ALL_PRIMARIES, ...ngDevMode ? [{ debugName: "primaries" }] : /* istanbul ignore next */ []);
28
+ surfaces = input(ALL_SURFACES, ...ngDevMode ? [{ debugName: "surfaces" }] : /* istanbul ignore next */ []);
29
+ columns = input(9, {
30
+ ...ngDevMode ? { debugName: "columns" } : /* istanbul ignore next */ {},
31
+ transform: numberAttribute
32
+ });
33
+ showRipple = input(true, {
34
+ ...ngDevMode ? { debugName: "showRipple" } : /* istanbul ignore next */ {},
35
+ transform: booleanAttribute
36
+ });
37
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
38
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
39
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
40
+ unstyled = input(void 0, {
41
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
42
+ transform: optionalBoolean
43
+ });
44
+ themeChange = output();
45
+ rippleChange = output();
46
+ segmentButtons = viewChildren("segment", {
47
+ ...ngDevMode ? { debugName: "segmentButtons" } : /* istanbul ignore next */ {},
48
+ read: ElementRef
49
+ });
50
+ id = uniqueId("tx-theme-configurator");
51
+ translations = injectTranslations();
52
+ isUnstyled = injectUnstyled(this.unstyled);
53
+ passThrough = injectPassThrough("themeConfigurator", this, this.pt, this.ptOptions);
54
+ hostStyle = computed(() => ({
55
+ ...toStyleObject(this.dt(), "--tx-theme-configurator"),
56
+ ...this.passThrough().root?.style
57
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
58
+ styleIndex = computed(() => this.styles().findIndex((style) => style.name === this.theme.style().name), ...ngDevMode ? [{ debugName: "styleIndex" }] : /* istanbul ignore next */ []);
59
+ update(choice) {
60
+ this.theme.updateTheme(choice);
61
+ this.themeChange.emit({
62
+ style: this.theme.style(),
63
+ primary: this.theme.primary(),
64
+ surface: this.theme.surface()
65
+ });
66
+ }
67
+ setRipple(enabled) {
68
+ this.theme.setRipple(enabled);
69
+ this.rippleChange.emit(enabled);
70
+ }
71
+ selectStyle(index) {
72
+ if (index !== this.styleIndex()) this.update({ style: this.styles()[index] });
73
+ }
74
+ onSegmentKeydown(event, index) {
75
+ const count = this.styles().length;
76
+ const next = event.key === "Home" ? 0 : event.key === "End" ? count - 1 : event.key in STEPS ? (index + STEPS[event.key] + count) % count : -1;
77
+ if (next < 0) return;
78
+ event.preventDefault();
79
+ this.segmentButtons()[next].nativeElement.focus();
80
+ this.selectStyle(next);
81
+ }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({
83
+ minVersion: "12.0.0",
84
+ version: "22.2.5",
85
+ ngImport: i0,
86
+ type: TxThemeConfigurator,
87
+ deps: [],
88
+ target: i0.ɵɵFactoryTarget.Component
89
+ });
90
+ static ɵcmp = i0.ɵɵngDeclareComponent({
91
+ minVersion: "17.0.0",
92
+ version: "22.2.5",
93
+ type: TxThemeConfigurator,
94
+ isStandalone: true,
95
+ selector: "tx-theme-configurator",
96
+ inputs: {
97
+ styles: {
98
+ classPropertyName: "styles",
99
+ publicName: "styles",
100
+ isSignal: true,
101
+ isRequired: false,
102
+ transformFunction: null
103
+ },
104
+ primaries: {
105
+ classPropertyName: "primaries",
106
+ publicName: "primaries",
107
+ isSignal: true,
108
+ isRequired: false,
109
+ transformFunction: null
110
+ },
111
+ surfaces: {
112
+ classPropertyName: "surfaces",
113
+ publicName: "surfaces",
114
+ isSignal: true,
115
+ isRequired: false,
116
+ transformFunction: null
117
+ },
118
+ columns: {
119
+ classPropertyName: "columns",
120
+ publicName: "columns",
121
+ isSignal: true,
122
+ isRequired: false,
123
+ transformFunction: null
124
+ },
125
+ showRipple: {
126
+ classPropertyName: "showRipple",
127
+ publicName: "showRipple",
128
+ isSignal: true,
129
+ isRequired: false,
130
+ transformFunction: null
131
+ },
132
+ dt: {
133
+ classPropertyName: "dt",
134
+ publicName: "dt",
135
+ isSignal: true,
136
+ isRequired: false,
137
+ transformFunction: null
138
+ },
139
+ pt: {
140
+ classPropertyName: "pt",
141
+ publicName: "pt",
142
+ isSignal: true,
143
+ isRequired: false,
144
+ transformFunction: null
145
+ },
146
+ ptOptions: {
147
+ classPropertyName: "ptOptions",
148
+ publicName: "ptOptions",
149
+ isSignal: true,
150
+ isRequired: false,
151
+ transformFunction: null
152
+ },
153
+ unstyled: {
154
+ classPropertyName: "unstyled",
155
+ publicName: "unstyled",
156
+ isSignal: true,
157
+ isRequired: false,
158
+ transformFunction: null
159
+ }
160
+ },
161
+ outputs: {
162
+ themeChange: "themeChange",
163
+ rippleChange: "rippleChange"
164
+ },
165
+ host: {
166
+ properties: {
167
+ "class": "passThrough().root?.class",
168
+ "style": "hostStyle()",
169
+ "attr.data-styled": "!isUnstyled() || null"
170
+ },
171
+ classAttribute: "tx-theme-configurator"
172
+ },
173
+ viewQueries: [{
174
+ propertyName: "segmentButtons",
175
+ predicate: ["segment"],
176
+ descendants: true,
177
+ read: ElementRef,
178
+ isSignal: true
179
+ }],
180
+ ngImport: i0,
181
+ template: "@if (primaries().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-primary'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themePrimary }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"primaries()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-primary'\"\n [ngModel]=\"theme.primary()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ primary: $event })\"\n />\n </div>\n}\n@if (surfaces().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-surface'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeSurface }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"surfaces()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-surface'\"\n [ngModel]=\"theme.surface()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ surface: $event })\"\n />\n </div>\n}\n@if (styles().length > 1) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-style'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeStyle }}</span\n >\n <div\n class=\"tx-theme-configurator__segments\"\n role=\"radiogroup\"\n [attr.aria-labelledby]=\"id + '-style'\"\n [class]=\"passThrough().segments?.class\"\n [style]=\"passThrough().segments?.style\"\n >\n <tx-button-group>\n @for (style of styles(); track style.name; let index = $index) {\n <button\n #segment\n txButton\n type=\"button\"\n role=\"radio\"\n size=\"small\"\n class=\"tx-theme-configurator__segment\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n [severity]=\"index === styleIndex() ? 'primary' : 'secondary'\"\n [outlined]=\"index !== styleIndex()\"\n [attr.aria-checked]=\"index === styleIndex()\"\n [tabindex]=\"index === styleIndex() || (styleIndex() < 0 && index === 0) ? 0 : -1\"\n (click)=\"selectStyle(index)\"\n (keydown)=\"onSegmentKeydown($event, index)\"\n >\n {{ style.label }}\n </button>\n }\n </tx-button-group>\n </div>\n </div>\n}\n@if (showRipple()) {\n <div\n class=\"tx-theme-configurator__section tx-theme-configurator__section--row\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-ripple'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeRipple }}</span\n >\n <tx-toggle-switch\n [ariaLabelledBy]=\"id + '-ripple'\"\n [ngModel]=\"theme.ripple()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"setRipple($event)\"\n />\n </div>\n}\n",
182
+ styles: [":host{display:flex;flex-direction:column}.tx-theme-configurator__section{display:flex;flex-direction:column}.tx-theme-configurator__section--row{flex-direction:row;align-items:center;justify-content:space-between}.tx-theme-configurator__segments tx-button-group{display:flex}.tx-theme-configurator__segment{flex:1 1 0;min-width:0}:host([data-styled]){gap:var(--tx-theme-configurator-gap);width:var(--tx-theme-configurator-width);max-width:100%}:host([data-styled]) .tx-theme-configurator__section{gap:var(--tx-theme-configurator-section-gap)}:host([data-styled]) .tx-theme-configurator__label{color:var(--tx-theme-configurator-label-color);font-size:var(--tx-theme-configurator-label-font-size);font-weight:var(--tx-theme-configurator-label-font-weight)}\n"],
183
+ dependencies: [
184
+ {
185
+ kind: "ngmodule",
186
+ type: FormsModule
187
+ },
188
+ {
189
+ kind: "directive",
190
+ type: i1.NgControlStatus,
191
+ selector: "[formControlName],[ngModel],[formControl]"
192
+ },
193
+ {
194
+ kind: "directive",
195
+ type: i1.NgModel,
196
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
197
+ inputs: [
198
+ "name",
199
+ "disabled",
200
+ "ngModel",
201
+ "ngModelOptions"
202
+ ],
203
+ outputs: ["ngModelChange"],
204
+ exportAs: ["ngModel"]
205
+ },
206
+ {
207
+ kind: "component",
208
+ type: TxButton,
209
+ selector: "button[txButton], a[txButton]",
210
+ inputs: [
211
+ "label",
212
+ "severity",
213
+ "size",
214
+ "variant",
215
+ "outlined",
216
+ "text",
217
+ "link",
218
+ "rounded",
219
+ "raised",
220
+ "plain",
221
+ "fluid",
222
+ "disabled",
223
+ "tabindex",
224
+ "icon",
225
+ "iconPos",
226
+ "iconOnly",
227
+ "loading",
228
+ "loadingIcon",
229
+ "badge",
230
+ "badgeSeverity",
231
+ "dt",
232
+ "pt",
233
+ "ptOptions",
234
+ "unstyled"
235
+ ]
236
+ },
237
+ {
238
+ kind: "component",
239
+ type: TxButtonGroup,
240
+ selector: "tx-button-group",
241
+ inputs: [
242
+ "orientation",
243
+ "fluid",
244
+ "dt",
245
+ "pt",
246
+ "ptOptions",
247
+ "unstyled"
248
+ ]
249
+ },
250
+ {
251
+ kind: "component",
252
+ type: TxColorSwatches,
253
+ selector: "tx-color-swatches",
254
+ inputs: [
255
+ "options",
256
+ "columns",
257
+ "size",
258
+ "invalid",
259
+ "disabled",
260
+ "readonly",
261
+ "ariaLabel",
262
+ "ariaLabelledBy",
263
+ "dt",
264
+ "pt",
265
+ "ptOptions",
266
+ "unstyled"
267
+ ],
268
+ outputs: ["changed"]
269
+ },
270
+ {
271
+ kind: "component",
272
+ type: TxToggleSwitch,
273
+ selector: "tx-toggle-switch",
274
+ inputs: [
275
+ "label",
276
+ "description",
277
+ "labelPosition",
278
+ "trueValue",
279
+ "falseValue",
280
+ "onIcon",
281
+ "offIcon",
282
+ "size",
283
+ "invalid",
284
+ "disabled",
285
+ "readonly",
286
+ "required",
287
+ "name",
288
+ "inputId",
289
+ "ariaLabel",
290
+ "ariaLabelledBy",
291
+ "tabindex",
292
+ "dt",
293
+ "pt",
294
+ "ptOptions",
295
+ "unstyled"
296
+ ],
297
+ outputs: ["changed"]
298
+ }
299
+ ],
300
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
301
+ });
302
+ };
303
+ i0.ɵɵngDeclareClassMetadata({
304
+ minVersion: "12.0.0",
305
+ version: "22.2.5",
306
+ ngImport: i0,
307
+ type: TxThemeConfigurator,
308
+ decorators: [{
309
+ type: Component,
310
+ args: [{
311
+ selector: "tx-theme-configurator",
312
+ imports: [
313
+ FormsModule,
314
+ TxButton,
315
+ TxButtonGroup,
316
+ TxColorSwatches,
317
+ TxToggleSwitch
318
+ ],
319
+ changeDetection: ChangeDetectionStrategy.OnPush,
320
+ host: {
321
+ class: "tx-theme-configurator",
322
+ "[class]": "passThrough().root?.class",
323
+ "[style]": "hostStyle()",
324
+ "[attr.data-styled]": "!isUnstyled() || null"
325
+ },
326
+ template: "@if (primaries().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-primary'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themePrimary }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"primaries()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-primary'\"\n [ngModel]=\"theme.primary()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ primary: $event })\"\n />\n </div>\n}\n@if (surfaces().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-surface'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeSurface }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"surfaces()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-surface'\"\n [ngModel]=\"theme.surface()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ surface: $event })\"\n />\n </div>\n}\n@if (styles().length > 1) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-style'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeStyle }}</span\n >\n <div\n class=\"tx-theme-configurator__segments\"\n role=\"radiogroup\"\n [attr.aria-labelledby]=\"id + '-style'\"\n [class]=\"passThrough().segments?.class\"\n [style]=\"passThrough().segments?.style\"\n >\n <tx-button-group>\n @for (style of styles(); track style.name; let index = $index) {\n <button\n #segment\n txButton\n type=\"button\"\n role=\"radio\"\n size=\"small\"\n class=\"tx-theme-configurator__segment\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n [severity]=\"index === styleIndex() ? 'primary' : 'secondary'\"\n [outlined]=\"index !== styleIndex()\"\n [attr.aria-checked]=\"index === styleIndex()\"\n [tabindex]=\"index === styleIndex() || (styleIndex() < 0 && index === 0) ? 0 : -1\"\n (click)=\"selectStyle(index)\"\n (keydown)=\"onSegmentKeydown($event, index)\"\n >\n {{ style.label }}\n </button>\n }\n </tx-button-group>\n </div>\n </div>\n}\n@if (showRipple()) {\n <div\n class=\"tx-theme-configurator__section tx-theme-configurator__section--row\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-ripple'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeRipple }}</span\n >\n <tx-toggle-switch\n [ariaLabelledBy]=\"id + '-ripple'\"\n [ngModel]=\"theme.ripple()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"setRipple($event)\"\n />\n </div>\n}\n",
327
+ styles: [":host{display:flex;flex-direction:column}.tx-theme-configurator__section{display:flex;flex-direction:column}.tx-theme-configurator__section--row{flex-direction:row;align-items:center;justify-content:space-between}.tx-theme-configurator__segments tx-button-group{display:flex}.tx-theme-configurator__segment{flex:1 1 0;min-width:0}:host([data-styled]){gap:var(--tx-theme-configurator-gap);width:var(--tx-theme-configurator-width);max-width:100%}:host([data-styled]) .tx-theme-configurator__section{gap:var(--tx-theme-configurator-section-gap)}:host([data-styled]) .tx-theme-configurator__label{color:var(--tx-theme-configurator-label-color);font-size:var(--tx-theme-configurator-label-font-size);font-weight:var(--tx-theme-configurator-label-font-weight)}\n"]
328
+ }]
329
+ }],
330
+ propDecorators: {
331
+ styles: [{
332
+ type: i0.Input,
333
+ args: [{
334
+ isSignal: true,
335
+ alias: "styles",
336
+ required: false
337
+ }]
338
+ }],
339
+ primaries: [{
340
+ type: i0.Input,
341
+ args: [{
342
+ isSignal: true,
343
+ alias: "primaries",
344
+ required: false
345
+ }]
346
+ }],
347
+ surfaces: [{
348
+ type: i0.Input,
349
+ args: [{
350
+ isSignal: true,
351
+ alias: "surfaces",
352
+ required: false
353
+ }]
354
+ }],
355
+ columns: [{
356
+ type: i0.Input,
357
+ args: [{
358
+ isSignal: true,
359
+ alias: "columns",
360
+ required: false
361
+ }]
362
+ }],
363
+ showRipple: [{
364
+ type: i0.Input,
365
+ args: [{
366
+ isSignal: true,
367
+ alias: "showRipple",
368
+ required: false
369
+ }]
370
+ }],
371
+ dt: [{
372
+ type: i0.Input,
373
+ args: [{
374
+ isSignal: true,
375
+ alias: "dt",
376
+ required: false
377
+ }]
378
+ }],
379
+ pt: [{
380
+ type: i0.Input,
381
+ args: [{
382
+ isSignal: true,
383
+ alias: "pt",
384
+ required: false
385
+ }]
386
+ }],
387
+ ptOptions: [{
388
+ type: i0.Input,
389
+ args: [{
390
+ isSignal: true,
391
+ alias: "ptOptions",
392
+ required: false
393
+ }]
394
+ }],
395
+ unstyled: [{
396
+ type: i0.Input,
397
+ args: [{
398
+ isSignal: true,
399
+ alias: "unstyled",
400
+ required: false
401
+ }]
402
+ }],
403
+ themeChange: [{
404
+ type: i0.Output,
405
+ args: ["themeChange"]
406
+ }],
407
+ rippleChange: [{
408
+ type: i0.Output,
409
+ args: ["rippleChange"]
410
+ }],
411
+ segmentButtons: [{
412
+ type: i0.ViewChildren,
413
+ args: ["segment", {
414
+ read: ElementRef,
415
+ isSignal: true
416
+ }]
417
+ }]
418
+ }
419
+ });
420
+ export { TxThemeConfigurator };
421
+
422
+ //# sourceMappingURL=tectra-ng-blocks-theme-configurator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-blocks-theme-configurator.mjs","names":[],"sources":["../../../../packages/blocks/theme-configurator/src/theme-configurator.theme.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.html"],"sourcesContent":["import { themeConfiguratorTokens } from '@tectra-ng/themes';\n\nexport const THEME_CONFIGURATOR_THEME = {\n themeConfigurator: themeConfiguratorTokens,\n};\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, inject, input, numberAttribute, output, viewChildren } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions, TxThemeChoice, TxThemeService } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport {\n TectraDeepPartial,\n TectraPresetSource,\n TectraPrimary,\n TectraStyle,\n TectraSurface,\n TectraThemeConfiguratorTokens,\n tectraPrimaryChoices,\n tectraSurfaceChoices,\n toStyleObject,\n} from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxColorSwatchOption, TxColorSwatches } from '@tectra-ng/ui/color-swatches';\nimport { TxToggleSwitch } from '@tectra-ng/ui/toggle-switch';\nimport { TxThemeConfiguratorPart } from './theme-configurator.types';\nimport { THEME_CONFIGURATOR_THEME } from './theme-configurator.theme';\n\nconst STEPS: Record<string, number> = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 };\nconst ALL_PRIMARIES = tectraPrimaryChoices();\nconst ALL_SURFACES = tectraSurfaceChoices();\n\n/** Theme settings at run time: primary color, surface palette, style and ripple, applied through `TxThemeService`. */\n@Component({\n selector: 'tx-theme-configurator',\n imports: [FormsModule, TxButton, TxButtonGroup, TxColorSwatches, TxToggleSwitch],\n templateUrl: './theme-configurator.component.html',\n styleUrl: './theme-configurator.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-theme-configurator',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxThemeConfigurator {\n private readonly themeConfiguratorTheme = injectTokens(THEME_CONFIGURATOR_THEME);\n\n protected readonly theme = inject(TxThemeService);\n\n readonly styles = input<readonly TectraStyle[]>([]);\n readonly primaries = input<readonly TxColorSwatchOption<TectraPrimary>[]>(ALL_PRIMARIES);\n readonly surfaces = input<readonly TxColorSwatchOption<TectraSurface>[]>(ALL_SURFACES);\n readonly columns = input<number, unknown>(9, { transform: numberAttribute });\n readonly showRipple = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraThemeConfiguratorTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxThemeConfiguratorPart, TxThemeConfigurator> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly themeChange = output<TectraPresetSource>();\n readonly rippleChange = output<boolean>();\n\n private readonly segmentButtons = viewChildren('segment', { read: ElementRef<HTMLButtonElement> });\n\n protected readonly id = uniqueId('tx-theme-configurator');\n protected readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('themeConfigurator', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-theme-configurator'), ...this.passThrough().root?.style }));\n protected readonly styleIndex = computed(() => this.styles().findIndex((style) => style.name === this.theme.style().name));\n\n update(choice: TxThemeChoice): void {\n this.theme.updateTheme(choice);\n this.themeChange.emit({ style: this.theme.style(), primary: this.theme.primary(), surface: this.theme.surface() });\n }\n\n setRipple(enabled: boolean): void {\n this.theme.setRipple(enabled);\n this.rippleChange.emit(enabled);\n }\n\n protected selectStyle(index: number): void {\n if (index !== this.styleIndex()) {\n this.update({ style: this.styles()[index] });\n }\n }\n\n protected onSegmentKeydown(event: KeyboardEvent, index: number): void {\n const count = this.styles().length;\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? count - 1 : event.key in STEPS ? (index + STEPS[event.key] + count) % count : -1;\n if (next < 0) {\n return;\n }\n event.preventDefault();\n this.segmentButtons()[next].nativeElement.focus();\n this.selectStyle(next);\n }\n}\n","@if (primaries().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-primary'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themePrimary }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"primaries()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-primary'\"\n [ngModel]=\"theme.primary()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ primary: $event })\"\n />\n </div>\n}\n@if (surfaces().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-surface'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeSurface }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"surfaces()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-surface'\"\n [ngModel]=\"theme.surface()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ surface: $event })\"\n />\n </div>\n}\n@if (styles().length > 1) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-style'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeStyle }}</span\n >\n <div\n class=\"tx-theme-configurator__segments\"\n role=\"radiogroup\"\n [attr.aria-labelledby]=\"id + '-style'\"\n [class]=\"passThrough().segments?.class\"\n [style]=\"passThrough().segments?.style\"\n >\n <tx-button-group>\n @for (style of styles(); track style.name; let index = $index) {\n <button\n #segment\n txButton\n type=\"button\"\n role=\"radio\"\n size=\"small\"\n class=\"tx-theme-configurator__segment\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n [severity]=\"index === styleIndex() ? 'primary' : 'secondary'\"\n [outlined]=\"index !== styleIndex()\"\n [attr.aria-checked]=\"index === styleIndex()\"\n [tabindex]=\"index === styleIndex() || (styleIndex() < 0 && index === 0) ? 0 : -1\"\n (click)=\"selectStyle(index)\"\n (keydown)=\"onSegmentKeydown($event, index)\"\n >\n {{ style.label }}\n </button>\n }\n </tx-button-group>\n </div>\n </div>\n}\n@if (showRipple()) {\n <div\n class=\"tx-theme-configurator__section tx-theme-configurator__section--row\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-ripple'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeRipple }}</span\n >\n <tx-toggle-switch\n [ariaLabelledBy]=\"id + '-ripple'\"\n [ngModel]=\"theme.ripple()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"setRipple($event)\"\n />\n </div>\n}\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,2BAA2B,EACtC,mBAAmB,wBACpB;ACoBD,MAAM,QAAgC;CAAE,YAAY;CAAG,WAAW;CAAG,WAAW;CAAI,SAAS;AAAE;AAC/F,MAAM,gBAAgB,qBAAoB;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