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