@luminati-io/uikit 3.7.2 → 3.7.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -29543,7 +29543,11 @@ var BarChart = function BarChart(props) {
|
|
29543
29543
|
onPointerUp = props.onPointerUp,
|
29544
29544
|
onPointerDown = props.onPointerDown,
|
29545
29545
|
pointerEventsDataKey = props.pointerEventsDataKey,
|
29546
|
-
children = props.children
|
29546
|
+
children = props.children,
|
29547
|
+
_props$snapTooltipToD = props.snapTooltipToDatumX,
|
29548
|
+
snapTooltipToDatumX = _props$snapTooltipToD === void 0 ? true : _props$snapTooltipToD,
|
29549
|
+
_props$snapTooltipToD2 = props.snapTooltipToDatumY,
|
29550
|
+
snapTooltipToDatumY = _props$snapTooltipToD2 === void 0 ? true : _props$snapTooltipToD2;
|
29547
29551
|
var _getAnimatedOrUnanima = (0,_get_components__WEBPACK_IMPORTED_MODULE_5__.getAnimatedOrUnanimatedComponents)(animated),
|
29548
29552
|
XYChart = _getAnimatedOrUnanima.XYChart,
|
29549
29553
|
Grid = _getAnimatedOrUnanima.Grid,
|
@@ -29567,6 +29571,8 @@ var BarChart = function BarChart(props) {
|
|
29567
29571
|
id: "pattern_".concat(i)
|
29568
29572
|
}, barProps.pattern);
|
29569
29573
|
}).filter(Boolean);
|
29574
|
+
var showVerticalCrosshair = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(props.showVerticalCrosshair, !stacked && !horizontal);
|
29575
|
+
var showHorizontalCrosshair = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(props.showHorizontalCrosshair, !stacked && horizontal);
|
29570
29576
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
29571
29577
|
theme: chartTheme,
|
29572
29578
|
xScale: config.x,
|
@@ -29640,10 +29646,10 @@ var BarChart = function BarChart(props) {
|
|
29640
29646
|
tickFormat: yAxis.formatTick,
|
29641
29647
|
labelOffset: yAxis.labelOffset
|
29642
29648
|
}), !!showTooltip && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Tooltip, {
|
29643
|
-
showHorizontalCrosshair:
|
29644
|
-
showVerticalCrosshair:
|
29645
|
-
snapTooltipToDatumX:
|
29646
|
-
snapTooltipToDatumY:
|
29649
|
+
showHorizontalCrosshair: showVerticalCrosshair,
|
29650
|
+
showVerticalCrosshair: showHorizontalCrosshair,
|
29651
|
+
snapTooltipToDatumX: snapTooltipToDatumX,
|
29652
|
+
snapTooltipToDatumY: snapTooltipToDatumY,
|
29647
29653
|
unstyled: true,
|
29648
29654
|
applyPositionStyle: true,
|
29649
29655
|
renderTooltip: function renderTooltip(params) {
|
@@ -29659,7 +29665,7 @@ var BarChart = function BarChart(props) {
|
|
29659
29665
|
};
|
29660
29666
|
BarChart.displayName = 'BarChart';
|
29661
29667
|
var Bar = function Bar(props) {
|
29662
|
-
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'horizontal', 'stacked', 'showAnnotations', 'showTooltip', 'tooltipContent', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
29668
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'horizontal', 'stacked', 'showAnnotations', 'showTooltip', 'tooltipContent', 'snapTooltipToDatumX', 'snapTooltipToDatumY', 'showVerticalCrosshair', 'showHorizontalCrosshair', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
29663
29669
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
29664
29670
|
chartProps = _splitProps2[0],
|
29665
29671
|
restProps = _splitProps2[1];
|
@@ -29714,6 +29720,10 @@ Bar.propTypes = {
|
|
29714
29720
|
showAnnotations: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29715
29721
|
showTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29716
29722
|
tooltipContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
29723
|
+
snapTooltipToDatumX: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29724
|
+
snapTooltipToDatumY: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29725
|
+
showVerticalCrosshair: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29726
|
+
showHorizontalCrosshair: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29717
29727
|
onPointerMove: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29718
29728
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29719
29729
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
@@ -35723,23 +35733,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
35723
35733
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
35724
35734
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
35725
35735
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
35726
|
-
/* harmony import */ var
|
35727
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
35736
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
35728
35737
|
// LICENSE_CODE ZON
|
35729
35738
|
|
35730
35739
|
|
35731
35740
|
/*jslint react:true*/
|
35732
|
-
var _excluded = ["
|
35741
|
+
var _excluded = ["onChange", "onBlur", "value", "step", "minValue", "maxValue", "size", "placeholder", "changeOnBlur"],
|
35742
|
+
_excluded2 = ["onFocus", "onBlur", "onChange"];
|
35733
35743
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
35734
35744
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
35735
35745
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
35736
35746
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
35737
35747
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
35738
35748
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
35749
|
+
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); }
|
35739
35750
|
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; }
|
35740
35751
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
35741
|
-
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); }
|
35742
|
-
|
35743
35752
|
|
35744
35753
|
|
35745
35754
|
|
@@ -35753,12 +35762,16 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
|
|
35753
35762
|
var onChange = props.onChange,
|
35754
35763
|
onBlur = props.onBlur,
|
35755
35764
|
value = props.value,
|
35756
|
-
step = props.step,
|
35765
|
+
_props$step = props.step,
|
35766
|
+
step = _props$step === void 0 ? 1 : _props$step,
|
35757
35767
|
minValue = props.minValue,
|
35758
35768
|
maxValue = props.maxValue,
|
35759
|
-
size = props.size,
|
35769
|
+
_props$size = props.size,
|
35770
|
+
size = _props$size === void 0 ? 'sm' : _props$size,
|
35760
35771
|
placeholder = props.placeholder,
|
35761
|
-
changeOnBlur = props.changeOnBlur
|
35772
|
+
_props$changeOnBlur = props.changeOnBlur,
|
35773
|
+
changeOnBlur = _props$changeOnBlur === void 0 ? true : _props$changeOnBlur,
|
35774
|
+
rest = _objectWithoutProperties(props, _excluded);
|
35762
35775
|
var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
|
35763
35776
|
var v = e.target.value;
|
35764
35777
|
if (v != '') v = +v;
|
@@ -35770,19 +35783,11 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
|
|
35770
35783
|
var v = +value;
|
35771
35784
|
if (typeof maxValue == 'number' && v > maxValue) onChange === null || onChange === void 0 || onChange(maxValue, e);else if (typeof minValue == 'number' && v < minValue) onChange === null || onChange === void 0 || onChange(minValue, e);
|
35772
35785
|
}, [onChange, onBlur, value, minValue, maxValue, changeOnBlur]);
|
35773
|
-
var heightCalculationCallback = (0,
|
35774
|
-
var sizes = {
|
35775
|
-
'xs': 28,
|
35776
|
-
'sm': 36,
|
35777
|
-
'md': 40,
|
35778
|
-
'lg': 48
|
35779
|
-
};
|
35780
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(sizes[size] || sizes.sm));
|
35781
|
-
}, [size]);
|
35786
|
+
var heightCalculationCallback = (0,_shared__WEBPACK_IMPORTED_MODULE_7__.useHeightCalculationCallback)(size);
|
35782
35787
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_4__.useTranslate)();
|
35783
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
35788
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_7__.FieldWrapper, _extends({
|
35784
35789
|
ref: ref
|
35785
|
-
},
|
35790
|
+
}, rest, {
|
35786
35791
|
autoresize: false,
|
35787
35792
|
heightCalculationCallback: heightCalculationCallback,
|
35788
35793
|
inputProps: {
|
@@ -35797,11 +35802,6 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
|
|
35797
35802
|
placeholder: t(placeholder)
|
35798
35803
|
}));
|
35799
35804
|
});
|
35800
|
-
Number.defaultProps = {
|
35801
|
-
size: 'sm',
|
35802
|
-
step: 1,
|
35803
|
-
changeOnBlur: true
|
35804
|
-
};
|
35805
35805
|
Number.displayName = 'Number';
|
35806
35806
|
Number.propTypes = {
|
35807
35807
|
value: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)]),
|
@@ -35831,7 +35831,7 @@ var NumberField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
35831
35831
|
var onFocus = props.onFocus,
|
35832
35832
|
onBlur = props.onBlur,
|
35833
35833
|
onChange = props.onChange,
|
35834
|
-
rest = _objectWithoutProperties(props,
|
35834
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
35835
35835
|
var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
35836
35836
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
35837
35837
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -36417,11 +36417,11 @@ var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typogra
|
|
36417
36417
|
var LeftOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
36418
36418
|
displayName: "LeftOuterContentWrapper",
|
36419
36419
|
componentId: "sc-r60v1b-4"
|
36420
|
-
})(["border-top-left-radius:4px;border-bottom-left-radius:4px;
|
36420
|
+
})(["border-top-left-radius:4px;border-bottom-left-radius:4px;height:100%;"]);
|
36421
36421
|
var RightOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
36422
36422
|
displayName: "RightOuterContentWrapper",
|
36423
36423
|
componentId: "sc-r60v1b-5"
|
36424
|
-
})(["border-top-right-radius:4px;border-bottom-right-radius:4px;
|
36424
|
+
})(["border-top-right-radius:4px;border-bottom-right-radius:4px;height:100%;"]);
|
36425
36425
|
var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).withConfig({
|
36426
36426
|
displayName: "InputContentWrapper",
|
36427
36427
|
componentId: "sc-r60v1b-6"
|
@@ -36431,26 +36431,16 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
36431
36431
|
var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
36432
36432
|
displayName: "InputWrapper",
|
36433
36433
|
componentId: "sc-r60v1b-7"
|
36434
|
-
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";", " ", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
|
36434
|
+
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
|
36435
36435
|
return props.$verticalAlign;
|
36436
36436
|
}, function (props) {
|
36437
|
-
|
36438
|
-
|
36439
|
-
|
36440
|
-
|
36441
|
-
|
36442
|
-
|
36443
|
-
|
36444
|
-
var borderRightWidth = 1;
|
36445
|
-
if ($leftOuterContent) {
|
36446
|
-
borderTopLeftRadius = borderBottomLeftRadius = 0;
|
36447
|
-
borderLeftWidth = 0;
|
36448
|
-
}
|
36449
|
-
if ($rightOuterContent) {
|
36450
|
-
borderTopRightRadius = borderBottomRightRadius = 0;
|
36451
|
-
borderRightWidth = 0;
|
36452
|
-
}
|
36453
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-left-width:", ";border-right-width:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderLeftWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderRightWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderTopLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderBottomLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderTopRightRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(borderBottomRightRadius));
|
36437
|
+
return props.$leftOuterContent ? '0' : '4px';
|
36438
|
+
}, function (props) {
|
36439
|
+
return props.$leftOuterContent ? '0' : '4px';
|
36440
|
+
}, function (props) {
|
36441
|
+
return props.$rightOuterContent ? '0' : '4px';
|
36442
|
+
}, function (props) {
|
36443
|
+
return props.$rightOuterContent ? '0' : '4px';
|
36454
36444
|
}, function (props) {
|
36455
36445
|
var _props$$heightCalcula;
|
36456
36446
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|