@progress/kendo-vue-inputs 3.15.0-dev.202309281100 → 4.0.0-dev.202310041201
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/colors/HexInput.js +1 -1
- package/dist/es/input/Input.d.ts +15 -1
- package/dist/es/input/Input.js +11 -100
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/colors/HexInput.js +1 -1
- package/dist/esm/input/Input.d.ts +15 -1
- package/dist/esm/input/Input.js +11 -100
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/colors/HexInput.js +2 -2
- package/dist/npm/input/Input.d.ts +15 -1
- package/dist/npm/input/Input.js +10 -99
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +13 -13
|
@@ -5,7 +5,7 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
import { parseColor } from './utils/color-parser';
|
|
7
7
|
import { isPresent } from './utils/misc';
|
|
8
|
-
import {
|
|
8
|
+
import { TextBox as KInput } from '../textbox/TextBox';
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
package/dist/es/input/Input.d.ts
CHANGED
|
@@ -91,30 +91,45 @@ export interface InputProps extends FormComponentProps {
|
|
|
91
91
|
placeholder?: string;
|
|
92
92
|
/**
|
|
93
93
|
* Defines a string prop that controls the input icon.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
94
96
|
*/
|
|
95
97
|
iconName?: String;
|
|
96
98
|
/**
|
|
97
99
|
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
98
102
|
*/
|
|
99
103
|
inputPrefix?: Boolean | String | Object | Function;
|
|
100
104
|
/**
|
|
101
105
|
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
106
|
+
*
|
|
107
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
102
108
|
*/
|
|
103
109
|
inputSuffix?: Boolean | String | Object | Function;
|
|
104
110
|
/**
|
|
105
111
|
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
106
114
|
*/
|
|
107
115
|
showValidationIcon?: Boolean;
|
|
108
116
|
/**
|
|
109
117
|
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
110
120
|
*/
|
|
111
121
|
showLoadingIcon?: Boolean;
|
|
112
122
|
/**
|
|
123
|
+
*
|
|
113
124
|
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
125
|
+
*
|
|
126
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
114
127
|
*/
|
|
115
128
|
showClearButton?: Boolean;
|
|
116
129
|
/**
|
|
117
130
|
* Defines additional class to the wrapper element.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
118
133
|
*/
|
|
119
134
|
wrapperClass?: String;
|
|
120
135
|
/**
|
|
@@ -164,7 +179,6 @@ export interface InputData {
|
|
|
164
179
|
export interface InputState {
|
|
165
180
|
inputRef: any;
|
|
166
181
|
_input: any;
|
|
167
|
-
wrapper: any;
|
|
168
182
|
_inputId?: string;
|
|
169
183
|
v3: boolean;
|
|
170
184
|
}
|
package/dist/es/input/Input.js
CHANGED
|
@@ -16,10 +16,9 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
var ref = allVue.ref;
|
|
19
|
-
import { guid,
|
|
19
|
+
import { guid, validatePackage, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
20
20
|
import { packageMetadata } from '../package-metadata';
|
|
21
21
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
22
|
-
import { checkIcon, exclamationCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
23
22
|
/**
|
|
24
23
|
* @hidden
|
|
25
24
|
*/
|
|
@@ -104,14 +103,7 @@ var InputVue2 = {
|
|
|
104
103
|
type: Boolean,
|
|
105
104
|
default: true
|
|
106
105
|
},
|
|
107
|
-
iconName: String,
|
|
108
|
-
inputPrefix: templateDefinition,
|
|
109
|
-
inputSuffix: templateDefinition,
|
|
110
|
-
showValidationIcon: Boolean,
|
|
111
|
-
showLoadingIcon: Boolean,
|
|
112
|
-
showClearButton: Boolean,
|
|
113
106
|
inputClass: String,
|
|
114
|
-
wrapperClass: String,
|
|
115
107
|
tabIndex: Number,
|
|
116
108
|
ariaLabel: String,
|
|
117
109
|
ariaLabelledBy: String,
|
|
@@ -135,7 +127,6 @@ var InputVue2 = {
|
|
|
135
127
|
},
|
|
136
128
|
mounted: function mounted() {
|
|
137
129
|
this._input = this.v3 ? this.inputRef : this.$refs.input;
|
|
138
|
-
this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
|
|
139
130
|
this.$data.hasMounted = true;
|
|
140
131
|
this.setValidity();
|
|
141
132
|
},
|
|
@@ -160,10 +151,6 @@ var InputVue2 = {
|
|
|
160
151
|
label = _a.label,
|
|
161
152
|
id = _a.id,
|
|
162
153
|
required = _a.required,
|
|
163
|
-
iconName = _a.iconName,
|
|
164
|
-
showValidationIcon = _a.showValidationIcon,
|
|
165
|
-
showLoadingIcon = _a.showLoadingIcon,
|
|
166
|
-
showClearButton = _a.showClearButton,
|
|
167
154
|
tabIndex = _a.tabIndex,
|
|
168
155
|
ariaLabel = _a.ariaLabel,
|
|
169
156
|
ariaLabelledBy = _a.ariaLabelledBy,
|
|
@@ -216,75 +203,6 @@ var InputVue2 = {
|
|
|
216
203
|
onAnimationstart: this.handleAutoFill,
|
|
217
204
|
onAnimationend: this.handleAutoFillEnd
|
|
218
205
|
}));
|
|
219
|
-
var inputPrefixTemplate = templateRendering.call(this, this.$props.inputPrefix, getListeners.call(this));
|
|
220
|
-
var inputSuffixTemplate = templateRendering.call(this, this.$props.inputSuffix, getListeners.call(this));
|
|
221
|
-
var inputPrefix = getTemplate.call(this, {
|
|
222
|
-
h: h,
|
|
223
|
-
template: inputPrefixTemplate,
|
|
224
|
-
additionalProps: {
|
|
225
|
-
value: this.computedValue,
|
|
226
|
-
valid: isValid
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
var inputSuffix = getTemplate.call(this, {
|
|
230
|
-
h: h,
|
|
231
|
-
template: inputSuffixTemplate,
|
|
232
|
-
additionalProps: {
|
|
233
|
-
value: this.computedValue,
|
|
234
|
-
valid: isValid
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
var inputWrapper = h("span", {
|
|
238
|
-
"class": this.inputWrapperClass(),
|
|
239
|
-
ref: this.v3 ? function (el) {
|
|
240
|
-
_this.wrapperRef = el;
|
|
241
|
-
} : 'wrapper'
|
|
242
|
-
}, [iconName && h(Icon, {
|
|
243
|
-
name: iconName,
|
|
244
|
-
attrs: this.v3 ? undefined : {
|
|
245
|
-
name: iconName
|
|
246
|
-
},
|
|
247
|
-
"class": "k-input-icon"
|
|
248
|
-
}), this.$props.inputPrefix && h("span", {
|
|
249
|
-
"class": "k-input-prefix"
|
|
250
|
-
}, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
|
|
251
|
-
"class": "k-input-suffix"
|
|
252
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
253
|
-
name: 'check',
|
|
254
|
-
attrs: this.v3 ? undefined : {
|
|
255
|
-
name: 'check',
|
|
256
|
-
icon: checkIcon
|
|
257
|
-
},
|
|
258
|
-
icon: checkIcon,
|
|
259
|
-
"class": "k-input-validation-icon"
|
|
260
|
-
}), showValidationIcon && !isValid && h(Icon, {
|
|
261
|
-
name: 'exclamation-circle',
|
|
262
|
-
attrs: this.v3 ? undefined : {
|
|
263
|
-
name: 'exclamation-circle',
|
|
264
|
-
icon: exclamationCircleIcon
|
|
265
|
-
},
|
|
266
|
-
icon: exclamationCircleIcon,
|
|
267
|
-
"class": "k-input-validation-icon"
|
|
268
|
-
}), showLoadingIcon && h(Icon, {
|
|
269
|
-
name: 'loading',
|
|
270
|
-
attrs: this.v3 ? undefined : {
|
|
271
|
-
name: 'loading'
|
|
272
|
-
},
|
|
273
|
-
"class": 'k-input-loading-icon'
|
|
274
|
-
}), showClearButton && this.computedValue && h("span", {
|
|
275
|
-
onClick: this.clearClick,
|
|
276
|
-
on: this.v3 ? undefined : {
|
|
277
|
-
"click": this.clearClick
|
|
278
|
-
},
|
|
279
|
-
"class": "k-clear-value"
|
|
280
|
-
}, [h(Icon, {
|
|
281
|
-
name: 'x',
|
|
282
|
-
attrs: this.v3 ? undefined : {
|
|
283
|
-
name: 'x',
|
|
284
|
-
icon: xIcon
|
|
285
|
-
},
|
|
286
|
-
icon: xIcon
|
|
287
|
-
})])]);
|
|
288
206
|
return label ?
|
|
289
207
|
// @ts-ignore function children
|
|
290
208
|
h(FloatingLabel, {
|
|
@@ -305,12 +223,12 @@ var InputVue2 = {
|
|
|
305
223
|
editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
|
|
306
224
|
dir: this.$props.dir
|
|
307
225
|
}, this.v3 ? function () {
|
|
308
|
-
return [
|
|
309
|
-
} : [
|
|
226
|
+
return [textbox];
|
|
227
|
+
} : [textbox]) : textbox;
|
|
310
228
|
},
|
|
311
229
|
methods: {
|
|
312
230
|
updateValidClass: function updateValidClass() {
|
|
313
|
-
this.
|
|
231
|
+
this._input.classList.toggle('k-invalid', !this.validity().valid);
|
|
314
232
|
},
|
|
315
233
|
emitFocus: function emitFocus(e) {
|
|
316
234
|
this.$emit('focus', e);
|
|
@@ -413,18 +331,6 @@ var InputVue2 = {
|
|
|
413
331
|
},
|
|
414
332
|
name: function name() {
|
|
415
333
|
return this.$props.name;
|
|
416
|
-
},
|
|
417
|
-
inputWrapperClass: function inputWrapperClass() {
|
|
418
|
-
var _a;
|
|
419
|
-
var _b = this.$props,
|
|
420
|
-
size = _b.size,
|
|
421
|
-
fillMode = _b.fillMode,
|
|
422
|
-
rounded = _b.rounded;
|
|
423
|
-
var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
|
|
424
|
-
return _a = {
|
|
425
|
-
'k-textbox': true,
|
|
426
|
-
'k-input': true
|
|
427
|
-
}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(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;
|
|
428
334
|
}
|
|
429
335
|
},
|
|
430
336
|
computed: {
|
|
@@ -443,9 +349,14 @@ var InputVue2 = {
|
|
|
443
349
|
},
|
|
444
350
|
inputInnerClass: function inputInnerClass() {
|
|
445
351
|
var _a;
|
|
352
|
+
var _b = this.$props,
|
|
353
|
+
size = _b.size,
|
|
354
|
+
fillMode = _b.fillMode,
|
|
355
|
+
rounded = _b.rounded;
|
|
356
|
+
var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
|
|
446
357
|
return _a = {
|
|
447
|
-
'k-input
|
|
448
|
-
}, _a[this.inputClass] = this.inputClass, _a;
|
|
358
|
+
'k-input': true
|
|
359
|
+
}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a[this.inputClass] = this.inputClass, _a;
|
|
449
360
|
},
|
|
450
361
|
computedValue: {
|
|
451
362
|
get: function get() {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-inputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1696420036,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
import { parseColor } from './utils/color-parser.js';
|
|
7
7
|
import { isPresent } from './utils/misc.js';
|
|
8
|
-
import {
|
|
8
|
+
import { TextBox as KInput } from '../textbox/TextBox.js';
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
@@ -91,30 +91,45 @@ export interface InputProps extends FormComponentProps {
|
|
|
91
91
|
placeholder?: string;
|
|
92
92
|
/**
|
|
93
93
|
* Defines a string prop that controls the input icon.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
94
96
|
*/
|
|
95
97
|
iconName?: String;
|
|
96
98
|
/**
|
|
97
99
|
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
98
102
|
*/
|
|
99
103
|
inputPrefix?: Boolean | String | Object | Function;
|
|
100
104
|
/**
|
|
101
105
|
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
106
|
+
*
|
|
107
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
102
108
|
*/
|
|
103
109
|
inputSuffix?: Boolean | String | Object | Function;
|
|
104
110
|
/**
|
|
105
111
|
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
106
114
|
*/
|
|
107
115
|
showValidationIcon?: Boolean;
|
|
108
116
|
/**
|
|
109
117
|
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
110
120
|
*/
|
|
111
121
|
showLoadingIcon?: Boolean;
|
|
112
122
|
/**
|
|
123
|
+
*
|
|
113
124
|
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
125
|
+
*
|
|
126
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
114
127
|
*/
|
|
115
128
|
showClearButton?: Boolean;
|
|
116
129
|
/**
|
|
117
130
|
* Defines additional class to the wrapper element.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
118
133
|
*/
|
|
119
134
|
wrapperClass?: String;
|
|
120
135
|
/**
|
|
@@ -164,7 +179,6 @@ export interface InputData {
|
|
|
164
179
|
export interface InputState {
|
|
165
180
|
inputRef: any;
|
|
166
181
|
_input: any;
|
|
167
|
-
wrapper: any;
|
|
168
182
|
_inputId?: string;
|
|
169
183
|
v3: boolean;
|
|
170
184
|
}
|
package/dist/esm/input/Input.js
CHANGED
|
@@ -16,10 +16,9 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
var ref = allVue.ref;
|
|
19
|
-
import { guid,
|
|
19
|
+
import { guid, validatePackage, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
20
20
|
import { packageMetadata } from '../package-metadata.js';
|
|
21
21
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
22
|
-
import { checkIcon, exclamationCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
23
22
|
/**
|
|
24
23
|
* @hidden
|
|
25
24
|
*/
|
|
@@ -104,14 +103,7 @@ var InputVue2 = {
|
|
|
104
103
|
type: Boolean,
|
|
105
104
|
default: true
|
|
106
105
|
},
|
|
107
|
-
iconName: String,
|
|
108
|
-
inputPrefix: templateDefinition,
|
|
109
|
-
inputSuffix: templateDefinition,
|
|
110
|
-
showValidationIcon: Boolean,
|
|
111
|
-
showLoadingIcon: Boolean,
|
|
112
|
-
showClearButton: Boolean,
|
|
113
106
|
inputClass: String,
|
|
114
|
-
wrapperClass: String,
|
|
115
107
|
tabIndex: Number,
|
|
116
108
|
ariaLabel: String,
|
|
117
109
|
ariaLabelledBy: String,
|
|
@@ -135,7 +127,6 @@ var InputVue2 = {
|
|
|
135
127
|
},
|
|
136
128
|
mounted: function mounted() {
|
|
137
129
|
this._input = this.v3 ? this.inputRef : this.$refs.input;
|
|
138
|
-
this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
|
|
139
130
|
this.$data.hasMounted = true;
|
|
140
131
|
this.setValidity();
|
|
141
132
|
},
|
|
@@ -160,10 +151,6 @@ var InputVue2 = {
|
|
|
160
151
|
label = _a.label,
|
|
161
152
|
id = _a.id,
|
|
162
153
|
required = _a.required,
|
|
163
|
-
iconName = _a.iconName,
|
|
164
|
-
showValidationIcon = _a.showValidationIcon,
|
|
165
|
-
showLoadingIcon = _a.showLoadingIcon,
|
|
166
|
-
showClearButton = _a.showClearButton,
|
|
167
154
|
tabIndex = _a.tabIndex,
|
|
168
155
|
ariaLabel = _a.ariaLabel,
|
|
169
156
|
ariaLabelledBy = _a.ariaLabelledBy,
|
|
@@ -216,75 +203,6 @@ var InputVue2 = {
|
|
|
216
203
|
onAnimationstart: this.handleAutoFill,
|
|
217
204
|
onAnimationend: this.handleAutoFillEnd
|
|
218
205
|
}));
|
|
219
|
-
var inputPrefixTemplate = templateRendering.call(this, this.$props.inputPrefix, getListeners.call(this));
|
|
220
|
-
var inputSuffixTemplate = templateRendering.call(this, this.$props.inputSuffix, getListeners.call(this));
|
|
221
|
-
var inputPrefix = getTemplate.call(this, {
|
|
222
|
-
h: h,
|
|
223
|
-
template: inputPrefixTemplate,
|
|
224
|
-
additionalProps: {
|
|
225
|
-
value: this.computedValue,
|
|
226
|
-
valid: isValid
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
var inputSuffix = getTemplate.call(this, {
|
|
230
|
-
h: h,
|
|
231
|
-
template: inputSuffixTemplate,
|
|
232
|
-
additionalProps: {
|
|
233
|
-
value: this.computedValue,
|
|
234
|
-
valid: isValid
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
var inputWrapper = h("span", {
|
|
238
|
-
"class": this.inputWrapperClass(),
|
|
239
|
-
ref: this.v3 ? function (el) {
|
|
240
|
-
_this.wrapperRef = el;
|
|
241
|
-
} : 'wrapper'
|
|
242
|
-
}, [iconName && h(Icon, {
|
|
243
|
-
name: iconName,
|
|
244
|
-
attrs: this.v3 ? undefined : {
|
|
245
|
-
name: iconName
|
|
246
|
-
},
|
|
247
|
-
"class": "k-input-icon"
|
|
248
|
-
}), this.$props.inputPrefix && h("span", {
|
|
249
|
-
"class": "k-input-prefix"
|
|
250
|
-
}, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
|
|
251
|
-
"class": "k-input-suffix"
|
|
252
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
253
|
-
name: 'check',
|
|
254
|
-
attrs: this.v3 ? undefined : {
|
|
255
|
-
name: 'check',
|
|
256
|
-
icon: checkIcon
|
|
257
|
-
},
|
|
258
|
-
icon: checkIcon,
|
|
259
|
-
"class": "k-input-validation-icon"
|
|
260
|
-
}), showValidationIcon && !isValid && h(Icon, {
|
|
261
|
-
name: 'exclamation-circle',
|
|
262
|
-
attrs: this.v3 ? undefined : {
|
|
263
|
-
name: 'exclamation-circle',
|
|
264
|
-
icon: exclamationCircleIcon
|
|
265
|
-
},
|
|
266
|
-
icon: exclamationCircleIcon,
|
|
267
|
-
"class": "k-input-validation-icon"
|
|
268
|
-
}), showLoadingIcon && h(Icon, {
|
|
269
|
-
name: 'loading',
|
|
270
|
-
attrs: this.v3 ? undefined : {
|
|
271
|
-
name: 'loading'
|
|
272
|
-
},
|
|
273
|
-
"class": 'k-input-loading-icon'
|
|
274
|
-
}), showClearButton && this.computedValue && h("span", {
|
|
275
|
-
onClick: this.clearClick,
|
|
276
|
-
on: this.v3 ? undefined : {
|
|
277
|
-
"click": this.clearClick
|
|
278
|
-
},
|
|
279
|
-
"class": "k-clear-value"
|
|
280
|
-
}, [h(Icon, {
|
|
281
|
-
name: 'x',
|
|
282
|
-
attrs: this.v3 ? undefined : {
|
|
283
|
-
name: 'x',
|
|
284
|
-
icon: xIcon
|
|
285
|
-
},
|
|
286
|
-
icon: xIcon
|
|
287
|
-
})])]);
|
|
288
206
|
return label ?
|
|
289
207
|
// @ts-ignore function children
|
|
290
208
|
h(FloatingLabel, {
|
|
@@ -305,12 +223,12 @@ var InputVue2 = {
|
|
|
305
223
|
editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
|
|
306
224
|
dir: this.$props.dir
|
|
307
225
|
}, this.v3 ? function () {
|
|
308
|
-
return [
|
|
309
|
-
} : [
|
|
226
|
+
return [textbox];
|
|
227
|
+
} : [textbox]) : textbox;
|
|
310
228
|
},
|
|
311
229
|
methods: {
|
|
312
230
|
updateValidClass: function updateValidClass() {
|
|
313
|
-
this.
|
|
231
|
+
this._input.classList.toggle('k-invalid', !this.validity().valid);
|
|
314
232
|
},
|
|
315
233
|
emitFocus: function emitFocus(e) {
|
|
316
234
|
this.$emit('focus', e);
|
|
@@ -413,18 +331,6 @@ var InputVue2 = {
|
|
|
413
331
|
},
|
|
414
332
|
name: function name() {
|
|
415
333
|
return this.$props.name;
|
|
416
|
-
},
|
|
417
|
-
inputWrapperClass: function inputWrapperClass() {
|
|
418
|
-
var _a;
|
|
419
|
-
var _b = this.$props,
|
|
420
|
-
size = _b.size,
|
|
421
|
-
fillMode = _b.fillMode,
|
|
422
|
-
rounded = _b.rounded;
|
|
423
|
-
var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
|
|
424
|
-
return _a = {
|
|
425
|
-
'k-textbox': true,
|
|
426
|
-
'k-input': true
|
|
427
|
-
}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(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;
|
|
428
334
|
}
|
|
429
335
|
},
|
|
430
336
|
computed: {
|
|
@@ -443,9 +349,14 @@ var InputVue2 = {
|
|
|
443
349
|
},
|
|
444
350
|
inputInnerClass: function inputInnerClass() {
|
|
445
351
|
var _a;
|
|
352
|
+
var _b = this.$props,
|
|
353
|
+
size = _b.size,
|
|
354
|
+
fillMode = _b.fillMode,
|
|
355
|
+
rounded = _b.rounded;
|
|
356
|
+
var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
|
|
446
357
|
return _a = {
|
|
447
|
-
'k-input
|
|
448
|
-
}, _a[this.inputClass] = this.inputClass, _a;
|
|
358
|
+
'k-input': true
|
|
359
|
+
}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a[this.inputClass] = this.inputClass, _a;
|
|
449
360
|
},
|
|
450
361
|
computedValue: {
|
|
451
362
|
get: function get() {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-inputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1696420036,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -11,7 +11,7 @@ var gh = allVue.h;
|
|
|
11
11
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
12
|
var color_parser_1 = require("./utils/color-parser");
|
|
13
13
|
var misc_1 = require("./utils/misc");
|
|
14
|
-
var
|
|
14
|
+
var TextBox_1 = require("../textbox/TextBox");
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
@@ -57,7 +57,7 @@ var HexInputVue2 = {
|
|
|
57
57
|
// @ts-ignore
|
|
58
58
|
render: function render(createElement) {
|
|
59
59
|
var h = gh || createElement;
|
|
60
|
-
return h(
|
|
60
|
+
return h(TextBox_1.TextBox, {
|
|
61
61
|
value: this.currentHex,
|
|
62
62
|
attrs: this.v3 ? undefined : {
|
|
63
63
|
value: this.currentHex,
|
|
@@ -91,30 +91,45 @@ export interface InputProps extends FormComponentProps {
|
|
|
91
91
|
placeholder?: string;
|
|
92
92
|
/**
|
|
93
93
|
* Defines a string prop that controls the input icon.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
94
96
|
*/
|
|
95
97
|
iconName?: String;
|
|
96
98
|
/**
|
|
97
99
|
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
98
102
|
*/
|
|
99
103
|
inputPrefix?: Boolean | String | Object | Function;
|
|
100
104
|
/**
|
|
101
105
|
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
106
|
+
*
|
|
107
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
102
108
|
*/
|
|
103
109
|
inputSuffix?: Boolean | String | Object | Function;
|
|
104
110
|
/**
|
|
105
111
|
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
106
114
|
*/
|
|
107
115
|
showValidationIcon?: Boolean;
|
|
108
116
|
/**
|
|
109
117
|
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
110
120
|
*/
|
|
111
121
|
showLoadingIcon?: Boolean;
|
|
112
122
|
/**
|
|
123
|
+
*
|
|
113
124
|
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
125
|
+
*
|
|
126
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
114
127
|
*/
|
|
115
128
|
showClearButton?: Boolean;
|
|
116
129
|
/**
|
|
117
130
|
* Defines additional class to the wrapper element.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated - From version 4.0.0 this functionality is moved in the Textbox component.
|
|
118
133
|
*/
|
|
119
134
|
wrapperClass?: String;
|
|
120
135
|
/**
|
|
@@ -164,7 +179,6 @@ export interface InputData {
|
|
|
164
179
|
export interface InputState {
|
|
165
180
|
inputRef: any;
|
|
166
181
|
_input: any;
|
|
167
|
-
wrapper: any;
|
|
168
182
|
_inputId?: string;
|
|
169
183
|
v3: boolean;
|
|
170
184
|
}
|