billboard.js 3.3.2 → 3.4.0-next.2

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 (67) hide show
  1. package/dist/billboard.css +19 -14
  2. package/dist/billboard.js +474 -100
  3. package/dist/billboard.min.css +2 -2
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +478 -104
  6. package/dist/billboard.pkgd.min.js +2 -2
  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 +39 -17
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +39 -17
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +34 -14
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +34 -14
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +6 -6
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +43 -21
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +43 -21
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +38 -18
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +38 -18
  22. package/dist/theme/datalab.css +24 -20
  23. package/dist/theme/datalab.min.css +2 -2
  24. package/dist/theme/graph.css +24 -20
  25. package/dist/theme/graph.min.css +2 -2
  26. package/dist/theme/insight.css +24 -20
  27. package/dist/theme/insight.min.css +2 -2
  28. package/dist-esm/billboard.js +419 -88
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -5
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -5
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  34. package/package.json +22 -22
  35. package/src/Chart/api/axis.ts +90 -25
  36. package/src/Chart/api/focus.ts +3 -2
  37. package/src/ChartInternal/Axis/Axis.ts +10 -7
  38. package/src/ChartInternal/ChartInternal.ts +31 -17
  39. package/src/ChartInternal/data/data.ts +1 -1
  40. package/src/ChartInternal/interactions/flow.ts +1 -1
  41. package/src/ChartInternal/internals/color.ts +4 -3
  42. package/src/ChartInternal/internals/format.ts +5 -1
  43. package/src/ChartInternal/internals/redraw.ts +3 -0
  44. package/src/ChartInternal/internals/text.ts +1 -1
  45. package/src/ChartInternal/internals/transform.ts +4 -1
  46. package/src/ChartInternal/internals/type.ts +5 -0
  47. package/src/ChartInternal/shape/arc.ts +41 -17
  48. package/src/ChartInternal/shape/polar.ts +132 -0
  49. package/src/ChartInternal/shape/radar.ts +4 -4
  50. package/src/config/Options/common/main.ts +19 -2
  51. package/src/config/Options/data/data.ts +3 -0
  52. package/src/config/Options/shape/polar.ts +81 -0
  53. package/src/config/classes.ts +6 -3
  54. package/src/config/const.ts +3 -0
  55. package/src/config/resolver/shape.ts +4 -0
  56. package/src/core.ts +1 -0
  57. package/src/index.esm.ts +1 -0
  58. package/src/module/generator.ts +12 -4
  59. package/src/module/util.ts +22 -9
  60. package/src/scss/billboard.scss +13 -0
  61. package/src/scss/theme/datalab.scss +13 -0
  62. package/src/scss/theme/graph.scss +13 -0
  63. package/src/scss/theme/insight.scss +13 -0
  64. package/types/bb.d.ts +1 -0
  65. package/types/chart.d.ts +8 -8
  66. package/types/options.d.ts +79 -2
  67. package/types/types.d.ts +2 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -492,17 +492,27 @@ function getBoundingRect(node) {
492
492
  /**
493
493
  * Retrun random number
494
494
  * @param {boolean} asStr Convert returned value as string
495
+ * @param {number} min Minimum value
496
+ * @param {number} max Maximum value
495
497
  * @returns {number|string}
496
498
  * @private
497
499
  */
498
500
 
499
501
 
500
- function getRandom(asStr) {
502
+ function getRandom(asStr, min, max) {
501
503
  if (asStr === void 0) {
502
504
  asStr = !0;
503
505
  }
504
506
 
505
- var rand = Math.random();
507
+ if (min === void 0) {
508
+ min = 0;
509
+ }
510
+
511
+ if (max === void 0) {
512
+ max = 1e4;
513
+ }
514
+
515
+ var rand = Math.floor(Math.random() * (max - min) + min);
506
516
  return asStr ? rand + "" : rand;
507
517
  }
508
518
  /**
@@ -976,26 +986,36 @@ function isTabVisible() {
976
986
 
977
987
 
978
988
  function convertInputType(mouse, touch) {
979
- var hasTouch = !1;
989
+ var DocumentTouch = win.DocumentTouch,
990
+ matchMedia = win.matchMedia,
991
+ navigator = win.navigator,
992
+ hasTouch = !1;
980
993
 
981
994
  if (touch) {
982
995
  // Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
983
- if (win.navigator && "maxTouchPoints" in win.navigator) {
984
- hasTouch = win.navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
996
+ if (navigator && "maxTouchPoints" in navigator) {
997
+ hasTouch = navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
985
998
  // On IE11 with IE9 emulation mode, ('ontouchstart' in window) is returning true
986
- } else if ("ontouchmove" in win || win.DocumentTouch && doc instanceof win.DocumentTouch) {
999
+ } else if ("ontouchmove" in win || DocumentTouch && doc instanceof DocumentTouch) {
987
1000
  hasTouch = !0;
988
1001
  } else {
989
1002
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
990
- var mQ = win.matchMedia && matchMedia("(pointer:coarse)");
991
-
992
- if (mQ && mQ.media === "(pointer:coarse)") {
993
- hasTouch = !!mQ.matches;
1003
+ if (matchMedia != null && matchMedia("(pointer:coarse)").matches) {
1004
+ hasTouch = !0;
1005
+ } else {
1006
+ // Only as a last resort, fall back to user agent sniffing
1007
+ var UA = navigator.userAgent;
1008
+ hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
994
1009
  }
995
1010
  }
996
- }
1011
+ } // Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
1012
+ // https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
1013
+ // Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
997
1014
 
998
- var hasMouse = mouse && !hasTouch ? "onmouseover" in win : !1;
1015
+
1016
+ var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
1017
+ return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
1018
+ });
999
1019
  return hasMouse && "mouse" || hasTouch && "touch" || null;
1000
1020
  }
1001
1021
  ;// CONCATENATED MODULE: ./src/config/config.ts
@@ -1121,7 +1141,7 @@ var Plugin = /*#__PURE__*/function () {
1121
1141
  return Plugin;
1122
1142
  }();
1123
1143
 
1124
- Plugin.version = "3.3.1";
1144
+ Plugin.version = "3.4.0-next.2";
1125
1145
 
1126
1146
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
1127
1147
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],t):"object"==typeof exports?exports.bb=t(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(e.bb=e.bb||{},e.bb.plugin=e.bb.plugin||{},e.bb.plugin.textoverlap=t(e.d3,e.d3,e.d3,e.d3))}(this,(function(e,t,n,o){return function(){"use strict";var r={3:function(e){e.exports=o},12:function(t){t.exports=e},13:function(e){e.exports=t},1:function(e){e.exports=n}},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,c),n.exports}c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var u={};return function(){function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}c.d(u,{default:function(){return d}});var n=c(12),o=c(13);c(1),c(3);var r="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();r.requestIdleCallback=r.requestIdleCallback||function(e){return setTimeout(e,1)},r.cancelIdleCallback=r.cancelIdleCallback||function(e){return clearTimeout(e)};var i=null==r?void 0:r.document;var a=function(e){return void 0!==e},l=function(e){return"object"==typeof e};!function(){try{new MouseEvent("t")}catch(e){return function(e,t,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var o=i.createEvent("MouseEvent");o.initMouseEvent(t,n.bubbles,n.cancelable,r,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.dispatchEvent(o)}}}();function s(e){var t,n,o,r=this.config,i=function(){var e=n.shift();return e&&t&&l(t)&&e in t?(t=t[e],i()):e?void 0:t};Object.keys(r).forEach((function(c){t=e,n=c.split("_"),o=i(),a(o)&&(r[c]=o)}))}var f=function(){function e(e){void 0===e&&(e={}),this.$$=void 0,this.options=void 0,this.options=e}var t=e.prototype;return t.$beforeInit=function(){},t.$init=function(){},t.$afterInit=function(){},t.$redraw=function(){},t.$willDestroy=function(){var e=this;Object.keys(this).forEach((function(t){e[t]=null,delete e[t]}))},e}();f.version="3.3.1";var b=function(){return{selector:void 0,extent:1,area:0}},d=function(r){var i,c;function u(t){var n=r.call(this,t)||this;return n.config=void 0,n.config=new b,e(n)||e(n)}c=r,(i=u).prototype=Object.create(c.prototype),i.prototype.constructor=i,t(i,c);var a=u.prototype;return a.$init=function(){s.call(this,this.options)},a.$redraw=function(){var e=this.$$.$el,t=this.config.selector,n=t?e.main.selectAll(t):e.text;n.empty()||this.preventLabelOverlap(n)},a.generateVoronoi=function(e){var t=this.$$.scale,o=["x","y"].map((function(e){return t[e].domain()})),r=o[0],i=o[1],c=[i[0],r[1]];return r[1]=c[0],i[0]=c[1],n.Delaunay.from(e).voronoi([].concat(r,i))},a.preventLabelOverlap=function(e){var t=this.config,n=t.extent,r=t.area,i=e.data().map((function(e){return[e.index,e.value]})),c=this.generateVoronoi(i),u=0;e.each((function(){var e=c.cellPolygon(u);if(e&&this){var t=i[u],a=t[0],l=t[1],s=(0,o.polygonCentroid)(e),f=s[0],b=s[1],d=Math.abs((0,o.polygonArea)(e)),p=Math.round(Math.atan2(b-l,f-a)/Math.PI*2),v=n*(0===p?1:-1),h=-1===p?-n:n+5,y=1===Math.abs(p)?"middle":0===p?"start":"end";this.style.display=d<r?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===p?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+h+")")}u++}))},u}(f)}(),u=u.default}()}));
12
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],t):"object"==typeof exports?exports.bb=t(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(e.bb=e.bb||{},e.bb.plugin=e.bb.plugin||{},e.bb.plugin.textoverlap=t(e.d3,e.d3,e.d3,e.d3))}(this,(function(e,t,n,o){return function(){"use strict";var r={3:function(e){e.exports=o},12:function(t){t.exports=e},13:function(e){e.exports=t},1:function(e){e.exports=n}},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,c),n.exports}c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var u={};return function(){function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}c.d(u,{default:function(){return d}});var n=c(12),o=c(13);c(1),c(3);var r="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();r.requestIdleCallback=r.requestIdleCallback||function(e){return setTimeout(e,1)},r.cancelIdleCallback=r.cancelIdleCallback||function(e){return clearTimeout(e)};var i=null==r?void 0:r.document;var a=function(e){return void 0!==e},l=function(e){return"object"==typeof e};!function(){try{new MouseEvent("t")}catch(e){return function(e,t,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var o=i.createEvent("MouseEvent");o.initMouseEvent(t,n.bubbles,n.cancelable,r,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.dispatchEvent(o)}}}();function s(e){var t,n,o,r=this.config,i=function(){var e=n.shift();return e&&t&&l(t)&&e in t?(t=t[e],i()):e?void 0:t};Object.keys(r).forEach((function(c){t=e,n=c.split("_"),o=i(),a(o)&&(r[c]=o)}))}var f=function(){function e(e){void 0===e&&(e={}),this.$$=void 0,this.options=void 0,this.options=e}var t=e.prototype;return t.$beforeInit=function(){},t.$init=function(){},t.$afterInit=function(){},t.$redraw=function(){},t.$willDestroy=function(){var e=this;Object.keys(this).forEach((function(t){e[t]=null,delete e[t]}))},e}();f.version="3.4.0-next.2";var b=function(){return{selector:void 0,extent:1,area:0}},d=function(r){var i,c;function u(t){var n=r.call(this,t)||this;return n.config=void 0,n.config=new b,e(n)||e(n)}c=r,(i=u).prototype=Object.create(c.prototype),i.prototype.constructor=i,t(i,c);var a=u.prototype;return a.$init=function(){s.call(this,this.options)},a.$redraw=function(){var e=this.$$.$el,t=this.config.selector,n=t?e.main.selectAll(t):e.text;n.empty()||this.preventLabelOverlap(n)},a.generateVoronoi=function(e){var t=this.$$.scale,o=["x","y"].map((function(e){return t[e].domain()})),r=o[0],i=o[1],c=[i[0],r[1]];return r[1]=c[0],i[0]=c[1],n.Delaunay.from(e).voronoi([].concat(r,i))},a.preventLabelOverlap=function(e){var t=this.config,n=t.extent,r=t.area,i=e.data().map((function(e){return[e.index,e.value]})),c=this.generateVoronoi(i),u=0;e.each((function(){var e=c.cellPolygon(u);if(e&&this){var t=i[u],a=t[0],l=t[1],s=(0,o.polygonCentroid)(e),f=s[0],b=s[1],d=Math.abs((0,o.polygonArea)(e)),p=Math.round(Math.atan2(b-l,f-a)/Math.PI*2),v=n*(0===p?1:-1),h=-1===p?-n:n+5,y=1===Math.abs(p)?"middle":0===p?"start":"end";this.style.display=d<r?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===p?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+h+")")}u++}))},u}(f)}(),u=u.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -17438,7 +17438,7 @@ var Plugin = /*#__PURE__*/function () {
17438
17438
  return Plugin;
17439
17439
  }();
