cx 24.0.3 → 24.2.1

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.
Files changed (46) hide show
  1. package/dist/charts.js +61 -63
  2. package/dist/data.js +50 -70
  3. package/dist/manifest.js +719 -713
  4. package/dist/svg.js +70 -71
  5. package/dist/ui.js +104 -112
  6. package/dist/util.js +94 -13
  7. package/dist/widgets.js +273 -257
  8. package/package.json +1 -1
  9. package/src/charts/ColorMap.js +4 -6
  10. package/src/charts/axis/Axis.d.ts +96 -96
  11. package/src/charts/axis/Axis.js +252 -252
  12. package/src/charts/axis/TimeAxis.js +7 -6
  13. package/src/data/Expression.js +212 -212
  14. package/src/data/Expression.spec.js +174 -174
  15. package/src/data/StringTemplate.spec.js +105 -105
  16. package/src/ui/Controller.d.ts +182 -182
  17. package/src/ui/FocusManager.js +171 -171
  18. package/src/ui/Format.js +88 -87
  19. package/src/ui/Instance.d.ts +72 -72
  20. package/src/ui/keyboardShortcuts.js +4 -5
  21. package/src/ui/selection/KeySelection.d.ts +1 -1
  22. package/src/ui/selection/PropertySelection.d.ts +1 -1
  23. package/src/ui/selection/PropertySelection.js +2 -4
  24. package/src/ui/selection/Selection.d.ts +1 -1
  25. package/src/util/Format.js +73 -86
  26. package/src/util/date/index.d.ts +10 -9
  27. package/src/util/date/index.js +10 -9
  28. package/src/util/date/parseDateInvariant.d.ts +3 -0
  29. package/src/util/date/parseDateInvariant.js +20 -0
  30. package/src/widgets/form/Calendar.js +27 -26
  31. package/src/widgets/form/ColorField.js +14 -9
  32. package/src/widgets/form/ColorPicker.scss +275 -275
  33. package/src/widgets/form/ColorPicker.variables.scss +22 -22
  34. package/src/widgets/form/DateTimeField.js +18 -11
  35. package/src/widgets/form/DateTimePicker.js +9 -8
  36. package/src/widgets/form/Label.js +88 -88
  37. package/src/widgets/form/LookupField.d.ts +8 -9
  38. package/src/widgets/form/MonthField.js +17 -13
  39. package/src/widgets/form/MonthPicker.js +17 -16
  40. package/src/widgets/form/NumberField.js +8 -4
  41. package/src/widgets/form/TextArea.js +10 -6
  42. package/src/widgets/form/TextField.js +11 -9
  43. package/src/widgets/form/UploadButton.d.ts +34 -34
  44. package/src/widgets/form/index.js +1 -2
  45. package/src/widgets/grid/Grid.d.ts +11 -8
  46. package/src/widgets/grid/Grid.js +3277 -3277
package/dist/charts.js CHANGED
@@ -21,6 +21,7 @@ import {
21
21
  closest,
22
22
  getTopLevelBoundingClientRect,
23
23
  Format,
24
+ parseDateInvariant,
24
25
  zeroTime,
25
26
  } from "cx/util";
26
27
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -36,34 +37,31 @@ import {
36
37
  } from "cx/widgets";
37
38
 
