origam 2.37.39 → 2.37.40

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +5 -1
  3. package/dist/src/components/Chart/OrigamChartBullet.vue +5 -1
  4. package/dist/src/components/Chart/OrigamChartCandlestick.vue +5 -1
  5. package/dist/src/components/Chart/OrigamChartCartesian.vue +9 -2
  6. package/dist/src/components/Chart/OrigamChartHeatmap.vue +6 -1
  7. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +5 -1
  8. package/dist/src/components/Chart/OrigamChartMap.vue +7 -2
  9. package/dist/src/components/Chart/OrigamChartPareto.vue +5 -1
  10. package/dist/src/components/Chart/OrigamChartPictorial.vue +7 -2
  11. package/dist/src/components/Chart/OrigamChartPolar.vue +5 -1
  12. package/dist/src/components/Chart/OrigamChartPolarBar.vue +5 -1
  13. package/dist/src/components/Chart/OrigamChartPyramid.vue +5 -1
  14. package/dist/src/components/Chart/OrigamChartRadar.vue +6 -1
  15. package/dist/src/components/Chart/OrigamChartSankey.vue +7 -2
  16. package/dist/src/components/Chart/OrigamChartSparkline.vue +11 -4
  17. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +5 -1
  18. package/dist/src/components/Chart/OrigamChartSunburst.vue +5 -1
  19. package/dist/src/components/Chart/OrigamChartTreemap.vue +5 -1
  20. package/dist/src/components/Chart/OrigamChartVariwide.vue +5 -1
  21. package/dist/src/components/Chart/OrigamChartWordCloud.vue +5 -1
  22. package/dist/src/composables/Chart/chart-roving.composable.cjs +69 -0
  23. package/dist/src/composables/Chart/chart-roving.composable.d.ts +33 -0
  24. package/dist/src/composables/Chart/chart-roving.composable.js +64 -0
  25. package/dist/src/composables/index.cjs +12 -0
  26. package/dist/src/composables/index.d.ts +1 -0
  27. package/dist/src/composables/index.js +1 -0
  28. package/dist/src/consts/Chart/chart.const.cjs +12 -1
  29. package/dist/src/consts/Chart/chart.const.d.ts +40 -1
  30. package/dist/src/consts/Chart/chart.const.js +11 -0
  31. package/dist/src/interfaces/Chart/chart-roving.interface.cjs +1 -0
  32. package/dist/src/interfaces/Chart/chart-roving.interface.d.ts +12 -0
  33. package/dist/src/interfaces/Chart/chart-roving.interface.js +0 -0
  34. package/dist/src/interfaces/index.cjs +11 -0
  35. package/dist/src/interfaces/index.d.ts +1 -0
  36. package/dist/src/interfaces/index.js +1 -0
  37. package/dist/src/types/Chart/chart.type.d.ts +8 -0
  38. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -18,6 +18,29 @@ This project follows [Semantic Versioning](https://semver.org).
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [2.37.40] - 2026-11-05
22
+
23
+ ### Fixed — Charts : un seul arrêt de tabulation par chart, navigation aux flèches (#1333)
24
+
25
+ Chaque point focusable d'un chart était un arrêt de tabulation. Mesuré sur develop, cela donnait entre 3 et 1825 arrêts selon le chart et la Variant (Cartésien jusqu'à 1825, Heatmap 168). Il fallait autant de frappes de Tab pour quitter le chart.
26
+
27
+ - Pattern **roving tabindex** sur les 20 charts à points `role="button"` : un seul point est à `tabindex="0"` (le dernier point actif, sinon le premier), tous les autres sont à `-1`.
28
+ - Touches :
29
+
30
+ | Touche | Action |
31
+ |---|---|
32
+ | ← / → | point précédent / suivant de la série |
33
+ | ↑ / ↓ | série précédente / suivante, à la même position (bornée) ; à série unique, même effet que ← / → |
34
+ | Home / End | premier / dernier point |
35
+ | Entrée / Espace | active le point (émission inchangée) |
36
+ | Tab | sort du chart en une frappe |
37
+
38
+ - Treemap, Sunburst, Sankey, Map, Honeycomb et WordCloud suivent l'ordre du DOM. Pour Sankey, ce sont les liens puis les nœuds. Cet ordre est documenté sur chaque chart.
39
+ - Nouveau composable `useChartRoving` (`composables/Chart/chart-roving.composable.ts`), interface `IChartRoving`, type `TChartRovingAction`, consts `CHART_POINT_ATTR`, `CHART_POINT_SELECTOR`, `CHART_SERIES_ATTR` et `CHART_ROVING_KEY_ACTIONS`.
40
+ - Le bouton de réinitialisation du zoom du cartésien garde son propre arrêt de tabulation.
41
+ - **Vérifié** : la spec `chart-roving-tabindex.spec.ts`, inscrite dans `GREEN_SPECS`, compte 1 arrêt par chart, ainsi que flèches, Home/End et Entrée/Espace, sur toutes les Variants. Elle est rouge 21/21 sur le parent et verte avec le correctif. `chart-nested-interactive` reste verte (axe : 0 `nested-interactive`). `e2e/chart*` : 401 passés (PR #1337).
42
+ - **Limites** : pas d'inversion des flèches en RTL. Avant l'hydratation SSR, les points n'ont pas d'arrêt de tabulation.
43
+
21
44
  ## [2.37.39] - 2026-11-05
22
45
 
23
46
  ### Fixed — `OrigamChartCartesian` : les étiquettes de l'axe X ne se chevauchent plus sur un chart étroit (#1325)
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-box-plot-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -119,7 +120,8 @@
119
120
  class="origam-chart__box"
120
121
  :class="{ 'origam-chart__box--active': hoveredIndex === box.index }"
121
122
  :data-cy="`origam-chart-box-group-${ box.index }`"
122
- tabindex="0"
123
+ tabindex="-1"
124
+ data-chart-point
123
125
  role="button"
124
126
  :aria-label="boxAriaLabel(box)"
125
127
  @click="onBoxActivate(box, $event)"
@@ -260,6 +262,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
260
262
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
261
263
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
262
264
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
265
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
263
266
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
264
267
  import { useDimension } from "../../composables/Commons/dimension.composable";
265
268
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -350,6 +353,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
350
353
  const { headerTypographyStyles } = useChartHeaderTypography(props);
351
354
  const chartAnimationStyle = useChartAnimationStyle(props);
352
355
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.boxPlot);
356
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
353
357
  const PADDING = { top: 20, right: 20, bottom: 40, left: 52 };
354
358
  const PLOT = {
355
359
  get left() {
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-bullet-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -79,7 +80,8 @@
79
80
  :height="barH(bullet)"
80
81
  :style="{ fill: bullet.barFill }"
81
82
  :data-cy="`origam-chart-bullet-bar-${ bullet.index }`"
82
- tabindex="0"
83
+ tabindex="-1"
84
+ data-chart-point
83
85
  role="button"
84
86
  :aria-label="bulletAriaLabel(bullet)"
85
87
  @click="onBulletActivate(bullet, $event)"
@@ -224,6 +226,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
224
226
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
225
227
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
226
228
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
229
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
227
230
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
228
231
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
229
232
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -314,6 +317,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
314
317
  const { headerTypographyStyles } = useChartHeaderTypography(props);
315
318
  const chartAnimationStyle = useChartAnimationStyle(props);
316
319
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.bullet);
320
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
317
321
  const AXIS_TICK_COUNT = 5;
318
322
  const TARGET_TICK_FRACTION = 0.7;
319
323
  const LABEL_GAP = 6;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-candlestick-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -104,7 +105,8 @@
104
105
  'origam-chart-candlestick__candle--bearish': !candle.isBullish,
105
106
  'origam-chart-candlestick__candle--active': hoveredIndex === candle.index
106
107
  }"
