billboard.js 3.13.0-next.2 → 3.13.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.
Files changed (53) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +5 -17
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +5 -5
  5. package/dist/billboard.pkgd.js +144 -58
  6. package/dist/billboard.pkgd.min.js +17 -17
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +139 -41
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -5
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +139 -41
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +139 -41
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +8 -8
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +139 -41
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +7 -7
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +139 -41
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +6 -6
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +14 -26
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
  43. package/package.json +18 -18
  44. package/src/ChartInternal/Axis/AxisRendererHelper.ts +1 -2
  45. package/src/ChartInternal/ChartInternal.ts +1 -1
  46. package/src/ChartInternal/data/IData.ts +1 -1
  47. package/src/ChartInternal/interactions/zoom.ts +2 -1
  48. package/src/ChartInternal/internals/size.ts +1 -1
  49. package/src/ChartInternal/internals/tooltip.ts +1 -1
  50. package/src/config/Options/axis/y2.ts +0 -13
  51. package/src/config/Options/interaction/zoom.ts +2 -2
  52. package/src/module/generator.ts +1 -1
  53. package/src/module/util.ts +2 -2
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.13.0-next.2
8
+ * @version 3.13.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1220,10 +1220,10 @@ var SHARED = '__core-js_shared__';
1220
1220
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1221
1221
 
1222
1222
  (store.versions || (store.versions = [])).push({
1223
- version: '3.38.0',
1223
+ version: '3.38.1',
1224
1224
  mode: IS_PURE ? 'pure' : 'global',
1225
1225
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
1226
- license: 'https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE',
1226
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
1227
1227
  source: 'https://github.com/zloirock/core-js'
1228
1228
  });
1229
1229
 
