@fusion.dev/helix 0.130.0 → 0.131.0
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/custom-elements.json +165 -2
- package/dist/element-events.generated.js +1 -0
- package/dist/graph/root/graph-root.css.js +194 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +44 -0
- package/types/vue.d.ts +15 -0
package/custom-elements.json
CHANGED
|
@@ -62983,6 +62983,19 @@
|
|
|
62983
62983
|
"module": "src/graph/root/graph-root.ts"
|
|
62984
62984
|
}
|
|
62985
62985
|
},
|
|
62986
|
+
{
|
|
62987
|
+
"kind": "field",
|
|
62988
|
+
"name": "hiddenGroups",
|
|
62989
|
+
"type": {
|
|
62990
|
+
"text": "readonly string[]"
|
|
62991
|
+
},
|
|
62992
|
+
"default": "[]",
|
|
62993
|
+
"description": "The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute.",
|
|
62994
|
+
"inheritedFrom": {
|
|
62995
|
+
"name": "HelixHeadlessGraph",
|
|
62996
|
+
"module": "src/graph/root/graph-root.ts"
|
|
62997
|
+
}
|
|
62998
|
+
},
|
|
62986
62999
|
{
|
|
62987
63000
|
"kind": "field",
|
|
62988
63001
|
"name": "label",
|
|
@@ -62997,6 +63010,34 @@
|
|
|
62997
63010
|
"module": "src/graph/root/graph-root.ts"
|
|
62998
63011
|
}
|
|
62999
63012
|
},
|
|
63013
|
+
{
|
|
63014
|
+
"kind": "field",
|
|
63015
|
+
"name": "legend",
|
|
63016
|
+
"type": {
|
|
63017
|
+
"text": "boolean"
|
|
63018
|
+
},
|
|
63019
|
+
"default": "false",
|
|
63020
|
+
"description": "Names the groups over the drawing, each a button in its color that shows\nor hides its notes. Drawn where the notes have two groups or more.",
|
|
63021
|
+
"attribute": "legend",
|
|
63022
|
+
"inheritedFrom": {
|
|
63023
|
+
"name": "HelixHeadlessGraph",
|
|
63024
|
+
"module": "src/graph/root/graph-root.ts"
|
|
63025
|
+
}
|
|
63026
|
+
},
|
|
63027
|
+
{
|
|
63028
|
+
"kind": "field",
|
|
63029
|
+
"name": "legendLabel",
|
|
63030
|
+
"type": {
|
|
63031
|
+
"text": "string"
|
|
63032
|
+
},
|
|
63033
|
+
"default": "'Groups'",
|
|
63034
|
+
"description": "The legend's name, read by screen readers.",
|
|
63035
|
+
"attribute": "legend-label",
|
|
63036
|
+
"inheritedFrom": {
|
|
63037
|
+
"name": "HelixHeadlessGraph",
|
|
63038
|
+
"module": "src/graph/root/graph-root.ts"
|
|
63039
|
+
}
|
|
63040
|
+
},
|
|
63000
63041
|
{
|
|
63001
63042
|
"kind": "field",
|
|
63002
63043
|
"name": "linkedBothLabel",
|
|
@@ -63213,7 +63254,21 @@
|
|
|
63213
63254
|
"text": "Set<string> | undefined"
|
|
63214
63255
|
},
|
|
63215
63256
|
"privacy": "private",
|
|
63216
|
-
"description": "The notes the local graph
|
|
63257
|
+
"description": "The notes the local graph and the legend keep, or `undefined` where neither leaves any out.",
|
|
63258
|
+
"inheritedFrom": {
|
|
63259
|
+
"name": "HelixHeadlessGraph",
|
|
63260
|
+
"module": "src/graph/root/graph-root.ts"
|
|
63261
|
+
}
|
|
63262
|
+
},
|
|
63263
|
+
{
|
|
63264
|
+
"kind": "field",
|
|
63265
|
+
"name": "groups",
|
|
63266
|
+
"type": {
|
|
63267
|
+
"text": "GraphGroupEntry[]"
|
|
63268
|
+
},
|
|
63269
|
+
"privacy": "private",
|
|
63270
|
+
"default": "[]",
|
|
63271
|
+
"description": "The groups the notes are in, each with the tone all its notes share\nwhere they share one. **In the order of their names**, which is the\norder `connectGraph` gives them their colors in.",
|
|
63217
63272
|
"inheritedFrom": {
|
|
63218
63273
|
"name": "HelixHeadlessGraph",
|
|
63219
63274
|
"module": "src/graph/root/graph-root.ts"
|
|
@@ -63395,6 +63450,44 @@
|
|
|
63395
63450
|
"module": "src/graph/root/graph-root.ts"
|
|
63396
63451
|
}
|
|
63397
63452
|
},
|
|
63453
|
+
{
|
|
63454
|
+
"kind": "method",
|
|
63455
|
+
"name": "toggleGroup",
|
|
63456
|
+
"privacy": "private",
|
|
63457
|
+
"return": {
|
|
63458
|
+
"type": {
|
|
63459
|
+
"text": "void"
|
|
63460
|
+
}
|
|
63461
|
+
},
|
|
63462
|
+
"parameters": [
|
|
63463
|
+
{
|
|
63464
|
+
"name": "name",
|
|
63465
|
+
"type": {
|
|
63466
|
+
"text": "string"
|
|
63467
|
+
}
|
|
63468
|
+
}
|
|
63469
|
+
],
|
|
63470
|
+
"description": "Shows a group's notes or hides them, through the request a page can refuse.",
|
|
63471
|
+
"inheritedFrom": {
|
|
63472
|
+
"name": "HelixHeadlessGraph",
|
|
63473
|
+
"module": "src/graph/root/graph-root.ts"
|
|
63474
|
+
}
|
|
63475
|
+
},
|
|
63476
|
+
{
|
|
63477
|
+
"kind": "method",
|
|
63478
|
+
"name": "renderLegend",
|
|
63479
|
+
"privacy": "private",
|
|
63480
|
+
"return": {
|
|
63481
|
+
"type": {
|
|
63482
|
+
"text": "TemplateResult | typeof nothing"
|
|
63483
|
+
}
|
|
63484
|
+
},
|
|
63485
|
+
"description": "The groups over the drawing, with `legend`, each a button pressed while\nits notes are shown. **Nothing for one group or none**: a legend of one\nnames what every note is, and turning it off empties the graph.",
|
|
63486
|
+
"inheritedFrom": {
|
|
63487
|
+
"name": "HelixHeadlessGraph",
|
|
63488
|
+
"module": "src/graph/root/graph-root.ts"
|
|
63489
|
+
}
|
|
63490
|
+
},
|
|
63398
63491
|
{
|
|
63399
63492
|
"kind": "method",
|
|
63400
63493
|
"name": "choose",
|
|
@@ -63900,7 +63993,7 @@
|
|
|
63900
63993
|
"slug": "large"
|
|
63901
63994
|
},
|
|
63902
63995
|
{
|
|
63903
|
-
"description": "A graph of company notes drawn by Sigma.js, with notes arriving and messages passing between them as they happen.",
|
|
63996
|
+
"description": "A graph of company notes drawn by Sigma.js, with notes arriving and messages passing between them as they happen, and a legend that shows or hides each subject.",
|
|
63904
63997
|
"slug": "live"
|
|
63905
63998
|
}
|
|
63906
63999
|
],
|
|
@@ -64185,6 +64278,32 @@
|
|
|
64185
64278
|
"module": "src/graph/root/graph-root.ts"
|
|
64186
64279
|
}
|
|
64187
64280
|
},
|
|
64281
|
+
{
|
|
64282
|
+
"name": "legend",
|
|
64283
|
+
"type": {
|
|
64284
|
+
"text": "boolean"
|
|
64285
|
+
},
|
|
64286
|
+
"default": "false",
|
|
64287
|
+
"description": "Names the groups over the drawing, each a button in its color that shows\nor hides its notes. Drawn where the notes have two groups or more.",
|
|
64288
|
+
"fieldName": "legend",
|
|
64289
|
+
"inheritedFrom": {
|
|
64290
|
+
"name": "HelixHeadlessGraph",
|
|
64291
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64292
|
+
}
|
|
64293
|
+
},
|
|
64294
|
+
{
|
|
64295
|
+
"name": "legend-label",
|
|
64296
|
+
"type": {
|
|
64297
|
+
"text": "string"
|
|
64298
|
+
},
|
|
64299
|
+
"default": "'Groups'",
|
|
64300
|
+
"description": "The legend's name, read by screen readers.",
|
|
64301
|
+
"fieldName": "legendLabel",
|
|
64302
|
+
"inheritedFrom": {
|
|
64303
|
+
"name": "HelixHeadlessGraph",
|
|
64304
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64305
|
+
}
|
|
64306
|
+
},
|
|
64188
64307
|
{
|
|
64189
64308
|
"name": "linked-both-label",
|
|
64190
64309
|
"type": {
|
|
@@ -64302,6 +64421,18 @@
|
|
|
64302
64421
|
"module": "src/graph/root/graph-root.ts"
|
|
64303
64422
|
}
|
|
64304
64423
|
},
|
|
64424
|
+
{
|
|
64425
|
+
"type": {
|
|
64426
|
+
"text": "HelixGraphFilterEvent"
|
|
64427
|
+
},
|
|
64428
|
+
"description": "A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself.",
|
|
64429
|
+
"name": "helix-graph-filter",
|
|
64430
|
+
"reactProp": "onhelix-graph-filter",
|
|
64431
|
+
"inheritedFrom": {
|
|
64432
|
+
"name": "HelixHeadlessGraph",
|
|
64433
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64434
|
+
}
|
|
64435
|
+
},
|
|
64305
64436
|
{
|
|
64306
64437
|
"type": {
|
|
64307
64438
|
"text": "HelixGraphLayoutEvent"
|
|
@@ -64506,6 +64637,38 @@
|
|
|
64506
64637
|
"module": "src/graph/root/graph-root.ts"
|
|
64507
64638
|
}
|
|
64508
64639
|
},
|
|
64640
|
+
{
|
|
64641
|
+
"description": "The groups over the drawing, with `legend`, each a button that shows or hides its notes.",
|
|
64642
|
+
"name": "legend",
|
|
64643
|
+
"inheritedFrom": {
|
|
64644
|
+
"name": "HelixHeadlessGraph",
|
|
64645
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64646
|
+
}
|
|
64647
|
+
},
|
|
64648
|
+
{
|
|
64649
|
+
"description": "One group in the legend, pressed while its notes are shown. Carries `data-tone` where every note in the group has the same tone, which colors the notes over the group's own color.",
|
|
64650
|
+
"name": "legend-item",
|
|
64651
|
+
"inheritedFrom": {
|
|
64652
|
+
"name": "HelixHeadlessGraph",
|
|
64653
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64654
|
+
}
|
|
64655
|
+
},
|
|
64656
|
+
{
|
|
64657
|
+
"description": "A group in the legend whose notes are hidden.",
|
|
64658
|
+
"name": "legend-item-hidden",
|
|
64659
|
+
"inheritedFrom": {
|
|
64660
|
+
"name": "HelixHeadlessGraph",
|
|
64661
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64662
|
+
}
|
|
64663
|
+
},
|
|
64664
|
+
{
|
|
64665
|
+
"description": "The mark in a group's color, before its name.",
|
|
64666
|
+
"name": "legend-swatch",
|
|
64667
|
+
"inheritedFrom": {
|
|
64668
|
+
"name": "HelixHeadlessGraph",
|
|
64669
|
+
"module": "src/graph/root/graph-root.ts"
|
|
64670
|
+
}
|
|
64671
|
+
},
|
|
64509
64672
|
{
|
|
64510
64673
|
"description": "The list of notes, which draws only the rows in view.",
|
|
64511
64674
|
"name": "list",
|
|
@@ -113,6 +113,196 @@ grid-template-areas:
|
|
|
113
113
|
". . . full";
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
[part="legend"] {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
gap: var(--helix-space-2xs);
|
|
120
|
+
inset-block-end: var(--helix-space-sm);
|
|
121
|
+
inset-inline-start: var(--helix-space-sm);
|
|
122
|
+
max-inline-size: calc(100% - var(--helix-space-sm) * 3 - var(--helix-size-control-sm));
|
|
123
|
+
position: absolute;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([controls-placement="bottom-start"]) [part="legend"] {
|
|
127
|
+
inset-inline: auto var(--helix-space-sm);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@container (inline-size < 40rem) {
|
|
131
|
+
[part="legend"] {
|
|
132
|
+
flex-wrap: nowrap;
|
|
133
|
+
inset-block-end: calc(var(--helix-space-sm) - var(--helix-space-2xs));
|
|
134
|
+
inset-inline-start: calc(var(--helix-space-sm) - var(--helix-space-2xs));
|
|
135
|
+
overflow-x: auto;
|
|
136
|
+
padding: var(--helix-space-2xs);
|
|
137
|
+
scrollbar-width: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[part~="legend-item"] {
|
|
142
|
+
align-items: center;
|
|
143
|
+
background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));
|
|
144
|
+
block-size: var(--helix-size-control-tight);
|
|
145
|
+
border: var(--helix-border-floating) solid var(--helix-color-border);
|
|
146
|
+
border-radius: var(--helix-radii-sm);
|
|
147
|
+
box-shadow: var(--helix-shadow-floating);
|
|
148
|
+
color: var(--helix-color-foreground);
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
font-family: var(--helix-font-sans);
|
|
152
|
+
font-size: var(--helix-text-xs);
|
|
153
|
+
font-weight: var(--helix-weight-medium);
|
|
154
|
+
gap: var(--helix-space-2xs);
|
|
155
|
+
padding-inline: var(--helix-space-xs);
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[part~="legend-item"]:focus-visible {
|
|
160
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
161
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[part~="legend-item"]:nth-child(24n + 1) {
|
|
165
|
+
--_graph-swatch: var(--helix-color-series-1);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[part~="legend-item"]:nth-child(24n + 2) {
|
|
169
|
+
--_graph-swatch: var(--helix-color-series-2);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[part~="legend-item"]:nth-child(24n + 3) {
|
|
173
|
+
--_graph-swatch: var(--helix-color-series-3);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[part~="legend-item"]:nth-child(24n + 4) {
|
|
177
|
+
--_graph-swatch: var(--helix-color-series-4);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
[part~="legend-item"]:nth-child(24n + 5) {
|
|
181
|
+
--_graph-swatch: var(--helix-color-series-5);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
[part~="legend-item"]:nth-child(24n + 6) {
|
|
185
|
+
--_graph-swatch: var(--helix-color-series-6);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[part~="legend-item"]:nth-child(24n + 7) {
|
|
189
|
+
--_graph-swatch: var(--helix-color-series-7);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[part~="legend-item"]:nth-child(24n + 8) {
|
|
193
|
+
--_graph-swatch: var(--helix-color-series-8);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
[part~="legend-item"]:nth-child(24n + 9) {
|
|
197
|
+
--_graph-swatch: var(--helix-color-series-9);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[part~="legend-item"]:nth-child(24n + 10) {
|
|
201
|
+
--_graph-swatch: var(--helix-color-series-10);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[part~="legend-item"]:nth-child(24n + 11) {
|
|
205
|
+
--_graph-swatch: var(--helix-color-series-11);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
[part~="legend-item"]:nth-child(24n + 12) {
|
|
209
|
+
--_graph-swatch: var(--helix-color-series-12);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
[part~="legend-item"]:nth-child(24n + 13) {
|
|
213
|
+
--_graph-swatch: var(--helix-color-series-13);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[part~="legend-item"]:nth-child(24n + 14) {
|
|
217
|
+
--_graph-swatch: var(--helix-color-series-14);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
[part~="legend-item"]:nth-child(24n + 15) {
|
|
221
|
+
--_graph-swatch: var(--helix-color-series-15);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
[part~="legend-item"]:nth-child(24n + 16) {
|
|
225
|
+
--_graph-swatch: var(--helix-color-series-16);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
[part~="legend-item"]:nth-child(24n + 17) {
|
|
229
|
+
--_graph-swatch: var(--helix-color-series-17);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
[part~="legend-item"]:nth-child(24n + 18) {
|
|
233
|
+
--_graph-swatch: var(--helix-color-series-18);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
[part~="legend-item"]:nth-child(24n + 19) {
|
|
237
|
+
--_graph-swatch: var(--helix-color-series-19);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
[part~="legend-item"]:nth-child(24n + 20) {
|
|
241
|
+
--_graph-swatch: var(--helix-color-series-20);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
[part~="legend-item"]:nth-child(24n + 21) {
|
|
245
|
+
--_graph-swatch: var(--helix-color-series-21);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[part~="legend-item"]:nth-child(24n + 22) {
|
|
249
|
+
--_graph-swatch: var(--helix-color-series-22);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[part~="legend-item"]:nth-child(24n + 23) {
|
|
253
|
+
--_graph-swatch: var(--helix-color-series-23);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
[part~="legend-item"]:nth-child(24n + 24) {
|
|
257
|
+
--_graph-swatch: var(--helix-color-series-24);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
[part~="legend-item"][data-tone="accent"] {
|
|
261
|
+
--_graph-swatch: var(--helix-color-accent);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
[part~="legend-item"][data-tone="danger"] {
|
|
265
|
+
--_graph-swatch: var(--helix-color-danger);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
[part~="legend-item"][data-tone="info"] {
|
|
269
|
+
--_graph-swatch: var(--helix-color-info);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
[part~="legend-item"][data-tone="neutral"] {
|
|
273
|
+
--_graph-swatch: var(--helix-color-foreground-muted);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[part~="legend-item"][data-tone="primary"] {
|
|
277
|
+
--_graph-swatch: var(--helix-color-primary);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[part~="legend-item"][data-tone="success"] {
|
|
281
|
+
--_graph-swatch: var(--helix-color-success);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[part~="legend-item"][data-tone="warning"] {
|
|
285
|
+
--_graph-swatch: var(--helix-color-warning);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[part="legend-swatch"] {
|
|
289
|
+
block-size: var(--helix-space-xs);
|
|
290
|
+
border: var(--helix-border-thin) solid var(--_graph-swatch, var(--helix-color-foreground-muted));
|
|
291
|
+
border-radius: var(--helix-radii-full);
|
|
292
|
+
box-sizing: border-box;
|
|
293
|
+
background-color: var(--_graph-swatch, var(--helix-color-foreground-muted));
|
|
294
|
+
flex: 0 0 auto;
|
|
295
|
+
inline-size: var(--helix-space-xs);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
[part~="legend-item-hidden"] {
|
|
299
|
+
color: var(--helix-color-foreground-subtle);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
[part~="legend-item-hidden"] [part="legend-swatch"] {
|
|
303
|
+
background-color: transparent;
|
|
304
|
+
}
|
|
305
|
+
|
|
116
306
|
[part="search"] {
|
|
117
307
|
align-items: center;
|
|
118
308
|
border-block-end: var(--helix-border-thin) solid var(--helix-color-border);
|
|
@@ -239,6 +429,10 @@ min-inline-size: 0;
|
|
|
239
429
|
}
|
|
240
430
|
|
|
241
431
|
@media (forced-colors: active) {
|
|
432
|
+
[part~="legend-item-hidden"] {
|
|
433
|
+
color: GrayText;
|
|
434
|
+
}
|
|
435
|
+
|
|
242
436
|
[part="list"]:focus-visible [part~="note-cursor"] {
|
|
243
437
|
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
244
438
|
outline-offset: calc(var(--helix-size-focus-offset) * -1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix",
|
|
3
3
|
"description": "Styled component tier. Extends the headless tier with token-driven presentation.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.131.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@fusion.dev/helix-core": "0.
|
|
55
|
-
"@fusion.dev/helix-headless": "0.
|
|
56
|
-
"@fusion.dev/helix-styles": "0.
|
|
54
|
+
"@fusion.dev/helix-core": "0.131.0",
|
|
55
|
+
"@fusion.dev/helix-headless": "0.131.0",
|
|
56
|
+
"@fusion.dev/helix-styles": "0.131.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@fusion.dev/helix-cem": "0.
|
|
60
|
-
"@fusion.dev/helix-testing": "0.
|
|
59
|
+
"@fusion.dev/helix-cem": "0.131.0",
|
|
60
|
+
"@fusion.dev/helix-testing": "0.131.0",
|
|
61
61
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
62
62
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
63
63
|
"@lit-labs/ssr": "^4.1.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ import type {
|
|
|
83
83
|
HelixFormElement,
|
|
84
84
|
HelixFormatDate,
|
|
85
85
|
HelixGraph,
|
|
86
|
+
HelixGraphFilterEvent,
|
|
86
87
|
HelixGraphLayoutEvent,
|
|
87
88
|
HelixGraphPanEvent,
|
|
88
89
|
HelixGraphPartChangeEvent,
|
|
@@ -11107,6 +11108,9 @@ export type HelixGraphHelixActivateElementEvent =
|
|
|
11107
11108
|
/** `helix-before-activate` event type */
|
|
11108
11109
|
export type HelixGraphHelixBeforeActivateElementEvent =
|
|
11109
11110
|
HelixGraphElementEvent<HelixBeforeActivateEvent>;
|
|
11111
|
+
/** `helix-graph-filter` event type */
|
|
11112
|
+
export type HelixGraphHelixGraphFilterElementEvent =
|
|
11113
|
+
HelixGraphElementEvent<HelixGraphFilterEvent>;
|
|
11110
11114
|
/** `helix-graph-layout` event type */
|
|
11111
11115
|
export type HelixGraphHelixGraphLayoutElementEvent =
|
|
11112
11116
|
HelixGraphElementEvent<HelixGraphLayoutEvent>;
|
|
@@ -11326,6 +11330,13 @@ shows every note. The list holds what the drawing shows. */
|
|
|
11326
11330
|
/** The graph's name, read by screen readers, such as "Research notes".
|
|
11327
11331
|
Required. */
|
|
11328
11332
|
label?: (HelixGraph["label"]) | undefined;
|
|
11333
|
+
/** Names the groups over the drawing, each a button in its color that shows
|
|
11334
|
+
or hides its notes. Drawn where the notes have two groups or more. */
|
|
11335
|
+
legend?: (HelixGraph["legend"]) | undefined;
|
|
11336
|
+
/** The legend's name, read by screen readers. */
|
|
11337
|
+
"legend-label"?: (HelixGraph["legendLabel"]) | undefined;
|
|
11338
|
+
/** The legend's name, read by screen readers. */
|
|
11339
|
+
legendLabel?: (HelixGraph["legendLabel"]) | undefined;
|
|
11329
11340
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
11330
11341
|
"linked-both-label"?: (HelixGraph["linkedBothLabel"]) | undefined;
|
|
11331
11342
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
@@ -11358,6 +11369,8 @@ such as at the top of a page, where the drawing takes the whole frame. */
|
|
|
11358
11369
|
"selected-label"?: (HelixGraph["selectedLabel"]) | undefined;
|
|
11359
11370
|
/** How the selected note is described in the list. */
|
|
11360
11371
|
selectedLabel?: (HelixGraph["selectedLabel"]) | undefined;
|
|
11372
|
+
/** The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute. */
|
|
11373
|
+
hiddenGroups?: (HelixGraph["hiddenGroups"]) | undefined;
|
|
11361
11374
|
/** The links between notes, each from `source` to `target`. A property, never an attribute. */
|
|
11362
11375
|
links?: (HelixGraph["links"]) | undefined;
|
|
11363
11376
|
/** The notes. A property, never an attribute. */
|
|
@@ -11369,6 +11382,8 @@ such as at the top of a page, where the drawing takes the whole frame. */
|
|
|
11369
11382
|
"onhelix-before-activate"?: ((
|
|
11370
11383
|
e: HelixGraphHelixBeforeActivateElementEvent,
|
|
11371
11384
|
) => void) | undefined;
|
|
11385
|
+
/** A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself. */
|
|
11386
|
+
"onhelix-graph-filter"?: ((e: HelixGraphHelixGraphFilterElementEvent) => void) | undefined;
|
|
11372
11387
|
/** A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`, and `z` where a renderer draws in three dimensions. */
|
|
11373
11388
|
"onhelix-graph-layout"?: ((e: HelixGraphHelixGraphLayoutElementEvent) => void) | undefined;
|
|
11374
11389
|
/** A pan button or arrow key was pressed. `connectGraph` moves the drawing. */
|
|
@@ -11585,6 +11600,13 @@ shows every note. The list holds what the drawing shows. */
|
|
|
11585
11600
|
/** The graph's name, read by screen readers, such as "Research notes".
|
|
11586
11601
|
Required. */
|
|
11587
11602
|
"prop:label"?: (HelixGraph["label"]) | undefined;
|
|
11603
|
+
/** Names the groups over the drawing, each a button in its color that shows
|
|
11604
|
+
or hides its notes. Drawn where the notes have two groups or more. */
|
|
11605
|
+
"prop:legend"?: (HelixGraph["legend"]) | undefined;
|
|
11606
|
+
/** The legend's name, read by screen readers. */
|
|
11607
|
+
"attr:legend-label"?: (HelixGraph["legendLabel"]) | undefined;
|
|
11608
|
+
/** The legend's name, read by screen readers. */
|
|
11609
|
+
"prop:legendLabel"?: (HelixGraph["legendLabel"]) | undefined;
|
|
11588
11610
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
11589
11611
|
"attr:linked-both-label"?: (HelixGraph["linkedBothLabel"]) | undefined;
|
|
11590
11612
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
@@ -11617,6 +11639,8 @@ such as at the top of a page, where the drawing takes the whole frame. */
|
|
|
11617
11639
|
"attr:selected-label"?: (HelixGraph["selectedLabel"]) | undefined;
|
|
11618
11640
|
/** How the selected note is described in the list. */
|
|
11619
11641
|
"prop:selectedLabel"?: (HelixGraph["selectedLabel"]) | undefined;
|
|
11642
|
+
/** The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute. */
|
|
11643
|
+
"prop:hiddenGroups"?: (HelixGraph["hiddenGroups"]) | undefined;
|
|
11620
11644
|
/** The links between notes, each from `source` to `target`. A property, never an attribute. */
|
|
11621
11645
|
"prop:links"?: (HelixGraph["links"]) | undefined;
|
|
11622
11646
|
/** The notes. A property, never an attribute. */
|
|
@@ -11627,6 +11651,8 @@ such as at the top of a page, where the drawing takes the whole frame. */
|
|
|
11627
11651
|
"on:helix-before-activate"?: ((
|
|
11628
11652
|
e: HelixGraphHelixBeforeActivateElementEvent,
|
|
11629
11653
|
) => void) | undefined;
|
|
11654
|
+
/** A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself. */
|
|
11655
|
+
"on:helix-graph-filter"?: ((e: HelixGraphHelixGraphFilterElementEvent) => void) | undefined;
|
|
11630
11656
|
/** A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`, and `z` where a renderer draws in three dimensions. */
|
|
11631
11657
|
"on:helix-graph-layout"?: ((e: HelixGraphHelixGraphLayoutElementEvent) => void) | undefined;
|
|
11632
11658
|
/** A pan button or arrow key was pressed. `connectGraph` moves the drawing. */
|
|
@@ -35608,6 +35634,9 @@ export type CustomElements = {
|
|
|
35608
35634
|
* shows every note. The list holds what the drawing shows.
|
|
35609
35635
|
* - `label`: The graph's name, read by screen readers, such as "Research notes".
|
|
35610
35636
|
* Required.
|
|
35637
|
+
* - `legend`: Names the groups over the drawing, each a button in its color that shows
|
|
35638
|
+
* or hides its notes. Drawn where the notes have two groups or more.
|
|
35639
|
+
* - `legend-label`/`legendLabel`: The legend's name, read by screen readers.
|
|
35611
35640
|
* - `linked-both-label`/`linkedBothLabel`: How a note linked both to and from the selected one is described, with `{note}`.
|
|
35612
35641
|
* - `linked-from-label`/`linkedFromLabel`: How a note the selected one links to is described, with `{note}`, the selected note's name.
|
|
35613
35642
|
* - `links-to-label`/`linksToLabel`: How a note that links to the selected one is described, with `{note}`.
|
|
@@ -35617,6 +35646,7 @@ export type CustomElements = {
|
|
|
35617
35646
|
* - `notes-label`/`notesLabel`: The list's name, read by screen readers, and the name of the button that opens it with `no-panel`.
|
|
35618
35647
|
* - `search-label`/`searchLabel`: The search field's name.
|
|
35619
35648
|
* - `selected-label`/`selectedLabel`: How the selected note is described in the list.
|
|
35649
|
+
* - `hiddenGroups`: The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute. (property only)
|
|
35620
35650
|
* - `links`: The links between notes, each from `source` to `target`. A property, never an attribute. (property only)
|
|
35621
35651
|
* - `nodes`: The notes. A property, never an attribute. (property only)
|
|
35622
35652
|
* - `ready`: Whether the graph has been drawn whole. For code that runs after `helix-graph-ready`. (property only) (readonly)
|
|
@@ -35647,6 +35677,7 @@ export type CustomElements = {
|
|
|
35647
35677
|
*
|
|
35648
35678
|
* - `helix-activate`: A note was selected, in the list or in the drawing. The detail's `value` is its `id`.
|
|
35649
35679
|
* - `helix-before-activate`: A note is about to be selected. Cancelable: cancel it to keep the selection in your own state.
|
|
35680
|
+
* - `helix-graph-filter`: A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself.
|
|
35650
35681
|
* - `helix-graph-layout`: A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`, and `z` where a renderer draws in three dimensions.
|
|
35651
35682
|
* - `helix-graph-pan`: A pan button or arrow key was pressed. `connectGraph` moves the drawing.
|
|
35652
35683
|
* - `helix-graph-part-change`: The notes, the links, the selection, the depth or the gestures changed. Used by `connectGraph`; pages do not need to listen for it.
|
|
@@ -35722,6 +35753,10 @@ export type CustomElements = {
|
|
|
35722
35753
|
* - `gesture-hint`: Words over the graph for a moment when it lets a gesture pass to the page, such as how to zoom it.
|
|
35723
35754
|
* - `gesture-status`: The line shown while a graph with `gestures="activate"` has the gestures.
|
|
35724
35755
|
* - `header`: The strip above the graph.
|
|
35756
|
+
* - `legend`: The groups over the drawing, with `legend`, each a button that shows or hides its notes.
|
|
35757
|
+
* - `legend-item`: One group in the legend, pressed while its notes are shown. Carries `data-tone` where every note in the group has the same tone, which colors the notes over the group's own color.
|
|
35758
|
+
* - `legend-item-hidden`: A group in the legend whose notes are hidden.
|
|
35759
|
+
* - `legend-swatch`: The mark in a group's color, before its name.
|
|
35725
35760
|
* - `list`: The list of notes, which draws only the rows in view.
|
|
35726
35761
|
* - `live`: What screen readers hear when a search changes how many notes there are.
|
|
35727
35762
|
* - `note`: One note in the list.
|
|
@@ -57903,6 +57938,9 @@ export type CustomElementsSolidJs = {
|
|
|
57903
57938
|
* shows every note. The list holds what the drawing shows.
|
|
57904
57939
|
* - `label`: The graph's name, read by screen readers, such as "Research notes".
|
|
57905
57940
|
* Required.
|
|
57941
|
+
* - `legend`: Names the groups over the drawing, each a button in its color that shows
|
|
57942
|
+
* or hides its notes. Drawn where the notes have two groups or more.
|
|
57943
|
+
* - `legend-label`/`legendLabel`: The legend's name, read by screen readers.
|
|
57906
57944
|
* - `linked-both-label`/`linkedBothLabel`: How a note linked both to and from the selected one is described, with `{note}`.
|
|
57907
57945
|
* - `linked-from-label`/`linkedFromLabel`: How a note the selected one links to is described, with `{note}`, the selected note's name.
|
|
57908
57946
|
* - `links-to-label`/`linksToLabel`: How a note that links to the selected one is described, with `{note}`.
|
|
@@ -57912,6 +57950,7 @@ export type CustomElementsSolidJs = {
|
|
|
57912
57950
|
* - `notes-label`/`notesLabel`: The list's name, read by screen readers, and the name of the button that opens it with `no-panel`.
|
|
57913
57951
|
* - `search-label`/`searchLabel`: The search field's name.
|
|
57914
57952
|
* - `selected-label`/`selectedLabel`: How the selected note is described in the list.
|
|
57953
|
+
* - `hiddenGroups`: The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute. (property only)
|
|
57915
57954
|
* - `links`: The links between notes, each from `source` to `target`. A property, never an attribute. (property only)
|
|
57916
57955
|
* - `nodes`: The notes. A property, never an attribute. (property only)
|
|
57917
57956
|
* - `ready`: Whether the graph has been drawn whole. For code that runs after `helix-graph-ready`. (property only) (readonly)
|
|
@@ -57942,6 +57981,7 @@ export type CustomElementsSolidJs = {
|
|
|
57942
57981
|
*
|
|
57943
57982
|
* - `helix-activate`: A note was selected, in the list or in the drawing. The detail's `value` is its `id`.
|
|
57944
57983
|
* - `helix-before-activate`: A note is about to be selected. Cancelable: cancel it to keep the selection in your own state.
|
|
57984
|
+
* - `helix-graph-filter`: A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself.
|
|
57945
57985
|
* - `helix-graph-layout`: A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`, and `z` where a renderer draws in three dimensions.
|
|
57946
57986
|
* - `helix-graph-pan`: A pan button or arrow key was pressed. `connectGraph` moves the drawing.
|
|
57947
57987
|
* - `helix-graph-part-change`: The notes, the links, the selection, the depth or the gestures changed. Used by `connectGraph`; pages do not need to listen for it.
|
|
@@ -58017,6 +58057,10 @@ export type CustomElementsSolidJs = {
|
|
|
58017
58057
|
* - `gesture-hint`: Words over the graph for a moment when it lets a gesture pass to the page, such as how to zoom it.
|
|
58018
58058
|
* - `gesture-status`: The line shown while a graph with `gestures="activate"` has the gestures.
|
|
58019
58059
|
* - `header`: The strip above the graph.
|
|
58060
|
+
* - `legend`: The groups over the drawing, with `legend`, each a button that shows or hides its notes.
|
|
58061
|
+
* - `legend-item`: One group in the legend, pressed while its notes are shown. Carries `data-tone` where every note in the group has the same tone, which colors the notes over the group's own color.
|
|
58062
|
+
* - `legend-item-hidden`: A group in the legend whose notes are hidden.
|
|
58063
|
+
* - `legend-swatch`: The mark in a group's color, before its name.
|
|
58020
58064
|
* - `list`: The list of notes, which draws only the rows in view.
|
|
58021
58065
|
* - `live`: What screen readers hear when a search changes how many notes there are.
|
|
58022
58066
|
* - `note`: One note in the list.
|
package/types/vue.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ import type {
|
|
|
188
188
|
HelixFacetEvent,
|
|
189
189
|
HelixActivateEvent,
|
|
190
190
|
HelixBeforeActivateEvent,
|
|
191
|
+
HelixGraphFilterEvent,
|
|
191
192
|
HelixGraphLayoutEvent,
|
|
192
193
|
HelixGraphPanEvent,
|
|
193
194
|
HelixGraphPartChangeEvent,
|
|
@@ -5703,6 +5704,9 @@ export type HelixGraphHelixActivateElementEvent =
|
|
|
5703
5704
|
/** `helix-before-activate` event type */
|
|
5704
5705
|
export type HelixGraphHelixBeforeActivateElementEvent =
|
|
5705
5706
|
HelixGraphElementEvent<HelixBeforeActivateEvent>;
|
|
5707
|
+
/** `helix-graph-filter` event type */
|
|
5708
|
+
export type HelixGraphHelixGraphFilterElementEvent =
|
|
5709
|
+
HelixGraphElementEvent<HelixGraphFilterEvent>;
|
|
5706
5710
|
/** `helix-graph-layout` event type */
|
|
5707
5711
|
export type HelixGraphHelixGraphLayoutElementEvent =
|
|
5708
5712
|
HelixGraphElementEvent<HelixGraphLayoutEvent>;
|
|
@@ -5922,6 +5926,13 @@ shows every note. The list holds what the drawing shows. */
|
|
|
5922
5926
|
/** The graph's name, read by screen readers, such as "Research notes".
|
|
5923
5927
|
Required. */
|
|
5924
5928
|
label?: (HelixGraph["label"]) | undefined;
|
|
5929
|
+
/** Names the groups over the drawing, each a button in its color that shows
|
|
5930
|
+
or hides its notes. Drawn where the notes have two groups or more. */
|
|
5931
|
+
legend?: (HelixGraph["legend"]) | undefined;
|
|
5932
|
+
/** The legend's name, read by screen readers. */
|
|
5933
|
+
"legend-label"?: (HelixGraph["legendLabel"]) | undefined;
|
|
5934
|
+
/** The legend's name, read by screen readers. */
|
|
5935
|
+
legendLabel?: (HelixGraph["legendLabel"]) | undefined;
|
|
5925
5936
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
5926
5937
|
"linked-both-label"?: (HelixGraph["linkedBothLabel"]) | undefined;
|
|
5927
5938
|
/** How a note linked both to and from the selected one is described, with `{note}`. */
|
|
@@ -5954,6 +5965,8 @@ such as at the top of a page, where the drawing takes the whole frame. */
|
|
|
5954
5965
|
"selected-label"?: (HelixGraph["selectedLabel"]) | undefined;
|
|
5955
5966
|
/** How the selected note is described in the list. */
|
|
5956
5967
|
selectedLabel?: (HelixGraph["selectedLabel"]) | undefined;
|
|
5968
|
+
/** The groups turned off in the legend, by name, whose notes neither the drawing nor the list shows. A property, never an attribute. */
|
|
5969
|
+
hiddenGroups?: (HelixGraph["hiddenGroups"]) | undefined;
|
|
5957
5970
|
/** The links between notes, each from `source` to `target`. A property, never an attribute. */
|
|
5958
5971
|
links?: (HelixGraph["links"]) | undefined;
|
|
5959
5972
|
/** The notes. A property, never an attribute. */
|
|
@@ -5965,6 +5978,8 @@ export type HelixGraphVueEvents = {
|
|
|
5965
5978
|
"helix-activate": HelixGraphHelixActivateElementEvent;
|
|
5966
5979
|
/** A note is about to be selected. Cancelable: cancel it to keep the selection in your own state. */
|
|
5967
5980
|
"helix-before-activate": HelixGraphHelixBeforeActivateElementEvent;
|
|
5981
|
+
/** A group in the legend was pressed, to show or hide its notes. The detail's `hidden` is every group that would be hidden. Cancelable: cancel it to keep the groups as they were, or to set `hiddenGroups` yourself. */
|
|
5982
|
+
"helix-graph-filter": HelixGraphHelixGraphFilterElementEvent;
|
|
5968
5983
|
/** A layout settled, with where it put each note, sent by `laidOut()`. Keep the positions and pass them back as each note's `x` and `y`, and `z` where a renderer draws in three dimensions. */
|
|
5969
5984
|
"helix-graph-layout": HelixGraphHelixGraphLayoutElementEvent;
|
|
5970
5985
|
/** A pan button or arrow key was pressed. `connectGraph` moves the drawing. */
|