107
- tabindex="0"
108
+ tabindex="-1"
109
+ data-chart-point
108
110
  role="button"
109
111
  :aria-label="candleAriaLabel(candle)"
110
112
  :data-cy="`origam-chart-candlestick-candle-${ candle.index }`"
@@ -199,6 +201,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
199
201
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
200
202
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
201
203
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
204
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
202
205
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
203
206
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
204
207
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -289,6 +292,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
289
292
  const { headerTypographyStyles } = useChartHeaderTypography(props);
290
293
  const chartAnimationStyle = useChartAnimationStyle(props);
291
294
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.candlestick);
295
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
292
296
  const PADDING = { top: 20, right: 20, bottom: 36, left: 56 };
293
297
  const Y_TICK_COUNT = 5;
294
298
  const Y_PAD_FRACTION = 0.05;
@@ -88,6 +88,7 @@
88
88
  :aria-label="svgAriaLabel"
89
89
  preserveAspectRatio="xMidYMid meet"
90
90
  data-cy="origam-chart-cartesian-svg"
91
+ @keydown="onChartKeydown"
91
92
  @mousemove="onSvgMouseMove"
92
93
  @mouseleave="onSvgMouseLeave"
93
94
  @mousedown="onSvgMouseDown"
@@ -186,7 +187,9 @@
186
187
  :width="path.rect!.width"
187
188
  :height="path.rect!.height"
188
189
  :fill="path.color"
189
- tabindex="0"
190
+ tabindex="-1"
191
+ data-chart-point
192
+ :data-chart-series="path.seriesIndex"
190
193
  role="button"
191
194
  :aria-label="pointAriaLabel(path)"
192
195
  :data-cy="`origam-chart-bar-${ path.seriesIndex }-${ path.dataIndex }`"
@@ -203,7 +206,9 @@
203
206
  :cy="path.circle!.cy"
204
207
  :r="hoverMatches(path) ? path.circle!.r + 2 : path.circle!.r"
205
208
  :fill="path.color"
206
- tabindex="0"
209
+ tabindex="-1"
210
+ data-chart-point
211
+ :data-chart-series="path.seriesIndex"
207
212
  role="button"
208
213
  :aria-label="pointAriaLabel(path)"
209
214
  :data-cy="`origam-chart-point-${ path.seriesIndex }-${ path.dataIndex }`"
@@ -493,6 +498,7 @@ import {
493
498
  } from "vue";
494
499
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
495
500
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
501
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
496
502
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
497
503
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
498
504
  import { useChart } from "../../composables/Chart/chart.composable";
@@ -685,6 +691,7 @@ const { resizeRef: svgSizeRef, width: svgWidth, height: svgHeight } = useChartSi
685
691
  const PADDING_DEFAULT = { top: 24, right: 24, bottom: 36, left: 48 };
686
692
  const PADDING_WITH_SECONDARY_AXIS = { top: 24, right: 56, bottom: 36, left: 48 };
687
693
  const svgRef = ref(null);
694
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
688
695
  const setSvgRef = (el) => {
689
696
  svgRef.value = el;
690
697
  svgSizeRef.value = el;
@@ -43,6 +43,7 @@
43
43
  :aria-label="svgAriaLabel"
44
44
  preserveAspectRatio="xMidYMid meet"
45
45
  data-cy="origam-chart-heatmap-svg"
46
+ @keydown="onChartKeydown"
46
47
  @mousemove="onSvgMouseMove"
47
48
  @mouseleave="onSvgMouseLeave"
48
49
  >
@@ -89,7 +90,9 @@
89
90
  ry="2"
90
91
  :style="{ fill: cell.color }"
91
92
  :data-cy="`origam-chart-heatmap-cell-${ cell.index }`"
92
- tabindex="0"
93
+ tabindex="-1"
94
+ data-chart-point
95
+ :data-chart-series="cell.yCat"
93
96
  role="button"
94
97
  :aria-label="cellAriaLabel(cell)"
95
98
  @click="onCellActivate(cell, $event)"
@@ -228,6 +231,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
228
231
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
229
232
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
230
233
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
234
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
231
235
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
232
236
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
233
237
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -401,6 +405,7 @@ const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize({
401
405
  return SVG_PLOT_H + AXIS_BOTTOM + legendExtraH.value;
402
406
  }
403
407
  });
408
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
404
409
  const plotX0 = AXIS_LEFT;
405
410
  const plotY0 = 4;
406
411
  const plotW = computed(() => Math.max(0, svgWidth.value - AXIS_LEFT));
@@ -43,6 +43,7 @@
43
43
  :aria-label="svgAriaLabel"
44
44
  preserveAspectRatio="xMidYMid meet"
45
45
  data-cy="origam-chart-honeycomb-svg"
46
+ @keydown="onChartKeydown"
46
47
  @mousemove="onSvgMouseMove"
47
48
  @mouseleave="onSvgMouseLeave"
48
49
  >
@@ -65,7 +66,8 @@
65
66
  :points="tile.points"
66
67
  :style="{ fill: tile.color }"
67
68
  :data-cy="`origam-chart-honeycomb-tile-${ tile.index }`"
68
- tabindex="0"
69
+ tabindex="-1"
70
+ data-chart-point
69
71
  role="button"
70
72
  :aria-label="tileAriaLabel(tile)"
71
73
  @click="onTileActivate(tile, $event)"
@@ -154,6 +156,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
154
156
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
155
157
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
156
158
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
159
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
157
160
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
158
161
  import { useDimension } from "../../composables/Commons/dimension.composable";
159
162
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -419,6 +422,7 @@ const legendItems = computed(() => {
419
422
  }));
420
423
  });
421
424
  const svgRef = ref(null);
425
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
422
426
  const mousePos = ref({ x: 0, y: 0 });
423
427
  const hoveredIndex = ref(null);
