@progress/kendo-vue-inputs 3.9.1 → 3.9.2-dev.202304050903

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.
@@ -0,0 +1,208 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ import { FormComponentProps } from '@progress/kendo-vue-common';
3
+ declare type DefaultData<V> = object | ((this: V) => TextBoxData);
4
+ declare type DefaultMethods<V> = {
5
+ [key: string]: (this: V, ...args: any[]) => any;
6
+ };
7
+ /**
8
+ * Represents the props of the [Kendo UI for Vue TextBox component]({% slug overview_textbox %}).
9
+ * Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextBoxElement).
10
+ */
11
+ export interface TextBoxProps extends FormComponentProps {
12
+ /**
13
+ * Renders a floating label for the TextBox component.
14
+ */
15
+ id?: string;
16
+ label?: string;
17
+ value?: string | string[] | number;
18
+ modelValue?: string | number;
19
+ defaultValue?: string | string[] | number | undefined;
20
+ disabled?: boolean;
21
+ validate?: boolean;
22
+ /**
23
+ * Configures the `size` of the TextBox.
24
+ *
25
+ * The available options are:
26
+ * - small
27
+ * - medium
28
+ * - large
29
+ * - null&mdash;Does not set a size `class`.
30
+ *
31
+ * @default `medium`
32
+ */
33
+ size?: null | 'small' | 'medium' | 'large' | string;
34
+ /**
35
+ * Configures the `roundness` of the TextBox.
36
+ *
37
+ * The available options are:
38
+ * - small
39
+ * - medium
40
+ * - large
41
+ * - full
42
+ * - null&mdash;Does not set a rounded `class`.
43
+ *
44
+ * @default `medium`
45
+ */
46
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
47
+ /**
48
+ * Configures the `fillMode` of the TextBox.
49
+ *
50
+ * The available options are:
51
+ * - solid
52
+ * - outline
53
+ * - flat
54
+ * - null&mdash;Does not set a fillMode `class`.
55
+ *
56
+ * @default `solid`
57
+ */
58
+ fillMode?: null | 'solid' | 'flat' | 'outline' | string;
59
+ dir?: string;
60
+ /**
61
+ * Fires when the `change` event of the input is triggered.
62
+ */
63
+ onChange?: (event: any) => void;
64
+ /**
65
+ * Fires when the `input` event of the input is triggered.
66
+ */
67
+ onTextBox?: (event: any) => void;
68
+ /**
69
+ * Fires when the input is focused.
70
+ */
71
+ onFocus?: (event: any) => void;
72
+ /**
73
+ * Fires when the input is blurred.
74
+ */
75
+ onBlur?: (event: any) => void;
76
+ /**
77
+ * Fires when the 'keyup' input event is triggered.
78
+ */
79
+ onKeyup?: (event: any) => void;
80
+ /**
81
+ * Fires when the 'keydown' input event is triggered.
82
+ */
83
+ onKeydown?: (event: any) => void;
84
+ /**
85
+ * Fires when the 'keypress' input event is triggered.
86
+ */
87
+ onKeypress?: (event: any) => void;
88
+ /**
89
+ * Specifies the placeholder of an `input` element. Used to define if the input is empty.
90
+ */
91
+ placeholder?: string;
92
+ /**
93
+ * Defines a string prop that controls the input icon.
94
+ */
95
+ iconName?: String;
96
+ /**
97
+ * Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
98
+ */
99
+ inputPrefix?: Boolean | String | Object | Function;
100
+ /**
101
+ * Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
102
+ */
103
+ inputSuffix?: Boolean | String | Object | Function;
104
+ /**
105
+ * Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
106
+ */
107
+ showValidationIcon?: Boolean;
108
+ /**
109
+ * Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
110
+ */
111
+ showLoadingIcon?: Boolean;
112
+ /**
113
+ * Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
114
+ */
115
+ showClearButton?: Boolean;
116
+ /**
117
+ * Defines additional class to the wrapper element.
118
+ */
119
+ wrapperClass?: String;
120
+ /**
121
+ * Defines tabindex to the input element.
122
+ */
123
+ tabIndex?: Number;
124
+ /**
125
+ * Defines additional class to the input element.
126
+ */
127
+ inputClass?: String;
128
+ /**
129
+ * Identifies the element(s) which will label the component.
130
+ */
131
+ ariaDescribedBy?: string;
132
+ /**
133
+ * Defines a string value that labels an interactive element.
134
+ */
135
+ ariaLabelledBy?: string;
136
+ /**
137
+ * Defines the built-in [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength) property of the text inputs.
138
+ * * 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.
139
+ */
140
+ minlength?: string;
141
+ /**
142
+ * Defines the built-in [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength) property of the text inputs.
143
+ * * 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.
144
+ */
145
+ maxlength?: string;
146
+ }
147
+ /**
148
+ * @hidden
149
+ */
150
+ export interface TextBoxData {
151
+ hasMounted?: boolean;
152
+ autofill?: boolean;
153
+ currentValue?: string | string[] | number;
154
+ valueDuringOnChange?: string;
155
+ focused?: boolean;
156
+ }
157
+ /**
158
+ * @hidden
159
+ */
160
+ export interface TextBoxState {
161
+ inputRef: any;
162
+ _input: any;
163
+ wrapper: any;
164
+ _inputId?: string;
165
+ v3: boolean;
166
+ }
167
+ /**
168
+ * @hidden
169
+ */
170
+ export interface TextBoxMethods {
171
+ [key: string]: any;
172
+ emitBlur?: (_: any) => void;
173
+ emitFocus?: (_: any) => void;
174
+ focus?: () => void;
175
+ validity: () => any;
176
+ isInvalid: (state: any) => any;
177
+ setValidity: () => void;
178
+ handleTextBox?: () => void;
179
+ handleChange: (event: any) => void;
180
+ handleKeyup?: (event: any) => void;
181
+ handleKeydown?: (event: any) => void;
182
+ handleKeypress?: (event: any) => void;
183
+ handleAutoFill?: (e: any) => void;
184
+ handleAutoFillEnd?: (e: any) => void;
185
+ inputWrapperClass: () => any;
186
+ }
187
+ /**
188
+ * @hidden
189
+ */
190
+ export interface TextBoxComputed {
191
+ [key: string]: any;
192
+ computedValue?: any;
193
+ spanClassNames?: any;
194
+ }
195
+ /**
196
+ * @hidden
197
+ */
198
+ export interface TextBoxAllMethods extends Vue2type, TextBoxMethods, TextBoxComputed, TextBoxState {
199
+ }
200
+ /**
201
+ * @hidden
202
+ */
203
+ declare let TextBoxVue2: ComponentOptions<TextBoxAllMethods, DefaultData<TextBoxData>, DefaultMethods<TextBoxAllMethods>, TextBoxComputed, RecordPropsDefinition<TextBoxProps>>;
204
+ /**
205
+ * @hidden
206
+ */
207
+ declare const TextBox: DefineComponent<TextBoxProps, any, TextBoxData, TextBoxComputed, TextBoxMethods, {}, {}, {}, string, TextBoxProps, TextBoxProps, {}>;
208
+ export { TextBox, TextBoxVue2 };
@@ -0,0 +1,456 @@
1
+ "use strict";
2
+
3
+ var __assign = undefined && undefined.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) {
8
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
+ }
10
+ }
11
+ return t;
12
+ };
13
+ return __assign.apply(this, arguments);
14
+ };
15
+ Object.defineProperty(exports, "__esModule", {
16
+ value: true
17
+ });
18
+ exports.TextBoxVue2 = exports.TextBox = void 0;
19
+ // @ts-ignore
20
+ var Vue = require("vue");
21
+ var allVue = Vue;
22
+ var gh = allVue.h;
23
+ var isV3 = allVue.version && allVue.version[0] === '3';
24
+ var ref = allVue.ref;
25
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
26
+ var package_metadata_1 = require("../package-metadata");
27
+ var kendo_vue_labels_1 = require("@progress/kendo-vue-labels");
28
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
29
+ /**
30
+ * @hidden
31
+ */
32
+ var TextBoxVue2 = {
33
+ model: {
34
+ event: 'changemodel'
35
+ },
36
+ // @ts-ignore
37
+ emits: {
38
+ 'input': null,
39
+ 'change': null,
40
+ 'changemodel': null,
41
+ 'update:modelValue': null,
42
+ 'focus': null,
43
+ 'blur': null,
44
+ 'keyup': null,
45
+ 'keydown': null,
46
+ 'keypress': null
47
+ },
48
+ props: {
49
+ modelValue: {
50
+ type: [String, Number],
51
+ default: undefined
52
+ },
53
+ disabled: Boolean,
54
+ defaultValue: {
55
+ type: [String, Number],
56
+ default: ''
57
+ },
58
+ value: {
59
+ type: [String, Number]
60
+ },
61
+ label: {
62
+ type: String
63
+ },
64
+ placeholder: {
65
+ type: String
66
+ },
67
+ required: {
68
+ type: Boolean,
69
+ default: false
70
+ },
71
+ size: {
72
+ type: String,
73
+ default: 'medium',
74
+ validator: function validator(value) {
75
+ return [null, 'small', 'medium', 'large'].includes(value);
76
+ }
77
+ },
78
+ rounded: {
79
+ type: String,
80
+ default: 'medium',
81
+ validator: function validator(value) {
82
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
83
+ }
84
+ },
85
+ fillMode: {
86
+ type: String,
87
+ default: 'solid',
88
+ validator: function validator(value) {
89
+ return [null, 'solid', 'flat', 'outline'].includes(value);
90
+ }
91
+ },
92
+ dir: {
93
+ type: String
94
+ },
95
+ id: String,
96
+ valid: {
97
+ type: Boolean,
98
+ default: undefined
99
+ },
100
+ validate: {
101
+ type: Boolean
102
+ },
103
+ validationMessage: {
104
+ type: String
105
+ },
106
+ validityStyles: {
107
+ type: Boolean,
108
+ default: true
109
+ },
110
+ iconName: String,
111
+ inputPrefix: kendo_vue_common_1.templateDefinition,
112
+ inputSuffix: kendo_vue_common_1.templateDefinition,
113
+ showValidationIcon: Boolean,
114
+ showLoadingIcon: Boolean,
115
+ showClearButton: Boolean,
116
+ inputClass: String,
117
+ wrapperClass: String,
118
+ tabIndex: Number,
119
+ ariaLabelledBy: String,
120
+ ariaDescribedBy: String
121
+ },
122
+ data: function data() {
123
+ return {
124
+ hasMounted: false,
125
+ autofill: false,
126
+ currentValue: '',
127
+ valueDuringOnChange: '',
128
+ focused: false
129
+ };
130
+ },
131
+ created: function created() {
132
+ (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
133
+ this._input = undefined;
134
+ this._inputId = (0, kendo_vue_common_1.guid)();
135
+ this.$data.valueDuringOnChange = undefined;
136
+ this.$data.currentValue = this.$props.defaultValue;
137
+ },
138
+ mounted: function mounted() {
139
+ this._input = this.v3 ? this.inputRef : this.$refs.input;
140
+ this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
141
+ this.$data.hasMounted = true;
142
+ this.setValidity();
143
+ },
144
+ updated: function updated() {
145
+ this.setValidity();
146
+ this.updateValidClass();
147
+ },
148
+ // @ts-ignore
149
+ setup: !isV3 ? undefined : function () {
150
+ var v3 = !!isV3;
151
+ var inputRef = ref(null);
152
+ return {
153
+ v3: v3,
154
+ inputRef: inputRef
155
+ };
156
+ },
157
+ render: function render(createElement) {
158
+ var _this = this;
159
+ var h = gh || createElement;
160
+ var isValid = !this.$props.validityStyles || this.validity().valid;
161
+ var _a = this.$props,
162
+ label = _a.label,
163
+ id = _a.id,
164
+ required = _a.required,
165
+ iconName = _a.iconName,
166
+ showValidationIcon = _a.showValidationIcon,
167
+ showLoadingIcon = _a.showLoadingIcon,
168
+ showClearButton = _a.showClearButton,
169
+ tabIndex = _a.tabIndex,
170
+ ariaLabelledBy = _a.ariaLabelledBy,
171
+ ariaDescribedBy = _a.ariaDescribedBy;
172
+ var inputId = id || this._inputId;
173
+ var textbox = h('input', __assign(__assign({
174
+ domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
175
+ placeholder: this.$props.placeholder,
176
+ id: inputId,
177
+ required: required,
178
+ value: this.computedValue
179
+ }),
180
+ attrs: this.v3 ? undefined : __assign(__assign({}, this.$attrs), {
181
+ tabindex: tabIndex
182
+ })
183
+ }, this.$attrs), {
184
+ placeholder: this.$props.placeholder,
185
+ id: inputId,
186
+ tabindex: tabIndex,
187
+ required: required,
188
+ ariaLabelledby: ariaLabelledBy,
189
+ ariaDescribedby: ariaDescribedBy,
190
+ ariaDisabled: this.$props.disabled,
191
+ value: this.computedValue,
192
+ class: this.inputInnerClass,
193
+ ref: this.v3 ? function (el) {
194
+ _this.inputRef = el;
195
+ } : 'input',
196
+ on: this.v3 ? null : {
197
+ change: this.handleChange,
198
+ focus: this.emitFocus,
199
+ blur: this.emitBlur,
200
+ keydown: this.handleKeydown,
201
+ keyup: this.handleKeyup,
202
+ keypress: this.handleKeypress,
203
+ input: this.handleTextBox,
204
+ animationstart: this.handleAutoFill,
205
+ animationend: this.handleAutoFillEnd
206
+ },
207
+ onKeydown: this.handleKeydown,
208
+ onKeyup: this.handleKeyup,
209
+ onKeypress: this.handleKeypress,
210
+ onChange: this.handleChange,
211
+ onFocus: this.emitFocus,
212
+ onBlur: this.emitBlur,
213
+ onTextBox: this.handleTextBox,
214
+ onAnimationstart: this.handleAutoFill,
215
+ onAnimationend: this.handleAutoFillEnd
216
+ }));
217
+ var inputPrefixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputPrefix, kendo_vue_common_1.getListeners.call(this));
218
+ var inputSuffixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputSuffix, kendo_vue_common_1.getListeners.call(this));
219
+ var inputPrefix = kendo_vue_common_1.getTemplate.call(this, {
220
+ h: h,
221
+ template: inputPrefixTemplate,
222
+ additionalProps: {
223
+ value: this.computedValue,
224
+ valid: isValid
225
+ }
226
+ });
227
+ var inputSuffix = kendo_vue_common_1.getTemplate.call(this, {
228
+ h: h,
229
+ template: inputSuffixTemplate,
230
+ additionalProps: {
231
+ value: this.computedValue,
232
+ valid: isValid
233
+ }
234
+ });
235
+ var inputWrapper = h("span", {
236
+ "class": this.inputWrapperClass(),
237
+ ref: this.v3 ? function (el) {
238
+ _this.wrapperRef = el;
239
+ } : 'wrapper'
240
+ }, [iconName && h(kendo_vue_common_1.Icon, {
241
+ name: iconName,
242
+ attrs: this.v3 ? undefined : {
243
+ name: iconName
244
+ },
245
+ "class": "k-input-icon"
246
+ }), this.$props.inputPrefix && h("span", {
247
+ "class": "k-input-prefix"
248
+ }, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
249
+ "class": "k-input-suffix"
250
+ }, [inputSuffix]), showValidationIcon && isValid && h(kendo_vue_common_1.Icon, {
251
+ name: 'check',
252
+ attrs: this.v3 ? undefined : {
253
+ name: 'check',
254
+ icon: kendo_svg_icons_1.checkIcon
255
+ },
256
+ icon: kendo_svg_icons_1.checkIcon,
257
+ "class": "k-input-validation-icon"
258
+ }), showValidationIcon && !isValid && h(kendo_vue_common_1.Icon, {
259
+ name: 'exclamation-circle',
260
+ attrs: this.v3 ? undefined : {
261
+ name: 'exclamation-circle',
262
+ icon: kendo_svg_icons_1.exclamationCircleIcon
263
+ },
264
+ icon: kendo_svg_icons_1.exclamationCircleIcon,
265
+ "class": "k-input-validation-icon"
266
+ }), showLoadingIcon && h("span", {
267
+ "class": "k-input-loading-icon k-icon k-i-loading"
268
+ }), showClearButton && this.computedValue && h("span", {
269
+ onClick: this.clearClick,
270
+ on: this.v3 ? undefined : {
271
+ "click": this.clearClick
272
+ },
273
+ "class": "k-clear-value"
274
+ }, [h(kendo_vue_common_1.Icon, {
275
+ name: 'x',
276
+ attrs: this.v3 ? undefined : {
277
+ name: 'x',
278
+ icon: kendo_svg_icons_1.xIcon
279
+ },
280
+ icon: kendo_svg_icons_1.xIcon
281
+ })])]);
282
+ return label ?
283
+ // @ts-ignore function children
284
+ h(kendo_vue_labels_1.FloatingLabel, {
285
+ label: label,
286
+ attrs: this.v3 ? undefined : {
287
+ label: label,
288
+ editorId: inputId,
289
+ editorValue: this.computedValue,
290
+ editorValid: isValid,
291
+ editorDisabled: this.$props.disabled,
292
+ editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
293
+ dir: this.$props.dir
294
+ },
295
+ editorId: inputId,
296
+ editorValue: this.computedValue,
297
+ editorValid: isValid,
298
+ editorDisabled: this.$props.disabled,
299
+ editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
300
+ dir: this.$props.dir
301
+ }, this.v3 ? function () {
302
+ return [inputWrapper];
303
+ } : [inputWrapper]) : inputWrapper;
304
+ },
305
+ methods: {
306
+ updateValidClass: function updateValidClass() {
307
+ this.wrapper.classList.toggle('k-invalid', !this.validity().valid);
308
+ },
309
+ emitFocus: function emitFocus(e) {
310
+ this.$emit('focus', e);
311
+ this.$data.focused = true;
312
+ },
313
+ emitBlur: function emitBlur(e) {
314
+ this.$emit('blur', e);
315
+ this.$data.focused = false;
316
+ },
317
+ handleKeydown: function handleKeydown(e) {
318
+ this.$emit('keydown', e);
319
+ },
320
+ handleKeyup: function handleKeyup(e) {
321
+ this.$emit('keyup', e);
322
+ },
323
+ handleKeypress: function handleKeypress(e) {
324
+ this.$emit('keypress', e);
325
+ },
326
+ clearClick: function clearClick(event) {
327
+ this.emitUpdate(event, 'change', '');
328
+ },
329
+ focus: function focus() {
330
+ if (this._input) {
331
+ this._input.focus();
332
+ }
333
+ },
334
+ validity: function validity() {
335
+ var result = {
336
+ badTextBox: this._input ? this._input.validity.badTextBox : false,
337
+ patternMismatch: this._input ? this._input.validity.patternMismatch : false,
338
+ rangeOverflow: this._input ? this._input.validity.rangeOverflow : false,
339
+ rangeUnderflow: this._input ? this._input.validity.rangeUnderflow : false,
340
+ stepMismatch: this._input ? this._input.validity.stepMismatch : false,
341
+ tooLong: this._input ? this._input.validity.tooLong : false,
342
+ tooShort: this._input ? this._input.validity.tooShort : false,
343
+ typeMismatch: this._input ? this._input.validity.typeMismatch : false,
344
+ valueMissing: this._input ? this._input.validity.valueMissing : false
345
+ };
346
+ return __assign(__assign({}, result), {
347
+ customError: this.$props.validationMessage !== undefined,
348
+ valid: this.$props.valid !== undefined ? this.$props.valid : this._input ? !this.isInvalid(result) : true
349
+ });
350
+ },
351
+ isInvalid: function isInvalid(state) {
352
+ var result = false;
353
+ for (var prop in state) {
354
+ if (state.hasOwnProperty(prop)) {
355
+ result = result || state[prop];
356
+ }
357
+ }
358
+ return result;
359
+ },
360
+ setValidity: function setValidity() {
361
+ if (this._input && this._input.setCustomValidity) {
362
+ this._input.setCustomValidity(this.validity().valid ? '' : this.$props.validationMessage || '');
363
+ }
364
+ },
365
+ handleTextBox: function handleTextBox(event) {
366
+ this.emitUpdate(event, 'input', event.target.value);
367
+ },
368
+ handleChange: function handleChange(event) {
369
+ this.emitUpdate(event, 'change', event.target.value);
370
+ },
371
+ emitUpdate: function emitUpdate(event, eventName, value) {
372
+ var that = this;
373
+ if (this.disabled) {
374
+ return;
375
+ }
376
+ this.$data.currentValue = value;
377
+ this.$data.valueDuringOnChange = value;
378
+ this.$nextTick(function () {
379
+ that.$emit('changemodel', value);
380
+ that.$emit('update:modelValue', value);
381
+ that.$emit(eventName, {
382
+ event: event,
383
+ value: value,
384
+ component: that,
385
+ target: event.target,
386
+ validity: that.validity()
387
+ });
388
+ that.$data.valueDuringOnChange = undefined;
389
+ });
390
+ },
391
+ handleAutoFill: function handleAutoFill(e) {
392
+ if (e.animationName === 'autoFillStart') {
393
+ var parent_1 = e.target.parentNode;
394
+ if (parent_1 && parent_1.classList.contains('k-empty')) {
395
+ this.$data.autofill = true;
396
+ parent_1.classList.remove('k-empty');
397
+ }
398
+ }
399
+ },
400
+ handleAutoFillEnd: function handleAutoFillEnd(e) {
401
+ if (e.animationName === 'autoFillEnd') {
402
+ var parent_2 = e.target.parentNode;
403
+ if (parent_2) {
404
+ this.$data.autofill = false;
405
+ }
406
+ }
407
+ },
408
+ name: function name() {
409
+ return this.$props.name;
410
+ },
411
+ inputWrapperClass: function inputWrapperClass() {
412
+ var _a;
413
+ var _b = this.$props,
414
+ size = _b.size,
415
+ fillMode = _b.fillMode,
416
+ rounded = _b.rounded;
417
+ var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
418
+ return _a = {
419
+ 'k-textbox': true,
420
+ 'k-input': true
421
+ }, _a["k-input-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a[this.wrapperClass] = this.wrapperClass, _a;
422
+ }
423
+ },
424
+ computed: {
425
+ spanClassNames: {
426
+ get: function get() {
427
+ var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
428
+ return {
429
+ 'k-floating-label-container': true,
430
+ 'k-focus': this.$data.focused,
431
+ 'k-empty': !((this.computedValue === 0 ? true : this.computedValue) || this.$props.placeholder || this.$data.autofill),
432
+ 'k-autofill': this.$data.autofill,
433
+ 'k-invalid': !isValid && isValid !== undefined,
434
+ 'k-rtl': this.$props.dir === 'rtl'
435
+ };
436
+ }
437
+ },
438
+ inputInnerClass: function inputInnerClass() {
439
+ var _a;
440
+ return _a = {
441
+ 'k-input-inner': true
442
+ }, _a[this.inputClass] = this.inputClass, _a;
443
+ },
444
+ computedValue: {
445
+ get: function get() {
446
+ return this.$data.valueDuringOnChange !== undefined ? this.$data.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.$data.currentValue;
447
+ }
448
+ }
449
+ }
450
+ };
451
+ exports.TextBoxVue2 = TextBoxVue2;
452
+ /**
453
+ * @hidden
454
+ */
455
+ var TextBox = TextBoxVue2;
456
+ exports.TextBox = TextBox;
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.9.1",
4
+ "version": "3.9.2-dev.202304050903",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@progress/kendo-inputs-common": "^3.1.0",
49
- "@progress/kendo-vue-buttons": "3.9.1",
50
- "@progress/kendo-vue-common": "3.9.1",
51
- "@progress/kendo-vue-dialogs": "3.9.1",
52
- "@progress/kendo-vue-labels": "3.9.1",
53
- "@progress/kendo-vue-popup": "3.9.1"
49
+ "@progress/kendo-vue-buttons": "3.9.2-dev.202304050903",
50
+ "@progress/kendo-vue-common": "3.9.2-dev.202304050903",
51
+ "@progress/kendo-vue-dialogs": "3.9.2-dev.202304050903",
52
+ "@progress/kendo-vue-labels": "3.9.2-dev.202304050903",
53
+ "@progress/kendo-vue-popup": "3.9.2-dev.202304050903"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@progress/kendo-data-query": "^1.5.5",
@@ -59,13 +59,13 @@
59
59
  "@progress/kendo-file-saver": "^1.1.1",
