@fusion.dev/helix-headless 0.246.0 → 0.247.1
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 +1 -1
- package/dist/area-chart/root/area-chart-root.d.ts +18 -3
- package/dist/area-chart/root/area-chart-root.js +29 -11
- package/dist/bar-chart/root/bar-chart-root.d.ts +12 -2
- package/dist/bar-chart/root/bar-chart-root.js +92 -32
- package/dist/code-editor/root/code-editor-root.d.ts +15 -0
- package/dist/code-editor/root/code-editor-root.js +8 -2
- package/dist/data-table/changes.d.ts +39 -0
- package/dist/data-table/changes.js +60 -0
- package/dist/data-table/root/data-table-root.d.ts +33 -0
- package/dist/data-table/root/data-table-root.js +52 -2
- package/dist/drawer/root/drawer-root.d.ts +54 -14
- package/dist/drawer/root/drawer-root.js +102 -29
- package/dist/editor/root/editor-root.d.ts +5 -0
- package/dist/editor/root/editor-root.js +5 -5
- package/dist/filter-input/menu/filter-menu.d.ts +1 -0
- package/dist/filter-input/menu/filter-menu.js +1 -1
- package/dist/find/root/find-root.d.ts +1 -0
- package/dist/find/root/find-root.js +1 -1
- package/dist/line-chart/root/line-chart-root.d.ts +26 -2
- package/dist/line-chart/root/line-chart-root.js +76 -24
- package/dist/menu/root/menu-root.d.ts +23 -1
- package/dist/menu/root/menu-root.js +60 -1
- package/dist/navigation/root/navigation-root.d.ts +1 -0
- package/dist/navigation/root/navigation-root.js +1 -1
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +3 -0
- package/dist/scatter-chart/root/scatter-chart-root.js +28 -8
- package/dist/skeleton/root/skeleton-root.d.ts +26 -2
- package/dist/skeleton/root/skeleton-root.js +19 -4
- package/dist/tabs/root/tabs-root.d.ts +5 -1
- package/dist/tabs/root/tabs-root.js +8 -1
- package/dist/terminal/root/terminal-root.d.ts +2 -0
- package/dist/terminal/root/terminal-root.js +2 -2
- package/dist/toast/item/toast-item.d.ts +16 -11
- package/dist/toast/item/toast-item.js +13 -28
- package/dist/toast/root/toast-root.d.ts +6 -3
- package/dist/toast/root/toast-root.js +2 -2
- package/dist/toggle/group/toggle-group.d.ts +5 -1
- package/dist/toggle/group/toggle-group.js +8 -2
- package/dist/toolbar/root/toolbar-root.d.ts +9 -1
- package/dist/toolbar/root/toolbar-root.js +9 -1
- package/dist/video/root/video-root.d.ts +2 -0
- package/dist/video/root/video-root.js +2 -2
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +1 -0
- package/dist/video-playlist/menu/video-playlist-menu.js +1 -1
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +153 -34
- package/types/vue.d.ts +83 -22
|
@@ -693,7 +693,7 @@ let HelixHeadlessEditor = class HelixHeadlessEditor extends HelixElement {
|
|
|
693
693
|
data-fold="block"
|
|
694
694
|
?hidden=${this.allFolded(['block'])}
|
|
695
695
|
exportparts="back: block-menu-back, back-mark: block-menu-back-mark, empty: block-menu-empty,
|
|
696
|
-
header: block-menu-header, live: block-menu-live, loading: block-menu-loading,
|
|
696
|
+
header: block-menu-header, highlight: block-menu-highlight, live: block-menu-live, loading: block-menu-loading,
|
|
697
697
|
search-field: block-menu-search-field, surface: block-menu-surface,
|
|
698
698
|
title: block-menu-title"
|
|
699
699
|
label=${this.blockLabel}
|
|
@@ -774,7 +774,7 @@ let HelixHeadlessEditor = class HelixHeadlessEditor extends HelixElement {
|
|
|
774
774
|
const find = this.tag('find');
|
|
775
775
|
return html `<${find}
|
|
776
776
|
part="find"
|
|
777
|
-
exportparts="actions: find-actions, bar: find-bar, close: find-close, close-button: find-close-button, close-live: find-close-live, close-spinner: find-close-spinner, close-text: find-close-text, controls: find-controls, controls-toolbar: find-controls-toolbar, count: find-count, field: find-field, live: find-live, match-case: find-match-case, match-case-button: find-match-case-button, match-case-live: find-match-case-live, match-case-pressed: find-match-case-pressed, match-case-spinner: find-match-case-spinner, match-case-text: find-match-case-text, next: find-next, next-button: find-next-button, next-live: find-next-live, next-spinner: find-next-spinner, next-text: find-next-text, previous: find-previous, previous-button: find-previous-button, previous-live: find-previous-live, previous-spinner: find-previous-spinner, previous-text: find-previous-text, regex: find-regex, regex-button: find-regex-button, regex-live: find-regex-live, regex-pressed: find-regex-pressed, regex-spinner: find-regex-spinner, regex-text: find-regex-text, replace: find-replace, replace-all: find-replace-all, replace-all-button: find-replace-all-button, replace-all-live: find-replace-all-live, replace-all-spinner: find-replace-all-spinner, replace-all-text: find-replace-all-text, replace-button: find-replace-button, replace-field: find-replace-field, replace-live: find-replace-live, replace-spinner: find-replace-spinner, replace-text: find-replace-text, replace-toggle: find-replace-toggle, replace-toggle-button: find-replace-toggle-button, replace-toggle-live: find-replace-toggle-live, replace-toggle-mark: find-replace-toggle-mark, replace-toggle-spinner: find-replace-toggle-spinner, replace-toggle-text: find-replace-toggle-text, whole-word: find-whole-word, whole-word-button: find-whole-word-button, whole-word-live: find-whole-word-live, whole-word-pressed: find-whole-word-pressed, whole-word-spinner: find-whole-word-spinner, whole-word-text: find-whole-word-text"
|
|
777
|
+
exportparts="actions: find-actions, bar: find-bar, close: find-close, close-button: find-close-button, close-live: find-close-live, close-spinner: find-close-spinner, close-text: find-close-text, controls: find-controls, controls-focus: find-controls-focus, controls-toolbar: find-controls-toolbar, count: find-count, field: find-field, live: find-live, match-case: find-match-case, match-case-button: find-match-case-button, match-case-live: find-match-case-live, match-case-pressed: find-match-case-pressed, match-case-spinner: find-match-case-spinner, match-case-text: find-match-case-text, next: find-next, next-button: find-next-button, next-live: find-next-live, next-spinner: find-next-spinner, next-text: find-next-text, previous: find-previous, previous-button: find-previous-button, previous-live: find-previous-live, previous-spinner: find-previous-spinner, previous-text: find-previous-text, regex: find-regex, regex-button: find-regex-button, regex-live: find-regex-live, regex-pressed: find-regex-pressed, regex-spinner: find-regex-spinner, regex-text: find-regex-text, replace: find-replace, replace-all: find-replace-all, replace-all-button: find-replace-all-button, replace-all-live: find-replace-all-live, replace-all-spinner: find-replace-all-spinner, replace-all-text: find-replace-all-text, replace-button: find-replace-button, replace-field: find-replace-field, replace-live: find-replace-live, replace-spinner: find-replace-spinner, replace-text: find-replace-text, replace-toggle: find-replace-toggle, replace-toggle-button: find-replace-toggle-button, replace-toggle-live: find-replace-toggle-live, replace-toggle-mark: find-replace-toggle-mark, replace-toggle-spinner: find-replace-toggle-spinner, replace-toggle-text: find-replace-toggle-text, whole-word: find-whole-word, whole-word-button: find-whole-word-button, whole-word-live: find-whole-word-live, whole-word-pressed: find-whole-word-pressed, whole-word-spinner: find-whole-word-spinner, whole-word-text: find-whole-word-text"
|
|
778
778
|
label=${this.findLabel}
|
|
779
779
|
?readonly=${this.readOnly}
|
|
780
780
|
shortcut=""
|
|
@@ -794,7 +794,7 @@ let HelixHeadlessEditor = class HelixHeadlessEditor extends HelixElement {
|
|
|
794
794
|
const groups = this.readOnly
|
|
795
795
|
? []
|
|
796
796
|
: BAR_GROUPS.map((tools, at) => ({ template: drawn[at], tools: this.drawnOf(tools) })).filter((group) => group.template !== nothing);
|
|
797
|
-
return html `<${toolbar} part="controls" exportparts="toolbar: controls-toolbar" label=${this.controlsLabel} @keydown=${this.handleToolbarKeys}>
|
|
797
|
+
return html `<${toolbar} part="controls" exportparts="focus: controls-focus, toolbar: controls-toolbar" label=${this.controlsLabel} @keydown=${this.handleToolbarKeys}>
|
|
798
798
|
${groups.map((group, at) => at === 0 ? group.template : html `${this.renderDivider(group.tools)}${group.template}`)}
|
|
799
799
|
${this.renderOverflow()}
|
|
800
800
|
<slot name="actions" part="actions" ?hidden=${!this.hasActions} @slotchange=${this.handleActions}></slot>
|
|
@@ -813,7 +813,7 @@ let HelixHeadlessEditor = class HelixHeadlessEditor extends HelixElement {
|
|
|
813
813
|
return html `<${menu}
|
|
814
814
|
part="overflow"
|
|
815
815
|
exportparts="back: overflow-back, back-mark: overflow-back-mark, empty: overflow-empty,
|
|
816
|
-
header: overflow-header, live: overflow-live, loading: overflow-loading,
|
|
816
|
+
header: overflow-header, highlight: overflow-highlight, live: overflow-live, loading: overflow-loading,
|
|
817
817
|
search-field: overflow-search-field, surface: overflow-surface,
|
|
818
818
|
title: overflow-title"
|
|
819
819
|
label=${this.moreLabel}
|
|
@@ -908,7 +908,7 @@ let HelixHeadlessEditor = class HelixHeadlessEditor extends HelixElement {
|
|
|
908
908
|
@input=${this.handleLinkInput}
|
|
909
909
|
@keydown=${this.handleLinkKeys}
|
|
910
910
|
/>
|
|
911
|
-
<${toolbar} part="link-controls" exportparts="toolbar: link-controls-toolbar" label=${this.linkControlsLabel}>
|
|
911
|
+
<${toolbar} part="link-controls" exportparts="focus: link-controls-focus, toolbar: link-controls-toolbar" label=${this.linkControlsLabel}>
|
|
912
912
|
<${button}
|
|
913
913
|
part="link-apply"
|
|
914
914
|
exportparts="button: link-apply-button, live: link-apply-live, spinner: link-apply-spinner, text: link-apply-text"
|
|
@@ -86,6 +86,7 @@ import '../../menu/index.js';
|
|
|
86
86
|
* @csspart menu-back-mark - The icon on the back button.
|
|
87
87
|
* @csspart menu-empty - Shown when there are no fields to offer.
|
|
88
88
|
* @csspart menu-header - The bar above a field's page, with the back button and the field's name.
|
|
89
|
+
* @csspart menu-highlight - Forwarded from the menu: the wash on the row with focus, which glides from row to row.
|
|
89
90
|
* @csspart menu-live - The inner menu's `live` part: the region that screen readers announce the empty and loading messages from.
|
|
90
91
|
* @csspart menu-loading - Shown while the fields are loading.
|
|
91
92
|
* @csspart menu-search-field - The inner menu's filter field, drawn with `filterable`.
|
|
@@ -127,7 +127,7 @@ let HelixHeadlessFilterMenu = class HelixHeadlessFilterMenu extends HelixElement
|
|
|
127
127
|
const item = this.tag('menu-item');
|
|
128
128
|
return html `<${menu}
|
|
129
129
|
part="menu"
|
|
130
|
-
exportparts="back: menu-back, back-mark: menu-back-mark, empty: menu-empty, header: menu-header,
|
|
130
|
+
exportparts="back: menu-back, back-mark: menu-back-mark, empty: menu-empty, header: menu-header, highlight: menu-highlight,
|
|
131
131
|
live: menu-live, loading: menu-loading, search-field: menu-search-field, surface: menu-surface, title: menu-title"
|
|
132
132
|
label=${this.label || this.fallbackLabel}
|
|
133
133
|
@helix-before-select=${this.handleSelect}
|
|
@@ -76,6 +76,7 @@ declare const HelixHeadlessFind_base: (new (...args: any[]) => import("@fusion.d
|
|
|
76
76
|
* @csspart close-spinner - The ring the close button turns while it is pending.
|
|
77
77
|
* @csspart close-text - The box the close button's icon sits in.
|
|
78
78
|
* @csspart controls - The toolbar: the options, your actions, and the buttons that move between matches and close the bar.
|
|
79
|
+
* @csspart controls-focus - The focus ring that travels along the buttons of the toolbar as the arrow keys move focus.
|
|
79
80
|
* @csspart controls-toolbar - The box inside the toolbar that lays its buttons out.
|
|
80
81
|
* @csspart count - Which match is current and how many there are, such as "3 of 12 matches".
|
|
81
82
|
* @csspart field - The search field.
|
|
@@ -386,7 +386,7 @@ let HelixHeadlessFind = class HelixHeadlessFind extends MixinControllerOpen(Heli
|
|
|
386
386
|
const toolbar = this.tag('toolbar');
|
|
387
387
|
const button = this.tag('icon-button');
|
|
388
388
|
const searchable = this.readable && (this.result?.count ?? 0) > 0;
|
|
389
|
-
return html `<${toolbar} part="controls" exportparts="toolbar: controls-toolbar" label=${this.controlsLabel}>
|
|
389
|
+
return html `<${toolbar} part="controls" exportparts="focus: controls-focus, toolbar: controls-toolbar" label=${this.controlsLabel}>
|
|
390
390
|
${this.renderOptionButtons()}
|
|
391
391
|
<slot name="actions" part="actions"></slot>
|
|
392
392
|
<${button}
|
|
@@ -86,23 +86,28 @@ declare const HelixHeadlessLineChart_base: typeof HelixElement & (new (...args:
|
|
|
86
86
|
* @event {HelixReadingPressEvent} helix-reading-press - A reading was clicked, tapped, or pressed with Enter or Space, with the same detail as `helix-reading-change`.
|
|
87
87
|
*
|
|
88
88
|
* @csspart area - The wash under one line, where `area` is set.
|
|
89
|
+
* @csspart area-hidden - The `area` of a series a legend hid, kept where it was last drawn and hidden, so a stylesheet can fade it out. Set alongside `area`.
|
|
89
90
|
* @csspart axis - The numbers of the scale beside the plot, unless `value-axis` is `none`.
|
|
90
|
-
* @csspart band - The band around the reading under the pointer.
|
|
91
|
+
* @csspart band - The band around the reading under the pointer, moved to its slot with `translate`, so a stylesheet can glide it from one to the next.
|
|
91
92
|
* @csspart baseline - The rule at zero, where zero is inside the range.
|
|
92
93
|
* @csspart empty - The words in place of the drawing when the table has no readings: the `empty` slot, falling back to `empty-text`. Not drawn while the table cannot be read yet, on the server and during hydration.
|
|
93
94
|
* @csspart error - The words in place of the drawing while `error-text` is set and there are no readings, followed by the `error` slot. Announced as it appears.
|
|
94
95
|
* @csspart gridline - One rule across the plot, unless `gridlines` is `none`.
|
|
95
|
-
* @csspart
|
|
96
|
+
* @csspart gridline-leaving - A rule at a level the scale no longer has, kept hidden at its place on the new scale, so a stylesheet can fade it out as it moves. Set alongside `gridline`.
|
|
97
|
+
* @csspart guide - A rule down the reading a pointer is resting on, moved to it with `translate`, so a stylesheet can glide it from one to the next.
|
|
96
98
|
* @csspart label - One reading's name, placed along the row by `--chart-label-start` and `--chart-label-size` with its text centered. Only the names that fit are drawn, the first and the last always.
|
|
97
99
|
* @csspart labels - The row of reading names, which the names share: lay it out as one grid cell they all stand in.
|
|
98
100
|
* @csspart line - The line for one series.
|
|
99
101
|
* @csspart line-dashed - A `line` whose series `dashed` names. Set alongside `line`.
|
|
102
|
+
* @csspart line-hidden - The `line` of a series a legend hid, kept where it was last drawn and hidden, so a stylesheet can fade it out. Set alongside `line`.
|
|
100
103
|
* @csspart live - The readout: a polite live region that says the reading the keys moved to. Hide it visually.
|
|
101
104
|
* @csspart loading - The words in place of the drawing while `loading` is set and there are no readings: the `loading` slot, falling back to `loading-text`.
|
|
102
105
|
* @csspart mark - The invisible point the tooltip is anchored to.
|
|
103
106
|
* @csspart marker - The marks on one series' readings under `markers`, as one path with a stroke of no length at each reading: give it a round `stroke-linecap`, a `stroke-width` the size of a mark and `vector-effect: non-scaling-stroke`. Carries its series color as `--chart-series`.
|
|
107
|
+
* @csspart marker-hidden - The `marker` paths of a series a legend hid, kept where they were last drawn and hidden. Set alongside `marker`.
|
|
104
108
|
* @csspart marker-lone - The `marker` path of one series' readings with a blank on either side, which no line reaches and which are marked without `markers`. Set alongside `marker`.
|
|
105
109
|
* @csspart marker-ring - The same marks again under each series' `marker` paths, to stroke a little wider in the page's color, so a mark reads over the line it sits on.
|
|
110
|
+
* @csspart marker-ring-hidden - The `marker-ring` of a series a legend hid. Set alongside `marker-ring`.
|
|
106
111
|
* @csspart plot - The drawing, which takes focus to be read by key. With nothing to draw, a group named as the chart is, holding the `empty` or `loading` part.
|
|
107
112
|
* @csspart sonify - The button that plays the chart as sound, under `sonify`.
|
|
108
113
|
* @csspart summary - The chart's name and each series' latest reading, written as a sentence for screen readers. Hide it visually.
|
|
@@ -110,7 +115,9 @@ declare const HelixHeadlessLineChart_base: typeof HelixElement & (new (...args:
|
|
|
110
115
|
* @csspart table - The readings as a table, for a screen reader, rendered only where they were drawn from `data`, a page of them at a time past a few hundred. Hide it visually.
|
|
111
116
|
* @csspart table-pages - Which readings a page of the `table` holds, and the buttons that show the previous and the next page, rendered only while it holds a page. Hide it visually.
|
|
112
117
|
* @csspart terminus - The mark on one series' last reading. It carries `data-jumped` for the drawing where its line took a new shape at once, with a reading more or fewer, so a stylesheet moving the mark can move it at once too.
|
|
118
|
+
* @csspart terminus-hidden - The `terminus` of a series a legend hid, kept where it was last drawn and `hidden`. Set alongside `terminus`.
|
|
113
119
|
* @csspart tick - One number on the axis, placed with `inset-block-start` at its level.
|
|
120
|
+
* @csspart tick-leaving - A number the scale no longer has, kept `hidden` at its place on the new scale, held inside the plot, so a stylesheet can fade it out as it moves. Set alongside `tick`.
|
|
114
121
|
* @csspart tooltip-anchor - The `Tooltip` element itself.
|
|
115
122
|
* @csspart tooltip-arrow - The bubble's point, forwarded from `Tooltip`.
|
|
116
123
|
* @csspart tooltip-arrow-bottom - The point while the bubble is below the reading, so on its top edge, beside `tooltip-arrow`.
|
|
@@ -325,6 +332,22 @@ export declare class HelixHeadlessLineChart extends HelixHeadlessLineChart_base
|
|
|
325
332
|
* near the top of the box.
|
|
326
333
|
*/
|
|
327
334
|
zero: boolean;
|
|
335
|
+
/** The scale drawn before this one, whose levels the axis and the rules leave from. */
|
|
336
|
+
private readonly scaleBefore;
|
|
337
|
+
/** The scale before the one this render draws, from `scaleBefore`. */
|
|
338
|
+
private domainBefore;
|
|
339
|
+
/**
|
|
340
|
+
* The scales each series was last drawn with while it was shown, by its
|
|
341
|
+
* key, so a series a legend hides stays where it was as it fades out.
|
|
342
|
+
*/
|
|
343
|
+
private readonly shownWith;
|
|
344
|
+
/**
|
|
345
|
+
* The scales a series is drawn with: this render's while it is shown, and
|
|
346
|
+
* the last it was shown with once a legend hides it, so it fades out where
|
|
347
|
+
* it stood while the others move to the new scale. Nothing for a series
|
|
348
|
+
* hidden since the chart first drew it, which has nowhere to fade from.
|
|
349
|
+
*/
|
|
350
|
+
private scalesFor;
|
|
328
351
|
/**
|
|
329
352
|
* How many readings each series' line was last drawn with, so a terminus
|
|
330
353
|
* can tell a line that moves to its new shape from one that jumps to it.
|
|
@@ -405,6 +428,7 @@ export declare class HelixHeadlessLineChart extends HelixHeadlessLineChart_base
|
|
|
405
428
|
* differently without reimplementing the plot.
|
|
406
429
|
*/
|
|
407
430
|
protected renderTermini(ends: Array<{
|
|
431
|
+
hidden?: boolean;
|
|
408
432
|
index: number;
|
|
409
433
|
jumped: boolean;
|
|
410
434
|
x: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { byRow, CategoryAxisController, CHART_PLOT, columnPoints, commaList, customElement, drawTooltip, drawValueAxis, formatNumbers, HelixElement, HelixReadingChangeEvent, HelixReadingPressEvent, headroom, linear, linePath, MIRROR_RULE, MixinChartSource, MixinChartStatus, PLOT_HEIGHT, PLOT_WIDTH, seriesIndex, seriesKey,
|
|
2
|
+
import { byRow, CategoryAxisController, CHART_PLOT, columnPoints, commaList, customElement, drawTooltip, drawValueAxis, formatNumbers, HelixElement, HelixReadingChangeEvent, HelixReadingPressEvent, headroom, heldInside, levelsOf, linear, linePath, MIRROR_RULE, MixinChartSource, MixinChartStatus, PLOT_HEIGHT, PLOT_WIDTH, ScaleMemory, seriesIndex, seriesKey, unbroken, wordsLocale, } from '@fusion.dev/helix-core';
|
|
3
3
|
import { html, nothing, svg } from 'lit';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
5
6
|
import '../../tooltip/index.js';
|
|
6
7
|
const round = (value) => Math.round(value * 100) / 100;
|
|
7
8
|
let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStatus(MixinChartSource(HelixElement)) {
|
|
@@ -15,6 +16,8 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
15
16
|
this.slots = new WeakMap();
|
|
16
17
|
this.names = new CategoryAxisController(this);
|
|
17
18
|
this.zero = false;
|
|
19
|
+
this.scaleBefore = new ScaleMemory();
|
|
20
|
+
this.shownWith = new Map();
|
|
18
21
|
this.drawnCounts = new Map();
|
|
19
22
|
}
|
|
20
23
|
static { this.markRules = [MIRROR_RULE]; }
|
|
@@ -105,13 +108,21 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
105
108
|
}
|
|
106
109
|
return held;
|
|
107
110
|
}
|
|
111
|
+
scalesFor(one, x, y) {
|
|
112
|
+
if (this.showsSeries(one.name)) {
|
|
113
|
+
return { hidden: false, x, y };
|
|
114
|
+
}
|
|
115
|
+
const held = this.shownWith.get(seriesKey(one.name));
|
|
116
|
+
return held ? { hidden: true, ...held } : undefined;
|
|
117
|
+
}
|
|
108
118
|
ends(series, x, y) {
|
|
109
119
|
return series.flatMap((one, depth) => {
|
|
110
120
|
const before = this.drawnCounts.get(one.name);
|
|
111
121
|
this.drawnCounts.set(one.name, one.points.length);
|
|
112
122
|
const jumped = before !== undefined && before !== one.points.length;
|
|
113
123
|
const last = one.points.at(-1);
|
|
114
|
-
|
|
124
|
+
const drawn = this.scalesFor(one, x, y);
|
|
125
|
+
if (!drawn) {
|
|
115
126
|
return [];
|
|
116
127
|
}
|
|
117
128
|
if (!last || one.points.length < 2) {
|
|
@@ -119,10 +130,11 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
119
130
|
}
|
|
120
131
|
return [
|
|
121
132
|
{
|
|
133
|
+
hidden: drawn.hidden,
|
|
122
134
|
index: seriesIndex(depth),
|
|
123
135
|
jumped,
|
|
124
|
-
x: (x(last.at) / PLOT_WIDTH) * 100,
|
|
125
|
-
y: (y(last.value) / PLOT_HEIGHT) * 100,
|
|
136
|
+
x: (drawn.x(last.at) / PLOT_WIDTH) * 100,
|
|
137
|
+
y: (drawn.y(last.value) / PLOT_HEIGHT) * 100,
|
|
126
138
|
},
|
|
127
139
|
];
|
|
128
140
|
});
|
|
@@ -135,10 +147,16 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
135
147
|
}
|
|
136
148
|
const domain = this.range(series);
|
|
137
149
|
const { x, y } = this.scalesOf(domain, readings.length);
|
|
150
|
+
this.domainBefore = this.scaleBefore.before(domain);
|
|
151
|
+
for (const one of series) {
|
|
152
|
+
if (this.showsSeries(one.name)) {
|
|
153
|
+
this.shownWith.set(seriesKey(one.name), { x, y });
|
|
154
|
+
}
|
|
155
|
+
}
|
|
138
156
|
return html `${this.drawsAxis ? this.renderAxis(y, domain) : nothing}${this.renderPlot(series, x, y, domain)} ${this.renderLabels(readings)}${this.renderSummary(series)}${this.renderSonify()}${this.renderTable()}`;
|
|
139
157
|
}
|
|
140
158
|
renderAxis(y, domain) {
|
|
141
|
-
return drawValueAxis(domain, (value) => (y(value) / PLOT_HEIGHT) * 100, formatNumbers(wordsLocale(this)), (widest) => `--line-chart-axis: ${widest}ch
|
|
159
|
+
return drawValueAxis(domain, (value) => (y(value) / PLOT_HEIGHT) * 100, formatNumbers(wordsLocale(this)), (widest) => `--line-chart-axis: ${widest}ch`, this.domainBefore);
|
|
142
160
|
}
|
|
143
161
|
renderSummary(series) {
|
|
144
162
|
const rows = this.sourceRows;
|
|
@@ -162,8 +180,9 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
162
180
|
renderPlot(series, x, y, domain) {
|
|
163
181
|
const floor = domain[0] <= 0 && domain[1] >= 0 ? y(0) : undefined;
|
|
164
182
|
const ends = this.terminus === 'none' ? [] : this.ends(series, x, y);
|
|
165
|
-
const
|
|
166
|
-
|
|
183
|
+
const rings = ends.filter((end) => !end.hidden);
|
|
184
|
+
const holes = this.terminus === 'ring' && rings.length > 0
|
|
185
|
+
? rings
|
|
167
186
|
.map((end) => `radial-gradient(circle at ${end.x}% ${end.y}%, #0000 calc(var(--_chart-terminus-inner) - 0.5px), #000 var(--_chart-terminus-inner))`)
|
|
168
187
|
.join(', ')
|
|
169
188
|
: undefined;
|
|
@@ -209,8 +228,16 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
209
228
|
.map(({ at }) => svg `<line part="gridline" x1=${x(at)} x2=${x(at)} y1="0" y2=${PLOT_HEIGHT} />`)
|
|
210
229
|
: [];
|
|
211
230
|
const across = this.rulesValue
|
|
212
|
-
?
|
|
213
|
-
|
|
231
|
+
? repeat(levelsOf(domain, this.domainBefore), (one) => one.level, ({ leaving, level }) => svg `<line
|
|
232
|
+
part="gridline${leaving ? ' gridline-leaving' : ''}"
|
|
233
|
+
style=${`translate: 0 ${leaving ? heldInside(y(level)) : y(level)}px`}
|
|
234
|
+
visibility=${leaving ? 'hidden' : nothing}
|
|
235
|
+
x1="0"
|
|
236
|
+
x2=${PLOT_WIDTH}
|
|
237
|
+
y1="0"
|
|
238
|
+
y2="0"
|
|
239
|
+
/>`)
|
|
240
|
+
: nothing;
|
|
214
241
|
return svg `${down}${across}`;
|
|
215
242
|
}
|
|
216
243
|
renderBand(count) {
|
|
@@ -219,55 +246,76 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
219
246
|
return nothing;
|
|
220
247
|
}
|
|
221
248
|
const slot = PLOT_WIDTH / count;
|
|
222
|
-
return svg `<rect
|
|
249
|
+
return svg `<rect
|
|
250
|
+
height=${PLOT_HEIGHT}
|
|
251
|
+
part="band"
|
|
252
|
+
style=${`translate: ${at * slot}px 0`}
|
|
253
|
+
width=${slot}
|
|
254
|
+
x="0"
|
|
255
|
+
y="0"
|
|
256
|
+
/>`;
|
|
223
257
|
}
|
|
224
258
|
renderGuide(x) {
|
|
225
259
|
const at = this.pointer.at;
|
|
226
260
|
if (at < 0) {
|
|
227
261
|
return nothing;
|
|
228
262
|
}
|
|
229
|
-
return svg `<line
|
|
263
|
+
return svg `<line
|
|
264
|
+
part="guide"
|
|
265
|
+
style=${`translate: ${x(at)}px 0`}
|
|
266
|
+
x1="0"
|
|
267
|
+
x2="0"
|
|
268
|
+
y1="0"
|
|
269
|
+
y2=${PLOT_HEIGHT}
|
|
270
|
+
/>`;
|
|
230
271
|
}
|
|
231
272
|
renderTermini(ends) {
|
|
232
273
|
if (ends.length === 0) {
|
|
233
274
|
return nothing;
|
|
234
275
|
}
|
|
235
|
-
return html `${ends.
|
|
276
|
+
return html `${repeat(ends, (end) => end.index, (end) => html `<span
|
|
236
277
|
aria-hidden="true"
|
|
237
278
|
?data-jumped=${end.jumped}
|
|
238
|
-
|
|
279
|
+
?hidden=${end.hidden === true}
|
|
280
|
+
part="terminus${end.hidden ? ' terminus-hidden' : ''}"
|
|
239
281
|
style=${`--chart-series: var(--chart-series-${end.index}); --chart-terminus-x: ${end.x}%; --chart-terminus-y: ${end.y}%`}
|
|
240
282
|
></span>`)}`;
|
|
241
283
|
}
|
|
242
284
|
renderMarkers(series, x, y) {
|
|
243
285
|
const drawn = series.flatMap((one, depth) => {
|
|
244
|
-
|
|
286
|
+
const scales = this.scalesFor(one, x, y);
|
|
287
|
+
if (!scales) {
|
|
245
288
|
return [];
|
|
246
289
|
}
|
|
247
|
-
const { lone, marks } = this.marksOf(one, x, y);
|
|
248
|
-
return lone === '' && marks === ''
|
|
290
|
+
const { lone, marks } = this.marksOf(one, scales.x, scales.y);
|
|
291
|
+
return lone === '' && marks === ''
|
|
292
|
+
? []
|
|
293
|
+
: [{ hidden: scales.hidden, index: seriesIndex(depth), lone, marks }];
|
|
249
294
|
});
|
|
250
295
|
if (drawn.length === 0) {
|
|
251
296
|
return nothing;
|
|
252
297
|
}
|
|
253
|
-
return svg `${drawn
|
|
298
|
+
return svg `${repeat(drawn, ({ index }) => index, ({ hidden, index, lone, marks }) => svg `<path
|
|
254
299
|
d=${marks + lone}
|
|
255
300
|
data-series=${index}
|
|
256
|
-
part="marker-ring"
|
|
301
|
+
part="marker-ring${hidden ? ' marker-ring-hidden' : ''}"
|
|
302
|
+
visibility=${hidden ? 'hidden' : nothing}
|
|
257
303
|
/>${marks === ''
|
|
258
304
|
? nothing
|
|
259
305
|
: svg `<path
|
|
260
306
|
d=${marks}
|
|
261
307
|
data-series=${index}
|
|
262
|
-
part="marker"
|
|
308
|
+
part="marker${hidden ? ' marker-hidden' : ''}"
|
|
263
309
|
style="--chart-series: var(--chart-series-${index})"
|
|
310
|
+
visibility=${hidden ? 'hidden' : nothing}
|
|
264
311
|
/>`}${lone === ''
|
|
265
312
|
? nothing
|
|
266
313
|
: svg `<path
|
|
267
314
|
d=${lone}
|
|
268
315
|
data-series=${index}
|
|
269
|
-
part="marker marker-lone"
|
|
316
|
+
part="marker marker-lone${hidden ? ' marker-hidden' : ''}"
|
|
270
317
|
style="--chart-series: var(--chart-series-${index})"
|
|
318
|
+
visibility=${hidden ? 'hidden' : nothing}
|
|
271
319
|
/>`}`)}`;
|
|
272
320
|
}
|
|
273
321
|
marksOf(one, x, y) {
|
|
@@ -300,10 +348,12 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
300
348
|
return this.dashed !== '' && commaList(this.dashed).some((one) => seriesKey(one) === key);
|
|
301
349
|
}
|
|
302
350
|
renderSeries(one, depth, x, y, piece) {
|
|
303
|
-
|
|
351
|
+
const scales = this.scalesFor(one, x, y);
|
|
352
|
+
if (!scales) {
|
|
304
353
|
return html `${nothing}`;
|
|
305
354
|
}
|
|
306
|
-
const
|
|
355
|
+
const hidden = scales.hidden;
|
|
356
|
+
const runs = this.runsOf(one, scales.x, scales.y);
|
|
307
357
|
if (runs.length === 0) {
|
|
308
358
|
return html `${nothing}`;
|
|
309
359
|
}
|
|
@@ -321,8 +371,9 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
321
371
|
? svg `<path
|
|
322
372
|
d=${wash}
|
|
323
373
|
data-series=${index}
|
|
324
|
-
part="area"
|
|
374
|
+
part="area${hidden ? ' area-hidden' : ''}"
|
|
325
375
|
style="--chart-series: var(--chart-series-${index})"
|
|
376
|
+
visibility=${hidden ? 'hidden' : nothing}
|
|
326
377
|
/>`
|
|
327
378
|
: html `${nothing}`;
|
|
328
379
|
}
|
|
@@ -330,8 +381,9 @@ let HelixHeadlessLineChart = class HelixHeadlessLineChart extends MixinChartStat
|
|
|
330
381
|
d=${path}
|
|
331
382
|
data-series=${index}
|
|
332
383
|
fill="none"
|
|
333
|
-
part="line${this.dashes(one.name) ? ' line-dashed' : ''}"
|
|
384
|
+
part="line${this.dashes(one.name) ? ' line-dashed' : ''}${hidden ? ' line-hidden' : ''}"
|
|
334
385
|
style="--chart-series: var(--chart-series-${index})"
|
|
386
|
+
visibility=${hidden ? 'hidden' : nothing}
|
|
335
387
|
/>`;
|
|
336
388
|
}
|
|
337
389
|
renderLabels(readings) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AriaForwardController, HelixElement, KeyboardNavigationController, OpenPhaseController, type Placement } from '@fusion.dev/helix-core';
|
|
1
|
+
import { AriaForwardController, HelixElement, HoverMarkController, KeyboardNavigationController, OpenPhaseController, type Placement } from '@fusion.dev/helix-core';
|
|
2
2
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
3
3
|
declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.dev/helix-core").CollectionElement) & (new (...args: any[]) => import("@fusion.dev/helix-core").MixinControllerOpenInterface) & typeof HelixElement;
|
|
4
4
|
/**
|
|
@@ -142,6 +142,7 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
|
|
|
142
142
|
* @csspart back-mark - The glyph on the back control of a submenu.
|
|
143
143
|
* @csspart empty - The text shown when the menu has no items.
|
|
144
144
|
* @csspart header - The bar above a submenu, holding the way back and its name.
|
|
145
|
+
* @csspart highlight - The wash on the row with focus, which glides from row to row as the pointer or the keys move focus. It carries the row's place and size as an indicator does, `data-placed` while it is on one, `data-gliding` from the frame after it arrives, and `data-tone` with the row's `tone`. Hidden until a stylesheet shows it, so the headless tier lays out as it did without it.
|
|
145
146
|
* @csspart live - A live region that repeats the empty and loading text, so screen readers announce it when it changes. Visually hidden in the styled tier.
|
|
146
147
|
* @csspart loading - The text shown while the items are loading.
|
|
147
148
|
* @csspart search-field - With `filterable`, the field that narrows the rows.
|
|
@@ -154,6 +155,7 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
|
|
|
154
155
|
* @cssstate drilled - A submenu's page is showing, so content that is not a row can hide with the top page.
|
|
155
156
|
* @cssstate entering - From the moment the panel shows until its entrance has finished.
|
|
156
157
|
* @cssstate exiting - From the moment the panel hides until its exit has finished.
|
|
158
|
+
* @cssstate gliding - While the highlight is on a row, so it draws the wash in place of each row's own.
|
|
157
159
|
* @cssstate mark - A row on the current page has a checkbox or a link, so every row keeps the trailing column.
|
|
158
160
|
* @cssstate open - While the menu is open.
|
|
159
161
|
* @cssstate placed-bottom - While the open panel sits below its trigger.
|
|
@@ -343,6 +345,26 @@ export declare class HelixHeadlessMenu extends HelixHeadlessMenu_base {
|
|
|
343
345
|
*/
|
|
344
346
|
protected readonly keys: KeyboardNavigationController;
|
|
345
347
|
protected readonly phases: OpenPhaseController;
|
|
348
|
+
/**
|
|
349
|
+
* **The highlight glides from row to row**, as the hover wash does in
|
|
350
|
+
* `Navigation`, `Tabs` and `Toggle Group`. It marks what each row lights on
|
|
351
|
+
* its own: the row with focus, which the pointer and the keys both move,
|
|
352
|
+
* while the pointer is over the panel or focus shows, and the row the keys
|
|
353
|
+
* reached in a filtered menu. Between two rows the pointer leaves focus
|
|
354
|
+
* where it was, so the mark holds and glides on. Rows on the panel only: a
|
|
355
|
+
* flyout's rows are drawn in their parent row and light themselves.
|
|
356
|
+
*/
|
|
357
|
+
protected readonly highlight: HoverMarkController;
|
|
358
|
+
/** The frame the highlight is next placed in. */
|
|
359
|
+
private highlightFrame;
|
|
360
|
+
/**
|
|
361
|
+
* Places the highlight a frame from now, once focus, the pointer, and each
|
|
362
|
+
* row's own update have settled. Every input that can move it books the
|
|
363
|
+
* same frame, so a burst of them places it once.
|
|
364
|
+
*/
|
|
365
|
+
private readonly queueHighlight;
|
|
366
|
+
/** The row the highlight belongs on, as the box its wash fills, or nothing. */
|
|
367
|
+
private highlightedRow;
|
|
346
368
|
/** Carries a host `aria-label` and `aria-labelledby` to the surface. */
|
|
347
369
|
protected readonly aria: AriaForwardController;
|
|
348
370
|
/** Where a context menu was asked for, in the viewport, while it is open. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { AriaForwardController, anchorElement, auditEntry, auditWrapped, customElement, DrilldownController, deepActiveElement, deepContains, elementById, focusTarget, HelixElement, inlineStep, internalsOf, KeyboardNavigationController, linkDescription, MIRROR_RULE, MixinCollection, MixinControllerOpen, numberConverter, OpenPhaseController, onUnlessFalse, PopoverController, scrollItemIntoView, sideOf, slottedWords, tellDisclosure, typeaheadBy, unlinkDescription, untilReactHydrated, words, } from '@fusion.dev/helix-core';
|
|
2
|
+
import { AriaForwardController, anchorElement, auditEntry, auditWrapped, customElement, DrilldownController, deepActiveElement, deepContains, elementById, focusTarget, HelixElement, HoverMarkController, inlineStep, internalsOf, KeyboardNavigationController, linkDescription, MIRROR_RULE, MixinCollection, MixinControllerOpen, numberConverter, OpenPhaseController, onUnlessFalse, PopoverController, scrollItemIntoView, sideOf, slottedWords, tellDisclosure, typeaheadBy, unlinkDescription, untilReactHydrated, words, } from '@fusion.dev/helix-core';
|
|
3
3
|
import { caretLeft } from '@fusion.dev/helix-icons';
|
|
4
4
|
import { html, nothing } from 'lit';
|
|
5
5
|
import { property } from 'lit/decorators.js';
|
|
@@ -11,6 +11,7 @@ const isItem = (element) => element !== null &&
|
|
|
11
11
|
element.isMenuItem === true;
|
|
12
12
|
const HOVER_DELAY = 100;
|
|
13
13
|
const GRACE = 300;
|
|
14
|
+
const HIGHLIGHT_EVENTS = ['focusin', 'focusout', 'pointerover', 'pointerout', 'keydown'];
|
|
14
15
|
const inTriangle = (x, y, [a, b, c]) => {
|
|
15
16
|
if (!a || !b || !c) {
|
|
16
17
|
return false;
|
|
@@ -77,6 +78,31 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
77
78
|
open: () => this.open,
|
|
78
79
|
surface: () => this.partNamed('surface'),
|
|
79
80
|
});
|
|
81
|
+
this.highlight = new HoverMarkController(this, {
|
|
82
|
+
gliding: (on) => this.toggleState('gliding', on),
|
|
83
|
+
mark: () => this.partNamed('highlight'),
|
|
84
|
+
surface: () => this.partNamed('surface'),
|
|
85
|
+
});
|
|
86
|
+
this.highlightFrame = 0;
|
|
87
|
+
this.queueHighlight = () => {
|
|
88
|
+
if (typeof requestAnimationFrame !== 'function') {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
cancelAnimationFrame(this.highlightFrame);
|
|
92
|
+
this.highlightFrame = requestAnimationFrame(() => {
|
|
93
|
+
this.highlightFrame = 0;
|
|
94
|
+
const box = this.highlightedRow();
|
|
95
|
+
const tone = box ? box.getRootNode().host?.getAttribute('tone') : null;
|
|
96
|
+
const mark = this.partNamed('highlight');
|
|
97
|
+
if (tone) {
|
|
98
|
+
mark?.setAttribute('data-tone', tone);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
mark?.removeAttribute('data-tone');
|
|
102
|
+
}
|
|
103
|
+
this.highlight.show(box);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
80
106
|
this.aria = new AriaForwardController(this, {
|
|
81
107
|
label: true,
|
|
82
108
|
target: () => this.menuBox,
|
|
@@ -390,6 +416,29 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
390
416
|
get pressHeld() {
|
|
391
417
|
return !this.context && this.openOn === 'long-press';
|
|
392
418
|
}
|
|
419
|
+
highlightedRow() {
|
|
420
|
+
const surface = this.partNamed('surface');
|
|
421
|
+
if (!this.open || !surface) {
|
|
422
|
+
return undefined;
|
|
423
|
+
}
|
|
424
|
+
const pointer = surface.matches(':hover');
|
|
425
|
+
const rows = this.flies ? this.topRows : this.drilldown.rows;
|
|
426
|
+
for (const row of rows) {
|
|
427
|
+
if (row.disabled || !this.kept(row)) {
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
const box = row.shadowRoot?.querySelector('[part~="item"]');
|
|
431
|
+
if (!box) {
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
if (this.filters?.highlighted === row ||
|
|
435
|
+
box.matches(':focus-visible') ||
|
|
436
|
+
(pointer && box.matches(':focus'))) {
|
|
437
|
+
return box;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return undefined;
|
|
441
|
+
}
|
|
393
442
|
tellTrigger() {
|
|
394
443
|
const slot = this.renderRoot?.querySelector('slot[name="trigger"]');
|
|
395
444
|
const trigger = slot?.assignedElements({ flatten: true })[0];
|
|
@@ -627,6 +676,9 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
627
676
|
this.addEventListener('pointercancel', this.handlePointerCancel);
|
|
628
677
|
this.addEventListener('click', this.handleHeldClick, true);
|
|
629
678
|
this.addEventListener('focusin', this.handleTriggerFocusIn);
|
|
679
|
+
for (const type of HIGHLIGHT_EVENTS) {
|
|
680
|
+
this.addEventListener(type, this.queueHighlight);
|
|
681
|
+
}
|
|
630
682
|
this.rowWatch = new MutationObserver(this.followRemoved);
|
|
631
683
|
this.rowWatch.observe(this, { childList: true, subtree: true });
|
|
632
684
|
void this.whenSettled.then(() => {
|
|
@@ -656,6 +708,11 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
656
708
|
this.removeEventListener('pointercancel', this.handlePointerCancel);
|
|
657
709
|
this.removeEventListener('click', this.handleHeldClick, true);
|
|
658
710
|
this.removeEventListener('focusin', this.handleTriggerFocusIn);
|
|
711
|
+
for (const type of HIGHLIGHT_EVENTS) {
|
|
712
|
+
this.removeEventListener(type, this.queueHighlight);
|
|
713
|
+
}
|
|
714
|
+
cancelAnimationFrame(this.highlightFrame);
|
|
715
|
+
this.highlightFrame = 0;
|
|
659
716
|
this.unwatchArea();
|
|
660
717
|
this.rowWatch?.disconnect();
|
|
661
718
|
this.rowWatch = undefined;
|
|
@@ -696,6 +753,7 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
696
753
|
}
|
|
697
754
|
updated(changed) {
|
|
698
755
|
super.updated(changed);
|
|
756
|
+
this.queueHighlight();
|
|
699
757
|
if (changed.has('for') || changed.has('context')) {
|
|
700
758
|
this.watchArea();
|
|
701
759
|
}
|
|
@@ -858,6 +916,7 @@ let HelixHeadlessMenu = class HelixHeadlessMenu extends MixinCollection(MixinCon
|
|
|
858
916
|
data-filtered=${filters?.filtering ? '' : nothing}
|
|
859
917
|
?hidden=${!this.open}
|
|
860
918
|
>
|
|
919
|
+
<div part="highlight" aria-hidden="true" hidden></div>
|
|
861
920
|
${filters ? filters.drawFilter(rows, busy) : rows}
|
|
862
921
|
</div>${this.renderLive(this.hasRows)}`;
|
|
863
922
|
}
|
|
@@ -86,6 +86,7 @@ import '../../menu/index.js';
|
|
|
86
86
|
* @csspart overflow-back-mark - The glyph on the back control of a submenu.
|
|
87
87
|
* @csspart overflow-empty - The text shown when the menu has no items.
|
|
88
88
|
* @csspart overflow-header - The bar above a submenu, holding the way back and its name.
|
|
89
|
+
* @csspart overflow-highlight - Forwarded from the menu: the wash on the row with focus, which glides from row to row.
|
|
89
90
|
* @csspart overflow-live - The overflow menu's live region, which repeats the empty and loading text for screen readers.
|
|
90
91
|
* @csspart overflow-loading - The text shown while the items are loading.
|
|
91
92
|
* @csspart overflow-option - One destination in the overflow menu, a link to its address. Checked where it is the current one.
|
|
@@ -296,7 +296,7 @@ let HelixHeadlessNavigation = class HelixHeadlessNavigation extends HelixElement
|
|
|
296
296
|
return html `<${menu}
|
|
297
297
|
part="overflow"
|
|
298
298
|
exportparts="back: overflow-back, back-mark: overflow-back-mark, empty: overflow-empty,
|
|
299
|
-
header: overflow-header, live: overflow-live, loading: overflow-loading,
|
|
299
|
+
header: overflow-header, highlight: overflow-highlight, live: overflow-live, loading: overflow-loading,
|
|
300
300
|
search-field: overflow-search-field, surface: overflow-surface,
|
|
301
301
|
title: overflow-title"
|
|
302
302
|
label=${this.moreLabel}
|
|
@@ -127,6 +127,7 @@ declare const HelixHeadlessScatterChart_base: typeof HelixElement & (new (...arg
|
|
|
127
127
|
* @csspart point-active - The point of the row the reading rests on, one for each series with a point in that row, drawn over the others as an element of its own and placed by `--chart-point-x` and `--chart-point-y`. Under `size-by`, it carries its size as `--chart-point-weight`.
|
|
128
128
|
* @csspart point-ring - The points of a `point` path again, under it, to stroke a little wider in the page's color, so each point keeps its edge where it overlaps another.
|
|
129
129
|
* @csspart points - The points of one series that do not overlap one another, as a group of their `point-ring` and `point` paths. Its opacity is each point's, so where points overlap they darken. Carries its series color as `--chart-series`.
|
|
130
|
+
* @csspart points-hidden - The `points` of a series a legend hid, kept where they were last drawn, with each path `visibility="hidden"`, so a stylesheet can fade them out while the others move to the new scale. Set alongside `points`.
|
|
130
131
|
* @csspart sonify - The button that plays the chart as sound, under `sonify`.
|
|
131
132
|
* @csspart summary - The text that says how strongly the measures relate, for people who cannot see the points.
|
|
132
133
|
* @csspart svg - The drawing surface the gridlines and the trend lines sit on.
|
|
@@ -303,6 +304,8 @@ export declare class HelixHeadlessScatterChart extends HelixHeadlessScatterChart
|
|
|
303
304
|
protected render(): TemplateResult;
|
|
304
305
|
/** The rules and the points, behind a seam the styled tier can move. */
|
|
305
306
|
protected renderPlot(field: ScatterField, along: (value: number) => number, up: (value: number) => number): TemplateResult;
|
|
307
|
+
/** Each series' points as they were last drawn while it was shown, by its depth. */
|
|
308
|
+
private readonly shownPoints;
|
|
306
309
|
/**
|
|
307
310
|
* Every shown series' points, as `points` groups of `point-ring` and
|
|
308
311
|
* `point` paths, held against the field and the sizes they were drawn at.
|