@progress/kendo-charts 1.33.0-dev.202311231237 → 1.33.0-dev.202311291107
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/categorical-chart.js +1 -1
- package/dist/es/chart/funnel-chart/funnel-chart.js +4 -1
- package/dist/es/chart/heatmap-chart/heatmap-chart.js +1 -1
- package/dist/es/chart/line-chart/line-point.js +4 -4
- package/dist/es/chart/mixins/accessibility-attributes-mixin.js +5 -5
- package/dist/es/chart/pie-chart/pie-chart.js +4 -1
- package/dist/es/chart/scatter-charts/scatter-chart.js +1 -1
- package/dist/es/common/get-aria-template.js +15 -0
- package/dist/es/common.js +1 -0
- package/dist/es/gauges/gauge.js +1 -0
- package/dist/es2015/chart/categorical-chart.js +1 -1
- package/dist/es2015/chart/funnel-chart/funnel-chart.js +4 -1
- package/dist/es2015/chart/heatmap-chart/heatmap-chart.js +1 -1
- package/dist/es2015/chart/line-chart/line-point.js +4 -4
- package/dist/es2015/chart/mixins/accessibility-attributes-mixin.js +5 -5
- package/dist/es2015/chart/pie-chart/pie-chart.js +4 -1
- package/dist/es2015/chart/scatter-charts/scatter-chart.js +1 -1
- package/dist/es2015/common/get-aria-template.js +13 -0
- package/dist/es2015/common.js +1 -0
- package/dist/es2015/gauges/gauge.js +1 -0
- package/dist/npm/main.js +33 -10
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -335,7 +335,7 @@ var CategoricalChart = (function (ChartElement) {
|
|
|
335
335
|
excluded: [
|
|
336
336
|
"data", "aggregate", "_events", "tooltip", "content", "template",
|
|
337
337
|
"visual", "toggle", "_outOfRangeMinPoint", "_outOfRangeMaxPoint",
|
|
338
|
-
"drilldownSeriesFactory", "ariaTemplate"
|
|
338
|
+
"drilldownSeriesFactory", "ariaTemplate", "ariaContent"
|
|
339
339
|
]
|
|
340
340
|
};
|
|
341
341
|
|
|
@@ -87,7 +87,10 @@ var FunnelChart = (function (ChartElement) {
|
|
|
87
87
|
series: series,
|
|
88
88
|
dataItem: fields.dataItem,
|
|
89
89
|
index: fields.index
|
|
90
|
-
}, { defaults: series._defaults, excluded: [
|
|
90
|
+
}, { defaults: series._defaults, excluded: [
|
|
91
|
+
"data", "content", "template", "toggle", "visual",
|
|
92
|
+
"ariaTemplate", "ariaContent"
|
|
93
|
+
] });
|
|
91
94
|
};
|
|
92
95
|
|
|
93
96
|
FunnelChart.prototype.createSegment = function createSegment (value, fields) {
|
|
@@ -7,8 +7,7 @@ import NoteMixin from '../mixins/note-mixin';
|
|
|
7
7
|
import { LINE_MARKER_SIZE, FADEIN, INITIAL_ANIMATION_DURATION, BORDER_BRIGHTNESS, TOOLTIP_OFFSET, ABOVE, BELOW, CHART_POINT_ROLE, CHART_POINT_CLASSNAME, CHART_POINT_ROLE_DESCRIPTION } from '../constants';
|
|
8
8
|
|
|
9
9
|
import { WHITE, CIRCLE, CENTER, TOP, BOTTOM, LEFT, HIGHLIGHT_ZINDEX } from '../../common/constants';
|
|
10
|
-
import { deepExtend, defined, getTemplate, valueOrDefault, getSpacing } from '../../common';
|
|
11
|
-
import TemplateService from '../../services/template-service';
|
|
10
|
+
import { deepExtend, defined, getTemplate, getAriaTemplate, valueOrDefault, getSpacing } from '../../common';
|
|
12
11
|
import guid from '../../core/utils/guid';
|
|
13
12
|
|
|
14
13
|
var LinePoint = (function (ChartElement) {
|
|
@@ -87,9 +86,10 @@ var LinePoint = (function (ChartElement) {
|
|
|
87
86
|
|
|
88
87
|
LinePoint.prototype.getAriaLabelText = function getAriaLabelText () {
|
|
89
88
|
var labels = this.options.labels;
|
|
89
|
+
var ariaTemplate = getAriaTemplate(labels);
|
|
90
90
|
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
91
|
+
if (ariaTemplate) {
|
|
92
|
+
return ariaTemplate(this.pointData());
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
return this.getLabelText(labels);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import addAccessibilityAttributesToVisual from "../../core/utils/add-accessibility-attributes-to-visual";
|
|
2
|
-
import { deepExtend } from "../../common";
|
|
2
|
+
import { deepExtend, getAriaTemplate } from "../../common";
|
|
3
3
|
import guid from '../../core/utils/guid';
|
|
4
|
-
import TemplateService from "../../services/template-service";
|
|
5
4
|
|
|
6
5
|
var AccessibilityAttributesMixin = {
|
|
7
6
|
addAccessibilityAttributesToVisual: function() {
|
|
@@ -12,9 +11,10 @@ var AccessibilityAttributesMixin = {
|
|
|
12
11
|
|
|
13
12
|
getAriaLabelText: function getAriaLabelText() {
|
|
14
13
|
var labels = this.options.labels;
|
|
14
|
+
var ariaTemplate = getAriaTemplate(labels);
|
|
15
15
|
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
16
|
+
if (ariaTemplate) {
|
|
17
|
+
return ariaTemplate(this.pointData());
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return this.getLabelText(labels);
|
|
@@ -33,4 +33,4 @@ var AccessibilityAttributesMixin = {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export default AccessibilityAttributesMixin;
|
|
36
|
+
export default AccessibilityAttributesMixin;
|
|
@@ -114,7 +114,10 @@ var PieChart = (function (ChartElement) {
|
|
|
114
114
|
dataItem: fields.dataItem,
|
|
115
115
|
category: fields.category,
|
|
116
116
|
percentage: fields.percentage
|
|
117
|
-
}, { defaults: series._defaults, excluded: [
|
|
117
|
+
}, { defaults: series._defaults, excluded: [
|
|
118
|
+
"data", "content", "template", "visual", "toggle",
|
|
119
|
+
"ariaTemplate", "ariaContent"
|
|
120
|
+
] });
|
|
118
121
|
};
|
|
119
122
|
|
|
120
123
|
PieChart.prototype.addValue = function addValue (value, sector, fields) {
|
|
@@ -172,7 +172,7 @@ var ScatterChart = (function (ChartElement) {
|
|
|
172
172
|
excluded: [
|
|
173
173
|
"data", "tooltip", "content", "template", "visual", "toggle",
|
|
174
174
|
"_outOfRangeMinPoint", "_outOfRangeMaxPoint",
|
|
175
|
-
"drilldownSeriesFactory", "ariaTemplate"
|
|
175
|
+
"drilldownSeriesFactory", "ariaTemplate", "ariaContent"
|
|
176
176
|
]
|
|
177
177
|
};
|
|
178
178
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import TemplateService from '../services/template-service';
|
|
2
|
+
import isFunction from './is-function';
|
|
3
|
+
|
|
4
|
+
export default function getTemplate(options) {
|
|
5
|
+
if ( options === void 0 ) options = {};
|
|
6
|
+
|
|
7
|
+
var ariaTemplate;
|
|
8
|
+
if (options.ariaTemplate) {
|
|
9
|
+
options.ariaTemplate = ariaTemplate = TemplateService.compile(options.ariaTemplate);
|
|
10
|
+
} else if (isFunction(options.ariaContent)) {
|
|
11
|
+
ariaTemplate = options.ariaContent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return ariaTemplate;
|
|
15
|
+
}
|
package/dist/es/common.js
CHANGED
|
@@ -10,6 +10,7 @@ export { default as deepExtend } from './common/deep-extend';
|
|
|
10
10
|
export { default as elementStyles } from './common/element-styles';
|
|
11
11
|
export { default as getSpacing } from './common/get-spacing';
|
|
12
12
|
export { default as getTemplate } from './common/get-template';
|
|
13
|
+
export { default as getAriaTemplate } from './common/get-aria-template';
|
|
13
14
|
export { default as getter } from './common/getter';
|
|
14
15
|
export { default as grep } from './common/grep';
|
|
15
16
|
export { default as hasClasses } from './common/has-classes';
|
package/dist/es/gauges/gauge.js
CHANGED
|
@@ -316,7 +316,7 @@ class CategoricalChart extends ChartElement {
|
|
|
316
316
|
excluded: [
|
|
317
317
|
"data", "aggregate", "_events", "tooltip", "content", "template",
|
|
318
318
|
"visual", "toggle", "_outOfRangeMinPoint", "_outOfRangeMaxPoint",
|
|
319
|
-
"drilldownSeriesFactory", "ariaTemplate"
|
|
319
|
+
"drilldownSeriesFactory", "ariaTemplate", "ariaContent"
|
|
320
320
|
]
|
|
321
321
|
};
|
|
322
322
|
|
|
@@ -77,7 +77,10 @@ class FunnelChart extends ChartElement {
|
|
|
77
77
|
series: series,
|
|
78
78
|
dataItem: fields.dataItem,
|
|
79
79
|
index: fields.index
|
|
80
|
-
}, { defaults: series._defaults, excluded: [
|
|
80
|
+
}, { defaults: series._defaults, excluded: [
|
|
81
|
+
"data", "content", "template", "toggle", "visual",
|
|
82
|
+
"ariaTemplate", "ariaContent"
|
|
83
|
+
] });
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
createSegment(value, fields) {
|
|
@@ -7,8 +7,7 @@ import NoteMixin from '../mixins/note-mixin';
|
|
|
7
7
|
import { LINE_MARKER_SIZE, FADEIN, INITIAL_ANIMATION_DURATION, BORDER_BRIGHTNESS, TOOLTIP_OFFSET, ABOVE, BELOW, CHART_POINT_ROLE, CHART_POINT_CLASSNAME, CHART_POINT_ROLE_DESCRIPTION } from '../constants';
|
|
8
8
|
|
|
9
9
|
import { WHITE, CIRCLE, CENTER, TOP, BOTTOM, LEFT, HIGHLIGHT_ZINDEX } from '../../common/constants';
|
|
10
|
-
import { deepExtend, defined, getTemplate, valueOrDefault, getSpacing } from '../../common';
|
|
11
|
-
import TemplateService from '../../services/template-service';
|
|
10
|
+
import { deepExtend, defined, getTemplate, getAriaTemplate, valueOrDefault, getSpacing } from '../../common';
|
|
12
11
|
import guid from '../../core/utils/guid';
|
|
13
12
|
|
|
14
13
|
class LinePoint extends ChartElement {
|
|
@@ -82,9 +81,10 @@ class LinePoint extends ChartElement {
|
|
|
82
81
|
|
|
83
82
|
getAriaLabelText() {
|
|
84
83
|
const labels = this.options.labels;
|
|
84
|
+
const ariaTemplate = getAriaTemplate(labels);
|
|
85
85
|
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
86
|
+
if (ariaTemplate) {
|
|
87
|
+
return ariaTemplate(this.pointData());
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
return this.getLabelText(labels);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import addAccessibilityAttributesToVisual from "../../core/utils/add-accessibility-attributes-to-visual";
|
|
2
|
-
import { deepExtend } from "../../common";
|
|
2
|
+
import { deepExtend, getAriaTemplate } from "../../common";
|
|
3
3
|
import guid from '../../core/utils/guid';
|
|
4
|
-
import TemplateService from "../../services/template-service";
|
|
5
4
|
|
|
6
5
|
const AccessibilityAttributesMixin = {
|
|
7
6
|
addAccessibilityAttributesToVisual: function() {
|
|
@@ -12,9 +11,10 @@ const AccessibilityAttributesMixin = {
|
|
|
12
11
|
|
|
13
12
|
getAriaLabelText() {
|
|
14
13
|
const labels = this.options.labels;
|
|
14
|
+
const ariaTemplate = getAriaTemplate(labels);
|
|
15
15
|
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
16
|
+
if (ariaTemplate) {
|
|
17
|
+
return ariaTemplate(this.pointData());
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return this.getLabelText(labels);
|
|
@@ -33,4 +33,4 @@ const AccessibilityAttributesMixin = {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export default AccessibilityAttributesMixin;
|
|
36
|
+
export default AccessibilityAttributesMixin;
|
|
@@ -101,7 +101,10 @@ class PieChart extends ChartElement {
|
|
|
101
101
|
dataItem: fields.dataItem,
|
|
102
102
|
category: fields.category,
|
|
103
103
|
percentage: fields.percentage
|
|
104
|
-
}, { defaults: series._defaults, excluded: [
|
|
104
|
+
}, { defaults: series._defaults, excluded: [
|
|
105
|
+
"data", "content", "template", "visual", "toggle",
|
|
106
|
+
"ariaTemplate", "ariaContent"
|
|
107
|
+
] });
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
addValue(value, sector, fields) {
|
|
@@ -161,7 +161,7 @@ class ScatterChart extends ChartElement {
|
|
|
161
161
|
excluded: [
|
|
162
162
|
"data", "tooltip", "content", "template", "visual", "toggle",
|
|
163
163
|
"_outOfRangeMinPoint", "_outOfRangeMaxPoint",
|
|
164
|
-
"drilldownSeriesFactory", "ariaTemplate"
|
|
164
|
+
"drilldownSeriesFactory", "ariaTemplate", "ariaContent"
|
|
165
165
|
]
|
|
166
166
|
};
|
|
167
167
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import TemplateService from '../services/template-service';
|
|
2
|
+
import isFunction from './is-function';
|
|
3
|
+
|
|
4
|
+
export default function getTemplate(options = {}) {
|
|
5
|
+
let ariaTemplate;
|
|
6
|
+
if (options.ariaTemplate) {
|
|
7
|
+
options.ariaTemplate = ariaTemplate = TemplateService.compile(options.ariaTemplate);
|
|
8
|
+
} else if (isFunction(options.ariaContent)) {
|
|
9
|
+
ariaTemplate = options.ariaContent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return ariaTemplate;
|
|
13
|
+
}
|
package/dist/es2015/common.js
CHANGED
|
@@ -10,6 +10,7 @@ export { default as deepExtend } from './common/deep-extend';
|
|
|
10
10
|
export { default as elementStyles } from './common/element-styles';
|
|
11
11
|
export { default as getSpacing } from './common/get-spacing';
|
|
12
12
|
export { default as getTemplate } from './common/get-template';
|
|
13
|
+
export { default as getAriaTemplate } from './common/get-aria-template';
|
|
13
14
|
export { default as getter } from './common/getter';
|
|
14
15
|
export { default as grep } from './common/grep';
|
|
15
16
|
export { default as hasClasses } from './common/has-classes';
|