@progress/kendo-vue-inputs 3.5.0 → 3.5.1-dev.202208100944
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/dist/es/checkbox/Checkbox.js +1 -1
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxProps.js +1 -0
- package/dist/es/colors/ColorContrastLabels.js +3 -3
- package/dist/es/colors/ColorContrastSvg.js +2 -2
- package/dist/es/colors/ColorGradient.js +7 -7
- package/dist/es/colors/ColorPalette.js +1 -1
- package/dist/es/colors/ColorPicker.js +4 -4
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorGradientProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerView.js +1 -0
- package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/PickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/PickerProps.js +1 -0
- package/dist/es/colors/models/hsva.js +1 -0
- package/dist/es/colors/models/output-format.js +1 -0
- package/dist/es/colors/models/rgb.js +1 -0
- package/dist/es/colors/models/rgba.js +1 -0
- package/dist/es/colors/models/table-cell.js +1 -0
- package/dist/es/colors/models/tile-size.js +1 -0
- package/dist/es/colors/utils/color-parser.js +1 -1
- package/dist/es/colors/utils/svg-calc.js +4 -4
- package/dist/es/input/Input.js +2 -2
- package/dist/es/interfaces/Direction.js +1 -0
- package/dist/es/interfaces/ToggleBaseProps.js +1 -0
- package/dist/es/maskedtextbox/MaskedTextBox.js +3 -3
- package/dist/es/maskedtextbox/MaskedTextBoxProps.js +1 -0
- package/dist/es/maskedtextbox/parsing/result.js +1 -1
- package/dist/es/numerictextbox/NumericTextBox.js +2 -2
- package/dist/es/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
- package/dist/es/numerictextbox/utils/index.js +4 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +1 -1
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonProps.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupProps.js +1 -0
- package/dist/es/range-slider/RangeSlider.js +4 -4
- package/dist/es/slider/SliderLabel.js +2 -2
- package/dist/es/switch/Switch.js +3 -3
- package/dist/es/textarea/TextArea.js +3 -3
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaFlow.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaProps.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaResize.js +1 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/checkbox/Checkbox.d.ts +79 -0
- package/dist/esm/checkbox/Checkbox.js +373 -0
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.d.ts +9 -0
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.d.ts +5 -0
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
- package/dist/esm/checkbox/interfaces/CheckboxProps.d.ts +110 -0
- package/dist/esm/checkbox/interfaces/CheckboxProps.js +1 -0
- package/dist/esm/colors/ColorContrastLabels.d.ts +49 -0
- package/dist/esm/colors/ColorContrastLabels.js +84 -0
- package/dist/esm/colors/ColorContrastSvg.d.ts +50 -0
- package/dist/esm/colors/ColorContrastSvg.js +130 -0
- package/dist/esm/colors/ColorGradient.d.ts +54 -0
- package/dist/esm/colors/ColorGradient.js +515 -0
- package/dist/esm/colors/ColorInput.d.ts +57 -0
- package/dist/esm/colors/ColorInput.js +343 -0
- package/dist/esm/colors/ColorPalette.d.ts +60 -0
- package/dist/esm/colors/ColorPalette.js +343 -0
- package/dist/esm/colors/ColorPicker.d.ts +57 -0
- package/dist/esm/colors/ColorPicker.js +505 -0
- package/dist/esm/colors/FlatColorPicker.d.ts +139 -0
- package/dist/esm/colors/FlatColorPicker.js +539 -0
- package/dist/esm/colors/HexInput.d.ts +52 -0
- package/dist/esm/colors/HexInput.js +110 -0
- package/dist/esm/colors/Picker.d.ts +46 -0
- package/dist/esm/colors/Picker.js +110 -0
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorGradientProps.d.ts +68 -0
- package/dist/esm/colors/interfaces/ColorGradientProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPaletteProps.d.ts +71 -0
- package/dist/esm/colors/interfaces/ColorPaletteProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.d.ts +9 -0
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.d.ts +17 -0
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.d.ts +9 -0
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.d.ts +32 -0
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.d.ts +14 -0
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerProps.d.ts +176 -0
- package/dist/esm/colors/interfaces/ColorPickerProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerView.d.ts +10 -0
- package/dist/esm/colors/interfaces/ColorPickerView.js +1 -0
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/PickerPopupSettings.d.ts +14 -0
- package/dist/esm/colors/interfaces/PickerPopupSettings.js +1 -0
- package/dist/esm/colors/interfaces/PickerProps.d.ts +46 -0
- package/dist/esm/colors/interfaces/PickerProps.js +1 -0
- package/dist/esm/colors/models/hsva.d.ts +9 -0
- package/dist/esm/colors/models/hsva.js +1 -0
- package/dist/esm/colors/models/output-format.d.ts +4 -0
- package/dist/esm/colors/models/output-format.js +1 -0
- package/dist/esm/colors/models/palette-presets.d.ts +53 -0
- package/dist/esm/colors/models/palette-presets.js +54 -0
- package/dist/esm/colors/models/rgb.d.ts +8 -0
- package/dist/esm/colors/models/rgb.js +1 -0
- package/dist/esm/colors/models/rgba.d.ts +9 -0
- package/dist/esm/colors/models/rgba.js +1 -0
- package/dist/esm/colors/models/table-cell.d.ts +7 -0
- package/dist/esm/colors/models/table-cell.js +1 -0
- package/dist/esm/colors/models/tile-size.d.ts +11 -0
- package/dist/esm/colors/models/tile-size.js +1 -0
- package/dist/esm/colors/utils/color-cache.d.ts +43 -0
- package/dist/esm/colors/utils/color-cache.js +75 -0
- package/dist/esm/colors/utils/color-palette.service.d.ts +13 -0
- package/dist/esm/colors/utils/color-palette.service.js +67 -0
- package/dist/esm/colors/utils/color-parser.d.ts +71 -0
- package/dist/esm/colors/utils/color-parser.js +145 -0
- package/dist/esm/colors/utils/misc.d.ts +15 -0
- package/dist/esm/colors/utils/misc.js +20 -0
- package/dist/esm/colors/utils/svg-calc.d.ts +62 -0
- package/dist/esm/colors/utils/svg-calc.js +103 -0
- package/dist/esm/input/Input.d.ts +189 -0
- package/dist/esm/input/Input.js +426 -0
- package/dist/esm/input-separator/InputSeparator.d.ts +26 -0
- package/dist/esm/input-separator/InputSeparator.js +43 -0
- package/dist/esm/interfaces/Direction.d.ts +1 -0
- package/dist/esm/interfaces/Direction.js +1 -0
- package/dist/esm/interfaces/ToggleBaseProps.d.ts +8 -0
- package/dist/esm/interfaces/ToggleBaseProps.js +1 -0
- package/dist/esm/main.d.ts +39 -0
- package/dist/esm/main.js +37 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.d.ts +76 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.js +511 -0
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.d.ts +219 -0
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.js +2 -0
- package/dist/esm/maskedtextbox/masking.service.d.ts +41 -0
- package/dist/esm/maskedtextbox/masking.service.js +206 -0
- package/dist/esm/maskedtextbox/parsing/combinators.d.ts +9 -0
- package/dist/esm/maskedtextbox/parsing/combinators.js +24 -0
- package/dist/esm/maskedtextbox/parsing/parsers.d.ts +47 -0
- package/dist/esm/maskedtextbox/parsing/parsers.js +154 -0
- package/dist/esm/maskedtextbox/parsing/result.d.ts +23 -0
- package/dist/esm/maskedtextbox/parsing/result.js +39 -0
- package/dist/esm/maskedtextbox/parsing/stream.d.ts +22 -0
- package/dist/esm/maskedtextbox/parsing/stream.js +41 -0
- package/dist/esm/maskedtextbox/utils.d.ts +16 -0
- package/dist/esm/maskedtextbox/utils.js +56 -0
- package/dist/esm/messages/index.d.ts +160 -0
- package/dist/esm/messages/index.js +162 -0
- package/dist/esm/numerictextbox/NumericTextBox.d.ts +87 -0
- package/dist/esm/numerictextbox/NumericTextBox.js +684 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.d.ts +15 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +178 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
- package/dist/esm/numerictextbox/utils/index.d.ts +119 -0
- package/dist/esm/numerictextbox/utils/index.js +646 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/radiobutton/RadioButton.d.ts +55 -0
- package/dist/esm/radiobutton/RadioButton.js +195 -0
- package/dist/esm/radiobutton/RadioGroup.d.ts +57 -0
- package/dist/esm/radiobutton/RadioGroup.js +218 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +9 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +9 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.d.ts +81 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.js +1 -0
- package/dist/esm/range-slider/RangeSlider.d.ts +176 -0
- package/dist/esm/range-slider/RangeSlider.js +617 -0
- package/dist/esm/range-slider/range-raducer.d.ts +35 -0
- package/dist/esm/range-slider/range-raducer.js +157 -0
- package/dist/esm/slider/Slider.d.ts +140 -0
- package/dist/esm/slider/Slider.js +395 -0
- package/dist/esm/slider/SliderLabel.d.ts +65 -0
- package/dist/esm/slider/SliderLabel.js +121 -0
- package/dist/esm/switch/Switch.d.ts +182 -0
- package/dist/esm/switch/Switch.js +342 -0
- package/dist/esm/switch/util.d.ts +8 -0
- package/dist/esm/switch/util.js +46 -0
- package/dist/esm/textarea/TextArea.d.ts +81 -0
- package/dist/esm/textarea/TextArea.js +422 -0
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.d.ts +5 -0
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.d.ts +9 -0
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/esm/textarea/interfaces/TextAreaFlow.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.d.ts +5 -0
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaProps.d.ts +170 -0
- package/dist/esm/textarea/interfaces/TextAreaProps.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/esm/textarea/interfaces/TextAreaResize.js +1 -0
- package/dist/npm/checkbox/Checkbox.js +12 -12
- package/dist/npm/colors/ColorContrastLabels.js +5 -5
- package/dist/npm/colors/ColorContrastSvg.js +4 -4
- package/dist/npm/colors/ColorGradient.js +42 -42
- package/dist/npm/colors/ColorInput.js +2 -2
- package/dist/npm/colors/ColorPalette.js +12 -12
- package/dist/npm/colors/ColorPicker.js +15 -15
- package/dist/npm/colors/FlatColorPicker.js +10 -10
- package/dist/npm/colors/HexInput.js +4 -4
- package/dist/npm/colors/Picker.js +2 -2
- package/dist/npm/colors/utils/color-palette.service.js +6 -6
- package/dist/npm/colors/utils/color-parser.js +48 -37
- package/dist/npm/colors/utils/misc.js +5 -3
- package/dist/npm/colors/utils/svg-calc.js +12 -8
- package/dist/npm/input/Input.js +4 -4
- package/dist/npm/input-separator/InputSeparator.js +1 -1
- package/dist/npm/main.js +7 -2
- package/dist/npm/maskedtextbox/MaskedTextBox.js +8 -8
- package/dist/npm/maskedtextbox/masking.service.js +19 -19
- package/dist/npm/maskedtextbox/parsing/combinators.js +4 -2
- package/dist/npm/maskedtextbox/parsing/parsers.js +14 -7
- package/dist/npm/maskedtextbox/parsing/result.js +1 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +22 -22
- package/dist/npm/numerictextbox/utils/index.js +145 -116
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.js +8 -8
- package/dist/npm/radiobutton/RadioGroup.js +5 -5
- package/dist/npm/range-slider/RangeSlider.js +17 -17
- package/dist/npm/range-slider/range-raducer.js +4 -2
- package/dist/npm/slider/Slider.js +7 -7
- package/dist/npm/slider/SliderLabel.js +3 -3
- package/dist/npm/switch/Switch.js +13 -13
- package/dist/npm/switch/util.js +2 -1
- package/dist/npm/textarea/TextArea.js +7 -7
- package/package.json +11 -11
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
2
|
+
import { TextAreaBlurEvent } from './TextAreaBlurEvent';
|
|
3
|
+
import { TextAreaChangeEvent } from './TextAreaChangeEvent';
|
|
4
|
+
import { TextAreaFlow } from './TextAreaFlow';
|
|
5
|
+
import { TextAreaFocusEvent } from './TextAreaFocusEvent';
|
|
6
|
+
import { TextAreaResize } from './TextAreaResize';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the props of the [Kendo UI for Vue TextArea component]({% slug overview_textarea %}).
|
|
9
|
+
*/
|
|
10
|
+
export interface TextAreaProps extends FormComponentProps {
|
|
11
|
+
/**
|
|
12
|
+
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
13
|
+
* For example these elements could contain error or hint message.
|
|
14
|
+
*/
|
|
15
|
+
ariaDescribedBy?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifies the element(s) which will label the component.
|
|
18
|
+
*/
|
|
19
|
+
ariaLabelledBy?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies if the textarea element will resize its height automatically ([see example]({% slug sizing_textarea %})).
|
|
22
|
+
* Defaults to `false`.
|
|
23
|
+
*/
|
|
24
|
+
autoSize?: boolean;
|
|
25
|
+
modelValue?: string | string[] | number;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies a list of CSS classes that will be added to the TextArea.
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The default value of the TextArea ([see example]({% slug default_textarea %})).
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: string | string[] | number;
|
|
34
|
+
/**
|
|
35
|
+
* Represents the `dir` HTML attribute.
|
|
36
|
+
*/
|
|
37
|
+
dir?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies if the TextArea is disabled ([see example]({% slug disabled_textarea %})).
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the read-only state of the TextArea.
|
|
44
|
+
*/
|
|
45
|
+
readOnly?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies an exact height size for the TextArea to take ([see example]({% slug sizing_textarea %})).
|
|
48
|
+
*/
|
|
49
|
+
rows?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the `id` of the TextArea.
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the `name` property of the `textarea` DOM element.
|
|
56
|
+
*
|
|
57
|
+
* This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
|
|
58
|
+
*/
|
|
59
|
+
name?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The hint that is displayed when the TextArea is empty.
|
|
62
|
+
*/
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the `tabIndex` property of the TextArea.
|
|
66
|
+
* Defaults to `0`.
|
|
67
|
+
*/
|
|
68
|
+
tabIndex?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Configures the `size` of the NumericTextBox.
|
|
71
|
+
*
|
|
72
|
+
* The available options are:
|
|
73
|
+
* - small
|
|
74
|
+
* - medium
|
|
75
|
+
* - large
|
|
76
|
+
* - null—Does not set a size `class`.
|
|
77
|
+
*
|
|
78
|
+
* @default `medium`
|
|
79
|
+
*/
|
|
80
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
81
|
+
/**
|
|
82
|
+
* Configures the `roundness` of the NumericTextBox.
|
|
83
|
+
*
|
|
84
|
+
* The available options are:
|
|
85
|
+
* - small
|
|
86
|
+
* - medium
|
|
87
|
+
* - large
|
|
88
|
+
* - full
|
|
89
|
+
* - null—Does not set a rounded `class`.
|
|
90
|
+
*
|
|
91
|
+
* @default `medium`
|
|
92
|
+
*/
|
|
93
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
94
|
+
/**
|
|
95
|
+
* Configures the `fillMode` of the NumericTextBox.
|
|
96
|
+
*
|
|
97
|
+
* The available options are:
|
|
98
|
+
* - solid
|
|
99
|
+
* - outline
|
|
100
|
+
* - flat
|
|
101
|
+
* - null—Does not set a fillMode `class`.
|
|
102
|
+
*
|
|
103
|
+
* @default `solid`
|
|
104
|
+
*/
|
|
105
|
+
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
106
|
+
/**
|
|
107
|
+
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
108
|
+
*/
|
|
109
|
+
value?: string | string[] | number;
|
|
110
|
+
/**
|
|
111
|
+
* If set to `false`, no visual representation of the invalid state of the component will be applied.
|
|
112
|
+
*
|
|
113
|
+
* This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
|
|
114
|
+
*
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
validityStyles?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Defines a string prop that controls the input icon.
|
|
120
|
+
*/
|
|
121
|
+
iconName?: String;
|
|
122
|
+
/**
|
|
123
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
124
|
+
*/
|
|
125
|
+
inputPrefix?: Boolean | String | Object | Function;
|
|
126
|
+
/**
|
|
127
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
128
|
+
*/
|
|
129
|
+
inputSuffix?: Boolean | String | Object | Function;
|
|
130
|
+
/**
|
|
131
|
+
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
132
|
+
*/
|
|
133
|
+
showValidationIcon?: Boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
136
|
+
*/
|
|
137
|
+
showLoadingIcon?: Boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
140
|
+
*/
|
|
141
|
+
showClearButton?: Boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Defines additional class to the wrapper element.
|
|
144
|
+
*/
|
|
145
|
+
wrapperClass?: String;
|
|
146
|
+
/**
|
|
147
|
+
* Defines the flow direction of the TextArea sections.
|
|
148
|
+
*/
|
|
149
|
+
flow?: TextAreaFlow | String;
|
|
150
|
+
/**
|
|
151
|
+
* Defines the way the TextArea will resize.
|
|
152
|
+
*/
|
|
153
|
+
resizable?: TextAreaResize | String;
|
|
154
|
+
/**
|
|
155
|
+
* Defines additional class to the input element.
|
|
156
|
+
*/
|
|
157
|
+
inputClass?: String;
|
|
158
|
+
/**
|
|
159
|
+
* The event handler that will be fired when the changes the selected value.
|
|
160
|
+
*/
|
|
161
|
+
onChange?: (event: TextAreaChangeEvent) => void;
|
|
162
|
+
/**
|
|
163
|
+
* The event handler that will be fired when TextArea is focused.
|
|
164
|
+
*/
|
|
165
|
+
onFocus?: (event: TextAreaFocusEvent) => void;
|
|
166
|
+
/**
|
|
167
|
+
* The event handler that will be fired when TextArea is blurred.
|
|
168
|
+
*/
|
|
169
|
+
onBlur?: (event: TextAreaBlurEvent) => void;
|
|
170
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the resize direction of the TextArea sections.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* `vertical`(Default) —TextArea can be resized only vertically.
|
|
6
|
+
* `horizontal`—TextArea can be resized only horizontally.
|
|
7
|
+
* `both`—TextArea can be resized both vertically and horizontally.
|
|
8
|
+
* `nont`—TextArea can not be manually resized.
|
|
9
|
+
*/
|
|
10
|
+
export declare type TextAreaResize = 'both' | 'horizontal' | 'vertical';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -109,8 +109,8 @@ var CheckboxVue2 = {
|
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
created: function created() {
|
|
112
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
113
|
-
this.calculatedId = kendo_vue_common_1.guid();
|
|
112
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
113
|
+
this.calculatedId = (0, kendo_vue_common_1.guid)();
|
|
114
114
|
|
|
115
115
|
if (this.$props.defaultChecked !== undefined) {
|
|
116
116
|
this.currentChecked = this.$props.defaultChecked;
|
|
@@ -158,7 +158,7 @@ var CheckboxVue2 = {
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
mounted: function mounted() {
|
|
161
|
-
this.input = kendo_vue_common_1.getRef(this, 'input');
|
|
161
|
+
this.input = (0, kendo_vue_common_1.getRef)(this, 'input');
|
|
162
162
|
|
|
163
163
|
if (!this.currentDir && window && this.$el) {
|
|
164
164
|
// Note: getComputedStyle forces reflow
|
|
@@ -173,7 +173,7 @@ var CheckboxVue2 = {
|
|
|
173
173
|
},
|
|
174
174
|
updated: function updated() {
|
|
175
175
|
if (!this.input) {
|
|
176
|
-
this.input = kendo_vue_common_1.getRef(this, 'input');
|
|
176
|
+
this.input = (0, kendo_vue_common_1.getRef)(this, 'input');
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
this.setValidity();
|
|
@@ -208,17 +208,17 @@ var CheckboxVue2 = {
|
|
|
208
208
|
validityStyles = _b.validityStyles,
|
|
209
209
|
size = _b.size,
|
|
210
210
|
rounded = _b.rounded;
|
|
211
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
211
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
212
212
|
var renderedLabel = label;
|
|
213
|
-
this.localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
213
|
+
this.localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
214
214
|
this.defaultValidationMessage = this.localizeMessage(messages_1.checkboxValidation);
|
|
215
215
|
this.optionalMessage = this.localizeMessage(messages_1.checkboxOptionalText);
|
|
216
|
-
var checkboxClasses = kendo_vue_common_1.classNames({
|
|
216
|
+
var checkboxClasses = (0, kendo_vue_common_1.classNames)({
|
|
217
217
|
'k-disabled': disabled
|
|
218
218
|
});
|
|
219
|
-
var inputClasses = kendo_vue_common_1.classNames((_a = {
|
|
219
|
+
var inputClasses = (0, kendo_vue_common_1.classNames)((_a = {
|
|
220
220
|
'k-checkbox': true
|
|
221
|
-
}, _a["k-checkbox-"
|
|
221
|
+
}, _a["k-checkbox-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size])] = size, _a["k-rounded-".concat(kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded])] = rounded, _a['k-indeterminate'] = this.indeterminateProp, _a['k-invalid k-invalid'] = !(this.isValid || validityStyles !== undefined || validityStyles === true), _a));
|
|
222
222
|
|
|
223
223
|
var checkboxInput = function checkboxInput() {
|
|
224
224
|
return h("input", {
|
|
@@ -230,7 +230,7 @@ var CheckboxVue2 = {
|
|
|
230
230
|
"aria-labelledby": ariaLabelledBy,
|
|
231
231
|
"aria-describedby": ariaDescribedBy,
|
|
232
232
|
disabled: disabled,
|
|
233
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
233
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
234
234
|
role: 'checkbox',
|
|
235
235
|
required: required !== undefined ? required : false,
|
|
236
236
|
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
@@ -239,7 +239,7 @@ var CheckboxVue2 = {
|
|
|
239
239
|
"class": inputClasses,
|
|
240
240
|
name: name,
|
|
241
241
|
id: id || this.calculatedId,
|
|
242
|
-
ref: kendo_vue_common_1.setRef(this, 'input'),
|
|
242
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'input'),
|
|
243
243
|
"aria-labelledby": ariaLabelledBy,
|
|
244
244
|
"aria-describedby": ariaDescribedBy,
|
|
245
245
|
checked: this.v3 ? Boolean(this.checkedProp) : null,
|
|
@@ -247,7 +247,7 @@ var CheckboxVue2 = {
|
|
|
247
247
|
"checked": Boolean(this.checkedProp)
|
|
248
248
|
},
|
|
249
249
|
disabled: disabled,
|
|
250
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
250
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
251
251
|
role: 'checkbox',
|
|
252
252
|
required: required !== undefined ? required : false,
|
|
253
253
|
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
@@ -42,18 +42,18 @@ var ColorContrastLabelsVue2 = {
|
|
|
42
42
|
// @ts-ignore
|
|
43
43
|
render: function render(createElement) {
|
|
44
44
|
var h = gh || createElement;
|
|
45
|
-
var ls = kendo_vue_intl_1.provideLocalizationService(this);
|
|
45
|
+
var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
46
46
|
var contrastRatioMessage = ls.toLanguageString(messages_1.colorGradientContrastRatio, messages_1.messages[messages_1.colorGradientContrastRatio]);
|
|
47
47
|
var AALevelMessage = ls.toLanguageString(messages_1.colorGradientAALevel, messages_1.messages[messages_1.colorGradientAALevel]);
|
|
48
48
|
var AAALevelMessage = ls.toLanguageString(messages_1.colorGradientAAALevel, messages_1.messages[messages_1.colorGradientAAALevel]);
|
|
49
49
|
var passMessage = ls.toLanguageString(messages_1.colorGradientPass, messages_1.messages[messages_1.colorGradientPass]);
|
|
50
50
|
var failMessage = ls.toLanguageString(messages_1.colorGradientFail, messages_1.messages[messages_1.colorGradientFail]);
|
|
51
|
-
var contrast = color_parser_1.getContrastFromTwoRGBAs(this.$props.rgba, this.$props.bgColor);
|
|
51
|
+
var contrast = (0, color_parser_1.getContrastFromTwoRGBAs)(this.$props.rgba, this.$props.bgColor);
|
|
52
52
|
var requiredAAContrast = 4.5.toFixed(1);
|
|
53
53
|
var requiredAAAContrast = 7.0.toFixed(1);
|
|
54
|
-
var contrastText = contrastRatioMessage
|
|
55
|
-
var aaText = AALevelMessage
|
|
56
|
-
var aaaText = AAALevelMessage
|
|
54
|
+
var contrastText = "".concat(contrastRatioMessage, ": ").concat(contrast.toFixed(2));
|
|
55
|
+
var aaText = "".concat(AALevelMessage, ": ").concat(requiredAAContrast);
|
|
56
|
+
var aaaText = "".concat(AAALevelMessage, ": ").concat(requiredAAAContrast);
|
|
57
57
|
var aaPass = contrast >= 4.5;
|
|
58
58
|
var aaaPass = contrast >= 7;
|
|
59
59
|
var success = h("span", {
|
|
@@ -50,8 +50,8 @@ var ColorContrastSvgVue2 = {
|
|
|
50
50
|
|
|
51
51
|
var d = points.reduce(function (acc, point, i, a) {
|
|
52
52
|
return i === 0 ? // if first point
|
|
53
|
-
"M "
|
|
54
|
-
acc
|
|
53
|
+
"M ".concat(point[0], ",").concat(point[1]) : // else
|
|
54
|
+
"".concat(acc, " ").concat(command(point, i, a));
|
|
55
55
|
}, '');
|
|
56
56
|
return h("path", {
|
|
57
57
|
d: d,
|
|
@@ -75,7 +75,7 @@ var ColorContrastSvgVue2 = {
|
|
|
75
75
|
s: saturation / gradientRectMetrics.width,
|
|
76
76
|
v: 1 - mid / gradientRectMetrics.height
|
|
77
77
|
});
|
|
78
|
-
var currentContrast = color_parser_1.getContrastFromTwoRGBAs(color_parser_1.getRGBA(color_parser_1.getColorFromHSV(hsva)), color_parser_1.getRGBA(_this.$props.backgroundColor || ''));
|
|
78
|
+
var currentContrast = (0, color_parser_1.getContrastFromTwoRGBAs)((0, color_parser_1.getRGBA)((0, color_parser_1.getColorFromHSV)(hsva)), (0, color_parser_1.getRGBA)(_this.$props.backgroundColor || ''));
|
|
79
79
|
|
|
80
80
|
if (low + 0.5 > high) {
|
|
81
81
|
if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
|
|
@@ -114,7 +114,7 @@ var ColorContrastSvgVue2 = {
|
|
|
114
114
|
return points;
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
-
var bezierCommandCalc = svg_calc_1.bezierCommand(svg_calc_1.controlPoint(svg_calc_1.line));
|
|
117
|
+
var bezierCommandCalc = (0, svg_calc_1.bezierCommand)((0, svg_calc_1.controlPoint)(svg_calc_1.line));
|
|
118
118
|
return h("svg", {
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
120
120
|
attrs: this.v3 ? undefined : {
|
|
@@ -82,17 +82,17 @@ var ColorGradientVue2 = {
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
created: function created() {
|
|
85
|
-
kendo_vue_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
86
|
-
this.guid = kendo_vue_common_1.guid();
|
|
85
|
+
(0, kendo_vue_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
86
|
+
this.guid = (0, kendo_vue_common_1.guid)();
|
|
87
87
|
},
|
|
88
88
|
computed: {
|
|
89
89
|
valueSet: function valueSet() {
|
|
90
90
|
return this.value || this.modelValue || this.modelRgbaValue;
|
|
91
91
|
},
|
|
92
92
|
computedValue: function computedValue() {
|
|
93
|
-
var value = this.valueSet || this.currentValue || this.defaultValue || color_parser_1.parseColor(DEFAULT_SELECTED_COLOR, FORMAT);
|
|
93
|
+
var value = this.valueSet || this.currentValue || this.defaultValue || (0, color_parser_1.parseColor)(DEFAULT_SELECTED_COLOR, FORMAT);
|
|
94
94
|
|
|
95
|
-
if (!misc_1.isPresent(color_parser_1.parseColor(value, 'hex', this.opacity))) {
|
|
95
|
+
if (!(0, misc_1.isPresent)((0, color_parser_1.parseColor)(value, 'hex', this.opacity))) {
|
|
96
96
|
// Validate/sanitize the input.
|
|
97
97
|
value = DEFAULT_SELECTED_COLOR;
|
|
98
98
|
}
|
|
@@ -100,16 +100,16 @@ var ColorGradientVue2 = {
|
|
|
100
100
|
return value;
|
|
101
101
|
},
|
|
102
102
|
hsva: function hsva() {
|
|
103
|
-
return this.valueSet ? color_parser_1.getHSV(this.computedValue) : this.currentHsva || color_parser_1.getHSV(this.computedValue);
|
|
103
|
+
return this.valueSet ? (0, color_parser_1.getHSV)(this.computedValue) : this.currentHsva || (0, color_parser_1.getHSV)(this.computedValue);
|
|
104
104
|
},
|
|
105
105
|
rgba: function rgba() {
|
|
106
|
-
return this.valueSet ? color_parser_1.getRGBA(this.computedValue) : this.currentRgba;
|
|
106
|
+
return this.valueSet ? (0, color_parser_1.getRGBA)(this.computedValue) : this.currentRgba;
|
|
107
107
|
},
|
|
108
108
|
hex: function hex() {
|
|
109
|
-
return this.valueSet ? color_parser_1.parseColor(this.computedValue, 'hex', this.opacity) : this.currentHex;
|
|
109
|
+
return this.valueSet ? (0, color_parser_1.parseColor)(this.computedValue, 'hex', this.opacity) : this.currentHex;
|
|
110
110
|
},
|
|
111
111
|
computedBgColor: function computedBgColor() {
|
|
112
|
-
return this.currentBgColor || color_parser_1.getColorFromHue(this.hsva.h);
|
|
112
|
+
return this.currentBgColor || (0, color_parser_1.getColorFromHue)(this.hsva.h);
|
|
113
113
|
},
|
|
114
114
|
computedTabIndex: function computedTabIndex() {
|
|
115
115
|
return this.innerTabIndex !== undefined ? this.innerTabIndex : this.focused ? 0 : -1;
|
|
@@ -141,7 +141,7 @@ var ColorGradientVue2 = {
|
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
destroyed: function destroyed() {
|
|
144
|
-
color_cache_1.removeCachedColor(this.guid);
|
|
144
|
+
(0, color_cache_1.removeCachedColor)(this.guid);
|
|
145
145
|
},
|
|
146
146
|
updated: function updated() {
|
|
147
147
|
this.setAlphaSliderBackground(this.computedBgColor);
|
|
@@ -160,10 +160,10 @@ var ColorGradientVue2 = {
|
|
|
160
160
|
var _this = this;
|
|
161
161
|
|
|
162
162
|
var h = gh || createElement;
|
|
163
|
-
var className = kendo_vue_common_1.classNames('k-colorgradient', {
|
|
163
|
+
var className = (0, kendo_vue_common_1.classNames)('k-colorgradient', {
|
|
164
164
|
'k-disabled': this.$props.disabled
|
|
165
165
|
});
|
|
166
|
-
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
166
|
+
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
167
167
|
var dragHandle = localizationService.toLanguageString(messages_1.colorGradientDragHandle, messages_1.messages[messages_1.colorGradientDragHandle]);
|
|
168
168
|
|
|
169
169
|
var renderRectangleDragHandle = function renderRectangleDragHandle() {
|
|
@@ -173,8 +173,8 @@ var ColorGradientVue2 = {
|
|
|
173
173
|
var gradientRectMetrics = this.getGradientRectMetrics();
|
|
174
174
|
var top_1 = (1 - this.hsva.v) * gradientRectMetrics.height;
|
|
175
175
|
var left = this.hsva.s * gradientRectMetrics.width;
|
|
176
|
-
style.top = top_1
|
|
177
|
-
style.left = left
|
|
176
|
+
style.top = "".concat(top_1, "px");
|
|
177
|
+
style.left = "".concat(left, "px");
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
return h("div", {
|
|
@@ -182,21 +182,21 @@ var ColorGradientVue2 = {
|
|
|
182
182
|
role: "slider",
|
|
183
183
|
attrs: this.v3 ? undefined : {
|
|
184
184
|
role: "slider",
|
|
185
|
-
"aria-label": dragHandle +
|
|
185
|
+
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
186
186
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
187
|
-
"aria-valuetext": "\n saturation: "
|
|
187
|
+
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
188
188
|
tabindex: this.computedTabIndex
|
|
189
189
|
},
|
|
190
|
-
"aria-label": dragHandle +
|
|
190
|
+
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
191
191
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
192
|
-
"aria-valuetext": "\n saturation: "
|
|
192
|
+
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
193
193
|
tabindex: this.computedTabIndex,
|
|
194
194
|
onKeydown: this.dragKeyDown,
|
|
195
195
|
on: this.v3 ? undefined : {
|
|
196
196
|
"keydown": this.dragKeyDown
|
|
197
197
|
},
|
|
198
198
|
style: style,
|
|
199
|
-
ref: kendo_vue_common_1.setRef(this, 'draghandle')
|
|
199
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'draghandle')
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
|
|
@@ -206,14 +206,14 @@ var ColorGradientVue2 = {
|
|
|
206
206
|
id: this.$props.id,
|
|
207
207
|
role: this.$props.tabIndex !== -1 ? 'textbox' : undefined,
|
|
208
208
|
"aria-disabled": this.$props.disabled,
|
|
209
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled),
|
|
209
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled),
|
|
210
210
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
211
211
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
212
212
|
},
|
|
213
213
|
"class": className,
|
|
214
214
|
role: this.$props.tabIndex !== -1 ? 'textbox' : undefined,
|
|
215
215
|
"aria-disabled": this.$props.disabled,
|
|
216
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled),
|
|
216
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled),
|
|
217
217
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
218
218
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
219
219
|
onFocus: this.onFocus,
|
|
@@ -307,7 +307,7 @@ var ColorGradientVue2 = {
|
|
|
307
307
|
tabIndex: this.computedTabIndex,
|
|
308
308
|
attrs: this.v3 ? undefined : {
|
|
309
309
|
tabIndex: this.computedTabIndex,
|
|
310
|
-
value: misc_1.isPresent(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
310
|
+
value: (0, misc_1.isPresent)(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
311
311
|
buttons: false,
|
|
312
312
|
vertical: true,
|
|
313
313
|
min: 0,
|
|
@@ -315,7 +315,7 @@ var ColorGradientVue2 = {
|
|
|
315
315
|
step: 1,
|
|
316
316
|
disabled: this.$props.disabled
|
|
317
317
|
},
|
|
318
|
-
value: misc_1.isPresent(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
318
|
+
value: (0, misc_1.isPresent)(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
319
319
|
buttons: false,
|
|
320
320
|
vertical: true,
|
|
321
321
|
min: 0,
|
|
@@ -351,9 +351,9 @@ var ColorGradientVue2 = {
|
|
|
351
351
|
disabled: this.$props.disabled,
|
|
352
352
|
ref: 'colorInput'
|
|
353
353
|
}), this.backgroundColor && h(ColorContrastLabels_1.ColorContrastLabels, {
|
|
354
|
-
bgColor: color_parser_1.getRGBA(this.backgroundColor),
|
|
354
|
+
bgColor: (0, color_parser_1.getRGBA)(this.backgroundColor),
|
|
355
355
|
attrs: this.v3 ? undefined : {
|
|
356
|
-
bgColor: color_parser_1.getRGBA(this.backgroundColor),
|
|
356
|
+
bgColor: (0, color_parser_1.getRGBA)(this.backgroundColor),
|
|
357
357
|
rgba: this.rgba
|
|
358
358
|
},
|
|
359
359
|
rgba: this.rgba
|
|
@@ -364,26 +364,26 @@ var ColorGradientVue2 = {
|
|
|
364
364
|
var element = this.$el;
|
|
365
365
|
|
|
366
366
|
if (this.innerTabIndex === undefined) {
|
|
367
|
-
this.focused = kendo_vue_common_1.focusContainer(e, element);
|
|
367
|
+
this.focused = (0, kendo_vue_common_1.focusContainer)(e, element);
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
this.$emit('keydown', e);
|
|
371
371
|
},
|
|
372
372
|
onHexChange: function onHexChange(hex, value, event) {
|
|
373
|
-
var rgba = color_parser_1.getRGBA(value);
|
|
374
|
-
var hsva = color_parser_1.getHSV(value);
|
|
373
|
+
var rgba = (0, color_parser_1.getRGBA)(value);
|
|
374
|
+
var hsva = (0, color_parser_1.getHSV)(value);
|
|
375
375
|
this.currentHsva = hsva;
|
|
376
|
-
this.currentBgColor = color_parser_1.getColorFromHue(hsva.h);
|
|
376
|
+
this.currentBgColor = (0, color_parser_1.getColorFromHue)(hsva.h);
|
|
377
377
|
this.currentRgba = rgba;
|
|
378
378
|
this.currentHex = hex;
|
|
379
379
|
this.dispatchChangeEvent(value, event.event, hex, value);
|
|
380
380
|
},
|
|
381
381
|
onRgbaChange: function onRgbaChange(rgba, event) {
|
|
382
|
-
var value = color_parser_1.getColorFromRGBA(rgba);
|
|
383
|
-
var hex = color_parser_1.parseColor(value, 'hex', this.opacity);
|
|
384
|
-
var hsva = color_parser_1.getHSV(value);
|
|
382
|
+
var value = (0, color_parser_1.getColorFromRGBA)(rgba);
|
|
383
|
+
var hex = (0, color_parser_1.parseColor)(value, 'hex', this.opacity);
|
|
384
|
+
var hsva = (0, color_parser_1.getHSV)(value);
|
|
385
385
|
this.currentHsva = hsva;
|
|
386
|
-
this.currentBgColor = color_parser_1.getColorFromHue(hsva.h);
|
|
386
|
+
this.currentBgColor = (0, color_parser_1.getColorFromHue)(hsva.h);
|
|
387
387
|
this.currentRgba = rgba;
|
|
388
388
|
this.currentHex = hex;
|
|
389
389
|
this.dispatchChangeEvent(value, event.event, hex, value);
|
|
@@ -406,7 +406,7 @@ var ColorGradientVue2 = {
|
|
|
406
406
|
this.gradientWrapper.classList.remove('k-dragging');
|
|
407
407
|
},
|
|
408
408
|
onGradientWrapperClick: function onGradientWrapperClick(event) {
|
|
409
|
-
this.firstFocusable = kendo_vue_common_1.getRef(this, 'draghandle');
|
|
409
|
+
this.firstFocusable = (0, kendo_vue_common_1.getRef)(this, 'draghandle');
|
|
410
410
|
this.firstFocusable.focus();
|
|
411
411
|
this.changePosition(event);
|
|
412
412
|
},
|
|
@@ -457,8 +457,8 @@ var ColorGradientVue2 = {
|
|
|
457
457
|
var gradientRectMetrics = this.getGradientRectMetrics();
|
|
458
458
|
var deltaX = event.clientX - gradientRectMetrics.left;
|
|
459
459
|
var deltaY = event.clientY - gradientRectMetrics.top;
|
|
460
|
-
var left = misc_1.fitIntoBounds(deltaX, 0, gradientRectMetrics.width);
|
|
461
|
-
var top = misc_1.fitIntoBounds(deltaY, 0, gradientRectMetrics.height);
|
|
460
|
+
var left = (0, misc_1.fitIntoBounds)(deltaX, 0, gradientRectMetrics.width);
|
|
461
|
+
var top = (0, misc_1.fitIntoBounds)(deltaY, 0, gradientRectMetrics.height);
|
|
462
462
|
var hsva = Object.assign({}, this.hsva, {
|
|
463
463
|
s: left / gradientRectMetrics.width,
|
|
464
464
|
v: 1 - top / gradientRectMetrics.height
|
|
@@ -466,12 +466,12 @@ var ColorGradientVue2 = {
|
|
|
466
466
|
this.handleHsvaChange(hsva, event, event.event);
|
|
467
467
|
},
|
|
468
468
|
handleHsvaChange: function handleHsvaChange(hsva, event) {
|
|
469
|
-
var value = color_parser_1.getColorFromHSV(hsva);
|
|
470
|
-
var hex = color_parser_1.parseColor(value, 'hex', this.opacity);
|
|
471
|
-
var rgba = color_parser_1.parseColor(value, 'rgba');
|
|
469
|
+
var value = (0, color_parser_1.getColorFromHSV)(hsva);
|
|
470
|
+
var hex = (0, color_parser_1.parseColor)(value, 'hex', this.opacity);
|
|
471
|
+
var rgba = (0, color_parser_1.parseColor)(value, 'rgba');
|
|
472
472
|
this.currentHsva = hsva;
|
|
473
|
-
this.currentBgColor = color_parser_1.getColorFromHue(hsva.h);
|
|
474
|
-
this.currentRgba = color_parser_1.getRGBA(value);
|
|
473
|
+
this.currentBgColor = (0, color_parser_1.getColorFromHue)(hsva.h);
|
|
474
|
+
this.currentRgba = (0, color_parser_1.getRGBA)(value);
|
|
475
475
|
this.currentHex = hex;
|
|
476
476
|
this.dispatchChangeEvent(value, event, hex, rgba);
|
|
477
477
|
},
|
|
@@ -501,7 +501,7 @@ var ColorGradientVue2 = {
|
|
|
501
501
|
},
|
|
502
502
|
setAlphaSliderBackground: function setAlphaSliderBackground(backgroundColor) {
|
|
503
503
|
if (this.$props.opacity && this.alphaSlider && this.alphaSlider.sliderTrack) {
|
|
504
|
-
this.alphaSlider.sliderTrack.style.background = "linear-gradient(to top, transparent, "
|
|
504
|
+
this.alphaSlider.sliderTrack.style.background = "linear-gradient(to top, transparent, ".concat(backgroundColor, ")");
|
|
505
505
|
}
|
|
506
506
|
},
|
|
507
507
|
getGradientRectMetrics: function getGradientRectMetrics() {
|
|
@@ -522,7 +522,7 @@ var ColorGradientVue2 = {
|
|
|
522
522
|
|
|
523
523
|
this.focused = true;
|
|
524
524
|
setTimeout(function () {
|
|
525
|
-
kendo_vue_common_1.focusFirstFocusableChild(_this.$el);
|
|
525
|
+
(0, kendo_vue_common_1.focusFirstFocusableChild)(_this.$el);
|
|
526
526
|
}, 1);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
@@ -75,7 +75,7 @@ var ColorInputVue2 = {
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
created: function created() {
|
|
78
|
-
this.hexInputId = kendo_vue_common_1.guid();
|
|
78
|
+
this.hexInputId = (0, kendo_vue_common_1.guid)();
|
|
79
79
|
},
|
|
80
80
|
data: function data() {
|
|
81
81
|
return {
|
|
@@ -98,7 +98,7 @@ var ColorInputVue2 = {
|
|
|
98
98
|
// @ts-ignore
|
|
99
99
|
render: function render(createElement) {
|
|
100
100
|
var h = gh || createElement;
|
|
101
|
-
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
101
|
+
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
102
102
|
var hexMessage = localizationService.toLanguageString(messages_1.colorGradientHex, messages_1.messages[messages_1.colorGradientHex]);
|
|
103
103
|
var buttonMessage = localizationService.toLanguageString(messages_1.colorGradientInputColorButton, messages_1.messages[messages_1.colorGradientInputColorButton]);
|
|
104
104
|
var rMessage = localizationService.toLanguageString(messages_1.colorGradientR, messages_1.messages[messages_1.colorGradientR]);
|
|
@@ -78,14 +78,14 @@ var ColorPaletteVue2 = {
|
|
|
78
78
|
ariaDescribedBy: String
|
|
79
79
|
},
|
|
80
80
|
created: function created() {
|
|
81
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
82
|
-
this.guid = kendo_vue_common_1.guid();
|
|
81
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
82
|
+
this.guid = (0, kendo_vue_common_1.guid)();
|
|
83
83
|
},
|
|
84
84
|
mounted: function mounted() {
|
|
85
|
-
this.wrapper = kendo_vue_common_1.getRef(this, 'wrapper');
|
|
85
|
+
this.wrapper = (0, kendo_vue_common_1.getRef)(this, 'wrapper');
|
|
86
86
|
},
|
|
87
87
|
updated: function updated() {
|
|
88
|
-
this.wrapper = kendo_vue_common_1.getRef(this, 'wrapper');
|
|
88
|
+
this.wrapper = (0, kendo_vue_common_1.getRef)(this, 'wrapper');
|
|
89
89
|
},
|
|
90
90
|
computed: {
|
|
91
91
|
focusedColorCooridanates: function focusedColorCooridanates() {
|
|
@@ -119,7 +119,7 @@ var ColorPaletteVue2 = {
|
|
|
119
119
|
svc.setColorMatrix(paletteInfo.colors, paletteInfo.columns);
|
|
120
120
|
var selectedCellCoords = svc.getCellCoordsFor(this.selectedColor);
|
|
121
121
|
var focusedCellCoords = svc.getCellCoordsFor(this.focusedColor);
|
|
122
|
-
var className = kendo_vue_common_1.classNames('k-colorpalette', {
|
|
122
|
+
var className = (0, kendo_vue_common_1.classNames)('k-colorpalette', {
|
|
123
123
|
'k-disabled': this.$props.disabled
|
|
124
124
|
});
|
|
125
125
|
|
|
@@ -138,7 +138,7 @@ var ColorPaletteVue2 = {
|
|
|
138
138
|
var _this = this;
|
|
139
139
|
|
|
140
140
|
var isSelected = rowIsSelected && selectedColumn === i;
|
|
141
|
-
var tdClassName = kendo_vue_common_1.classNames('k-colorpalette-tile', {
|
|
141
|
+
var tdClassName = (0, kendo_vue_common_1.classNames)('k-colorpalette-tile', {
|
|
142
142
|
'k-selected': isSelected,
|
|
143
143
|
'k-focus': rowIsFocused && focusedColumn === i
|
|
144
144
|
});
|
|
@@ -201,7 +201,7 @@ var ColorPaletteVue2 = {
|
|
|
201
201
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
202
202
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
203
203
|
role: "grid",
|
|
204
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled)
|
|
204
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled)
|
|
205
205
|
},
|
|
206
206
|
"class": className,
|
|
207
207
|
onFocusin: this.onFocus,
|
|
@@ -217,8 +217,8 @@ var ColorPaletteVue2 = {
|
|
|
217
217
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
218
218
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
219
219
|
role: "grid",
|
|
220
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled),
|
|
221
|
-
ref: kendo_vue_common_1.setRef(this, 'wrapper')
|
|
220
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled),
|
|
221
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'wrapper')
|
|
222
222
|
}, [h("div", {
|
|
223
223
|
"class": "k-colorpalette-table-wrap"
|
|
224
224
|
}, [h("table", {
|
|
@@ -311,7 +311,7 @@ var ColorPaletteVue2 = {
|
|
|
311
311
|
this.dispatchChangeEvent(this.focusedColor, event);
|
|
312
312
|
},
|
|
313
313
|
dispatchChangeEvent: function dispatchChangeEvent(value, event) {
|
|
314
|
-
var rgbaValue = color_parser_1.parseColor(value, 'rgba');
|
|
314
|
+
var rgbaValue = (0, color_parser_1.parseColor)(value, 'rgba');
|
|
315
315
|
this.$emit('changemodel', value);
|
|
316
316
|
this.$emit('update:modelValue', value);
|
|
317
317
|
this.$emit('update:modelRgbaValue', rgbaValue);
|
|
@@ -326,7 +326,7 @@ var ColorPaletteVue2 = {
|
|
|
326
326
|
if (typeof this.$props.palette === 'string') {
|
|
327
327
|
var preset = palette_presets_1.PALETTEPRESETS[this.$props.palette];
|
|
328
328
|
|
|
329
|
-
if (misc_1.isPresent(preset)) {
|
|
329
|
+
if ((0, misc_1.isPresent)(preset)) {
|
|
330
330
|
return {
|
|
331
331
|
colors: preset.colors,
|
|
332
332
|
columns: this.$props.columns || preset.columns || exports.DEFAULT_COLUMNS_COUNT
|
|
@@ -345,7 +345,7 @@ var ColorPaletteVue2 = {
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
createCellId: function createCellId(cellCoords) {
|
|
348
|
-
return this.guid
|
|
348
|
+
return "".concat(this.guid, "_").concat(cellCoords.row, "_").concat(cellCoords.col);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
};
|