@foxeltech/angular-ui 0.7.108 → 0.7.131
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/components.css +24 -5
- package/fesm2022/foxeltech-angular-ui-chart.mjs +25 -1
- package/fesm2022/foxeltech-angular-ui-chart.mjs.map +1 -1
- package/fesm2022/foxeltech-angular-ui-flow.mjs +42 -11
- package/fesm2022/foxeltech-angular-ui-flow.mjs.map +1 -1
- package/fesm2022/foxeltech-angular-ui.mjs +102 -28
- package/fesm2022/foxeltech-angular-ui.mjs.map +1 -1
- package/package.json +3 -2
- package/src/lib/styles/components.css +24 -5
- package/src/lib/styles/tokens.css +3 -0
- package/src/lib/styles/utilities.css +9 -4
- package/src/lib/ui/components/bar-list/bar-list.component.html +19 -18
- package/src/lib/ui/components/bar-list/bar-list.component.scss +63 -0
- package/src/lib/ui/components/breadcrumb/breadcrumb.component.css +31 -0
- package/src/lib/ui/components/breadcrumb/breadcrumb.component.html +6 -1
- package/src/lib/ui/components/button/button.component.html +37 -225
- package/src/lib/ui/components/button/button.component.scss +30 -0
- package/src/lib/ui/components/drawer/drawer.component.html +32 -7
- package/src/lib/ui/components/drawer/drawer.component.scss +114 -17
- package/src/lib/ui/components/filter-pills/filter-pills.component.html +4 -1
- package/src/lib/ui/components/filter-pills/filter-pills.component.scss +23 -0
- package/src/lib/ui/components/master-detail/master-detail.component.css +36 -8
- package/src/lib/ui/components/master-detail/master-detail.component.html +4 -2
- package/src/lib/ui/components/section-card/section-card.component.html +10 -5
- package/src/lib/ui/components/section-card/section-card.component.scss +28 -0
- package/src/lib/ui/components/stat-cards/stat-cards.component.css +48 -0
- package/src/lib/ui/components/stat-cards/stat-cards.component.html +16 -7
- package/tokens.css +3 -0
- package/types/foxeltech-angular-ui-flow.d.ts +24 -2
- package/types/foxeltech-angular-ui.d.ts +92 -5
- package/utilities.css +9 -4
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
trước đó là 16px, tức 24px tổng). Brand nằm NGOÀI container nên phải tự
|
|
31
31
|
cộng đủ 16px. */
|
|
32
32
|
.drawer-brand {
|
|
33
|
-
@apply h-[60px] shrink-0 flex items-center gap-
|
|
33
|
+
@apply h-[60px] shrink-0 flex items-center gap-[10px] no-underline overflow-hidden;
|
|
34
34
|
padding-left: 16px;
|
|
35
35
|
padding-right: 8px;
|
|
36
36
|
transition: padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -51,8 +51,38 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/* Sunken tile behind the mark (reference `.sb-logo`, measured 16/09: 6px pad,
|
|
55
|
+
radius-control, --og-surface-sunken). The border is declared TRANSPARENT and
|
|
56
|
+
only takes a colour on hover — declaring it here rather than adding one on
|
|
57
|
+
:hover is what keeps the row from shifting 1px when the pointer arrives. */
|
|
58
|
+
.drawer-brand-logo {
|
|
59
|
+
@apply inline-flex items-center justify-center shrink-0;
|
|
60
|
+
padding: 6px;
|
|
61
|
+
border-radius: var(--og-radius-control);
|
|
62
|
+
background: rgb(var(--og-surface-sunken));
|
|
63
|
+
border: 1px solid transparent;
|
|
64
|
+
transition:
|
|
65
|
+
padding 220ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
66
|
+
border-color 150ms ease;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* The whole brand row is one link, so the tile lights up for a hover anywhere
|
|
70
|
+
on it — the reference's `.sb-logo:hover` sits on a non-clickable span, where
|
|
71
|
+
pointer-over-the-mark is the only hover there is. */
|
|
72
|
+
.drawer-brand:hover .drawer-brand-logo {
|
|
73
|
+
border-color: rgb(var(--og-border));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.drawer-brand.is-collapsed .drawer-brand-logo {
|
|
77
|
+
padding: 4px;
|
|
78
|
+
}
|
|
79
|
+
|
|
54
80
|
.drawer-brand-mark {
|
|
55
|
-
@apply h-[
|
|
81
|
+
@apply h-[21px] w-auto shrink-0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.drawer-brand.is-collapsed .drawer-brand-mark {
|
|
85
|
+
@apply h-[19px];
|
|
56
86
|
}
|
|
57
87
|
|
|
58
88
|
/* Cột chữ: title + subtitle xếp dọc. min-w-0 để truncate hoạt động khi
|
|
@@ -63,21 +93,26 @@
|
|
|
63
93
|
|
|
64
94
|
/* Wordmark: dùng CHỮ THẬT chứ không phải ảnh text_logo.png — ảnh đó là
|
|
65
95
|
navy đặc nên chìm hẳn trên theme dark; chữ ăn --og-text nên đúng cả 6. */
|
|
96
|
+
/* Reference: --og-fs-lg / weight 500 / -0.015em / line-height 1 (measured 16/09).
|
|
97
|
+
It was 600 at -0.01em, which read a notch heavier and wider than the design. */
|
|
66
98
|
.drawer-brand-text {
|
|
67
|
-
@apply truncate text-[
|
|
99
|
+
@apply truncate text-[length:var(--og-fs-lg)] font-medium text-text-primary select-none;
|
|
68
100
|
font-family: var(--og-font-display);
|
|
69
|
-
letter-spacing: -0.
|
|
101
|
+
letter-spacing: -0.015em;
|
|
102
|
+
line-height: 1;
|
|
70
103
|
}
|
|
71
104
|
|
|
72
|
-
/* Subtitle:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Intelligence Platform"
|
|
76
|
-
|
|
77
|
-
|
|
105
|
+
/* Subtitle: 9px / weight 400 / +0.02em / line-height 1.2, --og-text-muted
|
|
106
|
+
(reference, measured 16/09).
|
|
107
|
+
MỘT DÒNG truncate chứ không còn line-clamp-2: ở 11px thì "Binary Exploit
|
|
108
|
+
Intelligence Platform" không lọt cột chữ ~188px nên phải cho xuống hai dòng;
|
|
109
|
+
ở 9px nó lọt (~157px), và một dòng mới đúng bản gốc. Đổi cỡ mà quên đổi chỗ
|
|
110
|
+
này thì subtitle lại tự ngắt dòng. */
|
|
78
111
|
.drawer-brand-subtext {
|
|
79
|
-
@apply
|
|
80
|
-
|
|
112
|
+
@apply truncate text-[9px] font-normal select-none mt-[2px];
|
|
113
|
+
color: rgb(var(--og-text-muted));
|
|
114
|
+
letter-spacing: 0.02em;
|
|
115
|
+
line-height: 1.2;
|
|
81
116
|
}
|
|
82
117
|
|
|
83
118
|
.drawer-container {
|
|
@@ -90,14 +125,30 @@
|
|
|
90
125
|
.toggle-btn {
|
|
91
126
|
@apply absolute top-1/2 -translate-y-1/2 z-50 flex items-center justify-center w-6 h-6 rounded-full bg-bg-primary border border-border-default cursor-pointer shadow-sm;
|
|
92
127
|
right: -12px; /* half of button width to straddle the border */
|
|
93
|
-
transition:
|
|
128
|
+
transition: background-color 200ms ease, box-shadow 200ms ease;
|
|
129
|
+
|
|
130
|
+
/* An invisible 40px hit area over the 24px circle. The visible button is a
|
|
131
|
+
circle whose CORNERS are dead, and half of it hangs over the content pane,
|
|
132
|
+
so the reliable target was ~20px across — small enough that an off-centre
|
|
133
|
+
press missed (anh Tú: "đôi lúc không hoạt động"). The look does not
|
|
134
|
+
change; only what the pointer can hit. */
|
|
135
|
+
&::before {
|
|
136
|
+
content: '';
|
|
137
|
+
position: absolute;
|
|
138
|
+
inset: -8px;
|
|
139
|
+
border-radius: 9999px;
|
|
140
|
+
}
|
|
94
141
|
|
|
95
142
|
&:hover {
|
|
96
143
|
@apply bg-bg-hover shadow-md;
|
|
97
144
|
}
|
|
98
145
|
|
|
146
|
+
/* NO scale on :active. Shrinking the button under a pressed pointer moves its
|
|
147
|
+
edge inward mid-press; a press that started near the rim then released
|
|
148
|
+
outside the element, and the browser fires no `click` at all for a
|
|
149
|
+
mousedown/mouseup pair on different targets. Press feedback is the fill. */
|
|
99
150
|
&:active {
|
|
100
|
-
|
|
151
|
+
@apply bg-bg-hover;
|
|
101
152
|
}
|
|
102
153
|
|
|
103
154
|
&:focus-visible {
|
|
@@ -203,18 +254,64 @@
|
|
|
203
254
|
@apply outline-none;
|
|
204
255
|
}
|
|
205
256
|
|
|
257
|
+
/* 9px icon-to-label, per the reference's nav row (measured 16/09). It was
|
|
258
|
+
`gap-3` = 12px. */
|
|
206
259
|
.item-content {
|
|
207
|
-
@apply flex items-center gap-
|
|
260
|
+
@apply flex items-center gap-[9px] w-full overflow-hidden;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* 18px, in an 18px box — the reference's glyph is 12.5px inside an 18px span.
|
|
264
|
+
At 20px the icon alone made the row 32px tall, so the `min-height: 30px` on
|
|
265
|
+
.drawer-item was never the height that actually shipped. The gap lives on
|
|
266
|
+
.item-content; do NOT add a margin here as well or the two compound. */
|
|
267
|
+
/* Collapsed the label is gone and the icon is the only thing in the row, so it
|
|
268
|
+
carries the row on its own and goes back up to 18px (anh Tú 16/09). Expanded
|
|
269
|
+
it stays at the reference's 13px mark. */
|
|
270
|
+
.drawer-item.is-collapsed .item-icon {
|
|
271
|
+
width: 18px;
|
|
272
|
+
height: 18px;
|
|
273
|
+
margin-right: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* A solid mark: lucide draws outlines, and filling the shape turns the diamond
|
|
277
|
+
into the reference's filled lozenge.
|
|
278
|
+
The descendant selector is REQUIRED: lucide renders an <svg> INSIDE the
|
|
279
|
+
element carrying `.item-icon`, and it is that inner svg that holds
|
|
280
|
+
`fill="none"` — styling only the outer one left the mark hollow (MEASURED
|
|
281
|
+
16/09). Paths are named too, for the nesting lucide may skip. */
|
|
282
|
+
.item-icon--solid {
|
|
283
|
+
fill: currentColor;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* ::ng-deep is REQUIRED for the descendants, not a shortcut: lucide builds its
|
|
287
|
+
<svg> (and the `fill="none"` on it) at runtime with Renderer2, so those nodes
|
|
288
|
+
never carry this component's [_ngcontent] attribute and a scoped selector
|
|
289
|
+
matches nothing. The host element above is in the template and does get it —
|
|
290
|
+
which is why the outer fill applied while the mark stayed hollow. */
|
|
291
|
+
:host ::ng-deep .item-icon--solid svg,
|
|
292
|
+
:host ::ng-deep .item-icon--solid path,
|
|
293
|
+
:host ::ng-deep .item-icon--solid polygon {
|
|
294
|
+
fill: currentColor;
|
|
208
295
|
}
|
|
209
296
|
|
|
210
297
|
.item-icon {
|
|
211
298
|
@apply flex-shrink-0;
|
|
212
299
|
color: inherit;
|
|
300
|
+
/* The reference's mark is a 12.5px glyph sitting in an 18px slot, so the
|
|
301
|
+
ICON is 13px and the 5px below restores the slot: 13 + 5 + the container's
|
|
302
|
+
9px gap = 27px from the icon's left edge to the label, exactly as in the
|
|
303
|
+
design. Sizing the icon itself 18px drew it half again too large. */
|
|
304
|
+
width: 13px;
|
|
305
|
+
height: 13px;
|
|
306
|
+
margin-right: 5px;
|
|
213
307
|
}
|
|
214
308
|
|
|
215
309
|
.item-label {
|
|
216
|
-
/* Size comes from .drawer-item (12.5px, 0.7.107) — no second scale here.
|
|
217
|
-
|
|
310
|
+
/* Size comes from .drawer-item (12.5px, 0.7.107) — no second scale here.
|
|
311
|
+
Leading is 18px, not `leading-5`'s 20px: the label is the tallest thing in
|
|
312
|
+
the row, so 20 + 6 + 6 padding made every row 32px and the declared
|
|
313
|
+
`min-height: 30px` never applied. The reference's row is 30. */
|
|
314
|
+
@apply flex-1 whitespace-nowrap overflow-hidden text-ellipsis leading-[18px] text-left;
|
|
218
315
|
font-size: inherit;
|
|
219
316
|
}
|
|
220
317
|
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
[attr.aria-pressed]="isActive(option)"
|
|
6
|
-
class="flex items-center
|
|
6
|
+
class="fx-pill flex items-center rounded-full border cursor-pointer transition-colors"
|
|
7
7
|
[ngClass]="pillClass(option)"
|
|
8
8
|
(click)="valueChange.emit(option.value)"
|
|
9
9
|
>
|
|
10
|
+
@if (option.icon) {
|
|
11
|
+
<lucide-icon [img]="option.icon" [size]="14" class="flex shrink-0" />
|
|
12
|
+
}
|
|
10
13
|
{{ option.label }}
|
|
11
14
|
@if (option.count !== null && option.count !== undefined) {
|
|
12
15
|
<span [ngClass]="countClass(option)" style="font-family: var(--og-font-figure)">{{ option.count }}</span>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@reference '../../../styles/tailwind.css';
|
|
2
|
+
|
|
3
|
+
/* Pill metrics to the reference (measured in the browser 16/09): 29px tall,
|
|
4
|
+
6px/12px padding, --og-fs-xs at weight 600, 7px between label and count.
|
|
5
|
+
It was 26px at 4px/11px, 12px/700 and a 4px gap — a step smaller, a step
|
|
6
|
+
heavier and a step tighter than the design at every point. */
|
|
7
|
+
.fx-pill {
|
|
8
|
+
padding: 6px 12px;
|
|
9
|
+
gap: 7px;
|
|
10
|
+
font-size: var(--og-fs-xs);
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
/* 15px, not a ratio: 6+6 padding + 2 border + 15 = the reference's 29px.
|
|
13
|
+
`1.4` on 11.5px renders 16.1 and the pill came out 30. */
|
|
14
|
+
line-height: 15px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Hover lift, matching the reference's `.bi-filter-pill:hover` — the same
|
|
18
|
+
0 2px 7px rgba(0,0,0,.12) every other button in that design gets
|
|
19
|
+
(`.og-button:hover`, which `.btn-alternative` already carries here).
|
|
20
|
+
Measured 16/09; the pill had no hover affordance at all before. */
|
|
21
|
+
.fx-pill:hover {
|
|
22
|
+
box-shadow: 0 2px 7px rgb(0 0 0 / 0.12);
|
|
23
|
+
}
|
|
@@ -73,9 +73,21 @@
|
|
|
73
73
|
min-height: 420px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/*
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
/* Track widths are the DESIGN'S own: every three-column screen in the demo
|
|
77
|
+
bundle is `204px minmax(0,1fr) 340px` — measured on Results, License and
|
|
78
|
+
Relationships, 17/09. So the rail and the DETAIL are the fixed tracks and
|
|
79
|
+
the LIST takes what is left.
|
|
80
|
+
|
|
81
|
+
It used to be the other way round: the list was capped at 420px and the
|
|
82
|
+
detail was `flex: 1 1 360px`, so every pixel of a wide window went to the
|
|
83
|
+
reading pane — ~930px of it at 1920, against a list that never grew past
|
|
84
|
+
420 (anh Tú 17/09: kéo rộng cột list ra và thu nhỏ cột detail lại).
|
|
85
|
+
|
|
86
|
+
All three still SHRINK below their track (`flex-basis` + a floor, not a
|
|
87
|
+
hard width): with the rail open the three floors add up past the 720px
|
|
88
|
+
where this query starts, and a pane that refuses to give way would push
|
|
89
|
+
the frame into a horizontal scrollbar instead. Collapsed, the rail is
|
|
90
|
+
40px and 40 + 260 + 300 fits. */
|
|
79
91
|
/* Hairline to the RIGHT of rail and list instead of below. */
|
|
80
92
|
.fx-md-facets,
|
|
81
93
|
.fx-md-list {
|
|
@@ -91,10 +103,10 @@
|
|
|
91
103
|
max-width: 40px;
|
|
92
104
|
}
|
|
93
105
|
.fx-md-facets--open {
|
|
94
|
-
flex: 0 1
|
|
106
|
+
flex: 0 1 204px;
|
|
95
107
|
width: auto;
|
|
96
|
-
min-width:
|
|
97
|
-
max-width:
|
|
108
|
+
min-width: 180px;
|
|
109
|
+
max-width: 204px;
|
|
98
110
|
}
|
|
99
111
|
.fx-md-rail-toggle {
|
|
100
112
|
height: 100%;
|
|
@@ -109,14 +121,30 @@
|
|
|
109
121
|
|
|
110
122
|
.fx-md-list {
|
|
111
123
|
width: auto;
|
|
112
|
-
flex:
|
|
124
|
+
flex: 1 1 0;
|
|
113
125
|
min-width: 260px;
|
|
114
|
-
|
|
126
|
+
/* Uncapped unless a caller asks for one — see the `listWidth` input. */
|
|
127
|
+
max-width: var(--fx-md-list-width, none);
|
|
115
128
|
}
|
|
116
129
|
|
|
117
130
|
.fx-md-detail {
|
|
131
|
+
width: auto;
|
|
132
|
+
flex: 0 1 var(--fx-md-detail-width, 340px);
|
|
133
|
+
min-width: 300px;
|
|
134
|
+
max-width: var(--fx-md-detail-width, 340px);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* `detailWidth="auto"`: the pre-0.7.130 split, kept for the panes that need
|
|
138
|
+
the room (Binaries, Remediation — anh Tú 17/09). The detail takes the
|
|
139
|
+
spare width and the LIST goes back to being the capped one. */
|
|
140
|
+
.fx-md-row--detail-fluid .fx-md-list {
|
|
141
|
+
flex: 0 1 var(--fx-md-list-width, 420px);
|
|
142
|
+
max-width: var(--fx-md-list-width, 420px);
|
|
143
|
+
}
|
|
144
|
+
.fx-md-row--detail-fluid .fx-md-detail {
|
|
118
145
|
flex: 1 1 360px;
|
|
119
146
|
min-width: 360px;
|
|
147
|
+
max-width: none;
|
|
120
148
|
}
|
|
121
149
|
}
|
|
122
150
|
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
class="fx-md-row flex flex-col items-stretch"
|
|
7
7
|
[class.fx-md-row--rail-open]="railOpen()"
|
|
8
8
|
[style.--fx-md-list-width]="listWidth()"
|
|
9
|
+
[class.fx-md-row--detail-fluid]="detailFluid()"
|
|
10
|
+
[style.--fx-md-detail-width]="detailFluid() ? null : detailWidth()"
|
|
9
11
|
[style.--fx-md-pane-h]="paneHeight()"
|
|
10
12
|
>
|
|
11
13
|
<!-- Facets rail — collapsible (» / «), collapsed = 40px strip with the label
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
<div class="flex gap-small">
|
|
109
111
|
<button
|
|
110
112
|
type="button"
|
|
111
|
-
class="btn-alternative
|
|
113
|
+
class="btn-alternative"
|
|
112
114
|
[disabled]="!paginator().hasPreviousPage()"
|
|
113
115
|
(click)="paginator().previousPage()"
|
|
114
116
|
>
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
</button>
|
|
117
119
|
<button
|
|
118
120
|
type="button"
|
|
119
|
-
class="btn-alternative
|
|
121
|
+
class="btn-alternative"
|
|
120
122
|
[disabled]="!paginator().hasNextPage()"
|
|
121
123
|
(click)="paginator().nextPage()"
|
|
122
124
|
>
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
<!-- flex column filling the host: cards in one grid row share a height and a
|
|
2
2
|
projected footer can sit at the bottom with `mt-auto` (design 01). -->
|
|
3
|
-
|
|
3
|
+
<!-- The card itself carries NO padding: the reference pads the header and the
|
|
4
|
+
body separately (10px 12px 4px / 10px 12px, measured 16/09), which is what
|
|
5
|
+
lets the header rule sit flush and the body start tight under it. -->
|
|
6
|
+
<div class="card-common fx-section-card bg-surface flex flex-col flex-1 min-h-0">
|
|
4
7
|
@if (titleStyle() === 'eyebrow') {
|
|
5
|
-
<div class="flex items-baseline justify-between gap-normal
|
|
8
|
+
<div class="fx-section-card__head flex items-baseline justify-between gap-normal">
|
|
6
9
|
<span class="txt-eyebrow">{{ title() }}</span>
|
|
7
10
|
@if (aside()) {
|
|
8
|
-
<span class="
|
|
11
|
+
<span class="fx-section-card__aside text-right">{{ aside() }}</span>
|
|
9
12
|
}
|
|
10
13
|
</div>
|
|
11
14
|
} @else {
|
|
12
|
-
<div class="flex items-center gap-normal
|
|
15
|
+
<div class="fx-section-card__head flex items-center gap-normal">
|
|
13
16
|
@if (icon) {
|
|
14
17
|
<fx-ui-hero-icon [ngClass]="iconClass" [icon]="icon" [size]="18"></fx-ui-hero-icon>
|
|
15
18
|
}
|
|
16
19
|
<span class="txt-heading-06">{{ title() }}</span>
|
|
17
20
|
</div>
|
|
18
21
|
}
|
|
19
|
-
<
|
|
22
|
+
<div class="fx-section-card__body flex flex-col flex-1 min-h-0">
|
|
23
|
+
<ng-content></ng-content>
|
|
24
|
+
</div>
|
|
20
25
|
</div>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@reference '../../../styles/tailwind.css';
|
|
2
|
+
|
|
3
|
+
/* Card padding, to the reference (measured in the browser 16/09).
|
|
4
|
+
`card-common` pads 20px/16px uniformly, which the design never does: there
|
|
5
|
+
the card has none, the header carries 10px 12px 4px and the body 10px 12px.
|
|
6
|
+
The uniform 16/20 is what made every panel on the page read roomier than the
|
|
7
|
+
design and pushed each section's first row 6px further from its title. */
|
|
8
|
+
.fx-section-card {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.fx-section-card__head {
|
|
13
|
+
padding: 10px 12px 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.fx-section-card__body {
|
|
17
|
+
padding: 10px 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Section caption ("ranked by risk · across all projects"): 11.5px/400 in
|
|
21
|
+
--og-text-faint. `txt-utility-description` is 12px/300 in --og-text-secondary
|
|
22
|
+
— a size too large, a weight too light and a shade too dark. */
|
|
23
|
+
.fx-section-card__aside {
|
|
24
|
+
font-size: var(--og-fs-xs);
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
line-height: 1.4;
|
|
27
|
+
color: rgb(var(--og-text-faint));
|
|
28
|
+
}
|
|
@@ -16,3 +16,51 @@
|
|
|
16
16
|
grid-template-columns: minmax(0, 1fr) !important;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
/* The ruled KPI strip, to the reference (`.og-statgrid--ruled`, measured in the
|
|
21
|
+
browser 16/09): one bordered, rounded, softly-shadowed panel with NO gap,
|
|
22
|
+
its cells padded 10px 12px and separated by a hairline on every cell but the
|
|
23
|
+
last. Same treatment the Exploit Intelligence page already hand-rolled. */
|
|
24
|
+
.fx-stat-grid--ruled {
|
|
25
|
+
gap: 0;
|
|
26
|
+
border: 1px solid rgb(var(--og-border));
|
|
27
|
+
border-radius: var(--og-radius-control);
|
|
28
|
+
background: rgb(var(--og-surface));
|
|
29
|
+
box-shadow:
|
|
30
|
+
0 1px 2px rgb(0 0 0 / 0.04),
|
|
31
|
+
0 3px 8px rgb(0 0 0 / 0.05);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.fx-stat-grid--ruled .fx-stat-cell {
|
|
36
|
+
padding: 10px 12px;
|
|
37
|
+
border-right: 1px solid rgb(var(--og-border));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fx-stat-grid--ruled .fx-stat-cell--last {
|
|
41
|
+
border-right: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Cell type: 10.5px faint label, a 32px mono figure 6px below it, an 11.5px
|
|
45
|
+
muted sub 4px below that. */
|
|
46
|
+
.fx-stat-cell__label {
|
|
47
|
+
font-size: var(--og-fs-2xs);
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
color: rgb(var(--og-text-faint));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.fx-stat-cell__figure {
|
|
53
|
+
font-family: var(--og-font-figure);
|
|
54
|
+
font-size: 32px;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
line-height: 1.1;
|
|
57
|
+
color: rgb(var(--og-text));
|
|
58
|
+
margin-top: 6px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.fx-stat-cell__sub {
|
|
62
|
+
font-size: var(--og-fs-xs);
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
color: rgb(var(--og-text-muted));
|
|
65
|
+
margin-top: 4px;
|
|
66
|
+
}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<!-- variant="figure" is ONE ruled panel, not N cards: the reference draws the
|
|
2
|
+
KPI strip as a single bordered box divided by hairlines (`.og-statgrid
|
|
3
|
+
--ruled`, measured 16/09). It was four separate `card-common` boxes with an
|
|
4
|
+
8px gap, which read as four objects where the design has one. The other
|
|
5
|
+
variant keeps its own cards. -->
|
|
6
|
+
<div
|
|
7
|
+
class="fx-stat-grid grid"
|
|
8
|
+
[class.fx-stat-grid--ruled]="variant() === 'figure'"
|
|
9
|
+
[class.gap-normal]="variant() !== 'figure'"
|
|
10
|
+
[ngStyle]="{ 'grid-template-columns': gridColumns }"
|
|
11
|
+
>
|
|
12
|
+
@for (card of cards(); track card.label; let last = $last) {
|
|
3
13
|
@if (variant() === 'figure') {
|
|
4
|
-
<div class="
|
|
5
|
-
<span class="
|
|
14
|
+
<div class="fx-stat-cell flex flex-col min-w-0" [class.fx-stat-cell--last]="last">
|
|
15
|
+
<span class="fx-stat-cell__label truncate">{{ card.label }}</span>
|
|
6
16
|
<span
|
|
7
|
-
class="
|
|
17
|
+
class="fx-stat-cell__figure"
|
|
8
18
|
[ngClass]="numClass(card)"
|
|
9
|
-
style="font-family: var(--og-font-figure)"
|
|
10
19
|
><span [fxCountUp]="card.value"></span></span
|
|
11
20
|
>
|
|
12
21
|
@if (card.sub) {
|
|
13
|
-
<span class="
|
|
22
|
+
<span class="fx-stat-cell__sub" [ngClass]="subClass(card)">{{ card.sub }}</span>
|
|
14
23
|
}
|
|
15
24
|
@if (card.spark?.length) {
|
|
16
25
|
<fx-ui-sparkbar class="mt-xs" [values]="card.spark!" [height]="16" [tone]="card.tone ?? null" />
|
package/tokens.css
CHANGED
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
|
|
54
54
|
--color-cta: #c2582a;
|
|
55
55
|
--color-cta-hover: #b34e24;
|
|
56
|
+
/* Border of the CTA while hovered — the reference's `.bi-newbtn:hover`
|
|
57
|
+
darkens the edge one more step than the fill (16/09). */
|
|
58
|
+
--color-cta-hover-border: #a3461f;
|
|
56
59
|
|
|
57
60
|
/* ---- Legacy colour names (@deprecated — remove after the V2 campaign;
|
|
58
61
|
they resolve through the alias layer in theme.css, so every existing
|
|
@@ -51,14 +51,36 @@ declare class FlowCanvasComponent {
|
|
|
51
51
|
readonly height: _angular_core.InputSignal<string>;
|
|
52
52
|
/** Caller-translated hint shown when the graph is empty. */
|
|
53
53
|
readonly emptyText: _angular_core.InputSignal<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Work is running against this chain — validation, typically.
|
|
56
|
+
*
|
|
57
|
+
* The edges become a travelling dashed line ("marching ants") so the canvas
|
|
58
|
+
* says something is in flight without a spinner sitting on top of the graph.
|
|
59
|
+
* Purely presentational: the caller owns what "busy" means and when it ends.
|
|
60
|
+
*/
|
|
61
|
+
readonly busy: _angular_core.InputSignal<boolean>;
|
|
54
62
|
readonly nodeClick: _angular_core.OutputEmitterRef<string>;
|
|
55
63
|
private readonly flow;
|
|
56
64
|
private readonly host;
|
|
57
65
|
private readonly destroyRef;
|
|
58
66
|
constructor();
|
|
59
67
|
private fitHandle;
|
|
60
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Coalesces fit requests, then fits TWICE — one frame apart.
|
|
70
|
+
*
|
|
71
|
+
* vflow frames the graph from `getNodesBounds`, which sums each node's
|
|
72
|
+
* `point()` and its `size()`. For an html-template node that size is the
|
|
73
|
+
* MEASURED box and is still 0 on the frame the nodes are created, so the
|
|
74
|
+
* first fit sees a bounds box running origin-to-origin: five 176px cards
|
|
75
|
+
* measured 864px instead of 1040px, and the graph was framed 88px — half a
|
|
76
|
+
* card — too far right, clipping the last one (MEASURED 16/09).
|
|
77
|
+
*
|
|
78
|
+
* The second pass runs once the cards have been laid out and measured, and
|
|
79
|
+
* is what actually frames them. The first is kept so a slow frame still
|
|
80
|
+
* shows something sensible rather than the graph pinned top-left.
|
|
81
|
+
*/
|
|
61
82
|
private scheduleFit;
|
|
83
|
+
private fit;
|
|
62
84
|
/** Column index per node: pinned value, else longest path from a source. */
|
|
63
85
|
private readonly columns;
|
|
64
86
|
/** ngx-vflow nodes: html-template cards positioned by the derived layout. */
|
|
@@ -86,7 +108,7 @@ declare class FlowCanvasComponent {
|
|
|
86
108
|
isEdgeActive(edge: Edge): boolean;
|
|
87
109
|
isEdgeDimmed(edge: Edge): boolean;
|
|
88
110
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlowCanvasComponent, never>;
|
|
89
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlowCanvasComponent, "fx-ui-flow-canvas", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "edges": { "alias": "edges"; "required": false; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; }, never, never, true, never>;
|
|
111
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlowCanvasComponent, "fx-ui-flow-canvas", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "edges": { "alias": "edges"; "required": false; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; }, never, never, true, never>;
|
|
90
112
|
}
|
|
91
113
|
|
|
92
114
|
declare class FlowConnection {
|