@progress/kendo-charts 2.4.0-dev.202405201104 → 2.4.0-dev.202405211537

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.
@@ -19,6 +19,46 @@ export interface SankeyLinkHighlight {
19
19
  inactiveOpacity?: number;
20
20
  }
21
21
 
22
+ /**
23
+ * Represents the focus highlight options of the Sankey node and link elements.
24
+ *
25
+ * @default `{ border: { width: 2, color: '#000', opacity: 1 } }`
26
+ */
27
+ export interface SankeyFocusHighlight {
28
+ /**
29
+ * The border options of the focus highlight.
30
+ */
31
+ border?: {
32
+ width?: number;
33
+ color?: string;
34
+ opacity?: number;
35
+ };
36
+ }
37
+
38
+ /**
39
+ * Represents the options of the Sankey node label.
40
+ */
41
+ export interface SankeyNodeLabel {
42
+ /**
43
+ * The aria-label template of the Sankey node label.
44
+ *
45
+ * @default '({ node }) => node.label.text'
46
+ */
47
+ ariaTemplate?: ((data: { node: SankeyNodeDataItem }) => string);
48
+ }
49
+
50
+ /**
51
+ * Represents the options of the Sankey link label.
52
+ */
53
+ export interface SankeyLinkLabel {
54
+ /**
55
+ * The aria-label template of the Sankey link label.
56
+ *
57
+ * @default '({ link }) => `${link.source.label.text} to ${link.target.label.text}`'
58
+ */
59
+ ariaTemplate?: ((data: { link: SankeyLinkDataItem }) => string);
60
+ }
61
+
22
62
  /**
23
63
  * Represents the offset option of the Sankey node and label elements.
24
64
  */
@@ -451,7 +491,16 @@ export interface SankeyTooltip {
451
491
  * Represents the default link options of the Sankey component.
452
492
  * These settings will be applied to all links unless overridden by individual data items.
453
493
  */
454
- export interface SankeyLinkDefaults extends Omit<SankeyLink, 'sourceId' | 'targetId' | 'value'> { }
494
+ export interface SankeyLinkDefaults extends Omit<SankeyLink, 'sourceId' | 'targetId' | 'value'> {
495
+ /**
496
+ * The focus highlight options of the Sankey link elements.
497
+ */
498
+ focusHighlight?: SankeyFocusHighlight;
499
+ /**
500
+ * The labels options of the Sankey link.
501
+ */
502
+ labels?: SankeyLinkLabel;
503
+ }
455
504
 
456
505
  /**
457
506
  * Represents the default label options of the Sankey component.
@@ -463,7 +512,17 @@ export interface SankeyLabelDefaults extends Omit<SankeyLabel, 'text'> { }
463
512
  * Represents the default node options of the Sankey component.
464
513
  * These settings will be applied to all nodes unless overridden by individual data items.
465
514
  */
466
- export interface SankeyNodeDefaults extends Omit<SankeyNode, 'id' | 'label'> { }
515
+ export interface SankeyNodeDefaults extends Omit<SankeyNode, 'id' | 'label'> {
516
+ /**
517
+ * The focus highlight options of the Sankey node elements.
518
+ */
519
+ focusHighlight?: SankeyFocusHighlight;
520
+
521
+ /**
522
+ * The labels options of the Sankey node.
523
+ */
524
+ labels?: SankeyNodeLabel;
525
+ }
467
526
 
468
527
  /**
469
528
  * Represents the Sankey data object.
@@ -517,6 +576,10 @@ export interface SankeyOptions {
517
576
  * The tooltip configuration options of the Sankey.
518
577
  */
519
578
  tooltip?: SankeyTooltip;
579
+ /**
580
+ * If set to `true`, the Sankey keyboard navigation will be disabled.
581
+ */
582
+ disableKeyboardNavigation?: boolean;
520
583
  }
521
584
 
522
585
  /**