@foxeltech/angular-ui 0.4.0 → 0.7.44
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/archivo/archivo-400-latin-ext.woff2 +0 -0
- package/archivo/archivo-400-latin.woff2 +0 -0
- package/archivo/archivo-400-vietnamese.woff2 +0 -0
- package/archivo/archivo-500-latin-ext.woff2 +0 -0
- package/archivo/archivo-500-latin.woff2 +0 -0
- package/archivo/archivo-500-vietnamese.woff2 +0 -0
- package/archivo/archivo-600-latin-ext.woff2 +0 -0
- package/archivo/archivo-600-latin.woff2 +0 -0
- package/archivo/archivo-600-vietnamese.woff2 +0 -0
- package/archivo/archivo-700-latin-ext.woff2 +0 -0
- package/archivo/archivo-700-latin.woff2 +0 -0
- package/archivo/archivo-700-vietnamese.woff2 +0 -0
- package/components.css +12 -12
- package/dialogs.css +2 -2
- package/fesm2022/foxeltech-angular-ui-chart.mjs +185 -17
- package/fesm2022/foxeltech-angular-ui-chart.mjs.map +1 -1
- package/fesm2022/foxeltech-angular-ui-flow.mjs +176 -3
- package/fesm2022/foxeltech-angular-ui-flow.mjs.map +1 -1
- package/fesm2022/foxeltech-angular-ui-rich-text.mjs +2 -2
- package/fesm2022/foxeltech-angular-ui-rich-text.mjs.map +1 -1
- package/fesm2022/foxeltech-angular-ui.mjs +849 -69
- package/fesm2022/foxeltech-angular-ui.mjs.map +1 -1
- package/fonts.css +462 -138
- package/ibm-plex-mono/ibm-plex-mono-400-cyrillic-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-400-cyrillic.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-400-latin-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-400-latin.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-400-vietnamese.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-500-cyrillic-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-500-cyrillic.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-500-latin-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-500-latin.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-500-vietnamese.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-600-cyrillic-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-600-cyrillic.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-600-latin-ext.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-600-latin.woff2 +0 -0
- package/ibm-plex-mono/ibm-plex-mono-600-vietnamese.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-cyrillic-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-cyrillic.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-greek.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-latin-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-latin.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-400-vietnamese.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-cyrillic-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-cyrillic.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-greek.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-latin-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-latin.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-500-vietnamese.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-cyrillic-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-cyrillic.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-greek.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-latin-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-latin.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-600-vietnamese.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-cyrillic-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-cyrillic.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-greek.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-latin-ext.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-latin.woff2 +0 -0
- package/jetbrains-mono/jetbrains-mono-700-vietnamese.woff2 +0 -0
- package/newsreader/newsreader-400-latin-ext.woff2 +0 -0
- package/newsreader/newsreader-400-latin.woff2 +0 -0
- package/newsreader/newsreader-400-vietnamese.woff2 +0 -0
- package/newsreader/newsreader-500-latin-ext.woff2 +0 -0
- package/newsreader/newsreader-500-latin.woff2 +0 -0
- package/newsreader/newsreader-500-vietnamese.woff2 +0 -0
- package/newsreader/newsreader-600-latin-ext.woff2 +0 -0
- package/newsreader/newsreader-600-latin.woff2 +0 -0
- package/newsreader/newsreader-600-vietnamese.woff2 +0 -0
- package/package.json +5 -2
- package/source-serif-4/source-serif-4-400-cyrillic-ext.woff2 +0 -0
- package/source-serif-4/source-serif-4-400-cyrillic.woff2 +0 -0
- package/source-serif-4/source-serif-4-400-greek.woff2 +0 -0
- package/source-serif-4/source-serif-4-400-latin-ext.woff2 +0 -0
- package/source-serif-4/source-serif-4-400-latin.woff2 +0 -0
- package/source-serif-4/source-serif-4-400-vietnamese.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-cyrillic-ext.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-cyrillic.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-greek.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-latin-ext.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-latin.woff2 +0 -0
- package/source-serif-4/source-serif-4-600-vietnamese.woff2 +0 -0
- package/src/lib/styles/components.css +12 -12
- package/src/lib/styles/dialogs.css +2 -2
- package/src/lib/styles/fonts.css +462 -138
- package/src/lib/styles/tailwind.css +1 -1
- package/src/lib/styles/theme.css +596 -69
- package/src/lib/styles/tokens.css +56 -19
- package/src/lib/styles/utilities.css +4 -1
- package/src/lib/ui/components/bar-list/bar-list.component.html +29 -0
- package/src/lib/ui/components/button/button.component.html +7 -5
- package/src/lib/ui/components/checkbox/checkbox.component.html +1 -1
- package/src/lib/ui/components/code-block/code-block.component.html +8 -0
- package/src/lib/ui/components/drawer/drawer.component.html +35 -12
- package/src/lib/ui/components/drawer/drawer.component.scss +104 -18
- package/src/lib/ui/components/facets-rail/facets-rail.component.html +42 -0
- package/src/lib/ui/components/filter-pills/filter-pills.component.html +16 -0
- package/src/lib/ui/components/kanban-board/kanban-board.component.scss +9 -9
- package/src/lib/ui/components/list-row/list-row.component.html +20 -0
- package/src/lib/ui/components/master-detail/master-detail.component.css +22 -0
- package/src/lib/ui/components/master-detail/master-detail.component.html +33 -1
- package/src/lib/ui/components/pending-badge/pending-badge.component.html +15 -0
- package/src/lib/ui/components/pipeline-stepper/pipeline-stepper.component.html +45 -0
- package/src/lib/ui/components/project-card/project-card.component.html +102 -0
- package/src/lib/ui/components/radio-button/radio-button.component.html +1 -1
- package/src/lib/ui/components/radio-button-toggle/radio-button-toggle.component.html +1 -1
- package/src/lib/ui/components/sample-frame/sample-frame.component.html +18 -0
- package/src/lib/ui/components/score-badge/score-badge.component.html +7 -0
- package/src/lib/ui/components/screenshot-frame/screenshot-frame.component.html +40 -0
- package/src/lib/ui/components/section-card/section-card.component.html +19 -6
- package/src/lib/ui/components/segmented/segmented.component.html +42 -0
- package/src/lib/ui/components/segmented/segmented.component.scss +12 -0
- package/src/lib/ui/components/slider/slider.component.html +2 -2
- package/src/lib/ui/components/sparkbar/sparkbar.component.html +14 -0
- package/src/lib/ui/components/stage-dots/stage-dots.component.html +13 -0
- package/src/lib/ui/components/stat-cards/stat-cards.component.html +44 -11
- package/src/lib/ui/components/status-dot/status-dot.component.html +13 -0
- package/src/lib/ui/components/tab-group/tab-group.component.html +37 -8
- package/src/lib/ui/components/tab-group/tab-group.component.scss +41 -1
- package/src/lib/ui/components/tag/tag.component.html +2 -2
- package/src/lib/ui/components/theme-picker/theme-picker.component.html +44 -0
- package/src/lib/ui/components/tree-diagram/tree-diagram.component.html +3 -3
- package/tailwind.css +1 -1
- package/theme.css +596 -69
- package/tokens.css +56 -19
- package/types/foxeltech-angular-ui-chart.d.ts +14 -2
- package/types/foxeltech-angular-ui-flow.d.ts +83 -1
- package/types/foxeltech-angular-ui.d.ts +636 -20
- package/utilities.css +4 -1
- package/BeVietnamPro/BeVietnamPro-Bold.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-ExtraLight.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-Light.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-Medium.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-Regular.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-SemiBold.woff2 +0 -0
- package/BeVietnamPro/BeVietnamPro-Thin.woff2 +0 -0
- package/SpaceMono-Regular.woff2 +0 -0
- package/dm-sans/DMSans-Bold.woff2 +0 -0
- package/dm-sans/DMSans-Light.woff2 +0 -0
- package/dm-sans/DMSans-Medium.woff2 +0 -0
- package/dm-sans/DMSans-Regular.woff2 +0 -0
- package/dm-sans/DMSans-SemiBold.woff2 +0 -0
- package/dm-sans/DMSans-Thin.woff2 +0 -0
- package/orbitron/Orbitron-Bold.woff2 +0 -0
- package/orbitron/Orbitron-Medium.woff2 +0 -0
- package/orbitron/Orbitron-Regular.woff2 +0 -0
- package/orbitron/Orbitron-SemiBold.woff2 +0 -0
- package/roboto/Roboto-Black.woff2 +0 -0
- package/roboto/Roboto-BlackItalic.woff2 +0 -0
- package/roboto/Roboto-Bold.woff2 +0 -0
- package/roboto/Roboto-BoldCondensed.woff2 +0 -0
- package/roboto/Roboto-BoldCondensedItalic.woff2 +0 -0
- package/roboto/Roboto-BoldItalic.woff2 +0 -0
- package/roboto/Roboto-Condensed.woff2 +0 -0
- package/roboto/Roboto-CondensedItalic.woff2 +0 -0
- package/roboto/Roboto-Italic.woff2 +0 -0
- package/roboto/Roboto-Light.woff2 +0 -0
- package/roboto/Roboto-LightItalic.woff2 +0 -0
- package/roboto/Roboto-Medium.woff2 +0 -0
- package/roboto/Roboto-MediumItalic.woff2 +0 -0
- package/roboto/Roboto-Regular.woff2 +0 -0
- package/roboto/Roboto-Thin.woff2 +0 -0
- package/roboto/Roboto-ThinItalic.woff2 +0 -0
package/tokens.css
CHANGED
|
@@ -3,16 +3,43 @@
|
|
|
3
3
|
* Replaces the old JS preset (tailwind.config.js / lodash.merge sharing).
|
|
4
4
|
*
|
|
5
5
|
* Colour tokens point at the runtime RGB-triplet variables from theme.css
|
|
6
|
-
* (
|
|
7
|
-
* working; opacity modifiers like bg-critical/10 are
|
|
8
|
-
* color-mix() and need no <alpha-value> plumbing.
|
|
6
|
+
* (OgeniumDashboards --og-* per [data-og-theme] on <html>, porcelain default)
|
|
7
|
+
* so theme switching keeps working; opacity modifiers like bg-critical/10 are
|
|
8
|
+
* handled by v4's color-mix() and need no <alpha-value> plumbing.
|
|
9
9
|
*/
|
|
10
10
|
/* `inline` is load-bearing: without it the rgb(var(--x)) values are baked
|
|
11
|
-
into :root once, so
|
|
11
|
+
into :root once, so [data-og-theme]'s runtime triplet overrides never reach
|
|
12
12
|
the utilities. inline makes every utility carry rgb(var(--x)) itself and
|
|
13
13
|
resolve at the element that uses it — same behavior as v3. */
|
|
14
14
|
@theme inline {
|
|
15
|
-
/*
|
|
15
|
+
/* ---- OG palette — use these in new/restyled markup ---- */
|
|
16
|
+
--color-page: rgb(var(--og-page-bg));
|
|
17
|
+
--color-surface: rgb(var(--og-surface));
|
|
18
|
+
--color-surface-raised: rgb(var(--og-surface-raised));
|
|
19
|
+
--color-surface-sunken: rgb(var(--og-surface-sunken));
|
|
20
|
+
--color-border: rgb(var(--og-border));
|
|
21
|
+
--color-border-subtle: rgb(var(--og-border-subtle));
|
|
22
|
+
--color-strong: rgb(var(--og-text));
|
|
23
|
+
--color-body: rgb(var(--og-text-body));
|
|
24
|
+
--color-muted: rgb(var(--og-text-muted));
|
|
25
|
+
--color-faint: rgb(var(--og-text-faint));
|
|
26
|
+
--color-accent: rgb(var(--og-accent));
|
|
27
|
+
--color-accent-fg: rgb(var(--og-accent-fg));
|
|
28
|
+
--color-accent-contrast: rgb(var(--og-accent-contrast));
|
|
29
|
+
--color-accent-soft: rgb(var(--og-accent-soft-bg));
|
|
30
|
+
--color-accent-soft-fg: rgb(var(--og-accent-soft-fg));
|
|
31
|
+
--color-positive: rgb(var(--og-positive));
|
|
32
|
+
--color-positive-soft: rgb(var(--og-positive-soft-bg));
|
|
33
|
+
--color-negative: rgb(var(--og-negative));
|
|
34
|
+
--color-negative-soft: rgb(var(--og-negative-soft-bg));
|
|
35
|
+
--color-warning-soft: rgb(var(--og-warning-soft-bg));
|
|
36
|
+
--color-neutral-soft: rgb(var(--og-neutral-soft-bg));
|
|
37
|
+
--color-neutral-soft-fg: rgb(var(--og-neutral-soft-fg));
|
|
38
|
+
--color-track: rgb(var(--og-track));
|
|
39
|
+
|
|
40
|
+
/* ---- Legacy colour names (@deprecated — remove after the V2 campaign;
|
|
41
|
+
they resolve through the alias layer in theme.css, so every existing
|
|
42
|
+
class already renders the OG palette) ---- */
|
|
16
43
|
--color-gradient-primary-start: rgb(var(--gradient-primary-start));
|
|
17
44
|
--color-gradient-primary-end: rgb(var(--gradient-primary-end));
|
|
18
45
|
--color-gradient-success-start: rgb(var(--gradient-success-start));
|
|
@@ -61,14 +88,22 @@
|
|
|
61
88
|
--shadow-2xl: 0 25px 50px -12px rgb(var(--shadow-color) / 0.25);
|
|
62
89
|
--inset-shadow-sm: inset 0 2px 4px 0 rgb(var(--shadow-color) / 0.05);
|
|
63
90
|
|
|
64
|
-
/*
|
|
65
|
-
|
|
66
|
-
--radius:
|
|
67
|
-
--radius-
|
|
68
|
-
--radius-
|
|
69
|
-
--radius-
|
|
70
|
-
|
|
71
|
-
|
|
91
|
+
/* Radius is a THEME variable in V2 (blueprint/terminal are square, ivory
|
|
92
|
+
controls are pills) — never hardcode border-radius in components. */
|
|
93
|
+
--radius-frame: var(--og-radius-frame);
|
|
94
|
+
--radius-card: var(--og-radius-card);
|
|
95
|
+
--radius-control: var(--og-radius-control);
|
|
96
|
+
--radius-pill: var(--og-radius-pill);
|
|
97
|
+
/* Legacy fixed scale remapped onto the theme radii so blueprint/terminal go
|
|
98
|
+
square with zero template edits. `rounded-full` stays Tailwind-native
|
|
99
|
+
9999px — avatars/dots must remain circular in every theme. */
|
|
100
|
+
--radius-sm: var(--og-radius-control);
|
|
101
|
+
--radius: var(--og-radius-control);
|
|
102
|
+
--radius-md: var(--og-radius-control);
|
|
103
|
+
--radius-lg: var(--og-radius-card);
|
|
104
|
+
--radius-xl: var(--og-radius-card);
|
|
105
|
+
--radius-2xl: var(--og-radius-card);
|
|
106
|
+
--radius-3xl: var(--og-radius-frame);
|
|
72
107
|
|
|
73
108
|
/* Named spacing scale (gap-small, p-semi, mb-large, …) */
|
|
74
109
|
--spacing-xs: 0.125rem;
|
|
@@ -79,12 +114,14 @@
|
|
|
79
114
|
--spacing-xl: 1.25rem;
|
|
80
115
|
--spacing-2xl: 1.5rem;
|
|
81
116
|
|
|
82
|
-
/* Font families
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
--font-
|
|
86
|
-
--font-
|
|
87
|
-
--font-
|
|
117
|
+
/* Font families — theme variables (blueprint/terminal switch to mono).
|
|
118
|
+
V2 set: Archivo (body/display), JetBrains Mono / IBM Plex Mono (mono),
|
|
119
|
+
Source Serif 4 (prose), Newsreader (ivory/blueprint display). */
|
|
120
|
+
--font-body: var(--og-font-body);
|
|
121
|
+
--font-display: var(--og-font-display);
|
|
122
|
+
--font-mono: var(--og-font-mono);
|
|
123
|
+
--font-prose: var(--og-font-prose);
|
|
124
|
+
--font-figure: var(--og-font-figure);
|
|
88
125
|
|
|
89
126
|
/* Font-size overrides (v3 preset values) */
|
|
90
127
|
--text-xs: 0.75rem;
|
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { OnChanges, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { EChartsOption, ECharts } from 'echarts';
|
|
4
4
|
|
|
5
|
-
type IChartType = 'bar' | 'pie' | 'sunburst' | 'auto';
|
|
5
|
+
type IChartType = 'bar' | 'pie' | 'sunburst' | 'line' | 'area-trend' | 'auto';
|
|
6
6
|
declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
7
7
|
private ref;
|
|
8
8
|
private cdr;
|
|
@@ -15,7 +15,13 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
15
15
|
readonly pieLegendAlign: _angular_core.InputSignal<string | number>;
|
|
16
16
|
readonly pieLegendPosition: _angular_core.InputSignal<string | number>;
|
|
17
17
|
readonly showPieLabel: _angular_core.InputSignal<boolean>;
|
|
18
|
+
/** Hide the built-in legend (panels that render their own legend beside the
|
|
19
|
+
donut); the donut then centres in the container. */
|
|
20
|
+
readonly showPieLegend: _angular_core.InputSignal<boolean>;
|
|
21
|
+
/** Caption under the donut's centre total (design: "42 / confirmed"). */
|
|
22
|
+
readonly pieCenterLabel: _angular_core.InputSignal<string>;
|
|
18
23
|
readonly mobileWidth: _angular_core.InputSignal<number>;
|
|
24
|
+
/** Override font for canvas text; empty = follow the theme's --og-font-figure. */
|
|
19
25
|
readonly labelFontFamily: _angular_core.InputSignal<string>;
|
|
20
26
|
readonly emptyText: _angular_core.InputSignal<string>;
|
|
21
27
|
readonly chartClick: _angular_core.OutputEmitterRef<any>;
|
|
@@ -44,9 +50,15 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
44
50
|
private calcPieLayout;
|
|
45
51
|
private detectType;
|
|
46
52
|
private buildOptions;
|
|
53
|
+
private categoryAxis;
|
|
54
|
+
private valueAxis;
|
|
55
|
+
/** Canvas không ăn var() — resolve font stack thật tại render; chart đã
|
|
56
|
+
rebuild theo event theme-changed nên tự đổi font khi đổi theme
|
|
57
|
+
(blueprint/terminal dùng mono qua --og-font-figure). */
|
|
58
|
+
private resolvedFontFamily;
|
|
47
59
|
private resolvePalette;
|
|
48
60
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
49
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "fx-ui-chart", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pieLegendAlign": { "alias": "pieLegendAlign"; "required": false; "isSignal": true; }; "pieLegendPosition": { "alias": "pieLegendPosition"; "required": false; "isSignal": true; }; "showPieLabel": { "alias": "showPieLabel"; "required": false; "isSignal": true; }; "mobileWidth": { "alias": "mobileWidth"; "required": false; "isSignal": true; }; "labelFontFamily": { "alias": "labelFontFamily"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; }, { "chartClick": "chartClick"; "chartInit": "chartInit"; }, never, never, true, never>;
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "fx-ui-chart", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pieLegendAlign": { "alias": "pieLegendAlign"; "required": false; "isSignal": true; }; "pieLegendPosition": { "alias": "pieLegendPosition"; "required": false; "isSignal": true; }; "showPieLabel": { "alias": "showPieLabel"; "required": false; "isSignal": true; }; "showPieLegend": { "alias": "showPieLegend"; "required": false; "isSignal": true; }; "pieCenterLabel": { "alias": "pieCenterLabel"; "required": false; "isSignal": true; }; "mobileWidth": { "alias": "mobileWidth"; "required": false; "isSignal": true; }; "labelFontFamily": { "alias": "labelFontFamily"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; }, { "chartClick": "chartClick"; "chartInit": "chartInit"; }, never, never, true, never>;
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
export { ChartComponent };
|
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Node, Edge, Connection } from 'ngx-vflow';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* What a chain node represents. Structural kinds (`entry`, `convergence`,
|
|
6
|
+
* `impact`, `stage`) can be derived from the graph itself; the validation kinds
|
|
7
|
+
* (`mitigation`, `review`, `not-reproduced`) come from an analyst verdict.
|
|
8
|
+
*/
|
|
9
|
+
type FxChainNodeKind = 'entry' | 'convergence' | 'mitigation' | 'review' | 'not-reproduced' | 'impact' | 'stage';
|
|
10
|
+
interface FxChainNode {
|
|
11
|
+
id: string;
|
|
12
|
+
/** Node title — rendered in the figure/mono face. */
|
|
13
|
+
label: string;
|
|
14
|
+
kind: FxChainNodeKind;
|
|
15
|
+
/** Caller-translated kind eyebrow; falls back to the raw kind key. */
|
|
16
|
+
kindLabel?: string;
|
|
17
|
+
/** Caller-translated muted subtitle. */
|
|
18
|
+
caption?: string;
|
|
19
|
+
/** true = verified badge, false = unverified badge, null/undefined = no badge. */
|
|
20
|
+
verified?: boolean | null;
|
|
21
|
+
/** Explicit column (0 = leftmost); omit to derive depth from the edges. */
|
|
22
|
+
column?: number;
|
|
23
|
+
/** Explicit row inside the column; omit to stack in declaration order. */
|
|
24
|
+
row?: number;
|
|
25
|
+
}
|
|
26
|
+
interface FxChainEdge {
|
|
27
|
+
source: string;
|
|
28
|
+
target: string;
|
|
29
|
+
}
|
|
30
|
+
/** Kind → severity token. Exported so callers can tint matching chips (the
|
|
31
|
+
stage list beside the canvas) from the same source of truth. */
|
|
32
|
+
declare const FX_CHAIN_KIND_TONE: Record<FxChainNodeKind, string>;
|
|
33
|
+
/**
|
|
34
|
+
* V2 exploit-chain canvas — the attack-path graph of design refs 04..07:
|
|
35
|
+
* kind-tinted node cards laid out left→right, curved edges, draggable nodes on
|
|
36
|
+
* a pannable/zoomable surface.
|
|
37
|
+
*
|
|
38
|
+
* Presentational: it takes a graph plus the currently selected node and emits
|
|
39
|
+
* clicks. Layout is derived from the edges (longest path from a source) unless
|
|
40
|
+
* a node pins its own column/row, so callers can hand over a plain chain.
|
|
41
|
+
*
|
|
42
|
+
* <fx-ui-flow-canvas [nodes]="chainNodes" [edges]="chainEdges"
|
|
43
|
+
* [activeId]="stageId()" (nodeClick)="selectStage($event)" />
|
|
44
|
+
*/
|
|
45
|
+
declare class FlowCanvasComponent {
|
|
46
|
+
readonly nodes: _angular_core.InputSignal<FxChainNode[]>;
|
|
47
|
+
readonly edges: _angular_core.InputSignal<FxChainEdge[]>;
|
|
48
|
+
/** Selected/current node: full opacity + accent border; the rest dim. */
|
|
49
|
+
readonly activeId: _angular_core.InputSignal<string | null>;
|
|
50
|
+
/** Explicit canvas height; omit to size it from the number of stacked rows. */
|
|
51
|
+
readonly height: _angular_core.InputSignal<string>;
|
|
52
|
+
/** Caller-translated hint shown when the graph is empty. */
|
|
53
|
+
readonly emptyText: _angular_core.InputSignal<string>;
|
|
54
|
+
readonly nodeClick: _angular_core.OutputEmitterRef<string>;
|
|
55
|
+
/** Column index per node: pinned value, else longest path from a source. */
|
|
56
|
+
private readonly columns;
|
|
57
|
+
/** ngx-vflow nodes: html-template cards positioned by the derived layout. */
|
|
58
|
+
readonly flowNodes: _angular_core.Signal<Node[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Edges stay identity-stable across selections: state lives in the template
|
|
61
|
+
* (read off `activeId`), so selecting a stage never re-creates them.
|
|
62
|
+
*/
|
|
63
|
+
readonly flowEdges: _angular_core.Signal<Edge<unknown>[]>;
|
|
64
|
+
/** Nodes one hop from the selection — they stay lit alongside it. */
|
|
65
|
+
private readonly relatedIds;
|
|
66
|
+
readonly isEmpty: _angular_core.Signal<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* A linear chain needs one row, the design's converging entries need three —
|
|
69
|
+
* sizing from the layout keeps the card from leaving a tall empty band.
|
|
70
|
+
*/
|
|
71
|
+
readonly resolvedHeight: _angular_core.Signal<string>;
|
|
72
|
+
kindTone(kind: FxChainNodeKind): string;
|
|
73
|
+
isActive(node: FxChainNode): boolean;
|
|
74
|
+
/** One hop from the selection: lit, but without the selected accent frame. */
|
|
75
|
+
isRelated(node: FxChainNode): boolean;
|
|
76
|
+
/** Nothing selected → every node reads at full strength. */
|
|
77
|
+
isDimmed(node: FxChainNode): boolean;
|
|
78
|
+
/** An edge touching the selection is part of the step being read. */
|
|
79
|
+
isEdgeActive(edge: Edge): boolean;
|
|
80
|
+
isEdgeDimmed(edge: Edge): boolean;
|
|
81
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlowCanvasComponent, never>;
|
|
82
|
+
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>;
|
|
83
|
+
}
|
|
84
|
+
|
|
4
85
|
declare class FlowConnection {
|
|
5
86
|
readonly nodes: _angular_core.InputSignal<Node[]>;
|
|
6
87
|
edges: Edge[];
|
|
@@ -11,4 +92,5 @@ declare class FlowConnection {
|
|
|
11
92
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlowConnection, "fx-ui-flow-connection", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "edges": { "alias": "edges"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
93
|
}
|
|
13
94
|
|
|
14
|
-
export { FlowConnection };
|
|
95
|
+
export { FX_CHAIN_KIND_TONE, FlowCanvasComponent, FlowConnection };
|
|
96
|
+
export type { FxChainEdge, FxChainNode, FxChainNodeKind };
|