@luminati-io/uikit 1.9.19 → 1.9.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/uikit.umd.js CHANGED
@@ -21633,15 +21633,17 @@ __webpack_require__.r(__webpack_exports__);
21633
21633
 
21634
21634
  /*jslint react:true*/
21635
21635
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
21636
- var _excluded = ["animated", "showGridRows", "showGridColumns", "numTicks", "xAxis", "yAxis", "formatValue", "margin", "showTooltip", "tooltipContent", "curveType"];
21637
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21638
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21636
+ var _excluded = ["label", "numTicks", "formatTick", "labelOffset"],
21637
+ _excluded2 = ["label", "numTicks", "formatTick", "labelOffset"],
21638
+ _excluded3 = ["animated", "showGridRows", "showGridColumns", "numTicks", "xAxis", "yAxis", "formatValue", "margin", "showTooltip", "tooltipContent", "curveType"];
21639
21639
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21640
21640
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21641
21641
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21642
21642
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21643
21643
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21644
21644
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21645
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21646
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21645
21647
 
21646
21648
 
21647
21649
 
@@ -21661,7 +21663,6 @@ var config = {
21661
21663
  }
21662
21664
  };
21663
21665
  var LineChart = function LineChart(props) {
21664
- var _xAxis$numTicks, _yAxis$numTicks;
21665
21666
  var animated = props.animated,
21666
21667
  showGridRows = props.showGridRows,
21667
21668
  showGridColumns = props.showGridColumns,
@@ -21689,8 +21690,20 @@ var LineChart = function LineChart(props) {
21689
21690
  Tooltip = _getAnimatedOrUnanima.Tooltip;
21690
21691
  var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_6__["default"])(palette);
21691
21692
  if (!data || !data.length) return null;
21692
- var xScale = Object.assign({}, xAxis.config, config.x);
21693
- var yScale = Object.assign({}, yAxis.config, config.y);
21693
+ var xLabel = xAxis.label,
21694
+ _xAxis$numTicks = xAxis.numTicks,
21695
+ xNumTicks = _xAxis$numTicks === void 0 ? numTicks : _xAxis$numTicks,
21696
+ xFormatTick = xAxis.formatTick,
21697
+ xLabelOffset = xAxis.labelOffset,
21698
+ xConfig = _objectWithoutProperties(xAxis, _excluded);
21699
+ var yLabel = yAxis.label,
21700
+ _yAxis$numTicks = yAxis.numTicks,
21701
+ yNumTicks = _yAxis$numTicks === void 0 ? numTicks : _yAxis$numTicks,
21702
+ yFormatTick = yAxis.formatTick,
21703
+ yLabelOffset = yAxis.labelOffset,
21704
+ yConfig = _objectWithoutProperties(yAxis, _excluded2);
21705
+ var xScale = Object.assign({}, xConfig, config.x);
21706
+ var yScale = Object.assign({}, yConfig, config.y);
21694
21707
  var curve = (0,_get_curve__WEBPACK_IMPORTED_MODULE_3__.getCurve)(curveType);
21695
21708
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
21696
21709
  theme: chartTheme,
@@ -21708,20 +21721,20 @@ var LineChart = function LineChart(props) {
21708
21721
  numTicks: numTicks
21709
21722
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Axis, {
21710
21723
  key: "x-axis-".concat(animationTrajectory),
21711
- label: xAxis.label,
21712
- orientation: "bottom",
21713
- numTicks: (_xAxis$numTicks = xAxis.numTicks) !== null && _xAxis$numTicks !== void 0 ? _xAxis$numTicks : numTicks,
21714
21724
  animationTrajectory: animationTrajectory,
21715
- tickFormat: xAxis.formatTick,
21716
- labelOffset: xAxis.labelOffset
21725
+ orientation: "bottom",
21726
+ label: xLabel,
21727
+ numTicks: xNumTicks,
21728
+ tickFormat: xFormatTick,
21729
+ labelOffset: xLabelOffset
21717
21730
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Axis, {
21718
21731
  key: "y-axis-".concat(animationTrajectory),
21719
- label: yAxis.label,
21720
- orientation: "left",
21721
- numTicks: (_yAxis$numTicks = yAxis.numTicks) !== null && _yAxis$numTicks !== void 0 ? _yAxis$numTicks : numTicks,
21722
21732
  animationTrajectory: animationTrajectory,
21723
- tickFormat: yAxis.formatTick,
21724
- labelOffset: yAxis.labelOffset
21733
+ orientation: "left",
21734
+ label: yLabel,
21735
+ numTicks: yNumTicks,
21736
+ tickFormat: yFormatTick,
21737
+ labelOffset: yLabelOffset
21725
21738
  }), data.map(function (lineData) {
21726
21739
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LineSeries, _extends({
21727
21740
  key: lineData.name,
@@ -21740,7 +21753,7 @@ var LineChart = function LineChart(props) {
21740
21753
  return (0,_render_comp__WEBPACK_IMPORTED_MODULE_7__.renderComp)(tooltipContent, _objectSpread({
21741
21754
  Glyph: _glyph__WEBPACK_IMPORTED_MODULE_8__["default"],
21742
21755
  data: data,
21743
- formatTick: xAxis.formatTick,
21756
+ formatTick: xFormatTick,
21744
21757
  formatValue: formatValue,
21745
21758
  shared: true
21746
21759
  }, params));
@@ -21760,7 +21773,7 @@ var Line = function Line(props) {
21760
21773
  showTooltip = props.showTooltip,
21761
21774
  tooltipContent = props.tooltipContent,
21762
21775
  curveType = props.curveType,
21763
- rest = _objectWithoutProperties(props, _excluded);
21776
+ rest = _objectWithoutProperties(props, _excluded3);
21764
21777
  var chartProps = {
21765
21778
  animated: animated,
21766
21779
  showGridRows: showGridRows,
@@ -21805,15 +21818,13 @@ Line.propTypes = {
21805
21818
  label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
21806
21819
  numTicks: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21807
21820
  formatTick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
21808
- labelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21809
- config: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)
21821
+ labelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
21810
21822
  }),
21811
21823
  yAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
21812
21824
  label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
21813
21825
  numTicks: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21814
21826
  formatTick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
21815
- labelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21816
- config: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)
21827
+ labelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
21817
21828
  }),
21818
21829
  formatValue: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
21819
21830
  margin: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({