@progress/kendo-react-dropdowns 7.5.0-develop.4 → 7.5.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/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +63 -63
- package/DropDownTree/useDropdownWidth.js +1 -1
- package/DropDownTree/useDropdownWidth.mjs +12 -9
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +104 -104
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
10
|
import a from "prop-types";
|
|
11
|
-
import { createPropsContext as at, usePropsContext as
|
|
11
|
+
import { createPropsContext as at, usePropsContext as it, validatePackage as rt, useId as ot, getTabIndex as lt, useRtl as st, canUseDOM as ct, noop as Z, Keys as o, classNames as ee, IconWrap as ut, kendoThemeMaps as dt } from "@progress/kendo-react-common";
|
|
12
12
|
import { Popup as pt } from "@progress/kendo-react-popup";
|
|
13
13
|
import { useLocalization as ft } from "@progress/kendo-react-intl";
|
|
14
14
|
import { TreeView as Te } from "@progress/kendo-react-treeview";
|
|
@@ -25,13 +25,13 @@ import { AdaptiveMode as kt } from "../common/AdaptiveMode.mjs";
|
|
|
25
25
|
import { ActionSheetContent as Ft } from "@progress/kendo-react-layout";
|
|
26
26
|
import { MOBILE_MEDIUM_DEVISE as xt } from "../common/constants.mjs";
|
|
27
27
|
const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St } = dt, wt = (O) => O.split("_").map((R) => parseInt(R, 10)), Tt = (O, R) => {
|
|
28
|
-
const { validationMessage: n, valid: K, required:
|
|
28
|
+
const { validationMessage: n, valid: K, required: x } = O;
|
|
29
29
|
return {
|
|
30
30
|
customError: n !== void 0,
|
|
31
|
-
valid: !!(K !== void 0 ? K : !
|
|
31
|
+
valid: !!(K !== void 0 ? K : !x || R),
|
|
32
32
|
valueMissing: !R
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, F = {
|
|
35
35
|
checkField: "checkField",
|
|
36
36
|
checkIndeterminateField: "checkIndeterminateField",
|
|
37
37
|
subItemsField: "items",
|
|
@@ -46,32 +46,32 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
46
46
|
required: !1,
|
|
47
47
|
validityStyles: !0
|
|
48
48
|
}, Dt = at(), de = t.forwardRef((O, R) => {
|
|
49
|
-
const n =
|
|
50
|
-
|
|
51
|
-
const K = ot(),
|
|
49
|
+
const n = it(Dt, O);
|
|
50
|
+
rt(mt);
|
|
51
|
+
const K = ot(), x = n.id || K, {
|
|
52
52
|
data: q = [],
|
|
53
|
-
dataItemKey:
|
|
53
|
+
dataItemKey: I,
|
|
54
54
|
popupSettings: M = {},
|
|
55
55
|
style: L = {},
|
|
56
|
-
opened:
|
|
56
|
+
opened: S,
|
|
57
57
|
disabled: C,
|
|
58
58
|
onOpen: ae = Z,
|
|
59
59
|
onClose: A = Z,
|
|
60
60
|
placeholder: pe,
|
|
61
61
|
label: B,
|
|
62
62
|
name: Oe,
|
|
63
|
-
checkField: fe =
|
|
64
|
-
checkIndeterminateField: me =
|
|
65
|
-
subItemsField: ge =
|
|
63
|
+
checkField: fe = F.checkField,
|
|
64
|
+
checkIndeterminateField: me = F.checkIndeterminateField,
|
|
65
|
+
subItemsField: ge = F.subItemsField,
|
|
66
66
|
validationMessage: W,
|
|
67
67
|
valid: Le,
|
|
68
68
|
tags: ve,
|
|
69
69
|
value: m,
|
|
70
|
-
required: he =
|
|
71
|
-
validityStyles: Be =
|
|
72
|
-
} = n, z = lt(n.tabIndex, C), l = t.useRef(null), y = t.useRef(null),
|
|
73
|
-
width: ht(y,
|
|
74
|
-
...
|
|
70
|
+
required: he = F.required,
|
|
71
|
+
validityStyles: Be = F.validityStyles
|
|
72
|
+
} = n, z = lt(n.tabIndex, C), l = t.useRef(null), y = t.useRef(null), w = t.useRef(null), ie = t.useRef(null), _ = t.useRef(null), E = t.useRef(null), $ = t.useRef(!1), H = t.useRef([]), G = t.useRef(null), [N, Ve] = t.useState(), [Ke, be] = t.useState(!1), [d, re] = t.useState(!1), [oe, qe] = t.useState(), [Ae, We] = t.useState([]), [ye, ze] = t.useState(""), P = !!(oe && oe <= xt && n.adaptive), s = S !== void 0 ? S : Ke, le = !!(Array.isArray(m) && m.length), se = Tt({ validationMessage: W, valid: Le, required: he }, le), T = st(y, n.dir), _e = {
|
|
73
|
+
width: ht(y, F, { ...F.popupSettings, ...M }, L),
|
|
74
|
+
...T !== void 0 ? { direction: T } : {}
|
|
75
75
|
}, $e = t.useCallback(() => y.current && y.current.focus(), []);
|
|
76
76
|
H.current = ve === void 0 ? (m || []).map((e) => ({ text: gt(e, n.textField), data: [e] })) : [...ve], t.useImperativeHandle(
|
|
77
77
|
l,
|
|
@@ -101,11 +101,11 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
101
101
|
[m, s]
|
|
102
102
|
);
|
|
103
103
|
const k = t.useCallback(
|
|
104
|
-
(e,
|
|
104
|
+
(e, i, r) => {
|
|
105
105
|
if (n.onChange) {
|
|
106
106
|
const b = {
|
|
107
|
-
items:
|
|
108
|
-
operation:
|
|
107
|
+
items: i,
|
|
108
|
+
operation: r,
|
|
109
109
|
...e
|
|
110
110
|
};
|
|
111
111
|
n.onChange.call(void 0, b);
|
|
@@ -114,41 +114,41 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
114
114
|
[n.onChange]
|
|
115
115
|
), U = t.useCallback(
|
|
116
116
|
(e) => {
|
|
117
|
-
if (vt(e.item, m,
|
|
117
|
+
if (vt(e.item, m, I) || !l.current)
|
|
118
118
|
return;
|
|
119
|
-
const { item:
|
|
119
|
+
const { item: i, nativeEvent: r, syntheticEvent: b } = e, D = {
|
|
120
120
|
syntheticEvent: b,
|
|
121
|
-
nativeEvent:
|
|
121
|
+
nativeEvent: r,
|
|
122
122
|
target: l.current
|
|
123
123
|
};
|
|
124
|
-
k(
|
|
124
|
+
k(D, [i], "toggle");
|
|
125
125
|
},
|
|
126
|
-
[m,
|
|
126
|
+
[m, I, k]
|
|
127
127
|
), j = t.useCallback(
|
|
128
128
|
(e) => {
|
|
129
129
|
if (!s) {
|
|
130
130
|
if (ae) {
|
|
131
|
-
const
|
|
132
|
-
ae.call(void 0,
|
|
131
|
+
const i = { ...e };
|
|
132
|
+
ae.call(void 0, i);
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
u((
|
|
134
|
+
S === void 0 && (be(!0), We(m || []), P && setTimeout(() => {
|
|
135
|
+
var i;
|
|
136
|
+
u((i = ie.current) == null ? void 0 : i.element);
|
|
137
137
|
}, 300));
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
-
[s,
|
|
140
|
+
[s, S, ae, P, ie]
|
|
141
141
|
), g = t.useCallback(
|
|
142
142
|
(e) => {
|
|
143
143
|
if (s) {
|
|
144
144
|
if (A) {
|
|
145
|
-
const
|
|
146
|
-
A.call(void 0,
|
|
145
|
+
const i = { ...e };
|
|
146
|
+
A.call(void 0, i);
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
S === void 0 && be(!1);
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
[s,
|
|
151
|
+
[s, S, A]
|
|
152
152
|
), h = t.useCallback(
|
|
153
153
|
(e) => {
|
|
154
154
|
$.current = !0, e(), window.setTimeout(() => $.current = !1, 0);
|
|
@@ -162,7 +162,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
162
162
|
), Ge = t.useCallback(
|
|
163
163
|
() => {
|
|
164
164
|
var e;
|
|
165
|
-
!d && s ? g({ target: l.current }) : n.filterable ? u((e =
|
|
165
|
+
!d && s ? g({ target: l.current }) : n.filterable ? u((e = w.current) == null ? void 0 : e.element) : u(E.current && E.current.element);
|
|
166
166
|
},
|
|
167
167
|
[d, s, u, g, n.filterable]
|
|
168
168
|
), Ue = t.useCallback(
|
|
@@ -172,33 +172,33 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
172
172
|
[d, u]
|
|
173
173
|
), je = t.useCallback(
|
|
174
174
|
(e) => {
|
|
175
|
-
if (!d && !$.current && (
|
|
176
|
-
const
|
|
175
|
+
if (!d && !$.current && (re(!0), n.onFocus && l.current)) {
|
|
176
|
+
const i = {
|
|
177
177
|
syntheticEvent: e,
|
|
178
178
|
nativeEvent: e.nativeEvent,
|
|
179
179
|
target: l.current
|
|
180
180
|
};
|
|
181
|
-
n.onFocus.call(void 0,
|
|
181
|
+
n.onFocus.call(void 0, i);
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
[d, n.onFocus]
|
|
185
185
|
), Je = t.useCallback(
|
|
186
186
|
(e) => {
|
|
187
187
|
if (d && !$.current && l.current) {
|
|
188
|
-
|
|
189
|
-
const
|
|
188
|
+
re(!1);
|
|
189
|
+
const i = {
|
|
190
190
|
syntheticEvent: e,
|
|
191
191
|
nativeEvent: e.nativeEvent,
|
|
192
192
|
target: l.current
|
|
193
193
|
};
|
|
194
194
|
if (n.onBlur) {
|
|
195
|
-
const
|
|
196
|
-
n.onBlur.call(void 0,
|
|
195
|
+
const r = { ...i };
|
|
196
|
+
n.onBlur.call(void 0, r);
|
|
197
197
|
}
|
|
198
|
-
P || g(
|
|
198
|
+
P || g(i);
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
-
[d, n.onBlur, s,
|
|
201
|
+
[d, n.onBlur, s, S, A]
|
|
202
202
|
), Qe = t.useCallback(
|
|
203
203
|
() => {
|
|
204
204
|
d && h(Z);
|
|
@@ -207,60 +207,60 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
207
207
|
), Xe = t.useCallback(
|
|
208
208
|
(e) => {
|
|
209
209
|
if (!e.isDefaultPrevented() && l.current) {
|
|
210
|
-
|
|
211
|
-
const
|
|
210
|
+
re(!0);
|
|
211
|
+
const i = {
|
|
212
212
|
syntheticEvent: e,
|
|
213
213
|
nativeEvent: e.nativeEvent,
|
|
214
214
|
target: l.current
|
|
215
215
|
};
|
|
216
|
-
s || j(
|
|
216
|
+
s || j(i);
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
[s, j]
|
|
220
220
|
), Ye = t.useCallback(
|
|
221
221
|
(e) => {
|
|
222
222
|
var Y, we;
|
|
223
|
-
const { keyCode:
|
|
224
|
-
if (!l.current || e.isDefaultPrevented() && ((Y =
|
|
223
|
+
const { keyCode: i, altKey: r } = e, b = E.current && E.current.element;
|
|
224
|
+
if (!l.current || e.isDefaultPrevented() && ((Y = w.current) == null ? void 0 : Y.element) === e.target)
|
|
225
225
|
return;
|
|
226
|
-
const
|
|
226
|
+
const D = {
|
|
227
227
|
syntheticEvent: e,
|
|
228
228
|
nativeEvent: e.nativeEvent,
|
|
229
229
|
target: l.current
|
|
230
230
|
};
|
|
231
|
-
if (m && m.length > 0 && (
|
|
231
|
+
if (m && m.length > 0 && (i === o.left || i === o.right || i === o.home || i === o.end || i === o.delete)) {
|
|
232
232
|
const c = H.current;
|
|
233
|
-
let p = N ? c.findIndex((nt) => De(nt, N,
|
|
233
|
+
let p = N ? c.findIndex((nt) => De(nt, N, I)) : -1, f;
|
|
234
234
|
const ue = p !== -1;
|
|
235
|
-
|
|
235
|
+
i === o.left ? (ue ? p = Math.max(0, p - 1) : p = c.length - 1, f = c[p]) : i === o.right ? p === c.length - 1 ? f = void 0 : ue && (p = Math.min(c.length - 1, p + 1), f = c[p]) : i === o.home ? f = c[0] : i === o.end ? f = c[c.length - 1] : i === o.delete && ue && k(D, c[p].data, "delete"), f !== N && Ve(f);
|
|
236
236
|
}
|
|
237
237
|
if (s)
|
|
238
|
-
if (
|
|
239
|
-
e.preventDefault(), g(
|
|
240
|
-
else if (b && b.querySelector(".k-focus") && (
|
|
241
|
-
if (
|
|
238
|
+
if (i === o.esc || r && i === o.up)
|
|
239
|
+
e.preventDefault(), g(D);
|
|
240
|
+
else if (b && b.querySelector(".k-focus") && (i === o.up || i === o.down || i === o.left || i === o.right || i === o.home || i === o.end)) {
|
|
241
|
+
if (i === o.up && ((we = w.current) != null && we.element)) {
|
|
242
242
|
const c = Array.from(b.querySelectorAll(".k-treeview-item")), p = [...c].reverse().find((f) => !!(f && f.querySelector(".k-focus")));
|
|
243
243
|
if (p && c.indexOf(p) === 0)
|
|
244
244
|
return h(() => {
|
|
245
245
|
var f;
|
|
246
|
-
u((f =
|
|
246
|
+
u((f = w.current) == null ? void 0 : f.element);
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
h(Z);
|
|
250
250
|
} else
|
|
251
|
-
|
|
251
|
+
i === o.down && h(() => {
|
|
252
252
|
var c;
|
|
253
|
-
u(((c =
|
|
253
|
+
u(((c = w.current) == null ? void 0 : c.element) || b);
|
|
254
254
|
});
|
|
255
255
|
else
|
|
256
|
-
|
|
256
|
+
r && i === o.down && (e.preventDefault(), j(D));
|
|
257
257
|
},
|
|
258
|
-
[s, g, u, h, j, N,
|
|
258
|
+
[s, g, u, h, j, N, I, m, k]
|
|
259
259
|
), Ce = t.useCallback(
|
|
260
260
|
(e) => {
|
|
261
|
-
const { keyCode:
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
const { keyCode: i, altKey: r } = e;
|
|
262
|
+
r || i !== o.up && i !== o.down || (e.preventDefault(), h(
|
|
263
|
+
i === o.up ? () => {
|
|
264
264
|
u(y.current);
|
|
265
265
|
} : () => {
|
|
266
266
|
u(E.current && E.current.element);
|
|
@@ -272,20 +272,20 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
272
272
|
(e) => {
|
|
273
273
|
if (!l.current)
|
|
274
274
|
return;
|
|
275
|
-
const
|
|
275
|
+
const i = {
|
|
276
276
|
syntheticEvent: e,
|
|
277
277
|
nativeEvent: e.nativeEvent,
|
|
278
278
|
target: l.current
|
|
279
279
|
};
|
|
280
|
-
k(
|
|
280
|
+
k(i, [], "clear"), g(i), e.preventDefault();
|
|
281
281
|
},
|
|
282
282
|
[k, g]
|
|
283
283
|
), Ze = t.useCallback(
|
|
284
|
-
(e,
|
|
285
|
-
var
|
|
286
|
-
g({ target: l.current }), d || u((
|
|
287
|
-
syntheticEvent:
|
|
288
|
-
nativeEvent:
|
|
284
|
+
(e, i) => {
|
|
285
|
+
var r;
|
|
286
|
+
g({ target: l.current }), d || u((r = w.current) == null ? void 0 : r.element), k({
|
|
287
|
+
syntheticEvent: i,
|
|
288
|
+
nativeEvent: i.nativeEvent,
|
|
289
289
|
target: l.current
|
|
290
290
|
}, e, "delete");
|
|
291
291
|
},
|
|
@@ -293,11 +293,11 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
293
293
|
), Ee = t.useCallback(
|
|
294
294
|
(e) => {
|
|
295
295
|
if (n.onExpandChange && l.current) {
|
|
296
|
-
const { item:
|
|
297
|
-
level: wt(
|
|
298
|
-
item:
|
|
296
|
+
const { item: i, itemHierarchicalIndex: r, nativeEvent: b, syntheticEvent: D } = e, Y = {
|
|
297
|
+
level: wt(r),
|
|
298
|
+
item: i,
|
|
299
299
|
nativeEvent: b,
|
|
300
|
-
syntheticEvent:
|
|
300
|
+
syntheticEvent: D,
|
|
301
301
|
target: l.current
|
|
302
302
|
};
|
|
303
303
|
n.onExpandChange.call(void 0, Y);
|
|
@@ -307,13 +307,13 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
307
307
|
), ke = t.useCallback(
|
|
308
308
|
(e) => {
|
|
309
309
|
if (n.onFilterChange && l.current) {
|
|
310
|
-
const
|
|
310
|
+
const r = {
|
|
311
311
|
filter: { field: n.textField, operator: "contains", value: e.target.value },
|
|
312
312
|
syntheticEvent: e.syntheticEvent,
|
|
313
313
|
nativeEvent: e.nativeEvent,
|
|
314
314
|
target: l.current
|
|
315
315
|
};
|
|
316
|
-
n.onFilterChange.call(void 0,
|
|
316
|
+
n.onFilterChange.call(void 0, r), n.filter === void 0 && ze(e.target.value);
|
|
317
317
|
}
|
|
318
318
|
},
|
|
319
319
|
[n.onFilterChange, n.filter, n.textField]
|
|
@@ -321,12 +321,12 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
321
321
|
(e) => {
|
|
322
322
|
if (!l.current)
|
|
323
323
|
return;
|
|
324
|
-
const
|
|
324
|
+
const i = {
|
|
325
325
|
syntheticEvent: e,
|
|
326
326
|
nativeEvent: e.nativeEvent,
|
|
327
327
|
target: l.current
|
|
328
328
|
};
|
|
329
|
-
n.onCancel && n.onCancel.call(void 0,
|
|
329
|
+
n.onCancel && n.onCancel.call(void 0, i), g(i), e.preventDefault();
|
|
330
330
|
},
|
|
331
331
|
[n.onCancel, g]
|
|
332
332
|
), et = () => {
|
|
@@ -334,33 +334,33 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
334
334
|
Ne,
|
|
335
335
|
{
|
|
336
336
|
value: n.filter === void 0 ? ye : n.filter,
|
|
337
|
-
ref:
|
|
337
|
+
ref: ie,
|
|
338
338
|
onChange: ke,
|
|
339
339
|
onKeyDown: Ce,
|
|
340
340
|
size: v,
|
|
341
341
|
rounded: V,
|
|
342
342
|
fillMode: Q
|
|
343
343
|
}
|
|
344
|
-
) : null,
|
|
344
|
+
) : null, i = {
|
|
345
345
|
adaptiveTitle: n.adaptiveTitle,
|
|
346
346
|
expand: s,
|
|
347
|
-
onClose: (
|
|
347
|
+
onClose: (r) => n.onCancel ? Fe(r) : ce(r),
|
|
348
348
|
windowWidth: oe,
|
|
349
349
|
mobileFilter: e,
|
|
350
350
|
footer: {
|
|
351
351
|
cancelText: J.toLanguageString(Re, ne[Re]),
|
|
352
|
-
onCancel: (
|
|
352
|
+
onCancel: (r) => n.onCancel ? Fe(r) : ce(r),
|
|
353
353
|
applyText: J.toLanguageString(Me, ne[Me]),
|
|
354
|
-
onApply: (
|
|
354
|
+
onApply: (r) => g(r)
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
return /* @__PURE__ */ t.createElement(kt, { ...
|
|
357
|
+
return /* @__PURE__ */ t.createElement(kt, { ...i }, /* @__PURE__ */ t.createElement(Ft, { className: "!k-overflow-hidden" }, /* @__PURE__ */ t.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ t.createElement("div", { className: "k-list k-list-lg" }, q.length > 0 ? /* @__PURE__ */ t.createElement(
|
|
358
358
|
Te,
|
|
359
359
|
{
|
|
360
360
|
ref: E,
|
|
361
361
|
tabIndex: z,
|
|
362
362
|
data: q,
|
|
363
|
-
focusIdField:
|
|
363
|
+
focusIdField: I,
|
|
364
364
|
textField: n.textField,
|
|
365
365
|
checkField: fe,
|
|
366
366
|
checkIndeterminateField: me,
|
|
@@ -373,13 +373,13 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
373
373
|
checkboxes: !0,
|
|
374
374
|
size: v,
|
|
375
375
|
item: n.item,
|
|
376
|
-
dir:
|
|
376
|
+
dir: T
|
|
377
377
|
}
|
|
378
378
|
) : /* @__PURE__ */ t.createElement(xe, null, J.toLanguageString(te, ne[te]))))));
|
|
379
379
|
}, tt = t.useCallback(
|
|
380
380
|
(e) => {
|
|
381
|
-
for (let
|
|
382
|
-
qe(
|
|
381
|
+
for (let i of e)
|
|
382
|
+
qe(i.target.clientWidth);
|
|
383
383
|
},
|
|
384
384
|
[]
|
|
385
385
|
), xe = n.listNoData || bt, J = ft(), Ie = !Be || se.valid, { size: v, rounded: V, fillMode: Q } = n, X = P && s ? Ae : H.current, Se = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
@@ -397,9 +397,9 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
397
397
|
}),
|
|
398
398
|
tabIndex: z,
|
|
399
399
|
accessKey: n.accessKey,
|
|
400
|
-
id:
|
|
400
|
+
id: x,
|
|
401
401
|
style: B ? { ...L, width: void 0 } : L,
|
|
402
|
-
dir:
|
|
402
|
+
dir: T,
|
|
403
403
|
ref: y,
|
|
404
404
|
onKeyDown: C ? void 0 : Ye,
|
|
405
405
|
onMouseDown: Qe,
|
|
@@ -411,14 +411,14 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
411
411
|
"aria-disabled": C,
|
|
412
412
|
"aria-label": B,
|
|
413
413
|
"aria-labelledby": n.ariaLabelledBy,
|
|
414
|
-
"aria-describedby": n.ariaDescribedBy ? n.ariaDescribedBy : "tagslist-" +
|
|
414
|
+
"aria-describedby": n.ariaDescribedBy ? n.ariaDescribedBy : "tagslist-" + x,
|
|
415
415
|
"aria-required": n.required,
|
|
416
416
|
onClick: C ? void 0 : Xe
|
|
417
417
|
},
|
|
418
418
|
/* @__PURE__ */ t.createElement(
|
|
419
419
|
"div",
|
|
420
420
|
{
|
|
421
|
-
id: "tagslist-" +
|
|
421
|
+
id: "tagslist-" + x,
|
|
422
422
|
className: ee("k-input-values k-chip-list", {
|
|
423
423
|
[`k-chip-list-${Pe[v] || v}`]: v
|
|
424
424
|
})
|
|
@@ -429,8 +429,8 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
429
429
|
tag: n.tag,
|
|
430
430
|
onTagDelete: Ze,
|
|
431
431
|
data: X,
|
|
432
|
-
guid:
|
|
433
|
-
focused: N ? H.current.find((e) => De(e, N,
|
|
432
|
+
guid: x,
|
|
433
|
+
focused: N ? H.current.find((e) => De(e, N, I)) : void 0,
|
|
434
434
|
size: v
|
|
435
435
|
}
|
|
436
436
|
)
|
|
@@ -463,7 +463,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
463
463
|
M.popupClass,
|
|
464
464
|
"k-multiselecttree-popup"
|
|
465
465
|
),
|
|
466
|
-
className: ee(M.className, { "k-rtl":
|
|
466
|
+
className: ee(M.className, { "k-rtl": T === "rtl" }),
|
|
467
467
|
style: _e,
|
|
468
468
|
anchor: M.anchor || y.current,
|
|
469
469
|
show: s,
|
|
@@ -475,7 +475,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
475
475
|
Ne,
|
|
476
476
|
{
|
|
477
477
|
value: n.filter === void 0 ? ye : n.filter,
|
|
478
|
-
ref:
|
|
478
|
+
ref: w,
|
|
479
479
|
onChange: ke,
|
|
480
480
|
onKeyDown: Ce,
|
|
481
481
|
tabIndex: z,
|
|
@@ -493,7 +493,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
493
493
|
ref: E,
|
|
494
494
|
tabIndex: z,
|
|
495
495
|
data: q,
|
|
496
|
-
focusIdField:
|
|
496
|
+
focusIdField: I,
|
|
497
497
|
textField: n.textField,
|
|
498
498
|
checkField: fe,
|
|
499
499
|
checkIndeterminateField: me,
|
|
@@ -506,7 +506,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
506
506
|
checkboxes: !0,
|
|
507
507
|
size: v,
|
|
508
508
|
item: n.item,
|
|
509
|
-
dir:
|
|
509
|
+
dir: T
|
|
510
510
|
}
|
|
511
511
|
) : /* @__PURE__ */ t.createElement(xe, null, J.toLanguageString(te, ne[te]))
|
|
512
512
|
)
|
|
@@ -519,10 +519,10 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
519
519
|
editorPlaceholder: pe,
|
|
520
520
|
editorValid: Ie,
|
|
521
521
|
editorDisabled: C,
|
|
522
|
-
editorId:
|
|
522
|
+
editorId: x,
|
|
523
523
|
style: { width: L ? L.width : void 0 },
|
|
524
524
|
children: Se,
|
|
525
|
-
dir:
|
|
525
|
+
dir: T
|
|
526
526
|
}
|
|
527
527
|
) : Se;
|
|
528
528
|
}), Rt = {
|
|
@@ -584,7 +584,7 @@ const It = "Please select a value from the list!", { sizeMap: Pe, roundedMap: St
|
|
|
584
584
|
adaptive: a.bool
|
|
585
585
|
};
|
|
586
586
|
de.displayName = "KendoReactMultiSelectTree";
|
|
587
|
-
de.defaultProps =
|
|
587
|
+
de.defaultProps = F;
|
|
588
588
|
de.propTypes = Rt;
|
|
589
589
|
export {
|
|
590
590
|
de as MultiSelectTree,
|