Skip to content

Commit e4c4afe

Browse files
committed
v8.2.2
1 parent 8ff5bca commit e4c4afe

File tree

720 files changed

+44769
-37627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

720 files changed

+44769
-37627
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highcharts",
3-
"version": "8.2.0",
3+
"version": "8.2.2",
44
"main": "highcharts.js",
55
"license": "https://www.highcharts.com/license",
66
"types": "highcharts.d.ts"

es-modules/Accessibility/Accessibility.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
'use strict';
1313
import ChartUtilities from './Utils/ChartUtilities.js';
1414
import H from '../Core/Globals.js';
15+
var doc = H.doc;
1516
import KeyboardNavigationHandler from './KeyboardNavigationHandler.js';
17+
import CartesianSeries from '../Core/Series/CartesianSeries.js';
1618
import O from '../Core/Options.js';
1719
var defaultOptions = O.defaultOptions;
1820
import Point from '../Core/Series/Point.js';
1921
import U from '../Core/Utilities.js';
2022
var addEvent = U.addEvent, extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
21-
var doc = H.win.document;
2223
import AccessibilityComponent from './AccessibilityComponent.js';
2324
import KeyboardNavigation from './KeyboardNavigation.js';
2425
import LegendComponent from './Components/LegendComponent.js';
@@ -258,7 +259,7 @@ addEvent(Point, 'update', function () {
258259
});
259260
});
260261
['update', 'updatedData', 'remove'].forEach(function (event) {
261-
addEvent(H.Series, event, function () {
262+
addEvent(CartesianSeries, event, function () {
262263
if (this.chart.accessibility) {
263264
this.chart.a11yDirty = true;
264265
}

es-modules/Accessibility/AccessibilityComponent.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@
99
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1010
*
1111
* */
12-
'use strict';
13-
import H from '../Core/Globals.js';
14-
var win = H.win, doc = win.document;
15-
import U from '../Core/Utilities.js';
16-
var extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
17-
import HTMLUtilities from './Utils/HTMLUtilities.js';
18-
var removeElement = HTMLUtilities.removeElement, getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
1912
import ChartUtilities from './Utils/ChartUtilities.js';
2013
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
21-
import EventProvider from './Utils/EventProvider.js';
2214
import DOMElementProvider from './Utils/DOMElementProvider.js';
15+
import EventProvider from './Utils/EventProvider.js';
16+
import H from '../Core/Globals.js';
17+
var doc = H.doc, win = H.win;
18+
import HTMLUtilities from './Utils/HTMLUtilities.js';
19+
var removeElement = HTMLUtilities.removeElement, getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
20+
import U from '../Core/Utilities.js';
21+
var extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
2322
/* eslint-disable valid-jsdoc */
2423
/** @lends Highcharts.AccessibilityComponent */
2524
var functionsToOverrideByDerivedClasses = {

es-modules/Accessibility/Components/ContainerComponent.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1010
*
1111
* */
12-
'use strict';
12+
import AccessibilityComponent from '../AccessibilityComponent.js';
13+
import ChartUtilities from '../Utils/ChartUtilities.js';
14+
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT, getChartTitle = ChartUtilities.getChartTitle;
1315
import H from '../../Core/Globals.js';
14-
var doc = H.win.document;
15-
import U from '../../Core/Utilities.js';
16-
var extend = U.extend;
16+
var doc = H.doc;
1717
import HTMLUtilities from '../Utils/HTMLUtilities.js';
1818
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
19-
import ChartUtilities from '../Utils/ChartUtilities.js';
20-
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT, getChartTitle = ChartUtilities.getChartTitle;
21-
import AccessibilityComponent from '../AccessibilityComponent.js';
19+
import U from '../../Core/Utilities.js';
20+
var extend = U.extend;
2221
/* eslint-disable valid-jsdoc */
2322
/**
2423
* The ContainerComponent class

es-modules/Accessibility/Components/InfoRegionsComponent.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1010
*
1111
* */
12-
'use strict';
1312
import H from '../../Core/Globals.js';
1413
var doc = H.doc;
1514
import U from '../../Core/Utilities.js';

es-modules/Accessibility/Components/RangeSelectorComponent.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
*
1111
* */
1212
'use strict';
13-
import H from '../../Core/Globals.js';
14-
import U from '../../Core/Utilities.js';
15-
var extend = U.extend;
1613
import AccessibilityComponent from '../AccessibilityComponent.js';
17-
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
1814
import ChartUtilities from '../Utils/ChartUtilities.js';
1915
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
16+
import H from '../../Core/Globals.js';
2017
import HTMLUtilities from '../Utils/HTMLUtilities.js';
2118
var setElAttrs = HTMLUtilities.setElAttrs;
19+
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
20+
import U from '../../Core/Utilities.js';
21+
var extend = U.extend;
2222
/* eslint-disable no-invalid-this, valid-jsdoc */
2323
/**
2424
* @private

es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* */
1212
'use strict';
13-
import H from '../../../Core/Globals.js';
13+
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
1414
import U from '../../../Core/Utilities.js';
1515
var addEvent = U.addEvent, merge = U.merge;
1616
/* eslint-disable no-invalid-this, valid-jsdoc */
@@ -121,7 +121,7 @@ function addForceMarkersEvents() {
121121
* Keep track of forcing markers.
122122
* @private
123123
*/
124-
addEvent(H.Series, 'render', function () {
124+
addEvent(CartesianSeries, 'render', function () {
125125
var series = this, options = series.options;
126126
if (shouldForceMarkers(series)) {
127127
if (options.marker && options.marker.enabled === false) {
@@ -141,14 +141,14 @@ function addForceMarkersEvents() {
141141
* Keep track of options to reset markers to if no longer forced.
142142
* @private
143143
*/
144-
addEvent(H.Series, 'afterSetOptions', function (e) {
144+
addEvent(CartesianSeries, 'afterSetOptions', function (e) {
145145
this.resetA11yMarkerOptions = merge(e.options.marker || {}, this.userOptions.marker || {});
146146
});
147147
/**
148148
* Process marker graphics after render
149149
* @private
150150
*/
151-
addEvent(H.Series, 'afterRender', function () {
151+
addEvent(CartesianSeries, 'afterRender', function () {
152152
var series = this;
153153
// For styled mode the rendered graphic does not reflect the style
154154
// options, and we need to add/remove classes to achieve the same.

es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* */
1212
'use strict';
1313
import H from '../../../Core/Globals.js';
14+
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
1415
import U from '../../../Core/Utilities.js';
1516
var extend = U.extend, defined = U.defined;
1617
import ChartUtilities from '../../Utils/ChartUtilities.js';
@@ -92,13 +93,13 @@ extend(NewDataAnnouncer.prototype, {
9293
e.addEvent(chart, 'afterDrilldown', function () {
9394
announcer.lastAnnouncementTime = 0;
9495
});
95-
e.addEvent(H.Series, 'updatedData', function () {
96+
e.addEvent(CartesianSeries, 'updatedData', function () {
9697
announcer.onSeriesUpdatedData(this);
9798
});
9899
e.addEvent(chart, 'afterAddSeries', function (e) {
99100
announcer.onSeriesAdded(e.series);
100101
});
101-
e.addEvent(H.Series, 'addPoint', function (e) {
102+
e.addEvent(CartesianSeries, 'addPoint', function (e) {
102103
announcer.onPointAdded(e.point);
103104
});
104105
e.addEvent(chart, 'redraw', function () {

es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
*
1111
* */
1212
'use strict';
13-
import U from '../../../Core/Utilities.js';
14-
var find = U.find, format = U.format, isNumber = U.isNumber, numberFormat = U.numberFormat, pick = U.pick, defined = U.defined;
1513
import AnnotationsA11y from '../AnnotationsA11y.js';
1614
var getPointAnnotationTexts = AnnotationsA11y.getPointAnnotationTexts;
17-
import HTMLUtilities from '../../Utils/HTMLUtilities.js';
18-
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML, reverseChildNodes = HTMLUtilities.reverseChildNodes, stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
1915
import ChartUtilities from '../../Utils/ChartUtilities.js';
2016
var getAxisDescription = ChartUtilities.getAxisDescription, getSeriesFirstPointElement = ChartUtilities.getSeriesFirstPointElement, getSeriesA11yElement = ChartUtilities.getSeriesA11yElement, unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
17+
import HTMLUtilities from '../../Utils/HTMLUtilities.js';
18+
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML, reverseChildNodes = HTMLUtilities.reverseChildNodes, stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
2119
import Tooltip from '../../../Core/Tooltip.js';
20+
import U from '../../../Core/Utilities.js';
21+
var find = U.find, format = U.format, isNumber = U.isNumber, numberFormat = U.numberFormat, pick = U.pick, defined = U.defined;
2222
/* eslint-disable valid-jsdoc */
2323
/**
2424
* @private

es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
*
1111
* */
1212
'use strict';
13+
import Series from '../../../Core/Series/Series.js';
14+
var seriesTypes = Series.seriesTypes;
15+
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
1316
import Chart from '../../../Core/Chart/Chart.js';
14-
import H from '../../../Core/Globals.js';
1517
import Point from '../../../Core/Series/Point.js';
1618
import U from '../../../Core/Utilities.js';
1719
var defined = U.defined, extend = U.extend;
@@ -26,10 +28,10 @@ import '../../../Series/PieSeries.js';
2628
* Set for which series types it makes sense to move to the closest point with
2729
* up/down arrows, and which series types should just move to next series.
2830
*/
29-
H.Series.prototype.keyboardMoveVertical = true;
31+
CartesianSeries.prototype.keyboardMoveVertical = true;
3032
['column', 'pie'].forEach(function (type) {
31-
if (H.seriesTypes[type]) {
32-
H.seriesTypes[type].prototype.keyboardMoveVertical = false;
33+
if (seriesTypes[type]) {
34+
seriesTypes[type].prototype.keyboardMoveVertical = false;
3335
}
3436
});
3537
/**
@@ -234,7 +236,7 @@ Chart.prototype.highlightAdjacentPoint = function (next) {
234236
*
235237
* @return {boolean|Highcharts.Point}
236238
*/
237-
H.Series.prototype.highlightFirstValidPoint = function () {
239+
CartesianSeries.prototype.highlightFirstValidPoint = function () {
238240
var curPoint = this.chart.highlightedPoint, start = (curPoint && curPoint.series) === this ?
239241
getPointIndex(curPoint) :
240242
0, points = this.points, len = points.length;
@@ -400,7 +402,7 @@ extend(SeriesKeyboardNavigation.prototype, /** @lends Highcharts.SeriesKeyboardN
400402
*/
401403
init: function () {
402404
var keyboardNavigation = this, chart = this.chart, e = this.eventProvider = new EventProvider();
403-
e.addEvent(H.Series, 'destroy', function () {
405+
e.addEvent(CartesianSeries, 'destroy', function () {
404406
return keyboardNavigation.onSeriesDestroy(this);
405407
});
406408
e.addEvent(chart, 'afterDrilldown', function () {

es-modules/Accessibility/Components/ZoomComponent.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
*
1111
* */
1212
'use strict';
13-
import H from '../../Core/Globals.js';
14-
import U from '../../Core/Utilities.js';
15-
var extend = U.extend, pick = U.pick;
1613
import AccessibilityComponent from '../AccessibilityComponent.js';
17-
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
1814
import ChartUtilities from '../Utils/ChartUtilities.js';
1915
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
16+
import H from '../../Core/Globals.js';
17+
var noop = H.noop;
2018
import HTMLUtilities from '../Utils/HTMLUtilities.js';
21-
var setElAttrs = HTMLUtilities.setElAttrs, removeElement = HTMLUtilities.removeElement;
19+
var removeElement = HTMLUtilities.removeElement, setElAttrs = HTMLUtilities.setElAttrs;
20+
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
21+
import U from '../../Core/Utilities.js';
22+
var extend = U.extend, pick = U.pick;
2223
/* eslint-disable no-invalid-this, valid-jsdoc */
2324
/**
2425
* @private
@@ -57,7 +58,7 @@ H.Axis.prototype.panStep = function (direction, granularity) {
5758
* @class
5859
* @name Highcharts.ZoomComponent
5960
*/
60-
var ZoomComponent = function () { };
61+
var ZoomComponent = noop;
6162
ZoomComponent.prototype = new AccessibilityComponent();
6263
extend(ZoomComponent.prototype, /** @lends Highcharts.ZoomComponent */ {
6364
/**

es-modules/Accessibility/KeyboardNavigation.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ KeyboardNavigation.prototype = {
8080
this.update();
8181
ep.addEvent(this.tabindexContainer, 'keydown', function (e) { return _this.onKeydown(e); });
8282
ep.addEvent(this.tabindexContainer, 'focus', function (e) { return _this.onFocus(e); });
83-
ep.addEvent(doc, 'mouseup', function () { return _this.onMouseUp(); });
84-
ep.addEvent(chart.renderTo, 'mousedown', function () {
85-
_this.isClickingChart = true;
83+
['mouseup', 'touchend'].forEach(function (eventName) {
84+
return ep.addEvent(doc, eventName, function () { return _this.onMouseUp(); });
85+
});
86+
['mousedown', 'touchstart'].forEach(function (eventName) {
87+
return ep.addEvent(chart.renderTo, eventName, function () {
88+
_this.isClickingChart = true;
89+
});
8690
});
8791
ep.addEvent(chart.renderTo, 'mouseover', function () {
8892
_this.pointerIsOverChart = true;

es-modules/Accessibility/Options/Options.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1010
*
1111
* */
12-
'use strict';
1312
/**
1413
* Formatter callback for the accessibility announcement.
1514
*
@@ -76,7 +75,7 @@ var options = {
7675
* [accessibility module](https://code.highcharts.com/modules/accessibility.js)
7776
* to be loaded. For a description of the module and information
7877
* on its features, see
79-
* [Highcharts Accessibility](https://www.highcharts.com/docs/chart-concepts/accessibility).
78+
* [Highcharts Accessibility](https://www.highcharts.com/docs/accessibility/accessibility-module).
8079
*
8180
* @since 5.0.0
8281
* @requires modules/accessibility

es-modules/Accessibility/Utils/ChartUtilities.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ function getAxisDescription(axis) {
4444
* The DOM element for the point.
4545
*/
4646
function getSeriesFirstPointElement(series) {
47-
if (series.points &&
48-
series.points.length &&
49-
series.points[0].graphic) {
50-
return series.points[0].graphic.element;
47+
var _a, _b;
48+
if ((_a = series.points) === null || _a === void 0 ? void 0 : _a.length) {
49+
var firstPointWithGraphic = find(series.points, function (p) { return !!p.graphic; });
50+
return (_b = firstPointWithGraphic === null || firstPointWithGraphic === void 0 ? void 0 : firstPointWithGraphic.graphic) === null || _b === void 0 ? void 0 : _b.element;
5151
}
5252
}
5353
/**

es-modules/Accessibility/Utils/DOMElementProvider.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
* */
1313
'use strict';
1414
import H from '../../Core/Globals.js';
15-
var doc = H.win.document;
16-
import U from '../../Core/Utilities.js';
17-
var extend = U.extend;
15+
var doc = H.doc;
1816
import HTMLUtilities from './HTMLUtilities.js';
1917
var removeElement = HTMLUtilities.removeElement;
18+
import U from '../../Core/Utilities.js';
19+
var extend = U.extend;
2020
/* eslint-disable no-invalid-this, valid-jsdoc */
2121
/**
2222
* @private

es-modules/Accessibility/Utils/HTMLUtilities.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1010
*
1111
* */
12-
'use strict';
12+
import H from '../../Core/Globals.js';
13+
var doc = H.doc, win = H.win;
1314
import U from '../../Core/Utilities.js';
1415
var merge = U.merge;
15-
import H from '../../Core/Globals.js';
16-
var win = H.win, doc = win.document;
1716
/* eslint-disable valid-jsdoc */
1817
/**
1918
* @private

0 commit comments

Comments
 (0)