@progress/kendo-charts 2.0.0-dev.202401090916 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/legend/legend-item.js +3 -3
- package/dist/es/chart/mixins/accessibility-attributes-mixin.js +3 -3
- package/dist/es/chart/range-area-chart/range-area-point.js +2 -0
- package/dist/es2015/chart/legend/legend-item.js +3 -3
- package/dist/es2015/chart/mixins/accessibility-attributes-mixin.js +3 -3
- package/dist/es2015/chart/range-area-chart/range-area-point.js +2 -0
- package/dist/npm/main.js +8 -7
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -178,11 +178,13 @@ var LegendItem = (function (BoxElement) {
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
LegendItem.prototype.focusVisual = function focusVisual () {
|
|
181
|
+
this.visual.options.set("id", this._id);
|
|
181
182
|
this.toggleFocusHighlight(true);
|
|
182
183
|
this._highlightMarkers();
|
|
183
184
|
};
|
|
184
185
|
|
|
185
186
|
LegendItem.prototype.clearFocusFromVisual = function clearFocusFromVisual () {
|
|
187
|
+
this.visual.options.set("id", "");
|
|
186
188
|
this.toggleFocusHighlight(false);
|
|
187
189
|
this._restoreMarkers();
|
|
188
190
|
};
|
|
@@ -249,9 +251,7 @@ var LegendItem = (function (BoxElement) {
|
|
|
249
251
|
if (this.options.visible) {
|
|
250
252
|
var accessibilityOptions = deepExtend({
|
|
251
253
|
ariaLabel: options.text
|
|
252
|
-
}, options.accessibility
|
|
253
|
-
id: this._id
|
|
254
|
-
});
|
|
254
|
+
}, options.accessibility);
|
|
255
255
|
|
|
256
256
|
addAccessibilityAttributesToVisual(this.visual, accessibilityOptions);
|
|
257
257
|
}
|
|
@@ -8,9 +8,7 @@ var AccessibilityAttributesMixin = {
|
|
|
8
8
|
|
|
9
9
|
var accessibilityOptions = deepExtend({
|
|
10
10
|
ariaLabel: this.getAriaLabelText()
|
|
11
|
-
}, this.options.accessibility
|
|
12
|
-
id: this._id
|
|
13
|
-
});
|
|
11
|
+
}, this.options.accessibility);
|
|
14
12
|
|
|
15
13
|
addAccessibilityAttributesToVisual(this.visual, accessibilityOptions);
|
|
16
14
|
},
|
|
@@ -27,10 +25,12 @@ var AccessibilityAttributesMixin = {
|
|
|
27
25
|
},
|
|
28
26
|
|
|
29
27
|
focusVisual: function focusVisual() {
|
|
28
|
+
this.visual.options.set("id", this._id);
|
|
30
29
|
this.toggleFocusHighlight(true);
|
|
31
30
|
},
|
|
32
31
|
|
|
33
32
|
clearFocusFromVisual: function clearFocusFromVisual() {
|
|
33
|
+
this.visual.options.set("id", "");
|
|
34
34
|
this.toggleFocusHighlight(false);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -8,6 +8,7 @@ import NoteMixin from '../mixins/note-mixin';
|
|
|
8
8
|
import { LINE_MARKER_SIZE, FADEIN, INITIAL_ANIMATION_DURATION, TOOLTIP_OFFSET, ABOVE, BELOW, CHART_POINT_ROLE, CHART_POINT_CLASSNAME, CHART_POINT_ROLE_DESCRIPTION } from '../constants';
|
|
9
9
|
import { WHITE, CIRCLE, HIGHLIGHT_ZINDEX, LEFT, RIGHT, BOTTOM, CENTER } from '../../common/constants';
|
|
10
10
|
import { deepExtend, valueOrDefault, getSpacing } from '../../common';
|
|
11
|
+
import guid from '../../core/utils/guid';
|
|
11
12
|
|
|
12
13
|
var AUTO = 'auto';
|
|
13
14
|
var DEFAULT_FROM_FORMAT = '{0}';
|
|
@@ -21,6 +22,7 @@ var RangeAreaPoint = (function (ChartElement) {
|
|
|
21
22
|
this.options = options;
|
|
22
23
|
this.aboveAxis = valueOrDefault(this.options.aboveAxis, true);
|
|
23
24
|
this.tooltipTracking = true;
|
|
25
|
+
this._id = guid();
|
|
24
26
|
this.initLabelsFormat();
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -170,11 +170,13 @@ class LegendItem extends BoxElement {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
focusVisual() {
|
|
173
|
+
this.visual.options.set("id", this._id);
|
|
173
174
|
this.toggleFocusHighlight(true);
|
|
174
175
|
this._highlightMarkers();
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
clearFocusFromVisual() {
|
|
179
|
+
this.visual.options.set("id", "");
|
|
178
180
|
this.toggleFocusHighlight(false);
|
|
179
181
|
this._restoreMarkers();
|
|
180
182
|
}
|
|
@@ -241,9 +243,7 @@ class LegendItem extends BoxElement {
|
|
|
241
243
|
if (this.options.visible) {
|
|
242
244
|
const accessibilityOptions = deepExtend({
|
|
243
245
|
ariaLabel: options.text
|
|
244
|
-
}, options.accessibility
|
|
245
|
-
id: this._id
|
|
246
|
-
});
|
|
246
|
+
}, options.accessibility);
|
|
247
247
|
|
|
248
248
|
addAccessibilityAttributesToVisual(this.visual, accessibilityOptions);
|
|
249
249
|
}
|
|
@@ -8,9 +8,7 @@ const AccessibilityAttributesMixin = {
|
|
|
8
8
|
|
|
9
9
|
const accessibilityOptions = deepExtend({
|
|
10
10
|
ariaLabel: this.getAriaLabelText()
|
|
11
|
-
}, this.options.accessibility
|
|
12
|
-
id: this._id
|
|
13
|
-
});
|
|
11
|
+
}, this.options.accessibility);
|
|
14
12
|
|
|
15
13
|
addAccessibilityAttributesToVisual(this.visual, accessibilityOptions);
|
|
16
14
|
},
|
|
@@ -27,10 +25,12 @@ const AccessibilityAttributesMixin = {
|
|
|
27
25
|
},
|
|
28
26
|
|
|
29
27
|
focusVisual() {
|
|
28
|
+
this.visual.options.set("id", this._id);
|
|
30
29
|
this.toggleFocusHighlight(true);
|
|
31
30
|
},
|
|
32
31
|
|
|
33
32
|
clearFocusFromVisual() {
|
|
33
|
+
this.visual.options.set("id", "");
|
|
34
34
|
this.toggleFocusHighlight(false);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -8,6 +8,7 @@ import NoteMixin from '../mixins/note-mixin';
|
|
|
8
8
|
import { LINE_MARKER_SIZE, FADEIN, INITIAL_ANIMATION_DURATION, TOOLTIP_OFFSET, ABOVE, BELOW, CHART_POINT_ROLE, CHART_POINT_CLASSNAME, CHART_POINT_ROLE_DESCRIPTION } from '../constants';
|
|
9
9
|
import { WHITE, CIRCLE, HIGHLIGHT_ZINDEX, LEFT, RIGHT, BOTTOM, CENTER } from '../../common/constants';
|
|
10
10
|
import { deepExtend, valueOrDefault, getSpacing } from '../../common';
|
|
11
|
+
import guid from '../../core/utils/guid';
|
|
11
12
|
|
|
12
13
|
const AUTO = 'auto';
|
|
13
14
|
const DEFAULT_FROM_FORMAT = '{0}';
|
|
@@ -21,6 +22,7 @@ class RangeAreaPoint extends ChartElement {
|
|
|
21
22
|
this.options = options;
|
|
22
23
|
this.aboveAxis = valueOrDefault(this.options.aboveAxis, true);
|
|
23
24
|
this.tooltipTracking = true;
|
|
25
|
+
this._id = guid();
|
|
24
26
|
this.initLabelsFormat();
|
|
25
27
|
}
|
|
26
28
|
|