@progress/kendo-vue-inputs 5.3.0-dev.202409130647 → 5.3.0-develop.1
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/README.md +28 -38
- package/checkbox/Checkbox.js +8 -0
- package/checkbox/Checkbox.mjs +285 -0
- package/colors/ColorContrastLabels.js +8 -0
- package/colors/ColorContrastLabels.mjs +63 -0
- package/colors/ColorContrastSvg.js +8 -0
- package/colors/ColorContrastSvg.mjs +65 -0
- package/colors/ColorGradient.js +10 -0
- package/colors/ColorGradient.mjs +320 -0
- package/colors/ColorInput.js +8 -0
- package/colors/ColorInput.mjs +208 -0
- package/colors/ColorPalette.js +8 -0
- package/colors/ColorPalette.mjs +222 -0
- package/colors/ColorPicker.js +8 -0
- package/colors/ColorPicker.mjs +362 -0
- package/colors/FlatColorPicker.js +8 -0
- package/colors/FlatColorPicker.mjs +323 -0
- package/colors/HexInput.js +8 -0
- package/colors/HexInput.mjs +77 -0
- package/colors/Picker.js +8 -0
- package/colors/Picker.mjs +75 -0
- package/colors/models/palette-presets.js +8 -0
- package/colors/models/palette-presets.mjs +60 -0
- package/colors/utils/color-cache.js +8 -0
- package/colors/utils/color-cache.mjs +21 -0
- package/colors/utils/color-palette.service.js +8 -0
- package/colors/utils/color-palette.service.mjs +52 -0
- package/colors/utils/color-parser.js +8 -0
- package/colors/utils/color-parser.mjs +61 -0
- package/colors/utils/misc.js +8 -0
- package/colors/utils/misc.mjs +12 -0
- package/colors/utils/svg-calc.js +8 -0
- package/colors/utils/svg-calc.mjs +25 -0
- package/dist/cdn/js/kendo-vue-inputs.js +8 -1
- package/index.d.mts +5418 -0
- package/index.d.ts +5418 -0
- package/index.js +8 -0
- package/index.mjs +51 -0
- package/input/Input.js +8 -0
- package/input/Input.mjs +289 -0
- package/input-separator/InputSeparator.js +8 -0
- package/input-separator/InputSeparator.mjs +23 -0
- package/maskedtextbox/MaskedTextBox.js +8 -0
- package/maskedtextbox/MaskedTextBox.mjs +386 -0
- package/maskedtextbox/masking.service.js +8 -0
- package/maskedtextbox/masking.service.mjs +120 -0
- package/maskedtextbox/parsing/combinators.js +8 -0
- package/maskedtextbox/parsing/combinators.mjs +19 -0
- package/maskedtextbox/parsing/parsers.js +8 -0
- package/maskedtextbox/parsing/parsers.mjs +77 -0
- package/maskedtextbox/parsing/result.js +8 -0
- package/maskedtextbox/parsing/result.mjs +34 -0
- package/maskedtextbox/parsing/stream.js +8 -0
- package/maskedtextbox/parsing/stream.mjs +40 -0
- package/maskedtextbox/utils.js +8 -0
- package/maskedtextbox/utils.mjs +42 -0
- package/messages/main.js +9 -0
- package/messages/main.mjs +91 -0
- package/numerictextbox/NumericTextBox.js +8 -0
- package/numerictextbox/NumericTextBox.mjs +428 -0
- package/numerictextbox/utils/main.js +8 -0
- package/numerictextbox/utils/main.mjs +180 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +18 -0
- package/package.json +22 -57
- package/radiobutton/RadioButton.js +8 -0
- package/radiobutton/RadioButton.mjs +157 -0
- package/radiobutton/RadioGroup.js +8 -0
- package/radiobutton/RadioGroup.mjs +158 -0
- package/range-slider/RangeSlider.js +8 -0
- package/range-slider/RangeSlider.mjs +392 -0
- package/range-slider/range-raducer.js +8 -0
- package/range-slider/range-raducer.mjs +91 -0
- package/rating/Rating.js +8 -0
- package/rating/Rating.mjs +306 -0
- package/rating/RatingItem.js +8 -0
- package/rating/RatingItem.mjs +209 -0
- package/rating/utils/main.js +8 -0
- package/rating/utils/main.mjs +21 -0
- package/rating/utils/rating-reducer.js +8 -0
- package/rating/utils/rating-reducer.mjs +33 -0
- package/signature/Signature.js +8 -0
- package/signature/Signature.mjs +373 -0
- package/signature/SignatureBottomActions.js +8 -0
- package/signature/SignatureBottomActions.mjs +49 -0
- package/signature/SignatureCanvas.js +8 -0
- package/signature/SignatureCanvas.mjs +124 -0
- package/signature/SignatureDialog.js +8 -0
- package/signature/SignatureDialog.mjs +160 -0
- package/signature/SignatureLine.js +8 -0
- package/signature/SignatureLine.mjs +23 -0
- package/signature/utils/main.js +8 -0
- package/signature/utils/main.mjs +16 -0
- package/slider/Slider.js +8 -0
- package/slider/Slider.mjs +246 -0
- package/slider/SliderLabel.js +8 -0
- package/slider/SliderLabel.mjs +63 -0
- package/switch/Switch.js +8 -0
- package/switch/Switch.mjs +253 -0
- package/textarea/TextArea.js +8 -0
- package/textarea/TextArea.mjs +340 -0
- package/textarea/interfaces/TextAreaResize.js +8 -0
- package/textarea/interfaces/TextAreaResize.mjs +11 -0
- package/textbox/TextBox.js +8 -0
- package/textbox/TextBox.mjs +347 -0
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/checkbox/Checkbox.d.ts +0 -79
- package/dist/es/checkbox/Checkbox.js +0 -363
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -9
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +0 -1
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -5
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +0 -1
- package/dist/es/checkbox/interfaces/CheckboxProps.d.ts +0 -114
- package/dist/es/checkbox/interfaces/CheckboxProps.js +0 -1
- package/dist/es/colors/ColorContrastLabels.d.ts +0 -49
- package/dist/es/colors/ColorContrastLabels.js +0 -109
- package/dist/es/colors/ColorContrastSvg.d.ts +0 -50
- package/dist/es/colors/ColorContrastSvg.js +0 -116
- package/dist/es/colors/ColorGradient.d.ts +0 -54
- package/dist/es/colors/ColorGradient.js +0 -503
- package/dist/es/colors/ColorInput.d.ts +0 -57
- package/dist/es/colors/ColorInput.js +0 -346
- package/dist/es/colors/ColorPalette.d.ts +0 -60
- package/dist/es/colors/ColorPalette.js +0 -322
- package/dist/es/colors/ColorPicker.d.ts +0 -57
- package/dist/es/colors/ColorPicker.js +0 -506
- package/dist/es/colors/FlatColorPicker.d.ts +0 -139
- package/dist/es/colors/FlatColorPicker.js +0 -594
- package/dist/es/colors/HexInput.d.ts +0 -52
- package/dist/es/colors/HexInput.js +0 -106
- package/dist/es/colors/Picker.d.ts +0 -46
- package/dist/es/colors/Picker.js +0 -107
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -13
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorGradientProps.d.ts +0 -68
- package/dist/es/colors/interfaces/ColorGradientProps.js +0 -1
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -13
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +0 -71
- package/dist/es/colors/interfaces/ColorPaletteProps.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -13
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -9
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -17
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -9
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +0 -1
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -32
- 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 -179
- 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/FlatColorPickerViewChangeEvent.d.ts +0 -13
- package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +0 -1
- package/dist/es/colors/interfaces/PickerPopupSettings.d.ts +0 -14
- package/dist/es/colors/interfaces/PickerPopupSettings.js +0 -1
- package/dist/es/colors/interfaces/PickerProps.d.ts +0 -46
- 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.d.ts +0 -53
- 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 -43
- package/dist/es/colors/utils/color-cache.js +0 -75
- package/dist/es/colors/utils/color-palette.service.d.ts +0 -13
- package/dist/es/colors/utils/color-palette.service.js +0 -67
- package/dist/es/colors/utils/color-parser.d.ts +0 -71
- package/dist/es/colors/utils/color-parser.js +0 -145
- package/dist/es/colors/utils/misc.d.ts +0 -15
- package/dist/es/colors/utils/misc.js +0 -20
- package/dist/es/colors/utils/svg-calc.d.ts +0 -62
- package/dist/es/colors/utils/svg-calc.js +0 -103
- package/dist/es/input/Input.d.ts +0 -226
- package/dist/es/input/Input.js +0 -372
- package/dist/es/input-separator/InputSeparator.d.ts +0 -26
- package/dist/es/input-separator/InputSeparator.js +0 -40
- 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 -44
- package/dist/es/main.js +0 -42
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +0 -76
- package/dist/es/maskedtextbox/MaskedTextBox.js +0 -524
- package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +0 -220
- 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 -154
- package/dist/es/maskedtextbox/parsing/result.d.ts +0 -23
- 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.d.ts +0 -16
- package/dist/es/maskedtextbox/utils.js +0 -56
- package/dist/es/messages/main.d.ts +0 -200
- package/dist/es/messages/main.js +0 -201
- package/dist/es/numerictextbox/NumericTextBox.d.ts +0 -87
- package/dist/es/numerictextbox/NumericTextBox.js +0 -690
- package/dist/es/numerictextbox/interfaces/NumericTextBoxData.d.ts +0 -15
- package/dist/es/numerictextbox/interfaces/NumericTextBoxData.js +0 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -180
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +0 -1
- package/dist/es/numerictextbox/utils/main.d.ts +0 -119
- package/dist/es/numerictextbox/utils/main.js +0 -547
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/radiobutton/RadioButton.d.ts +0 -55
- package/dist/es/radiobutton/RadioButton.js +0 -194
- package/dist/es/radiobutton/RadioGroup.d.ts +0 -57
- package/dist/es/radiobutton/RadioGroup.js +0 -217
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -5
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -9
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -5
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +0 -112
- package/dist/es/radiobutton/interfaces/RadioButtonProps.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -9
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -5
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -1
- package/dist/es/radiobutton/interfaces/RadioGroupProps.d.ts +0 -81
- package/dist/es/radiobutton/interfaces/RadioGroupProps.js +0 -1
- package/dist/es/range-slider/RangeSlider.d.ts +0 -176
- package/dist/es/range-slider/RangeSlider.js +0 -600
- package/dist/es/range-slider/range-raducer.d.ts +0 -35
- package/dist/es/range-slider/range-raducer.js +0 -131
- package/dist/es/rating/Rating.d.ts +0 -61
- package/dist/es/rating/Rating.js +0 -400
- package/dist/es/rating/RatingItem.d.ts +0 -46
- package/dist/es/rating/RatingItem.js +0 -272
- package/dist/es/rating/interfaces/RatingEvents.d.ts +0 -47
- package/dist/es/rating/interfaces/RatingEvents.js +0 -1
- package/dist/es/rating/interfaces/RatingItemProps.d.ts +0 -92
- package/dist/es/rating/interfaces/RatingItemProps.js +0 -1
- package/dist/es/rating/interfaces/RatingProps.d.ts +0 -116
- package/dist/es/rating/interfaces/RatingProps.js +0 -1
- package/dist/es/rating/utils/main.d.ts +0 -24
- package/dist/es/rating/utils/main.js +0 -60
- package/dist/es/rating/utils/rating-reducer.d.ts +0 -32
- package/dist/es/rating/utils/rating-reducer.js +0 -63
- package/dist/es/signature/Signature.d.ts +0 -39
- package/dist/es/signature/Signature.js +0 -658
- package/dist/es/signature/SignatureBottomActions.d.ts +0 -45
- package/dist/es/signature/SignatureBottomActions.js +0 -73
- package/dist/es/signature/SignatureCanvas.d.ts +0 -39
- package/dist/es/signature/SignatureCanvas.js +0 -147
- package/dist/es/signature/SignatureDialog.d.ts +0 -54
- package/dist/es/signature/SignatureDialog.js +0 -306
- package/dist/es/signature/SignatureLine.d.ts +0 -42
- package/dist/es/signature/SignatureLine.js +0 -33
- package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +0 -5
- package/dist/es/signature/interfaces/SignatureBlurEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +0 -16
- package/dist/es/signature/interfaces/SignatureCanvasProps.js +0 -1
- package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +0 -9
- package/dist/es/signature/interfaces/SignatureChangeEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +0 -5
- package/dist/es/signature/interfaces/SignatureCloseEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +0 -5
- 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 -5
- package/dist/es/signature/interfaces/SignatureOpenEvent.js +0 -1
- package/dist/es/signature/interfaces/SignatureProps.d.ts +0 -192
- package/dist/es/signature/interfaces/SignatureProps.js +0 -1
- package/dist/es/signature/interfaces/main.d.ts +0 -7
- package/dist/es/signature/interfaces/main.js +0 -1
- package/dist/es/signature/utils/main.d.ts +0 -4
- package/dist/es/signature/utils/main.js +0 -10
- package/dist/es/slider/Slider.d.ts +0 -140
- package/dist/es/slider/Slider.js +0 -403
- package/dist/es/slider/SliderLabel.d.ts +0 -65
- package/dist/es/slider/SliderLabel.js +0 -107
- package/dist/es/switch/Switch.d.ts +0 -181
- package/dist/es/switch/Switch.js +0 -327
- package/dist/es/switch/util.d.ts +0 -8
- package/dist/es/switch/util.js +0 -46
- package/dist/es/textarea/TextArea.d.ts +0 -80
- package/dist/es/textarea/TextArea.js +0 -444
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -5
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -9
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaFlow.d.ts +0 -8
- package/dist/es/textarea/interfaces/TextAreaFlow.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -5
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +0 -185
- package/dist/es/textarea/interfaces/TextAreaProps.js +0 -1
- package/dist/es/textarea/interfaces/TextAreaResize.d.ts +0 -31
- package/dist/es/textarea/interfaces/TextAreaResize.js +0 -22
- package/dist/es/textbox/TextBox.d.ts +0 -211
- package/dist/es/textbox/TextBox.js +0 -447
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/checkbox/Checkbox.d.ts +0 -79
- package/dist/esm/checkbox/Checkbox.js +0 -363
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -9
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.js +0 -1
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -5
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.js +0 -1
- package/dist/esm/checkbox/interfaces/CheckboxProps.d.ts +0 -114
- package/dist/esm/checkbox/interfaces/CheckboxProps.js +0 -1
- package/dist/esm/colors/ColorContrastLabels.d.ts +0 -49
- package/dist/esm/colors/ColorContrastLabels.js +0 -109
- package/dist/esm/colors/ColorContrastSvg.d.ts +0 -50
- package/dist/esm/colors/ColorContrastSvg.js +0 -116
- package/dist/esm/colors/ColorGradient.d.ts +0 -54
- package/dist/esm/colors/ColorGradient.js +0 -503
- package/dist/esm/colors/ColorInput.d.ts +0 -57
- package/dist/esm/colors/ColorInput.js +0 -346
- package/dist/esm/colors/ColorPalette.d.ts +0 -60
- package/dist/esm/colors/ColorPalette.js +0 -322
- package/dist/esm/colors/ColorPicker.d.ts +0 -57
- package/dist/esm/colors/ColorPicker.js +0 -506
- package/dist/esm/colors/FlatColorPicker.d.ts +0 -139
- package/dist/esm/colors/FlatColorPicker.js +0 -594
- package/dist/esm/colors/HexInput.d.ts +0 -52
- package/dist/esm/colors/HexInput.js +0 -106
- package/dist/esm/colors/Picker.d.ts +0 -46
- package/dist/esm/colors/Picker.js +0 -107
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -13
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.js +0 -1
- package/dist/esm/colors/interfaces/ColorGradientProps.d.ts +0 -68
- package/dist/esm/colors/interfaces/ColorGradientProps.js +0 -1
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -13
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.js +0 -1
- package/dist/esm/colors/interfaces/ColorPaletteProps.d.ts +0 -71
- package/dist/esm/colors/interfaces/ColorPaletteProps.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -13
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -9
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -17
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -9
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -32
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -14
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerProps.d.ts +0 -179
- package/dist/esm/colors/interfaces/ColorPickerProps.js +0 -1
- package/dist/esm/colors/interfaces/ColorPickerView.d.ts +0 -10
- package/dist/esm/colors/interfaces/ColorPickerView.js +0 -1
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +0 -13
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.js +0 -1
- package/dist/esm/colors/interfaces/PickerPopupSettings.d.ts +0 -14
- package/dist/esm/colors/interfaces/PickerPopupSettings.js +0 -1
- package/dist/esm/colors/interfaces/PickerProps.d.ts +0 -46
- package/dist/esm/colors/interfaces/PickerProps.js +0 -1
- package/dist/esm/colors/models/hsva.d.ts +0 -9
- package/dist/esm/colors/models/hsva.js +0 -1
- package/dist/esm/colors/models/output-format.d.ts +0 -4
- package/dist/esm/colors/models/output-format.js +0 -1
- package/dist/esm/colors/models/palette-presets.d.ts +0 -53
- package/dist/esm/colors/models/palette-presets.js +0 -54
- package/dist/esm/colors/models/rgb.d.ts +0 -8
- package/dist/esm/colors/models/rgb.js +0 -1
- package/dist/esm/colors/models/rgba.d.ts +0 -9
- package/dist/esm/colors/models/rgba.js +0 -1
- package/dist/esm/colors/models/table-cell.d.ts +0 -7
- package/dist/esm/colors/models/table-cell.js +0 -1
- package/dist/esm/colors/models/tile-size.d.ts +0 -11
- package/dist/esm/colors/models/tile-size.js +0 -1
- package/dist/esm/colors/utils/color-cache.d.ts +0 -43
- package/dist/esm/colors/utils/color-cache.js +0 -75
- package/dist/esm/colors/utils/color-palette.service.d.ts +0 -13
- package/dist/esm/colors/utils/color-palette.service.js +0 -67
- package/dist/esm/colors/utils/color-parser.d.ts +0 -71
- package/dist/esm/colors/utils/color-parser.js +0 -145
- package/dist/esm/colors/utils/misc.d.ts +0 -15
- package/dist/esm/colors/utils/misc.js +0 -20
- package/dist/esm/colors/utils/svg-calc.d.ts +0 -62
- package/dist/esm/colors/utils/svg-calc.js +0 -103
- package/dist/esm/input/Input.d.ts +0 -226
- package/dist/esm/input/Input.js +0 -372
- package/dist/esm/input-separator/InputSeparator.d.ts +0 -26
- package/dist/esm/input-separator/InputSeparator.js +0 -40
- package/dist/esm/interfaces/Direction.d.ts +0 -1
- package/dist/esm/interfaces/Direction.js +0 -1
- package/dist/esm/interfaces/ToggleBaseProps.d.ts +0 -8
- package/dist/esm/interfaces/ToggleBaseProps.js +0 -1
- package/dist/esm/main.d.ts +0 -44
- package/dist/esm/main.js +0 -42
- package/dist/esm/maskedtextbox/MaskedTextBox.d.ts +0 -76
- package/dist/esm/maskedtextbox/MaskedTextBox.js +0 -524
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.d.ts +0 -220
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.js +0 -2
- package/dist/esm/maskedtextbox/masking.service.d.ts +0 -41
- package/dist/esm/maskedtextbox/masking.service.js +0 -206
- package/dist/esm/maskedtextbox/parsing/combinators.d.ts +0 -9
- package/dist/esm/maskedtextbox/parsing/combinators.js +0 -24
- package/dist/esm/maskedtextbox/parsing/parsers.d.ts +0 -47
- package/dist/esm/maskedtextbox/parsing/parsers.js +0 -154
- package/dist/esm/maskedtextbox/parsing/result.d.ts +0 -23
- package/dist/esm/maskedtextbox/parsing/result.js +0 -39
- package/dist/esm/maskedtextbox/parsing/stream.d.ts +0 -22
- package/dist/esm/maskedtextbox/parsing/stream.js +0 -41
- package/dist/esm/maskedtextbox/utils.d.ts +0 -16
- package/dist/esm/maskedtextbox/utils.js +0 -56
- package/dist/esm/messages/main.d.ts +0 -200
- package/dist/esm/messages/main.js +0 -201
- package/dist/esm/numerictextbox/NumericTextBox.d.ts +0 -87
- package/dist/esm/numerictextbox/NumericTextBox.js +0 -690
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.d.ts +0 -15
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.js +0 -1
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -180
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.js +0 -1
- package/dist/esm/numerictextbox/utils/main.d.ts +0 -119
- package/dist/esm/numerictextbox/utils/main.js +0 -547
- package/dist/esm/package-metadata.d.ts +0 -5
- package/dist/esm/package-metadata.js +0 -11
- package/dist/esm/package.json +0 -3
- package/dist/esm/radiobutton/RadioButton.d.ts +0 -55
- package/dist/esm/radiobutton/RadioButton.js +0 -194
- package/dist/esm/radiobutton/RadioGroup.d.ts +0 -57
- package/dist/esm/radiobutton/RadioGroup.js +0 -217
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -5
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -9
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -5
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.d.ts +0 -112
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -9
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -5
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -1
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.d.ts +0 -81
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.js +0 -1
- package/dist/esm/range-slider/RangeSlider.d.ts +0 -176
- package/dist/esm/range-slider/RangeSlider.js +0 -600
- package/dist/esm/range-slider/range-raducer.d.ts +0 -35
- package/dist/esm/range-slider/range-raducer.js +0 -131
- package/dist/esm/rating/Rating.d.ts +0 -61
- package/dist/esm/rating/Rating.js +0 -400
- package/dist/esm/rating/RatingItem.d.ts +0 -46
- package/dist/esm/rating/RatingItem.js +0 -272
- package/dist/esm/rating/interfaces/RatingEvents.d.ts +0 -47
- package/dist/esm/rating/interfaces/RatingEvents.js +0 -1
- package/dist/esm/rating/interfaces/RatingItemProps.d.ts +0 -92
- package/dist/esm/rating/interfaces/RatingItemProps.js +0 -1
- package/dist/esm/rating/interfaces/RatingProps.d.ts +0 -116
- package/dist/esm/rating/interfaces/RatingProps.js +0 -1
- package/dist/esm/rating/utils/main.d.ts +0 -24
- package/dist/esm/rating/utils/main.js +0 -60
- package/dist/esm/rating/utils/rating-reducer.d.ts +0 -32
- package/dist/esm/rating/utils/rating-reducer.js +0 -63
- package/dist/esm/signature/Signature.d.ts +0 -39
- package/dist/esm/signature/Signature.js +0 -658
- package/dist/esm/signature/SignatureBottomActions.d.ts +0 -45
- package/dist/esm/signature/SignatureBottomActions.js +0 -73
- package/dist/esm/signature/SignatureCanvas.d.ts +0 -39
- package/dist/esm/signature/SignatureCanvas.js +0 -147
- package/dist/esm/signature/SignatureDialog.d.ts +0 -54
- package/dist/esm/signature/SignatureDialog.js +0 -306
- package/dist/esm/signature/SignatureLine.d.ts +0 -42
- package/dist/esm/signature/SignatureLine.js +0 -33
- package/dist/esm/signature/interfaces/SignatureBlurEvent.d.ts +0 -5
- package/dist/esm/signature/interfaces/SignatureBlurEvent.js +0 -1
- package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +0 -16
- package/dist/esm/signature/interfaces/SignatureCanvasProps.js +0 -1
- package/dist/esm/signature/interfaces/SignatureChangeEvent.d.ts +0 -9
- package/dist/esm/signature/interfaces/SignatureChangeEvent.js +0 -1
- package/dist/esm/signature/interfaces/SignatureCloseEvent.d.ts +0 -5
- package/dist/esm/signature/interfaces/SignatureCloseEvent.js +0 -1
- package/dist/esm/signature/interfaces/SignatureFocusEvent.d.ts +0 -5
- package/dist/esm/signature/interfaces/SignatureFocusEvent.js +0 -1
- package/dist/esm/signature/interfaces/SignatureHandle.d.ts +0 -42
- package/dist/esm/signature/interfaces/SignatureHandle.js +0 -1
- package/dist/esm/signature/interfaces/SignatureOpenEvent.d.ts +0 -5
- package/dist/esm/signature/interfaces/SignatureOpenEvent.js +0 -1
- package/dist/esm/signature/interfaces/SignatureProps.d.ts +0 -192
- package/dist/esm/signature/interfaces/SignatureProps.js +0 -1
- package/dist/esm/signature/interfaces/main.d.ts +0 -7
- package/dist/esm/signature/interfaces/main.js +0 -1
- package/dist/esm/signature/utils/main.d.ts +0 -4
- package/dist/esm/signature/utils/main.js +0 -10
- package/dist/esm/slider/Slider.d.ts +0 -140
- package/dist/esm/slider/Slider.js +0 -403
- package/dist/esm/slider/SliderLabel.d.ts +0 -65
- package/dist/esm/slider/SliderLabel.js +0 -107
- package/dist/esm/switch/Switch.d.ts +0 -181
- package/dist/esm/switch/Switch.js +0 -327
- package/dist/esm/switch/util.d.ts +0 -8
- package/dist/esm/switch/util.js +0 -46
- package/dist/esm/textarea/TextArea.d.ts +0 -80
- package/dist/esm/textarea/TextArea.js +0 -444
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -5
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.js +0 -1
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -9
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.js +0 -1
- package/dist/esm/textarea/interfaces/TextAreaFlow.d.ts +0 -8
- package/dist/esm/textarea/interfaces/TextAreaFlow.js +0 -1
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -5
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.js +0 -1
- package/dist/esm/textarea/interfaces/TextAreaProps.d.ts +0 -185
- package/dist/esm/textarea/interfaces/TextAreaProps.js +0 -1
- package/dist/esm/textarea/interfaces/TextAreaResize.d.ts +0 -31
- package/dist/esm/textarea/interfaces/TextAreaResize.js +0 -22
- package/dist/esm/textbox/TextBox.d.ts +0 -211
- package/dist/esm/textbox/TextBox.js +0 -447
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/checkbox/Checkbox.d.ts +0 -79
- package/dist/npm/checkbox/Checkbox.js +0 -370
- package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -9
- package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.js +0 -2
- package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -5
- package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.js +0 -2
- package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +0 -114
- package/dist/npm/checkbox/interfaces/CheckboxProps.js +0 -2
- package/dist/npm/colors/ColorContrastLabels.d.ts +0 -49
- package/dist/npm/colors/ColorContrastLabels.js +0 -116
- package/dist/npm/colors/ColorContrastSvg.d.ts +0 -50
- package/dist/npm/colors/ColorContrastSvg.js +0 -123
- package/dist/npm/colors/ColorGradient.d.ts +0 -54
- package/dist/npm/colors/ColorGradient.js +0 -510
- package/dist/npm/colors/ColorInput.d.ts +0 -57
- package/dist/npm/colors/ColorInput.js +0 -353
- package/dist/npm/colors/ColorPalette.d.ts +0 -60
- package/dist/npm/colors/ColorPalette.js +0 -329
- package/dist/npm/colors/ColorPicker.d.ts +0 -57
- package/dist/npm/colors/ColorPicker.js +0 -511
- package/dist/npm/colors/FlatColorPicker.d.ts +0 -139
- package/dist/npm/colors/FlatColorPicker.js +0 -601
- package/dist/npm/colors/HexInput.d.ts +0 -52
- package/dist/npm/colors/HexInput.js +0 -113
- package/dist/npm/colors/Picker.d.ts +0 -46
- package/dist/npm/colors/Picker.js +0 -114
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -13
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +0 -68
- package/dist/npm/colors/interfaces/ColorGradientProps.js +0 -2
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -13
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +0 -71
- package/dist/npm/colors/interfaces/ColorPaletteProps.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -13
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -9
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -17
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -9
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.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.d.ts +0 -14
- package/dist/npm/colors/interfaces/ColorPickerPopupSettings.js +0 -2
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +0 -179
- 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/FlatColorPickerViewChangeEvent.d.ts +0 -13
- package/dist/npm/colors/interfaces/FlatColorPickerViewChangeEvent.js +0 -2
- package/dist/npm/colors/interfaces/PickerPopupSettings.d.ts +0 -14
- package/dist/npm/colors/interfaces/PickerPopupSettings.js +0 -2
- package/dist/npm/colors/interfaces/PickerProps.d.ts +0 -46
- 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.d.ts +0 -43
- package/dist/npm/colors/utils/color-cache.js +0 -85
- package/dist/npm/colors/utils/color-palette.service.d.ts +0 -13
- package/dist/npm/colors/utils/color-palette.service.js +0 -70
- package/dist/npm/colors/utils/color-parser.d.ts +0 -71
- package/dist/npm/colors/utils/color-parser.js +0 -159
- 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/input/Input.d.ts +0 -226
- package/dist/npm/input/Input.js +0 -379
- package/dist/npm/input-separator/InputSeparator.d.ts +0 -26
- package/dist/npm/input-separator/InputSeparator.js +0 -47
- 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 -44
- package/dist/npm/main.js +0 -63
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +0 -76
- package/dist/npm/maskedtextbox/MaskedTextBox.js +0 -531
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +0 -220
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.js +0 -3
- package/dist/npm/maskedtextbox/masking.service.d.ts +0 -41
- 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.d.ts +0 -47
- package/dist/npm/maskedtextbox/parsing/parsers.js +0 -164
- 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.d.ts +0 -22
- 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/main.d.ts +0 -200
- package/dist/npm/messages/main.js +0 -204
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +0 -87
- package/dist/npm/numerictextbox/NumericTextBox.js +0 -697
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxData.d.ts +0 -15
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxData.js +0 -5
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -180
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.js +0 -5
- package/dist/npm/numerictextbox/utils/main.d.ts +0 -119
- package/dist/npm/numerictextbox/utils/main.js +0 -581
- 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 -55
- package/dist/npm/radiobutton/RadioButton.js +0 -201
- package/dist/npm/radiobutton/RadioGroup.d.ts +0 -57
- package/dist/npm/radiobutton/RadioGroup.js +0 -224
- package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -5
- package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -9
- package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -5
- package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioButtonProps.d.ts +0 -112
- package/dist/npm/radiobutton/interfaces/RadioButtonProps.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -9
- package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -5
- package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -2
- package/dist/npm/radiobutton/interfaces/RadioGroupProps.d.ts +0 -81
- package/dist/npm/radiobutton/interfaces/RadioGroupProps.js +0 -2
- package/dist/npm/range-slider/RangeSlider.d.ts +0 -176
- package/dist/npm/range-slider/RangeSlider.js +0 -605
- package/dist/npm/range-slider/range-raducer.d.ts +0 -35
- package/dist/npm/range-slider/range-raducer.js +0 -138
- package/dist/npm/rating/Rating.d.ts +0 -61
- package/dist/npm/rating/Rating.js +0 -407
- package/dist/npm/rating/RatingItem.d.ts +0 -46
- package/dist/npm/rating/RatingItem.js +0 -279
- package/dist/npm/rating/interfaces/RatingEvents.d.ts +0 -47
- package/dist/npm/rating/interfaces/RatingEvents.js +0 -2
- package/dist/npm/rating/interfaces/RatingItemProps.d.ts +0 -92
- package/dist/npm/rating/interfaces/RatingItemProps.js +0 -2
- package/dist/npm/rating/interfaces/RatingProps.d.ts +0 -116
- package/dist/npm/rating/interfaces/RatingProps.js +0 -2
- package/dist/npm/rating/utils/main.d.ts +0 -24
- package/dist/npm/rating/utils/main.js +0 -72
- package/dist/npm/rating/utils/rating-reducer.d.ts +0 -32
- package/dist/npm/rating/utils/rating-reducer.js +0 -67
- package/dist/npm/signature/Signature.d.ts +0 -39
- package/dist/npm/signature/Signature.js +0 -665
- package/dist/npm/signature/SignatureBottomActions.d.ts +0 -45
- package/dist/npm/signature/SignatureBottomActions.js +0 -80
- package/dist/npm/signature/SignatureCanvas.d.ts +0 -39
- package/dist/npm/signature/SignatureCanvas.js +0 -154
- package/dist/npm/signature/SignatureDialog.d.ts +0 -54
- package/dist/npm/signature/SignatureDialog.js +0 -313
- package/dist/npm/signature/SignatureLine.d.ts +0 -42
- package/dist/npm/signature/SignatureLine.js +0 -40
- package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +0 -5
- package/dist/npm/signature/interfaces/SignatureBlurEvent.js +0 -5
- package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +0 -16
- package/dist/npm/signature/interfaces/SignatureCanvasProps.js +0 -5
- package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +0 -9
- package/dist/npm/signature/interfaces/SignatureChangeEvent.js +0 -5
- package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +0 -5
- package/dist/npm/signature/interfaces/SignatureCloseEvent.js +0 -5
- package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +0 -5
- package/dist/npm/signature/interfaces/SignatureFocusEvent.js +0 -5
- package/dist/npm/signature/interfaces/SignatureHandle.d.ts +0 -42
- package/dist/npm/signature/interfaces/SignatureHandle.js +0 -5
- package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +0 -5
- package/dist/npm/signature/interfaces/SignatureOpenEvent.js +0 -5
- package/dist/npm/signature/interfaces/SignatureProps.d.ts +0 -192
- package/dist/npm/signature/interfaces/SignatureProps.js +0 -5
- package/dist/npm/signature/interfaces/main.d.ts +0 -7
- package/dist/npm/signature/interfaces/main.js +0 -2
- package/dist/npm/signature/utils/main.d.ts +0 -4
- package/dist/npm/signature/utils/main.js +0 -14
- package/dist/npm/slider/Slider.d.ts +0 -140
- package/dist/npm/slider/Slider.js +0 -410
- package/dist/npm/slider/SliderLabel.d.ts +0 -65
- package/dist/npm/slider/SliderLabel.js +0 -114
- package/dist/npm/switch/Switch.d.ts +0 -181
- package/dist/npm/switch/Switch.js +0 -334
- package/dist/npm/switch/util.d.ts +0 -8
- package/dist/npm/switch/util.js +0 -50
- package/dist/npm/textarea/TextArea.d.ts +0 -80
- package/dist/npm/textarea/TextArea.js +0 -449
- package/dist/npm/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -5
- package/dist/npm/textarea/interfaces/TextAreaBlurEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -9
- package/dist/npm/textarea/interfaces/TextAreaChangeEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaFlow.d.ts +0 -8
- package/dist/npm/textarea/interfaces/TextAreaFlow.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -5
- package/dist/npm/textarea/interfaces/TextAreaFocusEvent.js +0 -2
- package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +0 -185
- package/dist/npm/textarea/interfaces/TextAreaProps.js +0 -5
- package/dist/npm/textarea/interfaces/TextAreaResize.d.ts +0 -31
- package/dist/npm/textarea/interfaces/TextAreaResize.js +0 -25
- package/dist/npm/textbox/TextBox.d.ts +0 -211
- package/dist/npm/textbox/TextBox.js +0 -454
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { isPresent } from './misc';
|
|
2
|
-
import { parseColor } from '@progress/kendo-drawing';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
var ColorPaletteService = /** @class */ (function () {
|
|
7
|
-
function ColorPaletteService() {
|
|
8
|
-
this.colorRows = [];
|
|
9
|
-
}
|
|
10
|
-
ColorPaletteService.prototype.setColorMatrix = function (palette, columns) {
|
|
11
|
-
this.colorRows = [];
|
|
12
|
-
if (!(isPresent(palette) && palette.length)) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
columns = columns || palette.length;
|
|
16
|
-
for (var start = 0; start < palette.length; start += columns) {
|
|
17
|
-
var row = palette.slice(start, columns + start);
|
|
18
|
-
this.colorRows.push(row);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
ColorPaletteService.prototype.isInColors = function (colors, current) {
|
|
22
|
-
return colors.some(function (c) { return c === current; });
|
|
23
|
-
};
|
|
24
|
-
ColorPaletteService.prototype.getCellCoordsFor = function (color) {
|
|
25
|
-
if (!isPresent(color)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
var parsedColor = color ? parseColor(color, true) : color;
|
|
29
|
-
var colors = [color];
|
|
30
|
-
if (isPresent(parsedColor)) {
|
|
31
|
-
colors.push(parsedColor.toCss(), parsedColor.toCssRgba());
|
|
32
|
-
}
|
|
33
|
-
for (var row = 0; row < this.colorRows.length; row++) {
|
|
34
|
-
for (var col = 0; col < this.colorRows[row].length; col++) {
|
|
35
|
-
if (this.isInColors(colors, this.colorRows[row][col])) {
|
|
36
|
-
return { row: row, col: col };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
ColorPaletteService.prototype.getColorAt = function (cellCoords) {
|
|
42
|
-
if (!(isPresent(cellCoords) && isPresent(this.colorRows[cellCoords.row]))) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
return this.colorRows[cellCoords.row][cellCoords.col];
|
|
46
|
-
};
|
|
47
|
-
ColorPaletteService.prototype.getNextCell = function (current, horizontalStep, verticalStep) {
|
|
48
|
-
if (!(isPresent(current) && isPresent(current.row) && isPresent(current.col))) {
|
|
49
|
-
return { row: 0, col: 0 };
|
|
50
|
-
}
|
|
51
|
-
var row = this.clampIndex(current.row + verticalStep, this.colorRows.length - 1);
|
|
52
|
-
var col = this.clampIndex(current.col + horizontalStep, this.colorRows[row].length - 1);
|
|
53
|
-
return { row: row, col: col };
|
|
54
|
-
};
|
|
55
|
-
ColorPaletteService.prototype.clampIndex = function (index, max) {
|
|
56
|
-
var minArrayIndex = 0;
|
|
57
|
-
if (index < minArrayIndex) {
|
|
58
|
-
return minArrayIndex;
|
|
59
|
-
}
|
|
60
|
-
if (index > max) {
|
|
61
|
-
return max;
|
|
62
|
-
}
|
|
63
|
-
return index;
|
|
64
|
-
};
|
|
65
|
-
return ColorPaletteService;
|
|
66
|
-
}());
|
|
67
|
-
export { ColorPaletteService };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { HSVA } from '../models/hsva';
|
|
2
|
-
import { OutputFormat } from '../models/output-format';
|
|
3
|
-
import { RGB } from '../models/rgb';
|
|
4
|
-
import { RGBA } from '../models/rgba';
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*
|
|
8
|
-
* Returns the hex or RGBA string representation of the color.
|
|
9
|
-
*/
|
|
10
|
-
export declare const parseColor: (value: string, format: OutputFormat, opacityEnabled?: boolean, safe?: boolean) => string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*
|
|
14
|
-
* Returns the HEX value.
|
|
15
|
-
*/
|
|
16
|
-
export declare const getHexValue: (color: any, opacity: boolean) => string;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*
|
|
20
|
-
* Returns an HSV object representation of the color string.
|
|
21
|
-
*/
|
|
22
|
-
export declare const getHSV: (value: string, safe?: boolean) => HSVA;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*
|
|
26
|
-
* Returns an RGBA object representation of the color string.
|
|
27
|
-
*/
|
|
28
|
-
export declare const getRGBA: (value: string, safe?: boolean) => RGBA;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*
|
|
32
|
-
* Returns the RGBA string representation of the color.
|
|
33
|
-
*/
|
|
34
|
-
export declare const getColorFromHSV: (hsva: HSVA) => string;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*
|
|
38
|
-
* Returns the RGBA string representation of the color based on the `hue` and
|
|
39
|
-
* assuming the `value`, `saturation`, and `alpha` have a value of `1`.
|
|
40
|
-
*/
|
|
41
|
-
export declare const getColorFromHue: (hue: number) => string;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*
|
|
45
|
-
* Returns the RGBA string representation of the color.
|
|
46
|
-
*/
|
|
47
|
-
export declare const getColorFromRGBA: (rgba: RGBA) => string;
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*
|
|
51
|
-
* Returns the RGB object representation of the color based on the background color.
|
|
52
|
-
*/
|
|
53
|
-
export declare const getRGBFromRGBA: (foregroundColor: RGBA, backgroundColor: RGBA) => RGB;
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*
|
|
57
|
-
* Returns the relative luminance.
|
|
58
|
-
*/
|
|
59
|
-
export declare const getLuminance: (rgb: RGB) => number;
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*
|
|
63
|
-
* Returns the color contrast.
|
|
64
|
-
*/
|
|
65
|
-
export declare const getContrast: (luminance1: number, luminance2: number) => number;
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*
|
|
69
|
-
* Returns the color contrast from two RGBA colors.
|
|
70
|
-
*/
|
|
71
|
-
export declare const getContrastFromTwoRGBAs: (a: RGBA, b: RGBA) => number;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { parseColor as parse, Color } from '@progress/kendo-drawing';
|
|
2
|
-
import { isPresent, fitIntoBounds } from './misc';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*
|
|
6
|
-
* Returns the hex or RGBA string representation of the color.
|
|
7
|
-
*/
|
|
8
|
-
export var parseColor = function (value, format, opacityEnabled, safe) {
|
|
9
|
-
if (opacityEnabled === void 0) { opacityEnabled = false; }
|
|
10
|
-
if (safe === void 0) { safe = true; }
|
|
11
|
-
var allowedFormats = ['hex', 'rgba']; // TODO: constant?
|
|
12
|
-
// Angular supports third type: name : const allowedFormats: Array<string> = ['hex', 'rgba', 'name'];
|
|
13
|
-
if (allowedFormats.indexOf(format) === -1) {
|
|
14
|
-
throw new Error("Unsupported color output format '".concat(format, "'. The available options are 'hex' or 'rgba'."));
|
|
15
|
-
}
|
|
16
|
-
if (!isPresent(value)) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
var parsedColor = parse(value.trim(), safe);
|
|
20
|
-
if (!isPresent(parsedColor)) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
return format === 'hex' ? getHexValue(parsedColor, opacityEnabled) : parsedColor.toCssRgba();
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*
|
|
28
|
-
* Returns the HEX value.
|
|
29
|
-
*/
|
|
30
|
-
export var getHexValue = function (color, opacity) {
|
|
31
|
-
return opacity && color.a < 1 ? color.toCss({ alpha: true }) : color.toCss();
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*
|
|
36
|
-
* Returns an HSV object representation of the color string.
|
|
37
|
-
*/
|
|
38
|
-
export var getHSV = function (value, safe) {
|
|
39
|
-
if (safe === void 0) { safe = true; }
|
|
40
|
-
var parsed = parse(value, safe);
|
|
41
|
-
if (!isPresent(parsed)) {
|
|
42
|
-
return {};
|
|
43
|
-
}
|
|
44
|
-
return parsed.toHSV();
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*
|
|
49
|
-
* Returns an RGBA object representation of the color string.
|
|
50
|
-
*/
|
|
51
|
-
export var getRGBA = function (value, safe) {
|
|
52
|
-
if (safe === void 0) { safe = true; }
|
|
53
|
-
var parsed = parse(value, safe);
|
|
54
|
-
if (!isPresent(parsed)) {
|
|
55
|
-
return {};
|
|
56
|
-
}
|
|
57
|
-
return parsed.toBytes();
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*
|
|
62
|
-
* Returns the RGBA string representation of the color.
|
|
63
|
-
*/
|
|
64
|
-
export var getColorFromHSV = function (hsva) {
|
|
65
|
-
var hue = fitIntoBounds(hsva.h, 0, 359.9);
|
|
66
|
-
var saturation = fitIntoBounds(hsva.s, 0, 1);
|
|
67
|
-
var value = fitIntoBounds(hsva.v, 0, 1);
|
|
68
|
-
var alpha = fitIntoBounds(hsva.a, 0, 1);
|
|
69
|
-
return Color.fromHSV(hue, saturation, value, alpha).toCssRgba();
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*
|
|
74
|
-
* Returns the RGBA string representation of the color based on the `hue` and
|
|
75
|
-
* assuming the `value`, `saturation`, and `alpha` have a value of `1`.
|
|
76
|
-
*/
|
|
77
|
-
export var getColorFromHue = function (hue) {
|
|
78
|
-
return getColorFromHSV({ h: hue, s: 1, v: 1, a: 1 });
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* @hidden
|
|
82
|
-
*
|
|
83
|
-
* Returns the RGBA string representation of the color.
|
|
84
|
-
*/
|
|
85
|
-
export var getColorFromRGBA = function (rgba) {
|
|
86
|
-
var red = fitIntoBounds(rgba.r, 0, 255);
|
|
87
|
-
var green = fitIntoBounds(rgba.g, 0, 255);
|
|
88
|
-
var blue = fitIntoBounds(rgba.b, 0, 255);
|
|
89
|
-
var alpha = fitIntoBounds(rgba.a, 0, 1);
|
|
90
|
-
return Color.fromBytes(red, green, blue, alpha).toCssRgba();
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*
|
|
95
|
-
* Returns the RGB object representation of the color based on the background color.
|
|
96
|
-
*/
|
|
97
|
-
export var getRGBFromRGBA = function (foregroundColor, backgroundColor) {
|
|
98
|
-
var r1 = fitIntoBounds(foregroundColor.r, 0, 255);
|
|
99
|
-
var g1 = fitIntoBounds(foregroundColor.g, 0, 255);
|
|
100
|
-
var b1 = fitIntoBounds(foregroundColor.b, 0, 255);
|
|
101
|
-
var a1 = fitIntoBounds(foregroundColor.a, 0, 1);
|
|
102
|
-
var r2 = fitIntoBounds(backgroundColor.r, 0, 255);
|
|
103
|
-
var g2 = fitIntoBounds(backgroundColor.g, 0, 255);
|
|
104
|
-
var b2 = fitIntoBounds(backgroundColor.b, 0, 255);
|
|
105
|
-
return {
|
|
106
|
-
r: Math.round(((1 - a1) * r2) + (a1 * r1)),
|
|
107
|
-
g: Math.round(((1 - a1) * g2) + (a1 * g1)),
|
|
108
|
-
b: Math.round(((1 - a1) * b2) + (a1 * b1))
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* @hidden
|
|
113
|
-
*
|
|
114
|
-
* Returns the relative luminance.
|
|
115
|
-
*/
|
|
116
|
-
export var getLuminance = function (rgb) {
|
|
117
|
-
// @ts-ignore
|
|
118
|
-
var a = [rgb.r, rgb.g, rgb.b].map(function (v) {
|
|
119
|
-
v /= 255;
|
|
120
|
-
return v <= 0.03928
|
|
121
|
-
? v / 12.92
|
|
122
|
-
: Math.pow((v + 0.055) / 1.055, 2.4);
|
|
123
|
-
});
|
|
124
|
-
// @ts-ignore
|
|
125
|
-
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* @hidden
|
|
129
|
-
*
|
|
130
|
-
* Returns the color contrast.
|
|
131
|
-
*/
|
|
132
|
-
export var getContrast = function (luminance1, luminance2) {
|
|
133
|
-
var brightest = Math.max(luminance1, luminance2);
|
|
134
|
-
var darkest = Math.min(luminance1, luminance2);
|
|
135
|
-
return (brightest + 0.05)
|
|
136
|
-
/ (darkest + 0.05);
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* @hidden
|
|
140
|
-
*
|
|
141
|
-
* Returns the color contrast from two RGBA colors.
|
|
142
|
-
*/
|
|
143
|
-
export var getContrastFromTwoRGBAs = function (a, b) {
|
|
144
|
-
return getContrast(getLuminance(getRGBFromRGBA(a, b)), getLuminance(getRGBFromRGBA(b, { r: 0, g: 0, b: 0, a: 1 })));
|
|
145
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const isPresent: (value: any) => boolean;
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*
|
|
8
|
-
* Fits the contender number into the specified bounds.
|
|
9
|
-
* If the number is NaN or null, the minimum is returned.
|
|
10
|
-
*
|
|
11
|
-
* @param contender Represents the number you want to fit into the specified bounds.
|
|
12
|
-
* @param min The inclusive lower bound number.
|
|
13
|
-
* @param max The inclusive upper bound number.
|
|
14
|
-
*/
|
|
15
|
-
export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*
|
|
8
|
-
* Fits the contender number into the specified bounds.
|
|
9
|
-
* If the number is NaN or null, the minimum is returned.
|
|
10
|
-
*
|
|
11
|
-
* @param contender Represents the number you want to fit into the specified bounds.
|
|
12
|
-
* @param min The inclusive lower bound number.
|
|
13
|
-
* @param max The inclusive upper bound number.
|
|
14
|
-
*/
|
|
15
|
-
export var fitIntoBounds = function (contender, min, max) {
|
|
16
|
-
if (!isPresent(contender) || isNaN(contender)) {
|
|
17
|
-
return min;
|
|
18
|
-
}
|
|
19
|
-
return contender <= min ? min : contender >= max ? max : contender;
|
|
20
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*
|
|
4
|
-
* Render the svg <path> element.
|
|
5
|
-
*
|
|
6
|
-
* @param points (array) Represents the points coordinates as an array of tuples.
|
|
7
|
-
* @param command (function) The command that is used (bezierCommand, lineCommand).
|
|
8
|
-
* @param point (array) [x,y] Represents the current point coordinates.
|
|
9
|
-
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
10
|
-
* @param a (array) Represents the complete array of points coordinates.
|
|
11
|
-
* @output (string) a svg path command.
|
|
12
|
-
* @output (string) a Svg <path> element
|
|
13
|
-
*/
|
|
14
|
-
export declare const svgPath: (points: number[][], command: Function) => string;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*
|
|
18
|
-
* Returns the properties of a line.
|
|
19
|
-
*
|
|
20
|
-
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
21
|
-
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
22
|
-
* @output (object) { length: (integer), angle: (integer) }
|
|
23
|
-
*/
|
|
24
|
-
export declare const line: (pointA: number[], pointB: number[]) => {
|
|
25
|
-
length: number;
|
|
26
|
-
angle: number;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*
|
|
31
|
-
* Create a function to calculate the position of the control point.
|
|
32
|
-
*
|
|
33
|
-
* @param lineCalc (function) Represents the line function.
|
|
34
|
-
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
35
|
-
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
36
|
-
* @output (object) { length: (integer), angle: (integer) }
|
|
37
|
-
* @output (function) closure.
|
|
38
|
-
* @param current (array) [x, y] Represents the current point coordinates.
|
|
39
|
-
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
40
|
-
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
41
|
-
* @param reverse (boolean, optional) Sets the direction.
|
|
42
|
-
* @output (array) [x, y] coordinates of a control point.
|
|
43
|
-
*/
|
|
44
|
-
export declare const controlPoint: (lineCalc: Function) => (current: number[], previous: number[], next: number[], reverse?: boolean) => number[];
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*
|
|
48
|
-
* Create a function to calculate a bezier curve command.
|
|
49
|
-
*
|
|
50
|
-
* @param controlPointCalc (function) Represents the controlPoint function.
|
|
51
|
-
* @param current (array) [x, y] Represents the current point coordinates.
|
|
52
|
-
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
53
|
-
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
54
|
-
* @param reverse (boolean, optional) Sets the direction.
|
|
55
|
-
* @output (array) [x, y] coordinates of a control point.
|
|
56
|
-
* @output (function) closure.
|
|
57
|
-
* @param point (array) [x,y] Represents the current point coordinates.
|
|
58
|
-
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
59
|
-
* @param a (array) Represents the complete array of points coordinates.
|
|
60
|
-
* @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
|
|
61
|
-
*/
|
|
62
|
-
export declare const bezierCommand: (controlPointCalc: Function) => (point: number[], i: number, a: number[]) => string;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*
|
|
4
|
-
* Render the svg <path> element.
|
|
5
|
-
*
|
|
6
|
-
* @param points (array) Represents the points coordinates as an array of tuples.
|
|
7
|
-
* @param command (function) The command that is used (bezierCommand, lineCommand).
|
|
8
|
-
* @param point (array) [x,y] Represents the current point coordinates.
|
|
9
|
-
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
10
|
-
* @param a (array) Represents the complete array of points coordinates.
|
|
11
|
-
* @output (string) a svg path command.
|
|
12
|
-
* @output (string) a Svg <path> element
|
|
13
|
-
*/
|
|
14
|
-
export var svgPath = function (points, command) {
|
|
15
|
-
if (points.length === 0) {
|
|
16
|
-
return '';
|
|
17
|
-
}
|
|
18
|
-
// build the d attributes by looping over the points
|
|
19
|
-
var d = points.reduce(function (acc, point, i, a) {
|
|
20
|
-
return i === 0 ?
|
|
21
|
-
// if first point
|
|
22
|
-
"M ".concat(point[0], ",").concat(point[1]) :
|
|
23
|
-
// else
|
|
24
|
-
"".concat(acc, " ").concat(command(point, i, a));
|
|
25
|
-
}, '');
|
|
26
|
-
return "<path d=\"".concat(d, "\" fill=\"none\" stroke=\"white\" stroke-width=\"1\"/>");
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*
|
|
31
|
-
* Returns the properties of a line.
|
|
32
|
-
*
|
|
33
|
-
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
34
|
-
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
35
|
-
* @output (object) { length: (integer), angle: (integer) }
|
|
36
|
-
*/
|
|
37
|
-
export var line = function (pointA, pointB) {
|
|
38
|
-
var lengthX = pointB[0] - pointA[0];
|
|
39
|
-
var lengthY = pointB[1] - pointA[1];
|
|
40
|
-
return {
|
|
41
|
-
length: Math.sqrt(Math.pow(lengthX, 2) + Math.pow(lengthY, 2)),
|
|
42
|
-
angle: Math.atan2(lengthY, lengthX)
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*
|
|
48
|
-
* Create a function to calculate the position of the control point.
|
|
49
|
-
*
|
|
50
|
-
* @param lineCalc (function) Represents the line function.
|
|
51
|
-
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
52
|
-
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
53
|
-
* @output (object) { length: (integer), angle: (integer) }
|
|
54
|
-
* @output (function) closure.
|
|
55
|
-
* @param current (array) [x, y] Represents the current point coordinates.
|
|
56
|
-
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
57
|
-
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
58
|
-
* @param reverse (boolean, optional) Sets the direction.
|
|
59
|
-
* @output (array) [x, y] coordinates of a control point.
|
|
60
|
-
*/
|
|
61
|
-
export var controlPoint = function (lineCalc) {
|
|
62
|
-
return function (current, previous, next, reverse) {
|
|
63
|
-
// when 'current' is the first or last point of the array
|
|
64
|
-
// 'previous' and 'next' are undefined
|
|
65
|
-
// replace with 'current'
|
|
66
|
-
var p = previous || current;
|
|
67
|
-
var n = next || current;
|
|
68
|
-
var smooth = 0.1;
|
|
69
|
-
// properties of the line between previous and next
|
|
70
|
-
var l = lineCalc(p, n);
|
|
71
|
-
// If is end-control-point, add PI to the angle to go backward
|
|
72
|
-
var angle = l.angle + (reverse ? Math.PI : 0);
|
|
73
|
-
var length = l.length * smooth;
|
|
74
|
-
// The control point position is relative to the current point
|
|
75
|
-
var x = current[0] + Math.cos(angle) * length;
|
|
76
|
-
var y = current[1] + Math.sin(angle) * length;
|
|
77
|
-
return [x, y];
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* @hidden
|
|
82
|
-
*
|
|
83
|
-
* Create a function to calculate a bezier curve command.
|
|
84
|
-
*
|
|
85
|
-
* @param controlPointCalc (function) Represents the controlPoint function.
|
|
86
|
-
* @param current (array) [x, y] Represents the current point coordinates.
|
|
87
|
-
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
88
|
-
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
89
|
-
* @param reverse (boolean, optional) Sets the direction.
|
|
90
|
-
* @output (array) [x, y] coordinates of a control point.
|
|
91
|
-
* @output (function) closure.
|
|
92
|
-
* @param point (array) [x,y] Represents the current point coordinates.
|
|
93
|
-
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
94
|
-
* @param a (array) Represents the complete array of points coordinates.
|
|
95
|
-
* @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
|
|
96
|
-
*/
|
|
97
|
-
export var bezierCommand = function (controlPointCalc) { return function (point, i, a) {
|
|
98
|
-
// start control point
|
|
99
|
-
var _a = controlPointCalc(a[i - 1], a[i - 2], point), cpsX = _a[0], cpsY = _a[1];
|
|
100
|
-
// end control point
|
|
101
|
-
var _b = controlPointCalc(point, a[i - 1], a[i + 1], true), cpeX = _b[0], cpeY = _b[1];
|
|
102
|
-
return "C ".concat(cpsX, ",").concat(cpsY, " ").concat(cpeX, ",").concat(cpeY, " ").concat(point[0], ",").concat(point[1]);
|
|
103
|
-
}; };
|