@progress/kendo-vue-inputs 3.3.4 → 3.3.6-dev.202206170937
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/additionalTypes.ts +11 -0
- package/dist/es/checkbox/Checkbox.d.ts +7 -1
- package/dist/es/checkbox/Checkbox.js +8 -0
- package/dist/es/colors/ColorPalette.d.ts +6 -0
- package/dist/es/colors/ColorPalette.js +8 -1
- package/dist/es/colors/ColorPicker.d.ts +6 -0
- package/dist/es/colors/ColorPicker.js +8 -1
- package/dist/es/colors/Picker.d.ts +6 -0
- package/dist/es/colors/Picker.js +8 -1
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +4 -13
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/es/colors/interfaces/ColorPickerView.d.ts +3 -0
- package/dist/es/input/Input.d.ts +19 -9
- package/dist/es/input/Input.js +19 -3
- package/dist/es/input-separator/InputSeparator.d.ts +19 -0
- package/dist/es/input-separator/InputSeparator.js +35 -0
- package/dist/es/main.d.ts +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +4 -1
- package/dist/es/maskedtextbox/MaskedTextBox.js +95 -20
- package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +32 -0
- package/dist/es/numerictextbox/NumericTextBox.d.ts +6 -0
- package/dist/es/numerictextbox/NumericTextBox.js +101 -8
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +43 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.d.ts +7 -1
- package/dist/es/radiobutton/RadioButton.js +8 -0
- package/dist/es/radiobutton/RadioGroup.d.ts +7 -1
- package/dist/es/radiobutton/RadioGroup.js +8 -0
- package/dist/es/range-slider/RangeSlider.d.ts +8 -0
- package/dist/es/range-slider/RangeSlider.js +10 -0
- package/dist/es/slider/Slider.d.ts +8 -2
- package/dist/es/slider/Slider.js +8 -0
- package/dist/es/slider/SliderLabel.d.ts +8 -0
- package/dist/es/slider/SliderLabel.js +10 -1
- package/dist/es/switch/Switch.d.ts +8 -0
- package/dist/es/switch/Switch.js +10 -1
- package/dist/es/textarea/TextArea.d.ts +36 -0
- package/dist/es/textarea/TextArea.js +171 -30
- package/dist/es/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/es/{numerictextbox/interfaces/NumericTextBoxHandle.js → textarea/interfaces/TextAreaFlow.js} +0 -0
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +49 -0
- package/dist/es/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/es/textarea/interfaces/TextAreaResize.js +0 -0
- package/dist/npm/additionalTypes.ts +11 -0
- package/dist/npm/checkbox/Checkbox.d.ts +7 -1
- package/dist/npm/checkbox/Checkbox.js +8 -0
- package/dist/npm/colors/ColorPalette.d.ts +6 -0
- package/dist/npm/colors/ColorPalette.js +8 -1
- package/dist/npm/colors/ColorPicker.d.ts +6 -0
- package/dist/npm/colors/ColorPicker.js +8 -1
- package/dist/npm/colors/Picker.d.ts +6 -0
- package/dist/npm/colors/Picker.js +8 -1
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +4 -13
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerPopupSettings.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/npm/colors/interfaces/ColorPickerView.d.ts +3 -0
- package/dist/npm/input/Input.d.ts +19 -9
- package/dist/npm/input/Input.js +19 -3
- package/dist/npm/input-separator/InputSeparator.d.ts +19 -0
- package/dist/npm/input-separator/InputSeparator.js +46 -0
- package/dist/npm/main.d.ts +1 -0
- package/dist/npm/main.js +1 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +4 -1
- package/dist/npm/maskedtextbox/MaskedTextBox.js +94 -19
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +32 -0
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +6 -0
- package/dist/npm/numerictextbox/NumericTextBox.js +100 -7
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +43 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.d.ts +7 -1
- package/dist/npm/radiobutton/RadioButton.js +8 -0
- package/dist/npm/radiobutton/RadioGroup.d.ts +7 -1
- package/dist/npm/radiobutton/RadioGroup.js +8 -0
- package/dist/npm/range-slider/RangeSlider.d.ts +8 -0
- package/dist/npm/range-slider/RangeSlider.js +10 -0
- package/dist/npm/slider/Slider.d.ts +8 -2
- package/dist/npm/slider/Slider.js +8 -0
- package/dist/npm/slider/SliderLabel.d.ts +8 -0
- package/dist/npm/slider/SliderLabel.js +10 -1
- package/dist/npm/switch/Switch.d.ts +8 -0
- package/dist/npm/switch/Switch.js +10 -1
- package/dist/npm/textarea/TextArea.d.ts +36 -0
- package/dist/npm/textarea/TextArea.js +170 -29
- package/dist/npm/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/npm/textarea/interfaces/TextAreaFlow.js +2 -0
- package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +49 -0
- package/dist/npm/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/npm/textarea/interfaces/TextAreaResize.js +2 -0
- package/package.json +11 -10
- package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -5
|
@@ -28,7 +28,10 @@ var gh = allVue.h;
|
|
|
28
28
|
|
|
29
29
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
30
30
|
|
|
31
|
-
var package_metadata_1 = require("../package-metadata");
|
|
31
|
+
var package_metadata_1 = require("../package-metadata");
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
var TextAreaVue2 = {
|
|
@@ -93,6 +96,28 @@ var TextAreaVue2 = {
|
|
|
93
96
|
validityStyles: {
|
|
94
97
|
type: Boolean,
|
|
95
98
|
default: true
|
|
99
|
+
},
|
|
100
|
+
iconName: String,
|
|
101
|
+
inputPrefix: kendo_vue_common_1.templateDefinition,
|
|
102
|
+
inputSuffix: kendo_vue_common_1.templateDefinition,
|
|
103
|
+
showValidationIcon: Boolean,
|
|
104
|
+
showLoadingIcon: Boolean,
|
|
105
|
+
showClearButton: Boolean,
|
|
106
|
+
inputClass: String,
|
|
107
|
+
wrapperClass: String,
|
|
108
|
+
flow: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: 'horizontal',
|
|
111
|
+
validator: function validator(value) {
|
|
112
|
+
return ['horizontal', 'vertical'].includes(value);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
resizable: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: 'vertical',
|
|
118
|
+
validator: function validator(value) {
|
|
119
|
+
return ['both', 'horizontal', 'vertical', 'none'].includes(value);
|
|
120
|
+
}
|
|
96
121
|
}
|
|
97
122
|
},
|
|
98
123
|
created: function created() {
|
|
@@ -107,12 +132,46 @@ var TextAreaVue2 = {
|
|
|
107
132
|
size = _b.size,
|
|
108
133
|
fillMode = _b.fillMode,
|
|
109
134
|
rounded = _b.rounded,
|
|
110
|
-
required = _b.required
|
|
135
|
+
required = _b.required,
|
|
136
|
+
showLoadingIcon = _b.showLoadingIcon,
|
|
137
|
+
resizable = _b.resizable,
|
|
138
|
+
autoSize = _b.autoSize;
|
|
111
139
|
var invalid = this.validityStyles === true ? !this.isValid : false;
|
|
112
140
|
return _a = {
|
|
113
141
|
'k-input': true,
|
|
114
142
|
'k-textarea': true
|
|
115
|
-
}, _a["k-input-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-disabled'] = this.$props.disabled, _a['k-invalid'] = invalid, _a['k-required'] = required, _a;
|
|
143
|
+
}, _a["k-input-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-disabled'] = this.$props.disabled, _a['k-invalid'] = invalid, _a['k-required'] = required, _a['k-loading'] = showLoadingIcon, _a["k-resize-" + resizable] = autoSize ? 'none' : resizable, _a['!k-flex-col'] = this.flow === 'vertical', _a['!k-flex-row'] = this.flow === 'horizontal', _a[this.wrapperClass] = this.wrapperClass, _a;
|
|
144
|
+
},
|
|
145
|
+
inputInnerClass: function inputInnerClass() {
|
|
146
|
+
var _a;
|
|
147
|
+
|
|
148
|
+
return _a = {
|
|
149
|
+
'k-input-inner': true,
|
|
150
|
+
'!k-resize-none': true,
|
|
151
|
+
'k-flex': true
|
|
152
|
+
}, _a[this.inputClass] = this.inputClass, _a;
|
|
153
|
+
},
|
|
154
|
+
prefixRenderClass: function prefixRenderClass() {
|
|
155
|
+
return {
|
|
156
|
+
'k-input-prefix': true,
|
|
157
|
+
'!k-flex-col': this.flow === 'horizontal',
|
|
158
|
+
'!k-flex-row': this.flow === 'vertical',
|
|
159
|
+
'!k-align-items-start': this.flow === 'horizontal'
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
suffixRenderClass: function suffixRenderClass() {
|
|
163
|
+
return {
|
|
164
|
+
'k-input-suffix': true,
|
|
165
|
+
'!k-flex-col': this.flow === 'horizontal',
|
|
166
|
+
'!k-flex-row': this.flow === 'vertical',
|
|
167
|
+
'!k-align-items-start': this.flow === 'horizontal'
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
suffixIconWrapClass: function suffixIconWrapClass() {
|
|
171
|
+
return {
|
|
172
|
+
'k-flex-wrap': true,
|
|
173
|
+
'!k-align-items-start': true
|
|
174
|
+
};
|
|
116
175
|
},
|
|
117
176
|
computedValue: function computedValue() {
|
|
118
177
|
return this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
@@ -128,6 +187,11 @@ var TextAreaVue2 = {
|
|
|
128
187
|
currentDir: 'ltr'
|
|
129
188
|
};
|
|
130
189
|
},
|
|
190
|
+
watch: {
|
|
191
|
+
size: function size() {
|
|
192
|
+
this.textAreaHeight = 'auto';
|
|
193
|
+
}
|
|
194
|
+
},
|
|
131
195
|
mounted: function mounted() {
|
|
132
196
|
this.element = this.v3 ? this.elementRef : this.$refs.element;
|
|
133
197
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir : kendo_vue_common_1.isRtl(this.$el) ? 'rtl' : 'ltr';
|
|
@@ -160,7 +224,11 @@ var TextAreaVue2 = {
|
|
|
160
224
|
id = _a.id,
|
|
161
225
|
name = _a.name,
|
|
162
226
|
placeholder = _a.placeholder,
|
|
163
|
-
tabIndex = _a.tabIndex
|
|
227
|
+
tabIndex = _a.tabIndex,
|
|
228
|
+
iconName = _a.iconName,
|
|
229
|
+
showValidationIcon = _a.showValidationIcon,
|
|
230
|
+
showLoadingIcon = _a.showLoadingIcon,
|
|
231
|
+
showClearButton = _a.showClearButton;
|
|
164
232
|
|
|
165
233
|
var textAreaAttrs = __assign({
|
|
166
234
|
id: id || this.calculatedId,
|
|
@@ -177,14 +245,31 @@ var TextAreaVue2 = {
|
|
|
177
245
|
'aria-disabled': disabled || undefined
|
|
178
246
|
}, this.$attrs);
|
|
179
247
|
|
|
248
|
+
var inputPrefixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputPrefix, kendo_vue_common_1.getListeners.call(this));
|
|
249
|
+
var inputSuffixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputSuffix, kendo_vue_common_1.getListeners.call(this));
|
|
250
|
+
var inputPrefix = kendo_vue_common_1.getTemplate.call(this, {
|
|
251
|
+
h: h,
|
|
252
|
+
template: inputPrefixTemplate,
|
|
253
|
+
additionalProps: {
|
|
254
|
+
value: this.computedValue,
|
|
255
|
+
valid: this.isValid
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
var inputSuffix = kendo_vue_common_1.getTemplate.call(this, {
|
|
259
|
+
h: h,
|
|
260
|
+
template: inputSuffixTemplate,
|
|
261
|
+
additionalProps: {
|
|
262
|
+
value: this.computedValue,
|
|
263
|
+
valid: this.isValid
|
|
264
|
+
}
|
|
265
|
+
});
|
|
180
266
|
var textarea = h('textarea', __assign(__assign({}, textAreaAttrs), {
|
|
181
267
|
attrs: this.v3 ? undefined : textAreaAttrs,
|
|
182
|
-
|
|
268
|
+
class: this.inputInnerClass,
|
|
183
269
|
ref: this.v3 ? function (el) {
|
|
184
270
|
_this.elementRef = el;
|
|
185
271
|
} : 'element',
|
|
186
272
|
style: autoSize ? {
|
|
187
|
-
resize: 'none',
|
|
188
273
|
overflow: 'hidden',
|
|
189
274
|
height: this.textAreaHeight
|
|
190
275
|
} : {},
|
|
@@ -205,12 +290,44 @@ var TextAreaVue2 = {
|
|
|
205
290
|
}));
|
|
206
291
|
return h("span", {
|
|
207
292
|
"class": this.rootClassName,
|
|
208
|
-
dir: this.currentDir,
|
|
293
|
+
dir: this.currentDir === 'rtl' ? this.currentDir : '',
|
|
209
294
|
attrs: this.v3 ? undefined : {
|
|
210
|
-
dir: this.currentDir
|
|
295
|
+
dir: this.currentDir === 'rtl' ? this.currentDir : ''
|
|
211
296
|
},
|
|
212
297
|
style: this.$attrs.style
|
|
213
|
-
}, [
|
|
298
|
+
}, [this.$props.inputPrefix && h("span", {
|
|
299
|
+
"class": this.prefixRenderClass
|
|
300
|
+
}, [inputPrefix]), h("span", {
|
|
301
|
+
"class": "k-hstack k-flex"
|
|
302
|
+
}, [iconName && h("span", {
|
|
303
|
+
"class": "k-flex-wrap"
|
|
304
|
+
}, [h("span", {
|
|
305
|
+
"class": "k-input-icon k-icon k-i-" + iconName
|
|
306
|
+
})]), textarea, showValidationIcon && this.isValid && h("span", {
|
|
307
|
+
"class": this.suffixIconWrapClass
|
|
308
|
+
}, [h("span", {
|
|
309
|
+
"class": "k-input-validation-icon k-icon k-i-check"
|
|
310
|
+
})]), showValidationIcon && !this.isValid && h("span", {
|
|
311
|
+
"class": this.suffixIconWrapClass
|
|
312
|
+
}, [h("span", {
|
|
313
|
+
"class": "k-input-validation-icon k-icon k-i-warning"
|
|
314
|
+
})]), showLoadingIcon && h("span", {
|
|
315
|
+
"class": this.suffixIconWrapClass
|
|
316
|
+
}, [h("span", {
|
|
317
|
+
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
318
|
+
})]), showClearButton && this.computedValue && h("span", {
|
|
319
|
+
"class": this.suffixIconWrapClass
|
|
320
|
+
}, [h("span", {
|
|
321
|
+
onClick: this.clearClick,
|
|
322
|
+
on: this.v3 ? undefined : {
|
|
323
|
+
"click": this.clearClick
|
|
324
|
+
},
|
|
325
|
+
"class": "k-clear-value"
|
|
326
|
+
}, [h("span", {
|
|
327
|
+
"class": "k-icon k-i-x"
|
|
328
|
+
})])])]), this.$props.inputSuffix && h("span", {
|
|
329
|
+
"class": this.suffixRenderClass
|
|
330
|
+
}, [inputSuffix])]);
|
|
214
331
|
},
|
|
215
332
|
methods: {
|
|
216
333
|
setValidity: function setValidity() {
|
|
@@ -222,13 +339,16 @@ var TextAreaVue2 = {
|
|
|
222
339
|
this.textAreaHeight = this.element.scrollHeight + "px";
|
|
223
340
|
}
|
|
224
341
|
},
|
|
342
|
+
clearClick: function clearClick(event) {
|
|
343
|
+
this.emitUpdate(event, 'change', '');
|
|
344
|
+
},
|
|
225
345
|
focus: function focus() {
|
|
226
346
|
if (this.element) {
|
|
227
347
|
this.element.focus();
|
|
228
348
|
}
|
|
229
349
|
},
|
|
230
|
-
|
|
231
|
-
var newValue =
|
|
350
|
+
emitUpdate: function emitUpdate(event, eventName, value) {
|
|
351
|
+
var newValue = value;
|
|
232
352
|
|
|
233
353
|
if (!this.$props.disabled) {
|
|
234
354
|
this.textAreaHeight = 'auto';
|
|
@@ -238,7 +358,7 @@ var TextAreaVue2 = {
|
|
|
238
358
|
if (!this.$props.disabled) {
|
|
239
359
|
this.$emit('changemodel', newValue);
|
|
240
360
|
this.$emit('update:modelValue', newValue);
|
|
241
|
-
this.$emit(
|
|
361
|
+
this.$emit(eventName, {
|
|
242
362
|
event: event,
|
|
243
363
|
component: this,
|
|
244
364
|
name: this.element.name,
|
|
@@ -246,24 +366,11 @@ var TextAreaVue2 = {
|
|
|
246
366
|
});
|
|
247
367
|
}
|
|
248
368
|
},
|
|
369
|
+
handleChange: function handleChange(event) {
|
|
370
|
+
this.emitUpdate(event, 'change', event.target.value);
|
|
371
|
+
},
|
|
249
372
|
handleInput: function handleInput(event) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (!this.$props.disabled) {
|
|
253
|
-
this.textAreaHeight = 'auto';
|
|
254
|
-
this.currentValue = newValue;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (!this.$props.disabled) {
|
|
258
|
-
this.$emit('changemodel', newValue);
|
|
259
|
-
this.$emit('update:modelValue', newValue);
|
|
260
|
-
this.$emit('input', {
|
|
261
|
-
event: event,
|
|
262
|
-
component: this,
|
|
263
|
-
name: this.element.name,
|
|
264
|
-
value: newValue
|
|
265
|
-
});
|
|
266
|
-
}
|
|
373
|
+
this.emitUpdate(event, 'input', event.target.value);
|
|
267
374
|
},
|
|
268
375
|
handleFocus: function handleFocus(event) {
|
|
269
376
|
if (!this.$props.disabled) {
|
|
@@ -286,5 +393,39 @@ var TextAreaVue2 = {
|
|
|
286
393
|
}
|
|
287
394
|
};
|
|
288
395
|
exports.TextAreaVue2 = TextAreaVue2;
|
|
396
|
+
/**
|
|
397
|
+
* Represents the [Kendo UI for Vue Native TextArea component]({% slug overview_textarea %}).
|
|
398
|
+
*
|
|
399
|
+
* Accepts properties of type [TextAreaProps]({% slug api_inputs_textareaprops %}).
|
|
400
|
+
* Obtaining the `ref` returns an object of type [TextAreaHandle]({% slug api_inputs_textareahandle %}).
|
|
401
|
+
*
|
|
402
|
+
*
|
|
403
|
+
* ```jsx
|
|
404
|
+
* <template>
|
|
405
|
+
* <k-form
|
|
406
|
+
* @submit="handleSubmit">
|
|
407
|
+
* <formcontent />
|
|
408
|
+
* </k-form>
|
|
409
|
+
* </template>
|
|
410
|
+
* <script>
|
|
411
|
+
* import { Form } from "@progress/kendo-vue-form";
|
|
412
|
+
* import FormContent from './FormContent.vue';
|
|
413
|
+
*
|
|
414
|
+
* export default {
|
|
415
|
+
* components: {
|
|
416
|
+
* 'k-form': Form,
|
|
417
|
+
* 'formcontent': FormContent
|
|
418
|
+
* },
|
|
419
|
+
* methods: {
|
|
420
|
+
* handleSubmit (dataItem) {
|
|
421
|
+
* alert(JSON.stringify(dataItem, null, 2));
|
|
422
|
+
* }
|
|
423
|
+
* }
|
|
424
|
+
* };
|
|
425
|
+
*
|
|
426
|
+
* </script>
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
|
|
289
430
|
var TextArea = TextAreaVue2;
|
|
290
431
|
exports.TextArea = TextArea;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the flow direction of the TextArea sections.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* * `vertical`(Default) —TextArea sections are placed from top to bottom.
|
|
6
|
+
* * `horizontal`—TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare type TextAreaFlow = 'horizontal' | 'vertical';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
2
2
|
import { TextAreaBlurEvent } from './TextAreaBlurEvent';
|
|
3
3
|
import { TextAreaChangeEvent } from './TextAreaChangeEvent';
|
|
4
|
+
import { TextAreaFlow } from './TextAreaFlow';
|
|
4
5
|
import { TextAreaFocusEvent } from './TextAreaFocusEvent';
|
|
6
|
+
import { TextAreaResize } from './TextAreaResize';
|
|
5
7
|
/**
|
|
6
8
|
* Represents the props of the [Kendo UI for Vue TextArea component]({% slug overview_textarea %}).
|
|
7
9
|
*/
|
|
@@ -105,7 +107,54 @@ export interface TextAreaProps extends FormComponentProps {
|
|
|
105
107
|
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
106
108
|
*/
|
|
107
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
|
+
*/
|
|
108
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;
|
|
109
158
|
/**
|
|
110
159
|
* The event handler that will be fired when the changes the selected value.
|
|
111
160
|
*/
|
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-inputs",
|
|
3
3
|
"description": "Kendo UI for Vue Input package",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.6-dev.202206170937",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -38,21 +38,22 @@
|
|
|
38
38
|
"vue": "^2.6.12 || ^3.0.2"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@progress/kendo-vue-buttons": "3.3.
|
|
42
|
-
"@progress/kendo-vue-common": "3.3.
|
|
43
|
-
"@progress/kendo-vue-labels": "3.3.
|
|
44
|
-
"@progress/kendo-vue-popup": "3.3.
|
|
41
|
+
"@progress/kendo-vue-buttons": "3.3.6-dev.202206170937",
|
|
42
|
+
"@progress/kendo-vue-common": "3.3.6-dev.202206170937",
|
|
43
|
+
"@progress/kendo-vue-labels": "3.3.6-dev.202206170937",
|
|
44
|
+
"@progress/kendo-vue-popup": "3.3.6-dev.202206170937"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@progress/kendo-data-query": "^1.5.5",
|
|
48
48
|
"@progress/kendo-date-math": "^1.5.4",
|
|
49
49
|
"@progress/kendo-drawing": "^1.8.0",
|
|
50
50
|
"@progress/kendo-licensing": "^1.1.0",
|
|
51
|
-
"@progress/kendo-vue-buttons": "3.3.
|
|
52
|
-
"@progress/kendo-vue-
|
|
53
|
-
"@progress/kendo-vue-
|
|
54
|
-
"@progress/kendo-vue-
|
|
55
|
-
"@progress/kendo-vue-
|
|
51
|
+
"@progress/kendo-vue-buttons": "3.3.6-dev.202206170937",
|
|
52
|
+
"@progress/kendo-vue-dropdowns": "3.3.6-dev.202206170937",
|
|
53
|
+
"@progress/kendo-vue-form": "3.3.6-dev.202206170937",
|
|
54
|
+
"@progress/kendo-vue-intl": "3.3.6-dev.202206170937",
|
|
55
|
+
"@progress/kendo-vue-labels": "3.3.6-dev.202206170937",
|
|
56
|
+
"@progress/kendo-vue-tooltip": "3.3.6-dev.202206170937",
|
|
56
57
|
"cldr-core": "^34.0.0",
|
|
57
58
|
"cldr-dates-full": "^34.0.0",
|
|
58
59
|
"cldr-numbers-full": "^34.0.0"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
2
|
-
import { NumericTextBoxProps } from './NumericTextBoxProps';
|
|
3
|
-
/**
|
|
4
|
-
* The NumericTextBox ref.
|
|
5
|
-
*/
|
|
6
|
-
export interface NumericTextBoxHandle {
|
|
7
|
-
/**
|
|
8
|
-
* The NumericTextBox element.
|
|
9
|
-
*/
|
|
10
|
-
element: any;
|
|
11
|
-
/**
|
|
12
|
-
* Focus the NumericTextBox.
|
|
13
|
-
*/
|
|
14
|
-
focus: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the `name` property of the NumericTextBox.
|
|
17
|
-
*/
|
|
18
|
-
name: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Gets the value of the NumericTextBox.
|
|
21
|
-
*/
|
|
22
|
-
value: number | null;
|
|
23
|
-
/**
|
|
24
|
-
* Represents the validity state into which the NumericTextBox is set.
|
|
25
|
-
*/
|
|
26
|
-
validity: FormComponentValidity;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
props: NumericTextBoxProps;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
validityStyles: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
required: boolean;
|
|
39
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
2
|
-
import { NumericTextBoxProps } from './NumericTextBoxProps';
|
|
3
|
-
/**
|
|
4
|
-
* The NumericTextBox ref.
|
|
5
|
-
*/
|
|
6
|
-
export interface NumericTextBoxHandle {
|
|
7
|
-
/**
|
|
8
|
-
* The NumericTextBox element.
|
|
9
|
-
*/
|
|
10
|
-
element: any;
|
|
11
|
-
/**
|
|
12
|
-
* Focus the NumericTextBox.
|
|
13
|
-
*/
|
|
14
|
-
focus: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the `name` property of the NumericTextBox.
|
|
17
|
-
*/
|
|
18
|
-
name: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Gets the value of the NumericTextBox.
|
|
21
|
-
*/
|
|
22
|
-
value: number | null;
|
|
23
|
-
/**
|
|
24
|
-
* Represents the validity state into which the NumericTextBox is set.
|
|
25
|
-
*/
|
|
26
|
-
validity: FormComponentValidity;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
props: NumericTextBoxProps;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
validityStyles: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
required: boolean;
|
|
39
|
-
}
|