@progress/kendo-vue-inputs 8.0.3-develop.1 → 8.0.3-develop.3
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/checkbox/Checkbox.d.ts +193 -0
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +120 -0
- package/colors/ColorContrastLabels.d.ts +27 -0
- package/colors/ColorContrastSvg.d.ts +30 -0
- package/colors/ColorGradient.d.ts +128 -0
- package/colors/ColorInput.d.ts +67 -0
- package/colors/ColorPalette.d.ts +112 -0
- package/colors/ColorPicker.d.ts +279 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +7 -6
- package/colors/FlatColorPicker.d.ts +286 -0
- package/colors/FlatColorPicker.mjs +3 -3
- package/colors/HexInput.d.ts +55 -0
- package/colors/Picker.d.ts +35 -0
- package/colors/common/ColorsAdaptiveMode.d.ts +47 -0
- package/colors/interfaces/ColorGradientBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorGradientFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientProps.d.ts +95 -0
- package/colors/interfaces/ColorPaletteBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPaletteFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +93 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +24 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +190 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/FlatColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusoutEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +20 -0
- package/colors/interfaces/HexInputBlurEvent.d.ts +17 -0
- package/colors/interfaces/HexInputFocusEvent.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/PickerProps.d.ts +53 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +50 -0
- package/colors/utils/color-palette.service.d.ts +20 -0
- package/colors/utils/color-parser.d.ts +78 -0
- package/colors/utils/misc.d.ts +22 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +74 -5820
- package/index.d.ts +74 -5820
- package/input/Input.d.ts +378 -0
- package/input/InputBlurEvent.d.ts +16 -0
- package/input/InputFocusEvent.d.ts +16 -0
- package/input-separator/InputSeparator.d.ts +42 -0
- package/input-separator/interfaces/InputSeparatorOrientation.d.ts +15 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +15 -0
- package/maskedtextbox/MaskedTextBox.d.ts +269 -0
- package/maskedtextbox/MaskedTextBoxBlurEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxFocusEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxProps.d.ts +230 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/main.d.ts +212 -0
- package/numerictextbox/NumericTextBox.d.ts +264 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +2 -0
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxData.d.ts +22 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +188 -0
- package/numerictextbox/utils/main.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -11
- package/radiobutton/RadioButton.d.ts +94 -0
- package/radiobutton/RadioGroup.d.ts +97 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +120 -0
- package/radiobutton/interfaces/RadioGroupBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +86 -0
- package/range-slider/RangeSlider.d.ts +256 -0
- package/range-slider/range-raducer.d.ts +42 -0
- package/range-slider/range-raducer.js +1 -1
- package/range-slider/range-raducer.mjs +2 -2
- package/rating/Rating.d.ts +132 -0
- package/rating/RatingItem.d.ts +98 -0
- package/rating/interfaces/RatingBlurEvent.d.ts +16 -0
- package/rating/interfaces/RatingEvents.d.ts +54 -0
- package/rating/interfaces/RatingFocusEvent.d.ts +16 -0
- package/rating/interfaces/RatingItemProps.d.ts +99 -0
- package/rating/interfaces/RatingProps.d.ts +123 -0
- package/rating/utils/main.d.ts +31 -0
- package/rating/utils/rating-reducer.d.ts +39 -0
- package/signature/Signature.d.ts +219 -0
- package/signature/SignatureBottomActions.d.ts +35 -0
- package/signature/SignatureCanvas.d.ts +66 -0
- package/signature/SignatureDialog.d.ts +90 -0
- package/signature/SignatureLine.d.ts +12 -0
- package/signature/interfaces/SignatureBlurEvent.d.ts +12 -0
- package/signature/interfaces/SignatureCanvasProps.d.ts +23 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +16 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +12 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +12 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +12 -0
- package/signature/interfaces/SignatureProps.d.ts +197 -0
- package/signature/interfaces/main.d.ts +14 -0
- package/signature/utils/main.d.ts +11 -0
- package/slider/Slider.d.ts +201 -0
- package/slider/SliderLabel.d.ts +57 -0
- package/slider/interfaces/SliderBlurEvent.d.ts +16 -0
- package/slider/interfaces/SliderFocusEvent.d.ts +16 -0
- package/switch/Switch.d.ts +318 -0
- package/switch/interfaces/SwitchBlurEvent.d.ts +16 -0
- package/switch/interfaces/SwitchFocusEvent.d.ts +16 -0
- package/switch/util.d.ts +15 -0
- package/textarea/TextArea.d.ts +237 -0
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +16 -0
- package/textarea/interfaces/TextAreaFlow.d.ts +15 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaProps.d.ts +191 -0
- package/textarea/interfaces/TextAreaResize.d.ts +38 -0
- package/textbox/TextBox.d.ts +422 -0
- package/textbox/interfaces/TextBoxBlurEvent.d.ts +16 -0
- package/textbox/interfaces/TextBoxFocusEvent.d.ts +16 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
9
|
+
import { TextAreaBlurEvent } from './TextAreaBlurEvent';
|
|
10
|
+
import { TextAreaChangeEvent } from './TextAreaChangeEvent';
|
|
11
|
+
import { TextAreaFlow } from './TextAreaFlow';
|
|
12
|
+
import { TextAreaFocusEvent } from './TextAreaFocusEvent';
|
|
13
|
+
import { TextAreaResize } from './TextAreaResize';
|
|
14
|
+
/**
|
|
15
|
+
* Represents the props of the [Kendo UI for Vue TextArea component]({% slug overview_textarea %}).
|
|
16
|
+
*/
|
|
17
|
+
export interface TextAreaProps extends FormComponentProps {
|
|
18
|
+
/**
|
|
19
|
+
* 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).
|
|
20
|
+
* For example these elements could contain error or hint message.
|
|
21
|
+
*/
|
|
22
|
+
ariaDescribedBy?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Identifies the element(s) which will label the component.
|
|
25
|
+
*/
|
|
26
|
+
ariaLabelledBy?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Identifies the title of the TextArea component.
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the built-in [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength) property of the text inputs.
|
|
33
|
+
* * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `minlength`. Camel-case and kebap-case won't work in this scenario.
|
|
34
|
+
*/
|
|
35
|
+
minlength?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Defines the built-in [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength) property of the text inputs.
|
|
38
|
+
* * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `maxlength`. Camel-case and kebap-case won't work in this scenario.
|
|
39
|
+
*/
|
|
40
|
+
maxlength?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies if the textarea element will resize its height automatically ([see example]({% slug sizing_textarea %})).
|
|
43
|
+
* Defaults to `false`.
|
|
44
|
+
*/
|
|
45
|
+
autoSize?: boolean;
|
|
46
|
+
modelValue?: string | string[] | number;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies a list of CSS classes that will be added to the TextArea.
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The default value of the TextArea ([see example]({% slug default_textarea %})).
|
|
53
|
+
*/
|
|
54
|
+
defaultValue?: string | string[] | number;
|
|
55
|
+
/**
|
|
56
|
+
* Represents the `dir` HTML attribute.
|
|
57
|
+
*/
|
|
58
|
+
dir?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies if the TextArea is disabled ([see example]({% slug disabled_textarea %})).
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the read-only state of the TextArea.
|
|
65
|
+
*/
|
|
66
|
+
readOnly?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies an exact height size for the TextArea to take ([see example]({% slug sizing_textarea %})).
|
|
69
|
+
*/
|
|
70
|
+
rows?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the `id` of the TextArea.
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the `name` property of the `textarea` DOM element.
|
|
77
|
+
*/
|
|
78
|
+
name?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The hint that is displayed when the TextArea is empty.
|
|
81
|
+
*/
|
|
82
|
+
placeholder?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the `tabIndex` property of the TextArea.
|
|
85
|
+
* Defaults to `0`.
|
|
86
|
+
*/
|
|
87
|
+
tabIndex?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Configures the `size` of the NumericTextBox.
|
|
90
|
+
*
|
|
91
|
+
* The available options are:
|
|
92
|
+
* - small
|
|
93
|
+
* - medium
|
|
94
|
+
* - large
|
|
95
|
+
*
|
|
96
|
+
* @default undefined
|
|
97
|
+
*/
|
|
98
|
+
size?: 'small' | 'medium' | 'large';
|
|
99
|
+
/**
|
|
100
|
+
* Configures the `roundness` of the NumericTextBox.
|
|
101
|
+
*
|
|
102
|
+
* The available options are:
|
|
103
|
+
* - none
|
|
104
|
+
* - small
|
|
105
|
+
* - medium
|
|
106
|
+
* - large
|
|
107
|
+
* - full
|
|
108
|
+
*
|
|
109
|
+
* @default undefined
|
|
110
|
+
*/
|
|
111
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
112
|
+
/**
|
|
113
|
+
* Configures the `fillMode` of the NumericTextBox.
|
|
114
|
+
*
|
|
115
|
+
* The available options are:
|
|
116
|
+
* - solid
|
|
117
|
+
* - outline
|
|
118
|
+
* - flat
|
|
119
|
+
*
|
|
120
|
+
* @default undefined
|
|
121
|
+
*/
|
|
122
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
123
|
+
/**
|
|
124
|
+
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
125
|
+
*/
|
|
126
|
+
value?: string | string[] | number;
|
|
127
|
+
/**
|
|
128
|
+
* If set to `false`, no visual representation of the invalid state of the component will be applied.
|
|
129
|
+
*
|
|
130
|
+
* @default true
|
|
131
|
+
*/
|
|
132
|
+
validityStyles?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Defines a string prop that controls the input icon. This property works only with the Kendo UI for Vue FontIcons.
|
|
135
|
+
* Check the [Icons]({% slug icons %}) article for more information about how the Font Icon can be loaded to your project.
|
|
136
|
+
*/
|
|
137
|
+
iconName?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
140
|
+
*/
|
|
141
|
+
inputPrefix?: boolean | string | Object | Function;
|
|
142
|
+
/**
|
|
143
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
144
|
+
*/
|
|
145
|
+
inputSuffix?: boolean | string | Object | Function;
|
|
146
|
+
/**
|
|
147
|
+
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
148
|
+
*/
|
|
149
|
+
showValidationIcon?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
152
|
+
*/
|
|
153
|
+
showLoadingIcon?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
156
|
+
*/
|
|
157
|
+
showClearButton?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Defines additional class to the wrapper element.
|
|
160
|
+
*/
|
|
161
|
+
wrapperClass?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Defines the flow direction of the TextArea sections.
|
|
164
|
+
*/
|
|
165
|
+
flow?: TextAreaFlow | string;
|
|
166
|
+
/**
|
|
167
|
+
* Defines the way the TextArea will resize.
|
|
168
|
+
*/
|
|
169
|
+
resizable?: TextAreaResize | string;
|
|
170
|
+
/**
|
|
171
|
+
* Defines additional class to the input element.
|
|
172
|
+
*/
|
|
173
|
+
inputClass?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
176
|
+
* Attributes which are essential for certain component functionalities cannot be changed.
|
|
177
|
+
*/
|
|
178
|
+
inputAttributes?: Object;
|
|
179
|
+
/**
|
|
180
|
+
* The event handler that will be fired when the changes the selected value.
|
|
181
|
+
*/
|
|
182
|
+
onChange?: (event: TextAreaChangeEvent) => void;
|
|
183
|
+
/**
|
|
184
|
+
* The event handler that will be fired when TextArea is focused.
|
|
185
|
+
*/
|
|
186
|
+
onFocus?: (event: TextAreaFocusEvent) => void;
|
|
187
|
+
/**
|
|
188
|
+
* The event handler that will be fired when TextArea is blurred.
|
|
189
|
+
*/
|
|
190
|
+
onBlur?: (event: TextAreaBlurEvent) => void;
|
|
191
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the resize direction of the TextArea sections.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* `vertical`(Default) —TextArea can be resized only vertically.
|
|
13
|
+
* `horizontal`—TextArea can be resized only horizontally.
|
|
14
|
+
* `both`—TextArea can be resized both vertically and horizontally.
|
|
15
|
+
* `none`—TextArea can not be manually resized.
|
|
16
|
+
*/
|
|
17
|
+
export type TextAreaResize = 'both' | 'horizontal' | 'vertical' | 'none';
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the enum options for resize direction of the TextArea sections.
|
|
20
|
+
*/
|
|
21
|
+
export declare enum TextAreaResizeEnum {
|
|
22
|
+
/**
|
|
23
|
+
* `both`—TextArea can be resized both vertically and horizontally.
|
|
24
|
+
*/
|
|
25
|
+
both = "both",
|
|
26
|
+
/**
|
|
27
|
+
* `horizontal`—TextArea can be resized only horizontally.
|
|
28
|
+
*/
|
|
29
|
+
horizontal = "horizontal",
|
|
30
|
+
/**
|
|
31
|
+
* `vertical`(Default) —TextArea can be resized only vertically.
|
|
32
|
+
*/
|
|
33
|
+
vertical = "vertical",
|
|
34
|
+
/**
|
|
35
|
+
* `none`—TextArea can not be manually resized.
|
|
36
|
+
*/
|
|
37
|
+
none = "none"
|
|
38
|
+
}
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
import { TextBoxFocusEvent } from './interfaces/TextBoxFocusEvent';
|
|
11
|
+
import { TextBoxBlurEvent } from './interfaces/TextBoxBlurEvent';
|
|
12
|
+
export interface TextBoxChangeEvent {
|
|
13
|
+
/**
|
|
14
|
+
* A reference to the native event.
|
|
15
|
+
*/
|
|
16
|
+
event: any;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the event that is triggred. The value of this prop is `change`.
|
|
19
|
+
*/
|
|
20
|
+
eventName: string;
|
|
21
|
+
/**
|
|
22
|
+
* The current value of the TextBox.
|
|
23
|
+
*/
|
|
24
|
+
value: string | string[] | number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents the props of the [Kendo UI for Vue TextBox component]({% slug overview_textbox %}).
|
|
28
|
+
* Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextBoxElement).
|
|
29
|
+
*/
|
|
30
|
+
export interface TextBoxProps extends FormComponentProps {
|
|
31
|
+
/**
|
|
32
|
+
* Renders a floating label for the TextBox component.
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
label?: string;
|
|
36
|
+
value?: string | string[] | number;
|
|
37
|
+
modelValue?: string | number;
|
|
38
|
+
defaultValue?: string | string[] | number | undefined;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
validate?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Configures the `size` of the TextBox.
|
|
43
|
+
*
|
|
44
|
+
* The available options are:
|
|
45
|
+
* - small
|
|
46
|
+
* - medium
|
|
47
|
+
* - large
|
|
48
|
+
*
|
|
49
|
+
* @default undefined
|
|
50
|
+
*/
|
|
51
|
+
size?: 'small' | 'medium' | 'large';
|
|
52
|
+
/**
|
|
53
|
+
* Configures the `roundness` of the TextBox.
|
|
54
|
+
*
|
|
55
|
+
* The available options are:
|
|
56
|
+
* - none
|
|
57
|
+
* - small
|
|
58
|
+
* - medium
|
|
59
|
+
* - large
|
|
60
|
+
* - full
|
|
61
|
+
*
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
65
|
+
/**
|
|
66
|
+
* Configures the `fillMode` of the TextBox.
|
|
67
|
+
*
|
|
68
|
+
* The available options are:
|
|
69
|
+
* - solid
|
|
70
|
+
* - outline
|
|
71
|
+
* - flat
|
|
72
|
+
*
|
|
73
|
+
* @default undefined
|
|
74
|
+
*/
|
|
75
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
76
|
+
dir?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Fires when the `change` event of the input is triggered.
|
|
79
|
+
*/
|
|
80
|
+
onChange?: (event: TextBoxChangeEvent) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Fires when the `input` event of the input is triggered.
|
|
83
|
+
*/
|
|
84
|
+
onTextBox?: (event: any) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Fires when the input is focused.
|
|
87
|
+
*/
|
|
88
|
+
onFocus?: (event: any) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Fires when the input is blurred.
|
|
91
|
+
*/
|
|
92
|
+
onBlur?: (event: any) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Fires when the 'keyup' input event is triggered.
|
|
95
|
+
*/
|
|
96
|
+
onKeyup?: (event: any) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Fires when the 'keydown' input event is triggered.
|
|
99
|
+
*/
|
|
100
|
+
onKeydown?: (event: any) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Fires when the 'keypress' input event is triggered.
|
|
103
|
+
*/
|
|
104
|
+
onKeypress?: (event: any) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Specifies the placeholder of an `input` element. Used to define if the input is empty.
|
|
107
|
+
*/
|
|
108
|
+
placeholder?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Defines a string prop that controls the input icon. This property works only with the Kendo UI for Vue FontIcons.
|
|
111
|
+
* Check the [Icons]({% slug icons %}) article for more information about how the Font Icon can be loaded to your project.
|
|
112
|
+
*/
|
|
113
|
+
iconName?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @obsolete Use `prefix` instead.
|
|
117
|
+
*
|
|
118
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
119
|
+
*/
|
|
120
|
+
inputPrefix?: boolean | string | Object | Function;
|
|
121
|
+
/**
|
|
122
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
123
|
+
*/
|
|
124
|
+
prefix?: boolean | string | Object | Function;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @obsolete Use `suffix` instead.
|
|
128
|
+
*
|
|
129
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
130
|
+
*/
|
|
131
|
+
inputSuffix?: boolean | string | Object | Function;
|
|
132
|
+
/**
|
|
133
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
134
|
+
*/
|
|
135
|
+
suffix?: boolean | string | Object | Function;
|
|
136
|
+
/**
|
|
137
|
+
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
138
|
+
*/
|
|
139
|
+
showValidationIcon?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
142
|
+
*/
|
|
143
|
+
showLoadingIcon?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
146
|
+
*/
|
|
147
|
+
showClearButton?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Defines additional class to the wrapper element.
|
|
150
|
+
*/
|
|
151
|
+
wrapperClass?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Defines additional class to the input element.
|
|
154
|
+
*/
|
|
155
|
+
inputClass?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Defines the built-in [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength) property of the text inputs.
|
|
158
|
+
* * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `minlength`. Camel-case and kebap-case won't work in this scenario.
|
|
159
|
+
*/
|
|
160
|
+
minlength?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Defines the built-in [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength) property of the text inputs.
|
|
163
|
+
* * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `maxlength`. Camel-case and kebap-case won't work in this scenario.
|
|
164
|
+
*/
|
|
165
|
+
maxlength?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Defines the built-in [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) property of the input element inside the TextBox.
|
|
168
|
+
*/
|
|
169
|
+
tabIndex?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Defines the role of the input element inside the TextBox.
|
|
172
|
+
*/
|
|
173
|
+
role?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Defines the built-in [title](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title) property of the input element inside the TextBox.
|
|
176
|
+
*/
|
|
177
|
+
title?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Defines the built-in [aria-label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute) property of the input element inside the TextBox.
|
|
180
|
+
*/
|
|
181
|
+
ariaLabel?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
184
|
+
* Attributes which are essential for certain component functionalities cannot be changed.
|
|
185
|
+
*/
|
|
186
|
+
inputAttributes?: Object;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @hidden
|
|
190
|
+
*/
|
|
191
|
+
declare const TextBox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
192
|
+
modelValue: {
|
|
193
|
+
type: PropType<string | number>;
|
|
194
|
+
default: any;
|
|
195
|
+
};
|
|
196
|
+
disabled: {
|
|
197
|
+
type: PropType<boolean>;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
defaultValue: {
|
|
201
|
+
type: PropType<string | number | string[]>;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
value: {
|
|
205
|
+
type: PropType<string | number | string[]>;
|
|
206
|
+
};
|
|
207
|
+
label: {
|
|
208
|
+
type: PropType<string>;
|
|
209
|
+
};
|
|
210
|
+
placeholder: {
|
|
211
|
+
type: PropType<string>;
|
|
212
|
+
};
|
|
213
|
+
required: {
|
|
214
|
+
type: PropType<boolean>;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
size: {
|
|
218
|
+
type: PropType<"small" | "medium" | "large">;
|
|
219
|
+
validator: (value: string) => boolean;
|
|
220
|
+
};
|
|
221
|
+
rounded: {
|
|
222
|
+
type: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
223
|
+
validator: (value: string) => boolean;
|
|
224
|
+
};
|
|
225
|
+
fillMode: {
|
|
226
|
+
type: PropType<"flat" | "solid" | "outline">;
|
|
227
|
+
validator: (value: string) => boolean;
|
|
228
|
+
};
|
|
229
|
+
dir: {
|
|
230
|
+
type: PropType<string>;
|
|
231
|
+
};
|
|
232
|
+
id: StringConstructor;
|
|
233
|
+
valid: {
|
|
234
|
+
type: PropType<boolean>;
|
|
235
|
+
default: any;
|
|
236
|
+
};
|
|
237
|
+
validate: {
|
|
238
|
+
type: PropType<boolean>;
|
|
239
|
+
};
|
|
240
|
+
validationMessage: {
|
|
241
|
+
type: PropType<string>;
|
|
242
|
+
};
|
|
243
|
+
validityStyles: {
|
|
244
|
+
type: PropType<boolean>;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
iconName: PropType<string>;
|
|
248
|
+
inputPrefix: PropType<string | boolean | Object | Function>;
|
|
249
|
+
prefix: PropType<string | boolean | Object | Function>;
|
|
250
|
+
inputSuffix: PropType<string | boolean | Object | Function>;
|
|
251
|
+
suffix: PropType<string | boolean | Object | Function>;
|
|
252
|
+
showValidationIcon: PropType<boolean>;
|
|
253
|
+
showLoadingIcon: PropType<boolean>;
|
|
254
|
+
showClearButton: PropType<boolean>;
|
|
255
|
+
inputClass: PropType<string>;
|
|
256
|
+
wrapperClass: PropType<string>;
|
|
257
|
+
tabIndex: PropType<number>;
|
|
258
|
+
role: PropType<string>;
|
|
259
|
+
title: PropType<string>;
|
|
260
|
+
ariaLabel: PropType<string>;
|
|
261
|
+
inputAttributes: PropType<Object>;
|
|
262
|
+
}>, {
|
|
263
|
+
inputRef: import('vue').Ref<any, any>;
|
|
264
|
+
}, {
|
|
265
|
+
hasMounted: boolean;
|
|
266
|
+
autofill: boolean;
|
|
267
|
+
currentValue: string | number | string[];
|
|
268
|
+
valueDuringOnChange: string;
|
|
269
|
+
focused: boolean;
|
|
270
|
+
}, {
|
|
271
|
+
spanClassNames(): {
|
|
272
|
+
'k-floating-label-container': boolean;
|
|
273
|
+
'k-focus': any;
|
|
274
|
+
'k-empty': boolean;
|
|
275
|
+
'k-autofill': any;
|
|
276
|
+
'k-invalid': boolean;
|
|
277
|
+
'k-rtl': boolean;
|
|
278
|
+
};
|
|
279
|
+
inputInnerClass(): {
|
|
280
|
+
[x: number]: any;
|
|
281
|
+
'k-input-inner': boolean;
|
|
282
|
+
};
|
|
283
|
+
computedValue(): any;
|
|
284
|
+
}, {
|
|
285
|
+
updateValidClass(): void;
|
|
286
|
+
emitFocus(e: any): void;
|
|
287
|
+
emitBlur(e: any): void;
|
|
288
|
+
handleKeydown(e: any): void;
|
|
289
|
+
handleKeyup(e: any): void;
|
|
290
|
+
handleKeypress(e: any): void;
|
|
291
|
+
clearClick(event: any): void;
|
|
292
|
+
focus(): void;
|
|
293
|
+
validity(): {
|
|
294
|
+
customError: boolean;
|
|
295
|
+
valid: any;
|
|
296
|
+
badTextBox: any;
|
|
297
|
+
patternMismatch: any;
|
|
298
|
+
rangeOverflow: any;
|
|
299
|
+
rangeUnderflow: any;
|
|
300
|
+
stepMismatch: any;
|
|
301
|
+
tooLong: any;
|
|
302
|
+
tooShort: any;
|
|
303
|
+
typeMismatch: any;
|
|
304
|
+
valueMissing: any;
|
|
305
|
+
};
|
|
306
|
+
isInvalid(state: Object): boolean;
|
|
307
|
+
setValidity(): void;
|
|
308
|
+
handleInput(event: any): void;
|
|
309
|
+
handleChange(event: any): void;
|
|
310
|
+
emitUpdate(event: any, eventName: string, value: any): void;
|
|
311
|
+
handleAutoFill(e: any): void;
|
|
312
|
+
handleAutoFillEnd(e: any): void;
|
|
313
|
+
name: () => any;
|
|
314
|
+
inputWrapperClass(): {
|
|
315
|
+
[x: string]: any;
|
|
316
|
+
[x: number]: any;
|
|
317
|
+
'k-textbox': boolean;
|
|
318
|
+
'k-input': boolean;
|
|
319
|
+
'k-invalid': boolean;
|
|
320
|
+
'k-required': any;
|
|
321
|
+
'k-disabled': any;
|
|
322
|
+
};
|
|
323
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
324
|
+
input: (event: Event) => true;
|
|
325
|
+
change: (event: TextBoxChangeEvent) => true;
|
|
326
|
+
changemodel: (value: string | number) => true;
|
|
327
|
+
'update:modelValue': (value: string | number) => true;
|
|
328
|
+
focus: (event: TextBoxFocusEvent) => true;
|
|
329
|
+
blur: (event: TextBoxBlurEvent) => true;
|
|
330
|
+
keyup: (event: KeyboardEvent) => true;
|
|
331
|
+
keydown: (event: KeyboardEvent) => true;
|
|
332
|
+
keypress: (event: KeyboardEvent) => true;
|
|
333
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
334
|
+
modelValue: {
|
|
335
|
+
type: PropType<string | number>;
|
|
336
|
+
default: any;
|
|
337
|
+
};
|
|
338
|
+
disabled: {
|
|
339
|
+
type: PropType<boolean>;
|
|
340
|
+
default: any;
|
|
341
|
+
};
|
|
342
|
+
defaultValue: {
|
|
343
|
+
type: PropType<string | number | string[]>;
|
|
344
|
+
default: string;
|
|
345
|
+
};
|
|
346
|
+
value: {
|
|
347
|
+
type: PropType<string | number | string[]>;
|
|
348
|
+
};
|
|
349
|
+
label: {
|
|
350
|
+
type: PropType<string>;
|
|
351
|
+
};
|
|
352
|
+
placeholder: {
|
|
353
|
+
type: PropType<string>;
|
|
354
|
+
};
|
|
355
|
+
required: {
|
|
356
|
+
type: PropType<boolean>;
|
|
357
|
+
default: boolean;
|
|
358
|
+
};
|
|
359
|
+
size: {
|
|
360
|
+
type: PropType<"small" | "medium" | "large">;
|
|
361
|
+
validator: (value: string) => boolean;
|
|
362
|
+
};
|
|
363
|
+
rounded: {
|
|
364
|
+
type: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
365
|
+
validator: (value: string) => boolean;
|
|
366
|
+
};
|
|
367
|
+
fillMode: {
|
|
368
|
+
type: PropType<"flat" | "solid" | "outline">;
|
|
369
|
+
validator: (value: string) => boolean;
|
|
370
|
+
};
|
|
371
|
+
dir: {
|
|
372
|
+
type: PropType<string>;
|
|
373
|
+
};
|
|
374
|
+
id: StringConstructor;
|
|
375
|
+
valid: {
|
|
376
|
+
type: PropType<boolean>;
|
|
377
|
+
default: any;
|
|
378
|
+
};
|
|
379
|
+
validate: {
|
|
380
|
+
type: PropType<boolean>;
|
|
381
|
+
};
|
|
382
|
+
validationMessage: {
|
|
383
|
+
type: PropType<string>;
|
|
384
|
+
};
|
|
385
|
+
validityStyles: {
|
|
386
|
+
type: PropType<boolean>;
|
|
387
|
+
default: boolean;
|
|
388
|
+
};
|
|
389
|
+
iconName: PropType<string>;
|
|
390
|
+
inputPrefix: PropType<string | boolean | Object | Function>;
|
|
391
|
+
prefix: PropType<string | boolean | Object | Function>;
|
|
392
|
+
inputSuffix: PropType<string | boolean | Object | Function>;
|
|
393
|
+
suffix: PropType<string | boolean | Object | Function>;
|
|
394
|
+
showValidationIcon: PropType<boolean>;
|
|
395
|
+
showLoadingIcon: PropType<boolean>;
|
|
396
|
+
showClearButton: PropType<boolean>;
|
|
397
|
+
inputClass: PropType<string>;
|
|
398
|
+
wrapperClass: PropType<string>;
|
|
399
|
+
tabIndex: PropType<number>;
|
|
400
|
+
role: PropType<string>;
|
|
401
|
+
title: PropType<string>;
|
|
402
|
+
ariaLabel: PropType<string>;
|
|
403
|
+
inputAttributes: PropType<Object>;
|
|
404
|
+
}>> & Readonly<{
|
|
405
|
+
onInput?: (event: Event) => any;
|
|
406
|
+
onBlur?: (event: TextBoxBlurEvent) => any;
|
|
407
|
+
onChange?: (event: TextBoxChangeEvent) => any;
|
|
408
|
+
onFocus?: (event: TextBoxFocusEvent) => any;
|
|
409
|
+
onKeydown?: (event: KeyboardEvent) => any;
|
|
410
|
+
onKeypress?: (event: KeyboardEvent) => any;
|
|
411
|
+
onKeyup?: (event: KeyboardEvent) => any;
|
|
412
|
+
onChangemodel?: (value: string | number) => any;
|
|
413
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
414
|
+
}>, {
|
|
415
|
+
required: boolean;
|
|
416
|
+
disabled: boolean;
|
|
417
|
+
modelValue: string | number;
|
|
418
|
+
defaultValue: string | number | string[];
|
|
419
|
+
valid: boolean;
|
|
420
|
+
validityStyles: boolean;
|
|
421
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
422
|
+
export { TextBox };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onBlur` TextBox event.
|
|
10
|
+
*/
|
|
11
|
+
export interface TextBoxBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onFocus` TextBox event.
|
|
10
|
+
*/
|
|
11
|
+
export interface TextBoxFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|