@hitachivantara/uikit-react-core 3.66.2 → 3.67.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.
- package/dist/BaseInput/BaseInput.js +6 -1
- package/dist/BaseInput/BaseInput.js.map +1 -1
- package/dist/BaseInput/styles.js +3 -0
- package/dist/BaseInput/styles.js.map +1 -1
- package/dist/FilterGroup/Counter/Counter.js +9 -7
- package/dist/FilterGroup/Counter/Counter.js.map +1 -1
- package/dist/FilterGroup/FilterContent/FilterContent.js +1 -1
- package/dist/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/FilterGroup/FilterGroup.d.ts +4 -7
- package/dist/FilterGroup/RightPanel/RightPanel.js +2 -1
- package/dist/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/Forms/FormElement/index.d.ts +4 -0
- package/dist/Forms/FormElement/index.js +14 -0
- package/dist/Forms/FormElement/index.js.map +1 -1
- package/dist/Slider/Slider.d.ts +185 -0
- package/dist/Slider/Slider.js +803 -0
- package/dist/Slider/Slider.js.map +1 -0
- package/dist/Slider/SliderInput/SliderInput.js +194 -0
- package/dist/Slider/SliderInput/SliderInput.js.map +1 -0
- package/dist/Slider/SliderInput/index.d.ts +1 -0
- package/dist/Slider/SliderInput/index.js +16 -0
- package/dist/Slider/SliderInput/index.js.map +1 -0
- package/dist/Slider/SliderInput/styles.js +24 -0
- package/dist/Slider/SliderInput/styles.js.map +1 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +16 -0
- package/dist/Slider/index.js.map +1 -0
- package/dist/Slider/styles.js +239 -0
- package/dist/Slider/styles.js.map +1 -0
- package/dist/Slider/utils.js +413 -0
- package/dist/Slider/utils.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy/BaseInput/BaseInput.js +6 -1
- package/dist/legacy/BaseInput/BaseInput.js.map +1 -1
- package/dist/legacy/BaseInput/styles.js +3 -0
- package/dist/legacy/BaseInput/styles.js.map +1 -1
- package/dist/legacy/FilterGroup/Counter/Counter.js +8 -6
- package/dist/legacy/FilterGroup/Counter/Counter.js.map +1 -1
- package/dist/legacy/FilterGroup/FilterContent/FilterContent.js +1 -1
- package/dist/legacy/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/legacy/FilterGroup/FilterGroup.d.ts +4 -7
- package/dist/legacy/FilterGroup/RightPanel/RightPanel.js +2 -1
- package/dist/legacy/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/legacy/Forms/FormElement/index.d.ts +4 -0
- package/dist/legacy/Forms/FormElement/index.js +1 -0
- package/dist/legacy/Forms/FormElement/index.js.map +1 -1
- package/dist/legacy/Slider/Slider.d.ts +185 -0
- package/dist/legacy/Slider/Slider.js +752 -0
- package/dist/legacy/Slider/Slider.js.map +1 -0
- package/dist/legacy/Slider/SliderInput/SliderInput.js +151 -0
- package/dist/legacy/Slider/SliderInput/SliderInput.js.map +1 -0
- package/dist/legacy/Slider/SliderInput/index.d.ts +1 -0
- package/dist/legacy/Slider/SliderInput/index.js +2 -0
- package/dist/legacy/Slider/SliderInput/index.js.map +1 -0
- package/dist/legacy/Slider/SliderInput/styles.js +16 -0
- package/dist/legacy/Slider/SliderInput/styles.js.map +1 -0
- package/dist/legacy/Slider/index.d.ts +2 -0
- package/dist/legacy/Slider/index.js +2 -0
- package/dist/legacy/Slider/index.js.map +1 -0
- package/dist/legacy/Slider/styles.js +222 -0
- package/dist/legacy/Slider/styles.js.map +1 -0
- package/dist/legacy/Slider/utils.js +347 -0
- package/dist/legacy/Slider/utils.js.map +1 -0
- package/dist/legacy/index.d.ts +3 -0
- package/dist/legacy/index.js +1 -0
- package/dist/legacy/index.js.map +1 -1
- package/dist/modern/BaseInput/BaseInput.js +6 -1
- package/dist/modern/BaseInput/BaseInput.js.map +1 -1
- package/dist/modern/BaseInput/styles.js +3 -0
- package/dist/modern/BaseInput/styles.js.map +1 -1
- package/dist/modern/FilterGroup/Counter/Counter.js +4 -4
- package/dist/modern/FilterGroup/Counter/Counter.js.map +1 -1
- package/dist/modern/FilterGroup/FilterContent/FilterContent.js +1 -1
- package/dist/modern/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/modern/FilterGroup/FilterGroup.d.ts +4 -7
- package/dist/modern/FilterGroup/RightPanel/RightPanel.js +1 -1
- package/dist/modern/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/modern/Forms/FormElement/index.d.ts +4 -0
- package/dist/modern/Forms/FormElement/index.js +1 -0
- package/dist/modern/Forms/FormElement/index.js.map +1 -1
- package/dist/modern/Slider/Slider.d.ts +185 -0
- package/dist/modern/Slider/Slider.js +689 -0
- package/dist/modern/Slider/Slider.js.map +1 -0
- package/dist/modern/Slider/SliderInput/SliderInput.js +129 -0
- package/dist/modern/Slider/SliderInput/SliderInput.js.map +1 -0
- package/dist/modern/Slider/SliderInput/index.d.ts +1 -0
- package/dist/modern/Slider/SliderInput/index.js +2 -0
- package/dist/modern/Slider/SliderInput/index.js.map +1 -0
- package/dist/modern/Slider/SliderInput/styles.js +16 -0
- package/dist/modern/Slider/SliderInput/styles.js.map +1 -0
- package/dist/modern/Slider/index.d.ts +2 -0
- package/dist/modern/Slider/index.js +2 -0
- package/dist/modern/Slider/index.js.map +1 -0
- package/dist/modern/Slider/styles.js +215 -0
- package/dist/modern/Slider/styles.js.map +1 -0
- package/dist/modern/Slider/utils.js +302 -0
- package/dist/modern/Slider/utils.js.map +1 -0
- package/dist/modern/index.d.ts +3 -0
- package/dist/modern/index.js +1 -0
- package/dist/modern/index.js.map +1 -1
- package/package.json +9 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.js","names":["HvSlider","props","id","className","name","label","status","statusMessage","disabled","required","requiredMessage","readOnly","ariaErrorMessage","classes","hideInput","markProperties","markStep","markDigits","knobPropertiesProp","knobProperties","valuesProp","values","defaultValues","undefined","inputProps","theme","maxPointValue","minPointValue","divisionQuantity","formatMark","noOverlap","onChange","onBlur","onBeforeChange","onAfterChange","formatTooltip","sliderProps","knobProps","others","styles","stepValue","inverseStepValue","isSingle","defaultKnobsPositions","value","length","knobsPositions","setKnobsPositions","isDraggingTrack","setIsDraggingTrack","isDirty","elementId","hasLabel","arrayStatus","arrayDefaultStatus","validationStatus","setValidationState","validationMessage","setValidationMessage","canShowError","trackStyles","knobStyles","marks","rangesCount","performValidation","invalid","newValidationState","map","position","Number","isNaN","validationStates","valid","stepVl","inverseStepVl","current","generateKnobsPositionAndValues","knobsCurrentPosition","newKnobsPosition","slice","knobsValues","duplicatedValue","findDuplicated","filter","item","index","indexOf","forEach","array","newArray","newPosition","previousValue","knobsPosition","onChangeHandler","knobs","knobProperty","fixed","onInputChangeHandler","inputValues","newKnobPositions","onBeforeChangeHandler","onAfterChangeHandler","onMouseDownHandler","event","target","includes","onMouseUpHandler","onBlurHandler","sliderInputId","createKnob","knobNode","params","knobValue","dragging","knobClassName","style","restProps","scaledKnobValue","toFixed","backgroundColor","dragColor","color","isEmpty","handleId","handleHiddenContainer","handleContainerDisabled","handleContainer","sliderTooltip","handle","root","trackDragging","trackStandBy","rootDisabled","labelContainer","labelIncluded","onlyInput","sliderContainer","sliderRoot","dotDisabled","dot","singleValue","rail","knobInner","rootRange","error","propTypes","PropTypes","string","node","bool","instanceOf","Object","oneOf","arrayOf","number","shape","hoverColor","trackColor","knobRingColor","defaultValue","hidden","func","knobOuter","knobHidden","knobHiddenLast","track","mark","isRequired","any","styleCreator","withTheme"],"sources":["../../src/Slider/Slider.js"],"sourcesContent":["import React, { useCallback, useEffect, useRef, useState, useMemo } from \"react\";\nimport clsx from \"clsx\";\nimport PropTypes from \"prop-types\";\nimport Slider from \"rc-slider\";\nimport Tooltip from \"rc-tooltip\";\nimport \"rc-slider/assets/index.css\";\nimport { withStyles } from \"@material-ui/core\";\nimport { HvFormElement, useControlled, useUniqueId, HvLabel, setId, HvWarningText } from \"..\";\nimport validationStates from \"../Forms/FormElement/validationStates\";\nimport {\n knobsPositionToScaledValue,\n calculateStepValue,\n createKnobStyles,\n createTrackStyles,\n createMark,\n knobsValuesToKnobsPositions,\n knobsPositionsToKnobsValues,\n scaledValueToKnobsPositionValue,\n generateDefaultKnobProperties,\n isSingleSlider,\n ensureValuesConsistency,\n convertStatusToArray,\n statusArrayToFormStatus,\n} from \"./utils\";\nimport styleCreator from \"./styles\";\nimport SliderInput from \"./SliderInput\";\n\n/**\n * Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters. Still in development\n */\nconst HvSlider = (props) => {\n const {\n id,\n className,\n name,\n label,\n status,\n statusMessage,\n disabled,\n required = false,\n requiredMessage = \"The value is required\",\n readOnly = false,\n \"aria-errormessage\": ariaErrorMessage,\n classes,\n hideInput = false,\n markProperties = [],\n markStep = 20,\n markDigits = 0,\n knobProperties: knobPropertiesProp,\n values: valuesProp,\n defaultValues = [undefined],\n inputProps,\n theme,\n maxPointValue = 100,\n minPointValue = 0,\n divisionQuantity = 100,\n formatMark,\n noOverlap = true,\n onChange,\n onBlur,\n onBeforeChange,\n onAfterChange,\n formatTooltip,\n sliderProps,\n knobProps,\n ...others\n } = props;\n\n const styles = styleCreator(theme);\n const stepValue = useMemo(\n () => calculateStepValue(maxPointValue, minPointValue, divisionQuantity),\n [divisionQuantity, maxPointValue, minPointValue]\n );\n const inverseStepValue = 1 / stepValue;\n const isSingle = useMemo(\n () => isSingleSlider(valuesProp, defaultValues),\n [defaultValues, valuesProp]\n );\n const defaultKnobsPositions = useMemo(\n () => knobsValuesToKnobsPositions(defaultValues, inverseStepValue, minPointValue, isSingle),\n [defaultValues, inverseStepValue, isSingle, minPointValue]\n );\n const value = useMemo(\n () =>\n valuesProp?.length > 0\n ? knobsValuesToKnobsPositions(valuesProp, inverseStepValue, minPointValue, isSingle)\n : undefined,\n [inverseStepValue, isSingle, minPointValue, valuesProp]\n );\n\n const [knobsPositions, setKnobsPositions] = useControlled(value, defaultKnobsPositions);\n const [isDraggingTrack, setIsDraggingTrack] = useState(false);\n // signals that the user has manually edited the input value\n const isDirty = useRef(false);\n const elementId = useUniqueId(id, \"hvSlider\");\n // miscellaneous state\n const hasLabel = label != null;\n // validation related state\n const { arrayStatus, arrayDefaultStatus } = useMemo(\n () => convertStatusToArray(status, knobsPositions.length),\n [knobsPositions.length, status]\n );\n const [validationStatus, setValidationState] = useControlled(arrayStatus, arrayDefaultStatus);\n const [validationMessage, setValidationMessage] = useControlled(statusMessage, \"\");\n const canShowError =\n ariaErrorMessage == null &&\n ((status !== undefined && statusMessage !== undefined) || (status === undefined && required));\n\n const knobProperties = generateDefaultKnobProperties(\n knobPropertiesProp,\n knobsPositions.length,\n disabled,\n theme\n );\n const trackStyles = createTrackStyles(knobProperties, styles);\n const knobStyles = createKnobStyles(knobProperties, styles);\n const marks = useMemo(\n () =>\n createMark(\n markProperties,\n markStep,\n divisionQuantity,\n minPointValue,\n stepValue,\n markDigits,\n formatMark,\n disabled,\n styles\n ),\n [\n disabled,\n divisionQuantity,\n formatMark,\n markDigits,\n markProperties,\n markStep,\n minPointValue,\n stepValue,\n styles,\n ]\n );\n\n const rangesCount = knobProperties.length - 1;\n\n const performValidation = useCallback(() => {\n let invalid = false;\n const newValidationState = knobsPositions.map((position) => {\n if (position == null || Number.isNaN(position)) {\n invalid = true;\n return validationStates.invalid;\n }\n return validationStates.valid;\n });\n setValidationState([...newValidationState]);\n if (invalid) {\n setValidationMessage(requiredMessage);\n return;\n }\n setValidationMessage(\"\");\n }, [knobsPositions, requiredMessage, setValidationMessage, setValidationState]);\n\n useEffect(() => {\n const stepVl = calculateStepValue(maxPointValue, minPointValue, divisionQuantity);\n const inverseStepVl = 1 / stepVl;\n if (valuesProp?.length > 0) {\n setKnobsPositions(\n knobsValuesToKnobsPositions(\n valuesProp.length > 0 ? valuesProp : defaultValues,\n inverseStepVl,\n minPointValue\n )\n );\n }\n }, [\n defaultValues,\n divisionQuantity,\n maxPointValue,\n minPointValue,\n setKnobsPositions,\n valuesProp,\n ]);\n\n useEffect(() => {\n if (!isDirty.current) {\n // skip validation if currently focused or if empty and\n // the user never manually edited the input value\n return;\n }\n performValidation(knobsPositions, requiredMessage);\n }, [knobsPositions, requiredMessage, performValidation]);\n\n /**\n * Generates an object which posses the current value and position of the knobs.\n *\n * @param {Array} knobsCurrentPosition - An array containing the current positions of the knobs.\n * @returns {Object} - An object with the positions and values of the knobs.\n * @memberof HvSlider\n */\n const generateKnobsPositionAndValues = (knobsCurrentPosition) => {\n const newKnobsPosition = knobsCurrentPosition.slice();\n const knobsValues = [];\n\n let duplicatedValue = null;\n\n const findDuplicated = newKnobsPosition.filter(\n (item, index) => newKnobsPosition.indexOf(item) !== index\n );\n\n if (noOverlap && findDuplicated.length > 0) {\n [duplicatedValue] = findDuplicated;\n }\n newKnobsPosition.forEach((position, index, array) => {\n const newArray = array;\n let newPosition = position;\n\n if (noOverlap && newPosition === duplicatedValue) {\n const previousValue = knobsPositions[index];\n if (previousValue !== newPosition) {\n newPosition += newPosition > previousValue ? -1 : 1;\n newArray[index] = newPosition;\n }\n }\n\n knobsValues[index] = knobsPositionToScaledValue(newPosition, minPointValue, stepValue);\n }, this);\n\n return {\n knobsPosition: newKnobsPosition,\n knobsValues,\n };\n };\n\n /**\n * Function executed while the knobs changes.\n *\n * executes the callback provided by the user with the values and position of the knobs,\n * also lock the value of the knob in case one is fixed.\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n const onChangeHandler = (knobsPosition) => {\n isDirty.current = true;\n const knobs = generateKnobsPositionAndValues(knobsPosition);\n knobProperties.forEach((knobProperty, index) => {\n if (knobProperty.fixed) {\n knobs.knobsPosition[index] = scaledValueToKnobsPositionValue(\n defaultValues[index],\n minPointValue,\n inverseStepValue\n );\n }\n });\n if (disabled || readOnly) return;\n onChange?.(knobs.knobsValues);\n setKnobsPositions(knobs.knobsPosition);\n };\n\n const onInputChangeHandler = (inputValues, index) => {\n let newKnobPositions = knobsValuesToKnobsPositions(\n inputValues,\n inverseStepValue,\n minPointValue\n );\n newKnobPositions = ensureValuesConsistency(newKnobPositions, index);\n onChangeHandler(newKnobPositions);\n };\n\n /**\n * Function executed before a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n const onBeforeChangeHandler = (knobsPosition) => {\n const knobs = generateKnobsPositionAndValues(knobsPosition);\n onBeforeChange?.(knobs.knobsValues);\n };\n\n /**\n * Function executed after a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n const onAfterChangeHandler = (knobsPosition) => {\n const knobs = generateKnobsPositionAndValues(knobsPosition);\n onAfterChange?.(knobs.knobsValues);\n };\n\n const onMouseDownHandler = (event) => {\n if (event.target.className.includes(\"track\")) {\n setIsDraggingTrack(true);\n }\n };\n\n const onMouseUpHandler = () => {\n setIsDraggingTrack(false);\n };\n\n const onBlurHandler = (event) => {\n const knobs = generateKnobsPositionAndValues(knobsPositions);\n performValidation(knobsPositions, requiredMessage);\n onBlur?.(event, knobs.knobsValues, status);\n };\n const sliderInputId = setId(elementId, \"input\");\n /**\n * Function used to create a custom knob for the slider.\n *\n * TODO: This should be isolated because is creating a sub component,\n * but there were some problems regarding the underlying component losing\n * references of the handlers disabling the focus.\n *\n * @param {Object} props - An object containing the properties of the knobs.\n * @memberof HvSlider\n */\n const createKnob = (knobNode, params) => {\n const { value: knobValue, dragging, index } = params;\n const { className: knobClassName, style, ...restProps } = knobNode.props;\n const scaledKnobValue = knobsPositionToScaledValue(knobValue, minPointValue, stepValue).toFixed(\n markDigits\n );\n if (dragging) {\n style.backgroundColor = knobProperties[index].dragColor;\n } else {\n style.backgroundColor = knobProperties[index].color;\n }\n\n const isEmpty = Number.isNaN(knobsPositions[index]) || knobsPositions[index] == null;\n const handleId = setId(elementId, \"knob\");\n return (\n <div\n key={index}\n className={clsx({\n [classes.handleContainer]: !disabled && !isEmpty,\n [classes.handleContainerDisabled]: disabled && !isEmpty,\n [classes.handleHiddenContainer]: isEmpty || readOnly,\n })}\n >\n <Tooltip\n prefixCls=\"rc-slider-tooltip\"\n overlay={formatTooltip?.(scaledKnobValue) || scaledKnobValue}\n visible={dragging}\n placement=\"top\"\n overlayClassName={classes.sliderTooltip}\n >\n <div\n id={setId(handleId, index)}\n style={style}\n className={clsx(knobClassName, classes.handle)}\n {...restProps}\n aria-label={`${label}-knob-${index}`}\n aria-valuenow={knobsPositionToScaledValue(knobValue, minPointValue, stepValue)}\n aria-valuemin={minPointValue}\n aria-valuemax={maxPointValue}\n {...knobProps?.[index]}\n />\n </Tooltip>\n </div>\n );\n };\n\n return (\n <HvFormElement\n className={clsx(className, classes.root, {\n [classes.trackDragging]: !readOnly && !disabled && !isSingle && isDraggingTrack,\n [classes.trackStandBy]: !readOnly && !disabled && !isSingle && !isDraggingTrack,\n [classes.rootDisabled]: disabled,\n })}\n id={id}\n name={name}\n status={statusArrayToFormStatus(validationStatus)}\n disabled={disabled}\n required={required}\n readOnly={readOnly}\n onMouseDown={onMouseDownHandler}\n onMouseUp={onMouseUpHandler}\n onBlur={onBlurHandler}\n {...others}\n >\n {(hasLabel || !hideInput) && (\n <div\n className={clsx(classes.labelContainer, {\n [classes.labelIncluded]: hasLabel,\n [classes.onlyInput]: !hasLabel,\n })}\n >\n {hasLabel && (\n <HvLabel\n id={setId(elementId, \"label\")}\n className={classes.label}\n htmlFor={setId(elementId, \"slider\")}\n label={label}\n />\n )}\n\n {!hideInput && (\n <SliderInput\n id={sliderInputId}\n label={label}\n values={knobsPositionsToKnobsValues(knobsPositions, stepValue, minPointValue)}\n onChange={onInputChangeHandler}\n status={validationStatus}\n disabled={disabled}\n readOnly={readOnly}\n markDigits={markDigits}\n inputProps={inputProps}\n />\n )}\n </div>\n )}\n <div className={classes.sliderContainer}>\n {isSingle && (\n <Slider\n id={setId(elementId, \"slider\")}\n handleRender={createKnob}\n className={clsx(classes.sliderRoot)}\n min={0}\n max={divisionQuantity}\n step={1}\n marks={marks}\n dotStyle={disabled ? styles.dotDisabled : styles.dot}\n onChange={(singleValue) => onChangeHandler([singleValue])}\n onBeforeChange={(singleValue) => onBeforeChangeHandler([singleValue])}\n onAfterChange={(singleValue) => onAfterChangeHandler([singleValue])}\n value={knobsPositions.length > 0 ? knobsPositions[0] : undefined}\n allowCross={false}\n disabled={disabled}\n count={rangesCount}\n railStyle={styles.rail}\n handleStyle={knobStyles.knobInner}\n trackStyle={trackStyles}\n {...sliderProps}\n />\n )}\n {!isSingle && (\n <Slider\n id={setId(elementId, \"slider\")}\n range\n handleRender={createKnob}\n className={clsx(classes.sliderRoot, { [classes.rootRange]: !isSingle })}\n min={0}\n max={divisionQuantity}\n step={1}\n marks={marks}\n disabled={disabled}\n dotStyle={disabled ? styles.dotDisabled : styles.dot}\n onChange={onChangeHandler}\n onBeforeChange={onBeforeChangeHandler}\n onAfterChange={onAfterChangeHandler}\n value={knobsPositions.length > 0 ? [...knobsPositions] : undefined}\n allowCross={false}\n count={rangesCount}\n railStyle={styles.rail}\n handleStyle={knobStyles.knobInner}\n trackStyle={trackStyles}\n draggableTrack={!readOnly && !isSingle}\n {...sliderProps}\n />\n )}\n </div>\n {canShowError && (\n <HvWarningText id={setId(elementId, \"error\")} className={classes.error} disableBorder>\n {validationMessage}\n </HvWarningText>\n )}\n </HvFormElement>\n );\n};\n\nHvSlider.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the slider root node.\n */\n id: PropTypes.string,\n /**\n * The slider name.\n */\n name: PropTypes.string,\n /**\n * The label of the slider.\n *\n * If not provided, an aria-label or aria-labelledby must be inputted via sliderProps.\n */\n label: PropTypes.node,\n /**\n * Indicates that the slider is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the slider is not editable.\n */\n readOnly: PropTypes.bool,\n /**\n * Indicates that user slider is required on the form element.\n */\n required: PropTypes.bool,\n /**\n * What message to render when the value is required.\n */\n requiredMessage: PropTypes.string,\n /**\n * if `true` the input that controls the slider is hidden.\n */\n hideInput: PropTypes.bool,\n /**\n * Attributes applied to the slider element.\n */\n sliderProps: PropTypes.instanceOf(Object),\n /**\n * The status of the slider.\n *\n * Valid is correct, invalid is incorrect and standBy means no validations have run.\n *\n * When uncontrolled and unspecified it will default to \"standBy\" and change to either \"valid\"\n * or \"invalid\" after any change to `checked`, depending of the values of both `required` and `checked`.\n */\n status: PropTypes.oneOf([\"standBy\", \"valid\", \"invalid\"]),\n /**\n * The error message to show when `status` is \"invalid\".\n */\n statusMessage: PropTypes.string,\n /**\n * The values array to apply to the component\n */\n values: PropTypes.arrayOf(PropTypes.number),\n /**\n * The default values array to apply to the component\n */\n defaultValues: PropTypes.arrayOf(PropTypes.number),\n /**\n * The object used to set the knob properties,\n * for every item in the array a new knob will be created.\n */\n knobProperties: PropTypes.arrayOf(\n PropTypes.shape({\n color: PropTypes.string,\n hoverColor: PropTypes.string,\n trackColor: PropTypes.string,\n dragColor: PropTypes.string,\n knobRingColor: PropTypes.string,\n defaultValue: PropTypes.number,\n hidden: PropTypes.bool,\n fixed: PropTypes.bool,\n })\n ),\n /**\n * The object used to set the mark properties individually.\n */\n markProperties: PropTypes.arrayOf(\n PropTypes.shape({\n position: PropTypes.number,\n label: PropTypes.string,\n })\n ),\n /**\n * the function executed before a change will occur in the slider.\n */\n onBeforeChange: PropTypes.func,\n /**\n * the function executed while a change is occurring in the slider.\n */\n onChange: PropTypes.func,\n /**\n * the function executed after a change ocurred in the slider.\n */\n onAfterChange: PropTypes.func,\n /**\n * the function executed after a blur ocurred in the slider.\n */\n onBlur: PropTypes.func,\n /**\n * the separation in points between marks.\n * example: if 10 divisions and a markstep of 2 there will be 5 marks.\n */\n markStep: PropTypes.number,\n /**\n * how many subdivisions there are in the slider.\n */\n divisionQuantity: PropTypes.number,\n /**\n * the value of the first point in the slider from left to right.\n */\n minPointValue: PropTypes.number,\n /**\n * the value of the last point in the slider from left to right.\n */\n maxPointValue: PropTypes.number,\n /**\n * the max number of decimals if no format function is applied\n */\n markDigits: PropTypes.number,\n /**\n * a formatting function used to add format to the marks in the track,\n * the function receives the mark text\n */\n formatMark: PropTypes.func,\n /**\n * a formatting function used to add format to the tooltip in the track,\n * the function receives the mark text\n */\n formatTooltip: PropTypes.func,\n /**\n * if `true` the knobs can't have the same value, if `false` knobs can have the same value.\n */\n noOverlap: PropTypes.bool,\n /**\n * the classes object to be applied into the root object.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the root of the component.\n */\n root: PropTypes.string,\n /**\n * Style applied to the root of the component when in range mode.\n */\n rootRange: PropTypes.string,\n /**\n * Style applied to the container holding the label.\n */\n labelContainer: PropTypes.string,\n /**\n * Style applied to the label.\n */\n label: PropTypes.string,\n /**\n * Style applied to the knob.\n */\n handle: PropTypes.string,\n /**\n * Style applied to the container that has the knob used to move.\n */\n handleContainer: PropTypes.string,\n /**\n * Style applied to the div where the slider is placed.\n */\n sliderRoot: PropTypes.string,\n /**\n * Style applied when the user is dragging the range track.\n */\n trackDragging: PropTypes.string,\n /**\n * Style applied when root container is disabled.\n */\n rootDisabled: PropTypes.string,\n /**\n * Style applied when the user is not dragging the range track.\n */\n trackStandBy: PropTypes.string,\n /**\n * Style applied to the warning container.\n */\n error: PropTypes.string,\n /**\n * Style applied to the handle container when it is hidden.\n */\n handleHiddenContainer: PropTypes.string,\n /**\n * Style applied to the handle container when it is disabled.\n */\n handleContainerDisabled: PropTypes.string,\n /**\n * Style applied when the label element is present.\n */\n labelIncluded: PropTypes.string,\n /**\n * Style applied when only the input element is present.\n */\n onlyInput: PropTypes.string,\n /**\n * Style applied to the dot.\n */\n dot: PropTypes.string,\n /**\n * Style applied to the rail.\n */\n rail: PropTypes.string,\n /**\n * Style applied to the inner of the knob.\n */\n knobInner: PropTypes.string,\n /**\n * Style applied to the outside of the knob.\n */\n knobOuter: PropTypes.string,\n /**\n * Style applied when the knob is hidden.\n */\n knobHidden: PropTypes.string,\n /**\n * Style applied last hidden knob.\n */\n knobHiddenLast: PropTypes.string,\n /**\n * Style applied to the track.\n */\n track: PropTypes.string,\n /**\n * Style applied to the mark.\n */\n mark: PropTypes.string,\n /**\n * Style applied to the tooltip.\n */\n sliderTooltip: PropTypes.string,\n /**\n * Style applied to the container of the tooltip.\n */\n sliderContainer: PropTypes.string,\n }).isRequired,\n /**\n * Identifies the element that provides an error message for the slider.\n *\n * Will only be used when the validation status is invalid.\n */\n \"aria-errormessage\": PropTypes.string,\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.arrayOf(PropTypes.instanceOf(Object)),\n /**\n * Attributes applied to the input element.\n */\n knobProps: PropTypes.arrayOf(PropTypes.instanceOf(Object)),\n /**\n * Theme object required to style the slider.\n */\n theme: PropTypes.any.isRequired,\n};\n\nexport default withStyles(styleCreator, { name: \"HvSlider\", withTheme: true })(HvSlider);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAeA;;AACA;;;;;;;;;;;AAEA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAW;EAC1B,IACEC,EADF,GAmCID,KAnCJ,CACEC,EADF;EAAA,IAEEC,SAFF,GAmCIF,KAnCJ,CAEEE,SAFF;EAAA,IAGEC,IAHF,GAmCIH,KAnCJ,CAGEG,IAHF;EAAA,IAIEC,KAJF,GAmCIJ,KAnCJ,CAIEI,KAJF;EAAA,IAKEC,MALF,GAmCIL,KAnCJ,CAKEK,MALF;EAAA,IAMEC,aANF,GAmCIN,KAnCJ,CAMEM,aANF;EAAA,IAOEC,QAPF,GAmCIP,KAnCJ,CAOEO,QAPF;EAAA,sBAmCIP,KAnCJ,CAQEQ,QARF;EAAA,IAQEA,QARF,gCAQa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A6EvB;AACJ;AACA;IACIgB,UAAU,EAAEjB,mBAAUC,MAhFC;;IAiFvB;AACJ;AACA;IACIiB,cAAc,EAAElB,mBAAUC,MApFH;;IAqFvB;AACJ;AACA;IACIkB,KAAK,EAAEnB,mBAAUC,MAxFM;;IAyFvB;AACJ;AACA;IACImB,IAAI,EAAEpB,mBAAUC,MA5FO;;IA6FvB;AACJ;AACA;IACIpB,aAAa,EAAEmB,mBAAUC,MAhGF;;IAiGvB;AACJ;AACA;IACIX,eAAe,EAAEU,mBAAUC;EApGJ,CAAhB,EAqGNoB,UApPgB;;EAqPnB;AACF;AACA;AACA;AACA;EACE,qBAAqBrB,mBAAUC,MA1PZ;;EA2PnB;AACF;AACA;EACE3H,UAAU,EAAE0H,mBAAUO,OAAV,CAAkBP,mBAAUI,UAAV,CAAqBC,MAArB,CAAlB,CA9PO;;EA+PnB;AACF;AACA;EACElH,SAAS,EAAE6G,mBAAUO,OAAV,CAAkBP,mBAAUI,UAAV,CAAqBC,MAArB,CAAlB,CAlQQ;;EAmQnB;AACF;AACA;EACE9H,KAAK,EAAEyH,mBAAUsB,GAAV,CAAcD;AAtQF,CAArB;;eAyQe,sBAAWE,eAAX,EAAyB;EAAErK,IAAI,EAAE,UAAR;EAAoBsK,SAAS,EAAE;AAA/B,CAAzB,EAAgE1K,QAAhE,C"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.string.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.weak-map.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
+
|
|
9
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
10
|
+
|
|
11
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
exports.default = void 0;
|
|
17
|
+
|
|
18
|
+
require("core-js/modules/es.array.iterator.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/es.object.to-string.js");
|
|
21
|
+
|
|
22
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
23
|
+
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.array.concat.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.number.is-nan.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.number.constructor.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
33
|
+
|
|
34
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
35
|
+
|
|
36
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
37
|
+
|
|
38
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
39
|
+
|
|
40
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
41
|
+
|
|
42
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
43
|
+
|
|
44
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
45
|
+
|
|
46
|
+
var _core = require("@material-ui/core");
|
|
47
|
+
|
|
48
|
+
var _uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
49
|
+
|
|
50
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
51
|
+
|
|
52
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
53
|
+
|
|
54
|
+
var _ = require("../..");
|
|
55
|
+
|
|
56
|
+
var _utils = require("../utils");
|
|
57
|
+
|
|
58
|
+
var _excluded = ["classes", "className", "id", "label", "values", "inputProps", "status", "onChange", "readOnly", "disabled", "markDigits"];
|
|
59
|
+
|
|
60
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
61
|
+
|
|
62
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
63
|
+
|
|
64
|
+
var HvSliderInput = function HvSliderInput(props) {
|
|
65
|
+
var classes = props.classes,
|
|
66
|
+
className = props.className,
|
|
67
|
+
id = props.id,
|
|
68
|
+
label = props.label,
|
|
69
|
+
_props$values = props.values,
|
|
70
|
+
valuesProp = _props$values === void 0 ? [] : _props$values,
|
|
71
|
+
_props$inputProps = props.inputProps,
|
|
72
|
+
inputProps = _props$inputProps === void 0 ? [] : _props$inputProps,
|
|
73
|
+
status = props.status,
|
|
74
|
+
onChange = props.onChange,
|
|
75
|
+
_props$readOnly = props.readOnly,
|
|
76
|
+
readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
|
|
77
|
+
_props$disabled = props.disabled,
|
|
78
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
79
|
+
_props$markDigits = props.markDigits,
|
|
80
|
+
markDigits = _props$markDigits === void 0 ? 0 : _props$markDigits,
|
|
81
|
+
others = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
82
|
+
|
|
83
|
+
var _useState = (0, _react.useState)((0, _utils.knobsValuesToString)(valuesProp, markDigits)),
|
|
84
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
85
|
+
inputValues = _useState2[0],
|
|
86
|
+
setInputValues = _useState2[1];
|
|
87
|
+
|
|
88
|
+
var handleChange = function handleChange(index) {
|
|
89
|
+
if (disabled) return;
|
|
90
|
+
onChange((0, _utils.stringValuesToKnobs)(inputValues), index);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
(0, _react.useEffect)(function () {
|
|
94
|
+
setInputValues((0, _utils.knobsValuesToString)(valuesProp, markDigits));
|
|
95
|
+
}, [markDigits, valuesProp]);
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
97
|
+
className: (0, _clsx.default)(className, classes.inputRoot)
|
|
98
|
+
}, others), inputValues.map(function (value, index) {
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
+
key: (0, _.setId)(id, index),
|
|
101
|
+
className: (0, _clsx.default)(classes.inputContainer)
|
|
102
|
+
}, index !== 0 && /*#__PURE__*/_react.default.createElement(_uikitReactIcons.Remove, {
|
|
103
|
+
color: disabled ? ["atmo4"] : undefined
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement(_.HvInput, (0, _extends2.default)({
|
|
105
|
+
id: (0, _.setId)(id, index),
|
|
106
|
+
"aria-label": "".concat(label, "-").concat(index),
|
|
107
|
+
className: classes.input,
|
|
108
|
+
disabled: disabled,
|
|
109
|
+
type: "number",
|
|
110
|
+
value: Number.isNaN(value) || value == null ? "" : value.toString(),
|
|
111
|
+
onEnter: function onEnter() {
|
|
112
|
+
return handleChange(index);
|
|
113
|
+
},
|
|
114
|
+
onBlur: function onBlur() {
|
|
115
|
+
return handleChange(index);
|
|
116
|
+
},
|
|
117
|
+
onChange: function onChange(e, inputValue) {
|
|
118
|
+
var newValues = (0, _toConsumableArray2.default)(inputValues);
|
|
119
|
+
newValues[index] = inputValue;
|
|
120
|
+
setInputValues(newValues);
|
|
121
|
+
},
|
|
122
|
+
status: status[index] || "standBy",
|
|
123
|
+
readOnly: readOnly,
|
|
124
|
+
disableClear: true
|
|
125
|
+
}, inputProps[index])));
|
|
126
|
+
}));
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
process.env.NODE_ENV !== "production" ? HvSliderInput.propTypes = {
|
|
130
|
+
/**
|
|
131
|
+
* Styles applied from the theme.
|
|
132
|
+
*/
|
|
133
|
+
classes: _propTypes.default.shape({
|
|
134
|
+
/**
|
|
135
|
+
* Styles applied to the external div containing the whole calendar.
|
|
136
|
+
*/
|
|
137
|
+
inputRoot: _propTypes.default.string,
|
|
138
|
+
input: _propTypes.default.string,
|
|
139
|
+
inputContainer: _propTypes.default.string
|
|
140
|
+
}).isRequired,
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Identifier.
|
|
144
|
+
*/
|
|
145
|
+
id: _propTypes.default.string,
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Used to generate the aria-label for the inputs
|
|
149
|
+
*/
|
|
150
|
+
label: _propTypes.default.string,
|
|
151
|
+
status: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The class name to add at the root of the single calendar
|
|
155
|
+
*/
|
|
156
|
+
className: _propTypes.default.string,
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The values array to apply to the component
|
|
160
|
+
*/
|
|
161
|
+
values: _propTypes.default.arrayOf(_propTypes.default.number),
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Callback function to be triggered when the selected date has changed.
|
|
165
|
+
*/
|
|
166
|
+
onChange: _propTypes.default.func,
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Attributes applied to the input element.
|
|
170
|
+
*/
|
|
171
|
+
inputProps: _propTypes.default.arrayOf(_propTypes.default.instanceOf(Object)),
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Indicates that the form element is disabled.
|
|
175
|
+
*/
|
|
176
|
+
disabled: _propTypes.default.bool,
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Indicates that the form element is read only.
|
|
180
|
+
*/
|
|
181
|
+
readOnly: _propTypes.default.bool,
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Indicates how many decimals to use.
|
|
185
|
+
*/
|
|
186
|
+
markDigits: _propTypes.default.number
|
|
187
|
+
} : void 0;
|
|
188
|
+
|
|
189
|
+
var _default = (0, _core.withStyles)(_styles.default, {
|
|
190
|
+
name: "HvSliderInput"
|
|
191
|
+
})(HvSliderInput);
|
|
192
|
+
|
|
193
|
+
exports.default = _default;
|
|
194
|
+
//# sourceMappingURL=SliderInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderInput.js","names":["HvSliderInput","props","classes","className","id","label","values","valuesProp","inputProps","status","onChange","readOnly","disabled","markDigits","others","inputValues","setInputValues","handleChange","index","inputRoot","map","value","inputContainer","undefined","input","Number","isNaN","toString","e","inputValue","newValues","propTypes","PropTypes","shape","string","isRequired","arrayOf","number","func","instanceOf","Object","bool","styles","name"],"sources":["../../../src/Slider/SliderInput/SliderInput.js"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport { Remove } from \"@hitachivantara/uikit-react-icons\";\nimport clsx from \"clsx\";\nimport styles from \"./styles\";\nimport { HvInput, setId } from \"../..\";\nimport { knobsValuesToString, stringValuesToKnobs } from \"../utils\";\n\nconst HvSliderInput = (props) => {\n const {\n classes,\n className,\n id,\n label,\n values: valuesProp = [],\n inputProps = [],\n status,\n onChange,\n readOnly = false,\n disabled = false,\n markDigits = 0,\n ...others\n } = props;\n\n const [inputValues, setInputValues] = useState(knobsValuesToString(valuesProp, markDigits));\n const handleChange = (index) => {\n if (disabled) return;\n onChange(stringValuesToKnobs(inputValues), index);\n };\n\n useEffect(() => {\n setInputValues(knobsValuesToString(valuesProp, markDigits));\n }, [markDigits, valuesProp]);\n\n return (\n <div className={clsx(className, classes.inputRoot)} {...others}>\n {inputValues.map((value, index) => (\n <div key={setId(id, index)} className={clsx(classes.inputContainer)}>\n {index !== 0 && <Remove color={disabled ? [\"atmo4\"] : undefined} />}\n <HvInput\n id={setId(id, index)}\n aria-label={`${label}-${index}`}\n className={classes.input}\n disabled={disabled}\n type=\"number\"\n value={Number.isNaN(value) || value == null ? \"\" : value.toString()}\n onEnter={() => handleChange(index)}\n onBlur={() => handleChange(index)}\n onChange={(e, inputValue) => {\n const newValues = [...inputValues];\n newValues[index] = inputValue;\n setInputValues(newValues);\n }}\n status={status[index] || \"standBy\"}\n readOnly={readOnly}\n disableClear\n {...inputProps[index]}\n />\n </div>\n ))}\n </div>\n );\n};\n\nHvSliderInput.propTypes = {\n /**\n * Styles applied from the theme.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the external div containing the whole calendar.\n */\n inputRoot: PropTypes.string,\n input: PropTypes.string,\n inputContainer: PropTypes.string,\n }).isRequired,\n /**\n * Identifier.\n */\n id: PropTypes.string,\n /**\n * Used to generate the aria-label for the inputs\n */\n label: PropTypes.string,\n status: PropTypes.arrayOf(PropTypes.string),\n /**\n * The class name to add at the root of the single calendar\n */\n className: PropTypes.string,\n /**\n * The values array to apply to the component\n */\n values: PropTypes.arrayOf(PropTypes.number),\n /**\n * Callback function to be triggered when the selected date has changed.\n */\n onChange: PropTypes.func,\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.arrayOf(PropTypes.instanceOf(Object)),\n /**\n * Indicates that the form element is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the form element is read only.\n */\n readOnly: PropTypes.bool,\n /**\n * Indicates how many decimals to use.\n */\n markDigits: PropTypes.number,\n};\n\nexport default withStyles(styles, { name: \"HvSliderInput\" })(HvSliderInput);\n"],"mappings":";;;;;;;;;;;;;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AACF;AACA;EACE7B,OAAO,EAAE8B,mBAAUC,KAAV,CAAgB;IACvB;AACJ;AACA;IACId,SAAS,EAAEa,mBAAUE,MAJE;IAKvBV,KAAK,EAAEQ,mBAAUE,MALM;IAMvBZ,cAAc,EAAEU,mBAAUE;EANH,CAAhB,EAONC,UAXqB;;EAYxB;AACF;AACA;EACE/B,EAAE,EAAE4B,mBAAUE,MAfU;;EAgBxB;AACF;AACA;EACE7B,KAAK,EAAE2B,mBAAUE,MAnBO;EAoBxBzB,MAAM,EAAEuB,mBAAUI,OAAV,CAAkBJ,mBAAUE,MAA5B,CApBgB;;EAqBxB;AACF;AACA;EACE/B,SAAS,EAAE6B,mBAAUE,MAxBG;;EAyBxB;AACF;AACA;EACE5B,MAAM,EAAE0B,mBAAUI,OAAV,CAAkBJ,mBAAUK,MAA5B,CA5BgB;;EA6BxB;AACF;AACA;EACE3B,QAAQ,EAAEsB,mBAAUM,IAhCI;;EAiCxB;AACF;AACA;EACE9B,UAAU,EAAEwB,mBAAUI,OAAV,CAAkBJ,mBAAUO,UAAV,CAAqBC,MAArB,CAAlB,CApCY;;EAqCxB;AACF;AACA;EACE5B,QAAQ,EAAEoB,mBAAUS,IAxCI;;EAyCxB;AACF;AACA;EACE9B,QAAQ,EAAEqB,mBAAUS,IA5CI;;EA6CxB;AACF;AACA;EACE5B,UAAU,EAAEmB,mBAAUK;AAhDE,CAA1B;;eAmDe,sBAAWK,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA8C3C,aAA9C,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SliderInput";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _SliderInput.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _SliderInput = _interopRequireDefault(require("./SliderInput"));
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/Slider/SliderInput/index.js"],"sourcesContent":["export { default } from \"./SliderInput\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var styles = function styles() {
|
|
9
|
+
return {
|
|
10
|
+
inputRoot: {
|
|
11
|
+
display: "flex"
|
|
12
|
+
},
|
|
13
|
+
input: {
|
|
14
|
+
maxWidth: "50px"
|
|
15
|
+
},
|
|
16
|
+
inputContainer: {
|
|
17
|
+
display: "flex"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var _default = styles;
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","inputRoot","display","input","maxWidth","inputContainer"],"sources":["../../../src/Slider/SliderInput/styles.js"],"sourcesContent":["const styles = () => {\n return {\n inputRoot: {\n display: \"flex\",\n },\n input: {\n maxWidth: \"50px\",\n },\n inputContainer: {\n display: \"flex\",\n },\n };\n};\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,GAAM;EACnB,OAAO;IACLC,SAAS,EAAE;MACTC,OAAO,EAAE;IADA,CADN;IAILC,KAAK,EAAE;MACLC,QAAQ,EAAE;IADL,CAJF;IAOLC,cAAc,EAAE;MACdH,OAAO,EAAE;IADK;EAPX,CAAP;AAWD,CAZD;;eAceF,M"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _Slider.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _Slider = _interopRequireDefault(require("./Slider"));
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/Slider/index.js"],"sourcesContent":["export { default } from \"./Slider\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports.default = void 0;
|
|
23
|
+
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
29
|
+
|
|
30
|
+
var styles = function styles(theme) {
|
|
31
|
+
var ring = {
|
|
32
|
+
width: "32px",
|
|
33
|
+
height: "32px",
|
|
34
|
+
borderRadius: "50%",
|
|
35
|
+
border: "9px solid ".concat(theme.hv.palette.accent.acce1),
|
|
36
|
+
opacity: "20%",
|
|
37
|
+
content: "''",
|
|
38
|
+
position: "absolute",
|
|
39
|
+
top: "-10px",
|
|
40
|
+
left: "-10px"
|
|
41
|
+
};
|
|
42
|
+
var border = {
|
|
43
|
+
width: "20px",
|
|
44
|
+
height: "20px",
|
|
45
|
+
borderRadius: "50%",
|
|
46
|
+
border: "2px solid ".concat(theme.hv.palette.atmosphere.atmo1),
|
|
47
|
+
content: "''",
|
|
48
|
+
position: "absolute",
|
|
49
|
+
top: "-4px",
|
|
50
|
+
left: "-4px"
|
|
51
|
+
};
|
|
52
|
+
var dragSquare = {
|
|
53
|
+
cursor: "grab",
|
|
54
|
+
width: "calc(100% - 40px)",
|
|
55
|
+
left: "20px",
|
|
56
|
+
height: "27px",
|
|
57
|
+
position: "absolute",
|
|
58
|
+
top: "-12px",
|
|
59
|
+
content: "''",
|
|
60
|
+
background: "transparent",
|
|
61
|
+
borderTop: "12px solid ".concat(theme.hv.palette.atmosphere.atmo3),
|
|
62
|
+
borderBottom: "12px solid ".concat(theme.hv.palette.atmosphere.atmo3),
|
|
63
|
+
zIndex: "-2"
|
|
64
|
+
};
|
|
65
|
+
var dot = {
|
|
66
|
+
position: "absolute",
|
|
67
|
+
bottom: "-1px",
|
|
68
|
+
marginLeft: "0px",
|
|
69
|
+
width: "1px",
|
|
70
|
+
height: "4px",
|
|
71
|
+
border: "none",
|
|
72
|
+
borderRadius: "0%",
|
|
73
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo4,
|
|
74
|
+
cursor: "pointer",
|
|
75
|
+
verticalAlign: "middle",
|
|
76
|
+
zIndex: "-3"
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
root: {},
|
|
80
|
+
rootDisabled: {
|
|
81
|
+
cursor: "not-allowed",
|
|
82
|
+
"& .rc-slider-disabled": {
|
|
83
|
+
background: "transparent"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
sliderContainer: {
|
|
87
|
+
marginBottom: "18px",
|
|
88
|
+
padding: "0 23px"
|
|
89
|
+
},
|
|
90
|
+
error: {
|
|
91
|
+
padding: "0 8px"
|
|
92
|
+
},
|
|
93
|
+
trackDragging: {
|
|
94
|
+
cursor: "grabbing",
|
|
95
|
+
"& .rc-slider-track": {
|
|
96
|
+
"&::before": _objectSpread(_objectSpread({}, dragSquare), {}, {
|
|
97
|
+
cursor: "grabbing"
|
|
98
|
+
})
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
trackStandBy: {
|
|
102
|
+
"& .rc-slider-track": {
|
|
103
|
+
"&:hover": {
|
|
104
|
+
"&::before": _objectSpread({}, dragSquare)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
sliderRoot: {
|
|
109
|
+
zIndex: 0
|
|
110
|
+
},
|
|
111
|
+
rootRange: {},
|
|
112
|
+
handleContainer: {
|
|
113
|
+
"& .rc-slider-handle": {
|
|
114
|
+
cursor: "pointer",
|
|
115
|
+
marginTop: "-8px",
|
|
116
|
+
opacity: 1,
|
|
117
|
+
"&:active": {
|
|
118
|
+
cursor: "grab",
|
|
119
|
+
"&::before": _objectSpread({}, ring),
|
|
120
|
+
"&::after": _objectSpread({}, border)
|
|
121
|
+
},
|
|
122
|
+
"&:hover": {
|
|
123
|
+
"&::before": _objectSpread({}, ring),
|
|
124
|
+
"&::after": _objectSpread({}, border)
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
handle: {},
|
|
129
|
+
handleContainerDisabled: {
|
|
130
|
+
"& .rc-slider-handle": {
|
|
131
|
+
cursor: "not-allowed",
|
|
132
|
+
marginTop: "-8px",
|
|
133
|
+
opacity: 1,
|
|
134
|
+
"&:active": {
|
|
135
|
+
cursor: "not-allowed"
|
|
136
|
+
},
|
|
137
|
+
"&:hover": {
|
|
138
|
+
cursor: "not-allowed"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
handleHiddenContainer: {
|
|
143
|
+
display: "none"
|
|
144
|
+
},
|
|
145
|
+
labelContainer: {
|
|
146
|
+
display: "flex",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
justifyContent: "space-between",
|
|
149
|
+
marginBottom: "12px",
|
|
150
|
+
marginLeft: "20px",
|
|
151
|
+
marginRight: "20px"
|
|
152
|
+
},
|
|
153
|
+
labelIncluded: {
|
|
154
|
+
justifyContent: "space-between"
|
|
155
|
+
},
|
|
156
|
+
onlyInput: {
|
|
157
|
+
justifyContent: "flex-end"
|
|
158
|
+
},
|
|
159
|
+
label: {},
|
|
160
|
+
dot: _objectSpread({}, dot),
|
|
161
|
+
dotDisabled: _objectSpread(_objectSpread({}, dot), {}, {
|
|
162
|
+
cursor: "not-allowed"
|
|
163
|
+
}),
|
|
164
|
+
rail: {
|
|
165
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo4,
|
|
166
|
+
height: "1px",
|
|
167
|
+
zIndex: "-3"
|
|
168
|
+
},
|
|
169
|
+
knobInner: {
|
|
170
|
+
borderColor: "transparent",
|
|
171
|
+
boxShadow: "none",
|
|
172
|
+
backgroundColor: theme.hv.palette.accent.acce1,
|
|
173
|
+
width: "16px",
|
|
174
|
+
height: "16px"
|
|
175
|
+
},
|
|
176
|
+
knobOuter: {
|
|
177
|
+
position: "relative",
|
|
178
|
+
borderColor: "transparent",
|
|
179
|
+
borderRadius: "50%",
|
|
180
|
+
boxShadow: "none",
|
|
181
|
+
backgroundColor: theme.hv.palette.atmosphere.atmo4,
|
|
182
|
+
width: "32px",
|
|
183
|
+
height: "32px",
|
|
184
|
+
top: "-80%",
|
|
185
|
+
left: "-80%",
|
|
186
|
+
zIndex: "-1"
|
|
187
|
+
},
|
|
188
|
+
knobHidden: {
|
|
189
|
+
display: "none"
|
|
190
|
+
},
|
|
191
|
+
knobHiddenLast: {
|
|
192
|
+
borderColor: "transparent",
|
|
193
|
+
height: "3px",
|
|
194
|
+
width: "2px",
|
|
195
|
+
marginLeft: "-1px",
|
|
196
|
+
border: "none",
|
|
197
|
+
borderRadius: "0",
|
|
198
|
+
marginTop: "0px",
|
|
199
|
+
left: "100%",
|
|
200
|
+
touchAction: "none",
|
|
201
|
+
cursor: "default"
|
|
202
|
+
},
|
|
203
|
+
track: {
|
|
204
|
+
backgroundColor: theme.hv.palette.accent.acce1,
|
|
205
|
+
height: "3px",
|
|
206
|
+
zIndex: "-1",
|
|
207
|
+
marginTop: "-1px"
|
|
208
|
+
},
|
|
209
|
+
mark: _objectSpread(_objectSpread({}, theme.hv.typography.vizText), {}, {
|
|
210
|
+
fontFamily: theme.hv.typography.fontFamily,
|
|
211
|
+
top: "-2px"
|
|
212
|
+
}),
|
|
213
|
+
disabledMark: _objectSpread(_objectSpread({}, theme.hv.typography.vizText), {}, {
|
|
214
|
+
fontFamily: theme.hv.typography.fontFamily,
|
|
215
|
+
color: "".concat(theme.hv.palette.atmosphere.atmo5),
|
|
216
|
+
cursor: "not-allowed",
|
|
217
|
+
top: "-2px"
|
|
218
|
+
}),
|
|
219
|
+
sliderTooltip: {
|
|
220
|
+
"& .rc-slider-tooltip-inner": _objectSpread(_objectSpread({
|
|
221
|
+
background: theme.hv.palette.atmosphere.atmo1,
|
|
222
|
+
borderRadius: 0,
|
|
223
|
+
maxWidth: "532px",
|
|
224
|
+
height: "100%",
|
|
225
|
+
padding: "".concat(theme.hv.spacing.sm, "px")
|
|
226
|
+
}, theme.hv.typography.normalText), {}, {
|
|
227
|
+
fontFamily: theme.hv.typography.fontFamily,
|
|
228
|
+
boxShadow: "none"
|
|
229
|
+
}),
|
|
230
|
+
"& .rc-slider-tooltip-arrow": {
|
|
231
|
+
visibility: "hidden"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
var _default = styles;
|
|
238
|
+
exports.default = _default;
|
|
239
|
+
//# sourceMappingURL=styles.js.map
|