@progress/kendo-react-inputs 9.0.0-develop.2 → 9.0.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/README.md +63 -62
- package/colors/ColorContrastLabels.mjs +10 -1
- package/colors/ColorContrastSvg.mjs +14 -2
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +12 -9
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +13 -14
- package/colors/ColorPicker.mjs +62 -79
- package/colors/FlatColorPicker.mjs +68 -22
- package/colors/models/palette-presets.mjs +656 -12
- package/colors/utils/color-cache.js +1 -1
- package/colors/utils/color-cache.mjs +3 -6
- package/colors/utils/color-parser.js +1 -1
- package/colors/utils/color-parser.mjs +2 -5
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/input/Input.js +1 -1
- package/input/Input.mjs +14 -10
- package/input/InputClearValue.mjs +6 -11
- package/input/InputPrefix.mjs +17 -18
- package/input/InputSeparator.mjs +12 -10
- package/input/InputSuffix.mjs +17 -18
- package/input/InputValidationIcon.mjs +3 -1
- package/maskedtextbox/masking.service.js +1 -1
- package/maskedtextbox/masking.service.mjs +2 -2
- package/maskedtextbox/parsing/parsers.js +1 -1
- package/maskedtextbox/parsing/parsers.mjs +22 -23
- package/numerictextbox/NumericTextBox.mjs +259 -320
- package/numerictextbox/utils/index.mjs +16 -14
- package/package-metadata.mjs +1 -1
- package/package.json +8 -8
- package/radiobutton/RadioButton.mjs +7 -18
- package/radiobutton/RadioGroup.mjs +3 -6
- package/range-slider/RangeSlider.mjs +68 -62
- package/rating/Rating.mjs +73 -90
- package/rating/RatingItem.mjs +29 -50
- package/signature/Signature.mjs +60 -93
- package/slider/SliderLabel.mjs +6 -10
- package/switch/Switch.mjs +9 -5
- package/textarea/TextArea.mjs +19 -47
- package/textbox/Textbox.mjs +37 -55
|
@@ -16,107 +16,84 @@ import { packageMetadata as it } from "../package-metadata.mjs";
|
|
|
16
16
|
import { numericIncreaseValue as M, messages as T, numericDecreaseValue as z } from "../messages/index.mjs";
|
|
17
17
|
import { getInitialState as ve, formatValue as q, getStateOrPropsValue as X, rangeValue as G, sanitizeNumber as ye, decreaseValue as Ve, increaseValue as ke } from "./utils/index.mjs";
|
|
18
18
|
import { Button as Ce } from "@progress/kendo-react-buttons";
|
|
19
|
-
const ct = "Please enter a valid value!", dt = Ze(), Ee = n.forwardRef(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
19
|
+
const ct = "Please enter a valid value!", dt = Ze(), Ee = n.forwardRef(
|
|
20
|
+
(C, Se) => {
|
|
21
|
+
et(it);
|
|
22
|
+
const j = tt(
|
|
23
|
+
dt,
|
|
24
|
+
C
|
|
25
|
+
), {
|
|
26
|
+
className: xe,
|
|
27
|
+
value: b,
|
|
28
|
+
defaultValue: he,
|
|
29
|
+
format: l,
|
|
30
|
+
width: Z,
|
|
31
|
+
tabIndex: Ie,
|
|
32
|
+
accessKey: Oe,
|
|
33
|
+
title: Le,
|
|
34
|
+
placeholder: ee,
|
|
35
|
+
min: c,
|
|
36
|
+
max: d,
|
|
37
|
+
dir: te,
|
|
38
|
+
name: A,
|
|
39
|
+
label: I,
|
|
40
|
+
id: Pe,
|
|
41
|
+
ariaDescribedBy: Ne,
|
|
42
|
+
ariaLabelledBy: De,
|
|
43
|
+
ariaLabel: Re,
|
|
44
|
+
inputType: Fe,
|
|
45
|
+
readOnly: g,
|
|
46
|
+
validationMessage: _,
|
|
47
|
+
children: Be,
|
|
48
|
+
style: ne,
|
|
49
|
+
inputStyle: Me,
|
|
50
|
+
valid: H,
|
|
51
|
+
step: v = u.step,
|
|
52
|
+
spinners: Te = u.spinners,
|
|
53
|
+
disabled: o = u.disabled,
|
|
54
|
+
required: O = u.required,
|
|
55
|
+
validityStyles: re = u.validityStyles,
|
|
56
|
+
prefix: ze = u.prefix,
|
|
57
|
+
suffix: qe = u.suffix,
|
|
58
|
+
onChange: E = u.onChange,
|
|
59
|
+
onFocus: ae = u.onFocus,
|
|
60
|
+
onBlur: le = u.onBlur,
|
|
61
|
+
rangeOnEnter: se = u.rangeOnEnter,
|
|
62
|
+
size: K = u.size,
|
|
63
|
+
rounded: w = u.rounded,
|
|
64
|
+
fillMode: L = u.fillMode,
|
|
65
|
+
autoFocus: Ge = u.autoFocus,
|
|
66
|
+
...oe
|
|
67
|
+
} = j, je = nt(), ue = Pe || je, s = Qe(), P = Xe(), a = n.useRef(null), N = n.useRef(), [Ae, S] = n.useState(!1), i = n.useRef(ve()), D = n.useRef(!1), U = n.useRef(), x = n.useRef(he), h = q(
|
|
68
|
+
i.current.focused && !o ? i.current.currentLooseValue : X(b, x.current),
|
|
69
|
+
l,
|
|
70
|
+
s
|
|
71
|
+
);
|
|
72
|
+
U.current = h;
|
|
73
|
+
const [_e] = pe(ze), [He] = pe(qe);
|
|
74
|
+
n.useEffect(() => {
|
|
72
75
|
a.current && a.current.setCustomValidity && a.current.setCustomValidity(
|
|
73
76
|
B().valid ? "" : _ || ct
|
|
74
77
|
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const ie = n.useCallback(
|
|
78
|
-
() => {
|
|
78
|
+
});
|
|
79
|
+
const ie = n.useCallback(() => {
|
|
79
80
|
a.current && a.current.focus();
|
|
80
|
-
},
|
|
81
|
-
[]
|
|
82
|
-
), R = n.useCallback(
|
|
83
|
-
() => N.current !== void 0 ? N.current : X(b, x.current),
|
|
84
|
-
[b]
|
|
85
|
-
), ce = n.useCallback(
|
|
86
|
-
() => A,
|
|
87
|
-
[A]
|
|
88
|
-
), F = n.useCallback(
|
|
89
|
-
() => O,
|
|
90
|
-
[O]
|
|
91
|
-
), B = n.useCallback(
|
|
92
|
-
() => {
|
|
81
|
+
}, []), R = n.useCallback(() => N.current !== void 0 ? N.current : X(b, x.current), [b]), ce = n.useCallback(() => A, [A]), F = n.useCallback(() => O, [O]), B = n.useCallback(() => {
|
|
93
82
|
const r = _ !== void 0, e = R(), V = H !== void 0 ? H : !i.current.valueIsOutOfRange && (!F() || e != null);
|
|
94
83
|
return {
|
|
95
84
|
customError: r,
|
|
96
85
|
valid: V,
|
|
97
86
|
valueMissing: e == null
|
|
98
87
|
};
|
|
99
|
-
},
|
|
100
|
-
[_, H, R, F]
|
|
101
|
-
), $ = n.useCallback(
|
|
102
|
-
() => re,
|
|
103
|
-
[re]
|
|
104
|
-
), de = n.useCallback(
|
|
105
|
-
() => j,
|
|
106
|
-
[j]
|
|
107
|
-
), y = n.useCallback(
|
|
108
|
-
() => {
|
|
88
|
+
}, [_, H, R, F]), $ = n.useCallback(() => re, [re]), de = n.useCallback(() => j, [j]), y = n.useCallback(() => {
|
|
109
89
|
const r = {
|
|
110
90
|
element: a.current,
|
|
111
91
|
focus: ie
|
|
112
92
|
};
|
|
113
93
|
return Object.defineProperty(r, "name", { get: ce }), Object.defineProperty(r, "value", { get: R }), Object.defineProperty(r, "validity", { get: B }), Object.defineProperty(r, "validityStyles", { get: $ }), Object.defineProperty(r, "required", { get: F }), Object.defineProperty(r, "props", { get: de }), r;
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
n.useImperativeHandle(Se, y);
|
|
118
|
-
const f = n.useCallback(
|
|
119
|
-
() => ({
|
|
94
|
+
}, [ce, R, B, $, F, ie, de]);
|
|
95
|
+
n.useImperativeHandle(Se, y);
|
|
96
|
+
const f = n.useCallback(() => ({
|
|
120
97
|
eventValue: X(b, x.current),
|
|
121
98
|
prevLooseValue: U.current,
|
|
122
99
|
currentLooseValue: a.current.value,
|
|
@@ -127,223 +104,177 @@ const ct = "Please enter a valid value!", dt = Ze(), Ee = n.forwardRef((C, Se) =
|
|
|
127
104
|
valueIsOutOfRange: !1,
|
|
128
105
|
isPaste: D.current,
|
|
129
106
|
focused: i.current.focused
|
|
130
|
-
}),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const V = s.parseNumber(String(e.currentLooseValue), l);
|
|
156
|
-
if (e.selectionEnd > e.selectionStart && e.selectionEnd - e.selectionStart === String(e.currentLooseValue).length) {
|
|
157
|
-
const m = s.numberSymbols(), k = m && r.key === m.minusSign, J = m && r.key === m.decimal;
|
|
158
|
-
D.current = !k && !J;
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
switch (r.keyCode) {
|
|
162
|
-
case 38:
|
|
163
|
-
ke(
|
|
164
|
-
V,
|
|
165
|
-
e,
|
|
166
|
-
v,
|
|
167
|
-
c,
|
|
168
|
-
d,
|
|
169
|
-
l,
|
|
170
|
-
s
|
|
171
|
-
);
|
|
172
|
-
break;
|
|
173
|
-
case 40:
|
|
174
|
-
Ve(
|
|
175
|
-
V,
|
|
176
|
-
e,
|
|
177
|
-
v,
|
|
178
|
-
c,
|
|
179
|
-
d,
|
|
180
|
-
l,
|
|
181
|
-
s
|
|
182
|
-
);
|
|
183
|
-
break;
|
|
184
|
-
case 13: {
|
|
185
|
-
if (se === !1)
|
|
186
|
-
return;
|
|
187
|
-
const m = q(G(V, c, d), l, s), k = G(s.parseNumber(m, l), c, d);
|
|
188
|
-
e.eventValue = k, e.currentLooseValue = q(k, l, s), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
|
|
189
|
-
break;
|
|
107
|
+
}), [b]), p = n.useCallback(
|
|
108
|
+
(r, e) => {
|
|
109
|
+
if (o)
|
|
110
|
+
return;
|
|
111
|
+
N.current = e.eventValue, x.current = e.eventValue;
|
|
112
|
+
const V = q(G(e.eventValue, c, d), l, s), m = G(s.parseNumber(V, l), c, d);
|
|
113
|
+
m !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = m, x.current = m), b !== e.eventValue && Q(E, r, y(), {
|
|
114
|
+
value: e.eventValue
|
|
115
|
+
}), N.current = void 0, i.current = e, S((J) => !J);
|
|
116
|
+
},
|
|
117
|
+
[b, E, o, S, y]
|
|
118
|
+
), Ke = n.useCallback(
|
|
119
|
+
(r) => {
|
|
120
|
+
const e = f();
|
|
121
|
+
D.current = !1, p(r, ye(e, l, s));
|
|
122
|
+
},
|
|
123
|
+
[l, E, s, p, f]
|
|
124
|
+
), we = n.useCallback(
|
|
125
|
+
(r) => {
|
|
126
|
+
let e = f();
|
|
127
|
+
const V = s.parseNumber(String(e.currentLooseValue), l);
|
|
128
|
+
if (e.selectionEnd > e.selectionStart && e.selectionEnd - e.selectionStart === String(e.currentLooseValue).length) {
|
|
129
|
+
const m = s.numberSymbols(), k = m && r.key === m.minusSign, J = m && r.key === m.decimal;
|
|
130
|
+
D.current = !k && !J;
|
|
131
|
+
return;
|
|
190
132
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
133
|
+
switch (r.keyCode) {
|
|
134
|
+
case 38:
|
|
135
|
+
ke(V, e, v, c, d, l, s);
|
|
136
|
+
break;
|
|
137
|
+
case 40:
|
|
138
|
+
Ve(V, e, v, c, d, l, s);
|
|
139
|
+
break;
|
|
140
|
+
case 13: {
|
|
141
|
+
if (se === !1)
|
|
142
|
+
return;
|
|
143
|
+
const m = q(G(V, c, d), l, s), k = G(s.parseNumber(m, l), c, d);
|
|
144
|
+
e.eventValue = k, e.currentLooseValue = q(k, l, s), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
case 110: {
|
|
148
|
+
const m = a.current, k = s.numberSymbols();
|
|
149
|
+
m && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + k.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = ye(e, l, s));
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
default:
|
|
153
|
+
return;
|
|
195
154
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
[l, c, d, v, E, se, p, f]
|
|
202
|
-
), Ue = n.useCallback(
|
|
203
|
-
() => {
|
|
155
|
+
r.preventDefault(), p(r, e);
|
|
156
|
+
},
|
|
157
|
+
[l, c, d, v, E, se, p, f]
|
|
158
|
+
), Ue = n.useCallback(() => {
|
|
204
159
|
D.current = !0;
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
y(),
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
[ae, S, y]
|
|
255
|
-
), Ye = n.useCallback(
|
|
256
|
-
(r) => {
|
|
257
|
-
i.current = ve(), Q(
|
|
258
|
-
le,
|
|
259
|
-
r,
|
|
260
|
-
y(),
|
|
261
|
-
{}
|
|
262
|
-
), S((e) => !e);
|
|
263
|
-
},
|
|
264
|
-
[le, S, y]
|
|
265
|
-
), Je = n.useCallback(
|
|
266
|
-
(r) => {
|
|
160
|
+
}, []), W = n.useCallback(
|
|
161
|
+
(r) => {
|
|
162
|
+
if (g || o)
|
|
163
|
+
return;
|
|
164
|
+
const e = f();
|
|
165
|
+
ke(
|
|
166
|
+
s.parseNumber(String(e.currentLooseValue), l),
|
|
167
|
+
e,
|
|
168
|
+
v,
|
|
169
|
+
c,
|
|
170
|
+
d,
|
|
171
|
+
l,
|
|
172
|
+
s
|
|
173
|
+
), p(r, e);
|
|
174
|
+
},
|
|
175
|
+
[l, c, d, v, E, g, o, p, f]
|
|
176
|
+
), Y = n.useCallback(
|
|
177
|
+
(r) => {
|
|
178
|
+
if (g || o)
|
|
179
|
+
return;
|
|
180
|
+
const e = f();
|
|
181
|
+
Ve(
|
|
182
|
+
s.parseNumber(String(e.currentLooseValue), l),
|
|
183
|
+
e,
|
|
184
|
+
v,
|
|
185
|
+
c,
|
|
186
|
+
d,
|
|
187
|
+
l,
|
|
188
|
+
s
|
|
189
|
+
), p(r, e);
|
|
190
|
+
},
|
|
191
|
+
[l, c, d, v, E, g, o, p, f]
|
|
192
|
+
), $e = n.useCallback(
|
|
193
|
+
(r) => {
|
|
194
|
+
const e = be(document);
|
|
195
|
+
!document || e !== a.current || !a.current || g || o || (r.nativeEvent.deltaY < 0 && W(r), r.nativeEvent.deltaY > 0 && Y(r));
|
|
196
|
+
},
|
|
197
|
+
[W, Y, o, g]
|
|
198
|
+
), We = n.useCallback(
|
|
199
|
+
(r) => {
|
|
200
|
+
i.current.currentLooseValue = U.current, i.current.focused = !0, Q(ae, r, y(), {}), S((e) => !e);
|
|
201
|
+
},
|
|
202
|
+
[ae, S, y]
|
|
203
|
+
), Ye = n.useCallback(
|
|
204
|
+
(r) => {
|
|
205
|
+
i.current = ve(), Q(le, r, y(), {}), S((e) => !e);
|
|
206
|
+
},
|
|
207
|
+
[le, S, y]
|
|
208
|
+
), Je = n.useCallback((r) => {
|
|
267
209
|
if (document && a.current) {
|
|
268
210
|
const e = be(document);
|
|
269
211
|
r.preventDefault(), e !== a.current && a.current.focus();
|
|
270
212
|
}
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
);
|
|
274
|
-
rt(
|
|
275
|
-
() => {
|
|
213
|
+
}, []);
|
|
214
|
+
rt(() => {
|
|
276
215
|
a.current && a.current.type !== "number" && i.current.selectionStart !== void 0 && i.current.selectionEnd !== void 0 && (a.current.selectionStart = i.current.selectionStart, a.current.selectionEnd = i.current.selectionEnd, i.current.selectionStart = void 0, i.current.selectionEnd = void 0);
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
);
|
|
280
|
-
const me = !$() || B().valid, fe = /* @__PURE__ */ n.createElement(
|
|
281
|
-
"span",
|
|
282
|
-
{
|
|
283
|
-
dir: te,
|
|
284
|
-
style: I ? ne : { width: Z, ...ne },
|
|
285
|
-
className: at(
|
|
286
|
-
"k-input",
|
|
287
|
-
"k-numerictextbox",
|
|
288
|
-
{
|
|
289
|
-
[`k-input-${ge.sizeMap[K] || K}`]: K,
|
|
290
|
-
[`k-input-${L}`]: L,
|
|
291
|
-
[`k-rounded-${ge.roundedMap[w] || w}`]: w,
|
|
292
|
-
"k-invalid": !me,
|
|
293
|
-
"k-required": O,
|
|
294
|
-
"k-disabled": o
|
|
295
|
-
},
|
|
296
|
-
xe
|
|
297
|
-
),
|
|
298
|
-
"aria-disabled": o ? "true" : void 0,
|
|
299
|
-
...I ? {} : oe
|
|
300
|
-
},
|
|
301
|
-
/* @__PURE__ */ n.createElement(_e, null),
|
|
302
|
-
/* @__PURE__ */ n.createElement(
|
|
303
|
-
"input",
|
|
304
|
-
{
|
|
305
|
-
role: "spinbutton",
|
|
306
|
-
value: h === null ? "" : h,
|
|
307
|
-
tabIndex: lt(Ie, o),
|
|
308
|
-
accessKey: Oe,
|
|
309
|
-
disabled: o,
|
|
310
|
-
title: Le,
|
|
311
|
-
"aria-disabled": o ? "true" : void 0,
|
|
312
|
-
"aria-valuemin": c,
|
|
313
|
-
"aria-valuemax": d,
|
|
314
|
-
"aria-label": Re,
|
|
315
|
-
"aria-labelledby": De,
|
|
316
|
-
"aria-describedby": Ne,
|
|
317
|
-
"aria-required": O,
|
|
318
|
-
placeholder: ee,
|
|
319
|
-
spellCheck: !1,
|
|
320
|
-
autoComplete: "off",
|
|
321
|
-
autoCorrect: "off",
|
|
322
|
-
autoFocus: Ge,
|
|
323
|
-
type: Fe || "tel",
|
|
324
|
-
className: "k-input-inner",
|
|
325
|
-
id: ue,
|
|
326
|
-
name: A,
|
|
327
|
-
readOnly: g,
|
|
328
|
-
style: Me,
|
|
329
|
-
onChange: Ke,
|
|
330
|
-
onFocus: We,
|
|
331
|
-
onBlur: Ye,
|
|
332
|
-
onKeyDown: we,
|
|
333
|
-
onPaste: Ue,
|
|
334
|
-
onWheel: $e,
|
|
335
|
-
ref: a
|
|
336
|
-
}
|
|
337
|
-
),
|
|
338
|
-
/* @__PURE__ */ n.createElement(He, null),
|
|
339
|
-
Be,
|
|
340
|
-
Te && /* @__PURE__ */ n.createElement(
|
|
216
|
+
}, [Ae]);
|
|
217
|
+
const me = !$() || B().valid, fe = /* @__PURE__ */ n.createElement(
|
|
341
218
|
"span",
|
|
342
219
|
{
|
|
343
|
-
|
|
344
|
-
|
|
220
|
+
dir: te,
|
|
221
|
+
style: I ? ne : { width: Z, ...ne },
|
|
222
|
+
className: at(
|
|
223
|
+
"k-input",
|
|
224
|
+
"k-numerictextbox",
|
|
225
|
+
{
|
|
226
|
+
[`k-input-${ge.sizeMap[K] || K}`]: K,
|
|
227
|
+
[`k-input-${L}`]: L,
|
|
228
|
+
[`k-rounded-${ge.roundedMap[w] || w}`]: w,
|
|
229
|
+
"k-invalid": !me,
|
|
230
|
+
"k-required": O,
|
|
231
|
+
"k-disabled": o
|
|
232
|
+
},
|
|
233
|
+
xe
|
|
234
|
+
),
|
|
235
|
+
"aria-disabled": o ? "true" : void 0,
|
|
236
|
+
...I ? {} : oe
|
|
345
237
|
},
|
|
238
|
+
/* @__PURE__ */ n.createElement(_e, null),
|
|
346
239
|
/* @__PURE__ */ n.createElement(
|
|
240
|
+
"input",
|
|
241
|
+
{
|
|
242
|
+
role: "spinbutton",
|
|
243
|
+
value: h === null ? "" : h,
|
|
244
|
+
tabIndex: lt(Ie, o),
|
|
245
|
+
accessKey: Oe,
|
|
246
|
+
disabled: o,
|
|
247
|
+
title: Le,
|
|
248
|
+
"aria-disabled": o ? "true" : void 0,
|
|
249
|
+
"aria-valuemin": c,
|
|
250
|
+
"aria-valuemax": d,
|
|
251
|
+
"aria-label": Re,
|
|
252
|
+
"aria-labelledby": De,
|
|
253
|
+
"aria-describedby": Ne,
|
|
254
|
+
"aria-required": O,
|
|
255
|
+
placeholder: ee,
|
|
256
|
+
spellCheck: !1,
|
|
257
|
+
autoComplete: "off",
|
|
258
|
+
autoCorrect: "off",
|
|
259
|
+
autoFocus: Ge,
|
|
260
|
+
type: Fe || "tel",
|
|
261
|
+
className: "k-input-inner",
|
|
262
|
+
id: ue,
|
|
263
|
+
name: A,
|
|
264
|
+
readOnly: g,
|
|
265
|
+
style: Me,
|
|
266
|
+
onChange: Ke,
|
|
267
|
+
onFocus: We,
|
|
268
|
+
onBlur: Ye,
|
|
269
|
+
onKeyDown: we,
|
|
270
|
+
onPaste: Ue,
|
|
271
|
+
onWheel: $e,
|
|
272
|
+
ref: a
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ n.createElement(He, null),
|
|
276
|
+
Be,
|
|
277
|
+
Te && /* @__PURE__ */ n.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: Je }, /* @__PURE__ */ n.createElement(
|
|
347
278
|
Ce,
|
|
348
279
|
{
|
|
349
280
|
tabIndex: -1,
|
|
@@ -353,12 +284,17 @@ const ct = "Please enter a valid value!", dt = Ze(), Ee = n.forwardRef((C, Se) =
|
|
|
353
284
|
rounded: null,
|
|
354
285
|
fillMode: L,
|
|
355
286
|
className: "k-spinner-increase",
|
|
356
|
-
"aria-label": P.toLanguageString(
|
|
357
|
-
|
|
287
|
+
"aria-label": P.toLanguageString(
|
|
288
|
+
M,
|
|
289
|
+
T[M]
|
|
290
|
+
),
|
|
291
|
+
title: P.toLanguageString(
|
|
292
|
+
M,
|
|
293
|
+
T[M]
|
|
294
|
+
),
|
|
358
295
|
onClick: W
|
|
359
296
|
}
|
|
360
|
-
),
|
|
361
|
-
/* @__PURE__ */ n.createElement(
|
|
297
|
+
), /* @__PURE__ */ n.createElement(
|
|
362
298
|
Ce,
|
|
363
299
|
{
|
|
364
300
|
tabIndex: -1,
|
|
@@ -368,29 +304,35 @@ const ct = "Please enter a valid value!", dt = Ze(), Ee = n.forwardRef((C, Se) =
|
|
|
368
304
|
rounded: null,
|
|
369
305
|
fillMode: L,
|
|
370
306
|
className: "k-spinner-decrease",
|
|
371
|
-
"aria-label": P.toLanguageString(
|
|
372
|
-
|
|
307
|
+
"aria-label": P.toLanguageString(
|
|
308
|
+
z,
|
|
309
|
+
T[z]
|
|
310
|
+
),
|
|
311
|
+
title: P.toLanguageString(
|
|
312
|
+
z,
|
|
313
|
+
T[z]
|
|
314
|
+
),
|
|
373
315
|
onClick: Y
|
|
374
316
|
}
|
|
375
|
-
)
|
|
376
|
-
)
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
317
|
+
))
|
|
318
|
+
);
|
|
319
|
+
return I ? /* @__PURE__ */ n.createElement(
|
|
320
|
+
ut,
|
|
321
|
+
{
|
|
322
|
+
label: I,
|
|
323
|
+
editorId: ue,
|
|
324
|
+
editorValue: h === null ? "" : h,
|
|
325
|
+
editorValid: me,
|
|
326
|
+
editorDisabled: o,
|
|
327
|
+
editorPlaceholder: ee,
|
|
328
|
+
children: fe,
|
|
329
|
+
style: { width: Z },
|
|
330
|
+
dir: te,
|
|
331
|
+
...oe
|
|
332
|
+
}
|
|
333
|
+
) : fe;
|
|
334
|
+
}
|
|
335
|
+
);
|
|
394
336
|
Ee.propTypes = {
|
|
395
337
|
value: t.number,
|
|
396
338
|
defaultValue: t.number,
|
|
@@ -407,10 +349,7 @@ Ee.propTypes = {
|
|
|
407
349
|
maximumFractionDigits: t.number
|
|
408
350
|
})
|
|
409
351
|
]),
|
|
410
|
-
width: t.oneOfType([
|
|
411
|
-
t.string,
|
|
412
|
-
t.number
|
|
413
|
-
]),
|
|
352
|
+
width: t.oneOfType([t.string, t.number]),
|
|
414
353
|
tabIndex: t.number,
|
|
415
354
|
accessKey: t.string,
|
|
416
355
|
title: t.string,
|