rc-slider
Advanced tools
Comparing version 9.7.4 to 9.7.5
@@ -12,3 +12,2 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _createSuper from "@babel/runtime/helpers/esm/createSuper"; | ||
var _excluded = ["index"]; | ||
import React from 'react'; | ||
@@ -27,6 +26,6 @@ import addEventListener from "rc-util/es/Dom/addEventListener"; | ||
export default function createSlider(Component) { | ||
var _class, _temp; | ||
var _a; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
return _temp = _class = /*#__PURE__*/function (_Component) { | ||
return _a = /*#__PURE__*/function (_Component) { | ||
_inherits(ComponentEnhancer, _Component); | ||
@@ -42,13 +41,2 @@ | ||
_this = _super.call(this, props); | ||
_this.handlesRefs = void 0; | ||
_this.sliderRef = void 0; | ||
_this.document = void 0; | ||
_this.dragOffset = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.onTouchMoveListener = void 0; | ||
_this.onTouchUpListener = void 0; | ||
_this.onMouseMoveListener = void 0; | ||
_this.onMouseUpListener = void 0; | ||
_this.dragTrack = void 0; | ||
_this.startBounds = void 0; | ||
@@ -409,3 +397,3 @@ _this.onDown = function (e, position) { | ||
return ComponentEnhancer; | ||
}(Component), _class.displayName = "ComponentEnhancer(".concat(Component.displayName, ")"), _class.defaultProps = _objectSpread(_objectSpread({}, Component.defaultProps), {}, { | ||
}(Component), _a.displayName = "ComponentEnhancer(".concat(Component.displayName, ")"), _a.defaultProps = _objectSpread(_objectSpread({}, Component.defaultProps), {}, { | ||
prefixCls: 'rc-slider', | ||
@@ -419,3 +407,3 @@ className: '', | ||
var index = props.index, | ||
restProps = _objectWithoutProperties(props, _excluded); | ||
restProps = _objectWithoutProperties(props, ["index"]); | ||
@@ -445,3 +433,3 @@ delete restProps.dragging; | ||
activeDotStyle: {} | ||
}), _temp; | ||
}), _a; | ||
} |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare const Marks: ({ className, vertical, reverse, marks, included, upperBound, lowerBound, max, min, onClickLabel, }: { | ||
@@ -2,0 +3,0 @@ className: any; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare const Steps: ({ prefixCls, vertical, reverse, marks, dots, step, included, lowerBound, upperBound, max, min, dotStyle, activeDotStyle, }: { | ||
@@ -2,0 +3,0 @@ prefixCls: any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare const Track: (props: any) => JSX.Element; | ||
export default Track; |
@@ -9,4 +9,2 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _createSuper from "@babel/runtime/helpers/esm/createSuper"; | ||
var _excluded = ["value", "dragging", "index", "disabled"], | ||
_excluded2 = ["prefixCls", "overlay", "placement", "visible"]; | ||
import React from 'react'; | ||
@@ -16,6 +14,6 @@ import Tooltip from './common/SliderTooltip'; | ||
export default function createSliderWithTooltip(Component) { | ||
var _class, _temp; | ||
var _a; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
return _temp = _class = /*#__PURE__*/function (_React$Component) { | ||
return _a = /*#__PURE__*/function (_React$Component) { | ||
_inherits(ComponentWrapper, _React$Component); | ||
@@ -30,7 +28,3 @@ | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
_this = _super.apply(this, arguments); | ||
_this.state = { | ||
@@ -53,3 +47,3 @@ visibles: {} | ||
disabled = _ref.disabled, | ||
restProps = _objectWithoutProperties(_ref, _excluded); | ||
restProps = _objectWithoutProperties(_ref, ["value", "dragging", "index", "disabled"]); | ||
@@ -70,3 +64,3 @@ var _this$props = _this.props, | ||
visible = _tipProps$visible === void 0 ? false : _tipProps$visible, | ||
restTooltipProps = _objectWithoutProperties(tipProps, _excluded2); | ||
restTooltipProps = _objectWithoutProperties(tipProps, ["prefixCls", "overlay", "placement", "visible"]); | ||
@@ -113,3 +107,3 @@ var handleStyleWithIndex; | ||
return ComponentWrapper; | ||
}(React.Component), _class.defaultProps = { | ||
}(React.Component), _a.defaultProps = { | ||
tipFormatter: function tipFormatter(value) { | ||
@@ -123,3 +117,3 @@ return value; | ||
} | ||
}, _temp; | ||
}, _a; | ||
} |
@@ -9,3 +9,2 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _createSuper from "@babel/runtime/helpers/esm/createSuper"; | ||
var _excluded = ["prefixCls", "vertical", "reverse", "offset", "style", "disabled", "min", "max", "value", "tabIndex", "ariaLabel", "ariaLabelledBy", "ariaValueTextFormatter"]; | ||
import React from 'react'; | ||
@@ -25,12 +24,6 @@ import classNames from 'classnames'; | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
_this = _super.apply(this, arguments); | ||
_this.state = { | ||
clickFocused: false | ||
}; | ||
_this.onMouseUpListener = void 0; | ||
_this.handle = void 0; | ||
@@ -122,3 +115,3 @@ _this.setHandleRef = function (node) { | ||
ariaValueTextFormatter = _this$props.ariaValueTextFormatter, | ||
restProps = _objectWithoutProperties(_this$props, _excluded); | ||
restProps = _objectWithoutProperties(_this$props, ["prefixCls", "vertical", "reverse", "offset", "style", "disabled", "min", "max", "value", "tabIndex", "ariaLabel", "ariaLabelledBy", "ariaValueTextFormatter"]); | ||
@@ -125,0 +118,0 @@ var className = classNames(this.props.className, _defineProperty({}, "".concat(prefixCls, "-handle-click-focused"), this.state.clickFocused)); |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
allowCross?: boolean; | ||
pushable?: boolean; | ||
pushable?: boolean | number; | ||
onChange?: (value: number[]) => void; | ||
@@ -32,3 +32,3 @@ onBeforeChange?: (value: number[]) => void; | ||
ariaLabelledByGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: ((value: number) => string)[]; | ||
handle?: SliderProps['handle']; | ||
@@ -35,0 +35,0 @@ draggableTrack?: boolean; |
@@ -49,8 +49,2 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
_this = _super.call(this, props); | ||
_this.startValue = void 0; | ||
_this.startPosition = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.internalPointsCache = void 0; | ||
_this.handlesRefs = void 0; | ||
_this.dragTrack = void 0; | ||
@@ -100,6 +94,4 @@ _this.positionGetValue = function (position) { | ||
var defaultValue = 'defaultValue' in props ? props.defaultValue : initialValue; | ||
var _value = props.value !== undefined ? props.value : defaultValue; | ||
var _bounds = _value.map(function (v, i) { | ||
var value = props.value !== undefined ? props.value : defaultValue; | ||
var bounds = value.map(function (v, i) { | ||
return _trimAlignValue({ | ||
@@ -111,22 +103,21 @@ value: v, | ||
}); | ||
var recent = _bounds[0] === max ? 0 : _bounds.length - 1; | ||
var recent = bounds[0] === max ? 0 : bounds.length - 1; | ||
_this.state = { | ||
handle: null, | ||
recent: recent, | ||
bounds: _bounds | ||
bounds: bounds | ||
}; | ||
return _this; | ||
} | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
_createClass(Range, [{ | ||
key: "calcValueByPos", | ||
value: | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
function calcValueByPos(value) { | ||
value: function calcValueByPos(value) { | ||
return 0; | ||
@@ -150,4 +141,2 @@ } | ||
value: function removeDocumentEvents() {} | ||
/* eslint-enable */ | ||
}, { | ||
@@ -644,3 +633,5 @@ key: "componentDidUpdate", | ||
}(React.Component); | ||
/* eslint-enable */ | ||
Range.displayName = 'Range'; | ||
@@ -647,0 +638,0 @@ Range.defaultProps = { |
@@ -23,3 +23,3 @@ import React from 'react'; | ||
ariaLabelledByForHandle?: string; | ||
ariaValueTextFormatterForHandle?: string; | ||
ariaValueTextFormatterForHandle?: (value: number) => string; | ||
startPoint?: number; | ||
@@ -41,3 +41,3 @@ handle?: (props: { | ||
ariaLabelledBy: string; | ||
ariaValueTextFormatter: string; | ||
ariaValueTextFormatter?: (value: number) => string; | ||
style?: React.CSSProperties; | ||
@@ -44,0 +44,0 @@ ref?: React.Ref<any>; |
@@ -29,6 +29,2 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
_this.startValue = void 0; | ||
_this.startPosition = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.onEnd = function (force) { | ||
@@ -58,13 +54,13 @@ var dragging = _this.state.dragging; | ||
} | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
_createClass(Slider, [{ | ||
key: "calcValueByPos", | ||
value: | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
function calcValueByPos(value) { | ||
value: function calcValueByPos(value) { | ||
return 0; | ||
@@ -71,0 +67,0 @@ } |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -50,4 +50,2 @@ value: true | ||
var _excluded = ["index"]; | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
@@ -57,6 +55,6 @@ function noop() {} | ||
function createSlider(Component) { | ||
var _class, _temp; | ||
var _a; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
return _temp = _class = /*#__PURE__*/function (_Component) { | ||
return _a = /*#__PURE__*/function (_Component) { | ||
(0, _inherits2.default)(ComponentEnhancer, _Component); | ||
@@ -71,13 +69,2 @@ | ||
_this = _super.call(this, props); | ||
_this.handlesRefs = void 0; | ||
_this.sliderRef = void 0; | ||
_this.document = void 0; | ||
_this.dragOffset = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.onTouchMoveListener = void 0; | ||
_this.onTouchUpListener = void 0; | ||
_this.onMouseMoveListener = void 0; | ||
_this.onMouseUpListener = void 0; | ||
_this.dragTrack = void 0; | ||
_this.startBounds = void 0; | ||
@@ -437,3 +424,3 @@ _this.onDown = function (e, position) { | ||
return ComponentEnhancer; | ||
}(Component), _class.displayName = "ComponentEnhancer(".concat(Component.displayName, ")"), _class.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, Component.defaultProps), {}, { | ||
}(Component), _a.displayName = "ComponentEnhancer(".concat(Component.displayName, ")"), _a.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, Component.defaultProps), {}, { | ||
prefixCls: 'rc-slider', | ||
@@ -447,3 +434,3 @@ className: '', | ||
var index = props.index, | ||
restProps = (0, _objectWithoutProperties2.default)(props, _excluded); | ||
restProps = (0, _objectWithoutProperties2.default)(props, ["index"]); | ||
delete restProps.dragging; | ||
@@ -472,3 +459,3 @@ | ||
activeDotStyle: {} | ||
}), _temp; | ||
}), _a; | ||
} |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare const Marks: ({ className, vertical, reverse, marks, included, upperBound, lowerBound, max, min, onClickLabel, }: { | ||
@@ -2,0 +3,0 @@ className: any; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare const Steps: ({ prefixCls, vertical, reverse, marks, dots, step, included, lowerBound, upperBound, max, min, dotStyle, activeDotStyle, }: { | ||
@@ -2,0 +3,0 @@ prefixCls: any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare const Track: (props: any) => JSX.Element; | ||
export default Track; |
@@ -32,10 +32,7 @@ "use strict"; | ||
var _excluded = ["value", "dragging", "index", "disabled"], | ||
_excluded2 = ["prefixCls", "overlay", "placement", "visible"]; | ||
function createSliderWithTooltip(Component) { | ||
var _class, _temp; | ||
var _a; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
return _temp = _class = /*#__PURE__*/function (_React$Component) { | ||
return _a = /*#__PURE__*/function (_React$Component) { | ||
(0, _inherits2.default)(ComponentWrapper, _React$Component); | ||
@@ -49,8 +46,3 @@ | ||
(0, _classCallCheck2.default)(this, ComponentWrapper); | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
_this = _super.apply(this, arguments); | ||
_this.state = { | ||
@@ -73,3 +65,3 @@ visibles: {} | ||
disabled = _ref.disabled, | ||
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded); | ||
restProps = (0, _objectWithoutProperties2.default)(_ref, ["value", "dragging", "index", "disabled"]); | ||
var _this$props = _this.props, | ||
@@ -88,3 +80,3 @@ tipFormatter = _this$props.tipFormatter, | ||
visible = _tipProps$visible === void 0 ? false : _tipProps$visible, | ||
restTooltipProps = (0, _objectWithoutProperties2.default)(tipProps, _excluded2); | ||
restTooltipProps = (0, _objectWithoutProperties2.default)(tipProps, ["prefixCls", "overlay", "placement", "visible"]); | ||
var handleStyleWithIndex; | ||
@@ -129,3 +121,3 @@ | ||
return ComponentWrapper; | ||
}(_react.default.Component), _class.defaultProps = { | ||
}(_react.default.Component), _a.defaultProps = { | ||
tipFormatter: function tipFormatter(value) { | ||
@@ -139,3 +131,3 @@ return value; | ||
} | ||
}, _temp; | ||
}, _a; | ||
} |
@@ -32,4 +32,2 @@ "use strict"; | ||
var _excluded = ["prefixCls", "vertical", "reverse", "offset", "style", "disabled", "min", "max", "value", "tabIndex", "ariaLabel", "ariaLabelledBy", "ariaValueTextFormatter"]; | ||
var Handle = /*#__PURE__*/function (_React$Component) { | ||
@@ -44,13 +42,6 @@ (0, _inherits2.default)(Handle, _React$Component); | ||
(0, _classCallCheck2.default)(this, Handle); | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
_this = _super.apply(this, arguments); | ||
_this.state = { | ||
clickFocused: false | ||
}; | ||
_this.onMouseUpListener = void 0; | ||
_this.handle = void 0; | ||
@@ -142,3 +133,3 @@ _this.setHandleRef = function (node) { | ||
ariaValueTextFormatter = _this$props.ariaValueTextFormatter, | ||
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); | ||
restProps = (0, _objectWithoutProperties2.default)(_this$props, ["prefixCls", "vertical", "reverse", "offset", "style", "disabled", "min", "max", "value", "tabIndex", "ariaLabel", "ariaLabelledBy", "ariaValueTextFormatter"]); | ||
var className = (0, _classnames.default)(this.props.className, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-handle-click-focused"), this.state.clickFocused)); | ||
@@ -145,0 +136,0 @@ var positionStyle = vertical ? (_ref = {}, (0, _defineProperty2.default)(_ref, reverse ? 'top' : 'bottom', "".concat(offset, "%")), (0, _defineProperty2.default)(_ref, reverse ? 'bottom' : 'top', 'auto'), (0, _defineProperty2.default)(_ref, "transform", reverse ? null : "translateY(+50%)"), _ref) : (_ref2 = {}, (0, _defineProperty2.default)(_ref2, reverse ? 'right' : 'left', "".concat(offset, "%")), (0, _defineProperty2.default)(_ref2, reverse ? 'left' : 'right', 'auto'), (0, _defineProperty2.default)(_ref2, "transform", "translateX(".concat(reverse ? '+' : '-', "50%)")), _ref2); |
@@ -8,2 +8,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "Range", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Range.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Handle", { | ||
@@ -15,6 +21,6 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "Range", { | ||
Object.defineProperty(exports, "createSliderWithTooltip", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Range.default; | ||
return _createSliderWithTooltip.default; | ||
} | ||
@@ -28,8 +34,2 @@ }); | ||
}); | ||
Object.defineProperty(exports, "createSliderWithTooltip", { | ||
enumerable: true, | ||
get: function get() { | ||
return _createSliderWithTooltip.default; | ||
} | ||
}); | ||
exports.default = void 0; | ||
@@ -36,0 +36,0 @@ |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
allowCross?: boolean; | ||
pushable?: boolean; | ||
pushable?: boolean | number; | ||
onChange?: (value: number[]) => void; | ||
@@ -32,3 +32,3 @@ onBeforeChange?: (value: number[]) => void; | ||
ariaLabelledByGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: string | string[]; | ||
ariaValueTextFormatterGroupForHandles?: ((value: number) => string)[]; | ||
handle?: SliderProps['handle']; | ||
@@ -35,0 +35,0 @@ draggableTrack?: boolean; |
@@ -70,8 +70,2 @@ "use strict"; | ||
_this = _super.call(this, props); | ||
_this.startValue = void 0; | ||
_this.startPosition = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.internalPointsCache = void 0; | ||
_this.handlesRefs = void 0; | ||
_this.dragTrack = void 0; | ||
@@ -119,6 +113,4 @@ _this.positionGetValue = function (position) { | ||
var defaultValue = 'defaultValue' in props ? props.defaultValue : initialValue; | ||
var _value = props.value !== undefined ? props.value : defaultValue; | ||
var _bounds = _value.map(function (v, i) { | ||
var value = props.value !== undefined ? props.value : defaultValue; | ||
var bounds = value.map(function (v, i) { | ||
return _trimAlignValue({ | ||
@@ -130,22 +122,21 @@ value: v, | ||
}); | ||
var recent = _bounds[0] === max ? 0 : _bounds.length - 1; | ||
var recent = bounds[0] === max ? 0 : bounds.length - 1; | ||
_this.state = { | ||
handle: null, | ||
recent: recent, | ||
bounds: _bounds | ||
bounds: bounds | ||
}; | ||
return _this; | ||
} | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
(0, _createClass2.default)(Range, [{ | ||
key: "calcValueByPos", | ||
value: | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
function calcValueByPos(value) { | ||
value: function calcValueByPos(value) { | ||
return 0; | ||
@@ -169,4 +160,2 @@ } | ||
value: function removeDocumentEvents() {} | ||
/* eslint-enable */ | ||
}, { | ||
@@ -657,3 +646,5 @@ key: "componentDidUpdate", | ||
}(_react.default.Component); | ||
/* eslint-enable */ | ||
Range.displayName = 'Range'; | ||
@@ -660,0 +651,0 @@ Range.defaultProps = { |
@@ -23,3 +23,3 @@ import React from 'react'; | ||
ariaLabelledByForHandle?: string; | ||
ariaValueTextFormatterForHandle?: string; | ||
ariaValueTextFormatterForHandle?: (value: number) => string; | ||
startPoint?: number; | ||
@@ -41,3 +41,3 @@ handle?: (props: { | ||
ariaLabelledBy: string; | ||
ariaValueTextFormatter: string; | ||
ariaValueTextFormatter?: (value: number) => string; | ||
style?: React.CSSProperties; | ||
@@ -44,0 +44,0 @@ ref?: React.Ref<any>; |
@@ -48,6 +48,2 @@ "use strict"; | ||
_this.startValue = void 0; | ||
_this.startPosition = void 0; | ||
_this.prevMovedHandleIndex = void 0; | ||
_this.onEnd = function (force) { | ||
@@ -77,13 +73,13 @@ var dragging = _this.state.dragging; | ||
} | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
(0, _createClass2.default)(Slider, [{ | ||
key: "calcValueByPos", | ||
value: | ||
/** | ||
* [Legacy] Used for inherit other component. | ||
* It's a bad code style which should be refactor. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */ | ||
function calcValueByPos(value) { | ||
value: function calcValueByPos(value) { | ||
return 0; | ||
@@ -90,0 +86,0 @@ } |
@@ -8,15 +8,15 @@ "use strict"; | ||
}); | ||
exports.calculateNextValue = calculateNextValue; | ||
exports.ensureValueInRange = ensureValueInRange; | ||
exports.ensureValuePrecision = ensureValuePrecision; | ||
exports.isEventFromHandle = isEventFromHandle; | ||
exports.isValueOutOfRange = isValueOutOfRange; | ||
exports.isNotTouchEvent = isNotTouchEvent; | ||
exports.getClosestPoint = getClosestPoint; | ||
exports.getHandleCenterPosition = getHandleCenterPosition; | ||
exports.getKeyboardValueMutator = getKeyboardValueMutator; | ||
exports.getPrecision = getPrecision; | ||
exports.getMousePosition = getMousePosition; | ||
exports.getPrecision = getPrecision; | ||
exports.getTouchPosition = getTouchPosition; | ||
exports.isEventFromHandle = isEventFromHandle; | ||
exports.isNotTouchEvent = isNotTouchEvent; | ||
exports.isValueOutOfRange = isValueOutOfRange; | ||
exports.getHandleCenterPosition = getHandleCenterPosition; | ||
exports.ensureValueInRange = ensureValueInRange; | ||
exports.ensureValuePrecision = ensureValuePrecision; | ||
exports.pauseEvent = pauseEvent; | ||
exports.calculateNextValue = calculateNextValue; | ||
exports.getKeyboardValueMutator = getKeyboardValueMutator; | ||
@@ -23,0 +23,0 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); |
{ | ||
"name": "rc-slider", | ||
"version": "9.7.4", | ||
"version": "9.7.5", | ||
"description": "Slider UI component for React", | ||
@@ -55,3 +55,3 @@ "engines": { | ||
"rc-tooltip": "^5.0.1", | ||
"rc-util": "^5.0.0", | ||
"rc-util": "^5.16.1", | ||
"shallowequal": "^1.1.0" | ||
@@ -58,0 +58,0 @@ }, |
182867
52
4496
Updatedrc-util@^5.16.1