@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.
@@ -25,7 +25,6 @@ var ref = allVue.ref;
25
25
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
26
26
  var package_metadata_1 = require("../package-metadata");
27
27
  var kendo_vue_labels_1 = require("@progress/kendo-vue-labels");
28
- var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
29
28
  /**
30
29
  * @hidden
31
30
  */
@@ -110,14 +109,7 @@ var InputVue2 = {
110
109
  type: Boolean,
111
110
  default: true
112
111
  },
113
- iconName: String,
114
- inputPrefix: kendo_vue_common_1.templateDefinition,
115
- inputSuffix: kendo_vue_common_1.templateDefinition,
116
- showValidationIcon: Boolean,
117
- showLoadingIcon: Boolean,
118
- showClearButton: Boolean,
119
112
  inputClass: String,
120
- wrapperClass: String,
121
113
  tabIndex: Number,
122
114
  ariaLabel: String,
123
115
  ariaLabelledBy: String,
@@ -141,7 +133,6 @@ var InputVue2 = {
141
133
  },
142
134
  mounted: function mounted() {
143
135
  this._input = this.v3 ? this.inputRef : this.$refs.input;
144
- this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
145
136
  this.$data.hasMounted = true;
146
137
  this.setValidity();
147
138
  },
@@ -166,10 +157,6 @@ var InputVue2 = {
166
157
  label = _a.label,
167
158
  id = _a.id,
168
159
  required = _a.required,
169
- iconName = _a.iconName,
170
- showValidationIcon = _a.showValidationIcon,
171
- showLoadingIcon = _a.showLoadingIcon,
172
- showClearButton = _a.showClearButton,
173
160
  tabIndex = _a.tabIndex,
174
161
  ariaLabel = _a.ariaLabel,
175
162
  ariaLabelledBy = _a.ariaLabelledBy,
@@ -222,75 +209,6 @@ var InputVue2 = {
222
209
  onAnimationstart: this.handleAutoFill,
223
210
  onAnimationend: this.handleAutoFillEnd
224
211
  }));
225
- var inputPrefixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputPrefix, kendo_vue_common_1.getListeners.call(this));
226
- var inputSuffixTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.inputSuffix, kendo_vue_common_1.getListeners.call(this));
227
- var inputPrefix = kendo_vue_common_1.getTemplate.call(this, {
228
- h: h,
229
- template: inputPrefixTemplate,
230
- additionalProps: {
231
- value: this.computedValue,
232
- valid: isValid
233
- }
234
- });
235
- var inputSuffix = kendo_vue_common_1.getTemplate.call(this, {
236
- h: h,
237
- template: inputSuffixTemplate,
238
- additionalProps: {
239
- value: this.computedValue,
240
- valid: isValid
241
- }
242
- });
243
- var inputWrapper = h("span", {
244
- "class": this.inputWrapperClass(),
245
- ref: this.v3 ? function (el) {
246
- _this.wrapperRef = el;
247
- } : 'wrapper'
248
- }, [iconName && h(kendo_vue_common_1.Icon, {
249
- name: iconName,
250
- attrs: this.v3 ? undefined : {
251
- name: iconName
252
- },
253
- "class": "k-input-icon"
254
- }), this.$props.inputPrefix && h("span", {
255
- "class": "k-input-prefix"
256
- }, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
257
- "class": "k-input-suffix"
258
- }, [inputSuffix]), showValidationIcon && isValid && h(kendo_vue_common_1.Icon, {
259
- name: 'check',
260
- attrs: this.v3 ? undefined : {
261
- name: 'check',
262
- icon: kendo_svg_icons_1.checkIcon
263
- },
264
- icon: kendo_svg_icons_1.checkIcon,
265
- "class": "k-input-validation-icon"
266
- }), showValidationIcon && !isValid && h(kendo_vue_common_1.Icon, {
267
- name: 'exclamation-circle',
268
- attrs: this.v3 ? undefined : {
269
- name: 'exclamation-circle',
270
- icon: kendo_svg_icons_1.exclamationCircleIcon
271
- },
272
- icon: kendo_svg_icons_1.exclamationCircleIcon,
273
- "class": "k-input-validation-icon"
274
- }), showLoadingIcon && h(kendo_vue_common_1.Icon, {
275
- name: 'loading',
276
- attrs: this.v3 ? undefined : {
277
- name: 'loading'
278
- },
279
- "class": 'k-input-loading-icon'
280
- }), showClearButton && this.computedValue && h("span", {
281
- onClick: this.clearClick,
282
- on: this.v3 ? undefined : {
283
- "click": this.clearClick
284
- },
285
- "class": "k-clear-value"
286
- }, [h(kendo_vue_common_1.Icon, {
287
- name: 'x',
288
- attrs: this.v3 ? undefined : {
289
- name: 'x',
290
- icon: kendo_svg_icons_1.xIcon
291
- },
292
- icon: kendo_svg_icons_1.xIcon
293
- })])]);
294
212
  return label ?
