@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,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare class MaskingService {
|
|
5
|
-
rules: {
|
|
6
|
-
[key: string]: RegExp;
|
|
7
|
-
};
|
|
8
|
-
prompt: string;
|
|
9
|
-
mask: string;
|
|
10
|
-
promptPlaceholder: string;
|
|
11
|
-
includeLiterals: boolean;
|
|
12
|
-
maskTokens: any[];
|
|
13
|
-
unmaskTokens: any[];
|
|
14
|
-
rawTokens: any[];
|
|
15
|
-
validationTokens: any[];
|
|
16
|
-
update({ mask, prompt, promptPlaceholder, rules, includeLiterals }: any): void;
|
|
17
|
-
validationValue(maskedValue?: string): string;
|
|
18
|
-
rawValue(maskedValue?: string): string;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
maskRaw(rawValue?: string): string;
|
|
23
|
-
maskInput(input: string, control: string, splitPoint: number): any;
|
|
24
|
-
maskInRange(pasted: string, oldValue: string, start: number, end: number): any;
|
|
25
|
-
private maskRemoved;
|
|
26
|
-
private adjustPosition;
|
|
27
|
-
private maskInserted;
|
|
28
|
-
protected get maskTokenCreator(): {
|
|
29
|
-
[key: string]: Function;
|
|
30
|
-
};
|
|
31
|
-
protected get unmaskTokenCreator(): {
|
|
32
|
-
[key: string]: Function;
|
|
33
|
-
};
|
|
34
|
-
protected get rawTokenCreator(): {
|
|
35
|
-
[key: string]: Function;
|
|
36
|
-
};
|
|
37
|
-
protected get validationTokenCreator(): {
|
|
38
|
-
[key: string]: Function;
|
|
39
|
-
};
|
|
40
|
-
private tokenize;
|
|
41
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { greedy, sequence } from './parsing/combinators';
|
|
2
|
-
import { literal, mask as maskParser, rawLiteral, rawMask, token, unliteral, unmask } from './parsing/parsers';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
var MaskingService = /** @class */ (function () {
|
|
7
|
-
function MaskingService() {
|
|
8
|
-
this.rules = {};
|
|
9
|
-
this.prompt = '_';
|
|
10
|
-
this.mask = '';
|
|
11
|
-
this.promptPlaceholder = ' ';
|
|
12
|
-
this.includeLiterals = false;
|
|
13
|
-
this.maskTokens = [];
|
|
14
|
-
this.unmaskTokens = [];
|
|
15
|
-
this.rawTokens = [];
|
|
16
|
-
this.validationTokens = [];
|
|
17
|
-
}
|
|
18
|
-
MaskingService.prototype.update = function (_a) {
|
|
19
|
-
var _b = _a.mask, mask = _b === void 0 ? '' : _b, _c = _a.prompt, prompt = _c === void 0 ? '' : _c, _d = _a.promptPlaceholder, promptPlaceholder = _d === void 0 ? ' ' : _d, _e = _a.rules, rules = _e === void 0 ? {} : _e, _f = _a.includeLiterals, includeLiterals = _f === void 0 ? false : _f;
|
|
20
|
-
this.mask = mask;
|
|
21
|
-
this.prompt = prompt;
|
|
22
|
-
this.promptPlaceholder = promptPlaceholder;
|
|
23
|
-
this.rules = rules;
|
|
24
|
-
this.includeLiterals = includeLiterals;
|
|
25
|
-
this.tokenize();
|
|
26
|
-
};
|
|
27
|
-
MaskingService.prototype.validationValue = function (maskedValue) {
|
|
28
|
-
if (maskedValue === void 0) { maskedValue = ''; }
|
|
29
|
-
var value = maskedValue;
|
|
30
|
-
sequence(this.validationTokens)
|
|
31
|
-
.run(maskedValue)
|
|
32
|
-
.fold(function (unmasked) {
|
|
33
|
-
value = unmasked.join('');
|
|
34
|
-
});
|
|
35
|
-
return value;
|
|
36
|
-
};
|
|
37
|
-
MaskingService.prototype.rawValue = function (maskedValue) {
|
|
38
|
-
if (maskedValue === void 0) { maskedValue = ''; }
|
|
39
|
-
var value = maskedValue;
|
|
40
|
-
if (!this.rawTokens.length) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
sequence(this.rawTokens)
|
|
44
|
-
.run(maskedValue)
|
|
45
|
-
.fold(function (unmasked) {
|
|
46
|
-
value = unmasked.join('');
|
|
47
|
-
});
|
|
48
|
-
return value;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
MaskingService.prototype.maskRaw = function (rawValue) {
|
|
54
|
-
if (rawValue === void 0) { rawValue = ''; }
|
|
55
|
-
var value = rawValue;
|
|
56
|
-
if (!this.maskTokens.length) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
sequence(this.maskTokens)
|
|
60
|
-
.run(rawValue)
|
|
61
|
-
.fold(function (masked) {
|
|
62
|
-
value = masked.join('');
|
|
63
|
-
});
|
|
64
|
-
return value;
|
|
65
|
-
};
|
|
66
|
-
MaskingService.prototype.maskInput = function (input, control, splitPoint) {
|
|
67
|
-
if (input.length < control.length) {
|
|
68
|
-
return this.maskRemoved(input, control, splitPoint);
|
|
69
|
-
}
|
|
70
|
-
return this.maskInserted(input, control, splitPoint);
|
|
71
|
-
};
|
|
72
|
-
MaskingService.prototype.maskInRange = function (pasted, oldValue, start, end) {
|
|
73
|
-
var value = '';
|
|
74
|
-
var selection = end;
|
|
75
|
-
var beforeChange = oldValue.split('').slice(0, start);
|
|
76
|
-
var afterChange = oldValue.split('').slice(end);
|
|
77
|
-
sequence(this.maskTokens.slice(start, end))
|
|
78
|
-
.run(pasted)
|
|
79
|
-
.fold(function (masked) {
|
|
80
|
-
value = beforeChange
|
|
81
|
-
.concat(masked)
|
|
82
|
-
.concat(afterChange)
|
|
83
|
-
.join('');
|
|
84
|
-
});
|
|
85
|
-
return {
|
|
86
|
-
selection: selection,
|
|
87
|
-
value: value
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
MaskingService.prototype.maskRemoved = function (input, control, splitPoint) {
|
|
91
|
-
var _this = this;
|
|
92
|
-
var value = '';
|
|
93
|
-
var selection = splitPoint;
|
|
94
|
-
var unchanged = input.split('').slice(splitPoint);
|
|
95
|
-
var changed = input.split('').slice(0, splitPoint).join('');
|
|
96
|
-
var take = this.maskTokens.length - (input.length - splitPoint);
|
|
97
|
-
sequence(this.maskTokens.slice(0, take))
|
|
98
|
-
.run(changed, control)
|
|
99
|
-
.fold(function (masked) {
|
|
100
|
-
selection = _this.adjustPosition(masked, selection);
|
|
101
|
-
value = masked.concat(unchanged).join('');
|
|
102
|
-
});
|
|
103
|
-
return {
|
|
104
|
-
selection: selection,
|
|
105
|
-
value: value
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
MaskingService.prototype.adjustPosition = function (input, selection) {
|
|
109
|
-
var caretChar = input[selection];
|
|
110
|
-
var isLiteral = this.maskTokens[selection].isLiteral(caretChar);
|
|
111
|
-
if (!isLiteral && caretChar !== this.prompt) {
|
|
112
|
-
return selection + 1;
|
|
113
|
-
}
|
|
114
|
-
return selection;
|
|
115
|
-
};
|
|
116
|
-
MaskingService.prototype.maskInserted = function (input, control, splitPoint) {
|
|
117
|
-
var _this = this;
|
|
118
|
-
var value = '';
|
|
119
|
-
var selection = splitPoint;
|
|
120
|
-
var changed = input.slice(0, splitPoint);
|
|
121
|
-
sequence(this.unmaskTokens)
|
|
122
|
-
.run(changed, control)
|
|
123
|
-
.chain(function (unmasked) {
|
|
124
|
-
selection = unmasked.join('').length;
|
|
125
|
-
var unchanged = control.slice(selection);
|
|
126
|
-
return sequence(_this.maskTokens)
|
|
127
|
-
.run(unmasked.join('') + unchanged, control);
|
|
128
|
-
})
|
|
129
|
-
.fold(function (masked) {
|
|
130
|
-
value = masked.join('');
|
|
131
|
-
});
|
|
132
|
-
return {
|
|
133
|
-
selection: selection,
|
|
134
|
-
value: value
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
Object.defineProperty(MaskingService.prototype, "maskTokenCreator", {
|
|
138
|
-
get: function () {
|
|
139
|
-
var _a = this, prompt = _a.prompt, promptPlaceholder = _a.promptPlaceholder;
|
|
140
|
-
return {
|
|
141
|
-
literal: function (rule) { return literal(rule); },
|
|
142
|
-
mask: function (rule) { return maskParser({ prompt: prompt, promptPlaceholder: promptPlaceholder })(rule); }
|
|
143
|
-
};
|
|
144
|
-
},
|
|
145
|
-
enumerable: false,
|
|
146
|
-
configurable: true
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(MaskingService.prototype, "unmaskTokenCreator", {
|
|
149
|
-
get: function () {
|
|
150
|
-
var _this = this;
|
|
151
|
-
return {
|
|
152
|
-
literal: function (rule) { return unliteral(rule); },
|
|
153
|
-
mask: function (rule) { return unmask(_this.prompt)(rule); }
|
|
154
|
-
};
|
|
155
|
-
},
|
|
156
|
-
enumerable: false,
|
|
157
|
-
configurable: true
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(MaskingService.prototype, "rawTokenCreator", {
|
|
160
|
-
get: function () {
|
|
161
|
-
var _a = this, prompt = _a.prompt, promptPlaceholder = _a.promptPlaceholder, includeLiterals = _a.includeLiterals;
|
|
162
|
-
return {
|
|
163
|
-
literal: function (_) { return rawLiteral(includeLiterals); },
|
|
164
|
-
mask: function (_) { return rawMask({ prompt: prompt, promptPlaceholder: promptPlaceholder }); }
|
|
165
|
-
};
|
|
166
|
-
},
|
|
167
|
-
enumerable: false,
|
|
168
|
-
configurable: true
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(MaskingService.prototype, "validationTokenCreator", {
|
|
171
|
-
get: function () {
|
|
172
|
-
var prompt = this.prompt;
|
|
173
|
-
return {
|
|
174
|
-
literal: function (_) { return rawLiteral(false); },
|
|
175
|
-
mask: function (_) { return rawMask({ prompt: prompt, promptPlaceholder: '' }); }
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
|
-
enumerable: false,
|
|
179
|
-
configurable: true
|
|
180
|
-
});
|
|
181
|
-
MaskingService.prototype.tokenize = function () {
|
|
182
|
-
var _this = this;
|
|
183
|
-
greedy(token(this.rules, this.maskTokenCreator))
|
|
184
|
-
.run(this.mask)
|
|
185
|
-
.fold(function (tokens, _) {
|
|
186
|
-
_this.maskTokens = tokens;
|
|
187
|
-
});
|
|
188
|
-
greedy(token(this.rules, this.unmaskTokenCreator))
|
|
189
|
-
.run(this.mask)
|
|
190
|
-
.fold(function (tokens, _) {
|
|
191
|
-
_this.unmaskTokens = tokens;
|
|
192
|
-
});
|
|
193
|
-
greedy(token(this.rules, this.rawTokenCreator))
|
|
194
|
-
.run(this.mask)
|
|
195
|
-
.fold(function (tokens, _) {
|
|
196
|
-
_this.rawTokens = tokens;
|
|
197
|
-
});
|
|
198
|
-
greedy(token(this.rules, this.validationTokenCreator))
|
|
199
|
-
.run(this.mask)
|
|
200
|
-
.fold(function (tokens, _) {
|
|
201
|
-
_this.validationTokens = tokens;
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
return MaskingService;
|
|
205
|
-
}());
|
|
206
|
-
export { MaskingService };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Parser } from './parsers';
|
|
2
|
-
import { Result } from './result';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
var always = function (value) { return new Parser(function (stream) { return new Result(value, stream); }); };
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var append = function (p1, p2) { return p1.chain(function (vs) { return p2.map(function (v) { return vs.concat([v]); }); }); };
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export var sequence = function (list) { return list.reduce(function (acc, parser) { return append(acc, parser); }, always([])); };
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export var greedy = function (parser) { return new Parser(function (stream) {
|
|
19
|
-
var result = new Result([], stream);
|
|
20
|
-
while (!stream.eof()) {
|
|
21
|
-
result = result.concat(parser.run(stream));
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}); };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Result } from './result';
|
|
2
|
-
import { Stream } from './stream';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
export declare class Parser {
|
|
7
|
-
private parse;
|
|
8
|
-
constructor(parse: Function);
|
|
9
|
-
run(input: Stream | string, control?: string): Result;
|
|
10
|
-
map(f: Function): Parser;
|
|
11
|
-
chain(f: Function): Parser;
|
|
12
|
-
isLiteral(c: string): boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const mask: (args: {
|
|
18
|
-
prompt: any;
|
|
19
|
-
promptPlaceholder: any;
|
|
20
|
-
}) => (rule: any) => Parser;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const literal: (_token: any) => Parser;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const unmask: (prompt: any) => (rule: any) => Parser;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const unliteral: (_token: any) => Parser;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare const token: (rules: any, creator: any) => Parser;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const rawMask: (args: {
|
|
41
|
-
prompt: any;
|
|
42
|
-
promptPlaceholder: any;
|
|
43
|
-
}) => Parser;
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
export declare const rawLiteral: (includeLiterals: any) => Parser;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { Result, ResultType } from './result';
|
|
2
|
-
import { Stream } from './stream';
|
|
3
|
-
var toArray = function (value) { return (value || '').split(''); };
|
|
4
|
-
var ESCAPE_CHARACTER = '\\';
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
var Parser = /** @class */ (function () {
|
|
9
|
-
function Parser(parse) {
|
|
10
|
-
this.parse = parse;
|
|
11
|
-
}
|
|
12
|
-
Parser.prototype.run = function (input, control) {
|
|
13
|
-
if (control === void 0) { control = ''; }
|
|
14
|
-
if (input instanceof Stream) {
|
|
15
|
-
return this.parse(input);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.parse(new Stream(toArray(input), toArray(control)));
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
// map :: Functor f => f a ~> (a -> b) -> f b
|
|
22
|
-
Parser.prototype.map = function (f) {
|
|
23
|
-
var _this = this;
|
|
24
|
-
return new Parser(function (stream) { return _this.parse(stream).map(f); });
|
|
25
|
-
};
|
|
26
|
-
// chain :: Chain m => m a ~> (a -> m b) -> m b
|
|
27
|
-
Parser.prototype.chain = function (f) {
|
|
28
|
-
var _this = this;
|
|
29
|
-
return new Parser(function (stream) { return _this.parse(stream).chain(function (v, s) { return f(v).run(s); }); });
|
|
30
|
-
};
|
|
31
|
-
Parser.prototype.isLiteral = function (c) {
|
|
32
|
-
return this.run(c).type === ResultType.Literal;
|
|
33
|
-
};
|
|
34
|
-
return Parser;
|
|
35
|
-
}());
|
|
36
|
-
export { Parser };
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export var mask = function (args) { return function (rule) { return new Parser(function (stream) {
|
|
41
|
-
var prompt = args.prompt, promptPlaceholder = args.promptPlaceholder;
|
|
42
|
-
while (!stream.eof()) {
|
|
43
|
-
var _a = stream.peek(), char = _a.char, control = _a.control;
|
|
44
|
-
if (char === control && control === prompt) {
|
|
45
|
-
stream.eat();
|
|
46
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
47
|
-
}
|
|
48
|
-
if (rule.test(char)) {
|
|
49
|
-
stream.eat();
|
|
50
|
-
return new Result(char, stream, ResultType.Mask);
|
|
51
|
-
}
|
|
52
|
-
if (char === promptPlaceholder) {
|
|
53
|
-
stream.eat();
|
|
54
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
55
|
-
}
|
|
56
|
-
stream.eat_input();
|
|
57
|
-
}
|
|
58
|
-
stream.eat();
|
|
59
|
-
return new Result(prompt, stream, ResultType.Mask);
|
|
60
|
-
}); }; };
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
export var literal = function (_token) { return new Parser(function (stream) {
|
|
65
|
-
// let {char, control} = stream.peek();
|
|
66
|
-
var char = stream.peek().char;
|
|
67
|
-
if (char === _token) {
|
|
68
|
-
stream.eat();
|
|
69
|
-
return new Result(_token, stream, ResultType.Literal);
|
|
70
|
-
}
|
|
71
|
-
// if (control === _token) {
|
|
72
|
-
// while (!stream.eof() && char !== _token) {
|
|
73
|
-
// stream.eat_input();
|
|
74
|
-
// char = stream.peek().char;
|
|
75
|
-
// }
|
|
76
|
-
// }
|
|
77
|
-
//
|
|
78
|
-
// if (control !== undefined) {
|
|
79
|
-
// stream.eat();
|
|
80
|
-
// }
|
|
81
|
-
return new Result(_token, stream, ResultType.Literal);
|
|
82
|
-
}); };
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
export var unmask = function (prompt) { return function (rule) { return new Parser(function (stream) {
|
|
87
|
-
while (!stream.eof()) {
|
|
88
|
-
var _a = stream.peek(), char = _a.char, control = _a.control;
|
|
89
|
-
if (char === prompt && control === prompt) {
|
|
90
|
-
stream.eat();
|
|
91
|
-
return new Result(char, stream);
|
|
92
|
-
}
|
|
93
|
-
if (rule.test(char)) {
|
|
94
|
-
stream.eat();
|
|
95
|
-
return new Result(char, stream);
|
|
96
|
-
}
|
|
97
|
-
stream.eat_input();
|
|
98
|
-
}
|
|
99
|
-
stream.eat();
|
|
100
|
-
return new Result('', stream);
|
|
101
|
-
}); }; };
|
|
102
|
-
/**
|
|
103
|
-
* @hidden
|
|
104
|
-
*/
|
|
105
|
-
export var unliteral = function (_token) { return new Parser(function (stream) {
|
|
106
|
-
if (stream.eof()) {
|
|
107
|
-
return new Result('', stream);
|
|
108
|
-
}
|
|
109
|
-
var char = stream.peek().char;
|
|
110
|
-
if (char === _token) {
|
|
111
|
-
stream.eat();
|
|
112
|
-
}
|
|
113
|
-
return new Result(_token, stream);
|
|
114
|
-
}); };
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
*/
|
|
118
|
-
export var token = function (rules, creator) { return new Parser(function (stream) {
|
|
119
|
-
var char = stream.next().char;
|
|
120
|
-
var rule = rules[char];
|
|
121
|
-
if (char === ESCAPE_CHARACTER) {
|
|
122
|
-
char = stream.next().char;
|
|
123
|
-
return new Result(creator.literal(char), stream);
|
|
124
|
-
}
|
|
125
|
-
if (!rule) {
|
|
126
|
-
return new Result(creator.literal(char), stream);
|
|
127
|
-
}
|
|
128
|
-
return new Result(creator.mask(rule), stream);
|
|
129
|
-
}); };
|
|
130
|
-
/**
|
|
131
|
-
* @hidden
|
|
132
|
-
*/
|
|
133
|
-
export var rawMask = function (args) { return new Parser(function (stream) {
|
|
134
|
-
var prompt = args.prompt, promptPlaceholder = args.promptPlaceholder;
|
|
135
|
-
var char = stream.next().char;
|
|
136
|
-
if (char === prompt) {
|
|
137
|
-
return new Result(promptPlaceholder, stream);
|
|
138
|
-
}
|
|
139
|
-
return new Result(char, stream);
|
|
140
|
-
}); };
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
export var rawLiteral = function (includeLiterals) { return new Parser(function (stream) {
|
|
145
|
-
var char = stream.next().char;
|
|
146
|
-
if (includeLiterals) {
|
|
147
|
-
return new Result(char, stream);
|
|
148
|
-
}
|
|
149
|
-
return new Result('', stream);
|
|
150
|
-
}); };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export var ResultType;
|
|
5
|
-
(function (ResultType) {
|
|
6
|
-
ResultType[ResultType["Literal"] = 0] = "Literal";
|
|
7
|
-
ResultType[ResultType["Mask"] = 1] = "Mask";
|
|
8
|
-
ResultType[ResultType["Undefined"] = 2] = "Undefined";
|
|
9
|
-
})(ResultType || (ResultType = {}));
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var Result = /** @class */ (function () {
|
|
14
|
-
function Result(value, rest, type) {
|
|
15
|
-
if (type === void 0) { type = ResultType.Undefined; }
|
|
16
|
-
this.value = value;
|
|
17
|
-
this.rest = rest;
|
|
18
|
-
this.type = type;
|
|
19
|
-
}
|
|
20
|
-
// map :: Functor f => f a ~> (a -> b) -> f b
|
|
21
|
-
Result.prototype.map = function (fn) {
|
|
22
|
-
return new Result(fn(this.value), this.rest);
|
|
23
|
-
};
|
|
24
|
-
// chain :: Chain m => m a ~> (a -> m b) -> m b
|
|
25
|
-
Result.prototype.chain = function (fn) {
|
|
26
|
-
return fn(this.value, this.rest);
|
|
27
|
-
};
|
|
28
|
-
Result.prototype.fold = function (s, _ /* we don't need it*/) {
|
|
29
|
-
return s(this.value, this.rest);
|
|
30
|
-
};
|
|
31
|
-
Result.prototype.concat = function (r) {
|
|
32
|
-
return this.map(function (vs, _) { return r.chain(function (v, __) { return vs.concat([v]); }); });
|
|
33
|
-
};
|
|
34
|
-
Result.prototype.toString = function () {
|
|
35
|
-
return "Result({ value: '".concat(this.value, "', rest: ").concat(this.rest, " })");
|
|
36
|
-
};
|
|
37
|
-
return Result;
|
|
38
|
-
}());
|
|
39
|
-
export { Result };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare class Stream {
|
|
5
|
-
private input;
|
|
6
|
-
private control;
|
|
7
|
-
private inputCursor;
|
|
8
|
-
private controlCursor;
|
|
9
|
-
constructor(input?: any[], control?: any[]);
|
|
10
|
-
eof(): boolean;
|
|
11
|
-
next(): {
|
|
12
|
-
char: string;
|
|
13
|
-
control: string;
|
|
14
|
-
};
|
|
15
|
-
peek(): {
|
|
16
|
-
char: string;
|
|
17
|
-
control: string;
|
|
18
|
-
};
|
|
19
|
-
eat_input(): void;
|
|
20
|
-
eat_control(): void;
|
|
21
|
-
eat(): void;
|
|
22
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var Stream = /** @class */ (function () {
|
|
5
|
-
function Stream(input, control) {
|
|
6
|
-
if (input === void 0) { input = []; }
|
|
7
|
-
if (control === void 0) { control = []; }
|
|
8
|
-
this.input = input;
|
|
9
|
-
this.control = control;
|
|
10
|
-
this.inputCursor = 0;
|
|
11
|
-
this.controlCursor = 0;
|
|
12
|
-
}
|
|
13
|
-
Stream.prototype.eof = function () {
|
|
14
|
-
return this.inputCursor >= this.input.length;
|
|
15
|
-
};
|
|
16
|
-
// Get the first value from the input.
|
|
17
|
-
Stream.prototype.next = function () {
|
|
18
|
-
return {
|
|
19
|
-
char: this.input[this.inputCursor++],
|
|
20
|
-
control: this.control[this.controlCursor++]
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Stream.prototype.peek = function () {
|
|
24
|
-
return {
|
|
25
|
-
char: this.input[this.inputCursor],
|
|
26
|
-
control: this.control[this.controlCursor]
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
Stream.prototype.eat_input = function () {
|
|
30
|
-
this.inputCursor++;
|
|
31
|
-
};
|
|
32
|
-
Stream.prototype.eat_control = function () {
|
|
33
|
-
this.controlCursor++;
|
|
34
|
-
};
|
|
35
|
-
Stream.prototype.eat = function () {
|
|
36
|
-
this.inputCursor++;
|
|
37
|
-
this.controlCursor++;
|
|
38
|
-
};
|
|
39
|
-
return Stream;
|
|
40
|
-
}());
|
|
41
|
-
export { Stream };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var defaultRules = {
|
|
5
|
-
'#': /[\d\s\+\-]/,
|
|
6
|
-
'&': /[\S]/,
|
|
7
|
-
'0': /[\d]/,
|
|
8
|
-
'9': /[\d\s]/,
|
|
9
|
-
'?': /[a-zA-Z\s]/,
|
|
10
|
-
'A': /[a-zA-Z0-9]/,
|
|
11
|
-
'C': /./,
|
|
12
|
-
'L': /[a-zA-Z]/,
|
|
13
|
-
'a': /[a-zA-Z0-9\s]/
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
var returnFalse = function () { return false; };
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
var maskingChanged = function (prev, next) {
|
|
23
|
-
return prev.includeLiterals !== next.includeLiterals ||
|
|
24
|
-
prev.mask !== next.mask ||
|
|
25
|
-
prev.prompt !== next.prompt ||
|
|
26
|
-
prev.promptPlaceholder !== next.promptPlaceholder ||
|
|
27
|
-
!sameRules(prev.rules, next.rules);
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
var sameRules = function (rules1, rules2) {
|
|
33
|
-
if (!!rules1 !== !!rules2) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
if (rules1 === rules2 || (!rules1 || !rules2)) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
var same = true;
|
|
40
|
-
for (var key in rules1) {
|
|
41
|
-
if (rules1[key] !== rules2[key]) {
|
|
42
|
-
same = false;
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (same) {
|
|
47
|
-
for (var key in rules2) {
|
|
48
|
-
if (!rules1.hasOwnProperty(key)) {
|
|
49
|
-
same = false;
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return same;
|
|
55
|
-
};
|
|
56
|
-
export { defaultRules, maskingChanged, returnFalse };
|