@f-ewald/components 1.41.0 → 1.42.2
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 +3 -1
- package/custom-elements.json +1228 -33
- package/dist/dag-graph.d.ts +161 -0
- package/dist/dag-graph.d.ts.map +1 -0
- package/dist/dag-graph.js +724 -0
- package/dist/dag-graph.js.map +1 -0
- package/dist/icons.d.ts +16 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +16 -0
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tokens.css +4 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +10 -0
- package/dist/tokens.js.map +1 -1
- package/dist/utils/dag-layout.d.ts +60 -0
- package/dist/utils/dag-layout.d.ts.map +1 -0
- package/dist/utils/dag-layout.js +80 -0
- package/dist/utils/dag-layout.js.map +1 -0
- package/docs/dag-graph.md +101 -0
- package/docs/design-language.md +4 -1
- package/docs/icons.md +8 -0
- package/llms.txt +57 -0
- package/package.json +2 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# `<dag-graph>`
|
|
2
|
+
|
|
3
|
+
Interactive layered drawing of a directed graph — dependencies, pipelines, or any node-link data.
|
|
4
|
+
|
|
5
|
+
Nodes are placed in layers (via dagre) so edges flow left to right (or top to bottom with
|
|
6
|
+
`direction="TB"`); cycles are allowed, and the edges closing them are drawn dashed and point backward.
|
|
7
|
+
Each node is a compact card sized to its label, with an optional icon, color, and border style from
|
|
8
|
+
`kinds`. The whole graph is shown when it fits at a readable zoom; otherwise the selected node is centered at
|
|
9
|
+
100%. Drag to pan; pinch or Ctrl/⌘ + wheel to zoom (a plain wheel scrolls the page). With keyboard
|
|
10
|
+
focus on the graph, arrow keys pan, `+`/`-` zoom, and `0` fits the graph. Clicking a node, or pressing
|
|
11
|
+
Enter/Space on it, selects it. A toolbar in the top-right corner offers the `controls` you enable.
|
|
12
|
+
|
|
13
|
+
Set `static` to present a fixed picture: the graph is always fitted into view, panning and zooming
|
|
14
|
+
are off, and the toolbar is hidden; nodes can still be selected.
|
|
15
|
+
|
|
16
|
+
Colors can be changed with these custom properties: `--dag-node-background`, `--dag-node-text`,
|
|
17
|
+
`--dag-edge-color`, `--dag-selected-color`, and `--dag-highlight-color`; `--dag-graph-height` sets the
|
|
18
|
+
height (default `24rem`).
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import "@f-ewald/components/dag-graph.js";
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<dag-graph legend selected="web"></dag-graph>
|
|
30
|
+
<script type="module">
|
|
31
|
+
import { iconBookOpen, iconCube, iconServer } from "@f-ewald/components/icons.js";
|
|
32
|
+
const graph = document.querySelector("dag-graph");
|
|
33
|
+
graph.kinds = {
|
|
34
|
+
service: { label: "Service", icon: iconServer, color: "#4269d0" },
|
|
35
|
+
library: { label: "Library", icon: iconBookOpen, color: "#3ca951" },
|
|
36
|
+
package: { label: "External package", icon: iconCube, color: "#9498a0", dashed: true },
|
|
37
|
+
};
|
|
38
|
+
graph.nodes = [
|
|
39
|
+
{ id: "web", label: "web", kind: "service" },
|
|
40
|
+
{ id: "auth", label: "auth-lib", kind: "library" },
|
|
41
|
+
{ id: "requests", label: "requests", kind: "package" },
|
|
42
|
+
];
|
|
43
|
+
graph.edges = [
|
|
44
|
+
{ source: "web", target: "auth" },
|
|
45
|
+
{ source: "auth", target: "requests" },
|
|
46
|
+
];
|
|
47
|
+
graph.addEventListener("node-select", (e) => console.log(e.detail.id));
|
|
48
|
+
</script>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Attributes / properties
|
|
52
|
+
|
|
53
|
+
| Property | Attribute | Type | Default | Description |
|
|
54
|
+
| --- | --- | --- | --- | --- |
|
|
55
|
+
| `nodes` | `nodes` | `DagNode[]` | `[]` | Nodes to draw. |
|
|
56
|
+
| `edges` | `edges` | `DagEdge[]` | `[]` | Directed edges between `nodes`; edges with an unknown endpoint or to the node itself are ignored. |
|
|
57
|
+
| `kinds` | _(JS property only)_ | `Record<string, DagNodeKind>` | `{}` | Presentation per node `kind`: legend label, color, icon, and border style. |
|
|
58
|
+
| `selected` | `selected` | `string | null` | `null` | Id of the selected node. Selecting a node updates it; when it changes to a node outside the visible area, the view follows. |
|
|
59
|
+
| `direction` | `direction` | `DagDirection` | `"LR"` | Layer direction: `LR` (left to right) or `TB` (top to bottom). |
|
|
60
|
+
| `label` | `label` | `string` | `"Directed graph"` | Accessible name of the graph; the node and edge counts are appended. |
|
|
61
|
+
| `legend` | `legend` | `boolean` | `false` | Shows a legend of `kinds` below the graph. |
|
|
62
|
+
| `controls` | `controls` | `string` | `"zoom fit center"` | Space-separated toolbar controls to show: any of `zoom`, `fit`, `center`, and `direction`, in that order. An empty value hides the toolbar. |
|
|
63
|
+
| `isStatic` | `static` | `boolean` | `false` | Presents a static picture: always fitted, with panning, zooming, and the toolbar turned off. |
|
|
64
|
+
|
|
65
|
+
## Events
|
|
66
|
+
|
|
67
|
+
| Event | Description |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `direction-change` | The toolbar's direction control flipped `direction`; `detail` is `{ direction }`. |
|
|
70
|
+
| `node-select` | A node was clicked or activated with the keyboard; `detail` is `{ id }`. |
|
|
71
|
+
|
|
72
|
+
## Slots
|
|
73
|
+
|
|
74
|
+
_None._
|
|
75
|
+
|
|
76
|
+
## CSS custom properties
|
|
77
|
+
|
|
78
|
+
| Custom property |
|
|
79
|
+
| --- |
|
|
80
|
+
| `--ui-border` |
|
|
81
|
+
| `--ui-border-width` |
|
|
82
|
+
| `--ui-button-highlight` |
|
|
83
|
+
| `--ui-button-secondary-background` |
|
|
84
|
+
| `--ui-button-secondary-border` |
|
|
85
|
+
| `--ui-button-secondary-gloss-end` |
|
|
86
|
+
| `--ui-button-secondary-gloss-start` |
|
|
87
|
+
| `--ui-danger` |
|
|
88
|
+
| `--ui-focus-ring` |
|
|
89
|
+
| `--ui-font` |
|
|
90
|
+
| `--ui-font-size` |
|
|
91
|
+
| `--ui-font-size-sm` |
|
|
92
|
+
| `--ui-font-size-xs` |
|
|
93
|
+
| `--ui-primary` |
|
|
94
|
+
| `--ui-radius` |
|
|
95
|
+
| `--ui-radius-sm` |
|
|
96
|
+
| `--ui-shadow` |
|
|
97
|
+
| `--ui-surface` |
|
|
98
|
+
| `--ui-surface-muted` |
|
|
99
|
+
| `--ui-text` |
|
|
100
|
+
| `--ui-text-muted` |
|
|
101
|
+
| `--ui-warning` |
|
package/docs/design-language.md
CHANGED
|
@@ -111,7 +111,10 @@ defines the details used when creating or reviewing components.
|
|
|
111
111
|
|
|
112
112
|
A themed gradient still paints over that base, so a theme overriding the
|
|
113
113
|
token behaves exactly as before; only the "token contributes nothing" case
|
|
114
|
-
changes.
|
|
114
|
+
changes. SVG fills can't paint a CSS gradient, so SVG surfaces that act as
|
|
115
|
+
secondary buttons (`dag-graph`'s nodes) build an SVG `linearGradient` from
|
|
116
|
+
`--ui-button-secondary-gloss-start`/`-end` instead — both default to
|
|
117
|
+
`--ui-surface`, a flat fill, and a gradient theme sets them to its stops. The layered form applies to `ui-button`'s `secondary` variant,
|
|
115
118
|
`confirm-dialog`'s Cancel, `button-group`'s unchecked segments,
|
|
116
119
|
`pagination-nav`'s buttons, `radio-cards`' unchecked cards, and the floating
|
|
117
120
|
`scroll-to-top`/`scroll-to-bottom`/`fullscreen-button` controls. Neither form
|
package/docs/icons.md
CHANGED
|
@@ -16,6 +16,8 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `iconAcademicCap` | 18px | Education, learning, or certification-related content. |
|
|
18
18
|
| `iconArrowDownTray` | 16px | Download or export actions. |
|
|
19
|
+
| `iconArrowLongDown` | 18px | A top-to-bottom flow or layout direction. |
|
|
20
|
+
| `iconArrowLongRight` | 18px | A left-to-right flow or layout direction. |
|
|
19
21
|
| `iconArrowPath` | 12px | Refresh actions, or an animated busy/loading spinner. |
|
|
20
22
|
| `iconArrowRight` | 12px | "Continue" or forward-progressing actions, e.g. a compact next-step arrow. |
|
|
21
23
|
| `iconArrowRightOnRectangle` | 16px | Logout/sign-out actions. |
|
|
@@ -24,6 +26,7 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
24
26
|
| `iconArrowsRightLeft` | 16px | Swap, exchange, or compare actions between two items. |
|
|
25
27
|
| `iconArrowTopRightOnSquare` | 16px | Links that open in a new tab/window, or navigate to an external site. |
|
|
26
28
|
| `iconBars3` | 18px | A hamburger menu toggle, e.g. collapsing or opening a sidebar/nav drawer. |
|
|
29
|
+
| `iconBookOpen` | 20px | A library, documentation, or reading content, e.g. a library node in dag-graph. |
|
|
27
30
|
| `iconCalendar` | 16px | Dates, due dates, or calendar-related metadata. |
|
|
28
31
|
| `iconChatBubbleLeftRight` | 18px | Messaging, comments, or conversation-related content. |
|
|
29
32
|
| `iconCheckCircle` | 16px | Success states, confirmations, or a selected-item checkmark. |
|
|
@@ -38,6 +41,7 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
38
41
|
| `iconCog` | 20px | Settings, preferences, or configuration entry points. |
|
|
39
42
|
| `iconComputerDesktop` | 16px | A "system/auto" theme option, or to represent a desktop device. |
|
|
40
43
|
| `iconCpuChip` | 18px | System, hardware, or technical/processing content. |
|
|
44
|
+
| `iconCube` | 20px | A package or self-contained artifact, e.g. an external package node in dag-graph. |
|
|
41
45
|
| `iconCurrencyDollar` | 16px | Monetary values, pricing, or billing-related content. |
|
|
42
46
|
| `iconDocument` | 18px | A generic file/document icon, e.g. tile-grid's default file icon. |
|
|
43
47
|
| `iconEllipsisHorizontal` | 16px | Collapsed items in an inline sequence, e.g. breadcrumb-nav's truncated middle. |
|
|
@@ -56,6 +60,8 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
56
60
|
| `iconLink` | 16px | Hyperlink-related actions or a linked/associated-item indicator. |
|
|
57
61
|
| `iconListBullet` | 18px | A list-view toggle, or to represent list-type content. |
|
|
58
62
|
| `iconMagnifyingGlass` | 16px | Search inputs or search-triggering actions. |
|
|
63
|
+
| `iconMagnifyingGlassMinus` | 18px | Zoom out, e.g. dag-graph's toolbar. |
|
|
64
|
+
| `iconMagnifyingGlassPlus` | 18px | Zoom in, e.g. dag-graph's toolbar. |
|
|
59
65
|
| `iconMap` | 16px | A map-view toggle, or to represent map/geographic content. |
|
|
60
66
|
| `iconMapPin` | 16px | A location, address, or map marker. |
|
|
61
67
|
| `iconMoon` | 16px | A dark-theme toggle, or to represent night/dark mode. |
|
|
@@ -66,6 +72,7 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
66
72
|
| `iconPuzzlePiece` | 18px | Plugins, integrations, or extensible/add-on features. |
|
|
67
73
|
| `iconQuestionMarkCircle` | 20px | Help, tooltips, or "learn more" affordances. |
|
|
68
74
|
| `iconQueueList` | 16px | Queues, backlogs, or ordered work-item lists. |
|
|
75
|
+
| `iconServer` | 20px | A running service or deployable, e.g. a service node in dag-graph. |
|
|
69
76
|
| `iconShieldCheck` | 16px | Verified, secure, or trusted states. |
|
|
70
77
|
| `iconShieldExclamation` | 16px | Security warnings, or at-risk/compromised states. |
|
|
71
78
|
| `iconSignal` | 16px | Live/real-time data, connectivity strength, or a traffic-conditions toggle. |
|
|
@@ -78,5 +85,6 @@ const icon = iconPencil(16); // 16px, defaults shown below if omitted
|
|
|
78
85
|
| `iconTrash` | 16px | Delete/remove actions, typically paired with a destructive/danger style. |
|
|
79
86
|
| `iconUserCircle` | 20px | A generic user/person fallback, e.g. user-avatar's icon fallback. |
|
|
80
87
|
| `iconUsers` | 18px | Teams, groups, or multi-user/collaboration content. |
|
|
88
|
+
| `iconViewfinderCircle` | 18px | Center or focus the view on the current selection, e.g. dag-graph's toolbar. |
|
|
81
89
|
| `iconWrenchScrewdriver` | 18px | Tools, maintenance, or build/configuration actions. |
|
|
82
90
|
| `iconX` | 18px | Close, dismiss, or clear (e.g. a modal, toast, or clearable input). |
|
package/llms.txt
CHANGED
|
@@ -33,6 +33,8 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
33
33
|
| --- | --- | --- |
|
|
34
34
|
| `iconAcademicCap` | 18px | Education, learning, or certification-related content. |
|
|
35
35
|
| `iconArrowDownTray` | 16px | Download or export actions. |
|
|
36
|
+
| `iconArrowLongDown` | 18px | A top-to-bottom flow or layout direction. |
|
|
37
|
+
| `iconArrowLongRight` | 18px | A left-to-right flow or layout direction. |
|
|
36
38
|
| `iconArrowPath` | 12px | Refresh actions, or an animated busy/loading spinner. |
|
|
37
39
|
| `iconArrowRight` | 12px | "Continue" or forward-progressing actions, e.g. a compact next-step arrow. |
|
|
38
40
|
| `iconArrowRightOnRectangle` | 16px | Logout/sign-out actions. |
|
|
@@ -41,6 +43,7 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
41
43
|
| `iconArrowsRightLeft` | 16px | Swap, exchange, or compare actions between two items. |
|
|
42
44
|
| `iconArrowTopRightOnSquare` | 16px | Links that open in a new tab/window, or navigate to an external site. |
|
|
43
45
|
| `iconBars3` | 18px | A hamburger menu toggle, e.g. collapsing or opening a sidebar/nav drawer. |
|
|
46
|
+
| `iconBookOpen` | 20px | A library, documentation, or reading content, e.g. a library node in dag-graph. |
|
|
44
47
|
| `iconCalendar` | 16px | Dates, due dates, or calendar-related metadata. |
|
|
45
48
|
| `iconChatBubbleLeftRight` | 18px | Messaging, comments, or conversation-related content. |
|
|
46
49
|
| `iconCheckCircle` | 16px | Success states, confirmations, or a selected-item checkmark. |
|
|
@@ -55,6 +58,7 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
55
58
|
| `iconCog` | 20px | Settings, preferences, or configuration entry points. |
|
|
56
59
|
| `iconComputerDesktop` | 16px | A "system/auto" theme option, or to represent a desktop device. |
|
|
57
60
|
| `iconCpuChip` | 18px | System, hardware, or technical/processing content. |
|
|
61
|
+
| `iconCube` | 20px | A package or self-contained artifact, e.g. an external package node in dag-graph. |
|
|
58
62
|
| `iconCurrencyDollar` | 16px | Monetary values, pricing, or billing-related content. |
|
|
59
63
|
| `iconDocument` | 18px | A generic file/document icon, e.g. tile-grid's default file icon. |
|
|
60
64
|
| `iconEllipsisHorizontal` | 16px | Collapsed items in an inline sequence, e.g. breadcrumb-nav's truncated middle. |
|
|
@@ -73,6 +77,8 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
73
77
|
| `iconLink` | 16px | Hyperlink-related actions or a linked/associated-item indicator. |
|
|
74
78
|
| `iconListBullet` | 18px | A list-view toggle, or to represent list-type content. |
|
|
75
79
|
| `iconMagnifyingGlass` | 16px | Search inputs or search-triggering actions. |
|
|
80
|
+
| `iconMagnifyingGlassMinus` | 18px | Zoom out, e.g. dag-graph's toolbar. |
|
|
81
|
+
| `iconMagnifyingGlassPlus` | 18px | Zoom in, e.g. dag-graph's toolbar. |
|
|
76
82
|
| `iconMap` | 16px | A map-view toggle, or to represent map/geographic content. |
|
|
77
83
|
| `iconMapPin` | 16px | A location, address, or map marker. |
|
|
78
84
|
| `iconMoon` | 16px | A dark-theme toggle, or to represent night/dark mode. |
|
|
@@ -83,6 +89,7 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
83
89
|
| `iconPuzzlePiece` | 18px | Plugins, integrations, or extensible/add-on features. |
|
|
84
90
|
| `iconQuestionMarkCircle` | 20px | Help, tooltips, or "learn more" affordances. |
|
|
85
91
|
| `iconQueueList` | 16px | Queues, backlogs, or ordered work-item lists. |
|
|
92
|
+
| `iconServer` | 20px | A running service or deployable, e.g. a service node in dag-graph. |
|
|
86
93
|
| `iconShieldCheck` | 16px | Verified, secure, or trusted states. |
|
|
87
94
|
| `iconShieldExclamation` | 16px | Security warnings, or at-risk/compromised states. |
|
|
88
95
|
| `iconSignal` | 16px | Live/real-time data, connectivity strength, or a traffic-conditions toggle. |
|
|
@@ -95,6 +102,7 @@ table to pick the icon matching a use case, for consistency across apps:
|
|
|
95
102
|
| `iconTrash` | 16px | Delete/remove actions, typically paired with a destructive/danger style. |
|
|
96
103
|
| `iconUserCircle` | 20px | A generic user/person fallback, e.g. user-avatar's icon fallback. |
|
|
97
104
|
| `iconUsers` | 18px | Teams, groups, or multi-user/collaboration content. |
|
|
105
|
+
| `iconViewfinderCircle` | 18px | Center or focus the view on the current selection, e.g. dag-graph's toolbar. |
|
|
98
106
|
| `iconWrenchScrewdriver` | 18px | Tools, maintenance, or build/configuration actions. |
|
|
99
107
|
| `iconX` | 18px | Close, dismiss, or clear (e.g. a modal, toast, or clearable input). |
|
|
100
108
|
|
|
@@ -946,6 +954,55 @@ Example:
|
|
|
946
954
|
</script>
|
|
947
955
|
```
|
|
948
956
|
|
|
957
|
+
## <dag-graph>
|
|
958
|
+
|
|
959
|
+
Interactive layered drawing of a directed graph — dependencies, pipelines, or any node-link data.
|
|
960
|
+
|
|
961
|
+
Nodes are placed in layers (via dagre) so edges flow left to right (or top to bottom with
|
|
962
|
+
`direction="TB"`); cycles are allowed, and the edges closing them are drawn dashed and point backward.
|
|
963
|
+
Each node is a compact card sized to its label, with an optional icon, color, and border style from
|
|
964
|
+
`kinds`. The whole graph is shown when it fits at a readable zoom; otherwise the selected node is centered at
|
|
965
|
+
100%. Drag to pan; pinch or Ctrl/⌘ + wheel to zoom (a plain wheel scrolls the page). With keyboard
|
|
966
|
+
focus on the graph, arrow keys pan, `+`/`-` zoom, and `0` fits the graph. Clicking a node, or pressing
|
|
967
|
+
Enter/Space on it, selects it. A toolbar in the top-right corner offers the `controls` you enable.
|
|
968
|
+
|
|
969
|
+
Set `static` to present a fixed picture: the graph is always fitted into view, panning and zooming
|
|
970
|
+
are off, and the toolbar is hidden; nodes can still be selected.
|
|
971
|
+
|
|
972
|
+
Colors can be changed with these custom properties: `--dag-node-background`, `--dag-node-text`,
|
|
973
|
+
`--dag-edge-color`, `--dag-selected-color`, and `--dag-highlight-color`; `--dag-graph-height` sets the
|
|
974
|
+
height (default `24rem`).
|
|
975
|
+
|
|
976
|
+
Import: `import "@f-ewald/components/dag-graph.js";`
|
|
977
|
+
|
|
978
|
+
Properties: `nodes` (attribute `nodes`) : DagNode[], default []; `edges` (attribute `edges`) : DagEdge[], default []; `kinds` (JS property only) : Record<string, DagNodeKind>, default {}; `selected` (attribute `selected`) : string | null, default null; `direction` (attribute `direction`) : DagDirection, default "LR"; `label` (attribute `label`) : string, default "Directed graph"; `legend` (attribute `legend`) : boolean, default false; `controls` (attribute `controls`) : string, default "zoom fit center"; `isStatic` (attribute `static`) : boolean, default false
|
|
979
|
+
Events: `direction-change`, `node-select`
|
|
980
|
+
CSS custom properties: `--ui-border`, `--ui-border-width`, `--ui-button-highlight`, `--ui-button-secondary-background`, `--ui-button-secondary-border`, `--ui-button-secondary-gloss-end`, `--ui-button-secondary-gloss-start`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-primary`, `--ui-radius`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`, `--ui-warning`
|
|
981
|
+
|
|
982
|
+
Example:
|
|
983
|
+
```html
|
|
984
|
+
<dag-graph legend selected="web"></dag-graph>
|
|
985
|
+
<script type="module">
|
|
986
|
+
import { iconBookOpen, iconCube, iconServer } from "@f-ewald/components/icons.js";
|
|
987
|
+
const graph = document.querySelector("dag-graph");
|
|
988
|
+
graph.kinds = {
|
|
989
|
+
service: { label: "Service", icon: iconServer, color: "#4269d0" },
|
|
990
|
+
library: { label: "Library", icon: iconBookOpen, color: "#3ca951" },
|
|
991
|
+
package: { label: "External package", icon: iconCube, color: "#9498a0", dashed: true },
|
|
992
|
+
};
|
|
993
|
+
graph.nodes = [
|
|
994
|
+
{ id: "web", label: "web", kind: "service" },
|
|
995
|
+
{ id: "auth", label: "auth-lib", kind: "library" },
|
|
996
|
+
{ id: "requests", label: "requests", kind: "package" },
|
|
997
|
+
];
|
|
998
|
+
graph.edges = [
|
|
999
|
+
{ source: "web", target: "auth" },
|
|
1000
|
+
{ source: "auth", target: "requests" },
|
|
1001
|
+
];
|
|
1002
|
+
graph.addEventListener("node-select", (e) => console.log(e.detail.id));
|
|
1003
|
+
</script>
|
|
1004
|
+
```
|
|
1005
|
+
|
|
949
1006
|
## <data-table>
|
|
950
1007
|
|
|
951
1008
|
A generic, presentational table shell: renders a `<thead>` from `columns`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@f-ewald/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.42.2",
|
|
5
5
|
"description": "A collection of universally usable web components for various tasks.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"url": "git+https://github.com/f-ewald/components.git"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
+
"@dagrejs/dagre": "^3.1.3",
|
|
62
63
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
63
64
|
"d3-array": "^3.2.4",
|
|
64
65
|
"d3-scale": "^4.0.2",
|