@juau/zuri 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/fesm2022/juau-zuri.mjs +2048 -481
- package/fesm2022/juau-zuri.mjs.map +1 -1
- package/package.json +5 -1
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/index.js +79 -0
- package/schematics/ng-add/schema.json +13 -0
- package/schematics/package.json +3 -0
- package/styles/tokens.css +12 -1
- package/types/juau-zuri.d.ts +463 -4
package/fesm2022/juau-zuri.mjs
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
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";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, ViewEncapsulation, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
const ZUR_I18N_PT = {
|
|
5
|
+
close: "Fechar",
|
|
6
|
+
back: "Voltar",
|
|
7
|
+
toggleNav: "Alternar menu lateral",
|
|
8
|
+
sideNav: "Navegação lateral",
|
|
9
|
+
topNav: "Navegação principal",
|
|
10
|
+
footerNav: "Links do rodapé",
|
|
11
|
+
steps: "Etapas",
|
|
12
|
+
list: "Lista",
|
|
13
|
+
detail: "Detalhe",
|
|
14
|
+
breadcrumb: "Trilha de navegação",
|
|
15
|
+
themeToLight: "Ativar tema claro",
|
|
16
|
+
themeToDark: "Ativar tema escuro",
|
|
17
|
+
pagination: "Paginação",
|
|
18
|
+
previousPage: "Página anterior",
|
|
19
|
+
nextPage: "Próxima página",
|
|
20
|
+
page: (n) => `Página ${n}`,
|
|
21
|
+
progress: "Progresso",
|
|
22
|
+
characterCount: (count, max) => `${count} de ${max} caracteres`
|
|
23
|
+
};
|
|
24
|
+
const ZUR_I18N_EN = {
|
|
25
|
+
close: "Close",
|
|
26
|
+
back: "Back",
|
|
27
|
+
toggleNav: "Toggle side menu",
|
|
28
|
+
sideNav: "Side navigation",
|
|
29
|
+
topNav: "Main navigation",
|
|
30
|
+
footerNav: "Footer links",
|
|
31
|
+
steps: "Steps",
|
|
32
|
+
list: "List",
|
|
33
|
+
detail: "Detail",
|
|
34
|
+
breadcrumb: "Breadcrumb",
|
|
35
|
+
themeToLight: "Switch to light theme",
|
|
36
|
+
themeToDark: "Switch to dark theme",
|
|
37
|
+
pagination: "Pagination",
|
|
38
|
+
previousPage: "Previous page",
|
|
39
|
+
nextPage: "Next page",
|
|
40
|
+
page: (n) => `Page ${n}`,
|
|
41
|
+
progress: "Progress",
|
|
42
|
+
characterCount: (count, max) => `${count} of ${max} characters`
|
|
43
|
+
};
|
|
44
|
+
const ZUR_I18N = new InjectionToken("ZUR_I18N", {
|
|
45
|
+
providedIn: "root",
|
|
46
|
+
factory: () => ZUR_I18N_PT
|
|
47
|
+
});
|
|
48
|
+
function provideZuriI18n(config) {
|
|
49
|
+
const value = config === "pt" ? ZUR_I18N_PT : config === "en" ? ZUR_I18N_EN : {
|
|
50
|
+
...ZUR_I18N_PT,
|
|
51
|
+
...config
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
provide: ZUR_I18N,
|
|
55
|
+
useValue: value
|
|
56
|
+
};
|
|
57
|
+
}
|
|
4
58
|
const STORAGE_KEY = "zur-theme";
|
|
5
59
|
const ZUR_THEME_SCOPE = new InjectionToken("ZUR_THEME_SCOPE");
|
|
6
60
|
var ZurThemeService = class ZurThemeService {
|
|
@@ -85,9 +139,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
85
139
|
ctorParameters: () => []
|
|
86
140
|
});
|
|
87
141
|
var ZurThemeToggle = class ZurThemeToggle {
|
|
142
|
+
i18n = inject(ZUR_I18N);
|
|
88
143
|
themeService = inject(ZurThemeService);
|
|
89
144
|
isDark = computed(() => this.themeService.theme() === "dark", ...ngDevMode ? [{ debugName: "isDark" }] : /* istanbul ignore next */ []);
|
|
90
|
-
label = computed(() => this.isDark() ?
|
|
145
|
+
label = computed(() => this.isDark() ? this.i18n.themeToLight : this.i18n.themeToDark, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
91
146
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
92
147
|
minVersion: "12.0.0",
|
|
93
148
|
version: "22.2.6",
|
|
@@ -554,7 +609,7 @@ var ZurBadge = class ZurBadge {
|
|
|
554
609
|
ngImport: i0,
|
|
555
610
|
template: `<ng-content />`,
|
|
556
611
|
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)}
|
|
612
|
+
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-text)}:host([data-color=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning-text)}:host([data-color=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error-text)}:host([data-color=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info-text)}:host([data-color=\"neutral\"]){background:var(--zur-surface-strong);color:var(--zur-body)}\n"],
|
|
558
613
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
559
614
|
});
|
|
560
615
|
};
|
|
@@ -570,7 +625,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
570
625
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
571
626
|
template: `<ng-content />`,
|
|
572
627
|
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)}
|
|
628
|
+
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-text)}:host([data-color=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning-text)}:host([data-color=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error-text)}:host([data-color=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info-text)}:host([data-color=\"neutral\"]){background:var(--zur-surface-strong);color:var(--zur-body)}\n"]
|
|
574
629
|
}]
|
|
575
630
|
}],
|
|
576
631
|
propDecorators: { color: [{
|
|
@@ -699,7 +754,7 @@ var ZurAvatar = class ZurAvatar {
|
|
|
699
754
|
}
|
|
700
755
|
`,
|
|
701
756
|
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}
|
|
757
|
+
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}\n"],
|
|
703
758
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
704
759
|
});
|
|
705
760
|
};
|
|
@@ -724,7 +779,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
724
779
|
"[attr.data-size]": "size()",
|
|
725
780
|
"[attr.title]": "name()"
|
|
726
781
|
},
|
|
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}
|
|
782
|
+
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}\n"]
|
|
728
783
|
}]
|
|
729
784
|
}],
|
|
730
785
|
propDecorators: {
|
|
@@ -754,7 +809,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
754
809
|
}]
|
|
755
810
|
}
|
|
756
811
|
});
|
|
757
|
-
let nextId$
|
|
812
|
+
let nextId$7 = 0;
|
|
758
813
|
var ZurInput = class ZurInput {
|
|
759
814
|
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
760
815
|
type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
@@ -765,7 +820,7 @@ var ZurInput = class ZurInput {
|
|
|
765
820
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
766
821
|
transform: booleanAttribute
|
|
767
822
|
});
|
|
768
|
-
id = `zur-input-${nextId$
|
|
823
|
+
id = `zur-input-${nextId$7++}`;
|
|
769
824
|
value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
770
825
|
cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
771
826
|
onChange = () => {};
|
|
@@ -882,7 +937,7 @@ var ZurInput = class ZurInput {
|
|
|
882
937
|
}
|
|
883
938
|
`,
|
|
884
939
|
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"],
|
|
940
|
+
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-text)}\n"],
|
|
886
941
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
887
942
|
});
|
|
888
943
|
};
|
|
@@ -924,7 +979,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
924
979
|
<p class="help" [id]="id + '-hint'">{{ hint() }}</p>
|
|
925
980
|
}
|
|
926
981
|
`,
|
|
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"]
|
|
982
|
+
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-text)}\n"]
|
|
928
983
|
}]
|
|
929
984
|
}],
|
|
930
985
|
propDecorators: {
|
|
@@ -978,7 +1033,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
978
1033
|
}]
|
|
979
1034
|
}
|
|
980
1035
|
});
|
|
981
|
-
let nextId$
|
|
1036
|
+
let nextId$6 = 0;
|
|
982
1037
|
var ZurSelect = class ZurSelect {
|
|
983
1038
|
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
984
1039
|
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
@@ -987,7 +1042,7 @@ var ZurSelect = class ZurSelect {
|
|
|
987
1042
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
988
1043
|
transform: booleanAttribute
|
|
989
1044
|
});
|
|
990
|
-
id = `zur-select-${nextId$
|
|
1045
|
+
id = `zur-select-${nextId$6++}`;
|
|
991
1046
|
value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
992
1047
|
cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
993
1048
|
onChange = () => {};
|
|
@@ -1176,13 +1231,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1176
1231
|
}]
|
|
1177
1232
|
}
|
|
1178
1233
|
});
|
|
1179
|
-
let nextId$
|
|
1234
|
+
let nextId$5 = 0;
|
|
1180
1235
|
var ZurCheckbox = class ZurCheckbox {
|
|
1181
1236
|
disabled = input(false, {
|
|
1182
1237
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1183
1238
|
transform: booleanAttribute
|
|
1184
1239
|
});
|
|
1185
|
-
id = `zur-checkbox-${nextId$
|
|
1240
|
+
id = `zur-checkbox-${nextId$5++}`;
|
|
1186
1241
|
checked = signal(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
1187
1242
|
cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
1188
1243
|
onChange = () => {};
|
|
@@ -1304,7 +1359,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1304
1359
|
}]
|
|
1305
1360
|
}] }
|
|
1306
1361
|
});
|
|
1307
|
-
let nextId$
|
|
1362
|
+
let nextId$4 = 0;
|
|
1308
1363
|
var ZurRadio = class ZurRadio {
|
|
1309
1364
|
value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
1310
1365
|
name = input("zur-radio-group", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
@@ -1312,7 +1367,7 @@ var ZurRadio = class ZurRadio {
|
|
|
1312
1367
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1313
1368
|
transform: booleanAttribute
|
|
1314
1369
|
});
|
|
1315
|
-
id = `zur-radio-${nextId$
|
|
1370
|
+
id = `zur-radio-${nextId$4++}`;
|
|
1316
1371
|
model = signal(null, ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
|
|
1317
1372
|
cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
1318
1373
|
onChange = () => {};
|
|
@@ -1464,7 +1519,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1464
1519
|
}]
|
|
1465
1520
|
}
|
|
1466
1521
|
});
|
|
1522
|
+
let nextSwitchId = 0;
|
|
1467
1523
|
var ZurSwitch = class ZurSwitch {
|
|
1524
|
+
labelId = `zur-switch-label-${nextSwitchId++}`;
|
|
1468
1525
|
disabled = input(false, {
|
|
1469
1526
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1470
1527
|
transform: booleanAttribute
|
|
@@ -1527,13 +1584,14 @@ var ZurSwitch = class ZurSwitch {
|
|
|
1527
1584
|
role="switch"
|
|
1528
1585
|
class="track"
|
|
1529
1586
|
[attr.aria-checked]="checked()"
|
|
1587
|
+
[attr.aria-labelledby]="labelId"
|
|
1530
1588
|
[disabled]="isDisabled()"
|
|
1531
1589
|
(click)="toggle()"
|
|
1532
1590
|
(blur)="onTouched()"
|
|
1533
1591
|
>
|
|
1534
1592
|
<span class="thumb" aria-hidden="true"></span>
|
|
1535
1593
|
</button>
|
|
1536
|
-
<span class="text" (click)="toggle()"><ng-content /></span>
|
|
1594
|
+
<span class="text" [id]="labelId" (click)="toggle()"><ng-content /></span>
|
|
1537
1595
|
`,
|
|
1538
1596
|
isInline: true,
|
|
1539
1597
|
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"],
|
|
@@ -1561,13 +1619,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1561
1619
|
role="switch"
|
|
1562
1620
|
class="track"
|
|
1563
1621
|
[attr.aria-checked]="checked()"
|
|
1622
|
+
[attr.aria-labelledby]="labelId"
|
|
1564
1623
|
[disabled]="isDisabled()"
|
|
1565
1624
|
(click)="toggle()"
|
|
1566
1625
|
(blur)="onTouched()"
|
|
1567
1626
|
>
|
|
1568
1627
|
<span class="thumb" aria-hidden="true"></span>
|
|
1569
1628
|
</button>
|
|
1570
|
-
<span class="text" (click)="toggle()"><ng-content /></span>
|
|
1629
|
+
<span class="text" [id]="labelId" (click)="toggle()"><ng-content /></span>
|
|
1571
1630
|
`,
|
|
1572
1631
|
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
1632
|
}]
|
|
@@ -1581,6 +1640,270 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1581
1640
|
}]
|
|
1582
1641
|
}] }
|
|
1583
1642
|
});
|
|
1643
|
+
let nextId$3 = 0;
|
|
1644
|
+
var ZurTextarea = class ZurTextarea {
|
|
1645
|
+
i18n = inject(ZUR_I18N);
|
|
1646
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
1647
|
+
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
1648
|
+
hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
1649
|
+
error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
1650
|
+
rows = input(4, {
|
|
1651
|
+
...ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {},
|
|
1652
|
+
transform: numberAttribute
|
|
1653
|
+
});
|
|
1654
|
+
maxlength = input(null, {
|
|
1655
|
+
...ngDevMode ? { debugName: "maxlength" } : /* istanbul ignore next */ {},
|
|
1656
|
+
transform: (v) => v === null || v === void 0 || v === "" ? null : numberAttribute(v)
|
|
1657
|
+
});
|
|
1658
|
+
disabled = input(false, {
|
|
1659
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1660
|
+
transform: booleanAttribute
|
|
1661
|
+
});
|
|
1662
|
+
id = `zur-textarea-${nextId$3++}`;
|
|
1663
|
+
value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
1664
|
+
cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
|
|
1665
|
+
onChange = () => {};
|
|
1666
|
+
onTouched = () => {};
|
|
1667
|
+
describedBy = computed(() => {
|
|
1668
|
+
const ids = [];
|
|
1669
|
+
if (this.error()) ids.push(`${this.id}-error`);
|
|
1670
|
+
else if (this.hint()) ids.push(`${this.id}-hint`);
|
|
1671
|
+
if (this.maxlength()) ids.push(`${this.id}-count`);
|
|
1672
|
+
return ids.length ? ids.join(" ") : null;
|
|
1673
|
+
}, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
1674
|
+
isDisabled() {
|
|
1675
|
+
return this.disabled() || this.cvaDisabled();
|
|
1676
|
+
}
|
|
1677
|
+
onInput(event) {
|
|
1678
|
+
const next = event.target.value;
|
|
1679
|
+
this.value.set(next);
|
|
1680
|
+
this.onChange(next);
|
|
1681
|
+
}
|
|
1682
|
+
writeValue(value) {
|
|
1683
|
+
this.value.set(value ?? "");
|
|
1684
|
+
}
|
|
1685
|
+
registerOnChange(fn) {
|
|
1686
|
+
this.onChange = fn;
|
|
1687
|
+
}
|
|
1688
|
+
registerOnTouched(fn) {
|
|
1689
|
+
this.onTouched = fn;
|
|
1690
|
+
}
|
|
1691
|
+
setDisabledState(isDisabled) {
|
|
1692
|
+
this.cvaDisabled.set(isDisabled);
|
|
1693
|
+
}
|
|
1694
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1695
|
+
minVersion: "12.0.0",
|
|
1696
|
+
version: "22.2.6",
|
|
1697
|
+
ngImport: i0,
|
|
1698
|
+
type: ZurTextarea,
|
|
1699
|
+
deps: [],
|
|
1700
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1701
|
+
});
|
|
1702
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1703
|
+
minVersion: "17.0.0",
|
|
1704
|
+
version: "22.2.6",
|
|
1705
|
+
type: ZurTextarea,
|
|
1706
|
+
isStandalone: true,
|
|
1707
|
+
selector: "zur-textarea",
|
|
1708
|
+
inputs: {
|
|
1709
|
+
label: {
|
|
1710
|
+
classPropertyName: "label",
|
|
1711
|
+
publicName: "label",
|
|
1712
|
+
isSignal: true,
|
|
1713
|
+
isRequired: false,
|
|
1714
|
+
transformFunction: null
|
|
1715
|
+
},
|
|
1716
|
+
placeholder: {
|
|
1717
|
+
classPropertyName: "placeholder",
|
|
1718
|
+
publicName: "placeholder",
|
|
1719
|
+
isSignal: true,
|
|
1720
|
+
isRequired: false,
|
|
1721
|
+
transformFunction: null
|
|
1722
|
+
},
|
|
1723
|
+
hint: {
|
|
1724
|
+
classPropertyName: "hint",
|
|
1725
|
+
publicName: "hint",
|
|
1726
|
+
isSignal: true,
|
|
1727
|
+
isRequired: false,
|
|
1728
|
+
transformFunction: null
|
|
1729
|
+
},
|
|
1730
|
+
error: {
|
|
1731
|
+
classPropertyName: "error",
|
|
1732
|
+
publicName: "error",
|
|
1733
|
+
isSignal: true,
|
|
1734
|
+
isRequired: false,
|
|
1735
|
+
transformFunction: null
|
|
1736
|
+
},
|
|
1737
|
+
rows: {
|
|
1738
|
+
classPropertyName: "rows",
|
|
1739
|
+
publicName: "rows",
|
|
1740
|
+
isSignal: true,
|
|
1741
|
+
isRequired: false,
|
|
1742
|
+
transformFunction: null
|
|
1743
|
+
},
|
|
1744
|
+
maxlength: {
|
|
1745
|
+
classPropertyName: "maxlength",
|
|
1746
|
+
publicName: "maxlength",
|
|
1747
|
+
isSignal: true,
|
|
1748
|
+
isRequired: false,
|
|
1749
|
+
transformFunction: null
|
|
1750
|
+
},
|
|
1751
|
+
disabled: {
|
|
1752
|
+
classPropertyName: "disabled",
|
|
1753
|
+
publicName: "disabled",
|
|
1754
|
+
isSignal: true,
|
|
1755
|
+
isRequired: false,
|
|
1756
|
+
transformFunction: null
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1759
|
+
providers: [{
|
|
1760
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1761
|
+
useExisting: forwardRef(() => ZurTextarea),
|
|
1762
|
+
multi: true
|
|
1763
|
+
}],
|
|
1764
|
+
ngImport: i0,
|
|
1765
|
+
template: `
|
|
1766
|
+
@if (label()) {
|
|
1767
|
+
<label class="label" [for]="id">{{ label() }}</label>
|
|
1768
|
+
}
|
|
1769
|
+
<textarea
|
|
1770
|
+
[id]="id"
|
|
1771
|
+
class="field"
|
|
1772
|
+
[class.has-error]="!!error()"
|
|
1773
|
+
[rows]="rows()"
|
|
1774
|
+
[placeholder]="placeholder()"
|
|
1775
|
+
[attr.maxlength]="maxlength()"
|
|
1776
|
+
[value]="value()"
|
|
1777
|
+
[disabled]="isDisabled()"
|
|
1778
|
+
(input)="onInput($event)"
|
|
1779
|
+
(blur)="onTouched()"
|
|
1780
|
+
[attr.aria-invalid]="error() ? true : null"
|
|
1781
|
+
[attr.aria-describedby]="describedBy()"
|
|
1782
|
+
></textarea>
|
|
1783
|
+
<div class="foot">
|
|
1784
|
+
@if (error()) {
|
|
1785
|
+
<p class="help error" [id]="id + '-error'">{{ error() }}</p>
|
|
1786
|
+
} @else if (hint()) {
|
|
1787
|
+
<p class="help" [id]="id + '-hint'">{{ hint() }}</p>
|
|
1788
|
+
}
|
|
1789
|
+
@if (maxlength()) {
|
|
1790
|
+
<span class="count" aria-hidden="true">{{ value().length }}/{{ maxlength() }}</span>
|
|
1791
|
+
<span class="sr-only" [id]="id + '-count'">{{ i18n.characterCount(value().length, maxlength()!) }}</span>
|
|
1792
|
+
}
|
|
1793
|
+
</div>
|
|
1794
|
+
`,
|
|
1795
|
+
isInline: true,
|
|
1796
|
+
styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.field{display:block;width:100%;box-sizing:border-box;min-height:var(--zur-control-height-lg);padding:var(--zur-space-sm) 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);resize:vertical;transition:border-color .12s ease}.field::placeholder{color:var(--zur-muted)}.field:focus{outline:none;border:2px solid var(--zur-ink);padding:calc(var(--zur-space-sm) - 1px) 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)}.foot{display:flex;justify-content:space-between;gap:var(--zur-space-sm)}.help,.count{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-caption);color:var(--zur-muted)}.help.error{color:var(--zur-error-text)}.count{margin-left:auto;font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"],
|
|
1797
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1798
|
+
});
|
|
1799
|
+
};
|
|
1800
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1801
|
+
minVersion: "12.0.0",
|
|
1802
|
+
version: "22.2.6",
|
|
1803
|
+
ngImport: i0,
|
|
1804
|
+
type: ZurTextarea,
|
|
1805
|
+
decorators: [{
|
|
1806
|
+
type: Component,
|
|
1807
|
+
args: [{
|
|
1808
|
+
selector: "zur-textarea",
|
|
1809
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1810
|
+
providers: [{
|
|
1811
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1812
|
+
useExisting: forwardRef(() => ZurTextarea),
|
|
1813
|
+
multi: true
|
|
1814
|
+
}],
|
|
1815
|
+
template: `
|
|
1816
|
+
@if (label()) {
|
|
1817
|
+
<label class="label" [for]="id">{{ label() }}</label>
|
|
1818
|
+
}
|
|
1819
|
+
<textarea
|
|
1820
|
+
[id]="id"
|
|
1821
|
+
class="field"
|
|
1822
|
+
[class.has-error]="!!error()"
|
|
1823
|
+
[rows]="rows()"
|
|
1824
|
+
[placeholder]="placeholder()"
|
|
1825
|
+
[attr.maxlength]="maxlength()"
|
|
1826
|
+
[value]="value()"
|
|
1827
|
+
[disabled]="isDisabled()"
|
|
1828
|
+
(input)="onInput($event)"
|
|
1829
|
+
(blur)="onTouched()"
|
|
1830
|
+
[attr.aria-invalid]="error() ? true : null"
|
|
1831
|
+
[attr.aria-describedby]="describedBy()"
|
|
1832
|
+
></textarea>
|
|
1833
|
+
<div class="foot">
|
|
1834
|
+
@if (error()) {
|
|
1835
|
+
<p class="help error" [id]="id + '-error'">{{ error() }}</p>
|
|
1836
|
+
} @else if (hint()) {
|
|
1837
|
+
<p class="help" [id]="id + '-hint'">{{ hint() }}</p>
|
|
1838
|
+
}
|
|
1839
|
+
@if (maxlength()) {
|
|
1840
|
+
<span class="count" aria-hidden="true">{{ value().length }}/{{ maxlength() }}</span>
|
|
1841
|
+
<span class="sr-only" [id]="id + '-count'">{{ i18n.characterCount(value().length, maxlength()!) }}</span>
|
|
1842
|
+
}
|
|
1843
|
+
</div>
|
|
1844
|
+
`,
|
|
1845
|
+
styles: [":host{display:block}.label{display:block;font:var(--zur-font-caption);color:var(--zur-ink);margin-bottom:var(--zur-space-xxs)}.field{display:block;width:100%;box-sizing:border-box;min-height:var(--zur-control-height-lg);padding:var(--zur-space-sm) 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);resize:vertical;transition:border-color .12s ease}.field::placeholder{color:var(--zur-muted)}.field:focus{outline:none;border:2px solid var(--zur-ink);padding:calc(var(--zur-space-sm) - 1px) 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)}.foot{display:flex;justify-content:space-between;gap:var(--zur-space-sm)}.help,.count{margin:var(--zur-space-xxs) 0 0;font:var(--zur-font-caption);color:var(--zur-muted)}.help.error{color:var(--zur-error-text)}.count{margin-left:auto;font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"]
|
|
1846
|
+
}]
|
|
1847
|
+
}],
|
|
1848
|
+
propDecorators: {
|
|
1849
|
+
label: [{
|
|
1850
|
+
type: i0.Input,
|
|
1851
|
+
args: [{
|
|
1852
|
+
isSignal: true,
|
|
1853
|
+
alias: "label",
|
|
1854
|
+
required: false
|
|
1855
|
+
}]
|
|
1856
|
+
}],
|
|
1857
|
+
placeholder: [{
|
|
1858
|
+
type: i0.Input,
|
|
1859
|
+
args: [{
|
|
1860
|
+
isSignal: true,
|
|
1861
|
+
alias: "placeholder",
|
|
1862
|
+
required: false
|
|
1863
|
+
}]
|
|
1864
|
+
}],
|
|
1865
|
+
hint: [{
|
|
1866
|
+
type: i0.Input,
|
|
1867
|
+
args: [{
|
|
1868
|
+
isSignal: true,
|
|
1869
|
+
alias: "hint",
|
|
1870
|
+
required: false
|
|
1871
|
+
}]
|
|
1872
|
+
}],
|
|
1873
|
+
error: [{
|
|
1874
|
+
type: i0.Input,
|
|
1875
|
+
args: [{
|
|
1876
|
+
isSignal: true,
|
|
1877
|
+
alias: "error",
|
|
1878
|
+
required: false
|
|
1879
|
+
}]
|
|
1880
|
+
}],
|
|
1881
|
+
rows: [{
|
|
1882
|
+
type: i0.Input,
|
|
1883
|
+
args: [{
|
|
1884
|
+
isSignal: true,
|
|
1885
|
+
alias: "rows",
|
|
1886
|
+
required: false
|
|
1887
|
+
}]
|
|
1888
|
+
}],
|
|
1889
|
+
maxlength: [{
|
|
1890
|
+
type: i0.Input,
|
|
1891
|
+
args: [{
|
|
1892
|
+
isSignal: true,
|
|
1893
|
+
alias: "maxlength",
|
|
1894
|
+
required: false
|
|
1895
|
+
}]
|
|
1896
|
+
}],
|
|
1897
|
+
disabled: [{
|
|
1898
|
+
type: i0.Input,
|
|
1899
|
+
args: [{
|
|
1900
|
+
isSignal: true,
|
|
1901
|
+
alias: "disabled",
|
|
1902
|
+
required: false
|
|
1903
|
+
}]
|
|
1904
|
+
}]
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1584
1907
|
var ZurNavbar = class ZurNavbar {
|
|
1585
1908
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1586
1909
|
minVersion: "12.0.0",
|
|
@@ -1922,6 +2245,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1922
2245
|
}]
|
|
1923
2246
|
});
|
|
1924
2247
|
var ZurBreadcrumb = class ZurBreadcrumb {
|
|
2248
|
+
i18n = inject(ZUR_I18N);
|
|
1925
2249
|
items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
1926
2250
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1927
2251
|
minVersion: "12.0.0",
|
|
@@ -1946,7 +2270,7 @@ var ZurBreadcrumb = class ZurBreadcrumb {
|
|
|
1946
2270
|
} },
|
|
1947
2271
|
ngImport: i0,
|
|
1948
2272
|
template: `
|
|
1949
|
-
<nav aria-label="breadcrumb">
|
|
2273
|
+
<nav [attr.aria-label]="i18n.breadcrumb">
|
|
1950
2274
|
<ol class="list">
|
|
1951
2275
|
@for (item of items(); track item.label; let last = $last) {
|
|
1952
2276
|
<li class="item">
|
|
@@ -1981,7 +2305,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1981
2305
|
selector: "zur-breadcrumb",
|
|
1982
2306
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1983
2307
|
template: `
|
|
1984
|
-
<nav aria-label="breadcrumb">
|
|
2308
|
+
<nav [attr.aria-label]="i18n.breadcrumb">
|
|
1985
2309
|
<ol class="list">
|
|
1986
2310
|
@for (item of items(); track item.label; let last = $last) {
|
|
1987
2311
|
<li class="item">
|
|
@@ -2185,241 +2509,131 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2185
2509
|
}]
|
|
2186
2510
|
}]
|
|
2187
2511
|
});
|
|
2188
|
-
var
|
|
2189
|
-
|
|
2190
|
-
|
|
2512
|
+
var ZurTable = class ZurTable {
|
|
2513
|
+
density = input("comfortable", ...ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []);
|
|
2514
|
+
sortChange = output();
|
|
2515
|
+
sort = signal(null, ...ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []);
|
|
2516
|
+
toggleSort(key) {
|
|
2517
|
+
const current = this.sort();
|
|
2518
|
+
const next = {
|
|
2519
|
+
key,
|
|
2520
|
+
direction: current?.key === key && current.direction === "asc" ? "desc" : "asc"
|
|
2521
|
+
};
|
|
2522
|
+
this.sort.set(next);
|
|
2523
|
+
this.sortChange.emit(next);
|
|
2524
|
+
}
|
|
2191
2525
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2192
2526
|
minVersion: "12.0.0",
|
|
2193
2527
|
version: "22.2.6",
|
|
2194
2528
|
ngImport: i0,
|
|
2195
|
-
type:
|
|
2529
|
+
type: ZurTable,
|
|
2196
2530
|
deps: [],
|
|
2197
2531
|
target: i0.ɵɵFactoryTarget.Component
|
|
2198
2532
|
});
|
|
2199
2533
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2200
2534
|
minVersion: "17.1.0",
|
|
2201
2535
|
version: "22.2.6",
|
|
2202
|
-
type:
|
|
2536
|
+
type: ZurTable,
|
|
2203
2537
|
isStandalone: true,
|
|
2204
|
-
selector: "zur-
|
|
2205
|
-
inputs: {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
isSignal: true,
|
|
2217
|
-
isRequired: true,
|
|
2218
|
-
transformFunction: null
|
|
2219
|
-
}
|
|
2538
|
+
selector: "table[zur-table]",
|
|
2539
|
+
inputs: { density: {
|
|
2540
|
+
classPropertyName: "density",
|
|
2541
|
+
publicName: "density",
|
|
2542
|
+
isSignal: true,
|
|
2543
|
+
isRequired: false,
|
|
2544
|
+
transformFunction: null
|
|
2545
|
+
} },
|
|
2546
|
+
outputs: { sortChange: "sortChange" },
|
|
2547
|
+
host: {
|
|
2548
|
+
properties: { "attr.data-density": "density()" },
|
|
2549
|
+
classAttribute: "zur-table"
|
|
2220
2550
|
},
|
|
2221
2551
|
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
|
-
`,
|
|
2552
|
+
template: `<ng-content />`,
|
|
2229
2553
|
isInline: true,
|
|
2230
|
-
styles: ["
|
|
2231
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2554
|
+
styles: ["table.zur-table{width:100%;border-collapse:collapse;font:var(--zur-font-body-sm);color:var(--zur-body)}table.zur-table th,table.zur-table td{padding:var(--zur-space-sm) var(--zur-space-md);text-align:left;border-bottom:1px solid var(--zur-hairline-soft)}table.zur-table[data-density=compact] th,table.zur-table[data-density=compact] td{padding:var(--zur-space-xs) var(--zur-space-sm)}table.zur-table thead th{font:var(--zur-font-caption);color:var(--zur-muted);text-transform:uppercase;letter-spacing:.4px;border-bottom-color:var(--zur-hairline);white-space:nowrap}table.zur-table tbody tr{transition:background-color .12s ease}table.zur-table tbody tr:hover{background:var(--zur-surface-soft)}table.zur-table tbody td{color:var(--zur-ink)}table.zur-table .zur-sort{display:inline-flex;align-items:center;gap:var(--zur-space-xxs);padding:0;border:0;background:none;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}table.zur-table .zur-sort:hover{color:var(--zur-ink)}table.zur-table .zur-sort:focus-visible{outline:none;border-radius:var(--zur-radius-xs);box-shadow:var(--zur-focus-ring)}table.zur-table th[aria-sort=ascending] .zur-sort,table.zur-table th[aria-sort=descending] .zur-sort{color:var(--zur-ink)}\n"],
|
|
2555
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2556
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
2232
2557
|
});
|
|
2233
2558
|
};
|
|
2234
2559
|
i0.ɵɵngDeclareClassMetadata({
|
|
2235
2560
|
minVersion: "12.0.0",
|
|
2236
2561
|
version: "22.2.6",
|
|
2237
2562
|
ngImport: i0,
|
|
2238
|
-
type:
|
|
2563
|
+
type: ZurTable,
|
|
2239
2564
|
decorators: [{
|
|
2240
2565
|
type: Component,
|
|
2241
2566
|
args: [{
|
|
2242
|
-
selector: "zur-
|
|
2567
|
+
selector: "table[zur-table]",
|
|
2243
2568
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
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"]
|
|
2569
|
+
encapsulation: ViewEncapsulation.None,
|
|
2570
|
+
host: {
|
|
2571
|
+
class: "zur-table",
|
|
2572
|
+
"[attr.data-density]": "density()"
|
|
2573
|
+
},
|
|
2574
|
+
template: `<ng-content />`,
|
|
2575
|
+
styles: ["table.zur-table{width:100%;border-collapse:collapse;font:var(--zur-font-body-sm);color:var(--zur-body)}table.zur-table th,table.zur-table td{padding:var(--zur-space-sm) var(--zur-space-md);text-align:left;border-bottom:1px solid var(--zur-hairline-soft)}table.zur-table[data-density=compact] th,table.zur-table[data-density=compact] td{padding:var(--zur-space-xs) var(--zur-space-sm)}table.zur-table thead th{font:var(--zur-font-caption);color:var(--zur-muted);text-transform:uppercase;letter-spacing:.4px;border-bottom-color:var(--zur-hairline);white-space:nowrap}table.zur-table tbody tr{transition:background-color .12s ease}table.zur-table tbody tr:hover{background:var(--zur-surface-soft)}table.zur-table tbody td{color:var(--zur-ink)}table.zur-table .zur-sort{display:inline-flex;align-items:center;gap:var(--zur-space-xxs);padding:0;border:0;background:none;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}table.zur-table .zur-sort:hover{color:var(--zur-ink)}table.zur-table .zur-sort:focus-visible{outline:none;border-radius:var(--zur-radius-xs);box-shadow:var(--zur-focus-ring)}table.zur-table th[aria-sort=ascending] .zur-sort,table.zur-table th[aria-sort=descending] .zur-sort{color:var(--zur-ink)}\n"]
|
|
2252
2576
|
}]
|
|
2253
2577
|
}],
|
|
2254
2578
|
propDecorators: {
|
|
2255
|
-
|
|
2579
|
+
density: [{
|
|
2256
2580
|
type: i0.Input,
|
|
2257
2581
|
args: [{
|
|
2258
2582
|
isSignal: true,
|
|
2259
|
-
alias: "
|
|
2260
|
-
required:
|
|
2583
|
+
alias: "density",
|
|
2584
|
+
required: false
|
|
2261
2585
|
}]
|
|
2262
2586
|
}],
|
|
2263
|
-
|
|
2264
|
-
type: i0.
|
|
2265
|
-
args: [
|
|
2266
|
-
isSignal: true,
|
|
2267
|
-
alias: "title",
|
|
2268
|
-
required: true
|
|
2269
|
-
}]
|
|
2587
|
+
sortChange: [{
|
|
2588
|
+
type: i0.Output,
|
|
2589
|
+
args: ["sortChange"]
|
|
2270
2590
|
}]
|
|
2271
2591
|
}
|
|
2272
2592
|
});
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
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
|
-
}
|
|
2593
|
+
var ZurSortable = class ZurSortable {
|
|
2594
|
+
table = inject(ZurTable);
|
|
2595
|
+
zurSortable = input.required(...ngDevMode ? [{ debugName: "zurSortable" }] : /* istanbul ignore next */ []);
|
|
2596
|
+
ariaSort = computed(() => {
|
|
2597
|
+
const s = this.table.sort();
|
|
2598
|
+
if (!s || s.key !== this.zurSortable()) return "none";
|
|
2599
|
+
return s.direction === "asc" ? "ascending" : "descending";
|
|
2600
|
+
}, ...ngDevMode ? [{ debugName: "ariaSort" }] : /* istanbul ignore next */ []);
|
|
2376
2601
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2377
2602
|
minVersion: "12.0.0",
|
|
2378
2603
|
version: "22.2.6",
|
|
2379
2604
|
ngImport: i0,
|
|
2380
|
-
type:
|
|
2605
|
+
type: ZurSortable,
|
|
2381
2606
|
deps: [],
|
|
2382
2607
|
target: i0.ɵɵFactoryTarget.Component
|
|
2383
2608
|
});
|
|
2384
2609
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2385
2610
|
minVersion: "17.0.0",
|
|
2386
2611
|
version: "22.2.6",
|
|
2387
|
-
type:
|
|
2612
|
+
type: ZurSortable,
|
|
2388
2613
|
isStandalone: true,
|
|
2389
|
-
selector: "
|
|
2390
|
-
inputs: {
|
|
2391
|
-
classPropertyName: "
|
|
2392
|
-
publicName: "
|
|
2614
|
+
selector: "th[zurSortable]",
|
|
2615
|
+
inputs: { zurSortable: {
|
|
2616
|
+
classPropertyName: "zurSortable",
|
|
2617
|
+
publicName: "zurSortable",
|
|
2393
2618
|
isSignal: true,
|
|
2394
|
-
isRequired:
|
|
2619
|
+
isRequired: true,
|
|
2395
2620
|
transformFunction: null
|
|
2396
2621
|
} },
|
|
2397
|
-
host: {
|
|
2398
|
-
attributes: { "role": "banner" },
|
|
2399
|
-
listeners: { "window:scroll": "onScroll()" },
|
|
2400
|
-
properties: { "attr.data-hidden": "hidden()" }
|
|
2401
|
-
},
|
|
2622
|
+
host: { properties: { "attr.aria-sort": "ariaSort()" } },
|
|
2402
2623
|
ngImport: i0,
|
|
2403
2624
|
template: `
|
|
2404
|
-
|
|
2405
|
-
<
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
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>
|
|
2625
|
+
<button type="button" class="zur-sort" (click)="table.toggleSort(zurSortable())">
|
|
2626
|
+
<ng-content />
|
|
2627
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
2628
|
+
@switch (ariaSort()) {
|
|
2629
|
+
@case ('ascending') { <path d="m6 15 6-6 6 6" /> }
|
|
2630
|
+
@case ('descending') { <path d="m6 9 6 6 6-6" /> }
|
|
2631
|
+
@default { <path d="m8 10 4-4 4 4M8 14l4 4 4-4" /> }
|
|
2632
|
+
}
|
|
2633
|
+
</svg>
|
|
2634
|
+
</button>
|
|
2420
2635
|
`,
|
|
2421
2636
|
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
2637
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2424
2638
|
});
|
|
2425
2639
|
};
|
|
@@ -2427,95 +2641,153 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2427
2641
|
minVersion: "12.0.0",
|
|
2428
2642
|
version: "22.2.6",
|
|
2429
2643
|
ngImport: i0,
|
|
2430
|
-
type:
|
|
2644
|
+
type: ZurSortable,
|
|
2431
2645
|
decorators: [{
|
|
2432
2646
|
type: Component,
|
|
2433
2647
|
args: [{
|
|
2434
|
-
selector: "
|
|
2648
|
+
selector: "th[zurSortable]",
|
|
2435
2649
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2436
|
-
host: {
|
|
2437
|
-
role: "banner",
|
|
2438
|
-
"[attr.data-hidden]": "hidden()",
|
|
2439
|
-
"(window:scroll)": "onScroll()"
|
|
2440
|
-
},
|
|
2650
|
+
host: { "[attr.aria-sort]": "ariaSort()" },
|
|
2441
2651
|
template: `
|
|
2442
|
-
|
|
2443
|
-
<
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
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"]
|
|
2652
|
+
<button type="button" class="zur-sort" (click)="table.toggleSort(zurSortable())">
|
|
2653
|
+
<ng-content />
|
|
2654
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
2655
|
+
@switch (ariaSort()) {
|
|
2656
|
+
@case ('ascending') { <path d="m6 15 6-6 6 6" /> }
|
|
2657
|
+
@case ('descending') { <path d="m6 9 6 6 6-6" /> }
|
|
2658
|
+
@default { <path d="m8 10 4-4 4 4M8 14l4 4 4-4" /> }
|
|
2659
|
+
}
|
|
2660
|
+
</svg>
|
|
2661
|
+
</button>
|
|
2662
|
+
`
|
|
2460
2663
|
}]
|
|
2461
2664
|
}],
|
|
2462
|
-
propDecorators: {
|
|
2665
|
+
propDecorators: { zurSortable: [{
|
|
2463
2666
|
type: i0.Input,
|
|
2464
2667
|
args: [{
|
|
2465
2668
|
isSignal: true,
|
|
2466
|
-
alias: "
|
|
2467
|
-
required:
|
|
2669
|
+
alias: "zurSortable",
|
|
2670
|
+
required: true
|
|
2468
2671
|
}]
|
|
2469
2672
|
}] }
|
|
2470
2673
|
});
|
|
2471
|
-
var
|
|
2472
|
-
|
|
2473
|
-
|
|
2674
|
+
var ZurPagination = class ZurPagination {
|
|
2675
|
+
i18n = inject(ZUR_I18N);
|
|
2676
|
+
page = model(1, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
2677
|
+
total = input.required(...ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []);
|
|
2678
|
+
pageSize = input(10, ...ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []);
|
|
2679
|
+
siblings = input(1, ...ngDevMode ? [{ debugName: "siblings" }] : /* istanbul ignore next */ []);
|
|
2680
|
+
pageCount = computed(() => Math.max(1, Math.ceil(this.total() / Math.max(1, this.pageSize()))), ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
2681
|
+
items = computed(() => {
|
|
2682
|
+
const count = this.pageCount();
|
|
2683
|
+
const current = Math.min(Math.max(this.page(), 1), count);
|
|
2684
|
+
const s = this.siblings();
|
|
2685
|
+
const start = Math.max(2, current - s);
|
|
2686
|
+
const end = Math.min(count - 1, current + s);
|
|
2687
|
+
const pages = [1];
|
|
2688
|
+
if (start > 2) pages.push("gap");
|
|
2689
|
+
for (let p = start; p <= end; p++) pages.push(p);
|
|
2690
|
+
if (end < count - 1) pages.push("gap");
|
|
2691
|
+
if (count > 1) pages.push(count);
|
|
2692
|
+
return pages;
|
|
2693
|
+
}, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
2694
|
+
go(p) {
|
|
2695
|
+
const next = Math.min(Math.max(p, 1), this.pageCount());
|
|
2696
|
+
if (next !== this.page()) this.page.set(next);
|
|
2697
|
+
}
|
|
2474
2698
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2475
2699
|
minVersion: "12.0.0",
|
|
2476
2700
|
version: "22.2.6",
|
|
2477
2701
|
ngImport: i0,
|
|
2478
|
-
type:
|
|
2702
|
+
type: ZurPagination,
|
|
2479
2703
|
deps: [],
|
|
2480
2704
|
target: i0.ɵɵFactoryTarget.Component
|
|
2481
2705
|
});
|
|
2482
2706
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2483
2707
|
minVersion: "17.0.0",
|
|
2484
2708
|
version: "22.2.6",
|
|
2485
|
-
type:
|
|
2709
|
+
type: ZurPagination,
|
|
2486
2710
|
isStandalone: true,
|
|
2487
|
-
selector: "zur-
|
|
2711
|
+
selector: "zur-pagination",
|
|
2488
2712
|
inputs: {
|
|
2489
|
-
|
|
2490
|
-
classPropertyName: "
|
|
2491
|
-
publicName: "
|
|
2713
|
+
page: {
|
|
2714
|
+
classPropertyName: "page",
|
|
2715
|
+
publicName: "page",
|
|
2716
|
+
isSignal: true,
|
|
2717
|
+
isRequired: false,
|
|
2718
|
+
transformFunction: null
|
|
2719
|
+
},
|
|
2720
|
+
total: {
|
|
2721
|
+
classPropertyName: "total",
|
|
2722
|
+
publicName: "total",
|
|
2492
2723
|
isSignal: true,
|
|
2493
2724
|
isRequired: true,
|
|
2494
2725
|
transformFunction: null
|
|
2495
2726
|
},
|
|
2496
|
-
|
|
2497
|
-
classPropertyName: "
|
|
2498
|
-
publicName: "
|
|
2727
|
+
pageSize: {
|
|
2728
|
+
classPropertyName: "pageSize",
|
|
2729
|
+
publicName: "pageSize",
|
|
2730
|
+
isSignal: true,
|
|
2731
|
+
isRequired: false,
|
|
2732
|
+
transformFunction: null
|
|
2733
|
+
},
|
|
2734
|
+
siblings: {
|
|
2735
|
+
classPropertyName: "siblings",
|
|
2736
|
+
publicName: "siblings",
|
|
2499
2737
|
isSignal: true,
|
|
2500
2738
|
isRequired: false,
|
|
2501
2739
|
transformFunction: null
|
|
2502
2740
|
}
|
|
2503
2741
|
},
|
|
2742
|
+
outputs: { page: "pageChange" },
|
|
2504
2743
|
ngImport: i0,
|
|
2505
2744
|
template: `
|
|
2506
|
-
<
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2745
|
+
<nav [attr.aria-label]="i18n.pagination">
|
|
2746
|
+
<ul class="list">
|
|
2747
|
+
<li>
|
|
2748
|
+
<button
|
|
2749
|
+
type="button"
|
|
2750
|
+
class="item nav"
|
|
2751
|
+
[disabled]="page() <= 1"
|
|
2752
|
+
[attr.aria-label]="i18n.previousPage"
|
|
2753
|
+
(click)="go(page() - 1)"
|
|
2754
|
+
>
|
|
2755
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6" /></svg>
|
|
2756
|
+
</button>
|
|
2757
|
+
</li>
|
|
2758
|
+
@for (item of items(); track $index) {
|
|
2759
|
+
<li>
|
|
2760
|
+
@if (item === 'gap') {
|
|
2761
|
+
<span class="gap" aria-hidden="true">…</span>
|
|
2762
|
+
} @else {
|
|
2763
|
+
<button
|
|
2764
|
+
type="button"
|
|
2765
|
+
class="item"
|
|
2766
|
+
[attr.aria-label]="i18n.page(item)"
|
|
2767
|
+
[attr.aria-current]="item === page() ? 'page' : null"
|
|
2768
|
+
(click)="go(item)"
|
|
2769
|
+
>
|
|
2770
|
+
{{ item }}
|
|
2771
|
+
</button>
|
|
2772
|
+
}
|
|
2773
|
+
</li>
|
|
2512
2774
|
}
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2775
|
+
<li>
|
|
2776
|
+
<button
|
|
2777
|
+
type="button"
|
|
2778
|
+
class="item nav"
|
|
2779
|
+
[disabled]="page() >= pageCount()"
|
|
2780
|
+
[attr.aria-label]="i18n.nextPage"
|
|
2781
|
+
(click)="go(page() + 1)"
|
|
2782
|
+
>
|
|
2783
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6" /></svg>
|
|
2784
|
+
</button>
|
|
2785
|
+
</li>
|
|
2786
|
+
</ul>
|
|
2787
|
+
</nav>
|
|
2516
2788
|
`,
|
|
2517
2789
|
isInline: true,
|
|
2518
|
-
styles: [":host{display:flex;flex-
|
|
2790
|
+
styles: [":host{display:block}.list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--zur-space-xxs);margin:0;padding:0;list-style:none}.item{min-width:36px;height:36px;padding:0 var(--zur-space-xs);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);font:var(--zur-font-body-sm);font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .12s ease}.item:hover:not(:disabled){background:var(--zur-surface-strong)}.item:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.item[aria-current=page]{background:var(--zur-primary);color:var(--zur-on-primary)}.item:disabled{color:var(--zur-muted);cursor:not-allowed;opacity:.6}.nav{border-color:var(--zur-hairline)}.gap{min-width:24px;text-align:center;color:var(--zur-muted)}\n"],
|
|
2519
2791
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2520
2792
|
});
|
|
2521
2793
|
};
|
|
@@ -2523,69 +2795,151 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2523
2795
|
minVersion: "12.0.0",
|
|
2524
2796
|
version: "22.2.6",
|
|
2525
2797
|
ngImport: i0,
|
|
2526
|
-
type:
|
|
2798
|
+
type: ZurPagination,
|
|
2527
2799
|
decorators: [{
|
|
2528
2800
|
type: Component,
|
|
2529
2801
|
args: [{
|
|
2530
|
-
selector: "zur-
|
|
2802
|
+
selector: "zur-pagination",
|
|
2531
2803
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2532
2804
|
template: `
|
|
2533
|
-
<
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2805
|
+
<nav [attr.aria-label]="i18n.pagination">
|
|
2806
|
+
<ul class="list">
|
|
2807
|
+
<li>
|
|
2808
|
+
<button
|
|
2809
|
+
type="button"
|
|
2810
|
+
class="item nav"
|
|
2811
|
+
[disabled]="page() <= 1"
|
|
2812
|
+
[attr.aria-label]="i18n.previousPage"
|
|
2813
|
+
(click)="go(page() - 1)"
|
|
2814
|
+
>
|
|
2815
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6" /></svg>
|
|
2816
|
+
</button>
|
|
2817
|
+
</li>
|
|
2818
|
+
@for (item of items(); track $index) {
|
|
2819
|
+
<li>
|
|
2820
|
+
@if (item === 'gap') {
|
|
2821
|
+
<span class="gap" aria-hidden="true">…</span>
|
|
2822
|
+
} @else {
|
|
2823
|
+
<button
|
|
2824
|
+
type="button"
|
|
2825
|
+
class="item"
|
|
2826
|
+
[attr.aria-label]="i18n.page(item)"
|
|
2827
|
+
[attr.aria-current]="item === page() ? 'page' : null"
|
|
2828
|
+
(click)="go(item)"
|
|
2829
|
+
>
|
|
2830
|
+
{{ item }}
|
|
2831
|
+
</button>
|
|
2832
|
+
}
|
|
2833
|
+
</li>
|
|
2539
2834
|
}
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2835
|
+
<li>
|
|
2836
|
+
<button
|
|
2837
|
+
type="button"
|
|
2838
|
+
class="item nav"
|
|
2839
|
+
[disabled]="page() >= pageCount()"
|
|
2840
|
+
[attr.aria-label]="i18n.nextPage"
|
|
2841
|
+
(click)="go(page() + 1)"
|
|
2842
|
+
>
|
|
2843
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6" /></svg>
|
|
2844
|
+
</button>
|
|
2845
|
+
</li>
|
|
2846
|
+
</ul>
|
|
2847
|
+
</nav>
|
|
2543
2848
|
`,
|
|
2544
|
-
styles: [":host{display:flex;flex-
|
|
2849
|
+
styles: [":host{display:block}.list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--zur-space-xxs);margin:0;padding:0;list-style:none}.item{min-width:36px;height:36px;padding:0 var(--zur-space-xs);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--zur-radius-sm);background:transparent;color:var(--zur-ink);font:var(--zur-font-body-sm);font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .12s ease}.item:hover:not(:disabled){background:var(--zur-surface-strong)}.item:focus-visible{outline:none;box-shadow:var(--zur-focus-ring)}.item[aria-current=page]{background:var(--zur-primary);color:var(--zur-on-primary)}.item:disabled{color:var(--zur-muted);cursor:not-allowed;opacity:.6}.nav{border-color:var(--zur-hairline)}.gap{min-width:24px;text-align:center;color:var(--zur-muted)}\n"]
|
|
2545
2850
|
}]
|
|
2546
2851
|
}],
|
|
2547
2852
|
propDecorators: {
|
|
2548
|
-
|
|
2853
|
+
page: [{
|
|
2549
2854
|
type: i0.Input,
|
|
2550
2855
|
args: [{
|
|
2551
2856
|
isSignal: true,
|
|
2552
|
-
alias: "
|
|
2553
|
-
required:
|
|
2857
|
+
alias: "page",
|
|
2858
|
+
required: false
|
|
2554
2859
|
}]
|
|
2555
|
-
}
|
|
2556
|
-
|
|
2860
|
+
}, {
|
|
2861
|
+
type: i0.Output,
|
|
2862
|
+
args: ["pageChange"]
|
|
2863
|
+
}],
|
|
2864
|
+
total: [{
|
|
2557
2865
|
type: i0.Input,
|
|
2558
2866
|
args: [{
|
|
2559
2867
|
isSignal: true,
|
|
2560
|
-
alias: "
|
|
2868
|
+
alias: "total",
|
|
2869
|
+
required: true
|
|
2870
|
+
}]
|
|
2871
|
+
}],
|
|
2872
|
+
pageSize: [{
|
|
2873
|
+
type: i0.Input,
|
|
2874
|
+
args: [{
|
|
2875
|
+
isSignal: true,
|
|
2876
|
+
alias: "pageSize",
|
|
2877
|
+
required: false
|
|
2878
|
+
}]
|
|
2879
|
+
}],
|
|
2880
|
+
siblings: [{
|
|
2881
|
+
type: i0.Input,
|
|
2882
|
+
args: [{
|
|
2883
|
+
isSignal: true,
|
|
2884
|
+
alias: "siblings",
|
|
2561
2885
|
required: false
|
|
2562
2886
|
}]
|
|
2563
2887
|
}]
|
|
2564
2888
|
}
|
|
2565
2889
|
});
|
|
2566
|
-
|
|
2890
|
+
let nextId$2 = 0;
|
|
2891
|
+
var ZurAccordion = class ZurAccordion {
|
|
2892
|
+
host = inject(ElementRef);
|
|
2893
|
+
multi = input(false, {
|
|
2894
|
+
...ngDevMode ? { debugName: "multi" } : /* istanbul ignore next */ {},
|
|
2895
|
+
transform: booleanAttribute
|
|
2896
|
+
});
|
|
2897
|
+
items = contentChildren(forwardRef(() => ZurAccordionItem), ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
2898
|
+
itemOpened(opened) {
|
|
2899
|
+
if (this.multi()) return;
|
|
2900
|
+
for (const item of this.items()) if (item !== opened) item.open.set(false);
|
|
2901
|
+
}
|
|
2902
|
+
onKeydown(event) {
|
|
2903
|
+
const headers = Array.from(this.host.nativeElement.querySelectorAll(".zur-accordion-header"));
|
|
2904
|
+
const index = headers.indexOf(event.target);
|
|
2905
|
+
if (index < 0) return;
|
|
2906
|
+
const target = event.key === "ArrowDown" ? headers[(index + 1) % headers.length] : event.key === "ArrowUp" ? headers[(index - 1 + headers.length) % headers.length] : event.key === "Home" ? headers[0] : event.key === "End" ? headers[headers.length - 1] : null;
|
|
2907
|
+
if (target) {
|
|
2908
|
+
event.preventDefault();
|
|
2909
|
+
target.focus();
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2567
2912
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2568
2913
|
minVersion: "12.0.0",
|
|
2569
2914
|
version: "22.2.6",
|
|
2570
2915
|
ngImport: i0,
|
|
2571
|
-
type:
|
|
2916
|
+
type: ZurAccordion,
|
|
2572
2917
|
deps: [],
|
|
2573
2918
|
target: i0.ɵɵFactoryTarget.Component
|
|
2574
2919
|
});
|
|
2575
2920
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2576
|
-
minVersion: "
|
|
2921
|
+
minVersion: "17.2.0",
|
|
2577
2922
|
version: "22.2.6",
|
|
2578
|
-
type:
|
|
2923
|
+
type: ZurAccordion,
|
|
2579
2924
|
isStandalone: true,
|
|
2580
|
-
selector: "zur-
|
|
2581
|
-
|
|
2925
|
+
selector: "zur-accordion",
|
|
2926
|
+
inputs: { multi: {
|
|
2927
|
+
classPropertyName: "multi",
|
|
2928
|
+
publicName: "multi",
|
|
2929
|
+
isSignal: true,
|
|
2930
|
+
isRequired: false,
|
|
2931
|
+
transformFunction: null
|
|
2932
|
+
} },
|
|
2933
|
+
host: { listeners: { "keydown": "onKeydown($event)" } },
|
|
2934
|
+
queries: [{
|
|
2935
|
+
propertyName: "items",
|
|
2936
|
+
predicate: i0.forwardRef(() => ZurAccordionItem),
|
|
2937
|
+
isSignal: true
|
|
2938
|
+
}],
|
|
2582
2939
|
ngImport: i0,
|
|
2583
|
-
template:
|
|
2584
|
-
<div class="left"><ng-content /></div>
|
|
2585
|
-
<nav class="links"><ng-content select="[zurFooterLinks]" /></nav>
|
|
2586
|
-
`,
|
|
2940
|
+
template: `<ng-content />`,
|
|
2587
2941
|
isInline: true,
|
|
2588
|
-
styles: [":host{
|
|
2942
|
+
styles: [":host{display:block;border-top:1px solid var(--zur-hairline)}\n"],
|
|
2589
2943
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2590
2944
|
});
|
|
2591
2945
|
};
|
|
@@ -2593,53 +2947,101 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2593
2947
|
minVersion: "12.0.0",
|
|
2594
2948
|
version: "22.2.6",
|
|
2595
2949
|
ngImport: i0,
|
|
2596
|
-
type:
|
|
2950
|
+
type: ZurAccordion,
|
|
2597
2951
|
decorators: [{
|
|
2598
2952
|
type: Component,
|
|
2599
2953
|
args: [{
|
|
2600
|
-
selector: "zur-
|
|
2954
|
+
selector: "zur-accordion",
|
|
2601
2955
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2602
|
-
host: {
|
|
2603
|
-
template:
|
|
2604
|
-
|
|
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"]
|
|
2956
|
+
host: { "(keydown)": "onKeydown($event)" },
|
|
2957
|
+
template: `<ng-content />`,
|
|
2958
|
+
styles: [":host{display:block;border-top:1px solid var(--zur-hairline)}\n"]
|
|
2608
2959
|
}]
|
|
2609
|
-
}]
|
|
2960
|
+
}],
|
|
2961
|
+
propDecorators: {
|
|
2962
|
+
multi: [{
|
|
2963
|
+
type: i0.Input,
|
|
2964
|
+
args: [{
|
|
2965
|
+
isSignal: true,
|
|
2966
|
+
alias: "multi",
|
|
2967
|
+
required: false
|
|
2968
|
+
}]
|
|
2969
|
+
}],
|
|
2970
|
+
items: [{
|
|
2971
|
+
type: i0.ContentChildren,
|
|
2972
|
+
args: [forwardRef(() => ZurAccordionItem), { isSignal: true }]
|
|
2973
|
+
}]
|
|
2974
|
+
}
|
|
2610
2975
|
});
|
|
2611
|
-
var
|
|
2612
|
-
|
|
2976
|
+
var ZurAccordionItem = class ZurAccordionItem {
|
|
2977
|
+
accordion = inject(ZurAccordion, { optional: true });
|
|
2978
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
2979
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
2980
|
+
id = `zur-accordion-${nextId$2++}`;
|
|
2981
|
+
toggle() {
|
|
2982
|
+
const next = !this.open();
|
|
2983
|
+
this.open.set(next);
|
|
2984
|
+
if (next) this.accordion?.itemOpened(this);
|
|
2985
|
+
}
|
|
2613
2986
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2614
2987
|
minVersion: "12.0.0",
|
|
2615
2988
|
version: "22.2.6",
|
|
2616
2989
|
ngImport: i0,
|
|
2617
|
-
type:
|
|
2990
|
+
type: ZurAccordionItem,
|
|
2618
2991
|
deps: [],
|
|
2619
2992
|
target: i0.ɵɵFactoryTarget.Component
|
|
2620
2993
|
});
|
|
2621
2994
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2622
2995
|
minVersion: "17.1.0",
|
|
2623
2996
|
version: "22.2.6",
|
|
2624
|
-
type:
|
|
2997
|
+
type: ZurAccordionItem,
|
|
2625
2998
|
isStandalone: true,
|
|
2626
|
-
selector: "zur-
|
|
2627
|
-
inputs: {
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2999
|
+
selector: "zur-accordion-item",
|
|
3000
|
+
inputs: {
|
|
3001
|
+
title: {
|
|
3002
|
+
classPropertyName: "title",
|
|
3003
|
+
publicName: "title",
|
|
3004
|
+
isSignal: true,
|
|
3005
|
+
isRequired: true,
|
|
3006
|
+
transformFunction: null
|
|
3007
|
+
},
|
|
3008
|
+
open: {
|
|
3009
|
+
classPropertyName: "open",
|
|
3010
|
+
publicName: "open",
|
|
3011
|
+
isSignal: true,
|
|
3012
|
+
isRequired: false,
|
|
3013
|
+
transformFunction: null
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
outputs: { open: "openChange" },
|
|
3017
|
+
host: { properties: { "attr.data-open": "open() ? \"\" : null" } },
|
|
2635
3018
|
ngImport: i0,
|
|
2636
3019
|
template: `
|
|
2637
|
-
<
|
|
2638
|
-
|
|
2639
|
-
|
|
3020
|
+
<h3 class="heading">
|
|
3021
|
+
<button
|
|
3022
|
+
type="button"
|
|
3023
|
+
class="zur-accordion-header"
|
|
3024
|
+
[id]="id + '-header'"
|
|
3025
|
+
[attr.aria-expanded]="open()"
|
|
3026
|
+
[attr.aria-controls]="id + '-panel'"
|
|
3027
|
+
(click)="toggle()"
|
|
3028
|
+
>
|
|
3029
|
+
<span>{{ title() }}</span>
|
|
3030
|
+
<svg class="chevron" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg>
|
|
3031
|
+
</button>
|
|
3032
|
+
</h3>
|
|
3033
|
+
<div
|
|
3034
|
+
class="panel"
|
|
3035
|
+
role="region"
|
|
3036
|
+
[id]="id + '-panel'"
|
|
3037
|
+
[attr.aria-labelledby]="id + '-header'"
|
|
3038
|
+
[hidden]="!open()"
|
|
3039
|
+
>
|
|
3040
|
+
<ng-content />
|
|
3041
|
+
</div>
|
|
2640
3042
|
`,
|
|
2641
3043
|
isInline: true,
|
|
2642
|
-
styles: [":host(
|
|
3044
|
+
styles: [":host{display:block;border-bottom:1px solid var(--zur-hairline)}.heading{margin:0}.zur-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--zur-space-md);width:100%;padding:var(--zur-space-md) var(--zur-space-xs);border:0;background:none;font:var(--zur-font-body);font-weight:600;color:var(--zur-ink);text-align:left;cursor:pointer}.zur-accordion-header:hover{background:var(--zur-surface-soft)}.zur-accordion-header:focus-visible{outline:none;border-radius:var(--zur-radius-sm);box-shadow:var(--zur-focus-ring)}.chevron{flex-shrink:0;color:var(--zur-muted);transition:transform .2s ease}:host([data-open]) .chevron{transform:rotate(180deg)}.panel{padding:0 var(--zur-space-xs) var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-body)}@media(prefers-reduced-motion:reduce){.chevron{transition:none}}\n"],
|
|
2643
3045
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2644
3046
|
});
|
|
2645
3047
|
};
|
|
@@ -2647,66 +3049,106 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2647
3049
|
minVersion: "12.0.0",
|
|
2648
3050
|
version: "22.2.6",
|
|
2649
3051
|
ngImport: i0,
|
|
2650
|
-
type:
|
|
3052
|
+
type: ZurAccordionItem,
|
|
2651
3053
|
decorators: [{
|
|
2652
3054
|
type: Component,
|
|
2653
3055
|
args: [{
|
|
2654
|
-
selector: "zur-
|
|
3056
|
+
selector: "zur-accordion-item",
|
|
2655
3057
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2656
|
-
host: { "[attr.data-
|
|
3058
|
+
host: { "[attr.data-open]": "open() ? \"\" : null" },
|
|
2657
3059
|
template: `
|
|
2658
|
-
<
|
|
2659
|
-
|
|
2660
|
-
|
|
3060
|
+
<h3 class="heading">
|
|
3061
|
+
<button
|
|
3062
|
+
type="button"
|
|
3063
|
+
class="zur-accordion-header"
|
|
3064
|
+
[id]="id + '-header'"
|
|
3065
|
+
[attr.aria-expanded]="open()"
|
|
3066
|
+
[attr.aria-controls]="id + '-panel'"
|
|
3067
|
+
(click)="toggle()"
|
|
3068
|
+
>
|
|
3069
|
+
<span>{{ title() }}</span>
|
|
3070
|
+
<svg class="chevron" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6" /></svg>
|
|
3071
|
+
</button>
|
|
3072
|
+
</h3>
|
|
3073
|
+
<div
|
|
3074
|
+
class="panel"
|
|
3075
|
+
role="region"
|
|
3076
|
+
[id]="id + '-panel'"
|
|
3077
|
+
[attr.aria-labelledby]="id + '-header'"
|
|
3078
|
+
[hidden]="!open()"
|
|
3079
|
+
>
|
|
3080
|
+
<ng-content />
|
|
3081
|
+
</div>
|
|
2661
3082
|
`,
|
|
2662
|
-
styles: [":host(
|
|
3083
|
+
styles: [":host{display:block;border-bottom:1px solid var(--zur-hairline)}.heading{margin:0}.zur-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--zur-space-md);width:100%;padding:var(--zur-space-md) var(--zur-space-xs);border:0;background:none;font:var(--zur-font-body);font-weight:600;color:var(--zur-ink);text-align:left;cursor:pointer}.zur-accordion-header:hover{background:var(--zur-surface-soft)}.zur-accordion-header:focus-visible{outline:none;border-radius:var(--zur-radius-sm);box-shadow:var(--zur-focus-ring)}.chevron{flex-shrink:0;color:var(--zur-muted);transition:transform .2s ease}:host([data-open]) .chevron{transform:rotate(180deg)}.panel{padding:0 var(--zur-space-xs) var(--zur-space-md);font:var(--zur-font-body);color:var(--zur-body)}@media(prefers-reduced-motion:reduce){.chevron{transition:none}}\n"]
|
|
2663
3084
|
}]
|
|
2664
3085
|
}],
|
|
2665
|
-
propDecorators: {
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
3086
|
+
propDecorators: {
|
|
3087
|
+
title: [{
|
|
3088
|
+
type: i0.Input,
|
|
3089
|
+
args: [{
|
|
3090
|
+
isSignal: true,
|
|
3091
|
+
alias: "title",
|
|
3092
|
+
required: true
|
|
3093
|
+
}]
|
|
3094
|
+
}],
|
|
3095
|
+
open: [{
|
|
3096
|
+
type: i0.Input,
|
|
3097
|
+
args: [{
|
|
3098
|
+
isSignal: true,
|
|
3099
|
+
alias: "open",
|
|
3100
|
+
required: false
|
|
3101
|
+
}]
|
|
3102
|
+
}, {
|
|
3103
|
+
type: i0.Output,
|
|
3104
|
+
args: ["openChange"]
|
|
2671
3105
|
}]
|
|
2672
|
-
}
|
|
3106
|
+
}
|
|
2673
3107
|
});
|
|
2674
|
-
var
|
|
2675
|
-
|
|
3108
|
+
var ZurEmptyState = class ZurEmptyState {
|
|
3109
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
3110
|
+
description = input("", ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
|
|
2676
3111
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2677
3112
|
minVersion: "12.0.0",
|
|
2678
3113
|
version: "22.2.6",
|
|
2679
3114
|
ngImport: i0,
|
|
2680
|
-
type:
|
|
3115
|
+
type: ZurEmptyState,
|
|
2681
3116
|
deps: [],
|
|
2682
3117
|
target: i0.ɵɵFactoryTarget.Component
|
|
2683
3118
|
});
|
|
2684
3119
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2685
|
-
minVersion: "17.
|
|
3120
|
+
minVersion: "17.0.0",
|
|
2686
3121
|
version: "22.2.6",
|
|
2687
|
-
type:
|
|
3122
|
+
type: ZurEmptyState,
|
|
2688
3123
|
isStandalone: true,
|
|
2689
|
-
selector: "zur-
|
|
2690
|
-
inputs: {
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
3124
|
+
selector: "zur-empty-state",
|
|
3125
|
+
inputs: {
|
|
3126
|
+
title: {
|
|
3127
|
+
classPropertyName: "title",
|
|
3128
|
+
publicName: "title",
|
|
3129
|
+
isSignal: true,
|
|
3130
|
+
isRequired: true,
|
|
3131
|
+
transformFunction: null
|
|
3132
|
+
},
|
|
3133
|
+
description: {
|
|
3134
|
+
classPropertyName: "description",
|
|
3135
|
+
publicName: "description",
|
|
3136
|
+
isSignal: true,
|
|
3137
|
+
isRequired: false,
|
|
3138
|
+
transformFunction: null
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
2699
3141
|
ngImport: i0,
|
|
2700
3142
|
template: `
|
|
2701
|
-
<ng-content select="
|
|
2702
|
-
<
|
|
2703
|
-
|
|
2704
|
-
<
|
|
2705
|
-
|
|
2706
|
-
|
|
3143
|
+
<div class="icon" aria-hidden="true"><ng-content select="[zurEmptyIcon]" /></div>
|
|
3144
|
+
<p class="title">{{ title() }}</p>
|
|
3145
|
+
@if (description()) {
|
|
3146
|
+
<p class="description">{{ description() }}</p>
|
|
3147
|
+
}
|
|
3148
|
+
<div class="actions"><ng-content /></div>
|
|
2707
3149
|
`,
|
|
2708
3150
|
isInline: true,
|
|
2709
|
-
styles: [":host
|
|
3151
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--zur-space-xs);padding:var(--zur-space-xxl) var(--zur-space-lg)}.icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:var(--zur-space-xs);border-radius:var(--zur-radius-full);background:var(--zur-primary-soft);color:var(--zur-on-primary-soft)}.icon:empty{display:none}.title{margin:0;font:var(--zur-font-title);color:var(--zur-ink)}.description{margin:0;max-width:420px;font:var(--zur-font-body);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--zur-space-sm);margin-top:var(--zur-space-sm)}.actions:empty{display:none}\n"],
|
|
2710
3152
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2711
3153
|
});
|
|
2712
3154
|
};
|
|
@@ -2714,73 +3156,642 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2714
3156
|
minVersion: "12.0.0",
|
|
2715
3157
|
version: "22.2.6",
|
|
2716
3158
|
ngImport: i0,
|
|
2717
|
-
type:
|
|
3159
|
+
type: ZurEmptyState,
|
|
2718
3160
|
decorators: [{
|
|
2719
3161
|
type: Component,
|
|
2720
3162
|
args: [{
|
|
2721
|
-
selector: "zur-
|
|
3163
|
+
selector: "zur-empty-state",
|
|
2722
3164
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2723
|
-
providers: [ZurShellState],
|
|
2724
|
-
host: { "[attr.data-width]": "width()" },
|
|
2725
3165
|
template: `
|
|
2726
|
-
<ng-content select="
|
|
2727
|
-
<
|
|
2728
|
-
|
|
2729
|
-
<
|
|
2730
|
-
|
|
2731
|
-
|
|
3166
|
+
<div class="icon" aria-hidden="true"><ng-content select="[zurEmptyIcon]" /></div>
|
|
3167
|
+
<p class="title">{{ title() }}</p>
|
|
3168
|
+
@if (description()) {
|
|
3169
|
+
<p class="description">{{ description() }}</p>
|
|
3170
|
+
}
|
|
3171
|
+
<div class="actions"><ng-content /></div>
|
|
2732
3172
|
`,
|
|
2733
|
-
styles: [":host
|
|
3173
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--zur-space-xs);padding:var(--zur-space-xxl) var(--zur-space-lg)}.icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:var(--zur-space-xs);border-radius:var(--zur-radius-full);background:var(--zur-primary-soft);color:var(--zur-on-primary-soft)}.icon:empty{display:none}.title{margin:0;font:var(--zur-font-title);color:var(--zur-ink)}.description{margin:0;max-width:420px;font:var(--zur-font-body);color:var(--zur-body)}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--zur-space-sm);margin-top:var(--zur-space-sm)}.actions:empty{display:none}\n"]
|
|
2734
3174
|
}]
|
|
2735
3175
|
}],
|
|
2736
|
-
propDecorators: {
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
3176
|
+
propDecorators: {
|
|
3177
|
+
title: [{
|
|
3178
|
+
type: i0.Input,
|
|
3179
|
+
args: [{
|
|
3180
|
+
isSignal: true,
|
|
3181
|
+
alias: "title",
|
|
3182
|
+
required: true
|
|
3183
|
+
}]
|
|
3184
|
+
}],
|
|
3185
|
+
description: [{
|
|
3186
|
+
type: i0.Input,
|
|
3187
|
+
args: [{
|
|
3188
|
+
isSignal: true,
|
|
3189
|
+
alias: "description",
|
|
3190
|
+
required: false
|
|
3191
|
+
}]
|
|
2742
3192
|
}]
|
|
2743
|
-
}
|
|
3193
|
+
}
|
|
2744
3194
|
});
|
|
2745
|
-
var
|
|
2746
|
-
|
|
3195
|
+
var ZurStep = class ZurStep {
|
|
3196
|
+
number = input.required(...ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []);
|
|
3197
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
2747
3198
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2748
3199
|
minVersion: "12.0.0",
|
|
2749
3200
|
version: "22.2.6",
|
|
2750
3201
|
ngImport: i0,
|
|
2751
|
-
type:
|
|
3202
|
+
type: ZurStep,
|
|
2752
3203
|
deps: [],
|
|
2753
3204
|
target: i0.ɵɵFactoryTarget.Component
|
|
2754
3205
|
});
|
|
2755
3206
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2756
3207
|
minVersion: "17.1.0",
|
|
2757
3208
|
version: "22.2.6",
|
|
2758
|
-
type:
|
|
3209
|
+
type: ZurStep,
|
|
2759
3210
|
isStandalone: true,
|
|
2760
|
-
selector: "zur-
|
|
2761
|
-
inputs: {
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
3211
|
+
selector: "zur-step",
|
|
3212
|
+
inputs: {
|
|
3213
|
+
number: {
|
|
3214
|
+
classPropertyName: "number",
|
|
3215
|
+
publicName: "number",
|
|
3216
|
+
isSignal: true,
|
|
3217
|
+
isRequired: true,
|
|
3218
|
+
transformFunction: null
|
|
3219
|
+
},
|
|
3220
|
+
title: {
|
|
3221
|
+
classPropertyName: "title",
|
|
3222
|
+
publicName: "title",
|
|
3223
|
+
isSignal: true,
|
|
3224
|
+
isRequired: true,
|
|
3225
|
+
transformFunction: null
|
|
3226
|
+
}
|
|
3227
|
+
},
|
|
3228
|
+
ngImport: i0,
|
|
3229
|
+
template: `
|
|
3230
|
+
<h2 class="title">
|
|
3231
|
+
<span class="num" aria-hidden="true">{{ number() }}</span>
|
|
3232
|
+
{{ title() }}
|
|
3233
|
+
</h2>
|
|
3234
|
+
<ng-content />
|
|
3235
|
+
`,
|
|
3236
|
+
isInline: true,
|
|
3237
|
+
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"],
|
|
3238
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3239
|
+
});
|
|
3240
|
+
};
|
|
3241
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3242
|
+
minVersion: "12.0.0",
|
|
3243
|
+
version: "22.2.6",
|
|
3244
|
+
ngImport: i0,
|
|
3245
|
+
type: ZurStep,
|
|
3246
|
+
decorators: [{
|
|
3247
|
+
type: Component,
|
|
3248
|
+
args: [{
|
|
3249
|
+
selector: "zur-step",
|
|
3250
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3251
|
+
template: `
|
|
3252
|
+
<h2 class="title">
|
|
3253
|
+
<span class="num" aria-hidden="true">{{ number() }}</span>
|
|
3254
|
+
{{ title() }}
|
|
3255
|
+
</h2>
|
|
3256
|
+
<ng-content />
|
|
3257
|
+
`,
|
|
3258
|
+
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"]
|
|
3259
|
+
}]
|
|
3260
|
+
}],
|
|
3261
|
+
propDecorators: {
|
|
3262
|
+
number: [{
|
|
3263
|
+
type: i0.Input,
|
|
3264
|
+
args: [{
|
|
3265
|
+
isSignal: true,
|
|
3266
|
+
alias: "number",
|
|
3267
|
+
required: true
|
|
3268
|
+
}]
|
|
3269
|
+
}],
|
|
3270
|
+
title: [{
|
|
3271
|
+
type: i0.Input,
|
|
3272
|
+
args: [{
|
|
3273
|
+
isSignal: true,
|
|
3274
|
+
alias: "title",
|
|
3275
|
+
required: true
|
|
3276
|
+
}]
|
|
3277
|
+
}]
|
|
3278
|
+
}
|
|
3279
|
+
});
|
|
3280
|
+
const ZUR_LAYOUT_WIDTH_STYLES = `
|
|
3281
|
+
:host([data-width='fluid']) { --zur-layout-max: none; }
|
|
3282
|
+
:host([data-width='wide']) { --zur-layout-max: 1100px; }
|
|
3283
|
+
:host([data-width='reading']) { --zur-layout-max: 760px; }
|
|
3284
|
+
:host([data-width='narrow']) { --zur-layout-max: 440px; }
|
|
3285
|
+
`;
|
|
3286
|
+
var ZurSidebar = class ZurSidebar {
|
|
3287
|
+
i18n = inject(ZUR_I18N);
|
|
3288
|
+
shell = inject(ZurShellState);
|
|
3289
|
+
collapsed = computed(() => this.shell.collapsed() && this.shell.viewport() !== "mobile", ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
3290
|
+
ngOnInit() {
|
|
3291
|
+
this.shell.hasSidebar.set(true);
|
|
3292
|
+
}
|
|
3293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3294
|
+
minVersion: "12.0.0",
|
|
3295
|
+
version: "22.2.6",
|
|
3296
|
+
ngImport: i0,
|
|
3297
|
+
type: ZurSidebar,
|
|
3298
|
+
deps: [],
|
|
3299
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3300
|
+
});
|
|
3301
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3302
|
+
minVersion: "14.0.0",
|
|
3303
|
+
version: "22.2.6",
|
|
3304
|
+
type: ZurSidebar,
|
|
3305
|
+
isStandalone: true,
|
|
3306
|
+
selector: "zur-sidebar",
|
|
3307
|
+
host: {
|
|
3308
|
+
listeners: { "document:keydown.escape": "shell.closeDrawer()" },
|
|
3309
|
+
properties: {
|
|
3310
|
+
"attr.data-collapsed": "collapsed()",
|
|
3311
|
+
"attr.data-viewport": "shell.viewport()",
|
|
3312
|
+
"attr.data-open": "shell.drawerOpen()"
|
|
3313
|
+
}
|
|
3314
|
+
},
|
|
3315
|
+
ngImport: i0,
|
|
3316
|
+
template: `
|
|
3317
|
+
<div class="scrim" aria-hidden="true" (click)="shell.closeDrawer()"></div>
|
|
3318
|
+
<aside class="panel" [attr.aria-label]="i18n.sideNav">
|
|
3319
|
+
<div class="header"><ng-content select="[zurSidebarHeader]" /></div>
|
|
3320
|
+
<div class="body"><ng-content /></div>
|
|
3321
|
+
<div class="footer"><ng-content select="[zurSidebarFooter]" /></div>
|
|
3322
|
+
</aside>
|
|
3323
|
+
`,
|
|
3324
|
+
isInline: true,
|
|
3325
|
+
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"],
|
|
3326
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3327
|
+
});
|
|
3328
|
+
};
|
|
3329
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3330
|
+
minVersion: "12.0.0",
|
|
3331
|
+
version: "22.2.6",
|
|
3332
|
+
ngImport: i0,
|
|
3333
|
+
type: ZurSidebar,
|
|
3334
|
+
decorators: [{
|
|
3335
|
+
type: Component,
|
|
3336
|
+
args: [{
|
|
3337
|
+
selector: "zur-sidebar",
|
|
3338
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3339
|
+
host: {
|
|
3340
|
+
"[attr.data-collapsed]": "collapsed()",
|
|
3341
|
+
"[attr.data-viewport]": "shell.viewport()",
|
|
3342
|
+
"[attr.data-open]": "shell.drawerOpen()",
|
|
3343
|
+
"(document:keydown.escape)": "shell.closeDrawer()"
|
|
3344
|
+
},
|
|
3345
|
+
template: `
|
|
3346
|
+
<div class="scrim" aria-hidden="true" (click)="shell.closeDrawer()"></div>
|
|
3347
|
+
<aside class="panel" [attr.aria-label]="i18n.sideNav">
|
|
3348
|
+
<div class="header"><ng-content select="[zurSidebarHeader]" /></div>
|
|
3349
|
+
<div class="body"><ng-content /></div>
|
|
3350
|
+
<div class="footer"><ng-content select="[zurSidebarFooter]" /></div>
|
|
3351
|
+
</aside>
|
|
3352
|
+
`,
|
|
3353
|
+
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"]
|
|
3354
|
+
}]
|
|
3355
|
+
}]
|
|
3356
|
+
});
|
|
3357
|
+
var ZurTopbar = class ZurTopbar {
|
|
3358
|
+
i18n = inject(ZUR_I18N);
|
|
3359
|
+
doc = inject(DOCUMENT);
|
|
3360
|
+
shell = inject(ZurShellState, { optional: true });
|
|
3361
|
+
hideOnScroll = input(true, {
|
|
3362
|
+
...ngDevMode ? { debugName: "hideOnScroll" } : /* istanbul ignore next */ {},
|
|
3363
|
+
transform: booleanAttribute
|
|
3364
|
+
});
|
|
3365
|
+
hidden = signal(false, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
|
|
3366
|
+
lastY = 0;
|
|
3367
|
+
expanded() {
|
|
3368
|
+
if (!this.shell) return false;
|
|
3369
|
+
return this.shell.viewport() === "mobile" ? this.shell.drawerOpen() : !this.shell.collapsed();
|
|
3370
|
+
}
|
|
3371
|
+
ngOnInit() {
|
|
3372
|
+
this.lastY = this.doc.defaultView?.scrollY ?? 0;
|
|
3373
|
+
}
|
|
3374
|
+
onScroll() {
|
|
3375
|
+
const y = this.doc.defaultView?.scrollY ?? 0;
|
|
3376
|
+
const delta = y - this.lastY;
|
|
3377
|
+
this.lastY = y;
|
|
3378
|
+
if (!this.hideOnScroll() || this.shell?.drawerOpen()) {
|
|
3379
|
+
this.hidden.set(false);
|
|
3380
|
+
return;
|
|
3381
|
+
}
|
|
3382
|
+
if (y < 80 || delta < -4) this.hidden.set(false);
|
|
3383
|
+
else if (delta > 4) this.hidden.set(true);
|
|
3384
|
+
}
|
|
3385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3386
|
+
minVersion: "12.0.0",
|
|
3387
|
+
version: "22.2.6",
|
|
3388
|
+
ngImport: i0,
|
|
3389
|
+
type: ZurTopbar,
|
|
3390
|
+
deps: [],
|
|
3391
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3392
|
+
});
|
|
3393
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3394
|
+
minVersion: "17.0.0",
|
|
3395
|
+
version: "22.2.6",
|
|
3396
|
+
type: ZurTopbar,
|
|
3397
|
+
isStandalone: true,
|
|
3398
|
+
selector: "zur-topbar",
|
|
3399
|
+
inputs: { hideOnScroll: {
|
|
3400
|
+
classPropertyName: "hideOnScroll",
|
|
3401
|
+
publicName: "hideOnScroll",
|
|
3402
|
+
isSignal: true,
|
|
3403
|
+
isRequired: false,
|
|
3404
|
+
transformFunction: null
|
|
3405
|
+
} },
|
|
3406
|
+
host: {
|
|
3407
|
+
attributes: { "role": "banner" },
|
|
3408
|
+
listeners: { "window:scroll": "onScroll()" },
|
|
3409
|
+
properties: { "attr.data-hidden": "hidden()" }
|
|
3410
|
+
},
|
|
3411
|
+
ngImport: i0,
|
|
3412
|
+
template: `
|
|
3413
|
+
@if (shell?.hasSidebar()) {
|
|
3414
|
+
<button
|
|
3415
|
+
type="button"
|
|
3416
|
+
class="menu"
|
|
3417
|
+
[attr.aria-label]="i18n.toggleNav"
|
|
3418
|
+
[attr.aria-expanded]="expanded()"
|
|
3419
|
+
(click)="shell?.toggle()"
|
|
3420
|
+
>
|
|
3421
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
|
|
3422
|
+
<path d="M4 7h16M4 12h16M4 17h16" />
|
|
3423
|
+
</svg>
|
|
3424
|
+
</button>
|
|
3425
|
+
}
|
|
3426
|
+
<div class="slot start"><ng-content select="[zurTopbarStart]" /></div>
|
|
3427
|
+
<nav class="slot links" [attr.aria-label]="i18n.topNav"><ng-content select="[zurTopbarLinks]" /></nav>
|
|
3428
|
+
<div class="slot actions"><ng-content select="[zurTopbarActions]" /></div>
|
|
3429
|
+
`,
|
|
3430
|
+
isInline: true,
|
|
3431
|
+
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"],
|
|
3432
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3433
|
+
});
|
|
3434
|
+
};
|
|
3435
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3436
|
+
minVersion: "12.0.0",
|
|
3437
|
+
version: "22.2.6",
|
|
3438
|
+
ngImport: i0,
|
|
3439
|
+
type: ZurTopbar,
|
|
3440
|
+
decorators: [{
|
|
3441
|
+
type: Component,
|
|
3442
|
+
args: [{
|
|
3443
|
+
selector: "zur-topbar",
|
|
3444
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3445
|
+
host: {
|
|
3446
|
+
role: "banner",
|
|
3447
|
+
"[attr.data-hidden]": "hidden()",
|
|
3448
|
+
"(window:scroll)": "onScroll()"
|
|
3449
|
+
},
|
|
3450
|
+
template: `
|
|
3451
|
+
@if (shell?.hasSidebar()) {
|
|
3452
|
+
<button
|
|
3453
|
+
type="button"
|
|
3454
|
+
class="menu"
|
|
3455
|
+
[attr.aria-label]="i18n.toggleNav"
|
|
3456
|
+
[attr.aria-expanded]="expanded()"
|
|
3457
|
+
(click)="shell?.toggle()"
|
|
3458
|
+
>
|
|
3459
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true">
|
|
3460
|
+
<path d="M4 7h16M4 12h16M4 17h16" />
|
|
3461
|
+
</svg>
|
|
3462
|
+
</button>
|
|
3463
|
+
}
|
|
3464
|
+
<div class="slot start"><ng-content select="[zurTopbarStart]" /></div>
|
|
3465
|
+
<nav class="slot links" [attr.aria-label]="i18n.topNav"><ng-content select="[zurTopbarLinks]" /></nav>
|
|
3466
|
+
<div class="slot actions"><ng-content select="[zurTopbarActions]" /></div>
|
|
3467
|
+
`,
|
|
3468
|
+
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"]
|
|
3469
|
+
}]
|
|
3470
|
+
}],
|
|
3471
|
+
propDecorators: { hideOnScroll: [{
|
|
3472
|
+
type: i0.Input,
|
|
3473
|
+
args: [{
|
|
3474
|
+
isSignal: true,
|
|
3475
|
+
alias: "hideOnScroll",
|
|
3476
|
+
required: false
|
|
3477
|
+
}]
|
|
3478
|
+
}] }
|
|
3479
|
+
});
|
|
3480
|
+
var ZurPageHeader = class ZurPageHeader {
|
|
3481
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
3482
|
+
description = input("", ...ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []);
|
|
3483
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3484
|
+
minVersion: "12.0.0",
|
|
3485
|
+
version: "22.2.6",
|
|
3486
|
+
ngImport: i0,
|
|
3487
|
+
type: ZurPageHeader,
|
|
3488
|
+
deps: [],
|
|
3489
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3490
|
+
});
|
|
3491
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3492
|
+
minVersion: "17.0.0",
|
|
3493
|
+
version: "22.2.6",
|
|
3494
|
+
type: ZurPageHeader,
|
|
3495
|
+
isStandalone: true,
|
|
3496
|
+
selector: "zur-page-header",
|
|
3497
|
+
inputs: {
|
|
3498
|
+
title: {
|
|
3499
|
+
classPropertyName: "title",
|
|
3500
|
+
publicName: "title",
|
|
3501
|
+
isSignal: true,
|
|
3502
|
+
isRequired: true,
|
|
3503
|
+
transformFunction: null
|
|
3504
|
+
},
|
|
3505
|
+
description: {
|
|
3506
|
+
classPropertyName: "description",
|
|
3507
|
+
publicName: "description",
|
|
3508
|
+
isSignal: true,
|
|
3509
|
+
isRequired: false,
|
|
3510
|
+
transformFunction: null
|
|
3511
|
+
}
|
|
3512
|
+
},
|
|
3513
|
+
ngImport: i0,
|
|
3514
|
+
template: `
|
|
3515
|
+
<ng-content select="zur-breadcrumb" />
|
|
3516
|
+
<div class="row">
|
|
3517
|
+
<div class="text">
|
|
3518
|
+
<h1 class="title">{{ title() }}</h1>
|
|
3519
|
+
@if (description()) {
|
|
3520
|
+
<p class="description">{{ description() }}</p>
|
|
3521
|
+
}
|
|
3522
|
+
</div>
|
|
3523
|
+
<div class="actions"><ng-content select="[zurPageHeaderActions]" /></div>
|
|
3524
|
+
</div>
|
|
3525
|
+
`,
|
|
3526
|
+
isInline: true,
|
|
3527
|
+
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"],
|
|
3528
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3529
|
+
});
|
|
3530
|
+
};
|
|
3531
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3532
|
+
minVersion: "12.0.0",
|
|
3533
|
+
version: "22.2.6",
|
|
3534
|
+
ngImport: i0,
|
|
3535
|
+
type: ZurPageHeader,
|
|
3536
|
+
decorators: [{
|
|
3537
|
+
type: Component,
|
|
3538
|
+
args: [{
|
|
3539
|
+
selector: "zur-page-header",
|
|
3540
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3541
|
+
template: `
|
|
3542
|
+
<ng-content select="zur-breadcrumb" />
|
|
3543
|
+
<div class="row">
|
|
3544
|
+
<div class="text">
|
|
3545
|
+
<h1 class="title">{{ title() }}</h1>
|
|
3546
|
+
@if (description()) {
|
|
3547
|
+
<p class="description">{{ description() }}</p>
|
|
3548
|
+
}
|
|
3549
|
+
</div>
|
|
3550
|
+
<div class="actions"><ng-content select="[zurPageHeaderActions]" /></div>
|
|
3551
|
+
</div>
|
|
3552
|
+
`,
|
|
3553
|
+
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"]
|
|
3554
|
+
}]
|
|
3555
|
+
}],
|
|
3556
|
+
propDecorators: {
|
|
3557
|
+
title: [{
|
|
3558
|
+
type: i0.Input,
|
|
3559
|
+
args: [{
|
|
3560
|
+
isSignal: true,
|
|
3561
|
+
alias: "title",
|
|
3562
|
+
required: true
|
|
3563
|
+
}]
|
|
3564
|
+
}],
|
|
3565
|
+
description: [{
|
|
3566
|
+
type: i0.Input,
|
|
3567
|
+
args: [{
|
|
3568
|
+
isSignal: true,
|
|
3569
|
+
alias: "description",
|
|
3570
|
+
required: false
|
|
3571
|
+
}]
|
|
3572
|
+
}]
|
|
3573
|
+
}
|
|
3574
|
+
});
|
|
3575
|
+
var ZurFooter = class ZurFooter {
|
|
3576
|
+
i18n = inject(ZUR_I18N);
|
|
3577
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3578
|
+
minVersion: "12.0.0",
|
|
3579
|
+
version: "22.2.6",
|
|
3580
|
+
ngImport: i0,
|
|
3581
|
+
type: ZurFooter,
|
|
3582
|
+
deps: [],
|
|
3583
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3584
|
+
});
|
|
3585
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3586
|
+
minVersion: "14.0.0",
|
|
3587
|
+
version: "22.2.6",
|
|
3588
|
+
type: ZurFooter,
|
|
3589
|
+
isStandalone: true,
|
|
3590
|
+
selector: "zur-footer",
|
|
3591
|
+
host: { attributes: { "role": "contentinfo" } },
|
|
3592
|
+
ngImport: i0,
|
|
3593
|
+
template: `
|
|
3594
|
+
<div class="left"><ng-content /></div>
|
|
3595
|
+
<nav class="links" [attr.aria-label]="i18n.footerNav"><ng-content select="[zurFooterLinks]" /></nav>
|
|
3596
|
+
`,
|
|
3597
|
+
isInline: true,
|
|
3598
|
+
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"],
|
|
3599
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3600
|
+
});
|
|
3601
|
+
};
|
|
3602
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3603
|
+
minVersion: "12.0.0",
|
|
3604
|
+
version: "22.2.6",
|
|
3605
|
+
ngImport: i0,
|
|
3606
|
+
type: ZurFooter,
|
|
3607
|
+
decorators: [{
|
|
3608
|
+
type: Component,
|
|
3609
|
+
args: [{
|
|
3610
|
+
selector: "zur-footer",
|
|
3611
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3612
|
+
host: { role: "contentinfo" },
|
|
3613
|
+
template: `
|
|
3614
|
+
<div class="left"><ng-content /></div>
|
|
3615
|
+
<nav class="links" [attr.aria-label]="i18n.footerNav"><ng-content select="[zurFooterLinks]" /></nav>
|
|
3616
|
+
`,
|
|
3617
|
+
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"]
|
|
3618
|
+
}]
|
|
3619
|
+
}]
|
|
3620
|
+
});
|
|
3621
|
+
var ZurLandingLayout = class ZurLandingLayout {
|
|
3622
|
+
width = input("wide", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
3623
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3624
|
+
minVersion: "12.0.0",
|
|
3625
|
+
version: "22.2.6",
|
|
3626
|
+
ngImport: i0,
|
|
3627
|
+
type: ZurLandingLayout,
|
|
3628
|
+
deps: [],
|
|
3629
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3630
|
+
});
|
|
3631
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3632
|
+
minVersion: "17.1.0",
|
|
3633
|
+
version: "22.2.6",
|
|
3634
|
+
type: ZurLandingLayout,
|
|
3635
|
+
isStandalone: true,
|
|
3636
|
+
selector: "zur-landing-layout",
|
|
3637
|
+
inputs: { width: {
|
|
3638
|
+
classPropertyName: "width",
|
|
3639
|
+
publicName: "width",
|
|
3640
|
+
isSignal: true,
|
|
3641
|
+
isRequired: false,
|
|
3642
|
+
transformFunction: null
|
|
3643
|
+
} },
|
|
3644
|
+
host: { properties: { "attr.data-width": "width()" } },
|
|
3645
|
+
ngImport: i0,
|
|
3646
|
+
template: `
|
|
3647
|
+
<ng-content select="zur-topbar" />
|
|
3648
|
+
<main class="main"><div class="container"><ng-content /></div></main>
|
|
3649
|
+
<ng-content select="zur-footer" />
|
|
3650
|
+
`,
|
|
3651
|
+
isInline: true,
|
|
3652
|
+
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"],
|
|
3653
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3654
|
+
});
|
|
3655
|
+
};
|
|
3656
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3657
|
+
minVersion: "12.0.0",
|
|
3658
|
+
version: "22.2.6",
|
|
3659
|
+
ngImport: i0,
|
|
3660
|
+
type: ZurLandingLayout,
|
|
3661
|
+
decorators: [{
|
|
3662
|
+
type: Component,
|
|
3663
|
+
args: [{
|
|
3664
|
+
selector: "zur-landing-layout",
|
|
3665
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3666
|
+
host: { "[attr.data-width]": "width()" },
|
|
3667
|
+
template: `
|
|
3668
|
+
<ng-content select="zur-topbar" />
|
|
3669
|
+
<main class="main"><div class="container"><ng-content /></div></main>
|
|
3670
|
+
<ng-content select="zur-footer" />
|
|
3671
|
+
`,
|
|
3672
|
+
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"]
|
|
3673
|
+
}]
|
|
3674
|
+
}],
|
|
3675
|
+
propDecorators: { width: [{
|
|
3676
|
+
type: i0.Input,
|
|
3677
|
+
args: [{
|
|
3678
|
+
isSignal: true,
|
|
3679
|
+
alias: "width",
|
|
3680
|
+
required: false
|
|
3681
|
+
}]
|
|
3682
|
+
}] }
|
|
3683
|
+
});
|
|
3684
|
+
var ZurDashboardLayout = class ZurDashboardLayout {
|
|
3685
|
+
width = input("fluid", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
3686
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3687
|
+
minVersion: "12.0.0",
|
|
3688
|
+
version: "22.2.6",
|
|
3689
|
+
ngImport: i0,
|
|
3690
|
+
type: ZurDashboardLayout,
|
|
3691
|
+
deps: [],
|
|
3692
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3693
|
+
});
|
|
3694
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3695
|
+
minVersion: "17.1.0",
|
|
3696
|
+
version: "22.2.6",
|
|
3697
|
+
type: ZurDashboardLayout,
|
|
3698
|
+
isStandalone: true,
|
|
3699
|
+
selector: "zur-dashboard-layout",
|
|
3700
|
+
inputs: { width: {
|
|
3701
|
+
classPropertyName: "width",
|
|
3702
|
+
publicName: "width",
|
|
3703
|
+
isSignal: true,
|
|
3704
|
+
isRequired: false,
|
|
3705
|
+
transformFunction: null
|
|
3706
|
+
} },
|
|
3707
|
+
host: { properties: { "attr.data-width": "width()" } },
|
|
3708
|
+
providers: [ZurShellState],
|
|
3709
|
+
ngImport: i0,
|
|
3710
|
+
template: `
|
|
3711
|
+
<ng-content select="zur-sidebar" />
|
|
3712
|
+
<div class="column">
|
|
3713
|
+
<ng-content select="zur-topbar" />
|
|
3714
|
+
<main class="main"><div class="container"><ng-content /></div></main>
|
|
3715
|
+
<ng-content select="zur-footer" />
|
|
3716
|
+
</div>
|
|
3717
|
+
`,
|
|
3718
|
+
isInline: true,
|
|
3719
|
+
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"],
|
|
3720
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3721
|
+
});
|
|
3722
|
+
};
|
|
3723
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3724
|
+
minVersion: "12.0.0",
|
|
3725
|
+
version: "22.2.6",
|
|
3726
|
+
ngImport: i0,
|
|
3727
|
+
type: ZurDashboardLayout,
|
|
3728
|
+
decorators: [{
|
|
3729
|
+
type: Component,
|
|
3730
|
+
args: [{
|
|
3731
|
+
selector: "zur-dashboard-layout",
|
|
3732
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3733
|
+
providers: [ZurShellState],
|
|
3734
|
+
host: { "[attr.data-width]": "width()" },
|
|
3735
|
+
template: `
|
|
3736
|
+
<ng-content select="zur-sidebar" />
|
|
3737
|
+
<div class="column">
|
|
3738
|
+
<ng-content select="zur-topbar" />
|
|
3739
|
+
<main class="main"><div class="container"><ng-content /></div></main>
|
|
3740
|
+
<ng-content select="zur-footer" />
|
|
3741
|
+
</div>
|
|
3742
|
+
`,
|
|
3743
|
+
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"]
|
|
3744
|
+
}]
|
|
3745
|
+
}],
|
|
3746
|
+
propDecorators: { width: [{
|
|
3747
|
+
type: i0.Input,
|
|
3748
|
+
args: [{
|
|
3749
|
+
isSignal: true,
|
|
3750
|
+
alias: "width",
|
|
3751
|
+
required: false
|
|
3752
|
+
}]
|
|
3753
|
+
}] }
|
|
3754
|
+
});
|
|
3755
|
+
var ZurListDetailLayout = class ZurListDetailLayout {
|
|
3756
|
+
i18n = inject(ZUR_I18N);
|
|
3757
|
+
detailOpen = model(false, ...ngDevMode ? [{ debugName: "detailOpen" }] : /* istanbul ignore next */ []);
|
|
3758
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3759
|
+
minVersion: "12.0.0",
|
|
3760
|
+
version: "22.2.6",
|
|
3761
|
+
ngImport: i0,
|
|
3762
|
+
type: ZurListDetailLayout,
|
|
3763
|
+
deps: [],
|
|
3764
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3765
|
+
});
|
|
3766
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3767
|
+
minVersion: "17.1.0",
|
|
3768
|
+
version: "22.2.6",
|
|
3769
|
+
type: ZurListDetailLayout,
|
|
3770
|
+
isStandalone: true,
|
|
3771
|
+
selector: "zur-list-detail-layout",
|
|
3772
|
+
inputs: { detailOpen: {
|
|
3773
|
+
classPropertyName: "detailOpen",
|
|
3774
|
+
publicName: "detailOpen",
|
|
3775
|
+
isSignal: true,
|
|
3776
|
+
isRequired: false,
|
|
3777
|
+
transformFunction: null
|
|
3778
|
+
} },
|
|
3779
|
+
outputs: { detailOpen: "detailOpenChange" },
|
|
3780
|
+
host: { properties: { "attr.data-detail-open": "detailOpen()" } },
|
|
3781
|
+
ngImport: i0,
|
|
3782
|
+
template: `
|
|
3783
|
+
<ng-content select="zur-topbar" />
|
|
3784
|
+
<div class="panes">
|
|
3785
|
+
<section class="list" [attr.aria-label]="i18n.list"><ng-content select="[zurList]" /></section>
|
|
3786
|
+
<section class="detail" [attr.aria-label]="i18n.detail">
|
|
3787
|
+
<button type="button" class="back" (click)="detailOpen.set(false)">
|
|
3788
|
+
<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">
|
|
3789
|
+
<path d="m15 18-6-6 6-6" />
|
|
3790
|
+
</svg>
|
|
3791
|
+
{{ i18n.back }}
|
|
3792
|
+
</button>
|
|
3793
|
+
<div class="detail-body"><ng-content select="[zurDetail]" /></div>
|
|
3794
|
+
</section>
|
|
2784
3795
|
</div>
|
|
2785
3796
|
`,
|
|
2786
3797
|
isInline: true,
|
|
@@ -2802,13 +3813,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2802
3813
|
template: `
|
|
2803
3814
|
<ng-content select="zur-topbar" />
|
|
2804
3815
|
<div class="panes">
|
|
2805
|
-
<section class="list" aria-label="
|
|
2806
|
-
<section class="detail" aria-label="
|
|
3816
|
+
<section class="list" [attr.aria-label]="i18n.list"><ng-content select="[zurList]" /></section>
|
|
3817
|
+
<section class="detail" [attr.aria-label]="i18n.detail">
|
|
2807
3818
|
<button type="button" class="back" (click)="detailOpen.set(false)">
|
|
2808
3819
|
<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
3820
|
<path d="m15 18-6-6 6-6" />
|
|
2810
3821
|
</svg>
|
|
2811
|
-
|
|
3822
|
+
{{ i18n.back }}
|
|
2812
3823
|
</button>
|
|
2813
3824
|
<div class="detail-body"><ng-content select="[zurDetail]" /></div>
|
|
2814
3825
|
</section>
|
|
@@ -2830,6 +3841,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2830
3841
|
}] }
|
|
2831
3842
|
});
|
|
2832
3843
|
var ZurFormLayout = class ZurFormLayout {
|
|
3844
|
+
i18n = inject(ZUR_I18N);
|
|
2833
3845
|
width = input("reading", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
2834
3846
|
steps = input([], ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
|
|
2835
3847
|
current = input(0, ...ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []);
|
|
@@ -2877,7 +3889,7 @@ var ZurFormLayout = class ZurFormLayout {
|
|
|
2877
3889
|
<main class="main">
|
|
2878
3890
|
<div class="container">
|
|
2879
3891
|
@if (steps().length) {
|
|
2880
|
-
<ol class="steps" aria-label="
|
|
3892
|
+
<ol class="steps" [attr.aria-label]="i18n.steps">
|
|
2881
3893
|
@for (label of steps(); track label; let i = $index) {
|
|
2882
3894
|
<li
|
|
2883
3895
|
class="step"
|
|
@@ -2916,7 +3928,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2916
3928
|
<main class="main">
|
|
2917
3929
|
<div class="container">
|
|
2918
3930
|
@if (steps().length) {
|
|
2919
|
-
<ol class="steps" aria-label="
|
|
3931
|
+
<ol class="steps" [attr.aria-label]="i18n.steps">
|
|
2920
3932
|
@for (label of steps(); track label; let i = $index) {
|
|
2921
3933
|
<li
|
|
2922
3934
|
class="step"
|
|
@@ -3164,7 +4176,7 @@ var ZurErrorLayout = class ZurErrorLayout {
|
|
|
3164
4176
|
</main>
|
|
3165
4177
|
`,
|
|
3166
4178
|
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"],
|
|
4179
|
+
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-on-primary-soft);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
4180
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3169
4181
|
});
|
|
3170
4182
|
};
|
|
@@ -3189,7 +4201,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3189
4201
|
<div class="actions"><ng-content /></div>
|
|
3190
4202
|
</main>
|
|
3191
4203
|
`,
|
|
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"]
|
|
4204
|
+
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-on-primary-soft);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
4205
|
}]
|
|
3194
4206
|
}],
|
|
3195
4207
|
propDecorators: {
|
|
@@ -3228,6 +4240,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3228
4240
|
}
|
|
3229
4241
|
});
|
|
3230
4242
|
var ZurModal = class ZurModal {
|
|
4243
|
+
i18n = inject(ZUR_I18N);
|
|
3231
4244
|
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
3232
4245
|
title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
3233
4246
|
close() {
|
|
@@ -3283,7 +4296,7 @@ var ZurModal = class ZurModal {
|
|
|
3283
4296
|
<button
|
|
3284
4297
|
type="button"
|
|
3285
4298
|
class="x"
|
|
3286
|
-
aria-label="
|
|
4299
|
+
[attr.aria-label]="i18n.close"
|
|
3287
4300
|
(click)="close()"
|
|
3288
4301
|
>
|
|
3289
4302
|
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
@@ -3330,7 +4343,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3330
4343
|
<button
|
|
3331
4344
|
type="button"
|
|
3332
4345
|
class="x"
|
|
3333
|
-
aria-label="
|
|
4346
|
+
[attr.aria-label]="i18n.close"
|
|
3334
4347
|
(click)="close()"
|
|
3335
4348
|
>
|
|
3336
4349
|
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
@@ -3369,12 +4382,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3369
4382
|
}]
|
|
3370
4383
|
}
|
|
3371
4384
|
});
|
|
3372
|
-
let nextId = 0;
|
|
4385
|
+
let nextId$1 = 0;
|
|
3373
4386
|
var ZurToastService = class ZurToastService {
|
|
3374
4387
|
toasts = signal([], ...ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []);
|
|
3375
4388
|
show(message, kind = "neutral", durationMs = 4e3) {
|
|
3376
4389
|
const toast = {
|
|
3377
|
-
id: nextId++,
|
|
4390
|
+
id: nextId$1++,
|
|
3378
4391
|
message,
|
|
3379
4392
|
kind
|
|
3380
4393
|
};
|
|
@@ -3411,6 +4424,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3411
4424
|
}]
|
|
3412
4425
|
});
|
|
3413
4426
|
var ZurToastContainer = class ZurToastContainer {
|
|
4427
|
+
i18n = inject(ZUR_I18N);
|
|
3414
4428
|
service = inject(ZurToastService);
|
|
3415
4429
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3416
4430
|
minVersion: "12.0.0",
|
|
@@ -3435,7 +4449,7 @@ var ZurToastContainer = class ZurToastContainer {
|
|
|
3435
4449
|
<button
|
|
3436
4450
|
type="button"
|
|
3437
4451
|
class="x"
|
|
3438
|
-
aria-label="
|
|
4452
|
+
[attr.aria-label]="i18n.close"
|
|
3439
4453
|
(click)="service.dismiss(toast.id)"
|
|
3440
4454
|
>
|
|
3441
4455
|
✕
|
|
@@ -3467,7 +4481,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3467
4481
|
<button
|
|
3468
4482
|
type="button"
|
|
3469
4483
|
class="x"
|
|
3470
|
-
aria-label="
|
|
4484
|
+
[attr.aria-label]="i18n.close"
|
|
3471
4485
|
(click)="service.dismiss(toast.id)"
|
|
3472
4486
|
>
|
|
3473
4487
|
✕
|
|
@@ -3620,7 +4634,7 @@ var ZurAlert = class ZurAlert {
|
|
|
3620
4634
|
<div class="text"><ng-content /></div>
|
|
3621
4635
|
`,
|
|
3622
4636
|
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"],
|
|
4637
|
+
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-text)}:host([data-kind=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning-text)}:host([data-kind=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error-text)}:host([data-kind=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info-text)}\n"],
|
|
3624
4638
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3625
4639
|
});
|
|
3626
4640
|
};
|
|
@@ -3657,7 +4671,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3657
4671
|
</span>
|
|
3658
4672
|
<div class="text"><ng-content /></div>
|
|
3659
4673
|
`,
|
|
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"]
|
|
4674
|
+
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-text)}:host([data-kind=\"warning\"]){background:var(--zur-warning-soft);color:var(--zur-warning-text)}:host([data-kind=\"error\"]){background:var(--zur-error-soft);color:var(--zur-error-text)}:host([data-kind=\"info\"]){background:var(--zur-info-soft);color:var(--zur-info-text)}\n"]
|
|
3661
4675
|
}]
|
|
3662
4676
|
}],
|
|
3663
4677
|
propDecorators: { kind: [{
|
|
@@ -3667,42 +4681,430 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3667
4681
|
alias: "kind",
|
|
3668
4682
|
required: false
|
|
3669
4683
|
}]
|
|
3670
|
-
}] }
|
|
4684
|
+
}] }
|
|
4685
|
+
});
|
|
4686
|
+
var ZurSpinner = class ZurSpinner {
|
|
4687
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
4688
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4689
|
+
minVersion: "12.0.0",
|
|
4690
|
+
version: "22.2.6",
|
|
4691
|
+
ngImport: i0,
|
|
4692
|
+
type: ZurSpinner,
|
|
4693
|
+
deps: [],
|
|
4694
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4695
|
+
});
|
|
4696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4697
|
+
minVersion: "17.1.0",
|
|
4698
|
+
version: "22.2.6",
|
|
4699
|
+
type: ZurSpinner,
|
|
4700
|
+
isStandalone: true,
|
|
4701
|
+
selector: "zur-spinner",
|
|
4702
|
+
inputs: { size: {
|
|
4703
|
+
classPropertyName: "size",
|
|
4704
|
+
publicName: "size",
|
|
4705
|
+
isSignal: true,
|
|
4706
|
+
isRequired: false,
|
|
4707
|
+
transformFunction: null
|
|
4708
|
+
} },
|
|
4709
|
+
host: {
|
|
4710
|
+
attributes: {
|
|
4711
|
+
"role": "progressbar",
|
|
4712
|
+
"aria-label": "Carregando"
|
|
4713
|
+
},
|
|
4714
|
+
properties: { "attr.data-size": "size()" }
|
|
4715
|
+
},
|
|
4716
|
+
ngImport: i0,
|
|
4717
|
+
template: `<span class="ring" aria-hidden="true"></span>`,
|
|
4718
|
+
isInline: true,
|
|
4719
|
+
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"],
|
|
4720
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4721
|
+
});
|
|
4722
|
+
};
|
|
4723
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4724
|
+
minVersion: "12.0.0",
|
|
4725
|
+
version: "22.2.6",
|
|
4726
|
+
ngImport: i0,
|
|
4727
|
+
type: ZurSpinner,
|
|
4728
|
+
decorators: [{
|
|
4729
|
+
type: Component,
|
|
4730
|
+
args: [{
|
|
4731
|
+
selector: "zur-spinner",
|
|
4732
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4733
|
+
host: {
|
|
4734
|
+
"[attr.data-size]": "size()",
|
|
4735
|
+
role: "progressbar",
|
|
4736
|
+
"aria-label": "Carregando"
|
|
4737
|
+
},
|
|
4738
|
+
template: `<span class="ring" aria-hidden="true"></span>`,
|
|
4739
|
+
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"]
|
|
4740
|
+
}]
|
|
4741
|
+
}],
|
|
4742
|
+
propDecorators: { size: [{
|
|
4743
|
+
type: i0.Input,
|
|
4744
|
+
args: [{
|
|
4745
|
+
isSignal: true,
|
|
4746
|
+
alias: "size",
|
|
4747
|
+
required: false
|
|
4748
|
+
}]
|
|
4749
|
+
}] }
|
|
4750
|
+
});
|
|
4751
|
+
var ZurSkeleton = class ZurSkeleton {
|
|
4752
|
+
width = input("100%", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
4753
|
+
height = input("16px", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
4754
|
+
circle = input(false, ...ngDevMode ? [{ debugName: "circle" }] : /* istanbul ignore next */ []);
|
|
4755
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4756
|
+
minVersion: "12.0.0",
|
|
4757
|
+
version: "22.2.6",
|
|
4758
|
+
ngImport: i0,
|
|
4759
|
+
type: ZurSkeleton,
|
|
4760
|
+
deps: [],
|
|
4761
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4762
|
+
});
|
|
4763
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4764
|
+
minVersion: "17.1.0",
|
|
4765
|
+
version: "22.2.6",
|
|
4766
|
+
type: ZurSkeleton,
|
|
4767
|
+
isStandalone: true,
|
|
4768
|
+
selector: "zur-skeleton",
|
|
4769
|
+
inputs: {
|
|
4770
|
+
width: {
|
|
4771
|
+
classPropertyName: "width",
|
|
4772
|
+
publicName: "width",
|
|
4773
|
+
isSignal: true,
|
|
4774
|
+
isRequired: false,
|
|
4775
|
+
transformFunction: null
|
|
4776
|
+
},
|
|
4777
|
+
height: {
|
|
4778
|
+
classPropertyName: "height",
|
|
4779
|
+
publicName: "height",
|
|
4780
|
+
isSignal: true,
|
|
4781
|
+
isRequired: false,
|
|
4782
|
+
transformFunction: null
|
|
4783
|
+
},
|
|
4784
|
+
circle: {
|
|
4785
|
+
classPropertyName: "circle",
|
|
4786
|
+
publicName: "circle",
|
|
4787
|
+
isSignal: true,
|
|
4788
|
+
isRequired: false,
|
|
4789
|
+
transformFunction: null
|
|
4790
|
+
}
|
|
4791
|
+
},
|
|
4792
|
+
host: {
|
|
4793
|
+
attributes: { "aria-hidden": "true" },
|
|
4794
|
+
properties: {
|
|
4795
|
+
"style.width": "width()",
|
|
4796
|
+
"style.height": "height()",
|
|
4797
|
+
"style.border-radius": "circle() ? \"var(--zur-radius-full)\" : \"var(--zur-radius-sm)\""
|
|
4798
|
+
}
|
|
4799
|
+
},
|
|
4800
|
+
ngImport: i0,
|
|
4801
|
+
template: ``,
|
|
4802
|
+
isInline: true,
|
|
4803
|
+
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"],
|
|
4804
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4805
|
+
});
|
|
4806
|
+
};
|
|
4807
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4808
|
+
minVersion: "12.0.0",
|
|
4809
|
+
version: "22.2.6",
|
|
4810
|
+
ngImport: i0,
|
|
4811
|
+
type: ZurSkeleton,
|
|
4812
|
+
decorators: [{
|
|
4813
|
+
type: Component,
|
|
4814
|
+
args: [{
|
|
4815
|
+
selector: "zur-skeleton",
|
|
4816
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4817
|
+
host: {
|
|
4818
|
+
"[style.width]": "width()",
|
|
4819
|
+
"[style.height]": "height()",
|
|
4820
|
+
"[style.border-radius]": "circle() ? \"var(--zur-radius-full)\" : \"var(--zur-radius-sm)\"",
|
|
4821
|
+
"aria-hidden": "true"
|
|
4822
|
+
},
|
|
4823
|
+
template: ``,
|
|
4824
|
+
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"]
|
|
4825
|
+
}]
|
|
4826
|
+
}],
|
|
4827
|
+
propDecorators: {
|
|
4828
|
+
width: [{
|
|
4829
|
+
type: i0.Input,
|
|
4830
|
+
args: [{
|
|
4831
|
+
isSignal: true,
|
|
4832
|
+
alias: "width",
|
|
4833
|
+
required: false
|
|
4834
|
+
}]
|
|
4835
|
+
}],
|
|
4836
|
+
height: [{
|
|
4837
|
+
type: i0.Input,
|
|
4838
|
+
args: [{
|
|
4839
|
+
isSignal: true,
|
|
4840
|
+
alias: "height",
|
|
4841
|
+
required: false
|
|
4842
|
+
}]
|
|
4843
|
+
}],
|
|
4844
|
+
circle: [{
|
|
4845
|
+
type: i0.Input,
|
|
4846
|
+
args: [{
|
|
4847
|
+
isSignal: true,
|
|
4848
|
+
alias: "circle",
|
|
4849
|
+
required: false
|
|
4850
|
+
}]
|
|
4851
|
+
}]
|
|
4852
|
+
}
|
|
4853
|
+
});
|
|
4854
|
+
var ZurProgress = class ZurProgress {
|
|
4855
|
+
i18n = inject(ZUR_I18N);
|
|
4856
|
+
value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
4857
|
+
max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
4858
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
4859
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
4860
|
+
indeterminate = computed(() => this.value() === null || this.value() === void 0, ...ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []);
|
|
4861
|
+
clamped = computed(() => Math.min(Math.max(this.value() ?? 0, 0), this.max()), ...ngDevMode ? [{ debugName: "clamped" }] : /* istanbul ignore next */ []);
|
|
4862
|
+
percent = computed(() => this.max() > 0 ? this.clamped() / this.max() * 100 : 0, ...ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []);
|
|
4863
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4864
|
+
minVersion: "12.0.0",
|
|
4865
|
+
version: "22.2.6",
|
|
4866
|
+
ngImport: i0,
|
|
4867
|
+
type: ZurProgress,
|
|
4868
|
+
deps: [],
|
|
4869
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4870
|
+
});
|
|
4871
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4872
|
+
minVersion: "17.1.0",
|
|
4873
|
+
version: "22.2.6",
|
|
4874
|
+
type: ZurProgress,
|
|
4875
|
+
isStandalone: true,
|
|
4876
|
+
selector: "zur-progress",
|
|
4877
|
+
inputs: {
|
|
4878
|
+
value: {
|
|
4879
|
+
classPropertyName: "value",
|
|
4880
|
+
publicName: "value",
|
|
4881
|
+
isSignal: true,
|
|
4882
|
+
isRequired: false,
|
|
4883
|
+
transformFunction: null
|
|
4884
|
+
},
|
|
4885
|
+
max: {
|
|
4886
|
+
classPropertyName: "max",
|
|
4887
|
+
publicName: "max",
|
|
4888
|
+
isSignal: true,
|
|
4889
|
+
isRequired: false,
|
|
4890
|
+
transformFunction: null
|
|
4891
|
+
},
|
|
4892
|
+
size: {
|
|
4893
|
+
classPropertyName: "size",
|
|
4894
|
+
publicName: "size",
|
|
4895
|
+
isSignal: true,
|
|
4896
|
+
isRequired: false,
|
|
4897
|
+
transformFunction: null
|
|
4898
|
+
},
|
|
4899
|
+
label: {
|
|
4900
|
+
classPropertyName: "label",
|
|
4901
|
+
publicName: "label",
|
|
4902
|
+
isSignal: true,
|
|
4903
|
+
isRequired: false,
|
|
4904
|
+
transformFunction: null
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
host: {
|
|
4908
|
+
attributes: { "role": "progressbar" },
|
|
4909
|
+
properties: {
|
|
4910
|
+
"attr.aria-label": "label() || i18n.progress",
|
|
4911
|
+
"attr.aria-valuemin": "indeterminate() ? null : 0",
|
|
4912
|
+
"attr.aria-valuemax": "indeterminate() ? null : max()",
|
|
4913
|
+
"attr.aria-valuenow": "indeterminate() ? null : clamped()",
|
|
4914
|
+
"attr.data-size": "size()",
|
|
4915
|
+
"attr.data-indeterminate": "indeterminate() ? \"\" : null"
|
|
4916
|
+
}
|
|
4917
|
+
},
|
|
4918
|
+
ngImport: i0,
|
|
4919
|
+
template: `<span class="fill" [style.width.%]="indeterminate() ? null : percent()"></span>`,
|
|
4920
|
+
isInline: true,
|
|
4921
|
+
styles: [":host{display:block;position:relative;overflow:hidden;width:100%;height:8px;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong)}:host([data-size=\"sm\"]){height:4px}.fill{display:block;height:100%;border-radius:inherit;background:var(--zur-primary);transition:width .2s ease}:host([data-indeterminate]) .fill{position:absolute;width:40%;animation:zur-progress-slide 1.2s ease-in-out infinite}@keyframes zur-progress-slide{0%{left:-40%}to{left:100%}}@media(prefers-reduced-motion:reduce){:host([data-indeterminate]) .fill{animation:none;left:0;width:100%;opacity:.5}}\n"],
|
|
4922
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4923
|
+
});
|
|
4924
|
+
};
|
|
4925
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4926
|
+
minVersion: "12.0.0",
|
|
4927
|
+
version: "22.2.6",
|
|
4928
|
+
ngImport: i0,
|
|
4929
|
+
type: ZurProgress,
|
|
4930
|
+
decorators: [{
|
|
4931
|
+
type: Component,
|
|
4932
|
+
args: [{
|
|
4933
|
+
selector: "zur-progress",
|
|
4934
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4935
|
+
host: {
|
|
4936
|
+
role: "progressbar",
|
|
4937
|
+
"[attr.aria-label]": "label() || i18n.progress",
|
|
4938
|
+
"[attr.aria-valuemin]": "indeterminate() ? null : 0",
|
|
4939
|
+
"[attr.aria-valuemax]": "indeterminate() ? null : max()",
|
|
4940
|
+
"[attr.aria-valuenow]": "indeterminate() ? null : clamped()",
|
|
4941
|
+
"[attr.data-size]": "size()",
|
|
4942
|
+
"[attr.data-indeterminate]": "indeterminate() ? \"\" : null"
|
|
4943
|
+
},
|
|
4944
|
+
template: `<span class="fill" [style.width.%]="indeterminate() ? null : percent()"></span>`,
|
|
4945
|
+
styles: [":host{display:block;position:relative;overflow:hidden;width:100%;height:8px;border-radius:var(--zur-radius-full);background:var(--zur-surface-strong)}:host([data-size=\"sm\"]){height:4px}.fill{display:block;height:100%;border-radius:inherit;background:var(--zur-primary);transition:width .2s ease}:host([data-indeterminate]) .fill{position:absolute;width:40%;animation:zur-progress-slide 1.2s ease-in-out infinite}@keyframes zur-progress-slide{0%{left:-40%}to{left:100%}}@media(prefers-reduced-motion:reduce){:host([data-indeterminate]) .fill{animation:none;left:0;width:100%;opacity:.5}}\n"]
|
|
4946
|
+
}]
|
|
4947
|
+
}],
|
|
4948
|
+
propDecorators: {
|
|
4949
|
+
value: [{
|
|
4950
|
+
type: i0.Input,
|
|
4951
|
+
args: [{
|
|
4952
|
+
isSignal: true,
|
|
4953
|
+
alias: "value",
|
|
4954
|
+
required: false
|
|
4955
|
+
}]
|
|
4956
|
+
}],
|
|
4957
|
+
max: [{
|
|
4958
|
+
type: i0.Input,
|
|
4959
|
+
args: [{
|
|
4960
|
+
isSignal: true,
|
|
4961
|
+
alias: "max",
|
|
4962
|
+
required: false
|
|
4963
|
+
}]
|
|
4964
|
+
}],
|
|
4965
|
+
size: [{
|
|
4966
|
+
type: i0.Input,
|
|
4967
|
+
args: [{
|
|
4968
|
+
isSignal: true,
|
|
4969
|
+
alias: "size",
|
|
4970
|
+
required: false
|
|
4971
|
+
}]
|
|
4972
|
+
}],
|
|
4973
|
+
label: [{
|
|
4974
|
+
type: i0.Input,
|
|
4975
|
+
args: [{
|
|
4976
|
+
isSignal: true,
|
|
4977
|
+
alias: "label",
|
|
4978
|
+
required: false
|
|
4979
|
+
}]
|
|
4980
|
+
}]
|
|
4981
|
+
}
|
|
3671
4982
|
});
|
|
3672
|
-
|
|
3673
|
-
|
|
4983
|
+
const FOCUSABLE = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4984
|
+
var ZurDrawer = class ZurDrawer {
|
|
4985
|
+
i18n = inject(ZUR_I18N);
|
|
4986
|
+
doc = inject(DOCUMENT);
|
|
4987
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
4988
|
+
title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
4989
|
+
side = input("right", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
4990
|
+
panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
4991
|
+
returnFocusTo = null;
|
|
4992
|
+
constructor() {
|
|
4993
|
+
effect(() => {
|
|
4994
|
+
const isOpen = this.open();
|
|
4995
|
+
const panel = this.panel();
|
|
4996
|
+
untracked(() => {
|
|
4997
|
+
if (isOpen && panel) {
|
|
4998
|
+
this.returnFocusTo ??= this.doc.activeElement;
|
|
4999
|
+
this.doc.body.style.overflow = "hidden";
|
|
5000
|
+
(panel.nativeElement.querySelector(FOCUSABLE) ?? panel.nativeElement).focus();
|
|
5001
|
+
} else if (!isOpen && this.returnFocusTo) {
|
|
5002
|
+
this.doc.body.style.overflow = "";
|
|
5003
|
+
this.returnFocusTo.focus?.();
|
|
5004
|
+
this.returnFocusTo = null;
|
|
5005
|
+
}
|
|
5006
|
+
});
|
|
5007
|
+
});
|
|
5008
|
+
}
|
|
5009
|
+
close() {
|
|
5010
|
+
this.open.set(false);
|
|
5011
|
+
}
|
|
5012
|
+
trapFocus(event) {
|
|
5013
|
+
if (event.key !== "Tab") return;
|
|
5014
|
+
const panel = this.panel()?.nativeElement;
|
|
5015
|
+
if (!panel) return;
|
|
5016
|
+
const items = Array.from(panel.querySelectorAll(FOCUSABLE));
|
|
5017
|
+
if (!items.length) return;
|
|
5018
|
+
const first = items[0];
|
|
5019
|
+
const last = items[items.length - 1];
|
|
5020
|
+
const active = this.doc.activeElement;
|
|
5021
|
+
if (event.shiftKey && (active === first || active === panel)) {
|
|
5022
|
+
event.preventDefault();
|
|
5023
|
+
last.focus();
|
|
5024
|
+
} else if (!event.shiftKey && active === last) {
|
|
5025
|
+
event.preventDefault();
|
|
5026
|
+
first.focus();
|
|
5027
|
+
}
|
|
5028
|
+
}
|
|
3674
5029
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3675
5030
|
minVersion: "12.0.0",
|
|
3676
5031
|
version: "22.2.6",
|
|
3677
5032
|
ngImport: i0,
|
|
3678
|
-
type:
|
|
5033
|
+
type: ZurDrawer,
|
|
3679
5034
|
deps: [],
|
|
3680
5035
|
target: i0.ɵɵFactoryTarget.Component
|
|
3681
5036
|
});
|
|
3682
5037
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3683
|
-
minVersion: "17.
|
|
5038
|
+
minVersion: "17.0.0",
|
|
3684
5039
|
version: "22.2.6",
|
|
3685
|
-
type:
|
|
5040
|
+
type: ZurDrawer,
|
|
3686
5041
|
isStandalone: true,
|
|
3687
|
-
selector: "zur-
|
|
3688
|
-
inputs: {
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
host: {
|
|
3696
|
-
attributes: {
|
|
3697
|
-
"role": "progressbar",
|
|
3698
|
-
"aria-label": "Carregando"
|
|
5042
|
+
selector: "zur-drawer",
|
|
5043
|
+
inputs: {
|
|
5044
|
+
open: {
|
|
5045
|
+
classPropertyName: "open",
|
|
5046
|
+
publicName: "open",
|
|
5047
|
+
isSignal: true,
|
|
5048
|
+
isRequired: false,
|
|
5049
|
+
transformFunction: null
|
|
3699
5050
|
},
|
|
3700
|
-
|
|
5051
|
+
title: {
|
|
5052
|
+
classPropertyName: "title",
|
|
5053
|
+
publicName: "title",
|
|
5054
|
+
isSignal: true,
|
|
5055
|
+
isRequired: false,
|
|
5056
|
+
transformFunction: null
|
|
5057
|
+
},
|
|
5058
|
+
side: {
|
|
5059
|
+
classPropertyName: "side",
|
|
5060
|
+
publicName: "side",
|
|
5061
|
+
isSignal: true,
|
|
5062
|
+
isRequired: false,
|
|
5063
|
+
transformFunction: null
|
|
5064
|
+
}
|
|
3701
5065
|
},
|
|
5066
|
+
outputs: { open: "openChange" },
|
|
5067
|
+
host: {
|
|
5068
|
+
listeners: { "document:keydown.escape": "open() && close()" },
|
|
5069
|
+
properties: { "attr.data-side": "side()" }
|
|
5070
|
+
},
|
|
5071
|
+
viewQueries: [{
|
|
5072
|
+
propertyName: "panel",
|
|
5073
|
+
first: true,
|
|
5074
|
+
predicate: ["panel"],
|
|
5075
|
+
descendants: true,
|
|
5076
|
+
isSignal: true
|
|
5077
|
+
}],
|
|
3702
5078
|
ngImport: i0,
|
|
3703
|
-
template:
|
|
5079
|
+
template: `
|
|
5080
|
+
@if (open()) {
|
|
5081
|
+
<div class="scrim" (click)="close()"></div>
|
|
5082
|
+
<div
|
|
5083
|
+
#panel
|
|
5084
|
+
class="panel"
|
|
5085
|
+
role="dialog"
|
|
5086
|
+
aria-modal="true"
|
|
5087
|
+
[attr.aria-label]="title() || null"
|
|
5088
|
+
tabindex="-1"
|
|
5089
|
+
(keydown)="trapFocus($event)"
|
|
5090
|
+
>
|
|
5091
|
+
<header class="head">
|
|
5092
|
+
@if (title()) {
|
|
5093
|
+
<h2 class="title">{{ title() }}</h2>
|
|
5094
|
+
}
|
|
5095
|
+
<button type="button" class="x" [attr.aria-label]="i18n.close" (click)="close()">
|
|
5096
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
5097
|
+
<path d="M6 6l12 12M18 6 6 18" />
|
|
5098
|
+
</svg>
|
|
5099
|
+
</button>
|
|
5100
|
+
</header>
|
|
5101
|
+
<div class="content"><ng-content /></div>
|
|
5102
|
+
<footer class="foot"><ng-content select="[zurDrawerActions]" /></footer>
|
|
5103
|
+
</div>
|
|
5104
|
+
}
|
|
5105
|
+
`,
|
|
3704
5106
|
isInline: true,
|
|
3705
|
-
styles: ["
|
|
5107
|
+
styles: [".scrim{position:fixed;inset:0;z-index:200;background:var(--zur-scrim);animation:zur-drawer-fade .2s ease}.panel{position:fixed;top:0;bottom:0;right:0;z-index:201;display:flex;flex-direction:column;width:min(400px,100vw);box-sizing:border-box;padding:var(--zur-space-lg);background:var(--zur-surface-raised);box-shadow:var(--zur-shadow-float);overflow-y:auto;animation:zur-drawer-in-right .2s ease}:host([data-side=\"left\"]) .panel{right:auto;left:0;animation-name:zur-drawer-in-left}.panel:focus{outline:none}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zur-space-md);margin-bottom:var(--zur-space-lg)}.title{margin:0;font:var(--zur-font-title);color:var(--zur-ink)}.x{width:36px;height:36px;flex-shrink:0;margin-left:auto;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{flex:1;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}@keyframes zur-drawer-fade{0%{opacity:0}}@keyframes zur-drawer-in-right{0%{transform:translate(100%)}}@keyframes zur-drawer-in-left{0%{transform:translate(-100%)}}@media(prefers-reduced-motion:reduce){.scrim,.panel{animation:none}}\n"],
|
|
3706
5108
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3707
5109
|
});
|
|
3708
5110
|
};
|
|
@@ -3710,83 +5112,178 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3710
5112
|
minVersion: "12.0.0",
|
|
3711
5113
|
version: "22.2.6",
|
|
3712
5114
|
ngImport: i0,
|
|
3713
|
-
type:
|
|
5115
|
+
type: ZurDrawer,
|
|
3714
5116
|
decorators: [{
|
|
3715
5117
|
type: Component,
|
|
3716
5118
|
args: [{
|
|
3717
|
-
selector: "zur-
|
|
5119
|
+
selector: "zur-drawer",
|
|
3718
5120
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3719
5121
|
host: {
|
|
3720
|
-
"[attr.data-
|
|
3721
|
-
|
|
3722
|
-
"aria-label": "Carregando"
|
|
5122
|
+
"[attr.data-side]": "side()",
|
|
5123
|
+
"(document:keydown.escape)": "open() && close()"
|
|
3723
5124
|
},
|
|
3724
|
-
template:
|
|
3725
|
-
|
|
5125
|
+
template: `
|
|
5126
|
+
@if (open()) {
|
|
5127
|
+
<div class="scrim" (click)="close()"></div>
|
|
5128
|
+
<div
|
|
5129
|
+
#panel
|
|
5130
|
+
class="panel"
|
|
5131
|
+
role="dialog"
|
|
5132
|
+
aria-modal="true"
|
|
5133
|
+
[attr.aria-label]="title() || null"
|
|
5134
|
+
tabindex="-1"
|
|
5135
|
+
(keydown)="trapFocus($event)"
|
|
5136
|
+
>
|
|
5137
|
+
<header class="head">
|
|
5138
|
+
@if (title()) {
|
|
5139
|
+
<h2 class="title">{{ title() }}</h2>
|
|
5140
|
+
}
|
|
5141
|
+
<button type="button" class="x" [attr.aria-label]="i18n.close" (click)="close()">
|
|
5142
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" aria-hidden="true">
|
|
5143
|
+
<path d="M6 6l12 12M18 6 6 18" />
|
|
5144
|
+
</svg>
|
|
5145
|
+
</button>
|
|
5146
|
+
</header>
|
|
5147
|
+
<div class="content"><ng-content /></div>
|
|
5148
|
+
<footer class="foot"><ng-content select="[zurDrawerActions]" /></footer>
|
|
5149
|
+
</div>
|
|
5150
|
+
}
|
|
5151
|
+
`,
|
|
5152
|
+
styles: [".scrim{position:fixed;inset:0;z-index:200;background:var(--zur-scrim);animation:zur-drawer-fade .2s ease}.panel{position:fixed;top:0;bottom:0;right:0;z-index:201;display:flex;flex-direction:column;width:min(400px,100vw);box-sizing:border-box;padding:var(--zur-space-lg);background:var(--zur-surface-raised);box-shadow:var(--zur-shadow-float);overflow-y:auto;animation:zur-drawer-in-right .2s ease}:host([data-side=\"left\"]) .panel{right:auto;left:0;animation-name:zur-drawer-in-left}.panel:focus{outline:none}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zur-space-md);margin-bottom:var(--zur-space-lg)}.title{margin:0;font:var(--zur-font-title);color:var(--zur-ink)}.x{width:36px;height:36px;flex-shrink:0;margin-left:auto;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{flex:1;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}@keyframes zur-drawer-fade{0%{opacity:0}}@keyframes zur-drawer-in-right{0%{transform:translate(100%)}}@keyframes zur-drawer-in-left{0%{transform:translate(-100%)}}@media(prefers-reduced-motion:reduce){.scrim,.panel{animation:none}}\n"]
|
|
3726
5153
|
}]
|
|
3727
5154
|
}],
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
5155
|
+
ctorParameters: () => [],
|
|
5156
|
+
propDecorators: {
|
|
5157
|
+
open: [{
|
|
5158
|
+
type: i0.Input,
|
|
5159
|
+
args: [{
|
|
5160
|
+
isSignal: true,
|
|
5161
|
+
alias: "open",
|
|
5162
|
+
required: false
|
|
5163
|
+
}]
|
|
5164
|
+
}, {
|
|
5165
|
+
type: i0.Output,
|
|
5166
|
+
args: ["openChange"]
|
|
5167
|
+
}],
|
|
5168
|
+
title: [{
|
|
5169
|
+
type: i0.Input,
|
|
5170
|
+
args: [{
|
|
5171
|
+
isSignal: true,
|
|
5172
|
+
alias: "title",
|
|
5173
|
+
required: false
|
|
5174
|
+
}]
|
|
5175
|
+
}],
|
|
5176
|
+
side: [{
|
|
5177
|
+
type: i0.Input,
|
|
5178
|
+
args: [{
|
|
5179
|
+
isSignal: true,
|
|
5180
|
+
alias: "side",
|
|
5181
|
+
required: false
|
|
5182
|
+
}]
|
|
5183
|
+
}],
|
|
5184
|
+
panel: [{
|
|
5185
|
+
type: i0.ViewChild,
|
|
5186
|
+
args: ["panel", { isSignal: true }]
|
|
3734
5187
|
}]
|
|
3735
|
-
}
|
|
5188
|
+
}
|
|
3736
5189
|
});
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
5190
|
+
let nextId = 0;
|
|
5191
|
+
var ZurPopover = class ZurPopover {
|
|
5192
|
+
host = inject(ElementRef);
|
|
5193
|
+
doc = inject(DOCUMENT);
|
|
5194
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
5195
|
+
placement = input("bottom-start", ...ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []);
|
|
5196
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
5197
|
+
panelId = `zur-popover-${nextId++}`;
|
|
5198
|
+
panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
5199
|
+
trigger = null;
|
|
5200
|
+
constructor() {
|
|
5201
|
+
effect(() => {
|
|
5202
|
+
const panel = this.panel();
|
|
5203
|
+
if (!panel) return;
|
|
5204
|
+
untracked(() => {
|
|
5205
|
+
(panel.nativeElement.querySelector("a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex=\"-1\"])") ?? panel.nativeElement).focus();
|
|
5206
|
+
});
|
|
5207
|
+
});
|
|
5208
|
+
}
|
|
5209
|
+
toggle() {
|
|
5210
|
+
this.open.update((v) => !v);
|
|
5211
|
+
}
|
|
5212
|
+
close(returnFocus = false) {
|
|
5213
|
+
this.open.set(false);
|
|
5214
|
+
if (returnFocus) this.trigger?.focus();
|
|
5215
|
+
}
|
|
5216
|
+
onDocumentClick(event) {
|
|
5217
|
+
if (this.open() && !this.host.nativeElement.contains(event.target)) this.close();
|
|
5218
|
+
}
|
|
3741
5219
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3742
5220
|
minVersion: "12.0.0",
|
|
3743
5221
|
version: "22.2.6",
|
|
3744
5222
|
ngImport: i0,
|
|
3745
|
-
type:
|
|
5223
|
+
type: ZurPopover,
|
|
3746
5224
|
deps: [],
|
|
3747
5225
|
target: i0.ɵɵFactoryTarget.Component
|
|
3748
5226
|
});
|
|
3749
5227
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3750
|
-
minVersion: "17.
|
|
5228
|
+
minVersion: "17.0.0",
|
|
3751
5229
|
version: "22.2.6",
|
|
3752
|
-
type:
|
|
5230
|
+
type: ZurPopover,
|
|
3753
5231
|
isStandalone: true,
|
|
3754
|
-
selector: "zur-
|
|
5232
|
+
selector: "zur-popover",
|
|
3755
5233
|
inputs: {
|
|
3756
|
-
|
|
3757
|
-
classPropertyName: "
|
|
3758
|
-
publicName: "
|
|
5234
|
+
open: {
|
|
5235
|
+
classPropertyName: "open",
|
|
5236
|
+
publicName: "open",
|
|
3759
5237
|
isSignal: true,
|
|
3760
5238
|
isRequired: false,
|
|
3761
5239
|
transformFunction: null
|
|
3762
5240
|
},
|
|
3763
|
-
|
|
3764
|
-
classPropertyName: "
|
|
3765
|
-
publicName: "
|
|
5241
|
+
placement: {
|
|
5242
|
+
classPropertyName: "placement",
|
|
5243
|
+
publicName: "placement",
|
|
3766
5244
|
isSignal: true,
|
|
3767
5245
|
isRequired: false,
|
|
3768
5246
|
transformFunction: null
|
|
3769
5247
|
},
|
|
3770
|
-
|
|
3771
|
-
classPropertyName: "
|
|
3772
|
-
publicName: "
|
|
5248
|
+
label: {
|
|
5249
|
+
classPropertyName: "label",
|
|
5250
|
+
publicName: "label",
|
|
3773
5251
|
isSignal: true,
|
|
3774
5252
|
isRequired: false,
|
|
3775
5253
|
transformFunction: null
|
|
3776
5254
|
}
|
|
3777
5255
|
},
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
5256
|
+
outputs: { open: "openChange" },
|
|
5257
|
+
host: { listeners: {
|
|
5258
|
+
"document:keydown.escape": "open() && close(true)",
|
|
5259
|
+
"document:click": "onDocumentClick($event)"
|
|
5260
|
+
} },
|
|
5261
|
+
viewQueries: [{
|
|
5262
|
+
propertyName: "panel",
|
|
5263
|
+
first: true,
|
|
5264
|
+
predicate: ["panel"],
|
|
5265
|
+
descendants: true,
|
|
5266
|
+
isSignal: true
|
|
5267
|
+
}],
|
|
3786
5268
|
ngImport: i0,
|
|
3787
|
-
template:
|
|
5269
|
+
template: `
|
|
5270
|
+
<ng-content select="[zurPopoverTrigger]" />
|
|
5271
|
+
@if (open()) {
|
|
5272
|
+
<div
|
|
5273
|
+
#panel
|
|
5274
|
+
class="panel"
|
|
5275
|
+
role="dialog"
|
|
5276
|
+
tabindex="-1"
|
|
5277
|
+
[id]="panelId"
|
|
5278
|
+
[attr.aria-label]="label() || null"
|
|
5279
|
+
[attr.data-placement]="placement()"
|
|
5280
|
+
>
|
|
5281
|
+
<ng-content />
|
|
5282
|
+
</div>
|
|
5283
|
+
}
|
|
5284
|
+
`,
|
|
3788
5285
|
isInline: true,
|
|
3789
|
-
styles: [":host{display:block;background:var(--zur-surface-
|
|
5286
|
+
styles: [":host{position:relative;display:inline-block}.panel{position:absolute;top:calc(100% + 8px);left:0;z-index:150;min-width:220px;max-width:min(360px,90vw);box-sizing:border-box;padding:var(--zur-space-md);background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);font:var(--zur-font-body-sm);color:var(--zur-body)}.panel:focus{outline:none}.panel[data-placement=bottom-end]{left:auto;right:0}.panel[data-placement=top-start],.panel[data-placement=top-end]{top:auto;bottom:calc(100% + 8px)}.panel[data-placement=top-end]{left:auto;right:0}\n"],
|
|
3790
5287
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3791
5288
|
});
|
|
3792
5289
|
};
|
|
@@ -3794,49 +5291,119 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3794
5291
|
minVersion: "12.0.0",
|
|
3795
5292
|
version: "22.2.6",
|
|
3796
5293
|
ngImport: i0,
|
|
3797
|
-
type:
|
|
5294
|
+
type: ZurPopover,
|
|
3798
5295
|
decorators: [{
|
|
3799
5296
|
type: Component,
|
|
3800
5297
|
args: [{
|
|
3801
|
-
selector: "zur-
|
|
5298
|
+
selector: "zur-popover",
|
|
3802
5299
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3803
5300
|
host: {
|
|
3804
|
-
"
|
|
3805
|
-
"
|
|
3806
|
-
"[style.border-radius]": "circle() ? \"var(--zur-radius-full)\" : \"var(--zur-radius-sm)\"",
|
|
3807
|
-
"aria-hidden": "true"
|
|
5301
|
+
"(document:keydown.escape)": "open() && close(true)",
|
|
5302
|
+
"(document:click)": "onDocumentClick($event)"
|
|
3808
5303
|
},
|
|
3809
|
-
template:
|
|
3810
|
-
|
|
5304
|
+
template: `
|
|
5305
|
+
<ng-content select="[zurPopoverTrigger]" />
|
|
5306
|
+
@if (open()) {
|
|
5307
|
+
<div
|
|
5308
|
+
#panel
|
|
5309
|
+
class="panel"
|
|
5310
|
+
role="dialog"
|
|
5311
|
+
tabindex="-1"
|
|
5312
|
+
[id]="panelId"
|
|
5313
|
+
[attr.aria-label]="label() || null"
|
|
5314
|
+
[attr.data-placement]="placement()"
|
|
5315
|
+
>
|
|
5316
|
+
<ng-content />
|
|
5317
|
+
</div>
|
|
5318
|
+
}
|
|
5319
|
+
`,
|
|
5320
|
+
styles: [":host{position:relative;display:inline-block}.panel{position:absolute;top:calc(100% + 8px);left:0;z-index:150;min-width:220px;max-width:min(360px,90vw);box-sizing:border-box;padding:var(--zur-space-md);background:var(--zur-surface-raised);border:1px solid var(--zur-hairline);border-radius:var(--zur-radius-md);box-shadow:var(--zur-shadow-float);font:var(--zur-font-body-sm);color:var(--zur-body)}.panel:focus{outline:none}.panel[data-placement=bottom-end]{left:auto;right:0}.panel[data-placement=top-start],.panel[data-placement=top-end]{top:auto;bottom:calc(100% + 8px)}.panel[data-placement=top-end]{left:auto;right:0}\n"]
|
|
3811
5321
|
}]
|
|
3812
5322
|
}],
|
|
5323
|
+
ctorParameters: () => [],
|
|
3813
5324
|
propDecorators: {
|
|
3814
|
-
|
|
5325
|
+
open: [{
|
|
3815
5326
|
type: i0.Input,
|
|
3816
5327
|
args: [{
|
|
3817
5328
|
isSignal: true,
|
|
3818
|
-
alias: "
|
|
5329
|
+
alias: "open",
|
|
3819
5330
|
required: false
|
|
3820
5331
|
}]
|
|
5332
|
+
}, {
|
|
5333
|
+
type: i0.Output,
|
|
5334
|
+
args: ["openChange"]
|
|
3821
5335
|
}],
|
|
3822
|
-
|
|
5336
|
+
placement: [{
|
|
3823
5337
|
type: i0.Input,
|
|
3824
5338
|
args: [{
|
|
3825
5339
|
isSignal: true,
|
|
3826
|
-
alias: "
|
|
5340
|
+
alias: "placement",
|
|
3827
5341
|
required: false
|
|
3828
5342
|
}]
|
|
3829
5343
|
}],
|
|
3830
|
-
|
|
5344
|
+
label: [{
|
|
3831
5345
|
type: i0.Input,
|
|
3832
5346
|
args: [{
|
|
3833
5347
|
isSignal: true,
|
|
3834
|
-
alias: "
|
|
5348
|
+
alias: "label",
|
|
3835
5349
|
required: false
|
|
3836
5350
|
}]
|
|
5351
|
+
}],
|
|
5352
|
+
panel: [{
|
|
5353
|
+
type: i0.ViewChild,
|
|
5354
|
+
args: ["panel", { isSignal: true }]
|
|
3837
5355
|
}]
|
|
3838
5356
|
}
|
|
3839
5357
|
});
|
|
3840
|
-
|
|
5358
|
+
var ZurPopoverTrigger = class ZurPopoverTrigger {
|
|
5359
|
+
popover = inject(forwardRef(() => ZurPopover));
|
|
5360
|
+
constructor() {
|
|
5361
|
+
this.popover.trigger = inject(ElementRef).nativeElement;
|
|
5362
|
+
}
|
|
5363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5364
|
+
minVersion: "12.0.0",
|
|
5365
|
+
version: "22.2.6",
|
|
5366
|
+
ngImport: i0,
|
|
5367
|
+
type: ZurPopoverTrigger,
|
|
5368
|
+
deps: [],
|
|
5369
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
5370
|
+
});
|
|
5371
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
5372
|
+
minVersion: "14.0.0",
|
|
5373
|
+
version: "22.2.6",
|
|
5374
|
+
type: ZurPopoverTrigger,
|
|
5375
|
+
isStandalone: true,
|
|
5376
|
+
selector: "[zurPopoverTrigger]",
|
|
5377
|
+
host: {
|
|
5378
|
+
attributes: { "aria-haspopup": "dialog" },
|
|
5379
|
+
listeners: { "click": "popover.toggle()" },
|
|
5380
|
+
properties: {
|
|
5381
|
+
"attr.aria-expanded": "popover.open()",
|
|
5382
|
+
"attr.aria-controls": "popover.open() ? popover.panelId : null"
|
|
5383
|
+
}
|
|
5384
|
+
},
|
|
5385
|
+
ngImport: i0
|
|
5386
|
+
});
|
|
5387
|
+
};
|
|
5388
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
5389
|
+
minVersion: "12.0.0",
|
|
5390
|
+
version: "22.2.6",
|
|
5391
|
+
ngImport: i0,
|
|
5392
|
+
type: ZurPopoverTrigger,
|
|
5393
|
+
decorators: [{
|
|
5394
|
+
type: Directive,
|
|
5395
|
+
args: [{
|
|
5396
|
+
selector: "[zurPopoverTrigger]",
|
|
5397
|
+
host: {
|
|
5398
|
+
"aria-haspopup": "dialog",
|
|
5399
|
+
"[attr.aria-expanded]": "popover.open()",
|
|
5400
|
+
"[attr.aria-controls]": "popover.open() ? popover.panelId : null",
|
|
5401
|
+
"(click)": "popover.toggle()"
|
|
5402
|
+
}
|
|
5403
|
+
}]
|
|
5404
|
+
}],
|
|
5405
|
+
ctorParameters: () => []
|
|
5406
|
+
});
|
|
5407
|
+
export { ZUR_BREAKPOINTS, ZUR_I18N, ZUR_I18N_EN, ZUR_I18N_PT, ZUR_LAYOUT_WIDTH_STYLES, ZUR_THEME_SCOPE, ZurAccordion, ZurAccordionItem, ZurAlert, ZurAuthLayout, ZurAvatar, ZurBadge, ZurBreadcrumb, ZurButton, ZurCard, ZurCheckbox, ZurDashboardLayout, ZurDocsLayout, ZurDrawer, ZurEmptyState, ZurErrorLayout, ZurFooter, ZurFormLayout, ZurInput, ZurLandingLayout, ZurListDetailLayout, ZurLogo, ZurMenu, ZurMenuItem, ZurModal, ZurNavbar, ZurPageHeader, ZurPagination, ZurPopover, ZurPopoverTrigger, ZurProgress, ZurRadio, ZurSelect, ZurShellState, ZurSidebar, ZurSidenav, ZurSidenavItem, ZurSidenavLabel, ZurSkeleton, ZurSortable, ZurSpinner, ZurStep, ZurSwitch, ZurTab, ZurTable, ZurTabs, ZurTextarea, ZurThemeScope, ZurThemeService, ZurThemeToggle, ZurToastContainer, ZurToastService, ZurTooltip, ZurTopbar, provideZuriI18n };
|
|
3841
5408
|
|
|
3842
5409
|
//# sourceMappingURL=juau-zuri.mjs.map
|