@juau/zuri 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3842 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, model, output, signal } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ const STORAGE_KEY = "zur-theme";
5
+ const ZUR_THEME_SCOPE = new InjectionToken("ZUR_THEME_SCOPE");
6
+ var ZurThemeService = class ZurThemeService {
7
+ doc = inject(DOCUMENT);
8
+ scope = inject(ZUR_THEME_SCOPE, { optional: true });
9
+ parent = this.scope ? inject(ZurThemeService, {
10
+ skipSelf: true,
11
+ optional: true
12
+ }) : null;
13
+ theme = signal(this.initialTheme(), ...ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []);
14
+ constructor() {
15
+ this.apply(this.theme());
16
+ if (this.scope) {
17
+ const parent = this.parent;
18
+ if (parent) effect(() => {
19
+ const next = parent.theme();
20
+ this.theme.set(next);
21
+ this.apply(next);
22
+ });
23
+ return;
24
+ }
25
+ const win = this.doc.defaultView;
26
+ const onStorage = (event) => {
27
+ if (event.key !== STORAGE_KEY) return;
28
+ if (event.newValue === "light" || event.newValue === "dark") {
29
+ this.theme.set(event.newValue);
30
+ this.apply(event.newValue);
31
+ }
32
+ };
33
+ win?.addEventListener("storage", onStorage);
34
+ inject(DestroyRef).onDestroy(() => win?.removeEventListener("storage", onStorage));
35
+ }
36
+ toggle() {
37
+ this.set(this.theme() === "dark" ? "light" : "dark");
38
+ }
39
+ set(theme) {
40
+ this.theme.set(theme);
41
+ this.apply(theme);
42
+ if (this.scope) return;
43
+ try {
44
+ this.doc.defaultView?.localStorage?.setItem(STORAGE_KEY, theme);
45
+ } catch {}
46
+ }
47
+ initialTheme() {
48
+ if (this.parent) return this.parent.theme();
49
+ try {
50
+ const stored = this.doc.defaultView?.localStorage?.getItem(STORAGE_KEY);
51
+ if (stored === "light" || stored === "dark") return stored;
52
+ return this.doc.defaultView?.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
53
+ } catch {
54
+ return "light";
55
+ }
56
+ }
57
+ apply(theme) {
58
+ (this.scope?.nativeElement ?? this.doc.documentElement).setAttribute("data-theme", theme);
59
+ }
60
+ static ɵfac = i0.ɵɵngDeclareFactory({
61
+ minVersion: "12.0.0",
62
+ version: "22.2.6",
63
+ ngImport: i0,
64
+ type: ZurThemeService,
65
+ deps: [],
66
+ target: i0.ɵɵFactoryTarget.Injectable
67
+ });
68
+ static ɵprov = i0.ɵɵngDeclareInjectable({
69
+ minVersion: "12.0.0",
70
+ version: "22.2.6",
71
+ ngImport: i0,
72
+ type: ZurThemeService,
73
+ providedIn: "root"
74
+ });
75
+ };
76
+ i0.ɵɵngDeclareClassMetadata({
77
+ minVersion: "12.0.0",
78
+ version: "22.2.6",
79
+ ngImport: i0,
80
+ type: ZurThemeService,
81
+ decorators: [{
82
+ type: Injectable,
83
+ args: [{ providedIn: "root" }]
84
+ }],
85
+ ctorParameters: () => []
86
+ });
87
+ var ZurThemeToggle = class ZurThemeToggle {
88
+ themeService = inject(ZurThemeService);
89
+ isDark = computed(() => this.themeService.theme() === "dark", ...ngDevMode ? [{ debugName: "isDark" }] : /* istanbul ignore next */ []);
90
+ label = computed(() => this.isDark() ? "Ativar tema claro" : "Ativar tema escuro", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
91
+ static ɵfac = i0.ɵɵngDeclareFactory({
92
+ minVersion: "12.0.0",
93
+ version: "22.2.6",
94
+ ngImport: i0,
95
+ type: ZurThemeToggle,
96
+ deps: [],
97
+ target: i0.ɵɵFactoryTarget.Component
98
+ });
99
+ static ɵcmp = i0.ɵɵngDeclareComponent({
100
+ minVersion: "17.0.0",
101
+ version: "22.2.6",
102
+ type: ZurThemeToggle,
103
+ isStandalone: true,
104
+ selector: "zur-theme-toggle",
105
+ ngImport: i0,
106
+ template: `
107
+ <button
108
+ type="button"
109
+ class="toggle"
110
+ [attr.aria-label]="label()"
111
+ [attr.aria-pressed]="isDark()"
112
+ (click)="themeService.toggle()"
113
+ >
114
+ @if (isDark()) {
115
+ <!-- sol -->
116
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
117
+ <circle cx="12" cy="12" r="4.5" />
118
+ <path d="M12 2.5v2.4M12 19.1v2.4M2.5 12h2.4M19.1 12h2.4M4.9 4.9l1.7 1.7M17.4 17.4l1.7 1.7M19.1 4.9l-1.7 1.7M6.6 17.4l-1.7 1.7" />
119
+ </svg>
120
+ } @else {
121
+ <!-- lua -->
122
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true">
123
+ <path d="M20.4 14.4A8.5 8.5 0 0 1 9.6 3.6a.7.7 0 0 0-.9-.9 10 10 0 1 0 12.6 12.6.7.7 0 0 0-.9-.9Z" />
124
+ </svg>
125
+ }
126
+ </button>
127
+ `,
128
+ isInline: true,
129
+ styles: [".toggle{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-full);background:var(--zur-canvas);color:var(--zur-ink);cursor:pointer;transition:background-color .15s ease,transform .15s ease}.toggle:hover{background:var(--zur-surface-soft);transform:scale(1.05)}.toggle:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}\n"],
130
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
131
+ });
132
+ };
133
+ i0.ɵɵngDeclareClassMetadata({
134
+ minVersion: "12.0.0",
135
+ version: "22.2.6",
136
+ ngImport: i0,
137
+ type: ZurThemeToggle,
138
+ decorators: [{
139
+ type: Component,
140
+ args: [{
141
+ selector: "zur-theme-toggle",
142
+ changeDetection: ChangeDetectionStrategy.OnPush,
143
+ template: `
144
+ <button
145
+ type="button"
146
+ class="toggle"
147
+ [attr.aria-label]="label()"
148
+ [attr.aria-pressed]="isDark()"
149
+ (click)="themeService.toggle()"
150
+ >
151
+ @if (isDark()) {
152
+ <!-- sol -->
153
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
154
+ <circle cx="12" cy="12" r="4.5" />
155
+ <path d="M12 2.5v2.4M12 19.1v2.4M2.5 12h2.4M19.1 12h2.4M4.9 4.9l1.7 1.7M17.4 17.4l1.7 1.7M19.1 4.9l-1.7 1.7M6.6 17.4l-1.7 1.7" />
156
+ </svg>
157
+ } @else {
158
+ <!-- lua -->
159
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true">
160
+ <path d="M20.4 14.4A8.5 8.5 0 0 1 9.6 3.6a.7.7 0 0 0-.9-.9 10 10 0 1 0 12.6 12.6.7.7 0 0 0-.9-.9Z" />
161
+ </svg>
162
+ }
163
+ </button>
164
+ `,
165
+ styles: [".toggle{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-full);background:var(--zur-canvas);color:var(--zur-ink);cursor:pointer;transition:background-color .15s ease,transform .15s ease}.toggle:hover{background:var(--zur-surface-soft);transform:scale(1.05)}.toggle:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}\n"]
166
+ }]
167
+ }]
168
+ });
169
+ var ZurThemeScope = class ZurThemeScope {
170
+ static ɵfac = i0.ɵɵngDeclareFactory({
171
+ minVersion: "12.0.0",
172
+ version: "22.2.6",
173
+ ngImport: i0,
174
+ type: ZurThemeScope,
175
+ deps: [],
176
+ target: i0.ɵɵFactoryTarget.Directive
177
+ });
178
+ static ɵdir = i0.ɵɵngDeclareDirective({
179
+ minVersion: "14.0.0",
180
+ version: "22.2.6",
181
+ type: ZurThemeScope,
182
+ isStandalone: true,
183
+ selector: "[zurThemeScope]",
184
+ host: { classAttribute: "zur-theme-scope" },
185
+ providers: [{
186
+ provide: ZUR_THEME_SCOPE,
187
+ useFactory: () => inject(ElementRef)
188
+ }, {
189
+ provide: ZurThemeService,
190
+ useClass: ZurThemeService
191
+ }],
192
+ ngImport: i0
193
+ });
194
+ };
195
+ i0.ɵɵngDeclareClassMetadata({
196
+ minVersion: "12.0.0",
197
+ version: "22.2.6",
198
+ ngImport: i0,
199
+ type: ZurThemeScope,
200
+ decorators: [{
201
+ type: Directive,
202
+ args: [{
203
+ selector: "[zurThemeScope]",
204
+ providers: [{
205
+ provide: ZUR_THEME_SCOPE,
206
+ useFactory: () => inject(ElementRef)
207
+ }, {
208
+ provide: ZurThemeService,
209
+ useClass: ZurThemeService
210
+ }],
211
+ host: { class: "zur-theme-scope" }
212
+ }]
213
+ }]
214
+ });
215
+ const ZUR_BREAKPOINTS = {
216
+ tablet: 768,
217
+ desktop: 1024
218
+ };
219
+ var ZurShellState = class ZurShellState {
220
+ doc = inject(DOCUMENT);
221
+ viewport = signal(this.measure(), ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
222
+ collapsed = signal(this.viewport() === "tablet", ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
223
+ drawerOpen = signal(false, ...ngDevMode ? [{ debugName: "drawerOpen" }] : /* istanbul ignore next */ []);
224
+ hasSidebar = signal(false, ...ngDevMode ? [{ debugName: "hasSidebar" }] : /* istanbul ignore next */ []);
225
+ constructor() {
226
+ const win = this.doc.defaultView;
227
+ if (!win?.matchMedia) return;
228
+ const queries = [win.matchMedia(`(min-width: ${ZUR_BREAKPOINTS.tablet}px)`), win.matchMedia(`(min-width: ${ZUR_BREAKPOINTS.desktop}px)`)];
229
+ const update = () => {
230
+ const next = this.measure();
231
+ if (next === this.viewport()) return;
232
+ this.viewport.set(next);
233
+ this.drawerOpen.set(false);
234
+ this.collapsed.set(next === "tablet");
235
+ };
236
+ queries.forEach((q) => q.addEventListener("change", update));
237
+ inject(DestroyRef).onDestroy(() => queries.forEach((q) => q.removeEventListener("change", update)));
238
+ }
239
+ toggle() {
240
+ if (this.viewport() === "mobile") this.drawerOpen.update((v) => !v);
241
+ else this.collapsed.update((v) => !v);
242
+ }
243
+ closeDrawer() {
244
+ this.drawerOpen.set(false);
245
+ }
246
+ measure() {
247
+ const width = this.doc.defaultView?.innerWidth ?? ZUR_BREAKPOINTS.desktop;
248
+ if (width < ZUR_BREAKPOINTS.tablet) return "mobile";
249
+ if (width < ZUR_BREAKPOINTS.desktop) return "tablet";
250
+ return "desktop";
251
+ }
252
+ static ɵfac = i0.ɵɵngDeclareFactory({
253
+ minVersion: "12.0.0",
254
+ version: "22.2.6",
255
+ ngImport: i0,
256
+ type: ZurShellState,
257
+ deps: [],
258
+ target: i0.ɵɵFactoryTarget.Injectable
259
+ });
260
+ static ɵprov = i0.ɵɵngDeclareInjectable({
261
+ minVersion: "12.0.0",
262
+ version: "22.2.6",
263
+ ngImport: i0,
264
+ type: ZurShellState
265
+ });
266
+ };
267
+ i0.ɵɵngDeclareClassMetadata({
268
+ minVersion: "12.0.0",
269
+ version: "22.2.6",
270
+ ngImport: i0,
271
+ type: ZurShellState,
272
+ decorators: [{ type: Injectable }],
273
+ ctorParameters: () => []
274
+ });
275
+ var ZurLogo = class ZurLogo {
276
+ shell = inject(ZurShellState, { optional: true });
277
+ variant = input("horizontal", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
278
+ size = input(32, ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
279
+ symbolOnly = computed(() => {
280
+ const v = this.variant();
281
+ if (v === "symbol") return true;
282
+ if (v === "auto") return !!this.shell && this.shell.collapsed() && this.shell.viewport() !== "mobile";
283
+ return false;
284
+ }, ...ngDevMode ? [{ debugName: "symbolOnly" }] : /* istanbul ignore next */ []);
285
+ static ɵfac = i0.ɵɵngDeclareFactory({
286
+ minVersion: "12.0.0",
287
+ version: "22.2.6",
288
+ ngImport: i0,
289
+ type: ZurLogo,
290
+ deps: [],
291
+ target: i0.ɵɵFactoryTarget.Component
292
+ });
293
+ static ɵcmp = i0.ɵɵngDeclareComponent({
294
+ minVersion: "17.0.0",
295
+ version: "22.2.6",
296
+ type: ZurLogo,
297
+ isStandalone: true,
298
+ selector: "zur-logo",
299
+ inputs: {
300
+ variant: {
301
+ classPropertyName: "variant",
302
+ publicName: "variant",
303
+ isSignal: true,
304
+ isRequired: false,
305
+ transformFunction: null
306
+ },
307
+ size: {
308
+ classPropertyName: "size",
309
+ publicName: "size",
310
+ isSignal: true,
311
+ isRequired: false,
312
+ transformFunction: null
313
+ }
314
+ },
315
+ host: { attributes: {
316
+ "role": "img",
317
+ "aria-label": "Zuri"
318
+ } },
319
+ ngImport: i0,
320
+ template: `
321
+ @if (symbolOnly()) {
322
+ <svg viewBox="0 0 64 64" [attr.width]="size()" [attr.height]="size()" aria-hidden="true">
323
+ <path
324
+ d="M15 19 H42 L15 47 H49"
325
+ fill="none"
326
+ stroke="var(--zur-primary-active)"
327
+ stroke-width="9"
328
+ stroke-linecap="round"
329
+ stroke-linejoin="round"
330
+ />
331
+ <path d="M44 17 C44 8 51 3.5 60.5 3.5 C60.5 12.5 54 18 44 17 Z" fill="var(--zur-primary)" />
332
+ </svg>
333
+ } @else {
334
+ <svg
335
+ viewBox="8 0 130 64"
336
+ [attr.width]="size() * 2.031"
337
+ [attr.height]="size()"
338
+ aria-hidden="true"
339
+ >
340
+ <path
341
+ d="M15 20 H50.1 L15 56 H59.2"
342
+ fill="none"
343
+ stroke="var(--zur-primary-active)"
344
+ stroke-width="9"
345
+ stroke-linecap="round"
346
+ stroke-linejoin="round"
347
+ />
348
+ <path d="M44 17 C44 8 51 3.5 60.5 3.5 C60.5 12.5 54 18 44 17 Z" transform="translate(50.1 20) scale(1.1) translate(-42 -19)" fill="var(--zur-primary)" />
349
+ <g
350
+ fill="none"
351
+ stroke="var(--zur-ink)"
352
+ stroke-width="8"
353
+ stroke-linecap="round"
354
+ stroke-linejoin="round"
355
+ >
356
+ <path d="M73 28 V46 A10 10 0 0 0 93 46 V28" />
357
+ <path d="M105 28 V56 M105 43 C105 33 110 28 118 29" />
358
+ <path d="M131 28 V56" />
359
+ </g>
360
+ <circle cx="131" cy="16" r="4.4" fill="var(--zur-primary)" />
361
+ </svg>
362
+ }
363
+ `,
364
+ isInline: true,
365
+ styles: [":host{display:inline-flex;line-height:0}svg{display:block}\n"],
366
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
367
+ });
368
+ };
369
+ i0.ɵɵngDeclareClassMetadata({
370
+ minVersion: "12.0.0",
371
+ version: "22.2.6",
372
+ ngImport: i0,
373
+ type: ZurLogo,
374
+ decorators: [{
375
+ type: Component,
376
+ args: [{
377
+ selector: "zur-logo",
378
+ changeDetection: ChangeDetectionStrategy.OnPush,
379
+ host: {
380
+ role: "img",
381
+ "aria-label": "Zuri"
382
+ },
383
+ template: `
384
+ @if (symbolOnly()) {
385
+ <svg viewBox="0 0 64 64" [attr.width]="size()" [attr.height]="size()" aria-hidden="true">
386
+ <path
387
+ d="M15 19 H42 L15 47 H49"
388
+ fill="none"
389
+ stroke="var(--zur-primary-active)"
390
+ stroke-width="9"
391
+ stroke-linecap="round"
392
+ stroke-linejoin="round"
393
+ />
394
+ <path d="M44 17 C44 8 51 3.5 60.5 3.5 C60.5 12.5 54 18 44 17 Z" fill="var(--zur-primary)" />
395
+ </svg>
396
+ } @else {
397
+ <svg
398
+ viewBox="8 0 130 64"
399
+ [attr.width]="size() * 2.031"
400
+ [attr.height]="size()"
401
+ aria-hidden="true"
402
+ >
403
+ <path
404
+ d="M15 20 H50.1 L15 56 H59.2"
405
+ fill="none"
406
+ stroke="var(--zur-primary-active)"
407
+ stroke-width="9"
408
+ stroke-linecap="round"
409
+ stroke-linejoin="round"
410
+ />
411
+ <path d="M44 17 C44 8 51 3.5 60.5 3.5 C60.5 12.5 54 18 44 17 Z" transform="translate(50.1 20) scale(1.1) translate(-42 -19)" fill="var(--zur-primary)" />
412
+ <g
413
+ fill="none"
414
+ stroke="var(--zur-ink)"
415
+ stroke-width="8"
416
+ stroke-linecap="round"
417
+ stroke-linejoin="round"
418
+ >
419
+ <path d="M73 28 V46 A10 10 0 0 0 93 46 V28" />
420
+ <path d="M105 28 V56 M105 43 C105 33 110 28 118 29" />
421
+ <path d="M131 28 V56" />
422
+ </g>
423
+ <circle cx="131" cy="16" r="4.4" fill="var(--zur-primary)" />
424
+ </svg>
425
+ }
426
+ `,
427
+ styles: [":host{display:inline-flex;line-height:0}svg{display:block}\n"]
428
+ }]
429
+ }],
430
+ propDecorators: {
431
+ variant: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "variant",
436
+ required: false
437
+ }]
438
+ }],
439
+ size: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "size",
444
+ required: false
445
+ }]
446
+ }]
447
+ }
448
+ });
449
+ var ZurButton = class ZurButton {
450
+ variant = input("primary", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
451
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
452
+ static ɵfac = i0.ɵɵngDeclareFactory({
453
+ minVersion: "12.0.0",
454
+ version: "22.2.6",
455
+ ngImport: i0,
456
+ type: ZurButton,
457
+ deps: [],
458
+ target: i0.ɵɵFactoryTarget.Component
459
+ });
460
+ static ɵcmp = i0.ɵɵngDeclareComponent({
461
+ minVersion: "17.1.0",
462
+ version: "22.2.6",
463
+ type: ZurButton,
464
+ isStandalone: true,
465
+ selector: "button[zur-button], a[zur-button]",
466
+ inputs: {
467
+ variant: {
468
+ classPropertyName: "variant",
469
+ publicName: "variant",
470
+ isSignal: true,
471
+ isRequired: false,
472
+ transformFunction: null
473
+ },
474
+ size: {
475
+ classPropertyName: "size",
476
+ publicName: "size",
477
+ isSignal: true,
478
+ isRequired: false,
479
+ transformFunction: null
480
+ }
481
+ },
482
+ host: { properties: {
483
+ "attr.data-variant": "variant()",
484
+ "attr.data-size": "size()"
485
+ } },
486
+ ngImport: i0,
487
+ template: `<ng-content />`,
488
+ isInline: true,
489
+ styles: [":host{display:inline-flex;align-items:center;justify-content:center;gap:var(--zur-space-xs);font:var(--zur-font-button);border:1px solid transparent;border-radius:var(--zur-radius-sm);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}:host(:focus-visible){outline:none;box-shadow:var(--zur-focus-ring)}:host(:disabled),:host([aria-disabled=\"true\"]){opacity:.45;cursor:not-allowed}:host([data-size=\"sm\"]){height:var(--zur-control-height-sm);padding:0 var(--zur-space-md);font-size:14px}:host([data-size=\"md\"]){height:var(--zur-control-height-md);padding:0 var(--zur-space-lg)}:host([data-size=\"lg\"]){height:var(--zur-control-height-lg);padding:0 var(--zur-space-xl);font-size:18px}:host([data-variant=\"primary\"]){background:var(--zur-primary);color:var(--zur-on-primary)}:host([data-variant=\"primary\"]:hover:not(:disabled)){background:var(--zur-primary-hover)}:host([data-variant=\"primary\"]:active:not(:disabled)){background:var(--zur-primary-active)}:host([data-variant=\"secondary\"]){background:var(--zur-canvas);color:var(--zur-ink);border-color:var(--zur-ink)}:host([data-variant=\"secondary\"]:hover:not(:disabled)){background:var(--zur-surface-soft)}:host([data-variant=\"ghost\"]){background:transparent;color:var(--zur-ink)}:host([data-variant=\"ghost\"]:hover:not(:disabled)){background:var(--zur-surface-soft)}:host([data-variant=\"pill\"]){background:var(--zur-primary);color:var(--zur-on-primary);border-radius:var(--zur-radius-full)}:host([data-variant=\"pill\"]:hover:not(:disabled)){background:var(--zur-primary-hover)}\n"],
490
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
491
+ });
492
+ };
493
+ i0.ɵɵngDeclareClassMetadata({
494
+ minVersion: "12.0.0",
495
+ version: "22.2.6",
496
+ ngImport: i0,
497
+ type: ZurButton,
498
+ decorators: [{
499
+ type: Component,
500
+ args: [{
501
+ selector: "button[zur-button], a[zur-button]",
502
+ changeDetection: ChangeDetectionStrategy.OnPush,
503
+ template: `<ng-content />`,
504
+ host: {
505
+ "[attr.data-variant]": "variant()",
506
+ "[attr.data-size]": "size()"
507
+ },
508
+ styles: [":host{display:inline-flex;align-items:center;justify-content:center;gap:var(--zur-space-xs);font:var(--zur-font-button);border:1px solid transparent;border-radius:var(--zur-radius-sm);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}:host(:focus-visible){outline:none;box-shadow:var(--zur-focus-ring)}:host(:disabled),:host([aria-disabled=\"true\"]){opacity:.45;cursor:not-allowed}:host([data-size=\"sm\"]){height:var(--zur-control-height-sm);padding:0 var(--zur-space-md);font-size:14px}:host([data-size=\"md\"]){height:var(--zur-control-height-md);padding:0 var(--zur-space-lg)}:host([data-size=\"lg\"]){height:var(--zur-control-height-lg);padding:0 var(--zur-space-xl);font-size:18px}:host([data-variant=\"primary\"]){background:var(--zur-primary);color:var(--zur-on-primary)}:host([data-variant=\"primary\"]:hover:not(:disabled)){background:var(--zur-primary-hover)}:host([data-variant=\"primary\"]:active:not(:disabled)){background:var(--zur-primary-active)}:host([data-variant=\"secondary\"]){background:var(--zur-canvas);color:var(--zur-ink);border-color:var(--zur-ink)}:host([data-variant=\"secondary\"]:hover:not(:disabled)){background:var(--zur-surface-soft)}:host([data-variant=\"ghost\"]){background:transparent;color:var(--zur-ink)}:host([data-variant=\"ghost\"]:hover:not(:disabled)){background:var(--zur-surface-soft)}:host([data-variant=\"pill\"]){background:var(--zur-primary);color:var(--zur-on-primary);border-radius:var(--zur-radius-full)}:host([data-variant=\"pill\"]:hover:not(:disabled)){background:var(--zur-primary-hover)}\n"]
509
+ }]
510
+ }],
511
+ propDecorators: {
512
+ variant: [{
513
+ type: i0.Input,
514
+ args: [{
515
+ isSignal: true,
516
+ alias: "variant",
517
+ required: false
518
+ }]
519
+ }],
520
+ size: [{
521
+ type: i0.Input,
522
+ args: [{
523
+ isSignal: true,
524
+ alias: "size",
525
+ required: false
526
+ }]
527
+ }]
528
+ }
529
+ });
530
+ var ZurBadge = class ZurBadge {
531
+ color = input("mint", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
532
+ static ɵfac = i0.ɵɵngDeclareFactory({
533
+ minVersion: "12.0.0",
534
+ version: "22.2.6",
535
+ ngImport: i0,
536
+ type: ZurBadge,
537
+ deps: [],
538
+ target: i0.ɵɵFactoryTarget.Component
539
+ });
540
+ static ɵcmp = i0.ɵɵngDeclareComponent({
541
+ minVersion: "17.1.0",
542
+ version: "22.2.6",
543
+ type: ZurBadge,
544
+ isStandalone: true,
545
+ selector: "zur-badge",
546
+ inputs: { color: {
547
+ classPropertyName: "color",
548
+ publicName: "color",
549
+ isSignal: true,
550
+ isRequired: false,
551
+ transformFunction: null
552
+ } },
553
+ host: { properties: { "attr.data-color": "color()" } },
554
+ ngImport: i0,
555
+ template: `<ng-content />`,
556
+ isInline: true,
557
+ styles: [":host{display:inline-flex;align-items:center;gap:var(--zur-space-xxs);font:var(--zur-font-badge);letter-spacing:.2px;padding:4px 10px;border-radius:var(--zur-radius-full)}:host([data-color=\"mint\"]){background:var(--zur-primary-soft);color:var(--zur-on-primary-soft)}:host([data-color=\"success\"]){background:var(--zur-success-soft);color:var(--zur-success)}:host([data-color=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning)}:host([data-color=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error)}:host([data-color=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info)}:host([data-color=\"neutral\"]){background:var(--zur-surface-strong);color:var(--zur-body)}:host-context([data-theme=\"dark\"])[data-color=mint]{color:var(--zur-primary)}\n"],
558
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
559
+ });
560
+ };
561
+ i0.ɵɵngDeclareClassMetadata({
562
+ minVersion: "12.0.0",
563
+ version: "22.2.6",
564
+ ngImport: i0,
565
+ type: ZurBadge,
566
+ decorators: [{
567
+ type: Component,
568
+ args: [{
569
+ selector: "zur-badge",
570
+ changeDetection: ChangeDetectionStrategy.OnPush,
571
+ template: `<ng-content />`,
572
+ host: { "[attr.data-color]": "color()" },
573
+ styles: [":host{display:inline-flex;align-items:center;gap:var(--zur-space-xxs);font:var(--zur-font-badge);letter-spacing:.2px;padding:4px 10px;border-radius:var(--zur-radius-full)}:host([data-color=\"mint\"]){background:var(--zur-primary-soft);color:var(--zur-on-primary-soft)}:host([data-color=\"success\"]){background:var(--zur-success-soft);color:var(--zur-success)}:host([data-color=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning)}:host([data-color=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error)}:host([data-color=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info)}:host([data-color=\"neutral\"]){background:var(--zur-surface-strong);color:var(--zur-body)}:host-context([data-theme=\"dark\"])[data-color=mint]{color:var(--zur-primary)}\n"]
574
+ }]
575
+ }],
576
+ propDecorators: { color: [{
577
+ type: i0.Input,
578
+ args: [{
579
+ isSignal: true,
580
+ alias: "color",
581
+ required: false
582
+ }]
583
+ }] }
584
+ });
585
+ var ZurCard = class ZurCard {
586
+ interactive = input(false, {
587
+ ...ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {},
588
+ transform: booleanAttribute
589
+ });
590
+ static ɵfac = i0.ɵɵngDeclareFactory({
591
+ minVersion: "12.0.0",
592
+ version: "22.2.6",
593
+ ngImport: i0,
594
+ type: ZurCard,
595
+ deps: [],
596
+ target: i0.ɵɵFactoryTarget.Component
597
+ });
598
+ static ɵcmp = i0.ɵɵngDeclareComponent({
599
+ minVersion: "17.1.0",
600
+ version: "22.2.6",
601
+ type: ZurCard,
602
+ isStandalone: true,
603
+ selector: "zur-card",
604
+ inputs: { interactive: {
605
+ classPropertyName: "interactive",
606
+ publicName: "interactive",
607
+ isSignal: true,
608
+ isRequired: false,
609
+ transformFunction: null
610
+ } },
611
+ host: { properties: { "attr.data-interactive": "interactive() ? \"\" : null" } },
612
+ ngImport: i0,
613
+ template: `<ng-content />`,
614
+ isInline: true,
615
+ styles: [":host{display:block;background:var(--zur-surface-raised);color:var(--zur-body);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);padding:var(--zur-space-lg);transition:box-shadow .18s ease,transform .18s ease}:host([data-interactive]){cursor:pointer}:host([data-interactive]:hover){box-shadow:var(--zur-shadow-float);transform:translateY(-2px)}\n"],
616
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
617
+ });
618
+ };
619
+ i0.ɵɵngDeclareClassMetadata({
620
+ minVersion: "12.0.0",
621
+ version: "22.2.6",
622
+ ngImport: i0,
623
+ type: ZurCard,
624
+ decorators: [{
625
+ type: Component,
626
+ args: [{
627
+ selector: "zur-card",
628
+ changeDetection: ChangeDetectionStrategy.OnPush,
629
+ template: `<ng-content />`,
630
+ host: { "[attr.data-interactive]": "interactive() ? \"\" : null" },
631
+ styles: [":host{display:block;background:var(--zur-surface-raised);color:var(--zur-body);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);padding:var(--zur-space-lg);transition:box-shadow .18s ease,transform .18s ease}:host([data-interactive]){cursor:pointer}:host([data-interactive]:hover){box-shadow:var(--zur-shadow-float);transform:translateY(-2px)}\n"]
632
+ }]
633
+ }],
634
+ propDecorators: { interactive: [{
635
+ type: i0.Input,
636
+ args: [{
637
+ isSignal: true,
638
+ alias: "interactive",
639
+ required: false
640
+ }]
641
+ }] }
642
+ });
643
+ var ZurAvatar = class ZurAvatar {
644
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
645
+ src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
646
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
647
+ initials = computed(() => {
648
+ const parts = this.name().trim().split(/\s+/).filter(Boolean);
649
+ if (parts.length === 0) return "?";
650
+ return ((parts[0][0] ?? "") + (parts.length > 1 ? parts[parts.length - 1][0] ?? "" : "")).toUpperCase();
651
+ }, ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
652
+ static ɵfac = i0.ɵɵngDeclareFactory({
653
+ minVersion: "12.0.0",
654
+ version: "22.2.6",
655
+ ngImport: i0,
656
+ type: ZurAvatar,
657
+ deps: [],
658
+ target: i0.ɵɵFactoryTarget.Component
659
+ });
660
+ static ɵcmp = i0.ɵɵngDeclareComponent({
661
+ minVersion: "17.0.0",
662
+ version: "22.2.6",
663
+ type: ZurAvatar,
664
+ isStandalone: true,
665
+ selector: "zur-avatar",
666
+ inputs: {
667
+ name: {
668
+ classPropertyName: "name",
669
+ publicName: "name",
670
+ isSignal: true,
671
+ isRequired: false,
672
+ transformFunction: null
673
+ },
674
+ src: {
675
+ classPropertyName: "src",
676
+ publicName: "src",
677
+ isSignal: true,
678
+ isRequired: false,
679
+ transformFunction: null
680
+ },
681
+ size: {
682
+ classPropertyName: "size",
683
+ publicName: "size",
684
+ isSignal: true,
685
+ isRequired: false,
686
+ transformFunction: null
687
+ }
688
+ },
689
+ host: { properties: {
690
+ "attr.data-size": "size()",
691
+ "attr.title": "name()"
692
+ } },
693
+ ngImport: i0,
694
+ template: `
695
+ @if (src()) {
696
+ <img [src]="src()" [alt]="name()" />
697
+ } @else {
698
+ <span aria-hidden="true">{{ initials() }}</span>
699
+ }
700
+ `,
701
+ isInline: true,
702
+ styles: [":host{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--zur-radius-full);background:var(--zur-primary-soft);color:var(--zur-on-primary-soft);font:var(--zur-font-badge);overflow:hidden;flex-shrink:0;-webkit-user-select:none;user-select:none}:host([data-size=\"sm\"]){width:32px;height:32px;font-size:12px}:host([data-size=\"md\"]){width:40px;height:40px;font-size:14px}:host([data-size=\"lg\"]){width:56px;height:56px;font-size:18px}img{width:100%;height:100%;object-fit:cover}:host-context([data-theme=\"dark\"]){color:var(--zur-primary)}\n"],
703
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
704
+ });
705
+ };
706
+ i0.ɵɵngDeclareClassMetadata({
707
+ minVersion: "12.0.0",
708
+ version: "22.2.6",
709
+ ngImport: i0,
710
+ type: ZurAvatar,
711
+ decorators: [{
712
+ type: Component,
713
+ args: [{
714
+ selector: "zur-avatar",
715
+ changeDetection: ChangeDetectionStrategy.OnPush,
716
+ template: `
717
+ @if (src()) {
718
+ <img [src]="src()" [alt]="name()" />
719
+ } @else {
720
+ <span aria-hidden="true">{{ initials() }}</span>
721
+ }
722
+ `,
723
+ host: {
724
+ "[attr.data-size]": "size()",
725
+ "[attr.title]": "name()"
726
+ },
727
+ styles: [":host{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--zur-radius-full);background:var(--zur-primary-soft);color:var(--zur-on-primary-soft);font:var(--zur-font-badge);overflow:hidden;flex-shrink:0;-webkit-user-select:none;user-select:none}:host([data-size=\"sm\"]){width:32px;height:32px;font-size:12px}:host([data-size=\"md\"]){width:40px;height:40px;font-size:14px}:host([data-size=\"lg\"]){width:56px;height:56px;font-size:18px}img{width:100%;height:100%;object-fit:cover}:host-context([data-theme=\"dark\"]){color:var(--zur-primary)}\n"]
728
+ }]
729
+ }],
730
+ propDecorators: {
731
+ name: [{
732
+ type: i0.Input,
733
+ args: [{
734
+ isSignal: true,
735
+ alias: "name",
736
+ required: false
737
+ }]
738
+ }],
739
+ src: [{
740
+ type: i0.Input,
741
+ args: [{
742
+ isSignal: true,
743
+ alias: "src",
744
+ required: false
745
+ }]
746
+ }],
747
+ size: [{
748
+ type: i0.Input,
749
+ args: [{
750
+ isSignal: true,
751
+ alias: "size",
752
+ required: false
753
+ }]
754
+ }]
755
+ }
756
+ });
757
+ let nextId$4 = 0;
758
+ var ZurInput = class ZurInput {
759
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
760
+ type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
761
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
762
+ hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
763
+ error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
764
+ disabled = input(false, {
765
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
766
+ transform: booleanAttribute
767
+ });
768
+ id = `zur-input-${nextId$4++}`;
769
+ value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
770
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
771
+ onChange = () => {};
772
+ onTouched = () => {};
773
+ isDisabled() {
774
+ return this.disabled() || this.cvaDisabled();
775
+ }
776
+ get describedBy() {
777
+ if (this.error()) return `${this.id}-error`;
778
+ return this.hint() ? `${this.id}-hint` : null;
779
+ }
780
+ onInput(event) {
781
+ const next = event.target.value;
782
+ this.value.set(next);
783
+ this.onChange(next);
784
+ }
785
+ writeValue(value) {
786
+ this.value.set(value ?? "");
787
+ }
788
+ registerOnChange(fn) {
789
+ this.onChange = fn;
790
+ }
791
+ registerOnTouched(fn) {
792
+ this.onTouched = fn;
793
+ }
794
+ setDisabledState(isDisabled) {
795
+ this.cvaDisabled.set(isDisabled);
796
+ }
797
+ static ɵfac = i0.ɵɵngDeclareFactory({
798
+ minVersion: "12.0.0",
799
+ version: "22.2.6",
800
+ ngImport: i0,
801
+ type: ZurInput,
802
+ deps: [],
803
+ target: i0.ɵɵFactoryTarget.Component
804
+ });
805
+ static ɵcmp = i0.ɵɵngDeclareComponent({
806
+ minVersion: "17.0.0",
807
+ version: "22.2.6",
808
+ type: ZurInput,
809
+ isStandalone: true,
810
+ selector: "zur-input",
811
+ inputs: {
812
+ label: {
813
+ classPropertyName: "label",
814
+ publicName: "label",
815
+ isSignal: true,
816
+ isRequired: false,
817
+ transformFunction: null
818
+ },
819
+ type: {
820
+ classPropertyName: "type",
821
+ publicName: "type",
822
+ isSignal: true,
823
+ isRequired: false,
824
+ transformFunction: null
825
+ },
826
+ placeholder: {
827
+ classPropertyName: "placeholder",
828
+ publicName: "placeholder",
829
+ isSignal: true,
830
+ isRequired: false,
831
+ transformFunction: null
832
+ },
833
+ hint: {
834
+ classPropertyName: "hint",
835
+ publicName: "hint",
836
+ isSignal: true,
837
+ isRequired: false,
838
+ transformFunction: null
839
+ },
840
+ error: {
841
+ classPropertyName: "error",
842
+ publicName: "error",
843
+ isSignal: true,
844
+ isRequired: false,
845
+ transformFunction: null
846
+ },
847
+ disabled: {
848
+ classPropertyName: "disabled",
849
+ publicName: "disabled",
850
+ isSignal: true,
851
+ isRequired: false,
852
+ transformFunction: null
853
+ }
854
+ },
855
+ providers: [{
856
+ provide: NG_VALUE_ACCESSOR,
857
+ useExisting: forwardRef(() => ZurInput),
858
+ multi: true
859
+ }],
860
+ ngImport: i0,
861
+ template: `
862
+ @if (label()) {
863
+ <label class="label" [for]="id">{{ label() }}</label>
864
+ }
865
+ <input
866
+ [id]="id"
867
+ class="field"
868
+ [class.has-error]="!!error()"
869
+ [type]="type()"
870
+ [placeholder]="placeholder()"
871
+ [value]="value()"
872
+ [disabled]="isDisabled()"
873
+ (input)="onInput($event)"
874
+ (blur)="onTouched()"
875
+ [attr.aria-invalid]="error() ? true : null"
876
+ [attr.aria-describedby]="describedBy"
877
+ />
878
+ @if (error()) {
879
+ <p class="help error" [id]="id + '-error'">{{ error() }}</p>
880
+ } @else if (hint()) {
881
+ <p class="help" [id]="id + '-hint'">{{ hint() }}</p>
882
+ }
883
+ `,
884
+ isInline: true,
885
+ styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.field{width:100%;box-sizing:border-box;height:var(--zur-control-height-lg);padding:0 var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-ink);background:var(--zur-canvas);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);transition:border-color .12s ease}.field::placeholder{color:var(--zur-muted)}.field:focus{outline:none;border:2px solid var(--zur-ink);padding:0 calc(var(--zur-space-md) - 1px)}.field:disabled{background:var(--zur-surface-soft);color:var(--zur-muted);cursor:not-allowed}.field.has-error{border-color:var(--zur-error)}.field.has-error:focus{border:2px solid var(--zur-error)}.help{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-caption);color:var(--zur-muted)}.help.error{color:var(--zur-error)}\n"],
886
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
887
+ });
888
+ };
889
+ i0.ɵɵngDeclareClassMetadata({
890
+ minVersion: "12.0.0",
891
+ version: "22.2.6",
892
+ ngImport: i0,
893
+ type: ZurInput,
894
+ decorators: [{
895
+ type: Component,
896
+ args: [{
897
+ selector: "zur-input",
898
+ changeDetection: ChangeDetectionStrategy.OnPush,
899
+ providers: [{
900
+ provide: NG_VALUE_ACCESSOR,
901
+ useExisting: forwardRef(() => ZurInput),
902
+ multi: true
903
+ }],
904
+ template: `
905
+ @if (label()) {
906
+ <label class="label" [for]="id">{{ label() }}</label>
907
+ }
908
+ <input
909
+ [id]="id"
910
+ class="field"
911
+ [class.has-error]="!!error()"
912
+ [type]="type()"
913
+ [placeholder]="placeholder()"
914
+ [value]="value()"
915
+ [disabled]="isDisabled()"
916
+ (input)="onInput($event)"
917
+ (blur)="onTouched()"
918
+ [attr.aria-invalid]="error() ? true : null"
919
+ [attr.aria-describedby]="describedBy"
920
+ />
921
+ @if (error()) {
922
+ <p class="help error" [id]="id + '-error'">{{ error() }}</p>
923
+ } @else if (hint()) {
924
+ <p class="help" [id]="id + '-hint'">{{ hint() }}</p>
925
+ }
926
+ `,
927
+ styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.field{width:100%;box-sizing:border-box;height:var(--zur-control-height-lg);padding:0 var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-ink);background:var(--zur-canvas);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);transition:border-color .12s ease}.field::placeholder{color:var(--zur-muted)}.field:focus{outline:none;border:2px solid var(--zur-ink);padding:0 calc(var(--zur-space-md) - 1px)}.field:disabled{background:var(--zur-surface-soft);color:var(--zur-muted);cursor:not-allowed}.field.has-error{border-color:var(--zur-error)}.field.has-error:focus{border:2px solid var(--zur-error)}.help{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-caption);color:var(--zur-muted)}.help.error{color:var(--zur-error)}\n"]
928
+ }]
929
+ }],
930
+ propDecorators: {
931
+ label: [{
932
+ type: i0.Input,
933
+ args: [{
934
+ isSignal: true,
935
+ alias: "label",
936
+ required: false
937
+ }]
938
+ }],
939
+ type: [{
940
+ type: i0.Input,
941
+ args: [{
942
+ isSignal: true,
943
+ alias: "type",
944
+ required: false
945
+ }]
946
+ }],
947
+ placeholder: [{
948
+ type: i0.Input,
949
+ args: [{
950
+ isSignal: true,
951
+ alias: "placeholder",
952
+ required: false
953
+ }]
954
+ }],
955
+ hint: [{
956
+ type: i0.Input,
957
+ args: [{
958
+ isSignal: true,
959
+ alias: "hint",
960
+ required: false
961
+ }]
962
+ }],
963
+ error: [{
964
+ type: i0.Input,
965
+ args: [{
966
+ isSignal: true,
967
+ alias: "error",
968
+ required: false
969
+ }]
970
+ }],
971
+ disabled: [{
972
+ type: i0.Input,
973
+ args: [{
974
+ isSignal: true,
975
+ alias: "disabled",
976
+ required: false
977
+ }]
978
+ }]
979
+ }
980
+ });
981
+ let nextId$3 = 0;
982
+ var ZurSelect = class ZurSelect {
983
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
984
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
985
+ options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
986
+ disabled = input(false, {
987
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
988
+ transform: booleanAttribute
989
+ });
990
+ id = `zur-select-${nextId$3++}`;
991
+ value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
992
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
993
+ onChange = () => {};
994
+ onTouched = () => {};
995
+ isDisabled() {
996
+ return this.disabled() || this.cvaDisabled();
997
+ }
998
+ onSelect(event) {
999
+ const next = event.target.value;
1000
+ this.value.set(next);
1001
+ this.onChange(next);
1002
+ }
1003
+ writeValue(value) {
1004
+ this.value.set(value ?? "");
1005
+ }
1006
+ registerOnChange(fn) {
1007
+ this.onChange = fn;
1008
+ }
1009
+ registerOnTouched(fn) {
1010
+ this.onTouched = fn;
1011
+ }
1012
+ setDisabledState(isDisabled) {
1013
+ this.cvaDisabled.set(isDisabled);
1014
+ }
1015
+ static ɵfac = i0.ɵɵngDeclareFactory({
1016
+ minVersion: "12.0.0",
1017
+ version: "22.2.6",
1018
+ ngImport: i0,
1019
+ type: ZurSelect,
1020
+ deps: [],
1021
+ target: i0.ɵɵFactoryTarget.Component
1022
+ });
1023
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1024
+ minVersion: "17.0.0",
1025
+ version: "22.2.6",
1026
+ type: ZurSelect,
1027
+ isStandalone: true,
1028
+ selector: "zur-select",
1029
+ inputs: {
1030
+ label: {
1031
+ classPropertyName: "label",
1032
+ publicName: "label",
1033
+ isSignal: true,
1034
+ isRequired: false,
1035
+ transformFunction: null
1036
+ },
1037
+ placeholder: {
1038
+ classPropertyName: "placeholder",
1039
+ publicName: "placeholder",
1040
+ isSignal: true,
1041
+ isRequired: false,
1042
+ transformFunction: null
1043
+ },
1044
+ options: {
1045
+ classPropertyName: "options",
1046
+ publicName: "options",
1047
+ isSignal: true,
1048
+ isRequired: false,
1049
+ transformFunction: null
1050
+ },
1051
+ disabled: {
1052
+ classPropertyName: "disabled",
1053
+ publicName: "disabled",
1054
+ isSignal: true,
1055
+ isRequired: false,
1056
+ transformFunction: null
1057
+ }
1058
+ },
1059
+ providers: [{
1060
+ provide: NG_VALUE_ACCESSOR,
1061
+ useExisting: forwardRef(() => ZurSelect),
1062
+ multi: true
1063
+ }],
1064
+ ngImport: i0,
1065
+ template: `
1066
+ @if (label()) {
1067
+ <label class="label" [for]="id">{{ label() }}</label>
1068
+ }
1069
+ <div class="wrap">
1070
+ <select
1071
+ [id]="id"
1072
+ class="field"
1073
+ [disabled]="isDisabled()"
1074
+ (change)="onSelect($event)"
1075
+ (blur)="onTouched()"
1076
+ >
1077
+ @if (placeholder()) {
1078
+ <option value="" disabled [selected]="!value()">
1079
+ {{ placeholder() }}
1080
+ </option>
1081
+ }
1082
+ @for (opt of options(); track opt.value) {
1083
+ <option [value]="opt.value" [selected]="opt.value === value()">
1084
+ {{ opt.label }}
1085
+ </option>
1086
+ }
1087
+ </select>
1088
+ <svg class="chevron" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
1089
+ <path d="m6 9 6 6 6-6" />
1090
+ </svg>
1091
+ </div>
1092
+ `,
1093
+ isInline: true,
1094
+ styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.wrap{position:relative}.field{width:100%;box-sizing:border-box;height:var(--zur-control-height-lg);padding:0 var(--zur-space-xxl) 0 var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-ink);background:var(--zur-canvas);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);appearance:none;cursor:pointer;transition:border-color .12s ease}.field:focus{outline:none;border:2px solid var(--zur-ink)}.field:disabled{background:var(--zur-surface-soft);color:var(--zur-muted);cursor:not-allowed}.chevron{position:absolute;right:var(--zur-space-md);top:50%;transform:translateY(-50%);pointer-events:none;color:var(--zur-muted)}\n"],
1095
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1096
+ });
1097
+ };
1098
+ i0.ɵɵngDeclareClassMetadata({
1099
+ minVersion: "12.0.0",
1100
+ version: "22.2.6",
1101
+ ngImport: i0,
1102
+ type: ZurSelect,
1103
+ decorators: [{
1104
+ type: Component,
1105
+ args: [{
1106
+ selector: "zur-select",
1107
+ changeDetection: ChangeDetectionStrategy.OnPush,
1108
+ providers: [{
1109
+ provide: NG_VALUE_ACCESSOR,
1110
+ useExisting: forwardRef(() => ZurSelect),
1111
+ multi: true
1112
+ }],
1113
+ template: `
1114
+ @if (label()) {
1115
+ <label class="label" [for]="id">{{ label() }}</label>
1116
+ }
1117
+ <div class="wrap">
1118
+ <select
1119
+ [id]="id"
1120
+ class="field"
1121
+ [disabled]="isDisabled()"
1122
+ (change)="onSelect($event)"
1123
+ (blur)="onTouched()"
1124
+ >
1125
+ @if (placeholder()) {
1126
+ <option value="" disabled [selected]="!value()">
1127
+ {{ placeholder() }}
1128
+ </option>
1129
+ }
1130
+ @for (opt of options(); track opt.value) {
1131
+ <option [value]="opt.value" [selected]="opt.value === value()">
1132
+ {{ opt.label }}
1133
+ </option>
1134
+ }
1135
+ </select>
1136
+ <svg class="chevron" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
1137
+ <path d="m6 9 6 6 6-6" />
1138
+ </svg>
1139
+ </div>
1140
+ `,
1141
+ styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.wrap{position:relative}.field{width:100%;box-sizing:border-box;height:var(--zur-control-height-lg);padding:0 var(--zur-space-xxl) 0 var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-ink);background:var(--zur-canvas);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);appearance:none;cursor:pointer;transition:border-color .12s ease}.field:focus{outline:none;border:2px solid var(--zur-ink)}.field:disabled{background:var(--zur-surface-soft);color:var(--zur-muted);cursor:not-allowed}.chevron{position:absolute;right:var(--zur-space-md);top:50%;transform:translateY(-50%);pointer-events:none;color:var(--zur-muted)}\n"]
1142
+ }]
1143
+ }],
1144
+ propDecorators: {
1145
+ label: [{
1146
+ type: i0.Input,
1147
+ args: [{
1148
+ isSignal: true,
1149
+ alias: "label",
1150
+ required: false
1151
+ }]
1152
+ }],
1153
+ placeholder: [{
1154
+ type: i0.Input,
1155
+ args: [{
1156
+ isSignal: true,
1157
+ alias: "placeholder",
1158
+ required: false
1159
+ }]
1160
+ }],
1161
+ options: [{
1162
+ type: i0.Input,
1163
+ args: [{
1164
+ isSignal: true,
1165
+ alias: "options",
1166
+ required: false
1167
+ }]
1168
+ }],
1169
+ disabled: [{
1170
+ type: i0.Input,
1171
+ args: [{
1172
+ isSignal: true,
1173
+ alias: "disabled",
1174
+ required: false
1175
+ }]
1176
+ }]
1177
+ }
1178
+ });
1179
+ let nextId$2 = 0;
1180
+ var ZurCheckbox = class ZurCheckbox {
1181
+ disabled = input(false, {
1182
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1183
+ transform: booleanAttribute
1184
+ });
1185
+ id = `zur-checkbox-${nextId$2++}`;
1186
+ checked = signal(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
1187
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
1188
+ onChange = () => {};
1189
+ onTouched = () => {};
1190
+ isDisabled() {
1191
+ return this.disabled() || this.cvaDisabled();
1192
+ }
1193
+ onToggle(event) {
1194
+ const next = event.target.checked;
1195
+ this.checked.set(next);
1196
+ this.onChange(next);
1197
+ }
1198
+ writeValue(value) {
1199
+ this.checked.set(!!value);
1200
+ }
1201
+ registerOnChange(fn) {
1202
+ this.onChange = fn;
1203
+ }
1204
+ registerOnTouched(fn) {
1205
+ this.onTouched = fn;
1206
+ }
1207
+ setDisabledState(isDisabled) {
1208
+ this.cvaDisabled.set(isDisabled);
1209
+ }
1210
+ static ɵfac = i0.ɵɵngDeclareFactory({
1211
+ minVersion: "12.0.0",
1212
+ version: "22.2.6",
1213
+ ngImport: i0,
1214
+ type: ZurCheckbox,
1215
+ deps: [],
1216
+ target: i0.ɵɵFactoryTarget.Component
1217
+ });
1218
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1219
+ minVersion: "17.1.0",
1220
+ version: "22.2.6",
1221
+ type: ZurCheckbox,
1222
+ isStandalone: true,
1223
+ selector: "zur-checkbox",
1224
+ inputs: { disabled: {
1225
+ classPropertyName: "disabled",
1226
+ publicName: "disabled",
1227
+ isSignal: true,
1228
+ isRequired: false,
1229
+ transformFunction: null
1230
+ } },
1231
+ providers: [{
1232
+ provide: NG_VALUE_ACCESSOR,
1233
+ useExisting: forwardRef(() => ZurCheckbox),
1234
+ multi: true
1235
+ }],
1236
+ ngImport: i0,
1237
+ template: `
1238
+ <label class="row" [class.disabled]="isDisabled()">
1239
+ <input
1240
+ type="checkbox"
1241
+ class="native"
1242
+ [id]="id"
1243
+ [checked]="checked()"
1244
+ [disabled]="isDisabled()"
1245
+ (change)="onToggle($event)"
1246
+ (blur)="onTouched()"
1247
+ />
1248
+ <span class="box" aria-hidden="true">
1249
+ <svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round">
1250
+ <path d="m5 13 4 4L19 7" />
1251
+ </svg>
1252
+ </span>
1253
+ <span class="text"><ng-content /></span>
1254
+ </label>
1255
+ `,
1256
+ isInline: true,
1257
+ styles: [".row{display:inline-flex;align-items:center;gap:var(--zur-space-sm);cursor:pointer;font:var(--zur-font-body);color:var(--zur-body)}.row.disabled{opacity:.45;cursor:not-allowed}.native{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:inherit}.box{width:20px;height:20px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--zur-hairline);border-radius:var(--zur-radius-xs);background:var(--zur-canvas);color:transparent;transition:background-color .12s ease,border-color .12s ease}.native:checked+.box{background:var(--zur-primary);border-color:var(--zur-primary);color:var(--zur-on-primary)}.native:focus-visible+.box{box-shadow:var(--zur-focus-ring)}\n"],
1258
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1259
+ });
1260
+ };
1261
+ i0.ɵɵngDeclareClassMetadata({
1262
+ minVersion: "12.0.0",
1263
+ version: "22.2.6",
1264
+ ngImport: i0,
1265
+ type: ZurCheckbox,
1266
+ decorators: [{
1267
+ type: Component,
1268
+ args: [{
1269
+ selector: "zur-checkbox",
1270
+ changeDetection: ChangeDetectionStrategy.OnPush,
1271
+ providers: [{
1272
+ provide: NG_VALUE_ACCESSOR,
1273
+ useExisting: forwardRef(() => ZurCheckbox),
1274
+ multi: true
1275
+ }],
1276
+ template: `
1277
+ <label class="row" [class.disabled]="isDisabled()">
1278
+ <input
1279
+ type="checkbox"
1280
+ class="native"
1281
+ [id]="id"
1282
+ [checked]="checked()"
1283
+ [disabled]="isDisabled()"
1284
+ (change)="onToggle($event)"
1285
+ (blur)="onTouched()"
1286
+ />
1287
+ <span class="box" aria-hidden="true">
1288
+ <svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round">
1289
+ <path d="m5 13 4 4L19 7" />
1290
+ </svg>
1291
+ </span>
1292
+ <span class="text"><ng-content /></span>
1293
+ </label>
1294
+ `,
1295
+ styles: [".row{display:inline-flex;align-items:center;gap:var(--zur-space-sm);cursor:pointer;font:var(--zur-font-body);color:var(--zur-body)}.row.disabled{opacity:.45;cursor:not-allowed}.native{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:inherit}.box{width:20px;height:20px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--zur-hairline);border-radius:var(--zur-radius-xs);background:var(--zur-canvas);color:transparent;transition:background-color .12s ease,border-color .12s ease}.native:checked+.box{background:var(--zur-primary);border-color:var(--zur-primary);color:var(--zur-on-primary)}.native:focus-visible+.box{box-shadow:var(--zur-focus-ring)}\n"]
1296
+ }]
1297
+ }],
1298
+ propDecorators: { disabled: [{
1299
+ type: i0.Input,
1300
+ args: [{
1301
+ isSignal: true,
1302
+ alias: "disabled",
1303
+ required: false
1304
+ }]
1305
+ }] }
1306
+ });
1307
+ let nextId$1 = 0;
1308
+ var ZurRadio = class ZurRadio {
1309
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1310
+ name = input("zur-radio-group", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
1311
+ disabled = input(false, {
1312
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1313
+ transform: booleanAttribute
1314
+ });
1315
+ id = `zur-radio-${nextId$1++}`;
1316
+ model = signal(null, ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
1317
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
1318
+ onChange = () => {};
1319
+ onTouched = () => {};
1320
+ checked() {
1321
+ return this.model() === this.value();
1322
+ }
1323
+ isDisabled() {
1324
+ return this.disabled() || this.cvaDisabled();
1325
+ }
1326
+ onSelect() {
1327
+ this.model.set(this.value());
1328
+ this.onChange(this.value());
1329
+ }
1330
+ writeValue(value) {
1331
+ this.model.set(value);
1332
+ }
1333
+ registerOnChange(fn) {
1334
+ this.onChange = fn;
1335
+ }
1336
+ registerOnTouched(fn) {
1337
+ this.onTouched = fn;
1338
+ }
1339
+ setDisabledState(isDisabled) {
1340
+ this.cvaDisabled.set(isDisabled);
1341
+ }
1342
+ static ɵfac = i0.ɵɵngDeclareFactory({
1343
+ minVersion: "12.0.0",
1344
+ version: "22.2.6",
1345
+ ngImport: i0,
1346
+ type: ZurRadio,
1347
+ deps: [],
1348
+ target: i0.ɵɵFactoryTarget.Component
1349
+ });
1350
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1351
+ minVersion: "17.1.0",
1352
+ version: "22.2.6",
1353
+ type: ZurRadio,
1354
+ isStandalone: true,
1355
+ selector: "zur-radio",
1356
+ inputs: {
1357
+ value: {
1358
+ classPropertyName: "value",
1359
+ publicName: "value",
1360
+ isSignal: true,
1361
+ isRequired: true,
1362
+ transformFunction: null
1363
+ },
1364
+ name: {
1365
+ classPropertyName: "name",
1366
+ publicName: "name",
1367
+ isSignal: true,
1368
+ isRequired: false,
1369
+ transformFunction: null
1370
+ },
1371
+ disabled: {
1372
+ classPropertyName: "disabled",
1373
+ publicName: "disabled",
1374
+ isSignal: true,
1375
+ isRequired: false,
1376
+ transformFunction: null
1377
+ }
1378
+ },
1379
+ providers: [{
1380
+ provide: NG_VALUE_ACCESSOR,
1381
+ useExisting: forwardRef(() => ZurRadio),
1382
+ multi: true
1383
+ }],
1384
+ ngImport: i0,
1385
+ template: `
1386
+ <label class="row" [class.disabled]="isDisabled()">
1387
+ <input
1388
+ type="radio"
1389
+ class="native"
1390
+ [id]="id"
1391
+ [name]="name()"
1392
+ [checked]="checked()"
1393
+ [disabled]="isDisabled()"
1394
+ (change)="onSelect()"
1395
+ (blur)="onTouched()"
1396
+ />
1397
+ <span class="dot" aria-hidden="true"></span>
1398
+ <span class="text"><ng-content /></span>
1399
+ </label>
1400
+ `,
1401
+ isInline: true,
1402
+ styles: [".row{display:inline-flex;align-items:center;gap:var(--zur-space-sm);cursor:pointer;font:var(--zur-font-body);color:var(--zur-body)}.row.disabled{opacity:.45;cursor:not-allowed}.native{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:inherit}.dot{width:20px;height:20px;flex-shrink:0;border:2px solid var(--zur-hairline);border-radius:var(--zur-radius-full);background:var(--zur-canvas);position:relative;transition:border-color .12s ease;box-sizing:border-box}.dot:after{content:\"\";position:absolute;inset:3px;border-radius:var(--zur-radius-full);background:var(--zur-primary);transform:scale(0);transition:transform .14s ease}.native:checked+.dot{border-color:var(--zur-primary)}.native:checked+.dot:after{transform:scale(1)}.native:focus-visible+.dot{box-shadow:var(--zur-focus-ring)}\n"],
1403
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1404
+ });
1405
+ };
1406
+ i0.ɵɵngDeclareClassMetadata({
1407
+ minVersion: "12.0.0",
1408
+ version: "22.2.6",
1409
+ ngImport: i0,
1410
+ type: ZurRadio,
1411
+ decorators: [{
1412
+ type: Component,
1413
+ args: [{
1414
+ selector: "zur-radio",
1415
+ changeDetection: ChangeDetectionStrategy.OnPush,
1416
+ providers: [{
1417
+ provide: NG_VALUE_ACCESSOR,
1418
+ useExisting: forwardRef(() => ZurRadio),
1419
+ multi: true
1420
+ }],
1421
+ template: `
1422
+ <label class="row" [class.disabled]="isDisabled()">
1423
+ <input
1424
+ type="radio"
1425
+ class="native"
1426
+ [id]="id"
1427
+ [name]="name()"
1428
+ [checked]="checked()"
1429
+ [disabled]="isDisabled()"
1430
+ (change)="onSelect()"
1431
+ (blur)="onTouched()"
1432
+ />
1433
+ <span class="dot" aria-hidden="true"></span>
1434
+ <span class="text"><ng-content /></span>
1435
+ </label>
1436
+ `,
1437
+ styles: [".row{display:inline-flex;align-items:center;gap:var(--zur-space-sm);cursor:pointer;font:var(--zur-font-body);color:var(--zur-body)}.row.disabled{opacity:.45;cursor:not-allowed}.native{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:inherit}.dot{width:20px;height:20px;flex-shrink:0;border:2px solid var(--zur-hairline);border-radius:var(--zur-radius-full);background:var(--zur-canvas);position:relative;transition:border-color .12s ease;box-sizing:border-box}.dot:after{content:\"\";position:absolute;inset:3px;border-radius:var(--zur-radius-full);background:var(--zur-primary);transform:scale(0);transition:transform .14s ease}.native:checked+.dot{border-color:var(--zur-primary)}.native:checked+.dot:after{transform:scale(1)}.native:focus-visible+.dot{box-shadow:var(--zur-focus-ring)}\n"]
1438
+ }]
1439
+ }],
1440
+ propDecorators: {
1441
+ value: [{
1442
+ type: i0.Input,
1443
+ args: [{
1444
+ isSignal: true,
1445
+ alias: "value",
1446
+ required: true
1447
+ }]
1448
+ }],
1449
+ name: [{
1450
+ type: i0.Input,
1451
+ args: [{
1452
+ isSignal: true,
1453
+ alias: "name",
1454
+ required: false
1455
+ }]
1456
+ }],
1457
+ disabled: [{
1458
+ type: i0.Input,
1459
+ args: [{
1460
+ isSignal: true,
1461
+ alias: "disabled",
1462
+ required: false
1463
+ }]
1464
+ }]
1465
+ }
1466
+ });
1467
+ var ZurSwitch = class ZurSwitch {
1468
+ disabled = input(false, {
1469
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1470
+ transform: booleanAttribute
1471
+ });
1472
+ checked = signal(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
1473
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
1474
+ onChange = () => {};
1475
+ onTouched = () => {};
1476
+ isDisabled() {
1477
+ return this.disabled() || this.cvaDisabled();
1478
+ }
1479
+ toggle() {
1480
+ if (this.isDisabled()) return;
1481
+ const next = !this.checked();
1482
+ this.checked.set(next);
1483
+ this.onChange(next);
1484
+ }
1485
+ writeValue(value) {
1486
+ this.checked.set(!!value);
1487
+ }
1488
+ registerOnChange(fn) {
1489
+ this.onChange = fn;
1490
+ }
1491
+ registerOnTouched(fn) {
1492
+ this.onTouched = fn;
1493
+ }
1494
+ setDisabledState(isDisabled) {
1495
+ this.cvaDisabled.set(isDisabled);
1496
+ }
1497
+ static ɵfac = i0.ɵɵngDeclareFactory({
1498
+ minVersion: "12.0.0",
1499
+ version: "22.2.6",
1500
+ ngImport: i0,
1501
+ type: ZurSwitch,
1502
+ deps: [],
1503
+ target: i0.ɵɵFactoryTarget.Component
1504
+ });
1505
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1506
+ minVersion: "17.1.0",
1507
+ version: "22.2.6",
1508
+ type: ZurSwitch,
1509
+ isStandalone: true,
1510
+ selector: "zur-switch",
1511
+ inputs: { disabled: {
1512
+ classPropertyName: "disabled",
1513
+ publicName: "disabled",
1514
+ isSignal: true,
1515
+ isRequired: false,
1516
+ transformFunction: null
1517
+ } },
1518
+ providers: [{
1519
+ provide: NG_VALUE_ACCESSOR,
1520
+ useExisting: forwardRef(() => ZurSwitch),
1521
+ multi: true
1522
+ }],
1523
+ ngImport: i0,
1524
+ template: `
1525
+ <button
1526
+ type="button"
1527
+ role="switch"
1528
+ class="track"
1529
+ [attr.aria-checked]="checked()"
1530
+ [disabled]="isDisabled()"
1531
+ (click)="toggle()"
1532
+ (blur)="onTouched()"
1533
+ >
1534
+ <span class="thumb" aria-hidden="true"></span>
1535
+ </button>
1536
+ <span class="text" (click)="toggle()"><ng-content /></span>
1537
+ `,
1538
+ isInline: true,
1539
+ styles: [":host{display:inline-flex;align-items:center;gap:var(--zur-space-sm)}.track{width:44px;height:24px;flex-shrink:0;border:none;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong);position:relative;cursor:pointer;padding:0;transition:background-color .16s ease}.track[aria-checked=true]{background:var(--zur-primary)}.track:disabled{opacity:.45;cursor:not-allowed}.track:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:var(--zur-radius-full);background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .16s ease}.track[aria-checked=true] .thumb{transform:translate(20px)}.text{font:var(--zur-font-body);color:var(--zur-body);cursor:pointer}.text:empty{display:none}\n"],
1540
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1541
+ });
1542
+ };
1543
+ i0.ɵɵngDeclareClassMetadata({
1544
+ minVersion: "12.0.0",
1545
+ version: "22.2.6",
1546
+ ngImport: i0,
1547
+ type: ZurSwitch,
1548
+ decorators: [{
1549
+ type: Component,
1550
+ args: [{
1551
+ selector: "zur-switch",
1552
+ changeDetection: ChangeDetectionStrategy.OnPush,
1553
+ providers: [{
1554
+ provide: NG_VALUE_ACCESSOR,
1555
+ useExisting: forwardRef(() => ZurSwitch),
1556
+ multi: true
1557
+ }],
1558
+ template: `
1559
+ <button
1560
+ type="button"
1561
+ role="switch"
1562
+ class="track"
1563
+ [attr.aria-checked]="checked()"
1564
+ [disabled]="isDisabled()"
1565
+ (click)="toggle()"
1566
+ (blur)="onTouched()"
1567
+ >
1568
+ <span class="thumb" aria-hidden="true"></span>
1569
+ </button>
1570
+ <span class="text" (click)="toggle()"><ng-content /></span>
1571
+ `,
1572
+ styles: [":host{display:inline-flex;align-items:center;gap:var(--zur-space-sm)}.track{width:44px;height:24px;flex-shrink:0;border:none;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong);position:relative;cursor:pointer;padding:0;transition:background-color .16s ease}.track[aria-checked=true]{background:var(--zur-primary)}.track:disabled{opacity:.45;cursor:not-allowed}.track:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:var(--zur-radius-full);background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .16s ease}.track[aria-checked=true] .thumb{transform:translate(20px)}.text{font:var(--zur-font-body);color:var(--zur-body);cursor:pointer}.text:empty{display:none}\n"]
1573
+ }]
1574
+ }],
1575
+ propDecorators: { disabled: [{
1576
+ type: i0.Input,
1577
+ args: [{
1578
+ isSignal: true,
1579
+ alias: "disabled",
1580
+ required: false
1581
+ }]
1582
+ }] }
1583
+ });
1584
+ var ZurNavbar = class ZurNavbar {
1585
+ static ɵfac = i0.ɵɵngDeclareFactory({
1586
+ minVersion: "12.0.0",
1587
+ version: "22.2.6",
1588
+ ngImport: i0,
1589
+ type: ZurNavbar,
1590
+ deps: [],
1591
+ target: i0.ɵɵFactoryTarget.Component
1592
+ });
1593
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1594
+ minVersion: "14.0.0",
1595
+ version: "22.2.6",
1596
+ type: ZurNavbar,
1597
+ isStandalone: true,
1598
+ selector: "zur-navbar",
1599
+ ngImport: i0,
1600
+ template: `
1601
+ <div class="slot logo"><ng-content select="[zurNavbarLogo]" /></div>
1602
+ <nav class="slot links"><ng-content select="[zurNavbarLinks]" /></nav>
1603
+ <div class="slot actions"><ng-content select="[zurNavbarActions]" /></div>
1604
+ `,
1605
+ isInline: true,
1606
+ styles: [":host{display:flex;align-items:center;justify-content:space-between;gap:var(--zur-space-lg);height:80px;padding:0 var(--zur-space-xl);background:var(--zur-canvas);border-bottom:1px solid var(--zur-hairline-soft);transition:background-color .2s ease}.slot{display:flex;align-items:center;gap:var(--zur-space-md)}.links{gap:var(--zur-space-lg);font:var(--zur-font-body);font-weight:600;color:var(--zur-ink)}\n"],
1607
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1608
+ });
1609
+ };
1610
+ i0.ɵɵngDeclareClassMetadata({
1611
+ minVersion: "12.0.0",
1612
+ version: "22.2.6",
1613
+ ngImport: i0,
1614
+ type: ZurNavbar,
1615
+ decorators: [{
1616
+ type: Component,
1617
+ args: [{
1618
+ selector: "zur-navbar",
1619
+ changeDetection: ChangeDetectionStrategy.OnPush,
1620
+ template: `
1621
+ <div class="slot logo"><ng-content select="[zurNavbarLogo]" /></div>
1622
+ <nav class="slot links"><ng-content select="[zurNavbarLinks]" /></nav>
1623
+ <div class="slot actions"><ng-content select="[zurNavbarActions]" /></div>
1624
+ `,
1625
+ styles: [":host{display:flex;align-items:center;justify-content:space-between;gap:var(--zur-space-lg);height:80px;padding:0 var(--zur-space-xl);background:var(--zur-canvas);border-bottom:1px solid var(--zur-hairline-soft);transition:background-color .2s ease}.slot{display:flex;align-items:center;gap:var(--zur-space-md)}.links{gap:var(--zur-space-lg);font:var(--zur-font-body);font-weight:600;color:var(--zur-ink)}\n"]
1626
+ }]
1627
+ }]
1628
+ });
1629
+ var ZurTab = class ZurTab {
1630
+ label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
1631
+ active = signal(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
1632
+ static ɵfac = i0.ɵɵngDeclareFactory({
1633
+ minVersion: "12.0.0",
1634
+ version: "22.2.6",
1635
+ ngImport: i0,
1636
+ type: ZurTab,
1637
+ deps: [],
1638
+ target: i0.ɵɵFactoryTarget.Component
1639
+ });
1640
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1641
+ minVersion: "17.0.0",
1642
+ version: "22.2.6",
1643
+ type: ZurTab,
1644
+ isStandalone: true,
1645
+ selector: "zur-tab",
1646
+ inputs: { label: {
1647
+ classPropertyName: "label",
1648
+ publicName: "label",
1649
+ isSignal: true,
1650
+ isRequired: true,
1651
+ transformFunction: null
1652
+ } },
1653
+ ngImport: i0,
1654
+ template: `
1655
+ @if (active()) {
1656
+ <div class="pane" role="tabpanel"><ng-content /></div>
1657
+ }
1658
+ `,
1659
+ isInline: true,
1660
+ styles: [".pane{padding-top:var(--zur-space-lg);font:var(--zur-font-body);color:var(--zur-body)}\n"],
1661
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1662
+ });
1663
+ };
1664
+ i0.ɵɵngDeclareClassMetadata({
1665
+ minVersion: "12.0.0",
1666
+ version: "22.2.6",
1667
+ ngImport: i0,
1668
+ type: ZurTab,
1669
+ decorators: [{
1670
+ type: Component,
1671
+ args: [{
1672
+ selector: "zur-tab",
1673
+ changeDetection: ChangeDetectionStrategy.OnPush,
1674
+ template: `
1675
+ @if (active()) {
1676
+ <div class="pane" role="tabpanel"><ng-content /></div>
1677
+ }
1678
+ `,
1679
+ styles: [".pane{padding-top:var(--zur-space-lg);font:var(--zur-font-body);color:var(--zur-body)}\n"]
1680
+ }]
1681
+ }],
1682
+ propDecorators: { label: [{
1683
+ type: i0.Input,
1684
+ args: [{
1685
+ isSignal: true,
1686
+ alias: "label",
1687
+ required: true
1688
+ }]
1689
+ }] }
1690
+ });
1691
+ var ZurTabs = class ZurTabs {
1692
+ index = model(0, ...ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []);
1693
+ tabs = contentChildren(ZurTab, ...ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []);
1694
+ constructor() {
1695
+ effect(() => {
1696
+ const current = this.index();
1697
+ this.tabs().forEach((tab, i) => tab.active.set(i === current));
1698
+ });
1699
+ }
1700
+ static ɵfac = i0.ɵɵngDeclareFactory({
1701
+ minVersion: "12.0.0",
1702
+ version: "22.2.6",
1703
+ ngImport: i0,
1704
+ type: ZurTabs,
1705
+ deps: [],
1706
+ target: i0.ɵɵFactoryTarget.Component
1707
+ });
1708
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1709
+ minVersion: "17.0.0",
1710
+ version: "22.2.6",
1711
+ type: ZurTabs,
1712
+ isStandalone: true,
1713
+ selector: "zur-tabs",
1714
+ inputs: { index: {
1715
+ classPropertyName: "index",
1716
+ publicName: "index",
1717
+ isSignal: true,
1718
+ isRequired: false,
1719
+ transformFunction: null
1720
+ } },
1721
+ outputs: { index: "indexChange" },
1722
+ queries: [{
1723
+ propertyName: "tabs",
1724
+ predicate: ZurTab,
1725
+ isSignal: true
1726
+ }],
1727
+ ngImport: i0,
1728
+ template: `
1729
+ <div class="bar" role="tablist">
1730
+ @for (tab of tabs(); track $index) {
1731
+ <button
1732
+ type="button"
1733
+ class="tab"
1734
+ role="tab"
1735
+ [class.active]="$index === index()"
1736
+ [attr.aria-selected]="$index === index()"
1737
+ (click)="index.set($index)"
1738
+ >
1739
+ {{ tab.label() }}
1740
+ </button>
1741
+ }
1742
+ </div>
1743
+ <ng-content />
1744
+ `,
1745
+ isInline: true,
1746
+ styles: [":host{display:block}.bar{display:flex;gap:var(--zur-space-lg);border-bottom:1px solid var(--zur-hairline)}.tab{background:none;border:none;padding:var(--zur-space-sm) var(--zur-space-xxs);font:var(--zur-font-body);font-weight:600;color:var(--zur-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s ease,border-color .12s ease}.tab:hover{color:var(--zur-ink)}.tab.active{color:var(--zur-ink);border-bottom-color:var(--zur-ink)}.tab:focus-visible{outline:none;box-shadow:var(--zur-focus-ring);border-radius:var(--zur-radius-xs)}\n"],
1747
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1748
+ });
1749
+ };
1750
+ i0.ɵɵngDeclareClassMetadata({
1751
+ minVersion: "12.0.0",
1752
+ version: "22.2.6",
1753
+ ngImport: i0,
1754
+ type: ZurTabs,
1755
+ decorators: [{
1756
+ type: Component,
1757
+ args: [{
1758
+ selector: "zur-tabs",
1759
+ changeDetection: ChangeDetectionStrategy.OnPush,
1760
+ template: `
1761
+ <div class="bar" role="tablist">
1762
+ @for (tab of tabs(); track $index) {
1763
+ <button
1764
+ type="button"
1765
+ class="tab"
1766
+ role="tab"
1767
+ [class.active]="$index === index()"
1768
+ [attr.aria-selected]="$index === index()"
1769
+ (click)="index.set($index)"
1770
+ >
1771
+ {{ tab.label() }}
1772
+ </button>
1773
+ }
1774
+ </div>
1775
+ <ng-content />
1776
+ `,
1777
+ styles: [":host{display:block}.bar{display:flex;gap:var(--zur-space-lg);border-bottom:1px solid var(--zur-hairline)}.tab{background:none;border:none;padding:var(--zur-space-sm) var(--zur-space-xxs);font:var(--zur-font-body);font-weight:600;color:var(--zur-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s ease,border-color .12s ease}.tab:hover{color:var(--zur-ink)}.tab.active{color:var(--zur-ink);border-bottom-color:var(--zur-ink)}.tab:focus-visible{outline:none;box-shadow:var(--zur-focus-ring);border-radius:var(--zur-radius-xs)}\n"]
1778
+ }]
1779
+ }],
1780
+ ctorParameters: () => [],
1781
+ propDecorators: {
1782
+ index: [{
1783
+ type: i0.Input,
1784
+ args: [{
1785
+ isSignal: true,
1786
+ alias: "index",
1787
+ required: false
1788
+ }]
1789
+ }, {
1790
+ type: i0.Output,
1791
+ args: ["indexChange"]
1792
+ }],
1793
+ tabs: [{
1794
+ type: i0.ContentChildren,
1795
+ args: [i0.forwardRef(() => ZurTab), { isSignal: true }]
1796
+ }]
1797
+ }
1798
+ });
1799
+ var ZurMenuItem = class ZurMenuItem {
1800
+ selected = output();
1801
+ static ɵfac = i0.ɵɵngDeclareFactory({
1802
+ minVersion: "12.0.0",
1803
+ version: "22.2.6",
1804
+ ngImport: i0,
1805
+ type: ZurMenuItem,
1806
+ deps: [],
1807
+ target: i0.ɵɵFactoryTarget.Component
1808
+ });
1809
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1810
+ minVersion: "14.0.0",
1811
+ version: "22.2.6",
1812
+ type: ZurMenuItem,
1813
+ isStandalone: true,
1814
+ selector: "zur-menu-item",
1815
+ outputs: { selected: "selected" },
1816
+ ngImport: i0,
1817
+ template: `
1818
+ <button type="button" class="item" role="menuitem" (click)="selected.emit()">
1819
+ <ng-content />
1820
+ </button>
1821
+ `,
1822
+ isInline: true,
1823
+ styles: [".item{display:flex;align-items:center;gap:var(--zur-space-sm);width:100%;height:40px;padding:0 var(--zur-space-md);background:none;border:none;border-radius:var(--zur-radius-sm);font:var(--zur-font-body);font-size:15px;color:var(--zur-ink);cursor:pointer;text-align:left;transition:background-color .1s ease}.item:hover{background:var(--zur-surface-soft)}.item:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}\n"],
1824
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1825
+ });
1826
+ };
1827
+ i0.ɵɵngDeclareClassMetadata({
1828
+ minVersion: "12.0.0",
1829
+ version: "22.2.6",
1830
+ ngImport: i0,
1831
+ type: ZurMenuItem,
1832
+ decorators: [{
1833
+ type: Component,
1834
+ args: [{
1835
+ selector: "zur-menu-item",
1836
+ changeDetection: ChangeDetectionStrategy.OnPush,
1837
+ template: `
1838
+ <button type="button" class="item" role="menuitem" (click)="selected.emit()">
1839
+ <ng-content />
1840
+ </button>
1841
+ `,
1842
+ styles: [".item{display:flex;align-items:center;gap:var(--zur-space-sm);width:100%;height:40px;padding:0 var(--zur-space-md);background:none;border:none;border-radius:var(--zur-radius-sm);font:var(--zur-font-body);font-size:15px;color:var(--zur-ink);cursor:pointer;text-align:left;transition:background-color .1s ease}.item:hover{background:var(--zur-surface-soft)}.item:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}\n"]
1843
+ }]
1844
+ }],
1845
+ propDecorators: { selected: [{
1846
+ type: i0.Output,
1847
+ args: ["selected"]
1848
+ }] }
1849
+ });
1850
+ var ZurMenu = class ZurMenu {
1851
+ host = inject(ElementRef);
1852
+ open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
1853
+ toggle() {
1854
+ this.open.update((open) => !open);
1855
+ }
1856
+ close() {
1857
+ this.open.set(false);
1858
+ }
1859
+ onDocumentClick(event) {
1860
+ if (!this.host.nativeElement.contains(event.target)) this.close();
1861
+ }
1862
+ static ɵfac = i0.ɵɵngDeclareFactory({
1863
+ minVersion: "12.0.0",
1864
+ version: "22.2.6",
1865
+ ngImport: i0,
1866
+ type: ZurMenu,
1867
+ deps: [],
1868
+ target: i0.ɵɵFactoryTarget.Component
1869
+ });
1870
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1871
+ minVersion: "17.0.0",
1872
+ version: "22.2.6",
1873
+ type: ZurMenu,
1874
+ isStandalone: true,
1875
+ selector: "zur-menu",
1876
+ host: { listeners: {
1877
+ "document:click": "onDocumentClick($event)",
1878
+ "document:keydown.escape": "close()"
1879
+ } },
1880
+ ngImport: i0,
1881
+ template: `
1882
+ <div class="trigger" (click)="toggle()">
1883
+ <ng-content select="[zurMenuTrigger]" />
1884
+ </div>
1885
+ @if (open()) {
1886
+ <div class="panel" role="menu">
1887
+ <ng-content />
1888
+ </div>
1889
+ }
1890
+ `,
1891
+ isInline: true,
1892
+ styles: [":host{position:relative;display:inline-block}.trigger{display:inline-flex}.panel{position:absolute;top:calc(100% + var(--zur-space-xs));right:0;min-width:200px;background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);padding:var(--zur-space-xs);display:flex;flex-direction:column;gap:2px;z-index:50}\n"],
1893
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1894
+ });
1895
+ };
1896
+ i0.ɵɵngDeclareClassMetadata({
1897
+ minVersion: "12.0.0",
1898
+ version: "22.2.6",
1899
+ ngImport: i0,
1900
+ type: ZurMenu,
1901
+ decorators: [{
1902
+ type: Component,
1903
+ args: [{
1904
+ selector: "zur-menu",
1905
+ changeDetection: ChangeDetectionStrategy.OnPush,
1906
+ host: {
1907
+ "(document:click)": "onDocumentClick($event)",
1908
+ "(document:keydown.escape)": "close()"
1909
+ },
1910
+ template: `
1911
+ <div class="trigger" (click)="toggle()">
1912
+ <ng-content select="[zurMenuTrigger]" />
1913
+ </div>
1914
+ @if (open()) {
1915
+ <div class="panel" role="menu">
1916
+ <ng-content />
1917
+ </div>
1918
+ }
1919
+ `,
1920
+ styles: [":host{position:relative;display:inline-block}.trigger{display:inline-flex}.panel{position:absolute;top:calc(100% + var(--zur-space-xs));right:0;min-width:200px;background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);padding:var(--zur-space-xs);display:flex;flex-direction:column;gap:2px;z-index:50}\n"]
1921
+ }]
1922
+ }]
1923
+ });
1924
+ var ZurBreadcrumb = class ZurBreadcrumb {
1925
+ items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
1926
+ static ɵfac = i0.ɵɵngDeclareFactory({
1927
+ minVersion: "12.0.0",
1928
+ version: "22.2.6",
1929
+ ngImport: i0,
1930
+ type: ZurBreadcrumb,
1931
+ deps: [],
1932
+ target: i0.ɵɵFactoryTarget.Component
1933
+ });
1934
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1935
+ minVersion: "17.0.0",
1936
+ version: "22.2.6",
1937
+ type: ZurBreadcrumb,
1938
+ isStandalone: true,
1939
+ selector: "zur-breadcrumb",
1940
+ inputs: { items: {
1941
+ classPropertyName: "items",
1942
+ publicName: "items",
1943
+ isSignal: true,
1944
+ isRequired: false,
1945
+ transformFunction: null
1946
+ } },
1947
+ ngImport: i0,
1948
+ template: `
1949
+ <nav aria-label="breadcrumb">
1950
+ <ol class="list">
1951
+ @for (item of items(); track item.label; let last = $last) {
1952
+ <li class="item">
1953
+ @if (item.href && !last) {
1954
+ <a [href]="item.href" class="link">{{ item.label }}</a>
1955
+ } @else {
1956
+ <span class="current" [attr.aria-current]="last ? 'page' : null">
1957
+ {{ item.label }}
1958
+ </span>
1959
+ }
1960
+ @if (!last) {
1961
+ <span class="sep" aria-hidden="true">/</span>
1962
+ }
1963
+ </li>
1964
+ }
1965
+ </ol>
1966
+ </nav>
1967
+ `,
1968
+ isInline: true,
1969
+ styles: [".list{display:flex;align-items:center;gap:var(--zur-space-xs);list-style:none;margin:0;padding:0;font:var(--zur-font-caption)}.item{display:inline-flex;align-items:center;gap:var(--zur-space-xs)}.link{color:var(--zur-muted);text-decoration:none}.link:hover{color:var(--zur-ink);text-decoration:underline}.current{color:var(--zur-ink);font-weight:600}.sep{color:var(--zur-muted)}\n"],
1970
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1971
+ });
1972
+ };
1973
+ i0.ɵɵngDeclareClassMetadata({
1974
+ minVersion: "12.0.0",
1975
+ version: "22.2.6",
1976
+ ngImport: i0,
1977
+ type: ZurBreadcrumb,
1978
+ decorators: [{
1979
+ type: Component,
1980
+ args: [{
1981
+ selector: "zur-breadcrumb",
1982
+ changeDetection: ChangeDetectionStrategy.OnPush,
1983
+ template: `
1984
+ <nav aria-label="breadcrumb">
1985
+ <ol class="list">
1986
+ @for (item of items(); track item.label; let last = $last) {
1987
+ <li class="item">
1988
+ @if (item.href && !last) {
1989
+ <a [href]="item.href" class="link">{{ item.label }}</a>
1990
+ } @else {
1991
+ <span class="current" [attr.aria-current]="last ? 'page' : null">
1992
+ {{ item.label }}
1993
+ </span>
1994
+ }
1995
+ @if (!last) {
1996
+ <span class="sep" aria-hidden="true">/</span>
1997
+ }
1998
+ </li>
1999
+ }
2000
+ </ol>
2001
+ </nav>
2002
+ `,
2003
+ styles: [".list{display:flex;align-items:center;gap:var(--zur-space-xs);list-style:none;margin:0;padding:0;font:var(--zur-font-caption)}.item{display:inline-flex;align-items:center;gap:var(--zur-space-xs)}.link{color:var(--zur-muted);text-decoration:none}.link:hover{color:var(--zur-ink);text-decoration:underline}.current{color:var(--zur-ink);font-weight:600}.sep{color:var(--zur-muted)}\n"]
2004
+ }]
2005
+ }],
2006
+ propDecorators: { items: [{
2007
+ type: i0.Input,
2008
+ args: [{
2009
+ isSignal: true,
2010
+ alias: "items",
2011
+ required: false
2012
+ }]
2013
+ }] }
2014
+ });
2015
+ var ZurSidenav = class ZurSidenav {
2016
+ static ɵfac = i0.ɵɵngDeclareFactory({
2017
+ minVersion: "12.0.0",
2018
+ version: "22.2.6",
2019
+ ngImport: i0,
2020
+ type: ZurSidenav,
2021
+ deps: [],
2022
+ target: i0.ɵɵFactoryTarget.Component
2023
+ });
2024
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2025
+ minVersion: "14.0.0",
2026
+ version: "22.2.6",
2027
+ type: ZurSidenav,
2028
+ isStandalone: true,
2029
+ selector: "zur-sidenav",
2030
+ host: { attributes: { "role": "navigation" } },
2031
+ ngImport: i0,
2032
+ template: `<ng-content />`,
2033
+ isInline: true,
2034
+ styles: [":host{display:flex;flex-direction:column;gap:var(--zur-space-xxs)}\n"],
2035
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2036
+ });
2037
+ };
2038
+ i0.ɵɵngDeclareClassMetadata({
2039
+ minVersion: "12.0.0",
2040
+ version: "22.2.6",
2041
+ ngImport: i0,
2042
+ type: ZurSidenav,
2043
+ decorators: [{
2044
+ type: Component,
2045
+ args: [{
2046
+ selector: "zur-sidenav",
2047
+ changeDetection: ChangeDetectionStrategy.OnPush,
2048
+ host: { role: "navigation" },
2049
+ template: `<ng-content />`,
2050
+ styles: [":host{display:flex;flex-direction:column;gap:var(--zur-space-xxs)}\n"]
2051
+ }]
2052
+ }]
2053
+ });
2054
+ var ZurSidenavItem = class ZurSidenavItem {
2055
+ shell = inject(ZurShellState, { optional: true });
2056
+ level = input("primary", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
2057
+ active = input(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
2058
+ collapsed = computed(() => !!this.shell && this.shell.collapsed() && this.shell.viewport() !== "mobile", ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2059
+ static ɵfac = i0.ɵɵngDeclareFactory({
2060
+ minVersion: "12.0.0",
2061
+ version: "22.2.6",
2062
+ ngImport: i0,
2063
+ type: ZurSidenavItem,
2064
+ deps: [],
2065
+ target: i0.ɵɵFactoryTarget.Component
2066
+ });
2067
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2068
+ minVersion: "17.1.0",
2069
+ version: "22.2.6",
2070
+ type: ZurSidenavItem,
2071
+ isStandalone: true,
2072
+ selector: "a[zur-sidenav-item], button[zur-sidenav-item]",
2073
+ inputs: {
2074
+ level: {
2075
+ classPropertyName: "level",
2076
+ publicName: "level",
2077
+ isSignal: true,
2078
+ isRequired: false,
2079
+ transformFunction: null
2080
+ },
2081
+ active: {
2082
+ classPropertyName: "active",
2083
+ publicName: "active",
2084
+ isSignal: true,
2085
+ isRequired: false,
2086
+ transformFunction: null
2087
+ }
2088
+ },
2089
+ host: { properties: {
2090
+ "attr.data-level": "level()",
2091
+ "attr.data-collapsed": "collapsed()",
2092
+ "attr.aria-current": "active() ? \"page\" : null",
2093
+ "class.active": "active()"
2094
+ } },
2095
+ ngImport: i0,
2096
+ template: `
2097
+ <span class="icon"><ng-content select="[zurSidenavIcon]" /></span>
2098
+ <span class="text"><ng-content /></span>
2099
+ `,
2100
+ isInline: true,
2101
+ styles: [":host{display:flex;align-items:center;gap:var(--zur-space-sm);box-sizing:border-box;width:100%;padding:var(--zur-space-xs) var(--zur-space-sm);border:0;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-body);font:var(--zur-font-body);font-size:15px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer;transition:background-color .12s ease,color .12s ease}:host([data-level=\"secondary\"]){padding:6px var(--zur-space-sm) 6px calc(var(--zur-space-sm) + 8px);color:var(--zur-muted);font-size:14px;font-weight:400}.icon{display:inline-flex;flex-shrink:0}.icon:empty{display:none}:host([data-collapsed=\"true\"]){justify-content:center;padding-inline:var(--zur-space-xs)}:host([data-collapsed=\"true\"]) .text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-collapsed=\"true\"][data-level=\"secondary\"]){display:none}:host(:hover){background:var(--zur-surface-strong);color:var(--zur-ink)}:host(:focus-visible){outline:none;box-shadow:var(--zur-focus-ring)}:host(.active),:host(.active:hover){background:var(--zur-primary);color:var(--zur-on-primary);font-weight:600}\n"],
2102
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2103
+ });
2104
+ };
2105
+ i0.ɵɵngDeclareClassMetadata({
2106
+ minVersion: "12.0.0",
2107
+ version: "22.2.6",
2108
+ ngImport: i0,
2109
+ type: ZurSidenavItem,
2110
+ decorators: [{
2111
+ type: Component,
2112
+ args: [{
2113
+ selector: "a[zur-sidenav-item], button[zur-sidenav-item]",
2114
+ changeDetection: ChangeDetectionStrategy.OnPush,
2115
+ template: `
2116
+ <span class="icon"><ng-content select="[zurSidenavIcon]" /></span>
2117
+ <span class="text"><ng-content /></span>
2118
+ `,
2119
+ host: {
2120
+ "[attr.data-level]": "level()",
2121
+ "[attr.data-collapsed]": "collapsed()",
2122
+ "[attr.aria-current]": "active() ? \"page\" : null",
2123
+ "[class.active]": "active()"
2124
+ },
2125
+ styles: [":host{display:flex;align-items:center;gap:var(--zur-space-sm);box-sizing:border-box;width:100%;padding:var(--zur-space-xs) var(--zur-space-sm);border:0;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-body);font:var(--zur-font-body);font-size:15px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer;transition:background-color .12s ease,color .12s ease}:host([data-level=\"secondary\"]){padding:6px var(--zur-space-sm) 6px calc(var(--zur-space-sm) + 8px);color:var(--zur-muted);font-size:14px;font-weight:400}.icon{display:inline-flex;flex-shrink:0}.icon:empty{display:none}:host([data-collapsed=\"true\"]){justify-content:center;padding-inline:var(--zur-space-xs)}:host([data-collapsed=\"true\"]) .text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-collapsed=\"true\"][data-level=\"secondary\"]){display:none}:host(:hover){background:var(--zur-surface-strong);color:var(--zur-ink)}:host(:focus-visible){outline:none;box-shadow:var(--zur-focus-ring)}:host(.active),:host(.active:hover){background:var(--zur-primary);color:var(--zur-on-primary);font-weight:600}\n"]
2126
+ }]
2127
+ }],
2128
+ propDecorators: {
2129
+ level: [{
2130
+ type: i0.Input,
2131
+ args: [{
2132
+ isSignal: true,
2133
+ alias: "level",
2134
+ required: false
2135
+ }]
2136
+ }],
2137
+ active: [{
2138
+ type: i0.Input,
2139
+ args: [{
2140
+ isSignal: true,
2141
+ alias: "active",
2142
+ required: false
2143
+ }]
2144
+ }]
2145
+ }
2146
+ });
2147
+ var ZurSidenavLabel = class ZurSidenavLabel {
2148
+ shell = inject(ZurShellState, { optional: true });
2149
+ collapsed = computed(() => !!this.shell && this.shell.collapsed() && this.shell.viewport() !== "mobile", ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2150
+ static ɵfac = i0.ɵɵngDeclareFactory({
2151
+ minVersion: "12.0.0",
2152
+ version: "22.2.6",
2153
+ ngImport: i0,
2154
+ type: ZurSidenavLabel,
2155
+ deps: [],
2156
+ target: i0.ɵɵFactoryTarget.Component
2157
+ });
2158
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2159
+ minVersion: "14.0.0",
2160
+ version: "22.2.6",
2161
+ type: ZurSidenavLabel,
2162
+ isStandalone: true,
2163
+ selector: "zur-sidenav-label",
2164
+ host: { properties: { "hidden": "collapsed()" } },
2165
+ ngImport: i0,
2166
+ template: `<ng-content />`,
2167
+ isInline: true,
2168
+ styles: [":host([hidden]){display:none}:host{display:block;margin:var(--zur-space-sm) 0 2px var(--zur-space-sm);font:var(--zur-font-caption);font-size:11px;color:var(--zur-muted);text-transform:uppercase;letter-spacing:.4px}:host(:first-child){margin-top:0}\n"],
2169
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2170
+ });
2171
+ };
2172
+ i0.ɵɵngDeclareClassMetadata({
2173
+ minVersion: "12.0.0",
2174
+ version: "22.2.6",
2175
+ ngImport: i0,
2176
+ type: ZurSidenavLabel,
2177
+ decorators: [{
2178
+ type: Component,
2179
+ args: [{
2180
+ selector: "zur-sidenav-label",
2181
+ changeDetection: ChangeDetectionStrategy.OnPush,
2182
+ host: { "[hidden]": "collapsed()" },
2183
+ template: `<ng-content />`,
2184
+ styles: [":host([hidden]){display:none}:host{display:block;margin:var(--zur-space-sm) 0 2px var(--zur-space-sm);font:var(--zur-font-caption);font-size:11px;color:var(--zur-muted);text-transform:uppercase;letter-spacing:.4px}:host(:first-child){margin-top:0}\n"]
2185
+ }]
2186
+ }]
2187
+ });
2188
+ var ZurStep = class ZurStep {
2189
+ number = input.required(...ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []);
2190
+ title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
2191
+ static ɵfac = i0.ɵɵngDeclareFactory({
2192
+ minVersion: "12.0.0",
2193
+ version: "22.2.6",
2194
+ ngImport: i0,
2195
+ type: ZurStep,
2196
+ deps: [],
2197
+ target: i0.ɵɵFactoryTarget.Component
2198
+ });
2199
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2200
+ minVersion: "17.1.0",
2201
+ version: "22.2.6",
2202
+ type: ZurStep,
2203
+ isStandalone: true,
2204
+ selector: "zur-step",
2205
+ inputs: {
2206
+ number: {
2207
+ classPropertyName: "number",
2208
+ publicName: "number",
2209
+ isSignal: true,
2210
+ isRequired: true,
2211
+ transformFunction: null
2212
+ },
2213
+ title: {
2214
+ classPropertyName: "title",
2215
+ publicName: "title",
2216
+ isSignal: true,
2217
+ isRequired: true,
2218
+ transformFunction: null
2219
+ }
2220
+ },
2221
+ ngImport: i0,
2222
+ template: `
2223
+ <h2 class="title">
2224
+ <span class="num" aria-hidden="true">{{ number() }}</span>
2225
+ {{ title() }}
2226
+ </h2>
2227
+ <ng-content />
2228
+ `,
2229
+ isInline: true,
2230
+ styles: [":host{display:block;margin-bottom:var(--zur-space-xxl)}.title{display:flex;align-items:center;gap:var(--zur-space-sm);margin:0 0 var(--zur-space-xs);font:var(--zur-font-headline);color:var(--zur-ink)}.num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:var(--zur-radius-full);background:var(--zur-primary);color:var(--zur-on-primary);font:var(--zur-font-badge)}\n"],
2231
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2232
+ });
2233
+ };
2234
+ i0.ɵɵngDeclareClassMetadata({
2235
+ minVersion: "12.0.0",
2236
+ version: "22.2.6",
2237
+ ngImport: i0,
2238
+ type: ZurStep,
2239
+ decorators: [{
2240
+ type: Component,
2241
+ args: [{
2242
+ selector: "zur-step",
2243
+ changeDetection: ChangeDetectionStrategy.OnPush,
2244
+ template: `
2245
+ <h2 class="title">
2246
+ <span class="num" aria-hidden="true">{{ number() }}</span>
2247
+ {{ title() }}
2248
+ </h2>
2249
+ <ng-content />
2250
+ `,
2251
+ styles: [":host{display:block;margin-bottom:var(--zur-space-xxl)}.title{display:flex;align-items:center;gap:var(--zur-space-sm);margin:0 0 var(--zur-space-xs);font:var(--zur-font-headline);color:var(--zur-ink)}.num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:var(--zur-radius-full);background:var(--zur-primary);color:var(--zur-on-primary);font:var(--zur-font-badge)}\n"]
2252
+ }]
2253
+ }],
2254
+ propDecorators: {
2255
+ number: [{
2256
+ type: i0.Input,
2257
+ args: [{
2258
+ isSignal: true,
2259
+ alias: "number",
2260
+ required: true
2261
+ }]
2262
+ }],
2263
+ title: [{
2264
+ type: i0.Input,
2265
+ args: [{
2266
+ isSignal: true,
2267
+ alias: "title",
2268
+ required: true
2269
+ }]
2270
+ }]
2271
+ }
2272
+ });
2273
+ const ZUR_LAYOUT_WIDTH_STYLES = `
2274
+ :host([data-width='fluid']) { --zur-layout-max: none; }
2275
+ :host([data-width='wide']) { --zur-layout-max: 1100px; }
2276
+ :host([data-width='reading']) { --zur-layout-max: 760px; }
2277
+ :host([data-width='narrow']) { --zur-layout-max: 440px; }
2278
+ `;
2279
+ var ZurSidebar = class ZurSidebar {
2280
+ shell = inject(ZurShellState);
2281
+ collapsed = computed(() => this.shell.collapsed() && this.shell.viewport() !== "mobile", ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2282
+ ngOnInit() {
2283
+ this.shell.hasSidebar.set(true);
2284
+ }
2285
+ static ɵfac = i0.ɵɵngDeclareFactory({
2286
+ minVersion: "12.0.0",
2287
+ version: "22.2.6",
2288
+ ngImport: i0,
2289
+ type: ZurSidebar,
2290
+ deps: [],
2291
+ target: i0.ɵɵFactoryTarget.Component
2292
+ });
2293
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2294
+ minVersion: "14.0.0",
2295
+ version: "22.2.6",
2296
+ type: ZurSidebar,
2297
+ isStandalone: true,
2298
+ selector: "zur-sidebar",
2299
+ host: {
2300
+ listeners: { "document:keydown.escape": "shell.closeDrawer()" },
2301
+ properties: {
2302
+ "attr.data-collapsed": "collapsed()",
2303
+ "attr.data-viewport": "shell.viewport()",
2304
+ "attr.data-open": "shell.drawerOpen()"
2305
+ }
2306
+ },
2307
+ ngImport: i0,
2308
+ template: `
2309
+ <div class="scrim" aria-hidden="true" (click)="shell.closeDrawer()"></div>
2310
+ <aside class="panel" aria-label="Navegação lateral">
2311
+ <div class="header"><ng-content select="[zurSidebarHeader]" /></div>
2312
+ <div class="body"><ng-content /></div>
2313
+ <div class="footer"><ng-content select="[zurSidebarFooter]" /></div>
2314
+ </aside>
2315
+ `,
2316
+ isInline: true,
2317
+ styles: [":host{--_w: 260px;display:block;flex-shrink:0;width:var(--_w);position:sticky;top:0;align-self:flex-start;height:100vh;transition:width .2s ease;z-index:20}:host([data-collapsed=\"true\"]){--_w: 72px}.scrim{display:none}.panel{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--zur-space-lg);width:100%;height:100%;padding:var(--zur-space-lg) var(--zur-space-md);background:var(--zur-surface-soft);border-right:1px solid var(--zur-hairline);overflow-x:hidden;overflow-y:auto}.header,.footer{display:flex;align-items:center;min-height:0}.header{min-height:40px;padding-inline:var(--zur-space-sm)}.header:empty,.footer:empty{display:none}.body{flex:1;display:flex;flex-direction:column;gap:var(--zur-space-lg)}:host([data-collapsed=\"true\"]) .header{justify-content:center;padding-inline:0;overflow:hidden}@media(max-width:767px){:host{--_w: min(300px, 86vw);position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;pointer-events:none;z-index:100}:host([data-collapsed=\"true\"]){--_w: min(300px, 86vw)}.scrim{display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080;opacity:0;transition:opacity .2s ease}.panel{position:absolute;top:0;left:0;height:100%;width:var(--_w);transform:translate(-100%);transition:transform .2s ease,box-shadow .2s ease}:host([data-open=\"true\"]){pointer-events:auto}:host([data-open=\"true\"]) .scrim{opacity:1}:host([data-open=\"true\"]) .panel{transform:translate(0);box-shadow:var(--zur-shadow-float)}}@media(prefers-reduced-motion:reduce){:host,.scrim,.panel{transition:none}}\n"],
2318
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2319
+ });
2320
+ };
2321
+ i0.ɵɵngDeclareClassMetadata({
2322
+ minVersion: "12.0.0",
2323
+ version: "22.2.6",
2324
+ ngImport: i0,
2325
+ type: ZurSidebar,
2326
+ decorators: [{
2327
+ type: Component,
2328
+ args: [{
2329
+ selector: "zur-sidebar",
2330
+ changeDetection: ChangeDetectionStrategy.OnPush,
2331
+ host: {
2332
+ "[attr.data-collapsed]": "collapsed()",
2333
+ "[attr.data-viewport]": "shell.viewport()",
2334
+ "[attr.data-open]": "shell.drawerOpen()",
2335
+ "(document:keydown.escape)": "shell.closeDrawer()"
2336
+ },
2337
+ template: `
2338
+ <div class="scrim" aria-hidden="true" (click)="shell.closeDrawer()"></div>
2339
+ <aside class="panel" aria-label="Navegação lateral">
2340
+ <div class="header"><ng-content select="[zurSidebarHeader]" /></div>
2341
+ <div class="body"><ng-content /></div>
2342
+ <div class="footer"><ng-content select="[zurSidebarFooter]" /></div>
2343
+ </aside>
2344
+ `,
2345
+ styles: [":host{--_w: 260px;display:block;flex-shrink:0;width:var(--_w);position:sticky;top:0;align-self:flex-start;height:100vh;transition:width .2s ease;z-index:20}:host([data-collapsed=\"true\"]){--_w: 72px}.scrim{display:none}.panel{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--zur-space-lg);width:100%;height:100%;padding:var(--zur-space-lg) var(--zur-space-md);background:var(--zur-surface-soft);border-right:1px solid var(--zur-hairline);overflow-x:hidden;overflow-y:auto}.header,.footer{display:flex;align-items:center;min-height:0}.header{min-height:40px;padding-inline:var(--zur-space-sm)}.header:empty,.footer:empty{display:none}.body{flex:1;display:flex;flex-direction:column;gap:var(--zur-space-lg)}:host([data-collapsed=\"true\"]) .header{justify-content:center;padding-inline:0;overflow:hidden}@media(max-width:767px){:host{--_w: min(300px, 86vw);position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;pointer-events:none;z-index:100}:host([data-collapsed=\"true\"]){--_w: min(300px, 86vw)}.scrim{display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080;opacity:0;transition:opacity .2s ease}.panel{position:absolute;top:0;left:0;height:100%;width:var(--_w);transform:translate(-100%);transition:transform .2s ease,box-shadow .2s ease}:host([data-open=\"true\"]){pointer-events:auto}:host([data-open=\"true\"]) .scrim{opacity:1}:host([data-open=\"true\"]) .panel{transform:translate(0);box-shadow:var(--zur-shadow-float)}}@media(prefers-reduced-motion:reduce){:host,.scrim,.panel{transition:none}}\n"]
2346
+ }]
2347
+ }]
2348
+ });
2349
+ var ZurTopbar = class ZurTopbar {
2350
+ doc = inject(DOCUMENT);
2351
+ shell = inject(ZurShellState, { optional: true });
2352
+ hideOnScroll = input(true, {
2353
+ ...ngDevMode ? { debugName: "hideOnScroll" } : /* istanbul ignore next */ {},
2354
+ transform: booleanAttribute
2355
+ });
2356
+ hidden = signal(false, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
2357
+ lastY = 0;
2358
+ expanded() {
2359
+ if (!this.shell) return false;
2360
+ return this.shell.viewport() === "mobile" ? this.shell.drawerOpen() : !this.shell.collapsed();
2361
+ }
2362
+ ngOnInit() {
2363
+ this.lastY = this.doc.defaultView?.scrollY ?? 0;
2364
+ }
2365
+ onScroll() {
2366
+ const y = this.doc.defaultView?.scrollY ?? 0;
2367
+ const delta = y - this.lastY;
2368
+ this.lastY = y;
2369
+ if (!this.hideOnScroll() || this.shell?.drawerOpen()) {
2370
+ this.hidden.set(false);
2371
+ return;
2372
+ }
2373
+ if (y < 80 || delta < -4) this.hidden.set(false);
2374
+ else if (delta > 4) this.hidden.set(true);
2375
+ }
2376
+ static ɵfac = i0.ɵɵngDeclareFactory({
2377
+ minVersion: "12.0.0",
2378
+ version: "22.2.6",
2379
+ ngImport: i0,
2380
+ type: ZurTopbar,
2381
+ deps: [],
2382
+ target: i0.ɵɵFactoryTarget.Component
2383
+ });
2384
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2385
+ minVersion: "17.0.0",
2386
+ version: "22.2.6",
2387
+ type: ZurTopbar,
2388
+ isStandalone: true,
2389
+ selector: "zur-topbar",
2390
+ inputs: { hideOnScroll: {
2391
+ classPropertyName: "hideOnScroll",
2392
+ publicName: "hideOnScroll",
2393
+ isSignal: true,
2394
+ isRequired: false,
2395
+ transformFunction: null
2396
+ } },
2397
+ host: {
2398
+ attributes: { "role": "banner" },
2399
+ listeners: { "window:scroll": "onScroll()" },
2400
+ properties: { "attr.data-hidden": "hidden()" }
2401
+ },
2402
+ ngImport: i0,
2403
+ template: `
2404
+ @if (shell?.hasSidebar()) {
2405
+ <button
2406
+ type="button"
2407
+ class="menu"
2408
+ aria-label="Alternar menu lateral"
2409
+ [attr.aria-expanded]="expanded()"
2410
+ (click)="shell?.toggle()"
2411
+ >
2412
+ <svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
2413
+ <path d="M4 7h16M4 12h16M4 17h16" />
2414
+ </svg>
2415
+ </button>
2416
+ }
2417
+ <div class="slot start"><ng-content select="[zurTopbarStart]" /></div>
2418
+ <nav class="slot links"><ng-content select="[zurTopbarLinks]" /></nav>
2419
+ <div class="slot actions"><ng-content select="[zurTopbarActions]" /></div>
2420
+ `,
2421
+ isInline: true,
2422
+ styles: [":host{position:sticky;top:0;z-index:30;box-sizing:border-box;display:flex;align-items:center;gap:var(--zur-space-md);height:64px;padding:0 var(--zur-space-lg);background:var(--zur-canvas);border-bottom:1px solid var(--zur-hairline-soft);transition:transform .2s ease,background-color .2s ease}:host([data-hidden=\"true\"]){transform:translateY(-100%)}.slot{display:flex;align-items:center;gap:var(--zur-space-md)}.start{font:var(--zur-font-title);color:var(--zur-ink)}.links{flex:1;gap:var(--zur-space-lg);font:var(--zur-font-body);font-weight:600;color:var(--zur-ink)}.actions{margin-left:auto}.menu{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);cursor:pointer;transition:background-color .12s ease}.menu:hover{background:var(--zur-surface-strong)}.menu:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}@media(max-width:767px){:host{padding:0 var(--zur-space-md)}.links{display:none}}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"],
2423
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2424
+ });
2425
+ };
2426
+ i0.ɵɵngDeclareClassMetadata({
2427
+ minVersion: "12.0.0",
2428
+ version: "22.2.6",
2429
+ ngImport: i0,
2430
+ type: ZurTopbar,
2431
+ decorators: [{
2432
+ type: Component,
2433
+ args: [{
2434
+ selector: "zur-topbar",
2435
+ changeDetection: ChangeDetectionStrategy.OnPush,
2436
+ host: {
2437
+ role: "banner",
2438
+ "[attr.data-hidden]": "hidden()",
2439
+ "(window:scroll)": "onScroll()"
2440
+ },
2441
+ template: `
2442
+ @if (shell?.hasSidebar()) {
2443
+ <button
2444
+ type="button"
2445
+ class="menu"
2446
+ aria-label="Alternar menu lateral"
2447
+ [attr.aria-expanded]="expanded()"
2448
+ (click)="shell?.toggle()"
2449
+ >
2450
+ <svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
2451
+ <path d="M4 7h16M4 12h16M4 17h16" />
2452
+ </svg>
2453
+ </button>
2454
+ }
2455
+ <div class="slot start"><ng-content select="[zurTopbarStart]" /></div>
2456
+ <nav class="slot links"><ng-content select="[zurTopbarLinks]" /></nav>
2457
+ <div class="slot actions"><ng-content select="[zurTopbarActions]" /></div>
2458
+ `,
2459
+ styles: [":host{position:sticky;top:0;z-index:30;box-sizing:border-box;display:flex;align-items:center;gap:var(--zur-space-md);height:64px;padding:0 var(--zur-space-lg);background:var(--zur-canvas);border-bottom:1px solid var(--zur-hairline-soft);transition:transform .2s ease,background-color .2s ease}:host([data-hidden=\"true\"]){transform:translateY(-100%)}.slot{display:flex;align-items:center;gap:var(--zur-space-md)}.start{font:var(--zur-font-title);color:var(--zur-ink)}.links{flex:1;gap:var(--zur-space-lg);font:var(--zur-font-body);font-weight:600;color:var(--zur-ink)}.actions{margin-left:auto}.menu{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);cursor:pointer;transition:background-color .12s ease}.menu:hover{background:var(--zur-surface-strong)}.menu:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}@media(max-width:767px){:host{padding:0 var(--zur-space-md)}.links{display:none}}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"]
2460
+ }]
2461
+ }],
2462
+ propDecorators: { hideOnScroll: [{
2463
+ type: i0.Input,
2464
+ args: [{
2465
+ isSignal: true,
2466
+ alias: "hideOnScroll",
2467
+ required: false
2468
+ }]
2469
+ }] }
2470
+ });
2471
+ var ZurPageHeader = class ZurPageHeader {
2472
+ title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
2473
+ description = input("", ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
2474
+ static ɵfac = i0.ɵɵngDeclareFactory({
2475
+ minVersion: "12.0.0",
2476
+ version: "22.2.6",
2477
+ ngImport: i0,
2478
+ type: ZurPageHeader,
2479
+ deps: [],
2480
+ target: i0.ɵɵFactoryTarget.Component
2481
+ });
2482
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2483
+ minVersion: "17.0.0",
2484
+ version: "22.2.6",
2485
+ type: ZurPageHeader,
2486
+ isStandalone: true,
2487
+ selector: "zur-page-header",
2488
+ inputs: {
2489
+ title: {
2490
+ classPropertyName: "title",
2491
+ publicName: "title",
2492
+ isSignal: true,
2493
+ isRequired: true,
2494
+ transformFunction: null
2495
+ },
2496
+ description: {
2497
+ classPropertyName: "description",
2498
+ publicName: "description",
2499
+ isSignal: true,
2500
+ isRequired: false,
2501
+ transformFunction: null
2502
+ }
2503
+ },
2504
+ ngImport: i0,
2505
+ template: `
2506
+ <ng-content select="zur-breadcrumb" />
2507
+ <div class="row">
2508
+ <div class="text">
2509
+ <h1 class="title">{{ title() }}</h1>
2510
+ @if (description()) {
2511
+ <p class="description">{{ description() }}</p>
2512
+ }
2513
+ </div>
2514
+ <div class="actions"><ng-content select="[zurPageHeaderActions]" /></div>
2515
+ </div>
2516
+ `,
2517
+ isInline: true,
2518
+ styles: [":host{display:flex;flex-direction:column;gap:var(--zur-space-sm);margin-bottom:var(--zur-space-xl)}.row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--zur-space-md)}.title{margin:0;font:var(--zur-font-display-md);color:var(--zur-ink)}.description{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-body-lg);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;gap:var(--zur-space-xs)}.actions:empty{display:none}@media(max-width:767px){.title{font:var(--zur-font-headline)}}\n"],
2519
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2520
+ });
2521
+ };
2522
+ i0.ɵɵngDeclareClassMetadata({
2523
+ minVersion: "12.0.0",
2524
+ version: "22.2.6",
2525
+ ngImport: i0,
2526
+ type: ZurPageHeader,
2527
+ decorators: [{
2528
+ type: Component,
2529
+ args: [{
2530
+ selector: "zur-page-header",
2531
+ changeDetection: ChangeDetectionStrategy.OnPush,
2532
+ template: `
2533
+ <ng-content select="zur-breadcrumb" />
2534
+ <div class="row">
2535
+ <div class="text">
2536
+ <h1 class="title">{{ title() }}</h1>
2537
+ @if (description()) {
2538
+ <p class="description">{{ description() }}</p>
2539
+ }
2540
+ </div>
2541
+ <div class="actions"><ng-content select="[zurPageHeaderActions]" /></div>
2542
+ </div>
2543
+ `,
2544
+ styles: [":host{display:flex;flex-direction:column;gap:var(--zur-space-sm);margin-bottom:var(--zur-space-xl)}.row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--zur-space-md)}.title{margin:0;font:var(--zur-font-display-md);color:var(--zur-ink)}.description{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-body-lg);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;gap:var(--zur-space-xs)}.actions:empty{display:none}@media(max-width:767px){.title{font:var(--zur-font-headline)}}\n"]
2545
+ }]
2546
+ }],
2547
+ propDecorators: {
2548
+ title: [{
2549
+ type: i0.Input,
2550
+ args: [{
2551
+ isSignal: true,
2552
+ alias: "title",
2553
+ required: true
2554
+ }]
2555
+ }],
2556
+ description: [{
2557
+ type: i0.Input,
2558
+ args: [{
2559
+ isSignal: true,
2560
+ alias: "description",
2561
+ required: false
2562
+ }]
2563
+ }]
2564
+ }
2565
+ });
2566
+ var ZurFooter = class ZurFooter {
2567
+ static ɵfac = i0.ɵɵngDeclareFactory({
2568
+ minVersion: "12.0.0",
2569
+ version: "22.2.6",
2570
+ ngImport: i0,
2571
+ type: ZurFooter,
2572
+ deps: [],
2573
+ target: i0.ɵɵFactoryTarget.Component
2574
+ });
2575
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2576
+ minVersion: "14.0.0",
2577
+ version: "22.2.6",
2578
+ type: ZurFooter,
2579
+ isStandalone: true,
2580
+ selector: "zur-footer",
2581
+ host: { attributes: { "role": "contentinfo" } },
2582
+ ngImport: i0,
2583
+ template: `
2584
+ <div class="left"><ng-content /></div>
2585
+ <nav class="links"><ng-content select="[zurFooterLinks]" /></nav>
2586
+ `,
2587
+ isInline: true,
2588
+ styles: [":host{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--zur-space-md);padding:var(--zur-space-xl) var(--zur-space-lg);border-top:1px solid var(--zur-hairline);background:var(--zur-surface-soft);color:var(--zur-muted);font:var(--zur-font-body-sm)}.links{display:flex;flex-wrap:wrap;gap:var(--zur-space-lg)}\n"],
2589
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2590
+ });
2591
+ };
2592
+ i0.ɵɵngDeclareClassMetadata({
2593
+ minVersion: "12.0.0",
2594
+ version: "22.2.6",
2595
+ ngImport: i0,
2596
+ type: ZurFooter,
2597
+ decorators: [{
2598
+ type: Component,
2599
+ args: [{
2600
+ selector: "zur-footer",
2601
+ changeDetection: ChangeDetectionStrategy.OnPush,
2602
+ host: { role: "contentinfo" },
2603
+ template: `
2604
+ <div class="left"><ng-content /></div>
2605
+ <nav class="links"><ng-content select="[zurFooterLinks]" /></nav>
2606
+ `,
2607
+ styles: [":host{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--zur-space-md);padding:var(--zur-space-xl) var(--zur-space-lg);border-top:1px solid var(--zur-hairline);background:var(--zur-surface-soft);color:var(--zur-muted);font:var(--zur-font-body-sm)}.links{display:flex;flex-wrap:wrap;gap:var(--zur-space-lg)}\n"]
2608
+ }]
2609
+ }]
2610
+ });
2611
+ var ZurLandingLayout = class ZurLandingLayout {
2612
+ width = input("wide", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
2613
+ static ɵfac = i0.ɵɵngDeclareFactory({
2614
+ minVersion: "12.0.0",
2615
+ version: "22.2.6",
2616
+ ngImport: i0,
2617
+ type: ZurLandingLayout,
2618
+ deps: [],
2619
+ target: i0.ɵɵFactoryTarget.Component
2620
+ });
2621
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2622
+ minVersion: "17.1.0",
2623
+ version: "22.2.6",
2624
+ type: ZurLandingLayout,
2625
+ isStandalone: true,
2626
+ selector: "zur-landing-layout",
2627
+ inputs: { width: {
2628
+ classPropertyName: "width",
2629
+ publicName: "width",
2630
+ isSignal: true,
2631
+ isRequired: false,
2632
+ transformFunction: null
2633
+ } },
2634
+ host: { properties: { "attr.data-width": "width()" } },
2635
+ ngImport: i0,
2636
+ template: `
2637
+ <ng-content select="zur-topbar" />
2638
+ <main class="main"><div class="container"><ng-content /></div></main>
2639
+ <ng-content select="zur-footer" />
2640
+ `,
2641
+ isInline: true,
2642
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-section) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-xxl) var(--zur-space-md)}}\n"],
2643
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2644
+ });
2645
+ };
2646
+ i0.ɵɵngDeclareClassMetadata({
2647
+ minVersion: "12.0.0",
2648
+ version: "22.2.6",
2649
+ ngImport: i0,
2650
+ type: ZurLandingLayout,
2651
+ decorators: [{
2652
+ type: Component,
2653
+ args: [{
2654
+ selector: "zur-landing-layout",
2655
+ changeDetection: ChangeDetectionStrategy.OnPush,
2656
+ host: { "[attr.data-width]": "width()" },
2657
+ template: `
2658
+ <ng-content select="zur-topbar" />
2659
+ <main class="main"><div class="container"><ng-content /></div></main>
2660
+ <ng-content select="zur-footer" />
2661
+ `,
2662
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-section) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-xxl) var(--zur-space-md)}}\n"]
2663
+ }]
2664
+ }],
2665
+ propDecorators: { width: [{
2666
+ type: i0.Input,
2667
+ args: [{
2668
+ isSignal: true,
2669
+ alias: "width",
2670
+ required: false
2671
+ }]
2672
+ }] }
2673
+ });
2674
+ var ZurDashboardLayout = class ZurDashboardLayout {
2675
+ width = input("fluid", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
2676
+ static ɵfac = i0.ɵɵngDeclareFactory({
2677
+ minVersion: "12.0.0",
2678
+ version: "22.2.6",
2679
+ ngImport: i0,
2680
+ type: ZurDashboardLayout,
2681
+ deps: [],
2682
+ target: i0.ɵɵFactoryTarget.Component
2683
+ });
2684
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2685
+ minVersion: "17.1.0",
2686
+ version: "22.2.6",
2687
+ type: ZurDashboardLayout,
2688
+ isStandalone: true,
2689
+ selector: "zur-dashboard-layout",
2690
+ inputs: { width: {
2691
+ classPropertyName: "width",
2692
+ publicName: "width",
2693
+ isSignal: true,
2694
+ isRequired: false,
2695
+ transformFunction: null
2696
+ } },
2697
+ host: { properties: { "attr.data-width": "width()" } },
2698
+ providers: [ZurShellState],
2699
+ ngImport: i0,
2700
+ template: `
2701
+ <ng-content select="zur-sidebar" />
2702
+ <div class="column">
2703
+ <ng-content select="zur-topbar" />
2704
+ <main class="main"><div class="container"><ng-content /></div></main>
2705
+ <ng-content select="zur-footer" />
2706
+ </div>
2707
+ `,
2708
+ isInline: true,
2709
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;min-height:100vh;background:var(--zur-canvas)}.column{flex:1;min-width:0;display:flex;flex-direction:column}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-xl) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-lg) var(--zur-space-md)}}\n"],
2710
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2711
+ });
2712
+ };
2713
+ i0.ɵɵngDeclareClassMetadata({
2714
+ minVersion: "12.0.0",
2715
+ version: "22.2.6",
2716
+ ngImport: i0,
2717
+ type: ZurDashboardLayout,
2718
+ decorators: [{
2719
+ type: Component,
2720
+ args: [{
2721
+ selector: "zur-dashboard-layout",
2722
+ changeDetection: ChangeDetectionStrategy.OnPush,
2723
+ providers: [ZurShellState],
2724
+ host: { "[attr.data-width]": "width()" },
2725
+ template: `
2726
+ <ng-content select="zur-sidebar" />
2727
+ <div class="column">
2728
+ <ng-content select="zur-topbar" />
2729
+ <main class="main"><div class="container"><ng-content /></div></main>
2730
+ <ng-content select="zur-footer" />
2731
+ </div>
2732
+ `,
2733
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;min-height:100vh;background:var(--zur-canvas)}.column{flex:1;min-width:0;display:flex;flex-direction:column}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-xl) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-lg) var(--zur-space-md)}}\n"]
2734
+ }]
2735
+ }],
2736
+ propDecorators: { width: [{
2737
+ type: i0.Input,
2738
+ args: [{
2739
+ isSignal: true,
2740
+ alias: "width",
2741
+ required: false
2742
+ }]
2743
+ }] }
2744
+ });
2745
+ var ZurListDetailLayout = class ZurListDetailLayout {
2746
+ detailOpen = model(false, ...ngDevMode ? [{ debugName: "detailOpen" }] : /* istanbul ignore next */ []);
2747
+ static ɵfac = i0.ɵɵngDeclareFactory({
2748
+ minVersion: "12.0.0",
2749
+ version: "22.2.6",
2750
+ ngImport: i0,
2751
+ type: ZurListDetailLayout,
2752
+ deps: [],
2753
+ target: i0.ɵɵFactoryTarget.Component
2754
+ });
2755
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2756
+ minVersion: "17.1.0",
2757
+ version: "22.2.6",
2758
+ type: ZurListDetailLayout,
2759
+ isStandalone: true,
2760
+ selector: "zur-list-detail-layout",
2761
+ inputs: { detailOpen: {
2762
+ classPropertyName: "detailOpen",
2763
+ publicName: "detailOpen",
2764
+ isSignal: true,
2765
+ isRequired: false,
2766
+ transformFunction: null
2767
+ } },
2768
+ outputs: { detailOpen: "detailOpenChange" },
2769
+ host: { properties: { "attr.data-detail-open": "detailOpen()" } },
2770
+ ngImport: i0,
2771
+ template: `
2772
+ <ng-content select="zur-topbar" />
2773
+ <div class="panes">
2774
+ <section class="list" aria-label="Lista"><ng-content select="[zurList]" /></section>
2775
+ <section class="detail" aria-label="Detalhe">
2776
+ <button type="button" class="back" (click)="detailOpen.set(false)">
2777
+ <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2778
+ <path d="m15 18-6-6 6-6" />
2779
+ </svg>
2780
+ Voltar
2781
+ </button>
2782
+ <div class="detail-body"><ng-content select="[zurDetail]" /></div>
2783
+ </section>
2784
+ </div>
2785
+ `,
2786
+ isInline: true,
2787
+ styles: [":host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.panes{flex:1;display:grid;grid-template-columns:360px minmax(0,1fr)}.list{position:sticky;top:64px;align-self:start;height:calc(100vh - 64px);overflow-y:auto;background:var(--zur-surface-soft);border-right:1px solid var(--zur-hairline)}.detail{min-width:0}.detail-body{box-sizing:border-box;padding:var(--zur-space-xl) var(--zur-space-lg)}.back{display:none;align-items:center;gap:var(--zur-space-xxs);margin:var(--zur-space-md) var(--zur-space-md) 0;padding:var(--zur-space-xs) var(--zur-space-sm);border:0;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);font:var(--zur-font-button);font-size:14px;cursor:pointer}.back:hover{background:var(--zur-surface-strong)}.back:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}@media(max-width:1023px){.panes{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:767px){.panes{grid-template-columns:minmax(0,1fr)}.list{position:static;height:auto;border-right:0}.detail{display:none}:host([data-detail-open=\"true\"]) .list{display:none}:host([data-detail-open=\"true\"]) .detail{display:block}.back{display:inline-flex}.detail-body{padding:var(--zur-space-lg) var(--zur-space-md)}}\n"],
2788
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2789
+ });
2790
+ };
2791
+ i0.ɵɵngDeclareClassMetadata({
2792
+ minVersion: "12.0.0",
2793
+ version: "22.2.6",
2794
+ ngImport: i0,
2795
+ type: ZurListDetailLayout,
2796
+ decorators: [{
2797
+ type: Component,
2798
+ args: [{
2799
+ selector: "zur-list-detail-layout",
2800
+ changeDetection: ChangeDetectionStrategy.OnPush,
2801
+ host: { "[attr.data-detail-open]": "detailOpen()" },
2802
+ template: `
2803
+ <ng-content select="zur-topbar" />
2804
+ <div class="panes">
2805
+ <section class="list" aria-label="Lista"><ng-content select="[zurList]" /></section>
2806
+ <section class="detail" aria-label="Detalhe">
2807
+ <button type="button" class="back" (click)="detailOpen.set(false)">
2808
+ <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2809
+ <path d="m15 18-6-6 6-6" />
2810
+ </svg>
2811
+ Voltar
2812
+ </button>
2813
+ <div class="detail-body"><ng-content select="[zurDetail]" /></div>
2814
+ </section>
2815
+ </div>
2816
+ `,
2817
+ styles: [":host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.panes{flex:1;display:grid;grid-template-columns:360px minmax(0,1fr)}.list{position:sticky;top:64px;align-self:start;height:calc(100vh - 64px);overflow-y:auto;background:var(--zur-surface-soft);border-right:1px solid var(--zur-hairline)}.detail{min-width:0}.detail-body{box-sizing:border-box;padding:var(--zur-space-xl) var(--zur-space-lg)}.back{display:none;align-items:center;gap:var(--zur-space-xxs);margin:var(--zur-space-md) var(--zur-space-md) 0;padding:var(--zur-space-xs) var(--zur-space-sm);border:0;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);font:var(--zur-font-button);font-size:14px;cursor:pointer}.back:hover{background:var(--zur-surface-strong)}.back:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}@media(max-width:1023px){.panes{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:767px){.panes{grid-template-columns:minmax(0,1fr)}.list{position:static;height:auto;border-right:0}.detail{display:none}:host([data-detail-open=\"true\"]) .list{display:none}:host([data-detail-open=\"true\"]) .detail{display:block}.back{display:inline-flex}.detail-body{padding:var(--zur-space-lg) var(--zur-space-md)}}\n"]
2818
+ }]
2819
+ }],
2820
+ propDecorators: { detailOpen: [{
2821
+ type: i0.Input,
2822
+ args: [{
2823
+ isSignal: true,
2824
+ alias: "detailOpen",
2825
+ required: false
2826
+ }]
2827
+ }, {
2828
+ type: i0.Output,
2829
+ args: ["detailOpenChange"]
2830
+ }] }
2831
+ });
2832
+ var ZurFormLayout = class ZurFormLayout {
2833
+ width = input("reading", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
2834
+ steps = input([], ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
2835
+ current = input(0, ...ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []);
2836
+ static ɵfac = i0.ɵɵngDeclareFactory({
2837
+ minVersion: "12.0.0",
2838
+ version: "22.2.6",
2839
+ ngImport: i0,
2840
+ type: ZurFormLayout,
2841
+ deps: [],
2842
+ target: i0.ɵɵFactoryTarget.Component
2843
+ });
2844
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2845
+ minVersion: "17.0.0",
2846
+ version: "22.2.6",
2847
+ type: ZurFormLayout,
2848
+ isStandalone: true,
2849
+ selector: "zur-form-layout",
2850
+ inputs: {
2851
+ width: {
2852
+ classPropertyName: "width",
2853
+ publicName: "width",
2854
+ isSignal: true,
2855
+ isRequired: false,
2856
+ transformFunction: null
2857
+ },
2858
+ steps: {
2859
+ classPropertyName: "steps",
2860
+ publicName: "steps",
2861
+ isSignal: true,
2862
+ isRequired: false,
2863
+ transformFunction: null
2864
+ },
2865
+ current: {
2866
+ classPropertyName: "current",
2867
+ publicName: "current",
2868
+ isSignal: true,
2869
+ isRequired: false,
2870
+ transformFunction: null
2871
+ }
2872
+ },
2873
+ host: { properties: { "attr.data-width": "width()" } },
2874
+ ngImport: i0,
2875
+ template: `
2876
+ <ng-content select="zur-topbar" />
2877
+ <main class="main">
2878
+ <div class="container">
2879
+ @if (steps().length) {
2880
+ <ol class="steps" aria-label="Etapas">
2881
+ @for (label of steps(); track label; let i = $index) {
2882
+ <li
2883
+ class="step"
2884
+ [attr.data-state]="i < current() ? 'done' : i === current() ? 'current' : 'todo'"
2885
+ [attr.aria-current]="i === current() ? 'step' : null"
2886
+ >
2887
+ <span class="num">{{ i + 1 }}</span>
2888
+ <span class="label">{{ label }}</span>
2889
+ </li>
2890
+ }
2891
+ </ol>
2892
+ }
2893
+ <ng-content />
2894
+ </div>
2895
+ </main>
2896
+ <div class="actions"><div class="actions-inner"><ng-content select="[zurLayoutActions]" /></div></div>
2897
+ `,
2898
+ isInline: true,
2899
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-xxl) var(--zur-space-lg)}.steps{display:flex;gap:var(--zur-space-md);margin:0 0 var(--zur-space-xl);padding:0;list-style:none}.step{flex:1;display:flex;align-items:center;gap:var(--zur-space-xs);padding-top:var(--zur-space-sm);border-top:3px solid var(--zur-hairline);color:var(--zur-muted);font:var(--zur-font-caption)}.step[data-state=done],.step[data-state=current]{border-top-color:var(--zur-primary);color:var(--zur-ink)}.num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border-radius:var(--zur-radius-full);border:1px solid var(--zur-hairline);font:var(--zur-font-badge)}.step[data-state=done] .num,.step[data-state=current] .num{background:var(--zur-primary);border-color:var(--zur-primary);color:var(--zur-on-primary)}.actions{position:sticky;bottom:0;z-index:10;background:var(--zur-canvas);border-top:1px solid var(--zur-hairline)}.actions:has(.actions-inner:empty){display:none}.actions-inner{box-sizing:border-box;display:flex;justify-content:flex-end;gap:var(--zur-space-sm);width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-md) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-lg) var(--zur-space-md)}.label{display:none}.step[data-state=current] .label{display:inline}.actions-inner{padding:var(--zur-space-sm) var(--zur-space-md)}}\n"],
2900
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2901
+ });
2902
+ };
2903
+ i0.ɵɵngDeclareClassMetadata({
2904
+ minVersion: "12.0.0",
2905
+ version: "22.2.6",
2906
+ ngImport: i0,
2907
+ type: ZurFormLayout,
2908
+ decorators: [{
2909
+ type: Component,
2910
+ args: [{
2911
+ selector: "zur-form-layout",
2912
+ changeDetection: ChangeDetectionStrategy.OnPush,
2913
+ host: { "[attr.data-width]": "width()" },
2914
+ template: `
2915
+ <ng-content select="zur-topbar" />
2916
+ <main class="main">
2917
+ <div class="container">
2918
+ @if (steps().length) {
2919
+ <ol class="steps" aria-label="Etapas">
2920
+ @for (label of steps(); track label; let i = $index) {
2921
+ <li
2922
+ class="step"
2923
+ [attr.data-state]="i < current() ? 'done' : i === current() ? 'current' : 'todo'"
2924
+ [attr.aria-current]="i === current() ? 'step' : null"
2925
+ >
2926
+ <span class="num">{{ i + 1 }}</span>
2927
+ <span class="label">{{ label }}</span>
2928
+ </li>
2929
+ }
2930
+ </ol>
2931
+ }
2932
+ <ng-content />
2933
+ </div>
2934
+ </main>
2935
+ <div class="actions"><div class="actions-inner"><ng-content select="[zurLayoutActions]" /></div></div>
2936
+ `,
2937
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;flex-direction:column;min-height:100vh;background:var(--zur-canvas)}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-xxl) var(--zur-space-lg)}.steps{display:flex;gap:var(--zur-space-md);margin:0 0 var(--zur-space-xl);padding:0;list-style:none}.step{flex:1;display:flex;align-items:center;gap:var(--zur-space-xs);padding-top:var(--zur-space-sm);border-top:3px solid var(--zur-hairline);color:var(--zur-muted);font:var(--zur-font-caption)}.step[data-state=done],.step[data-state=current]{border-top-color:var(--zur-primary);color:var(--zur-ink)}.num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border-radius:var(--zur-radius-full);border:1px solid var(--zur-hairline);font:var(--zur-font-badge)}.step[data-state=done] .num,.step[data-state=current] .num{background:var(--zur-primary);border-color:var(--zur-primary);color:var(--zur-on-primary)}.actions{position:sticky;bottom:0;z-index:10;background:var(--zur-canvas);border-top:1px solid var(--zur-hairline)}.actions:has(.actions-inner:empty){display:none}.actions-inner{box-sizing:border-box;display:flex;justify-content:flex-end;gap:var(--zur-space-sm);width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-md) var(--zur-space-lg)}@media(max-width:767px){.container{padding:var(--zur-space-lg) var(--zur-space-md)}.label{display:none}.step[data-state=current] .label{display:inline}.actions-inner{padding:var(--zur-space-sm) var(--zur-space-md)}}\n"]
2938
+ }]
2939
+ }],
2940
+ propDecorators: {
2941
+ width: [{
2942
+ type: i0.Input,
2943
+ args: [{
2944
+ isSignal: true,
2945
+ alias: "width",
2946
+ required: false
2947
+ }]
2948
+ }],
2949
+ steps: [{
2950
+ type: i0.Input,
2951
+ args: [{
2952
+ isSignal: true,
2953
+ alias: "steps",
2954
+ required: false
2955
+ }]
2956
+ }],
2957
+ current: [{
2958
+ type: i0.Input,
2959
+ args: [{
2960
+ isSignal: true,
2961
+ alias: "current",
2962
+ required: false
2963
+ }]
2964
+ }]
2965
+ }
2966
+ });
2967
+ var ZurDocsLayout = class ZurDocsLayout {
2968
+ width = input("reading", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
2969
+ static ɵfac = i0.ɵɵngDeclareFactory({
2970
+ minVersion: "12.0.0",
2971
+ version: "22.2.6",
2972
+ ngImport: i0,
2973
+ type: ZurDocsLayout,
2974
+ deps: [],
2975
+ target: i0.ɵɵFactoryTarget.Component
2976
+ });
2977
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2978
+ minVersion: "17.1.0",
2979
+ version: "22.2.6",
2980
+ type: ZurDocsLayout,
2981
+ isStandalone: true,
2982
+ selector: "zur-docs-layout",
2983
+ inputs: { width: {
2984
+ classPropertyName: "width",
2985
+ publicName: "width",
2986
+ isSignal: true,
2987
+ isRequired: false,
2988
+ transformFunction: null
2989
+ } },
2990
+ host: { properties: { "attr.data-width": "width()" } },
2991
+ providers: [ZurShellState],
2992
+ ngImport: i0,
2993
+ template: `
2994
+ <ng-content select="zur-sidebar" />
2995
+ <div class="column">
2996
+ <ng-content select="zur-topbar" />
2997
+ <main class="main"><div class="container"><ng-content /></div></main>
2998
+ <ng-content select="zur-footer" />
2999
+ </div>
3000
+ `,
3001
+ isInline: true,
3002
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;min-height:100vh;background:var(--zur-canvas)}.column{flex:1;min-width:0;display:flex;flex-direction:column}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-section) var(--zur-space-xl) var(--zur-space-section-lg)}@media(max-width:767px){.container{padding:var(--zur-space-xxl) var(--zur-space-md)}}\n"],
3003
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3004
+ });
3005
+ };
3006
+ i0.ɵɵngDeclareClassMetadata({
3007
+ minVersion: "12.0.0",
3008
+ version: "22.2.6",
3009
+ ngImport: i0,
3010
+ type: ZurDocsLayout,
3011
+ decorators: [{
3012
+ type: Component,
3013
+ args: [{
3014
+ selector: "zur-docs-layout",
3015
+ changeDetection: ChangeDetectionStrategy.OnPush,
3016
+ providers: [ZurShellState],
3017
+ host: { "[attr.data-width]": "width()" },
3018
+ template: `
3019
+ <ng-content select="zur-sidebar" />
3020
+ <div class="column">
3021
+ <ng-content select="zur-topbar" />
3022
+ <main class="main"><div class="container"><ng-content /></div></main>
3023
+ <ng-content select="zur-footer" />
3024
+ </div>
3025
+ `,
3026
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{display:flex;min-height:100vh;background:var(--zur-canvas)}.column{flex:1;min-width:0;display:flex;flex-direction:column}.main{flex:1}.container{box-sizing:border-box;width:100%;max-width:var(--zur-layout-max);margin:0 auto;padding:var(--zur-space-section) var(--zur-space-xl) var(--zur-space-section-lg)}@media(max-width:767px){.container{padding:var(--zur-space-xxl) var(--zur-space-md)}}\n"]
3027
+ }]
3028
+ }],
3029
+ propDecorators: { width: [{
3030
+ type: i0.Input,
3031
+ args: [{
3032
+ isSignal: true,
3033
+ alias: "width",
3034
+ required: false
3035
+ }]
3036
+ }] }
3037
+ });
3038
+ var ZurAuthLayout = class ZurAuthLayout {
3039
+ width = input("narrow", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
3040
+ static ɵfac = i0.ɵɵngDeclareFactory({
3041
+ minVersion: "12.0.0",
3042
+ version: "22.2.6",
3043
+ ngImport: i0,
3044
+ type: ZurAuthLayout,
3045
+ deps: [],
3046
+ target: i0.ɵɵFactoryTarget.Component
3047
+ });
3048
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3049
+ minVersion: "17.1.0",
3050
+ version: "22.2.6",
3051
+ type: ZurAuthLayout,
3052
+ isStandalone: true,
3053
+ selector: "zur-auth-layout",
3054
+ inputs: { width: {
3055
+ classPropertyName: "width",
3056
+ publicName: "width",
3057
+ isSignal: true,
3058
+ isRequired: false,
3059
+ transformFunction: null
3060
+ } },
3061
+ host: { properties: { "attr.data-width": "width()" } },
3062
+ ngImport: i0,
3063
+ template: `
3064
+ <div class="wrap">
3065
+ <div class="brand"><ng-content select="[zurAuthBrand]" /></div>
3066
+ <main class="card"><ng-content /></main>
3067
+ <div class="footer"><ng-content select="[zurAuthFooter]" /></div>
3068
+ </div>
3069
+ `,
3070
+ isInline: true,
3071
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:var(--zur-space-xl) var(--zur-space-md);background:var(--zur-surface-soft)}.wrap{display:flex;flex-direction:column;gap:var(--zur-space-lg);width:100%;max-width:var(--zur-layout-max)}.brand,.footer{display:flex;justify-content:center;text-align:center;color:var(--zur-muted);font:var(--zur-font-body-sm)}.brand{font:var(--zur-font-title);color:var(--zur-ink)}.brand:empty,.footer:empty{display:none}.card{box-sizing:border-box;padding:var(--zur-space-xl);background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-lg);box-shadow:var(--zur-shadow-float)}@media(max-width:767px){.card{padding:var(--zur-space-lg)}}\n"],
3072
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3073
+ });
3074
+ };
3075
+ i0.ɵɵngDeclareClassMetadata({
3076
+ minVersion: "12.0.0",
3077
+ version: "22.2.6",
3078
+ ngImport: i0,
3079
+ type: ZurAuthLayout,
3080
+ decorators: [{
3081
+ type: Component,
3082
+ args: [{
3083
+ selector: "zur-auth-layout",
3084
+ changeDetection: ChangeDetectionStrategy.OnPush,
3085
+ host: { "[attr.data-width]": "width()" },
3086
+ template: `
3087
+ <div class="wrap">
3088
+ <div class="brand"><ng-content select="[zurAuthBrand]" /></div>
3089
+ <main class="card"><ng-content /></main>
3090
+ <div class="footer"><ng-content select="[zurAuthFooter]" /></div>
3091
+ </div>
3092
+ `,
3093
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:var(--zur-space-xl) var(--zur-space-md);background:var(--zur-surface-soft)}.wrap{display:flex;flex-direction:column;gap:var(--zur-space-lg);width:100%;max-width:var(--zur-layout-max)}.brand,.footer{display:flex;justify-content:center;text-align:center;color:var(--zur-muted);font:var(--zur-font-body-sm)}.brand{font:var(--zur-font-title);color:var(--zur-ink)}.brand:empty,.footer:empty{display:none}.card{box-sizing:border-box;padding:var(--zur-space-xl);background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-lg);box-shadow:var(--zur-shadow-float)}@media(max-width:767px){.card{padding:var(--zur-space-lg)}}\n"]
3094
+ }]
3095
+ }],
3096
+ propDecorators: { width: [{
3097
+ type: i0.Input,
3098
+ args: [{
3099
+ isSignal: true,
3100
+ alias: "width",
3101
+ required: false
3102
+ }]
3103
+ }] }
3104
+ });
3105
+ var ZurErrorLayout = class ZurErrorLayout {
3106
+ width = input("narrow", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
3107
+ code = input("404", ...ngDevMode ? [{ debugName: "code" }] : /* istanbul ignore next */ []);
3108
+ title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
3109
+ description = input("", ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
3110
+ static ɵfac = i0.ɵɵngDeclareFactory({
3111
+ minVersion: "12.0.0",
3112
+ version: "22.2.6",
3113
+ ngImport: i0,
3114
+ type: ZurErrorLayout,
3115
+ deps: [],
3116
+ target: i0.ɵɵFactoryTarget.Component
3117
+ });
3118
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3119
+ minVersion: "17.0.0",
3120
+ version: "22.2.6",
3121
+ type: ZurErrorLayout,
3122
+ isStandalone: true,
3123
+ selector: "zur-error-layout",
3124
+ inputs: {
3125
+ width: {
3126
+ classPropertyName: "width",
3127
+ publicName: "width",
3128
+ isSignal: true,
3129
+ isRequired: false,
3130
+ transformFunction: null
3131
+ },
3132
+ code: {
3133
+ classPropertyName: "code",
3134
+ publicName: "code",
3135
+ isSignal: true,
3136
+ isRequired: false,
3137
+ transformFunction: null
3138
+ },
3139
+ title: {
3140
+ classPropertyName: "title",
3141
+ publicName: "title",
3142
+ isSignal: true,
3143
+ isRequired: true,
3144
+ transformFunction: null
3145
+ },
3146
+ description: {
3147
+ classPropertyName: "description",
3148
+ publicName: "description",
3149
+ isSignal: true,
3150
+ isRequired: false,
3151
+ transformFunction: null
3152
+ }
3153
+ },
3154
+ host: { properties: { "attr.data-width": "width()" } },
3155
+ ngImport: i0,
3156
+ template: `
3157
+ <main class="wrap">
3158
+ <p class="code" aria-hidden="true">{{ code() }}</p>
3159
+ <h1 class="title">{{ title() }}</h1>
3160
+ @if (description()) {
3161
+ <p class="description">{{ description() }}</p>
3162
+ }
3163
+ <div class="actions"><ng-content /></div>
3164
+ </main>
3165
+ `,
3166
+ isInline: true,
3167
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:var(--zur-space-xl) var(--zur-space-md);background:var(--zur-canvas)}.wrap{width:100%;max-width:var(--zur-layout-max);text-align:center}.code{margin:0;font:var(--zur-font-display-xl);color:var(--zur-primary);letter-spacing:-1px}.title{margin:var(--zur-space-xs) 0 var(--zur-space-sm);font:var(--zur-font-headline);color:var(--zur-ink)}.description{margin:0 0 var(--zur-space-lg);font:var(--zur-font-body-lg);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--zur-space-sm)}\n"],
3168
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3169
+ });
3170
+ };
3171
+ i0.ɵɵngDeclareClassMetadata({
3172
+ minVersion: "12.0.0",
3173
+ version: "22.2.6",
3174
+ ngImport: i0,
3175
+ type: ZurErrorLayout,
3176
+ decorators: [{
3177
+ type: Component,
3178
+ args: [{
3179
+ selector: "zur-error-layout",
3180
+ changeDetection: ChangeDetectionStrategy.OnPush,
3181
+ host: { "[attr.data-width]": "width()" },
3182
+ template: `
3183
+ <main class="wrap">
3184
+ <p class="code" aria-hidden="true">{{ code() }}</p>
3185
+ <h1 class="title">{{ title() }}</h1>
3186
+ @if (description()) {
3187
+ <p class="description">{{ description() }}</p>
3188
+ }
3189
+ <div class="actions"><ng-content /></div>
3190
+ </main>
3191
+ `,
3192
+ styles: [":host([data-width=\"fluid\"]){--zur-layout-max: none}:host([data-width=\"wide\"]){--zur-layout-max: 1100px}:host([data-width=\"reading\"]){--zur-layout-max: 760px}:host([data-width=\"narrow\"]){--zur-layout-max: 440px}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:var(--zur-space-xl) var(--zur-space-md);background:var(--zur-canvas)}.wrap{width:100%;max-width:var(--zur-layout-max);text-align:center}.code{margin:0;font:var(--zur-font-display-xl);color:var(--zur-primary);letter-spacing:-1px}.title{margin:var(--zur-space-xs) 0 var(--zur-space-sm);font:var(--zur-font-headline);color:var(--zur-ink)}.description{margin:0 0 var(--zur-space-lg);font:var(--zur-font-body-lg);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--zur-space-sm)}\n"]
3193
+ }]
3194
+ }],
3195
+ propDecorators: {
3196
+ width: [{
3197
+ type: i0.Input,
3198
+ args: [{
3199
+ isSignal: true,
3200
+ alias: "width",
3201
+ required: false
3202
+ }]
3203
+ }],
3204
+ code: [{
3205
+ type: i0.Input,
3206
+ args: [{
3207
+ isSignal: true,
3208
+ alias: "code",
3209
+ required: false
3210
+ }]
3211
+ }],
3212
+ title: [{
3213
+ type: i0.Input,
3214
+ args: [{
3215
+ isSignal: true,
3216
+ alias: "title",
3217
+ required: true
3218
+ }]
3219
+ }],
3220
+ description: [{
3221
+ type: i0.Input,
3222
+ args: [{
3223
+ isSignal: true,
3224
+ alias: "description",
3225
+ required: false
3226
+ }]
3227
+ }]
3228
+ }
3229
+ });
3230
+ var ZurModal = class ZurModal {
3231
+ open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
3232
+ title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
3233
+ close() {
3234
+ this.open.set(false);
3235
+ }
3236
+ static ɵfac = i0.ɵɵngDeclareFactory({
3237
+ minVersion: "12.0.0",
3238
+ version: "22.2.6",
3239
+ ngImport: i0,
3240
+ type: ZurModal,
3241
+ deps: [],
3242
+ target: i0.ɵɵFactoryTarget.Component
3243
+ });
3244
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3245
+ minVersion: "17.0.0",
3246
+ version: "22.2.6",
3247
+ type: ZurModal,
3248
+ isStandalone: true,
3249
+ selector: "zur-modal",
3250
+ inputs: {
3251
+ open: {
3252
+ classPropertyName: "open",
3253
+ publicName: "open",
3254
+ isSignal: true,
3255
+ isRequired: false,
3256
+ transformFunction: null
3257
+ },
3258
+ title: {
3259
+ classPropertyName: "title",
3260
+ publicName: "title",
3261
+ isSignal: true,
3262
+ isRequired: false,
3263
+ transformFunction: null
3264
+ }
3265
+ },
3266
+ outputs: { open: "openChange" },
3267
+ host: { listeners: { "document:keydown.escape": "close()" } },
3268
+ ngImport: i0,
3269
+ template: `
3270
+ @if (open()) {
3271
+ <div class="scrim" (click)="close()">
3272
+ <div
3273
+ class="dialog"
3274
+ role="dialog"
3275
+ aria-modal="true"
3276
+ [attr.aria-label]="title()"
3277
+ (click)="$event.stopPropagation()"
3278
+ >
3279
+ <header class="head">
3280
+ @if (title()) {
3281
+ <h2 class="title">{{ title() }}</h2>
3282
+ }
3283
+ <button
3284
+ type="button"
3285
+ class="x"
3286
+ aria-label="Fechar"
3287
+ (click)="close()"
3288
+ >
3289
+ <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
3290
+ <path d="M6 6l12 12M18 6 6 18" />
3291
+ </svg>
3292
+ </button>
3293
+ </header>
3294
+ <div class="content"><ng-content /></div>
3295
+ <footer class="foot"><ng-content select="[zurModalActions]" /></footer>
3296
+ </div>
3297
+ </div>
3298
+ }
3299
+ `,
3300
+ isInline: true,
3301
+ styles: [".scrim{position:fixed;inset:0;background:var(--zur-scrim);display:flex;align-items:center;justify-content:center;padding:var(--zur-space-lg);z-index:100}.dialog{background:var(--zur-surface-raised);border-radius:var(--zur-radius-lg);box-shadow:var(--zur-shadow-float);padding:var(--zur-space-xl);width:100%;max-width:480px;max-height:85vh;overflow:auto}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zur-space-md);margin-bottom:var(--zur-space-md)}.title{margin:0;font:var(--zur-font-headline);color:var(--zur-ink)}.x{width:36px;height:36px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong);color:var(--zur-ink);cursor:pointer}.x:hover{background:var(--zur-hairline)}.x:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.content{font:var(--zur-font-body);color:var(--zur-body)}.foot{display:flex;justify-content:flex-end;gap:var(--zur-space-sm);margin-top:var(--zur-space-lg)}.foot:empty{display:none}\n"],
3302
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3303
+ });
3304
+ };
3305
+ i0.ɵɵngDeclareClassMetadata({
3306
+ minVersion: "12.0.0",
3307
+ version: "22.2.6",
3308
+ ngImport: i0,
3309
+ type: ZurModal,
3310
+ decorators: [{
3311
+ type: Component,
3312
+ args: [{
3313
+ selector: "zur-modal",
3314
+ changeDetection: ChangeDetectionStrategy.OnPush,
3315
+ host: { "(document:keydown.escape)": "close()" },
3316
+ template: `
3317
+ @if (open()) {
3318
+ <div class="scrim" (click)="close()">
3319
+ <div
3320
+ class="dialog"
3321
+ role="dialog"
3322
+ aria-modal="true"
3323
+ [attr.aria-label]="title()"
3324
+ (click)="$event.stopPropagation()"
3325
+ >
3326
+ <header class="head">
3327
+ @if (title()) {
3328
+ <h2 class="title">{{ title() }}</h2>
3329
+ }
3330
+ <button
3331
+ type="button"
3332
+ class="x"
3333
+ aria-label="Fechar"
3334
+ (click)="close()"
3335
+ >
3336
+ <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
3337
+ <path d="M6 6l12 12M18 6 6 18" />
3338
+ </svg>
3339
+ </button>
3340
+ </header>
3341
+ <div class="content"><ng-content /></div>
3342
+ <footer class="foot"><ng-content select="[zurModalActions]" /></footer>
3343
+ </div>
3344
+ </div>
3345
+ }
3346
+ `,
3347
+ styles: [".scrim{position:fixed;inset:0;background:var(--zur-scrim);display:flex;align-items:center;justify-content:center;padding:var(--zur-space-lg);z-index:100}.dialog{background:var(--zur-surface-raised);border-radius:var(--zur-radius-lg);box-shadow:var(--zur-shadow-float);padding:var(--zur-space-xl);width:100%;max-width:480px;max-height:85vh;overflow:auto}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zur-space-md);margin-bottom:var(--zur-space-md)}.title{margin:0;font:var(--zur-font-headline);color:var(--zur-ink)}.x{width:36px;height:36px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong);color:var(--zur-ink);cursor:pointer}.x:hover{background:var(--zur-hairline)}.x:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.content{font:var(--zur-font-body);color:var(--zur-body)}.foot{display:flex;justify-content:flex-end;gap:var(--zur-space-sm);margin-top:var(--zur-space-lg)}.foot:empty{display:none}\n"]
3348
+ }]
3349
+ }],
3350
+ propDecorators: {
3351
+ open: [{
3352
+ type: i0.Input,
3353
+ args: [{
3354
+ isSignal: true,
3355
+ alias: "open",
3356
+ required: false
3357
+ }]
3358
+ }, {
3359
+ type: i0.Output,
3360
+ args: ["openChange"]
3361
+ }],
3362
+ title: [{
3363
+ type: i0.Input,
3364
+ args: [{
3365
+ isSignal: true,
3366
+ alias: "title",
3367
+ required: false
3368
+ }]
3369
+ }]
3370
+ }
3371
+ });
3372
+ let nextId = 0;
3373
+ var ZurToastService = class ZurToastService {
3374
+ toasts = signal([], ...ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []);
3375
+ show(message, kind = "neutral", durationMs = 4e3) {
3376
+ const toast = {
3377
+ id: nextId++,
3378
+ message,
3379
+ kind
3380
+ };
3381
+ this.toasts.update((list) => [...list, toast]);
3382
+ setTimeout(() => this.dismiss(toast.id), durationMs);
3383
+ }
3384
+ dismiss(id) {
3385
+ this.toasts.update((list) => list.filter((toast) => toast.id !== id));
3386
+ }
3387
+ static ɵfac = i0.ɵɵngDeclareFactory({
3388
+ minVersion: "12.0.0",
3389
+ version: "22.2.6",
3390
+ ngImport: i0,
3391
+ type: ZurToastService,
3392
+ deps: [],
3393
+ target: i0.ɵɵFactoryTarget.Injectable
3394
+ });
3395
+ static ɵprov = i0.ɵɵngDeclareInjectable({
3396
+ minVersion: "12.0.0",
3397
+ version: "22.2.6",
3398
+ ngImport: i0,
3399
+ type: ZurToastService,
3400
+ providedIn: "root"
3401
+ });
3402
+ };
3403
+ i0.ɵɵngDeclareClassMetadata({
3404
+ minVersion: "12.0.0",
3405
+ version: "22.2.6",
3406
+ ngImport: i0,
3407
+ type: ZurToastService,
3408
+ decorators: [{
3409
+ type: Injectable,
3410
+ args: [{ providedIn: "root" }]
3411
+ }]
3412
+ });
3413
+ var ZurToastContainer = class ZurToastContainer {
3414
+ service = inject(ZurToastService);
3415
+ static ɵfac = i0.ɵɵngDeclareFactory({
3416
+ minVersion: "12.0.0",
3417
+ version: "22.2.6",
3418
+ ngImport: i0,
3419
+ type: ZurToastContainer,
3420
+ deps: [],
3421
+ target: i0.ɵɵFactoryTarget.Component
3422
+ });
3423
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3424
+ minVersion: "17.0.0",
3425
+ version: "22.2.6",
3426
+ type: ZurToastContainer,
3427
+ isStandalone: true,
3428
+ selector: "zur-toast-container",
3429
+ ngImport: i0,
3430
+ template: `
3431
+ <div class="stack" role="status" aria-live="polite">
3432
+ @for (toast of service.toasts(); track toast.id) {
3433
+ <div class="toast" [attr.data-kind]="toast.kind">
3434
+ <span>{{ toast.message }}</span>
3435
+ <button
3436
+ type="button"
3437
+ class="x"
3438
+ aria-label="Fechar"
3439
+ (click)="service.dismiss(toast.id)"
3440
+ >
3441
+ ✕
3442
+ </button>
3443
+ </div>
3444
+ }
3445
+ </div>
3446
+ `,
3447
+ isInline: true,
3448
+ styles: [".stack{position:fixed;bottom:var(--zur-space-lg);left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:var(--zur-space-xs);z-index:200}.toast{display:flex;align-items:center;gap:var(--zur-space-md);background:var(--zur-ink);color:var(--zur-ink-inverse);font:var(--zur-font-body);font-size:15px;padding:14px 20px;border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);animation:zur-toast-in .2s ease}.toast[data-kind=success]{background:var(--zur-success);color:#fff}.toast[data-kind=error]{background:var(--zur-error);color:#fff}.x{background:none;border:none;color:inherit;cursor:pointer;font-size:13px;opacity:.7;padding:2px}.x:hover{opacity:1}@keyframes zur-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}\n"],
3449
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3450
+ });
3451
+ };
3452
+ i0.ɵɵngDeclareClassMetadata({
3453
+ minVersion: "12.0.0",
3454
+ version: "22.2.6",
3455
+ ngImport: i0,
3456
+ type: ZurToastContainer,
3457
+ decorators: [{
3458
+ type: Component,
3459
+ args: [{
3460
+ selector: "zur-toast-container",
3461
+ changeDetection: ChangeDetectionStrategy.OnPush,
3462
+ template: `
3463
+ <div class="stack" role="status" aria-live="polite">
3464
+ @for (toast of service.toasts(); track toast.id) {
3465
+ <div class="toast" [attr.data-kind]="toast.kind">
3466
+ <span>{{ toast.message }}</span>
3467
+ <button
3468
+ type="button"
3469
+ class="x"
3470
+ aria-label="Fechar"
3471
+ (click)="service.dismiss(toast.id)"
3472
+ >
3473
+ ✕
3474
+ </button>
3475
+ </div>
3476
+ }
3477
+ </div>
3478
+ `,
3479
+ styles: [".stack{position:fixed;bottom:var(--zur-space-lg);left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:var(--zur-space-xs);z-index:200}.toast{display:flex;align-items:center;gap:var(--zur-space-md);background:var(--zur-ink);color:var(--zur-ink-inverse);font:var(--zur-font-body);font-size:15px;padding:14px 20px;border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);animation:zur-toast-in .2s ease}.toast[data-kind=success]{background:var(--zur-success);color:#fff}.toast[data-kind=error]{background:var(--zur-error);color:#fff}.x{background:none;border:none;color:inherit;cursor:pointer;font-size:13px;opacity:.7;padding:2px}.x:hover{opacity:1}@keyframes zur-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}\n"]
3480
+ }]
3481
+ }]
3482
+ });
3483
+ var ZurTooltip = class ZurTooltip {
3484
+ zurTooltip = input.required(...ngDevMode ? [{ debugName: "zurTooltip" }] : /* istanbul ignore next */ []);
3485
+ host = inject(ElementRef);
3486
+ doc = inject(DOCUMENT);
3487
+ bubble = null;
3488
+ show() {
3489
+ if (this.bubble || !this.zurTooltip()) return;
3490
+ const rect = this.host.nativeElement.getBoundingClientRect();
3491
+ const el = this.doc.createElement("div");
3492
+ el.textContent = this.zurTooltip();
3493
+ el.setAttribute("role", "tooltip");
3494
+ Object.assign(el.style, {
3495
+ position: "fixed",
3496
+ left: `${rect.left + rect.width / 2}px`,
3497
+ top: `${rect.top - 8}px`,
3498
+ transform: "translate(-50%, -100%)",
3499
+ background: "var(--zur-ink)",
3500
+ color: "var(--zur-ink-inverse)",
3501
+ font: "var(--zur-font-caption)",
3502
+ padding: "6px 10px",
3503
+ borderRadius: "var(--zur-radius-sm)",
3504
+ boxShadow: "var(--zur-shadow-float)",
3505
+ whiteSpace: "nowrap",
3506
+ zIndex: "300",
3507
+ pointerEvents: "none"
3508
+ });
3509
+ this.doc.body.appendChild(el);
3510
+ this.bubble = el;
3511
+ }
3512
+ hide() {
3513
+ this.bubble?.remove();
3514
+ this.bubble = null;
3515
+ }
3516
+ ngOnDestroy() {
3517
+ this.hide();
3518
+ }
3519
+ static ɵfac = i0.ɵɵngDeclareFactory({
3520
+ minVersion: "12.0.0",
3521
+ version: "22.2.6",
3522
+ ngImport: i0,
3523
+ type: ZurTooltip,
3524
+ deps: [],
3525
+ target: i0.ɵɵFactoryTarget.Directive
3526
+ });
3527
+ static ɵdir = i0.ɵɵngDeclareDirective({
3528
+ minVersion: "17.1.0",
3529
+ version: "22.2.6",
3530
+ type: ZurTooltip,
3531
+ isStandalone: true,
3532
+ selector: "[zurTooltip]",
3533
+ inputs: { zurTooltip: {
3534
+ classPropertyName: "zurTooltip",
3535
+ publicName: "zurTooltip",
3536
+ isSignal: true,
3537
+ isRequired: true,
3538
+ transformFunction: null
3539
+ } },
3540
+ host: { listeners: {
3541
+ "mouseenter": "show()",
3542
+ "mouseleave": "hide()",
3543
+ "focus": "show()",
3544
+ "blur": "hide()"
3545
+ } },
3546
+ ngImport: i0
3547
+ });
3548
+ };
3549
+ i0.ɵɵngDeclareClassMetadata({
3550
+ minVersion: "12.0.0",
3551
+ version: "22.2.6",
3552
+ ngImport: i0,
3553
+ type: ZurTooltip,
3554
+ decorators: [{
3555
+ type: Directive,
3556
+ args: [{
3557
+ selector: "[zurTooltip]",
3558
+ host: {
3559
+ "(mouseenter)": "show()",
3560
+ "(mouseleave)": "hide()",
3561
+ "(focus)": "show()",
3562
+ "(blur)": "hide()"
3563
+ }
3564
+ }]
3565
+ }],
3566
+ propDecorators: { zurTooltip: [{
3567
+ type: i0.Input,
3568
+ args: [{
3569
+ isSignal: true,
3570
+ alias: "zurTooltip",
3571
+ required: true
3572
+ }]
3573
+ }] }
3574
+ });
3575
+ var ZurAlert = class ZurAlert {
3576
+ kind = input("info", ...ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []);
3577
+ static ɵfac = i0.ɵɵngDeclareFactory({
3578
+ minVersion: "12.0.0",
3579
+ version: "22.2.6",
3580
+ ngImport: i0,
3581
+ type: ZurAlert,
3582
+ deps: [],
3583
+ target: i0.ɵɵFactoryTarget.Component
3584
+ });
3585
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3586
+ minVersion: "17.0.0",
3587
+ version: "22.2.6",
3588
+ type: ZurAlert,
3589
+ isStandalone: true,
3590
+ selector: "zur-alert",
3591
+ inputs: { kind: {
3592
+ classPropertyName: "kind",
3593
+ publicName: "kind",
3594
+ isSignal: true,
3595
+ isRequired: false,
3596
+ transformFunction: null
3597
+ } },
3598
+ host: {
3599
+ attributes: { "role": "alert" },
3600
+ properties: { "attr.data-kind": "kind()" }
3601
+ },
3602
+ ngImport: i0,
3603
+ template: `
3604
+ <span class="icon" aria-hidden="true">
3605
+ @switch (kind()) {
3606
+ @case ('success') {
3607
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m8.5 12.5 2.5 2.5 4.5-5.5"/></svg>
3608
+ }
3609
+ @case ('warning') {
3610
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 2.5 20h19L12 3Z"/><path d="M12 10v4M12 17.5v.1"/></svg>
3611
+ }
3612
+ @case ('error') {
3613
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M9 9l6 6M15 9l-6 6"/></svg>
3614
+ }
3615
+ @default {
3616
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.5v.1"/></svg>
3617
+ }
3618
+ }
3619
+ </span>
3620
+ <div class="text"><ng-content /></div>
3621
+ `,
3622
+ isInline: true,
3623
+ styles: [":host{display:flex;align-items:flex-start;gap:var(--zur-space-sm);padding:var(--zur-space-md) var(--zur-space-lg);border-radius:var(--zur-radius-md);font:var(--zur-font-body);font-size:15px}.icon{flex-shrink:0;display:inline-flex;margin-top:1px}.text{min-width:0}:host([data-kind=\"success\"]){background:var(--zur-success-soft);color:var(--zur-success)}:host([data-kind=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning)}:host([data-kind=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error)}:host([data-kind=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info)}\n"],
3624
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3625
+ });
3626
+ };
3627
+ i0.ɵɵngDeclareClassMetadata({
3628
+ minVersion: "12.0.0",
3629
+ version: "22.2.6",
3630
+ ngImport: i0,
3631
+ type: ZurAlert,
3632
+ decorators: [{
3633
+ type: Component,
3634
+ args: [{
3635
+ selector: "zur-alert",
3636
+ changeDetection: ChangeDetectionStrategy.OnPush,
3637
+ host: {
3638
+ "[attr.data-kind]": "kind()",
3639
+ role: "alert"
3640
+ },
3641
+ template: `
3642
+ <span class="icon" aria-hidden="true">
3643
+ @switch (kind()) {
3644
+ @case ('success') {
3645
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m8.5 12.5 2.5 2.5 4.5-5.5"/></svg>
3646
+ }
3647
+ @case ('warning') {
3648
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 2.5 20h19L12 3Z"/><path d="M12 10v4M12 17.5v.1"/></svg>
3649
+ }
3650
+ @case ('error') {
3651
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M9 9l6 6M15 9l-6 6"/></svg>
3652
+ }
3653
+ @default {
3654
+ <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.5v.1"/></svg>
3655
+ }
3656
+ }
3657
+ </span>
3658
+ <div class="text"><ng-content /></div>
3659
+ `,
3660
+ styles: [":host{display:flex;align-items:flex-start;gap:var(--zur-space-sm);padding:var(--zur-space-md) var(--zur-space-lg);border-radius:var(--zur-radius-md);font:var(--zur-font-body);font-size:15px}.icon{flex-shrink:0;display:inline-flex;margin-top:1px}.text{min-width:0}:host([data-kind=\"success\"]){background:var(--zur-success-soft);color:var(--zur-success)}:host([data-kind=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning)}:host([data-kind=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error)}:host([data-kind=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info)}\n"]
3661
+ }]
3662
+ }],
3663
+ propDecorators: { kind: [{
3664
+ type: i0.Input,
3665
+ args: [{
3666
+ isSignal: true,
3667
+ alias: "kind",
3668
+ required: false
3669
+ }]
3670
+ }] }
3671
+ });
3672
+ var ZurSpinner = class ZurSpinner {
3673
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
3674
+ static ɵfac = i0.ɵɵngDeclareFactory({
3675
+ minVersion: "12.0.0",
3676
+ version: "22.2.6",
3677
+ ngImport: i0,
3678
+ type: ZurSpinner,
3679
+ deps: [],
3680
+ target: i0.ɵɵFactoryTarget.Component
3681
+ });
3682
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3683
+ minVersion: "17.1.0",
3684
+ version: "22.2.6",
3685
+ type: ZurSpinner,
3686
+ isStandalone: true,
3687
+ selector: "zur-spinner",
3688
+ inputs: { size: {
3689
+ classPropertyName: "size",
3690
+ publicName: "size",
3691
+ isSignal: true,
3692
+ isRequired: false,
3693
+ transformFunction: null
3694
+ } },
3695
+ host: {
3696
+ attributes: {
3697
+ "role": "progressbar",
3698
+ "aria-label": "Carregando"
3699
+ },
3700
+ properties: { "attr.data-size": "size()" }
3701
+ },
3702
+ ngImport: i0,
3703
+ template: `<span class="ring" aria-hidden="true"></span>`,
3704
+ isInline: true,
3705
+ styles: [":host{display:inline-flex}.ring{border-radius:var(--zur-radius-full);border-style:solid;border-color:var(--zur-surface-strong);border-top-color:var(--zur-primary);animation:zur-spin .7s linear infinite;box-sizing:border-box}:host([data-size=\"sm\"]) .ring{width:20px;height:20px;border-width:2.5px}:host([data-size=\"md\"]) .ring{width:32px;height:32px;border-width:3px}:host([data-size=\"lg\"]) .ring{width:48px;height:48px;border-width:4px}@keyframes zur-spin{to{transform:rotate(360deg)}}\n"],
3706
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3707
+ });
3708
+ };
3709
+ i0.ɵɵngDeclareClassMetadata({
3710
+ minVersion: "12.0.0",
3711
+ version: "22.2.6",
3712
+ ngImport: i0,
3713
+ type: ZurSpinner,
3714
+ decorators: [{
3715
+ type: Component,
3716
+ args: [{
3717
+ selector: "zur-spinner",
3718
+ changeDetection: ChangeDetectionStrategy.OnPush,
3719
+ host: {
3720
+ "[attr.data-size]": "size()",
3721
+ role: "progressbar",
3722
+ "aria-label": "Carregando"
3723
+ },
3724
+ template: `<span class="ring" aria-hidden="true"></span>`,
3725
+ styles: [":host{display:inline-flex}.ring{border-radius:var(--zur-radius-full);border-style:solid;border-color:var(--zur-surface-strong);border-top-color:var(--zur-primary);animation:zur-spin .7s linear infinite;box-sizing:border-box}:host([data-size=\"sm\"]) .ring{width:20px;height:20px;border-width:2.5px}:host([data-size=\"md\"]) .ring{width:32px;height:32px;border-width:3px}:host([data-size=\"lg\"]) .ring{width:48px;height:48px;border-width:4px}@keyframes zur-spin{to{transform:rotate(360deg)}}\n"]
3726
+ }]
3727
+ }],
3728
+ propDecorators: { size: [{
3729
+ type: i0.Input,
3730
+ args: [{
3731
+ isSignal: true,
3732
+ alias: "size",
3733
+ required: false
3734
+ }]
3735
+ }] }
3736
+ });
3737
+ var ZurSkeleton = class ZurSkeleton {
3738
+ width = input("100%", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
3739
+ height = input("16px", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
3740
+ circle = input(false, ...ngDevMode ? [{ debugName: "circle" }] : /* istanbul ignore next */ []);
3741
+ static ɵfac = i0.ɵɵngDeclareFactory({
3742
+ minVersion: "12.0.0",
3743
+ version: "22.2.6",
3744
+ ngImport: i0,
3745
+ type: ZurSkeleton,
3746
+ deps: [],
3747
+ target: i0.ɵɵFactoryTarget.Component
3748
+ });
3749
+ static ɵcmp = i0.ɵɵngDeclareComponent({
3750
+ minVersion: "17.1.0",
3751
+ version: "22.2.6",
3752
+ type: ZurSkeleton,
3753
+ isStandalone: true,
3754
+ selector: "zur-skeleton",
3755
+ inputs: {
3756
+ width: {
3757
+ classPropertyName: "width",
3758
+ publicName: "width",
3759
+ isSignal: true,
3760
+ isRequired: false,
3761
+ transformFunction: null
3762
+ },
3763
+ height: {
3764
+ classPropertyName: "height",
3765
+ publicName: "height",
3766
+ isSignal: true,
3767
+ isRequired: false,
3768
+ transformFunction: null
3769
+ },
3770
+ circle: {
3771
+ classPropertyName: "circle",
3772
+ publicName: "circle",
3773
+ isSignal: true,
3774
+ isRequired: false,
3775
+ transformFunction: null
3776
+ }
3777
+ },
3778
+ host: {
3779
+ attributes: { "aria-hidden": "true" },
3780
+ properties: {
3781
+ "style.width": "width()",
3782
+ "style.height": "height()",
3783
+ "style.border-radius": "circle() ? \"var(--zur-radius-full)\" : \"var(--zur-radius-sm)\""
3784
+ }
3785
+ },
3786
+ ngImport: i0,
3787
+ template: ``,
3788
+ isInline: true,
3789
+ styles: [":host{display:block;background:var(--zur-surface-strong);animation:zur-pulse 1.4s ease-in-out infinite}@keyframes zur-pulse{0%,to{opacity:1}50%{opacity:.45}}\n"],
3790
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3791
+ });
3792
+ };
3793
+ i0.ɵɵngDeclareClassMetadata({
3794
+ minVersion: "12.0.0",
3795
+ version: "22.2.6",
3796
+ ngImport: i0,
3797
+ type: ZurSkeleton,
3798
+ decorators: [{
3799
+ type: Component,
3800
+ args: [{
3801
+ selector: "zur-skeleton",
3802
+ changeDetection: ChangeDetectionStrategy.OnPush,
3803
+ host: {
3804
+ "[style.width]": "width()",
3805
+ "[style.height]": "height()",
3806
+ "[style.border-radius]": "circle() ? \"var(--zur-radius-full)\" : \"var(--zur-radius-sm)\"",
3807
+ "aria-hidden": "true"
3808
+ },
3809
+ template: ``,
3810
+ styles: [":host{display:block;background:var(--zur-surface-strong);animation:zur-pulse 1.4s ease-in-out infinite}@keyframes zur-pulse{0%,to{opacity:1}50%{opacity:.45}}\n"]
3811
+ }]
3812
+ }],
3813
+ propDecorators: {
3814
+ width: [{
3815
+ type: i0.Input,
3816
+ args: [{
3817
+ isSignal: true,
3818
+ alias: "width",
3819
+ required: false
3820
+ }]
3821
+ }],
3822
+ height: [{
3823
+ type: i0.Input,
3824
+ args: [{
3825
+ isSignal: true,
3826
+ alias: "height",
3827
+ required: false
3828
+ }]
3829
+ }],
3830
+ circle: [{
3831
+ type: i0.Input,
3832
+ args: [{
3833
+ isSignal: true,
3834
+ alias: "circle",
3835
+ required: false
3836
+ }]
3837
+ }]
3838
+ }
3839
+ });
3840
+ export { ZUR_BREAKPOINTS, ZUR_LAYOUT_WIDTH_STYLES, ZUR_THEME_SCOPE, ZurAlert, ZurAuthLayout, ZurAvatar, ZurBadge, ZurBreadcrumb, ZurButton, ZurCard, ZurCheckbox, ZurDashboardLayout, ZurDocsLayout, ZurErrorLayout, ZurFooter, ZurFormLayout, ZurInput, ZurLandingLayout, ZurListDetailLayout, ZurLogo, ZurMenu, ZurMenuItem, ZurModal, ZurNavbar, ZurPageHeader, ZurRadio, ZurSelect, ZurShellState, ZurSidebar, ZurSidenav, ZurSidenavItem, ZurSidenavLabel, ZurSkeleton, ZurSpinner, ZurStep, ZurSwitch, ZurTab, ZurTabs, ZurThemeScope, ZurThemeService, ZurThemeToggle, ZurToastContainer, ZurToastService, ZurTooltip, ZurTopbar };
3841
+
3842
+ //# sourceMappingURL=juau-zuri.mjs.map