@progress/kendo-react-dropdowns 10.1.0-develop.1 → 10.1.0-develop.11

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.
@@ -7,27 +7,27 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import n from "prop-types";
10
- import { createPropsContext as Ze, validatePackage as et, usePropsContext as tt, useId as nt, getTabIndex as ot, useRtl as at, useAdaptiveModeContext as rt, canUseDOM as it, Keys as c, noop as j, mapTree as lt, extendDataItem as st, classNames as ae, IconWrap as Fe, WatermarkOverlay as ct, kendoThemeMaps as ut } from "@progress/kendo-react-common";
11
- import { Popup as dt } from "@progress/kendo-react-popup";
12
- import { useLocalization as pt } from "@progress/kendo-react-intl";
13
- import { TreeView as De } from "@progress/kendo-react-treeview";
14
- import { packageMetadata as mt } from "../package-metadata.mjs";
15
- import { getItemValue as ft, areSame as Ie, isPresent as vt } from "../common/utils.mjs";
16
- import { useDropdownWidth as gt } from "./useDropdownWidth.mjs";
17
- import { ListNoData as bt } from "./ListNoData.mjs";
18
- import { clear as Se, messages as re, nodata as G } from "../messages/index.mjs";
19
- import { FloatingLabel as ht } from "@progress/kendo-react-labels";
20
- import Me from "../common/ListFilter.mjs";
21
- import { Button as yt } from "@progress/kendo-react-buttons";
22
- import { xIcon as Et, caretAltDownIcon as Ct } from "@progress/kendo-svg-icons";
23
- import { AdaptiveMode as kt } from "../common/AdaptiveMode.mjs";
24
- import { ActionSheetContent as xt } from "@progress/kendo-react-layout";
25
- const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the list!", It = (E) => /* @__PURE__ */ t.createElement("span", { className: "k-input-value-text" }, E.children), Re = (E) => E.split("_").map((D) => parseInt(D, 10)), St = (E, D) => {
26
- const { validationMessage: U, valid: r, required: a } = E;
10
+ import { createPropsContext as nt, validatePackage as ot, usePropsContext as at, useId as rt, getTabIndex as it, ZIndexContext as Fe, useRtl as lt, useAdaptiveModeContext as st, canUseDOM as ct, Keys as c, noop as $, mapTree as ut, extendDataItem as dt, classNames as ae, IconWrap as Ie, WatermarkOverlay as pt, kendoThemeMaps as mt } from "@progress/kendo-react-common";
11
+ import { Popup as ft } from "@progress/kendo-react-popup";
12
+ import { useLocalization as vt } from "@progress/kendo-react-intl";
13
+ import { TreeView as Se } from "@progress/kendo-react-treeview";
14
+ import { packageMetadata as gt } from "../package-metadata.mjs";
15
+ import { getItemValue as bt, areSame as Re, isPresent as ht } from "../common/utils.mjs";
16
+ import { useDropdownWidth as Et } from "./useDropdownWidth.mjs";
17
+ import { ListNoData as yt } from "./ListNoData.mjs";
18
+ import { clear as Te, messages as re, nodata as U } from "../messages/index.mjs";
19
+ import { FloatingLabel as Ct } from "@progress/kendo-react-labels";
20
+ import Ne from "../common/ListFilter.mjs";
21
+ import { Button as kt } from "@progress/kendo-react-buttons";
22
+ import { xIcon as xt, caretAltDownIcon as wt } from "@progress/kendo-svg-icons";
23
+ import { AdaptiveMode as Dt } from "../common/AdaptiveMode.mjs";
24
+ import { ActionSheetContent as Ft } from "@progress/kendo-react-layout";
25
+ const { sizeMap: It, roundedMap: St } = mt, Rt = 12e3, Tt = 2e3, Nt = "Please select a value from the list!", Pt = (y) => /* @__PURE__ */ t.createElement("span", { className: "k-input-value-text" }, y.children), Pe = (y) => y.split("_").map((F) => parseInt(F, 10)), Mt = (y, F) => {
26
+ const { validationMessage: X, valid: r, required: a } = y;
27
27
  return {
28
- customError: U !== void 0,
29
- valid: !!(r !== void 0 ? r : !a || D),
30
- valueMissing: !D
28
+ customError: X !== void 0,
29
+ valid: !!(r !== void 0 ? r : !a || F),
30
+ valueMissing: !F
31
31
  };
32
32
  }, ie = {
33
33
  selectField: "selected",
@@ -44,64 +44,64 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
44
44
  size: "medium",
45
45
  rounded: "medium",
46
46
  fillMode: "solid"
47
- }, Mt = Ze(), Te = t.forwardRef((E, D) => {
48
- const U = !et(mt, { component: "DropDownTree" }), r = tt(Mt, E), a = {
47
+ }, Ot = nt(), Me = t.forwardRef((y, F) => {
48
+ const X = !ot(gt, { component: "DropDownTree" }), r = at(Ot, y), a = {
49
49
  ...ie,
50
50
  ...r
51
- }, Ne = nt(), le = a.id || Ne, {
52
- data: T,
53
- dataItemKey: N,
51
+ }, Oe = rt(), le = a.id || Oe, {
52
+ data: N,
53
+ dataItemKey: P,
54
54
  popupSettings: b = {},
55
- style: P,
55
+ style: M,
56
56
  opened: u,
57
57
  disabled: I,
58
- onOpen: V = j,
59
- onClose: m = j,
60
- placeholder: J,
61
- label: O,
62
- name: Pe,
58
+ onOpen: O = $,
59
+ onClose: m = $,
60
+ placeholder: j,
61
+ label: V,
62
+ name: Ve,
63
63
  selectField: z,
64
- subItemsField: K,
64
+ subItemsField: W,
65
65
  validationMessage: H,
66
- valid: Ve,
67
- required: Q,
68
- validityStyles: Oe
69
- } = a, X = ot(a.tabIndex, I), i = t.useRef(null), f = t.useRef(null), S = t.useRef(null), Y = t.useRef(null), $ = t.useRef(null), h = t.useRef(null), _ = t.useRef(!1), [se, Ke] = t.useState(void 0), C = a.value !== void 0, v = C ? a.value : se !== void 0 ? se : a.defaultValue, L = vt(v), Z = L ? ft(v, a.textField) : "", ee = St({ validationMessage: H, valid: Ve, required: Q }, L), Le = t.useCallback(() => f.current && f.current.focus(), []);
66
+ valid: We,
67
+ required: G,
68
+ validityStyles: Le
69
+ } = a, J = it(a.tabIndex, I), i = t.useRef(null), f = t.useRef(null), S = t.useRef(null), Q = t.useRef(null), _ = t.useRef(null), h = t.useRef(null), Z = t.useRef(!1), [se, Ke] = t.useState(void 0), C = a.value !== void 0, v = C ? a.value : se !== void 0 ? se : a.defaultValue, L = ht(v), Y = L ? bt(v, a.textField) : "", ee = Mt({ validationMessage: H, valid: We, required: G }, L), ce = t.useContext(Fe), Be = ce ? ce + Tt : Rt, qe = t.useCallback(() => f.current && f.current.focus(), []);
70
70
  t.useImperativeHandle(i, () => ({
71
71
  props: a,
72
72
  element: f.current,
73
- focus: Le
74
- })), t.useImperativeHandle(D, () => i.current);
75
- const k = at(f, a.dir), We = {
76
- width: gt(
73
+ focus: qe
74
+ })), t.useImperativeHandle(F, () => i.current);
75
+ const k = lt(f, a.dir), Ae = {
76
+ width: Et(
77
77
  f,
78
78
  ie,
79
79
  { ...ie.popupSettings, ...b },
80
- P
80
+ M
81
81
  ),
82
82
  ...k !== void 0 ? { direction: k } : {}
83
- }, [Be, ce] = t.useState(!1), l = u !== void 0 ? u : Be, [d, te] = t.useState(!1), [ne, qe] = t.useState(), [ue, Ae] = t.useState(""), de = rt(), x = !!(ne && de && ne <= de.medium && a.adaptive), ze = t.useCallback(() => {
84
- $.current && $.current.setCustomValidity && $.current.setCustomValidity(
85
- ee.valid ? "" : H === void 0 ? Dt : H
83
+ }, [ze, ue] = t.useState(!1), l = u !== void 0 ? u : ze, [d, te] = t.useState(!1), [ne, He] = t.useState(), [de, _e] = t.useState(""), pe = st(), x = !!(ne && pe && ne <= pe.medium && a.adaptive), Ze = t.useCallback(() => {
84
+ _.current && _.current.setCustomValidity && _.current.setCustomValidity(
85
+ ee.valid ? "" : H === void 0 ? Nt : H
86
86
  );
87
87
  }, [H, ee]);
88
- t.useEffect(ze), t.useEffect(() => {
89
- const e = it && window.ResizeObserver && new window.ResizeObserver(Xe.bind(void 0));
88
+ t.useEffect(Ze), t.useEffect(() => {
89
+ const e = ct && window.ResizeObserver && new window.ResizeObserver(et.bind(void 0));
90
90
  return document != null && document.body && e && e.observe(document.body), () => {
91
91
  document != null && document.body && e && e.disconnect();
92
92
  };
93
93
  }, []);
94
- const pe = t.useCallback(
94
+ const me = t.useCallback(
95
95
  (e) => {
96
96
  if (!l) {
97
- if (V) {
97
+ if (O) {
98
98
  const o = { ...e };
99
- V.call(void 0, o);
99
+ O.call(void 0, o);
100
100
  }
101
- u === void 0 && ce(!0);
101
+ u === void 0 && ue(!0);
102
102
  }
103
103
  },
104
- [l, u, V]
104
+ [l, u, O]
105
105
  ), w = t.useCallback(
106
106
  (e) => {
107
107
  if (l) {
@@ -109,14 +109,14 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
109
109
  const o = { ...e };
110
110
  m.call(void 0, o);
111
111
  }
112
- u === void 0 && (ce(!1), x && setTimeout(() => {
112
+ u === void 0 && (ue(!1), x && setTimeout(() => {
113
113
  var o;
114
- g((o = Y.current) == null ? void 0 : o.element);
114
+ g((o = Q.current) == null ? void 0 : o.element);
115
115
  }, 300));
116
116
  }
117
117
  },
118
118
  [l, u, m, x]
119
- ), He = t.useCallback(
119
+ ), $e = t.useCallback(
120
120
  (e) => {
121
121
  if (!e.isDefaultPrevented() && i.current) {
122
122
  te(!0);
@@ -125,48 +125,46 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
125
125
  nativeEvent: e.nativeEvent,
126
126
  target: i.current
127
127
  };
128
- (l ? w : pe)(o);
128
+ (l ? w : me)(o);
129
129
  }
130
130
  },
131
- [l, u, V, m]
132
- ), M = t.useCallback((e) => {
133
- _.current = !0, e(), window.setTimeout(() => _.current = !1, 0);
134
- }, []), $e = t.useCallback(
131
+ [l, u, O, m]
132
+ ), R = t.useCallback((e) => {
133
+ Z.current = !0, e(), window.setTimeout(() => Z.current = !1, 0);
134
+ }, []), Ue = t.useCallback(
135
135
  (e) => {
136
- var F, xe;
136
+ var D, we;
137
137
  const { keyCode: o, altKey: s } = e, p = h.current && h.current.element;
138
- if (!i.current || e.isDefaultPrevented() && ((F = S.current) == null ? void 0 : F.element) === e.target)
138
+ if (!i.current || e.isDefaultPrevented() && ((D = S.current) == null ? void 0 : D.element) === e.target)
139
139
  return;
140
- const R = {
140
+ const T = {
141
141
  syntheticEvent: e,
142
142
  nativeEvent: e.nativeEvent,
143
143
  target: i.current
144
144
  };
145
145
  if (l)
146
146
  if (o === c.esc || s && o === c.up)
147
- e.preventDefault(), w(R);
147
+ e.preventDefault(), w(T);
148
148
  else if (p && p.querySelector(".k-focus") && (o === c.up || o === c.down || o === c.left || o === c.right || o === c.home || o === c.end)) {
149
- if (o === c.up && ((xe = S.current) != null && xe.element)) {
150
- const q = Array.from(p.querySelectorAll(".k-treeview-item")), we = [...q].reverse().find((A) => !!(A && A.querySelector(".k-focus")));
151
- if (we && q.indexOf(we) === 0)
152
- return M(() => {
149
+ if (o === c.up && ((we = S.current) != null && we.element)) {
150
+ const q = Array.from(p.querySelectorAll(".k-treeview-item")), De = [...q].reverse().find((A) => !!(A && A.querySelector(".k-focus")));
151
+ if (De && q.indexOf(De) === 0)
152
+ return R(() => {
153
153
  var A;
154
154
  g((A = S.current) == null ? void 0 : A.element);
155
155
  });
156
156
  }
157
- M(j);
158
- } else
159
- o === c.down && M(() => {
160
- var q;
161
- g(((q = S.current) == null ? void 0 : q.element) || p);
162
- });
163
- else
164
- s && o === c.down ? (e.preventDefault(), pe(R)) : l || o === c.esc && ge(e);
157
+ R($);
158
+ } else o === c.down && R(() => {
159
+ var q;
160
+ g(((q = S.current) == null ? void 0 : q.element) || p);
161
+ });
162
+ else s && o === c.down ? (e.preventDefault(), me(T)) : l || o === c.esc && be(e);
165
163
  },
166
- [l, u, V, m]
167
- ), me = t.useCallback((e) => {
164
+ [l, u, O, m]
165
+ ), fe = t.useCallback((e) => {
168
166
  const { keyCode: o, altKey: s } = e;
169
- s || o !== c.up && o !== c.down || (e.preventDefault(), M(
167
+ s || o !== c.up && o !== c.down || (e.preventDefault(), R(
170
168
  o === c.up ? () => {
171
169
  g(f.current);
172
170
  } : () => {
@@ -174,15 +172,15 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
174
172
  }
175
173
  ));
176
174
  }, []), g = t.useCallback((e) => {
177
- e && M(() => e.focus());
178
- }, []), _e = t.useCallback(() => {
175
+ e && R(() => e.focus());
176
+ }, []), Xe = t.useCallback(() => {
179
177
  var e;
180
178
  !d && l && !u ? w({ target: i.current }) : r.filterable ? g((e = S.current) == null ? void 0 : e.element) : g(h.current && h.current.element);
181
179
  }, [m, r.filterable, d, u, l]), je = t.useCallback(() => {
182
180
  d && g(f.current);
183
181
  }, [d]), Ge = t.useCallback(
184
182
  (e) => {
185
- if (!d && !_.current && (te(!0), r.onFocus && i.current)) {
183
+ if (!d && !Z.current && (te(!0), r.onFocus && i.current)) {
186
184
  const o = {
187
185
  syntheticEvent: e,
188
186
  nativeEvent: e.nativeEvent,
@@ -192,9 +190,9 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
192
190
  }
193
191
  },
194
192
  [d, r.onFocus]
195
- ), Ue = t.useCallback(
193
+ ), Je = t.useCallback(
196
194
  (e) => {
197
- if (d && !_.current && i.current) {
195
+ if (d && !Z.current && i.current) {
198
196
  te(!1);
199
197
  const o = {
200
198
  syntheticEvent: e,
@@ -209,17 +207,17 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
209
207
  }
210
208
  },
211
209
  [d, r.onBlur, l, u, m]
212
- ), Je = t.useCallback(() => {
213
- d && M(j), x && setTimeout(() => {
210
+ ), Qe = t.useCallback(() => {
211
+ d && R($), x && setTimeout(() => {
214
212
  var e;
215
- g((e = Y.current) == null ? void 0 : e.element);
213
+ g((e = Q.current) == null ? void 0 : e.element);
216
214
  }, 300);
217
- }, [d, x]), fe = t.useCallback(
215
+ }, [d, x]), ve = t.useCallback(
218
216
  (e, o, s) => {
219
217
  if (r.onChange) {
220
218
  const p = {
221
219
  value: o,
222
- level: s ? Re(s) : [],
220
+ level: s ? Pe(s) : [],
223
221
  ...e
224
222
  };
225
223
  r.onChange.call(void 0, p);
@@ -227,19 +225,19 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
227
225
  C || Ke(o);
228
226
  },
229
227
  [r.onChange, C]
230
- ), ve = t.useCallback(
228
+ ), ge = t.useCallback(
231
229
  (e) => {
232
- if (Ie(e.item, v, N) || !i.current)
230
+ if (Re(e.item, v, P) || !i.current)
233
231
  return;
234
- const { item: o, itemHierarchicalIndex: s, nativeEvent: p, syntheticEvent: R } = e, F = {
235
- syntheticEvent: R,
232
+ const { item: o, itemHierarchicalIndex: s, nativeEvent: p, syntheticEvent: T } = e, D = {
233
+ syntheticEvent: T,
236
234
  nativeEvent: p,
237
235
  target: i.current
238
236
  };
239
- fe(F, o, s), w(F);
237
+ ve(D, o, s), w(D);
240
238
  },
241
- [C, v, r.onChange, N, l, u, m]
242
- ), ge = t.useCallback(
239
+ [C, v, r.onChange, P, l, u, m]
240
+ ), be = t.useCallback(
243
241
  (e) => {
244
242
  if (!i.current)
245
243
  return;
@@ -248,24 +246,24 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
248
246
  nativeEvent: e.nativeEvent,
249
247
  target: i.current
250
248
  };
251
- fe(o, null), w(o), e.preventDefault();
249
+ ve(o, null), w(o), e.preventDefault();
252
250
  },
253
251
  [C, r.onChange, l, u, m]
254
- ), be = t.useCallback(
252
+ ), he = t.useCallback(
255
253
  (e) => {
256
254
  if (e.syntheticEvent.stopPropagation(), r.onExpandChange && i.current) {
257
- const { item: o, itemHierarchicalIndex: s, nativeEvent: p, syntheticEvent: R } = e, F = {
258
- level: Re(s),
255
+ const { item: o, itemHierarchicalIndex: s, nativeEvent: p, syntheticEvent: T } = e, D = {
256
+ level: Pe(s),
259
257
  item: o,
260
258
  nativeEvent: p,
261
- syntheticEvent: R,
259
+ syntheticEvent: T,
262
260
  target: i.current
263
261
  };
264
- r.onExpandChange.call(void 0, F);
262
+ r.onExpandChange.call(void 0, D);
265
263
  }
266
264
  },
267
265
  [r.onExpandChange]
268
- ), he = t.useCallback(
266
+ ), Ee = t.useCallback(
269
267
  (e) => {
270
268
  if (r.onFilterChange && i.current) {
271
269
  const s = {
@@ -278,20 +276,20 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
278
276
  nativeEvent: e.nativeEvent,
279
277
  target: i.current
280
278
  };
281
- r.onFilterChange.call(void 0, s), r.filter === void 0 && Ae(e.target.value);
279
+ r.onFilterChange.call(void 0, s), r.filter === void 0 && _e(e.target.value);
282
280
  }
283
281
  },
284
282
  [r.onFilterChange, r.filter, r.textField]
285
- ), Qe = () => {
283
+ ), Ye = () => {
286
284
  const e = a.filterable ? /* @__PURE__ */ t.createElement(
287
- Me,
285
+ Ne,
288
286
  {
289
- value: a.filter === void 0 ? ue : a.filter,
290
- ref: Y,
291
- onChange: he,
292
- onKeyDown: me,
293
- size: y,
294
- rounded: W,
287
+ value: a.filter === void 0 ? de : a.filter,
288
+ ref: Q,
289
+ onChange: Ee,
290
+ onKeyDown: fe,
291
+ size: E,
292
+ rounded: K,
295
293
  fillMode: B
296
294
  }
297
295
  ) : null, o = {
@@ -301,172 +299,172 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
301
299
  windowWidth: ne,
302
300
  mobileFilter: e
303
301
  };
304
- return /* @__PURE__ */ t.createElement(kt, { ...o }, /* @__PURE__ */ t.createElement(xt, { overflowHidden: !0 }, /* @__PURE__ */ t.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ t.createElement("div", { className: "k-list k-list-lg" }, T.length > 0 ? /* @__PURE__ */ t.createElement(
305
- De,
302
+ return /* @__PURE__ */ t.createElement(Dt, { ...o }, /* @__PURE__ */ t.createElement(Ft, { overflowHidden: !0 }, /* @__PURE__ */ t.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ t.createElement("div", { className: "k-list k-list-lg" }, N.length > 0 ? /* @__PURE__ */ t.createElement(
303
+ Se,
306
304
  {
307
305
  ref: h,
308
- tabIndex: X,
306
+ tabIndex: J,
309
307
  data: ye,
310
- focusIdField: N,
308
+ focusIdField: P,
311
309
  textField: a.textField,
312
310
  selectField: z,
313
311
  expandField: a.expandField,
314
- childrenField: K,
312
+ childrenField: W,
315
313
  expandIcons: !0,
316
- onItemClick: ve,
317
- onExpandChange: be,
318
- size: y,
314
+ onItemClick: ge,
315
+ onExpandChange: he,
316
+ size: E,
319
317
  item: a.item,
320
318
  dir: k,
321
319
  animate: b.animate
322
320
  }
323
- ) : /* @__PURE__ */ t.createElement(Ee, null, oe.toLanguageString(G, re[G]))))));
324
- }, Xe = t.useCallback((e) => {
321
+ ) : /* @__PURE__ */ t.createElement(Ce, null, oe.toLanguageString(U, re[U]))))));
322
+ }, et = t.useCallback((e) => {
325
323
  for (const o of e)
326
- qe(o.target.clientWidth);
327
- }, []), ye = t.useMemo(() => C || !L ? T : lt(
328
- T,
329
- K,
330
- (e) => st(e, K, { [z]: Ie(e, v, N) })
331
- ), [T, v, C, L, z, K]), Ee = a.listNoData || bt, Ye = a.valueHolder || It, oe = pt(), Ce = !Oe || ee.valid, { size: y, rounded: W, fillMode: B } = a, ke = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
324
+ He(o.target.clientWidth);
325
+ }, []), ye = t.useMemo(() => C || !L ? N : ut(
326
+ N,
327
+ W,
328
+ (e) => dt(e, W, { [z]: Re(e, v, P) })
329
+ ), [N, v, C, L, z, W]), Ce = a.listNoData || yt, tt = a.valueHolder || Pt, oe = vt(), ke = !Le || ee.valid, { size: E, rounded: K, fillMode: B } = a, xe = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
332
330
  "span",
333
331
  {
334
332
  className: ae("k-dropdowntree k-picker", a.className, {
335
- [`k-picker-${wt[y] || y}`]: y,
336
- [`k-rounded-${Ft[W] || W}`]: W,
333
+ [`k-picker-${It[E] || E}`]: E,
334
+ [`k-rounded-${St[K] || K}`]: K,
337
335
  [`k-picker-${B}`]: B,
338
336
  "k-focus": d,
339
- "k-invalid": !Ce,
337
+ "k-invalid": !ke,
340
338
  "k-loading": a.loading,
341
- "k-required": Q,
339
+ "k-required": G,
342
340
  "k-disabled": a.disabled
343
341
  }),
344
- tabIndex: X,
342
+ tabIndex: J,
345
343
  accessKey: a.accessKey,
346
344
  id: le,
347
- style: O ? { ...P, width: void 0 } : P,
345
+ style: V ? { ...M, width: void 0 } : M,
348
346
  dir: k,
349
347
  ref: f,
350
- onKeyDown: I ? void 0 : $e,
351
- onMouseDown: Je,
352
- onClick: I ? void 0 : He,
348
+ onKeyDown: I ? void 0 : Ue,
349
+ onMouseDown: Qe,
350
+ onClick: I ? void 0 : $e,
353
351
  onFocus: Ge,
354
- onBlur: Ue,
352
+ onBlur: Je,
355
353
  role: "combobox",
356
354
  "aria-haspopup": "tree",
357
355
  "aria-expanded": l,
358
356
  "aria-disabled": I,
359
- "aria-label": O,
357
+ "aria-label": V,
360
358
  "aria-labelledby": a.ariaLabelledBy,
361
359
  "aria-describedby": a.ariaDescribedBy,
362
- "aria-required": Q
360
+ "aria-required": G
363
361
  },
364
- /* @__PURE__ */ t.createElement("span", { className: "k-input-inner" }, (Z || J) && /* @__PURE__ */ t.createElement(Ye, { item: v }, Z || J)),
365
- a.loading && /* @__PURE__ */ t.createElement(Fe, { className: "k-input-loading-icon", name: "loading" }),
362
+ /* @__PURE__ */ t.createElement("span", { className: "k-input-inner" }, (Y || j) && /* @__PURE__ */ t.createElement(tt, { item: v }, Y || j)),
363
+ a.loading && /* @__PURE__ */ t.createElement(Ie, { className: "k-input-loading-icon", name: "loading" }),
366
364
  L && !I && /* @__PURE__ */ t.createElement(
367
365
  "span",
368
366
  {
369
- onClick: ge,
367
+ onClick: be,
370
368
  className: "k-clear-value",
371
- title: oe.toLanguageString(Se, re[Se]),
369
+ title: oe.toLanguageString(Te, re[Te]),
372
370
  role: "button",
373
371
  tabIndex: -1,
374
372
  onMouseDown: (e) => e.preventDefault()
375
373
  },
376
- /* @__PURE__ */ t.createElement(Fe, { name: "x", icon: Et })
374
+ /* @__PURE__ */ t.createElement(Ie, { name: "x", icon: xt })
377
375
  ),
378
376
  /* @__PURE__ */ t.createElement(
379
- yt,
377
+ kt,
380
378
  {
381
379
  tabIndex: -1,
382
380
  type: "button",
383
381
  "aria-label": "select",
384
382
  className: "k-input-button",
385
- size: y,
383
+ size: E,
386
384
  fillMode: B,
387
385
  themeColor: "base",
388
386
  rounded: null,
389
387
  icon: "caret-alt-down",
390
- svgIcon: Ct
388
+ svgIcon: wt
391
389
  }
392
390
  ),
393
391
  /* @__PURE__ */ t.createElement(
394
392
  "select",
395
393
  {
396
- name: Pe,
397
- ref: $,
394
+ name: Ve,
395
+ ref: _,
398
396
  tabIndex: -1,
399
397
  "aria-hidden": !0,
400
- title: O,
398
+ title: V,
401
399
  style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: "absolute", left: "50%" }
402
400
  },
403
401
  /* @__PURE__ */ t.createElement("option", { value: a.valueMap ? a.valueMap.call(void 0, v) : v })
404
402
  ),
405
- !x && /* @__PURE__ */ t.createElement(
406
- dt,
403
+ !x && /* @__PURE__ */ t.createElement(Fe.Provider, { value: Be }, /* @__PURE__ */ t.createElement(
404
+ ft,
407
405
  {
408
406
  ...b,
409
407
  className: ae(b.className, { "k-rtl": k === "rtl" }),
410
408
  popupClass: ae(b.popupClass, "k-dropdowntree-popup k-list-container"),
411
- style: We,
409
+ style: Ae,
412
410
  anchor: b.anchor || f.current,
413
411
  show: l,
414
- onOpen: _e,
412
+ onOpen: Xe,
415
413
  onClose: je
416
414
  },
417
415
  a.filterable && /* @__PURE__ */ t.createElement(
418
- Me,
416
+ Ne,
419
417
  {
420
- value: a.filter === void 0 ? ue : a.filter,
418
+ value: a.filter === void 0 ? de : a.filter,
421
419
  ref: S,
422
- onChange: he,
423
- onKeyDown: me,
424
- size: y,
425
- rounded: W,
420
+ onChange: Ee,
421
+ onKeyDown: fe,
422
+ size: E,
423
+ rounded: K,
426
424
  fillMode: B,
427
425
  renderListFilterWrapper: !0,
428
426
  renderPrefixSeparator: !0
429
427
  }
430
428
  ),
431
- T.length > 0 ? /* @__PURE__ */ t.createElement(
432
- De,
429
+ N.length > 0 ? /* @__PURE__ */ t.createElement(
430
+ Se,
433
431
  {
434
432
  style: { height: b.height },
435
433
  ref: h,
436
- tabIndex: X,
434
+ tabIndex: J,
437
435
  data: ye,
438
- focusIdField: N,
436
+ focusIdField: P,
439
437
  textField: a.textField,
440
438
  selectField: z,
441
439
  expandField: a.expandField,
442
- childrenField: K,
440
+ childrenField: W,
443
441
  expandIcons: !0,
444
- onItemClick: ve,
445
- onExpandChange: be,
446
- size: y,
442
+ onItemClick: ge,
443
+ onExpandChange: he,
444
+ size: E,
447
445
  item: a.item,
448
446
  dir: k,
449
447
  animate: b.animate
450
448
  }
451
- ) : /* @__PURE__ */ t.createElement(Ee, null, oe.toLanguageString(G, re[G])),
452
- U && /* @__PURE__ */ t.createElement(ct, null)
453
- )
454
- ), x && Qe());
455
- return O ? /* @__PURE__ */ t.createElement(
456
- ht,
449
+ ) : /* @__PURE__ */ t.createElement(Ce, null, oe.toLanguageString(U, re[U])),
450
+ X && /* @__PURE__ */ t.createElement(pt, null)
451
+ ))
452
+ ), x && Ye());
453
+ return V ? /* @__PURE__ */ t.createElement(
454
+ Ct,
457
455
  {
458
- label: O,
459
- editorValue: Z,
460
- editorPlaceholder: J,
461
- editorValid: Ce,
456
+ label: V,
457
+ editorValue: Y,
458
+ editorPlaceholder: j,
459
+ editorValid: ke,
462
460
  editorDisabled: I,
463
461
  editorId: le,
464
- style: { width: P ? P.width : void 0 },
465
- children: ke,
462
+ style: { width: M ? M.width : void 0 },
463
+ children: xe,
466
464
  dir: k
467
465
  }
468
- ) : ke;
469
- }), Rt = {
466
+ ) : xe;
467
+ }), Vt = {
470
468
  opened: n.bool,
471
469
  disabled: n.bool,
472
470
  dir: n.string,
@@ -522,9 +520,9 @@ const { sizeMap: wt, roundedMap: Ft } = ut, Dt = "Please select a value from the
522
520
  adaptiveTitle: n.string,
523
521
  adaptive: n.bool
524
522
  };
525
- Te.displayName = "KendoReactDropDownTree";
526
- Te.propTypes = Rt;
523
+ Me.displayName = "KendoReactDropDownTree";
524
+ Me.propTypes = Vt;
527
525
  export {
528
- Te as DropDownTree,
529
- Mt as DropDownTreePropsContext
526
+ Me as DropDownTree,
527
+ Ot as DropDownTreePropsContext
530
528
  };
@@ -114,8 +114,7 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
114
114
  if (d) {
115
115
  const h = d - i;
116
116
  this.onNavigate(l, a, h);
117
- } else
118
- d !== void 0 && this.onNavigate(l, a);
117
+ } else d !== void 0 && this.onNavigate(l, a);
119
118
  }
120
119
  else if (!this.props.skipDisabledItems && c)
121
120
  this.onNavigate(l, a);
@@ -135,10 +134,8 @@ const { sizeMap: T, roundedMap: yt } = ot, xt = "Please enter a valid value!", $
135
134
  this.onNavigate(l, a);
136
135
  }
137
136
  this.applyState(l), t.preventDefault();
138
- } else
139
- a === u.enter ? (t.preventDefault(), this.props.allowCustom && p && r === null ? this.customItemSelect(t) : r && r.disabled ? m() : this.selectFocusedItem(t)) : a === u.esc && m();
140
- else
141
- t.altKey && a === u.down ? m() : a === u.esc && this.clearButtonClick(t);
137
+ } else a === u.enter ? (t.preventDefault(), this.props.allowCustom && p && r === null ? this.customItemSelect(t) : r && r.disabled ? m() : this.selectFocusedItem(t)) : a === u.esc && m();
138
+ else t.altKey && a === u.down ? m() : a === u.esc && this.clearButtonClick(t);
142
139
  }, this.listContainerContent = () => {
143
140
  const { header: t, footer: e, allowCustom: o, size: s, groupStickyHeaderItemRender: a, groupField: p, list: c } = this.props, r = b(this.props), i = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: l } = this.getFocusedState(), m = o && i && /* @__PURE__ */ f.createElement(
144
141
  "div",