295
213
  // @ts-ignore function children
296
214
  h(kendo_vue_labels_1.FloatingLabel, {
@@ -311,12 +229,12 @@ var InputVue2 = {
311
229
  editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
312
230
  dir: this.$props.dir
313
231
  }, this.v3 ? function () {
314
- return [inputWrapper];
315
- } : [inputWrapper]) : inputWrapper;
232
+ return [textbox];
233
+ } : [textbox]) : textbox;
316
234
  },
317
235
  methods: {
318
236
  updateValidClass: function updateValidClass() {
319
- this.wrapper.classList.toggle('k-invalid', !this.validity().valid);
237
+ this._input.classList.toggle('k-invalid', !this.validity().valid);
320
238
  },
321
239
  emitFocus: function emitFocus(e) {
322
240
  this.$emit('focus', e);
@@ -419,18 +337,6 @@ var InputVue2 = {
419
337
  },
420
338
  name: function name() {
421
339
  return this.$props.name;
422
- },
423
- inputWrapperClass: function inputWrapperClass() {
424
- var _a;
425
- var _b = this.$props,
426
- size = _b.size,
427
- fillMode = _b.fillMode,
428
- rounded = _b.rounded;
429
- var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
430
- return _a = {
431
- 'k-textbox': true,
432
- 'k-input': true
433
- }, _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;
434
340
  }
435
341
  },
436
342
  computed: {
@@ -449,9 +355,14 @@ var InputVue2 = {
449
355
  },
450
356
  inputInnerClass: function inputInnerClass() {
451
357
  var _a;
358
+ var _b = this.$props,
359
+ size = _b.size,
360
+ fillMode = _b.fillMode,
361
+ rounded = _b.rounded;
362
+ var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
452
363
  return _a = {
453
- 'k-input-inner': true
454
- }, _a[this.inputClass] = this.inputClass, _a;
364
+ 'k-input': true
365
+ }, _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.inputClass] = this.inputClass, _a;
455
366
  },
456
367
  computedValue: {
457
368
  get: function get() {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-inputs',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1695898189,
11
+ publishDate: 1696420036,
12
12
  version: '',
13
13
  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'
14
14
  };
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.15.0-dev.202309281100",
4
+ "version": "4.0.0-dev.202310041201",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -47,11 +47,11 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@progress/kendo-inputs-common": "^3.1.0",
50
- "@progress/kendo-vue-buttons": "3.15.0-dev.202309281100",
51
- "@progress/kendo-vue-common": "3.15.0-dev.202309281100",
52
- "@progress/kendo-vue-dialogs": "3.15.0-dev.202309281100",
53
- "@progress/kendo-vue-labels": "3.15.0-dev.202309281100",
54
- "@progress/kendo-vue-popup": "3.15.0-dev.202309281100"
50
+ "@progress/kendo-vue-buttons": "4.0.0-dev.202310041201",
51
+ "@progress/kendo-vue-common": "4.0.0-dev.202310041201",
52
+ "@progress/kendo-vue-dialogs": "4.0.0-dev.202310041201",
53
+ "@progress/kendo-vue-labels": "4.0.0-dev.202310041201",
54
+ "@progress/kendo-vue-popup": "4.0.0-dev.202310041201"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@progress/kendo-data-query": "^1.5.5",
@@ -60,13 +60,13 @@
60
60
  "@progress/kendo-file-saver": "^1.1.1",
61
61
  "@progress/kendo-licensing": "^1.3.0",
62
62
  "@progress/kendo-svg-icons": "^1.0.0",
63
- "@progress/kendo-vue-buttons": "3.15.0-dev.202309281100",
64
- "@progress/kendo-vue-dropdowns": "3.15.0-dev.202309281100",
65
- "@progress/kendo-vue-form": "3.15.0-dev.202309281100",
66
- "@progress/kendo-vue-intl": "3.15.0-dev.202309281100",
67
- "@progress/kendo-vue-labels": "3.15.0-dev.202309281100",
68
- "@progress/kendo-vue-tooltip": "3.15.0-dev.202309281100",
69
- "@progress/kendo-vue-upload": "3.15.0-dev.202309281100",
63
+ "@progress/kendo-vue-buttons": "4.0.0-dev.202310041201",
64
+ "@progress/kendo-vue-dropdowns": "4.0.0-dev.202310041201",
65
+ "@progress/kendo-vue-form": "4.0.0-dev.202310041201",
66
+ "@progress/kendo-vue-intl": "4.0.0-dev.202310041201",
67
+ "@progress/kendo-vue-labels": "4.0.0-dev.202310041201",
68
+ "@progress/kendo-vue-tooltip": "4.0.0-dev.202310041201",
69
+ "@progress/kendo-vue-upload": "4.0.0-dev.202310041201",
70
70
  "cldr-core": "^41.0.0",
71
71
  "cldr-dates-full": "^41.0.0",
72
72
  "cldr-numbers-full": "^41.0.0"