424
428
  const hoveredTile = computed(() => {
@@ -41,6 +41,7 @@
41
41
  :aria-label="svgAriaLabel"
42
42
  preserveAspectRatio="xMidYMid meet"
43
43
  data-cy="origam-chart-map-svg"
44
+ @keydown="onChartKeydown"
44
45
  @mousemove="onSvgMouseMove"
45
46
  @mouseleave="onSvgMouseLeave"
46
47
  >
@@ -81,7 +82,8 @@
81
82
  :d="country.d"
82
83
  :style="{ fill: country.fill, stroke: resolveColor(borderColor) }"
83
84
  :data-cy="`origam-chart-map-country-${ country.code }`"
84
- :tabindex="country.hasData ? 0 : -1"
85
+ tabindex="-1"
86
+ :data-chart-point="country.hasData ? '' : undefined"
85
87
  :role="country.hasData ? 'button' : undefined"
86
88
  :aria-label="country.hasData ? countryAriaLabel(country) : undefined"
87
89
  @click="onCountryActivate(country, $event)"
@@ -107,7 +109,8 @@
107
109
  fill="none"
108
110
  stroke-linecap="round"
109
111
  :data-cy="`origam-chart-map-route-${ route.index }`"
110
- tabindex="0"
112
+ tabindex="-1"
113
+ data-chart-point
111
114
  role="button"
112
115
  :aria-label="routeAriaLabel(route)"
113
116
  @click="onRouteActivate(route, $event)"
@@ -207,6 +210,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
207
210
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
208
211
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
209
212
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
213
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
210
214
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
211
215
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
212
216
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -311,6 +315,7 @@ useUnsupportedProp(
311
315
  );
312
316
  const chartAnimationStyle = useChartAnimationStyle(props);
313
317
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.map, { aspectRatio: CHART_ASPECT_RATIO.map });
318
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
314
319
  const LEGEND_H = 14;
315
320
  const LEGEND_Y_OFFSET = 12;
316
321
  const LEGEND_X = 20;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-pareto-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -189,7 +190,8 @@
189
190
  rx="2"
190
191
  ry="2"
191
192
  :style="{ fill: bar.color }"
192
- tabindex="0"
193
+ tabindex="-1"
194
+ data-chart-point
193
195
  role="button"
194
196
  :aria-label="barAriaLabel(bar)"
195
197
  :data-cy="`origam-chart-pareto-bar-${ bar.index }`"
@@ -303,6 +305,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
303
305
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
304
306
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
305
307
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
308
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
306
309
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
307
310
  import { useDimension } from "../../composables/Commons/dimension.composable";
308
311
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -394,6 +397,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
394
397
  const { headerTypographyStyles } = useChartHeaderTypography(props);
395
398
  const chartAnimationStyle = useChartAnimationStyle(props);
396
399
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pareto);
400
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
397
401
  const TICK_SIZE = 4;
398
402
  const PLOT = {
399
403
  top: 24,
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-pictorial-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -82,7 +83,8 @@
82
83
  :transform="`translate(${ col.x }, ${ col.y })`"
83
84
  class="origam-chart-pictorial__column"
84
85
  :data-cy="`origam-chart-pictorial-col-${ col.dataIndex }`"
85
- tabindex="0"
86
+ tabindex="-1"
87
+ data-chart-point
86
88
  role="button"
87
89
  :aria-label="columnAriaLabel(col)"
88
90
  @click="onColumnActivate(col, $event)"
@@ -139,7 +141,8 @@
139
141
  :transform="`translate(${ fillColX(col) }, ${ fillColY(col) })`"
140
142
  class="origam-chart-pictorial__column"
141
143
  :data-cy="`origam-chart-pictorial-col-${ col.dataIndex }`"
142
- tabindex="0"
144
+ tabindex="-1"
145
+ data-chart-point
143
146
  role="button"
144
147
  :aria-label="fillColumnAriaLabel(col)"
145
148
  @click="onColumnActivate(col, $event)"
@@ -300,6 +303,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
300
303
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
301
304
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
302
305
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
306
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
303
307
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
304
308
  import { useDimension } from "../../composables/Commons/dimension.composable";
305
309
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -392,6 +396,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
392
396
  const { headerTypographyStyles } = useChartHeaderTypography(props);
393
397
  const chartAnimationStyle = useChartAnimationStyle(props);
394
398
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pictorial);
399
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
395
400
  const ICON_GAP = 2;
396
401
  const AXIS_LABEL_HEIGHT = 20;
397
402
  const VALUE_LABEL_HEIGHT = 16;
@@ -79,6 +79,7 @@
79
79
  :aria-label="svgAriaLabel"
80
80
  preserveAspectRatio="xMidYMid meet"
81
81
  data-cy="origam-chart-polar-svg"
82
+ @keydown="onChartKeydown"
82
83
  @mousemove="onSvgMouseMove"
83
84
  @mouseleave="onSvgMouseLeave"
84
85
  >
@@ -96,7 +97,8 @@
96
97
  :d="path.d"
97
98
  :fill="path.color"
98
99
  :data-cy="`origam-chart-slice-${ path.dataIndex }`"
99
- tabindex="0"
100
+ tabindex="-1"
101
+ data-chart-point
100
102
  role="button"
101
103
  :aria-label="sliceAriaLabel(path)"
102
104
  @click="onPointActivate(path, $event)"
@@ -169,6 +171,7 @@ import {
169
171
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
170
172
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
171
173
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
174
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
172
175
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
173
176
  import { useChart } from "../../composables/Chart/chart.composable";
174
177
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -307,6 +310,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
307
310
  const { headerTypographyStyles } = useChartHeaderTypography(props);
308
311
  const chartAnimationStyle = useChartAnimationStyle(props);
309
312
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.polar, { aspectRatio: CHART_ASPECT_RATIO.radial });
313
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
310
314
  const PADDING_POLAR = { top: 12, right: 12, bottom: 12, left: 12 };
311
315
  const mousePos = ref({ x: 0, y: 0 });
312
316
  const hiddenLabels = ref(/* @__PURE__ */ new Set());
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-polar-bar-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -61,7 +62,8 @@
61
62
  :d="wedge.d"
62
63
  :style="{ fill: wedge.color }"
63
64
  :data-cy="`origam-chart-polar-bar-wedge-${ wedge.index }`"
64
- tabindex="0"
65
+ tabindex="-1"
66
+ data-chart-point
65
67
  role="button"
66
68
  :aria-label="wedgeAriaLabel(wedge)"
67
69
  @click="onWedgeActivate(wedge, $event)"
@@ -165,6 +167,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
165
167
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
166
168
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
167
169
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
170
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
168
171
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
169
172
  import { useDimension } from "../../composables/Commons/dimension.composable";
170
173
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -259,6 +262,7 @@ useUnsupportedProp(
259
262
  );
260
263
  const chartAnimationStyle = useChartAnimationStyle(props);
261
264
  const { resizeRef: svgRef, width: svgWidth } = useChartSize(CHART_SIZE_FALLBACK.polarBar, { aspectRatio: CHART_ASPECT_RATIO.radial });
265
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
262
266
  const center = computed(() => svgWidth.value / 2);
263
267
  const LABEL_RADIAL_OFFSET = 14;
264
268
  const VALUE_LABEL_MIN_ANGLE = 0.25;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-pyramid-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -60,7 +61,8 @@
60
61
  :d="slice.d"
61
62
  :fill="slice.color"
62
63
  :data-cy="`origam-chart-pyramid-slice-${ slice.index }`"
63
- tabindex="0"
64
+ tabindex="-1"
65
+ data-chart-point
64
66
  role="button"
65
67
  :aria-label="sliceAriaLabel(slice)"
66
68
  @click="onSliceActivate(slice, $event)"
@@ -163,6 +165,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
163
165
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
164
166
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
165
167
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
168
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
166
169
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
167
170
  import { useDimension } from "../../composables/Commons/dimension.composable";
168
171
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -248,6 +251,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
248
251
  const { headerTypographyStyles } = useChartHeaderTypography(props);
249
252
  const chartAnimationStyle = useChartAnimationStyle(props);
250
253
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pyramid);
254
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
251
255
  const PADDING = { top: 20, right: 120, bottom: 20, left: 20 };
