@quazardous/qdadm 2.52.0 → 2.53.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/dist/styles/qdadm.css +1 -1
- package/package.json +1 -1
- package/src/cards/builtin/index.ts +6 -5
- package/src/cards/builtin/pills.ts +36 -0
- package/src/cards/index.ts +1 -0
- package/src/cards/types.ts +12 -0
- package/src/components/layout/AppLayout.vue +4 -0
- package/src/components/layout/BaseLayout.vue +4 -0
- package/src/domain/QdBadge.vue +36 -0
- package/src/domain/QdDomainBar.vue +213 -0
- package/src/domain/QdDomainBarZone.vue +19 -0
- package/src/domain/index.ts +6 -0
- package/src/domain/registry.ts +122 -0
- package/src/i18n/defaults/core.en.generated.ts +11 -0
- package/src/i18n/defaults/core.en.yml +11 -0
- package/src/i18n/defaults/core.fr.generated.ts +11 -0
- package/src/i18n/defaults/core.fr.yml +11 -0
- package/src/index.ts +1 -0
- package/src/kernel/KernelContext.routing.ts +10 -1
- package/src/kernel/KernelContext.ts +7 -0
- package/src/kernel/KernelContext.types.ts +2 -0
- package/src/module/moduleRegistry.ts +4 -0
- package/src/styles/_qd-domain-bar.scss +159 -0
- package/src/styles/index.scss +1 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The domain bar (#5389): a domain's title, its navigation and its indicators
|
|
3
|
+
* as pills with badges, on top of its pages. Sticky; compact in one line of
|
|
4
|
+
* icons and badges. Tones from the card tokens (_qd-cards.scss).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// The zone's wrapper steps aside, so the bar sticks within the whole content column
|
|
8
|
+
.qd-domain-bar-zone {
|
|
9
|
+
display: contents;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qd-domain-bar-sentinel {
|
|
13
|
+
height: 1px;
|
|
14
|
+
margin-bottom: -1px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.qd-domain-bar {
|
|
18
|
+
position: sticky;
|
|
19
|
+
top: 0;
|
|
20
|
+
z-index: 5;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.5rem 1rem;
|
|
25
|
+
margin: 0.75rem 1rem 0;
|
|
26
|
+
padding: 0.5rem 0.75rem;
|
|
27
|
+
background: var(--qd-card-bg);
|
|
28
|
+
border: 1px solid var(--qd-card-border);
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
color: var(--qd-card-ink);
|
|
31
|
+
font-size: 0.875rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.qd-domain-bar-title {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 0.4rem;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
color: var(--qd-card-ink-strong);
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
}
|
|
43
|
+
a.qd-domain-bar-title:hover .qd-domain-bar-name { text-decoration: underline; }
|
|
44
|
+
|
|
45
|
+
.qd-domain-bar-nav {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
gap: 0.25rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.qd-domain-bar-entry {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 0.35rem;
|
|
55
|
+
padding: 0.3rem 0.6rem;
|
|
56
|
+
border-radius: 6px;
|
|
57
|
+
color: var(--qd-card-muted);
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
border-bottom: 2px solid transparent;
|
|
60
|
+
|
|
61
|
+
&:hover { color: var(--qd-card-ink); background: var(--qd-card-track); }
|
|
62
|
+
&:focus-visible { outline: 2px solid var(--qd-card-accent); outline-offset: 1px; }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.qd-domain-bar-entry--current {
|
|
66
|
+
color: var(--qd-card-ink-strong);
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
border-bottom-color: var(--qd-card-accent);
|
|
69
|
+
border-radius: 6px 6px 0 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.qd-domain-bar-indicators {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
gap: 0.4rem;
|
|
76
|
+
margin: 0 0 0 auto;
|
|
77
|
+
padding: 0;
|
|
78
|
+
list-style: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.qd-domain-pill-body {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 0.35rem;
|
|
85
|
+
padding: 0.25rem 0.55rem;
|
|
86
|
+
border: 1px solid var(--qd-card-border);
|
|
87
|
+
border-radius: 999px;
|
|
88
|
+
color: var(--qd-card-ink);
|
|
89
|
+
text-decoration: none;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
a.qd-domain-pill-body:hover { background: var(--qd-card-track); }
|
|
93
|
+
a.qd-domain-pill-body:focus-visible { outline: 2px solid var(--qd-card-accent); outline-offset: 1px; }
|
|
94
|
+
|
|
95
|
+
.qd-domain-pill[data-status='critical'] .qd-domain-pill-body { border-color: var(--qd-tone-critical); }
|
|
96
|
+
.qd-domain-pill[data-status='watch'] .qd-domain-pill-body { border-color: var(--qd-tone-watch); }
|
|
97
|
+
|
|
98
|
+
.qd-domain-pill-title { color: var(--qd-card-muted); }
|
|
99
|
+
.qd-domain-pill-value { font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
100
|
+
.qd-domain-pill-value--zero { color: var(--qd-card-muted); font-weight: 400; }
|
|
101
|
+
.qd-domain-pill[data-state='unreachable'] .qd-domain-pill-mark,
|
|
102
|
+
.qd-domain-pill[data-state='invalid'] .qd-domain-pill-mark { color: var(--qd-tone-watch); }
|
|
103
|
+
.qd-domain-pill[data-state='loading'] .qd-domain-pill-mark { color: var(--qd-card-muted); }
|
|
104
|
+
|
|
105
|
+
.qd-domain-bar-toggle {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
width: 2rem;
|
|
110
|
+
height: 2rem;
|
|
111
|
+
border: 0;
|
|
112
|
+
border-radius: 6px;
|
|
113
|
+
background: transparent;
|
|
114
|
+
color: var(--qd-card-muted);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
|
|
117
|
+
&:hover { background: var(--qd-card-track); color: var(--qd-card-ink); }
|
|
118
|
+
&:focus-visible { outline: 2px solid var(--qd-card-accent); }
|
|
119
|
+
&[aria-pressed='true'] { color: var(--qd-card-accent); }
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// The badge: a count, its tone from how things stand
|
|
123
|
+
.qd-badge {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
min-width: 1.25rem;
|
|
128
|
+
height: 1.25rem;
|
|
129
|
+
padding: 0 0.35rem;
|
|
130
|
+
border-radius: 999px;
|
|
131
|
+
background: var(--qd-tone-neutral-bg);
|
|
132
|
+
color: var(--qd-card-ink-strong);
|
|
133
|
+
font-size: 0.75rem;
|
|
134
|
+
font-weight: 700;
|
|
135
|
+
line-height: 1;
|
|
136
|
+
font-variant-numeric: tabular-nums;
|
|
137
|
+
}
|
|
138
|
+
.qd-badge--critical { background: var(--qd-tone-critical); color: var(--qd-card-bg); }
|
|
139
|
+
.qd-badge--watch { background: var(--qd-tone-watch); color: var(--qd-card-bg); }
|
|
140
|
+
|
|
141
|
+
// Compact: one line of icons and badges
|
|
142
|
+
.qd-domain-bar--compact {
|
|
143
|
+
flex-wrap: nowrap;
|
|
144
|
+
gap: 0.5rem;
|
|
145
|
+
padding: 0.25rem 0.5rem;
|
|
146
|
+
overflow-x: auto;
|
|
147
|
+
box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
|
|
148
|
+
|
|
149
|
+
.qd-domain-bar-title { font-size: 0.875rem; }
|
|
150
|
+
.qd-domain-bar-nav, .qd-domain-bar-indicators { flex-wrap: nowrap; }
|
|
151
|
+
.qd-domain-bar-entry { padding: 0.2rem 0.4rem; }
|
|
152
|
+
.qd-domain-pill-body { padding: 0.15rem 0.4rem; }
|
|
153
|
+
.qd-domain-bar-toggle { width: 1.75rem; height: 1.75rem; }
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (max-width: 700px) {
|
|
157
|
+
.qd-domain-bar { margin: 0.5rem 0.5rem 0; }
|
|
158
|
+
.qd-domain-bar-indicators { margin-left: 0; }
|
|
159
|
+
}
|