@progress/kendo-react-inputs 8.1.0-develop.21 → 8.1.0-develop.23
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 +1 -1
- package/index.d.ts +1 -1
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +194 -194
- 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
26
|
width: Z,
|
|
28
|
-
tabIndex:
|
|
29
|
-
accessKey:
|
|
27
|
+
tabIndex: Ie,
|
|
28
|
+
accessKey: Oe,
|
|
30
29
|
title: Le,
|
|
31
30
|
placeholder: ee,
|
|
32
31
|
min: c,
|
|
33
|
-
max:
|
|
34
|
-
spinners: Oe,
|
|
35
|
-
disabled: u,
|
|
32
|
+
max: d,
|
|
36
33
|
dir: te,
|
|
37
34
|
name: j,
|
|
38
|
-
label:
|
|
35
|
+
label: I,
|
|
39
36
|
id: Pe,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
ariaLabelledBy: Be,
|
|
45
|
-
required: q,
|
|
46
|
-
ariaLabel: Me,
|
|
47
|
-
inputType: Fe,
|
|
48
|
-
rangeOnEnter: re,
|
|
37
|
+
ariaDescribedBy: Ne,
|
|
38
|
+
ariaLabelledBy: De,
|
|
39
|
+
ariaLabel: Re,
|
|
40
|
+
inputType: Be,
|
|
49
41
|
readOnly: g,
|
|
50
|
-
onChange: C,
|
|
51
|
-
onFocus: ae,
|
|
52
|
-
onBlur: le,
|
|
53
42
|
validationMessage: A,
|
|
54
|
-
children:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
),
|
|
81
|
+
), D = n.useCallback(
|
|
82
|
+
() => P.current !== void 0 ? P.current : X(b, x.current),
|
|
83
|
+
[b]
|
|
84
|
+
), ce = n.useCallback(
|
|
85
85
|
() => j,
|
|
86
86
|
[j]
|
|
87
|
-
), D = n.useCallback(
|
|
88
|
-
() => q,
|
|
89
|
-
[q]
|
|
90
87
|
), R = n.useCallback(
|
|
88
|
+
() => H,
|
|
89
|
+
[H]
|
|
90
|
+
), B = n.useCallback(
|
|
91
91
|
() => {
|
|
92
|
-
const r = A !== void 0, e =
|
|
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
|
-
[A,
|
|
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
|
-
|
|
246
|
+
u.current.currentLooseValue = U.current, u.current.focused = !0, Q(
|
|
247
247
|
ae,
|
|
248
248
|
r,
|
|
249
|
-
|
|
249
|
+
y(),
|
|
250
250
|
{}
|
|
251
|
-
),
|
|
251
|
+
), S((e) => !e);
|
|
252
252
|
},
|
|
253
|
-
[ae,
|
|
254
|
-
),
|
|
253
|
+
[ae, S, y]
|
|
254
|
+
), We = n.useCallback(
|
|
255
255
|
(r) => {
|
|
256
|
-
|
|
256
|
+
u.current = ve(), Q(
|
|
257
257
|
le,
|
|
258
258
|
r,
|
|
259
|
-
|
|
259
|
+
y(),
|
|
260
260
|
{}
|
|
261
|
-
),
|
|
261
|
+
), S((e) => !e);
|
|
262
262
|
},
|
|
263
|
-
[le,
|
|
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(), X = 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
282
|
dir: te,
|
|
283
|
-
style:
|
|
284
|
-
className:
|
|
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":
|
|
312
|
+
"aria-valuemax": d,
|
|
313
|
+
"aria-label": Re,
|
|
314
|
+
"aria-labelledby": De,
|
|
315
|
+
"aria-describedby": Ne,
|
|
316
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:
|
|
322
|
+
id: ue,
|
|
323
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,13 +346,13 @@ const ot = "Please enter a valid value!", ct = Qe(), X = 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:
|
|
351
|
+
fillMode: O,
|
|
352
352
|
className: "k-spinner-increase",
|
|
353
|
-
"aria-label": L.toLanguageString(
|
|
354
|
-
title: L.toLanguageString(
|
|
355
|
-
onClick:
|
|
353
|
+
"aria-label": L.toLanguageString(M, F[M]),
|
|
354
|
+
title: L.toLanguageString(M, F[M]),
|
|
355
|
+
onClick: W
|
|
356
356
|
}
|
|
357
357
|
),
|
|
358
358
|
/* @__PURE__ */ n.createElement(
|
|
@@ -361,34 +361,34 @@ const ot = "Please enter a valid value!", ct = Qe(), X = n.forwardRef((k, Ee) =>
|
|
|
361
361
|
tabIndex: -1,
|
|
362
362
|
type: "button",
|
|
363
363
|
icon: "caret-alt-down",
|
|
364
|
-
svgIcon:
|
|
364
|
+
svgIcon: st,
|
|
365
365
|
rounded: null,
|
|
366
|
-
fillMode:
|
|
366
|
+
fillMode: O,
|
|
367
367
|
className: "k-spinner-decrease",
|
|
368
|
-
"aria-label": L.toLanguageString(
|
|
369
|
-
title: L.toLanguageString(
|
|
370
|
-
onClick:
|
|
368
|
+
"aria-label": L.toLanguageString(T, F[T]),
|
|
369
|
+
title: L.toLanguageString(T, F[T]),
|
|
370
|
+
onClick: Y
|
|
371
371
|
}
|
|
372
372
|
)
|
|
373
373
|
)
|
|
374
374
|
);
|
|
375
|
-
return
|
|
376
|
-
|
|
375
|
+
return I ? /* @__PURE__ */ n.createElement(
|
|
376
|
+
ot,
|
|
377
377
|
{
|
|
378
|
-
label:
|
|
379
|
-
editorId:
|
|
380
|
-
editorValue:
|
|
378
|
+
label: I,
|
|
379
|
+
editorId: ue,
|
|
380
|
+
editorValue: h === null ? "" : h,
|
|
381
381
|
editorValid: me,
|
|
382
|
-
editorDisabled:
|
|
382
|
+
editorDisabled: o,
|
|
383
383
|
editorPlaceholder: ee,
|
|
384
384
|
children: fe,
|
|
385
385
|
style: { width: Z },
|
|
386
386
|
dir: te,
|
|
387
|
-
...
|
|
387
|
+
...oe
|
|
388
388
|
}
|
|
389
389
|
) : fe;
|
|
390
390
|
});
|
|
391
|
-
|
|
391
|
+
Ee.propTypes = {
|
|
392
392
|
value: t.number,
|
|
393
393
|
defaultValue: t.number,
|
|
394
394
|
step: t.number,
|
|
@@ -434,27 +434,27 @@ X.propTypes = {
|
|
|
434
434
|
rounded: t.oneOf([null, "small", "medium", "large", "full"]),
|
|
435
435
|
fillMode: t.oneOf([null, "solid", "flat", "outline"])
|
|
436
436
|
};
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
suffix: (k) => null,
|
|
437
|
+
const i = {
|
|
438
|
+
prefix: (C) => null,
|
|
439
|
+
suffix: (C) => null,
|
|
441
440
|
step: 1,
|
|
442
441
|
spinners: !0,
|
|
443
442
|
disabled: !1,
|
|
444
443
|
required: !1,
|
|
445
444
|
validityStyles: !0,
|
|
446
445
|
rangeOnEnter: !0,
|
|
447
|
-
onChange: (
|
|
446
|
+
onChange: (C) => {
|
|
448
447
|
},
|
|
449
|
-
onFocus: (
|
|
448
|
+
onFocus: (C) => {
|
|
450
449
|
},
|
|
451
|
-
onBlur: (
|
|
450
|
+
onBlur: (C) => {
|
|
452
451
|
},
|
|
453
452
|
size: "medium",
|
|
454
453
|
rounded: "medium",
|
|
455
454
|
fillMode: "solid"
|
|
456
455
|
};
|
|
456
|
+
Ee.displayName = "KendoNumericTextBox";
|
|
457
457
|
export {
|
|
458
|
-
|
|
458
|
+
Ee as NumericTextBox,
|
|
459
459
|
ct as NumericTextBoxPropsContext
|
|
460
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: 1719227800,
|
|
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-develop.
|
|
3
|
+
"version": "8.1.0-develop.23",
|
|
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-develop.
|
|
29
|
-
"@progress/kendo-react-buttons": "8.1.0-develop.
|
|
30
|
-
"@progress/kendo-react-common": "8.1.0-develop.
|
|
31
|
-
"@progress/kendo-react-dialogs": "8.1.0-develop.
|
|
32
|
-
"@progress/kendo-react-intl": "8.1.0-develop.
|
|
33
|
-
"@progress/kendo-react-labels": "8.1.0-develop.
|
|
34
|
-
"@progress/kendo-react-popup": "8.1.0-develop.
|
|
28
|
+
"@progress/kendo-react-animation": "8.1.0-develop.23",
|
|
29
|
+
"@progress/kendo-react-buttons": "8.1.0-develop.23",
|
|
30
|
+
"@progress/kendo-react-common": "8.1.0-develop.23",
|
|
31
|
+
"@progress/kendo-react-dialogs": "8.1.0-develop.23",
|
|
32
|
+
"@progress/kendo-react-intl": "8.1.0-develop.23",
|
|
33
|
+
"@progress/kendo-react-labels": "8.1.0-develop.23",
|
|
34
|
+
"@progress/kendo-react-popup": "8.1.0-develop.23",
|
|
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"
|