@progress/kendo-react-inputs 14.5.0-develop.14 → 14.5.0-develop.15
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 +64 -64
- package/colors/ColorGradient.js +1 -1
- package/colors/ColorGradient.mjs +74 -72
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +57 -45
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +84 -81
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +162 -160
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +86 -94
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/messages/index.d.ts +55 -0
- package/messages/index.js +1 -1
- package/messages/index.mjs +82 -60
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +115 -115
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +23 -20
- package/radiobutton/interfaces/RadioButtonProps.d.ts +7 -0
- package/range-slider/RangeSlider.d.ts +8 -0
- package/range-slider/RangeSlider.js +11 -11
- package/range-slider/RangeSlider.mjs +189 -186
- package/rating/Rating.js +2 -2
- package/rating/Rating.mjs +3 -3
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +80 -84
- package/slider/Slider.js +1 -1
- package/slider/Slider.mjs +139 -131
- package/slider/SliderLabel.js +1 -1
- package/slider/SliderLabel.mjs +3 -2
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +52 -54
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +29 -31
|
@@ -8,98 +8,98 @@
|
|
|
8
8
|
import * as n from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
10
|
import { useInternationalization as tt, useLocalization as nt } from "@progress/kendo-react-intl";
|
|
11
|
-
import { usePropsContext as rt, useId as at, useCustomComponent as
|
|
11
|
+
import { usePropsContext as rt, useId as at, useCustomComponent as ye, useWebMcpRegister as ot, dispatchEvent as X, useKendoPaste as st, getActiveElement as Ve, useIsomorphicLayoutEffect as ut, classNames as lt, kendoThemeMaps as Ce, getTabIndex as it, createPropsContext as ct } from "@progress/kendo-react-common";
|
|
12
12
|
import { chevronUpIcon as dt, chevronDownIcon as mt } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { FloatingLabel as ft } from "@progress/kendo-react-labels";
|
|
14
14
|
import { numericIncreaseValue as A, messages as H, numericDecreaseValue as K } from "../messages/index.mjs";
|
|
15
|
-
import { getInitialState as
|
|
16
|
-
import { Button as
|
|
17
|
-
const bt = "Please enter a valid value!", pt =
|
|
18
|
-
(k,
|
|
15
|
+
import { getInitialState as ke, formatValue as N, getStateOrPropsValue as Z, rangeValue as P, sanitizeNumber as he, decreaseValue as Ee, increaseValue as Se } from "./utils/index.mjs";
|
|
16
|
+
import { Button as xe } from "@progress/kendo-react-buttons";
|
|
17
|
+
const bt = "Please enter a valid value!", pt = ct(), Ie = n.forwardRef(
|
|
18
|
+
(k, Le) => {
|
|
19
19
|
const S = rt(
|
|
20
20
|
pt,
|
|
21
21
|
k
|
|
22
22
|
), {
|
|
23
|
-
className:
|
|
23
|
+
className: Oe,
|
|
24
24
|
value: V,
|
|
25
|
-
defaultValue:
|
|
25
|
+
defaultValue: Ne,
|
|
26
26
|
format: o,
|
|
27
|
-
width:
|
|
28
|
-
tabIndex:
|
|
29
|
-
accessKey:
|
|
30
|
-
title:
|
|
31
|
-
placeholder:
|
|
27
|
+
width: ee,
|
|
28
|
+
tabIndex: Pe,
|
|
29
|
+
accessKey: Re,
|
|
30
|
+
title: De,
|
|
31
|
+
placeholder: te,
|
|
32
32
|
min: d,
|
|
33
33
|
max: m,
|
|
34
|
-
dir:
|
|
34
|
+
dir: ne,
|
|
35
35
|
name: R,
|
|
36
36
|
label: D,
|
|
37
|
-
id:
|
|
38
|
-
ariaDescribedBy:
|
|
39
|
-
ariaLabelledBy:
|
|
40
|
-
ariaLabel:
|
|
41
|
-
inputType:
|
|
37
|
+
id: re,
|
|
38
|
+
ariaDescribedBy: Fe,
|
|
39
|
+
ariaLabelledBy: Be,
|
|
40
|
+
ariaLabel: Me,
|
|
41
|
+
inputType: Te,
|
|
42
42
|
readOnly: g,
|
|
43
43
|
validationMessage: _,
|
|
44
|
-
children:
|
|
44
|
+
children: ze,
|
|
45
45
|
// Removed to support direct use in Form Field component
|
|
46
46
|
touched: gt,
|
|
47
47
|
visited: vt,
|
|
48
48
|
modified: yt,
|
|
49
|
-
style:
|
|
50
|
-
inputStyle:
|
|
49
|
+
style: ae,
|
|
50
|
+
inputStyle: qe,
|
|
51
51
|
valid: w,
|
|
52
|
-
step: C =
|
|
53
|
-
spinners:
|
|
54
|
-
disabled: u =
|
|
55
|
-
required: F =
|
|
56
|
-
validityStyles:
|
|
57
|
-
prefix: Ge =
|
|
58
|
-
suffix: je =
|
|
59
|
-
onChange: h =
|
|
60
|
-
onFocus:
|
|
61
|
-
onBlur:
|
|
62
|
-
rangeOnEnter:
|
|
63
|
-
size: x =
|
|
64
|
-
rounded:
|
|
65
|
-
fillMode: B =
|
|
66
|
-
autoFocus: Ae =
|
|
52
|
+
step: C = c.step,
|
|
53
|
+
spinners: U = c.spinners,
|
|
54
|
+
disabled: u = c.disabled,
|
|
55
|
+
required: F = c.required,
|
|
56
|
+
validityStyles: oe = c.validityStyles,
|
|
57
|
+
prefix: Ge = c.prefix,
|
|
58
|
+
suffix: je = c.suffix,
|
|
59
|
+
onChange: h = c.onChange,
|
|
60
|
+
onFocus: se = c.onFocus,
|
|
61
|
+
onBlur: ue = c.onBlur,
|
|
62
|
+
rangeOnEnter: le = c.rangeOnEnter,
|
|
63
|
+
size: x = c.size,
|
|
64
|
+
rounded: W = c.rounded,
|
|
65
|
+
fillMode: B = c.fillMode,
|
|
66
|
+
autoFocus: Ae = c.autoFocus,
|
|
67
67
|
inputAttributes: He,
|
|
68
|
-
...
|
|
69
|
-
} = S, Ke = at(), ce =
|
|
70
|
-
|
|
68
|
+
...ie
|
|
69
|
+
} = S, Ke = at(), ce = re || Ke, s = tt(), M = nt(), a = n.useRef(null), T = n.useRef(void 0), [_e, E] = n.useState(!1), i = n.useRef(ke()), z = n.useRef(!1), $ = n.useRef(void 0), I = n.useRef(Ne), de = R || re, L = N(
|
|
70
|
+
i.current.focused && !u ? i.current.currentLooseValue : Z(V, I.current),
|
|
71
71
|
o,
|
|
72
72
|
s
|
|
73
73
|
);
|
|
74
|
-
|
|
75
|
-
const [we] =
|
|
74
|
+
$.current = L;
|
|
75
|
+
const [we] = ye(Ge), [Ue] = ye(je);
|
|
76
76
|
n.useEffect(() => {
|
|
77
77
|
a.current && a.current.setCustomValidity && a.current.setCustomValidity(
|
|
78
78
|
j().valid ? "" : _ || bt
|
|
79
79
|
);
|
|
80
80
|
});
|
|
81
|
-
const
|
|
81
|
+
const me = n.useCallback(() => {
|
|
82
82
|
a.current && a.current.focus();
|
|
83
|
-
}, []), q = n.useCallback(() => T.current !== void 0 ? T.current :
|
|
84
|
-
const r = _ !== void 0, e = q(), b = w !== void 0 ? w : !
|
|
83
|
+
}, []), q = n.useCallback(() => T.current !== void 0 ? T.current : Z(V, I.current), [V]), fe = n.useCallback(() => R, [R]), G = n.useCallback(() => F, [F]), j = n.useCallback(() => {
|
|
84
|
+
const r = _ !== void 0, e = q(), b = w !== void 0 ? w : !i.current.valueIsOutOfRange && (!G() || e != null);
|
|
85
85
|
return {
|
|
86
86
|
customError: r,
|
|
87
87
|
valid: b,
|
|
88
88
|
valueMissing: e == null
|
|
89
89
|
};
|
|
90
|
-
}, [_, w, q, G]),
|
|
90
|
+
}, [_, w, q, G]), Y = n.useCallback(() => oe, [oe]), be = n.useCallback(() => S, [S]), v = n.useCallback(() => {
|
|
91
91
|
const r = {
|
|
92
92
|
element: a.current,
|
|
93
|
-
focus:
|
|
93
|
+
focus: me
|
|
94
94
|
};
|
|
95
|
-
return Object.defineProperty(r, "name", { get:
|
|
96
|
-
}, [
|
|
97
|
-
n.useImperativeHandle(
|
|
98
|
-
const
|
|
99
|
-
n.useImperativeHandle(
|
|
95
|
+
return Object.defineProperty(r, "name", { get: fe }), Object.defineProperty(r, "value", { get: q }), Object.defineProperty(r, "validity", { get: j }), Object.defineProperty(r, "validityStyles", { get: Y }), Object.defineProperty(r, "required", { get: G }), Object.defineProperty(r, "props", { get: be }), r;
|
|
96
|
+
}, [fe, q, j, Y, G, me, be]);
|
|
97
|
+
n.useImperativeHandle(Le, v);
|
|
98
|
+
const pe = n.useRef(null);
|
|
99
|
+
n.useImperativeHandle(pe, v), ot("numerictextbox", pe, S, S.webMcp);
|
|
100
100
|
const y = n.useCallback(() => ({
|
|
101
|
-
eventValue:
|
|
102
|
-
prevLooseValue:
|
|
101
|
+
eventValue: Z(V, I.current),
|
|
102
|
+
prevLooseValue: $.current,
|
|
103
103
|
currentLooseValue: a.current.value,
|
|
104
104
|
selectionStart: a.current.selectionStart,
|
|
105
105
|
selectionEnd: a.current.selectionEnd,
|
|
@@ -107,16 +107,16 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
107
107
|
valueIsCorrected: !1,
|
|
108
108
|
valueIsOutOfRange: !1,
|
|
109
109
|
isPaste: z.current,
|
|
110
|
-
focused:
|
|
110
|
+
focused: i.current.focused
|
|
111
111
|
}), [V]), f = n.useCallback(
|
|
112
112
|
(r, e) => {
|
|
113
113
|
if (u)
|
|
114
114
|
return;
|
|
115
115
|
T.current = e.eventValue, I.current = e.eventValue;
|
|
116
116
|
const b = N(P(e.eventValue, d, m), o, s), l = P(s.parseNumber(b, o), d, m);
|
|
117
|
-
l !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = l, I.current = l), V !== e.eventValue &&
|
|
117
|
+
l !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = l, I.current = l), V !== e.eventValue && X(h, r, v(), {
|
|
118
118
|
value: e.eventValue
|
|
119
|
-
}), T.current = void 0,
|
|
119
|
+
}), T.current = void 0, i.current = e, E((O) => !O);
|
|
120
120
|
},
|
|
121
121
|
[V, h, u, E, v]
|
|
122
122
|
), We = n.useCallback(
|
|
@@ -125,7 +125,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
125
125
|
if (isNaN(e))
|
|
126
126
|
return;
|
|
127
127
|
const b = P(e, d, m), l = N(b, o, s), p = {
|
|
128
|
-
...
|
|
128
|
+
...i.current,
|
|
129
129
|
eventValue: b,
|
|
130
130
|
currentLooseValue: l,
|
|
131
131
|
selectionStart: l.length,
|
|
@@ -139,14 +139,14 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
139
139
|
[d, m, o, s, f]
|
|
140
140
|
);
|
|
141
141
|
st(a, {
|
|
142
|
-
fieldName:
|
|
142
|
+
fieldName: de,
|
|
143
143
|
onValueChange: We,
|
|
144
|
-
enabled: !!
|
|
144
|
+
enabled: !!de
|
|
145
145
|
});
|
|
146
146
|
const $e = n.useCallback(
|
|
147
147
|
(r) => {
|
|
148
148
|
const e = y();
|
|
149
|
-
z.current = !1, f(r,
|
|
149
|
+
z.current = !1, f(r, he(e, o, s));
|
|
150
150
|
},
|
|
151
151
|
[o, h, s, f, y]
|
|
152
152
|
), Ye = n.useCallback(
|
|
@@ -162,13 +162,13 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
162
162
|
}
|
|
163
163
|
switch (r.keyCode) {
|
|
164
164
|
case 38:
|
|
165
|
-
|
|
165
|
+
Se(b, e, C, d, m, o, s);
|
|
166
166
|
break;
|
|
167
167
|
case 40:
|
|
168
|
-
|
|
168
|
+
Ee(b, e, C, d, m, o, s);
|
|
169
169
|
break;
|
|
170
170
|
case 13: {
|
|
171
|
-
if (
|
|
171
|
+
if (le === !1)
|
|
172
172
|
return;
|
|
173
173
|
const l = N(P(b, d, m), o, s), p = P(s.parseNumber(l, o), d, m);
|
|
174
174
|
e.eventValue = p, e.currentLooseValue = N(p, o, s), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
|
|
@@ -176,7 +176,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
176
176
|
}
|
|
177
177
|
case 110: {
|
|
178
178
|
const l = a.current, p = s.numberSymbols();
|
|
179
|
-
l && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + p.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e =
|
|
179
|
+
l && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + p.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = he(e, o, s));
|
|
180
180
|
break;
|
|
181
181
|
}
|
|
182
182
|
default:
|
|
@@ -184,15 +184,15 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
184
184
|
}
|
|
185
185
|
r.preventDefault(), f(r, e);
|
|
186
186
|
},
|
|
187
|
-
[o, d, m, C, h,
|
|
187
|
+
[o, d, m, C, h, le, f, y]
|
|
188
188
|
), Je = n.useCallback(() => {
|
|
189
189
|
z.current = !0;
|
|
190
|
-
}, []),
|
|
190
|
+
}, []), J = n.useCallback(
|
|
191
191
|
(r) => {
|
|
192
192
|
if (g || u)
|
|
193
193
|
return;
|
|
194
194
|
const e = y();
|
|
195
|
-
|
|
195
|
+
Se(
|
|
196
196
|
s.parseNumber(String(e.currentLooseValue), o),
|
|
197
197
|
e,
|
|
198
198
|
C,
|
|
@@ -203,12 +203,12 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
203
203
|
), f(r, e);
|
|
204
204
|
},
|
|
205
205
|
[o, d, m, C, h, g, u, f, y]
|
|
206
|
-
),
|
|
206
|
+
), Q = n.useCallback(
|
|
207
207
|
(r) => {
|
|
208
208
|
if (g || u)
|
|
209
209
|
return;
|
|
210
210
|
const e = y();
|
|
211
|
-
|
|
211
|
+
Ee(
|
|
212
212
|
s.parseNumber(String(e.currentLooseValue), o),
|
|
213
213
|
e,
|
|
214
214
|
C,
|
|
@@ -221,49 +221,49 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
221
221
|
[o, d, m, C, h, g, u, f, y]
|
|
222
222
|
), Qe = n.useCallback(
|
|
223
223
|
(r) => {
|
|
224
|
-
const e =
|
|
225
|
-
!document || e !== a.current || !a.current || g || u || (r.nativeEvent.deltaY < 0 &&
|
|
224
|
+
const e = Ve(document);
|
|
225
|
+
!document || e !== a.current || !a.current || g || u || (r.nativeEvent.deltaY < 0 && J(r), r.nativeEvent.deltaY > 0 && Q(r));
|
|
226
226
|
},
|
|
227
|
-
[
|
|
227
|
+
[J, Q, u, g]
|
|
228
228
|
), Xe = n.useCallback(
|
|
229
229
|
(r) => {
|
|
230
|
-
|
|
230
|
+
i.current.currentLooseValue = $.current, i.current.focused = !0, X(se, r, v(), {}), E((e) => !e);
|
|
231
231
|
},
|
|
232
|
-
[
|
|
232
|
+
[se, E, v]
|
|
233
233
|
), Ze = n.useCallback(
|
|
234
234
|
(r) => {
|
|
235
|
-
|
|
235
|
+
i.current = ke(), X(ue, r, v(), {}), E((e) => !e);
|
|
236
236
|
},
|
|
237
|
-
[
|
|
237
|
+
[ue, E, v]
|
|
238
238
|
), et = n.useCallback((r) => {
|
|
239
239
|
if (document && a.current) {
|
|
240
|
-
const e =
|
|
240
|
+
const e = Ve(document);
|
|
241
241
|
r.preventDefault(), e !== a.current && a.current.focus();
|
|
242
242
|
}
|
|
243
243
|
}, []);
|
|
244
244
|
ut(() => {
|
|
245
|
-
a.current && a.current.type !== "number" &&
|
|
245
|
+
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);
|
|
246
246
|
}, [_e]);
|
|
247
|
-
const
|
|
247
|
+
const ge = !Y() || j().valid, ve = /* @__PURE__ */ n.createElement(
|
|
248
248
|
"span",
|
|
249
249
|
{
|
|
250
|
-
dir:
|
|
251
|
-
style: D ?
|
|
250
|
+
dir: ne,
|
|
251
|
+
style: D ? ae : { width: ee, ...ae },
|
|
252
252
|
className: lt(
|
|
253
253
|
"k-input",
|
|
254
254
|
"k-numerictextbox",
|
|
255
255
|
{
|
|
256
|
-
[`k-input-${
|
|
256
|
+
[`k-input-${Ce.sizeMap[x] || x}`]: x,
|
|
257
257
|
[`k-input-${B}`]: B,
|
|
258
|
-
[`k-rounded-${
|
|
259
|
-
"k-invalid": !
|
|
258
|
+
[`k-rounded-${Ce.roundedMap[W] || W}`]: W,
|
|
259
|
+
"k-invalid": !ge,
|
|
260
260
|
"k-required": F,
|
|
261
261
|
"k-disabled": u
|
|
262
262
|
},
|
|
263
|
-
|
|
263
|
+
Oe
|
|
264
264
|
),
|
|
265
265
|
"aria-disabled": u ? "true" : void 0,
|
|
266
|
-
...D ? {} :
|
|
266
|
+
...D ? {} : ie
|
|
267
267
|
},
|
|
268
268
|
/* @__PURE__ */ n.createElement(we, null),
|
|
269
269
|
/* @__PURE__ */ n.createElement(
|
|
@@ -271,28 +271,28 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
271
271
|
{
|
|
272
272
|
role: "spinbutton",
|
|
273
273
|
value: L === null ? "" : L,
|
|
274
|
-
tabIndex:
|
|
275
|
-
accessKey:
|
|
274
|
+
tabIndex: it(Pe, u),
|
|
275
|
+
accessKey: Re,
|
|
276
276
|
disabled: u,
|
|
277
|
-
title:
|
|
277
|
+
title: De,
|
|
278
278
|
"aria-disabled": u ? "true" : void 0,
|
|
279
|
-
"aria-valuemin": d,
|
|
280
|
-
"aria-valuemax": m,
|
|
281
|
-
"aria-label":
|
|
282
|
-
"aria-labelledby":
|
|
283
|
-
"aria-describedby":
|
|
284
|
-
"aria-required": F,
|
|
285
|
-
placeholder:
|
|
279
|
+
"aria-valuemin": U ? d : void 0,
|
|
280
|
+
"aria-valuemax": U ? m : void 0,
|
|
281
|
+
"aria-label": Me,
|
|
282
|
+
"aria-labelledby": Be,
|
|
283
|
+
"aria-describedby": Fe,
|
|
284
|
+
"aria-required": F || void 0,
|
|
285
|
+
placeholder: te,
|
|
286
286
|
spellCheck: !1,
|
|
287
287
|
autoComplete: "off",
|
|
288
288
|
autoCorrect: "off",
|
|
289
289
|
autoFocus: Ae,
|
|
290
|
-
type:
|
|
290
|
+
type: Te || "tel",
|
|
291
291
|
className: "k-input-inner",
|
|
292
292
|
id: ce,
|
|
293
293
|
name: R,
|
|
294
294
|
readOnly: g,
|
|
295
|
-
style:
|
|
295
|
+
style: qe,
|
|
296
296
|
onChange: $e,
|
|
297
297
|
onFocus: Xe,
|
|
298
298
|
onBlur: Ze,
|
|
@@ -304,9 +304,9 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
306
|
/* @__PURE__ */ n.createElement(Ue, null),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
ze,
|
|
308
|
+
U && /* @__PURE__ */ n.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: et }, /* @__PURE__ */ n.createElement(
|
|
309
|
+
xe,
|
|
310
310
|
{
|
|
311
311
|
tabIndex: -1,
|
|
312
312
|
type: "button",
|
|
@@ -323,10 +323,10 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
323
323
|
A,
|
|
324
324
|
H[A]
|
|
325
325
|
),
|
|
326
|
-
onClick:
|
|
326
|
+
onClick: J
|
|
327
327
|
}
|
|
328
328
|
), /* @__PURE__ */ n.createElement(
|
|
329
|
-
|
|
329
|
+
xe,
|
|
330
330
|
{
|
|
331
331
|
tabIndex: -1,
|
|
332
332
|
type: "button",
|
|
@@ -343,7 +343,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
343
343
|
K,
|
|
344
344
|
H[K]
|
|
345
345
|
),
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: Q
|
|
347
347
|
}
|
|
348
348
|
))
|
|
349
349
|
);
|
|
@@ -353,18 +353,18 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
|
|
|
353
353
|
label: D,
|
|
354
354
|
editorId: ce,
|
|
355
355
|
editorValue: L === null ? "" : L,
|
|
356
|
-
editorValid:
|
|
356
|
+
editorValid: ge,
|
|
357
357
|
editorDisabled: u,
|
|
358
|
-
editorPlaceholder:
|
|
359
|
-
children:
|
|
360
|
-
style: { width:
|
|
361
|
-
dir:
|
|
362
|
-
...
|
|
358
|
+
editorPlaceholder: te,
|
|
359
|
+
children: ve,
|
|
360
|
+
style: { width: ee },
|
|
361
|
+
dir: ne,
|
|
362
|
+
...ie
|
|
363
363
|
}
|
|
364
|
-
) :
|
|
364
|
+
) : ve;
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
|
-
|
|
367
|
+
Ie.propTypes = {
|
|
368
368
|
value: t.number,
|
|
369
369
|
defaultValue: t.number,
|
|
370
370
|
step: t.number,
|
|
@@ -408,7 +408,7 @@ xe.propTypes = {
|
|
|
408
408
|
fillMode: t.oneOf(["solid", "flat", "outline"]),
|
|
409
409
|
inputAttributes: t.object
|
|
410
410
|
};
|
|
411
|
-
const
|
|
411
|
+
const c = {
|
|
412
412
|
prefix: (k) => null,
|
|
413
413
|
suffix: (k) => null,
|
|
414
414
|
step: 1,
|
|
@@ -428,8 +428,8 @@ const i = {
|
|
|
428
428
|
rounded: void 0,
|
|
429
429
|
fillMode: void 0
|
|
430
430
|
};
|
|
431
|
-
|
|
431
|
+
Ie.displayName = "KendoNumericTextBox";
|
|
432
432
|
export {
|
|
433
|
-
|
|
433
|
+
Ie as NumericTextBox,
|
|
434
434
|
pt as NumericTextBoxPropsContext
|
|
435
435
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-inputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-inputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1778773230,version:"14.5.0-develop.15",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '14.5.0-develop.
|
|
10
|
+
publishDate: 1778773230,
|
|
11
|
+
version: '14.5.0-develop.15',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-inputs",
|
|
3
|
-
"version": "14.5.0-develop.
|
|
3
|
+
"version": "14.5.0-develop.15",
|
|
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",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@progress/kendo-drawing": "^1.21.2",
|
|
29
29
|
"@progress/kendo-inputs-common": "^3.1.0",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.2",
|
|
31
|
-
"@progress/kendo-react-animation": "14.5.0-develop.
|
|
32
|
-
"@progress/kendo-react-buttons": "14.5.0-develop.
|
|
33
|
-
"@progress/kendo-react-common": "14.5.0-develop.
|
|
34
|
-
"@progress/kendo-react-dialogs": "14.5.0-develop.
|
|
35
|
-
"@progress/kendo-react-layout": "14.5.0-develop.
|
|
36
|
-
"@progress/kendo-react-intl": "14.5.0-develop.
|
|
37
|
-
"@progress/kendo-react-labels": "14.5.0-develop.
|
|
38
|
-
"@progress/kendo-react-popup": "14.5.0-develop.
|
|
31
|
+
"@progress/kendo-react-animation": "14.5.0-develop.15",
|
|
32
|
+
"@progress/kendo-react-buttons": "14.5.0-develop.15",
|
|
33
|
+
"@progress/kendo-react-common": "14.5.0-develop.15",
|
|
34
|
+
"@progress/kendo-react-dialogs": "14.5.0-develop.15",
|
|
35
|
+
"@progress/kendo-react-layout": "14.5.0-develop.15",
|
|
36
|
+
"@progress/kendo-react-intl": "14.5.0-develop.15",
|
|
37
|
+
"@progress/kendo-react-labels": "14.5.0-develop.15",
|
|
38
|
+
"@progress/kendo-react-popup": "14.5.0-develop.15",
|
|
39
39
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
41
41
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"package": {
|
|
83
83
|
"productName": "KendoReact",
|
|
84
84
|
"productCode": "KENDOUIREACT",
|
|
85
|
-
"publishDate":
|
|
85
|
+
"publishDate": 1778773230,
|
|
86
86
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),e=require("prop-types"),a=require("@progress/kendo-react-common");function K(n){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const c=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(l,s,c.get?c:{enumerable:!0,get:()=>n[s]})}}return l.default=n,Object.freeze(l)}const t=K(M),k=a.createPropsContext(),g=t.forwardRef((n,l)=>{const s=a.usePropsContext(k,n),{ariaDescribedBy:c,ariaLabel:x,checked:y,children:v,className:F,disabled:o,id:B,size:I=U.size,label:d,labelPlacement:O,name:j,style:q,tabIndex:z,value:b,valid:S,onChange:h,onFocus:m,onBlur:p,required:T,...D}=s,C=a.useUnstyled(),f=C&&C.uRadioButton,i=t.useRef(null),R=t.useCallback(()=>{i.current&&i.current.focus()},[]),u=t.useCallback(()=>({element:i.current,focus:R}),[R]);t.useImperativeHandle(l,u);const P=a.useId(),w=t.useCallback(r=>{a.dispatchEvent(h,r,u(),{value:b})},[h,b,o]),L=t.useCallback(r=>{m&&!o&&a.dispatchEvent(m,r,u(),void 0)},[m,o]),_=t.useCallback(r=>{p&&!o&&a.dispatchEvent(p,r,u(),void 0)},[p,o]),H={type:"radio",id:B||P,name:j,className:a.classNames(a.uRadioButton.input({c:f,size:I,invalid:S===!1,checked:y}),F),ref:i,disabled:o,tabIndex:a.getTabIndex(z,o),checked:y,style:q,"aria-describedby":c,"aria-label":x,"aria-required":T,value:b,onChange:w,onFocus:L,onBlur:_,...D},E=t.createElement(t.Fragment,null,d!==void 0?t.createElement("label",{className:a.classNames(a.uRadioButton.label({c:f})),htmlFor:B||P,style:{userSelect:"none"},"aria-label":d},d):null),N=t.createElement("span",{className:a.classNames(a.uRadioButton.wrap({c:f}))},t.createElement("input",{...H}));return O==="before"?t.createElement(t.Fragment,null,E,N,v):t.createElement(t.Fragment,null,N,E,v)});g.propTypes={ariaDescribedBy:e.string,ariaLabel:e.string,checked:e.bool,className:e.string,disabled:e.bool,id:e.string,size:e.oneOf(["small","medium","large"]),label:e.string,labelPlacement:e.string,name:e.string,style:e.object,tabIndex:e.number,value:e.any,valid:e.bool,onChange:e.func,onFocus:e.func,onBlur:e.func};const U={size:void 0};g.displayName="KendoRadioButton";exports.RadioButton=g;exports.RadioButtonPropsContext=k;
|
|
@@ -7,18 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import a from "prop-types";
|
|
10
|
-
import { usePropsContext as
|
|
11
|
-
const
|
|
12
|
-
const I =
|
|
10
|
+
import { usePropsContext as A, useUnstyled as G, useId as J, dispatchEvent as d, getTabIndex as M, classNames as m, uRadioButton as b, createPropsContext as Q } from "@progress/kendo-react-common";
|
|
11
|
+
const V = Q(), x = e.forwardRef((E, F) => {
|
|
12
|
+
const I = A(V, E), {
|
|
13
13
|
ariaDescribedBy: P,
|
|
14
|
+
ariaLabel: k,
|
|
14
15
|
checked: p,
|
|
15
16
|
children: f,
|
|
16
|
-
className:
|
|
17
|
+
className: N,
|
|
17
18
|
disabled: n,
|
|
18
19
|
id: g,
|
|
19
|
-
size:
|
|
20
|
+
size: z = W.size,
|
|
20
21
|
label: o,
|
|
21
|
-
labelPlacement:
|
|
22
|
+
labelPlacement: L,
|
|
22
23
|
name: T,
|
|
23
24
|
style: q,
|
|
24
25
|
tabIndex: w,
|
|
@@ -29,7 +30,7 @@ const Q = M(), x = e.forwardRef((E, F) => {
|
|
|
29
30
|
onBlur: i,
|
|
30
31
|
required: H,
|
|
31
32
|
...j
|
|
32
|
-
} = I, y =
|
|
33
|
+
} = I, y = G(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
|
|
33
34
|
l.current && l.current.focus();
|
|
34
35
|
}, []), s = e.useCallback(
|
|
35
36
|
() => ({
|
|
@@ -39,14 +40,14 @@ const Q = M(), x = e.forwardRef((E, F) => {
|
|
|
39
40
|
[C]
|
|
40
41
|
);
|
|
41
42
|
e.useImperativeHandle(F, s);
|
|
42
|
-
const v =
|
|
43
|
+
const v = J(), K = e.useCallback(
|
|
43
44
|
(t) => {
|
|
44
45
|
d(h, t, s(), {
|
|
45
46
|
value: r
|
|
46
47
|
});
|
|
47
48
|
},
|
|
48
49
|
[h, r, n]
|
|
49
|
-
),
|
|
50
|
+
), O = e.useCallback(
|
|
50
51
|
(t) => {
|
|
51
52
|
c && !n && d(
|
|
52
53
|
c,
|
|
@@ -56,35 +57,36 @@ const Q = M(), x = e.forwardRef((E, F) => {
|
|
|
56
57
|
);
|
|
57
58
|
},
|
|
58
59
|
[c, n]
|
|
59
|
-
),
|
|
60
|
+
), S = e.useCallback(
|
|
60
61
|
(t) => {
|
|
61
62
|
i && !n && d(i, t, s(), void 0);
|
|
62
63
|
},
|
|
63
64
|
[i, n]
|
|
64
|
-
),
|
|
65
|
+
), U = {
|
|
65
66
|
type: "radio",
|
|
66
67
|
id: g || v,
|
|
67
68
|
name: T,
|
|
68
69
|
className: m(
|
|
69
70
|
b.input({
|
|
70
71
|
c: u,
|
|
71
|
-
size:
|
|
72
|
+
size: z,
|
|
72
73
|
invalid: D === !1,
|
|
73
74
|
checked: p
|
|
74
75
|
}),
|
|
75
|
-
|
|
76
|
+
N
|
|
76
77
|
),
|
|
77
78
|
ref: l,
|
|
78
79
|
disabled: n,
|
|
79
|
-
tabIndex:
|
|
80
|
+
tabIndex: M(w, n),
|
|
80
81
|
checked: p,
|
|
81
82
|
style: q,
|
|
82
83
|
"aria-describedby": P,
|
|
84
|
+
"aria-label": k,
|
|
83
85
|
"aria-required": H,
|
|
84
86
|
value: r,
|
|
85
87
|
onChange: K,
|
|
86
|
-
onFocus:
|
|
87
|
-
onBlur:
|
|
88
|
+
onFocus: O,
|
|
89
|
+
onBlur: S,
|
|
88
90
|
...j
|
|
89
91
|
}, B = /* @__PURE__ */ e.createElement(e.Fragment, null, o !== void 0 ? /* @__PURE__ */ e.createElement(
|
|
90
92
|
"label",
|
|
@@ -95,11 +97,12 @@ const Q = M(), x = e.forwardRef((E, F) => {
|
|
|
95
97
|
"aria-label": o
|
|
96
98
|
},
|
|
97
99
|
o
|
|
98
|
-
) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...
|
|
99
|
-
return
|
|
100
|
+
) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...U }));
|
|
101
|
+
return L === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, B, R, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, R, B, f);
|
|
100
102
|
});
|
|
101
103
|
x.propTypes = {
|
|
102
104
|
ariaDescribedBy: a.string,
|
|
105
|
+
ariaLabel: a.string,
|
|
103
106
|
checked: a.bool,
|
|
104
107
|
className: a.string,
|
|
105
108
|
disabled: a.bool,
|
|
@@ -116,11 +119,11 @@ x.propTypes = {
|
|
|
116
119
|
onFocus: a.func,
|
|
117
120
|
onBlur: a.func
|
|
118
121
|
};
|
|
119
|
-
const
|
|
122
|
+
const W = {
|
|
120
123
|
size: void 0
|
|
121
124
|
};
|
|
122
125
|
x.displayName = "KendoRadioButton";
|
|
123
126
|
export {
|
|
124
127
|
x as RadioButton,
|
|
125
|
-
|
|
128
|
+
V as RadioButtonPropsContext
|
|
126
129
|
};
|