@progress/kendo-react-inputs 7.1.0-develop.2 → 7.1.0-develop.6
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 +658 -656
- package/package.json +9 -9
package/index.mjs
CHANGED
|
@@ -5,56 +5,56 @@
|
|
|
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 Re, useId as Qe, useCustomComponent as qe, dispatchEvent as Q, getActiveElement as wa, classNames as G, kendoThemeMaps as ne, getTabIndex as
|
|
10
|
-
import { caretAltUpIcon as
|
|
11
|
-
import { FloatingLabel as
|
|
12
|
-
import { Button as ge, ButtonGroup as
|
|
8
|
+
import { useInternationalization as Nn, useLocalization as _e, provideLocalizationService as Je, registerForIntl as Pn, registerForLocalization as fa } from "@progress/kendo-react-intl";
|
|
9
|
+
import { createPropsContext as he, validatePackage as pe, usePropsContext as Re, useId as Qe, useCustomComponent as qe, dispatchEvent as Q, getActiveElement as wa, classNames as G, kendoThemeMaps as ne, getTabIndex as re, withIdHOC as et, withPropsContext as Ue, useDir as Ae, Keys as z, Draggable as en, IconWrap as fe, focusFirstFocusableChild as tn, svgIconPropType as zt, useDraggable as Dn, noop as Me, useRtl as Bn, toIconName as Vt, useAsyncFocusBlur as On } from "@progress/kendo-react-common";
|
|
10
|
+
import { caretAltUpIcon as _t, caretAltDownIcon as ht, caretAltExpandIcon as Fn, caretAltLeftIcon as Ia, caretAltRightIcon as La, checkIcon as Mt, xIcon as At, dropletSliderIcon as Tn, paletteIcon as zn, dropletSlashIcon as _n, starOutlineIcon as Ra, starIcon as Va, hyperlinkOpenIcon as Ma } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { FloatingLabel as ha, Label as We } from "@progress/kendo-react-labels";
|
|
12
|
+
import { Button as ge, ButtonGroup as An } from "@progress/kendo-react-buttons";
|
|
13
13
|
import { parseColor as mt, Color as an } from "@progress/kendo-drawing";
|
|
14
|
-
import { Popup as
|
|
15
|
-
import { SignaturePad as
|
|
16
|
-
import { Dialog as
|
|
14
|
+
import { Popup as $n } from "@progress/kendo-react-popup";
|
|
15
|
+
import { SignaturePad as Hn } from "@progress/kendo-inputs-common";
|
|
16
|
+
import { Dialog as Gn } 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: 1705646827,
|
|
22
22
|
version: "",
|
|
23
23
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
24
|
-
}, Xe = "numerictextbox.increment", Ye = "numerictextbox.decrement",
|
|
24
|
+
}, Xe = "numerictextbox.increment", Ye = "numerictextbox.decrement", $t = "slider.increment", Ht = "slider.decrement", Te = "slider.dragTitle", Fe = "colorGradient.r", nn = "colorGradient.g", sn = "colorGradient.b", rn = "colorGradient.a", ln = "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", on = "flatColorPicker.cancelBtn", cn = "flatColorPicker.applyBtn", Zt = "flatColorPicker.colorGradientBtn", Jt = "flatColorPicker.colorPaletteBtn", Qt = "flatColorPicker.clearBtn", dn = "checkbox.validation", un = "checkbox.optionalText", Kn = "radioButton.validation", ea = "switch.validation", ta = "colorPicker.dropdownButtonAriaLabel", aa = "rating.ariaLabel", na = "signature.clear", sa = "signature.maximize", ra = "signature.minimize", $ = {
|
|
25
25
|
[Xe]: "Increase value",
|
|
26
26
|
[Ye]: "Decrease value",
|
|
27
|
-
[
|
|
28
|
-
[
|
|
27
|
+
[$t]: "Increase",
|
|
28
|
+
[Ht]: "Decrease",
|
|
29
29
|
[Te]: "Drag",
|
|
30
30
|
[Fe]: "r",
|
|
31
31
|
[nn]: "g",
|
|
32
32
|
[sn]: "b",
|
|
33
33
|
[rn]: "a",
|
|
34
34
|
[ln]: "hex",
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
35
|
+
[Gt]: "Contrast ratio",
|
|
36
|
+
[Kt]: "AA",
|
|
37
|
+
[qt]: "AAA",
|
|
38
|
+
[Ut]: "Pass",
|
|
39
|
+
[jt]: "Fail",
|
|
40
|
+
[Wt]: "Hue slider",
|
|
41
|
+
[Xt]: "Alpha slider",
|
|
42
|
+
[Yt]: "Toggle colorgradient inputs",
|
|
43
43
|
[on]: "Cancel",
|
|
44
44
|
[cn]: "Apply",
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
45
|
+
[Zt]: "Color Gradient view",
|
|
46
|
+
[Jt]: "Color Palette view",
|
|
47
|
+
[Qt]: "Clear color value",
|
|
48
48
|
[dn]: "Please check this box if you want to proceed!",
|
|
49
49
|
[un]: "(Optional)",
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
}, pt = 11111111111111e-7,
|
|
50
|
+
[Kn]: "Please select option if you want to proceed!",
|
|
51
|
+
[ea]: "Please turn on if you want to proceed!",
|
|
52
|
+
[ta]: "Select",
|
|
53
|
+
[aa]: "Rating",
|
|
54
|
+
[na]: "Clear",
|
|
55
|
+
[sa]: "Maximize",
|
|
56
|
+
[ra]: "Minimize"
|
|
57
|
+
}, pt = 11111111111111e-7, qn = 0.31111111111111117, Un = 1, fn = 1, hn = 0, ke = /\d/, pn = 15, Na = () => ({
|
|
58
58
|
eventValue: null,
|
|
59
59
|
prevLooseValue: "",
|
|
60
60
|
currentLooseValue: "",
|
|
@@ -64,61 +64,61 @@ const me = {
|
|
|
64
64
|
decimalSelect: !1,
|
|
65
65
|
valueIsCorrected: !1,
|
|
66
66
|
valueIsOutOfRange: !1
|
|
67
|
-
}),
|
|
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), Pa = (a) => (String(a).split(".")[1] || "").length, mn = (a, t) => Math.max(Pa(a), Pa(t)), jn = (a) => Math.min(a, pn), gn = (a, t) => {
|
|
68
|
+
const e = jn(t);
|
|
69
69
|
return parseFloat(a.toFixed(e));
|
|
70
70
|
}, Da = (a, t, e, s, i, l, c) => {
|
|
71
|
-
const o = mn(a || 0, e || 0),
|
|
72
|
-
t.eventValue =
|
|
71
|
+
const o = mn(a || 0, e || 0), p = Ge(gn((a || 0) + (e || 0), o), s, i);
|
|
72
|
+
t.eventValue = p, t.currentLooseValue = ue(p, l, c), t.selectionStart = t.selectionEnd = Ze(t.currentLooseValue, ke);
|
|
73
73
|
}, Ba = (a, t, e, s, i, l, c) => {
|
|
74
|
-
const o = mn(a || 0, e || 0),
|
|
75
|
-
t.eventValue =
|
|
76
|
-
}, Ge = (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),
|
|
74
|
+
const o = mn(a || 0, e || 0), p = Ge(gn((a || 0) - (e || 0), o), s, i);
|
|
75
|
+
t.eventValue = p, t.currentLooseValue = ue(p, l, c), t.selectionStart = t.selectionEnd = Ze(t.currentLooseValue, ke);
|
|
76
|
+
}, Ge = (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), Wn = (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
|
+
}, Xn = (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
|
+
}, Yn = (a, t, e) => {
|
|
86
|
+
const s = Wn(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 = Xn(a, t);
|
|
93
93
|
i !== -1 && e.selectionStart < i && (e.selectionStart = e.selectionEnd = i), e.selectionStart === -1 && (e.selectionStart = e.selectionEnd = 0);
|
|
94
94
|
}, Le = (a, t, e, s) => {
|
|
95
|
-
a.selectionStart = a.selectionEnd = t,
|
|
96
|
-
},
|
|
95
|
+
a.selectionStart = a.selectionEnd = t, Yn(e, s, a);
|
|
96
|
+
}, Pt = (a, t, e, s) => {
|
|
97
97
|
a.eventValue = s.parseNumber(a.prevLooseValue, t), a.currentLooseValue = a.prevLooseValue, a.valueIsCorrected = !0, Le(a, a.selectionStart, a.currentLooseValue, e);
|
|
98
|
-
},
|
|
98
|
+
}, Zn = (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
|
+
}, Jn = (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(hn, a), l = t.formatNumber(fn, a), c = nt(e), o = nt(s),
|
|
104
|
+
}, Qn = (a, t) => String(a.currentLooseValue).split(t.decimal).length > 2, es = (a, t) => {
|
|
105
|
+
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(hn, a), l = t.formatNumber(fn, a), c = nt(e), o = nt(s), p = nt(i), d = nt(l), m = st(e), u = st(s), f = st(i), y = st(l);
|
|
106
106
|
return {
|
|
107
107
|
positiveInfo: [c, m],
|
|
108
108
|
negativeInfo: [o, u],
|
|
109
|
-
zeroInfo: [
|
|
109
|
+
zeroInfo: [p, f],
|
|
110
110
|
oneInfo: [d, y]
|
|
111
111
|
};
|
|
112
|
-
},
|
|
112
|
+
}, ts = (a, t) => {
|
|
113
113
|
const e = t.formatNumber(pt, a), s = t.formatNumber(-pt, a), i = t.formatNumber(hn, a), l = t.formatNumber(fn, 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, m, u) => u.indexOf(d) === m).join("");
|
|
115
|
-
},
|
|
115
|
+
}, Dt = (a, t) => {
|
|
116
116
|
const e = a.indexOf(t.decimal);
|
|
117
117
|
return e > -1 ? e : Ze(a, ke);
|
|
118
|
-
},
|
|
119
|
-
const t =
|
|
120
|
-
return
|
|
121
|
-
},
|
|
118
|
+
}, ia = (a) => a.split("").reverse().join(""), Ze = (a, t) => a.length - ia(a).search(t), nt = (a) => a.split(a[a.search(ke)])[0], st = (a) => {
|
|
119
|
+
const t = ia(a);
|
|
120
|
+
return ia(t.split(t[t.search(ke)])[0]);
|
|
121
|
+
}, Bt = (a, t) => a.search(t), Oa = (a, t) => {
|
|
122
122
|
const e = a.indexOf(t);
|
|
123
123
|
return e > -1 ? a.length - e - 1 : 0;
|
|
124
124
|
}, Fa = (a, t, e, s, i) => {
|
|
@@ -130,26 +130,26 @@ const me = {
|
|
|
130
130
|
let o = 0;
|
|
131
131
|
for (let d = 0; d < e; d++)
|
|
132
132
|
ke.test(a.charAt(d)) && o++;
|
|
133
|
-
let
|
|
134
|
-
for (; o > 0 && t.length >
|
|
135
|
-
ke.test(t.charAt(
|
|
136
|
-
return
|
|
133
|
+
let p = 0;
|
|
134
|
+
for (; o > 0 && t.length > p; )
|
|
135
|
+
ke.test(t.charAt(p)) && o--, p++;
|
|
136
|
+
return p;
|
|
137
137
|
}, Ta = (a, t, e) => {
|
|
138
|
-
const s = { ...a }, { prevLooseValue: i } = s, l = e.numberSymbols(), c =
|
|
138
|
+
const s = { ...a }, { prevLooseValue: i } = s, l = e.numberSymbols(), c = ts(t, e), o = String(s.currentLooseValue), p = String(i), d = new RegExp(`[^\\d\\${l.decimal}]`, "g"), m = new RegExp(`[^\\d\\${l.decimal}\\${l.group}]`, "g"), u = new RegExp(`[\\d\\${l.decimal}\\${l.group}]`), f = o.replace(d, ""), y = Bt(o, ke), N = y === -1 ? -1 : Ze(o, ke), D = o.indexOf(l.decimal), V = (o.substring(0, y) + o.substring(y, N).replace(m, "") + o.substring(N, o.length)).split("").filter((h) => c.indexOf(h) !== -1 || h.search(u) !== -1).join(""), L = e.formatNumber(qn, t).replace(d, ""), S = L.indexOf(l.decimal), w = S > -1 ? L.length - S - 1 : 0, B = e.formatNumber(Un, t).replace(d, ""), O = B.indexOf(l.decimal), I = O > -1 ? B.length - O - 1 : 0, {
|
|
139
139
|
positiveInfo: F,
|
|
140
140
|
negativeInfo: _,
|
|
141
141
|
zeroInfo: T,
|
|
142
142
|
oneInfo: E
|
|
143
|
-
} =
|
|
143
|
+
} = es(t, e), M = [F, _, T, E], H = M.findIndex((h) => h.findIndex((v) => !!v) !== -1) !== 1, q = o.length > 0 && o.length < p.length, Z = 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;
|
|
147
|
-
if (s.currentLooseValue === l.minusSign && e.formatNumber(-0, t) !==
|
|
147
|
+
if (s.currentLooseValue === l.minusSign && e.formatNumber(-0, t) !== p)
|
|
148
148
|
return s.eventValue = -0, s.currentLooseValue = ue(s.eventValue, t, e), Le(
|
|
149
149
|
s,
|
|
150
|
-
|
|
150
|
+
Dt(s.currentLooseValue, l),
|
|
151
151
|
s.currentLooseValue,
|
|
152
|
-
|
|
152
|
+
M
|
|
153
153
|
), s;
|
|
154
154
|
if (s.currentLooseValue === l.decimal) {
|
|
155
155
|
s.eventValue = 0;
|
|
@@ -161,91 +161,91 @@ const me = {
|
|
|
161
161
|
s.currentLooseValue = k;
|
|
162
162
|
return Le(
|
|
163
163
|
s,
|
|
164
|
-
|
|
164
|
+
Dt(s.currentLooseValue, l) + 1,
|
|
165
165
|
s.currentLooseValue,
|
|
166
|
-
|
|
166
|
+
M
|
|
167
167
|
), s;
|
|
168
168
|
}
|
|
169
|
-
if (
|
|
169
|
+
if (Zn(s, l)) {
|
|
170
170
|
const k = e.parseNumber(i, t);
|
|
171
171
|
s.eventValue = -(k !== null ? k : 0), s.currentLooseValue = ue(s.eventValue, t, e);
|
|
172
|
-
const C =
|
|
172
|
+
const C = Bt(s.currentLooseValue, ke), P = Bt(p, ke);
|
|
173
173
|
return Le(
|
|
174
174
|
s,
|
|
175
175
|
s.selectionEnd - 1 + (C - P),
|
|
176
176
|
s.currentLooseValue,
|
|
177
|
-
|
|
177
|
+
M
|
|
178
178
|
), s;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
180
|
+
if (Jn(s, l))
|
|
181
181
|
return s.eventValue = e.parseNumber(s.currentLooseValue, t), Le(
|
|
182
182
|
s,
|
|
183
183
|
s.selectionStart,
|
|
184
184
|
s.currentLooseValue,
|
|
185
|
-
|
|
185
|
+
M
|
|
186
186
|
), s;
|
|
187
|
-
if (
|
|
188
|
-
return
|
|
187
|
+
if (Qn(s, l))
|
|
188
|
+
return Pt(s, t, M, e), s;
|
|
189
189
|
if (Z)
|
|
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 > pn ||
|
|
192
|
-
const j = o.indexOf(C), J = o.indexOf(P), R = j === 0, b = J === o.length - P.length, W = j + C.length !== y && y !== -1 && o[j + C.length] !== l.decimal, K = J !==
|
|
191
|
+
if (String(s.currentLooseValue).replace(/[^\d]/g, "").length > pn || f !== o && o && H && M.findIndex(([C, P]) => {
|
|
192
|
+
const j = o.indexOf(C), J = o.indexOf(P), R = j === 0, b = J === o.length - P.length, W = j + C.length !== y && y !== -1 && o[j + C.length] !== l.decimal, K = J !== N && N !== -1 && o[J - 1] !== l.decimal;
|
|
193
193
|
return C && P ? W || K ? !1 : R && b : C ? W ? !1 : R : P ? K ? !1 : b : !1;
|
|
194
194
|
}) === -1)
|
|
195
|
-
return
|
|
196
|
-
if (
|
|
197
|
-
return s.eventValue = e.parseNumber(o, t), s.currentLooseValue =
|
|
198
|
-
if (s.currentLooseValue && i && (c + l.decimal + l.group).split("").findIndex((C) => o.split("").filter((P) => P === C).length <
|
|
195
|
+
return Pt(s, t, M, e), s;
|
|
196
|
+
if (f[f.length - 1] === l.decimal && w > 0)
|
|
197
|
+
return s.eventValue = e.parseNumber(o, t), s.currentLooseValue = V, s;
|
|
198
|
+
if (s.currentLooseValue && i && (c + l.decimal + l.group).split("").findIndex((C) => o.split("").filter((P) => P === C).length < p.split("").filter((P) => P === C).length && o.length + 1 === p.length ? !(C === l.decimal && Oa(p.replace(d, ""), l.decimal) === 0) : !1) > -1)
|
|
199
199
|
return s.eventValue = e.parseNumber(a.prevLooseValue, t), s.currentLooseValue = a.prevLooseValue, s;
|
|
200
|
-
const v = Oa(
|
|
200
|
+
const v = Oa(f, l.decimal), g = f[f.length - 1] === "0";
|
|
201
201
|
if (q && g && v < I)
|
|
202
202
|
return s.eventValue = e.parseNumber(s.currentLooseValue, t), s.currentLooseValue = ue(s.eventValue, t, e), s;
|
|
203
203
|
if (v > 0) {
|
|
204
204
|
const k = o.substring(0, D);
|
|
205
|
-
if (g && (!k ||
|
|
205
|
+
if (g && (!k || p.indexOf(k) !== 0)) {
|
|
206
206
|
s.eventValue = e.parseNumber(s.currentLooseValue, t);
|
|
207
207
|
const C = ue(s.eventValue, t, e);
|
|
208
208
|
return Le(
|
|
209
209
|
s,
|
|
210
210
|
Fa(o, C, s.selectionEnd, q, d),
|
|
211
211
|
C,
|
|
212
|
-
|
|
212
|
+
M
|
|
213
213
|
), s.currentLooseValue = C, s;
|
|
214
214
|
}
|
|
215
215
|
if (v > w) {
|
|
216
|
-
const C = o.indexOf(l.decimal), P = o.substring(0, C) + o.substring(C, C + 1 + w) + o.substring(
|
|
217
|
-
return s.eventValue = e.parseNumber(P, t), s.currentLooseValue = P, Le(s, s.selectionStart, P,
|
|
216
|
+
const C = o.indexOf(l.decimal), P = o.substring(0, C) + o.substring(C, C + 1 + w) + o.substring(N, String(s.currentLooseValue).length);
|
|
217
|
+
return s.eventValue = e.parseNumber(P, t), s.currentLooseValue = P, Le(s, s.selectionStart, P, M), s;
|
|
218
218
|
}
|
|
219
219
|
if (I !== w && v <= w && g)
|
|
220
|
-
return s.eventValue = e.parseNumber(s.currentLooseValue, t), s.currentLooseValue =
|
|
220
|
+
return s.eventValue = e.parseNumber(s.currentLooseValue, t), s.currentLooseValue = V, s;
|
|
221
221
|
if (v < I)
|
|
222
222
|
return s.eventValue = e.parseNumber(s.currentLooseValue, t), s.currentLooseValue = ue(s.eventValue, t, e), s;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
if (s.eventValue = e.parseNumber(s.currentLooseValue, t), Z && (s.eventValue = s.eventValue / 100), typeof s.eventValue == "number") {
|
|
226
|
-
const
|
|
227
|
-
o.length === 1 ? Le(s,
|
|
226
|
+
const h = ue(s.eventValue, t, e);
|
|
227
|
+
o.length === 1 ? Le(s, Dt(h, l), h, M) : Le(
|
|
228
228
|
s,
|
|
229
|
-
Fa(o,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
), s.currentLooseValue =
|
|
229
|
+
Fa(o, h, s.selectionEnd, q, d),
|
|
230
|
+
h,
|
|
231
|
+
M
|
|
232
|
+
), s.currentLooseValue = h;
|
|
233
233
|
} else
|
|
234
|
-
s.currentLooseValue = ue(e.parseNumber(
|
|
234
|
+
s.currentLooseValue = ue(e.parseNumber(f), t, e);
|
|
235
235
|
return s;
|
|
236
|
-
},
|
|
236
|
+
}, as = "Please enter a valid value!", ns = he(), ze = n.forwardRef((a, t) => {
|
|
237
237
|
pe(me);
|
|
238
|
-
const e = Re(
|
|
239
|
-
u.current.focused && !e.disabled ? u.current.currentLooseValue :
|
|
238
|
+
const e = Re(ns, a), s = Qe(), i = e.id || s, l = Nn(), c = _e(), o = n.useRef(null), p = n.useRef(), [d, m] = n.useState(!1), u = n.useRef(Na()), f = n.useRef(!1), y = n.useRef(), N = n.useRef(e.defaultValue), D = ue(
|
|
239
|
+
u.current.focused && !e.disabled ? u.current.currentLooseValue : Nt(e.value, N.current),
|
|
240
240
|
e.format,
|
|
241
241
|
l
|
|
242
242
|
);
|
|
243
243
|
y.current = D;
|
|
244
|
-
const [
|
|
244
|
+
const [V] = qe(e.prefix), [L] = qe(e.suffix);
|
|
245
245
|
n.useEffect(
|
|
246
246
|
() => {
|
|
247
247
|
o.current && o.current.setCustomValidity && o.current.setCustomValidity(
|
|
248
|
-
I().valid ? "" : e.validationMessage ||
|
|
248
|
+
I().valid ? "" : e.validationMessage || as
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
);
|
|
@@ -255,7 +255,7 @@ const me = {
|
|
|
255
255
|
},
|
|
256
256
|
[]
|
|
257
257
|
), w = n.useCallback(
|
|
258
|
-
() =>
|
|
258
|
+
() => p.current !== void 0 ? p.current : Nt(e.value, N.current),
|
|
259
259
|
[e.value]
|
|
260
260
|
), B = n.useCallback(
|
|
261
261
|
() => e.name,
|
|
@@ -292,7 +292,7 @@ const me = {
|
|
|
292
292
|
n.useImperativeHandle(t, T);
|
|
293
293
|
const E = n.useCallback(
|
|
294
294
|
() => ({
|
|
295
|
-
eventValue:
|
|
295
|
+
eventValue: Nt(e.value, N.current),
|
|
296
296
|
prevLooseValue: y.current,
|
|
297
297
|
currentLooseValue: o.current.value,
|
|
298
298
|
selectionStart: o.current.selectionStart,
|
|
@@ -300,37 +300,37 @@ const me = {
|
|
|
300
300
|
decimalSelect: !1,
|
|
301
301
|
valueIsCorrected: !1,
|
|
302
302
|
valueIsOutOfRange: !1,
|
|
303
|
-
isPaste:
|
|
303
|
+
isPaste: f.current,
|
|
304
304
|
focused: u.current.focused
|
|
305
305
|
}),
|
|
306
306
|
[e.value]
|
|
307
|
-
),
|
|
307
|
+
), M = n.useCallback(
|
|
308
308
|
(R, b) => {
|
|
309
309
|
if (e.disabled)
|
|
310
310
|
return;
|
|
311
|
-
|
|
311
|
+
p.current = b.eventValue, N.current = b.eventValue;
|
|
312
312
|
const W = ue(Ge(b.eventValue, e.min, e.max), e.format, l), K = Ge(l.parseNumber(W, e.format), e.min, e.max);
|
|
313
|
-
K !== b.eventValue && (b.valueIsOutOfRange = !0, b.eventValue = K,
|
|
313
|
+
K !== b.eventValue && (b.valueIsOutOfRange = !0, b.eventValue = K, N.current = K), e.value !== b.eventValue && Q(
|
|
314
314
|
e.onChange,
|
|
315
315
|
R,
|
|
316
316
|
T(),
|
|
317
317
|
{ value: b.eventValue }
|
|
318
|
-
),
|
|
318
|
+
), p.current = void 0, u.current = b, m((ie) => !ie);
|
|
319
319
|
},
|
|
320
320
|
[e.value, e.onChange, e.disabled, m, T]
|
|
321
321
|
), H = n.useCallback(
|
|
322
322
|
(R) => {
|
|
323
323
|
const b = E();
|
|
324
|
-
|
|
324
|
+
f.current = !1, M(R, Ta(b, e.format, l));
|
|
325
325
|
},
|
|
326
|
-
[e.format, e.onChange, l,
|
|
326
|
+
[e.format, e.onChange, l, M, E]
|
|
327
327
|
), q = n.useCallback(
|
|
328
328
|
(R) => {
|
|
329
329
|
let b = E();
|
|
330
330
|
const W = l.parseNumber(String(b.currentLooseValue), e.format);
|
|
331
331
|
if (b.selectionEnd > b.selectionStart && b.selectionEnd - b.selectionStart === String(b.currentLooseValue).length) {
|
|
332
|
-
const K = l.numberSymbols(), ee = K && R.key === K.minusSign,
|
|
333
|
-
|
|
332
|
+
const K = l.numberSymbols(), ee = K && R.key === K.minusSign, ie = K && R.key === K.decimal;
|
|
333
|
+
f.current = !ee && !ie;
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
336
|
switch (R.keyCode) {
|
|
@@ -371,15 +371,15 @@ const me = {
|
|
|
371
371
|
default:
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
|
-
R.preventDefault(),
|
|
374
|
+
R.preventDefault(), M(R, b);
|
|
375
375
|
},
|
|
376
|
-
[e.format, e.min, e.max, e.step, e.onChange, e.rangeOnEnter,
|
|
376
|
+
[e.format, e.min, e.max, e.step, e.onChange, e.rangeOnEnter, M, E]
|
|
377
377
|
), Z = n.useCallback(
|
|
378
378
|
() => {
|
|
379
|
-
|
|
379
|
+
f.current = !0;
|
|
380
380
|
},
|
|
381
381
|
[]
|
|
382
|
-
),
|
|
382
|
+
), h = n.useCallback(
|
|
383
383
|
(R) => {
|
|
384
384
|
if (e.readOnly || e.disabled)
|
|
385
385
|
return;
|
|
@@ -392,9 +392,9 @@ const me = {
|
|
|
392
392
|
e.max,
|
|
393
393
|
e.format,
|
|
394
394
|
l
|
|
395
|
-
),
|
|
395
|
+
), M(R, b);
|
|
396
396
|
},
|
|
397
|
-
[e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled,
|
|
397
|
+
[e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled, M, E]
|
|
398
398
|
), v = n.useCallback(
|
|
399
399
|
(R) => {
|
|
400
400
|
if (e.readOnly || e.disabled)
|
|
@@ -408,15 +408,15 @@ const me = {
|
|
|
408
408
|
e.max,
|
|
409
409
|
e.format,
|
|
410
410
|
l
|
|
411
|
-
),
|
|
411
|
+
), M(R, b);
|
|
412
412
|
},
|
|
413
|
-
[e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled,
|
|
413
|
+
[e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled, M, E]
|
|
414
414
|
), g = n.useCallback(
|
|
415
415
|
(R) => {
|
|
416
416
|
const b = wa(document);
|
|
417
|
-
!document || b !== o.current || !o.current || e.readOnly || e.disabled || (R.nativeEvent.deltaY < 0 &&
|
|
417
|
+
!document || b !== o.current || !o.current || e.readOnly || e.disabled || (R.nativeEvent.deltaY < 0 && h(R), R.nativeEvent.deltaY > 0 && v(R));
|
|
418
418
|
},
|
|
419
|
-
[
|
|
419
|
+
[h, v, e.disabled, e.readOnly]
|
|
420
420
|
), k = n.useCallback(
|
|
421
421
|
(R) => {
|
|
422
422
|
u.current.currentLooseValue = y.current, u.current.focused = !0, Q(
|
|
@@ -472,13 +472,13 @@ const me = {
|
|
|
472
472
|
),
|
|
473
473
|
"aria-disabled": e.disabled ? "true" : void 0
|
|
474
474
|
},
|
|
475
|
-
/* @__PURE__ */ n.createElement(
|
|
475
|
+
/* @__PURE__ */ n.createElement(V, null),
|
|
476
476
|
/* @__PURE__ */ n.createElement(
|
|
477
477
|
"input",
|
|
478
478
|
{
|
|
479
479
|
role: "spinbutton",
|
|
480
480
|
value: D === null ? "" : D,
|
|
481
|
-
tabIndex:
|
|
481
|
+
tabIndex: re(e.tabIndex, e.disabled),
|
|
482
482
|
accessKey: e.accessKey,
|
|
483
483
|
disabled: e.disabled,
|
|
484
484
|
title: e.title,
|
|
@@ -521,12 +521,12 @@ const me = {
|
|
|
521
521
|
tabIndex: -1,
|
|
522
522
|
type: "button",
|
|
523
523
|
icon: "caret-alt-up",
|
|
524
|
-
svgIcon:
|
|
524
|
+
svgIcon: _t,
|
|
525
525
|
rounded: null,
|
|
526
526
|
className: "k-spinner-increase",
|
|
527
527
|
"aria-label": c.toLanguageString(Xe, $[Xe]),
|
|
528
528
|
title: c.toLanguageString(Xe, $[Xe]),
|
|
529
|
-
onClick:
|
|
529
|
+
onClick: h
|
|
530
530
|
}
|
|
531
531
|
),
|
|
532
532
|
/* @__PURE__ */ n.createElement(
|
|
@@ -546,7 +546,7 @@ const me = {
|
|
|
546
546
|
)
|
|
547
547
|
);
|
|
548
548
|
return e.label ? /* @__PURE__ */ n.createElement(
|
|
549
|
-
|
|
549
|
+
ha,
|
|
550
550
|
{
|
|
551
551
|
label: e.label,
|
|
552
552
|
editorId: i,
|
|
@@ -634,37 +634,37 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
634
634
|
const i = mt(a.trim(), e);
|
|
635
635
|
if (ae(i))
|
|
636
636
|
return t === "hex" ? i.toCss() : i.toCssRgba();
|
|
637
|
-
},
|
|
637
|
+
}, Ot = (a, t = !0) => {
|
|
638
638
|
const e = mt(a, t);
|
|
639
639
|
return ae(e) ? e.toHSV() : {};
|
|
640
640
|
}, Ke = (a, t = !0) => {
|
|
641
641
|
const e = mt(a, t);
|
|
642
642
|
return ae(e) ? e.toBytes() : {};
|
|
643
|
-
},
|
|
643
|
+
}, pa = (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
645
|
return an.fromHSV(t, e, s, i).toCssRgba();
|
|
646
|
-
}, rt = (a) =>
|
|
646
|
+
}, rt = (a) => pa({ h: a, s: 1, v: 1, a: 1 }), ss = (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
648
|
return an.fromBytes(t, e, s, i).toCssRgba();
|
|
649
649
|
}, za = (a, t) => {
|
|
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),
|
|
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), p = 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
|
-
b: Math.round((1 - l) *
|
|
654
|
+
b: Math.round((1 - l) * p + l * i)
|
|
655
655
|
};
|
|
656
656
|
}, _a = (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
|
+
}, rs = (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
|
-
}, bn = (a, t) =>
|
|
664
|
+
}, bn = (a, t) => rs(
|
|
665
665
|
_a(za(a, t)),
|
|
666
666
|
_a(za(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 = () => {
|
|
670
670
|
this._input && this._input.focus();
|
|
@@ -692,7 +692,7 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
692
692
|
e && e.classList.contains("k-empty") && e.classList.remove("k-empty");
|
|
693
693
|
}
|
|
694
694
|
}, pe(me), this.state = {
|
|
695
|
-
value: this.props.defaultValue ||
|
|
695
|
+
value: this.props.defaultValue || la.defaultProps.defaultValue
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
get _inputId() {
|
|
@@ -740,7 +740,7 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
740
740
|
* @hidden
|
|
741
741
|
*/
|
|
742
742
|
get validityStyles() {
|
|
743
|
-
return this.props.validityStyles !== void 0 ? this.props.validityStyles :
|
|
743
|
+
return this.props.validityStyles !== void 0 ? this.props.validityStyles : la.defaultProps.validityStyles;
|
|
744
744
|
}
|
|
745
745
|
/**
|
|
746
746
|
* @hidden
|
|
@@ -768,26 +768,26 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
768
768
|
valid: c,
|
|
769
769
|
// Removed to support direct use in Form Field component
|
|
770
770
|
visited: o,
|
|
771
|
-
touched:
|
|
771
|
+
touched: p,
|
|
772
772
|
modified: d,
|
|
773
773
|
ariaLabelledBy: m,
|
|
774
774
|
ariaDescribedBy: u,
|
|
775
|
-
validityStyles:
|
|
775
|
+
validityStyles: f,
|
|
776
776
|
style: y,
|
|
777
|
-
ariaLabel:
|
|
777
|
+
ariaLabel: N,
|
|
778
778
|
...D
|
|
779
|
-
} = this.props,
|
|
779
|
+
} = this.props, V = s || this._inputId, L = !this.validityStyles || this.validity.valid, S = G(a, "k-input k-input-md k-rounded-md k-input-solid"), w = /* @__PURE__ */ n.createElement(
|
|
780
780
|
"input",
|
|
781
781
|
{
|
|
782
782
|
"aria-labelledby": m,
|
|
783
783
|
"aria-describedby": u,
|
|
784
784
|
"aria-disabled": this.props.disabled || void 0,
|
|
785
785
|
"aria-invalid": !L || void 0,
|
|
786
|
-
"aria-label":
|
|
786
|
+
"aria-label": N || void 0,
|
|
787
787
|
...D,
|
|
788
788
|
style: t ? void 0 : y,
|
|
789
789
|
value: this.value,
|
|
790
|
-
id:
|
|
790
|
+
id: V,
|
|
791
791
|
className: S,
|
|
792
792
|
onChange: this.handleChange,
|
|
793
793
|
onAnimationStart: this.handleAutoFill,
|
|
@@ -797,11 +797,11 @@ 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
|
+
ha,
|
|
801
801
|
{
|
|
802
802
|
label: t,
|
|
803
803
|
labelClassName: e,
|
|
804
|
-
editorId:
|
|
804
|
+
editorId: V,
|
|
805
805
|
editorValue: String(this.value),
|
|
806
806
|
editorValid: L,
|
|
807
807
|
editorDisabled: D.disabled,
|
|
@@ -813,7 +813,7 @@ const ae = (a) => a != null, se = (a, t, e) => !ae(a) || isNaN(a) || a <= t ? t
|
|
|
813
813
|
) : w;
|
|
814
814
|
}
|
|
815
815
|
};
|
|
816
|
-
let gt =
|
|
816
|
+
let gt = la;
|
|
817
817
|
gt.displayName = "Input";
|
|
818
818
|
gt.propTypes = {
|
|
819
819
|
label: r.string,
|
|
@@ -831,9 +831,9 @@ gt.defaultProps = {
|
|
|
831
831
|
required: !1,
|
|
832
832
|
validityStyles: !0
|
|
833
833
|
};
|
|
834
|
-
const
|
|
834
|
+
const is = he(), vn = et(Ue(is, gt));
|
|
835
835
|
vn.displayName = "KendoReactInput";
|
|
836
|
-
class
|
|
836
|
+
class ls extends n.Component {
|
|
837
837
|
constructor(t) {
|
|
838
838
|
super(t), this.onChange = (e) => {
|
|
839
839
|
const s = e.target.value, i = Ne(s, "rgba");
|
|
@@ -858,7 +858,7 @@ class is extends n.Component {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
const Be = ["rgba", "rgb", "hex"];
|
|
861
|
-
class
|
|
861
|
+
class ma 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 ha extends n.Component {
|
|
|
871
871
|
}, this.state = { inputMode: t.defaultInputMode || Be[1] };
|
|
872
872
|
}
|
|
873
873
|
render() {
|
|
874
|
-
const t = Je(this), e = t.toLanguageString(Fe, $[ln]), s = t.toLanguageString(Fe, $[Fe]), i = t.toLanguageString(Fe, $[nn]), l = t.toLanguageString(Fe, $[sn]), c = t.toLanguageString(Fe, $[rn]), o = t.toLanguageString(
|
|
874
|
+
const t = Je(this), e = t.toLanguageString(Fe, $[ln]), s = t.toLanguageString(Fe, $[Fe]), i = t.toLanguageString(Fe, $[nn]), l = t.toLanguageString(Fe, $[sn]), c = t.toLanguageString(Fe, $[rn]), o = t.toLanguageString(Yt, $[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: Fn,
|
|
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
|
+
ls,
|
|
887
887
|
{
|
|
888
888
|
hex: this.props.hex,
|
|
889
889
|
onHexChange: this.props.onHexChange,
|
|
@@ -958,9 +958,9 @@ class ha extends n.Component {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
const kn = "data-slider-label",
|
|
961
|
+
Pn(ma);
|
|
962
|
+
fa(ma);
|
|
963
|
+
const kn = "data-slider-label", Vr = (a) => {
|
|
964
964
|
const t = n.useRef(null), e = Ae(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",
|
|
@@ -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 ?
|
|
997
|
+
const s = this.state.dir === "rtl" ? this.props.vertical ? _t : Ia : this.props.vertical ? _t : La, i = this.state.dir === "rtl" ? this.props.vertical ? ht : La : this.props.vertical ? ht : Ia, 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
|
{
|
|
@@ -1094,8 +1094,8 @@ class bt extends n.Component {
|
|
|
1094
1094
|
enabled: this.props.buttons,
|
|
1095
1095
|
decrement: this.decrement,
|
|
1096
1096
|
increment: this.increment,
|
|
1097
|
-
incrementTitle: t.toLanguageString(
|
|
1098
|
-
decrementTitle: t.toLanguageString(
|
|
1097
|
+
incrementTitle: t.toLanguageString($t, $[$t]),
|
|
1098
|
+
decrementTitle: t.toLanguageString(Ht, $[Ht])
|
|
1099
1099
|
},
|
|
1100
1100
|
/* @__PURE__ */ n.createElement(en, { onDrag: this.dragOver, onPress: this.dragStart }, /* @__PURE__ */ n.createElement(
|
|
1101
1101
|
"div",
|
|
@@ -1150,7 +1150,7 @@ class bt extends n.Component {
|
|
|
1150
1150
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
1151
1151
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
1152
1152
|
"aria-label": this.props.ariaLabel,
|
|
1153
|
-
tabIndex:
|
|
1153
|
+
tabIndex: re(this.props.tabIndex, this.props.disabled, void 0),
|
|
1154
1154
|
className: "k-draghandle",
|
|
1155
1155
|
title: t.toLanguageString(Te, $[Te]),
|
|
1156
1156
|
style: this.props.vertical ? { bottom: "calc(" + e + "%)", zIndex: 1 } : this.state.dir === "rtl" ? { right: "calc(" + e + "% - 13px)", zIndex: 1 } : { left: "calc(" + e + "%)", zIndex: 1 }
|
|
@@ -1183,37 +1183,37 @@ 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
|
|
1187
|
-
|
|
1188
|
-
|
|
1186
|
+
const os = he(), oa = Ue(os, bt);
|
|
1187
|
+
oa.displayName = "KendoReactSlider";
|
|
1188
|
+
fa(bt);
|
|
1189
1189
|
const $e = {};
|
|
1190
|
-
function
|
|
1190
|
+
function cs(a, t, e) {
|
|
1191
1191
|
$e[a] = { value: t, hsva: e };
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function ds(a, t, e) {
|
|
1194
1194
|
$e[a] = { value: t, rgba: e };
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function us(a, t, e) {
|
|
1197
1197
|
$e[a] = { value: t, hex: e };
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function fs(a) {
|
|
1200
1200
|
delete $e[a];
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function hs(a, t) {
|
|
1203
1203
|
if (a) {
|
|
1204
1204
|
const e = $e[a];
|
|
1205
1205
|
return e && e.value === t ? e.hex : void 0;
|
|
1206
1206
|
} else
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function ps(a, t) {
|
|
1210
1210
|
if (a) {
|
|
1211
1211
|
const e = $e[a];
|
|
1212
1212
|
return e && e.value === t ? e.hsva : void 0;
|
|
1213
1213
|
} else
|
|
1214
1214
|
return;
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function ms(a, t) {
|
|
1217
1217
|
if (a) {
|
|
1218
1218
|
const e = $e[a];
|
|
1219
1219
|
return e && e.value === t ? e.rgba : void 0;
|
|
@@ -1222,11 +1222,11 @@ function ps(a, t) {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
class yn extends n.Component {
|
|
1224
1224
|
render() {
|
|
1225
|
-
const t = Je(this), e = t.toLanguageString(
|
|
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" }, m), o >= 4.5 ? /* @__PURE__ */ n.createElement("span", { className: "k-contrast-validation k-text-success" }, /* @__PURE__ */ n.createElement(fe, { name: "check", icon:
|
|
1225
|
+
const t = Je(this), e = t.toLanguageString(Gt, $[Gt]), s = t.toLanguageString(Kt, $[Kt]), i = t.toLanguageString(qt, $[qt]), l = t.toLanguageString(Ut, $[Ut]), c = t.toLanguageString(jt, $[jt]), o = bn(this.props.rgba, this.props.bgColor), p = 4.5.toFixed(1), d = 7 .toFixed(1), m = `${e}: ${o.toFixed(2)}`, u = `${s}: ${p}`, f = `${i}: ${d}`, y = /* @__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
|
+
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" }, m), 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, u), o >= 4.5 ? y : N), /* @__PURE__ */ n.createElement("div", null, /* @__PURE__ */ n.createElement("span", null, f), o >= 7 ? y : N));
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
|
|
1229
|
+
fa(yn);
|
|
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,32 +1236,32 @@ 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"/>`, gs = (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
|
-
},
|
|
1246
|
-
const l = e || t, c = s || t, o = 0.1,
|
|
1247
|
-
return [u,
|
|
1248
|
-
},
|
|
1245
|
+
}, bs = (a) => (t, e, s, i) => {
|
|
1246
|
+
const l = e || t, c = s || t, o = 0.1, p = a(l, c), d = p.angle + (i ? Math.PI : 0), m = p.length * o, u = t[0] + Math.cos(d) * m, f = t[1] + Math.sin(d) * m;
|
|
1247
|
+
return [u, f];
|
|
1248
|
+
}, vs = (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
1251
|
}, Aa = 4.5, $a = 7, lt = 16;
|
|
1252
|
-
class
|
|
1252
|
+
class ks extends n.Component {
|
|
1253
1253
|
renderSvgCurveLine() {
|
|
1254
|
-
const t = this.props.metrics, e = (l, c, o,
|
|
1255
|
-
const m = (o +
|
|
1256
|
-
return o + 0.5 >
|
|
1254
|
+
const t = this.props.metrics, e = (l, c, o, p, d) => {
|
|
1255
|
+
const m = (o + p) / 2, u = Object.assign({}, this.props.hsva, { s: c / t.width, v: 1 - m / t.height }), f = bn(Ke(pa(u)), Ke(this.props.backgroundColor || ""));
|
|
1256
|
+
return o + 0.5 > p ? f < l + 1 && f > l - 1 ? m : null : d(f, l) ? e(l, c, o, p - (p - o) / 2, d) : e(l, c, o + (p - o) / 2, p, d);
|
|
1257
1257
|
}, s = (l, c, o = !1) => {
|
|
1258
|
-
const
|
|
1258
|
+
const p = [];
|
|
1259
1259
|
for (let d = 0; d <= t.width; d += t.width / c) {
|
|
1260
|
-
const m = e(l, d, 0, t.height, o ? (u,
|
|
1261
|
-
m !== null &&
|
|
1260
|
+
const m = e(l, d, 0, t.height, o ? (u, f) => u < f : (u, f) => u > f);
|
|
1261
|
+
m !== null && p.push([d, m]);
|
|
1262
1262
|
}
|
|
1263
|
-
return
|
|
1264
|
-
}, i = bs(gs
|
|
1263
|
+
return p;
|
|
1264
|
+
}, i = vs(bs(gs));
|
|
1265
1265
|
return it(s(Aa, lt), i) + it(s(Aa, lt, !0), i) + it(s($a, lt), i) + it(s($a, lt, !0), i);
|
|
1266
1266
|
}
|
|
1267
1267
|
shouldComponentUpdate(t) {
|
|
@@ -1286,22 +1286,22 @@ class vs extends n.Component {
|
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
const
|
|
1289
|
+
const ys = "rgba", Ha = "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
|
-
const l =
|
|
1293
|
+
const l = Ot(s);
|
|
1294
1294
|
this.setState({ hsva: l, backgroundColor: rt(l.h), rgba: Ke(s), hex: e });
|
|
1295
1295
|
} else
|
|
1296
|
-
|
|
1296
|
+
us(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 = ss(e);
|
|
1300
1300
|
if (this.isUncontrolled) {
|
|
1301
|
-
const l =
|
|
1301
|
+
const l = Ot(i), c = Ne(i, "hex");
|
|
1302
1302
|
this.setState({ hsva: l, backgroundColor: rt(l.h), rgba: e, hex: c });
|
|
1303
1303
|
} else
|
|
1304
|
-
|
|
1304
|
+
ds(this.state.guid, i, e);
|
|
1305
1305
|
this.dispatchChangeEvent(i, s.syntheticEvent, s.nativeEvent);
|
|
1306
1306
|
}, this.onAlphaSliderChange = (e) => {
|
|
1307
1307
|
this.handleHsvaChange(
|
|
@@ -1322,12 +1322,12 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1322
1322
|
}, this.onGradientWrapperClick = (e) => {
|
|
1323
1323
|
this.changePosition(e);
|
|
1324
1324
|
}, this.changePosition = (e) => {
|
|
1325
|
-
const s = this.getGradientRectMetrics(), i = e.clientX - s.left, l = e.clientY - s.top, c = se(i, 0, s.width), o = se(l, 0, s.height),
|
|
1325
|
+
const s = this.getGradientRectMetrics(), i = e.clientX - s.left, l = e.clientY - s.top, c = se(i, 0, s.width), o = se(l, 0, s.height), p = Object.assign(
|
|
1326
1326
|
{},
|
|
1327
1327
|
this.state.hsva,
|
|
1328
1328
|
{ s: c / s.width, v: 1 - o / s.height }
|
|
1329
1329
|
);
|
|
1330
|
-
this.handleHsvaChange(
|
|
1330
|
+
this.handleHsvaChange(p, e, e.nativeEvent);
|
|
1331
1331
|
}, this.onFocus = (e) => {
|
|
1332
1332
|
this.props.onFocus && this.props.onFocus.call(
|
|
1333
1333
|
void 0,
|
|
@@ -1336,14 +1336,14 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1336
1336
|
}, this.focus = () => {
|
|
1337
1337
|
tn(this.wrapper);
|
|
1338
1338
|
}, pe(me);
|
|
1339
|
-
const t = a.value || a.defaultValue || Ne(Ha,
|
|
1340
|
-
this.state = Object.assign({},
|
|
1339
|
+
const t = a.value || a.defaultValue || Ne(Ha, ys);
|
|
1340
|
+
this.state = Object.assign({}, ca.getStateFromValue(t), { isFirstRender: !0, guid: this.props.id });
|
|
1341
1341
|
}
|
|
1342
1342
|
/**
|
|
1343
1343
|
* @hidden
|
|
1344
1344
|
*/
|
|
1345
1345
|
static getDerivedStateFromProps(a, t) {
|
|
1346
|
-
return a.value && !t.isFirstRender ?
|
|
1346
|
+
return a.value && !t.isFirstRender ? ca.getStateFromValue(a.value, t.guid) : null;
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
1349
1349
|
* @hidden
|
|
@@ -1355,7 +1355,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1355
1355
|
* @hidden
|
|
1356
1356
|
*/
|
|
1357
1357
|
componentWillUnmount() {
|
|
1358
|
-
|
|
1358
|
+
fs(this.state.guid);
|
|
1359
1359
|
}
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @hidden
|
|
@@ -1376,7 +1376,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1376
1376
|
"div",
|
|
1377
1377
|
{
|
|
1378
1378
|
role: "slider",
|
|
1379
|
-
tabIndex:
|
|
1379
|
+
tabIndex: re(this.props.tabIndex, this.props.disabled),
|
|
1380
1380
|
"aria-valuetext": this.props.ariaValueText,
|
|
1381
1381
|
"aria-valuenow": parseInt(this.state.hex.substring(1), 16),
|
|
1382
1382
|
"aria-label": this.props.ariaLabelHSV,
|
|
@@ -1391,12 +1391,12 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1391
1391
|
* @hidden
|
|
1392
1392
|
*/
|
|
1393
1393
|
handleHsvaChange(a, t, e) {
|
|
1394
|
-
const s =
|
|
1394
|
+
const s = pa(a);
|
|
1395
1395
|
if (this.isUncontrolled) {
|
|
1396
1396
|
const i = Ne(s, "hex");
|
|
1397
1397
|
this.setState({ hsva: a, backgroundColor: rt(a.h), rgba: Ke(s), hex: i });
|
|
1398
1398
|
} else
|
|
1399
|
-
|
|
1399
|
+
cs(this.state.guid, s, a);
|
|
1400
1400
|
this.dispatchChangeEvent(s, t, e);
|
|
1401
1401
|
}
|
|
1402
1402
|
/**
|
|
@@ -1413,7 +1413,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1413
1413
|
*/
|
|
1414
1414
|
static getStateFromValue(a, t) {
|
|
1415
1415
|
ae(Ne(a, "hex")) || (a = Ha);
|
|
1416
|
-
const e =
|
|
1416
|
+
const e = ps(t, a) || Ot(a), s = ms(t, a) || Ke(a), i = hs(t, a) || Ne(a, "hex"), l = rt(e.h);
|
|
1417
1417
|
return { hsva: e, backgroundColor: l, rgba: s, hex: i };
|
|
1418
1418
|
}
|
|
1419
1419
|
/**
|
|
@@ -1448,7 +1448,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1448
1448
|
"aria-disabled": this.props.disabled ? "true" : void 0,
|
|
1449
1449
|
style: this.props.style,
|
|
1450
1450
|
ref: (e) => this.wrapper = e,
|
|
1451
|
-
tabIndex:
|
|
1451
|
+
tabIndex: re(this.props.tabIndex, this.props.disabled),
|
|
1452
1452
|
"aria-label": this.props.ariaLabel,
|
|
1453
1453
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
1454
1454
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
@@ -1471,14 +1471,14 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1471
1471
|
this.renderRectangleDragHandle()
|
|
1472
1472
|
)
|
|
1473
1473
|
), this.props.backgroundColor && !this.state.isFirstRender && /* @__PURE__ */ n.createElement(
|
|
1474
|
-
|
|
1474
|
+
ks,
|
|
1475
1475
|
{
|
|
1476
1476
|
metrics: this.gradientWrapper ? this.getGradientRectMetrics() : void 0,
|
|
1477
1477
|
hsva: this.state.hsva,
|
|
1478
1478
|
backgroundColor: this.props.backgroundColor
|
|
1479
1479
|
}
|
|
1480
1480
|
)), /* @__PURE__ */ n.createElement("div", { className: "k-hsv-controls k-hstack" }, /* @__PURE__ */ n.createElement(
|
|
1481
|
-
|
|
1481
|
+
oa,
|
|
1482
1482
|
{
|
|
1483
1483
|
value: this.state.hsva.h,
|
|
1484
1484
|
buttons: !1,
|
|
@@ -1489,10 +1489,10 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1489
1489
|
onChange: this.onHueSliderChange,
|
|
1490
1490
|
className: "k-hue-slider k-colorgradient-slider",
|
|
1491
1491
|
disabled: this.props.disabled,
|
|
1492
|
-
ariaLabel: a.toLanguageString(
|
|
1492
|
+
ariaLabel: a.toLanguageString(Wt, $[Wt])
|
|
1493
1493
|
}
|
|
1494
1494
|
), this.props.opacity && /* @__PURE__ */ n.createElement(
|
|
1495
|
-
|
|
1495
|
+
oa,
|
|
1496
1496
|
{
|
|
1497
1497
|
value: ae(this.state.hsva.a) ? this.state.hsva.a * 100 : 100,
|
|
1498
1498
|
buttons: !1,
|
|
@@ -1500,7 +1500,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1500
1500
|
min: 0,
|
|
1501
1501
|
max: 100,
|
|
1502
1502
|
step: 1,
|
|
1503
|
-
ariaLabel: a.toLanguageString(
|
|
1503
|
+
ariaLabel: a.toLanguageString(Xt, $[Xt]),
|
|
1504
1504
|
onChange: this.onAlphaSliderChange,
|
|
1505
1505
|
className: "k-alpha-slider k-colorgradient-slider",
|
|
1506
1506
|
disabled: this.props.disabled,
|
|
@@ -1508,7 +1508,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1508
1508
|
}
|
|
1509
1509
|
))),
|
|
1510
1510
|
/* @__PURE__ */ n.createElement(
|
|
1511
|
-
|
|
1511
|
+
ma,
|
|
1512
1512
|
{
|
|
1513
1513
|
rgba: this.state.rgba,
|
|
1514
1514
|
onRgbaChange: this.onRgbaChange,
|
|
@@ -1529,7 +1529,7 @@ const ks = "rgba", Ha = "rgba(255, 255, 255, 1)", la = class extends n.Component
|
|
|
1529
1529
|
);
|
|
1530
1530
|
}
|
|
1531
1531
|
};
|
|
1532
|
-
let vt =
|
|
1532
|
+
let vt = ca;
|
|
1533
1533
|
vt.displayName = "ColorGradient";
|
|
1534
1534
|
vt.propTypes = {
|
|
1535
1535
|
defaultValue: r.string,
|
|
@@ -1553,9 +1553,9 @@ vt.defaultProps = {
|
|
|
1553
1553
|
role: "textbox",
|
|
1554
1554
|
format: "rgb"
|
|
1555
1555
|
};
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
class
|
|
1556
|
+
const Cs = he(), ga = et(Ue(Cs, vt));
|
|
1557
|
+
ga.displayName = "KendoReactColorGradient";
|
|
1558
|
+
class xs {
|
|
1559
1559
|
constructor() {
|
|
1560
1560
|
this.colorRows = [];
|
|
1561
1561
|
}
|
|
@@ -1592,7 +1592,7 @@ class Cs {
|
|
|
1592
1592
|
return t < 0 ? 0 : t > e ? e : t;
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
const
|
|
1595
|
+
const Es = {
|
|
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
|
|
@@ -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 xs();
|
|
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(
|
|
@@ -1703,7 +1703,7 @@ class kt extends n.Component {
|
|
|
1703
1703
|
"aria-disabled": this.props.ariaDisabled || (this.props.disabled ? "true" : void 0),
|
|
1704
1704
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
1705
1705
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
1706
|
-
tabIndex:
|
|
1706
|
+
tabIndex: re(this.props.tabIndex, this.props.disabled),
|
|
1707
1707
|
ref: (c) => this.wrapper = c
|
|
1708
1708
|
},
|
|
1709
1709
|
/* @__PURE__ */ n.createElement("table", { className: "k-colorpalette-table", role: "presentation" }, /* @__PURE__ */ n.createElement("tbody", { role: "rowgroup" }, this.renderRows(e.colorRows, s, i)))
|
|
@@ -1748,7 +1748,7 @@ class kt extends n.Component {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
getPaletteInfo() {
|
|
1750
1750
|
if (typeof this.props.palette == "string") {
|
|
1751
|
-
const t =
|
|
1751
|
+
const t = Es[this.props.palette];
|
|
1752
1752
|
return ae(t) ? {
|
|
1753
1753
|
colors: t.colors,
|
|
1754
1754
|
columns: this.props.columns || t.columns || Ga
|
|
@@ -1760,13 +1760,13 @@ class kt extends n.Component {
|
|
|
1760
1760
|
return t.map((i, l) => /* @__PURE__ */ n.createElement("tr", { role: "row", key: l }, this.renderColumns(i, l, e, s)));
|
|
1761
1761
|
}
|
|
1762
1762
|
renderColumns(t, e, s, i) {
|
|
1763
|
-
const l = s !== void 0 && s.row === e, c = s && s.col, o = i !== void 0 && i.row === e,
|
|
1764
|
-
return t.map((
|
|
1765
|
-
const
|
|
1763
|
+
const l = s !== void 0 && s.row === e, c = s && s.col, o = i !== void 0 && i.row === e, p = i && i.col, d = typeof this.props.tileSize != "number" ? this.props.tileSize : { width: this.props.tileSize, height: this.props.tileSize }, m = d.width + "px", u = d.height + "px";
|
|
1764
|
+
return t.map((f, y) => {
|
|
1765
|
+
const N = l && c === y, D = G(
|
|
1766
1766
|
"k-colorpalette-tile",
|
|
1767
1767
|
{
|
|
1768
|
-
"k-selected":
|
|
1769
|
-
"k-focus": o &&
|
|
1768
|
+
"k-selected": N,
|
|
1769
|
+
"k-focus": o && p === y
|
|
1770
1770
|
}
|
|
1771
1771
|
);
|
|
1772
1772
|
return /* @__PURE__ */ n.createElement(
|
|
@@ -1774,10 +1774,10 @@ class kt extends n.Component {
|
|
|
1774
1774
|
{
|
|
1775
1775
|
role: "gridcell",
|
|
1776
1776
|
className: D,
|
|
1777
|
-
"aria-label":
|
|
1778
|
-
"aria-selected":
|
|
1779
|
-
style: { backgroundColor:
|
|
1780
|
-
onClick: (
|
|
1777
|
+
"aria-label": f,
|
|
1778
|
+
"aria-selected": N ? !0 : this.props.disabled ? void 0 : !1,
|
|
1779
|
+
style: { backgroundColor: f, width: m, height: u, minWidth: m },
|
|
1780
|
+
onClick: (V) => this.onColorClick(f, V),
|
|
1781
1781
|
id: this.createCellId({ row: e, col: y }),
|
|
1782
1782
|
key: y
|
|
1783
1783
|
}
|
|
@@ -1808,18 +1808,18 @@ kt.defaultProps = {
|
|
|
1808
1808
|
palette: xn,
|
|
1809
1809
|
tileSize: Cn
|
|
1810
1810
|
};
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
const
|
|
1811
|
+
const Ss = he(), ba = et(Ue(Ss, kt));
|
|
1812
|
+
ba.displayName = "KendoReactColorPalette";
|
|
1813
|
+
const ws = "bottom", Is = "top", En = (a) => {
|
|
1814
1814
|
const t = a.popupSettings || {}, e = a.dir === "rtl" ? "right" : "left", s = n.useMemo(
|
|
1815
|
-
() => ({ horizontal: e, vertical:
|
|
1815
|
+
() => ({ horizontal: e, vertical: ws }),
|
|
1816
1816
|
[e]
|
|
1817
1817
|
), i = n.useMemo(
|
|
1818
|
-
() => ({ horizontal: e, vertical:
|
|
1818
|
+
() => ({ horizontal: e, vertical: Is }),
|
|
1819
1819
|
[e]
|
|
1820
1820
|
);
|
|
1821
1821
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, a.input, a.button, /* @__PURE__ */ n.createElement(
|
|
1822
|
-
|
|
1822
|
+
$n,
|
|
1823
1823
|
{
|
|
1824
1824
|
style: {
|
|
1825
1825
|
...(t || {}).style,
|
|
@@ -1838,33 +1838,33 @@ const Ss = "bottom", ws = "top", En = (a) => {
|
|
|
1838
1838
|
));
|
|
1839
1839
|
};
|
|
1840
1840
|
En.displayName = "KendoPickerComponent";
|
|
1841
|
-
const
|
|
1841
|
+
const Ls = {
|
|
1842
1842
|
opacity: !0
|
|
1843
|
-
},
|
|
1843
|
+
}, Rs = {
|
|
1844
1844
|
palette: xn,
|
|
1845
1845
|
tileSize: Cn
|
|
1846
|
-
},
|
|
1846
|
+
}, Ft = (a) => a !== void 0, Vs = he(), va = n.forwardRef((a, t) => {
|
|
1847
1847
|
pe(me);
|
|
1848
|
-
const e = Re(
|
|
1848
|
+
const e = Re(Vs, a), s = _e(), {
|
|
1849
1849
|
size: i = dt.size,
|
|
1850
1850
|
rounded: l = dt.rounded,
|
|
1851
1851
|
fillMode: c = dt.fillMode,
|
|
1852
1852
|
popupSettings: o,
|
|
1853
|
-
gradientSettings:
|
|
1853
|
+
gradientSettings: p,
|
|
1854
1854
|
paletteSettings: d,
|
|
1855
1855
|
valid: m,
|
|
1856
1856
|
disabled: u,
|
|
1857
|
-
tabIndex:
|
|
1857
|
+
tabIndex: f,
|
|
1858
1858
|
view: y,
|
|
1859
|
-
icon:
|
|
1859
|
+
icon: N,
|
|
1860
1860
|
svgIcon: D,
|
|
1861
|
-
iconClassName:
|
|
1861
|
+
iconClassName: V,
|
|
1862
1862
|
onChange: L,
|
|
1863
1863
|
onFocus: S,
|
|
1864
1864
|
onBlur: w,
|
|
1865
1865
|
onActiveColorClick: B,
|
|
1866
1866
|
className: O
|
|
1867
|
-
} = e, I = n.useRef(null), F = n.useRef(null), _ = n.useRef(null), T = n.useRef(), E = n.useRef(null), [
|
|
1867
|
+
} = e, I = n.useRef(null), F = n.useRef(null), _ = n.useRef(null), T = n.useRef(), E = n.useRef(null), [M, H] = n.useState(!1), [q, Z] = n.useState(e.defaultValue), [h, v] = n.useState(!1), g = Ft(e.value), k = Ft(e.open), C = g ? e.value : q, P = k ? e.open : h, j = n.useCallback(
|
|
1868
1868
|
() => {
|
|
1869
1869
|
I.current && I.current.focus();
|
|
1870
1870
|
},
|
|
@@ -1923,20 +1923,20 @@ const Is = {
|
|
|
1923
1923
|
});
|
|
1924
1924
|
},
|
|
1925
1925
|
[S]
|
|
1926
|
-
),
|
|
1926
|
+
), ie = n.useCallback(
|
|
1927
1927
|
() => {
|
|
1928
1928
|
J(!1, !0), H(!1), T.current = void 0;
|
|
1929
1929
|
},
|
|
1930
1930
|
[]
|
|
1931
1931
|
), Ee = n.useCallback(
|
|
1932
1932
|
(A) => {
|
|
1933
|
-
clearTimeout(T.current), T.current = window.setTimeout(
|
|
1933
|
+
clearTimeout(T.current), T.current = window.setTimeout(ie), w && w.call(void 0, {
|
|
1934
1934
|
nativeEvent: A.nativeEvent,
|
|
1935
1935
|
syntheticEvent: A
|
|
1936
1936
|
});
|
|
1937
1937
|
},
|
|
1938
1938
|
[w]
|
|
1939
|
-
),
|
|
1939
|
+
), le = n.useCallback(
|
|
1940
1940
|
(A, xe) => {
|
|
1941
1941
|
const ve = xe ? A.rgbaValue : A.value;
|
|
1942
1942
|
g || Z(ve), xe && J(!1), L && L.call(void 0, {
|
|
@@ -1946,9 +1946,9 @@ const Is = {
|
|
|
1946
1946
|
});
|
|
1947
1947
|
},
|
|
1948
1948
|
[g, L]
|
|
1949
|
-
),
|
|
1950
|
-
(A) =>
|
|
1951
|
-
[
|
|
1949
|
+
), oe = n.useCallback(
|
|
1950
|
+
(A) => le(A, !0),
|
|
1951
|
+
[Ft, le]
|
|
1952
1952
|
), be = Ae(I, e.dir), He = m !== !1;
|
|
1953
1953
|
return /* @__PURE__ */ n.createElement(
|
|
1954
1954
|
"span",
|
|
@@ -1971,12 +1971,12 @@ const Is = {
|
|
|
1971
1971
|
[`k-rounded-${ne.roundedMap[l] || l}`]: l,
|
|
1972
1972
|
"k-invalid": !He,
|
|
1973
1973
|
"k-disabled": u,
|
|
1974
|
-
"k-focus":
|
|
1974
|
+
"k-focus": M,
|
|
1975
1975
|
className: O
|
|
1976
1976
|
}
|
|
1977
1977
|
),
|
|
1978
1978
|
ref: I,
|
|
1979
|
-
tabIndex:
|
|
1979
|
+
tabIndex: re(f, u),
|
|
1980
1980
|
title: e.title,
|
|
1981
1981
|
onKeyDown: R,
|
|
1982
1982
|
onFocus: ee,
|
|
@@ -1999,12 +1999,12 @@ const Is = {
|
|
|
1999
1999
|
"k-color-preview",
|
|
2000
2000
|
{
|
|
2001
2001
|
"k-no-color": !C,
|
|
2002
|
-
"k-icon-color-preview":
|
|
2002
|
+
"k-icon-color-preview": N || D || V
|
|
2003
2003
|
}
|
|
2004
2004
|
)
|
|
2005
2005
|
},
|
|
2006
|
-
|
|
2007
|
-
!
|
|
2006
|
+
V && /* @__PURE__ */ n.createElement("span", { className: G("k-color-preview-icon", V) }),
|
|
2007
|
+
!V && (N || D) && /* @__PURE__ */ n.createElement(fe, { name: N, icon: D }),
|
|
2008
2008
|
/* @__PURE__ */ n.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: C } })
|
|
2009
2009
|
)),
|
|
2010
2010
|
button: /* @__PURE__ */ n.createElement(
|
|
@@ -2017,32 +2017,32 @@ const Is = {
|
|
|
2017
2017
|
rounded: null,
|
|
2018
2018
|
icon: "caret-alt-down",
|
|
2019
2019
|
svgIcon: ht,
|
|
2020
|
-
"aria-label": s.toLanguageString(
|
|
2020
|
+
"aria-label": s.toLanguageString(ta, $[ta])
|
|
2021
2021
|
}
|
|
2022
2022
|
),
|
|
2023
2023
|
content: /* @__PURE__ */ n.createElement(n.Fragment, null, (y === "combo" || y === "gradient") && /* @__PURE__ */ n.createElement(
|
|
2024
|
-
|
|
2024
|
+
ga,
|
|
2025
2025
|
{
|
|
2026
|
-
...
|
|
2026
|
+
...p,
|
|
2027
2027
|
tabIndex: 0,
|
|
2028
2028
|
ref: F,
|
|
2029
2029
|
value: C,
|
|
2030
|
-
onChange:
|
|
2030
|
+
onChange: le
|
|
2031
2031
|
}
|
|
2032
2032
|
), (y === "combo" || y === "palette") && /* @__PURE__ */ n.createElement(
|
|
2033
|
-
|
|
2033
|
+
ba,
|
|
2034
2034
|
{
|
|
2035
2035
|
...d,
|
|
2036
2036
|
ref: _,
|
|
2037
2037
|
value: C,
|
|
2038
|
-
onChange:
|
|
2038
|
+
onChange: oe
|
|
2039
2039
|
}
|
|
2040
2040
|
))
|
|
2041
2041
|
}
|
|
2042
2042
|
)
|
|
2043
2043
|
);
|
|
2044
2044
|
});
|
|
2045
|
-
|
|
2045
|
+
va.propTypes = {
|
|
2046
2046
|
value: r.string,
|
|
2047
2047
|
defaultValue: r.string,
|
|
2048
2048
|
disabled: r.bool,
|
|
@@ -2050,7 +2050,7 @@ ga.propTypes = {
|
|
|
2050
2050
|
dir: r.string,
|
|
2051
2051
|
id: r.string,
|
|
2052
2052
|
icon: r.string,
|
|
2053
|
-
svgIcon:
|
|
2053
|
+
svgIcon: zt,
|
|
2054
2054
|
ariaLabelledBy: r.string,
|
|
2055
2055
|
ariaDescribedBy: r.string,
|
|
2056
2056
|
size: r.oneOf([null, "small", "medium", "large"]),
|
|
@@ -2063,18 +2063,18 @@ const dt = {
|
|
|
2063
2063
|
rounded: "medium",
|
|
2064
2064
|
fillMode: "solid",
|
|
2065
2065
|
view: "palette",
|
|
2066
|
-
gradientSettings:
|
|
2067
|
-
paletteSettings:
|
|
2066
|
+
gradientSettings: Ls,
|
|
2067
|
+
paletteSettings: Rs
|
|
2068
2068
|
};
|
|
2069
|
-
|
|
2070
|
-
|
|
2069
|
+
va.defaultProps = dt;
|
|
2070
|
+
va.displayName = "KendoColorPicker";
|
|
2071
2071
|
const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
2072
2072
|
pe(me);
|
|
2073
|
-
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(null), { defaultValue: l = Ka, showButtons: c = !0, showPreview: o = !0, showClearButton:
|
|
2073
|
+
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(null), { defaultValue: l = Ka, showButtons: c = !0, showPreview: o = !0, showClearButton: p = !0 } = a, [d, m] = n.useState((a.view || "ColorGradient") === "ColorGradient"), [u, f] = n.useState(a.value || l), [y, N] = n.useState(a.value || l), D = a.value !== void 0 ? a.value : y;
|
|
2074
2074
|
n.useEffect(() => {
|
|
2075
|
-
|
|
2075
|
+
f(a.value || l);
|
|
2076
2076
|
}, [a.value, l]);
|
|
2077
|
-
const
|
|
2077
|
+
const V = _e(), L = n.useCallback(
|
|
2078
2078
|
() => {
|
|
2079
2079
|
e.current && e.current.focus();
|
|
2080
2080
|
},
|
|
@@ -2093,54 +2093,54 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2093
2093
|
[d]
|
|
2094
2094
|
), w = n.useCallback(
|
|
2095
2095
|
(E) => {
|
|
2096
|
-
if (
|
|
2097
|
-
const
|
|
2096
|
+
if (f(l), a.onPreviewChange) {
|
|
2097
|
+
const M = {
|
|
2098
2098
|
value: l,
|
|
2099
2099
|
nativeEvent: E.nativeEvent,
|
|
2100
2100
|
syntheticEvent: E
|
|
2101
2101
|
};
|
|
2102
|
-
a.onPreviewChange.call(void 0,
|
|
2102
|
+
a.onPreviewChange.call(void 0, M);
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
[l, a.onPreviewChange]
|
|
2106
2106
|
), B = n.useCallback(
|
|
2107
2107
|
(E) => {
|
|
2108
|
-
if (
|
|
2109
|
-
const
|
|
2108
|
+
if (f(E.value), a.onPreviewChange) {
|
|
2109
|
+
const M = {
|
|
2110
2110
|
value: E.value,
|
|
2111
2111
|
nativeEvent: E.nativeEvent,
|
|
2112
2112
|
syntheticEvent: E.syntheticEvent
|
|
2113
2113
|
};
|
|
2114
|
-
a.onPreviewChange.call(void 0,
|
|
2114
|
+
a.onPreviewChange.call(void 0, M);
|
|
2115
2115
|
}
|
|
2116
2116
|
},
|
|
2117
2117
|
[a.onPreviewChange]
|
|
2118
2118
|
), O = n.useCallback(
|
|
2119
2119
|
(E) => {
|
|
2120
|
-
if (
|
|
2121
|
-
const
|
|
2120
|
+
if (N(u), a.onChange) {
|
|
2121
|
+
const M = {
|
|
2122
2122
|
value: u,
|
|
2123
2123
|
nativeEvent: E.nativeEvent,
|
|
2124
2124
|
syntheticEvent: E
|
|
2125
2125
|
};
|
|
2126
|
-
a.onChange.call(void 0,
|
|
2126
|
+
a.onChange.call(void 0, M);
|
|
2127
2127
|
}
|
|
2128
2128
|
},
|
|
2129
2129
|
[u, a.onChange]
|
|
2130
2130
|
), I = n.useCallback(
|
|
2131
2131
|
() => {
|
|
2132
|
-
|
|
2132
|
+
N(Ka);
|
|
2133
2133
|
},
|
|
2134
2134
|
[]
|
|
2135
2135
|
), F = n.useCallback(
|
|
2136
2136
|
(E) => {
|
|
2137
|
-
if (
|
|
2138
|
-
const
|
|
2137
|
+
if (f(y), a.onPreviewChange) {
|
|
2138
|
+
const M = {
|
|
2139
2139
|
value: y,
|
|
2140
2140
|
nativeEvent: E.nativeEvent,
|
|
2141
2141
|
syntheticEvent: E
|
|
2142
2142
|
};
|
|
2143
|
-
a.onPreviewChange.call(void 0,
|
|
2143
|
+
a.onPreviewChange.call(void 0, M);
|
|
2144
2144
|
}
|
|
2145
2145
|
},
|
|
2146
2146
|
[y, a.onPreviewChange]
|
|
@@ -2152,7 +2152,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2152
2152
|
), T = n.useCallback(
|
|
2153
2153
|
(E) => {
|
|
2154
2154
|
var H;
|
|
2155
|
-
if ((!E.relatedTarget || !((H = s.current) != null && H.contains(E.relatedTarget))) && (c ||
|
|
2155
|
+
if ((!E.relatedTarget || !((H = s.current) != null && H.contains(E.relatedTarget))) && (c || N(u), !c && a.onChange)) {
|
|
2156
2156
|
const q = {
|
|
2157
2157
|
value: u,
|
|
2158
2158
|
nativeEvent: E.nativeEvent,
|
|
@@ -2173,7 +2173,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2173
2173
|
"aria-disabled": a.disabled ? "true" : void 0,
|
|
2174
2174
|
style: a.style,
|
|
2175
2175
|
ref: s,
|
|
2176
|
-
tabIndex:
|
|
2176
|
+
tabIndex: re(a.tabIndex, a.disabled),
|
|
2177
2177
|
className: G(
|
|
2178
2178
|
"k-flatcolorpicker k-coloreditor",
|
|
2179
2179
|
{
|
|
@@ -2183,51 +2183,51 @@ 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(An, { className: "k-button-group-flat" }, /* @__PURE__ */ n.createElement(
|
|
2187
2187
|
ge,
|
|
2188
2188
|
{
|
|
2189
2189
|
type: "button",
|
|
2190
|
-
"aria-label":
|
|
2191
|
-
|
|
2192
|
-
$[
|
|
2190
|
+
"aria-label": V.toLanguageString(
|
|
2191
|
+
Zt,
|
|
2192
|
+
$[Zt]
|
|
2193
2193
|
),
|
|
2194
2194
|
togglable: !0,
|
|
2195
2195
|
fillMode: "flat",
|
|
2196
2196
|
selected: d,
|
|
2197
2197
|
onClick: () => S("ColorGradient"),
|
|
2198
2198
|
icon: "droplet-slider",
|
|
2199
|
-
svgIcon:
|
|
2199
|
+
svgIcon: Tn
|
|
2200
2200
|
}
|
|
2201
2201
|
), /* @__PURE__ */ n.createElement(
|
|
2202
2202
|
ge,
|
|
2203
2203
|
{
|
|
2204
2204
|
type: "button",
|
|
2205
|
-
"aria-label":
|
|
2206
|
-
|
|
2207
|
-
$[
|
|
2205
|
+
"aria-label": V.toLanguageString(
|
|
2206
|
+
Jt,
|
|
2207
|
+
$[Jt]
|
|
2208
2208
|
),
|
|
2209
2209
|
togglable: !0,
|
|
2210
2210
|
fillMode: "flat",
|
|
2211
2211
|
selected: !d,
|
|
2212
2212
|
onClick: () => S("ColorPalette"),
|
|
2213
2213
|
icon: "palette",
|
|
2214
|
-
svgIcon:
|
|
2214
|
+
svgIcon: zn
|
|
2215
2215
|
}
|
|
2216
|
-
))), /* @__PURE__ */ n.createElement("div", { className: "k-spacer" }), /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header-actions k-hstack" },
|
|
2216
|
+
))), /* @__PURE__ */ n.createElement("div", { className: "k-spacer" }), /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-header-actions k-hstack" }, p && /* @__PURE__ */ n.createElement(
|
|
2217
2217
|
ge,
|
|
2218
2218
|
{
|
|
2219
2219
|
type: "button",
|
|
2220
2220
|
fillMode: "flat",
|
|
2221
2221
|
onClick: w,
|
|
2222
|
-
"aria-label":
|
|
2223
|
-
|
|
2224
|
-
$[
|
|
2222
|
+
"aria-label": V.toLanguageString(
|
|
2223
|
+
Qt,
|
|
2224
|
+
$[Qt]
|
|
2225
2225
|
),
|
|
2226
2226
|
icon: "droplet-slash",
|
|
2227
|
-
svgIcon:
|
|
2227
|
+
svgIcon: _n
|
|
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: u } }), /* @__PURE__ */ n.createElement("span", { className: "k-coloreditor-current-color k-color-preview", style: { background: y }, onClick: F })))), /* @__PURE__ */ n.createElement("div", { className: "k-coloreditor-views k-vstack" }, d ? /* @__PURE__ */ n.createElement(
|
|
2230
|
-
|
|
2230
|
+
ga,
|
|
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(ba, { ariaDisabled: !0, ariaLabelledBy: "required_label", value: u, onChange: B, onFocus: _ })), 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: I }, $[on]), /* @__PURE__ */ n.createElement(ge, { type: "button", className: "k-coloreditor-apply k-primary", onClick: O }, $[cn])))
|
|
2243
2243
|
);
|
|
2244
|
-
}),
|
|
2244
|
+
}), Ms = {
|
|
2245
2245
|
id: r.string,
|
|
2246
2246
|
style: r.any,
|
|
2247
2247
|
className: r.string,
|
|
@@ -2262,7 +2262,7 @@ const Ka = "rgba(255, 255, 255, 1)", Sn = n.forwardRef((a, t) => {
|
|
|
2262
2262
|
showButtons: r.bool
|
|
2263
2263
|
};
|
|
2264
2264
|
Sn.displayName = "KendoFlatColorPicker";
|
|
2265
|
-
Sn.propTypes =
|
|
2265
|
+
Sn.propTypes = Ms;
|
|
2266
2266
|
var Pe = /* @__PURE__ */ ((a) => (a[a.Literal = 0] = "Literal", a[a.Mask = 1] = "Mask", a[a.Undefined = 2] = "Undefined", a))(Pe || {});
|
|
2267
2267
|
class Y {
|
|
2268
2268
|
constructor(t, e, s = 2) {
|
|
@@ -2316,7 +2316,7 @@ class qa {
|
|
|
2316
2316
|
this.inputCursor++, this.controlCursor++;
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
const Ua = (a) => (a || "").split(""),
|
|
2319
|
+
const Ua = (a) => (a || "").split(""), Ns = "\\";
|
|
2320
2320
|
class Ce {
|
|
2321
2321
|
constructor(t) {
|
|
2322
2322
|
this.parse = t;
|
|
@@ -2336,7 +2336,7 @@ class Ce {
|
|
|
2336
2336
|
return this.run(t).type === Pe.Literal;
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
const
|
|
2339
|
+
const Ps = (a) => (t) => new Ce((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 Ns = (a) => (t) => new Ce((e) => {
|
|
|
2349
2349
|
e.eat_input();
|
|
2350
2350
|
}
|
|
2351
2351
|
return e.eat(), new Y(s, e, Pe.Mask);
|
|
2352
|
-
}),
|
|
2352
|
+
}), Ds = (a) => new Ce((t) => t.peek().char === a ? (t.eat(), new Y(a, t, Pe.Literal)) : new Y(a, t, Pe.Literal)), Bs = (a) => (t) => new Ce((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 Ns = (a) => (t) => new Ce((e) => {
|
|
|
2359
2359
|
e.eat_input();
|
|
2360
2360
|
}
|
|
2361
2361
|
return e.eat(), new Y("", e);
|
|
2362
|
-
}),
|
|
2362
|
+
}), Os = (a) => new Ce((t) => {
|
|
2363
2363
|
if (t.eof())
|
|
2364
2364
|
return new Y("", t);
|
|
2365
2365
|
const { char: e } = t.peek();
|
|
@@ -2367,7 +2367,7 @@ const Ns = (a) => (t) => new Ce((e) => {
|
|
|
2367
2367
|
}), ot = (a, t) => new Ce((e) => {
|
|
2368
2368
|
let { char: s } = e.next();
|
|
2369
2369
|
const i = a[s];
|
|
2370
|
-
return s ===
|
|
2370
|
+
return s === Ns ? (s = e.next().char, new Y(t.literal(s), e)) : i ? new Y(t.mask(i), e) : new Y(t.literal(s), e);
|
|
2371
2371
|
}), ja = (a) => new Ce((t) => {
|
|
2372
2372
|
const { prompt: e, promptPlaceholder: s } = a;
|
|
2373
2373
|
let { char: i } = t.next();
|
|
@@ -2375,13 +2375,13 @@ const Ns = (a) => (t) => new Ce((e) => {
|
|
|
2375
2375
|
}), Wa = (a) => new Ce((t) => {
|
|
2376
2376
|
let { char: e } = t.next();
|
|
2377
2377
|
return a ? new Y(e, t) : new Y("", t);
|
|
2378
|
-
}),
|
|
2378
|
+
}), Fs = (a) => new Ce((t) => new Y(a, t)), Ts = (a, t) => a.chain((e) => t.map((s) => e.concat([s]))), Oe = (a) => a.reduce((t, e) => Ts(t, e), Fs([])), ct = (a) => new Ce((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 zs {
|
|
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
|
}
|
|
@@ -2414,9 +2414,9 @@ class Ts {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
maskInRange(t, e, s, i) {
|
|
2416
2416
|
let l = "", c = i;
|
|
2417
|
-
const o = e.split("").slice(0, s),
|
|
2417
|
+
const o = e.split("").slice(0, s), p = e.split("").slice(i);
|
|
2418
2418
|
return Oe(this.maskTokens.slice(s, i)).run(t).fold((d) => {
|
|
2419
|
-
l = o.concat(d).concat(
|
|
2419
|
+
l = o.concat(d).concat(p).join("");
|
|
2420
2420
|
}), {
|
|
2421
2421
|
selection: c,
|
|
2422
2422
|
value: l
|
|
@@ -2424,8 +2424,8 @@ class Ts {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
maskRemoved(t, e, s) {
|
|
2426
2426
|
let i = "", l = s;
|
|
2427
|
-
const c = t.split("").slice(s), o = t.split("").slice(0, s).join(""),
|
|
2428
|
-
return Oe(this.maskTokens.slice(0,
|
|
2427
|
+
const c = t.split("").slice(s), o = t.split("").slice(0, s).join(""), p = this.maskTokens.length - (t.length - s);
|
|
2428
|
+
return Oe(this.maskTokens.slice(0, p)).run(o, e).fold((d) => {
|
|
2429
2429
|
l = this.adjustPosition(d, l), i = d.concat(c).join("");
|
|
2430
2430
|
}), {
|
|
2431
2431
|
selection: l,
|
|
@@ -2441,8 +2441,8 @@ class Ts {
|
|
|
2441
2441
|
const c = t.slice(0, s);
|
|
2442
2442
|
return Oe(this.unmaskTokens).run(c, e).chain((o) => {
|
|
2443
2443
|
l = o.join("").length;
|
|
2444
|
-
const
|
|
2445
|
-
return Oe(this.maskTokens).run(o.join("") +
|
|
2444
|
+
const p = e.slice(l);
|
|
2445
|
+
return Oe(this.maskTokens).run(o.join("") + p, e);
|
|
2446
2446
|
}).fold((o) => {
|
|
2447
2447
|
i = o.join("");
|
|
2448
2448
|
}), {
|
|
@@ -2453,14 +2453,14 @@ class Ts {
|
|
|
2453
2453
|
get maskTokenCreator() {
|
|
2454
2454
|
const { prompt: t, promptPlaceholder: e } = this;
|
|
2455
2455
|
return {
|
|
2456
|
-
literal: (s) =>
|
|
2457
|
-
mask: (s) =>
|
|
2456
|
+
literal: (s) => Ds(s),
|
|
2457
|
+
mask: (s) => Ps({ 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) => Os(t),
|
|
2463
|
+
mask: (t) => Bs(this.prompt)(t)
|
|
2464
2464
|
};
|
|
2465
2465
|
}
|
|
2466
2466
|
get rawTokenCreator() {
|
|
@@ -2499,7 +2499,7 @@ const wn = {
|
|
|
2499
2499
|
C: /./,
|
|
2500
2500
|
L: /[a-zA-Z]/,
|
|
2501
2501
|
a: /[a-zA-Z0-9\s]/
|
|
2502
|
-
}, Xa = () => !1,
|
|
2502
|
+
}, Xa = () => !1, _s = (a, t) => a.includeLiterals !== t.includeLiterals || a.mask !== t.mask || a.prompt !== t.prompt || a.promptPlaceholder !== t.promptPlaceholder || !As(a.rules, t.rules), As = (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
|
}, Ve = 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 zs(), 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;
|
|
@@ -2535,7 +2535,7 @@ const wn = {
|
|
|
2535
2535
|
let o;
|
|
2536
2536
|
if (this._isPasted) {
|
|
2537
2537
|
this._isPasted = !1;
|
|
2538
|
-
const
|
|
2538
|
+
const p = c.length - l, d = s.length - p;
|
|
2539
2539
|
o = this._service.maskInRange(s.slice(i, d), c, i, l);
|
|
2540
2540
|
} else
|
|
2541
2541
|
o = this._service.maskInput(s, c, e.selectionStart || 0);
|
|
@@ -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
|
+
_s(a, this.props) && this.updateService(), this.setValidity();
|
|
2646
2646
|
}
|
|
2647
2647
|
/**
|
|
2648
2648
|
* @hidden
|
|
@@ -2661,7 +2661,7 @@ const wn = {
|
|
|
2661
2661
|
} = this.props, s = this.props.id || this._inputId, i = !this.validityStyles || this.validity.valid, l = this.props.style || {}, {
|
|
2662
2662
|
prefix: c = Ve.defaultProps.prefix,
|
|
2663
2663
|
suffix: o = Ve.defaultProps.suffix
|
|
2664
|
-
} = this.props, [
|
|
2664
|
+
} = this.props, [p] = qe(c), [d] = qe(o), m = /* @__PURE__ */ n.createElement(
|
|
2665
2665
|
"span",
|
|
2666
2666
|
{
|
|
2667
2667
|
dir: this.props.dir,
|
|
@@ -2679,7 +2679,7 @@ const wn = {
|
|
|
2679
2679
|
),
|
|
2680
2680
|
style: this.props.label ? l : { width: this.props.width, ...l }
|
|
2681
2681
|
},
|
|
2682
|
-
/* @__PURE__ */ n.createElement(
|
|
2682
|
+
/* @__PURE__ */ n.createElement(p, null),
|
|
2683
2683
|
/* @__PURE__ */ n.createElement(
|
|
2684
2684
|
"input",
|
|
2685
2685
|
{
|
|
@@ -2695,7 +2695,7 @@ const wn = {
|
|
|
2695
2695
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
2696
2696
|
"aria-placeholder": this.props.mask,
|
|
2697
2697
|
name: this.props.name,
|
|
2698
|
-
tabIndex:
|
|
2698
|
+
tabIndex: re(this.props.tabIndex, this.props.disabled, !0),
|
|
2699
2699
|
accessKey: this.props.accessKey,
|
|
2700
2700
|
title: this.props.title,
|
|
2701
2701
|
disabled: this.props.disabled || void 0,
|
|
@@ -2713,7 +2713,7 @@ const wn = {
|
|
|
2713
2713
|
/* @__PURE__ */ n.createElement(d, null)
|
|
2714
2714
|
);
|
|
2715
2715
|
return this.props.label ? /* @__PURE__ */ n.createElement(
|
|
2716
|
-
|
|
2716
|
+
ha,
|
|
2717
2717
|
{
|
|
2718
2718
|
label: this.props.label,
|
|
2719
2719
|
editorId: s,
|
|
@@ -2820,10 +2820,10 @@ yt.defaultProps = {
|
|
|
2820
2820
|
rounded: "medium",
|
|
2821
2821
|
fillMode: "solid"
|
|
2822
2822
|
};
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2823
|
+
const $s = he(), Hs = et(Ue($s, yt));
|
|
2824
|
+
Hs.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 Gs = (a, t) => {
|
|
2827
2827
|
let e, s;
|
|
2828
2828
|
switch (t.type) {
|
|
2829
2829
|
case "start":
|
|
@@ -2899,18 +2899,18 @@ const Hs = (a, t) => {
|
|
|
2899
2899
|
break;
|
|
2900
2900
|
}
|
|
2901
2901
|
return e;
|
|
2902
|
-
},
|
|
2902
|
+
}, Ks = (a, t, e) => {
|
|
2903
2903
|
const [s, i] = n.useState(a), l = n.useCallback(
|
|
2904
2904
|
(c) => {
|
|
2905
|
-
const o =
|
|
2905
|
+
const o = Gs(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
|
+
}, qs = he(), ka = n.forwardRef((a, t) => {
|
|
2912
2912
|
pe(me);
|
|
2913
|
-
const e = Re(
|
|
2913
|
+
const e = Re(qs, a), s = n.useRef(null), i = n.useRef(null), l = n.useRef(null), c = n.useRef(null), o = n.useRef(null), p = n.useCallback(
|
|
2914
2914
|
() => {
|
|
2915
2915
|
c.current && c.current.focus();
|
|
2916
2916
|
},
|
|
@@ -2918,7 +2918,7 @@ const Hs = (a, t) => {
|
|
|
2918
2918
|
);
|
|
2919
2919
|
n.useImperativeHandle(s, () => ({
|
|
2920
2920
|
element: i.current,
|
|
2921
|
-
focus:
|
|
2921
|
+
focus: p,
|
|
2922
2922
|
props: e
|
|
2923
2923
|
})), n.useImperativeHandle(t, () => s.current);
|
|
2924
2924
|
const d = n.useMemo(
|
|
@@ -2930,13 +2930,13 @@ const Hs = (a, t) => {
|
|
|
2930
2930
|
), u = n.useMemo(
|
|
2931
2931
|
() => e.step !== void 0 ? e.step : ut.step,
|
|
2932
2932
|
[e.step, ut.step]
|
|
2933
|
-
),
|
|
2933
|
+
), f = Ae(i, e.dir), y = (g, k) => {
|
|
2934
2934
|
e.onChange && s.current && e.onChange.call(void 0, {
|
|
2935
2935
|
value: g,
|
|
2936
2936
|
target: s.current,
|
|
2937
2937
|
syntheticEvent: k
|
|
2938
2938
|
});
|
|
2939
|
-
}, [
|
|
2939
|
+
}, [N, D] = n.useState(""), [V, L] = Ks(
|
|
2940
2940
|
e.defaultValue || ut.defaultValue,
|
|
2941
2941
|
{
|
|
2942
2942
|
min: d,
|
|
@@ -2946,8 +2946,8 @@ const Hs = (a, t) => {
|
|
|
2946
2946
|
},
|
|
2947
2947
|
y
|
|
2948
2948
|
), S = n.useMemo(
|
|
2949
|
-
() => e.value ||
|
|
2950
|
-
[e.value,
|
|
2949
|
+
() => e.value || V,
|
|
2950
|
+
[e.value, V]
|
|
2951
2951
|
), w = n.useRef(null), B = n.useRef(null), O = n.useMemo(
|
|
2952
2952
|
() => (S.start - d) / (m - d) * 100,
|
|
2953
2953
|
[S.start, d, m]
|
|
@@ -2964,25 +2964,25 @@ const Hs = (a, t) => {
|
|
|
2964
2964
|
(g) => {
|
|
2965
2965
|
if (!B.current)
|
|
2966
2966
|
return;
|
|
2967
|
-
const k = B.current.getBoundingClientRect(), C = e.vertical ? k.bottom - g.clientY :
|
|
2967
|
+
const k = B.current.getBoundingClientRect(), C = e.vertical ? k.bottom - g.clientY : f === "rtl" ? k.right - g.clientX : g.clientX - k.left, P = e.vertical ? k.height : k.width, j = C / P;
|
|
2968
2968
|
return d + j * (m - d);
|
|
2969
2969
|
},
|
|
2970
2970
|
[
|
|
2971
2971
|
B,
|
|
2972
2972
|
e.vertical,
|
|
2973
|
-
|
|
2973
|
+
f,
|
|
2974
2974
|
d,
|
|
2975
2975
|
m,
|
|
2976
|
-
|
|
2977
|
-
|
|
2976
|
+
V.start,
|
|
2977
|
+
V.end,
|
|
2978
2978
|
e.value && e.value.start,
|
|
2979
2979
|
e.value && e.value.end
|
|
2980
2980
|
]
|
|
2981
|
-
),
|
|
2981
|
+
), M = n.useCallback(
|
|
2982
2982
|
(g) => g <= S.start ? "start" : g >= S.end ? "end" : 2 * g < S.end + S.start ? "start" : "end",
|
|
2983
2983
|
[
|
|
2984
|
-
|
|
2985
|
-
|
|
2984
|
+
V.start,
|
|
2985
|
+
V.end,
|
|
2986
2986
|
e.value && e.value.start,
|
|
2987
2987
|
e.value && e.value.end
|
|
2988
2988
|
]
|
|
@@ -2990,13 +2990,13 @@ const Hs = (a, t) => {
|
|
|
2990
2990
|
(g) => {
|
|
2991
2991
|
switch (g.keyCode) {
|
|
2992
2992
|
case z.right:
|
|
2993
|
-
g.preventDefault(), L({ type:
|
|
2993
|
+
g.preventDefault(), L({ type: f === "rtl" ? X.decrease : X.increase, key: "start", event: g });
|
|
2994
2994
|
break;
|
|
2995
2995
|
case z.up:
|
|
2996
2996
|
g.preventDefault(), L({ type: X.increase, key: "start", event: g });
|
|
2997
2997
|
break;
|
|
2998
2998
|
case z.left:
|
|
2999
|
-
g.preventDefault(), L({ type:
|
|
2999
|
+
g.preventDefault(), L({ type: f === "rtl" ? X.increase : X.decrease, key: "start", event: g });
|
|
3000
3000
|
break;
|
|
3001
3001
|
case z.down:
|
|
3002
3002
|
g.preventDefault(), L({ type: X.decrease, key: "start", event: g });
|
|
@@ -3014,13 +3014,13 @@ const Hs = (a, t) => {
|
|
|
3014
3014
|
(g) => {
|
|
3015
3015
|
switch (g.keyCode) {
|
|
3016
3016
|
case z.right:
|
|
3017
|
-
g.preventDefault(), L({ type:
|
|
3017
|
+
g.preventDefault(), L({ type: f === "rtl" ? X.decrease : X.increase, key: "end", event: g });
|
|
3018
3018
|
break;
|
|
3019
3019
|
case z.up:
|
|
3020
3020
|
g.preventDefault(), L({ type: X.increase, key: "end", event: g });
|
|
3021
3021
|
break;
|
|
3022
3022
|
case z.left:
|
|
3023
|
-
g.preventDefault(), L({ type:
|
|
3023
|
+
g.preventDefault(), L({ type: f === "rtl" ? X.increase : X.decrease, key: "end", event: g });
|
|
3024
3024
|
break;
|
|
3025
3025
|
case z.down:
|
|
3026
3026
|
g.preventDefault(), L({ type: X.decrease, key: "end", event: g });
|
|
@@ -3033,21 +3033,21 @@ const Hs = (a, t) => {
|
|
|
3033
3033
|
break;
|
|
3034
3034
|
}
|
|
3035
3035
|
},
|
|
3036
|
-
[L,
|
|
3036
|
+
[L, f]
|
|
3037
3037
|
), Z = n.useCallback(
|
|
3038
3038
|
(g) => {
|
|
3039
|
-
const k = E(g), C =
|
|
3039
|
+
const k = E(g), C = M(k);
|
|
3040
3040
|
D(C), C === "end" ? o.current.focus() : c.current.focus();
|
|
3041
3041
|
const P = C === "end" ? X.end : X.start;
|
|
3042
3042
|
L({ type: P, payload: k, event: g });
|
|
3043
3043
|
},
|
|
3044
3044
|
[e.vertical, d, m, L]
|
|
3045
3045
|
);
|
|
3046
|
-
return
|
|
3047
|
-
const k = E(g), C =
|
|
3046
|
+
return Dn(B, { onPress: Z, onDrag: (g) => {
|
|
3047
|
+
const k = E(g), C = N === "end" ? X.end : X.start;
|
|
3048
3048
|
L({ type: C, payload: k, event: g });
|
|
3049
3049
|
}, onRelease: (g) => {
|
|
3050
|
-
const k = E(g), C =
|
|
3050
|
+
const k = E(g), C = N === "end" ? X.end : X.start;
|
|
3051
3051
|
L({ type: C, payload: k, event: g }), D("");
|
|
3052
3052
|
} }), /* @__PURE__ */ n.createElement(
|
|
3053
3053
|
"div",
|
|
@@ -3055,11 +3055,11 @@ const Hs = (a, t) => {
|
|
|
3055
3055
|
id: e.id,
|
|
3056
3056
|
style: e.style,
|
|
3057
3057
|
ref: i,
|
|
3058
|
-
dir:
|
|
3058
|
+
dir: f,
|
|
3059
3059
|
className: G(
|
|
3060
3060
|
"k-slider",
|
|
3061
3061
|
{
|
|
3062
|
-
"k-rtl":
|
|
3062
|
+
"k-rtl": f === "rtl",
|
|
3063
3063
|
"k-disabled": e.disabled,
|
|
3064
3064
|
"k-slider-vertical": e.vertical,
|
|
3065
3065
|
"k-slider-horizontal": !e.vertical
|
|
@@ -3099,7 +3099,7 @@ const Hs = (a, t) => {
|
|
|
3099
3099
|
{
|
|
3100
3100
|
ref: w,
|
|
3101
3101
|
className: "k-slider-track",
|
|
3102
|
-
style: e.vertical ? { bottom: 0, height: "100%" } : { [
|
|
3102
|
+
style: e.vertical ? { bottom: 0, height: "100%" } : { [f === "rtl" ? "right" : "left"]: 0, width: "100%" }
|
|
3103
3103
|
},
|
|
3104
3104
|
O !== null && I !== null && /* @__PURE__ */ n.createElement(
|
|
3105
3105
|
"div",
|
|
@@ -3109,7 +3109,7 @@ const Hs = (a, t) => {
|
|
|
3109
3109
|
title: `${S.start} - ${S.end}`,
|
|
3110
3110
|
className: "k-slider-selection",
|
|
3111
3111
|
style: e.vertical ? { height: I - O + "%", bottom: O + "%" } : {
|
|
3112
|
-
[
|
|
3112
|
+
[f === "rtl" ? "right" : "left"]: O + "%",
|
|
3113
3113
|
width: I - O + "%"
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
@@ -3119,7 +3119,7 @@ const Hs = (a, t) => {
|
|
|
3119
3119
|
{
|
|
3120
3120
|
ref: c,
|
|
3121
3121
|
role: "slider",
|
|
3122
|
-
tabIndex:
|
|
3122
|
+
tabIndex: re(e.startTabIndex, e.disabled, void 0),
|
|
3123
3123
|
"aria-valuemin": d,
|
|
3124
3124
|
"aria-valuemax": Math.max(m, S.end),
|
|
3125
3125
|
"aria-valuenow": S.start,
|
|
@@ -3127,7 +3127,7 @@ const Hs = (a, t) => {
|
|
|
3127
3127
|
"aria-valuetext": `${S.start} - ${S.end}`,
|
|
3128
3128
|
className: "k-draghandle",
|
|
3129
3129
|
title: T.toLanguageString(Te, $[Te]),
|
|
3130
|
-
style: e.vertical ? { bottom: "calc(" + O + "%)", zIndex: 1 } :
|
|
3130
|
+
style: e.vertical ? { bottom: "calc(" + O + "%)", zIndex: 1 } : f === "rtl" ? { right: "calc(" + O + "% - 13px)", zIndex: 1 } : { left: "calc(" + O + "%)", zIndex: 1 },
|
|
3131
3131
|
onKeyDown: H
|
|
3132
3132
|
}
|
|
3133
3133
|
),
|
|
@@ -3136,7 +3136,7 @@ const Hs = (a, t) => {
|
|
|
3136
3136
|
{
|
|
3137
3137
|
ref: o,
|
|
3138
3138
|
role: "slider",
|
|
3139
|
-
tabIndex:
|
|
3139
|
+
tabIndex: re(e.endTabIndex, e.disabled, void 0),
|
|
3140
3140
|
"aria-valuemin": Math.min(d, S.start),
|
|
3141
3141
|
"aria-valuemax": m,
|
|
3142
3142
|
"aria-valuenow": S.end,
|
|
@@ -3144,14 +3144,14 @@ const Hs = (a, t) => {
|
|
|
3144
3144
|
"aria-valuetext": `${S.start} - ${S.end}`,
|
|
3145
3145
|
className: "k-draghandle",
|
|
3146
3146
|
title: T.toLanguageString(Te, $[Te]),
|
|
3147
|
-
style: e.vertical ? { bottom: "calc(" + I + "%)", zIndex: 1 } :
|
|
3147
|
+
style: e.vertical ? { bottom: "calc(" + I + "%)", zIndex: 1 } : f === "rtl" ? { right: "calc(" + I + "% - 13px)", zIndex: 1 } : { left: "calc(" + I + "%)", zIndex: 1 },
|
|
3148
3148
|
onKeyDown: q
|
|
3149
3149
|
}
|
|
3150
3150
|
)
|
|
3151
3151
|
)
|
|
3152
3152
|
)
|
|
3153
3153
|
);
|
|
3154
|
-
}),
|
|
3154
|
+
}), Us = {
|
|
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 Hs = (a, t) => {
|
|
|
3214
3214
|
vertical: !1,
|
|
3215
3215
|
disabled: !1
|
|
3216
3216
|
};
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3217
|
+
ka.displayName = "KendoReactRangeSlider";
|
|
3218
|
+
ka.propTypes = Us;
|
|
3219
|
+
ka.defaultProps = ut;
|
|
3220
3220
|
const ft = class extends n.Component {
|
|
3221
3221
|
/**
|
|
3222
3222
|
* @hidden
|
|
@@ -3224,7 +3224,7 @@ const ft = class extends n.Component {
|
|
|
3224
3224
|
constructor(a) {
|
|
3225
3225
|
super(a), this.setValidity = () => {
|
|
3226
3226
|
this._input && this._input.setCustomValidity && this._input.setCustomValidity(
|
|
3227
|
-
this.validity.valid ? "" : this.props.validationMessage || this.defaultValidationMessage.toLanguageString(
|
|
3227
|
+
this.validity.valid ? "" : this.props.validationMessage || this.defaultValidationMessage.toLanguageString(ea, $[ea])
|
|
3228
3228
|
);
|
|
3229
3229
|
}, this.limit = (t, e, s) => {
|
|
3230
3230
|
const i = s.offsetWidth, l = e.offsetWidth;
|
|
@@ -3329,7 +3329,7 @@ const ft = class extends n.Component {
|
|
|
3329
3329
|
* @hidden
|
|
3330
3330
|
*/
|
|
3331
3331
|
render() {
|
|
3332
|
-
const { focused: a } = this.state, { dir: t, disabled: e, trackRounded: s, thumbRounded: i, size: l, offLabel: c, onLabel: o, tabIndex:
|
|
3332
|
+
const { focused: a } = this.state, { dir: t, disabled: e, trackRounded: s, thumbRounded: i, size: l, offLabel: c, onLabel: o, tabIndex: p } = this.props;
|
|
3333
3333
|
this.dir = t || this.element && getComputedStyle(this.element).direction || void 0;
|
|
3334
3334
|
const d = !this.validityStyles || this.validity.valid, m = G(
|
|
3335
3335
|
"k-switch",
|
|
@@ -3353,8 +3353,8 @@ const ft = class extends n.Component {
|
|
|
3353
3353
|
return /* @__PURE__ */ n.createElement(
|
|
3354
3354
|
"span",
|
|
3355
3355
|
{
|
|
3356
|
-
ref: (
|
|
3357
|
-
this._wrapper =
|
|
3356
|
+
ref: (f) => {
|
|
3357
|
+
this._wrapper = f;
|
|
3358
3358
|
},
|
|
3359
3359
|
role: "switch",
|
|
3360
3360
|
...u,
|
|
@@ -3364,7 +3364,7 @@ const ft = class extends n.Component {
|
|
|
3364
3364
|
onClick: this.handleClick,
|
|
3365
3365
|
onBlur: this.handleWrapperBlur,
|
|
3366
3366
|
onFocus: this.handleWrapperFocus,
|
|
3367
|
-
tabIndex:
|
|
3367
|
+
tabIndex: re(p, e, void 0),
|
|
3368
3368
|
accessKey: this.props.accessKey,
|
|
3369
3369
|
id: this.props.id || this._id
|
|
3370
3370
|
},
|
|
@@ -3375,8 +3375,8 @@ const ft = class extends n.Component {
|
|
|
3375
3375
|
"k-switch-track",
|
|
3376
3376
|
{ [`k-rounded-${ne.roundedMap[s] || s}`]: s }
|
|
3377
3377
|
),
|
|
3378
|
-
ref: (
|
|
3379
|
-
this._element =
|
|
3378
|
+
ref: (f) => {
|
|
3379
|
+
this._element = f;
|
|
3380
3380
|
}
|
|
3381
3381
|
},
|
|
3382
3382
|
this.dummyInput(this.value),
|
|
@@ -3426,25 +3426,25 @@ Ct.defaultProps = {
|
|
|
3426
3426
|
required: !1,
|
|
3427
3427
|
validityStyles: !0
|
|
3428
3428
|
};
|
|
3429
|
-
const
|
|
3430
|
-
|
|
3431
|
-
const
|
|
3429
|
+
const js = he(), Ws = et(Ue(js, Ct));
|
|
3430
|
+
Ws.displayName = "KendoReactSwitch";
|
|
3431
|
+
const Xs = he(), ya = n.forwardRef((a, t) => {
|
|
3432
3432
|
pe(me);
|
|
3433
|
-
const e = Re(
|
|
3433
|
+
const e = Re(Xs, a), {
|
|
3434
3434
|
ariaDescribedBy: s,
|
|
3435
3435
|
ariaLabelledBy: i,
|
|
3436
3436
|
checked: l,
|
|
3437
3437
|
className: c,
|
|
3438
3438
|
labelClassName: o,
|
|
3439
|
-
children:
|
|
3439
|
+
children: p,
|
|
3440
3440
|
defaultChecked: d,
|
|
3441
3441
|
disabled: m,
|
|
3442
3442
|
defaultValue: u,
|
|
3443
|
-
id:
|
|
3443
|
+
id: f,
|
|
3444
3444
|
size: y,
|
|
3445
|
-
rounded:
|
|
3445
|
+
rounded: N,
|
|
3446
3446
|
label: D,
|
|
3447
|
-
labelPlacement:
|
|
3447
|
+
labelPlacement: V,
|
|
3448
3448
|
name: L,
|
|
3449
3449
|
labelOptional: S,
|
|
3450
3450
|
onChange: w,
|
|
@@ -3455,12 +3455,12 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3455
3455
|
required: _,
|
|
3456
3456
|
valid: T,
|
|
3457
3457
|
validationMessage: E,
|
|
3458
|
-
validityStyles:
|
|
3458
|
+
validityStyles: M,
|
|
3459
3459
|
// Removed to support direct use in Form Field component
|
|
3460
3460
|
visited: H,
|
|
3461
3461
|
touched: q,
|
|
3462
3462
|
modified: Z,
|
|
3463
|
-
...
|
|
3463
|
+
...h
|
|
3464
3464
|
} = e, v = n.useRef(null), g = n.useCallback(
|
|
3465
3465
|
() => {
|
|
3466
3466
|
v.current && v.current.focus();
|
|
@@ -3477,7 +3477,7 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3477
3477
|
[g]
|
|
3478
3478
|
);
|
|
3479
3479
|
n.useImperativeHandle(t, k);
|
|
3480
|
-
const [C, P] = n.useState(d), [j, J] = n.useState(u), R = typeof F == "boolean" || F === null, b = l !== void 0, W = R, K = W ? F : j, ee = b ? l : W ? void 0 : C,
|
|
3480
|
+
const [C, P] = n.useState(d), [j, J] = n.useState(u), R = typeof F == "boolean" || F === null, b = l !== void 0, W = R, K = W ? F : j, ee = b ? l : W ? void 0 : C, ie = ee === void 0 && K, Ee = ie ? K : ee, le = ie || W ? F === null ? F : void 0 : F || K, oe = Ee === null || le === null, be = Qe(), He = _e(), A = (te) => He.toLanguageString(te, $[te]), xe = A(dn), ve = A(un), je = T !== void 0 ? T : _ ? !!ee : !0;
|
|
3481
3481
|
n.useEffect(
|
|
3482
3482
|
() => {
|
|
3483
3483
|
v.current && v.current.setCustomValidity && v.current.setCustomValidity(
|
|
@@ -3501,7 +3501,7 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3501
3501
|
[b, m, w, W, k]
|
|
3502
3502
|
), wt = n.useCallback(
|
|
3503
3503
|
(te) => {
|
|
3504
|
-
|
|
3504
|
+
const we = te.target.checked;
|
|
3505
3505
|
De(te, we);
|
|
3506
3506
|
},
|
|
3507
3507
|
[De, F]
|
|
@@ -3509,9 +3509,8 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3509
3509
|
(te) => {
|
|
3510
3510
|
if (m)
|
|
3511
3511
|
return;
|
|
3512
|
-
const { keyCode: we } = te;
|
|
3513
|
-
|
|
3514
|
-
we === z.space && (te.preventDefault(), te.stopPropagation(), De(te, !Vn));
|
|
3512
|
+
const { keyCode: we } = te, Mn = te.currentTarget.checked;
|
|
3513
|
+
we === z.space && (te.preventDefault(), te.stopPropagation(), De(te, !Mn));
|
|
3515
3514
|
},
|
|
3516
3515
|
[m, De]
|
|
3517
3516
|
), at = n.useCallback(
|
|
@@ -3542,7 +3541,7 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3542
3541
|
);
|
|
3543
3542
|
},
|
|
3544
3543
|
[O, m, k]
|
|
3545
|
-
), U = Ae(v, e.dir),
|
|
3544
|
+
), U = Ae(v, e.dir), ce = G(
|
|
3546
3545
|
"k-checkbox-wrap",
|
|
3547
3546
|
c
|
|
3548
3547
|
), Se = {
|
|
@@ -3551,49 +3550,49 @@ const Ws = he(), va = n.forwardRef((a, t) => {
|
|
|
3551
3550
|
"k-checkbox",
|
|
3552
3551
|
{
|
|
3553
3552
|
[`k-checkbox-${ne.sizeMap[y] || y}`]: y,
|
|
3554
|
-
[`k-rounded-${ne.roundedMap[
|
|
3555
|
-
"k-indeterminate":
|
|
3553
|
+
[`k-rounded-${ne.roundedMap[N] || N}`]: N,
|
|
3554
|
+
"k-indeterminate": oe,
|
|
3556
3555
|
"k-disabled": m,
|
|
3557
|
-
"k-invalid k-invalid": !(je ||
|
|
3556
|
+
"k-invalid k-invalid": !(je || M !== void 0 || M === !0)
|
|
3558
3557
|
}
|
|
3559
3558
|
),
|
|
3560
3559
|
ref: v,
|
|
3561
3560
|
name: L,
|
|
3562
|
-
id:
|
|
3561
|
+
id: f || be,
|
|
3563
3562
|
"aria-labelledby": i,
|
|
3564
3563
|
"aria-describedby": s,
|
|
3565
3564
|
checked: !!Ee,
|
|
3566
3565
|
disabled: m,
|
|
3567
|
-
tabIndex:
|
|
3566
|
+
tabIndex: re(I, m),
|
|
3568
3567
|
role: "checkbox",
|
|
3569
3568
|
required: _ !== void 0 ? _ : !1,
|
|
3570
|
-
"aria-checked": ee || Ee ? !0 :
|
|
3569
|
+
"aria-checked": ee || Ee ? !0 : oe ? "mixed" : !1,
|
|
3571
3570
|
"aria-disabled": m || void 0,
|
|
3572
|
-
...
|
|
3571
|
+
...h,
|
|
3573
3572
|
onChange: wt,
|
|
3574
3573
|
onKeyDown: tt,
|
|
3575
3574
|
onKeyUp: at,
|
|
3576
3575
|
onFocus: It,
|
|
3577
3576
|
onBlur: x
|
|
3578
|
-
},
|
|
3577
|
+
}, Vn = /* @__PURE__ */ n.createElement(
|
|
3579
3578
|
n.Fragment,
|
|
3580
3579
|
null,
|
|
3581
3580
|
// removing value prop is required due to bug in react where
|
|
3582
3581
|
// value set to undefined override default submit value
|
|
3583
|
-
|
|
3584
|
-
),
|
|
3582
|
+
le === void 0 ? /* @__PURE__ */ n.createElement("input", { ...Se }) : /* @__PURE__ */ n.createElement("input", { ...Se, value: R ? void 0 : le === null ? "" : le })
|
|
3583
|
+
), Lt = /* @__PURE__ */ n.createElement(n.Fragment, null, D !== void 0 ? /* @__PURE__ */ n.createElement(
|
|
3585
3584
|
"label",
|
|
3586
3585
|
{
|
|
3587
3586
|
className: G("k-checkbox-label", o),
|
|
3588
|
-
htmlFor:
|
|
3587
|
+
htmlFor: f || be,
|
|
3589
3588
|
style: { userSelect: "none" }
|
|
3590
3589
|
},
|
|
3591
3590
|
D,
|
|
3592
3591
|
S && /* @__PURE__ */ n.createElement("span", { className: "k-label-optional" }, ve)
|
|
3593
|
-
) : null);
|
|
3594
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null,
|
|
3592
|
+
) : null), Rt = /* @__PURE__ */ n.createElement("span", { className: ce }, Vn, p);
|
|
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: U }, Rt, Lt));
|
|
3595
3594
|
});
|
|
3596
|
-
|
|
3595
|
+
ya.propTypes = {
|
|
3597
3596
|
checked: r.bool,
|
|
3598
3597
|
className: r.string,
|
|
3599
3598
|
defaultChecked: r.bool,
|
|
@@ -3619,29 +3618,29 @@ va.propTypes = {
|
|
|
3619
3618
|
onFocus: r.func,
|
|
3620
3619
|
onBlur: r.func
|
|
3621
3620
|
};
|
|
3622
|
-
const
|
|
3621
|
+
const Ys = {
|
|
3623
3622
|
size: "medium",
|
|
3624
3623
|
rounded: "medium"
|
|
3625
3624
|
};
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
const
|
|
3625
|
+
ya.defaultProps = Ys;
|
|
3626
|
+
ya.displayName = "KendoCheckbox";
|
|
3627
|
+
const Zs = he(), xt = n.forwardRef((a, t) => {
|
|
3629
3628
|
pe(me);
|
|
3630
|
-
const e = Re(
|
|
3629
|
+
const e = Re(Zs, a), {
|
|
3631
3630
|
ariaDescribedBy: s,
|
|
3632
3631
|
checked: i,
|
|
3633
3632
|
children: l,
|
|
3634
3633
|
className: c,
|
|
3635
3634
|
disabled: o,
|
|
3636
|
-
id:
|
|
3635
|
+
id: p,
|
|
3637
3636
|
size: d,
|
|
3638
3637
|
label: m,
|
|
3639
3638
|
labelPlacement: u,
|
|
3640
|
-
name:
|
|
3639
|
+
name: f,
|
|
3641
3640
|
style: y,
|
|
3642
|
-
tabIndex:
|
|
3641
|
+
tabIndex: N,
|
|
3643
3642
|
value: D,
|
|
3644
|
-
valid:
|
|
3643
|
+
valid: V,
|
|
3645
3644
|
onChange: L,
|
|
3646
3645
|
onFocus: S,
|
|
3647
3646
|
onBlur: w,
|
|
@@ -3660,30 +3659,30 @@ const Ys = he(), xt = n.forwardRef((a, t) => {
|
|
|
3660
3659
|
);
|
|
3661
3660
|
n.useImperativeHandle(t, F);
|
|
3662
3661
|
const _ = Qe(), T = n.useCallback(
|
|
3663
|
-
(
|
|
3662
|
+
(h) => {
|
|
3664
3663
|
Q(
|
|
3665
3664
|
L,
|
|
3666
|
-
|
|
3665
|
+
h,
|
|
3667
3666
|
F(),
|
|
3668
3667
|
{ value: D }
|
|
3669
3668
|
);
|
|
3670
3669
|
},
|
|
3671
3670
|
[L, D, o]
|
|
3672
3671
|
), E = n.useCallback(
|
|
3673
|
-
(
|
|
3672
|
+
(h) => {
|
|
3674
3673
|
S && !o && Q(
|
|
3675
3674
|
S,
|
|
3676
|
-
|
|
3675
|
+
h,
|
|
3677
3676
|
F(),
|
|
3678
3677
|
void 0
|
|
3679
3678
|
);
|
|
3680
3679
|
},
|
|
3681
3680
|
[S, o]
|
|
3682
|
-
),
|
|
3683
|
-
(
|
|
3681
|
+
), M = n.useCallback(
|
|
3682
|
+
(h) => {
|
|
3684
3683
|
w && !o && Q(
|
|
3685
3684
|
w,
|
|
3686
|
-
|
|
3685
|
+
h,
|
|
3687
3686
|
F(),
|
|
3688
3687
|
void 0
|
|
3689
3688
|
);
|
|
@@ -3691,32 +3690,32 @@ const Ys = he(), xt = n.forwardRef((a, t) => {
|
|
|
3691
3690
|
[w, o]
|
|
3692
3691
|
), H = {
|
|
3693
3692
|
type: "radio",
|
|
3694
|
-
id:
|
|
3695
|
-
name:
|
|
3693
|
+
id: p || _,
|
|
3694
|
+
name: f,
|
|
3696
3695
|
className: G(
|
|
3697
3696
|
"k-radio",
|
|
3698
3697
|
{
|
|
3699
3698
|
[`k-radio-${ne.sizeMap[d] || d}`]: d,
|
|
3700
|
-
"k-invalid":
|
|
3699
|
+
"k-invalid": V === !1
|
|
3701
3700
|
},
|
|
3702
3701
|
c
|
|
3703
3702
|
),
|
|
3704
3703
|
ref: O,
|
|
3705
3704
|
disabled: o,
|
|
3706
|
-
tabIndex:
|
|
3705
|
+
tabIndex: re(N, o),
|
|
3707
3706
|
checked: i,
|
|
3708
3707
|
style: y,
|
|
3709
3708
|
"aria-describedby": s,
|
|
3710
3709
|
value: D,
|
|
3711
3710
|
onChange: T,
|
|
3712
3711
|
onFocus: E,
|
|
3713
|
-
onBlur:
|
|
3712
|
+
onBlur: M,
|
|
3714
3713
|
...B
|
|
3715
3714
|
}, q = /* @__PURE__ */ n.createElement(n.Fragment, null, m !== void 0 ? /* @__PURE__ */ n.createElement(
|
|
3716
3715
|
"label",
|
|
3717
3716
|
{
|
|
3718
3717
|
className: "k-radio-label",
|
|
3719
|
-
htmlFor:
|
|
3718
|
+
htmlFor: p || _,
|
|
3720
3719
|
style: { userSelect: "none" },
|
|
3721
3720
|
"aria-label": m
|
|
3722
3721
|
},
|
|
@@ -3742,28 +3741,28 @@ xt.propTypes = {
|
|
|
3742
3741
|
onFocus: r.func,
|
|
3743
3742
|
onBlur: r.func
|
|
3744
3743
|
};
|
|
3745
|
-
const
|
|
3744
|
+
const Js = {
|
|
3746
3745
|
size: "medium"
|
|
3747
3746
|
};
|
|
3748
3747
|
xt.displayName = "KendoRadioButton";
|
|
3749
|
-
xt.defaultProps =
|
|
3750
|
-
const
|
|
3748
|
+
xt.defaultProps = Js;
|
|
3749
|
+
const Qs = he(), Ca = n.forwardRef((a, t) => {
|
|
3751
3750
|
pe(me);
|
|
3752
|
-
const e = Re(
|
|
3751
|
+
const e = Re(Qs, a), {
|
|
3753
3752
|
id: s,
|
|
3754
3753
|
ariaLabelledBy: i,
|
|
3755
3754
|
ariaDescribedBy: l,
|
|
3756
3755
|
className: c,
|
|
3757
3756
|
data: o,
|
|
3758
|
-
defaultValue:
|
|
3757
|
+
defaultValue: p,
|
|
3759
3758
|
disabled: d,
|
|
3760
3759
|
name: m,
|
|
3761
3760
|
labelPlacement: u,
|
|
3762
|
-
layout:
|
|
3761
|
+
layout: f,
|
|
3763
3762
|
style: y,
|
|
3764
|
-
value:
|
|
3763
|
+
value: N,
|
|
3765
3764
|
valid: D,
|
|
3766
|
-
item:
|
|
3765
|
+
item: V = In.item,
|
|
3767
3766
|
onChange: L,
|
|
3768
3767
|
onFocus: S
|
|
3769
3768
|
} = e, w = n.useRef(null), B = n.useCallback(
|
|
@@ -3779,7 +3778,7 @@ const Js = he(), ka = n.forwardRef((a, t) => {
|
|
|
3779
3778
|
[B]
|
|
3780
3779
|
);
|
|
3781
3780
|
n.useImperativeHandle(t, O);
|
|
3782
|
-
const [I, F] = n.useState(
|
|
3781
|
+
const [I, F] = n.useState(p), _ = N !== void 0, T = _ ? N : I, E = n.useCallback(
|
|
3783
3782
|
(v) => {
|
|
3784
3783
|
let g = v.value;
|
|
3785
3784
|
!_ && !d && F(g), L && !d && Q(
|
|
@@ -3790,7 +3789,7 @@ const Js = he(), ka = n.forwardRef((a, t) => {
|
|
|
3790
3789
|
);
|
|
3791
3790
|
},
|
|
3792
3791
|
[F, L, d]
|
|
3793
|
-
),
|
|
3792
|
+
), M = n.useCallback(
|
|
3794
3793
|
(v) => {
|
|
3795
3794
|
S && !d && Q(
|
|
3796
3795
|
S,
|
|
@@ -3803,11 +3802,11 @@ const Js = he(), ka = n.forwardRef((a, t) => {
|
|
|
3803
3802
|
), H = Qe(), q = G(
|
|
3804
3803
|
"k-radio-list",
|
|
3805
3804
|
{
|
|
3806
|
-
"k-list-horizontal":
|
|
3807
|
-
"k-list-vertical":
|
|
3805
|
+
"k-list-horizontal": f === "horizontal",
|
|
3806
|
+
"k-list-vertical": f === "vertical" || f === void 0
|
|
3808
3807
|
},
|
|
3809
3808
|
c
|
|
3810
|
-
), Z =
|
|
3809
|
+
), Z = Bn(w, e.dir), h = o && o.map((v, g) => {
|
|
3811
3810
|
const k = T === v.value, C = T == null, P = {
|
|
3812
3811
|
...v,
|
|
3813
3812
|
valid: D,
|
|
@@ -3818,10 +3817,10 @@ const Js = he(), ka = n.forwardRef((a, t) => {
|
|
|
3818
3817
|
index: g,
|
|
3819
3818
|
name: m || H,
|
|
3820
3819
|
onChange: E,
|
|
3821
|
-
onFocus:
|
|
3820
|
+
onFocus: M
|
|
3822
3821
|
};
|
|
3823
3822
|
return /* @__PURE__ */ n.createElement(
|
|
3824
|
-
|
|
3823
|
+
V,
|
|
3825
3824
|
{
|
|
3826
3825
|
className: G("k-radio-item", { "k-disabled": P.disabled || d }),
|
|
3827
3826
|
key: g,
|
|
@@ -3842,12 +3841,12 @@ const Js = he(), ka = n.forwardRef((a, t) => {
|
|
|
3842
3841
|
"aria-labelledby": i,
|
|
3843
3842
|
"aria-describedby": l
|
|
3844
3843
|
},
|
|
3845
|
-
|
|
3844
|
+
h
|
|
3846
3845
|
);
|
|
3847
3846
|
}), In = {
|
|
3848
3847
|
item: (a) => /* @__PURE__ */ n.createElement("li", { ...a })
|
|
3849
3848
|
};
|
|
3850
|
-
|
|
3849
|
+
Ca.propTypes = {
|
|
3851
3850
|
ariaLabelledBy: r.string,
|
|
3852
3851
|
ariaDescribedBy: r.string,
|
|
3853
3852
|
className: r.string,
|
|
@@ -3863,24 +3862,24 @@ ka.propTypes = {
|
|
|
3863
3862
|
onChange: r.func,
|
|
3864
3863
|
onFocus: r.func
|
|
3865
3864
|
};
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
const
|
|
3869
|
-
const e = Re(
|
|
3865
|
+
Ca.defaultProps = In;
|
|
3866
|
+
Ca.displayName = "KendoRadioGroup";
|
|
3867
|
+
const er = he(), xa = n.forwardRef((a, t) => {
|
|
3868
|
+
const e = Re(er, a), {
|
|
3870
3869
|
size: s,
|
|
3871
3870
|
rounded: i,
|
|
3872
3871
|
fillMode: l,
|
|
3873
3872
|
ariaDescribedBy: c,
|
|
3874
3873
|
ariaLabelledBy: o,
|
|
3875
|
-
autoSize:
|
|
3874
|
+
autoSize: p,
|
|
3876
3875
|
className: d,
|
|
3877
3876
|
defaultValue: m,
|
|
3878
3877
|
disabled: u,
|
|
3879
|
-
readOnly:
|
|
3878
|
+
readOnly: f,
|
|
3880
3879
|
required: y,
|
|
3881
|
-
rows:
|
|
3880
|
+
rows: N,
|
|
3882
3881
|
id: D,
|
|
3883
|
-
name:
|
|
3882
|
+
name: V,
|
|
3884
3883
|
placeholder: L,
|
|
3885
3884
|
style: S,
|
|
3886
3885
|
tabIndex: w,
|
|
@@ -3892,49 +3891,49 @@ const Qs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3892
3891
|
onFocus: T,
|
|
3893
3892
|
onBlur: E,
|
|
3894
3893
|
// Removed to support direct use in Form Field component
|
|
3895
|
-
visited:
|
|
3894
|
+
visited: M,
|
|
3896
3895
|
touched: H,
|
|
3897
3896
|
modified: q,
|
|
3898
3897
|
...Z
|
|
3899
|
-
} = e,
|
|
3898
|
+
} = e, h = n.useRef(null), v = n.useCallback(
|
|
3900
3899
|
() => {
|
|
3901
|
-
|
|
3900
|
+
h.current && h.current.focus();
|
|
3902
3901
|
},
|
|
3903
3902
|
[]
|
|
3904
3903
|
), [g, k] = n.useState(m), C = B !== void 0, P = C ? B : g, j = n.useCallback(
|
|
3905
3904
|
() => ({
|
|
3906
|
-
element:
|
|
3905
|
+
element: h,
|
|
3907
3906
|
focus: v,
|
|
3908
3907
|
get value() {
|
|
3909
3908
|
return P;
|
|
3910
3909
|
},
|
|
3911
3910
|
get name() {
|
|
3912
|
-
return
|
|
3911
|
+
return h.current && h.current.name;
|
|
3913
3912
|
}
|
|
3914
3913
|
}),
|
|
3915
3914
|
[v, P]
|
|
3916
3915
|
);
|
|
3917
3916
|
n.useImperativeHandle(t, j);
|
|
3918
|
-
const [J, R] = n.useState("auto"), b = Qe(), W = Ae(
|
|
3917
|
+
const [J, R] = n.useState("auto"), b = Qe(), W = Ae(h, e.dir), K = O !== void 0 ? O : y ? !!P : !0;
|
|
3919
3918
|
n.useEffect(
|
|
3920
3919
|
() => {
|
|
3921
|
-
|
|
3920
|
+
h.current && h.current.setCustomValidity && h.current.setCustomValidity(
|
|
3922
3921
|
K ? "" : I || ""
|
|
3923
3922
|
);
|
|
3924
3923
|
},
|
|
3925
3924
|
[K, I]
|
|
3926
3925
|
), n.useLayoutEffect(
|
|
3927
3926
|
() => {
|
|
3928
|
-
|
|
3927
|
+
h.current && R(`${h.current.scrollHeight}px`);
|
|
3929
3928
|
},
|
|
3930
3929
|
[P]
|
|
3931
3930
|
);
|
|
3932
3931
|
const ee = n.useCallback(
|
|
3933
|
-
(
|
|
3934
|
-
const be =
|
|
3932
|
+
(oe) => {
|
|
3933
|
+
const be = oe.target.value;
|
|
3935
3934
|
R("auto"), !C && !u && k(be), _ && !u && Q(
|
|
3936
3935
|
_,
|
|
3937
|
-
|
|
3936
|
+
oe,
|
|
3938
3937
|
{
|
|
3939
3938
|
...j(),
|
|
3940
3939
|
value: be
|
|
@@ -3943,39 +3942,39 @@ const Qs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3943
3942
|
);
|
|
3944
3943
|
},
|
|
3945
3944
|
[k, _, u, C]
|
|
3946
|
-
),
|
|
3947
|
-
(
|
|
3945
|
+
), ie = n.useCallback(
|
|
3946
|
+
(oe) => {
|
|
3948
3947
|
T && !u && Q(
|
|
3949
3948
|
T,
|
|
3950
|
-
|
|
3949
|
+
oe,
|
|
3951
3950
|
j(),
|
|
3952
3951
|
void 0
|
|
3953
3952
|
);
|
|
3954
3953
|
},
|
|
3955
3954
|
[T, u]
|
|
3956
3955
|
), Ee = n.useCallback(
|
|
3957
|
-
(
|
|
3956
|
+
(oe) => {
|
|
3958
3957
|
E && !u && Q(
|
|
3959
3958
|
E,
|
|
3960
|
-
|
|
3959
|
+
oe,
|
|
3961
3960
|
j(),
|
|
3962
3961
|
void 0
|
|
3963
3962
|
);
|
|
3964
3963
|
},
|
|
3965
3964
|
[E, u]
|
|
3966
|
-
),
|
|
3965
|
+
), le = {
|
|
3967
3966
|
id: D || b,
|
|
3968
3967
|
role: "textbox",
|
|
3969
|
-
name:
|
|
3968
|
+
name: V,
|
|
3970
3969
|
className: "k-input-inner !k-overflow-auto",
|
|
3971
|
-
ref:
|
|
3970
|
+
ref: h,
|
|
3972
3971
|
disabled: u,
|
|
3973
|
-
rows:
|
|
3972
|
+
rows: N,
|
|
3974
3973
|
placeholder: L,
|
|
3975
|
-
readOnly:
|
|
3974
|
+
readOnly: f,
|
|
3976
3975
|
required: y,
|
|
3977
|
-
tabIndex:
|
|
3978
|
-
style:
|
|
3976
|
+
tabIndex: re(w, u),
|
|
3977
|
+
style: p ? { resize: "none", overflow: "hidden", height: J } : {},
|
|
3979
3978
|
"aria-labelledby": o,
|
|
3980
3979
|
"aria-describedby": c,
|
|
3981
3980
|
"aria-multiline": !0,
|
|
@@ -3983,7 +3982,7 @@ const Qs = he(), ya = n.forwardRef((a, t) => {
|
|
|
3983
3982
|
value: C ? B : g,
|
|
3984
3983
|
...Z,
|
|
3985
3984
|
onChange: ee,
|
|
3986
|
-
onFocus:
|
|
3985
|
+
onFocus: ie,
|
|
3987
3986
|
onBlur: Ee
|
|
3988
3987
|
};
|
|
3989
3988
|
return /* @__PURE__ */ n.createElement(
|
|
@@ -4005,10 +4004,10 @@ const Qs = he(), ya = n.forwardRef((a, t) => {
|
|
|
4005
4004
|
style: S,
|
|
4006
4005
|
dir: W
|
|
4007
4006
|
},
|
|
4008
|
-
/* @__PURE__ */ n.createElement("textarea", { ...
|
|
4007
|
+
/* @__PURE__ */ n.createElement("textarea", { ...le })
|
|
4009
4008
|
);
|
|
4010
4009
|
});
|
|
4011
|
-
|
|
4010
|
+
xa.propTypes = {
|
|
4012
4011
|
ariaDescribedBy: r.string,
|
|
4013
4012
|
ariaLabelledBy: r.string,
|
|
4014
4013
|
autoSize: r.bool,
|
|
@@ -4035,13 +4034,13 @@ ya.propTypes = {
|
|
|
4035
4034
|
rounded: r.oneOf([null, "small", "medium", "large", "full"]),
|
|
4036
4035
|
fillMode: r.oneOf([null, "solid", "flat", "outline"])
|
|
4037
4036
|
};
|
|
4038
|
-
const
|
|
4037
|
+
const tr = {
|
|
4039
4038
|
size: "medium",
|
|
4040
4039
|
rounded: "medium",
|
|
4041
4040
|
fillMode: "solid"
|
|
4042
4041
|
};
|
|
4043
|
-
|
|
4044
|
-
|
|
4042
|
+
xa.displayName = "KendoTextArea";
|
|
4043
|
+
xa.defaultProps = tr;
|
|
4045
4044
|
const Et = n.forwardRef((a, t) => {
|
|
4046
4045
|
const e = n.useRef(null), s = n.useRef(null), i = Ae(s, a.dir);
|
|
4047
4046
|
n.useImperativeHandle(e, () => ({
|
|
@@ -4050,79 +4049,79 @@ const Et = n.forwardRef((a, t) => {
|
|
|
4050
4049
|
value: a.value
|
|
4051
4050
|
})), n.useImperativeHandle(t, () => e.current);
|
|
4052
4051
|
const l = n.useCallback(
|
|
4053
|
-
(
|
|
4052
|
+
(f) => {
|
|
4054
4053
|
a.onClick && a.onClick.call(
|
|
4055
4054
|
void 0,
|
|
4056
4055
|
{
|
|
4057
4056
|
value: a.value,
|
|
4058
4057
|
target: e.current,
|
|
4059
|
-
syntheticEvent:
|
|
4058
|
+
syntheticEvent: f
|
|
4060
4059
|
}
|
|
4061
4060
|
);
|
|
4062
4061
|
},
|
|
4063
4062
|
[a.onClick, a.value]
|
|
4064
4063
|
), c = n.useCallback(
|
|
4065
|
-
(
|
|
4064
|
+
(f) => {
|
|
4066
4065
|
a.onKeyDown && a.onKeyDown.call(
|
|
4067
4066
|
void 0,
|
|
4068
4067
|
{
|
|
4069
4068
|
target: e.current,
|
|
4070
|
-
syntheticEvent:
|
|
4069
|
+
syntheticEvent: f
|
|
4071
4070
|
}
|
|
4072
4071
|
);
|
|
4073
4072
|
},
|
|
4074
4073
|
[a.onKeyDown]
|
|
4075
4074
|
), o = n.useCallback(
|
|
4076
|
-
(
|
|
4075
|
+
(f) => {
|
|
4077
4076
|
a.onFocus && a.onFocus.call(
|
|
4078
4077
|
void 0,
|
|
4079
4078
|
{
|
|
4080
4079
|
target: e.current,
|
|
4081
|
-
syntheticEvent:
|
|
4080
|
+
syntheticEvent: f
|
|
4082
4081
|
}
|
|
4083
4082
|
);
|
|
4084
4083
|
},
|
|
4085
4084
|
[a.onFocus]
|
|
4086
|
-
),
|
|
4087
|
-
(
|
|
4085
|
+
), p = n.useCallback(
|
|
4086
|
+
(f) => {
|
|
4088
4087
|
a.onBlur && a.onBlur.call(
|
|
4089
4088
|
void 0,
|
|
4090
4089
|
{
|
|
4091
4090
|
target: e.current,
|
|
4092
|
-
syntheticEvent:
|
|
4091
|
+
syntheticEvent: f
|
|
4093
4092
|
}
|
|
4094
4093
|
);
|
|
4095
4094
|
},
|
|
4096
4095
|
[a.onBlur]
|
|
4097
4096
|
), d = n.useCallback(
|
|
4098
|
-
(
|
|
4097
|
+
(f) => {
|
|
4099
4098
|
a.onMouseMove && a.onMouseMove.call(
|
|
4100
4099
|
void 0,
|
|
4101
4100
|
{
|
|
4102
4101
|
target: e.current,
|
|
4103
|
-
syntheticEvent:
|
|
4102
|
+
syntheticEvent: f
|
|
4104
4103
|
}
|
|
4105
4104
|
);
|
|
4106
4105
|
},
|
|
4107
4106
|
[a.onMouseMove]
|
|
4108
4107
|
), m = n.useCallback(
|
|
4109
|
-
(
|
|
4108
|
+
(f) => {
|
|
4110
4109
|
a.onMouseEnter && a.onMouseEnter.call(
|
|
4111
4110
|
void 0,
|
|
4112
4111
|
{
|
|
4113
4112
|
target: e.current,
|
|
4114
|
-
syntheticEvent:
|
|
4113
|
+
syntheticEvent: f
|
|
4115
4114
|
}
|
|
4116
4115
|
);
|
|
4117
4116
|
},
|
|
4118
4117
|
[a.onMouseEnter]
|
|
4119
4118
|
), u = n.useCallback(
|
|
4120
|
-
(
|
|
4119
|
+
(f) => {
|
|
4121
4120
|
a.onMouseLeave && a.onMouseLeave.call(
|
|
4122
4121
|
void 0,
|
|
4123
4122
|
{
|
|
4124
4123
|
target: e.current,
|
|
4125
|
-
syntheticEvent:
|
|
4124
|
+
syntheticEvent: f
|
|
4126
4125
|
}
|
|
4127
4126
|
);
|
|
4128
4127
|
},
|
|
@@ -4150,14 +4149,14 @@ const Et = n.forwardRef((a, t) => {
|
|
|
4150
4149
|
onClick: l,
|
|
4151
4150
|
onKeyDown: c,
|
|
4152
4151
|
onFocus: o,
|
|
4153
|
-
onBlur:
|
|
4152
|
+
onBlur: p,
|
|
4154
4153
|
onMouseEnter: m,
|
|
4155
4154
|
onMouseLeave: u,
|
|
4156
4155
|
onMouseMove: d
|
|
4157
4156
|
},
|
|
4158
4157
|
a.children
|
|
4159
4158
|
);
|
|
4160
|
-
}),
|
|
4159
|
+
}), ar = {
|
|
4161
4160
|
id: r.string,
|
|
4162
4161
|
icon: r.any,
|
|
4163
4162
|
dir: r.oneOf(["ltr", "rtl"]),
|
|
@@ -4166,26 +4165,26 @@ const Et = n.forwardRef((a, t) => {
|
|
|
4166
4165
|
half: r.bool,
|
|
4167
4166
|
selected: r.bool,
|
|
4168
4167
|
hovered: r.bool
|
|
4169
|
-
},
|
|
4168
|
+
}, nr = {
|
|
4170
4169
|
dir: "ltr"
|
|
4171
4170
|
};
|
|
4172
4171
|
Et.displayName = "KendoReactRatingItem";
|
|
4173
|
-
Et.propTypes =
|
|
4174
|
-
Et.defaultProps =
|
|
4172
|
+
Et.propTypes = ar;
|
|
4173
|
+
Et.defaultProps = nr;
|
|
4175
4174
|
const ye = (a, t) => {
|
|
4176
4175
|
if (a % 1) {
|
|
4177
4176
|
const e = Math.pow(10, (t.toString().split(".")[1] || t.toString().split(".")[0]).length);
|
|
4178
4177
|
return Math.round(a * e) / e;
|
|
4179
4178
|
}
|
|
4180
4179
|
return a;
|
|
4181
|
-
},
|
|
4180
|
+
}, sr = (a, t) => a - t * Math.floor(a / t), da = (a, t, e) => ye(a - e, e) < t && t < a, Tt = (a, t, e, s) => t === null ? !1 : s === "continues" ? da(a, t, e) ? ye(a - e / 2, e / 2) <= t : a <= t : s === "single" ? da(a, t, e) ? ye(a - e / 2, e / 2) === t : a === t : !1, Ya = (a, t, e) => a === "ltr" ? e < t.x + t.width / 2 : e > t.x + t.width / 2, Za = (a, t, e, s) => {
|
|
4182
4181
|
for (let i = a; i <= t; i += e)
|
|
4183
4182
|
if (s === i)
|
|
4184
4183
|
return !0;
|
|
4185
4184
|
return !1;
|
|
4186
4185
|
};
|
|
4187
4186
|
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 || {});
|
|
4188
|
-
const
|
|
4187
|
+
const rr = (a, t) => {
|
|
4189
4188
|
switch (t.type) {
|
|
4190
4189
|
case "select":
|
|
4191
4190
|
return t.payload === void 0 || t.step === void 0 ? a : t.payload === a ? null : t.payload >= t.min ? t.payload < t.max ? ye(t.payload, t.step) : t.max : t.min;
|
|
@@ -4207,25 +4206,25 @@ const sr = (a, t) => {
|
|
|
4207
4206
|
}, Ja = (a, t, e) => {
|
|
4208
4207
|
const [s, i] = n.useState(a);
|
|
4209
4208
|
return [s, (c) => {
|
|
4210
|
-
const o =
|
|
4209
|
+
const o = rr(t.state || s, { ...c, ...t });
|
|
4211
4210
|
e && e(o, c.event), i(o);
|
|
4212
4211
|
}];
|
|
4213
|
-
},
|
|
4214
|
-
const e = Re(
|
|
4212
|
+
}, ir = he(), Ea = n.forwardRef((a, t) => {
|
|
4213
|
+
const e = Re(ir, a), s = _e(), i = n.useRef(null), l = n.useRef(null), c = Ae(l, e.dir);
|
|
4215
4214
|
n.useImperativeHandle(i, () => ({
|
|
4216
4215
|
element: l.current,
|
|
4217
4216
|
props: e
|
|
4218
4217
|
})), n.useImperativeHandle(t, () => i.current);
|
|
4219
4218
|
const o = n.useCallback(
|
|
4220
|
-
(
|
|
4219
|
+
(h, v) => {
|
|
4221
4220
|
e.onChange && i.current && e.onChange.call(void 0, {
|
|
4222
|
-
value:
|
|
4221
|
+
value: h,
|
|
4223
4222
|
target: i.current,
|
|
4224
4223
|
syntheticEvent: v
|
|
4225
4224
|
});
|
|
4226
4225
|
},
|
|
4227
4226
|
[e.onChange]
|
|
4228
|
-
),
|
|
4227
|
+
), p = n.useMemo(
|
|
4229
4228
|
() => e.min !== void 0 ? e.min : Ie.min,
|
|
4230
4229
|
[e.min]
|
|
4231
4230
|
), d = n.useMemo(
|
|
@@ -4237,20 +4236,20 @@ const sr = (a, t) => {
|
|
|
4237
4236
|
), u = n.useMemo(
|
|
4238
4237
|
() => e.step !== void 0 ? e.step : Ie.step,
|
|
4239
4238
|
[e.step]
|
|
4240
|
-
),
|
|
4239
|
+
), f = n.useMemo(
|
|
4241
4240
|
() => e.readonly || Ie.readonly,
|
|
4242
4241
|
[e.readonly]
|
|
4243
4242
|
), y = n.useMemo(
|
|
4244
4243
|
() => e.disabled || Ie.disabled,
|
|
4245
4244
|
[e.disabled]
|
|
4246
|
-
),
|
|
4245
|
+
), N = n.useMemo(
|
|
4247
4246
|
() => e.item || Ie.item,
|
|
4248
4247
|
[e.item]
|
|
4249
|
-
), [D,
|
|
4248
|
+
), [D, V] = Ja(
|
|
4250
4249
|
e.defaultValue !== void 0 ? e.defaultValue : Ie.defaultValue,
|
|
4251
4250
|
{
|
|
4252
4251
|
state: e.value,
|
|
4253
|
-
min:
|
|
4252
|
+
min: p,
|
|
4254
4253
|
max: d,
|
|
4255
4254
|
step: m === "half" ? u / 2 : u
|
|
4256
4255
|
},
|
|
@@ -4259,7 +4258,7 @@ const sr = (a, t) => {
|
|
|
4259
4258
|
null,
|
|
4260
4259
|
{
|
|
4261
4260
|
state: e.value,
|
|
4262
|
-
min:
|
|
4261
|
+
min: p,
|
|
4263
4262
|
max: d,
|
|
4264
4263
|
step: m === "half" ? u / 2 : u,
|
|
4265
4264
|
precision: m
|
|
@@ -4277,56 +4276,56 @@ const sr = (a, t) => {
|
|
|
4277
4276
|
() => u / (m === "half" ? 2 : 1),
|
|
4278
4277
|
[u, m]
|
|
4279
4278
|
), F = n.useCallback(
|
|
4280
|
-
(
|
|
4281
|
-
if (!(!
|
|
4279
|
+
(h) => {
|
|
4280
|
+
if (!(!h.target || !h.target.element || f || y)) {
|
|
4282
4281
|
if (m === "half") {
|
|
4283
|
-
const v =
|
|
4284
|
-
|
|
4282
|
+
const v = h.target.element.getBoundingClientRect(), k = Ya(c || "ltr", v, h.syntheticEvent.clientX) ? ye(h.target.value - u / 2, I) : h.target.value;
|
|
4283
|
+
V({ type: de.select, payload: k, event: h.syntheticEvent });
|
|
4285
4284
|
} else
|
|
4286
|
-
|
|
4285
|
+
V({ type: de.select, payload: h.target.value, event: h.syntheticEvent });
|
|
4287
4286
|
if (e.onClick) {
|
|
4288
4287
|
const v = {
|
|
4289
4288
|
value: w,
|
|
4290
4289
|
target: i.current,
|
|
4291
|
-
syntheticEvent:
|
|
4290
|
+
syntheticEvent: h.syntheticEvent
|
|
4292
4291
|
};
|
|
4293
4292
|
e.onClick.call(void 0, v);
|
|
4294
4293
|
}
|
|
4295
4294
|
}
|
|
4296
4295
|
},
|
|
4297
|
-
[e.onClick,
|
|
4296
|
+
[e.onClick, V, w]
|
|
4298
4297
|
), _ = n.useCallback(
|
|
4299
|
-
(
|
|
4300
|
-
if (!(
|
|
4301
|
-
switch (
|
|
4298
|
+
(h) => {
|
|
4299
|
+
if (!(f || y)) {
|
|
4300
|
+
switch (h.keyCode) {
|
|
4302
4301
|
case z.right:
|
|
4303
|
-
|
|
4302
|
+
h.preventDefault(), V({
|
|
4304
4303
|
type: c === "rtl" ? de.decrease : de.increase,
|
|
4305
|
-
event:
|
|
4304
|
+
event: h
|
|
4306
4305
|
});
|
|
4307
4306
|
break;
|
|
4308
4307
|
case z.left:
|
|
4309
|
-
|
|
4308
|
+
h.preventDefault(), V({
|
|
4310
4309
|
type: c === "rtl" ? de.increase : de.decrease,
|
|
4311
|
-
event:
|
|
4310
|
+
event: h
|
|
4312
4311
|
});
|
|
4313
4312
|
break;
|
|
4314
4313
|
case z.home:
|
|
4315
|
-
|
|
4314
|
+
h.preventDefault(), V({
|
|
4316
4315
|
type: c === "rtl" ? de.min : de.max,
|
|
4317
|
-
event:
|
|
4316
|
+
event: h
|
|
4318
4317
|
});
|
|
4319
4318
|
break;
|
|
4320
4319
|
case z.end:
|
|
4321
|
-
|
|
4320
|
+
h.preventDefault(), V({
|
|
4322
4321
|
type: c === "rtl" ? de.max : de.min,
|
|
4323
|
-
event:
|
|
4322
|
+
event: h
|
|
4324
4323
|
});
|
|
4325
4324
|
break;
|
|
4326
4325
|
case z.esc:
|
|
4327
|
-
|
|
4326
|
+
h.preventDefault(), V({
|
|
4328
4327
|
type: de.deselect,
|
|
4329
|
-
event:
|
|
4328
|
+
event: h
|
|
4330
4329
|
});
|
|
4331
4330
|
break;
|
|
4332
4331
|
}
|
|
@@ -4335,18 +4334,18 @@ const sr = (a, t) => {
|
|
|
4335
4334
|
{
|
|
4336
4335
|
value: w,
|
|
4337
4336
|
target: i.current,
|
|
4338
|
-
syntheticEvent:
|
|
4337
|
+
syntheticEvent: h
|
|
4339
4338
|
}
|
|
4340
4339
|
);
|
|
4341
4340
|
}
|
|
4342
4341
|
},
|
|
4343
|
-
[e.onKeyDown,
|
|
4342
|
+
[e.onKeyDown, V, w]
|
|
4344
4343
|
), T = n.useCallback(
|
|
4345
|
-
(
|
|
4344
|
+
(h) => {
|
|
4346
4345
|
if (e.onFocus) {
|
|
4347
4346
|
const v = {
|
|
4348
4347
|
target: i.current,
|
|
4349
|
-
syntheticEvent:
|
|
4348
|
+
syntheticEvent: h
|
|
4350
4349
|
};
|
|
4351
4350
|
e.onFocus.call(
|
|
4352
4351
|
void 0,
|
|
@@ -4356,11 +4355,11 @@ const sr = (a, t) => {
|
|
|
4356
4355
|
},
|
|
4357
4356
|
[e.onFocus]
|
|
4358
4357
|
), E = n.useCallback(
|
|
4359
|
-
(
|
|
4358
|
+
(h) => {
|
|
4360
4359
|
if (e.onBlur) {
|
|
4361
4360
|
const v = {
|
|
4362
4361
|
target: i.current,
|
|
4363
|
-
syntheticEvent:
|
|
4362
|
+
syntheticEvent: h
|
|
4364
4363
|
};
|
|
4365
4364
|
e.onBlur.call(
|
|
4366
4365
|
void 0,
|
|
@@ -4369,27 +4368,27 @@ const sr = (a, t) => {
|
|
|
4369
4368
|
}
|
|
4370
4369
|
},
|
|
4371
4370
|
[e.onBlur]
|
|
4372
|
-
),
|
|
4373
|
-
(
|
|
4374
|
-
if (!(!
|
|
4371
|
+
), M = n.useCallback(
|
|
4372
|
+
(h) => {
|
|
4373
|
+
if (!(!h.target || !h.target.element))
|
|
4375
4374
|
if (m === "half") {
|
|
4376
|
-
const v =
|
|
4377
|
-
S({ type: de.select, payload: k, event:
|
|
4375
|
+
const v = h.target.element.getBoundingClientRect(), k = Ya(c || "ltr", v, h.syntheticEvent.clientX) ? h.target.value - u / 2 : h.target.value;
|
|
4376
|
+
S({ type: de.select, payload: k, event: h.syntheticEvent });
|
|
4378
4377
|
} else
|
|
4379
|
-
S({ type: de.select, payload:
|
|
4378
|
+
S({ type: de.select, payload: h.target.value, event: h.syntheticEvent });
|
|
4380
4379
|
},
|
|
4381
4380
|
[m, u, c]
|
|
4382
4381
|
), H = n.useCallback(
|
|
4383
|
-
(
|
|
4384
|
-
S({ type: de.reset, event:
|
|
4382
|
+
(h) => {
|
|
4383
|
+
S({ type: de.reset, event: h.syntheticEvent });
|
|
4385
4384
|
},
|
|
4386
4385
|
[]
|
|
4387
|
-
), q = [], Z =
|
|
4388
|
-
for (let
|
|
4389
|
-
const v = ye(
|
|
4386
|
+
), q = [], Z = sr(ye(d - p, I), u);
|
|
4387
|
+
for (let h = p; h <= d; h = ye(h + u, I)) {
|
|
4388
|
+
const v = ye(h + Z, I), g = m === "half" ? da(v, B !== null ? B : w !== null ? w : 0, u) : !1, k = Tt(v, w, u, O), C = Tt(v, B !== null ? B : w, u, O), P = Tt(v, B, u, O);
|
|
4390
4389
|
q.push(
|
|
4391
4390
|
/* @__PURE__ */ n.createElement(
|
|
4392
|
-
|
|
4391
|
+
N,
|
|
4393
4392
|
{
|
|
4394
4393
|
key: v,
|
|
4395
4394
|
value: v,
|
|
@@ -4401,13 +4400,13 @@ const sr = (a, t) => {
|
|
|
4401
4400
|
selected: k || C,
|
|
4402
4401
|
hovered: P,
|
|
4403
4402
|
onClick: F,
|
|
4404
|
-
onMouseMove:
|
|
4403
|
+
onMouseMove: M,
|
|
4405
4404
|
onMouseLeave: H
|
|
4406
4405
|
},
|
|
4407
|
-
g && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-complement" }, !(e.icon || e.svgIconOutline) && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Ra, 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:
|
|
4408
|
-
g && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-part" }, !(e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Va, 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 ?
|
|
4406
|
+
g && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-complement" }, !(e.icon || e.svgIconOutline) && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Ra, 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" })),
|
|
4407
|
+
g && /* @__PURE__ */ n.createElement("span", { className: "k-rating-precision-part" }, !(e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Va, 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" })),
|
|
4409
4408
|
g && /* @__PURE__ */ n.createElement("span", { style: { width: "24px", height: "24px", display: "block" } }),
|
|
4410
|
-
!g && !(e.icon || e.svgIcon) && (P || C && !P) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Va, size: "xlarge" }) || !(e.icon || e.svgIcon) && !P && !C && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Ra, size: "xlarge" }) || (e.icon || e.svgIcon) && (P || C && !P) && /* @__PURE__ */ n.createElement(fe, { name: e.icon, icon: e.svgIcon, size: "xlarge" }) || (e.icon || e.svgIcon) && !P && /* @__PURE__ */ n.createElement(fe, { name:
|
|
4409
|
+
!g && !(e.icon || e.svgIcon) && (P || C && !P) && /* @__PURE__ */ n.createElement(fe, { name: "star", icon: Va, size: "xlarge" }) || !(e.icon || e.svgIcon) && !P && !C && /* @__PURE__ */ n.createElement(fe, { name: "star-outline", icon: Ra, size: "xlarge" }) || (e.icon || e.svgIcon) && (P || C && !P) && /* @__PURE__ */ n.createElement(fe, { name: e.icon, icon: e.svgIcon, size: "xlarge" }) || (e.icon || e.svgIcon) && !P && /* @__PURE__ */ n.createElement(fe, { name: Vt(`${e.icon}-outline`), icon: e.svgIconOutline, size: "xlarge" })
|
|
4411
4410
|
)
|
|
4412
4411
|
);
|
|
4413
4412
|
}
|
|
@@ -4419,12 +4418,12 @@ const sr = (a, t) => {
|
|
|
4419
4418
|
ref: l,
|
|
4420
4419
|
role: "slider",
|
|
4421
4420
|
dir: c,
|
|
4422
|
-
tabIndex:
|
|
4421
|
+
tabIndex: re(e.tabIndex, e.disabled, void 0),
|
|
4423
4422
|
className: G(
|
|
4424
4423
|
"k-rating",
|
|
4425
4424
|
{
|
|
4426
4425
|
"k-rtl": c === "rtl",
|
|
4427
|
-
"k-readonly":
|
|
4426
|
+
"k-readonly": f,
|
|
4428
4427
|
"k-disabled": y
|
|
4429
4428
|
},
|
|
4430
4429
|
e.className
|
|
@@ -4432,11 +4431,11 @@ const sr = (a, t) => {
|
|
|
4432
4431
|
onKeyDown: _,
|
|
4433
4432
|
onFocus: T,
|
|
4434
4433
|
onBlur: E,
|
|
4435
|
-
"aria-valuemin":
|
|
4434
|
+
"aria-valuemin": p,
|
|
4436
4435
|
"aria-valuemax": d,
|
|
4437
4436
|
"aria-valuenow": w !== null ? w : void 0,
|
|
4438
4437
|
"aria-disabled": y ? "true" : void 0,
|
|
4439
|
-
"aria-label": s.toLanguageString(
|
|
4438
|
+
"aria-label": s.toLanguageString(aa, $[aa]),
|
|
4440
4439
|
"aria-labelledby": e.ariaLabelledBy,
|
|
4441
4440
|
"aria-describedby": e.ariaDescribedBy
|
|
4442
4441
|
},
|
|
@@ -4445,7 +4444,7 @@ const sr = (a, t) => {
|
|
|
4445
4444
|
{
|
|
4446
4445
|
id: "rating",
|
|
4447
4446
|
className: "k-hidden",
|
|
4448
|
-
readOnly:
|
|
4447
|
+
readOnly: f,
|
|
4449
4448
|
disabled: y
|
|
4450
4449
|
}
|
|
4451
4450
|
),
|
|
@@ -4464,7 +4463,7 @@ const sr = (a, t) => {
|
|
|
4464
4463
|
e.label
|
|
4465
4464
|
)
|
|
4466
4465
|
);
|
|
4467
|
-
}),
|
|
4466
|
+
}), lr = {
|
|
4468
4467
|
id: r.string,
|
|
4469
4468
|
dir: r.oneOf(["ltr", "rtl"]),
|
|
4470
4469
|
selection: r.oneOf(["continues", "single"]),
|
|
@@ -4488,8 +4487,8 @@ const sr = (a, t) => {
|
|
|
4488
4487
|
disabled: r.bool,
|
|
4489
4488
|
half: r.bool,
|
|
4490
4489
|
icon: r.string,
|
|
4491
|
-
svgIcon:
|
|
4492
|
-
svgIconOutline:
|
|
4490
|
+
svgIcon: zt,
|
|
4491
|
+
svgIconOutline: zt,
|
|
4493
4492
|
ariaDescribedBy: r.string
|
|
4494
4493
|
}, Ie = {
|
|
4495
4494
|
dir: "ltr",
|
|
@@ -4503,24 +4502,24 @@ const sr = (a, t) => {
|
|
|
4503
4502
|
selection: "continues",
|
|
4504
4503
|
precision: "item"
|
|
4505
4504
|
};
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
function
|
|
4505
|
+
Ea.displayName = "KendoReactRating";
|
|
4506
|
+
Ea.propTypes = lr;
|
|
4507
|
+
Ea.defaultProps = Ie;
|
|
4508
|
+
function or(a, t) {
|
|
4510
4509
|
let e = a;
|
|
4511
4510
|
for (; e && e !== t; )
|
|
4512
4511
|
e = e.parentNode;
|
|
4513
4512
|
return !!e;
|
|
4514
4513
|
}
|
|
4515
|
-
const
|
|
4514
|
+
const cr = 250, dr = 84, Ln = 3, Rn = 2, ur = "#000000", fr = "#ffffff", Qa = (a) => a !== void 0, hr = he(), St = n.forwardRef((a, t) => {
|
|
4516
4515
|
pe(me);
|
|
4517
|
-
const e = Re(
|
|
4518
|
-
|
|
4516
|
+
const e = Re(hr, a), s = _e(), i = n.useRef(null), l = n.useRef(null), c = n.useRef(null), o = n.useRef(null), p = n.useRef(null), [d, m] = n.useState(), [u, f] = n.useState(!1), [y, N] = n.useState(!1), [D, V] = n.useState(), [L, S] = n.useState(), B = Qa(e.value) ? e.value : D, [O, I] = n.useState(!1), F = Qa(e.open), _ = F ? e.open : O, T = !(e.maximized || y || !e.maximizable || e.disabled), E = e.maximized && !y, H = !(!(e.value || D) || y || e.readOnly || e.disabled), q = s.toLanguageString(sa, $[sa]), Z = s.toLanguageString(ra, $[ra]), h = s.toLanguageString(na, $[na]), v = e.popupScale || Ln, g = e.exportScale || Rn, k = (x) => {
|
|
4517
|
+
V(x), e.onChange && e.onChange({ value: x });
|
|
4519
4518
|
}, C = (x) => {
|
|
4520
4519
|
d == null || d.loadImage(x.value), k(x.value);
|
|
4521
4520
|
};
|
|
4522
4521
|
n.useEffect(() => {
|
|
4523
|
-
e.value !== D && (
|
|
4522
|
+
e.value !== D && (V(e.value), d == null || d.loadImage(e.value));
|
|
4524
4523
|
}, [e.value]);
|
|
4525
4524
|
const P = () => {
|
|
4526
4525
|
d == null || d.clear(), k();
|
|
@@ -4530,13 +4529,13 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4530
4529
|
},
|
|
4531
4530
|
[F]
|
|
4532
4531
|
), J = (x) => {
|
|
4533
|
-
var U,
|
|
4534
|
-
De(x), (
|
|
4532
|
+
var U, ce;
|
|
4533
|
+
De(x), (ce = ((U = p.current) == null ? void 0 : U.element) || l.current) == null || ce.focus();
|
|
4535
4534
|
}, R = n.useCallback(() => {
|
|
4536
|
-
let x =
|
|
4535
|
+
let x = ur;
|
|
4537
4536
|
return !e.color && typeof document != "undefined" && i.current && (x = getComputedStyle(i.current).color), e.color || x;
|
|
4538
4537
|
}, [e.color]), b = n.useCallback(() => {
|
|
4539
|
-
let x =
|
|
4538
|
+
let x = fr;
|
|
4540
4539
|
return !e.backgroundColor && typeof document != "undefined" && i.current && (x = getComputedStyle(i.current).backgroundColor), e.backgroundColor || x;
|
|
4541
4540
|
}, [e.backgroundColor]), W = () => ({
|
|
4542
4541
|
scale: e.maximized ? e.popupScale : 1,
|
|
@@ -4546,27 +4545,27 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4546
4545
|
smooth: e.smooth,
|
|
4547
4546
|
readonly: e.readOnly
|
|
4548
4547
|
}), K = async (x) => {
|
|
4549
|
-
const { width: U, height:
|
|
4548
|
+
const { width: U, height: ce } = x;
|
|
4550
4549
|
return await (d == null ? void 0 : d.exportImage({
|
|
4551
4550
|
width: U * g,
|
|
4552
|
-
height:
|
|
4551
|
+
height: ce * g
|
|
4553
4552
|
}));
|
|
4554
4553
|
};
|
|
4555
4554
|
n.useEffect(() => {
|
|
4556
|
-
const x = l.current, U = new
|
|
4555
|
+
const x = l.current, U = new Hn(x, W());
|
|
4557
4556
|
return B && U.loadImage(B), m(U), () => U.destroy();
|
|
4558
4557
|
}, []), n.useEffect(() => {
|
|
4559
4558
|
d == null || d.setOptions({
|
|
4560
4559
|
onChange: async () => k(await K(tt())),
|
|
4561
|
-
onDraw: () =>
|
|
4562
|
-
onDrawEnd: () =>
|
|
4560
|
+
onDraw: () => N(!0),
|
|
4561
|
+
onDrawEnd: () => N(!1)
|
|
4563
4562
|
});
|
|
4564
4563
|
}, [d]), n.useLayoutEffect(
|
|
4565
4564
|
() => d == null ? void 0 : d.setOptions(W()),
|
|
4566
4565
|
[e.readOnly, e.color, e.backgroundColor, e.strokeWidth, e.smooth]
|
|
4567
4566
|
), n.useEffect(() => {
|
|
4568
|
-
var
|
|
4569
|
-
const x = (Se = (
|
|
4567
|
+
var ce, Se;
|
|
4568
|
+
const x = (Se = (ce = c.current) == null ? void 0 : ce.element) == null ? void 0 : Se.querySelector(".k-overlay");
|
|
4570
4569
|
if (!x)
|
|
4571
4570
|
return;
|
|
4572
4571
|
const U = () => j(!1);
|
|
@@ -4588,25 +4587,25 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4588
4587
|
return (x = l.current) == null ? void 0 : x.focus();
|
|
4589
4588
|
},
|
|
4590
4589
|
[]
|
|
4591
|
-
),
|
|
4590
|
+
), ie = n.useCallback(
|
|
4592
4591
|
() => e.value,
|
|
4593
4592
|
[e.value]
|
|
4594
4593
|
), Ee = n.useCallback(
|
|
4595
4594
|
() => e.name,
|
|
4596
4595
|
[e.name]
|
|
4597
|
-
),
|
|
4596
|
+
), le = n.useCallback(
|
|
4598
4597
|
() => e.required,
|
|
4599
4598
|
[e.required]
|
|
4600
|
-
),
|
|
4599
|
+
), oe = n.useCallback(
|
|
4601
4600
|
() => {
|
|
4602
|
-
const x = e.validationMessage !== void 0,
|
|
4601
|
+
const x = e.validationMessage !== void 0, ce = !ie(), Se = e.valid !== void 0 ? e.valid : !le() || !ce;
|
|
4603
4602
|
return {
|
|
4604
4603
|
customError: x,
|
|
4605
4604
|
valid: Se,
|
|
4606
|
-
valueMissing:
|
|
4605
|
+
valueMissing: ce
|
|
4607
4606
|
};
|
|
4608
4607
|
},
|
|
4609
|
-
[e.validationMessage, e.valid,
|
|
4608
|
+
[e.validationMessage, e.valid, ie, le]
|
|
4610
4609
|
), be = n.useCallback(
|
|
4611
4610
|
() => e.validityStyles,
|
|
4612
4611
|
[e.validityStyles]
|
|
@@ -4619,14 +4618,14 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4619
4618
|
element: i.current,
|
|
4620
4619
|
focus: ee
|
|
4621
4620
|
};
|
|
4622
|
-
return Object.defineProperty(x, "name", { get: Ee }), Object.defineProperty(x, "value", { get:
|
|
4621
|
+
return Object.defineProperty(x, "name", { get: Ee }), Object.defineProperty(x, "value", { get: ie }), Object.defineProperty(x, "validity", { get: oe }), Object.defineProperty(x, "validityStyles", { get: be }), Object.defineProperty(x, "required", { get: le }), Object.defineProperty(x, "props", { get: He }), Object.defineProperty(x, "color", { get: R }), Object.defineProperty(x, "backgroundColor", { get: b }), x;
|
|
4623
4622
|
},
|
|
4624
|
-
[Ee,
|
|
4623
|
+
[Ee, ie, oe, be, le, ee, He, R, b]
|
|
4625
4624
|
);
|
|
4626
4625
|
n.useImperativeHandle(t, A);
|
|
4627
4626
|
const xe = n.useCallback(
|
|
4628
4627
|
(x) => {
|
|
4629
|
-
u || e.maximized || (
|
|
4628
|
+
u || e.maximized || (f(!0), Q(
|
|
4630
4629
|
e.onFocus,
|
|
4631
4630
|
x,
|
|
4632
4631
|
A(),
|
|
@@ -4636,7 +4635,7 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4636
4635
|
[u, e.onFocus, A]
|
|
4637
4636
|
), ve = n.useCallback(
|
|
4638
4637
|
(x) => {
|
|
4639
|
-
|
|
4638
|
+
or(x.relatedTarget, i.current) || (f(!1), Q(
|
|
4640
4639
|
e.onBlur,
|
|
4641
4640
|
x,
|
|
4642
4641
|
A(),
|
|
@@ -4667,8 +4666,8 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4667
4666
|
), wt = () => {
|
|
4668
4667
|
P(), ee();
|
|
4669
4668
|
}, tt = () => {
|
|
4670
|
-
var
|
|
4671
|
-
const x = e.width || ((
|
|
4669
|
+
var ce, Se;
|
|
4670
|
+
const x = e.width || ((ce = i.current) == null ? void 0 : ce.offsetWidth) || cr, U = e.height || ((Se = i.current) == null ? void 0 : Se.offsetHeight) || dr;
|
|
4672
4671
|
return {
|
|
4673
4672
|
width: x,
|
|
4674
4673
|
height: U
|
|
@@ -4679,7 +4678,7 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4679
4678
|
width: x * v,
|
|
4680
4679
|
height: U * v
|
|
4681
4680
|
};
|
|
4682
|
-
}, It = !be() ||
|
|
4681
|
+
}, It = !be() || oe().valid;
|
|
4683
4682
|
return /* @__PURE__ */ n.createElement(
|
|
4684
4683
|
"div",
|
|
4685
4684
|
{
|
|
@@ -4709,7 +4708,7 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4709
4708
|
{
|
|
4710
4709
|
className: "k-signature-canvas",
|
|
4711
4710
|
ref: l,
|
|
4712
|
-
tabIndex:
|
|
4711
|
+
tabIndex: re(e.tabIndex, e.disabled),
|
|
4713
4712
|
role: "img",
|
|
4714
4713
|
id: e.id,
|
|
4715
4714
|
"aria-label": e.ariaLabel,
|
|
@@ -4721,8 +4720,9 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4721
4720
|
/* @__PURE__ */ n.createElement("div", { className: "k-signature-actions k-signature-actions-top" }, T && /* @__PURE__ */ n.createElement(
|
|
4722
4721
|
ge,
|
|
4723
4722
|
{
|
|
4723
|
+
type: "button",
|
|
4724
4724
|
className: "k-signature-action k-signature-maximize",
|
|
4725
|
-
ref:
|
|
4725
|
+
ref: p,
|
|
4726
4726
|
icon: "hyperlink-open",
|
|
4727
4727
|
svgIcon: Ma,
|
|
4728
4728
|
fillMode: "flat",
|
|
@@ -4734,6 +4734,7 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4734
4734
|
), E && /* @__PURE__ */ n.createElement(
|
|
4735
4735
|
ge,
|
|
4736
4736
|
{
|
|
4737
|
+
type: "button",
|
|
4737
4738
|
className: "k-signature-action k-signature-minimize k-rotate-180",
|
|
4738
4739
|
ref: o,
|
|
4739
4740
|
icon: "hyperlink-open",
|
|
@@ -4755,17 +4756,18 @@ const or = 250, cr = 84, Ln = 3, Rn = 2, dr = "#000000", ur = "#ffffff", Qa = (a
|
|
|
4755
4756
|
/* @__PURE__ */ n.createElement("div", { className: "k-signature-actions k-signature-actions-bottom" }, H && /* @__PURE__ */ n.createElement(
|
|
4756
4757
|
ge,
|
|
4757
4758
|
{
|
|
4759
|
+
type: "button",
|
|
4758
4760
|
className: "k-signature-action k-signature-clear",
|
|
4759
4761
|
icon: "x",
|
|
4760
|
-
svgIcon:
|
|
4762
|
+
svgIcon: At,
|
|
4761
4763
|
fillMode: "flat",
|
|
4762
4764
|
size: e.size,
|
|
4763
4765
|
onClick: wt,
|
|
4764
|
-
"aria-label":
|
|
4765
|
-
title:
|
|
4766
|
+
"aria-label": h,
|
|
4767
|
+
title: h
|
|
4766
4768
|
}
|
|
4767
4769
|
)),
|
|
4768
|
-
_ && /* @__PURE__ */ n.createElement(
|
|
4770
|
+
_ && /* @__PURE__ */ n.createElement(Gn, { ref: c }, /* @__PURE__ */ n.createElement(
|
|
4769
4771
|
St,
|
|
4770
4772
|
{
|
|
4771
4773
|
...e,
|
|
@@ -4821,7 +4823,7 @@ St.defaultProps = {
|
|
|
4821
4823
|
rounded: "medium",
|
|
4822
4824
|
fillMode: "solid"
|
|
4823
4825
|
};
|
|
4824
|
-
const
|
|
4826
|
+
const Sa = n.forwardRef((a, t) => {
|
|
4825
4827
|
pe(me);
|
|
4826
4828
|
const e = n.useRef(null), s = n.useRef(null), i = n.useRef(), l = n.useCallback(
|
|
4827
4829
|
() => {
|
|
@@ -4850,19 +4852,19 @@ const xa = n.forwardRef((a, t) => {
|
|
|
4850
4852
|
const {
|
|
4851
4853
|
size: c,
|
|
4852
4854
|
fillMode: o,
|
|
4853
|
-
rounded:
|
|
4855
|
+
rounded: p,
|
|
4854
4856
|
className: d,
|
|
4855
4857
|
dir: m,
|
|
4856
4858
|
style: u,
|
|
4857
|
-
prefix:
|
|
4858
|
-
suffix: y =
|
|
4859
|
-
valid:
|
|
4859
|
+
prefix: f = ua.prefix,
|
|
4860
|
+
suffix: y = ua.suffix,
|
|
4861
|
+
valid: N,
|
|
4860
4862
|
// Destruct to avoid warning when used inside a form field
|
|
4861
4863
|
modified: D,
|
|
4862
|
-
touched:
|
|
4864
|
+
touched: V,
|
|
4863
4865
|
visited: L,
|
|
4864
4866
|
...S
|
|
4865
|
-
} = a, [w] = qe(
|
|
4867
|
+
} = a, [w] = qe(f), [B] = qe(y), [O, I] = n.useState(!1), F = (H) => {
|
|
4866
4868
|
I(!0);
|
|
4867
4869
|
}, _ = (H) => {
|
|
4868
4870
|
I(!1);
|
|
@@ -4876,7 +4878,7 @@ const xa = n.forwardRef((a, t) => {
|
|
|
4876
4878
|
}), i.current = void 0;
|
|
4877
4879
|
},
|
|
4878
4880
|
[a.onChange]
|
|
4879
|
-
), { onFocus: E, onBlur:
|
|
4881
|
+
), { onFocus: E, onBlur: M } = On({
|
|
4880
4882
|
onFocus: F,
|
|
4881
4883
|
onBlur: _,
|
|
4882
4884
|
onSyncFocus: a.onFocus,
|
|
@@ -4892,7 +4894,7 @@ const xa = n.forwardRef((a, t) => {
|
|
|
4892
4894
|
{
|
|
4893
4895
|
[`k-input-${ne.sizeMap[c] || c}`]: c,
|
|
4894
4896
|
[`k-input-${o}`]: o,
|
|
4895
|
-
[`k-rounded-${ne.roundedMap[
|
|
4897
|
+
[`k-rounded-${ne.roundedMap[p] || p}`]: p
|
|
4896
4898
|
},
|
|
4897
4899
|
{
|
|
4898
4900
|
"k-focus": O,
|
|
@@ -4903,7 +4905,7 @@ const xa = n.forwardRef((a, t) => {
|
|
|
4903
4905
|
d
|
|
4904
4906
|
),
|
|
4905
4907
|
onFocus: E,
|
|
4906
|
-
onBlur:
|
|
4908
|
+
onBlur: M
|
|
4907
4909
|
},
|
|
4908
4910
|
/* @__PURE__ */ n.createElement(w, null),
|
|
4909
4911
|
/* @__PURE__ */ n.createElement(
|
|
@@ -4917,21 +4919,21 @@ const xa = n.forwardRef((a, t) => {
|
|
|
4917
4919
|
),
|
|
4918
4920
|
/* @__PURE__ */ n.createElement(B, null)
|
|
4919
4921
|
);
|
|
4920
|
-
}),
|
|
4922
|
+
}), ua = {
|
|
4921
4923
|
prefix: (a) => null,
|
|
4922
4924
|
suffix: (a) => null,
|
|
4923
4925
|
size: "medium",
|
|
4924
4926
|
rounded: "medium",
|
|
4925
4927
|
fillMode: "solid"
|
|
4926
4928
|
};
|
|
4927
|
-
|
|
4929
|
+
Sa.propTypes = {
|
|
4928
4930
|
size: r.oneOf([null, "small", "medium", "large"]),
|
|
4929
4931
|
rounded: r.oneOf([null, "small", "medium", "large", "full"]),
|
|
4930
4932
|
fillMode: r.oneOf([null, "solid", "flat", "outline"])
|
|
4931
4933
|
};
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
const
|
|
4934
|
+
Sa.displayName = "KendoReactTextBoxComponent";
|
|
4935
|
+
Sa.defaultProps = ua;
|
|
4936
|
+
const pr = n.forwardRef((a, t) => {
|
|
4935
4937
|
const e = n.useRef(null), s = n.useRef(null);
|
|
4936
4938
|
return n.useImperativeHandle(
|
|
4937
4939
|
e,
|
|
@@ -4941,8 +4943,8 @@ const hr = n.forwardRef((a, t) => {
|
|
|
4941
4943
|
() => e.current
|
|
4942
4944
|
), /* @__PURE__ */ n.createElement("span", { ...a, className: G("k-clear-value", a.className) });
|
|
4943
4945
|
});
|
|
4944
|
-
|
|
4945
|
-
const
|
|
4946
|
+
pr.displayName = "KendoReactInputClearValue";
|
|
4947
|
+
const mr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
4946
4948
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4947
4949
|
return n.useImperativeHandle(
|
|
4948
4950
|
s,
|
|
@@ -4952,8 +4954,8 @@ const pr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
|
4952
4954
|
() => s.current
|
|
4953
4955
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-prefix", t.className, `k-input-prefix-${a}`) });
|
|
4954
4956
|
});
|
|
4955
|
-
|
|
4956
|
-
const
|
|
4957
|
+
mr.displayName = "KendoReactInputPrefix";
|
|
4958
|
+
const gr = n.forwardRef(({ orientation: a = "vertical", ...t }, e) => {
|
|
4957
4959
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4958
4960
|
return n.useImperativeHandle(
|
|
4959
4961
|
s,
|
|
@@ -4963,8 +4965,8 @@ const mr = n.forwardRef(({ orientation: a = "vertical", ...t }, e) => {
|
|
|
4963
4965
|
() => s.current
|
|
4964
4966
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-separator", t.className, `k-input-separator-${a}`) });
|
|
4965
4967
|
});
|
|
4966
|
-
|
|
4967
|
-
const
|
|
4968
|
+
gr.displayName = "KendoReactInputSeparator";
|
|
4969
|
+
const br = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
4968
4970
|
const s = n.useRef(null), i = n.useRef(null);
|
|
4969
4971
|
return n.useImperativeHandle(
|
|
4970
4972
|
s,
|
|
@@ -4974,66 +4976,66 @@ const gr = n.forwardRef(({ orientation: a = "horizontal", ...t }, e) => {
|
|
|
4974
4976
|
() => s.current
|
|
4975
4977
|
), /* @__PURE__ */ n.createElement("span", { ...t, className: G("k-input-suffix", t.className, `k-input-suffix-${a}`) });
|
|
4976
4978
|
});
|
|
4977
|
-
|
|
4978
|
-
const
|
|
4979
|
-
|
|
4979
|
+
br.displayName = "KendoReactInputSuffix";
|
|
4980
|
+
const vr = n.forwardRef((a, t) => /* @__PURE__ */ n.createElement(fe, { ref: t, ...a, className: G("k-input-validation-icon", a.className) }));
|
|
4981
|
+
vr.displayName = "KendoReactInputValidationIcon";
|
|
4980
4982
|
export {
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4983
|
+
ya as Checkbox,
|
|
4984
|
+
Xs as CheckboxPropsContext,
|
|
4985
|
+
ga as ColorGradient,
|
|
4986
|
+
Cs as ColorGradientPropsContext,
|
|
4985
4987
|
vt as ColorGradientWithoutContext,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4988
|
+
ma as ColorInput,
|
|
4989
|
+
ba as ColorPalette,
|
|
4990
|
+
Ss as ColorPalettePropsContext,
|
|
4989
4991
|
kt as ColorPaletteWithoutContext,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
+
va as ColorPicker,
|
|
4993
|
+
Vs as ColorPickerPropsContext,
|
|
4992
4994
|
Sn as FlatColorPicker,
|
|
4993
4995
|
vn as Input,
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
4996
|
+
pr as InputClearValue,
|
|
4997
|
+
mr as InputPrefix,
|
|
4998
|
+
is as InputPropsContext,
|
|
4999
|
+
gr as InputSeparator,
|
|
5000
|
+
br as InputSuffix,
|
|
5001
|
+
vr as InputValidationIcon,
|
|
5000
5002
|
gt as InputWithoutContext,
|
|
5001
|
-
|
|
5003
|
+
Hs as MaskedTextBox,
|
|
5002
5004
|
yt as MaskedTextBoxWithoutContext,
|
|
5003
5005
|
ze as NumericTextBox,
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
+
ns as NumericTextBoxPropsContext,
|
|
5007
|
+
Es as PALETTEPRESETS,
|
|
5006
5008
|
X as RANGE_ACTION,
|
|
5007
5009
|
de as RATING_ACTION,
|
|
5008
5010
|
xt as RadioButton,
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5011
|
+
Zs as RadioButtonPropsContext,
|
|
5012
|
+
Ca as RadioGroup,
|
|
5013
|
+
Qs as RadioGroupPropsContext,
|
|
5014
|
+
ka as RangeSlider,
|
|
5015
|
+
qs as RangeSliderPropsContext,
|
|
5016
|
+
Ea as Rating,
|
|
5015
5017
|
Et as RatingItem,
|
|
5016
|
-
|
|
5018
|
+
ir as RatingPropsContext,
|
|
5017
5019
|
kn as SLIDER_LABEL_ATTRIBUTE,
|
|
5018
5020
|
St as Signature,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5021
|
+
hr as SignaturePropsContext,
|
|
5022
|
+
oa as Slider,
|
|
5023
|
+
Vr as SliderLabel,
|
|
5022
5024
|
bt as SliderWithoutContext,
|
|
5023
|
-
|
|
5025
|
+
Ws as Switch,
|
|
5024
5026
|
Ct as SwitchWithoutContext,
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5027
|
+
xa as TextArea,
|
|
5028
|
+
er as TextAreaPropsContext,
|
|
5029
|
+
Sa as TextBox,
|
|
5028
5030
|
$ as inputsMessages,
|
|
5029
5031
|
Za as isCorrectValue,
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5032
|
+
da as isHalf,
|
|
5033
|
+
Tt as isSelected,
|
|
5034
|
+
_s as maskingChanged,
|
|
5033
5035
|
Ye as numericDecreaseValue,
|
|
5034
5036
|
Xe as numericIncreaseValue,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
+
Gs as rangeReducer,
|
|
5038
|
+
rr as ratingReducer,
|
|
5037
5039
|
Ta as sanitizeNumber,
|
|
5038
5040
|
ye as toRound
|
|
5039
5041
|
};
|