252
256
  const LABEL_FITS_INSIDE_MIN_HEIGHT = 18;
253
257
  const LABEL_FITS_INSIDE_MIN_WIDTH = 90;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-radar-svg"
45
+ @keydown="onChartKeydown"
45
46
  >
46
47
  <title>{{ svgTitle }}</title>
47
48
  <desc>{{ svgDesc }}</desc>
@@ -98,7 +99,9 @@
98
99
  :cy="path.circle!.cy"
99
100
  :r="path.circle!.r"
100
101
  :fill="path.color"
101
- tabindex="0"
102
+ tabindex="-1"
103
+ data-chart-point
104
+ :data-chart-series="path.seriesIndex"
102
105
  role="button"
103
106
  :aria-label="pointAriaLabel(path)"
104
107
  :data-cy="`origam-chart-point-${ path.seriesIndex }-${ path.dataIndex }`"
@@ -150,6 +153,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
150
153
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
151
154
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
152
155
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
156
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
153
157
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
154
158
  import { useChart } from "../../composables/Chart/chart.composable";
155
159
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -237,6 +241,7 @@ useUnsupportedProp(
237
241
  );
238
242
  const chartAnimationStyle = useChartAnimationStyle(props);
239
243
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.radar, { aspectRatio: CHART_ASPECT_RATIO.radial });
244
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
240
245
  const PADDING_RADAR = { top: 20, right: 20, bottom: 20, left: 20 };
241
246
  const RADAR_RINGS = [0.25, 0.5, 0.75, 1];
242
247
  const chart = useChart({
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-sankey-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -64,7 +65,8 @@
64
65
  stroke: 'none'
65
66
  }"
66
67
  :data-cy="`origam-chart-sankey-link-${ link.index }`"
67
- tabindex="0"
68
+ tabindex="-1"
69
+ data-chart-point
68
70
  role="button"
69
71
  :aria-label="linkAriaLabel(link)"
70
72
  @click="onLinkActivate(link, $event)"
@@ -87,7 +89,8 @@
87
89
  ry="2"
88
90
  :style="{ fill: node.color }"
89
91
  :data-cy="`origam-chart-sankey-node-${ node.name }`"
90
- tabindex="0"
92
+ tabindex="-1"
93
+ data-chart-point
91
94
  role="button"
92
95
  :aria-label="`${ node.name }: ${ node.formatted }`"
93
96
  @click="onNodeActivate(node, $event)"
@@ -177,6 +180,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
177
180
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
178
181
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
179
182
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
183
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
180
184
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
181
185
  import { useDimension } from "../../composables/Commons/dimension.composable";
182
186
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -269,6 +273,7 @@ useUnsupportedProp(
269
273
  );
270
274
  const chartAnimationStyle = useChartAnimationStyle(props);
271
275
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.sankey);
276
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
272
277
  const PADDING = { top: 20, right: 100, bottom: 20, left: 100 };
273
278
  const DEFAULT_PALETTE = [
274
279
  "primary",
@@ -14,6 +14,7 @@
14
14
  :role="CHART_SVG_ROLE"
15
15
  :aria-label="svgAriaLabel"
16
16
  data-cy="origam-chart-sparkline-svg"
17
+ @keydown="onChartKeydown"
17
18
  @mousemove="onSvgMouseMove"
18
19
  @mouseleave="onSvgMouseLeave"
19
20
  @click="onSvgClick"
@@ -35,7 +36,8 @@
35
36
  :width="bar.width"
36
37
  :height="bar.height"
37
38
  :style="{ fill: resolvedColor }"
38
- tabindex="0"
39
+ tabindex="-1"
40
+ data-chart-point
39
41
  role="button"
40
42
  :aria-label="pointAriaLabel(bar.index)"
41
43
  :data-cy="`origam-chart-sparkline-bar-${ bar.index }`"
@@ -59,7 +61,8 @@
59
61
  :width="bar.width"
60
62
  :height="bar.height"
61
63
  :style="{ fill: resolvedColor }"
62
- tabindex="0"
64
+ tabindex="-1"
65
+ data-chart-point
63
66
  role="button"
64
67
  :aria-label="pointAriaLabel(bar.index)"
65
68
  :data-cy="`origam-chart-sparkline-hbar-${ bar.index }`"
@@ -98,7 +101,8 @@
98
101
  :cy="pt.cy"
99
102
  :r="markerSize"
100
103
  :style="{ fill: resolvedColor }"
101
- tabindex="0"
104
+ tabindex="-1"
105
+ data-chart-point
102
106
  role="button"
103
107
  :aria-label="pointAriaLabel(pt.index)"
104
108
  :data-cy="`origam-chart-sparkline-marker-${ pt.index }`"
@@ -117,7 +121,8 @@
117
121
  :cy="m.cy"
118
122
  :r="m.r"
119
123
  :style="{ fill: m.fill }"
120
- tabindex="0"
124
+ tabindex="-1"
125
+ data-chart-point
121
126
  role="button"
122
127
  :aria-label="pointAriaLabel(m.dataIndex)"
123
128
  :data-cy="`origam-chart-sparkline-special-${ m.role }`"
@@ -162,6 +167,7 @@ import {
162
167
  computed,
163
168
  ref
164
169
  } from "vue";
170
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
165
171
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
166
172
  import { useLocale } from "../../composables/Commons/locale.composable";
167
173
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
@@ -246,6 +252,7 @@ const { marginClasses, marginStyles } = useMargin(props);
246
252
  const { paddingClasses, paddingStyles } = usePadding(props);
247
253
  const { roundedClasses, roundedStyles } = useRounded(props);
248
254
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.sparkline);
255
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
249
256
  const PADDING_X = 2;
250
257
  const PADDING_Y = 2;
251
258
  const activeSeries = computed(() => props.series?.[0] ?? null);
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-streamgraph-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -103,7 +104,8 @@
103
104
  :d="ribbon.d"
104
105
  :style="{ fill: ribbon.color }"
105
106
  :data-cy="`origam-chart-streamgraph-ribbon-${ ribbon.seriesIndex }`"
106
- tabindex="0"
107
+ tabindex="-1"
108
+ data-chart-point
107
109
  role="button"
108
110
  :aria-label="ribbonAriaLabel(ribbon)"
109
111
  @click="onRibbonActivate(ribbon, $event)"
@@ -187,6 +189,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
187
189
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
188
190
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
189
191
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
192
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
190
193
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
191
194
  import { useDimension } from "../../composables/Commons/dimension.composable";
192
195
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -273,6 +276,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
273
276
  const { headerTypographyStyles } = useChartHeaderTypography(props);
274
277
  const chartAnimationStyle = useChartAnimationStyle(props);
275
278
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.streamgraph);
279
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
276
280
  const PADDING = { top: 24, right: 24, bottom: 40, left: 40 };
277
281
  const AXIS_LABEL_OFFSET = 6;
