@progress/kendo-vue-inputs 8.0.3-develop.2 → 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,269 @@
|
|
|
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 { MaskedTextBoxFocusEvent } from './MaskedTextBoxFocusEvent';
|
|
9
|
+
import { MaskedTextBoxBlurEvent } from './MaskedTextBoxBlurEvent';
|
|
10
|
+
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
11
|
+
import { PropType } from 'vue';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
declare const MaskedTextBox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
type: {
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
modelValue: PropType<string>;
|
|
21
|
+
modelRawValue: PropType<string>;
|
|
22
|
+
value: PropType<string>;
|
|
23
|
+
defaultValue: PropType<string>;
|
|
24
|
+
placeholder: PropType<string>;
|
|
25
|
+
title: PropType<string>;
|
|
26
|
+
dir: PropType<string>;
|
|
27
|
+
id: PropType<string>;
|
|
28
|
+
ariaLabelledBy: PropType<string>;
|
|
29
|
+
ariaDescribedBy: PropType<string>;
|
|
30
|
+
tabIndex: PropType<number>;
|
|
31
|
+
accessKey: PropType<string>;
|
|
32
|
+
disabled: PropType<boolean>;
|
|
33
|
+
readonly: PropType<boolean>;
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<"small" | "medium" | "large">;
|
|
36
|
+
validator: (value: string) => boolean;
|
|
37
|
+
};
|
|
38
|
+
rounded: {
|
|
39
|
+
type: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
40
|
+
validator: (value: string) => boolean;
|
|
41
|
+
};
|
|
42
|
+
fillMode: {
|
|
43
|
+
type: PropType<"flat" | "solid" | "outline">;
|
|
44
|
+
validator: (value: string) => boolean;
|
|
45
|
+
};
|
|
46
|
+
prompt: {
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
promptPlaceholder: {
|
|
51
|
+
type: PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
includeLiterals: {
|
|
55
|
+
type: PropType<boolean>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
maskValidation: {
|
|
59
|
+
type: PropType<boolean>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
mask: PropType<string>;
|
|
63
|
+
rules: {
|
|
64
|
+
type: PropType<{
|
|
65
|
+
[key: string]: RegExp;
|
|
66
|
+
}>;
|
|
67
|
+
default: () => {
|
|
68
|
+
[key: string]: RegExp;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
selection: PropType<{
|
|
72
|
+
start: number;
|
|
73
|
+
end: number;
|
|
74
|
+
}>;
|
|
75
|
+
name: PropType<string>;
|
|
76
|
+
label: PropType<string>;
|
|
77
|
+
validationMessage: PropType<string>;
|
|
78
|
+
required: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
valid: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
default: any;
|
|
85
|
+
};
|
|
86
|
+
validityStyles: {
|
|
87
|
+
type: PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
iconName: PropType<String>;
|
|
91
|
+
inputPrefix: {
|
|
92
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | FunctionConstructor)[];
|
|
93
|
+
default: () => any;
|
|
94
|
+
};
|
|
95
|
+
inputSuffix: {
|
|
96
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | FunctionConstructor)[];
|
|
97
|
+
default: () => any;
|
|
98
|
+
};
|
|
99
|
+
showValidationIcon: PropType<Boolean>;
|
|
100
|
+
showLoadingIcon: PropType<Boolean>;
|
|
101
|
+
showClearButton: PropType<Boolean>;
|
|
102
|
+
inputClass: PropType<String>;
|
|
103
|
+
wrapperClass: PropType<String>;
|
|
104
|
+
inputAttributes: PropType<Object>;
|
|
105
|
+
}>, {
|
|
106
|
+
inputRef: import('vue').Ref<any, any>;
|
|
107
|
+
}, {
|
|
108
|
+
currentValue: any;
|
|
109
|
+
currentFocused: boolean;
|
|
110
|
+
inputValue: any;
|
|
111
|
+
currentSelection: any[];
|
|
112
|
+
}, {
|
|
113
|
+
computedRules(): any;
|
|
114
|
+
spanClassNames(): {
|
|
115
|
+
[x: number]: any;
|
|
116
|
+
'k-floating-label-container': boolean;
|
|
117
|
+
'k-focus': any;
|
|
118
|
+
'k-empty': boolean;
|
|
119
|
+
'k-invalid': boolean;
|
|
120
|
+
'k-rtl': boolean;
|
|
121
|
+
'k-loading': any;
|
|
122
|
+
};
|
|
123
|
+
wrapperSpanClass(): {
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
[x: number]: any;
|
|
126
|
+
'k-maskedtextbox': boolean;
|
|
127
|
+
'k-input': boolean;
|
|
128
|
+
'k-invalid': boolean;
|
|
129
|
+
'k-required': any;
|
|
130
|
+
'k-disabled': any;
|
|
131
|
+
'k-loading': any;
|
|
132
|
+
};
|
|
133
|
+
inputInnerClass(): {
|
|
134
|
+
[x: number]: any;
|
|
135
|
+
'k-input-inner': boolean;
|
|
136
|
+
};
|
|
137
|
+
}, {
|
|
138
|
+
focus(): void;
|
|
139
|
+
computedValue(): any;
|
|
140
|
+
rawValue(): string;
|
|
141
|
+
validity(): FormComponentValidity;
|
|
142
|
+
pasteHandler(event: any): void;
|
|
143
|
+
clearClick(event: any): void;
|
|
144
|
+
onChangeHandler(event: any): void;
|
|
145
|
+
focusHandler(event: FocusEvent): void;
|
|
146
|
+
blurHandler(event: FocusEvent): void;
|
|
147
|
+
triggerOnChange(maskedValue: string, event: any): void;
|
|
148
|
+
updateService(extra?: any): void;
|
|
149
|
+
setValidity(): void;
|
|
150
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
151
|
+
change: (event: any) => true;
|
|
152
|
+
focus: (event: MaskedTextBoxFocusEvent) => true;
|
|
153
|
+
blur: (event: MaskedTextBoxBlurEvent) => true;
|
|
154
|
+
'update:modelValue': (value: string) => true;
|
|
155
|
+
'update:modelRawValue': (value: string) => true;
|
|
156
|
+
changemodel: (value: string) => true;
|
|
157
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
158
|
+
type: {
|
|
159
|
+
type: PropType<string>;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
modelValue: PropType<string>;
|
|
163
|
+
modelRawValue: PropType<string>;
|
|
164
|
+
value: PropType<string>;
|
|
165
|
+
defaultValue: PropType<string>;
|
|
166
|
+
placeholder: PropType<string>;
|
|
167
|
+
title: PropType<string>;
|
|
168
|
+
dir: PropType<string>;
|
|
169
|
+
id: PropType<string>;
|
|
170
|
+
ariaLabelledBy: PropType<string>;
|
|
171
|
+
ariaDescribedBy: PropType<string>;
|
|
172
|
+
tabIndex: PropType<number>;
|
|
173
|
+
accessKey: PropType<string>;
|
|
174
|
+
disabled: PropType<boolean>;
|
|
175
|
+
readonly: PropType<boolean>;
|
|
176
|
+
size: {
|
|
177
|
+
type: PropType<"small" | "medium" | "large">;
|
|
178
|
+
validator: (value: string) => boolean;
|
|
179
|
+
};
|
|
180
|
+
rounded: {
|
|
181
|
+
type: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
182
|
+
validator: (value: string) => boolean;
|
|
183
|
+
};
|
|
184
|
+
fillMode: {
|
|
185
|
+
type: PropType<"flat" | "solid" | "outline">;
|
|
186
|
+
validator: (value: string) => boolean;
|
|
187
|
+
};
|
|
188
|
+
prompt: {
|
|
189
|
+
type: PropType<string>;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
192
|
+
promptPlaceholder: {
|
|
193
|
+
type: PropType<string>;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
includeLiterals: {
|
|
197
|
+
type: PropType<boolean>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
maskValidation: {
|
|
201
|
+
type: PropType<boolean>;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
204
|
+
mask: PropType<string>;
|
|
205
|
+
rules: {
|
|
206
|
+
type: PropType<{
|
|
207
|
+
[key: string]: RegExp;
|
|
208
|
+
}>;
|
|
209
|
+
default: () => {
|
|
210
|
+
[key: string]: RegExp;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
selection: PropType<{
|
|
214
|
+
start: number;
|
|
215
|
+
end: number;
|
|
216
|
+
}>;
|
|
217
|
+
name: PropType<string>;
|
|
218
|
+
label: PropType<string>;
|
|
219
|
+
validationMessage: PropType<string>;
|
|
220
|
+
required: {
|
|
221
|
+
type: PropType<boolean>;
|
|
222
|
+
default: boolean;
|
|
223
|
+
};
|
|
224
|
+
valid: {
|
|
225
|
+
type: PropType<boolean>;
|
|
226
|
+
default: any;
|
|
227
|
+
};
|
|
228
|
+
validityStyles: {
|
|
229
|
+
type: PropType<boolean>;
|
|
230
|
+
default: boolean;
|
|
231
|
+
};
|
|
232
|
+
iconName: PropType<String>;
|
|
233
|
+
inputPrefix: {
|
|
234
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | FunctionConstructor)[];
|
|
235
|
+
default: () => any;
|
|
236
|
+
};
|
|
237
|
+
inputSuffix: {
|
|
238
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | FunctionConstructor)[];
|
|
239
|
+
default: () => any;
|
|
240
|
+
};
|
|
241
|
+
showValidationIcon: PropType<Boolean>;
|
|
242
|
+
showLoadingIcon: PropType<Boolean>;
|
|
243
|
+
showClearButton: PropType<Boolean>;
|
|
244
|
+
inputClass: PropType<String>;
|
|
245
|
+
wrapperClass: PropType<String>;
|
|
246
|
+
inputAttributes: PropType<Object>;
|
|
247
|
+
}>> & Readonly<{
|
|
248
|
+
onBlur?: (event: MaskedTextBoxBlurEvent) => any;
|
|
249
|
+
onChange?: (event: any) => any;
|
|
250
|
+
onFocus?: (event: MaskedTextBoxFocusEvent) => any;
|
|
251
|
+
onChangemodel?: (value: string) => any;
|
|
252
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
253
|
+
"onUpdate:modelRawValue"?: (value: string) => any;
|
|
254
|
+
}>, {
|
|
255
|
+
type: string;
|
|
256
|
+
required: boolean;
|
|
257
|
+
valid: boolean;
|
|
258
|
+
validityStyles: boolean;
|
|
259
|
+
inputPrefix: string | boolean | Function | Record<string, any>;
|
|
260
|
+
inputSuffix: string | boolean | Function | Record<string, any>;
|
|
261
|
+
prompt: string;
|
|
262
|
+
promptPlaceholder: string;
|
|
263
|
+
rules: {
|
|
264
|
+
[key: string]: RegExp;
|
|
265
|
+
};
|
|
266
|
+
includeLiterals: boolean;
|
|
267
|
+
maskValidation: boolean;
|
|
268
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
269
|
+
export { MaskedTextBox };
|
|
@@ -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` event of the MaskedTextBox.
|
|
10
|
+
*/
|
|
11
|
+
export interface MaskedTextBoxBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser blur event.
|
|
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` event of the MaskedTextBox.
|
|
10
|
+
*/
|
|
11
|
+
export interface MaskedTextBoxFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser focus event.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* The arguments for a MaskedTextBox event.
|
|
11
|
+
*/
|
|
12
|
+
export interface MaskedTextBoxEvent {
|
|
13
|
+
/**
|
|
14
|
+
* A native DOM event.
|
|
15
|
+
*/
|
|
16
|
+
event: Event;
|
|
17
|
+
/**
|
|
18
|
+
* An event target.
|
|
19
|
+
*/
|
|
20
|
+
target: any;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The arguments for the `change` event of the MaskedTextBox.
|
|
24
|
+
*/
|
|
25
|
+
export interface MaskedTextBoxChangeEvent extends MaskedTextBoxEvent {
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the start of the selection which will be set to the MaskedTextBox when it is updated.
|
|
28
|
+
*/
|
|
29
|
+
selectionStart: number;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the end of the selection which will be set to the MaskedTextBox when it is updated.
|
|
32
|
+
*/
|
|
33
|
+
selectionEnd: number;
|
|
34
|
+
/**
|
|
35
|
+
* The current value of the component.
|
|
36
|
+
*/
|
|
37
|
+
value: any;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Represents the props of the [Kendo UI for Vue MaskedTextBox component]({% slug overview_maskedtextbox %}).
|
|
41
|
+
*/
|
|
42
|
+
export interface MaskedTextBoxProps extends FormComponentProps {
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the value of the MaskedTextBox.
|
|
45
|
+
*/
|
|
46
|
+
value?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the initial value. Leaves the subsequent updates uncontrolled.
|
|
49
|
+
*/
|
|
50
|
+
defaultValue?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the input placeholder.
|
|
53
|
+
*/
|
|
54
|
+
placeholder?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the title of the `input` element of the MaskedTextBox.
|
|
57
|
+
*/
|
|
58
|
+
title?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Represents the `dir` HTML attribute.
|
|
61
|
+
*/
|
|
62
|
+
dir?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Configures the `size` of the MaskedTextBox.
|
|
65
|
+
*
|
|
66
|
+
* The available options are:
|
|
67
|
+
* - small
|
|
68
|
+
* - medium
|
|
69
|
+
* - large
|
|
70
|
+
*
|
|
71
|
+
* @default undefined
|
|
72
|
+
*/
|
|
73
|
+
size?: 'small' | 'medium' | 'large';
|
|
74
|
+
/**
|
|
75
|
+
* Configures the `roundness` of the MaskedTextBox.
|
|
76
|
+
*
|
|
77
|
+
* The available options are:
|
|
78
|
+
* - none
|
|
79
|
+
* - small
|
|
80
|
+
* - medium
|
|
81
|
+
* - large
|
|
82
|
+
* - full
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
87
|
+
/**
|
|
88
|
+
* Configures the `fillMode` of the MaskedTextBox.
|
|
89
|
+
*
|
|
90
|
+
* The available options are:
|
|
91
|
+
* - solid
|
|
92
|
+
* - outline
|
|
93
|
+
* - flat
|
|
94
|
+
*
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
98
|
+
/**
|
|
99
|
+
* Sets the `tabIndex` property of the MaskedTextBox.
|
|
100
|
+
*/
|
|
101
|
+
tabIndex?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the `accessKey` of the MaskedTextBox.
|
|
104
|
+
*/
|
|
105
|
+
accessKey?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the width of the MaskedTextBox.
|
|
108
|
+
*/
|
|
109
|
+
width?: number | string;
|
|
110
|
+
/**
|
|
111
|
+
* Determines whether the MaskedTextBox is disabled.
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Renders a floating label for the MaskedTextBox.
|
|
116
|
+
*/
|
|
117
|
+
label?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Sets the `id` of the `input` DOM element.
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
122
|
+
/**
|
|
123
|
+
* 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).
|
|
124
|
+
* For example these elements could contain error or hint message.
|
|
125
|
+
*/
|
|
126
|
+
ariaDescribedBy?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Identifies the element(s) which will label the component.
|
|
129
|
+
*/
|
|
130
|
+
ariaLabelledBy?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Determines whether the MaskedTextBox is in its read-only state.
|
|
133
|
+
*/
|
|
134
|
+
readonly?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Represents a prompt character for the masked value. Defaults to `_`.
|
|
137
|
+
*/
|
|
138
|
+
prompt?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Indicates a character which represents an empty position in the raw value. Defaults to ` `.
|
|
141
|
+
*/
|
|
142
|
+
promptPlaceholder?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Indicates whether to include literals in the raw value. Defaults to `false`.
|
|
145
|
+
*/
|
|
146
|
+
includeLiterals?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Determines whether the built-in mask validator is enforced when a form is validated. Defaults to `true`.
|
|
149
|
+
*/
|
|
150
|
+
maskValidation?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Represents the current mask. If no mask is set, the component behaves as a standard `type="text"` input.
|
|
153
|
+
*/
|
|
154
|
+
mask?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Represents the RegExp-based mask validation array.
|
|
157
|
+
*/
|
|
158
|
+
rules?: {
|
|
159
|
+
[key: string]: RegExp;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Represents the beginning and ending of the selected portion of the input content that will be applied the next time when the MaskedTextBox is rendered.
|
|
163
|
+
*/
|
|
164
|
+
selection?: {
|
|
165
|
+
start: number;
|
|
166
|
+
end: number;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Determines the event handler that will be fired when the user edits the value.
|
|
170
|
+
*/
|
|
171
|
+
onChange?: (event: MaskedTextBoxChangeEvent) => void;
|
|
172
|
+
/**
|
|
173
|
+
* Fires each time the user focuses the MaskedTextBox.
|
|
174
|
+
*/
|
|
175
|
+
onFocus?: (event: MaskedTextBoxEvent) => void;
|
|
176
|
+
/**
|
|
177
|
+
* Fires each time the MaskedTextBox gets blurred.
|
|
178
|
+
*/
|
|
179
|
+
onBlur?: (event: MaskedTextBoxEvent) => void;
|
|
180
|
+
/**
|
|
181
|
+
* v-model raw value
|
|
182
|
+
*/
|
|
183
|
+
modelRawValue?: string;
|
|
184
|
+
/**
|
|
185
|
+
* v-model value
|
|
186
|
+
*/
|
|
187
|
+
modelValue?: string;
|
|
188
|
+
/**
|
|
189
|
+
* The type of the input - 'text' by default
|
|
190
|
+
*/
|
|
191
|
+
type?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Defines a string prop that controls the input icon. This property works only with the Kendo UI for Vue FontIcons.
|
|
194
|
+
* Check the [Icons]({% slug icons %}) article for more information about how the Font Icon can be loaded to your project.
|
|
195
|
+
*/
|
|
196
|
+
iconName?: String;
|
|
197
|
+
/**
|
|
198
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
199
|
+
*/
|
|
200
|
+
inputPrefix?: Boolean | String | Object | Function;
|
|
201
|
+
/**
|
|
202
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
203
|
+
*/
|
|
204
|
+
inputSuffix?: Boolean | String | Object | Function;
|
|
205
|
+
/**
|
|
206
|
+
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
207
|
+
*/
|
|
208
|
+
showValidationIcon?: Boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
211
|
+
*/
|
|
212
|
+
showLoadingIcon?: Boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
215
|
+
*/
|
|
216
|
+
showClearButton?: Boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Defines additional class to the inner input element.
|
|
219
|
+
*/
|
|
220
|
+
inputClass?: String;
|
|
221
|
+
/**
|
|
222
|
+
* Defines additional class to the wrapper element.
|
|
223
|
+
*/
|
|
224
|
+
wrapperClass?: String;
|
|
225
|
+
/**
|
|
226
|
+
* Sets the built-in HTML attributes of the inner focusable input element.
|
|
227
|
+
* Attributes which are essential for certain component functionalities cannot be changed.
|
|
228
|
+
*/
|
|
229
|
+
inputAttributes?: Object;
|
|
230
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class MaskingService {
|
|
12
|
+
rules: {
|
|
13
|
+
[key: string]: RegExp;
|
|
14
|
+
};
|
|
15
|
+
prompt: string;
|
|
16
|
+
mask: string;
|
|
17
|
+
promptPlaceholder: string;
|
|
18
|
+
includeLiterals: boolean;
|
|
19
|
+
maskTokens: any[];
|
|
20
|
+
unmaskTokens: any[];
|
|
21
|
+
rawTokens: any[];
|
|
22
|
+
validationTokens: any[];
|
|
23
|
+
update({ mask, prompt, promptPlaceholder, rules, includeLiterals }: any): void;
|
|
24
|
+
validationValue(maskedValue?: string): string;
|
|
25
|
+
rawValue(maskedValue?: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
maskRaw(rawValue?: string): string;
|
|
30
|
+
maskInput(input: string, control: string, splitPoint: number): any;
|
|
31
|
+
maskInRange(pasted: string, oldValue: string, start: number, end: number): any;
|
|
32
|
+
private maskRemoved;
|
|
33
|
+
private adjustPosition;
|
|
34
|
+
private maskInserted;
|
|
35
|
+
protected get maskTokenCreator(): {
|
|
36
|
+
[key: string]: Function;
|
|
37
|
+
};
|
|
38
|
+
protected get unmaskTokenCreator(): {
|
|
39
|
+
[key: string]: Function;
|
|
40
|
+
};
|
|
41
|
+
protected get rawTokenCreator(): {
|
|
42
|
+
[key: string]: Function;
|
|
43
|
+
};
|
|
44
|
+
protected get validationTokenCreator(): {
|
|
45
|
+
[key: string]: Function;
|
|
46
|
+
};
|
|
47
|
+
private tokenize;
|
|
48
|
+
}
|
|
@@ -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
|
+
import { Parser } from './parsers';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const sequence: (list: any) => any;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const greedy: (parser: any) => Parser;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { Result } from './result';
|
|
9
|
+
import { Stream } from './stream';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class Parser {
|
|
14
|
+
private parse;
|
|
15
|
+
constructor(parse: Function);
|
|
16
|
+
run(input: Stream | string, control?: string): Result;
|
|
17
|
+
map(f: Function): Parser;
|
|
18
|
+
chain(f: Function): Parser;
|
|
19
|
+
isLiteral(c: string): boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const mask: ({ prompt, promptPlaceholder }: {
|
|
25
|
+
prompt: any;
|
|
26
|
+
promptPlaceholder: any;
|
|
27
|
+
}) => (rule: any) => Parser;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const literal: (_token: any) => Parser;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const unmask: (prompt: any) => (rule: any) => Parser;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const unliteral: (_token: any) => Parser;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const token: (rules: any, creator: any) => Parser;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const rawMask: ({ prompt, promptPlaceholder }: {
|
|
48
|
+
prompt: any;
|
|
49
|
+
promptPlaceholder: any;
|
|
50
|
+
}) => Parser;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
export declare const rawLiteral: (includeLiterals: any) => Parser;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { Stream } from './stream';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare enum ResultType {
|
|
13
|
+
Literal = 0,
|
|
14
|
+
Mask = 1,
|
|
15
|
+
Undefined = 2
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare class Result {
|
|
21
|
+
private value;
|
|
22
|
+
private rest;
|
|
23
|
+
type: ResultType;
|
|
24
|
+
constructor(value: any, rest: Stream, type?: ResultType);
|
|
25
|
+
map(fn: Function): Result;
|
|
26
|
+
chain(fn: Function): Result;
|
|
27
|
+
fold(s: Function): Result;
|
|
28
|
+
concat(r: Result): Result;
|
|
29
|
+
toString(): string;
|
|
30
|
+
}
|