@progress/kendo-vue-inputs 8.4.0-develop.1 → 8.4.0-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/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +40 -36
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +31 -27
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/textbox/TextBox.js +1 -1
- package/textbox/TextBox.mjs +24 -20
package/textbox/TextBox.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as V, h as
|
|
8
|
+
import { defineComponent as V, h as u, createVNode as a, ref as C, isVNode as _ } from "vue";
|
|
9
9
|
import { kendoThemeMaps as h, templateRendering as c, getListeners as f, getTemplate as m, Icon as s, validatePackage as w, guid as I } from "@progress/kendo-vue-common";
|
|
10
10
|
import { packageMetadata as M } from "../package-metadata.mjs";
|
|
11
11
|
import { FloatingLabel as B } from "@progress/kendo-vue-labels";
|
|
@@ -136,25 +136,25 @@ const R = /* @__PURE__ */ V({
|
|
|
136
136
|
id: e,
|
|
137
137
|
required: l,
|
|
138
138
|
iconName: o,
|
|
139
|
-
showValidationIcon:
|
|
139
|
+
showValidationIcon: p,
|
|
140
140
|
showLoadingIcon: g,
|
|
141
141
|
showClearButton: v,
|
|
142
|
-
inputAttributes:
|
|
143
|
-
} = this.$props,
|
|
142
|
+
inputAttributes: $
|
|
143
|
+
} = this.$props, d = e || this._inputId, y = u("input", {
|
|
144
144
|
...this.$attrs,
|
|
145
|
-
|
|
145
|
+
...$,
|
|
146
146
|
"aria-label": this.$props.ariaLabel,
|
|
147
147
|
role: this.$props.role,
|
|
148
148
|
title: this.$props.title,
|
|
149
149
|
tabindex: this.$props.tabIndex,
|
|
150
150
|
placeholder: this.$props.placeholder,
|
|
151
|
-
id:
|
|
151
|
+
id: d,
|
|
152
152
|
required: l,
|
|
153
153
|
disabled: this.$props.disabled,
|
|
154
154
|
value: this.computedValue,
|
|
155
155
|
class: this.inputInnerClass,
|
|
156
|
-
ref: (
|
|
157
|
-
this.inputRef =
|
|
156
|
+
ref: (r) => {
|
|
157
|
+
this.inputRef = r;
|
|
158
158
|
},
|
|
159
159
|
onKeydown: this.handleKeydown,
|
|
160
160
|
onKeyup: this.handleKeyup,
|
|
@@ -165,15 +165,15 @@ const R = /* @__PURE__ */ V({
|
|
|
165
165
|
onInput: this.handleInput,
|
|
166
166
|
onAnimationstart: this.handleAutoFill,
|
|
167
167
|
onAnimationend: this.handleAutoFillEnd
|
|
168
|
-
}), k = c.call(this, this.$props.prefix || this.$props.inputPrefix, f.call(this)), x = c.call(this, this.$props.suffix || this.$props.inputSuffix, f.call(this)),
|
|
169
|
-
h:
|
|
168
|
+
}), k = c.call(this, this.$props.prefix || this.$props.inputPrefix, f.call(this)), x = c.call(this, this.$props.suffix || this.$props.inputSuffix, f.call(this)), S = m.call(this, {
|
|
169
|
+
h: u,
|
|
170
170
|
template: k,
|
|
171
171
|
additionalProps: {
|
|
172
172
|
value: this.computedValue,
|
|
173
173
|
valid: t
|
|
174
174
|
}
|
|
175
|
-
}),
|
|
176
|
-
h:
|
|
175
|
+
}), b = m.call(this, {
|
|
176
|
+
h: u,
|
|
177
177
|
template: x,
|
|
178
178
|
additionalProps: {
|
|
179
179
|
value: this.computedValue,
|
|
@@ -181,21 +181,25 @@ const R = /* @__PURE__ */ V({
|
|
|
181
181
|
}
|
|
182
182
|
}), n = a("span", {
|
|
183
183
|
class: this.inputWrapperClass(),
|
|
184
|
-
ref: (
|
|
185
|
-
this.wrapperRef =
|
|
184
|
+
ref: (r) => {
|
|
185
|
+
this.wrapperRef = r;
|
|
186
186
|
}
|
|
187
187
|
}, [o && a(s, {
|
|
188
188
|
name: o,
|
|
189
189
|
class: "k-input-icon"
|
|
190
190
|
}, null), (this.$props.prefix || this.$props.inputPrefix) && a("span", {
|
|
191
|
-
class: "k-input-prefix"
|
|
192
|
-
}, [
|
|
193
|
-
class: "k-input-
|
|
194
|
-
},
|
|
191
|
+
class: "k-input-prefix k-input-prefix-horizontal"
|
|
192
|
+
}, [S]), (this.$props.prefix || this.$props.inputPrefix) && a("span", {
|
|
193
|
+
class: "k-input-separator k-input-separator-vertical"
|
|
194
|
+
}, null), y, (this.$props.suffix || this.$props.inputSuffix) && a("span", {
|
|
195
|
+
class: "k-input-separator k-input-separator-vertical"
|
|
196
|
+
}, null), (this.$props.suffix || this.$props.inputSuffix) && a("span", {
|
|
197
|
+
class: "k-input-suffix k-input-suffix-horizontal"
|
|
198
|
+
}, [b]), p && t && a(s, {
|
|
195
199
|
name: "check",
|
|
196
200
|
icon: F,
|
|
197
201
|
class: "k-input-validation-icon"
|
|
198
|
-
}, null),
|
|
202
|
+
}, null), p && !t && a(s, {
|
|
199
203
|
name: "exclamation-circle",
|
|
200
204
|
icon: N,
|
|
201
205
|
class: "k-input-validation-icon"
|
|
@@ -211,7 +215,7 @@ const R = /* @__PURE__ */ V({
|
|
|
211
215
|
}, null)])]);
|
|
212
216
|
return i ? a(B, {
|
|
213
217
|
label: i,
|
|
214
|
-
editorId:
|
|
218
|
+
editorId: d,
|
|
215
219
|
editorValue: this.computedValue,
|
|
216
220
|
editorValid: t,
|
|
217
221
|
editorDisabled: this.$props.disabled,
|