17440
17440
 
17441
- Plugin.version = "3.3.1";
17441
+ Plugin.version = "3.4.0-next.2";
17442
17442
 
17443
17443
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
17444
17444
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -17207,12 +17207,14 @@ var $GRID = {
17207
17207
  ygridLines: "bb-ygrid-lines",
17208
17208
  ygrids: "bb-ygrids"
17209
17209
  };
17210
- var $RADAR = {
17211
- chartRadar: "bb-chart-radar",
17212
- chartRadars: "bb-chart-radars",
17210
+ var $LEVEL = {
17213
17211
  level: "bb-level",
17214
17212
  levels: "bb-levels"
17215
17213
  };
17214
+ var $RADAR = {
17215
+ chartRadar: "bb-chart-radar",
17216
+ chartRadars: "bb-chart-radars"
17217
+ };
17216
17218
  var $REGION = {
17217
17219
  region: "bb-region",
17218
17220
  regions: "bb-regions"
@@ -17331,7 +17333,7 @@ var Plugin = /*#__PURE__*/function () {
17331
17333
  return Plugin;
17332
17334
  }();
17333
17335
 
17334
- Plugin.version = "3.3.1";
17336
+ Plugin.version = "3.4.0-next.2";
17335
17337
 
17336
17338
  ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
17337
17339
  /**
@@ -21472,17 +21474,27 @@ function getBoundingRect(node) {
21472
21474
  /**
21473
21475
  * Retrun random number
21474
21476
  * @param {boolean} asStr Convert returned value as string
21477
+ * @param {number} min Minimum value
21478
+ * @param {number} max Maximum value
21475
21479
  * @returns {number|string}
21476
21480
  * @private
21477
21481
  */
21478
21482
 
21479
21483
 
21480
- function getRandom(asStr) {
21484
+ function getRandom(asStr, min, max) {
21481
21485
  if (asStr === void 0) {
21482
21486
  asStr = !0;
21483
21487
  }
21484
21488
 
21485
- var rand = Math.random();
21489
+ if (min === void 0) {
21490
+ min = 0;
21491
+ }
21492
+
21493
+ if (max === void 0) {
21494
+ max = 1e4;
21495
+ }
21496
+
21497
+ var rand = Math.floor(Math.random() * (max - min) + min);
21486
21498
  return asStr ? rand + "" : rand;
21487
21499
  }
21488
21500
  /**
@@ -21956,26 +21968,36 @@ function isTabVisible() {
21956
21968
 
21957
21969
 
21958
21970
  function convertInputType(mouse, touch) {
21959
- var hasTouch = !1;
21971
+ var DocumentTouch = win.DocumentTouch,
21972
+ matchMedia = win.matchMedia,
21973
+ navigator = win.navigator,
21974
+ hasTouch = !1;
21960
21975
 
21961
21976
  if (touch) {
21962
21977
  // Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
21963
- if (win.navigator && "maxTouchPoints" in win.navigator) {
21964
- hasTouch = win.navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
21978
+ if (navigator && "maxTouchPoints" in navigator) {
21979
+ hasTouch = navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
21965
21980
  // On IE11 with IE9 emulation mode, ('ontouchstart' in window) is returning true
21966
- } else if ("ontouchmove" in win || win.DocumentTouch && doc instanceof win.DocumentTouch) {
21981
+ } else if ("ontouchmove" in win || DocumentTouch && doc instanceof DocumentTouch) {
21967
21982
  hasTouch = !0;
21968
21983
  } else {
21969
21984
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
21970
- var mQ = win.matchMedia && matchMedia("(pointer:coarse)");
21971
-
21972
- if (mQ && mQ.media === "(pointer:coarse)") {
21973
- hasTouch = !!mQ.matches;
21985
+ if (matchMedia != null && matchMedia("(pointer:coarse)").matches) {
21986
+ hasTouch = !0;
21987
+ } else {
21988
+ // Only as a last resort, fall back to user agent sniffing
21989
+ var UA = navigator.userAgent;
21990
+ hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
21974
21991
  }
21975
21992
  }
21976
- }
21993
+ } // Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
21994
+ // https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
21995
+ // Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
21996
+
21977
21997
 
21978
- var hasMouse = mouse && !hasTouch ? "onmouseover" in win : !1;
21998
+ var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
21999
+ return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
22000
+ });
21979
22001
  return hasMouse && "mouse" || hasTouch && "touch" || null;
21980
22002
  }
21981
22003
  ;// CONCATENATED MODULE: ./src/config/config.ts
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -19106,12 +19106,14 @@ var $GRID = {
19106
19106
  ygridLines: "bb-ygrid-lines",
19107
19107
  ygrids: "bb-ygrids"
19108
19108
  };
19109
- var $RADAR = {
19110
- chartRadar: "bb-chart-radar",
19111
- chartRadars: "bb-chart-radars",
19109
+ var $LEVEL = {
19112
19110
  level: "bb-level",
19113
19111
  levels: "bb-levels"
19114
19112
  };
19113
+ var $RADAR = {
19114
+ chartRadar: "bb-chart-radar",
19115
+ chartRadars: "bb-chart-radars"
19116
+ };
19115
19117
  var $REGION = {
19116
19118
  region: "bb-region",
19117
19119
  regions: "bb-regions"
@@ -22596,17 +22598,27 @@ function getBoundingRect(node) {
22596
22598
  /**
22597
22599
  * Retrun random number
22598
22600
  * @param {boolean} asStr Convert returned value as string
22601
+ * @param {number} min Minimum value
22602
+ * @param {number} max Maximum value
22599
22603
  * @returns {number|string}
22600
22604
  * @private
22601
22605
  */
22602
22606
 
22603
22607
 
22604
- function getRandom(asStr) {
22608
+ function getRandom(asStr, min, max) {
22605
22609
  if (asStr === void 0) {
22606
22610
  asStr = !0;
22607
22611
  }
22608
22612
 
22609
- var rand = Math.random();
22613
+ if (min === void 0) {
22614
+ min = 0;
22615
+ }
22616
+
22617
+ if (max === void 0) {
22618
+ max = 1e4;
22619
+ }
22620
+
22621
+ var rand = Math.floor(Math.random() * (max - min) + min);
22610
22622
  return asStr ? rand + "" : rand;
22611
22623
  }
22612
22624
  /**
@@ -23080,26 +23092,36 @@ function isTabVisible() {
23080
23092
 
23081
23093
 
23082
23094
  function convertInputType(mouse, touch) {
23083
- var hasTouch = !1;
23095
+ var DocumentTouch = win.DocumentTouch,
23096
+ matchMedia = win.matchMedia,
23097
+ navigator = win.navigator,
23098
+ hasTouch = !1;
23084
23099
 
23085
23100
  if (touch) {
23086
23101
  // Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
23087
- if (win.navigator && "maxTouchPoints" in win.navigator) {
23088
- hasTouch = win.navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
23102
+ if (navigator && "maxTouchPoints" in navigator) {
23103
+ hasTouch = navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
23089
23104
  // On IE11 with IE9 emulation mode, ('ontouchstart' in window) is returning true
23090
- } else if ("ontouchmove" in win || win.DocumentTouch && doc instanceof win.DocumentTouch) {
23105
+ } else if ("ontouchmove" in win || DocumentTouch && doc instanceof DocumentTouch) {
23091
23106
  hasTouch = !0;
23092
23107
  } else {
23093
23108
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
23094
- var mQ = win.matchMedia && matchMedia("(pointer:coarse)");
23095
-
23096
- if (mQ && mQ.media === "(pointer:coarse)") {
23097
- hasTouch = !!mQ.matches;
23109
+ if (matchMedia != null && matchMedia("(pointer:coarse)").matches) {
23110
+ hasTouch = !0;
23111
+ } else {
23112
+ // Only as a last resort, fall back to user agent sniffing
23113
+ var UA = navigator.userAgent;
23114
+ hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
23098
23115
  }
23099
23116
  }
23100
- }
23117
+ } // Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
23118
+ // https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
23119
+ // Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
23120
+
23101
23121
 
23102
- var hasMouse = mouse && !hasTouch ? "onmouseover" in win : !1;
23122
+ var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
23123
+ return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
23124
+ });
23103
23125
  return hasMouse && "mouse" || hasTouch && "touch" || null;
23104
23126
  }
23105
23127
  ;// CONCATENATED MODULE: ./src/config/config.ts
@@ -23225,7 +23247,7 @@ var Plugin = /*#__PURE__*/function () {
23225
23247
  return Plugin;
23226
23248
  }();
23227
23249
 
23228
- Plugin.version = "3.3.1";
23250
+ Plugin.version = "3.4.0-next.2";
23229
23251
 
23230
23252
  ;// CONCATENATED MODULE: ./src/Plugin/stanford/Options.ts
23231
23253
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.4.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -17172,7 +17172,7 @@ var Plugin = /*#__PURE__*/function () {
17172
17172
  return Plugin;
17173
17173
  }();
17174
17174
 
17175
- Plugin.version = "3.3.1";
17175
+ Plugin.version = "3.4.0-next.2";
17176
17176
 
17177
17177
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
17178
17178
  /**
@@ -21413,17 +21413,27 @@ function getBoundingRect(node) {
21413
21413
  /**
21414
21414
  * Retrun random number
21415
21415
  * @param {boolean} asStr Convert returned value as string
21416
+ * @param {number} min Minimum value
21417
+ * @param {number} max Maximum value
21416
21418
  * @returns {number|string}
21417
21419
  * @private
21418
21420
  */
21419
21421
 
21420
21422
 
21421
- function getRandom(asStr) {
21423
+ function getRandom(asStr, min, max) {
21422
21424
  if (asStr === void 0) {
21423
21425
  asStr = !0;
21424
21426
  }
21425
21427
 
21426
- var rand = Math.random();
21428
+ if (min === void 0) {
21429
+ min = 0;
21430
+ }
21431
+
21432
+ if (max === void 0) {
21433
+ max = 1e4;
21434
+ }
21435
+
21436
+ var rand = Math.floor(Math.random() * (max - min) + min);
21427
21437
  return asStr ? rand + "" : rand;
21428
21438
  }
21429
21439
  /**
@@ -21897,26 +21907,36 @@ function isTabVisible() {
21897
21907
 
21898
21908
 
21899
21909
  function convertInputType(mouse, touch) {
21900
- var hasTouch = !1;
21910
+ var DocumentTouch = win.DocumentTouch,
21911
+ matchMedia = win.matchMedia,
21912
+ navigator = win.navigator,
21913
+ hasTouch = !1;
21901
21914
 
21902
21915
  if (touch) {
21903
21916
  // Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
21904
- if (win.navigator && "maxTouchPoints" in win.navigator) {
21905
- hasTouch = win.navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
21917
+ if (navigator && "maxTouchPoints" in navigator) {
21918
+ hasTouch = navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
21906
21919
  // On IE11 with IE9 emulation mode, ('ontouchstart' in window) is returning true
21907
- } else if ("ontouchmove" in win || win.DocumentTouch && doc instanceof win.DocumentTouch) {
21920
+ } else if ("ontouchmove" in win || DocumentTouch && doc instanceof DocumentTouch) {
21908
21921
  hasTouch = !0;
21909
21922
  } else {
21910
21923
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
21911
- var mQ = win.matchMedia && matchMedia("(pointer:coarse)");
21912
-
21913
- if (mQ && mQ.media === "(pointer:coarse)") {
21914
- hasTouch = !!mQ.matches;
21924
+ if (matchMedia != null && matchMedia("(pointer:coarse)").matches) {
21925
+ hasTouch = !0;
21926
+ } else {
21927
+ // Only as a last resort, fall back to user agent sniffing
21928
+ var UA = navigator.userAgent;
21929
+ hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
21915
21930
  }
21916
21931
  }
21917
- }
21932
+ } // Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
21933
+ // https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
21934
+ // Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
21918
21935
 
21919
- var hasMouse = mouse && !hasTouch ? "onmouseover" in win : !1;
21936
+
21937
+ var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
21938
+ return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
21939
+ });
21920
21940
  return hasMouse && "mouse" || hasTouch && "touch" || null;
21921
21941
  }
21922
21942
  ;// CONCATENATED MODULE: ./src/config/config.ts