@progress/kendo-react-inputs 6.1.1 → 7.0.0-develop.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/LICENSE.md +1 -1
- package/{dist/npm/checkbox → checkbox}/Checkbox.d.ts +4 -0
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +11 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +15 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +11 -0
- package/{dist/es/checkbox → checkbox}/interfaces/CheckboxProps.d.ts +5 -2
- package/colors/ColorContrastLabels.d.ts +19 -0
- package/{dist/es/colors → colors}/ColorContrastSvg.d.ts +5 -1
- package/{dist/es/colors → colors}/ColorGradient.d.ts +10 -5
- package/{dist/es/colors → colors}/ColorInput.d.ts +6 -2
- package/{dist/npm/colors → colors}/ColorPalette.d.ts +6 -2
- package/{dist/npm/colors → colors}/ColorPicker.d.ts +4 -0
- package/{dist/npm/colors → colors}/FlatColorPicker.d.ts +4 -0
- package/{dist/npm/colors → colors}/HexInput.d.ts +5 -1
- package/colors/Picker.d.ts +10 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +15 -0
- package/{dist/es/colors → colors}/interfaces/ColorGradientProps.d.ts +4 -1
- package/{dist/npm/colors → colors}/interfaces/ColorPaletteChangeEvent.d.ts +4 -0
- package/{dist/npm/colors → colors}/interfaces/ColorPaletteProps.d.ts +4 -0
- package/{dist/npm/colors → colors}/interfaces/ColorPickerActiveColorClick.d.ts +4 -1
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +17 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +21 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +17 -0
- package/{dist/es/colors → colors}/interfaces/ColorPickerGradientSettings.d.ts +4 -0
- package/{dist/es/colors → colors}/interfaces/ColorPickerPaletteSettings.d.ts +4 -0
- package/{dist/npm/colors → colors}/interfaces/ColorPickerPopupSettings.d.ts +4 -0
- package/{dist/npm/colors → colors}/interfaces/ColorPickerProps.d.ts +4 -0
- package/colors/interfaces/ColorPickerView.d.ts +14 -0
- package/{dist/es/colors → colors}/interfaces/PickerPopupSettings.d.ts +4 -1
- package/{dist/es/colors → colors}/interfaces/PickerProps.d.ts +4 -0
- package/colors/models/hsva.d.ts +13 -0
- package/colors/models/output-format.d.ts +8 -0
- package/{dist/es/colors → colors}/models/palette-presets.d.ts +4 -0
- package/colors/models/rgb.d.ts +12 -0
- package/colors/models/rgba.d.ts +13 -0
- package/colors/models/table-cell.d.ts +11 -0
- package/colors/models/tile-size.d.ts +15 -0
- package/{dist/npm/colors → colors}/utils/color-cache.d.ts +4 -0
- package/{dist/es/colors → colors}/utils/color-palette.service.d.ts +4 -0
- package/{dist/es/colors → colors}/utils/color-parser.d.ts +4 -0
- package/{dist/es/colors → colors}/utils/misc.d.ts +4 -0
- package/{dist/es/colors → colors}/utils/svg-calc.d.ts +4 -0
- package/dist/cdn/js/kendo-react-inputs.js +21 -1
- package/{dist/es/main.js → index.d.ts} +19 -12
- package/index.js +21 -0
- package/index.mjs +5030 -0
- package/{dist/npm/input → input}/Input.d.ts +7 -3
- package/input/InputClearValue.d.ts +19 -0
- package/input/InputPrefix.d.ts +19 -0
- package/input/InputSeparator.d.ts +19 -0
- package/input/InputSuffix.d.ts +19 -0
- package/{dist/es/input → input}/InputValidationIcon.d.ts +6 -2
- package/input/interfaces/InputChangeEvent.d.ts +15 -0
- package/interfaces/Direction.d.ts +5 -0
- package/interfaces/ToggleBaseProps.d.ts +12 -0
- package/{dist/npm/maskedtextbox → maskedtextbox}/MaskedTextBox.d.ts +10 -6
- package/{dist/es/maskedtextbox → maskedtextbox}/MaskedTextBoxProps.d.ts +4 -1
- package/{dist/npm/maskedtextbox → maskedtextbox}/masking.service.d.ts +4 -0
- package/maskedtextbox/parsing/combinators.d.ts +13 -0
- package/{dist/npm/maskedtextbox → maskedtextbox}/parsing/parsers.d.ts +4 -0
- package/{dist/es/maskedtextbox → maskedtextbox}/parsing/result.d.ts +4 -0
- package/{dist/npm/maskedtextbox → maskedtextbox}/parsing/stream.d.ts +4 -0
- package/{dist/es/maskedtextbox → maskedtextbox}/utils.d.ts +4 -0
- package/{dist/npm/messages → messages}/index.d.ts +4 -0
- package/{dist/npm/numerictextbox → numerictextbox}/NumericTextBox.d.ts +4 -0
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +11 -0
- package/{dist/es/numerictextbox → numerictextbox}/interfaces/NumericTextBoxChangeEvent.d.ts +4 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +11 -0
- package/{dist/npm/numerictextbox → numerictextbox}/interfaces/NumericTextBoxHandle.d.ts +4 -0
- package/{dist/npm/numerictextbox → numerictextbox}/interfaces/NumericTextBoxProps.d.ts +5 -2
- package/{dist/es/numerictextbox → numerictextbox}/interfaces/NumericTextBoxState.d.ts +4 -0
- package/{dist/npm/numerictextbox → numerictextbox}/utils/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +36 -55
- package/{dist/es/radiobutton → radiobutton}/RadioButton.d.ts +4 -0
- package/{dist/es/radiobutton → radiobutton}/RadioGroup.d.ts +4 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +11 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +15 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +11 -0
- package/{dist/npm/radiobutton → radiobutton}/interfaces/RadioButtonProps.d.ts +5 -2
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +15 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +11 -0
- package/{dist/es/radiobutton → radiobutton}/interfaces/RadioGroupProps.d.ts +4 -0
- package/{dist/es/range-slider → range-slider}/RangeSlider.d.ts +5 -1
- package/{dist/es/range-slider → range-slider}/range-raducer.d.ts +5 -1
- package/{dist/npm/rating → rating}/Rating.d.ts +4 -0
- package/{dist/es/rating → rating}/RatingItem.d.ts +4 -0
- package/{dist/es/rating → rating}/models/index.d.ts +4 -1
- package/{dist/npm/rating → rating}/rating-reducer.d.ts +6 -3
- package/{dist/npm/rating → rating}/utils/index.d.ts +4 -0
- package/{dist/es/signature → signature}/Signature.d.ts +4 -0
- package/signature/interfaces/SignatureBlurEvent.d.ts +11 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +15 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +11 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +11 -0
- package/{dist/npm/signature → signature}/interfaces/SignatureHandle.d.ts +4 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +11 -0
- package/{dist/es/signature → signature}/interfaces/SignatureProps.d.ts +4 -1
- package/signature/interfaces/index.d.ts +11 -0
- package/signature/utils/index.d.ts +8 -0
- package/{dist/npm/slider → slider}/Slider.d.ts +6 -2
- package/{dist/es/slider → slider}/SliderLabel.d.ts +5 -1
- package/{dist/es/switch → switch}/Switch.d.ts +10 -6
- package/{dist/npm/textarea → textarea}/TextArea.d.ts +4 -0
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +11 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +15 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +11 -0
- package/{dist/npm/textarea → textarea}/interfaces/TextAreaProps.d.ts +5 -2
- package/{dist/es/textbox → textbox}/Textbox.d.ts +5 -1
- package/about.md +0 -3
- package/dist/es/checkbox/Checkbox.d.ts +0 -32
- package/dist/es/checkbox/Checkbox.js +0 -204
- package/dist/es/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -7
- package/dist/es/checkbox/interfaces/CheckboxBlurEvent.js +0 -1
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -11
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +0 -1
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -7
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +0 -1
- package/dist/es/checkbox/interfaces/CheckboxProps.js +0 -1
- package/dist/es/colors/ColorContrastLabels.d.ts +0 -15
- package/dist/es/colors/ColorContrastLabels.js +0 -68
- package/dist/es/colors/ColorContrastSvg.js +0 -88
- package/dist/es/colors/ColorGradient.js +0 -316
- package/dist/es/colors/ColorInput.js +0 -125
- package/dist/es/colors/ColorPalette.d.ts +0 -123
- package/dist/es/colors/ColorPalette.js +0 -280
- package/dist/es/colors/ColorPicker.d.ts +0 -30
- package/dist/es/colors/ColorPicker.js +0 -246
- package/dist/es/colors/FlatColorPicker.d.ts +0 -135
- package/dist/es/colors/FlatColorPicker.js +0 -176
- package/dist/es/colors/HexInput.d.ts +0 -29
- package/dist/es/colors/HexInput.js +0 -54
- package/dist/es/colors/Picker.d.ts +0 -6
- package/dist/es/colors/Picker.js +0 -36
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -11
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorGradientProps.js +0 -1
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -15
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +0 -83
- package/dist/es/colors/interfaces/ColorPaletteProps.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -18
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -14
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -18
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -14
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerGradientSettings.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -14
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +0 -161
- package/dist/es/colors/interfaces/ColorPickerProps.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerView.d.ts +0 -10
- package/dist/es/colors/interfaces/ColorPickerView.js +0 -1
- package/dist/es/colors/interfaces/PickerPopupSettings.js +0 -1
- package/dist/es/colors/interfaces/PickerProps.js +0 -1
- package/dist/es/colors/models/hsva.d.ts +0 -9
- package/dist/es/colors/models/hsva.js +0 -1
- package/dist/es/colors/models/output-format.d.ts +0 -4
- package/dist/es/colors/models/output-format.js +0 -1
- package/dist/es/colors/models/palette-presets.js +0 -54
- package/dist/es/colors/models/rgb.d.ts +0 -8
- package/dist/es/colors/models/rgb.js +0 -1
- package/dist/es/colors/models/rgba.d.ts +0 -9
- package/dist/es/colors/models/rgba.js +0 -1
- package/dist/es/colors/models/table-cell.d.ts +0 -7
- package/dist/es/colors/models/table-cell.js +0 -1
- package/dist/es/colors/models/tile-size.d.ts +0 -11
- package/dist/es/colors/models/tile-size.js +0 -1
- package/dist/es/colors/utils/color-cache.d.ts +0 -30
- package/dist/es/colors/utils/color-cache.js +0 -61
- package/dist/es/colors/utils/color-palette.service.js +0 -76
- package/dist/es/colors/utils/color-parser.js +0 -134
- package/dist/es/colors/utils/misc.js +0 -20
- package/dist/es/colors/utils/svg-calc.js +0 -103
- package/dist/es/common/SliderTooltip.d.ts +0 -18
- package/dist/es/common/SliderTooltip.js +0 -50
- package/dist/es/common/SwitchController.d.ts +0 -31
- package/dist/es/common/SwitchController.js +0 -122
- package/dist/es/common/SwitchModel.d.ts +0 -7
- package/dist/es/common/SwitchModel.js +0 -14
- package/dist/es/input/Input.d.ts +0 -167
- package/dist/es/input/Input.js +0 -259
- package/dist/es/input/InputClearValue.d.ts +0 -15
- package/dist/es/input/InputClearValue.js +0 -24
- package/dist/es/input/InputPrefix.d.ts +0 -15
- package/dist/es/input/InputPrefix.js +0 -24
- package/dist/es/input/InputSeparator.d.ts +0 -15
- package/dist/es/input/InputSeparator.js +0 -24
- package/dist/es/input/InputSuffix.d.ts +0 -15
- package/dist/es/input/InputSuffix.js +0 -24
- package/dist/es/input/InputValidationIcon.js +0 -20
- package/dist/es/input/interfaces/InputChangeEvent.d.ts +0 -11
- package/dist/es/input/interfaces/InputChangeEvent.js +0 -1
- package/dist/es/interfaces/Direction.d.ts +0 -1
- package/dist/es/interfaces/Direction.js +0 -1
- package/dist/es/interfaces/ToggleBaseProps.d.ts +0 -8
- package/dist/es/interfaces/ToggleBaseProps.js +0 -1
- package/dist/es/main.d.ts +0 -68
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +0 -234
- package/dist/es/maskedtextbox/MaskedTextBox.js +0 -434
- package/dist/es/maskedtextbox/MaskedTextBoxProps.js +0 -2
- package/dist/es/maskedtextbox/masking.service.d.ts +0 -41
- package/dist/es/maskedtextbox/masking.service.js +0 -206
- package/dist/es/maskedtextbox/parsing/combinators.d.ts +0 -9
- package/dist/es/maskedtextbox/parsing/combinators.js +0 -24
- package/dist/es/maskedtextbox/parsing/parsers.d.ts +0 -47
- package/dist/es/maskedtextbox/parsing/parsers.js +0 -150
- package/dist/es/maskedtextbox/parsing/result.js +0 -39
- package/dist/es/maskedtextbox/parsing/stream.d.ts +0 -22
- package/dist/es/maskedtextbox/parsing/stream.js +0 -41
- package/dist/es/maskedtextbox/utils.js +0 -56
- package/dist/es/messages/index.d.ts +0 -165
- package/dist/es/messages/index.js +0 -166
- package/dist/es/numerictextbox/NumericTextBox.d.ts +0 -14
- package/dist/es/numerictextbox/NumericTextBox.js +0 -355
- package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -7
- package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -7
- package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
- package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -185
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxState.js +0 -1
- package/dist/es/numerictextbox/utils/index.d.ts +0 -119
- package/dist/es/numerictextbox/utils/index.js +0 -553
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/radiobutton/RadioButton.js +0 -108
- package/dist/es/radiobutton/RadioGroup.js +0 -102
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -7
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -11
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -7
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +0 -98
- package/dist/es/radiobutton/interfaces/RadioButtonProps.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -11
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -7
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupProps.js +0 -1
- package/dist/es/range-slider/RangeSlider.js +0 -314
- package/dist/es/range-slider/range-raducer.js +0 -114
- package/dist/es/rating/Rating.d.ts +0 -166
- package/dist/es/rating/Rating.js +0 -283
- package/dist/es/rating/RatingItem.js +0 -96
- package/dist/es/rating/models/index.js +0 -1
- package/dist/es/rating/rating-reducer.d.ts +0 -33
- package/dist/es/rating/rating-reducer.js +0 -63
- package/dist/es/rating/utils/index.d.ts +0 -24
- package/dist/es/rating/utils/index.js +0 -64
- package/dist/es/signature/Signature.js +0 -386
- package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +0 -7
- package/dist/es/signature/interfaces/SignatureBlurEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +0 -11
- package/dist/es/signature/interfaces/SignatureChangeEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +0 -7
- package/dist/es/signature/interfaces/SignatureCloseEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +0 -7
- package/dist/es/signature/interfaces/SignatureFocusEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureHandle.d.ts +0 -42
- package/dist/es/signature/interfaces/SignatureHandle.js +0 -1
- package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +0 -7
- package/dist/es/signature/interfaces/SignatureOpenEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureProps.js +0 -1
- package/dist/es/signature/interfaces/index.d.ts +0 -7
- package/dist/es/signature/interfaces/index.js +0 -1
- package/dist/es/signature/utils/index.d.ts +0 -4
- package/dist/es/signature/utils/index.js +0 -10
- package/dist/es/slider/Slider.d.ts +0 -193
- package/dist/es/slider/Slider.js +0 -256
- package/dist/es/slider/SliderLabel.js +0 -30
- package/dist/es/switch/Switch.js +0 -331
- package/dist/es/textarea/TextArea.d.ts +0 -36
- package/dist/es/textarea/TextArea.js +0 -158
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -7
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -11
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -7
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +0 -129
- package/dist/es/textarea/interfaces/TextAreaProps.js +0 -1
- package/dist/es/textbox/Textbox.js +0 -112
- package/dist/es/utils.d.ts +0 -4
- package/dist/es/utils.js +0 -29
- package/dist/npm/checkbox/Checkbox.js +0 -207
- package/dist/npm/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -7
- package/dist/npm/checkbox/interfaces/CheckboxBlurEvent.js +0 -2
- package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -11
- package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.js +0 -2
- package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -7
- package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.js +0 -2
- package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +0 -123
- package/dist/npm/checkbox/interfaces/CheckboxProps.js +0 -2
- package/dist/npm/colors/ColorContrastLabels.d.ts +0 -15
- package/dist/npm/colors/ColorContrastLabels.js +0 -71
- package/dist/npm/colors/ColorContrastSvg.d.ts +0 -18
- package/dist/npm/colors/ColorContrastSvg.js +0 -91
- package/dist/npm/colors/ColorGradient.d.ts +0 -186
- package/dist/npm/colors/ColorGradient.js +0 -319
- package/dist/npm/colors/ColorInput.d.ts +0 -30
- package/dist/npm/colors/ColorInput.js +0 -127
- package/dist/npm/colors/ColorPalette.js +0 -283
- package/dist/npm/colors/ColorPicker.js +0 -249
- package/dist/npm/colors/FlatColorPicker.js +0 -179
- package/dist/npm/colors/HexInput.js +0 -56
- package/dist/npm/colors/Picker.d.ts +0 -6
- package/dist/npm/colors/Picker.js +0 -40
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -11
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +0 -98
- package/dist/npm/colors/interfaces/ColorGradientProps.js +0 -2
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPaletteProps.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -14
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -18
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -14
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -18
- package/dist/npm/colors/interfaces/ColorPickerGradientSettings.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -32
- package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerPopupSettings.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerProps.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerView.d.ts +0 -10
- package/dist/npm/colors/interfaces/ColorPickerView.js +0 -2
- package/dist/npm/colors/interfaces/PickerPopupSettings.d.ts +0 -19
- package/dist/npm/colors/interfaces/PickerPopupSettings.js +0 -2
- package/dist/npm/colors/interfaces/PickerProps.d.ts +0 -42
- package/dist/npm/colors/interfaces/PickerProps.js +0 -2
- package/dist/npm/colors/models/hsva.d.ts +0 -9
- package/dist/npm/colors/models/hsva.js +0 -2
- package/dist/npm/colors/models/output-format.d.ts +0 -4
- package/dist/npm/colors/models/output-format.js +0 -2
- package/dist/npm/colors/models/palette-presets.d.ts +0 -53
- package/dist/npm/colors/models/palette-presets.js +0 -57
- package/dist/npm/colors/models/rgb.d.ts +0 -8
- package/dist/npm/colors/models/rgb.js +0 -2
- package/dist/npm/colors/models/rgba.d.ts +0 -9
- package/dist/npm/colors/models/rgba.js +0 -2
- package/dist/npm/colors/models/table-cell.d.ts +0 -7
- package/dist/npm/colors/models/table-cell.js +0 -2
- package/dist/npm/colors/models/tile-size.d.ts +0 -11
- package/dist/npm/colors/models/tile-size.js +0 -2
- package/dist/npm/colors/utils/color-cache.js +0 -71
- package/dist/npm/colors/utils/color-palette.service.d.ts +0 -12
- package/dist/npm/colors/utils/color-palette.service.js +0 -79
- package/dist/npm/colors/utils/color-parser.d.ts +0 -65
- package/dist/npm/colors/utils/color-parser.js +0 -147
- package/dist/npm/colors/utils/misc.d.ts +0 -15
- package/dist/npm/colors/utils/misc.js +0 -25
- package/dist/npm/colors/utils/svg-calc.d.ts +0 -62
- package/dist/npm/colors/utils/svg-calc.js +0 -110
- package/dist/npm/common/SliderTooltip.d.ts +0 -18
- package/dist/npm/common/SliderTooltip.js +0 -54
- package/dist/npm/common/SwitchController.d.ts +0 -31
- package/dist/npm/common/SwitchController.js +0 -124
- package/dist/npm/common/SwitchModel.d.ts +0 -7
- package/dist/npm/common/SwitchModel.js +0 -16
- package/dist/npm/input/Input.js +0 -262
- package/dist/npm/input/InputClearValue.d.ts +0 -15
- package/dist/npm/input/InputClearValue.js +0 -27
- package/dist/npm/input/InputPrefix.d.ts +0 -15
- package/dist/npm/input/InputPrefix.js +0 -27
- package/dist/npm/input/InputSeparator.d.ts +0 -15
- package/dist/npm/input/InputSeparator.js +0 -27
- package/dist/npm/input/InputSuffix.d.ts +0 -15
- package/dist/npm/input/InputSuffix.js +0 -27
- package/dist/npm/input/InputValidationIcon.d.ts +0 -14
- package/dist/npm/input/InputValidationIcon.js +0 -23
- package/dist/npm/input/interfaces/InputChangeEvent.d.ts +0 -11
- package/dist/npm/input/interfaces/InputChangeEvent.js +0 -2
- package/dist/npm/interfaces/Direction.d.ts +0 -1
- package/dist/npm/interfaces/Direction.js +0 -2
- package/dist/npm/interfaces/ToggleBaseProps.d.ts +0 -8
- package/dist/npm/interfaces/ToggleBaseProps.js +0 -2
- package/dist/npm/main.d.ts +0 -68
- package/dist/npm/main.js +0 -120
- package/dist/npm/maskedtextbox/MaskedTextBox.js +0 -437
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +0 -197
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.js +0 -3
- package/dist/npm/maskedtextbox/masking.service.js +0 -209
- package/dist/npm/maskedtextbox/parsing/combinators.d.ts +0 -9
- package/dist/npm/maskedtextbox/parsing/combinators.js +0 -29
- package/dist/npm/maskedtextbox/parsing/parsers.js +0 -160
- package/dist/npm/maskedtextbox/parsing/result.d.ts +0 -23
- package/dist/npm/maskedtextbox/parsing/result.js +0 -42
- package/dist/npm/maskedtextbox/parsing/stream.js +0 -44
- package/dist/npm/maskedtextbox/utils.d.ts +0 -16
- package/dist/npm/maskedtextbox/utils.js +0 -61
- package/dist/npm/messages/index.js +0 -169
- package/dist/npm/numerictextbox/NumericTextBox.js +0 -358
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -7
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +0 -2
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -11
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +0 -2
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -7
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +0 -2
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -2
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.js +0 -2
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -15
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxState.js +0 -2
- package/dist/npm/numerictextbox/utils/index.js +0 -584
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/radiobutton/RadioButton.d.ts +0 -23
- package/dist/npm/radiobutton/RadioButton.js +0 -111
- package/dist/npm/radiobutton/RadioGroup.d.ts +0 -23
- package/dist/npm/radiobutton/RadioGroup.js +0 -105
- package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -7
- package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -11
- package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -7
- package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonProps.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -11
- package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -7
- package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupProps.d.ts +0 -82
- package/dist/npm/radiobutton/interfaces/RadioGroupProps.js +0 -2
- package/dist/npm/range-slider/RangeSlider.d.ts +0 -138
- package/dist/npm/range-slider/RangeSlider.js +0 -317
- package/dist/npm/range-slider/range-raducer.d.ts +0 -36
- package/dist/npm/range-slider/range-raducer.js +0 -118
- package/dist/npm/rating/Rating.js +0 -286
- package/dist/npm/rating/RatingItem.d.ts +0 -104
- package/dist/npm/rating/RatingItem.js +0 -99
- package/dist/npm/rating/models/index.d.ts +0 -85
- package/dist/npm/rating/models/index.js +0 -2
- package/dist/npm/rating/rating-reducer.js +0 -67
- package/dist/npm/rating/utils/index.js +0 -73
- package/dist/npm/signature/Signature.d.ts +0 -14
- package/dist/npm/signature/Signature.js +0 -389
- package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +0 -7
- package/dist/npm/signature/interfaces/SignatureBlurEvent.js +0 -2
- package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +0 -11
- package/dist/npm/signature/interfaces/SignatureChangeEvent.js +0 -2
- package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +0 -7
- package/dist/npm/signature/interfaces/SignatureCloseEvent.js +0 -2
- package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +0 -7
- package/dist/npm/signature/interfaces/SignatureFocusEvent.js +0 -2
- package/dist/npm/signature/interfaces/SignatureHandle.js +0 -2
- package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +0 -7
- package/dist/npm/signature/interfaces/SignatureOpenEvent.js +0 -2
- package/dist/npm/signature/interfaces/SignatureProps.d.ts +0 -195
- package/dist/npm/signature/interfaces/SignatureProps.js +0 -2
- package/dist/npm/signature/interfaces/index.d.ts +0 -7
- package/dist/npm/signature/interfaces/index.js +0 -2
- package/dist/npm/signature/utils/index.d.ts +0 -4
- package/dist/npm/signature/utils/index.js +0 -14
- package/dist/npm/slider/Slider.js +0 -259
- package/dist/npm/slider/SliderLabel.d.ts +0 -34
- package/dist/npm/slider/SliderLabel.js +0 -34
- package/dist/npm/switch/Switch.d.ts +0 -290
- package/dist/npm/switch/Switch.js +0 -334
- package/dist/npm/textarea/TextArea.js +0 -161
- package/dist/npm/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -7
- package/dist/npm/textarea/interfaces/TextAreaBlurEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -11
- package/dist/npm/textarea/interfaces/TextAreaChangeEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -7
- package/dist/npm/textarea/interfaces/TextAreaFocusEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaProps.js +0 -2
- package/dist/npm/textbox/Textbox.d.ts +0 -76
- package/dist/npm/textbox/Textbox.js +0 -115
- package/dist/npm/utils.d.ts +0 -4
- package/dist/npm/utils.js +0 -33
- package/dist/systemjs/kendo-react-inputs.js +0 -1
- package/e2e-next/checkbox.basic.tests.ts +0 -24
- package/e2e-next/colorgradient.basic.tests.ts +0 -24
- package/e2e-next/colorpaicker.basic.tests.ts +0 -24
- package/e2e-next/colorpalette.basic.tests.ts +0 -24
- package/e2e-next/flatcolorpicker.basic.tests.ts +0 -24
- package/e2e-next/input.basic.tests.ts +0 -24
- package/e2e-next/masktextbox.basic.tests.ts +0 -24
- package/e2e-next/numerictextbox.basic.tests.ts +0 -24
- package/e2e-next/radiobutton.basic.tests.ts +0 -24
- package/e2e-next/radiogroup.basic.tests.ts +0 -24
- package/e2e-next/rangeslider.basic.tests.ts +0 -24
- package/e2e-next/rating.basic.tests.ts +0 -24
- package/e2e-next/signature.basic.tests.ts +0 -24
- package/e2e-next/slider.basic.tests.ts +0 -24
- package/e2e-next/switch.basic.test.ts +0 -24
- package/e2e-next/textarea.basic.tests.ts +0 -24
- package/e2e-next/textbox.basic.tests copy.ts +0 -24
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import * as PropTypes from 'prop-types';
|
|
14
|
-
import { classNames, Keys, useDir, useDraggable, getTabIndex, createPropsContext, usePropsContext } from '@progress/kendo-react-common';
|
|
15
|
-
import { messages, sliderDragTitle } from './../messages';
|
|
16
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
17
|
-
import { rangeReducer, RANGE_ACTION } from './range-raducer';
|
|
18
|
-
import { validatePackage } from '@progress/kendo-react-common';
|
|
19
|
-
import { packageMetadata } from '../package-metadata';
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
var useRange = function (defaultValue, args, callback) {
|
|
24
|
-
var _a = React.useState(defaultValue), state = _a[0], setState = _a[1];
|
|
25
|
-
var handleDispatchAction = React.useCallback(function (action) {
|
|
26
|
-
var newState = rangeReducer(args.state || state, __assign(__assign({}, action), args));
|
|
27
|
-
if (callback) {
|
|
28
|
-
callback(newState, action.event);
|
|
29
|
-
}
|
|
30
|
-
setState(newState);
|
|
31
|
-
}, [args, callback]);
|
|
32
|
-
return [state, handleDispatchAction];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Represents the PropsContext of the `RangeSlider` component.
|
|
36
|
-
* Used for global configuration of all `RangeSlider` instances.
|
|
37
|
-
*
|
|
38
|
-
* For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
|
|
39
|
-
*/
|
|
40
|
-
export var RangeSliderPropsContext = createPropsContext();
|
|
41
|
-
/**
|
|
42
|
-
* Represents the [KendoReact RangeSlider component]({% slug overview_rangeslider %}).
|
|
43
|
-
*
|
|
44
|
-
* Accepts properties of type [RangeSliderProps]({% slug api_inputs_rangesliderprops %}).
|
|
45
|
-
* Obtaining the `ref` returns an object of type [RangeSliderHandle]({% slug api_inputs_rangesliderhandle %}).
|
|
46
|
-
*/
|
|
47
|
-
export var RangeSlider = React.forwardRef(function (directProps, ref) {
|
|
48
|
-
var _a, _b;
|
|
49
|
-
validatePackage(packageMetadata);
|
|
50
|
-
var props = usePropsContext(RangeSliderPropsContext, directProps);
|
|
51
|
-
var target = React.useRef(null);
|
|
52
|
-
var sliderRef = React.useRef(null);
|
|
53
|
-
var sliderSelectionRef = React.useRef(null);
|
|
54
|
-
var startHandle = React.useRef(null);
|
|
55
|
-
var endHandle = React.useRef(null);
|
|
56
|
-
var focus = React.useCallback(function () {
|
|
57
|
-
if (startHandle.current) {
|
|
58
|
-
startHandle.current.focus();
|
|
59
|
-
}
|
|
60
|
-
}, [startHandle]);
|
|
61
|
-
React.useImperativeHandle(target, function () { return ({
|
|
62
|
-
element: sliderRef.current,
|
|
63
|
-
focus: focus,
|
|
64
|
-
props: props
|
|
65
|
-
}); });
|
|
66
|
-
React.useImperativeHandle(ref, function () { return target.current; });
|
|
67
|
-
var min = React.useMemo(function () { return props.min; }, [props.min]);
|
|
68
|
-
var max = React.useMemo(function () { return props.max; }, [props.max]);
|
|
69
|
-
var step = React.useMemo(function () { return props.step !== undefined ? props.step : defaultProps.step; }, [props.step, defaultProps.step]);
|
|
70
|
-
var dir = useDir(sliderRef, props.dir);
|
|
71
|
-
var handleChange = function (newValue, event) {
|
|
72
|
-
if (props.onChange && target.current) {
|
|
73
|
-
props.onChange.call(undefined, {
|
|
74
|
-
value: newValue,
|
|
75
|
-
target: target.current,
|
|
76
|
-
syntheticEvent: event
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var _c = React.useState(''), currentDrag = _c[0], setCurrentDrag = _c[1];
|
|
81
|
-
var _d = useRange(props.defaultValue || defaultProps.defaultValue, {
|
|
82
|
-
min: min,
|
|
83
|
-
max: max,
|
|
84
|
-
step: step,
|
|
85
|
-
state: props.value
|
|
86
|
-
}, handleChange), stateValue = _d[0], dispatchStateValue = _d[1];
|
|
87
|
-
var value = React.useMemo(function () { return props.value || stateValue; }, [props.value, stateValue]);
|
|
88
|
-
var sliderTrackRef = React.useRef(null);
|
|
89
|
-
var sliderTrackWrapRef = React.useRef(null);
|
|
90
|
-
var percentStart = React.useMemo(function () { return ((value.start - min) / (max - min)) * 100; }, [value.start, min, max]);
|
|
91
|
-
var percentEnd = React.useMemo(function () { return ((value.end - min) / (max - min)) * 100; }, [value.end, min, max]);
|
|
92
|
-
var sliderItemsStyle = React.useMemo(function () { return props.vertical ? { paddingTop: 0, height: '100%' } : {}; }, [props.vertical]);
|
|
93
|
-
var trackStyles = React.useMemo(function () { return props.vertical
|
|
94
|
-
? { marginTop: '0.5rem', marginBottom: '0.5rem' }
|
|
95
|
-
: { marginLeft: '0.5rem', marginRight: '0.5rem' }; }, [props.vertical]);
|
|
96
|
-
var localization = useLocalization();
|
|
97
|
-
var calcNewDistance = React.useCallback(function (event) {
|
|
98
|
-
if (!sliderTrackWrapRef.current) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
var computed = sliderTrackWrapRef.current.getBoundingClientRect();
|
|
102
|
-
var distance = props.vertical
|
|
103
|
-
? (computed.bottom - event.clientY)
|
|
104
|
-
: dir === 'rtl'
|
|
105
|
-
? (computed.right - event.clientX)
|
|
106
|
-
: (event.clientX - computed.left);
|
|
107
|
-
var size = props.vertical ? computed.height : computed.width;
|
|
108
|
-
var percentage = (distance / size);
|
|
109
|
-
var payload = (min + percentage * (max - min));
|
|
110
|
-
return payload;
|
|
111
|
-
}, [
|
|
112
|
-
sliderTrackWrapRef,
|
|
113
|
-
props.vertical,
|
|
114
|
-
dir,
|
|
115
|
-
min,
|
|
116
|
-
max,
|
|
117
|
-
stateValue.start,
|
|
118
|
-
stateValue.end,
|
|
119
|
-
props.value && props.value.start,
|
|
120
|
-
props.value && props.value.end
|
|
121
|
-
]);
|
|
122
|
-
var calcKey = React.useCallback(function (payload) {
|
|
123
|
-
if (payload <= value.start) {
|
|
124
|
-
return 'start';
|
|
125
|
-
}
|
|
126
|
-
if (payload >= value.end) {
|
|
127
|
-
return 'end';
|
|
128
|
-
}
|
|
129
|
-
return (2 * payload < value.end + value.start) ? 'start' : 'end';
|
|
130
|
-
}, [
|
|
131
|
-
stateValue.start, stateValue.end,
|
|
132
|
-
props.value && props.value.start,
|
|
133
|
-
props.value && props.value.end
|
|
134
|
-
]);
|
|
135
|
-
var handleStartKeyDown = React.useCallback(function (event) {
|
|
136
|
-
switch (event.keyCode) {
|
|
137
|
-
case Keys.right:
|
|
138
|
-
event.preventDefault();
|
|
139
|
-
dispatchStateValue({ type: dir === 'rtl' ? RANGE_ACTION.decrease : RANGE_ACTION.increase, key: 'start', event: event });
|
|
140
|
-
break;
|
|
141
|
-
case Keys.up:
|
|
142
|
-
event.preventDefault();
|
|
143
|
-
dispatchStateValue({ type: RANGE_ACTION.increase, key: 'start', event: event });
|
|
144
|
-
break;
|
|
145
|
-
case Keys.left:
|
|
146
|
-
event.preventDefault();
|
|
147
|
-
dispatchStateValue({ type: dir === 'rtl' ? RANGE_ACTION.increase : RANGE_ACTION.decrease, key: 'start', event: event });
|
|
148
|
-
break;
|
|
149
|
-
case Keys.down:
|
|
150
|
-
event.preventDefault();
|
|
151
|
-
dispatchStateValue({ type: RANGE_ACTION.decrease, key: 'start', event: event });
|
|
152
|
-
break;
|
|
153
|
-
case Keys.home:
|
|
154
|
-
event.preventDefault();
|
|
155
|
-
dispatchStateValue({ type: RANGE_ACTION.min, key: 'start', event: event });
|
|
156
|
-
break;
|
|
157
|
-
case Keys.end:
|
|
158
|
-
event.preventDefault();
|
|
159
|
-
dispatchStateValue({ type: RANGE_ACTION.max, key: 'start', event: event });
|
|
160
|
-
break;
|
|
161
|
-
default:
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
}, [dispatchStateValue]);
|
|
165
|
-
var handleEndKeyDown = React.useCallback(function (event) {
|
|
166
|
-
switch (event.keyCode) {
|
|
167
|
-
case Keys.right:
|
|
168
|
-
event.preventDefault();
|
|
169
|
-
dispatchStateValue({ type: dir === 'rtl' ? RANGE_ACTION.decrease : RANGE_ACTION.increase, key: 'end', event: event });
|
|
170
|
-
break;
|
|
171
|
-
case Keys.up:
|
|
172
|
-
event.preventDefault();
|
|
173
|
-
dispatchStateValue({ type: RANGE_ACTION.increase, key: 'end', event: event });
|
|
174
|
-
break;
|
|
175
|
-
case Keys.left:
|
|
176
|
-
event.preventDefault();
|
|
177
|
-
dispatchStateValue({ type: dir === 'rtl' ? RANGE_ACTION.increase : RANGE_ACTION.decrease, key: 'end', event: event });
|
|
178
|
-
break;
|
|
179
|
-
case Keys.down:
|
|
180
|
-
event.preventDefault();
|
|
181
|
-
dispatchStateValue({ type: RANGE_ACTION.decrease, key: 'end', event: event });
|
|
182
|
-
break;
|
|
183
|
-
case Keys.home:
|
|
184
|
-
event.preventDefault();
|
|
185
|
-
dispatchStateValue({ type: RANGE_ACTION.min, key: 'end', event: event });
|
|
186
|
-
break;
|
|
187
|
-
case Keys.end:
|
|
188
|
-
event.preventDefault();
|
|
189
|
-
dispatchStateValue({ type: RANGE_ACTION.max, key: 'end', event: event });
|
|
190
|
-
break;
|
|
191
|
-
default:
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
}, [dispatchStateValue, dir]);
|
|
195
|
-
var handleTrackPress = React.useCallback(function (event) {
|
|
196
|
-
var payload = calcNewDistance(event);
|
|
197
|
-
var key = calcKey(payload);
|
|
198
|
-
setCurrentDrag(key);
|
|
199
|
-
key === 'end' ? endHandle.current.focus() : startHandle.current.focus();
|
|
200
|
-
var action = (key === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start);
|
|
201
|
-
dispatchStateValue({ type: action, payload: payload, event: event });
|
|
202
|
-
}, [props.vertical, min, max, dispatchStateValue]);
|
|
203
|
-
var handleTrackDrag = function (event) {
|
|
204
|
-
var payload = calcNewDistance(event);
|
|
205
|
-
var action = currentDrag === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start;
|
|
206
|
-
dispatchStateValue({ type: action, payload: payload, event: event });
|
|
207
|
-
};
|
|
208
|
-
var handleTrackRelease = function (event) {
|
|
209
|
-
var payload = calcNewDistance(event);
|
|
210
|
-
var action = currentDrag === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start;
|
|
211
|
-
dispatchStateValue({ type: action, payload: payload, event: event });
|
|
212
|
-
setCurrentDrag('');
|
|
213
|
-
};
|
|
214
|
-
useDraggable(sliderTrackWrapRef, { onPress: handleTrackPress, onDrag: handleTrackDrag, onRelease: handleTrackRelease });
|
|
215
|
-
return (React.createElement("div", { id: props.id, style: props.style, ref: sliderRef, dir: dir, className: classNames('k-slider', {
|
|
216
|
-
'k-rtl': dir === 'rtl',
|
|
217
|
-
'k-disabled': props.disabled,
|
|
218
|
-
'k-slider-vertical': props.vertical,
|
|
219
|
-
'k-slider-horizontal': !props.vertical
|
|
220
|
-
}, props.className) },
|
|
221
|
-
React.createElement("div", { ref: sliderTrackWrapRef, className: "k-slider-track-wrap", style: __assign({ flexGrow: 1, position: 'relative', touchAction: 'none' }, trackStyles) },
|
|
222
|
-
props.children && (React.createElement("ul", { className: "k-reset k-slider-items", style: __assign({}, sliderItemsStyle) }, React.Children.map(props.children, function (child) {
|
|
223
|
-
return child && React.cloneElement(child, {
|
|
224
|
-
position: 100 * (child.props.position - props.min) /
|
|
225
|
-
(props.max - props.min),
|
|
226
|
-
vertical: props.vertical
|
|
227
|
-
}, child.props.children);
|
|
228
|
-
}))),
|
|
229
|
-
React.createElement("div", { ref: sliderTrackRef, className: "k-slider-track", style: props.vertical
|
|
230
|
-
? { bottom: 0, height: '100%' }
|
|
231
|
-
: (_a = {}, _a[dir === 'rtl' ? 'right' : 'left'] = 0, _a.width = '100%', _a) },
|
|
232
|
-
(percentStart !== null && percentEnd !== null) && React.createElement("div", { "data-selection": true, ref: sliderSelectionRef, title: "".concat(value.start, " - ").concat(value.end), className: "k-slider-selection", style: props.vertical
|
|
233
|
-
? { height: (percentEnd - percentStart) + '%', bottom: percentStart + '%' }
|
|
234
|
-
: (_b = {},
|
|
235
|
-
_b[dir === 'rtl' ? 'right' : 'left'] = percentStart + '%',
|
|
236
|
-
_b.width = (percentEnd - percentStart) + '%',
|
|
237
|
-
_b) }),
|
|
238
|
-
React.createElement("span", { ref: startHandle, role: "slider", tabIndex: getTabIndex(props.startTabIndex, props.disabled, undefined), "aria-valuemin": min, "aria-valuemax": Math.max(max, value.end), "aria-valuenow": value.start, "aria-disabled": props.disabled ? 'true' : undefined, "aria-valuetext": "".concat(value.start, " - ").concat(value.end), className: "k-draghandle", title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]), style: props.vertical
|
|
239
|
-
? { bottom: 'calc(' + percentStart + '%)', zIndex: 1 }
|
|
240
|
-
: dir === 'rtl' ? { right: 'calc(' + percentStart + '% - 13px)', zIndex: 1 }
|
|
241
|
-
: { left: 'calc(' + percentStart + '%)', zIndex: 1 }, onKeyDown: handleStartKeyDown }),
|
|
242
|
-
React.createElement("span", { ref: endHandle, role: "slider", tabIndex: getTabIndex(props.endTabIndex, props.disabled, undefined), "aria-valuemin": Math.min(min, value.start), "aria-valuemax": max, "aria-valuenow": value.end, "aria-disabled": props.disabled ? 'true' : undefined, "aria-valuetext": "".concat(value.start, " - ").concat(value.end), className: "k-draghandle", title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]), style: props.vertical
|
|
243
|
-
? { bottom: 'calc(' + percentEnd + '%)', zIndex: 1 }
|
|
244
|
-
: dir === 'rtl' ? { right: 'calc(' + percentEnd + '% - 13px)', zIndex: 1 }
|
|
245
|
-
: { left: 'calc(' + percentEnd + '%)', zIndex: 1 }, onKeyDown: handleEndKeyDown })))));
|
|
246
|
-
});
|
|
247
|
-
var propTypes = {
|
|
248
|
-
value: function (props, propName, componentName) {
|
|
249
|
-
if (props.value) {
|
|
250
|
-
var start = props.value.start;
|
|
251
|
-
var end = props.value.end;
|
|
252
|
-
var min = props.min;
|
|
253
|
-
var max = props.max;
|
|
254
|
-
if (start > end || start > max || start < min || end > max || end < min || end < start) {
|
|
255
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n "));
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return null;
|
|
259
|
-
},
|
|
260
|
-
defaultValue: function (props, propName, componentName) {
|
|
261
|
-
if (props.defaultValue) {
|
|
262
|
-
var start = props.defaultValue.start;
|
|
263
|
-
var end = props.defaultValue.end;
|
|
264
|
-
var min = props.min;
|
|
265
|
-
var max = props.max;
|
|
266
|
-
if (start > end || start > max || start < min || end > max || end < min || end < start) {
|
|
267
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n "));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return null;
|
|
271
|
-
},
|
|
272
|
-
onChange: PropTypes.func,
|
|
273
|
-
step: PropTypes.number,
|
|
274
|
-
min: function (props, propName, componentName) {
|
|
275
|
-
var prop = props[propName];
|
|
276
|
-
var min = props.min;
|
|
277
|
-
var max = props.max;
|
|
278
|
-
if (min === undefined) {
|
|
279
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n ").concat(propName, " value can not be undefined.\n "));
|
|
280
|
-
}
|
|
281
|
-
if (prop && min >= max) {
|
|
282
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n ").concat(propName, " value can not be equal to or bigger than the max value.\n "));
|
|
283
|
-
}
|
|
284
|
-
return null;
|
|
285
|
-
},
|
|
286
|
-
max: function (props, propName, componentName) {
|
|
287
|
-
var prop = props[propName];
|
|
288
|
-
var min = props.min;
|
|
289
|
-
var max = props.max;
|
|
290
|
-
if (max === undefined) {
|
|
291
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n ").concat(propName, " value can not be undefined.\n "));
|
|
292
|
-
}
|
|
293
|
-
if (prop && max <= min) {
|
|
294
|
-
return new Error("Invalid prop + ".concat(propName, " supplied to ").concat(componentName, ".\n ").concat(propName, " value can not be equal to or smaller than the min value.\n "));
|
|
295
|
-
}
|
|
296
|
-
return null;
|
|
297
|
-
},
|
|
298
|
-
vertical: PropTypes.bool,
|
|
299
|
-
disabled: PropTypes.bool,
|
|
300
|
-
dir: PropTypes.oneOf(['ltr', 'rtl'])
|
|
301
|
-
};
|
|
302
|
-
var defaultProps = {
|
|
303
|
-
step: 1,
|
|
304
|
-
defaultValue: {
|
|
305
|
-
start: 0,
|
|
306
|
-
end: 0
|
|
307
|
-
},
|
|
308
|
-
vertical: false,
|
|
309
|
-
disabled: false
|
|
310
|
-
};
|
|
311
|
-
RangeSlider.displayName = 'KendoReactRangeSlider';
|
|
312
|
-
// TODO: delete casting when @types/react is updated!
|
|
313
|
-
RangeSlider.propTypes = propTypes;
|
|
314
|
-
RangeSlider.defaultProps = defaultProps;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export var RANGE_ACTION;
|
|
16
|
-
(function (RANGE_ACTION) {
|
|
17
|
-
RANGE_ACTION["start"] = "start";
|
|
18
|
-
RANGE_ACTION["end"] = "end";
|
|
19
|
-
RANGE_ACTION["min"] = "min";
|
|
20
|
-
RANGE_ACTION["max"] = "max";
|
|
21
|
-
RANGE_ACTION["increase"] = "increase";
|
|
22
|
-
RANGE_ACTION["decrease"] = "decrease";
|
|
23
|
-
})(RANGE_ACTION || (RANGE_ACTION = {}));
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export var rangeReducer = function (state, action) {
|
|
28
|
-
var newState;
|
|
29
|
-
var newValue;
|
|
30
|
-
switch (action.type) {
|
|
31
|
-
case RANGE_ACTION.start:
|
|
32
|
-
if (action.payload === undefined) {
|
|
33
|
-
return state;
|
|
34
|
-
}
|
|
35
|
-
newState = {
|
|
36
|
-
start: action.payload > state.end ? state.end : Math.max(action.payload, action.min),
|
|
37
|
-
end: state.end
|
|
38
|
-
};
|
|
39
|
-
break;
|
|
40
|
-
case RANGE_ACTION.end:
|
|
41
|
-
if (action.payload === undefined) {
|
|
42
|
-
return state;
|
|
43
|
-
}
|
|
44
|
-
newState = {
|
|
45
|
-
start: state.start,
|
|
46
|
-
end: action.payload < state.start ? state.start : Math.min(action.payload, action.max)
|
|
47
|
-
};
|
|
48
|
-
break;
|
|
49
|
-
case RANGE_ACTION.min:
|
|
50
|
-
if (action.key === 'start') {
|
|
51
|
-
newState = __assign(__assign({}, state), { start: action.min });
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
newState = __assign(__assign({}, state), { end: Math.max(action.min, state.start) });
|
|
55
|
-
}
|
|
56
|
-
break;
|
|
57
|
-
case RANGE_ACTION.max:
|
|
58
|
-
if (action.key === 'start') {
|
|
59
|
-
newState = __assign(__assign({}, state), { start: Math.min(action.max, state.end) });
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
newState = __assign(__assign({}, state), { end: action.max });
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
case RANGE_ACTION.increase:
|
|
66
|
-
if (action.step === undefined || action.key === undefined) {
|
|
67
|
-
return state;
|
|
68
|
-
}
|
|
69
|
-
newValue = state[action.key] + action.step;
|
|
70
|
-
if (action.key === 'start') {
|
|
71
|
-
if (newValue < action.min) {
|
|
72
|
-
newState = __assign(__assign({}, state), { start: action.min });
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
newState = __assign(__assign({}, state), { start: Math.min(newValue, state.end) });
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
if (newValue > action.max) {
|
|
80
|
-
newState = __assign(__assign({}, state), { end: action.max });
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
newState = __assign(__assign({}, state), { end: Math.max(newValue, state.start) });
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case RANGE_ACTION.decrease:
|
|
88
|
-
if (action.step === undefined || action.key === undefined) {
|
|
89
|
-
return state;
|
|
90
|
-
}
|
|
91
|
-
newValue = state[action.key] - action.step;
|
|
92
|
-
if (action.key === 'start') {
|
|
93
|
-
if (newValue < action.min) {
|
|
94
|
-
newState = __assign(__assign({}, state), { start: action.min });
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
newState = __assign(__assign({}, state), { start: Math.min(newValue, state.end) });
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
if (newValue > action.max) {
|
|
102
|
-
newState = __assign(__assign({}, state), { end: action.max });
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
newState = __assign(__assign({}, state), { end: Math.max(newValue, state.start) });
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
default:
|
|
110
|
-
newState = state;
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
return newState;
|
|
114
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
|
|
3
|
-
import { RatingItemProps } from './RatingItem';
|
|
4
|
-
import { RatingKeyboardEvent, RatingItemMouseEvent, RatingItemFocusEvent } from './models';
|
|
5
|
-
/**
|
|
6
|
-
* Represents the properties of [Rating](% slug api_inputs_rating %) component.
|
|
7
|
-
*/
|
|
8
|
-
export interface RatingProps extends FormComponentProps {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the `id` property of the top div element of the Rating.
|
|
11
|
-
*/
|
|
12
|
-
id?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Sets additional classes to the Rating.
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the `tabIndex` attribute.
|
|
19
|
-
*/
|
|
20
|
-
tabIndex?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Sets additional CSS styles to the Rating.
|
|
23
|
-
*/
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
/**
|
|
26
|
-
* Determines the children nodes.
|
|
27
|
-
*/
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* Represents the rendered Rating item.
|
|
31
|
-
*/
|
|
32
|
-
item?: React.ComponentType<RatingItemProps>;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the current value of the Rating, used in controlled mode. [See example]({% slug item_customization_ratingitem %})
|
|
35
|
-
*/
|
|
36
|
-
value?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the default value of the Rating, used in uncontrolled mode. [See example]({% slug controlled_rating %})
|
|
39
|
-
*/
|
|
40
|
-
defaultValue?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the min possible icon value or star value in the main use-case.
|
|
43
|
-
*/
|
|
44
|
-
min?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the max possible icon value or star value in the main use-case.
|
|
47
|
-
*/
|
|
48
|
-
max?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the step value between the min and max value.
|
|
51
|
-
*/
|
|
52
|
-
step?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Determines the Rating direction `ltr` - by default, or `rtl`.
|
|
55
|
-
*/
|
|
56
|
-
dir?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Determines if the Rating has a label and is it a custom one.
|
|
59
|
-
*/
|
|
60
|
-
label?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the `readonly` mode of the Rating, if it is set to `true`. [See example]({% slug label_rating %})
|
|
63
|
-
*/
|
|
64
|
-
readonly?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the `disabled` mode of the Rating, if it is set to `true`. [See example]({% slug readonly_rating %})
|
|
67
|
-
*/
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Sets custom Rating icon, by default - star. [See example]({% slug disabled_rating %})
|
|
71
|
-
*/
|
|
72
|
-
icon?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Sets custom Rating SVG icon.
|
|
75
|
-
*/
|
|
76
|
-
svgIcon?: SVGIcon;
|
|
77
|
-
/**
|
|
78
|
-
* Sets custom Rating SVG icon.
|
|
79
|
-
*/
|
|
80
|
-
svgIconOutline?: SVGIcon;
|
|
81
|
-
/**
|
|
82
|
-
* Determines the selection mode. By default set to `continues`. [See example]({% slug icon_rating %})
|
|
83
|
-
*/
|
|
84
|
-
selection?: 'continues' | 'single';
|
|
85
|
-
/**
|
|
86
|
-
* Determines the precision of the Rating. By default set to `item`. [See example]({% slug selection_rating %})
|
|
87
|
-
*/
|
|
88
|
-
precision?: 'half' | 'item';
|
|
89
|
-
/**
|
|
90
|
-
* Determines if value represents half icon -> true, or not -> false. [See example]({% slug precision_rating %})
|
|
91
|
-
*/
|
|
92
|
-
half?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Triggered after value change. Gets outside access to the target element, the new value and the event type.
|
|
95
|
-
*/
|
|
96
|
-
onChange?: (event: RatingChangeEvent) => void;
|
|
97
|
-
/**
|
|
98
|
-
* Triggered after `onClick` event. Gets outside access to the target element, the new value and the event type.
|
|
99
|
-
*/
|
|
100
|
-
onClick?: (event: RatingItemMouseEvent) => void;
|
|
101
|
-
/**
|
|
102
|
-
* Triggered after `onKeyDown` event. Gets outside access to the target element, the new value and the event type.
|
|
103
|
-
*/
|
|
104
|
-
onKeyDown?: (event: RatingKeyboardEvent) => void;
|
|
105
|
-
/**
|
|
106
|
-
* Triggered after `onFocus` event. Gets outside access to the target element and the event type.
|
|
107
|
-
*/
|
|
108
|
-
onFocus?: (event: RatingItemFocusEvent) => void;
|
|
109
|
-
/**
|
|
110
|
-
* Triggered after `onBlur` event. Gets outside access to the target element and the event type.
|
|
111
|
-
*/
|
|
112
|
-
onBlur?: (event: RatingItemFocusEvent) => void;
|
|
113
|
-
/**
|
|
114
|
-
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
115
|
-
* For example these elements could contain error or hint message.
|
|
116
|
-
*/
|
|
117
|
-
ariaDescribedBy?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Identifies the element(s) which will label the component.
|
|
120
|
-
*/
|
|
121
|
-
ariaLabelledBy?: string;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Represents the target(element and props) of the RatingChangeEvent.
|
|
125
|
-
*/
|
|
126
|
-
export interface RatingHandle {
|
|
127
|
-
/**
|
|
128
|
-
* The current element or `null` if there is no one.
|
|
129
|
-
*/
|
|
130
|
-
element: HTMLDivElement | null;
|
|
131
|
-
/**
|
|
132
|
-
* The props value of the Rating.
|
|
133
|
-
*/
|
|
134
|
-
props: RatingProps;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Represents the return type of RatingChangeEvent.
|
|
138
|
-
*/
|
|
139
|
-
export interface RatingChangeEvent {
|
|
140
|
-
/**
|
|
141
|
-
* The current Rating value.
|
|
142
|
-
*/
|
|
143
|
-
value: number;
|
|
144
|
-
/**
|
|
145
|
-
* The target of the RatingChangeEvent from RatingHandle.
|
|
146
|
-
*/
|
|
147
|
-
target: RatingHandle;
|
|
148
|
-
/**
|
|
149
|
-
* The event of the RatingChangeEvent.
|
|
150
|
-
*/
|
|
151
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Represents the PropsContext of the `Rating` component.
|
|
155
|
-
* Used for global configuration of all `Rating` instances.
|
|
156
|
-
*
|
|
157
|
-
* For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
|
|
158
|
-
*/
|
|
159
|
-
export declare const RatingPropsContext: React.Context<(p: RatingProps) => RatingProps>;
|
|
160
|
-
/**
|
|
161
|
-
* Represents the [KendoReact Rating component]({% slug overview_rating %}).
|
|
162
|
-
*
|
|
163
|
-
* Accepts properties of type [RatingProps]({% slug api_inputs_ratingprops %}).
|
|
164
|
-
* Obtaining the `ref` returns an object of type [RatingHandle]({% slug api_inputs_ratinghandle %}).
|
|
165
|
-
*/
|
|
166
|
-
export declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<RatingHandle | null>>;
|