@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,290 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
4
|
-
import { ToggleBaseProps } from '../interfaces/ToggleBaseProps';
|
|
5
|
-
import { FormComponent, FormComponentProps, FormComponentValidity } from '@progress/kendo-react-common';
|
|
6
|
-
/**
|
|
7
|
-
* The arguments for the `onChange` Switch event.
|
|
8
|
-
*/
|
|
9
|
-
export interface SwitchChangeEvent extends BaseEvent<Switch> {
|
|
10
|
-
/**
|
|
11
|
-
* The new value of the Switch.
|
|
12
|
-
*/
|
|
13
|
-
value: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Represents the props of the [KendoReact Switch component]({% slug overview_switch %}).
|
|
17
|
-
*/
|
|
18
|
-
export interface SwitchProps extends ToggleBaseProps, FormComponentProps {
|
|
19
|
-
/**
|
|
20
|
-
* Specifies the `accessKey` of the Switch.
|
|
21
|
-
*/
|
|
22
|
-
accessKey?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the current value of the Switch ([see example]({% slug controlled_switch %})).
|
|
25
|
-
*/
|
|
26
|
-
checked?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Sets the `className` of the wrapping element of the Switch.
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the value of the Switch when it is initially displayed ([see example]({% slug default_state %})).
|
|
33
|
-
*/
|
|
34
|
-
defaultChecked?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the default value of the Switch.
|
|
37
|
-
*/
|
|
38
|
-
defaultValue?: any;
|
|
39
|
-
/**
|
|
40
|
-
* Disables the Switch when set to `true` ([see example]({% slug disabled_switch %})).
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the `dir` property of the wrapping element of the Switch.
|
|
45
|
-
*/
|
|
46
|
-
dir?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the `id` of the Switch.
|
|
49
|
-
*/
|
|
50
|
-
id?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Configures the `size` of the Switch.
|
|
53
|
-
*
|
|
54
|
-
* The available options are:
|
|
55
|
-
* - small
|
|
56
|
-
* - medium
|
|
57
|
-
* - large
|
|
58
|
-
* - null—Does not set a size `className`.
|
|
59
|
-
*
|
|
60
|
-
* @default `medium`
|
|
61
|
-
*/
|
|
62
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
63
|
-
/**
|
|
64
|
-
* Configures the `trackRounded` of the Switch.
|
|
65
|
-
*
|
|
66
|
-
* The available options are:
|
|
67
|
-
* - small
|
|
68
|
-
* - medium
|
|
69
|
-
* - large
|
|
70
|
-
* - full
|
|
71
|
-
* - null—Does not set a trackRounded `className`.
|
|
72
|
-
*
|
|
73
|
-
* @default `full`
|
|
74
|
-
*/
|
|
75
|
-
trackRounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
76
|
-
/**
|
|
77
|
-
* Configures the `thumbRounded` of the Switch.
|
|
78
|
-
*
|
|
79
|
-
* The available options are:
|
|
80
|
-
* - small
|
|
81
|
-
* - medium
|
|
82
|
-
* - large
|
|
83
|
-
* - full
|
|
84
|
-
* - null—Does not set a thumbRounded `className`.
|
|
85
|
-
*
|
|
86
|
-
* @default `full`
|
|
87
|
-
*/
|
|
88
|
-
thumbRounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
89
|
-
/**
|
|
90
|
-
* 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).
|
|
91
|
-
* For example these elements could contain error or hint message.
|
|
92
|
-
*/
|
|
93
|
-
ariaDescribedBy?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Identifies the element(s) which will label the component.
|
|
96
|
-
*/
|
|
97
|
-
ariaLabelledBy?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Changes the **Off** label([see example]({% slug labels_switch %})).
|
|
100
|
-
*/
|
|
101
|
-
offLabel?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Fires each time the Switch gets blurred.
|
|
104
|
-
*/
|
|
105
|
-
onBlur?: (event: React.FocusEvent<HTMLSpanElement>) => void;
|
|
106
|
-
/**
|
|
107
|
-
* Fires each time the user selects a new value ([see example]({% slug controlled_switch %})).
|
|
108
|
-
*/
|
|
109
|
-
onChange?: (event: SwitchChangeEvent) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Fires each time the Switch component gets focused.
|
|
112
|
-
*/
|
|
113
|
-
onFocus?: (event: React.FocusEvent<HTMLSpanElement>) => void;
|
|
114
|
-
/**
|
|
115
|
-
* Changes the **On** label ([see example]({% slug labels_switch %})).
|
|
116
|
-
*/
|
|
117
|
-
onLabel?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
120
|
-
*/
|
|
121
|
-
tabIndex?: number;
|
|
122
|
-
/**
|
|
123
|
-
* Sets the value of the Switch. It can either be of the primitive (string, number, boolean) or of the complex (array) type.
|
|
124
|
-
*/
|
|
125
|
-
value?: string | number | string[] | boolean | null;
|
|
126
|
-
/**
|
|
127
|
-
* The accessible label of the component.
|
|
128
|
-
*/
|
|
129
|
-
ariaLabel?: string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @hidden
|
|
133
|
-
*/
|
|
134
|
-
export interface SwitchState {
|
|
135
|
-
checked: boolean;
|
|
136
|
-
focused: boolean;
|
|
137
|
-
}
|
|
138
|
-
/** @hidden */
|
|
139
|
-
export declare class SwitchWithoutContext extends React.Component<SwitchProps, SwitchState> implements FormComponent {
|
|
140
|
-
static displayName: string;
|
|
141
|
-
/**
|
|
142
|
-
* Gets the value of the Switch.
|
|
143
|
-
*/
|
|
144
|
-
get value(): boolean;
|
|
145
|
-
get element(): HTMLSpanElement | null;
|
|
146
|
-
get actionElement(): HTMLSpanElement | null;
|
|
147
|
-
/**
|
|
148
|
-
* Gets the `name` property of the Switch.
|
|
149
|
-
*/
|
|
150
|
-
get name(): string | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Represents the validity state into which the Switch is set.
|
|
153
|
-
*/
|
|
154
|
-
get validity(): FormComponentValidity;
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
protected get validityStyles(): boolean;
|
|
159
|
-
/**
|
|
160
|
-
* @hidden
|
|
161
|
-
*/
|
|
162
|
-
protected get required(): boolean;
|
|
163
|
-
/**
|
|
164
|
-
* @hidden
|
|
165
|
-
*/
|
|
166
|
-
protected setValidity: () => void;
|
|
167
|
-
protected limit: (offset: number, drag: HTMLSpanElement, wrapper: HTMLSpanElement) => number;
|
|
168
|
-
protected toggle: (value: boolean, event: any) => void;
|
|
169
|
-
/**
|
|
170
|
-
* @hidden
|
|
171
|
-
*/
|
|
172
|
-
static propTypes: {
|
|
173
|
-
accessKey: PropTypes.Requireable<string>;
|
|
174
|
-
checked: PropTypes.Requireable<boolean>;
|
|
175
|
-
className: PropTypes.Requireable<string>;
|
|
176
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
177
|
-
defaultChecked: PropTypes.Requireable<boolean>;
|
|
178
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
179
|
-
trackRounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
180
|
-
thumbRounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
181
|
-
dir: PropTypes.Requireable<string>;
|
|
182
|
-
id: PropTypes.Requireable<string>;
|
|
183
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
184
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
185
|
-
offLabel: PropTypes.Requireable<string>;
|
|
186
|
-
required: PropTypes.Requireable<boolean>;
|
|
187
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
188
|
-
valid: PropTypes.Requireable<boolean>;
|
|
189
|
-
validate: PropTypes.Requireable<boolean>;
|
|
190
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
191
|
-
onBlur: PropTypes.Requireable<any>;
|
|
192
|
-
onChange: PropTypes.Requireable<any>;
|
|
193
|
-
onFocus: PropTypes.Requireable<any>;
|
|
194
|
-
onLabel: PropTypes.Requireable<string>;
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* @hidden
|
|
198
|
-
*/
|
|
199
|
-
static defaultProps: {
|
|
200
|
-
disabled: boolean;
|
|
201
|
-
defaultChecked: boolean;
|
|
202
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
203
|
-
trackRounded: "small" | "medium" | "full" | "large" | null | undefined;
|
|
204
|
-
thumbRounded: "small" | "medium" | "full" | "large" | null | undefined;
|
|
205
|
-
offLabel: string;
|
|
206
|
-
onBlur: () => void;
|
|
207
|
-
onFocus: () => void;
|
|
208
|
-
onLabel: string;
|
|
209
|
-
required: boolean;
|
|
210
|
-
validityStyles: boolean;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* @hidden
|
|
214
|
-
*/
|
|
215
|
-
readonly state: SwitchState;
|
|
216
|
-
private _element;
|
|
217
|
-
private _wrapper;
|
|
218
|
-
private _input;
|
|
219
|
-
private _id;
|
|
220
|
-
private valueDuringOnChange;
|
|
221
|
-
private dir?;
|
|
222
|
-
private defaultValidationMessage;
|
|
223
|
-
private eventTimeStamp?;
|
|
224
|
-
/**
|
|
225
|
-
* @hidden
|
|
226
|
-
*/
|
|
227
|
-
constructor(props: SwitchProps);
|
|
228
|
-
/**
|
|
229
|
-
* @hidden
|
|
230
|
-
*/
|
|
231
|
-
componentDidMount(): void;
|
|
232
|
-
/**
|
|
233
|
-
* @hidden
|
|
234
|
-
*/
|
|
235
|
-
componentDidUpdate(): void;
|
|
236
|
-
/**
|
|
237
|
-
* @hidden
|
|
238
|
-
*/
|
|
239
|
-
focus: () => void;
|
|
240
|
-
/**
|
|
241
|
-
* @hidden
|
|
242
|
-
*/
|
|
243
|
-
render(): JSX.Element;
|
|
244
|
-
private dummyInput;
|
|
245
|
-
private handleClick;
|
|
246
|
-
private handleKeyDown;
|
|
247
|
-
private handleWrapperFocus;
|
|
248
|
-
private handleWrapperBlur;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Represents the PropsContext of the `Switch` component.
|
|
252
|
-
* Used for global configuration of all `Switch` instances.
|
|
253
|
-
*
|
|
254
|
-
* For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
|
|
255
|
-
*/
|
|
256
|
-
export declare const SwitchPropsContext: React.Context<(p: SwitchProps) => SwitchProps>;
|
|
257
|
-
/**
|
|
258
|
-
* Represent the `ref` of the Switch component.
|
|
259
|
-
*/
|
|
260
|
-
export interface SwitchHandle extends Pick<SwitchWithoutContext, keyof SwitchWithoutContext> {
|
|
261
|
-
/**
|
|
262
|
-
* @hidden
|
|
263
|
-
*/
|
|
264
|
-
actionElement: HTMLSpanElement | null;
|
|
265
|
-
/**
|
|
266
|
-
* Returns the HTML element of the Switch component.
|
|
267
|
-
*/
|
|
268
|
-
element: HTMLSpanElement | null;
|
|
269
|
-
/**
|
|
270
|
-
* Gets the `name` property of the Switch.
|
|
271
|
-
*/
|
|
272
|
-
name: string | undefined;
|
|
273
|
-
/**
|
|
274
|
-
* Represents the validity state into which the Switch is set.
|
|
275
|
-
*/
|
|
276
|
-
validity: FormComponentValidity;
|
|
277
|
-
/**
|
|
278
|
-
* Gets the value of the Switch.
|
|
279
|
-
*/
|
|
280
|
-
value: boolean;
|
|
281
|
-
}
|
|
282
|
-
/** @hidden */
|
|
283
|
-
export declare type Switch = SwitchHandle;
|
|
284
|
-
/**
|
|
285
|
-
* Represents the [KendoReact Switch component]({% slug overview_switch %}).
|
|
286
|
-
*
|
|
287
|
-
* Accepts properties of type [SwitchProps]({% slug api_inputs_switchprops %}).
|
|
288
|
-
* Obtaining the `ref` returns an object of type [SwitchHandle]({% slug api_inputs_switchhandle %}).
|
|
289
|
-
*/
|
|
290
|
-
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<any>>;
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Switch = exports.SwitchPropsContext = exports.SwitchWithoutContext = void 0;
|
|
30
|
-
var React = require("react");
|
|
31
|
-
var PropTypes = require("prop-types");
|
|
32
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
33
|
-
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
34
|
-
var messages_1 = require("./../messages");
|
|
35
|
-
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
36
|
-
var package_metadata_1 = require("../package-metadata");
|
|
37
|
-
/** @hidden */
|
|
38
|
-
var SwitchWithoutContext = /** @class */ (function (_super) {
|
|
39
|
-
__extends(SwitchWithoutContext, _super);
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
function SwitchWithoutContext(props) {
|
|
44
|
-
var _this = _super.call(this, props) || this;
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
_this.setValidity = function () {
|
|
49
|
-
if (_this._input && _this._input.setCustomValidity) {
|
|
50
|
-
_this._input.setCustomValidity(_this.validity.valid
|
|
51
|
-
? ''
|
|
52
|
-
: _this.props.validationMessage ||
|
|
53
|
-
_this.defaultValidationMessage.toLanguageString(messages_1.switchValidation, messages_1.messages[messages_1.switchValidation]));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
_this.limit = function (offset, drag, wrapper) {
|
|
57
|
-
var wrapperWidth = wrapper.offsetWidth;
|
|
58
|
-
var margin = drag.offsetWidth;
|
|
59
|
-
if (offset < 0) {
|
|
60
|
-
return 0;
|
|
61
|
-
}
|
|
62
|
-
else if (offset > wrapperWidth - margin) {
|
|
63
|
-
return wrapperWidth - margin;
|
|
64
|
-
}
|
|
65
|
-
return offset;
|
|
66
|
-
};
|
|
67
|
-
_this.toggle = function (value, event) {
|
|
68
|
-
_this.setState({ checked: value });
|
|
69
|
-
_this.valueDuringOnChange = value;
|
|
70
|
-
(0, kendo_react_common_1.dispatchEvent)(_this.props.onChange, event, _this, { value: value });
|
|
71
|
-
_this.valueDuringOnChange = undefined;
|
|
72
|
-
};
|
|
73
|
-
_this._element = null;
|
|
74
|
-
_this._wrapper = null;
|
|
75
|
-
_this._input = null;
|
|
76
|
-
_this._id = (0, kendo_react_common_1.guid)();
|
|
77
|
-
_this.defaultValidationMessage = (0, kendo_react_intl_1.provideLocalizationService)(_this);
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
_this.focus = function () {
|
|
82
|
-
if (_this.actionElement) {
|
|
83
|
-
_this.actionElement.focus();
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
_this.dummyInput = function (value) {
|
|
87
|
-
/* Dummy component to support forms */
|
|
88
|
-
return (React.createElement("input", { type: "checkbox", checked: _this.props.checked, ref: function (el) {
|
|
89
|
-
_this._input = el;
|
|
90
|
-
}, tabIndex: -1, "aria-hidden": true, value: value, style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: 'absolute', left: '50%' }, onChange: kendo_react_common_1.noop, name: _this.name || undefined }));
|
|
91
|
-
};
|
|
92
|
-
_this.handleClick = function (event) {
|
|
93
|
-
if (_this.eventTimeStamp === event.timeStamp) {
|
|
94
|
-
// This is guard against the case when wrapped in label, click event is emmited twice
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
_this.eventTimeStamp = event.timeStamp;
|
|
98
|
-
_this.toggle(!_this.value, event);
|
|
99
|
-
};
|
|
100
|
-
_this.handleKeyDown = function (event) {
|
|
101
|
-
if (_this.props.disabled) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
var keyCode = event.keyCode;
|
|
105
|
-
if (keyCode === kendo_react_common_1.Keys.space || keyCode === kendo_react_common_1.Keys.enter) {
|
|
106
|
-
_this.toggle(!_this.value, event);
|
|
107
|
-
event.preventDefault();
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
_this.handleWrapperFocus = function (event) {
|
|
111
|
-
if (_this.props.disabled) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
_this.setState({ focused: true });
|
|
115
|
-
var onFocus = _this.props.onFocus;
|
|
116
|
-
if (onFocus) {
|
|
117
|
-
onFocus.call(undefined, event);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
_this.handleWrapperBlur = function (event) {
|
|
121
|
-
if (_this.props.disabled) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
_this.setState({ focused: false });
|
|
125
|
-
var onBlur = _this.props.onBlur;
|
|
126
|
-
if (onBlur) {
|
|
127
|
-
onBlur.call(undefined, event);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
131
|
-
_this.state = {
|
|
132
|
-
checked: props.defaultChecked || SwitchWithoutContext.defaultProps.defaultChecked,
|
|
133
|
-
focused: false
|
|
134
|
-
};
|
|
135
|
-
return _this;
|
|
136
|
-
}
|
|
137
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "value", {
|
|
138
|
-
/**
|
|
139
|
-
* Gets the value of the Switch.
|
|
140
|
-
*/
|
|
141
|
-
get: function () {
|
|
142
|
-
return this.valueDuringOnChange !== undefined
|
|
143
|
-
? this.valueDuringOnChange
|
|
144
|
-
: this.props.checked !== undefined
|
|
145
|
-
? this.props.checked
|
|
146
|
-
: this.state.checked;
|
|
147
|
-
},
|
|
148
|
-
enumerable: false,
|
|
149
|
-
configurable: true
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "element", {
|
|
152
|
-
get: function () {
|
|
153
|
-
return this._element;
|
|
154
|
-
},
|
|
155
|
-
enumerable: false,
|
|
156
|
-
configurable: true
|
|
157
|
-
});
|
|
158
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "actionElement", {
|
|
159
|
-
get: function () {
|
|
160
|
-
return this._wrapper;
|
|
161
|
-
},
|
|
162
|
-
enumerable: false,
|
|
163
|
-
configurable: true
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "name", {
|
|
166
|
-
/**
|
|
167
|
-
* Gets the `name` property of the Switch.
|
|
168
|
-
*/
|
|
169
|
-
get: function () {
|
|
170
|
-
return this.props.name;
|
|
171
|
-
},
|
|
172
|
-
enumerable: false,
|
|
173
|
-
configurable: true
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "validity", {
|
|
176
|
-
/**
|
|
177
|
-
* Represents the validity state into which the Switch is set.
|
|
178
|
-
*/
|
|
179
|
-
get: function () {
|
|
180
|
-
var customError = this.props.validationMessage !== undefined;
|
|
181
|
-
var isValid = this.props.valid !== undefined ?
|
|
182
|
-
this.props.valid :
|
|
183
|
-
!this.props.required ?
|
|
184
|
-
true :
|
|
185
|
-
this.value ? true : false;
|
|
186
|
-
var valid = this.props.valid !== undefined ? this.props.valid : isValid;
|
|
187
|
-
return {
|
|
188
|
-
customError: customError,
|
|
189
|
-
valid: valid,
|
|
190
|
-
valueMissing: this.value === null
|
|
191
|
-
};
|
|
192
|
-
},
|
|
193
|
-
enumerable: false,
|
|
194
|
-
configurable: true
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "validityStyles", {
|
|
197
|
-
/**
|
|
198
|
-
* @hidden
|
|
199
|
-
*/
|
|
200
|
-
get: function () {
|
|
201
|
-
return this.props.validityStyles !== undefined
|
|
202
|
-
? this.props.validityStyles
|
|
203
|
-
: SwitchWithoutContext.defaultProps.validityStyles;
|
|
204
|
-
},
|
|
205
|
-
enumerable: false,
|
|
206
|
-
configurable: true
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(SwitchWithoutContext.prototype, "required", {
|
|
209
|
-
/**
|
|
210
|
-
* @hidden
|
|
211
|
-
*/
|
|
212
|
-
get: function () {
|
|
213
|
-
return this.props.required !== undefined
|
|
214
|
-
? this.props.required
|
|
215
|
-
: SwitchWithoutContext.defaultProps.required;
|
|
216
|
-
},
|
|
217
|
-
enumerable: false,
|
|
218
|
-
configurable: true
|
|
219
|
-
});
|
|
220
|
-
/**
|
|
221
|
-
* @hidden
|
|
222
|
-
*/
|
|
223
|
-
SwitchWithoutContext.prototype.componentDidMount = function () {
|
|
224
|
-
this.setValidity();
|
|
225
|
-
// Due to dynamic dir calculation
|
|
226
|
-
this.forceUpdate();
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* @hidden
|
|
230
|
-
*/
|
|
231
|
-
SwitchWithoutContext.prototype.componentDidUpdate = function () {
|
|
232
|
-
this.setValidity();
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* @hidden
|
|
236
|
-
*/
|
|
237
|
-
SwitchWithoutContext.prototype.render = function () {
|
|
238
|
-
var _a, _b, _c;
|
|
239
|
-
var _this = this;
|
|
240
|
-
var focused = this.state.focused;
|
|
241
|
-
var _d = this.props, dir = _d.dir, disabled = _d.disabled, trackRounded = _d.trackRounded, thumbRounded = _d.thumbRounded, size = _d.size, offLabel = _d.offLabel, onLabel = _d.onLabel, tabIndex = _d.tabIndex;
|
|
242
|
-
this.dir = dir || (this.element && getComputedStyle(this.element).direction) || undefined;
|
|
243
|
-
var isValid = !this.validityStyles || this.validity.valid;
|
|
244
|
-
var switchClassName = (0, kendo_react_common_1.classNames)('k-switch', (_a = {},
|
|
245
|
-
_a["k-switch-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
246
|
-
_a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[trackRounded] || trackRounded)] = trackRounded,
|
|
247
|
-
_a['k-switch-on'] = this.value,
|
|
248
|
-
_a['k-switch-off'] = !this.value,
|
|
249
|
-
_a['k-focus'] = focused,
|
|
250
|
-
_a['k-disabled'] = disabled,
|
|
251
|
-
_a['k-invalid'] = !isValid,
|
|
252
|
-
_a), this.props.className);
|
|
253
|
-
var ariaAttributes = {
|
|
254
|
-
'aria-checked': this.value,
|
|
255
|
-
'aria-disabled': disabled || undefined,
|
|
256
|
-
'aria-labelledby': this.props.ariaLabelledBy,
|
|
257
|
-
'aria-describedby': this.props.ariaDescribedBy,
|
|
258
|
-
'aria-label': this.props.ariaLabel
|
|
259
|
-
};
|
|
260
|
-
return (React.createElement("span", __assign({ ref: function (span) {
|
|
261
|
-
_this._wrapper = span;
|
|
262
|
-
}, role: 'switch' }, ariaAttributes, { className: switchClassName, dir: this.dir, onKeyDown: this.handleKeyDown, onClick: this.handleClick, onBlur: this.handleWrapperBlur, onFocus: this.handleWrapperFocus, tabIndex: (0, kendo_react_common_1.getTabIndex)(tabIndex, disabled, undefined), accessKey: this.props.accessKey, id: this.props.id || this._id }),
|
|
263
|
-
React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-switch-track', (_b = {}, _b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[trackRounded] || trackRounded)] = trackRounded, _b)), ref: function (span) {
|
|
264
|
-
_this._element = span;
|
|
265
|
-
} },
|
|
266
|
-
this.dummyInput(this.value),
|
|
267
|
-
React.createElement("span", { className: 'k-switch-label-on' }, onLabel),
|
|
268
|
-
React.createElement("span", { className: 'k-switch-label-off' }, offLabel)),
|
|
269
|
-
React.createElement("span", { className: 'k-switch-thumb-wrap' },
|
|
270
|
-
React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-switch-thumb', (_c = {}, _c["k-rounded-".concat(thumbRounded)] = thumbRounded, _c)) }))));
|
|
271
|
-
};
|
|
272
|
-
SwitchWithoutContext.displayName = 'Switch';
|
|
273
|
-
/**
|
|
274
|
-
* @hidden
|
|
275
|
-
*/
|
|
276
|
-
SwitchWithoutContext.propTypes = {
|
|
277
|
-
accessKey: PropTypes.string,
|
|
278
|
-
checked: PropTypes.bool,
|
|
279
|
-
className: PropTypes.string,
|
|
280
|
-
disabled: PropTypes.bool,
|
|
281
|
-
defaultChecked: PropTypes.bool,
|
|
282
|
-
size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
|
|
283
|
-
trackRounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
|
|
284
|
-
thumbRounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
|
|
285
|
-
dir: PropTypes.string,
|
|
286
|
-
id: PropTypes.string,
|
|
287
|
-
ariaLabelledBy: PropTypes.string,
|
|
288
|
-
ariaDescribedBy: PropTypes.string,
|
|
289
|
-
offLabel: PropTypes.string,
|
|
290
|
-
required: PropTypes.bool,
|
|
291
|
-
tabIndex: PropTypes.number,
|
|
292
|
-
valid: PropTypes.bool,
|
|
293
|
-
validate: PropTypes.bool,
|
|
294
|
-
validationMessage: PropTypes.string,
|
|
295
|
-
onBlur: PropTypes.any,
|
|
296
|
-
onChange: PropTypes.any,
|
|
297
|
-
onFocus: PropTypes.any,
|
|
298
|
-
onLabel: PropTypes.string
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* @hidden
|
|
302
|
-
*/
|
|
303
|
-
SwitchWithoutContext.defaultProps = {
|
|
304
|
-
disabled: false,
|
|
305
|
-
defaultChecked: false,
|
|
306
|
-
size: 'medium',
|
|
307
|
-
trackRounded: 'full',
|
|
308
|
-
thumbRounded: 'full',
|
|
309
|
-
offLabel: 'OFF',
|
|
310
|
-
onBlur: kendo_react_common_1.noop,
|
|
311
|
-
onFocus: kendo_react_common_1.noop,
|
|
312
|
-
onLabel: 'ON',
|
|
313
|
-
required: false,
|
|
314
|
-
validityStyles: true
|
|
315
|
-
};
|
|
316
|
-
return SwitchWithoutContext;
|
|
317
|
-
}(React.Component));
|
|
318
|
-
exports.SwitchWithoutContext = SwitchWithoutContext;
|
|
319
|
-
/**
|
|
320
|
-
* Represents the PropsContext of the `Switch` component.
|
|
321
|
-
* Used for global configuration of all `Switch` instances.
|
|
322
|
-
*
|
|
323
|
-
* For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
|
|
324
|
-
*/
|
|
325
|
-
exports.SwitchPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
326
|
-
/* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
|
|
327
|
-
/**
|
|
328
|
-
* Represents the [KendoReact Switch component]({% slug overview_switch %}).
|
|
329
|
-
*
|
|
330
|
-
* Accepts properties of type [SwitchProps]({% slug api_inputs_switchprops %}).
|
|
331
|
-
* Obtaining the `ref` returns an object of type [SwitchHandle]({% slug api_inputs_switchhandle %}).
|
|
332
|
-
*/
|
|
333
|
-
exports.Switch = (0, kendo_react_common_1.withPropsContext)(exports.SwitchPropsContext, SwitchWithoutContext);
|
|
334
|
-
exports.Switch.displayName = 'KendoReactSwitch';
|