@progress/kendo-react-inputs 7.1.0 → 7.1.1-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/dist/cdn/js/kendo-react-inputs.js +3 -3
- package/index.js +3 -3
- package/index.mjs +335 -335
- package/package.json +9 -9
package/index.mjs
CHANGED
|
@@ -5,33 +5,33 @@
|
|
|
5
5
|
"use client";
|
|
6
6
|
import * as n from "react";
|
|
7
7
|
import r from "prop-types";
|
|
8
|
-
import { useInternationalization as
|
|
9
|
-
import { createPropsContext as he, validatePackage as pe, usePropsContext as Me, useId as Qe, useCustomComponent as Fe, dispatchEvent as J, getActiveElement as
|
|
10
|
-
import { caretAltUpIcon as _t, caretAltDownIcon as ht, caretAltExpandIcon as
|
|
11
|
-
import { FloatingLabel as
|
|
12
|
-
import { Button as ge, ButtonGroup as
|
|
13
|
-
import { parseColor as mt, Color as
|
|
14
|
-
import { Popup as
|
|
15
|
-
import { SignaturePad as
|
|
16
|
-
import { Dialog as
|
|
8
|
+
import { useInternationalization as Pn, useLocalization as He, provideLocalizationService as Je, registerForIntl as Dn, registerForLocalization as fa } from "@progress/kendo-react-intl";
|
|
9
|
+
import { createPropsContext as he, validatePackage as pe, usePropsContext as Me, useId as Qe, useCustomComponent as Fe, dispatchEvent as J, getActiveElement as Ia, useIsomorphicLayoutEffect as ha, classNames as G, kendoThemeMaps as ne, getTabIndex as re, withIdHOC as et, withPropsContext as je, useDir as Ge, Keys as _, Draggable as tn, IconWrap as fe, focusFirstFocusableChild as an, svgIconPropType as zt, useDraggable as Bn, noop as De, useRtl as On, toIconName as Vt, useAsyncFocusBlur as Fn } from "@progress/kendo-react-common";
|
|
10
|
+
import { caretAltUpIcon as _t, caretAltDownIcon as ht, caretAltExpandIcon as Tn, caretAltLeftIcon as La, caretAltRightIcon as Ra, checkIcon as Mt, xIcon as At, dropletSliderIcon as zn, paletteIcon as _n, dropletSlashIcon as An, starOutlineIcon as Va, starIcon as Ma, hyperlinkOpenIcon as Na } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { FloatingLabel as pa, Label as We } from "@progress/kendo-react-labels";
|
|
12
|
+
import { Button as ge, ButtonGroup as $n } from "@progress/kendo-react-buttons";
|
|
13
|
+
import { parseColor as mt, Color as nn } from "@progress/kendo-drawing";
|
|
14
|
+
import { Popup as Hn } from "@progress/kendo-react-popup";
|
|
15
|
+
import { SignaturePad as Gn } from "@progress/kendo-inputs-common";
|
|
16
|
+
import { Dialog as Kn } from "@progress/kendo-react-dialogs";
|
|
17
17
|
const me = {
|
|
18
18
|
name: "@progress/kendo-react-inputs",
|
|
19
19
|
productName: "KendoReact",
|
|
20
20
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
21
|
-
publishDate:
|
|
21
|
+
publishDate: 1706857530,
|
|
22
22
|
version: "",
|
|
23
23
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
24
|
-
}, Xe = "numerictextbox.increment", Ye = "numerictextbox.decrement", $t = "slider.increment", Ht = "slider.decrement", Ae = "slider.dragTitle", _e = "colorGradient.r",
|
|
24
|
+
}, Xe = "numerictextbox.increment", Ye = "numerictextbox.decrement", $t = "slider.increment", Ht = "slider.decrement", Ae = "slider.dragTitle", _e = "colorGradient.r", sn = "colorGradient.g", rn = "colorGradient.b", ln = "colorGradient.a", on = "colorGradient.hex", Gt = "colorGradient.contrastRatio", Kt = "colorGradient.colorGradientAALevel", qt = "colorGradient.colorGradientAAALevel", Ut = "colorGradient.colorGradientPass", jt = "colorGradient.colorGradientFail", Wt = "colorGradient.hueSliderLabel", Xt = "colorGradient.alphaSliderLabel", Yt = "colorGradient.toggleInputsButton", cn = "flatColorPicker.cancelBtn", dn = "flatColorPicker.applyBtn", Zt = "flatColorPicker.colorGradientBtn", Jt = "flatColorPicker.colorPaletteBtn", Qt = "flatColorPicker.clearBtn", un = "checkbox.validation", fn = "checkbox.optionalText", qn = "radioButton.validation", ea = "switch.validation", ta = "colorPicker.dropdownButtonAriaLabel", aa = "rating.ariaLabel", na = "signature.clear", sa = "signature.maximize", ra = "signature.minimize", H = {
|
|
25
25
|
[Xe]: "Increase value",
|
|
26
26
|
[Ye]: "Decrease value",
|
|
27
27
|
[$t]: "Increase",
|
|
28
28
|
[Ht]: "Decrease",
|
|
29
29
|
[Ae]: "Drag",
|
|
30
30
|
[_e]: "r",
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
31
|
+
[sn]: "g",
|
|
32
|
+
[rn]: "b",
|
|
33
|
+
[ln]: "a",
|
|
34
|
+
[on]: "hex",
|
|
35
35
|
[Gt]: "Contrast ratio",
|
|
36
36
|
[Kt]: "AA",
|
|
37
37
|
[qt]: "AAA",
|
|
@@ -40,21 +40,21 @@ const me = {
|
|
|
40
40
|
[Wt]: "Hue slider",
|
|
41
41
|
[Xt]: "Alpha slider",
|
|
42
42
|
[Yt]: "Toggle colorgradient inputs",
|
|
43
|
-
[
|
|
44
|
-
[
|
|
43
|
+
[cn]: "Cancel",
|
|
44
|
+
[dn]: "Apply",
|
|
45
45
|
[Zt]: "Color Gradient view",
|
|
46
46
|
[Jt]: "Color Palette view",
|
|
47
47
|
[Qt]: "Clear color value",
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
48
|
+
[un]: "Please check this box if you want to proceed!",
|
|
49
|
+
[fn]: "(Optional)",
|
|
50
|
+
[qn]: "Please select option if you want to proceed!",
|
|
51
51
|
[ea]: "Please turn on if you want to proceed!",
|
|
52
52
|
[ta]: "Select",
|
|
53
53
|
[aa]: "Rating",
|
|
54
54
|
[na]: "Clear",
|
|
55
55
|
[sa]: "Maximize",
|
|
56
56
|
[ra]: "Minimize"
|
|
57
|
-
}, pt = 11111111111111e-7,
|
|
57
|
+
}, pt = 11111111111111e-7, Un = 0.31111111111111117, jn = 1, hn = 1, pn = 0, ye = /\d/, mn = 15, Pa = () => ({
|
|
58
58
|
eventValue: null,
|
|
59
59
|
prevLooseValue: "",
|
|
60
60
|
currentLooseValue: "",
|
|
@@ -64,53 +64,53 @@ const me = {
|
|
|
64
64
|
decimalSelect: !1,
|
|
65
65
|
valueIsCorrected: !1,
|
|
66
66
|
valueIsOutOfRange: !1
|
|
67
|
-
}), Nt = (a, t) => a !== void 0 ? a : t, ue = (a, t, e) => a === null && a === void 0 ? "" : typeof a == "string" ? a : e.formatNumber(a, t),
|
|
68
|
-
const e =
|
|
67
|
+
}), Nt = (a, t) => a !== void 0 ? a : t, ue = (a, t, e) => a === null && a === void 0 ? "" : typeof a == "string" ? a : e.formatNumber(a, t), Da = (a) => (String(a).split(".")[1] || "").length, gn = (a, t) => Math.max(Da(a), Da(t)), Wn = (a) => Math.min(a, mn), bn = (a, t) => {
|
|
68
|
+
const e = Wn(t);
|
|
69
69
|
return parseFloat(a.toFixed(e));
|
|
70
|
-
}, Da = (a, t, e, s, i, l, c) => {
|
|
71
|
-
const o = mn(a || 0, e || 0), h = qe(gn((a || 0) + (e || 0), o), s, i);
|
|
72
|
-
t.eventValue = h, t.currentLooseValue = ue(h, l, c), t.selectionStart = t.selectionEnd = Ze(t.currentLooseValue, ye);
|
|
73
70
|
}, Ba = (a, t, e, s, i, l, c) => {
|
|
74
|
-
const o =
|
|
71
|
+
const o = gn(a || 0, e || 0), h = qe(bn((a || 0) + (e || 0), o), s, i);
|
|
72
|
+
t.eventValue = h, t.currentLooseValue = ue(h, l, c), t.selectionStart = t.selectionEnd = Ze(t.currentLooseValue, ye);
|
|
73
|
+
}, Oa = (a, t, e, s, i, l, c) => {
|
|
74
|
+
const o = gn(a || 0, e || 0), h = qe(bn((a || 0) - (e || 0), o), s, i);
|
|
75
75
|
t.eventValue = h, t.currentLooseValue = ue(h, l, c), t.selectionStart = t.selectionEnd = Ze(t.currentLooseValue, ye);
|
|
76
|
-
}, qe = (a, t, e) => a == null ? a : !(a > 1 || a < 1 || a === 1) || e !== void 0 && t !== void 0 && e < t ? null : (e !== void 0 && a > e && (a = e), t !== void 0 && a < t && (a = t), a),
|
|
76
|
+
}, qe = (a, t, e) => a == null ? a : !(a > 1 || a < 1 || a === 1) || e !== void 0 && t !== void 0 && e < t ? null : (e !== void 0 && a > e && (a = e), t !== void 0 && a < t && (a = t), a), Xn = (a, t) => {
|
|
77
77
|
const e = t.findIndex(([i, l]) => !!l && a.indexOf(l) === a.length - l.length);
|
|
78
78
|
if (e === -1)
|
|
79
79
|
return -1;
|
|
80
80
|
const s = t[e][1];
|
|
81
81
|
return a.length - s.length;
|
|
82
|
-
},
|
|
82
|
+
}, Yn = (a, t) => {
|
|
83
83
|
const e = t.findIndex(([i, l]) => !!i && a.indexOf(i) === 0);
|
|
84
84
|
return e === -1 ? -1 : t[e][0].length;
|
|
85
|
-
},
|
|
86
|
-
const s =
|
|
85
|
+
}, Zn = (a, t, e) => {
|
|
86
|
+
const s = Xn(a, t);
|
|
87
87
|
if (s !== -1 && e.selectionStart > s) {
|
|
88
88
|
e.selectionStart = e.selectionEnd = s;
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
e.selectionStart > a.length && (e.selectionStart = e.selectionEnd = a.length);
|
|
92
|
-
const i =
|
|
92
|
+
const i = Yn(a, t);
|
|
93
93
|
i !== -1 && e.selectionStart < i && (e.selectionStart = e.selectionEnd = i), e.selectionStart === -1 && (e.selectionStart = e.selectionEnd = 0);
|
|
94
94
|
}, Ve = (a, t, e, s) => {
|
|
95
|
-
a.selectionStart = a.selectionEnd = t,
|
|
95
|
+
a.selectionStart = a.selectionEnd = t, Zn(e, s, a);
|
|
96
96
|
}, Pt = (a, t, e, s) => {
|
|
97
97
|
a.eventValue = s.parseNumber(a.prevLooseValue, t), a.currentLooseValue = a.prevLooseValue, a.valueIsCorrected = !0, Ve(a, a.selectionStart, a.currentLooseValue, e);
|
|
98
|
-
},
|
|
98
|
+
}, Jn = (a, t) => {
|
|
99
99
|
const e = String(a.currentLooseValue), s = String(a.prevLooseValue);
|
|
100
100
|
return e.split(t.minusSign).length !== s.split(t.minusSign).length && e.length === s.length + t.minusSign.length;
|
|
101
|
-
},
|
|
101
|
+
}, Qn = (a, t) => {
|
|
102
102
|
const e = String(a.currentLooseValue), s = String(a.prevLooseValue);
|
|
103
103
|
return e.indexOf(t.minusSign) === -1 && s.indexOf(t.minusSign) !== -1;
|
|
104
|
-
},
|
|
105
|
-
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(
|
|
104
|
+
}, es = (a, t) => String(a.currentLooseValue).split(t.decimal).length > 2, ts = (a, t) => {
|
|
105
|
+
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(pn, a), l = t.formatNumber(hn, a), c = nt(e), o = nt(s), h = nt(i), d = nt(l), p = st(e), m = st(s), f = st(i), v = st(l);
|
|
106
106
|
return {
|
|
107
107
|
positiveInfo: [c, p],
|
|
108
108
|
negativeInfo: [o, m],
|
|
109
109
|
zeroInfo: [h, f],
|
|
110
110
|
oneInfo: [d, v]
|
|
111
111
|
};
|
|
112
|
-
},
|
|
113
|
-
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(
|
|
112
|
+
}, as = (a, t) => {
|
|
113
|
+
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(pn, a), l = t.formatNumber(hn, a), c = t.numberSymbols(), o = new RegExp(`[\\d\\${c.decimal}${c.group}]`, "g");
|
|
114
114
|
return [e, s, i, l].map((d) => d.replace(o, "")).join("").split("").filter((d, p, m) => m.indexOf(d) === p).join("");
|
|
115
115
|
}, Dt = (a, t) => {
|
|
116
116
|
const e = a.indexOf(t.decimal);
|
|
@@ -118,10 +118,10 @@ const me = {
|
|
|
118
118
|
}, ia = (a) => a.split("").reverse().join(""), Ze = (a, t) => a.length - ia(a).search(t), nt = (a) => a.split(a[a.search(ye)])[0], st = (a) => {
|
|
119
119
|
const t = ia(a);
|
|
120
120
|
return ia(t.split(t[t.search(ye)])[0]);
|
|
121
|
-
}, Bt = (a, t) => a.search(t),
|
|
121
|
+
}, Bt = (a, t) => a.search(t), Fa = (a, t) => {
|
|
122
122
|
const e = a.indexOf(t);
|
|
123
123
|
return e > -1 ? a.length - e - 1 : 0;
|
|
124
|
-
},
|
|
124
|
+
}, Ta = (a, t, e, s, i) => {
|
|
125
125
|
const l = a.replace(i, "")[0] === "0", c = t.replace(i, "")[0] === "0";
|
|
126
126
|
if (l && !c)
|
|
127
127
|
return e - 1;
|
|
@@ -134,13 +134,13 @@ const me = {
|
|
|
134
134
|
for (; o > 0 && t.length > h; )
|
|
135
135
|
ye.test(t.charAt(h)) && o--, h++;
|
|
136
136
|
return h;
|
|
137
|
-
},
|
|
138
|
-
const s = { ...a }, { prevLooseValue: i } = s, l = e.numberSymbols(), c =
|
|
137
|
+
}, za = (a, t, e) => {
|
|
138
|
+
const s = { ...a }, { prevLooseValue: i } = s, l = e.numberSymbols(), c = as(t, e), o = String(s.currentLooseValue), h = String(i), d = new RegExp(`[^\\d\\${l.decimal}]`, "g"), p = new RegExp(`[^\\d\\${l.decimal}\\${l.group}]`, "g"), m = new RegExp(`[\\d\\${l.decimal}\\${l.group}]`), f = o.replace(d, ""), v = Bt(o, ye), N = v === -1 ? -1 : Ze(o, ye), P = o.indexOf(l.decimal), V = (o.substring(0, v) + o.substring(v, N).replace(p, "") + o.substring(N, o.length)).split("").filter((g) => c.indexOf(g) !== -1 || g.search(m) !== -1).join(""), R = e.formatNumber(Un, t).replace(d, ""), S = R.indexOf(l.decimal), I = S > -1 ? R.length - S - 1 : 0, O = e.formatNumber(jn, t).replace(d, ""), B = O.indexOf(l.decimal), w = B > -1 ? O.length - B - 1 : 0, {
|
|
139
139
|
positiveInfo: F,
|
|
140
140
|
negativeInfo: A,
|
|
141
141
|
zeroInfo: T,
|
|
142
142
|
oneInfo: x
|
|
143
|
-
} =
|
|
143
|
+
} = ts(t, e), L = [F, A, T, x], $ = L.findIndex((g) => g.findIndex((k) => !!k) !== -1) !== 1, U = o.length > 0 && o.length < h.length, Q = typeof t == "string" && t[0] === "p" && o && o.indexOf(l.percentSign) === -1;
|
|
144
144
|
if (!s.isPaste) {
|
|
145
145
|
if (o === "")
|
|
146
146
|
return s.eventValue = null, s.currentLooseValue = "", s;
|
|
@@ -166,7 +166,7 @@ const me = {
|
|
|
166
166
|
L
|
|
167
167
|
), s;
|
|
168
168
|
}
|
|
169
|
-
if (
|
|
169
|
+
if (Jn(s, l)) {
|
|
170
170
|
const y = e.parseNumber(i, t);
|
|
171
171
|
s.eventValue = -(y !== null ? y : 0), s.currentLooseValue = ue(s.eventValue, t, e);
|
|
172
172
|
const E = Bt(s.currentLooseValue, ye), D = Bt(h, ye);
|
|
@@ -177,27 +177,27 @@ const me = {
|
|
|
177
177
|
L
|
|
178
178
|
), s;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
180
|
+
if (Qn(s, l))
|
|
181
181
|
return s.eventValue = e.parseNumber(s.currentLooseValue, t), Ve(
|
|
182
182
|
s,
|
|
183
183
|
s.selectionStart,
|
|
184
184
|
s.currentLooseValue,
|
|
185
185
|
L
|
|
186
186
|
), s;
|
|
187
|
-
if (
|
|
187
|
+
if (es(s, l))
|
|
188
188
|
return Pt(s, t, L, e), s;
|
|
189
189
|
if (Q)
|
|
190
190
|
return s.eventValue = e.parseNumber(o, t) / 100, s.currentLooseValue = ue(s.eventValue, t, e), s;
|
|
191
|
-
if (String(s.currentLooseValue).replace(/[^\d]/g, "").length >
|
|
191
|
+
if (String(s.currentLooseValue).replace(/[^\d]/g, "").length > mn || f !== o && o && $ && L.findIndex(([E, D]) => {
|
|
192
192
|
const ee = o.indexOf(E), Z = o.indexOf(D), M = ee === 0, b = Z === o.length - D.length, q = ee + E.length !== v && v !== -1 && o[ee + E.length] !== l.decimal, K = Z !== N && N !== -1 && o[Z - 1] !== l.decimal;
|
|
193
193
|
return E && D ? q || K ? !1 : M && b : E ? q ? !1 : M : D ? K ? !1 : b : !1;
|
|
194
194
|
}) === -1)
|
|
195
195
|
return Pt(s, t, L, e), s;
|
|
196
196
|
if (f[f.length - 1] === l.decimal && I > 0)
|
|
197
197
|
return s.eventValue = e.parseNumber(o, t), s.currentLooseValue = V, s;
|
|
198
|
-
if (s.currentLooseValue && i && (c + l.decimal + l.group).split("").findIndex((E) => o.split("").filter((D) => D === E).length < h.split("").filter((D) => D === E).length && o.length + 1 === h.length ? !(E === l.decimal &&
|
|
198
|
+
if (s.currentLooseValue && i && (c + l.decimal + l.group).split("").findIndex((E) => o.split("").filter((D) => D === E).length < h.split("").filter((D) => D === E).length && o.length + 1 === h.length ? !(E === l.decimal && Fa(h.replace(d, ""), l.decimal) === 0) : !1) > -1)
|
|
199
199
|
return s.eventValue = e.parseNumber(a.prevLooseValue, t), s.currentLooseValue = a.prevLooseValue, s;
|
|
200
|
-
const k =
|
|
200
|
+
const k = Fa(f, l.decimal), u = f[f.length - 1] === "0";
|
|
201
201
|
if (U && u && k < w)
|
|
202
202
|
return s.eventValue = e.parseNumber(s.currentLooseValue, t), s.currentLooseValue = ue(s.eventValue, t, e), s;
|
|
203
203
|
if (k > 0) {
|
|
@@ -207,7 +207,7 @@ const me = {
|
|
|
207
207
|
const E = ue(s.eventValue, t, e);
|
|
208
208
|
return Ve(
|
|
209
209
|
s,
|
|
210
|
-
|
|
210
|
+
Ta(o, E, s.selectionEnd, U, d),
|
|
211
211
|
E,
|
|
212
212
|
L
|
|
213
213
|
), s.currentLooseValue = E, s;
|
|
@@ -226,16 +226,16 @@ const me = {
|
|
|
226
226
|
const g = ue(s.eventValue, t, e);
|
|
227
227
|
o.length === 1 ? Ve(s, Dt(g, l), g, L) : Ve(
|
|
228
228
|
s,
|
|
229
|
-
|
|
229
|
+
Ta(o, g, s.selectionEnd, U, d),
|
|
230
230
|
g,
|
|
231
231
|
L
|
|
232
232
|
), s.currentLooseValue = g;
|
|
233
233
|
} else
|
|
234
234
|
s.currentLooseValue = ue(e.parseNumber(f), t, e);
|
|
235
235
|
return s;
|
|
236
|
-
},
|
|
236
|
+
}, ns = "Please enter a valid value!", ss = he(), $e = n.forwardRef((a, t) => {
|
|
237
237
|
pe(me);
|
|
238
|
-
const e = Me(
|
|
238
|
+
const e = Me(ss, a), s = Qe(), i = e.id || s, l = Pn(), c = He(), o = n.useRef(null), h = n.useRef(), [d, p] = n.useState(!1), m = n.useRef(Pa()), f = n.useRef(!1), v = n.useRef(), N = n.useRef(e.defaultValue), P = ue(
|
|
239
239
|
m.current.focused && !e.disabled ? m.current.currentLooseValue : Nt(e.value, N.current),
|
|
240
240
|
e.format,
|
|
241
241
|
l
|
|
@@ -245,7 +245,7 @@ const me = {
|
|
|
245
245
|
n.useEffect(
|
|
246
246
|
() => {
|
|
247
247
|
o.current && o.current.setCustomValidity && o.current.setCustomValidity(
|
|
248
|
-
w().valid ? "" : e.validationMessage ||
|
|
248
|
+
w().valid ? "" : e.validationMessage || ns
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
);
|
|
@@ -321,7 +321,7 @@ const me = {
|
|
|
321
321
|
), $ = n.useCallback(
|
|
322
322
|
(M) => {
|
|
323
323
|
const b = x();
|
|
324
|
-
f.current = !1, L(M,
|
|
324
|
+
f.current = !1, L(M, za(b, e.format, l));
|
|
325
325
|
},
|
|
326
326
|
[e.format, e.onChange, l, L, x]
|
|
327
327
|
), U = n.useCallback(
|
|
@@ -335,7 +335,7 @@ const me = {
|
|
|
335
335
|
}
|
|
336
336
|
switch (M.keyCode) {
|
|
337
337
|
case 38:
|
|
338
|
-
|
|
338
|
+
Ba(
|
|
339
339
|
q,
|
|
340
340
|
b,
|
|
341
341
|
e.step,
|
|
@@ -346,7 +346,7 @@ const me = {
|
|
|
346
346
|
);
|
|
347
347
|
break;
|
|
348
348
|
case 40:
|
|
349
|
-
|
|
349
|
+
Oa(
|
|
350
350
|
q,
|
|
351
351
|
b,
|
|
352
352
|
e.step,
|
|
@@ -365,7 +365,7 @@ const me = {
|
|
|
365
365
|
}
|
|
366
366
|
case 110: {
|
|
367
367
|
const K = o.current, W = l.numberSymbols();
|
|
368
|
-
K && (b.currentLooseValue = b.currentLooseValue.slice(0, b.selectionStart) + W.decimal + b.currentLooseValue.slice(b.selectionEnd), b.selectionStart = b.selectionEnd = b.selectionStart + 1, b =
|
|
368
|
+
K && (b.currentLooseValue = b.currentLooseValue.slice(0, b.selectionStart) + W.decimal + b.currentLooseValue.slice(b.selectionEnd), b.selectionStart = b.selectionEnd = b.selectionStart + 1, b = za(b, e.format, l));
|
|
369
369
|
break;
|
|
370
370
|
}
|
|
371
371
|
default:
|
|
@@ -384,7 +384,7 @@ const me = {
|
|
|
384
384
|
if (e.readOnly || e.disabled)
|
|
385
385
|
return;
|
|
386
386
|
const b = x();
|
|
387
|
-
|
|
387
|
+
Ba(
|
|
388
388
|
l.parseNumber(String(b.currentLooseValue), e.format),
|
|
389
389
|
b,
|
|
390
390
|
e.step,
|
|
@@ -400,7 +400,7 @@ const me = {
|
|
|
400
400
|
if (e.readOnly || e.disabled)
|
|
401
401
|
return;
|
|
402
402
|
const b = x();
|
|
403
|
-
|
|
403
|
+
Oa(
|
|
404
404
|
l.parseNumber(String(b.currentLooseValue), e.format),
|
|
405
405
|
b,
|
|
406
406
|
e.step,
|
|
@@ -413,7 +413,7 @@ const me = {
|
|
|
413
413
|
[e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled, L, x]
|
|
414
414
|
), u = n.useCallback(
|
|
415
415
|
(M) => {
|
|
416
|
-
const b =
|
|
416
|
+
const b = Ia(document);
|
|
417
417
|
!document || b !== o.current || !o.current || e.readOnly || e.disabled || (M.nativeEvent.deltaY < 0 && g(M), M.nativeEvent.deltaY > 0 && k(M));
|
|
418
418
|
},
|
|
419
419
|
[g, k, e.disabled, e.readOnly]
|
|
@@ -429,7 +429,7 @@ const me = {
|
|
|
429
429
|
[e.onFocus, p, T]
|
|
430
430
|
), E = n.useCallback(
|
|
431
431
|
(M) => {
|
|
432
|
-
m.current =
|
|
432
|
+
m.current = Pa(), J(
|
|
433
433
|
e.onBlur,
|
|
434
434
|
M,
|
|
435
435
|
T(),
|
|
@@ -440,13 +440,13 @@ const me = {
|
|
|
440
440
|
), D = n.useCallback(
|
|
441
441
|
(M) => {
|
|
442
442
|
if (document && o.current) {
|
|
443
|
-
const b =
|
|
443
|
+
const b = Ia(document);
|
|
444
444
|
M.preventDefault(), b !== o.current && o.current.focus();
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
[]
|
|
448
448
|
);
|
|
449
|
-
|
|
449
|
+
ha(
|
|
450
450
|
() => {
|
|
451
451
|
o.current && o.current.type !== "number" && m.current.selectionStart !== void 0 && m.current.selectionEnd !== void 0 && (o.current.selectionStart = m.current.selectionStart, o.current.selectionEnd = m.current.selectionEnd, m.current.selectionStart = void 0, m.current.selectionEnd = void 0);
|
|
452
452
|
},
|
|
@@ -546,7 +546,7 @@ const me = {
|
|
|
546
546
|
)
|
|
547
547
|
);
|
|
548
548
|
return e.label ? /* @__PURE__ */ n.createElement(
|
|
549
|
-
|
|
549
|
+
pa,
|
|
550
550
|
{
|
|
551
551
|
label: e.label,
|
|
552
552
|
editorId: i,
|
|
@@ -640,30 +640,30 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
640
640
|
}, Ue = (a, t = !0) => {
|
|
641
641
|
const e = mt(a, t);
|
|
642
642
|
return ae(e) ? e.toBytes() : {};
|
|
643
|
-
},
|
|
643
|
+
}, ma = (a) => {
|
|
644
644
|
const t = se(a.h, 0, 359.9), e = se(a.s, 0, 1), s = se(a.v, 0, 1), i = se(a.a, 0, 1);
|
|
645
|
-
return
|
|
646
|
-
}, rt = (a) =>
|
|
645
|
+
return nn.fromHSV(t, e, s, i).toCssRgba();
|
|
646
|
+
}, rt = (a) => ma({ h: a, s: 1, v: 1, a: 1 }), rs = (a) => {
|
|
647
647
|
const t = se(a.r, 0, 255), e = se(a.g, 0, 255), s = se(a.b, 0, 255), i = se(a.a, 0, 1);
|
|
648
|
-
return
|
|
649
|
-
},
|
|
648
|
+
return nn.fromBytes(t, e, s, i).toCssRgba();
|
|
649
|
+
}, _a = (a, t) => {
|
|
650
650
|
const e = se(a.r, 0, 255), s = se(a.g, 0, 255), i = se(a.b, 0, 255), l = se(a.a, 0, 1), c = se(t.r, 0, 255), o = se(t.g, 0, 255), h = se(t.b, 0, 255);
|
|
651
651
|
return {
|
|
652
652
|
r: Math.round((1 - l) * c + l * e),
|
|
653
653
|
g: Math.round((1 - l) * o + l * s),
|
|
654
654
|
b: Math.round((1 - l) * h + l * i)
|
|
655
655
|
};
|
|
656
|
-
},
|
|
656
|
+
}, Aa = (a) => {
|
|
657
657
|
let t = [a.r || 0, a.g || 0, a.b || 0].map(function(e) {
|
|
658
658
|
return e /= 255, e <= 0.03928 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
|
659
659
|
});
|
|
660
660
|
return t[0] * 0.2126 + t[1] * 0.7152 + t[2] * 0.0722;
|
|
661
|
-
},
|
|
661
|
+
}, is = (a, t) => {
|
|
662
662
|
const e = Math.max(a, t), s = Math.min(a, t);
|
|
663
663
|
return (e + 0.05) / (s + 0.05);
|
|
664
|
-
},
|
|
665
|
-
_a(
|
|
666
|
-
_a(
|
|
664
|
+
}, vn = (a, t) => is(
|
|
665
|
+
Aa(_a(a, t)),
|
|
666
|
+
Aa(_a(t, { r: 0, g: 0, b: 0, a: 1 }))
|
|
667
667
|
), la = class extends n.Component {
|
|
668
668
|
constructor(a) {
|
|
669
669
|
super(a), this._input = null, this.focus = () => {
|
|
@@ -797,7 +797,7 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
797
797
|
}
|
|
798
798
|
);
|
|
799
799
|
return t ? /* @__PURE__ */ n.createElement(
|
|
800
|
-
|
|
800
|
+
pa,
|
|
801
801
|
{
|
|
802
802
|
label: t,
|
|
803
803
|
labelClassName: e,
|
|
@@ -831,9 +831,9 @@ gt.defaultProps = {
|
|
|
831
831
|
required: !1,
|
|
832
832
|
validityStyles: !0
|
|
833
833
|
};
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
class
|
|
834
|
+
const ls = he(), kn = et(je(ls, gt));
|
|
835
|
+
kn.displayName = "KendoReactInput";
|
|
836
|
+
class os extends n.Component {
|
|
837
837
|
constructor(t) {
|
|
838
838
|
super(t), this.onChange = (e) => {
|
|
839
839
|
const s = e.target.value, i = Be(s, "rgba");
|
|
@@ -844,7 +844,7 @@ class ls extends n.Component {
|
|
|
844
844
|
}
|
|
845
845
|
render() {
|
|
846
846
|
return /* @__PURE__ */ n.createElement(
|
|
847
|
-
|
|
847
|
+
kn,
|
|
848
848
|
{
|
|
849
849
|
value: this.state.hex,
|
|
850
850
|
onChange: this.onChange,
|
|
@@ -858,7 +858,7 @@ class ls extends n.Component {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
const Te = ["rgba", "rgb", "hex"];
|
|
861
|
-
class
|
|
861
|
+
class ga extends n.Component {
|
|
862
862
|
constructor(t) {
|
|
863
863
|
super(t), this.onRgbaRChange = (e) => {
|
|
864
864
|
this.dispatchRgbaChange({ r: e.value }, e);
|
|
@@ -871,19 +871,19 @@ class ma extends n.Component {
|
|
|
871
871
|
}, this.state = { inputMode: t.defaultInputMode || Te[1] };
|
|
872
872
|
}
|
|
873
873
|
render() {
|
|
874
|
-
const t = Je(this), e = t.toLanguageString(_e, H[
|
|
874
|
+
const t = Je(this), e = t.toLanguageString(_e, H[on]), s = t.toLanguageString(_e, H[_e]), i = t.toLanguageString(_e, H[sn]), l = t.toLanguageString(_e, H[rn]), c = t.toLanguageString(_e, H[ln]), o = t.toLanguageString(Yt, H[Yt]);
|
|
875
875
|
return /* @__PURE__ */ n.createElement("div", { className: "k-colorgradient-inputs k-hstack" }, /* @__PURE__ */ n.createElement("div", { className: "k-vstack" }, /* @__PURE__ */ n.createElement(
|
|
876
876
|
ge,
|
|
877
877
|
{
|
|
878
878
|
"aria-label": o,
|
|
879
879
|
fillMode: "flat",
|
|
880
880
|
icon: "caret-alt-expand",
|
|
881
|
-
svgIcon:
|
|
881
|
+
svgIcon: Tn,
|
|
882
882
|
className: "k-colorgradient-toggle-mode k-icon-button",
|
|
883
883
|
onClick: this.onToggleModeChange.bind(this)
|
|
884
884
|
}
|
|
885
885
|
)), this.state.inputMode === "hex" && /* @__PURE__ */ n.createElement("div", { className: "k-vstack k-flex-1" }, /* @__PURE__ */ n.createElement("span", { className: "k-hex-value k-textbox k-input" }, /* @__PURE__ */ n.createElement(
|
|
886
|
-
|
|
886
|
+
os,
|
|
887
887
|
{
|
|
888
888
|
hex: this.props.hex,
|
|
889
889
|
onHexChange: this.props.onHexChange,
|
|
@@ -958,9 +958,9 @@ class ma extends n.Component {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
|
|
962
|
-
fa(
|
|
963
|
-
const
|
|
961
|
+
Dn(ga);
|
|
962
|
+
fa(ga);
|
|
963
|
+
const yn = "data-slider-label", Mr = (a) => {
|
|
964
964
|
const t = n.useRef(null), e = Ge(t), s = a.vertical ? { bottom: `${a.position}%` } : { [e === "rtl" ? "right" : "left"]: `${a.position}%` }, i = a.vertical ? "k-tick-vertical" : "k-tick-horizontal";
|
|
965
965
|
return /* @__PURE__ */ n.createElement(
|
|
966
966
|
"li",
|
|
@@ -977,7 +977,7 @@ const kn = "data-slider-label", Vr = (a) => {
|
|
|
977
977
|
a.children && /* @__PURE__ */ n.createElement(
|
|
978
978
|
"span",
|
|
979
979
|
{
|
|
980
|
-
[
|
|
980
|
+
[yn]: !0,
|
|
981
981
|
className: "k-label",
|
|
982
982
|
onClick: a.onClick
|
|
983
983
|
},
|
|
@@ -994,7 +994,7 @@ class bt extends n.Component {
|
|
|
994
994
|
}, this._sliderTrack = null, this._element = null, this.buttons = (e) => {
|
|
995
995
|
if (!e.enabled)
|
|
996
996
|
return e.children;
|
|
997
|
-
const s = this.state.dir === "rtl" ? this.props.vertical ? _t :
|
|
997
|
+
const s = this.state.dir === "rtl" ? this.props.vertical ? _t : La : this.props.vertical ? _t : Ra, i = this.state.dir === "rtl" ? this.props.vertical ? ht : Ra : this.props.vertical ? ht : La, l = this.state.dir === "rtl" ? this.props.vertical ? "caret-alt-up" : "caret-alt-left" : this.props.vertical ? "caret-alt-up" : "caret-alt-right", c = this.state.dir === "rtl" ? this.props.vertical ? "caret-alt-down" : "caret-alt-right" : this.props.vertical ? "caret-alt-down" : "caret-alt-left";
|
|
998
998
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
|
|
999
999
|
ge,
|
|
1000
1000
|
{
|
|
@@ -1021,7 +1021,7 @@ class bt extends n.Component {
|
|
|
1021
1021
|
}, this.isLabel = (e) => {
|
|
1022
1022
|
let s = e;
|
|
1023
1023
|
for (; s; ) {
|
|
1024
|
-
if (s.getAttribute(
|
|
1024
|
+
if (s.getAttribute(yn))
|
|
1025
1025
|
return !0;
|
|
1026
1026
|
s = s.parentElement;
|
|
1027
1027
|
}
|
|
@@ -1097,7 +1097,7 @@ class bt extends n.Component {
|
|
|
1097
1097
|
incrementTitle: t.toLanguageString($t, H[$t]),
|
|
1098
1098
|
decrementTitle: t.toLanguageString(Ht, H[Ht])
|
|
1099
1099
|
},
|
|
1100
|
-
/* @__PURE__ */ n.createElement(
|
|
1100
|
+
/* @__PURE__ */ n.createElement(tn, { onDrag: this.dragOver, onPress: this.dragStart }, /* @__PURE__ */ n.createElement(
|
|
1101
1101
|
"div",
|
|
1102
1102
|
{
|
|
1103
1103
|
className: "k-slider-track-wrap",
|
|
@@ -1183,50 +1183,50 @@ bt.propTypes = {
|
|
|
1183
1183
|
ariaLabel: r.string
|
|
1184
1184
|
// TODO: validation when buttons is set to true, but no step is provided
|
|
1185
1185
|
};
|
|
1186
|
-
const
|
|
1186
|
+
const cs = he(), oa = je(cs, bt);
|
|
1187
1187
|
oa.displayName = "KendoReactSlider";
|
|
1188
1188
|
fa(bt);
|
|
1189
1189
|
const Ke = {};
|
|
1190
|
-
function
|
|
1190
|
+
function ds(a, t, e) {
|
|
1191
1191
|
Ke[a] = { value: t, hsva: e };
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function us(a, t, e) {
|
|
1194
1194
|
Ke[a] = { value: t, rgba: e };
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function fs(a, t, e) {
|
|
1197
1197
|
Ke[a] = { value: t, hex: e };
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function hs(a) {
|
|
1200
1200
|
delete Ke[a];
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function ps(a, t) {
|
|
1203
1203
|
if (a) {
|
|
1204
1204
|
const e = Ke[a];
|
|
1205
1205
|
return e && e.value === t ? e.hex : void 0;
|
|
1206
1206
|
} else
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function ms(a, t) {
|
|
1210
1210
|
if (a) {
|
|
1211
1211
|
const e = Ke[a];
|
|
1212
1212
|
return e && e.value === t ? e.hsva : void 0;
|
|
1213
1213
|
} else
|
|
1214
1214
|
return;
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function gs(a, t) {
|
|
1217
1217
|
if (a) {
|
|
1218
1218
|
const e = Ke[a];
|
|
1219
1219
|
return e && e.value === t ? e.rgba : void 0;
|
|
1220
1220
|
} else
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
class
|
|
1223
|
+
class Cn extends n.Component {
|
|
1224
1224
|
render() {
|
|
1225
|
-
const t = Je(this), e = t.toLanguageString(Gt, H[Gt]), s = t.toLanguageString(Kt, H[Kt]), i = t.toLanguageString(qt, H[qt]), l = t.toLanguageString(Ut, H[Ut]), c = t.toLanguageString(jt, H[jt]), o =
|
|
1225
|
+
const t = Je(this), e = t.toLanguageString(Gt, H[Gt]), s = t.toLanguageString(Kt, H[Kt]), i = t.toLanguageString(qt, H[qt]), l = t.toLanguageString(Ut, H[Ut]), c = t.toLanguageString(jt, H[jt]), o = vn(this.props.rgba, this.props.bgColor), h = 4.5.toFixed(1), d = 7 .toFixed(1), p = `${e}: ${o.toFixed(2)}`, m = `${s}: ${h}`, f = `${i}: ${d}`, v = /* @__PURE__ */ n.createElement("span", { className: "k-contrast-validation k-text-success" }, l, " ", /* @__PURE__ */ n.createElement(fe, { name: "check", icon: Mt })), N = /* @__PURE__ */ n.createElement("span", { className: "k-contrast-validation k-text-error" }, c, " ", /* @__PURE__ */ n.createElement(fe, { name: "x", icon: At }));
|
|
1226
1226
|
return /* @__PURE__ */ n.createElement("div", { className: "k-vbox k-colorgradient-color-contrast" }, /* @__PURE__ */ n.createElement("div", { className: "k-contrast-ratio" }, /* @__PURE__ */ n.createElement("span", { className: "k-contrast-ratio-text" }, p), o >= 4.5 ? /* @__PURE__ */ n.createElement("span", { className: "k-contrast-validation k-text-success" }, /* @__PURE__ */ n.createElement(fe, { name: "check", icon: Mt }), o >= 7 && /* @__PURE__ */ n.createElement(fe, { name: "check", icon: Mt })) : /* @__PURE__ */ n.createElement("span", { className: "k-contrast-validation k-text-error" }, /* @__PURE__ */ n.createElement(fe, { name: "x", icon: At }))), /* @__PURE__ */ n.createElement("div", null, /* @__PURE__ */ n.createElement("span", null, m), o >= 4.5 ? v : N), /* @__PURE__ */ n.createElement("div", null, /* @__PURE__ */ n.createElement("span", null, f), o >= 7 ? v : N));
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
fa(
|
|
1229
|
+
fa(Cn);
|
|
1230
1230
|
const it = (a, t) => a.length === 0 ? "" : `<path d="${a.reduce(
|
|
1231
1231
|
(s, i, l, c) => l === 0 ? (
|
|
1232
1232
|
// if first point
|
|
@@ -1236,23 +1236,23 @@ const it = (a, t) => a.length === 0 ? "" : `<path d="${a.reduce(
|
|
|
1236
1236
|
`${s} ${t(i, l, c)}`
|
|
1237
1237
|
),
|
|
1238
1238
|
""
|
|
1239
|
-
)}" fill="none" stroke="white" stroke-width="1"/>`,
|
|
1239
|
+
)}" fill="none" stroke="white" stroke-width="1"/>`, bs = (a, t) => {
|
|
1240
1240
|
const e = t[0] - a[0], s = t[1] - a[1];
|
|
1241
1241
|
return {
|
|
1242
1242
|
length: Math.sqrt(Math.pow(e, 2) + Math.pow(s, 2)),
|
|
1243
1243
|
angle: Math.atan2(s, e)
|
|
1244
1244
|
};
|
|
1245
|
-
},
|
|
1245
|
+
}, vs = (a) => (t, e, s, i) => {
|
|
1246
1246
|
const l = e || t, c = s || t, o = 0.1, h = a(l, c), d = h.angle + (i ? Math.PI : 0), p = h.length * o, m = t[0] + Math.cos(d) * p, f = t[1] + Math.sin(d) * p;
|
|
1247
1247
|
return [m, f];
|
|
1248
|
-
},
|
|
1248
|
+
}, ks = (a) => (t, e, s) => {
|
|
1249
1249
|
const [i, l] = a(s[e - 1], s[e - 2], t), [c, o] = a(t, s[e - 1], s[e + 1], !0);
|
|
1250
1250
|
return `C ${i},${l} ${c},${o} ${t[0]},${t[1]}`;
|
|
1251
|
-
},
|
|
1252
|
-
class
|
|
1251
|
+
}, $a = 4.5, Ha = 7, lt = 16;
|
|
1252
|
+
class ys extends n.Component {
|
|
1253
1253
|
renderSvgCurveLine() {
|
|
1254
1254
|
const t = this.props.metrics, e = (l, c, o, h, d) => {
|
|
1255
|
-
const p = (o + h) / 2, m = Object.assign({}, this.props.hsva, { s: c / t.width, v: 1 - p / t.height }), f =
|
|
1255
|
+
const p = (o + h) / 2, m = Object.assign({}, this.props.hsva, { s: c / t.width, v: 1 - p / t.height }), f = vn(Ue(ma(m)), Ue(this.props.backgroundColor || ""));
|
|
1256
1256
|
return o + 0.5 > h ? f < l + 1 && f > l - 1 ? p : null : d(f, l) ? e(l, c, o, h - (h - o) / 2, d) : e(l, c, o + (h - o) / 2, h, d);
|
|
1257
1257
|
}, s = (l, c, o = !1) => {
|
|
1258
1258
|
const h = [];
|
|
@@ -1261,8 +1261,8 @@ class ks extends n.Component {
|
|
|
1261
1261
|
p !== null && h.push([d, p]);
|
|
1262
1262
|
}
|
|
1263
1263
|
return h;
|
|
1264
|
-
}, i = vs(bs
|
|
1265
|
-
return it(s(
|
|
1264
|
+
}, i = ks(vs(bs));
|
|
1265
|
+
return it(s($a, lt), i) + it(s($a, lt, !0), i) + it(s(Ha, lt), i) + it(s(Ha, lt, !0), i);
|
|
1266
1266
|
}
|
|
1267
1267
|
shouldComponentUpdate(t) {
|
|
1268
1268
|
return !(t.hsva.h === this.props.hsva.h && t.hsva.a === this.props.hsva.a && this.props.backgroundColor === t.backgroundColor);
|
|
@@ -1286,22 +1286,22 @@ class ks extends n.Component {
|
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
const
|
|
1289
|
+
const Cs = "rgba", Ga = "rgba(255, 255, 255, 1)", ca = class extends n.Component {
|
|
1290
1290
|
constructor(a) {
|
|
1291
1291
|
super(a), this.wrapper = null, this.onHexChange = (e, s, i) => {
|
|
1292
1292
|
if (this.isUncontrolled) {
|
|
1293
1293
|
const l = Ot(s);
|
|
1294
1294
|
this.setState({ hsva: l, backgroundColor: rt(l.h), rgba: Ue(s), hex: e });
|
|
1295
1295
|
} else
|
|
1296
|
-
|
|
1296
|
+
fs(this.state.guid, s, e);
|
|
1297
1297
|
this.dispatchChangeEvent(s, i, i.nativeEvent);
|
|
1298
1298
|
}, this.onRgbaChange = (e, s) => {
|
|
1299
|
-
const i =
|
|
1299
|
+
const i = rs(e);
|
|
1300
1300
|
if (this.isUncontrolled) {
|
|
1301
1301
|
const l = Ot(i), c = Be(i, "hex");
|
|
1302
1302
|
this.setState({ hsva: l, backgroundColor: rt(l.h), rgba: e, hex: c });
|
|
1303
1303
|
} else
|
|
1304
|
-
|
|
1304
|
+
us(this.state.guid, i, e);
|
|
1305
1305
|
this.dispatchChangeEvent(i, s.syntheticEvent, s.nativeEvent);
|
|
1306
1306
|
}, this.onAlphaSliderChange = (e) => {
|
|
1307
1307
|
this.handleHsvaChange(
|
|
@@ -1334,9 +1334,9 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1334
1334
|
{ nativeEvent: e, target: this }
|
|
1335
1335
|
);
|
|
1336
1336
|
}, this.focus = () => {
|
|
1337
|
-
|
|
1337
|
+
an(this.wrapper);
|
|
1338
1338
|
}, pe(me);
|
|
1339
|
-
const t = a.value || a.defaultValue || Be(
|
|
1339
|
+
const t = a.value || a.defaultValue || Be(Ga, Cs);
|
|
1340
1340
|
this.state = Object.assign({}, ca.getStateFromValue(t), { isFirstRender: !0, guid: this.props.id });
|
|
1341
1341
|
}
|
|
1342
1342
|
/**
|
|
@@ -1355,7 +1355,7 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1355
1355
|
* @hidden
|
|
1356
1356
|
*/
|
|
1357
1357
|
componentWillUnmount() {
|
|
1358
|
-
|
|
1358
|
+
hs(this.state.guid);
|
|
1359
1359
|
}
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @hidden
|
|
@@ -1391,12 +1391,12 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1391
1391
|
* @hidden
|
|
1392
1392
|
*/
|
|
1393
1393
|
handleHsvaChange(a, t, e) {
|
|
1394
|
-
const s =
|
|
1394
|
+
const s = ma(a);
|
|
1395
1395
|
if (this.isUncontrolled) {
|
|
1396
1396
|
const i = Be(s, "hex");
|
|
1397
1397
|
this.setState({ hsva: a, backgroundColor: rt(a.h), rgba: Ue(s), hex: i });
|
|
1398
1398
|
} else
|
|
1399
|
-
|
|
1399
|
+
ds(this.state.guid, s, a);
|
|
1400
1400
|
this.dispatchChangeEvent(s, t, e);
|
|
1401
1401
|
}
|
|
1402
1402
|
/**
|
|
@@ -1412,8 +1412,8 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1412
1412
|
* @hidden
|
|
1413
1413
|
*/
|
|
1414
1414
|
static getStateFromValue(a, t) {
|
|
1415
|
-
ae(Be(a, "hex")) || (a =
|
|
1416
|
-
const e =
|
|
1415
|
+
ae(Be(a, "hex")) || (a = Ga);
|
|
1416
|
+
const e = ms(t, a) || Ot(a), s = gs(t, a) || Ue(a), i = ps(t, a) || Be(a, "hex"), l = rt(e.h);
|
|
1417
1417
|
return { hsva: e, backgroundColor: l, rgba: s, hex: i };
|
|
1418
1418
|
}
|
|
1419
1419
|
/**
|
|
@@ -1455,7 +1455,7 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1455
1455
|
onFocus: this.onFocus
|
|
1456
1456
|
},
|
|
1457
1457
|
/* @__PURE__ */ n.createElement("div", { className: "k-colorgradient-canvas k-hstack" }, /* @__PURE__ */ n.createElement("div", { className: "k-hsv-rectangle", style: { background: this.state.backgroundColor } }, /* @__PURE__ */ n.createElement(
|
|
1458
|
-
|
|
1458
|
+
tn,
|
|
1459
1459
|
{
|
|
1460
1460
|
onDrag: this.onDrag,
|
|
1461
1461
|
onRelease: this.onRelease,
|
|
@@ -1471,7 +1471,7 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1471
1471
|
this.renderRectangleDragHandle()
|
|
1472
1472
|
)
|
|
1473
1473
|
), this.props.backgroundColor && !this.state.isFirstRender && /* @__PURE__ */ n.createElement(
|
|
1474
|
-
|
|
1474
|
+
ys,
|
|
1475
1475
|
{
|
|
1476
1476
|
metrics: this.gradientWrapper ? this.getGradientRectMetrics() : void 0,
|
|
1477
1477
|
hsva: this.state.hsva,
|
|
@@ -1508,7 +1508,7 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1508
1508
|
}
|
|
1509
1509
|
))),
|
|
1510
1510
|
/* @__PURE__ */ n.createElement(
|
|
1511
|
-
|
|
1511
|
+
ga,
|
|
1512
1512
|
{
|
|
1513
1513
|
rgba: this.state.rgba,
|
|
1514
1514
|
onRgbaChange: this.onRgbaChange,
|
|
@@ -1520,7 +1520,7 @@ const ys = "rgba", Ha = "rgba(255, 255, 255, 1)", ca = class extends n.Component
|
|
|
1520
1520
|
}
|
|
1521
1521
|
),
|
|
1522
1522
|
this.props.backgroundColor && /* @__PURE__ */ n.createElement(
|
|
1523
|
-
|
|
1523
|
+
Cn,
|
|
1524
1524
|
{
|
|
1525
1525
|
bgColor: Ue(this.props.backgroundColor),
|
|
1526
1526
|
rgba: this.state.rgba
|
|
@@ -1553,9 +1553,9 @@ vt.defaultProps = {
|
|
|
1553
1553
|
role: "textbox",
|
|
1554
1554
|
format: "rgb"
|
|
1555
1555
|
};
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
class
|
|
1556
|
+
const xs = he(), ba = et(je(xs, vt));
|
|
1557
|
+
ba.displayName = "KendoReactColorGradient";
|
|
1558
|
+
class Es {
|
|
1559
1559
|
constructor() {
|
|
1560
1560
|
this.colorRows = [];
|
|
1561
1561
|
}
|
|
@@ -1592,7 +1592,7 @@ class xs {
|
|
|
1592
1592
|
return t < 0 ? 0 : t > e ? e : t;
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
const
|
|
1595
|
+
const Ss = {
|
|
1596
1596
|
basic: {
|
|
1597
1597
|
colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", " ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
|
|
1598
1598
|
columns: 10
|
|
@@ -1641,7 +1641,7 @@ const Es = {
|
|
|
1641
1641
|
colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
|
|
1642
1642
|
columns: 12
|
|
1643
1643
|
}
|
|
1644
|
-
},
|
|
1644
|
+
}, xn = 24, Ka = 10, En = "office";
|
|
1645
1645
|
class kt extends n.Component {
|
|
1646
1646
|
constructor(t) {
|
|
1647
1647
|
super(t), this.wrapper = null, this.paletteService = null, this.focus = () => {
|
|
@@ -1688,7 +1688,7 @@ class kt extends n.Component {
|
|
|
1688
1688
|
* @hidden
|
|
1689
1689
|
*/
|
|
1690
1690
|
render() {
|
|
1691
|
-
const t = this.getPaletteInfo(), e = this.paletteService = new
|
|
1691
|
+
const t = this.getPaletteInfo(), e = this.paletteService = new Es();
|
|
1692
1692
|
e.setColorMatrix(t.colors, t.columns);
|
|
1693
1693
|
const s = e.getCellCoordsFor(this.state.selectedColor), i = e.getCellCoordsFor(this.state.focusedColor), l = G("k-colorpalette", { "k-disabled": this.props.disabled }, this.props.className);
|
|
1694
1694
|
return t.colors.length ? /* @__PURE__ */ n.createElement(
|
|
@@ -1748,13 +1748,13 @@ class kt extends n.Component {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
getPaletteInfo() {
|
|
1750
1750
|
if (typeof this.props.palette == "string") {
|
|
1751
|
-
const t =
|
|
1751
|
+
const t = Ss[this.props.palette];
|
|
1752
1752
|
return ae(t) ? {
|
|
1753
1753
|
colors: t.colors,
|
|
1754
|
-
columns: this.props.columns || t.columns ||
|
|
1754
|
+
columns: this.props.columns || t.columns || Ka
|
|
1755
1755
|
} : { colors: [], columns: 0 };
|
|
1756
1756
|
} else
|
|
1757
|
-
return { colors: this.props.palette || [], columns: this.props.columns ||
|
|
1757
|
+
return { colors: this.props.palette || [], columns: this.props.columns || Ka };
|
|
1758
1758
|
}
|
|
1759
1759
|
renderRows(t, e, s) {
|
|
1760
1760
|
return t.map((i, l) => /* @__PURE__ */ n.createElement("tr", { role: "row", key: l }, this.renderColumns(i, l, e, s)));
|
|
@@ -1805,21 +1805,21 @@ kt.propTypes = {
|
|
|
1805
1805
|
className: r.string
|
|
1806
1806
|
};
|
|
1807
1807
|
kt.defaultProps = {
|
|
1808
|
-
palette:
|
|
1809
|
-
tileSize:
|
|
1808
|
+
palette: En,
|
|
1809
|
+
tileSize: xn
|
|
1810
1810
|
};
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
const
|
|
1811
|
+
const ws = he(), va = et(je(ws, kt));
|
|
1812
|
+
va.displayName = "KendoReactColorPalette";
|
|
1813
|
+
const Is = "bottom", Ls = "top", Sn = (a) => {
|
|
1814
1814
|
const t = a.popupSettings || {}, e = a.dir === "rtl" ? "right" : "left", s = n.useMemo(
|
|
1815
|
-
() => ({ horizontal: e, vertical:
|
|
1815
|
+
() => ({ horizontal: e, vertical: Is }),
|
|
1816
1816
|
[e]
|
|
1817
1817
|
), i = n.useMemo(
|
|
1818
|
-
() => ({ horizontal: e, vertical:
|
|
1818
|
+
() => ({ horizontal: e, vertical: Ls }),
|
|
1819
1819
|
[e]
|
|
1820
1820
|
);
|
|
1821
1821
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, a.input, a.button, /* @__PURE__ */ n.createElement(
|
|
1822
|
-
|
|
1822
|
+
Hn,
|
|
1823
1823
|
{
|
|
1824
1824
|
style: {
|
|
1825
1825
|
...(t || {}).style,
|
|
@@ -1837,15 +1837,15 @@ const ws = "bottom", Is = "top", En = (a) => {
|
|
|
1837
1837
|
a.content
|
|
1838
1838
|
));
|
|
1839
1839
|
};
|
|
1840
|
-
|
|
1841
|
-
const
|
|
1840
|
+
Sn.displayName = "KendoPickerComponent";
|
|
1841
|
+
const Rs = {
|
|
1842
1842
|
opacity: !0
|
|
1843
|
-
},
|
|
1844
|
-
palette:
|
|
1845
|
-
tileSize:
|
|
1846
|
-
}, Ft = (a) => a !== void 0,
|
|
1843
|
+
}, Vs = {
|
|
1844
|
+
palette: En,
|
|
1845
|
+
tileSize: xn
|
|
1846
|
+
}, Ft = (a) => a !== void 0, Ms = he(), ka = n.forwardRef((a, t) => {
|
|
1847
1847
|
pe(me);
|
|
1848
|
-
const e = Me(
|
|
1848
|
+
const e = Me(Ms, a), s = He(), {
|
|
1849
1849
|
size: i = dt.size,
|
|
1850
1850
|
rounded: l = dt.rounded,
|
|
1851
1851
|
fillMode: c = dt.fillMode,
|
|
@@ -1984,7 +1984,7 @@ const Ls = {
|
|
|
1984
1984
|
dir: be
|
|
1985
1985
|
},
|
|
1986
1986
|
/* @__PURE__ */ n.createElement(
|
|
1987
|
-
|
|
1987
|
+
Sn,
|
|
1988
1988
|
{
|
|
1989
1989
|
dir: be,
|
|
1990
1990
|
open: D,
|
|
@@ -2021,7 +2021,7 @@ const Ls = {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
),
|
|
2023
2023
|
content: /* @__PURE__ */ n.createElement(n.Fragment, null, (v === "combo" || v === "gradient") && /* @__PURE__ */ n.createElement(
|
|
2024
|
-
|
|
2024
|
+
ba,
|
|
2025
2025
|
{
|
|
2026
2026
|
...h,
|
|
2027
2027
|
tabIndex: 0,
|
|
@@ -2030,7 +2030,7 @@ const Ls = {
|
|
|
2030
2030
|
onChange: le
|
|
2031
2031
|
}
|
|
2032
2032
|
), (v === "combo" || v === "palette") && /* @__PURE__ */ n.createElement(
|
|
2033
|
-
|
|
2033
|
+
va,
|
|
2034
2034
|
{
|
|
2035
2035
|
...d,
|
|
2036
2036
|
ref: A,
|
|
@@ -2042,7 +2042,7 @@ const Ls = {
|
|
|
2042
2042
|
)
|
|
2043
2043
|
);
|
|
2044
2044
|
});
|
|
2045
|
-
|
|
2045
|
+
ka.propTypes = {
|
|
2046
2046
|
value: r.string,
|
|
2047
2047
|
defaultValue: r.string,
|
|
2048
2048
|
disabled: r.bool,
|
|
@@ -2063,14 +2063,14 @@ const dt = {
|
|
|
2063
2063
|
rounded: "medium",
|
|
2064
2064
|
fillMode: "solid",
|
|
2065
2065
|
view: "palette",
|
|
2066
|
-
gradientSettings:
|
|
2067
|
-
paletteSettings:
|
|
2066
|
+
gradientSettings: Rs,
|
|
2067
|
+
paletteSettings: Vs
|
|
2068
2068
|
};
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
const
|
|
2069
|
+
ka.defaultProps = dt;
|
|
2070
|
+
ka.displayName = "KendoColorPicker";
|
|
2071
|
+
const qa = "rgba(255, 255, 255, 1)", wn = n.forwardRef((a, t) => {
|
|
2072
2072
|
pe(me);
|
|
2073
|
-
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(null), { defaultValue: l =
|
|
2073
|
+
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(null), { defaultValue: l = qa, showButtons: c = !0, showPreview: o = !0, showClearButton: h = !0 } = a, [d, p] = n.useState((a.view || "ColorGradient") === "ColorGradient"), [m, f] = n.useState(a.value || l), [v, N] = n.useState(a.value || l), P = a.value !== void 0 ? a.value : v;
|
|
2074
2074
|
n.useEffect(() => {
|
|
2075
2075
|
f(a.value || l);
|
|
2076
2076
|
}, [a.value, l]);
|
|
@@ -2129,7 +2129,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2129
2129
|
[m, a.onChange]
|
|
2130
2130
|
), w = n.useCallback(
|
|
2131
2131
|
() => {
|
|
2132
|
-
N(
|
|
2132
|
+
N(qa);
|
|
2133
2133
|
},
|
|
2134
2134
|
[]
|
|
2135
2135
|
), F = n.useCallback(
|
|
@@ -2183,7 +2183,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2183
2183
|
),
|
|
2184
2184
|
onBlur: T
|
|
2185
2185
|
},
|
|
2186
|
-
/* @__PURE__ */ n.createElement(n.Fragment, null, a.header || /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header k-hstack" }, /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header-actions k-hstack" }, /* @__PURE__ */ n.createElement(
|
|
2186
|
+
/* @__PURE__ */ n.createElement(n.Fragment, null, a.header || /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header k-hstack" }, /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header-actions k-hstack" }, /* @__PURE__ */ n.createElement($n, { className: "k-button-group-flat" }, /* @__PURE__ */ n.createElement(
|
|
2187
2187
|
ge,
|
|
2188
2188
|
{
|
|
2189
2189
|
type: "button",
|
|
@@ -2196,7 +2196,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2196
2196
|
selected: d,
|
|
2197
2197
|
onClick: () => S("ColorGradient"),
|
|
2198
2198
|
icon: "droplet-slider",
|
|
2199
|
-
svgIcon:
|
|
2199
|
+
svgIcon: zn
|
|
2200
2200
|
}
|
|
2201
2201
|
), /* @__PURE__ */ n.createElement(
|
|
2202
2202
|
ge,
|
|
@@ -2211,7 +2211,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2211
2211
|
selected: !d,
|
|
2212
2212
|
onClick: () => S("ColorPalette"),
|
|
2213
2213
|
icon: "palette",
|
|
2214
|
-
svgIcon:
|
|
2214
|
+
svgIcon: _n
|
|
2215
2215
|
}
|
|
2216
2216
|
))), /* @__PURE__ */ n.createElement("div", { className: "k-spacer" }), /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header-actions k-hstack" }, h && /* @__PURE__ */ n.createElement(
|
|
2217
2217
|
ge,
|
|
@@ -2224,10 +2224,10 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2224
2224
|
H[Qt]
|
|
2225
2225
|
),
|
|
2226
2226
|
icon: "droplet-slash",
|
|
2227
|
-
svgIcon:
|
|
2227
|
+
svgIcon: An
|
|
2228
2228
|
}
|
|
2229
2229
|
), o && /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-preview k-vstack" }, /* @__PURE__ */ n.createElement("span", { className: "k-coloreditor-preview-color k-color-preview", style: { background: m } }), /* @__PURE__ */ n.createElement("span", { className: "k-coloreditor-current-color k-color-preview", style: { background: v }, onClick: F })))), /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-views k-vstack" }, d ? /* @__PURE__ */ n.createElement(
|
|
2230
|
-
|
|
2230
|
+
ba,
|
|
2231
2231
|
{
|
|
2232
2232
|
ref: i,
|
|
2233
2233
|
role: "none",
|
|
@@ -2239,9 +2239,9 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2239
2239
|
opacity: a.opacity,
|
|
2240
2240
|
format: a.format
|
|
2241
2241
|
}
|
|
2242
|
-
) : /* @__PURE__ */ n.createElement(
|
|
2242
|
+
) : /* @__PURE__ */ n.createElement(va, { ariaDisabled: !0, ariaLabelledBy: "required_label", value: m, onChange: O, onFocus: A })), c && /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-footer k-actions k-actions-end" }, /* @__PURE__ */ n.createElement(ge, { type: "button", className: "k-coloreditor-cancel", onClick: w }, H[cn]), /* @__PURE__ */ n.createElement(ge, { type: "button", className: "k-coloreditor-apply k-primary", onClick: B }, H[dn])))
|
|
2243
2243
|
);
|
|
2244
|
-
}),
|
|
2244
|
+
}), Ns = {
|
|
2245
2245
|
id: r.string,
|
|
2246
2246
|
style: r.any,
|
|
2247
2247
|
className: r.string,
|
|
@@ -2261,8 +2261,8 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2261
2261
|
showPreview: r.bool,
|
|
2262
2262
|
showButtons: r.bool
|
|
2263
2263
|
};
|
|
2264
|
-
|
|
2265
|
-
|
|
2264
|
+
wn.displayName = "KendoFlatColorPicker";
|
|
2265
|
+
wn.propTypes = Ns;
|
|
2266
2266
|
var Oe = /* @__PURE__ */ ((a) => (a[a.Literal = 0] = "Literal", a[a.Mask = 1] = "Mask", a[a.Undefined = 2] = "Undefined", a))(Oe || {});
|
|
2267
2267
|
class Y {
|
|
2268
2268
|
constructor(t, e, s = 2) {
|
|
@@ -2286,7 +2286,7 @@ class Y {
|
|
|
2286
2286
|
return `Result({ value: '${this.value}', rest: ${this.rest} })`;
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
class
|
|
2289
|
+
class Ua {
|
|
2290
2290
|
constructor(t = [], e = []) {
|
|
2291
2291
|
this.input = t, this.control = e, this.inputCursor = 0, this.controlCursor = 0;
|
|
2292
2292
|
}
|
|
@@ -2316,13 +2316,13 @@ class qa {
|
|
|
2316
2316
|
this.inputCursor++, this.controlCursor++;
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
const
|
|
2319
|
+
const ja = (a) => (a || "").split(""), Ps = "\\";
|
|
2320
2320
|
class xe {
|
|
2321
2321
|
constructor(t) {
|
|
2322
2322
|
this.parse = t;
|
|
2323
2323
|
}
|
|
2324
2324
|
run(t, e = "") {
|
|
2325
|
-
return t instanceof
|
|
2325
|
+
return t instanceof Ua ? this.parse(t) : this.parse(new Ua(ja(t), ja(e)));
|
|
2326
2326
|
}
|
|
2327
2327
|
// map :: Functor f => f a ~> (a -> b) -> f b
|
|
2328
2328
|
map(t) {
|
|
@@ -2336,7 +2336,7 @@ class xe {
|
|
|
2336
2336
|
return this.run(t).type === Oe.Literal;
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
const
|
|
2339
|
+
const Ds = (a) => (t) => new xe((e) => {
|
|
2340
2340
|
const { prompt: s, promptPlaceholder: i } = a;
|
|
2341
2341
|
for (; !e.eof(); ) {
|
|
2342
2342
|
const { char: l, control: c } = e.peek();
|
|
@@ -2349,7 +2349,7 @@ const Ps = (a) => (t) => new xe((e) => {
|
|
|
2349
2349
|
e.eat_input();
|
|
2350
2350
|
}
|
|
2351
2351
|
return e.eat(), new Y(s, e, Oe.Mask);
|
|
2352
|
-
}),
|
|
2352
|
+
}), Bs = (a) => new xe((t) => t.peek().char === a ? (t.eat(), new Y(a, t, Oe.Literal)) : new Y(a, t, Oe.Literal)), Os = (a) => (t) => new xe((e) => {
|
|
2353
2353
|
for (; !e.eof(); ) {
|
|
2354
2354
|
const { char: s, control: i } = e.peek();
|
|
2355
2355
|
if (s === a && i === a)
|
|
@@ -2359,7 +2359,7 @@ const Ps = (a) => (t) => new xe((e) => {
|
|
|
2359
2359
|
e.eat_input();
|
|
2360
2360
|
}
|
|
2361
2361
|
return e.eat(), new Y("", e);
|
|
2362
|
-
}),
|
|
2362
|
+
}), Fs = (a) => new xe((t) => {
|
|
2363
2363
|
if (t.eof())
|
|
2364
2364
|
return new Y("", t);
|
|
2365
2365
|
const { char: e } = t.peek();
|
|
@@ -2367,21 +2367,21 @@ const Ps = (a) => (t) => new xe((e) => {
|
|
|
2367
2367
|
}), ot = (a, t) => new xe((e) => {
|
|
2368
2368
|
let { char: s } = e.next();
|
|
2369
2369
|
const i = a[s];
|
|
2370
|
-
return s ===
|
|
2371
|
-
}),
|
|
2370
|
+
return s === Ps ? (s = e.next().char, new Y(t.literal(s), e)) : i ? new Y(t.mask(i), e) : new Y(t.literal(s), e);
|
|
2371
|
+
}), Wa = (a) => new xe((t) => {
|
|
2372
2372
|
const { prompt: e, promptPlaceholder: s } = a;
|
|
2373
2373
|
let { char: i } = t.next();
|
|
2374
2374
|
return i === e ? new Y(s, t) : new Y(i, t);
|
|
2375
|
-
}),
|
|
2375
|
+
}), Xa = (a) => new xe((t) => {
|
|
2376
2376
|
let { char: e } = t.next();
|
|
2377
2377
|
return a ? new Y(e, t) : new Y("", t);
|
|
2378
|
-
}),
|
|
2378
|
+
}), Ts = (a) => new xe((t) => new Y(a, t)), zs = (a, t) => a.chain((e) => t.map((s) => e.concat([s]))), ze = (a) => a.reduce((t, e) => zs(t, e), Ts([])), ct = (a) => new xe((t) => {
|
|
2379
2379
|
let e = new Y([], t);
|
|
2380
2380
|
for (; !t.eof(); )
|
|
2381
2381
|
e = e.concat(a.run(t));
|
|
2382
2382
|
return e;
|
|
2383
2383
|
});
|
|
2384
|
-
class
|
|
2384
|
+
class _s {
|
|
2385
2385
|
constructor() {
|
|
2386
2386
|
this.rules = {}, this.prompt = "_", this.mask = "", this.promptPlaceholder = " ", this.includeLiterals = !1, this.maskTokens = [], this.unmaskTokens = [], this.rawTokens = [], this.validationTokens = [];
|
|
2387
2387
|
}
|
|
@@ -2453,28 +2453,28 @@ class zs {
|
|
|
2453
2453
|
get maskTokenCreator() {
|
|
2454
2454
|
const { prompt: t, promptPlaceholder: e } = this;
|
|
2455
2455
|
return {
|
|
2456
|
-
literal: (s) =>
|
|
2457
|
-
mask: (s) =>
|
|
2456
|
+
literal: (s) => Bs(s),
|
|
2457
|
+
mask: (s) => Ds({ prompt: t, promptPlaceholder: e })(s)
|
|
2458
2458
|
};
|
|
2459
2459
|
}
|
|
2460
2460
|
get unmaskTokenCreator() {
|
|
2461
2461
|
return {
|
|
2462
|
-
literal: (t) =>
|
|
2463
|
-
mask: (t) =>
|
|
2462
|
+
literal: (t) => Fs(t),
|
|
2463
|
+
mask: (t) => Os(this.prompt)(t)
|
|
2464
2464
|
};
|
|
2465
2465
|
}
|
|
2466
2466
|
get rawTokenCreator() {
|
|
2467
2467
|
const { prompt: t, promptPlaceholder: e, includeLiterals: s } = this;
|
|
2468
2468
|
return {
|
|
2469
|
-
literal: (i) =>
|
|
2470
|
-
mask: (i) =>
|
|
2469
|
+
literal: (i) => Xa(s),
|
|
2470
|
+
mask: (i) => Wa({ prompt: t, promptPlaceholder: e })
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
2473
|
get validationTokenCreator() {
|
|
2474
2474
|
const { prompt: t } = this;
|
|
2475
2475
|
return {
|
|
2476
|
-
literal: (e) =>
|
|
2477
|
-
mask: (e) =>
|
|
2476
|
+
literal: (e) => Xa(!1),
|
|
2477
|
+
mask: (e) => Wa({ prompt: t, promptPlaceholder: "" })
|
|
2478
2478
|
};
|
|
2479
2479
|
}
|
|
2480
2480
|
tokenize() {
|
|
@@ -2489,7 +2489,7 @@ class zs {
|
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
const
|
|
2492
|
+
const In = {
|
|
2493
2493
|
"#": /[\d\s\+\-]/,
|
|
2494
2494
|
"&": /[\S]/,
|
|
2495
2495
|
0: /[\d]/,
|
|
@@ -2499,7 +2499,7 @@ const wn = {
|
|
|
2499
2499
|
C: /./,
|
|
2500
2500
|
L: /[a-zA-Z]/,
|
|
2501
2501
|
a: /[a-zA-Z0-9\s]/
|
|
2502
|
-
},
|
|
2502
|
+
}, Ya = () => !1, As = (a, t) => a.includeLiterals !== t.includeLiterals || a.mask !== t.mask || a.prompt !== t.prompt || a.promptPlaceholder !== t.promptPlaceholder || !$s(a.rules, t.rules), $s = (a, t) => {
|
|
2503
2503
|
if (!!a != !!t)
|
|
2504
2504
|
return !1;
|
|
2505
2505
|
if (a === t || !a || !t)
|
|
@@ -2520,7 +2520,7 @@ const wn = {
|
|
|
2520
2520
|
return e;
|
|
2521
2521
|
}, Pe = class extends n.Component {
|
|
2522
2522
|
constructor(a) {
|
|
2523
|
-
super(a), this.state = {}, this._inputId = `k-${this.props.id}`, this._service = new
|
|
2523
|
+
super(a), this.state = {}, this._inputId = `k-${this.props.id}`, this._service = new _s(), this._isPasted = !1, this._selection = [null, null], this._input = null, this.focus = () => {
|
|
2524
2524
|
this._input && this._input.focus();
|
|
2525
2525
|
}, this.pasteHandler = (t) => {
|
|
2526
2526
|
const { selectionStart: e, selectionEnd: s } = t.target;
|
|
@@ -2642,7 +2642,7 @@ const wn = {
|
|
|
2642
2642
|
const i = a.selection, l = this.props.selection;
|
|
2643
2643
|
(!i && l || i && l && (i.start !== l.start || i.end !== l.end)) && (e = l.start, s = l.end), e !== null && s !== null && this.element.setSelectionRange(e, s);
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
As(a, this.props) && this.updateService(), this.setValidity();
|
|
2646
2646
|
}
|
|
2647
2647
|
/**
|
|
2648
2648
|
* @hidden
|
|
@@ -2706,14 +2706,14 @@ const wn = {
|
|
|
2706
2706
|
onPaste: this.pasteHandler,
|
|
2707
2707
|
onFocus: this.focusHandler,
|
|
2708
2708
|
onBlur: this.blurHandler,
|
|
2709
|
-
onDragStart:
|
|
2710
|
-
onDrop:
|
|
2709
|
+
onDragStart: Ya,
|
|
2710
|
+
onDrop: Ya
|
|
2711
2711
|
}
|
|
2712
2712
|
),
|
|
2713
2713
|
/* @__PURE__ */ n.createElement(d, null)
|
|
2714
2714
|
);
|
|
2715
2715
|
return this.props.label ? /* @__PURE__ */ n.createElement(
|
|
2716
|
-
|
|
2716
|
+
pa,
|
|
2717
2717
|
{
|
|
2718
2718
|
label: this.props.label,
|
|
2719
2719
|
editorId: s,
|
|
@@ -2754,7 +2754,7 @@ const wn = {
|
|
|
2754
2754
|
this._service.update(t);
|
|
2755
2755
|
}
|
|
2756
2756
|
get rules() {
|
|
2757
|
-
return Object.assign({},
|
|
2757
|
+
return Object.assign({}, In, this.props.rules);
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
let yt = Pe;
|
|
@@ -2811,7 +2811,7 @@ yt.defaultProps = {
|
|
|
2811
2811
|
promptPlaceholder: " ",
|
|
2812
2812
|
includeLiterals: !1,
|
|
2813
2813
|
maskValidation: !0,
|
|
2814
|
-
rules:
|
|
2814
|
+
rules: In,
|
|
2815
2815
|
required: !1,
|
|
2816
2816
|
validityStyles: !0,
|
|
2817
2817
|
prefix: (a) => null,
|
|
@@ -2820,10 +2820,10 @@ yt.defaultProps = {
|
|
|
2820
2820
|
rounded: "medium",
|
|
2821
2821
|
fillMode: "solid"
|
|
2822
2822
|
};
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2823
|
+
const Hs = he(), Gs = et(je(Hs, yt));
|
|
2824
|
+
Gs.displayName = "KendoReactMaskedTextBox";
|
|
2825
2825
|
var X = /* @__PURE__ */ ((a) => (a.start = "start", a.end = "end", a.min = "min", a.max = "max", a.increase = "increase", a.decrease = "decrease", a))(X || {});
|
|
2826
|
-
const
|
|
2826
|
+
const Ks = (a, t) => {
|
|
2827
2827
|
let e, s;
|
|
2828
2828
|
switch (t.type) {
|
|
2829
2829
|
case "start":
|
|
@@ -2899,18 +2899,18 @@ const Gs = (a, t) => {
|
|
|
2899
2899
|
break;
|
|
2900
2900
|
}
|
|
2901
2901
|
return e;
|
|
2902
|
-
},
|
|
2902
|
+
}, qs = (a, t, e) => {
|
|
2903
2903
|
const [s, i] = n.useState(a), l = n.useCallback(
|
|
2904
2904
|
(c) => {
|
|
2905
|
-
const o =
|
|
2905
|
+
const o = Ks(t.state || s, { ...c, ...t });
|
|
2906
2906
|
e && e(o, c.event), i(o);
|
|
2907
2907
|
},
|
|
2908
2908
|
[t, e]
|
|
2909
2909
|
);
|
|
2910
2910
|
return [s, l];
|
|
2911
|
-
},
|
|
2911
|
+
}, Us = he(), ya = n.forwardRef((a, t) => {
|
|
2912
2912
|
pe(me);
|
|
2913
|
-
const e = Me(
|
|
2913
|
+
const e = Me(Us, a), s = n.useRef(null), i = n.useRef(null), l = n.useRef(null), c = n.useRef(null), o = n.useRef(null), h = n.useCallback(
|
|
2914
2914
|
() => {
|
|
2915
2915
|
c.current && c.current.focus();
|
|
2916
2916
|
},
|
|
@@ -2936,7 +2936,7 @@ const Gs = (a, t) => {
|
|
|
2936
2936
|
target: s.current,
|
|
2937
2937
|
syntheticEvent: y
|
|
2938
2938
|
});
|
|
2939
|
-
}, [N, P] = n.useState(""), [V, R] =
|
|
2939
|
+
}, [N, P] = n.useState(""), [V, R] = qs(
|
|
2940
2940
|
e.defaultValue || ut.defaultValue,
|
|
2941
2941
|
{
|
|
2942
2942
|
min: d,
|
|
@@ -3043,7 +3043,7 @@ const Gs = (a, t) => {
|
|
|
3043
3043
|
},
|
|
3044
3044
|
[e.vertical, d, p, R]
|
|
3045
3045
|
);
|
|
3046
|
-
return
|
|
3046
|
+
return Bn(O, { onPress: Q, onDrag: (u) => {
|
|
3047
3047
|
const y = x(u), E = N === "end" ? X.end : X.start;
|
|
3048
3048
|
R({ type: E, payload: y, event: u });
|
|
3049
3049
|
}, onRelease: (u) => {
|
|
@@ -3151,7 +3151,7 @@ const Gs = (a, t) => {
|
|
|
3151
3151
|
)
|
|
3152
3152
|
)
|
|
3153
3153
|
);
|
|
3154
|
-
}),
|
|
3154
|
+
}), js = {
|
|
3155
3155
|
value: (a, t, e) => {
|
|
3156
3156
|
if (a.value) {
|
|
3157
3157
|
const s = a.value.start, i = a.value.end, l = a.min, c = a.max;
|
|
@@ -3214,9 +3214,9 @@ const Gs = (a, t) => {
|
|
|
3214
3214
|
vertical: !1,
|
|
3215
3215
|
disabled: !1
|
|
3216
3216
|
};
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3217
|
+
ya.displayName = "KendoReactRangeSlider";
|
|
3218
|
+
ya.propTypes = js;
|
|
3219
|
+
ya.defaultProps = ut;
|
|
3220
3220
|
const ft = class extends n.Component {
|
|
3221
3221
|
/**
|
|
3222
3222
|
* @hidden
|
|
@@ -3426,11 +3426,11 @@ Ct.defaultProps = {
|
|
|
3426
3426
|
required: !1,
|
|
3427
3427
|
validityStyles: !0
|
|
3428
3428
|
};
|
|
3429
|
-
const
|
|
3430
|
-
|
|
3431
|
-
const
|
|
3429
|
+
const Ws = he(), Xs = et(je(Ws, Ct));
|
|
3430
|
+
Xs.displayName = "KendoReactSwitch";
|
|
3431
|
+
const Ys = he(), Ca = n.forwardRef((a, t) => {
|
|
3432
3432
|
pe(me);
|
|
3433
|
-
const e = Me(
|
|
3433
|
+
const e = Me(Ys, a), {
|
|
3434
3434
|
ariaDescribedBy: s,
|
|
3435
3435
|
ariaLabelledBy: i,
|
|
3436
3436
|
checked: l,
|
|
@@ -3477,7 +3477,7 @@ const Xs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3477
3477
|
[u]
|
|
3478
3478
|
);
|
|
3479
3479
|
n.useImperativeHandle(t, y);
|
|
3480
|
-
const [E, D] = n.useState(d), [ee, Z] = n.useState(m), M = typeof F == "boolean" || F === null, b = l !== void 0, q = M, K = q ? F : ee, W = b ? l : q ? void 0 : E, ie = W === void 0 && K, Ee = ie ? K : W, le = ie || q ? F === null ? F : void 0 : F || K, we = Ee === null || le === null, be = Qe(), Ne = He(), z = (te) => Ne.toLanguageString(te, H[te]), ve = z(
|
|
3480
|
+
const [E, D] = n.useState(d), [ee, Z] = n.useState(m), M = typeof F == "boolean" || F === null, b = l !== void 0, q = M, K = q ? F : ee, W = b ? l : q ? void 0 : E, ie = W === void 0 && K, Ee = ie ? K : W, le = ie || q ? F === null ? F : void 0 : F || K, we = Ee === null || le === null, be = Qe(), Ne = He(), z = (te) => Ne.toLanguageString(te, H[te]), ve = z(un), oe = z(fn), ke = T !== void 0 ? T : A ? !!W : !0;
|
|
3481
3481
|
n.useEffect(
|
|
3482
3482
|
() => {
|
|
3483
3483
|
k.current && k.current.setCustomValidity && k.current.setCustomValidity(
|
|
@@ -3509,8 +3509,8 @@ const Xs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3509
3509
|
(te) => {
|
|
3510
3510
|
if (p)
|
|
3511
3511
|
return;
|
|
3512
|
-
const { keyCode: Le } = te,
|
|
3513
|
-
Le === _.space && (te.preventDefault(), te.stopPropagation(), Se(te, !
|
|
3512
|
+
const { keyCode: Le } = te, Nn = te.currentTarget.checked;
|
|
3513
|
+
Le === _.space && (te.preventDefault(), te.stopPropagation(), Se(te, !Nn));
|
|
3514
3514
|
},
|
|
3515
3515
|
[p, Se]
|
|
3516
3516
|
), at = n.useCallback(
|
|
@@ -3574,7 +3574,7 @@ const Xs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3574
3574
|
onKeyUp: at,
|
|
3575
3575
|
onFocus: It,
|
|
3576
3576
|
onBlur: C
|
|
3577
|
-
},
|
|
3577
|
+
}, Mn = /* @__PURE__ */ n.createElement(
|
|
3578
3578
|
n.Fragment,
|
|
3579
3579
|
null,
|
|
3580
3580
|
// removing value prop is required due to bug in react where
|
|
@@ -3589,10 +3589,10 @@ const Xs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3589
3589
|
},
|
|
3590
3590
|
P,
|
|
3591
3591
|
S && /* @__PURE__ */ n.createElement("span", { className: "k-label-optional" }, oe)
|
|
3592
|
-
) : null), Rt = /* @__PURE__ */ n.createElement("span", { className: ce },
|
|
3592
|
+
) : null), Rt = /* @__PURE__ */ n.createElement("span", { className: ce }, Mn, h);
|
|
3593
3593
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, V === "before" ? /* @__PURE__ */ n.createElement("div", { dir: "rtl" }, Rt, Lt) : V === "after" ? /* @__PURE__ */ n.createElement("div", { dir: "ltr" }, Rt, Lt) : /* @__PURE__ */ n.createElement("div", { dir: j }, Rt, Lt));
|
|
3594
3594
|
});
|
|
3595
|
-
|
|
3595
|
+
Ca.propTypes = {
|
|
3596
3596
|
checked: r.bool,
|
|
3597
3597
|
className: r.string,
|
|
3598
3598
|
defaultChecked: r.bool,
|
|
@@ -3618,15 +3618,15 @@ ya.propTypes = {
|
|
|
3618
3618
|
onFocus: r.func,
|
|
3619
3619
|
onBlur: r.func
|
|
3620
3620
|
};
|
|
3621
|
-
const
|
|
3621
|
+
const Zs = {
|
|
3622
3622
|
size: "medium",
|
|
3623
3623
|
rounded: "medium"
|
|
3624
3624
|
};
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
const
|
|
3625
|
+
Ca.defaultProps = Zs;
|
|
3626
|
+
Ca.displayName = "KendoCheckbox";
|
|
3627
|
+
const Js = he(), xt = n.forwardRef((a, t) => {
|
|
3628
3628
|
pe(me);
|
|
3629
|
-
const e = Me(
|
|
3629
|
+
const e = Me(Js, a), {
|
|
3630
3630
|
ariaDescribedBy: s,
|
|
3631
3631
|
checked: i,
|
|
3632
3632
|
children: l,
|
|
@@ -3741,14 +3741,14 @@ xt.propTypes = {
|
|
|
3741
3741
|
onFocus: r.func,
|
|
3742
3742
|
onBlur: r.func
|
|
3743
3743
|
};
|
|
3744
|
-
const
|
|
3744
|
+
const Qs = {
|
|
3745
3745
|
size: "medium"
|
|
3746
3746
|
};
|
|
3747
3747
|
xt.displayName = "KendoRadioButton";
|
|
3748
|
-
xt.defaultProps =
|
|
3749
|
-
const
|
|
3748
|
+
xt.defaultProps = Qs;
|
|
3749
|
+
const er = he(), xa = n.forwardRef((a, t) => {
|
|
3750
3750
|
pe(me);
|
|
3751
|
-
const e = Me(
|
|
3751
|
+
const e = Me(er, a), {
|
|
3752
3752
|
id: s,
|
|
3753
3753
|
ariaLabelledBy: i,
|
|
3754
3754
|
ariaDescribedBy: l,
|
|
@@ -3762,12 +3762,12 @@ const Qs = he(), Ca = n.forwardRef((a, t) => {
|
|
|
3762
3762
|
style: v,
|
|
3763
3763
|
value: N,
|
|
3764
3764
|
valid: P,
|
|
3765
|
-
item: V =
|
|
3765
|
+
item: V = Ln.item,
|
|
3766
3766
|
onChange: R,
|
|
3767
3767
|
onFocus: S
|
|
3768
3768
|
} = e, I = n.useRef(null), O = n.useCallback(
|
|
3769
3769
|
() => {
|
|
3770
|
-
I.current &&
|
|
3770
|
+
I.current && an(I.current);
|
|
3771
3771
|
},
|
|
3772
3772
|
[]
|
|
3773
3773
|
), B = n.useCallback(
|
|
@@ -3806,7 +3806,7 @@ const Qs = he(), Ca = n.forwardRef((a, t) => {
|
|
|
3806
3806
|
"k-list-vertical": f === "vertical" || f === void 0
|
|
3807
3807
|
},
|
|
3808
3808
|
c
|
|
3809
|
-
), Q =
|
|
3809
|
+
), Q = On(I, e.dir), g = o && o.map((k, u) => {
|
|
3810
3810
|
const y = T === k.value, E = T == null, D = {
|
|
3811
3811
|
...k,
|
|
3812
3812
|
valid: P,
|
|
@@ -3843,10 +3843,10 @@ const Qs = he(), Ca = n.forwardRef((a, t) => {
|
|
|
3843
3843
|
},
|
|
3844
3844
|
g
|
|
3845
3845
|
);
|
|
3846
|
-
}),
|
|
3846
|
+
}), Ln = {
|
|
3847
3847
|
item: (a) => /* @__PURE__ */ n.createElement("li", { ...a })
|
|
3848
3848
|
};
|
|
3849
|
-
|
|
3849
|
+
xa.propTypes = {
|
|
3850
3850
|
ariaLabelledBy: r.string,
|
|
3851
3851
|
ariaDescribedBy: r.string,
|
|
3852
3852
|
className: r.string,
|
|
@@ -3862,10 +3862,10 @@ Ca.propTypes = {
|
|
|
3862
3862
|
onChange: r.func,
|
|
3863
3863
|
onFocus: r.func
|
|
3864
3864
|
};
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
const
|
|
3868
|
-
const e = Me(
|
|
3865
|
+
xa.defaultProps = Ln;
|
|
3866
|
+
xa.displayName = "KendoRadioGroup";
|
|
3867
|
+
const tr = he(), Ea = n.forwardRef((a, t) => {
|
|
3868
|
+
const e = Me(tr, a), {
|
|
3869
3869
|
size: s,
|
|
3870
3870
|
rounded: i,
|
|
3871
3871
|
fillMode: l,
|
|
@@ -3924,7 +3924,7 @@ const er = he(), xa = n.forwardRef((a, t) => {
|
|
|
3924
3924
|
);
|
|
3925
3925
|
},
|
|
3926
3926
|
[be, A]
|
|
3927
|
-
),
|
|
3927
|
+
), ha(
|
|
3928
3928
|
() => {
|
|
3929
3929
|
u.current && Ee(`${u.current.scrollHeight}px`);
|
|
3930
3930
|
},
|
|
@@ -4011,7 +4011,7 @@ const er = he(), xa = n.forwardRef((a, t) => {
|
|
|
4011
4011
|
e.suffix && /* @__PURE__ */ n.createElement(M, { ...b })
|
|
4012
4012
|
);
|
|
4013
4013
|
});
|
|
4014
|
-
|
|
4014
|
+
Ea.propTypes = {
|
|
4015
4015
|
ariaDescribedBy: r.string,
|
|
4016
4016
|
ariaLabelledBy: r.string,
|
|
4017
4017
|
autoSize: r.bool,
|
|
@@ -4038,13 +4038,13 @@ xa.propTypes = {
|
|
|
4038
4038
|
rounded: r.oneOf([null, "small", "medium", "large", "full"]),
|
|
4039
4039
|
fillMode: r.oneOf([null, "solid", "flat", "outline"])
|
|
4040
4040
|
};
|
|
4041
|
-
const
|
|
4041
|
+
const ar = {
|
|
4042
4042
|
size: "medium",
|
|
4043
4043
|
rounded: "medium",
|
|
4044
4044
|
fillMode: "solid"
|
|
4045
4045
|
};
|
|
4046
|
-
|
|
4047
|
-
|
|
4046
|
+
Ea.displayName = "KendoTextArea";
|
|
4047
|
+
Ea.defaultProps = ar;
|
|
4048
4048
|
const Et = n.forwardRef((a, t) => {
|
|
4049
4049
|
const e = n.useRef(null), s = n.useRef(null), i = Ge(s, a.dir);
|
|
4050
4050
|
n.useImperativeHandle(e, () => ({
|
|
@@ -4160,7 +4160,7 @@ const Et = n.forwardRef((a, t) => {
|
|
|
4160
4160
|
},
|
|
4161
4161
|
a.children
|
|
4162
4162
|
);
|
|
4163
|
-
}),
|
|
4163
|
+
}), nr = {
|
|
4164
4164
|
id: r.string,
|
|
4165
4165
|
icon: r.any,
|
|
4166
4166
|
dir: r.oneOf(["ltr", "rtl"]),
|
|
@@ -4169,26 +4169,26 @@ const Et = n.forwardRef((a, t) => {
|
|
|
4169
4169
|
half: r.bool,
|
|
4170
4170
|
selected: r.bool,
|
|
4171
4171
|
hovered: r.bool
|
|
4172
|
-
},
|
|
4172
|
+
}, sr = {
|
|
4173
4173
|
dir: "ltr"
|
|
4174
4174
|
};
|
|
4175
4175
|
Et.displayName = "KendoReactRatingItem";
|
|
4176
|
-
Et.propTypes =
|
|
4177
|
-
Et.defaultProps =
|
|
4176
|
+
Et.propTypes = nr;
|
|
4177
|
+
Et.defaultProps = sr;
|
|
4178
4178
|
const Ce = (a, t) => {
|
|
4179
4179
|
if (a % 1) {
|
|
4180
4180
|
const e = Math.pow(10, (t.toString().split(".")[1] || t.toString().split(".")[0]).length);
|
|
4181
4181
|
return Math.round(a * e) / e;
|
|
4182
4182
|
}
|
|
4183
4183
|
return a;
|
|
4184
|
-
},
|
|
4184
|
+
}, rr = (a, t) => a - t * Math.floor(a / t), da = (a, t, e) => Ce(a - e, e) < t && t < a, Tt = (a, t, e, s) => t === null ? !1 : s === "continues" ? da(a, t, e) ? Ce(a - e / 2, e / 2) <= t : a <= t : s === "single" ? da(a, t, e) ? Ce(a - e / 2, e / 2) === t : a === t : !1, Za = (a, t, e) => a === "ltr" ? e < t.x + t.width / 2 : e > t.x + t.width / 2, Ja = (a, t, e, s) => {
|
|
4185
4185
|
for (let i = a; i <= t; i += e)
|
|
4186
4186
|
if (s === i)
|
|
4187
4187
|
return !0;
|
|
4188
4188
|
return !1;
|
|
4189
4189
|
};
|
|
4190
4190
|
var de = /* @__PURE__ */ ((a) => (a.select = "select", a.deselect = "deselect", a.increase = "increase", a.decrease = "decrease", a.min = "min", a.max = "max", a.reset = "reset", a))(de || {});
|
|
4191
|
-
const
|
|
4191
|
+
const ir = (a, t) => {
|
|
4192
4192
|
switch (t.type) {
|
|
4193
4193
|
case "select":
|
|
4194
4194
|
return t.payload === void 0 || t.step === void 0 ? a : t.payload === a ? null : t.payload >= t.min ? t.payload < t.max ? Ce(t.payload, t.step) : t.max : t.min;
|
|
@@ -4207,14 +4207,14 @@ const rr = (a, t) => {
|
|
|
4207
4207
|
default:
|
|
4208
4208
|
return a;
|
|
4209
4209
|
}
|
|
4210
|
-
},
|
|
4210
|
+
}, Qa = (a, t, e) => {
|
|
4211
4211
|
const [s, i] = n.useState(a);
|
|
4212
4212
|
return [s, (c) => {
|
|
4213
|
-
const o =
|
|
4213
|
+
const o = ir(t.state || s, { ...c, ...t });
|
|
4214
4214
|
e && e(o, c.event), i(o);
|
|
4215
4215
|
}];
|
|
4216
|
-
},
|
|
4217
|
-
const e = Me(
|
|
4216
|
+
}, lr = he(), Sa = n.forwardRef((a, t) => {
|
|
4217
|
+
const e = Me(lr, a), s = He(), i = n.useRef(null), l = n.useRef(null), c = Ge(l, e.dir);
|
|
4218
4218
|
n.useImperativeHandle(i, () => ({
|
|
4219
4219
|
element: l.current,
|
|
4220
4220
|
props: e
|
|
@@ -4249,7 +4249,7 @@ const rr = (a, t) => {
|
|
|
4249
4249
|
), N = n.useMemo(
|
|
4250
4250
|
() => e.item || Re.item,
|
|
4251
4251
|
[e.item]
|
|
4252
|
-
), [P, V] =
|
|
4252
|
+
), [P, V] = Qa(
|
|
4253
4253
|
e.defaultValue !== void 0 ? e.defaultValue : Re.defaultValue,
|
|
4254
4254
|
{
|
|
4255
4255
|
state: e.value,
|
|
@@ -4258,7 +4258,7 @@ const rr = (a, t) => {
|
|
|
4258
4258
|
step: p === "half" ? m / 2 : m
|
|
4259
4259
|
},
|
|
4260
4260
|
o
|
|
4261
|
-
), [R, S] =
|
|
4261
|
+
), [R, S] = Qa(
|
|
4262
4262
|
null,
|
|
4263
4263
|
{
|
|
4264
4264
|
state: e.value,
|
|
@@ -4283,7 +4283,7 @@ const rr = (a, t) => {
|
|
|
4283
4283
|
(g) => {
|
|
4284
4284
|
if (!(!g.target || !g.target.element || f || v)) {
|
|
4285
4285
|
if (p === "half") {
|
|
4286
|
-
const k = g.target.element.getBoundingClientRect(), y =
|
|
4286
|
+
const k = g.target.element.getBoundingClientRect(), y = Za(c || "ltr", k, g.syntheticEvent.clientX) ? Ce(g.target.value - m / 2, w) : g.target.value;
|
|
4287
4287
|
V({ type: de.select, payload: y, event: g.syntheticEvent });
|
|
4288
4288
|
} else
|
|
4289
4289
|
V({ type: de.select, payload: g.target.value, event: g.syntheticEvent });
|
|
@@ -4376,7 +4376,7 @@ const rr = (a, t) => {
|
|
|
4376
4376
|
(g) => {
|
|
4377
4377
|
if (!(!g.target || !g.target.element))
|
|
4378
4378
|
if (p === "half") {
|
|
4379
|
-
const k = g.target.element.getBoundingClientRect(), y =
|
|
4379
|
+
const k = g.target.element.getBoundingClientRect(), y = Za(c || "ltr", k, g.syntheticEvent.clientX) ? g.target.value - m / 2 : g.target.value;
|
|
4380
4380
|
S({ type: de.select, payload: y, event: g.syntheticEvent });
|
|
4381
4381
|
} else
|
|
4382
4382
|
S({ type: de.select, payload: g.target.value, event: g.syntheticEvent });
|
|
@@ -4387,7 +4387,7 @@ const rr = (a, t) => {
|
|
|
4387
4387
|
S({ type: de.reset, event: g.syntheticEvent });
|
|
4388
4388
|
},
|
|
4389
4389
|
[]
|
|
4390
|
-
), U = [], Q =
|
|
4390
|
+
), U = [], Q = rr(Ce(d - h, w), m);
|
|
4391
4391
|
for (let g = h; g <= d; g = Ce(g + m, w)) {
|
|
4392
4392
|
const k = Ce(g + Q, w), u = p === "half" ? da(k, O !== null ? O : I !== null ? I : 0, m) : !1, y = Tt(k, I, m, B), E = Tt(k, O !== null ? O : I, m, B), D = Tt(k, O, m, B);
|
|
4393
4393
|
U.push(
|
|
@@ -4407,10 +4407,10 @@ const rr = (a, t) => {
|
|
|
4407
4407
|
onMouseMove: L,
|
|
4408
4408
|
onMouseLeave: $
|
|
4409
4409
|
},
|
|
4410
|
-
u && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-complement" }, !(e.icon || e.svgIconOutline) && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon:
|
|
4411
|
-
u && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-part" }, !(e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon:
|
|
4410
|
+
u && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-complement" }, !(e.icon || e.svgIconOutline) && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Va, style: { clipPath: `${c === "rtl" ? "inset(0 50% 0 0)" : "inset(0 0 0 50%)"}` }, size: "xlarge" }), (e.icon || e.svgIconOutline) && /* @__PURE__ */ n.createElement(fe, { name: Vt(`${e.icon}-outline`), icon: e.svgIconOutline, size: "xlarge" })),
|
|
4411
|
+
u && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-part" }, !(e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Ma, style: { clipPath: `${c === "rtl" ? "inset(0 0 0 50%)" : "inset(0 50% 0 0)"}` }, size: "xlarge" }), (e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(fe, { name: e.icon ? Vt(e.icon) : void 0, icon: e.svgIcon, size: "xlarge" })),
|
|
4412
4412
|
u && /* @__PURE__ */ n.createElement("span", { style: { width: "24px", height: "24px", display: "block" } }),
|
|
4413
|
-
!u && !(e.icon || e.svgIcon) && (D || E && !D) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon:
|
|
4413
|
+
!u && !(e.icon || e.svgIcon) && (D || E && !D) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Ma, size: "xlarge" }) || !(e.icon || e.svgIcon) && !D && !E && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Va, size: "xlarge" }) || (e.icon || e.svgIcon) && (D || E && !D) && /* @__PURE__ */ n.createElement(fe, { name: e.icon, icon: e.svgIcon, size: "xlarge" }) || (e.icon || e.svgIcon) && !D && /* @__PURE__ */ n.createElement(fe, { name: Vt(`${e.icon}-outline`), icon: e.svgIconOutline, size: "xlarge" })
|
|
4414
4414
|
)
|
|
4415
4415
|
);
|
|
4416
4416
|
}
|
|
@@ -4467,12 +4467,12 @@ const rr = (a, t) => {
|
|
|
4467
4467
|
e.label
|
|
4468
4468
|
)
|
|
4469
4469
|
);
|
|
4470
|
-
}),
|
|
4470
|
+
}), or = {
|
|
4471
4471
|
id: r.string,
|
|
4472
4472
|
dir: r.oneOf(["ltr", "rtl"]),
|
|
4473
4473
|
selection: r.oneOf(["continues", "single"]),
|
|
4474
4474
|
precision: r.oneOf(["item", "half"]),
|
|
4475
|
-
value: (a, t, e) => a.value && a.min && a.max && a.step && !(a.precision === "half" ?
|
|
4475
|
+
value: (a, t, e) => a.value && a.min && a.max && a.step && !(a.precision === "half" ? Ja(a.min, a.max, a.step / 2, a.value) : Ja(a.min, a.max, a.step, a.value)) && a.precision === "half" ? new Error(
|
|
4476
4476
|
`Invalid prop + ${t} supplied to ${e}.
|
|
4477
4477
|
The value of the { value } property is not correct, please check your values.
|
|
4478
4478
|
`
|
|
@@ -4506,18 +4506,18 @@ const rr = (a, t) => {
|
|
|
4506
4506
|
selection: "continues",
|
|
4507
4507
|
precision: "item"
|
|
4508
4508
|
};
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
function
|
|
4509
|
+
Sa.displayName = "KendoReactRating";
|
|
4510
|
+
Sa.propTypes = or;
|
|
4511
|
+
Sa.defaultProps = Re;
|
|
4512
|
+
function cr(a, t) {
|
|
4513
4513
|
let e = a;
|
|
4514
4514
|
for (; e && e !== t; )
|
|
4515
4515
|
e = e.parentNode;
|
|
4516
4516
|
return !!e;
|
|
4517
4517
|
}
|
|
4518
|
-
const
|
|
4518
|
+
const dr = 250, ur = 84, Rn = 3, Vn = 2, fr = "#000000", hr = "#ffffff", en = (a) => a !== void 0, pr = he(), St = n.forwardRef((a, t) => {
|
|
4519
4519
|
pe(me);
|
|
4520
|
-
const e = Me(
|
|
4520
|
+
const e = Me(pr, a), s = He(), i = n.useRef(null), l = n.useRef(null), c = n.useRef(null), o = n.useRef(null), h = n.useRef(null), [d, p] = n.useState(), [m, f] = n.useState(!1), [v, N] = n.useState(!1), [P, V] = n.useState(), [R, S] = n.useState(), O = en(e.value) ? e.value : P, [B, w] = n.useState(!1), F = en(e.open), A = F ? e.open : B, T = !(e.maximized || v || !e.maximizable || e.disabled), x = e.maximized && !v, $ = !(!(e.value || P) || v || e.readOnly || e.disabled), U = s.toLanguageString(sa, H[sa]), Q = s.toLanguageString(ra, H[ra]), g = s.toLanguageString(na, H[na]), k = e.popupScale || Rn, u = e.exportScale || Vn, y = (C) => {
|
|
4521
4521
|
V(C), e.onChange && e.onChange({ value: C });
|
|
4522
4522
|
}, E = (C) => {
|
|
4523
4523
|
d == null || d.loadImage(C.value), y(C.value);
|
|
@@ -4536,10 +4536,10 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4536
4536
|
var j, ce;
|
|
4537
4537
|
Se(C), (ce = ((j = h.current) == null ? void 0 : j.element) || l.current) == null || ce.focus();
|
|
4538
4538
|
}, M = n.useCallback(() => {
|
|
4539
|
-
let C =
|
|
4539
|
+
let C = fr;
|
|
4540
4540
|
return !e.color && typeof document != "undefined" && i.current && (C = getComputedStyle(i.current).color), e.color || C;
|
|
4541
4541
|
}, [e.color]), b = n.useCallback(() => {
|
|
4542
|
-
let C =
|
|
4542
|
+
let C = hr;
|
|
4543
4543
|
return !e.backgroundColor && typeof document != "undefined" && i.current && (C = getComputedStyle(i.current).backgroundColor), e.backgroundColor || C;
|
|
4544
4544
|
}, [e.backgroundColor]), q = () => ({
|
|
4545
4545
|
scale: e.maximized ? e.popupScale : 1,
|
|
@@ -4556,7 +4556,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4556
4556
|
}));
|
|
4557
4557
|
};
|
|
4558
4558
|
n.useEffect(() => {
|
|
4559
|
-
const C = l.current, j = new
|
|
4559
|
+
const C = l.current, j = new Gn(C, q());
|
|
4560
4560
|
return O && j.loadImage(O), p(j), () => j.destroy();
|
|
4561
4561
|
}, []), n.useEffect(() => {
|
|
4562
4562
|
d == null || d.setOptions({
|
|
@@ -4564,7 +4564,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4564
4564
|
onDraw: () => N(!0),
|
|
4565
4565
|
onDrawEnd: () => N(!1)
|
|
4566
4566
|
});
|
|
4567
|
-
}, [d]),
|
|
4567
|
+
}, [d]), ha(
|
|
4568
4568
|
() => d == null ? void 0 : d.setOptions(q()),
|
|
4569
4569
|
[e.readOnly, e.color, e.backgroundColor, e.strokeWidth, e.smooth]
|
|
4570
4570
|
), n.useEffect(() => {
|
|
@@ -4639,7 +4639,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4639
4639
|
[m, e.onFocus, z]
|
|
4640
4640
|
), oe = n.useCallback(
|
|
4641
4641
|
(C) => {
|
|
4642
|
-
|
|
4642
|
+
cr(C.relatedTarget, i.current) || (f(!1), J(
|
|
4643
4643
|
e.onBlur,
|
|
4644
4644
|
C,
|
|
4645
4645
|
z(),
|
|
@@ -4671,7 +4671,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4671
4671
|
D(), W();
|
|
4672
4672
|
}, tt = () => {
|
|
4673
4673
|
var ce, Ie;
|
|
4674
|
-
const C = e.width || ((ce = i.current) == null ? void 0 : ce.offsetWidth) ||
|
|
4674
|
+
const C = e.width || ((ce = i.current) == null ? void 0 : ce.offsetWidth) || dr, j = e.height || ((Ie = i.current) == null ? void 0 : Ie.offsetHeight) || ur;
|
|
4675
4675
|
return {
|
|
4676
4676
|
width: C,
|
|
4677
4677
|
height: j
|
|
@@ -4728,7 +4728,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4728
4728
|
className: "k-signature-action k-signature-maximize",
|
|
4729
4729
|
ref: h,
|
|
4730
4730
|
icon: "hyperlink-open",
|
|
4731
|
-
svgIcon:
|
|
4731
|
+
svgIcon: Na,
|
|
4732
4732
|
fillMode: "flat",
|
|
4733
4733
|
size: e.size,
|
|
4734
4734
|
onClick: ke,
|
|
@@ -4742,7 +4742,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4742
4742
|
className: "k-signature-action k-signature-minimize k-rotate-180",
|
|
4743
4743
|
ref: o,
|
|
4744
4744
|
icon: "hyperlink-open",
|
|
4745
|
-
svgIcon:
|
|
4745
|
+
svgIcon: Na,
|
|
4746
4746
|
fillMode: "flat",
|
|
4747
4747
|
size: e.size,
|
|
4748
4748
|
onClick: Se,
|
|
@@ -4771,7 +4771,7 @@ const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a
|
|
|
4771
4771
|
title: g
|
|
4772
4772
|
}
|
|
4773
4773
|
)),
|
|
4774
|
-
A && /* @__PURE__ */ n.createElement(
|
|
4774
|
+
A && /* @__PURE__ */ n.createElement(Kn, { ref: c }, /* @__PURE__ */ n.createElement(
|
|
4775
4775
|
St,
|
|
4776
4776
|
{
|
|
4777
4777
|
...e,
|
|
@@ -4812,8 +4812,8 @@ St.displayName = "KendoSignature";
|
|
|
4812
4812
|
St.defaultProps = {
|
|
4813
4813
|
strokeWidth: 1,
|
|
4814
4814
|
smooth: !1,
|
|
4815
|
-
popupScale:
|
|
4816
|
-
exportScale:
|
|
4815
|
+
popupScale: Rn,
|
|
4816
|
+
exportScale: Vn,
|
|
4817
4817
|
maximizable: !0,
|
|
4818
4818
|
disabled: !1,
|
|
4819
4819
|
required: !1,
|
|
@@ -4827,7 +4827,7 @@ St.defaultProps = {
|
|
|
4827
4827
|
rounded: "medium",
|
|
4828
4828
|
fillMode: "solid"
|
|
4829
4829
|
};
|
|
4830
|
-
const
|
|
4830
|
+
const wa = n.forwardRef((a, t) => {
|
|
4831
4831
|
pe(me);
|
|
4832
4832
|
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(), l = n.useCallback(
|
|
4833
4833
|
() => {
|
|
@@ -4882,7 +4882,7 @@ const Sa = n.forwardRef((a, t) => {
|
|
|
4882
4882
|
}), i.current = void 0;
|
|
4883
4883
|
},
|
|
4884
4884
|
[a.onChange]
|
|
4885
|
-
), { onFocus: x, onBlur: L } =
|
|
4885
|
+
), { onFocus: x, onBlur: L } = Fn({
|
|
4886
4886
|
onFocus: F,
|
|
4887
4887
|
onBlur: A,
|
|
4888
4888
|
onSyncFocus: a.onFocus,
|
|
@@ -4930,14 +4930,14 @@ const Sa = n.forwardRef((a, t) => {
|
|
|
4930
4930
|
rounded: "medium",
|
|
4931
4931
|
fillMode: "solid"
|
|
4932
4932
|
};
|
|
4933
|
-
|
|
4933
|
+
wa.propTypes = {
|
|
4934
4934
|
size: r.oneOf([null, "small", "medium", "large"]),
|
|
4935
4935
|
rounded: r.oneOf([null, "small", "medium", "large", "full"]),
|
|
4936
4936
|
fillMode: r.oneOf([null, "solid", "flat", "outline"])
|
|
4937
4937
|
};
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
const
|
|
4938
|
+
wa.displayName = "KendoReactTextBoxComponent";
|
|
4939
|
+
wa.defaultProps = ua;
|
|
4940
|
+
const mr = n.forwardRef((a, t) => {
|
|
4941
4941
|
const e = n.useRef(null), s = n.useRef(null);
|
|
4942
4942
|
return n.useImperativeHandle(
|
|
4943
4943
|
e,
|
|
@@ -4947,8 +4947,8 @@ const pr = n.forwardRef((a, t) => {
|
|
|
4947
4947
|
() => e.current
|
|
4948
4948
|
), /* @__PURE__ */ n.createElement("span", { ...a, className: G("k-clear-value", a.className) });
|
|
4949
4949
|
});
|
|
4950
|
-
|
|
4951
|
-
const
|
|
4950
|
+
mr.displayName = "KendoReactInputClearValue";
|
|
4951
|
+
const gr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
4952
4952
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4953
4953
|
return n.useImperativeHandle(
|
|
4954
4954
|
s,
|
|
@@ -4958,8 +4958,8 @@ const mr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
|
4958
4958
|
() => s.current
|
|
4959
4959
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-prefix", t.className, `k-input-prefix-${a}`) });
|
|
4960
4960
|
});
|
|
4961
|
-
|
|
4962
|
-
const
|
|
4961
|
+
gr.displayName = "KendoReactInputPrefix";
|
|
4962
|
+
const br = n.forwardRef(({ orientation: a = "vertical", ...t }, e) => {
|
|
4963
4963
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4964
4964
|
return n.useImperativeHandle(
|
|
4965
4965
|
s,
|
|
@@ -4969,8 +4969,8 @@ const gr = n.forwardRef(({ orientation: a = "vertical", ...t }, e) => {
|
|
|
4969
4969
|
() => s.current
|
|
4970
4970
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-separator", t.className, `k-input-separator-${a}`) });
|
|
4971
4971
|
});
|
|
4972
|
-
|
|
4973
|
-
const
|
|
4972
|
+
br.displayName = "KendoReactInputSeparator";
|
|
4973
|
+
const vr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
4974
4974
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4975
4975
|
return n.useImperativeHandle(
|
|
4976
4976
|
s,
|
|
@@ -4980,66 +4980,66 @@ const br = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
|
4980
4980
|
() => s.current
|
|
4981
4981
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-suffix", t.className, `k-input-suffix-${a}`) });
|
|
4982
4982
|
});
|
|
4983
|
-
|
|
4984
|
-
const
|
|
4985
|
-
|
|
4983
|
+
vr.displayName = "KendoReactInputSuffix";
|
|
4984
|
+
const kr = n.forwardRef((a, t) => /* @__PURE__ */ n.createElement(fe, { ref: t, ...a, className: G("k-input-validation-icon", a.className) }));
|
|
4985
|
+
kr.displayName = "KendoReactInputValidationIcon";
|
|
4986
4986
|
export {
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4987
|
+
Ca as Checkbox,
|
|
4988
|
+
Ys as CheckboxPropsContext,
|
|
4989
|
+
ba as ColorGradient,
|
|
4990
|
+
xs as ColorGradientPropsContext,
|
|
4991
4991
|
vt as ColorGradientWithoutContext,
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4992
|
+
ga as ColorInput,
|
|
4993
|
+
va as ColorPalette,
|
|
4994
|
+
ws as ColorPalettePropsContext,
|
|
4995
4995
|
kt as ColorPaletteWithoutContext,
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
4996
|
+
ka as ColorPicker,
|
|
4997
|
+
Ms as ColorPickerPropsContext,
|
|
4998
|
+
wn as FlatColorPicker,
|
|
4999
|
+
kn as Input,
|
|
5000
|
+
mr as InputClearValue,
|
|
5001
|
+
gr as InputPrefix,
|
|
5002
|
+
ls as InputPropsContext,
|
|
5003
|
+
br as InputSeparator,
|
|
5004
|
+
vr as InputSuffix,
|
|
5005
|
+
kr as InputValidationIcon,
|
|
5006
5006
|
gt as InputWithoutContext,
|
|
5007
|
-
|
|
5007
|
+
Gs as MaskedTextBox,
|
|
5008
5008
|
yt as MaskedTextBoxWithoutContext,
|
|
5009
5009
|
$e as NumericTextBox,
|
|
5010
|
-
|
|
5011
|
-
|
|
5010
|
+
ss as NumericTextBoxPropsContext,
|
|
5011
|
+
Ss as PALETTEPRESETS,
|
|
5012
5012
|
X as RANGE_ACTION,
|
|
5013
5013
|
de as RATING_ACTION,
|
|
5014
5014
|
xt as RadioButton,
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5015
|
+
Js as RadioButtonPropsContext,
|
|
5016
|
+
xa as RadioGroup,
|
|
5017
|
+
er as RadioGroupPropsContext,
|
|
5018
|
+
ya as RangeSlider,
|
|
5019
|
+
Us as RangeSliderPropsContext,
|
|
5020
|
+
Sa as Rating,
|
|
5021
5021
|
Et as RatingItem,
|
|
5022
|
-
|
|
5023
|
-
|
|
5022
|
+
lr as RatingPropsContext,
|
|
5023
|
+
yn as SLIDER_LABEL_ATTRIBUTE,
|
|
5024
5024
|
St as Signature,
|
|
5025
|
-
|
|
5025
|
+
pr as SignaturePropsContext,
|
|
5026
5026
|
oa as Slider,
|
|
5027
|
-
|
|
5027
|
+
Mr as SliderLabel,
|
|
5028
5028
|
bt as SliderWithoutContext,
|
|
5029
|
-
|
|
5029
|
+
Xs as Switch,
|
|
5030
5030
|
Ct as SwitchWithoutContext,
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5031
|
+
Ea as TextArea,
|
|
5032
|
+
tr as TextAreaPropsContext,
|
|
5033
|
+
wa as TextBox,
|
|
5034
5034
|
H as inputsMessages,
|
|
5035
|
-
|
|
5035
|
+
Ja as isCorrectValue,
|
|
5036
5036
|
da as isHalf,
|
|
5037
5037
|
Tt as isSelected,
|
|
5038
|
-
|
|
5038
|
+
As as maskingChanged,
|
|
5039
5039
|
Ye as numericDecreaseValue,
|
|
5040
5040
|
Xe as numericIncreaseValue,
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5041
|
+
Ks as rangeReducer,
|
|
5042
|
+
ir as ratingReducer,
|
|
5043
|
+
za as sanitizeNumber,
|
|
5044
5044
|
Ce as toRound
|
|
5045
5045
|
};
|