38
39
  function _extends() {
39
- _extends = Object.assign
40
- ? Object.assign.bind()
41
- : function (target) {
42
- for (var i = 1; i < arguments.length; i++) {
43
- var source = arguments[i];
44
- for (var key in source) {
45
- if (Object.prototype.hasOwnProperty.call(source, key)) {
46
- target[key] = source[key];
47
- }
40
+ return (
41
+ (_extends = Object.assign
42
+ ? Object.assign.bind()
43
+ : function (n) {
44
+ for (var e = 1; e < arguments.length; e++) {
45
+ var t = arguments[e];
46
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
48
47
  }
49
- }
50
- return target;
51
- };
52
- return _extends.apply(this, arguments);
48
+ return n;
49
+ }),
50
+ _extends.apply(null, arguments)
51
+ );
53
52
  }
54
- function _inheritsLoose(subClass, superClass) {
55
- subClass.prototype = Object.create(superClass.prototype);
56
- subClass.prototype.constructor = subClass;
57
- _setPrototypeOf(subClass, superClass);
53
+ function _inheritsLoose(t, o) {
54
+ (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
58
55
  }
59
- function _setPrototypeOf(o, p) {
60
- _setPrototypeOf = Object.setPrototypeOf
61
- ? Object.setPrototypeOf.bind()
62
- : function _setPrototypeOf(o, p) {
63
- o.__proto__ = p;
64
- return o;
65
- };
66
- return _setPrototypeOf(o, p);
56
+ function _setPrototypeOf(t, e) {
57
+ return (
58
+ (_setPrototypeOf = Object.setPrototypeOf
59
+ ? Object.setPrototypeOf.bind()
60
+ : function (t, e) {
61
+ return (t.__proto__ = e), t;
62
+ }),
63
+ _setPrototypeOf(t, e)
64
+ );
67
65
  }
68
66
 
69
67
  var Rect = /*#__PURE__*/ (function () {
@@ -156,10 +154,10 @@ Rect.prototype.t = 0; //top
156
154
  Rect.prototype.b = 0; //bottom
157
155
 
158
156
  var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
159
- _inheritsLoose(BoundedObject, _PureContainer);
160
157
  function BoundedObject() {
161
158
  return _PureContainer.apply(this, arguments) || this;
162
159
  }
160
+ _inheritsLoose(BoundedObject, _PureContainer);
163
161
  var _proto = BoundedObject.prototype;
164
162
  _proto.declareData = function declareData() {
165
163
  var _PureContainer$protot;
@@ -221,10 +219,10 @@ BoundedObject.prototype.isPureContainer = false;
221
219
  BoundedObject.prototype.styled = true;
222
220
 
223
221
  var Axis = /*#__PURE__*/ (function (_BoundedObject) {
224
- _inheritsLoose(Axis, _BoundedObject);
225
222
  function Axis() {
226
223
  return _BoundedObject.apply(this, arguments) || this;
227
224
  }
225
+ _inheritsLoose(Axis, _BoundedObject);
228
226
  var _proto = Axis.prototype;
229
227
  _proto.init = function init() {
230
228
  if (this.labelAnchor == "auto") this.labelAnchor = this.vertical ? (this.secondary ? "start" : "end") : "middle";
@@ -474,10 +472,10 @@ Axis.prototype.labelMaxLineLength = 10;
474
472
  Axis.namespace = "ui.svg.chart.axis";
475
473
 
476
474
  var Chart = /*#__PURE__*/ (function (_BoundedObject) {
477
- _inheritsLoose(Chart, _BoundedObject);
478
475
  function Chart() {
479
476
  return _BoundedObject.apply(this, arguments) || this;
480
477
  }
478
+ _inheritsLoose(Chart, _BoundedObject);
481
479
  var _proto = Chart.prototype;
482
480
  _proto.init = function init() {
483
481
  _BoundedObject.prototype.init.call(this);
@@ -532,10 +530,10 @@ Chart.prototype.axesOnTop = false;
532
530
  Widget.alias("chart", Chart);
533
531
 
534
532
  var PieChart = /*#__PURE__*/ (function (_BoundedObject) {
535
- _inheritsLoose(PieChart, _BoundedObject);
536
533
  function PieChart() {
537
534
  return _BoundedObject.apply(this, arguments) || this;
538
535
  }
536
+ _inheritsLoose(PieChart, _BoundedObject);
539
537
  var _proto = PieChart.prototype;
540
538
  _proto.declareData = function declareData() {
541
539
  var _BoundedObject$protot;
@@ -676,10 +674,10 @@ PieChart.prototype.anchors = "0 1 1 0";
676
674
  PieChart.prototype.angle = 360;
677
675
  Widget.alias("pie-slice");
678
676
  var PieSlice = /*#__PURE__*/ (function (_Container) {
679
- _inheritsLoose(PieSlice, _Container);
680
677
  function PieSlice() {
681
678
  return _Container.apply(this, arguments) || this;
682
679
  }
680
+ _inheritsLoose(PieSlice, _Container);
683
681
  var _proto3 = PieSlice.prototype;
684
682
  _proto3.init = function init() {
685
683
  this.selection = Selection.create(this.selection);
@@ -888,10 +886,10 @@ var Pie = PieChart;
888
886
  Pie.Slice = PieSlice;
889
887
 
890
888
  var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
891
- _inheritsLoose(PieLabel, _BoundedObject);
892
889
  function PieLabel() {
893
890
  return _BoundedObject.apply(this, arguments) || this;
894
891
  }
892
+ _inheritsLoose(PieLabel, _BoundedObject);
895
893
  var _proto = PieLabel.prototype;
896
894
  _proto.init = function init() {
897
895
  this.lineStyle = parseStyle(this.lineStyle);
@@ -980,10 +978,10 @@ PieLabel.prototype.baseClass = "pielabel";
980
978
  PieLabel.prototype.styled = true;
981
979
 
982
980
  var PieLabelsContainer = /*#__PURE__*/ (function (_BoundedObject) {
983
- _inheritsLoose(PieLabelsContainer, _BoundedObject);
984
981
  function PieLabelsContainer() {
985
982
  return _BoundedObject.apply(this, arguments) || this;
986
983
  }
984
+ _inheritsLoose(PieLabelsContainer, _BoundedObject);
987
985
  var _proto = PieLabelsContainer.prototype;
988
986
  _proto.prepare = function prepare(context, instance) {
989
987
  _BoundedObject.prototype.prepare.call(this, context, instance);
@@ -1037,10 +1035,10 @@ var PieLabelsContainer = /*#__PURE__*/ (function (_BoundedObject) {
1037
1035
  PieLabelsContainer.prototype.anchors = "0 1 1 0";
1038
1036
 
1039
1037
  var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
1040
- _inheritsLoose(ColumnBarBase, _PureContainer);
1041
1038
  function ColumnBarBase() {
1042
1039
  return _PureContainer.apply(this, arguments) || this;
1043
1040
  }
1041
+ _inheritsLoose(ColumnBarBase, _PureContainer);
1044
1042
  var _proto = ColumnBarBase.prototype;
1045
1043
  _proto.init = function init() {
1046
1044
  this.selection = Selection.create(this.selection);
@@ -1213,10 +1211,10 @@ ColumnBarBase.prototype.hoverChannel = "default";
1213
1211
  ColumnBarBase.prototype.borderRadius = 0;
1214
1212
 
1215
1213
  var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
1216
- _inheritsLoose(Column, _ColumnBarBase);
1217
1214
  function Column() {
1218
1215
  return _ColumnBarBase.apply(this, arguments) || this;
1219
1216
  }
1217
+ _inheritsLoose(Column, _ColumnBarBase);
1220
1218
  var _proto = Column.prototype;
1221
1219
  _proto.init = function init() {
1222
1220
  if (isDefined(this.width)) this.size = this.width;
@@ -1297,10 +1295,10 @@ Column.prototype.minPixelHeight = 0.5;
1297
1295
  Widget.alias("column", Column);
1298
1296
 
1299
1297
  var Bar = /*#__PURE__*/ (function (_ColumnBarBase) {
1300
- _inheritsLoose(Bar, _ColumnBarBase);
1301
1298
  function Bar() {
1302
1299
  return _ColumnBarBase.apply(this, arguments) || this;
1303
1300
  }
1301
+ _inheritsLoose(Bar, _ColumnBarBase);
1304
1302
  var _proto = Bar.prototype;
1305
1303
  _proto.init = function init() {
1306
1304
  if (isDefined(this.height)) this.size = this.height;
@@ -1488,10 +1486,10 @@ function triangle(cx, cy, size, props, options) {
1488
1486
  registerShape("triangle", triangle);
1489
1487
 
1490
1488
  var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1491
- _inheritsLoose(Legend, _HtmlElement);
1492
1489
  function Legend() {
1493
1490
  return _HtmlElement.apply(this, arguments) || this;
1494
1491
  }
1492
+ _inheritsLoose(Legend, _HtmlElement);
1495
1493
  var _proto = Legend.prototype;
1496
1494
  _proto.prepareData = function prepareData(context, instance) {
1497
1495
  var data = instance.data;
@@ -1613,10 +1611,10 @@ Legend.prototype.shape = null;
1613
1611
  Legend.prototype.svgSize = 20;
1614
1612
  Widget.alias("legend", Legend);
1615
1613
  Legend.Scope = /*#__PURE__*/ (function (_PureContainer) {
1616
- _inheritsLoose(_class, _PureContainer);
1617
1614
  function _class() {
1618
1615
  return _PureContainer.apply(this, arguments) || this;
1619
1616
  }
1617
+ _inheritsLoose(_class, _PureContainer);
1620
1618
  var _proto2 = _class.prototype;
1621
1619
  _proto2.explore = function explore(context, instance) {
1622
1620
  context.push("legends", (instance.legends = {}));
@@ -1636,10 +1634,10 @@ Legend.Scope = /*#__PURE__*/ (function (_PureContainer) {
1636
1634
  var LegendScope = Legend.Scope;
1637
1635
 
1638
1636
  var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1639
- _inheritsLoose(LegendEntry, _HtmlElement);
1640
1637
  function LegendEntry() {
1641
1638
  return _HtmlElement.apply(this, arguments) || this;
1642
1639
  }
1640
+ _inheritsLoose(LegendEntry, _HtmlElement);
1643
1641
  var _proto = LegendEntry.prototype;
1644
1642
  _proto.init = function init() {
1645
1643
  this.selection = Selection.create(this.selection);
@@ -1750,10 +1748,10 @@ LegendEntry.prototype.svgSize = 20;
1750
1748
  Widget.alias("legend-entry", LegendEntry);
1751
1749
 
1752
1750
  var ColorMap = /*#__PURE__*/ (function (_Widget) {
1753
- _inheritsLoose(ColorMap, _Widget);
1754
1751
  function ColorMap() {
1755
1752
  return _Widget.apply(this, arguments) || this;
1756
1753
  }
1754
+ _inheritsLoose(ColorMap, _Widget);
1757
1755
  var _proto = ColorMap.prototype;
1758
1756
  _proto.declareData = function declareData() {
1759
1757
  var _Widget$prototype$dec;
@@ -1805,10 +1803,10 @@ ColorMap.prototype.offset = 0;
1805
1803
  ColorMap.prototype.step = null;
1806
1804
  ColorMap.prototype.size = 16;
1807
1805
  var ColorMapScope = /*#__PURE__*/ (function (_PureContainer) {
1808
- _inheritsLoose(ColorMapScope, _PureContainer);
1809
1806
  function ColorMapScope() {
1810
1807
  return _PureContainer.apply(this, arguments) || this;
1811
1808
  }
1809
+ _inheritsLoose(ColorMapScope, _PureContainer);
1812
1810
  var _proto2 = ColorMapScope.prototype;
1813
1811
  _proto2.explore = function explore(context, instance) {
1814
1812
  context.push("colorMaps", (instance.colorMaps = {}));
@@ -1860,10 +1858,10 @@ var ColorIndex = /*#__PURE__*/ (function () {
1860
1858
  })();
1861
1859
 
1862
1860
  var Marker = /*#__PURE__*/ (function (_BoundedObject) {
1863
- _inheritsLoose(Marker, _BoundedObject);
1864
1861
  function Marker() {
1865
1862
  return _BoundedObject.apply(this, arguments) || this;
1866
1863
  }
1864
+ _inheritsLoose(Marker, _BoundedObject);
1867
1865
  var _proto = Marker.prototype;
1868
1866
  _proto.init = function init() {
1869
1867
  this.selection = Selection.create(this.selection);
@@ -2068,10 +2066,10 @@ Marker.prototype.hidden = false;
2068
2066
  Marker.prototype.affectsAxes = true;
2069
2067
  BoundedObject.alias("marker", Marker);
2070
2068
  var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
2071
- _inheritsLoose(MarkerComponent, _VDOM$Component);
2072
2069
  function MarkerComponent() {
2073
2070
  return _VDOM$Component.apply(this, arguments) || this;
2074
2071
  }
2072
+ _inheritsLoose(MarkerComponent, _VDOM$Component);
2075
2073
  var _proto2 = MarkerComponent.prototype;
2076
2074
  _proto2.shouldComponentUpdate = function shouldComponentUpdate(props) {
2077
2075
  return props.shouldUpdate;
@@ -2144,10 +2142,10 @@ var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
2144
2142
  })(VDOM.Component);
2145
2143
 
2146
2144
  var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
2147
- _inheritsLoose(MarkerLine, _BoundedObject);
2148
2145
  function MarkerLine() {
2149
2146
  return _BoundedObject.apply(this, arguments) || this;
2150
2147
  }
2148
+ _inheritsLoose(MarkerLine, _BoundedObject);
2151
2149
  var _proto = MarkerLine.prototype;
2152
2150
  _proto.init = function init() {
2153
2151
  if (isDefined(this.x)) this.x1 = this.x2 = this.x;
@@ -2268,10 +2266,10 @@ MarkerLine.prototype.affectsAxes = true;
2268
2266
  BoundedObject.alias("marker-line", MarkerLine);
2269
2267
 
2270
2268
  var Range = /*#__PURE__*/ (function (_BoundedObject) {
2271
- _inheritsLoose(Range, _BoundedObject);
2272
2269
  function Range() {
2273
2270
  return _BoundedObject.apply(this, arguments) || this;
2274
2271
  }
2272
+ _inheritsLoose(Range, _BoundedObject);
2275
2273
  var _proto = Range.prototype;
2276
2274
  _proto.declareData = function declareData() {
2277
2275
  var _BoundedObject$protot;
@@ -2462,10 +2460,10 @@ Range.prototype.legendAction = "auto";
2462
2460
  BoundedObject.alias("range", Range);
2463
2461
 
2464
2462
  var Gridlines = /*#__PURE__*/ (function (_BoundedObject) {
2465
- _inheritsLoose(Gridlines, _BoundedObject);
2466
2463
  function Gridlines() {
2467
2464
  return _BoundedObject.apply(this, arguments) || this;
2468
2465
  }
2466
+ _inheritsLoose(Gridlines, _BoundedObject);
2469
2467
  var _proto = Gridlines.prototype;
2470
2468
  _proto.explore = function explore(context, instance) {
2471
2469
  _BoundedObject.prototype.explore.call(this, context, instance);
@@ -2519,10 +2517,10 @@ Gridlines.prototype.baseClass = "gridlines";
2519
2517
  BoundedObject.alias("gridlines", Gridlines);
2520
2518
 
2521
2519
  var LineGraph = /*#__PURE__*/ (function (_Widget) {
2522
- _inheritsLoose(LineGraph, _Widget);
2523
2520
  function LineGraph() {
2524
2521
  return _Widget.apply(this, arguments) || this;
2525
2522
  }
2523
+ _inheritsLoose(LineGraph, _Widget);
2526
2524
  var _proto = LineGraph.prototype;
2527
2525
  _proto.declareData = function declareData() {
2528
2526
  var _Widget$prototype$dec;
@@ -2719,10 +2717,10 @@ LineGraph.prototype.hiddenBase = false;
2719
2717
  Widget.alias("line-graph", LineGraph);
2720
2718
 
2721
2719
  var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
2722
- _inheritsLoose(ColumnBarGraphBase, _Widget);
2723
2720
  function ColumnBarGraphBase() {
2724
2721
  return _Widget.apply(this, arguments) || this;
2725
2722
  }
2723
+ _inheritsLoose(ColumnBarGraphBase, _Widget);
2726
2724
  var _proto = ColumnBarGraphBase.prototype;
2727
2725
  _proto.init = function init() {
2728
2726
  this.selection = Selection.create(this.selection, {
@@ -2835,10 +2833,10 @@ ColumnBarGraphBase.prototype.styled = true;
2835
2833
  ColumnBarGraphBase.prototype.borderRadius = 0;
2836
2834
 
2837
2835
  var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
2838
- _inheritsLoose(ColumnGraph, _ColumnBarGraphBase);
2839
2836
  function ColumnGraph() {
2840
2837
  return _ColumnBarGraphBase.apply(this, arguments) || this;
2841
2838
  }
2839
+ _inheritsLoose(ColumnGraph, _ColumnBarGraphBase);
2842
2840
  var _proto = ColumnGraph.prototype;
2843
2841
  _proto.explore = function explore(context, instance) {
2844
2842
  var _this = this;
@@ -2947,10 +2945,10 @@ ColumnGraph.prototype.hiddenBase = false;
2947
2945
  Widget.alias("columngraph", ColumnGraph);
2948
2946
 
2949
2947
  var BarGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
2950
- _inheritsLoose(BarGraph, _ColumnBarGraphBase);
2951
2948
  function BarGraph() {
2952
2949
  return _ColumnBarGraphBase.apply(this, arguments) || this;
2953
2950
  }
2951
+ _inheritsLoose(BarGraph, _ColumnBarGraphBase);
2954
2952
  var _proto = BarGraph.prototype;
2955
2953
  _proto.explore = function explore(context, instance) {
2956
2954
  var _this = this;
@@ -3059,10 +3057,10 @@ BarGraph.prototype.borderRadius = 0;
3059
3057
  Widget.alias("bargraph", BarGraph);
3060
3058
 
3061
3059
  var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
3062
- _inheritsLoose(ScatterGraph, _Widget);
3063
3060
  function ScatterGraph() {
3064
3061
  return _Widget.apply(this, arguments) || this;
3065
3062
  }
3063
+ _inheritsLoose(ScatterGraph, _Widget);
3066
3064
  var _proto = ScatterGraph.prototype;
3067
3065
  _proto.init = function init() {
3068
3066
  this.selection = Selection.create(this.selection, {
@@ -3211,10 +3209,10 @@ ScatterGraph.prototype.styled = true;
3211
3209
  Widget.alias("scatter-graph", ScatterGraph);
3212
3210
 
3213
3211
  var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
3214
- _inheritsLoose(BubbleGraph, _Widget);
3215
3212
  function BubbleGraph() {
3216
3213
  return _Widget.apply(this, arguments) || this;
3217
3214
  }
3215
+ _inheritsLoose(BubbleGraph, _Widget);
3218
3216
  var _proto = BubbleGraph.prototype;
3219
3217
  _proto.declareData = function declareData() {
3220
3218
  var _Widget$prototype$dec;
@@ -3318,10 +3316,10 @@ BubbleGraph.prototype.bubbleRadius = 10;
3318
3316
  Widget.alias("bubble-graph", BubbleGraph);
3319
3317
 
3320
3318
  var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
3321
- _inheritsLoose(MouseTracker, _BoundedObject);
3322
3319
  function MouseTracker() {
3323
3320
  return _BoundedObject.apply(this, arguments) || this;
3324
3321
  }
3322
+ _inheritsLoose(MouseTracker, _BoundedObject);
3325
3323
  var _proto = MouseTracker.prototype;
3326
3324
  _proto.declareData = function declareData() {
3327
3325
  var _BoundedObject$protot;
@@ -3440,10 +3438,10 @@ var Stack = /*#__PURE__*/ (function () {
3440
3438
  })();
3441
3439
 
3442
3440
  var NumericAxis = /*#__PURE__*/ (function (_Axis) {
3443
- _inheritsLoose(NumericAxis, _Axis);
3444
3441
  function NumericAxis() {
3445
3442
  return _Axis.apply(this, arguments) || this;
3446
3443
  }
3444
+ _inheritsLoose(NumericAxis, _Axis);
3447
3445
  var _proto = NumericAxis.prototype;
3448
3446
  _proto.init = function init() {
3449
3447
  if (this.deadZone) {
@@ -3806,10 +3804,10 @@ var NumericScale = /*#__PURE__*/ (function () {
3806
3804
  })();
3807
3805
 
3808
3806
  var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
3809
- _inheritsLoose(CategoryAxis, _Axis);
3810
3807
  function CategoryAxis() {
3811
3808
  return _Axis.apply(this, arguments) || this;
3812
3809
  }
3810
+ _inheritsLoose(CategoryAxis, _Axis);
3813
3811
  var _proto = CategoryAxis.prototype;
3814
3812
  _proto.declareData = function declareData() {
3815
3813
  var _Axis$prototype$decla;
@@ -4030,7 +4028,7 @@ Format$1.registerFactory("yearOrMonth", function (format) {
4030
4028
  var year = Format$1.parse("datetime;yyyy");
4031
4029
  var month = Format$1.parse("datetime;MMM");
4032
4030
  return function (date) {
4033
- var d = new Date(date);
4031
+ var d = parseDateInvariant(date);
4034
4032
  if (d.getMonth() == 0) return year(d);
4035
4033
  else return month(d);
4036
4034
  };
@@ -4039,16 +4037,16 @@ Format$1.registerFactory("monthOrDay", function (format) {
4039
4037
  var month = Format$1.parse("datetime;MMM");
4040
4038
  var day = Format$1.parse("datetime;dd");
4041
4039
  return function (date) {
4042
- var d = new Date(date);
4040
+ var d = parseDateInvariant(date);
4043
4041
  if (d.getDate() == 1) return month(d);
4044
4042
  else return day(d);
4045
4043
  };
4046
4044
  });
4047
4045
  var TimeAxis = /*#__PURE__*/ (function (_Axis) {
4048
- _inheritsLoose(TimeAxis, _Axis);
4049
4046
  function TimeAxis() {
4050
4047
  return _Axis.apply(this, arguments) || this;
4051
4048
  }
4049
+ _inheritsLoose(TimeAxis, _Axis);
4052
4050
  var _proto = TimeAxis.prototype;
4053
4051
  _proto.init = function init() {
4054
4052
  if (this.labelAnchor == "auto") this.labelAnchor = this.vertical ? (this.secondary ? "start" : "end") : "start";
@@ -4205,11 +4203,11 @@ var TimeScale = /*#__PURE__*/ (function () {
4205
4203
  var v = this.dateCache[date];
4206
4204
  if (!v) {
4207
4205
  if (this.decode) date = this.decode(date);
4208
- v = this.dateCache[date] = Date.parse(date);
4206
+ v = this.dateCache[date] = parseDateInvariant(date).getTime();
4209
4207
  }
4210
4208
  return v;
4211
4209
  case "number":
4212
- return date;
4210
+ return parseDateInvariant(date).getTime();
4213
4211
  }
4214
4212
  };
4215
4213
  _proto2.encodeValue = function encodeValue(v) {
@@ -4539,10 +4537,10 @@ var TimeScale = /*#__PURE__*/ (function () {
4539
4537
  })();
4540
4538
 
4541
4539
  var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
4542
- _inheritsLoose(PointReducer, _PureContainer);
4543
4540
  function PointReducer() {
4544
4541
  return _PureContainer.apply(this, arguments) || this;
4545
4542
  }
4543
+ _inheritsLoose(PointReducer, _PureContainer);
4546
4544
  var _proto = PointReducer.prototype;
4547
4545
  _proto.explore = function explore(context, instance) {
4548
4546
  var _this = this;
@@ -4575,10 +4573,10 @@ var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
4575
4573
  })(PureContainer);
4576
4574
 
4577
4575
  var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
4578
- _inheritsLoose(MinMaxFinder, _PointReducer);
4579
4576
  function MinMaxFinder() {
4580
4577
  return _PointReducer.apply(this, arguments) || this;
4581
4578
  }
4579
+ _inheritsLoose(MinMaxFinder, _PointReducer);
4582
4580
  var _proto = MinMaxFinder.prototype;
4583
4581
  _proto.declareData = function declareData() {
4584
4582
  var _PointReducer$prototy;
@@ -4635,10 +4633,10 @@ var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
4635
4633
  })(PointReducer);
4636
4634
 
4637
4635
  var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
4638
- _inheritsLoose(SnapPointFinder, _PointReducer);
4639
4636
  function SnapPointFinder() {
4640
4637
  return _PointReducer.apply(this, arguments) || this;
4641
4638
  }
4639
+ _inheritsLoose(SnapPointFinder, _PointReducer);
4642
4640
  var _proto = SnapPointFinder.prototype;
4643
4641
  _proto.declareData = function declareData() {
4644
4642
  var _PointReducer$prototy;
@@ -4685,10 +4683,10 @@ var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
4685
4683
  SnapPointFinder.prototype.maxDistance = 50;
4686
4684
 
4687
4685
  var ValueAtFinder = /*#__PURE__*/ (function (_PointReducer) {
4688
- _inheritsLoose(ValueAtFinder, _PointReducer);
4689
4686
  function ValueAtFinder() {
4690
4687
  return _PointReducer.apply(this, arguments) || this;
4691
4688
  }
4689
+ _inheritsLoose(ValueAtFinder, _PointReducer);
4692
4690
  var _proto = ValueAtFinder.prototype;
4693
4691
  _proto.declareData = function declareData() {
4694
4692
  var _PointReducer$prototy;