60
60
  "@progress/kendo-licensing": "^1.3.0",
61
61
  "@progress/kendo-svg-icons": "^1.0.0",
62
- "@progress/kendo-vue-buttons": "3.9.1",
63
- "@progress/kendo-vue-dropdowns": "3.9.1",
64
- "@progress/kendo-vue-form": "3.9.1",
65
- "@progress/kendo-vue-intl": "3.9.1",
66
- "@progress/kendo-vue-labels": "3.9.1",
67
- "@progress/kendo-vue-tooltip": "3.9.1",
68
- "@progress/kendo-vue-upload": "3.9.1",
62
+ "@progress/kendo-vue-buttons": "3.9.2-dev.202304050903",
63
+ "@progress/kendo-vue-dropdowns": "3.9.2-dev.202304050903",
64
+ "@progress/kendo-vue-form": "3.9.2-dev.202304050903",
65
+ "@progress/kendo-vue-intl": "3.9.2-dev.202304050903",
66
+ "@progress/kendo-vue-labels": "3.9.2-dev.202304050903",
67
+ "@progress/kendo-vue-tooltip": "3.9.2-dev.202304050903",
68
+ "@progress/kendo-vue-upload": "3.9.2-dev.202304050903",
69
69
  "cldr-core": "^41.0.0",
70
70
  "cldr-dates-full": "^41.0.0",
71
71
  "cldr-numbers-full": "^41.0.0"