@@ -2795,6 +2795,7 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
2795
2795
  var SymbolWrapper = function Symbol() {
2796
2796
  var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
2797
2797
  var result = isPrototypeOf(SymbolPrototype, this)
2798
+ // eslint-disable-next-line sonar/inconsistent-function-call -- ok
2798
2799
  ? new NativeSymbol(description)
2799
2800
  // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
2800
2801
  : description === undefined ? NativeSymbol() : NativeSymbol(description);
@@ -4558,7 +4559,7 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
4558
4559
  var target = state.target;
4559
4560
  var index = state.index++;
4560
4561
  if (!target || index >= target.length) {
4561
- state.target = undefined;
4562
+ state.target = null;
4562
4563
  return createIterResultObject(undefined, true);
4563
4564
  }
4564
4565
  switch (state.kind) {
@@ -6039,7 +6040,7 @@ if (!NATIVE_ARRAY_BUFFER) {
6039
6040
  });
6040
6041
  } else {
6041
6042
  var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
6042
- /* eslint-disable no-new -- required for testing */
6043
+ /* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */
6043
6044
  if (!fails(function () {
6044
6045
  NativeArrayBuffer(1);
6045
6046
  }) || !fails(function () {
@@ -6050,7 +6051,7 @@ if (!NATIVE_ARRAY_BUFFER) {
6050
6051
  new NativeArrayBuffer(NaN);
6051
6052
  return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
6052
6053
  })) {
6053
- /* eslint-enable no-new -- required for testing */
6054
+ /* eslint-enable no-new, sonar/inconsistent-function-call -- required for testing */
6054
6055
  $ArrayBuffer = function ArrayBuffer(length) {
6055
6056
  anInstance(this, ArrayBufferPrototype);
6056
6057
  return inheritIfRequired(new NativeArrayBuffer(toIndex(length)), this, $ArrayBuffer);
@@ -7718,8 +7719,8 @@ module.exports = {
7718
7719
  setInternalState(that, {
7719
7720
  type: CONSTRUCTOR_NAME,
7720
7721
  index: create(null),
7721
- first: undefined,
7722
- last: undefined,
7722
+ first: null,
7723
+ last: null,
7723
7724
  size: 0
7724
7725
  });
7725
7726
  if (!DESCRIPTORS) that.size = 0;
@@ -7744,7 +7745,7 @@ module.exports = {
7744
7745
  key: key,
7745
7746
  value: value,
7746
7747
  previous: previous = state.last,
7747
- next: undefined,
7748
+ next: null,
7748
7749
  removed: false
7749
7750
  };
7750
7751
  if (!state.first) state.first = entry;
@@ -7778,10 +7779,10 @@ module.exports = {
7778
7779
  var entry = state.first;
7779
7780
  while (entry) {
7780
7781
  entry.removed = true;
7781
- if (entry.previous) entry.previous = entry.previous.next = undefined;
7782
+ if (entry.previous) entry.previous = entry.previous.next = null;
7782
7783
  entry = entry.next;
7783
7784
  }
7784
- state.first = state.last = undefined;
7785
+ state.first = state.last = null;
7785
7786
  state.index = create(null);
7786
7787
  if (DESCRIPTORS) state.size = 0;
7787
7788
  else that.size = 0;
@@ -7873,7 +7874,7 @@ module.exports = {
7873
7874
  target: iterated,
7874
7875
  state: getInternalCollectionState(iterated),
7875
7876
  kind: kind,
7876
- last: undefined
7877
+ last: null
7877
7878
  });
7878
7879
  }, function () {
7879
7880
  var state = getInternalIteratorState(this);
@@ -7884,7 +7885,7 @@ module.exports = {
7884
7885
  // get next entry
7885
7886
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
7886
7887
  // or finish the iteration
7887
- state.target = undefined;
7888
+ state.target = null;
7888
7889
  return createIterResultObject(undefined, true);
7889
7890
  }
7890
7891
  // return step by kind
@@ -9214,6 +9215,8 @@ if (DESCRIPTORS) {
9214
9215
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
9215
9216
 
9216
9217
 
9218
+ /* eslint-disable no-undef, no-useless-call, sonar/no-reference-error -- required for testing */
9219
+ /* eslint-disable es/no-legacy-object-prototype-accessor-methods -- required for testing */
9217
9220
  var IS_PURE = __webpack_require__(36);
9218
9221
  var globalThis = __webpack_require__(4);
9219
9222
  var fails = __webpack_require__(7);
@@ -9226,7 +9229,6 @@ module.exports = IS_PURE || !fails(function () {
9226
9229
  if (WEBKIT && WEBKIT < 535) return;
9227
9230
  var key = Math.random();
9228
9231
  // In FF throws only define methods
9229
- // eslint-disable-next-line no-undef, no-useless-call, es/no-legacy-object-prototype-accessor-methods -- required for testing
9230
9232
  __defineSetter__.call(null, key, function () { /* empty */ });
9231
9233
  delete globalThis[key];
9232
9234
  });
@@ -10158,7 +10160,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
10158
10160
  reactions: new Queue(),
10159
10161
  rejection: false,
10160
10162
  state: PENDING,
10161
- value: undefined
10163
+ value: null
10162
10164
  });
10163
10165
  };
10164
10166
 
@@ -11457,6 +11459,7 @@ var BASE_FORCED = DESCRIPTORS &&
11457
11459
  (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
11458
11460
  re2[MATCH] = false;
11459
11461
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
11462
+ // eslint-disable-next-line sonar/inconsistent-function-call -- required for testing
11460
11463
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
11461
11464
  }));
11462
11465
 
@@ -14536,7 +14539,7 @@ if (DESCRIPTORS) {
14536
14539
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
14537
14540
 
14538
14541
 
14539
- /* eslint-disable no-new -- required for testing */
14542
+ /* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */
14540
14543
  var globalThis = __webpack_require__(4);
14541
14544
  var fails = __webpack_require__(7);
14542
14545
  var checkCorrectnessOfIteration = __webpack_require__(164);
@@ -15888,7 +15891,7 @@ module.exports = {
15888
15891
  setInternalState(that, {
15889
15892
  type: CONSTRUCTOR_NAME,
15890
15893
  id: id++,
15891
- frozen: undefined
15894
+ frozen: null
15892
15895
  });
15893
15896
  if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
15894
15897
  });
@@ -15936,7 +15939,7 @@ module.exports = {
15936
15939
  if (isObject(key)) {
15937
15940
  var data = getWeakData(key);
15938
15941
  if (data === true) return uncaughtFrozenStore(state).get(key);
15939
- return data ? data[state.id] : undefined;
15942
+ if (data) return data[state.id];
15940
15943
  }
15941
15944
  },
15942
15945
  // `WeakMap.prototype.set(key, value)` method
@@ -18588,9 +18591,11 @@ module.exports = function (input) {
18588
18591
 
18589
18592
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
18590
18593
  __webpack_require__(168);
18594
+ __webpack_require__(425);
18591
18595
  var $ = __webpack_require__(3);
18592
18596
  var globalThis = __webpack_require__(4);
18593
18597
  var safeGetBuiltIn = __webpack_require__(345);
18598
+ var getBuiltIn = __webpack_require__(23);
18594
18599
  var call = __webpack_require__(8);
18595
18600
  var uncurryThis = __webpack_require__(14);
18596
18601
  var DESCRIPTORS = __webpack_require__(6);
@@ -18630,10 +18635,11 @@ var NativeRequest = safeGetBuiltIn('Request');
18630
18635
  var Headers = safeGetBuiltIn('Headers');
18631
18636
  var RequestPrototype = NativeRequest && NativeRequest.prototype;
18632
18637
  var HeadersPrototype = Headers && Headers.prototype;
18633
- var RegExp = globalThis.RegExp;
18634
18638
  var TypeError = globalThis.TypeError;
18635
- var decodeURIComponent = globalThis.decodeURIComponent;
18636
18639
  var encodeURIComponent = globalThis.encodeURIComponent;
18640
+ var fromCharCode = String.fromCharCode;
18641
+ var fromCodePoint = getBuiltIn('String', 'fromCodePoint');
18642
+ var $parseInt = parseInt;
18637
18643
  var charAt = uncurryThis(''.charAt);
18638
18644
  var join = uncurryThis([].join);
18639
18645
  var push = uncurryThis([].push);
@@ -18642,33 +18648,125 @@ var shift = uncurryThis([].shift);
18642
18648
  var splice = uncurryThis([].splice);
18643
18649
  var split = uncurryThis(''.split);
18644
18650
  var stringSlice = uncurryThis(''.slice);
18651
+ var exec = uncurryThis(/./.exec);
18645
18652
 
18646
18653
  var plus = /\+/g;
18647
- var sequences = Array(4);
18654
+ var FALLBACK_REPLACER = '\uFFFD';
18655
+ var VALID_HEX = /^[0-9a-f]+$/i;
18656
+
18657
+ var parseHexOctet = function (string, start) {
18658
+ var substr = stringSlice(string, start, start + 2);
18659
+ if (!exec(VALID_HEX, substr)) return NaN;
18648
18660
 
18649
- var percentSequence = function (bytes) {
18650
- return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
18661
+ return $parseInt(substr, 16);
18651
18662
  };
18652
18663
 
18653
- var percentDecode = function (sequence) {
18654
- try {
18655
- return decodeURIComponent(sequence);
18656
- } catch (error) {
18657
- return sequence;
18664
+ var getLeadingOnes = function (octet) {
18665
+ var count = 0;
18666
+ for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
18667
+ count++;
18658
18668
  }
18669
+ return count;
18659
18670
  };
18660
18671
 
18661
- var deserialize = function (it) {
18662
- var result = replace(it, plus, ' ');
18663
- var bytes = 4;
18664
- try {
18665
- return decodeURIComponent(result);
18666
- } catch (error) {
18667
- while (bytes) {
18668
- result = replace(result, percentSequence(bytes--), percentDecode);
18672
+ var utf8Decode = function (octets) {
18673
+ var codePoint = null;
18674
+
18675
+ switch (octets.length) {
18676
+ case 1:
18677
+ codePoint = octets[0];
18678
+ break;
18679
+ case 2:
18680
+ codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F);
18681
+ break;
18682
+ case 3:
18683
+ codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F);
18684
+ break;
18685
+ case 4:
18686
+ codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F);
18687
+ break;
18688
+ }
18689
+
18690
+ return codePoint > 0x10FFFF ? null : codePoint;
18691
+ };
18692
+
18693
+ var decode = function (input) {
18694
+ input = replace(input, plus, ' ');
18695
+ var length = input.length;
18696
+ var result = '';
18697
+ var i = 0;
18698
+
18699
+ while (i < length) {
18700
+ var decodedChar = charAt(input, i);
18701
+
18702
+ if (decodedChar === '%') {
18703
+ if (charAt(input, i + 1) === '%' || i + 3 > length) {
18704
+ result += '%';
18705
+ i++;
18706
+ continue;
18707
+ }
18708
+
18709
+ var octet = parseHexOctet(input, i + 1);
18710
+
18711
+ // eslint-disable-next-line no-self-compare -- NaN check
18712
+ if (octet !== octet) {
18713
+ result += decodedChar;
18714
+ i++;
18715
+ continue;
18716
+ }
18717
+
18718
+ i += 2;
18719
+ var byteSequenceLength = getLeadingOnes(octet);
18720
+
18721
+ if (byteSequenceLength === 0) {
18722
+ decodedChar = fromCharCode(octet);
18723
+ } else {
18724
+ if (byteSequenceLength === 1 || byteSequenceLength > 4) {
18725
+ result += FALLBACK_REPLACER;
18726
+ i++;
18727
+ continue;
18728
+ }
18729
+
18730
+ var octets = [octet];
18731
+ var sequenceIndex = 1;
18732
+
18733
+ while (sequenceIndex < byteSequenceLength) {
18734
+ i++;
18735
+ if (i + 3 > length || charAt(input, i) !== '%') break;
18736
+
18737
+ var nextByte = parseHexOctet(input, i + 1);
18738
+
18739
+ // eslint-disable-next-line no-self-compare -- NaN check
18740
+ if (nextByte !== nextByte) {
18741
+ i += 3;
18742
+ break;
18743
+ }
18744
+ if (nextByte > 191 || nextByte < 128) break;
18745
+
18746
+ push(octets, nextByte);
18747
+ i += 2;
18748
+ sequenceIndex++;
18749
+ }
18750
+
18751
+ if (octets.length !== byteSequenceLength) {
18752
+ result += FALLBACK_REPLACER;
18753
+ continue;
18754
+ }
18755
+
18756
+ var codePoint = utf8Decode(octets);
18757
+ if (codePoint === null) {
18758
+ result += FALLBACK_REPLACER;
18759
+ } else {
18760
+ decodedChar = fromCodePoint(codePoint);
18761
+ }
18762
+ }
18669
18763
  }
18670
- return result;
18764
+
18765
+ result += decodedChar;
18766
+ i++;
18671
18767
  }
18768
+
18769
+ return result;
18672
18770
  };
18673
18771
 
18674
18772
  var find = /[!'()~]|%20/g;
@@ -18702,7 +18800,7 @@ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params
18702
18800
  var target = state.target;
18703
18801
  var index = state.index++;
18704
18802
  if (!target || index >= target.length) {
18705
- state.target = undefined;
18803
+ state.target = null;
18706
18804
  return createIterResultObject(undefined, true);
18707
18805
  }
18708
18806
  var entry = target[index];
@@ -18761,8 +18859,8 @@ URLSearchParamsState.prototype = {
18761
18859
  if (attribute.length) {
18762
18860
  entry = split(attribute, '=');
18763
18861
  push(entries, {
18764
- key: deserialize(shift(entry)),
18765
- value: deserialize(join(entry, '='))
18862
+ key: decode(shift(entry)),
18863
+ value: decode(join(entry, '='))
18766
18864
  });
18767
18865
  }
18768
18866
  }
@@ -23857,7 +23955,7 @@ class Plugin {
23857
23955
  });
23858
23956
  }
23859
23957
  }
23860
- __publicField(Plugin, "version", "3.13.0-next.2");
23958
+ __publicField(Plugin, "version", "3.13.0");
23861
23959
 
23862
23960
  ;// CONCATENATED MODULE: ./node_modules/d3-axis/src/identity.js
23863
23961
  /* harmony default export */ function d3_axis_src_identity(x) {