278
282
  const plot = computed(() => ({
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-sunburst-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -61,7 +62,8 @@
61
62
  :d="node.d"
62
63
  :style="{ fill: node.color }"
63
64
  :data-cy="`origam-chart-sunburst-arc-${ node.id }`"
64
- tabindex="0"
65
+ tabindex="-1"
66
+ data-chart-point
65
67
  role="button"
66
68
  :aria-label="nodeAriaLabel(node)"
67
69
  @click="onNodeActivate(node, $event)"
@@ -172,6 +174,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
172
174
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
173
175
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
174
176
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
177
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
175
178
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
176
179
  import { useDimension } from "../../composables/Commons/dimension.composable";
177
180
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -255,6 +258,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
255
258
  const { headerTypographyStyles } = useChartHeaderTypography(props);
256
259
  const chartAnimationStyle = useChartAnimationStyle(props);
257
260
  const { resizeRef: svgRef, width: svgWidth } = useChartSize(CHART_SIZE_FALLBACK.sunburst, { aspectRatio: CHART_ASPECT_RATIO.radial });
261
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
258
262
  const center = computed(() => svgWidth.value / 2);
259
263
  const MAX_DEPTH_CAP = 4;
260
264
  const LABEL_ANGLE_INLINE = 0.1;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-treemap-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -69,7 +70,8 @@
69
70
  ry="2"
70
71
  :style="{ fill: tile.color }"
71
72
  :data-cy="`origam-chart-treemap-tile-${ tile.index }`"
72
- tabindex="0"
73
+ tabindex="-1"
74
+ data-chart-point
73
75
  role="button"
74
76
  :aria-label="tileAriaLabel(tile)"
75
77
  @click="onTileActivate(tile, $event)"
@@ -169,6 +171,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
169
171
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
170
172
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
171
173
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
174
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
172
175
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
173
176
  import { useDimension } from "../../composables/Commons/dimension.composable";
174
177
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -258,6 +261,7 @@ useUnsupportedProp(
258
261
  );
259
262
  const chartAnimationStyle = useChartAnimationStyle(props);
260
263
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.treemap);
264
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
261
265
  const PADDING = { top: 8, right: 8, bottom: 8, left: 8 };
262
266
  const LABEL_MIN_WIDTH = 60;
263
267
  const LABEL_MIN_HEIGHT = 24;
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-variwide-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -153,7 +154,8 @@
153
154
  rx="2"
154
155
  ry="2"
155
156
  :style="{ fill: col.color }"
156
- tabindex="0"
157
+ tabindex="-1"
158
+ data-chart-point
157
159
  role="button"
158
160
  :aria-label="columnAriaLabel(col)"
159
161
  :data-cy="`origam-chart-variwide-bar-${ col.index }`"
@@ -243,6 +245,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
243
245
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
244
246
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
245
247
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
248
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
246
249
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
247
250
  import { useDimension } from "../../composables/Commons/dimension.composable";
248
251
  import { useElevation } from "../../composables/Commons/elevation.composable";
@@ -331,6 +334,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
331
334
  const { headerTypographyStyles } = useChartHeaderTypography(props);
332
335
  const chartAnimationStyle = useChartAnimationStyle(props);
333
336
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.variwide);
337
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
334
338
  const TICK_SIZE = 4;
335
339
  const PLOT = {
336
340
  top: 24,
@@ -42,6 +42,7 @@
42
42
  :aria-label="svgAriaLabel"
43
43
  preserveAspectRatio="xMidYMid meet"
44
44
  data-cy="origam-chart-word-cloud-svg"
45
+ @keydown="onChartKeydown"
45
46
  @mousemove="onSvgMouseMove"
46
47
  @mouseleave="onSvgMouseLeave"
47
48
  >
@@ -67,7 +68,8 @@
67
68
  dominant-baseline="central"
68
69
  :transform="`translate(${ word.x }, ${ word.y }) rotate(${ word.angle })`"
69
70
  :data-cy="`origam-chart-word-cloud-word-${ word.index }`"
70
- tabindex="0"
71
+ tabindex="-1"
72
+ data-chart-point
71
73
  role="button"
72
74
  :aria-label="`${ word.text }: ${ formatValue(word.value) }`"
73
75
  @click="onWordActivate(word, $event)"
@@ -141,6 +143,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
141
143
  import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
142
144
  import { useChartSize } from "../../composables/Chart/chart-size.composable";
143
145
  import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
146
+ import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
144
147
  import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
145
148
  import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
146
149
  import { useDimension } from "../../composables/Commons/dimension.composable";
@@ -237,6 +240,7 @@ const { headerTypographyStyles } = useChartHeaderTypography({
237
240
  }
238
241
  });
239
242
  const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.wordCloud);
