ngx-core-components 0.3.25 → 0.3.26
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 +85 -0
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +71 -4
- package/fesm2022/ngx-core-components-charts.mjs +670 -123
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +282 -54
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +14 -1
- package/grid/data-grid/grid-export.service.d.ts +4 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,10 @@ import { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes'
|
|
|
59
59
|
- `LineChartComponent`
|
|
60
60
|
- `PieChartComponent`
|
|
61
61
|
- `SparklineComponent`
|
|
62
|
+
- `AgenticCognitiveTopologyComponent`
|
|
63
|
+
- `TokenStreamingChartComponent`
|
|
64
|
+
- `EmbeddingSpaceProjectionComponent`
|
|
65
|
+
- `TransformerAttentionHeatmapComponent`
|
|
62
66
|
|
|
63
67
|
### Inputs
|
|
64
68
|
|
|
@@ -492,6 +496,87 @@ interface GanttTask {
|
|
|
492
496
|
| `width` | `number` | `120` | SVG width |
|
|
493
497
|
| `height` | `number` | `36` | SVG height |
|
|
494
498
|
|
|
499
|
+
#### AgenticCognitiveTopologyComponent (`ngx-agentic-cognitive-topology`)
|
|
500
|
+
A dynamic visual representation of an agentic cognitive workflow (directed acyclic graph) supporting real-time interaction, automatic level sorting layouts, snapping grid alignment, properties modal editing, and drag-and-drop link creation.
|
|
501
|
+
|
|
502
|
+
##### Inputs
|
|
503
|
+
| Input | Type | Default | Description |
|
|
504
|
+
|---|---|---|---|
|
|
505
|
+
| `nodes` | `TopologyNode[]` | **required** | List of workflow nodes |
|
|
506
|
+
| `links` | `TopologyLink[]` | **required** | Directed edges between nodes |
|
|
507
|
+
| `width` | `number` | `650` | SVG width |
|
|
508
|
+
| `height` | `number` | `450` | SVG height |
|
|
509
|
+
| `colors` | `string[]` | `CHART_COLORS` | Custom node color palette |
|
|
510
|
+
| `showExport` | `boolean` | `true` | Show export options dropdown |
|
|
511
|
+
| `editable` | `boolean` | `false` | Enable interactive canvas editor |
|
|
512
|
+
| `gridSize` | `number` | `20` | Size of snap-to-grid alignment |
|
|
513
|
+
|
|
514
|
+
##### Outputs
|
|
515
|
+
| Output | Type | Description |
|
|
516
|
+
|---|---|---|
|
|
517
|
+
| `nodeActionClick` | `{ nodeId: string; action: string }` | Emitted when an action is selected in the node tooltip |
|
|
518
|
+
| `nodePositionChange` | `{ nodeId: string; x: number; y: number }` | Emitted when a node is dragged and repositioned |
|
|
519
|
+
| `nodesChange` | `TopologyNode[]` | Emitted in edit mode when nodes are added, edited, or deleted |
|
|
520
|
+
| `linksChange` | `TopologyLink[]` | Emitted in edit mode when links are added or deleted |
|
|
521
|
+
| `validationError` | `string` | Emitted when editor validations (e.g. cycles) are violated or copy notices occur |
|
|
522
|
+
|
|
523
|
+
##### Public Methods
|
|
524
|
+
| Method | Signature | Description |
|
|
525
|
+
|---|---|---|
|
|
526
|
+
| `autoLayout` | `(): void` | Clear all overrides and automatically arrange nodes using topological layer sorting |
|
|
527
|
+
| `undo` | `(): void` | Undo the last editor action |
|
|
528
|
+
| `redo` | `(): void` | Redo the last undone editor action |
|
|
529
|
+
| `exportWorkflowSchema` | `(): void` | Copies the current workflow layout as a LangGraph-compatible JSON schema |
|
|
530
|
+
|
|
531
|
+
#### TokenStreamingChartComponent (`ngx-token-streaming-chart`)
|
|
532
|
+
Real-time streaming chart optimized for rendering active LLM token generation metrics, showing speed (tokens per second), latency, and dynamic target highlights.
|
|
533
|
+
|
|
534
|
+
##### Inputs
|
|
535
|
+
| Input | Type | Default | Description |
|
|
536
|
+
|---|---|---|---|
|
|
537
|
+
| `data` | `number[]` | `[]` | Sequential generation speed values |
|
|
538
|
+
| `height` | `number` | `180` | Chart height in pixels |
|
|
539
|
+
| `threshold` | `number \| null` | `null` | Optional threshold alert limit |
|
|
540
|
+
| `showGrid` | `boolean` | `true` | Render horizontal grid lines |
|
|
541
|
+
|
|
542
|
+
##### Public Methods
|
|
543
|
+
| Method | Signature | Description |
|
|
544
|
+
|---|---|---|
|
|
545
|
+
| `setPoints` | `(newPoints: number[]): void` | Reset streaming points |
|
|
546
|
+
| `clearPoints` | `(): void` | Clear all points and reset charts |
|
|
547
|
+
|
|
548
|
+
#### EmbeddingSpaceProjectionComponent (`ngx-embedding-space-projection`)
|
|
549
|
+
Interactive multi-dimensional vector space projection (scatterplot layout) supporting visual cluster selection, lasso path tracing, and target distance query helpers.
|
|
550
|
+
|
|
551
|
+
##### Inputs
|
|
552
|
+
| Input | Type | Default | Description |
|
|
553
|
+
|---|---|---|---|
|
|
554
|
+
| `points` | `EmbeddingPoint[]` | **required** | Coordinates and metadata of embeddings |
|
|
555
|
+
| `height` | `number` | `360` | SVG container height |
|
|
556
|
+
|
|
557
|
+
##### Outputs
|
|
558
|
+
| Output | Type | Description |
|
|
559
|
+
|---|---|---|
|
|
560
|
+
| `lassoSelected` | `string[]` | Emitted with list of selected point IDs after drawing a lasso path |
|
|
561
|
+
| `agentQueryRequest` | `{ selectedIds: string[]; queryType: string }` | Emitted when triggering semantic action queries on selected embeddings |
|
|
562
|
+
|
|
563
|
+
#### TransformerAttentionHeatmapComponent (`ngx-transformer-attention-heatmap`)
|
|
564
|
+
Interactive visualization mapping matrix weights between input and output tokens across selected transformer attention heads, highlighting key focus weights.
|
|
565
|
+
|
|
566
|
+
##### Inputs
|
|
567
|
+
| Input | Type | Default | Description |
|
|
568
|
+
|---|---|---|---|
|
|
569
|
+
| `tokensX` | `string[]` | **required** | Horizontal axis token strings |
|
|
570
|
+
| `tokensY` | `string[]` | **required** | Vertical axis token strings |
|
|
571
|
+
| `weights` | `number[][]` | **required** | M x N matrix representing attention intensities |
|
|
572
|
+
| `height` | `number` | `300` | Grid container height |
|
|
573
|
+
|
|
574
|
+
##### Outputs
|
|
575
|
+
| Output | Type | Description |
|
|
576
|
+
|---|---|---|
|
|
577
|
+
| `cellClick` | `{ row: number; col: number; weight: number }` | Emitted when clicking an individual weight square |
|
|
578
|
+
| `agentQuery` | `{ query: string; tokenY: string; tokenX: string; weight: number }` | Emitted when triggering AI queries on cell highlights |
|
|
579
|
+
|
|
495
580
|
---
|
|
496
581
|
|
|
497
582
|
### Inputs
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import type { ExportFormat } from '../shared/chart-export-menu.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface TopologyNode {
|
|
4
5
|
id: string;
|
|
@@ -22,12 +23,15 @@ interface ProcessedNode extends TopologyNode {
|
|
|
22
23
|
depth: number;
|
|
23
24
|
}
|
|
24
25
|
export declare class AgenticCognitiveTopologyComponent {
|
|
26
|
+
private readonly exportSvc;
|
|
25
27
|
nodes: import("@angular/core").InputSignal<TopologyNode[]>;
|
|
26
28
|
links: import("@angular/core").InputSignal<TopologyLink[]>;
|
|
27
29
|
width: import("@angular/core").InputSignal<number>;
|
|
28
30
|
height: import("@angular/core").InputSignal<number>;
|
|
29
31
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
30
32
|
showExport: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
editable: import("@angular/core").InputSignal<boolean>;
|
|
34
|
+
gridSize: import("@angular/core").InputSignal<number>;
|
|
31
35
|
nodeActionClick: import("@angular/core").OutputEmitterRef<{
|
|
32
36
|
nodeId: string;
|
|
33
37
|
action: string;
|
|
@@ -37,6 +41,9 @@ export declare class AgenticCognitiveTopologyComponent {
|
|
|
37
41
|
x: number;
|
|
38
42
|
y: number;
|
|
39
43
|
}>;
|
|
44
|
+
nodesChange: import("@angular/core").OutputEmitterRef<TopologyNode[]>;
|
|
45
|
+
linksChange: import("@angular/core").OutputEmitterRef<TopologyLink[]>;
|
|
46
|
+
validationError: import("@angular/core").OutputEmitterRef<string>;
|
|
40
47
|
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
41
48
|
tooltipData: import("@angular/core").WritableSignal<{
|
|
42
49
|
node: TopologyNode;
|
|
@@ -62,6 +69,47 @@ export declare class AgenticCognitiveTopologyComponent {
|
|
|
62
69
|
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
63
70
|
nodeWidth: number;
|
|
64
71
|
nodeHeight: number;
|
|
72
|
+
activeEditingNode: import("@angular/core").WritableSignal<TopologyNode | null>;
|
|
73
|
+
activePortDrag: import("@angular/core").WritableSignal<{
|
|
74
|
+
nodeId: string;
|
|
75
|
+
portX: number;
|
|
76
|
+
portY: number;
|
|
77
|
+
dir: [number, number];
|
|
78
|
+
} | null>;
|
|
79
|
+
portDragCurrentMouse: import("@angular/core").WritableSignal<{
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
} | null>;
|
|
83
|
+
snapToGridActive: import("@angular/core").WritableSignal<boolean>;
|
|
84
|
+
undoStack: import("@angular/core").WritableSignal<{
|
|
85
|
+
addedNodes: TopologyNode[];
|
|
86
|
+
deletedNodeIds: Set<string>;
|
|
87
|
+
editedNodesMap: Map<string, TopologyNode>;
|
|
88
|
+
addedLinks: TopologyLink[];
|
|
89
|
+
deletedLinks: Set<string>;
|
|
90
|
+
nodePositionOverrides: Map<string, {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
}>;
|
|
94
|
+
}[]>;
|
|
95
|
+
redoStack: import("@angular/core").WritableSignal<{
|
|
96
|
+
addedNodes: TopologyNode[];
|
|
97
|
+
deletedNodeIds: Set<string>;
|
|
98
|
+
editedNodesMap: Map<string, TopologyNode>;
|
|
99
|
+
addedLinks: TopologyLink[];
|
|
100
|
+
deletedLinks: Set<string>;
|
|
101
|
+
nodePositionOverrides: Map<string, {
|
|
102
|
+
x: number;
|
|
103
|
+
y: number;
|
|
104
|
+
}>;
|
|
105
|
+
}[]>;
|
|
106
|
+
addedNodes: import("@angular/core").WritableSignal<TopologyNode[]>;
|
|
107
|
+
deletedNodeIds: import("@angular/core").WritableSignal<Set<string>>;
|
|
108
|
+
editedNodesMap: import("@angular/core").WritableSignal<Map<string, TopologyNode>>;
|
|
109
|
+
addedLinks: import("@angular/core").WritableSignal<TopologyLink[]>;
|
|
110
|
+
deletedLinks: import("@angular/core").WritableSignal<Set<string>>;
|
|
111
|
+
effectiveNodes: import("@angular/core").Signal<TopologyNode[]>;
|
|
112
|
+
effectiveLinks: import("@angular/core").Signal<TopologyLink[]>;
|
|
65
113
|
/** Color map: maps lowercase node type string to a color from the colors input */
|
|
66
114
|
private typeColorMap;
|
|
67
115
|
/** Status-based override colors (take priority over type colors) */
|
|
@@ -85,13 +133,17 @@ export declare class AgenticCognitiveTopologyComponent {
|
|
|
85
133
|
cp2X: number;
|
|
86
134
|
cp2Y: number;
|
|
87
135
|
}[]>;
|
|
136
|
+
temporaryDragLinkPath: import("@angular/core").Signal<string>;
|
|
137
|
+
validationReport: import("@angular/core").Signal<{
|
|
138
|
+
orphans: string[];
|
|
139
|
+
hasCycles: boolean;
|
|
140
|
+
isValid: boolean;
|
|
141
|
+
}>;
|
|
88
142
|
onNodeClick(node: TopologyNode, event: MouseEvent): void;
|
|
89
143
|
onCanvasClick(): void;
|
|
90
144
|
closeTooltip(): void;
|
|
91
145
|
triggerAction(action: string, nodeId: string): void;
|
|
92
|
-
|
|
93
|
-
closeExportMenu(): void;
|
|
94
|
-
onExport(type: 'json' | 'csv' | 'svg' | 'pdf'): void;
|
|
146
|
+
onExport(type: ExportFormat): void;
|
|
95
147
|
exportToJson(): void;
|
|
96
148
|
exportToCsv(): void;
|
|
97
149
|
exportToSvg(): void;
|
|
@@ -110,6 +162,18 @@ export declare class AgenticCognitiveTopologyComponent {
|
|
|
110
162
|
cp1Y: number;
|
|
111
163
|
cp2Y: number;
|
|
112
164
|
}): number;
|
|
165
|
+
saveHistory(): void;
|
|
166
|
+
applySnapshot(snap: any): void;
|
|
167
|
+
undo(): void;
|
|
168
|
+
redo(): void;
|
|
169
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
170
|
+
autoLayout(): void;
|
|
171
|
+
addNode(): void;
|
|
172
|
+
deleteNode(nodeId: string, event: MouseEvent): void;
|
|
173
|
+
deleteLink(source: string, target: string, event: MouseEvent): void;
|
|
174
|
+
onNodeDblClick(node: TopologyNode, event: MouseEvent): void;
|
|
175
|
+
saveNodeEdit(): void;
|
|
176
|
+
onPortMouseDown(node: ProcessedNode, dir: [number, number], event: MouseEvent): void;
|
|
113
177
|
onNodeMouseDown(node: ProcessedNode, event: MouseEvent): void;
|
|
114
178
|
onMouseDown(event: MouseEvent): void;
|
|
115
179
|
onMouseMove(event: MouseEvent): void;
|
|
@@ -119,7 +183,10 @@ export declare class AgenticCognitiveTopologyComponent {
|
|
|
119
183
|
zoomIn(): void;
|
|
120
184
|
zoomOut(): void;
|
|
121
185
|
resetZoom(): void;
|
|
186
|
+
checkCycle(start: string, target: string): boolean;
|
|
187
|
+
detectCyclesGlobal(): boolean;
|
|
188
|
+
exportWorkflowSchema(): void;
|
|
122
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<AgenticCognitiveTopologyComponent, never>;
|
|
123
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AgenticCognitiveTopologyComponent, "ngx-agentic-cognitive-topology", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "links": { "alias": "links"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, { "nodeActionClick": "nodeActionClick"; "nodePositionChange": "nodePositionChange"; }, never, never, true, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AgenticCognitiveTopologyComponent, "ngx-agentic-cognitive-topology", never, { "nodes": { "alias": "nodes"; "required": true; "isSignal": true; }; "links": { "alias": "links"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "gridSize": { "alias": "gridSize"; "required": false; "isSignal": true; }; }, { "nodeActionClick": "nodeActionClick"; "nodePositionChange": "nodePositionChange"; "nodesChange": "nodesChange"; "linksChange": "linksChange"; "validationError": "validationError"; }, never, never, true, never>;
|
|
124
191
|
}
|
|
125
192
|
export {};
|