@fusion.dev/helix-headless 0.191.0 → 0.193.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/api.json +1 -1
- package/custom-elements.json +47 -36
- package/dist/spatial-heatmap/projection.d.ts +28 -18
- package/dist/spatial-heatmap/projection.js +79 -51
- package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +26 -17
- package/dist/spatial-heatmap/root/spatial-heatmap-root.js +32 -21
- package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +1 -1
- package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +1 -1
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +24 -14
- package/types/vue.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-headless",
|
|
3
3
|
"description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.193.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@fusion.dev/helix-core": "0.
|
|
57
|
-
"@fusion.dev/helix-icons": "0.
|
|
56
|
+
"@fusion.dev/helix-core": "0.193.0",
|
|
57
|
+
"@fusion.dev/helix-icons": "0.193.0",
|
|
58
58
|
"tslib": "^2.8.1",
|
|
59
59
|
"uqr": "^0.1.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@fusion.dev/helix-cem": "0.
|
|
63
|
-
"@fusion.dev/helix-testing": "0.
|
|
62
|
+
"@fusion.dev/helix-cem": "0.193.0",
|
|
63
|
+
"@fusion.dev/helix-testing": "0.193.0",
|
|
64
64
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
65
65
|
"@happy-dom/global-registrator": "^20.14.5",
|
|
66
66
|
"@lit-labs/ssr": "^4.1.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -60692,7 +60692,7 @@ export type CustomElements = {
|
|
|
60692
60692
|
* and its own entry point carries the drawing, so a page using only `Heatmap`
|
|
60693
60693
|
* loads none of it.
|
|
60694
60694
|
*
|
|
60695
|
-
* **It was `helix-isometric-heatmap` until 0.
|
|
60695
|
+
* **It was `helix-isometric-heatmap` until 0.190.0**, and
|
|
60696
60696
|
* `helix-headless-isometric-heatmap` in the headless tier. The old tags are
|
|
60697
60697
|
* gone, and so are the `--isometric-heatmap-*` hooks, which are
|
|
60698
60698
|
* `--spatial-heatmap-*`, and the words key, which is `helix-spatial-heatmap`.
|
|
@@ -60716,7 +60716,12 @@ export type CustomElements = {
|
|
|
60716
60716
|
* too narrow for every column at `min-cell` draws the newest that fit.
|
|
60717
60717
|
*
|
|
60718
60718
|
* **The drawing is SVG and holds still.** It scales with its box through its
|
|
60719
|
-
* `viewBox`, needs no WebGL, and has no motion to pause.
|
|
60719
|
+
* `viewBox`, needs no WebGL, and has no motion to pause. Shift with an arrow
|
|
60720
|
+
* turns it a step, or tilts it, from the isometric view it starts at.
|
|
60721
|
+
* **Under `selection-mode`, the prisms are painted back to front for the
|
|
60722
|
+
* view, and the grid's rows and cells stand beside them in the table's
|
|
60723
|
+
* order**, holding no drawing of their own, so a turned view paints
|
|
60724
|
+
* correctly and a screen reader still reads the grid in order.
|
|
60720
60725
|
*
|
|
60721
60726
|
* **A renderer can draw it in 3D instead.** Put a box for it in the
|
|
60722
60727
|
* `renderer` slot, and `connectSpatialHeatmap` from `@fusion.dev/helix-plot`
|
|
@@ -60739,7 +60744,7 @@ export type CustomElements = {
|
|
|
60739
60744
|
* | Page Down, Page Up | Moves a month on or back where the rows carry dates, and four columns otherwise. |
|
|
60740
60745
|
* | Enter, Space | Presses the cell, which sends `helix-reading-press`, and selects it or lets it go under `selection-mode`. |
|
|
60741
60746
|
* | Shift with an arrow, Home, End, Page Up or Page Down | Selects every cell from the last one pressed to where the key went, under `selection-mode="multiple"`. |
|
|
60742
|
-
* | Shift with an arrow | Turns a renderer's
|
|
60747
|
+
* | Shift with an arrow | Turns the view a step, or a renderer's where one is connected, except under `selection-mode="multiple"`. |
|
|
60743
60748
|
* | Escape | Puts the cell's tooltip away. |
|
|
60744
60749
|
*
|
|
60745
60750
|
* ## Attributes & Properties
|
|
@@ -61041,11 +61046,11 @@ export type CustomElements = {
|
|
|
61041
61046
|
* - `base-left`: The slab's side toward the viewer at the lower left, under the strip's last row.
|
|
61042
61047
|
* - `base-right`: The slab's side toward the viewer at the lower right, under the newest column.
|
|
61043
61048
|
* - `base-top`: The slab's top, which is the floor the prisms stand on.
|
|
61044
|
-
* - `cell`: One reading: a group holding
|
|
61049
|
+
* - `cell`: One reading drawn as a prism: a group holding the faces the view shows. Under `selection-mode` it is the picture of a grid cell, hidden from screen readers.
|
|
61045
61050
|
* - `drawing`: The SVG every prism is drawn in. It is mirrored on a right-to-left page.
|
|
61046
|
-
* - `left-face`: The
|
|
61047
|
-
* - `right-face`: The
|
|
61048
|
-
* - `row`: A column of
|
|
61051
|
+
* - `left-face`: The side of a prism facing the light more: from the isometric view, the side toward the next row, drawn at its lower left. Left out where the view shows no side.
|
|
61052
|
+
* - `right-face`: The side of a prism facing the light less: from the isometric view, the side toward the next column, drawn at its lower right. Left out where the view shows one side or none.
|
|
61053
|
+
* - `row`: A column of the strip, which a grid reads as a row, under `selection-mode`. It holds the column's grid cells, which draw nothing: the prisms are painted apart, in the order the view needs.
|
|
61049
61054
|
* - `strip`: The box the drawing fills, which takes focus to be read by key. It is named by the host's `aria-labelledby` or `aria-label`, then by `label`, then by the caption of the table.
|
|
61050
61055
|
* - `top-face`: The top of a prism, which carries the reading's tone.
|
|
61051
61056
|
* - `cell-active`: The cell the pointer or the keys rest on. Set alongside `cell`.
|
|
@@ -91665,7 +91670,7 @@ export type CustomElementsSolidJs = {
|
|
|
91665
91670
|
* and its own entry point carries the drawing, so a page using only `Heatmap`
|
|
91666
91671
|
* loads none of it.
|
|
91667
91672
|
*
|
|
91668
|
-
* **It was `helix-isometric-heatmap` until 0.
|
|
91673
|
+
* **It was `helix-isometric-heatmap` until 0.190.0**, and
|
|
91669
91674
|
* `helix-headless-isometric-heatmap` in the headless tier. The old tags are
|
|
91670
91675
|
* gone, and so are the `--isometric-heatmap-*` hooks, which are
|
|
91671
91676
|
* `--spatial-heatmap-*`, and the words key, which is `helix-spatial-heatmap`.
|
|
@@ -91689,7 +91694,12 @@ export type CustomElementsSolidJs = {
|
|
|
91689
91694
|
* too narrow for every column at `min-cell` draws the newest that fit.
|
|
91690
91695
|
*
|
|
91691
91696
|
* **The drawing is SVG and holds still.** It scales with its box through its
|
|
91692
|
-
* `viewBox`, needs no WebGL, and has no motion to pause.
|
|
91697
|
+
* `viewBox`, needs no WebGL, and has no motion to pause. Shift with an arrow
|
|
91698
|
+
* turns it a step, or tilts it, from the isometric view it starts at.
|
|
91699
|
+
* **Under `selection-mode`, the prisms are painted back to front for the
|
|
91700
|
+
* view, and the grid's rows and cells stand beside them in the table's
|
|
91701
|
+
* order**, holding no drawing of their own, so a turned view paints
|
|
91702
|
+
* correctly and a screen reader still reads the grid in order.
|
|
91693
91703
|
*
|
|
91694
91704
|
* **A renderer can draw it in 3D instead.** Put a box for it in the
|
|
91695
91705
|
* `renderer` slot, and `connectSpatialHeatmap` from `@fusion.dev/helix-plot`
|
|
@@ -91712,7 +91722,7 @@ export type CustomElementsSolidJs = {
|
|
|
91712
91722
|
* | Page Down, Page Up | Moves a month on or back where the rows carry dates, and four columns otherwise. |
|
|
91713
91723
|
* | Enter, Space | Presses the cell, which sends `helix-reading-press`, and selects it or lets it go under `selection-mode`. |
|
|
91714
91724
|
* | Shift with an arrow, Home, End, Page Up or Page Down | Selects every cell from the last one pressed to where the key went, under `selection-mode="multiple"`. |
|
|
91715
|
-
* | Shift with an arrow | Turns a renderer's
|
|
91725
|
+
* | Shift with an arrow | Turns the view a step, or a renderer's where one is connected, except under `selection-mode="multiple"`. |
|
|
91716
91726
|
* | Escape | Puts the cell's tooltip away. |
|
|
91717
91727
|
*
|
|
91718
91728
|
* ## Attributes & Properties
|
|
@@ -92014,11 +92024,11 @@ export type CustomElementsSolidJs = {
|
|
|
92014
92024
|
* - `base-left`: The slab's side toward the viewer at the lower left, under the strip's last row.
|
|
92015
92025
|
* - `base-right`: The slab's side toward the viewer at the lower right, under the newest column.
|
|
92016
92026
|
* - `base-top`: The slab's top, which is the floor the prisms stand on.
|
|
92017
|
-
* - `cell`: One reading: a group holding
|
|
92027
|
+
* - `cell`: One reading drawn as a prism: a group holding the faces the view shows. Under `selection-mode` it is the picture of a grid cell, hidden from screen readers.
|
|
92018
92028
|
* - `drawing`: The SVG every prism is drawn in. It is mirrored on a right-to-left page.
|
|
92019
|
-
* - `left-face`: The
|
|
92020
|
-
* - `right-face`: The
|
|
92021
|
-
* - `row`: A column of
|
|
92029
|
+
* - `left-face`: The side of a prism facing the light more: from the isometric view, the side toward the next row, drawn at its lower left. Left out where the view shows no side.
|
|
92030
|
+
* - `right-face`: The side of a prism facing the light less: from the isometric view, the side toward the next column, drawn at its lower right. Left out where the view shows one side or none.
|
|
92031
|
+
* - `row`: A column of the strip, which a grid reads as a row, under `selection-mode`. It holds the column's grid cells, which draw nothing: the prisms are painted apart, in the order the view needs.
|
|
92022
92032
|
* - `strip`: The box the drawing fills, which takes focus to be read by key. It is named by the host's `aria-labelledby` or `aria-label`, then by `label`, then by the caption of the table.
|
|
92023
92033
|
* - `top-face`: The top of a prism, which carries the reading's tone.
|
|
92024
92034
|
* - `cell-active`: The cell the pointer or the keys rest on. Set alongside `cell`.
|
package/types/vue.d.ts
CHANGED
|
@@ -20517,7 +20517,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
20517
20517
|
HelixHeadlessSparklineVueProps,
|
|
20518
20518
|
HelixHeadlessSparklineVueEvents
|
|
20519
20519
|
>;
|
|
20520
|
-
/** The same strip as 'Heatmap', seen from above at an angle. Each reading is a prism: its top face takes the cell's tone, and its height repeats the value, measured from zero against the highest reading in the table. 'rows="7"' makes a contribution graph, with each week a column running down to the right. **The height says what the tone says.** Read the exact value from the tooltip or the table, and compare readings by tone. A tall reading at the front can hide a short one behind it, so the newest column stands at the front, where nothing covers it. **Everything else is 'Heatmap'.** The table named by 'for', the tones and thresholds, the keys, the tooltip, the overview, 'selection-mode', and the events all work as they do there. The class extends the headless heatmap, and its own entry point carries the drawing, so a page using only 'Heatmap' loads none of it. **It was 'helix-isometric-heatmap' until 0.
|
|
20520
|
+
/** The same strip as 'Heatmap', seen from above at an angle. Each reading is a prism: its top face takes the cell's tone, and its height repeats the value, measured from zero against the highest reading in the table. 'rows="7"' makes a contribution graph, with each week a column running down to the right. **The height says what the tone says.** Read the exact value from the tooltip or the table, and compare readings by tone. A tall reading at the front can hide a short one behind it, so the newest column stands at the front, where nothing covers it. **Everything else is 'Heatmap'.** The table named by 'for', the tones and thresholds, the keys, the tooltip, the overview, 'selection-mode', and the events all work as they do there. The class extends the headless heatmap, and its own entry point carries the drawing, so a page using only 'Heatmap' loads none of it. **It was 'helix-isometric-heatmap' until 0.190.0**, and 'helix-headless-isometric-heatmap' in the headless tier. The old tags are gone, and so are the '--isometric-heatmap-*' hooks, which are '--spatial-heatmap-*', and the words key, which is 'helix-spatial-heatmap'. The two shade hooks now take a step of lightness, such as '0.07', where they took a percentage mixed toward black. Every attribute, part, and event kept its name. **'flat' lays every prism down** at no height, which leaves the tones on a plane at the same angle. **The prisms stand on a slab**, the 'base', which reaches a little past the grid, so the relief reads as one object. The 'start' and 'end' slots name the two ends of the front edge, which is the strip's first and last column: the component writes where those corners are on the 'footer', and a stylesheet stands each label at its corner. A renderer tells the chart where it draws those corners, so the labels stand at them there too, and follow them as the view turns. **'gap' and 'min-cell' set the smallest cell.** The drawing scales as a whole, so a wider box draws larger cells and the gap grows with them. A box too narrow for every column at 'min-cell' draws the newest that fit. **The drawing is SVG and holds still.** It scales with its box through its 'viewBox', needs no WebGL, and has no motion to pause. Shift with an arrow turns it a step, or tilts it, from the isometric view it starts at. **Under 'selection-mode', the prisms are painted back to front for the view, and the grid's rows and cells stand beside them in the table's order**, holding no drawing of their own, so a turned view paints correctly and a screen reader still reads the grid in order. **A renderer can draw it in 3D instead.** Put a box for it in the 'renderer' slot, and 'connectSpatialHeatmap' from '@fusion.dev/helix-plot' draws the prisms in it with three.js, lit, in the same tones, in a view that drags round and zooms. The chart publishes its readings in 'field', and its own drawing stays under the renderer's, unseen, where a screen reader and the keys still reach it. Shift with an arrow turns the view, except under 'selection-mode="multiple"', where it selects. **Keyboard.** The keys are 'Heatmap''s. Down moves to the next reading in a column, drawn down to the left, and Right to the same reading in the next column, drawn down to the right. | Key | What it does | |---|---| | Tab | Moves focus to the strip and shows the first cell. | | Down, Up | Moves to the next or the previous cell. | | Right, Left | Moves a column on or back, a week with 'rows="7"'. On a right-to-left page, Left moves on. | | Home, End | Moves to the first or the last cell. | | Page Down, Page Up | Moves a month on or back where the rows carry dates, and four columns otherwise. | | Enter, Space | Presses the cell, which sends 'helix-reading-press', and selects it or lets it go under 'selection-mode'. | | Shift with an arrow, Home, End, Page Up or Page Down | Selects every cell from the last one pressed to where the key went, under 'selection-mode="multiple"'. | | Shift with an arrow | Turns the view a step, or a renderer's where one is connected, except under 'selection-mode="multiple"'. | | Escape | Puts the cell's tooltip away. | */
|
|
20521
20521
|
"helix-headless-spatial-heatmap": DefineCustomElement<
|
|
20522
20522
|
HelixHeadlessSpatialHeatmap,
|
|
20523
20523
|
HelixHeadlessSpatialHeatmapVueProps,
|