@vmz/ui 0.3.6 → 0.3.8
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 +53 -51
- package/contracts/token-requirements.v0.json +58 -1
- package/package.json +5 -2
- package/presets/web-surface.v0.json +14 -12
- package/src/components/Accordion.vmz +127 -94
- package/src/components/Alert.vmz +125 -28
- package/src/components/AppShell.vmz +125 -57
- package/src/components/Autocomplete.vmz +261 -154
- package/src/components/Avatar.vmz +20 -12
- package/src/components/Badge.vmz +62 -70
- package/src/components/Breadcrumb.vmz +86 -72
- package/src/components/BulkActions.vmz +56 -51
- package/src/components/Button.vmz +237 -211
- package/src/components/Callout.vmz +178 -77
- package/src/components/Card.vmz +141 -120
- package/src/components/Checkbox.vmz +131 -55
- package/src/components/CodeBlock.vmz +77 -30
- package/src/components/Collapse.vmz +64 -11
- package/src/components/ConsoleShell.vmz +405 -251
- package/src/components/Content.vmz +15 -1
- package/src/components/DataTable.vmz +294 -194
- package/src/components/DatePicker.vmz +766 -674
- package/src/components/Descriptions.vmz +90 -0
- package/src/components/Dialog.vmz +137 -38
- package/src/components/Divider.vmz +8 -1
- package/src/components/Drawer.vmz +518 -427
- package/src/components/Dropdown.vmz +195 -51
- package/src/components/Empty.vmz +96 -54
- package/src/components/Field.vmz +170 -115
- package/src/components/FilterBar.vmz +34 -4
- package/src/components/Flex.vmz +3 -1
- package/src/components/Footer.vmz +6 -3
- package/src/components/Form.vmz +41 -0
- package/src/components/FormItem.vmz +78 -79
- package/src/components/Grid.vmz +6 -3
- package/src/components/Header.vmz +193 -6
- package/src/components/Layout.vmz +3 -1
- package/src/components/Link.vmz +25 -10
- package/src/components/List.vmz +124 -102
- package/src/components/Menu.vmz +416 -243
- package/src/components/Message.vmz +167 -0
- package/src/components/Notification.vmz +132 -37
- package/src/components/Pagination.vmz +237 -69
- package/src/components/Popconfirm.vmz +287 -0
- package/src/components/Popover.vmz +341 -223
- package/src/components/Progress.vmz +16 -5
- package/src/components/Prose.vmz +180 -81
- package/src/components/QueryForm.vmz +31 -9
- package/src/components/RadioGroup.vmz +204 -124
- package/src/components/Result.vmz +60 -27
- package/src/components/Segmented.vmz +86 -51
- package/src/components/Select.vmz +620 -533
- package/src/components/Sider.vmz +120 -7
- package/src/components/Skeleton.vmz +9 -7
- package/src/components/Space.vmz +9 -3
- package/src/components/Spinner.vmz +5 -4
- package/src/components/Steps.vmz +118 -103
- package/src/components/Switch.vmz +131 -98
- package/src/components/Table.vmz +270 -165
- package/src/components/Tabs.vmz +125 -110
- package/src/components/Tag.vmz +60 -43
- package/src/components/TextArea.vmz +125 -118
- package/src/components/Timeline.vmz +111 -76
- package/src/components/Toc.vmz +90 -74
- package/src/components/Tooltip.vmz +107 -58
- package/src/components/Tree.vmz +214 -191
- package/src/components/Typography.vmz +23 -8
- package/src/components/Upload.vmz +1394 -1289
|
@@ -1,251 +1,405 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div data-vmz-ui="console-shell" class="vmz-ui-console-shell">
|
|
3
|
-
<aside data-vmz-shell="sidebar" :aria-label="navLabel" class="vmz-ui-console-shell__sidebar">
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
</
|
|
11
|
-
</
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.vmz-ui-console-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.vmz-ui-console-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.vmz-ui-console-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
font-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.vmz-ui-console-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div data-vmz-ui="console-shell" :onKeyDown="onShellKeyDown" class="vmz-ui-console-shell">
|
|
3
|
+
<aside data-vmz-shell="sidebar" :aria-label="navLabel" class="vmz-ui-console-shell__sidebar">
|
|
4
|
+
<div class="vmz-ui-console-shell__sidebar-top">
|
|
5
|
+
<a v-if="brand" :href="homeHref" class="vmz-ui-console-shell__brand">
|
|
6
|
+
{{ brand }}
|
|
7
|
+
</a>
|
|
8
|
+
<button v-if="nav.length" type="button" :aria-label="menuLabel || navLabel" :aria-expanded="menuOpen ? 'true' : 'false'" aria-controls="vmz-console-shell-nav" @click="toggleMenu" class="vmz-ui-console-shell__menu">
|
|
9
|
+
<Icon :name="menuOpen ? 'action.close' : 'action.menu'" size="md" decorative />
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
<nav id="vmz-console-shell-nav" :data-open="menuOpen ? 'true' : null" class="vmz-ui-console-shell__nav">
|
|
13
|
+
<a v-for="item in nav" :key="item.id" :href="item.href" :data-vmz-nav="item.id" :data-active="item.id === activeNavId ? 'true' : null" :aria-current="item.id === activeNavId ? 'page' : null">
|
|
14
|
+
{{ item.title }}
|
|
15
|
+
</a>
|
|
16
|
+
</nav>
|
|
17
|
+
</aside>
|
|
18
|
+
<div class="vmz-ui-console-shell__body">
|
|
19
|
+
<header data-vmz-shell="header" class="vmz-ui-console-shell__header">
|
|
20
|
+
<a v-if="backLabel && backHref" :href="backHref" class="vmz-ui-console-shell__back">
|
|
21
|
+
{{ backLabel }}
|
|
22
|
+
</a>
|
|
23
|
+
<div class="vmz-ui-console-shell__header-copy">
|
|
24
|
+
<p v-if="breadcrumbLabel" data-vmz-shell="breadcrumb" class="vmz-ui-console-shell__breadcrumb">
|
|
25
|
+
{{ breadcrumbLabel }}
|
|
26
|
+
</p>
|
|
27
|
+
<h1 v-if="title" class="vmz-ui-console-shell__title">
|
|
28
|
+
{{ title }}
|
|
29
|
+
</h1>
|
|
30
|
+
<p v-if="subtitle" class="vmz-ui-console-shell__subtitle">
|
|
31
|
+
{{ subtitle }}
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
<a v-if="primaryActionLabel && primaryActionHref" :href="primaryActionHref" class="vmz-ui-console-shell__action">
|
|
35
|
+
{{ primaryActionLabel }}
|
|
36
|
+
</a>
|
|
37
|
+
</header>
|
|
38
|
+
<main data-vmz-shell="main" class="vmz-ui-console-shell__main">
|
|
39
|
+
<div class="vmz-ui-console-shell__panel">
|
|
40
|
+
<slot />
|
|
41
|
+
</div>
|
|
42
|
+
</main>
|
|
43
|
+
<footer v-if="footer" data-vmz-shell="footer" class="vmz-ui-console-shell__footer">
|
|
44
|
+
{{ footer }}
|
|
45
|
+
</footer>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
<style>
|
|
50
|
+
.vmz-ui-console-shell {
|
|
51
|
+
display: grid;
|
|
52
|
+
grid-template-columns: 13rem minmax(0, 1fr);
|
|
53
|
+
grid-template-rows: minmax(100%, 100%);
|
|
54
|
+
min-height: 100vh;
|
|
55
|
+
min-height: 100dvh;
|
|
56
|
+
height: 100dvh;
|
|
57
|
+
color: var(--vmz-text-ink);
|
|
58
|
+
background: var(--vmz-surface-page);
|
|
59
|
+
font-family: var(--vmz-font-sans);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.vmz-ui-console-shell__sidebar {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--vmz-space-4, 1rem);
|
|
66
|
+
padding: var(--vmz-space-3, 0.75rem);
|
|
67
|
+
border-right: 1px solid var(--vmz-line-subtle);
|
|
68
|
+
min-height: 100%;
|
|
69
|
+
align-self: stretch;
|
|
70
|
+
background: var(--vmz-surface-paper);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.vmz-ui-console-shell__sidebar-top {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
gap: var(--vmz-space-2, 0.5rem);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.vmz-ui-console-shell__menu {
|
|
81
|
+
display: none;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
flex: none;
|
|
85
|
+
width: var(--vmz-control-height, 2rem);
|
|
86
|
+
min-height: var(--vmz-control-height, 2rem);
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: 1px solid var(--vmz-line-default);
|
|
89
|
+
border-radius: var(--vmz-radius-md, 6px);
|
|
90
|
+
background: var(--vmz-surface-paper);
|
|
91
|
+
color: var(--vmz-text-steel);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
outline: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.vmz-ui-console-shell__menu:focus-visible {
|
|
97
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.vmz-ui-console-shell__brand {
|
|
101
|
+
padding: var(--vmz-space-1, 0.25rem) var(--vmz-space-3, 0.75rem);
|
|
102
|
+
color: var(--vmz-text-ink);
|
|
103
|
+
font-size: 1rem;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
line-height: 1.5rem;
|
|
106
|
+
letter-spacing: 0;
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
outline: none;
|
|
109
|
+
border-radius: var(--vmz-radius-md, 6px);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.vmz-ui-console-shell__brand:hover {
|
|
113
|
+
color: var(--vmz-action-primary-background);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.vmz-ui-console-shell__brand:focus-visible {
|
|
117
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.vmz-ui-console-shell__nav {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: var(--vmz-space-1, 0.25rem);
|
|
124
|
+
flex: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.vmz-ui-console-shell__nav a {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
min-height: 2.25rem;
|
|
131
|
+
padding: 0 var(--vmz-space-3, 0.75rem);
|
|
132
|
+
border-radius: var(--vmz-radius-md, 6px);
|
|
133
|
+
color: var(--vmz-text-steel);
|
|
134
|
+
font-size: 0.875rem;
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
line-height: 1.25rem;
|
|
137
|
+
text-decoration: none;
|
|
138
|
+
outline: none;
|
|
139
|
+
transition:
|
|
140
|
+
color var(--vmz-motion-control-duration, 150ms) var(--vmz-motion-control-easing, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
141
|
+
background-color var(--vmz-motion-control-duration, 150ms) var(--vmz-motion-control-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.vmz-ui-console-shell__nav a:hover {
|
|
145
|
+
color: var(--vmz-text-ink);
|
|
146
|
+
background: var(--vmz-surface-mist);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.vmz-ui-console-shell__nav a[data-active="true"] {
|
|
150
|
+
color: var(--vmz-action-primary-background);
|
|
151
|
+
background: var(--vmz-action-primary-soft);
|
|
152
|
+
font-weight: 600;
|
|
153
|
+
box-shadow: inset 2px 0 0 var(--vmz-action-primary-background);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.vmz-ui-console-shell__nav a:focus-visible {
|
|
157
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.vmz-ui-console-shell__body {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
min-width: 0;
|
|
164
|
+
min-height: 0;
|
|
165
|
+
height: 100%;
|
|
166
|
+
overflow: auto;
|
|
167
|
+
background: var(--vmz-surface-page);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.vmz-ui-console-shell__header {
|
|
171
|
+
position: sticky;
|
|
172
|
+
top: 0;
|
|
173
|
+
z-index: 20;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: space-between;
|
|
177
|
+
gap: var(--vmz-space-4, 1rem);
|
|
178
|
+
min-height: var(--vmz-layout-header-height-compact, 3.5rem);
|
|
179
|
+
padding: 0 var(--vmz-space-5, 1.5rem);
|
|
180
|
+
border-bottom: 1px solid var(--vmz-line-subtle);
|
|
181
|
+
background: var(--vmz-surface-paper);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.vmz-ui-console-shell__back {
|
|
185
|
+
display: none;
|
|
186
|
+
align-items: center;
|
|
187
|
+
flex: none;
|
|
188
|
+
min-height: var(--vmz-control-height, 2rem);
|
|
189
|
+
color: var(--vmz-action-link-foreground);
|
|
190
|
+
font-size: var(--vmz-type-caption);
|
|
191
|
+
line-height: var(--vmz-type-line-height-caption);
|
|
192
|
+
text-decoration: none;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
outline: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.vmz-ui-console-shell__back:hover {
|
|
198
|
+
color: var(--vmz-action-link-hover);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.vmz-ui-console-shell__back:focus-visible {
|
|
202
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.vmz-ui-console-shell__header-copy {
|
|
206
|
+
display: grid;
|
|
207
|
+
gap: 0.125rem;
|
|
208
|
+
min-width: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.vmz-ui-console-shell__breadcrumb {
|
|
212
|
+
margin: 0;
|
|
213
|
+
color: var(--vmz-text-tertiary);
|
|
214
|
+
font-size: 0.75rem;
|
|
215
|
+
line-height: 1.125rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.vmz-ui-console-shell__title {
|
|
219
|
+
margin: 0;
|
|
220
|
+
color: var(--vmz-text-ink);
|
|
221
|
+
font-size: 1.25rem;
|
|
222
|
+
line-height: 1.75rem;
|
|
223
|
+
font-weight: 600;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.vmz-ui-console-shell__subtitle {
|
|
227
|
+
margin: 0;
|
|
228
|
+
color: var(--vmz-text-steel);
|
|
229
|
+
font-size: 0.8125rem;
|
|
230
|
+
line-height: 1.25rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.vmz-ui-console-shell__action {
|
|
234
|
+
display: inline-flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
flex: none;
|
|
238
|
+
min-height: 2rem;
|
|
239
|
+
padding: 0 var(--vmz-space-3, 0.75rem);
|
|
240
|
+
border-radius: var(--vmz-radius-md, 6px);
|
|
241
|
+
background: var(--vmz-action-primary-background);
|
|
242
|
+
color: var(--vmz-action-primary-foreground);
|
|
243
|
+
font-size: 0.875rem;
|
|
244
|
+
font-weight: 500;
|
|
245
|
+
text-decoration: none;
|
|
246
|
+
white-space: nowrap;
|
|
247
|
+
outline: none;
|
|
248
|
+
transition: background-color var(--vmz-motion-control-duration, 150ms) var(--vmz-motion-control-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.vmz-ui-console-shell__action:hover {
|
|
252
|
+
background: var(--vmz-action-primary-hover);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.vmz-ui-console-shell__action:focus-visible {
|
|
256
|
+
box-shadow: 0 0 0 3px var(--vmz-focus-ring);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.vmz-ui-console-shell__main {
|
|
260
|
+
flex: 1 1 auto;
|
|
261
|
+
padding: 0;
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-direction: column;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* The shell owns the page axis, not a card boundary. Pages place their own
|
|
267
|
+
workspace panel so header and content share one left edge. */
|
|
268
|
+
.vmz-ui-console-shell__panel {
|
|
269
|
+
flex: 0 0 auto;
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
gap: var(--vmz-space-4, 1rem);
|
|
273
|
+
padding: var(--vmz-space-5, 1.5rem);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.vmz-ui-console-shell__footer {
|
|
277
|
+
margin-top: auto;
|
|
278
|
+
padding: var(--vmz-space-4, 1rem) var(--vmz-space-5, 1.5rem);
|
|
279
|
+
border-top: 1px solid var(--vmz-line-subtle);
|
|
280
|
+
color: var(--vmz-text-tertiary);
|
|
281
|
+
font-size: 0.8125rem;
|
|
282
|
+
background: var(--vmz-surface-paper);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@media (max-width: 720px) {
|
|
286
|
+
.vmz-ui-console-shell {
|
|
287
|
+
grid-template-columns: 1fr;
|
|
288
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
289
|
+
height: auto;
|
|
290
|
+
min-height: 100dvh;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.vmz-ui-console-shell__sidebar {
|
|
294
|
+
border-right: 0;
|
|
295
|
+
border-bottom: 1px solid var(--vmz-line-subtle);
|
|
296
|
+
gap: var(--vmz-space-2, 0.5rem);
|
|
297
|
+
padding: var(--vmz-space-2, 0.5rem) var(--vmz-space-4, 1rem);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.vmz-ui-console-shell__menu {
|
|
301
|
+
display: inline-flex;
|
|
302
|
+
width: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
303
|
+
min-height: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.vmz-ui-console-shell__nav {
|
|
307
|
+
display: none;
|
|
308
|
+
flex-direction: column;
|
|
309
|
+
gap: var(--vmz-space-1, 0.25rem);
|
|
310
|
+
flex: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.vmz-ui-console-shell__nav[data-open="true"] {
|
|
314
|
+
display: flex;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.vmz-ui-console-shell__nav a {
|
|
318
|
+
min-height: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
319
|
+
white-space: normal;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.vmz-ui-console-shell__header {
|
|
323
|
+
display: grid;
|
|
324
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
325
|
+
align-items: center;
|
|
326
|
+
gap: var(--vmz-space-2, 0.5rem);
|
|
327
|
+
min-height: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
328
|
+
padding: var(--vmz-space-3, 0.75rem) var(--vmz-space-4, 1rem);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.vmz-ui-console-shell__back {
|
|
332
|
+
display: inline-flex;
|
|
333
|
+
grid-column: 1;
|
|
334
|
+
min-height: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.vmz-ui-console-shell__header-copy {
|
|
338
|
+
grid-column: 2;
|
|
339
|
+
gap: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.vmz-ui-console-shell__breadcrumb,
|
|
343
|
+
.vmz-ui-console-shell__subtitle {
|
|
344
|
+
display: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.vmz-ui-console-shell__title {
|
|
348
|
+
font-size: var(--vmz-type-subtitle);
|
|
349
|
+
line-height: var(--vmz-type-line-height-title);
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
text-overflow: ellipsis;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.vmz-ui-console-shell__action {
|
|
356
|
+
grid-column: 3;
|
|
357
|
+
justify-self: end;
|
|
358
|
+
min-height: calc(var(--vmz-control-height, 2rem) * 1.5);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.vmz-ui-console-shell__main {
|
|
362
|
+
padding: 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.vmz-ui-console-shell__panel {
|
|
366
|
+
padding: var(--vmz-space-4, 1rem);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
</style>
|
|
370
|
+
<script client>
|
|
371
|
+
/**
|
|
372
|
+
* VMZ UI — ConsoleShell (Console composition).
|
|
373
|
+
* Sidebar + 56px sticky header + white panel + optional footer. Parent owns nav/copy.
|
|
374
|
+
*/
|
|
375
|
+
export default class ConsoleShell {
|
|
376
|
+
public brand: string = "";
|
|
377
|
+
public homeHref: string = "/";
|
|
378
|
+
public title: string = "";
|
|
379
|
+
public subtitle: string = "";
|
|
380
|
+
public breadcrumbLabel: string = "";
|
|
381
|
+
public primaryActionLabel: string = "";
|
|
382
|
+
public primaryActionHref: string = "";
|
|
383
|
+
public backLabel: string = "";
|
|
384
|
+
public backHref: string = "";
|
|
385
|
+
public activeNavId: string = "";
|
|
386
|
+
public navLabel: string = "";
|
|
387
|
+
public menuLabel: string = "";
|
|
388
|
+
public footer: string = "";
|
|
389
|
+
public menuOpen: boolean = false;
|
|
390
|
+
/** @type {{ id: string, title: string, href: string }[]} */
|
|
391
|
+
public nav: {
|
|
392
|
+
id: string;
|
|
393
|
+
title: string;
|
|
394
|
+
href: string;
|
|
395
|
+
}[] = [];
|
|
396
|
+
toggleMenu() {
|
|
397
|
+
this.menuOpen = !this.menuOpen;
|
|
398
|
+
}
|
|
399
|
+
onShellKeyDown(ev) {
|
|
400
|
+
if (ev && ev.key === "Escape" && this.menuOpen) {
|
|
401
|
+
this.menuOpen = false;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
</script>
|