Skip to content

Commit

Permalink
v8.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Oct 22, 2020
1 parent 8ff5bca commit e4c4afe
Show file tree
Hide file tree
Showing 720 changed files with 44,769 additions and 37,627 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highcharts",
"version": "8.2.0",
"version": "8.2.2",
"main": "highcharts.js",
"license": "https://www.highcharts.com/license",
"types": "highcharts.d.ts"
Expand Down
5 changes: 3 additions & 2 deletions es-modules/Accessibility/Accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
'use strict';
import ChartUtilities from './Utils/ChartUtilities.js';
import H from '../Core/Globals.js';
var doc = H.doc;
import KeyboardNavigationHandler from './KeyboardNavigationHandler.js';
import CartesianSeries from '../Core/Series/CartesianSeries.js';
import O from '../Core/Options.js';
var defaultOptions = O.defaultOptions;
import Point from '../Core/Series/Point.js';
import U from '../Core/Utilities.js';
var addEvent = U.addEvent, extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
var doc = H.win.document;
import AccessibilityComponent from './AccessibilityComponent.js';
import KeyboardNavigation from './KeyboardNavigation.js';
import LegendComponent from './Components/LegendComponent.js';
Expand Down Expand Up @@ -258,7 +259,7 @@ addEvent(Point, 'update', function () {
});
});
['update', 'updatedData', 'remove'].forEach(function (event) {
addEvent(H.Series, event, function () {
addEvent(CartesianSeries, event, function () {
if (this.chart.accessibility) {
this.chart.a11yDirty = true;
}
Expand Down
15 changes: 7 additions & 8 deletions es-modules/Accessibility/AccessibilityComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../Core/Globals.js';
var win = H.win, doc = win.document;
import U from '../Core/Utilities.js';
var extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
import HTMLUtilities from './Utils/HTMLUtilities.js';
var removeElement = HTMLUtilities.removeElement, getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
import ChartUtilities from './Utils/ChartUtilities.js';
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
import EventProvider from './Utils/EventProvider.js';
import DOMElementProvider from './Utils/DOMElementProvider.js';
import EventProvider from './Utils/EventProvider.js';
import H from '../Core/Globals.js';
var doc = H.doc, win = H.win;
import HTMLUtilities from './Utils/HTMLUtilities.js';
var removeElement = HTMLUtilities.removeElement, getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
import U from '../Core/Utilities.js';
var extend = U.extend, fireEvent = U.fireEvent, merge = U.merge;
/* eslint-disable valid-jsdoc */
/** @lends Highcharts.AccessibilityComponent */
var functionsToOverrideByDerivedClasses = {
Expand Down
13 changes: 6 additions & 7 deletions es-modules/Accessibility/Components/ContainerComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import AccessibilityComponent from '../AccessibilityComponent.js';
import ChartUtilities from '../Utils/ChartUtilities.js';
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT, getChartTitle = ChartUtilities.getChartTitle;
import H from '../../Core/Globals.js';
var doc = H.win.document;
import U from '../../Core/Utilities.js';
var extend = U.extend;
var doc = H.doc;
import HTMLUtilities from '../Utils/HTMLUtilities.js';
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
import ChartUtilities from '../Utils/ChartUtilities.js';
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT, getChartTitle = ChartUtilities.getChartTitle;
import AccessibilityComponent from '../AccessibilityComponent.js';
import U from '../../Core/Utilities.js';
var extend = U.extend;
/* eslint-disable valid-jsdoc */
/**
* The ContainerComponent class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../../Core/Globals.js';
var doc = H.doc;
import U from '../../Core/Utilities.js';
Expand Down
8 changes: 4 additions & 4 deletions es-modules/Accessibility/Components/RangeSelectorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
*
* */
'use strict';
import H from '../../Core/Globals.js';
import U from '../../Core/Utilities.js';
var extend = U.extend;
import AccessibilityComponent from '../AccessibilityComponent.js';
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
import ChartUtilities from '../Utils/ChartUtilities.js';
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
import H from '../../Core/Globals.js';
import HTMLUtilities from '../Utils/HTMLUtilities.js';
var setElAttrs = HTMLUtilities.setElAttrs;
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
import U from '../../Core/Utilities.js';
var extend = U.extend;
/* eslint-disable no-invalid-this, valid-jsdoc */
/**
* @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* */
'use strict';
import H from '../../../Core/Globals.js';
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
import U from '../../../Core/Utilities.js';
var addEvent = U.addEvent, merge = U.merge;
/* eslint-disable no-invalid-this, valid-jsdoc */
Expand Down Expand Up @@ -121,7 +121,7 @@ function addForceMarkersEvents() {
* Keep track of forcing markers.
* @private
*/
addEvent(H.Series, 'render', function () {
addEvent(CartesianSeries, 'render', function () {
var series = this, options = series.options;
if (shouldForceMarkers(series)) {
if (options.marker && options.marker.enabled === false) {
Expand All @@ -141,14 +141,14 @@ function addForceMarkersEvents() {
* Keep track of options to reset markers to if no longer forced.
* @private
*/
addEvent(H.Series, 'afterSetOptions', function (e) {
addEvent(CartesianSeries, 'afterSetOptions', function (e) {
this.resetA11yMarkerOptions = merge(e.options.marker || {}, this.userOptions.marker || {});
});
/**
* Process marker graphics after render
* @private
*/
addEvent(H.Series, 'afterRender', function () {
addEvent(CartesianSeries, 'afterRender', function () {
var series = this;
// For styled mode the rendered graphic does not reflect the style
// options, and we need to add/remove classes to achieve the same.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* */
'use strict';
import H from '../../../Core/Globals.js';
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
import U from '../../../Core/Utilities.js';
var extend = U.extend, defined = U.defined;
import ChartUtilities from '../../Utils/ChartUtilities.js';
Expand Down Expand Up @@ -92,13 +93,13 @@ extend(NewDataAnnouncer.prototype, {
e.addEvent(chart, 'afterDrilldown', function () {
announcer.lastAnnouncementTime = 0;
});
e.addEvent(H.Series, 'updatedData', function () {
e.addEvent(CartesianSeries, 'updatedData', function () {
announcer.onSeriesUpdatedData(this);
});
e.addEvent(chart, 'afterAddSeries', function (e) {
announcer.onSeriesAdded(e.series);
});
e.addEvent(H.Series, 'addPoint', function (e) {
e.addEvent(CartesianSeries, 'addPoint', function (e) {
announcer.onPointAdded(e.point);
});
e.addEvent(chart, 'redraw', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
*
* */
'use strict';
import U from '../../../Core/Utilities.js';
var find = U.find, format = U.format, isNumber = U.isNumber, numberFormat = U.numberFormat, pick = U.pick, defined = U.defined;
import AnnotationsA11y from '../AnnotationsA11y.js';
var getPointAnnotationTexts = AnnotationsA11y.getPointAnnotationTexts;
import HTMLUtilities from '../../Utils/HTMLUtilities.js';
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML, reverseChildNodes = HTMLUtilities.reverseChildNodes, stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
import ChartUtilities from '../../Utils/ChartUtilities.js';
var getAxisDescription = ChartUtilities.getAxisDescription, getSeriesFirstPointElement = ChartUtilities.getSeriesFirstPointElement, getSeriesA11yElement = ChartUtilities.getSeriesA11yElement, unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
import HTMLUtilities from '../../Utils/HTMLUtilities.js';
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML, reverseChildNodes = HTMLUtilities.reverseChildNodes, stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
import Tooltip from '../../../Core/Tooltip.js';
import U from '../../../Core/Utilities.js';
var find = U.find, format = U.format, isNumber = U.isNumber, numberFormat = U.numberFormat, pick = U.pick, defined = U.defined;
/* eslint-disable valid-jsdoc */
/**
* @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
*
* */
'use strict';
import Series from '../../../Core/Series/Series.js';
var seriesTypes = Series.seriesTypes;
import CartesianSeries from '../../../Core/Series/CartesianSeries.js';
import Chart from '../../../Core/Chart/Chart.js';
import H from '../../../Core/Globals.js';
import Point from '../../../Core/Series/Point.js';
import U from '../../../Core/Utilities.js';
var defined = U.defined, extend = U.extend;
Expand All @@ -26,10 +28,10 @@ import '../../../Series/PieSeries.js';
* Set for which series types it makes sense to move to the closest point with
* up/down arrows, and which series types should just move to next series.
*/
H.Series.prototype.keyboardMoveVertical = true;
CartesianSeries.prototype.keyboardMoveVertical = true;
['column', 'pie'].forEach(function (type) {
if (H.seriesTypes[type]) {
H.seriesTypes[type].prototype.keyboardMoveVertical = false;
if (seriesTypes[type]) {
seriesTypes[type].prototype.keyboardMoveVertical = false;
}
});
/**
Expand Down Expand Up @@ -234,7 +236,7 @@ Chart.prototype.highlightAdjacentPoint = function (next) {
*
* @return {boolean|Highcharts.Point}
*/
H.Series.prototype.highlightFirstValidPoint = function () {
CartesianSeries.prototype.highlightFirstValidPoint = function () {
var curPoint = this.chart.highlightedPoint, start = (curPoint && curPoint.series) === this ?
getPointIndex(curPoint) :
0, points = this.points, len = points.length;
Expand Down Expand Up @@ -400,7 +402,7 @@ extend(SeriesKeyboardNavigation.prototype, /** @lends Highcharts.SeriesKeyboardN
*/
init: function () {
var keyboardNavigation = this, chart = this.chart, e = this.eventProvider = new EventProvider();
e.addEvent(H.Series, 'destroy', function () {
e.addEvent(CartesianSeries, 'destroy', function () {
return keyboardNavigation.onSeriesDestroy(this);
});
e.addEvent(chart, 'afterDrilldown', function () {
Expand Down
13 changes: 7 additions & 6 deletions es-modules/Accessibility/Components/ZoomComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
*
* */
'use strict';
import H from '../../Core/Globals.js';
import U from '../../Core/Utilities.js';
var extend = U.extend, pick = U.pick;
import AccessibilityComponent from '../AccessibilityComponent.js';
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
import ChartUtilities from '../Utils/ChartUtilities.js';
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
import H from '../../Core/Globals.js';
var noop = H.noop;
import HTMLUtilities from '../Utils/HTMLUtilities.js';
var setElAttrs = HTMLUtilities.setElAttrs, removeElement = HTMLUtilities.removeElement;
var removeElement = HTMLUtilities.removeElement, setElAttrs = HTMLUtilities.setElAttrs;
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
import U from '../../Core/Utilities.js';
var extend = U.extend, pick = U.pick;
/* eslint-disable no-invalid-this, valid-jsdoc */
/**
* @private
Expand Down Expand Up @@ -57,7 +58,7 @@ H.Axis.prototype.panStep = function (direction, granularity) {
* @class
* @name Highcharts.ZoomComponent
*/
var ZoomComponent = function () { };
var ZoomComponent = noop;
ZoomComponent.prototype = new AccessibilityComponent();
extend(ZoomComponent.prototype, /** @lends Highcharts.ZoomComponent */ {
/**
Expand Down
10 changes: 7 additions & 3 deletions es-modules/Accessibility/KeyboardNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ KeyboardNavigation.prototype = {
this.update();
ep.addEvent(this.tabindexContainer, 'keydown', function (e) { return _this.onKeydown(e); });
ep.addEvent(this.tabindexContainer, 'focus', function (e) { return _this.onFocus(e); });
ep.addEvent(doc, 'mouseup', function () { return _this.onMouseUp(); });
ep.addEvent(chart.renderTo, 'mousedown', function () {
_this.isClickingChart = true;
['mouseup', 'touchend'].forEach(function (eventName) {
return ep.addEvent(doc, eventName, function () { return _this.onMouseUp(); });
});
['mousedown', 'touchstart'].forEach(function (eventName) {
return ep.addEvent(chart.renderTo, eventName, function () {
_this.isClickingChart = true;
});
});
ep.addEvent(chart.renderTo, 'mouseover', function () {
_this.pointerIsOverChart = true;
Expand Down
3 changes: 1 addition & 2 deletions es-modules/Accessibility/Options/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
/**
* Formatter callback for the accessibility announcement.
*
Expand Down Expand Up @@ -76,7 +75,7 @@ var options = {
* [accessibility module](https://code.highcharts.com/modules/accessibility.js)
* to be loaded. For a description of the module and information
* on its features, see
* [Highcharts Accessibility](https://www.highcharts.com/docs/chart-concepts/accessibility).
* [Highcharts Accessibility](https://www.highcharts.com/docs/accessibility/accessibility-module).
*
* @since 5.0.0
* @requires modules/accessibility
Expand Down
8 changes: 4 additions & 4 deletions es-modules/Accessibility/Utils/ChartUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ function getAxisDescription(axis) {
* The DOM element for the point.
*/
function getSeriesFirstPointElement(series) {
if (series.points &&
series.points.length &&
series.points[0].graphic) {
return series.points[0].graphic.element;
var _a, _b;
if ((_a = series.points) === null || _a === void 0 ? void 0 : _a.length) {
var firstPointWithGraphic = find(series.points, function (p) { return !!p.graphic; });
return (_b = firstPointWithGraphic === null || firstPointWithGraphic === void 0 ? void 0 : firstPointWithGraphic.graphic) === null || _b === void 0 ? void 0 : _b.element;
}
}
/**
Expand Down
6 changes: 3 additions & 3 deletions es-modules/Accessibility/Utils/DOMElementProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
* */
'use strict';
import H from '../../Core/Globals.js';
var doc = H.win.document;
import U from '../../Core/Utilities.js';
var extend = U.extend;
var doc = H.doc;
import HTMLUtilities from './HTMLUtilities.js';
var removeElement = HTMLUtilities.removeElement;
import U from '../../Core/Utilities.js';
var extend = U.extend;
/* eslint-disable no-invalid-this, valid-jsdoc */
/**
* @private
Expand Down
5 changes: 2 additions & 3 deletions es-modules/Accessibility/Utils/HTMLUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../../Core/Globals.js';
var doc = H.doc, win = H.win;
import U from '../../Core/Utilities.js';
var merge = U.merge;
import H from '../../Core/Globals.js';
var win = H.win, doc = win.document;
/* eslint-disable valid-jsdoc */
/**
* @private
Expand Down
Loading

0 comments on commit e4c4afe

Please sign in to comment.