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