243
+ const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
240
244
  const fontScale = computed(() => Math.min(
241
245
  svgWidth.value / CHART_SIZE_FALLBACK.wordCloud.width,
242
246
  svgHeight.value / CHART_SIZE_FALLBACK.wordCloud.height
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveChartRovingTarget = resolveChartRovingTarget;
7
+ exports.useChartRoving = useChartRoving;
8
+ var _vue = require("vue");
9
+ var _chart = require("../../consts/Chart/chart.const.cjs");
10
+ function resolveChartRovingTarget(series, current, action) {
11
+ if (!series.length) return -1;
12
+ if (action === "first") return 0;
13
+ if (action === "last") return series.length - 1;
14
+ const keys = [...new Set(series)];
15
+ const vertical = action === "nextSeries" || action === "previousSeries";
16
+ const step = action === "next" || action === "nextSeries" ? 1 : -1;
17
+ if (vertical && keys.length > 1) {
18
+ const target = keys.indexOf(series[current] ?? "") + step;
19
+ if (target < 0 || target >= keys.length) return current;
20
+ const position = series.slice(0, current).filter(key => key === series[current]).length;
21
+ const inTarget = series.flatMap((key, index) => key === keys[target] ? [index] : []);
22
+ return inTarget[Math.min(position, inTarget.length - 1)] ?? current;
23
+ }
24
+ const group = vertical ? series.map((_, index) => index) : series.flatMap((key, index) => key === series[current] ? [index] : []);
25
+ const next = group.indexOf(current) + step;
26
+ return group[next] ?? current;
27
+ }
28
+ function useChartRoving(svgRef) {
29
+ let activeIndex = 0;
30
+ let host = null;
31
+ const points = () => [...(svgRef.value?.querySelectorAll(_chart.CHART_POINT_SELECTOR) ?? [])];
32
+ const sync = () => {
33
+ const items = points();
34
+ activeIndex = Math.max(0, Math.min(activeIndex, items.length - 1));
35
+ items.forEach((el, index) => {
36
+ const value = index === activeIndex ? "0" : "-1";
37
+ if (el.getAttribute("tabindex") !== value) el.setAttribute("tabindex", value);
38
+ });
39
+ };
40
+ const onFocusin = event => {
41
+ const index = points().indexOf(event.target);
42
+ if (index < 0 || index === activeIndex) return;
43
+ activeIndex = index;
44
+ sync();
45
+ };
46
+ const onKeydown = event => {
47
+ const action = _chart.CHART_ROVING_KEY_ACTIONS[event.key];
48
+ if (!action || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;
49
+ const items = points();
50
+ const current = items.indexOf(event.target);
51
+ if (current < 0) return;
52
+ event.preventDefault();
53
+ const target = resolveChartRovingTarget(items.map(el => el.getAttribute(_chart.CHART_SERIES_ATTR) ?? ""), current, action);
54
+ if (target < 0 || target === current) return;
55
+ activeIndex = target;
56
+ sync();
57
+ items[target]?.focus();
58
+ };
59
+ (0, _vue.onMounted)(() => {
60
+ sync();
61
+ host = svgRef.value?.parentElement ?? null;
62
+ host?.addEventListener("focusin", onFocusin);
63
+ });
64
+ (0, _vue.onBeforeUnmount)(() => host?.removeEventListener("focusin", onFocusin));
65
+ (0, _vue.onUpdated)(sync);
66
+ return {
67
+ onKeydown
68
+ };
69
+ }
@@ -0,0 +1,33 @@
1
+ import { type Ref } from 'vue';
2
+ import type { IChartRoving } from '../../interfaces/Chart/chart-roving.interface';
3
+ import type { TChartRovingAction } from '../../types/Chart/chart.type';
4
+ /*********************************************************
5
+ * resolveChartRovingTarget
6
+ *
7
+ * @description
8
+ * Pure navigation rule of the roving tabindex (#1333): from the point at
9
+ * `current`, returns the index of the point `action` leads to.
10
+ * `series[i]` is the series key of the i-th point in DOM order.
11
+ * Left/Right stay inside the current series; Up/Down jump to the adjacent
12
+ * series at the same position (clamped when that series is shorter).
13
+ * With a single series the vertical arrows behave like Left/Right.
14
+ * Nothing wraps: at an end the focus stays where it is.
15
+ ********************************************************/
16
+ export declare function resolveChartRovingTarget(series: string[], current: number, action: TChartRovingAction): number;
17
+ /*********************************************************
18
+ * useChartRoving
19
+ *
20
+ * @description
21
+ * Gives a chart ONE tab stop (WAI-ARIA roving tabindex, WCAG 2.1.1 / 2.4.3).
22
+ * The points carry `data-chart-point` and a static `tabindex="-1"`.
23
+ * This composable promotes the last active one (else the first) to
24
+ * `tabindex="0"` after mount and after each update, and moves it with the
25
+ * arrow keys. Bind `onKeydown` on the chart `<svg>`; `svgRef` is the template
26
+ * ref of that `<svg>`.
27
+ *
28
+ * @description
29
+ * The focus listener lives on the svg's PARENT, never on the svg: Blink makes
30
+ * an SVG element keyboard-focusable as soon as it has a focus / focusin
31
+ * listener, which would add a second tab stop (the svg itself).
32
+ ********************************************************/
33
+ export declare function useChartRoving(svgRef: Ref<SVGSVGElement | null | undefined>): IChartRoving;
@@ -0,0 +1,64 @@
1
+ import { onBeforeUnmount, onMounted, onUpdated } from "vue";
2
+ import {
3
+ CHART_POINT_SELECTOR,
4
+ CHART_ROVING_KEY_ACTIONS,
5
+ CHART_SERIES_ATTR
6
+ } from "../../consts/Chart/chart.const.js";
7
+ export function resolveChartRovingTarget(series, current, action) {
8
+ if (!series.length) return -1;
9
+ if (action === "first") return 0;
10
+ if (action === "last") return series.length - 1;
11
+ const keys = [...new Set(series)];
12
+ const vertical = action === "nextSeries" || action === "previousSeries";
13
+ const step = action === "next" || action === "nextSeries" ? 1 : -1;
14
+ if (vertical && keys.length > 1) {
15
+ const target = keys.indexOf(series[current] ?? "") + step;
16
+ if (target < 0 || target >= keys.length) return current;
17
+ const position = series.slice(0, current).filter((key) => key === series[current]).length;
18
+ const inTarget = series.flatMap((key, index) => key === keys[target] ? [index] : []);
19
+ return inTarget[Math.min(position, inTarget.length - 1)] ?? current;
20
+ }
21
+ const group = vertical ? series.map((_, index) => index) : series.flatMap((key, index) => key === series[current] ? [index] : []);
22
+ const next = group.indexOf(current) + step;
23
+ return group[next] ?? current;
24
+ }
25
+ export function useChartRoving(svgRef) {
26
+ let activeIndex = 0;
27
+ let host = null;
28
+ const points = () => [...svgRef.value?.querySelectorAll(CHART_POINT_SELECTOR) ?? []];
29
+ const sync = () => {
30
+ const items = points();
31
+ activeIndex = Math.max(0, Math.min(activeIndex, items.length - 1));
32
+ items.forEach((el, index) => {
33
+ const value = index === activeIndex ? "0" : "-1";
34
+ if (el.getAttribute("tabindex") !== value) el.setAttribute("tabindex", value);
35
+ });
36
+ };
37
+ const onFocusin = (event) => {
38
+ const index = points().indexOf(event.target);
39
+ if (index < 0 || index === activeIndex) return;
40
+ activeIndex = index;
41
+ sync();
42
+ };
43
+ const onKeydown = (event) => {
44
+ const action = CHART_ROVING_KEY_ACTIONS[event.key];
45
+ if (!action || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;
46
+ const items = points();
47
+ const current = items.indexOf(event.target);
48
+ if (current < 0) return;
49
+ event.preventDefault();
50
+ const target = resolveChartRovingTarget(items.map((el) => el.getAttribute(CHART_SERIES_ATTR) ?? ""), current, action);
51
+ if (target < 0 || target === current) return;
52
+ activeIndex = target;
53
+ sync();
54
+ items[target]?.focus();
55
+ };
56
+ onMounted(() => {
57
+ sync();
58
+ host = svgRef.value?.parentElement ?? null;
59
+ host?.addEventListener("focusin", onFocusin);
60
+ });
61
+ onBeforeUnmount(() => host?.removeEventListener("focusin", onFocusin));
62
+ onUpdated(sync);
63
+ return { onKeydown };
64
+ }
@@ -1692,4 +1692,16 @@ Object.keys(_chartSize).forEach(function (key) {
1692
1692
  return _chartSize[key];
1693
1693
  }
1694
1694
  });
1695
+ });
1696
+ var _chartRoving = require("./Chart/chart-roving.composable.cjs");
1697
+ Object.keys(_chartRoving).forEach(function (key) {
1698
+ if (key === "default" || key === "__esModule") return;
1699
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1700
+ if (key in exports && exports[key] === _chartRoving[key]) return;
1701
+ Object.defineProperty(exports, key, {
1702
+ enumerable: true,
1703
+ get: function () {
1704
+ return _chartRoving[key];
1705
+ }
1706
+ });
1695
1707
  });
@@ -151,3 +151,4 @@ export * from './Chart/chart-animation.composable';
151
151
  export * from './Chart/chart-header-typography.composable';
152
152
  export * from './Chart/chart-zoom.composable';
153
153
  export * from './Chart/chart-size.composable';
154
+ export * from './Chart/chart-roving.composable';
@@ -139,3 +139,4 @@ export * from "./Chart/chart-animation.composable.js";
139
139
  export * from "./Chart/chart-header-typography.composable.js";
140
140
  export * from "./Chart/chart-zoom.composable.js";
141
141
  export * from "./Chart/chart-size.composable.js";
142
+ export * from "./Chart/chart-roving.composable.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CHART_Y_TICK_COUNT = exports.CHART_TICK_LABEL_PRECISION_FACTOR = exports.CHART_SVG_ROLE = exports.CHART_SLICE_LABEL_PREFIX = exports.CHART_SIZE_FALLBACK = exports.CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_DEFAULT_RADIUS = exports.CHART_RANGE_SELECTOR_DEFAULT_BUTTONS = exports.CHART_RADAR_RADIUS_INSET = exports.CHART_RADAR_MIN_RADIUS = exports.CHART_RADAR_MARKER_RADIUS = exports.CHART_POINT_MARKER_RADIUS = exports.CHART_PLOT_LINE_LABEL_TOP_OFFSET = exports.CHART_PLOT_LINE_LABEL_OFFSET = exports.CHART_PLOT_LINE_DEFAULT_WIDTH = exports.CHART_PLOT_BAND_DEFAULT_OPACITY = exports.CHART_PIE_RADIUS_INSET = exports.CHART_PIE_MIN_RADIUS = exports.CHART_PERCENT_TICK_STEP = exports.CHART_PERCENT_MIN = exports.CHART_PERCENT_MAX = exports.CHART_NICE_STEP_LADDER = exports.CHART_EPSILON = exports.CHART_DEFAULT_PALETTE = exports.CHART_DASH_ARRAY_SOLID = exports.CHART_DASH_ARRAY_DOTTED = exports.CHART_DASH_ARRAY_DASHED = exports.CHART_COLOR_FALLBACK = exports.CHART_BAR_SLOT_FILL_RATIO = exports.CHART_AXIS_LABEL_MIN_GAP = exports.CHART_AXIS_LABEL_CHAR_WIDTH = exports.CHART_ASPECT_RATIO = exports.CHART_ANNOTATION_LABEL_PADDING = exports.CHART_ANNOTATION_LABEL_MIN_WIDTH = exports.CHART_ANNOTATION_LABEL_HEIGHT = exports.CHART_ANNOTATION_LABEL_CHAR_WIDTH = exports.CHART_ANNOTATION_DEFAULT_WIDTH = exports.CHART_ANNOTATION_DEFAULT_RADIUS = exports.CHART_ANNOTATION_DEFAULT_DY = exports.CHART_ANNOTATION_ARROWHEAD_WIDTH_FACTOR = exports.CHART_ANNOTATION_ARROWHEAD_SPREAD = exports.CHART_ANNOTATION_ARROWHEAD_PRECISION = exports.CHART_ANNOTATION_ARROWHEAD_MIN_SIZE = exports.CHART_ANIMATION_DURATION_DEFAULT = void 0;
6
+ exports.CHART_Y_TICK_COUNT = exports.CHART_TICK_LABEL_PRECISION_FACTOR = exports.CHART_SVG_ROLE = exports.CHART_SLICE_LABEL_PREFIX = exports.CHART_SIZE_FALLBACK = exports.CHART_SERIES_ATTR = exports.CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_DEFAULT_RADIUS = exports.CHART_ROVING_KEY_ACTIONS = exports.CHART_RANGE_SELECTOR_DEFAULT_BUTTONS = exports.CHART_RADAR_RADIUS_INSET = exports.CHART_RADAR_MIN_RADIUS = exports.CHART_RADAR_MARKER_RADIUS = exports.CHART_POINT_SELECTOR = exports.CHART_POINT_MARKER_RADIUS = exports.CHART_POINT_ATTR = exports.CHART_PLOT_LINE_LABEL_TOP_OFFSET = exports.CHART_PLOT_LINE_LABEL_OFFSET = exports.CHART_PLOT_LINE_DEFAULT_WIDTH = exports.CHART_PLOT_BAND_DEFAULT_OPACITY = exports.CHART_PIE_RADIUS_INSET = exports.CHART_PIE_MIN_RADIUS = exports.CHART_PERCENT_TICK_STEP = exports.CHART_PERCENT_MIN = exports.CHART_PERCENT_MAX = exports.CHART_NICE_STEP_LADDER = exports.CHART_EPSILON = exports.CHART_DEFAULT_PALETTE = exports.CHART_DASH_ARRAY_SOLID = exports.CHART_DASH_ARRAY_DOTTED = exports.CHART_DASH_ARRAY_DASHED = exports.CHART_COLOR_FALLBACK = exports.CHART_BAR_SLOT_FILL_RATIO = exports.CHART_AXIS_LABEL_MIN_GAP = exports.CHART_AXIS_LABEL_CHAR_WIDTH = exports.CHART_ASPECT_RATIO = exports.CHART_ANNOTATION_LABEL_PADDING = exports.CHART_ANNOTATION_LABEL_MIN_WIDTH = exports.CHART_ANNOTATION_LABEL_HEIGHT = exports.CHART_ANNOTATION_LABEL_CHAR_WIDTH = exports.CHART_ANNOTATION_DEFAULT_WIDTH = exports.CHART_ANNOTATION_DEFAULT_RADIUS = exports.CHART_ANNOTATION_DEFAULT_DY = exports.CHART_ANNOTATION_ARROWHEAD_WIDTH_FACTOR = exports.CHART_ANNOTATION_ARROWHEAD_SPREAD = exports.CHART_ANNOTATION_ARROWHEAD_PRECISION = exports.CHART_ANNOTATION_ARROWHEAD_MIN_SIZE = exports.CHART_ANIMATION_DURATION_DEFAULT = void 0;
7
7
  var _intent = require("../../enums/Commons/intent.enum.cjs");
8
8
  const CHART_Y_TICK_COUNT = exports.CHART_Y_TICK_COUNT = 5;
9
9
  const CHART_ANIMATION_DURATION_DEFAULT = exports.CHART_ANIMATION_DURATION_DEFAULT = 600;
@@ -76,6 +76,17 @@ const CHART_SCATTER_MIN_RADIUS = exports.CHART_SCATTER_MIN_RADIUS = 5;
76
76
  const CHART_SCATTER_MAX_RADIUS = exports.CHART_SCATTER_MAX_RADIUS = 36;
77
77
  const CHART_SLICE_LABEL_PREFIX = exports.CHART_SLICE_LABEL_PREFIX = "Slice";
78
78
  const CHART_SVG_ROLE = exports.CHART_SVG_ROLE = "group";
79
+ const CHART_POINT_ATTR = exports.CHART_POINT_ATTR = "data-chart-point";
80
+ const CHART_POINT_SELECTOR = exports.CHART_POINT_SELECTOR = `[${CHART_POINT_ATTR}]`;
81
+ const CHART_SERIES_ATTR = exports.CHART_SERIES_ATTR = "data-chart-series";
82
+ const CHART_ROVING_KEY_ACTIONS = exports.CHART_ROVING_KEY_ACTIONS = {
83
+ ArrowRight: "next",
84
+ ArrowLeft: "previous",
85
+ ArrowDown: "nextSeries",
86
+ ArrowUp: "previousSeries",
87
+ Home: "first",
88
+ End: "last"
89
+ };
79
90
  const CHART_AXIS_LABEL_CHAR_WIDTH = exports.CHART_AXIS_LABEL_CHAR_WIDTH = 8;
80
91
  const CHART_AXIS_LABEL_MIN_GAP = exports.CHART_AXIS_LABEL_MIN_GAP = 8;
81
92
  const CHART_SIZE_FALLBACK = exports.CHART_SIZE_FALLBACK = {
@@ -1,3 +1,4 @@
1
+ import type { TChartRovingAction } from '../../types/Chart/chart.type';
1
2
  import type { TIntent } from '../../types/Commons/intent.type';
2
3
  /**
3
4
  * How many Y-axis ticks `<OrigamChart>` draws by default. The
@@ -260,7 +261,7 @@ export declare const CHART_SLICE_LABEL_PREFIX = "Slice";
260
261
  *
261
262
  * @description
262
263
  * Role of the root `<svg>` of every chart whose data points are focusable
263
- * (`role="button"` + `tabindex="0"`). It is `group`, never `img`: an `img`
264
+ * (`role="button"`, one roving tab stop per chart, #1333). It is `group`, never `img`: an `img`
264
265
  * renders its subtree presentational, so a screen reader announces only the
265
266
  * picture while the keyboard stops on each point (axe `nested-interactive`,
266
267
  * WCAG 4.1.2, #1318 and #1153).
@@ -268,6 +269,44 @@ export declare const CHART_SLICE_LABEL_PREFIX = "Slice";
268
269
  * focusable points be announced.
269
270
  ********************************************************/
270
271
  export declare const CHART_SVG_ROLE = "group";
272
+ /*********************************************************
273
+ * CHART_POINT_ATTR
274
+ *
275
+ * @description
276
+ * Boolean data attribute carried by every focusable data point of a chart
277
+ * (`role="button"`). It is what `useChartRoving` selects: the other
278
+ * `role="button"` of a chart (the zoom-reset control) keep their own tab
279
+ * stop (#1333).
280
+ ********************************************************/
281
+ export declare const CHART_POINT_ATTR = "data-chart-point";
282
+ /*********************************************************
283
+ * CHART_POINT_SELECTOR
284
+ *
285
+ * @description
286
+ * CSS selector matching the focusable data points of a chart.
287
+ ********************************************************/
288
+ export declare const CHART_POINT_SELECTOR = "[data-chart-point]";
289
+ /*********************************************************
290
+ * CHART_SERIES_ATTR
291
+ *
292
+ * @description
293
+ * Optional data attribute naming the series (or row) a point belongs to.
294
+ * ArrowUp / ArrowDown move between these groups at the same position.
295
+ * Points without it form a single series, for which the vertical arrows
296
+ * behave like ArrowLeft / ArrowRight (the listbox / radio-group pattern),
297
+ * so a vertical key is never dead.
298
+ ********************************************************/
299
+ export declare const CHART_SERIES_ATTR = "data-chart-series";
300
+ /*********************************************************
301
+ * CHART_ROVING_KEY_ACTIONS
302
+ *
303
+ * @description
304
+ * Keyboard model of the single tab stop of a chart (#1333):
305
+ * Left/Right = previous/next point, Up/Down = previous/next series,
306
+ * Home/End = first/last point. Enter and Space stay handled by each point
307
+ * (same emit as a click); Tab is left to the browser and exits the chart.
308
+ ********************************************************/
309
+ export declare const CHART_ROVING_KEY_ACTIONS: Readonly<Record<string, TChartRovingAction>>;
271
310
  /*********************************************************
272
311
  * CHART_AXIS_LABEL_CHAR_WIDTH / CHART_AXIS_LABEL_MIN_GAP — décimation (#1325)
273
312
  *
@@ -61,6 +61,17 @@ export const CHART_SCATTER_MIN_RADIUS = 5;
61
61
  export const CHART_SCATTER_MAX_RADIUS = 36;
62
62
  export const CHART_SLICE_LABEL_PREFIX = "Slice";
63
63
  export const CHART_SVG_ROLE = "group";
64
+ export const CHART_POINT_ATTR = "data-chart-point";
65
+ export const CHART_POINT_SELECTOR = `[${CHART_POINT_ATTR}]`;
66
+ export const CHART_SERIES_ATTR = "data-chart-series";
67
+ export const CHART_ROVING_KEY_ACTIONS = {
68
+ ArrowRight: "next",
69
+ ArrowLeft: "previous",
70
+ ArrowDown: "nextSeries",
71
+ ArrowUp: "previousSeries",
72
+ Home: "first",
73
+ End: "last"
74
+ };
64
75
  export const CHART_AXIS_LABEL_CHAR_WIDTH = 8;
65
76
  export const CHART_AXIS_LABEL_MIN_GAP = 8;
66
77
  export const CHART_SIZE_FALLBACK = {
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,12 @@
1
+ /*********************************************************
2
+ * IChartRoving
3
+ *
4
+ * @description
5
+ * Handler returned by `useChartRoving`, to bind on the chart `<svg>` with
6
+ * `@keydown`: Arrow / Home / End navigation between the points of the chart.
7
+ * The composable also keeps the single tab stop in sync with the rendered
8
+ * points (mount, update, focus).
9
+ ********************************************************/
10
+ export interface IChartRoving {
11
+ onKeydown: (event: KeyboardEvent) => void;
12
+ }
@@ -3116,6 +3116,17 @@ Object.keys(_chartGauge).forEach(function (key) {
3116
3116
  }
3117
3117
  });
3118
3118
  });
