@7365admin1/layer-common 3.2.2-staging.90 → 3.2.2-staging.92
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/assets/css/primitives.css +563 -0
- package/components/AppButton.vue +52 -0
- package/components/AppCard.vue +20 -0
- package/components/AppDateField.vue +35 -0
- package/components/AppField.vue +46 -0
- package/components/AppKpiTile.vue +65 -0
- package/components/AppSegmented.vue +38 -0
- package/components/AppSelect.vue +47 -0
- package/components/Avatar/Main.vue +13 -1
- package/components/CardToolbar.vue +37 -0
- package/components/DashboardMain.vue +67 -122
- package/components/Layout/Header.vue +16 -2
- package/components/MemberMain.vue +79 -63
- package/components/PageHeader.vue +40 -0
- package/components/StatusChip.vue +17 -2
- package/components/SwitchContext.vue +18 -0
- package/package.json +1 -1
- package/plugins/vuetify.ts +1 -0
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PLATFORM REDESIGN - THE PAGE PRIMITIVES.
|
|
3
|
+
*
|
|
4
|
+
* Phases 1-5 tokenised what Vuetify draws. This file is the other half: the
|
|
5
|
+
* pieces the design draws that Vuetify has no component for, taken as literal
|
|
6
|
+
* CSS out of the handoff prototype
|
|
7
|
+
* (`design_handoff_platform_redesign/iService365 Redesign.dc.html`) rather
|
|
8
|
+
* than re-derived by eye. Every declaration below has a line in that file.
|
|
9
|
+
*
|
|
10
|
+
* The rule for a screen adopting these: MARKUP, not a theme override. A
|
|
11
|
+
* `.v-btn` restyled into a pill is still a `.v-btn` with Vuetify's ripple,
|
|
12
|
+
* overlay, min-width and uppercase tracking fighting it at a higher
|
|
13
|
+
* specificity; a `<button class="app-btn">` simply is the button in the
|
|
14
|
+
* design. Where Vuetify owns the behaviour (the data table, the menu, the
|
|
15
|
+
* dialog) it stays - only the chrome around it is replaced.
|
|
16
|
+
*
|
|
17
|
+
* Numbers, for review against the handoff:
|
|
18
|
+
* page title 22px/800/-0.01em · card radius 14px, 1px border, --shadow
|
|
19
|
+
* in-card toolbar 0 20px, tabs 14px 2px 12px, 2px accent underline
|
|
20
|
+
* fields 40px (34px compact), 10px radius, 13.5px/500
|
|
21
|
+
* primary button 40px, 10px radius, 13.5px/800 · ghost 38px, 13px/700
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/* ------------------------------------------------------------------ */
|
|
25
|
+
/* The typeface. */
|
|
26
|
+
/* ------------------------------------------------------------------ */
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Phase 1 loaded Manrope and deliberately did not apply it, so that the
|
|
30
|
+
* product would not sit half-migrated between two typefaces. The page
|
|
31
|
+
* scaffold is the migration, so the font goes on now - on Vuetify's own
|
|
32
|
+
* application root, which is every rendered page in all eleven apps.
|
|
33
|
+
*
|
|
34
|
+
* `.v-application` and not `body`: Vuetify sets `font-family` on that class
|
|
35
|
+
* itself, so a rule on `body` loses to it and the product would keep Roboto
|
|
36
|
+
* everywhere while the new primitives alone changed - the exact
|
|
37
|
+
* half-migrated look this was avoiding.
|
|
38
|
+
*/
|
|
39
|
+
.v-application,
|
|
40
|
+
.v-overlay-container {
|
|
41
|
+
font-family: var(--font-sans);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ------------------------------------------------------------------ */
|
|
45
|
+
/* PageHeader - the row every screen opens with. */
|
|
46
|
+
/* ------------------------------------------------------------------ */
|
|
47
|
+
|
|
48
|
+
.app-page-head {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
gap: 16px;
|
|
53
|
+
margin-bottom: 18px;
|
|
54
|
+
flex-wrap: wrap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.app-page-head__title {
|
|
58
|
+
margin: 0;
|
|
59
|
+
font-size: var(--fs-h1);
|
|
60
|
+
font-weight: var(--fw-h1);
|
|
61
|
+
letter-spacing: var(--ls-h1);
|
|
62
|
+
line-height: 1.25;
|
|
63
|
+
color: var(--text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.app-page-head__sub {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 5px;
|
|
70
|
+
margin-top: 4px;
|
|
71
|
+
font-size: 12.5px;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
color: var(--muted);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.app-page-head__actions {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 10px;
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ------------------------------------------------------------------ */
|
|
84
|
+
/* AppCard - the surface everything else sits on. */
|
|
85
|
+
/* ------------------------------------------------------------------ */
|
|
86
|
+
|
|
87
|
+
.app-card {
|
|
88
|
+
background: var(--card);
|
|
89
|
+
border: 1px solid var(--border);
|
|
90
|
+
border-radius: var(--r-card);
|
|
91
|
+
box-shadow: var(--shadow);
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.app-card--flush {
|
|
96
|
+
overflow: visible;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* ------------------------------------------------------------------ */
|
|
100
|
+
/* CardToolbar - the in-card top row. */
|
|
101
|
+
/* ------------------------------------------------------------------ */
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Two shapes in the handoff, one component. With tabs the row is `0 20px` and
|
|
105
|
+
* the tabs supply their own vertical padding, so the underline meets the
|
|
106
|
+
* card's rule; without tabs (a refresh button on the left) it is `10px 14px`.
|
|
107
|
+
*/
|
|
108
|
+
.app-toolbar {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: 22px;
|
|
112
|
+
padding: 0 var(--cellpad-x);
|
|
113
|
+
border-bottom: 1px solid var(--border);
|
|
114
|
+
min-height: 48px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.app-toolbar--plain {
|
|
118
|
+
gap: 8px;
|
|
119
|
+
padding: 10px 14px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.app-toolbar__spacer {
|
|
123
|
+
flex: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.app-toolbar__right {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: 8px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.app-toolbar__count {
|
|
133
|
+
font-size: 12.5px;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
color: var(--muted);
|
|
136
|
+
font-variant-numeric: tabular-nums;
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.app-tabs {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: 22px;
|
|
144
|
+
min-width: 0;
|
|
145
|
+
overflow-x: auto;
|
|
146
|
+
scrollbar-width: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.app-tabs::-webkit-scrollbar {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.app-tab {
|
|
154
|
+
padding: 14px 2px 12px 2px;
|
|
155
|
+
border: none;
|
|
156
|
+
background: transparent;
|
|
157
|
+
border-bottom: 2px solid transparent;
|
|
158
|
+
font-family: inherit;
|
|
159
|
+
font-size: var(--fs-nav);
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
color: var(--muted);
|
|
162
|
+
white-space: nowrap;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.app-tab:hover {
|
|
167
|
+
color: var(--text2);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.app-tab--active {
|
|
171
|
+
font-weight: 800;
|
|
172
|
+
color: var(--accent-text);
|
|
173
|
+
border-bottom-color: var(--accent);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ------------------------------------------------------------------ */
|
|
177
|
+
/* The table, drawn as a grid. */
|
|
178
|
+
/* ------------------------------------------------------------------ */
|
|
179
|
+
|
|
180
|
+
.app-thead {
|
|
181
|
+
display: grid;
|
|
182
|
+
gap: 12px;
|
|
183
|
+
padding: 12px var(--cellpad-x);
|
|
184
|
+
font-size: var(--fs-table-head);
|
|
185
|
+
font-weight: var(--fw-table-head);
|
|
186
|
+
letter-spacing: var(--ls-table-head);
|
|
187
|
+
text-transform: uppercase;
|
|
188
|
+
color: var(--muted);
|
|
189
|
+
background: var(--thead);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.app-trow {
|
|
193
|
+
display: grid;
|
|
194
|
+
gap: 12px;
|
|
195
|
+
align-items: center;
|
|
196
|
+
padding: var(--cellpad) var(--cellpad-x);
|
|
197
|
+
border-top: 1px solid var(--border);
|
|
198
|
+
font-size: 13px;
|
|
199
|
+
font-weight: 600;
|
|
200
|
+
color: var(--text);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.app-trow:hover {
|
|
204
|
+
background: var(--hover);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.app-cell--strong {
|
|
208
|
+
font-weight: 700;
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
text-overflow: ellipsis;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.app-cell--muted {
|
|
215
|
+
color: var(--text2);
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
text-overflow: ellipsis;
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.app-cell--num {
|
|
222
|
+
color: var(--text2);
|
|
223
|
+
font-variant-numeric: tabular-nums;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.app-empty {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
align-items: center;
|
|
230
|
+
gap: 8px;
|
|
231
|
+
padding: 52px var(--cellpad-x);
|
|
232
|
+
border-top: 1px solid var(--border);
|
|
233
|
+
font-size: 13px;
|
|
234
|
+
font-weight: 600;
|
|
235
|
+
color: var(--muted);
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* ------------------------------------------------------------------ */
|
|
240
|
+
/* AppButton. */
|
|
241
|
+
/* ------------------------------------------------------------------ */
|
|
242
|
+
|
|
243
|
+
.app-btn {
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
justify-content: center;
|
|
247
|
+
gap: 6px;
|
|
248
|
+
height: var(--btn-h);
|
|
249
|
+
padding: 0 16px;
|
|
250
|
+
border: none;
|
|
251
|
+
border-radius: var(--r-inner);
|
|
252
|
+
/* `--accent` at 3.23:1 cannot carry a white label - see Phase 1. The fill,
|
|
253
|
+
and only the fill, uses the 18%-darker `--accent-strong`; the underline,
|
|
254
|
+
the links and every soft background stay on `--accent`. */
|
|
255
|
+
background: var(--accent-strong);
|
|
256
|
+
color: var(--on-accent-strong);
|
|
257
|
+
font-family: inherit;
|
|
258
|
+
font-size: var(--fs-btn);
|
|
259
|
+
font-weight: var(--fw-btn-strong);
|
|
260
|
+
line-height: 1;
|
|
261
|
+
white-space: nowrap;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.app-btn:hover {
|
|
266
|
+
filter: brightness(1.06);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.app-btn:disabled {
|
|
270
|
+
opacity: 0.5;
|
|
271
|
+
cursor: default;
|
|
272
|
+
filter: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.app-btn--ghost {
|
|
276
|
+
height: 38px;
|
|
277
|
+
padding: 0 14px;
|
|
278
|
+
border: 1px solid var(--border);
|
|
279
|
+
background: var(--card);
|
|
280
|
+
color: var(--text2);
|
|
281
|
+
font-size: var(--fs-nav);
|
|
282
|
+
font-weight: var(--fw-btn);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.app-btn--ghost:hover {
|
|
286
|
+
background: var(--hover);
|
|
287
|
+
filter: none;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.app-btn--icon {
|
|
291
|
+
width: 32px;
|
|
292
|
+
height: 32px;
|
|
293
|
+
padding: 0;
|
|
294
|
+
border: none;
|
|
295
|
+
border-radius: 8px;
|
|
296
|
+
background: transparent;
|
|
297
|
+
color: var(--text2);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.app-btn--icon:hover {
|
|
301
|
+
background: var(--hover);
|
|
302
|
+
filter: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* The 30px bordered row action - the `more_vert` at the end of a member row. */
|
|
306
|
+
.app-btn--row {
|
|
307
|
+
width: 30px;
|
|
308
|
+
height: 30px;
|
|
309
|
+
padding: 0;
|
|
310
|
+
border: 1px solid var(--border);
|
|
311
|
+
border-radius: 8px;
|
|
312
|
+
background: transparent;
|
|
313
|
+
color: var(--muted);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.app-btn--row:hover {
|
|
317
|
+
background: var(--hover);
|
|
318
|
+
filter: none;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* ------------------------------------------------------------------ */
|
|
322
|
+
/* AppField / AppSelect / AppDateField. */
|
|
323
|
+
/* ------------------------------------------------------------------ */
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Flat and compact, with the label OUTSIDE the box as a small muted word -
|
|
327
|
+
* not Vuetify's outlined field with a label that floats through the border.
|
|
328
|
+
* A native `<input>`/`<select>`, so the browser keeps the keyboard, the date
|
|
329
|
+
* picker and the accessibility for free.
|
|
330
|
+
*/
|
|
331
|
+
.app-field {
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
gap: 8px;
|
|
335
|
+
height: var(--input-h);
|
|
336
|
+
padding: 0 12px;
|
|
337
|
+
border: 1px solid var(--border);
|
|
338
|
+
border-radius: var(--r-inner);
|
|
339
|
+
background: var(--card);
|
|
340
|
+
font-size: var(--fs-nav);
|
|
341
|
+
font-weight: 600;
|
|
342
|
+
color: var(--text);
|
|
343
|
+
min-width: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.app-field--compact {
|
|
347
|
+
height: var(--input-h-compact);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.app-field:focus-within {
|
|
351
|
+
border-color: var(--accent);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.app-field__label {
|
|
355
|
+
font-size: 12px;
|
|
356
|
+
font-weight: 600;
|
|
357
|
+
color: var(--muted);
|
|
358
|
+
white-space: nowrap;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.app-field__icon {
|
|
362
|
+
color: var(--muted);
|
|
363
|
+
flex: 0 0 auto;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.app-field__input {
|
|
367
|
+
flex: 1;
|
|
368
|
+
min-width: 0;
|
|
369
|
+
height: 100%;
|
|
370
|
+
border: none;
|
|
371
|
+
outline: none;
|
|
372
|
+
background: transparent;
|
|
373
|
+
font-family: inherit;
|
|
374
|
+
font-size: var(--fs-cell);
|
|
375
|
+
font-weight: 500;
|
|
376
|
+
color: var(--text);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.app-field__input::placeholder {
|
|
380
|
+
color: var(--muted);
|
|
381
|
+
opacity: 1;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* A `<select>` keeps the native menu; only the chrome is ours. */
|
|
385
|
+
select.app-field__input {
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
font-size: var(--fs-nav);
|
|
388
|
+
appearance: none;
|
|
389
|
+
cursor: pointer;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.app-field--search {
|
|
393
|
+
flex: 1;
|
|
394
|
+
min-width: 220px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.app-filter-row {
|
|
398
|
+
display: flex;
|
|
399
|
+
gap: var(--grid-gap);
|
|
400
|
+
margin-bottom: 14px;
|
|
401
|
+
flex-wrap: wrap;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@media (max-width: 599.98px) {
|
|
405
|
+
.app-filter-row > * {
|
|
406
|
+
flex: 1 1 100%;
|
|
407
|
+
min-width: 0;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* ------------------------------------------------------------------ */
|
|
412
|
+
/* SegmentedControl - Today | Week | Month. */
|
|
413
|
+
/* ------------------------------------------------------------------ */
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The handoff draws this as a 3px-padded bordered tray holding 8px-radius
|
|
417
|
+
* segments; the SELECTED one is an ACCENT FILL, not a grey one. Vuetify's
|
|
418
|
+
* `v-btn-toggle` cannot be talked into that shape (its own height scale, its
|
|
419
|
+
* dividers, its overlay layer), so the tray is written as markup.
|
|
420
|
+
*
|
|
421
|
+
* The fill is `--accent-strong`, not `--accent`: white on `--accent` measures
|
|
422
|
+
* 3.23:1, the same Phase-1 rule every other filled label follows.
|
|
423
|
+
*/
|
|
424
|
+
.app-seg {
|
|
425
|
+
display: flex;
|
|
426
|
+
gap: 2px;
|
|
427
|
+
padding: 3px;
|
|
428
|
+
border: 1px solid var(--border);
|
|
429
|
+
border-radius: var(--r-inner);
|
|
430
|
+
background: var(--card);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.app-seg__item {
|
|
434
|
+
padding: 6px 12px;
|
|
435
|
+
border: none;
|
|
436
|
+
border-radius: 8px;
|
|
437
|
+
background: transparent;
|
|
438
|
+
color: var(--muted);
|
|
439
|
+
font-family: inherit;
|
|
440
|
+
font-size: 12.5px;
|
|
441
|
+
font-weight: 700;
|
|
442
|
+
line-height: 1.2;
|
|
443
|
+
white-space: nowrap;
|
|
444
|
+
cursor: pointer;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.app-seg__item:hover {
|
|
448
|
+
background: var(--hover);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.app-seg__item--on,
|
|
452
|
+
.app-seg__item--on:hover {
|
|
453
|
+
background: var(--accent-strong);
|
|
454
|
+
color: var(--on-accent-strong);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* ------------------------------------------------------------------ */
|
|
458
|
+
/* KpiTile - the dashboard's headline figure. */
|
|
459
|
+
/* ------------------------------------------------------------------ */
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Three rows, in this order, straight from the handoff:
|
|
463
|
+
* 1. a 34px soft icon square and the uppercase label, side by side
|
|
464
|
+
* 2. the 30px tabular number with its percentage pill BESIDE it
|
|
465
|
+
* 3. the sub-line
|
|
466
|
+
* The product had the icon alone on row 1 and the pill stranded at the
|
|
467
|
+
* bottom, which is why the tile read as a different component.
|
|
468
|
+
*/
|
|
469
|
+
.app-kpi {
|
|
470
|
+
padding: 18px;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.app-kpi__head {
|
|
474
|
+
display: flex;
|
|
475
|
+
align-items: center;
|
|
476
|
+
gap: 10px;
|
|
477
|
+
margin-bottom: 14px;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.app-kpi__icon {
|
|
481
|
+
display: flex;
|
|
482
|
+
align-items: center;
|
|
483
|
+
justify-content: center;
|
|
484
|
+
width: 34px;
|
|
485
|
+
height: 34px;
|
|
486
|
+
flex: 0 0 34px;
|
|
487
|
+
border-radius: var(--r-inner);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.app-kpi__label {
|
|
491
|
+
font-size: var(--fs-table-head);
|
|
492
|
+
font-weight: var(--fw-table-head);
|
|
493
|
+
letter-spacing: var(--ls-table-head);
|
|
494
|
+
text-transform: uppercase;
|
|
495
|
+
color: var(--muted);
|
|
496
|
+
min-width: 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.app-kpi__action {
|
|
500
|
+
margin-left: auto;
|
|
501
|
+
flex: 0 0 auto;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.app-kpi__figure {
|
|
505
|
+
display: flex;
|
|
506
|
+
align-items: center;
|
|
507
|
+
gap: 10px;
|
|
508
|
+
flex-wrap: wrap;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.app-kpi__value {
|
|
512
|
+
font-size: var(--fs-kpi);
|
|
513
|
+
font-weight: var(--fw-kpi);
|
|
514
|
+
letter-spacing: var(--ls-kpi);
|
|
515
|
+
line-height: 1.1;
|
|
516
|
+
color: var(--text);
|
|
517
|
+
font-variant-numeric: tabular-nums;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.app-kpi__chip {
|
|
521
|
+
display: inline-flex;
|
|
522
|
+
align-items: center;
|
|
523
|
+
padding: 3px 8px;
|
|
524
|
+
border-radius: 999px;
|
|
525
|
+
font-size: 11.5px;
|
|
526
|
+
font-weight: 800;
|
|
527
|
+
line-height: 1.2;
|
|
528
|
+
background: var(--ok-bg);
|
|
529
|
+
color: var(--ok);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.app-kpi__chip--down {
|
|
533
|
+
background: var(--err-bg);
|
|
534
|
+
color: var(--err);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.app-kpi__sub {
|
|
538
|
+
margin-top: 6px;
|
|
539
|
+
font-size: 12.5px;
|
|
540
|
+
font-weight: 600;
|
|
541
|
+
color: var(--muted);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* ------------------------------------------------------------------ */
|
|
545
|
+
/* Responsive - the prototype has no reference, this follows Phase 1. */
|
|
546
|
+
/* ------------------------------------------------------------------ */
|
|
547
|
+
|
|
548
|
+
@media (max-width: 767.98px) {
|
|
549
|
+
.app-page-head {
|
|
550
|
+
align-items: flex-start;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* The grid table keeps its columns and scrolls sideways inside the card,
|
|
554
|
+
deliberately not restacked into key/value blocks: the columns carry
|
|
555
|
+
meaning by position. Same decision as Phase 1's tables. */
|
|
556
|
+
.app-table-scroll {
|
|
557
|
+
overflow-x: auto;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.app-table-scroll > * {
|
|
561
|
+
min-width: 720px;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
THE BUTTON.
|
|
3
|
+
|
|
4
|
+
A `<button>`, not a restyled `v-btn`. Vuetify's button carries an overlay
|
|
5
|
+
layer, a ripple, a min-width, uppercase letter-spacing and its own height
|
|
6
|
+
scale, all at a specificity a class has to out-shout one declaration at a
|
|
7
|
+
time - which is why the product's primary buttons still read as Vuetify grey
|
|
8
|
+
under a correct token set.
|
|
9
|
+
|
|
10
|
+
Variants, straight from the handoff:
|
|
11
|
+
primary 40px pill-radius accent fill, 13.5px/800, white label
|
|
12
|
+
ghost 38px, 1px border, card fill, 13px/700 in `--text2`
|
|
13
|
+
icon 32px transparent square, 8px radius
|
|
14
|
+
row 30px bordered square - the `more_vert` at the end of a table row
|
|
15
|
+
-->
|
|
16
|
+
<template>
|
|
17
|
+
<component
|
|
18
|
+
:is="to ? resolveLink : 'button'"
|
|
19
|
+
:to="to || undefined"
|
|
20
|
+
:type="to ? undefined : type"
|
|
21
|
+
:disabled="disabled || undefined"
|
|
22
|
+
class="app-btn"
|
|
23
|
+
:class="variant === 'primary' ? '' : `app-btn--${variant}`"
|
|
24
|
+
>
|
|
25
|
+
<v-icon v-if="icon" :icon="icon" :size="iconSize" />
|
|
26
|
+
<slot />
|
|
27
|
+
</component>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import { resolveComponent } from "vue";
|
|
32
|
+
|
|
33
|
+
const props = defineProps({
|
|
34
|
+
variant: {
|
|
35
|
+
type: String as PropType<"primary" | "ghost" | "icon" | "row">,
|
|
36
|
+
default: "primary",
|
|
37
|
+
},
|
|
38
|
+
icon: { type: String, default: "" },
|
|
39
|
+
type: { type: String, default: "button" },
|
|
40
|
+
disabled: { type: Boolean, default: false },
|
|
41
|
+
/** Given, the button routes - same `to` a `v-btn` would have taken. */
|
|
42
|
+
to: { type: [String, Object] as PropType<any>, default: undefined },
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const resolveLink = resolveComponent("NuxtLink");
|
|
46
|
+
|
|
47
|
+
const iconSize = computed(() => {
|
|
48
|
+
if (props.variant === "primary") return 18;
|
|
49
|
+
if (props.variant === "row") return 17;
|
|
50
|
+
return 18;
|
|
51
|
+
});
|
|
52
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
THE CARD.
|
|
3
|
+
|
|
4
|
+
14px radius, a 1px `--border` rule and the design's one-pixel shadow, on
|
|
5
|
+
`--card`. A plain element rather than a `v-card`, because `v-card` brings its
|
|
6
|
+
own elevation, radius and surface colour at a specificity that a class has to
|
|
7
|
+
fight - which is why the radius kept coming back as 4px in Phase 3.
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div class="app-card" :class="{ 'app-card--flush': flush }">
|
|
11
|
+
<slot />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
defineProps({
|
|
17
|
+
/** Let content (a menu, a dropdown) escape the card's rounded corners. */
|
|
18
|
+
flush: { type: Boolean, default: false },
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
THE DATE FIELD.
|
|
3
|
+
|
|
4
|
+
The same 40px box with a calendar glyph, as the handoff draws the two date
|
|
5
|
+
ends of a filter row. `<input type="date">` - the browser's own picker, which
|
|
6
|
+
is the one a phone user already knows and the one that is localised, keyboard
|
|
7
|
+
accessible and free.
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<label class="app-field" :class="{ 'app-field--compact': compact }">
|
|
11
|
+
<v-icon class="app-field__icon" icon="mdi-calendar-month-outline" size="17" />
|
|
12
|
+
<span v-if="label" class="app-field__label">{{ label }}</span>
|
|
13
|
+
<input
|
|
14
|
+
class="app-field__input"
|
|
15
|
+
type="date"
|
|
16
|
+
:value="model"
|
|
17
|
+
:min="min || undefined"
|
|
18
|
+
:max="max || undefined"
|
|
19
|
+
:disabled="disabled"
|
|
20
|
+
@input="model = ($event.target as HTMLInputElement).value"
|
|
21
|
+
/>
|
|
22
|
+
</label>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
const model = defineModel({ type: String, default: "" });
|
|
27
|
+
|
|
28
|
+
defineProps({
|
|
29
|
+
label: { type: String, default: "" },
|
|
30
|
+
min: { type: String, default: "" },
|
|
31
|
+
max: { type: String, default: "" },
|
|
32
|
+
compact: { type: Boolean, default: false },
|
|
33
|
+
disabled: { type: Boolean, default: false },
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
THE TEXT FIELD.
|
|
3
|
+
|
|
4
|
+
40px (34px compact), 10px radius, a 1px border, 13.5px/500 - and the label
|
|
5
|
+
OUTSIDE the box as a small muted word, not Vuetify's outlined field with a
|
|
6
|
+
label that floats up through the border. A native `<input>`, so the browser
|
|
7
|
+
keeps the keyboard, autofill and accessibility for free.
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<label
|
|
11
|
+
class="app-field"
|
|
12
|
+
:class="[{ 'app-field--compact': compact, 'app-field--search': search }, klass]"
|
|
13
|
+
>
|
|
14
|
+
<v-icon
|
|
15
|
+
v-if="icon || search"
|
|
16
|
+
class="app-field__icon"
|
|
17
|
+
:icon="icon || 'mdi-magnify'"
|
|
18
|
+
size="18"
|
|
19
|
+
/>
|
|
20
|
+
<span v-if="label" class="app-field__label">{{ label }}</span>
|
|
21
|
+
<input
|
|
22
|
+
class="app-field__input"
|
|
23
|
+
:type="type"
|
|
24
|
+
:value="model"
|
|
25
|
+
:placeholder="placeholder"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
@input="model = ($event.target as HTMLInputElement).value"
|
|
28
|
+
/>
|
|
29
|
+
</label>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script setup lang="ts">
|
|
33
|
+
const model = defineModel({ type: String, default: "" });
|
|
34
|
+
|
|
35
|
+
defineProps({
|
|
36
|
+
label: { type: String, default: "" },
|
|
37
|
+
placeholder: { type: String, default: "" },
|
|
38
|
+
icon: { type: String, default: "" },
|
|
39
|
+
type: { type: String, default: "text" },
|
|
40
|
+
/** The design's search field: a magnifier and `flex:1` in a filter row. */
|
|
41
|
+
search: { type: Boolean, default: false },
|
|
42
|
+
compact: { type: Boolean, default: false },
|
|
43
|
+
disabled: { type: Boolean, default: false },
|
|
44
|
+
klass: { type: String, default: "" },
|
|
45
|
+
});
|
|
46
|
+
</script>
|