@progress/kendo-react-inputs 14.0.0-develop.1 → 14.0.0-develop.2
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.mjs +7 -7
- package/colors/ColorGradient.mjs +3 -3
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +11 -10
- package/colors/FlatColorPicker.mjs +3 -3
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/input/Input.js +1 -1
- package/input/Input.mjs +57 -59
- package/maskedtextbox/MaskedTextBox.mjs +6 -6
- package/numerictextbox/NumericTextBox.mjs +8 -8
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +12 -12
- package/radiobutton/RadioButton.mjs +6 -6
- package/radiobutton/RadioGroup.mjs +7 -7
- package/range-slider/RangeSlider.mjs +7 -7
- package/rating/Rating.mjs +6 -6
- package/signature/Signature.mjs +6 -6
- package/slider/Slider.mjs +6 -6
- package/switch/Switch.mjs +5 -5
- package/textarea/TextArea.mjs +7 -7
package/input/Input.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 Y=require("react"),r=require("prop-types"),i=require("@progress/kendo-react-common"),Z=require("@progress/kendo-react-labels");function $(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const c=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}return o.default=l,Object.freeze(o)}const a=$(Y),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),r=require("prop-types"),i=require("@progress/kendo-react-common"),Z=require("@progress/kendo-react-labels");function $(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const c=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}return o.default=l,Object.freeze(o)}const a=$(Y),C=a.forwardRef((l,o)=>{const c=a.useContext(O).call(void 0,l),[,R]=a.useReducer(t=>t,!0),n=i.applyDefaultProps(c,ee),{className:S,label:f,labelClassName:V,id:x,validationMessage:P,defaultValue:w,valid:k,unstyled:D,visited:te,touched:ae,modified:re,autoFocus:F,ariaLabelledBy:q,ariaDescribedBy:B,validityStyles:I,style:E,ariaLabel:T,...U}=n,j=i.useUnstyled(),K=D||j,_=i.useId(),[A,G]=a.useState({value:w}),L=x||_,e=a.useRef(null),d=a.useRef(void 0),y=a.useRef(null),M=n.name||n.id,H=()=>{e.current&&e.current.focus()},g=()=>d.current!==void 0?d.current:n.value!==void 0?n.value:A.value,v=()=>{const t={badInput:e.current?e.current.validity.badInput:!1,patternMismatch:e.current?e.current.validity.patternMismatch:!1,rangeOverflow:e.current?e.current.validity.rangeOverflow:!1,rangeUnderflow:e.current?e.current.validity.rangeUnderflow:!1,stepMismatch:e.current?e.current.validity.stepMismatch:!1,tooLong:e.current?e.current.validity.tooLong:!1,typeMismatch:e.current?e.current.validity.typeMismatch:!1,valueMissing:e.current?e.current.validity.valueMissing:!1};return{...t,customError:P!==void 0,valid:k!==void 0?k:e.current?!z(t):!0}};a.useImperativeHandle(y,()=>({element:e.current,props:n,get value(){return g()},name:n.name,get validity(){return v()},focus:H})),a.useImperativeHandle(o,()=>y.current);const z=t=>{let s=!1;for(const p in t)t.hasOwnProperty(p)&&(s=s||!!t[p]);return s},m=!I||v().valid,J=i.classNames("k-input",{"k-invalid":!m,"k-disabled":n.disabled},S),Q=()=>{e.current&&e.current.setCustomValidity&&(v().valid||!I?e.current.classList.remove("k-invalid"):e.current.classList.add("k-invalid"),e.current.setCustomValidity(v().valid?"":P||""))},{onChange:b}=n,h=a.useCallback(t=>{G({value:t.target.value}),d.current=t.target.value,b&&b({syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:y.current}),d.current=void 0},[b]),W=a.useCallback(t=>{const s=t!=null?String(t):"",p={target:e.current,currentTarget:e.current,nativeEvent:new Event("change")};e.current&&(e.current.value=s),h(p)},[h]);i.useKendoPaste(e,{fieldName:M||"",onValueChange:W,enabled:!!M});const X=t=>{if(t.animationName==="autoFillStart"){const s=t.target.parentNode;s&&s.classList.contains("k-empty")&&s.classList.remove("k-empty")}};a.useEffect(()=>{R()},[]),a.useEffect(()=>{Q()});const N=a.createElement("input",{"aria-labelledby":q,"aria-describedby":B,"aria-disabled":n.disabled||void 0,"aria-invalid":!m||void 0,"aria-label":T||void 0,...U,style:f?void 0:E,value:g(),id:L,autoFocus:F,className:J,onChange:h,onAnimationStart:X,ref:e});return f?a.createElement(Z.FloatingLabel,{label:f,labelClassName:V,editorId:L,editorValue:String(g()),editorValid:m,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:N,style:E,dir:n.dir,unstyled:K}):N}),O=i.createPropsContext(),ee={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};C.displayName="KendoReactInput";C.propTypes={label:r.node,labelClassName:r.string,validationMessage:r.string,required:r.bool,validate:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string,autoFocus:r.bool,value:r.oneOfType([r.string,r.number,r.array])};exports.Input=C;exports.InputPropsContext=O;
|
package/input/Input.mjs
CHANGED
|
@@ -7,36 +7,34 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
9
|
import r from "prop-types";
|
|
10
|
-
import {
|
|
10
|
+
import { applyDefaultProps as Q, useUnstyled as W, useId as X, classNames as Y, useKendoPaste as Z, createPropsContext as $ } from "@progress/kendo-react-common";
|
|
11
11
|
import { FloatingLabel as ee } from "@progress/kendo-react-labels";
|
|
12
|
-
const E = a.forwardRef((
|
|
13
|
-
const
|
|
14
|
-
className:
|
|
12
|
+
const E = a.forwardRef((I, k) => {
|
|
13
|
+
const L = a.useContext(te).call(void 0, I), [, N] = a.useReducer((t) => t, !0), n = Q(L, ae), {
|
|
14
|
+
className: M,
|
|
15
15
|
label: u,
|
|
16
|
-
labelClassName:
|
|
17
|
-
id:
|
|
18
|
-
validationMessage:
|
|
19
|
-
defaultValue:
|
|
20
|
-
valid:
|
|
21
|
-
unstyled:
|
|
16
|
+
labelClassName: V,
|
|
17
|
+
id: x,
|
|
18
|
+
validationMessage: m,
|
|
19
|
+
defaultValue: R,
|
|
20
|
+
valid: y,
|
|
21
|
+
unstyled: F,
|
|
22
22
|
// Removed to support direct use in Form Field component
|
|
23
23
|
visited: ne,
|
|
24
24
|
touched: le,
|
|
25
25
|
modified: se,
|
|
26
|
-
autoFocus:
|
|
27
|
-
ariaLabelledBy:
|
|
28
|
-
ariaDescribedBy:
|
|
29
|
-
validityStyles:
|
|
30
|
-
style:
|
|
31
|
-
ariaLabel:
|
|
32
|
-
...
|
|
33
|
-
} = n,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
value: F
|
|
37
|
-
}), C = R || K, e = a.useRef(null), s = a.useRef(void 0), d = a.useRef(null), I = n.name || n.id, G = () => {
|
|
26
|
+
autoFocus: w,
|
|
27
|
+
ariaLabelledBy: B,
|
|
28
|
+
ariaDescribedBy: S,
|
|
29
|
+
validityStyles: g,
|
|
30
|
+
style: b,
|
|
31
|
+
ariaLabel: U,
|
|
32
|
+
...D
|
|
33
|
+
} = n, O = W(), T = F || O, K = X(), [q, A] = a.useState({
|
|
34
|
+
value: R
|
|
35
|
+
}), h = x || K, e = a.useRef(null), s = a.useRef(void 0), c = a.useRef(null), C = n.name || n.id, G = () => {
|
|
38
36
|
e.current && e.current.focus();
|
|
39
|
-
},
|
|
37
|
+
}, d = () => s.current !== void 0 ? s.current : n.value !== void 0 ? n.value : q.value, i = () => {
|
|
40
38
|
const t = {
|
|
41
39
|
badInput: e.current ? e.current.validity.badInput : !1,
|
|
42
40
|
patternMismatch: e.current ? e.current.validity.patternMismatch : !1,
|
|
@@ -49,48 +47,48 @@ const E = a.forwardRef((k, L) => {
|
|
|
49
47
|
};
|
|
50
48
|
return {
|
|
51
49
|
...t,
|
|
52
|
-
customError:
|
|
53
|
-
valid:
|
|
50
|
+
customError: m !== void 0,
|
|
51
|
+
valid: y !== void 0 ? y : e.current ? !H(t) : !0
|
|
54
52
|
};
|
|
55
53
|
};
|
|
56
|
-
a.useImperativeHandle(
|
|
54
|
+
a.useImperativeHandle(c, () => ({
|
|
57
55
|
element: e.current,
|
|
58
56
|
props: n,
|
|
59
57
|
get value() {
|
|
60
|
-
return
|
|
58
|
+
return d();
|
|
61
59
|
},
|
|
62
60
|
name: n.name,
|
|
63
61
|
get validity() {
|
|
64
62
|
return i();
|
|
65
63
|
},
|
|
66
64
|
focus: G
|
|
67
|
-
})), a.useImperativeHandle(
|
|
65
|
+
})), a.useImperativeHandle(k, () => c.current);
|
|
68
66
|
const H = (t) => {
|
|
69
67
|
let l = !1;
|
|
70
68
|
for (const o in t)
|
|
71
69
|
t.hasOwnProperty(o) && (l = l || !!t[o]);
|
|
72
70
|
return l;
|
|
73
|
-
},
|
|
71
|
+
}, v = !g || i().valid, _ = Y(
|
|
74
72
|
"k-input",
|
|
75
73
|
{
|
|
76
|
-
"k-invalid": !
|
|
74
|
+
"k-invalid": !v,
|
|
77
75
|
"k-disabled": n.disabled
|
|
78
76
|
},
|
|
79
|
-
|
|
77
|
+
M
|
|
80
78
|
), j = () => {
|
|
81
|
-
e.current && e.current.setCustomValidity && (i().valid || !
|
|
82
|
-
}, { onChange:
|
|
79
|
+
e.current && e.current.setCustomValidity && (i().valid || !g ? e.current.classList.remove("k-invalid") : e.current.classList.add("k-invalid"), e.current.setCustomValidity(i().valid ? "" : m || ""));
|
|
80
|
+
}, { onChange: p } = n, f = a.useCallback(
|
|
83
81
|
(t) => {
|
|
84
82
|
A({
|
|
85
83
|
value: t.target.value
|
|
86
|
-
}), s.current = t.target.value,
|
|
84
|
+
}), s.current = t.target.value, p && p({
|
|
87
85
|
syntheticEvent: t,
|
|
88
86
|
nativeEvent: t.nativeEvent,
|
|
89
87
|
value: t.target.value,
|
|
90
|
-
target:
|
|
88
|
+
target: c.current
|
|
91
89
|
}), s.current = void 0;
|
|
92
90
|
},
|
|
93
|
-
[
|
|
91
|
+
[p]
|
|
94
92
|
), z = a.useCallback(
|
|
95
93
|
(t) => {
|
|
96
94
|
const l = t != null ? String(t) : "", o = {
|
|
@@ -98,14 +96,14 @@ const E = a.forwardRef((k, L) => {
|
|
|
98
96
|
currentTarget: e.current,
|
|
99
97
|
nativeEvent: new Event("change")
|
|
100
98
|
};
|
|
101
|
-
e.current && (e.current.value = l),
|
|
99
|
+
e.current && (e.current.value = l), f(o);
|
|
102
100
|
},
|
|
103
|
-
[
|
|
101
|
+
[f]
|
|
104
102
|
);
|
|
105
|
-
|
|
106
|
-
fieldName:
|
|
103
|
+
Z(e, {
|
|
104
|
+
fieldName: C || "",
|
|
107
105
|
onValueChange: z,
|
|
108
|
-
enabled: !!
|
|
106
|
+
enabled: !!C
|
|
109
107
|
});
|
|
110
108
|
const J = (t) => {
|
|
111
109
|
if (t.animationName === "autoFillStart") {
|
|
@@ -114,25 +112,25 @@ const E = a.forwardRef((k, L) => {
|
|
|
114
112
|
}
|
|
115
113
|
};
|
|
116
114
|
a.useEffect(() => {
|
|
117
|
-
|
|
115
|
+
N();
|
|
118
116
|
}, []), a.useEffect(() => {
|
|
119
117
|
j();
|
|
120
118
|
});
|
|
121
119
|
const P = /* @__PURE__ */ a.createElement(
|
|
122
120
|
"input",
|
|
123
121
|
{
|
|
124
|
-
"aria-labelledby":
|
|
125
|
-
"aria-describedby":
|
|
122
|
+
"aria-labelledby": B,
|
|
123
|
+
"aria-describedby": S,
|
|
126
124
|
"aria-disabled": n.disabled || void 0,
|
|
127
|
-
"aria-invalid": !
|
|
128
|
-
"aria-label":
|
|
129
|
-
...
|
|
130
|
-
style: u ? void 0 :
|
|
131
|
-
value:
|
|
132
|
-
id:
|
|
133
|
-
autoFocus:
|
|
125
|
+
"aria-invalid": !v || void 0,
|
|
126
|
+
"aria-label": U || void 0,
|
|
127
|
+
...D,
|
|
128
|
+
style: u ? void 0 : b,
|
|
129
|
+
value: d(),
|
|
130
|
+
id: h,
|
|
131
|
+
autoFocus: w,
|
|
134
132
|
className: _,
|
|
135
|
-
onChange:
|
|
133
|
+
onChange: f,
|
|
136
134
|
onAnimationStart: J,
|
|
137
135
|
ref: e
|
|
138
136
|
}
|
|
@@ -141,19 +139,19 @@ const E = a.forwardRef((k, L) => {
|
|
|
141
139
|
ee,
|
|
142
140
|
{
|
|
143
141
|
label: u,
|
|
144
|
-
labelClassName:
|
|
145
|
-
editorId:
|
|
146
|
-
editorValue: String(
|
|
147
|
-
editorValid:
|
|
142
|
+
labelClassName: V,
|
|
143
|
+
editorId: h,
|
|
144
|
+
editorValue: String(d()),
|
|
145
|
+
editorValid: v,
|
|
148
146
|
editorDisabled: n.disabled,
|
|
149
147
|
editorPlaceholder: n.placeholder,
|
|
150
148
|
children: P,
|
|
151
|
-
style:
|
|
149
|
+
style: b,
|
|
152
150
|
dir: n.dir,
|
|
153
|
-
unstyled:
|
|
151
|
+
unstyled: T
|
|
154
152
|
}
|
|
155
153
|
) : P;
|
|
156
|
-
}), te =
|
|
154
|
+
}), te = $(), ae = {
|
|
157
155
|
defaultValue: "",
|
|
158
156
|
required: !1,
|
|
159
157
|
validityStyles: !0,
|
|
@@ -9,7 +9,7 @@ import * as p from "react";
|
|
|
9
9
|
import e from "prop-types";
|
|
10
10
|
import { MaskingService as E } from "./masking.service.mjs";
|
|
11
11
|
import { defaultRules as m, maskingChanged as V, returnFalse as b } from "./utils.mjs";
|
|
12
|
-
import { withIdHOC as O, withPropsContext as M,
|
|
12
|
+
import { withIdHOC as O, withPropsContext as M, withUnstyledHOC as I, subscribeToKendoPaste as w, useCustomComponent as y, classNames as _, kendoThemeMaps as P, getTabIndex as D, uMaskedTextBox as H, createPropsContext as T } from "@progress/kendo-react-common";
|
|
13
13
|
import { FloatingLabel as q } from "@progress/kendo-react-labels";
|
|
14
14
|
const n = class n extends p.Component {
|
|
15
15
|
constructor() {
|
|
@@ -139,7 +139,7 @@ const n = class n extends p.Component {
|
|
|
139
139
|
componentDidMount() {
|
|
140
140
|
this.updateService(), this.setValidity();
|
|
141
141
|
const t = this.props.name || this.props.id;
|
|
142
|
-
this.KendoPasteSubscription =
|
|
142
|
+
this.KendoPasteSubscription = w(this._input, {
|
|
143
143
|
fieldName: t,
|
|
144
144
|
onValueChange: (s) => {
|
|
145
145
|
this.handleKendoPasteValue(s);
|
|
@@ -195,7 +195,7 @@ const n = class n extends p.Component {
|
|
|
195
195
|
autoCapitalize: "off",
|
|
196
196
|
autoFocus: a,
|
|
197
197
|
spellCheck: !1,
|
|
198
|
-
className: _(
|
|
198
|
+
className: _(H.inputInner({ c: k })),
|
|
199
199
|
value: this.value,
|
|
200
200
|
id: c,
|
|
201
201
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
@@ -203,7 +203,7 @@ const n = class n extends p.Component {
|
|
|
203
203
|
"aria-placeholder": this.props.mask,
|
|
204
204
|
"aria-required": this.props.required,
|
|
205
205
|
name: this.props.name,
|
|
206
|
-
tabIndex:
|
|
206
|
+
tabIndex: D(this.props.tabIndex, this.props.disabled, !0),
|
|
207
207
|
accessKey: this.props.accessKey,
|
|
208
208
|
title: this.props.title,
|
|
209
209
|
disabled: this.props.disabled || void 0,
|
|
@@ -331,10 +331,10 @@ n.displayName = "MaskedTextBox", n.propTypes = {
|
|
|
331
331
|
autoFocus: !1
|
|
332
332
|
};
|
|
333
333
|
let h = n;
|
|
334
|
-
const B =
|
|
334
|
+
const B = T(), F = O(
|
|
335
335
|
M(
|
|
336
336
|
B,
|
|
337
|
-
|
|
337
|
+
I(h)
|
|
338
338
|
)
|
|
339
339
|
);
|
|
340
340
|
F.displayName = "KendoReactMaskedTextBox";
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import * as n from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
10
|
import { useInternationalization as et, useLocalization as tt } from "@progress/kendo-react-intl";
|
|
11
|
-
import {
|
|
11
|
+
import { usePropsContext as nt, useId as rt, useCustomComponent as ge, dispatchEvent as Q, useKendoPaste as at, getActiveElement as ve, useIsomorphicLayoutEffect as st, classNames as ot, kendoThemeMaps as ye, getTabIndex as lt, createPropsContext as ut } from "@progress/kendo-react-common";
|
|
12
12
|
import { caretAltUpIcon as it, caretAltDownIcon as ct } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { FloatingLabel as dt } from "@progress/kendo-react-labels";
|
|
14
14
|
import { numericIncreaseValue as G, messages as _, numericDecreaseValue as j } from "../messages/index.mjs";
|
|
15
15
|
import { getInitialState as Ve, formatValue as O, getStateOrPropsValue as X, rangeValue as N, sanitizeNumber as Ce, decreaseValue as ke, increaseValue as Ee } from "./utils/index.mjs";
|
|
16
16
|
import { Button as Se } from "@progress/kendo-react-buttons";
|
|
17
|
-
const mt = "Please enter a valid value!", ft =
|
|
17
|
+
const mt = "Please enter a valid value!", ft = ut(), he = n.forwardRef(
|
|
18
18
|
(k, xe) => {
|
|
19
|
-
const K =
|
|
19
|
+
const K = nt(
|
|
20
20
|
ft,
|
|
21
21
|
k
|
|
22
22
|
), {
|
|
@@ -66,7 +66,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
|
|
|
66
66
|
autoFocus: Ge = c.autoFocus,
|
|
67
67
|
inputAttributes: _e,
|
|
68
68
|
...ue
|
|
69
|
-
} = K, je =
|
|
69
|
+
} = K, je = rt(), ie = ne || je, o = et(), B = tt(), a = n.useRef(null), M = n.useRef(void 0), [Ke, S] = n.useState(!1), i = n.useRef(Ve()), T = n.useRef(!1), $ = n.useRef(void 0), x = n.useRef(Le), ce = P || ne, I = O(
|
|
70
70
|
i.current.focused && !l ? i.current.currentLooseValue : X(y, x.current),
|
|
71
71
|
s,
|
|
72
72
|
o
|
|
@@ -136,7 +136,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
|
|
|
136
136
|
},
|
|
137
137
|
[d, m, s, o, f]
|
|
138
138
|
);
|
|
139
|
-
|
|
139
|
+
at(a, {
|
|
140
140
|
fieldName: ce,
|
|
141
141
|
onValueChange: Ue,
|
|
142
142
|
enabled: !!ce
|
|
@@ -239,7 +239,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
|
|
|
239
239
|
r.preventDefault(), e !== a.current && a.current.focus();
|
|
240
240
|
}
|
|
241
241
|
}, []);
|
|
242
|
-
|
|
242
|
+
st(() => {
|
|
243
243
|
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);
|
|
244
244
|
}, [Ke]);
|
|
245
245
|
const be = !W() || A().valid, pe = /* @__PURE__ */ n.createElement(
|
|
@@ -247,7 +247,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
|
|
|
247
247
|
{
|
|
248
248
|
dir: te,
|
|
249
249
|
style: D ? re : { width: Z, ...re },
|
|
250
|
-
className:
|
|
250
|
+
className: ot(
|
|
251
251
|
"k-input",
|
|
252
252
|
"k-numerictextbox",
|
|
253
253
|
{
|
|
@@ -269,7 +269,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
|
|
|
269
269
|
{
|
|
270
270
|
role: "spinbutton",
|
|
271
271
|
value: I === null ? "" : I,
|
|
272
|
-
tabIndex:
|
|
272
|
+
tabIndex: lt(Oe, l),
|
|
273
273
|
accessKey: Ne,
|
|
274
274
|
disabled: l,
|
|
275
275
|
title: Pe,
|
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: 1770669973,version:"14.0.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '14.0.0-develop.
|
|
11
|
+
version: '14.0.0-develop.2',
|
|
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.0.0-develop.
|
|
3
|
+
"version": "14.0.0-develop.2",
|
|
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,17 +28,17 @@
|
|
|
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.0.0-develop.
|
|
32
|
-
"@progress/kendo-react-buttons": "14.0.0-develop.
|
|
33
|
-
"@progress/kendo-react-common": "14.0.0-develop.
|
|
34
|
-
"@progress/kendo-react-dialogs": "14.0.0-develop.
|
|
35
|
-
"@progress/kendo-react-layout": "14.0.0-develop.
|
|
36
|
-
"@progress/kendo-react-intl": "14.0.0-develop.
|
|
37
|
-
"@progress/kendo-react-labels": "14.0.0-develop.
|
|
38
|
-
"@progress/kendo-react-popup": "14.0.0-develop.
|
|
31
|
+
"@progress/kendo-react-animation": "14.0.0-develop.2",
|
|
32
|
+
"@progress/kendo-react-buttons": "14.0.0-develop.2",
|
|
33
|
+
"@progress/kendo-react-common": "14.0.0-develop.2",
|
|
34
|
+
"@progress/kendo-react-dialogs": "14.0.0-develop.2",
|
|
35
|
+
"@progress/kendo-react-layout": "14.0.0-develop.2",
|
|
36
|
+
"@progress/kendo-react-intl": "14.0.0-develop.2",
|
|
37
|
+
"@progress/kendo-react-labels": "14.0.0-develop.2",
|
|
38
|
+
"@progress/kendo-react-popup": "14.0.0-develop.2",
|
|
39
39
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
40
|
-
"react": "^
|
|
41
|
-
"react-dom": "^
|
|
40
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"prop-types": "^15.6.0"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"package": {
|
|
83
83
|
"productName": "KendoReact",
|
|
84
84
|
"productCode": "KENDOUIREACT",
|
|
85
|
-
"publishDate":
|
|
85
|
+
"publishDate": 1770669973,
|
|
86
86
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import a from "prop-types";
|
|
10
|
-
import {
|
|
11
|
-
const M =
|
|
12
|
-
const I =
|
|
10
|
+
import { usePropsContext as S, useUnstyled as U, useId as A, dispatchEvent as d, getTabIndex as G, classNames as m, uRadioButton as b, createPropsContext as J } from "@progress/kendo-react-common";
|
|
11
|
+
const M = J(), x = e.forwardRef((E, F) => {
|
|
12
|
+
const I = S(M, E), {
|
|
13
13
|
ariaDescribedBy: P,
|
|
14
14
|
checked: p,
|
|
15
15
|
children: f,
|
|
@@ -29,7 +29,7 @@ const M = S(), x = e.forwardRef((E, F) => {
|
|
|
29
29
|
onBlur: i,
|
|
30
30
|
required: H,
|
|
31
31
|
..._
|
|
32
|
-
} = I, y =
|
|
32
|
+
} = I, y = U(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
|
|
33
33
|
l.current && l.current.focus();
|
|
34
34
|
}, []), s = e.useCallback(
|
|
35
35
|
() => ({
|
|
@@ -39,7 +39,7 @@ const M = S(), x = e.forwardRef((E, F) => {
|
|
|
39
39
|
[C]
|
|
40
40
|
);
|
|
41
41
|
e.useImperativeHandle(F, s);
|
|
42
|
-
const v =
|
|
42
|
+
const v = A(), j = e.useCallback(
|
|
43
43
|
(t) => {
|
|
44
44
|
d(h, t, s(), {
|
|
45
45
|
value: r
|
|
@@ -76,7 +76,7 @@ const M = S(), x = e.forwardRef((E, F) => {
|
|
|
76
76
|
),
|
|
77
77
|
ref: l,
|
|
78
78
|
disabled: n,
|
|
79
|
-
tabIndex:
|
|
79
|
+
tabIndex: G(w, n),
|
|
80
80
|
checked: p,
|
|
81
81
|
style: q,
|
|
82
82
|
"aria-describedby": P,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import * as t from "react";
|
|
9
9
|
import e from "prop-types";
|
|
10
10
|
import { RadioButton as A } from "./RadioButton.mjs";
|
|
11
|
-
import {
|
|
12
|
-
const Z =
|
|
13
|
-
const m =
|
|
11
|
+
import { usePropsContext as J, useUnstyled as M, focusFirstFocusableChild as Q, dispatchEvent as k, useId as W, classNames as P, uRadioGroup as E, useRtl as X, createPropsContext as Y } from "@progress/kendo-react-common";
|
|
12
|
+
const Z = Y(), G = t.forwardRef((r, I) => {
|
|
13
|
+
const m = J(Z, r), {
|
|
14
14
|
id: N,
|
|
15
15
|
ariaLabelledBy: B,
|
|
16
16
|
ariaDescribedBy: F,
|
|
@@ -27,8 +27,8 @@ const Z = J(), G = t.forwardRef((r, I) => {
|
|
|
27
27
|
item: D = $.item,
|
|
28
28
|
onChange: c,
|
|
29
29
|
onFocus: d
|
|
30
|
-
} = m, f =
|
|
31
|
-
o.current &&
|
|
30
|
+
} = m, f = M(), y = f && f.uRadioGroup, o = t.useRef(null), C = t.useCallback(() => {
|
|
31
|
+
o.current && Q(o.current);
|
|
32
32
|
}, []), i = t.useCallback(
|
|
33
33
|
() => ({
|
|
34
34
|
element: o.current,
|
|
@@ -58,14 +58,14 @@ const Z = J(), G = t.forwardRef((r, I) => {
|
|
|
58
58
|
);
|
|
59
59
|
},
|
|
60
60
|
[d, s]
|
|
61
|
-
), T =
|
|
61
|
+
), T = W(), _ = P(
|
|
62
62
|
E.ul({
|
|
63
63
|
c: y,
|
|
64
64
|
horizontal: n === "horizontal",
|
|
65
65
|
vertical: n === "vertical" || n === void 0
|
|
66
66
|
}),
|
|
67
67
|
x
|
|
68
|
-
), w =
|
|
68
|
+
), w = X(o, m.dir), K = b && b.map((a, l) => {
|
|
69
69
|
const g = u === a.value, U = u == null, R = {
|
|
70
70
|
...a,
|
|
71
71
|
valid: z,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
9
|
import S from "prop-types";
|
|
10
|
-
import {
|
|
10
|
+
import { validatePackage as j, getLicenseMessage as J, usePropsContext as Q, useDir as Z, Keys as m, useDraggable as ee, classNames as te, getTabIndex as V, WatermarkOverlay as ae, createPropsContext as re } from "@progress/kendo-react-common";
|
|
11
11
|
import { sliderDragTitle as $, messages as z } from "../messages/index.mjs";
|
|
12
12
|
import { useLocalization as ne } from "@progress/kendo-react-intl";
|
|
13
13
|
import { RANGE_ACTION as r, rangeReducer as le } from "./range-raducer.mjs";
|
|
@@ -21,8 +21,8 @@ const se = (n, s, p) => {
|
|
|
21
21
|
[s, p]
|
|
22
22
|
);
|
|
23
23
|
return [c, e];
|
|
24
|
-
}, ce =
|
|
25
|
-
const p = !
|
|
24
|
+
}, ce = re(), K = a.forwardRef((n, s) => {
|
|
25
|
+
const p = !j(P, { component: "RangeSlider" }), c = J(P), i = Q(ce, n), e = {
|
|
26
26
|
step: y.step,
|
|
27
27
|
largeStep: y.largeStep,
|
|
28
28
|
defaultValue: y.defaultValue,
|
|
@@ -43,7 +43,7 @@ const se = (n, s, p) => {
|
|
|
43
43
|
), O = a.useMemo(
|
|
44
44
|
() => e.largeStep !== void 0 ? e.largeStep : y.largeStep,
|
|
45
45
|
[e.largeStep, y.largeStep]
|
|
46
|
-
), o =
|
|
46
|
+
), o = Z(b, e.dir), W = (t, u) => {
|
|
47
47
|
e.onChange && f.current && e.onChange.call(void 0, {
|
|
48
48
|
value: t,
|
|
49
49
|
target: f.current,
|
|
@@ -187,7 +187,7 @@ const se = (n, s, p) => {
|
|
|
187
187
|
},
|
|
188
188
|
[e.vertical, g, k, l]
|
|
189
189
|
);
|
|
190
|
-
return
|
|
190
|
+
return ee(
|
|
191
191
|
R,
|
|
192
192
|
{
|
|
193
193
|
onPress: F,
|
|
@@ -208,7 +208,7 @@ const se = (n, s, p) => {
|
|
|
208
208
|
style: e.style,
|
|
209
209
|
ref: b,
|
|
210
210
|
dir: o,
|
|
211
|
-
className:
|
|
211
|
+
className: te(
|
|
212
212
|
"k-slider",
|
|
213
213
|
{
|
|
214
214
|
"k-rtl": o === "rtl",
|
|
@@ -297,7 +297,7 @@ const se = (n, s, p) => {
|
|
|
297
297
|
)
|
|
298
298
|
)
|
|
299
299
|
)
|
|
300
|
-
), p && /* @__PURE__ */ a.createElement(
|
|
300
|
+
), p && /* @__PURE__ */ a.createElement(ae, { message: c }));
|
|
301
301
|
}), ie = {
|
|
302
302
|
value: (n, s, p) => {
|
|
303
303
|
if (n.value) {
|
package/rating/Rating.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
9
|
import c from "prop-types";
|
|
10
|
-
import {
|
|
10
|
+
import { usePropsContext as te, useDir as ae, Keys as R, IconWrap as y, toIconName as B, classNames as ne, getTabIndex as le, createPropsContext as se, svgIconPropType as S } from "@progress/kendo-react-common";
|
|
11
11
|
import { starOutlineIcon as $, starIcon as K } from "@progress/kendo-svg-icons";
|
|
12
12
|
import { RatingItem as oe } from "./RatingItem.mjs";
|
|
13
13
|
import { RATING_ACTION as r, ratingReducer as ie } from "./rating-reducer.mjs";
|
|
@@ -20,8 +20,8 @@ const X = (n, g, v) => {
|
|
|
20
20
|
const o = ie(g.state || e, { ...h, ...g });
|
|
21
21
|
v && v(o, h.event), N(o);
|
|
22
22
|
}];
|
|
23
|
-
}, de =
|
|
24
|
-
const v =
|
|
23
|
+
}, de = se(), q = a.forwardRef((n, g) => {
|
|
24
|
+
const v = te(de, n), e = {
|
|
25
25
|
dir: s.dir,
|
|
26
26
|
min: s.min,
|
|
27
27
|
max: s.max,
|
|
@@ -33,7 +33,7 @@ const X = (n, g, v) => {
|
|
|
33
33
|
selection: s.selection,
|
|
34
34
|
precision: s.precision,
|
|
35
35
|
...v
|
|
36
|
-
}, N = me(), m = a.useRef(null), h = a.useRef(null), o =
|
|
36
|
+
}, N = me(), m = a.useRef(null), h = a.useRef(null), o = ae(h, e.dir);
|
|
37
37
|
a.useImperativeHandle(m, () => ({
|
|
38
38
|
element: h.current,
|
|
39
39
|
props: e
|
|
@@ -244,8 +244,8 @@ const X = (n, g, v) => {
|
|
|
244
244
|
ref: h,
|
|
245
245
|
role: "slider",
|
|
246
246
|
dir: o,
|
|
247
|
-
tabIndex:
|
|
248
|
-
className:
|
|
247
|
+
tabIndex: le(e.tabIndex, e.disabled, void 0),
|
|
248
|
+
className: ne(
|
|
249
249
|
"k-rating",
|
|
250
250
|
{
|
|
251
251
|
"k-rtl": o === "rtl",
|
package/signature/Signature.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { SignaturePad as Le } from "@progress/kendo-inputs-common";
|
|
9
9
|
import { Button as T } from "@progress/kendo-react-buttons";
|
|
10
|
-
import {
|
|
10
|
+
import { validatePackage as we, getLicenseMessage as Ie, usePropsContext as Pe, noop as f, useIsomorphicLayoutEffect as De, dispatchEvent as h, classNames as B, kendoThemeMaps as ee, getTabIndex as Te, WatermarkOverlay as Be, createPropsContext as Re } from "@progress/kendo-react-common";
|
|
11
11
|
import { Dialog as _e } from "@progress/kendo-react-dialogs";
|
|
12
12
|
import { useLocalization as Fe } from "@progress/kendo-react-intl";
|
|
13
13
|
import a from "prop-types";
|
|
@@ -16,8 +16,8 @@ import { signatureMaximize as te, messages as R, signatureMinimize as oe, signat
|
|
|
16
16
|
import { packageMetadata as ae } from "../package-metadata.mjs";
|
|
17
17
|
import { hasParent as Ne } from "./utils/index.mjs";
|
|
18
18
|
import { hyperlinkOpenIcon as re, xIcon as We } from "@progress/kendo-svg-icons";
|
|
19
|
-
const qe = 250, Ge = 84, se = 3, le = 2, Ae = "#000000", Ve = "#ffffff", ie = (d) => d !== void 0, je =
|
|
20
|
-
const ue = !
|
|
19
|
+
const qe = 250, Ge = 84, se = 3, le = 2, Ae = "#000000", Ve = "#ffffff", ie = (d) => d !== void 0, je = Re(), _ = o.forwardRef((d, ce) => {
|
|
20
|
+
const ue = !we(ae, { component: "Signature" }), de = Ie(ae), F = Pe(je, d), e = o.useMemo(
|
|
21
21
|
() => ({
|
|
22
22
|
strokeWidth: s.strokeWidth,
|
|
23
23
|
smooth: s.smooth,
|
|
@@ -85,7 +85,7 @@ const qe = 250, Ge = 84, se = 3, le = 2, Ae = "#000000", Ve = "#ffffff", ie = (d
|
|
|
85
85
|
onDraw: () => G(!0),
|
|
86
86
|
onDrawEnd: () => G(!1)
|
|
87
87
|
});
|
|
88
|
-
}, [r]),
|
|
88
|
+
}, [r]), De(
|
|
89
89
|
() => r == null ? void 0 : r.setOptions($()),
|
|
90
90
|
[e.readOnly, e.color, e.backgroundColor, e.strokeWidth, e.smooth]
|
|
91
91
|
), o.useEffect(() => {
|
|
@@ -201,7 +201,7 @@ const qe = 250, Ge = 84, se = 3, le = 2, Ae = "#000000", Ve = "#ffffff", ie = (d
|
|
|
201
201
|
{
|
|
202
202
|
className: "k-signature-canvas",
|
|
203
203
|
ref: g,
|
|
204
|
-
tabIndex:
|
|
204
|
+
tabIndex: Te(e.tabIndex, e.disabled),
|
|
205
205
|
role: "img",
|
|
206
206
|
id: e.id,
|
|
207
207
|
"aria-label": e.ariaLabel,
|
|
@@ -275,7 +275,7 @@ const qe = 250, Ge = 84, se = 3, le = 2, Ae = "#000000", Ve = "#ffffff", ie = (d
|
|
|
275
275
|
onClose: Se
|
|
276
276
|
}
|
|
277
277
|
)),
|
|
278
|
-
ue && /* @__PURE__ */ o.createElement(
|
|
278
|
+
ue && /* @__PURE__ */ o.createElement(Be, { message: de })
|
|
279
279
|
);
|
|
280
280
|
});
|
|
281
281
|
_.propTypes = {
|