3119
+ var _chartRoving = require("./Chart/chart-roving.interface.cjs");
3120
+ Object.keys(_chartRoving).forEach(function (key) {
3121
+ if (key === "default" || key === "__esModule") return;
3122
+ if (key in exports && exports[key] === _chartRoving[key]) return;
3123
+ Object.defineProperty(exports, key, {
3124
+ enumerable: true,
3125
+ get: function () {
3126
+ return _chartRoving[key];
3127
+ }
3128
+ });
3129
+ });
3119
3130
  var _chartPyramid = require("./Chart/chart-pyramid.interface.cjs");
3120
3131
  Object.keys(_chartPyramid).forEach(function (key) {
3121
3132
  if (key === "default" || key === "__esModule") return;
@@ -281,6 +281,7 @@ export * from './Chart/chart-cartesian.interface';
281
281
  export * from './Chart/chart-polar.interface';
282
282
  export * from './Chart/chart-radar.interface';
283
283
  export * from './Chart/chart-gauge.interface';
284
+ export * from './Chart/chart-roving.interface';
284
285
  export * from './Chart/chart-pyramid.interface';
285
286
  export * from './Chart/chart-honeycomb.interface';
286
287
  export * from './Chart/chart-treemap.interface';
@@ -281,6 +281,7 @@ export * from "./Chart/chart-cartesian.interface.js";
281
281
  export * from "./Chart/chart-polar.interface.js";
282
282
  export * from "./Chart/chart-radar.interface.js";
283
283
  export * from "./Chart/chart-gauge.interface.js";
284
+ export * from "./Chart/chart-roving.interface.js";
284
285
  export * from "./Chart/chart-pyramid.interface.js";
285
286
  export * from "./Chart/chart-honeycomb.interface.js";
286
287
  export * from "./Chart/chart-treemap.interface.js";
@@ -54,3 +54,11 @@ export type TOrigamChart = InstanceType<typeof OrigamChart>;
54
54
  * interchangeable and neither replaces the other.
55
55
  */
56
56
  export type TPathPoint = [number, number];
57
+ /*********************************************************
58
+ * TChartRovingAction
59
+ *
60
+ * @description
61
+ * Movement requested by a navigation key inside a chart (roving tabindex,
62
+ * #1333): previous / next point, previous / next series, first / last point.
63
+ ********************************************************/
64
+ export type TChartRovingAction = 'next' | 'previous' | 'nextSeries' | 'previousSeries' | 'first' | 'last';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.37.39",
3
+ "version": "2.37.40",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [