@progress/kendo-react-dropdowns 14.5.0-develop.13 → 14.5.0-develop.15

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.
Files changed (53) hide show
  1. package/AutoComplete/AutoComplete.d.ts +4 -23
  2. package/AutoComplete/AutoComplete.js +1 -1
  3. package/AutoComplete/AutoComplete.mjs +206 -196
  4. package/AutoComplete/AutoCompleteProps.d.ts +18 -1
  5. package/AutoCompleteMcpWrapper.d.ts +17 -0
  6. package/AutoCompleteMcpWrapper.js +8 -0
  7. package/AutoCompleteMcpWrapper.mjs +18 -0
  8. package/ComboBox/ComboBox.d.ts +1 -1
  9. package/ComboBox/ComboBox.js +1 -1
  10. package/ComboBox/ComboBox.mjs +224 -224
  11. package/ComboBox/ComboBoxProps.d.ts +6 -1
  12. package/ComboBoxMcpWrapper.d.ts +17 -0
  13. package/ComboBoxMcpWrapper.js +8 -0
  14. package/ComboBoxMcpWrapper.mjs +18 -0
  15. package/DropDownList/DropDownList.js +1 -1
  16. package/DropDownList/DropDownList.mjs +283 -282
  17. package/DropDownList/DropDownListProps.d.ts +6 -1
  18. package/DropDownTree/DropDownTree.js +1 -1
  19. package/DropDownTree/DropDownTree.mjs +206 -200
  20. package/DropDownTree/DropDownTreeProps.d.ts +18 -1
  21. package/MultiSelect/MultiSelect.d.ts +2 -1
  22. package/MultiSelect/MultiSelect.js +1 -1
  23. package/MultiSelect/MultiSelect.mjs +182 -175
  24. package/MultiSelect/MultiSelectProps.d.ts +6 -1
  25. package/MultiSelect/TagList.js +1 -1
  26. package/MultiSelect/TagList.mjs +1 -1
  27. package/MultiSelectMcpWrapper.d.ts +17 -0
  28. package/MultiSelectMcpWrapper.js +8 -0
  29. package/MultiSelectMcpWrapper.mjs +18 -0
  30. package/MultiSelectTree/MultiSelectTree.js +1 -1
  31. package/MultiSelectTree/MultiSelectTree.mjs +237 -221
  32. package/MultiSelectTree/MultiSelectTreeProps.d.ts +12 -0
  33. package/common/ClearButton.js +1 -1
  34. package/common/ClearButton.mjs +6 -7
  35. package/common/List.d.ts +1 -0
  36. package/common/List.js +1 -1
  37. package/common/List.mjs +84 -81
  38. package/common/ListFilter.js +1 -1
  39. package/common/ListFilter.mjs +20 -17
  40. package/common/SearchBar.d.ts +1 -0
  41. package/common/SearchBar.js +1 -1
  42. package/common/SearchBar.mjs +7 -7
  43. package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
  44. package/index.d.mts +9 -3
  45. package/index.d.ts +9 -3
  46. package/index.js +1 -1
  47. package/index.mjs +51 -47
  48. package/messages/index.d.ts +14 -4
  49. package/messages/index.js +1 -1
  50. package/messages/index.mjs +15 -11
  51. package/package-metadata.js +1 -1
  52. package/package-metadata.mjs +2 -2
  53. package/package.json +10 -10
@@ -7,101 +7,102 @@
7
7
  */
8
8
  import * as i from "react";
9
9
  import C from "prop-types";
10
- import { getLicenseMessage as Qt, usePropsContext as Xt, validatePackage as Zt, useUnstyled as Rt, useId as en, useKendoPaste as tn, canUseDOM as tt, useAdaptiveModeContext as nn, classNames as L, uDropDownList as P, getTabIndex as rn, IconWrap as on, createPropsContext as sn, Keys as h, WatermarkOverlay as an, sizeMap as ln, svgIconPropType as dn } from "@progress/kendo-react-common";
11
- import { FloatingLabel as cn } from "@progress/kendo-react-labels";
12
- import { chevronDownIcon as un } from "@progress/kendo-svg-icons";
13
- import pn from "../common/ListContainer.mjs";
14
- import mn from "../common/ListFilter.mjs";
15
- import nt from "../common/GroupStickyHeader.mjs";
16
- import fn from "../common/ListDefaultItem.mjs";
17
- import vn from "../common/List.mjs";
18
- import dt from "../common/DropDownBase.mjs";
19
- import { getFilteredData as E, getItemIndexByText as gn, areSame as F, getItemValue as ne, isPresent as rt, itemIndexStartsWith as hn, sameCharsOnly as In, shuffleData as yn, matchText as ot } from "../common/utils.mjs";
20
- import { packageMetadata as it } from "../package-metadata.mjs";
21
- import { Button as wn } from "@progress/kendo-react-buttons";
22
- import { useLocalization as xn } from "@progress/kendo-react-intl";
23
- import { dropDownListArrowBtnAriaLabel as st, messages as at, dropDownListAdaptiveFilterPlaceholder as lt } from "../messages/index.mjs";
24
- import { ActionSheetContent as Dn } from "@progress/kendo-react-layout";
25
- import { AdaptiveMode as Sn } from "../common/AdaptiveMode.mjs";
26
- const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) => {
27
- let Me = !1;
28
- const pt = Qt(it), n = Xt(kn, ct), {
29
- delay: mt = O.delay,
30
- tabIndex: ft = O.tabIndex,
31
- ignoreCase: J = O.ignoreCase,
32
- size: z = O.size,
33
- rounded: Ke = O.rounded,
34
- fillMode: fe = O.fillMode
10
+ import { getLicenseMessage as en, usePropsContext as tn, validatePackage as nn, useUnstyled as rn, useId as on, useWebMcpRegister as sn, useKendoPaste as an, canUseDOM as ot, useAdaptiveModeContext as ln, classNames as L, uDropDownList as P, getTabIndex as dn, IconWrap as cn, createPropsContext as un, Keys as h, WatermarkOverlay as pn, sizeMap as mn, svgIconPropType as fn } from "@progress/kendo-react-common";
11
+ import { FloatingLabel as gn } from "@progress/kendo-react-labels";
12
+ import { chevronDownIcon as vn } from "@progress/kendo-svg-icons";
13
+ import hn from "../common/ListContainer.mjs";
14
+ import In from "../common/ListFilter.mjs";
15
+ import it from "../common/GroupStickyHeader.mjs";
16
+ import yn from "../common/ListDefaultItem.mjs";
17
+ import wn from "../common/List.mjs";
18
+ import pt from "../common/DropDownBase.mjs";
19
+ import { getFilteredData as E, getItemIndexByText as xn, areSame as F, getItemValue as re, isPresent as st, itemIndexStartsWith as Sn, sameCharsOnly as Dn, shuffleData as Cn, matchText as at } from "../common/utils.mjs";
20
+ import { packageMetadata as lt } from "../package-metadata.mjs";
21
+ import { Button as kn } from "@progress/kendo-react-buttons";
22
+ import { useLocalization as En } from "@progress/kendo-react-intl";
23
+ import { dropDownListArrowBtnAriaLabel as dt, messages as Me, dropDownListAdaptiveFilterPlaceholder as ct, listAriaLabel as ut } from "../messages/index.mjs";
24
+ import { ActionSheetContent as Ln } from "@progress/kendo-react-layout";
25
+ import { AdaptiveMode as bn } from "../common/AdaptiveMode.mjs";
26
+ const Pn = "Please select a value from the list!", Ke = i.forwardRef((mt, ft) => {
27
+ var tt;
28
+ let Ne = !1;
29
+ const gt = en(lt), n = tn(Fn, mt), {
30
+ delay: vt = z.delay,
31
+ tabIndex: ht = z.tabIndex,
32
+ ignoreCase: J = z.ignoreCase,
33
+ size: H = z.size,
34
+ rounded: Te = z.rounded,
35
+ fillMode: fe = z.fillMode
35
36
  } = n;
36
37
  if (n.filterable || n.virtual) {
37
38
  const e = [];
38
- n.filterable && e.push("filterable"), n.virtual && e.push("virtualization"), Me = !Zt(it, {
39
+ n.filterable && e.push("filterable"), n.virtual && e.push("virtualization"), Ne = !nn(lt, {
39
40
  component: "DropDownList",
40
41
  features: e
41
42
  });
42
43
  }
43
- const K = Rt(), ve = en(n.id), ge = () => {
44
+ const K = rn(), ge = on(n.id), ve = () => {
44
45
  var e;
45
- if (tt)
46
- return ((e = B.current) == null ? void 0 : e.ownerDocument) || window.document;
47
- }, vt = () => {
46
+ if (ot)
47
+ return ((e = V.current) == null ? void 0 : e.ownerDocument) || window.document;
48
+ }, It = () => {
48
49
  var e, r;
49
50
  (e = t == null ? void 0 : t.current) != null && e.wrapper && ((r = t == null ? void 0 : t.current) == null || r.wrapper.focus({ preventScroll: !0 }));
50
51
  }, k = () => {
51
52
  let e;
52
- return A.current !== void 0 && A.current !== null ? e = A.current : n.value !== void 0 ? e = n.value : m.value !== void 0 && m.value !== null ? e = m.value : n.defaultValue !== void 0 && n.defaultValue !== null && (e = n.defaultValue), !rt(e) && n.defaultItem !== void 0 && n.defaultItem !== null && (e = n.defaultItem), e;
53
- }, gt = () => {
53
+ return W.current !== void 0 && W.current !== null ? e = W.current : n.value !== void 0 ? e = n.value : m.value !== void 0 && m.value !== null ? e = m.value : n.defaultValue !== void 0 && n.defaultValue !== null && (e = n.defaultValue), !st(e) && n.defaultItem !== void 0 && n.defaultItem !== null && (e = n.defaultItem), e;
54
+ }, yt = () => {
54
55
  const { dataItemKey: e } = n, r = E(n), o = k();
55
56
  return r.findIndex((l) => F(l, o, e));
56
- }, he = () => n.required !== void 0 ? n.required : O.required, Ie = () => {
57
+ }, he = () => n.required !== void 0 ? n.required : z.required, Ie = () => {
57
58
  const e = n.validationMessage !== void 0, r = k(), o = !he() || r !== null && r !== "" && r !== void 0, l = n.valid !== void 0 ? n.valid : o;
58
59
  return {
59
60
  customError: e,
60
61
  valid: l,
61
62
  valueMissing: r === null
62
63
  };
63
- }, ht = () => n.validityStyles !== void 0 ? n.validityStyles : O.validityStyles, re = (e) => {
64
- oe.current = !0, e.focus(), window.setTimeout(() => oe.current = !1, 30);
64
+ }, wt = () => n.validityStyles !== void 0 ? n.validityStyles : z.validityStyles, oe = (e) => {
65
+ ie.current = !0, e.focus(), window.setTimeout(() => ie.current = !1, 30);
65
66
  }, ye = () => {
66
- X.current && re(X.current), n.adaptive && setTimeout(() => {
67
- X.current && re(X.current);
67
+ X.current && oe(X.current), n.adaptive && setTimeout(() => {
68
+ X.current && oe(X.current);
68
69
  }, 300);
69
- }, It = i.useCallback((e) => {
70
+ }, xt = i.useCallback((e) => {
70
71
  for (const r of e)
71
- Ht(r.target.clientWidth);
72
- }, []), Ne = () => {
72
+ Wt(r.target.clientWidth);
73
+ }, []), Oe = () => {
73
74
  var e;
74
- (e = Se.current) != null && e.setCustomValidity && Se.current.setCustomValidity(
75
- Ie().valid ? "" : n.validationMessage || Cn
75
+ (e = Ce.current) != null && e.setCustomValidity && Ce.current.setCustomValidity(
76
+ Ie().valid ? "" : n.validationMessage || Pn
76
77
  );
77
- }, V = (e, r) => {
78
+ }, A = (e, r) => {
78
79
  const o = k();
79
- F(o, e, n.dataItemKey) || (n.value === void 0 && (r.data.value = e), t.current.updateComponentArgs({ value: e }), A.current = e, r.events.push({ type: "onChange" }));
80
+ F(o, e, n.dataItemKey) || (n.value === void 0 && (r.data.value = e), t.current.updateComponentArgs({ value: e }), W.current = e, r.events.push({ type: "onChange" }));
80
81
  }, M = (e) => {
81
82
  var r;
82
- (r = t == null ? void 0 : t.current) == null || r.applyState(e), A.current = void 0;
83
+ (r = t == null ? void 0 : t.current) == null || r.applyState(e), W.current = void 0;
83
84
  }, Q = (e, r) => {
84
85
  var u;
85
- const { virtual: o, dataItemKey: l, defaultItem: a } = n, c = E(n), p = o ? o.skip : 0, f = k(), d = e === -1 && a !== void 0 ? a : c[e - p], v = !F(d, f, l);
86
- V(d, r), v && ((u = t == null ? void 0 : t.current) == null || u.triggerPageChangeCornerItems(d, r));
87
- }, H = (e, r, o) => {
88
- var S, g;
89
- const { defaultItem: l, dataItemKey: a, virtual: c = { skip: 0, total: 0, pageSize: 0 } } = n, p = k(), f = E(n), d = (S = t == null ? void 0 : t.current) == null ? void 0 : S.vs, v = f.findIndex((I) => F(I, p, a)), u = (g = t == null ? void 0 : t.current) == null ? void 0 : g.navigation.navigate({
90
- current: c.skip + v,
86
+ const { virtual: o, dataItemKey: l, defaultItem: a } = n, c = E(n), p = o ? o.skip : 0, f = k(), d = e === -1 && a !== void 0 ? a : c[e - p], g = !F(d, f, l);
87
+ A(d, r), g && ((u = t == null ? void 0 : t.current) == null || u.triggerPageChangeCornerItems(d, r));
88
+ }, B = (e, r, o) => {
89
+ var D, v;
90
+ const { defaultItem: l, dataItemKey: a, virtual: c = { skip: 0, total: 0, pageSize: 0 } } = n, p = k(), f = E(n), d = (D = t == null ? void 0 : t.current) == null ? void 0 : D.vs, g = f.findIndex((I) => F(I, p, a)), u = (v = t == null ? void 0 : t.current) == null ? void 0 : v.navigation.navigate({
91
+ current: c.skip + g,
91
92
  max: (d != null && d.enabled ? c.total : f.length) - 1,
92
93
  min: l !== void 0 ? -1 : 0,
93
94
  keyCode: r,
94
95
  skipItems: o || void 0
95
96
  });
96
97
  u !== void 0 && Q(u, e), M(e);
97
- }, yt = (e) => {
98
- B.current = e, t.current.wrapper = e;
99
- }, wt = (e) => /* @__PURE__ */ i.createElement(
98
+ }, St = (e) => {
99
+ V.current = e, t.current.wrapper = e;
100
+ }, Dt = (e) => /* @__PURE__ */ i.createElement(
100
101
  "select",
101
102
  {
102
103
  name: n.name,
103
104
  ref: (r) => {
104
- Se.current = r;
105
+ Ce.current = r;
105
106
  },
106
107
  tabIndex: -1,
107
108
  "aria-hidden": !0,
@@ -114,21 +115,21 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
114
115
  textField: e,
115
116
  dataItemKey: r,
116
117
  virtual: o = { skip: 0 },
117
- focusedItemIndex: l = hn,
118
+ focusedItemIndex: l = Sn,
118
119
  filterable: a,
119
120
  skipDisabledItems: c = !0
120
121
  } = n, p = k(), f = E(n), d = n.filter ? n.filter : m.text;
121
- return c && e && !d && !p ? f.findIndex((v) => !v.disabled) : rt(p) && d === void 0 || a && d === "" ? f.findIndex((v) => F(v, p, r)) : d ? Ce.current ? l(f, d, e) : f.findIndex((v) => F(v, p, r)) : o.skip === 0 ? 0 : -1;
122
- }, Te = (e, r) => r !== void 0 && r !== -1 && e && e.length > 0 && e[r].disabled, xe = () => {
122
+ return c && e && !d && !p ? f.findIndex((g) => !g.disabled) : st(p) && d === void 0 || a && d === "" ? f.findIndex((g) => F(g, p, r)) : d ? ke.current ? l(f, d, e) : f.findIndex((g) => F(g, p, r)) : o.skip === 0 ? 0 : -1;
123
+ }, ze = (e, r) => r !== void 0 && r !== -1 && e && e.length > 0 && e[r].disabled, xe = () => {
123
124
  const e = E(n), r = t.current.initState(), o = we();
124
- Te(e, o) && (V(null, r), M(r));
125
- }, De = (e) => {
125
+ ze(e, o) && (A(null, r), M(r));
126
+ }, Se = (e) => {
126
127
  if (e.isPropagationStopped())
127
128
  return;
128
129
  const r = t.current.initState();
129
130
  r.syntheticEvent = e, m.focused || (r.data.focused = !0), xe(), t.current.togglePopup(r), M(r);
130
- }, Oe = (e) => {
131
- var T, pe, G, me, j, Re, et;
131
+ }, He = (e) => {
132
+ var O, pe, G, me, j, nt, rt;
132
133
  e && e.target instanceof Element && e.target.nodeName === "INPUT" && e.stopPropagation && e.stopPropagation();
133
134
  const {
134
135
  filterable: r,
@@ -139,140 +140,140 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
139
140
  dataItemKey: p,
140
141
  groupField: f = "",
141
142
  textField: d,
142
- skipDisabledItems: v = !0
143
- } = n, u = E(n), S = k(), g = u.findIndex((w) => F(w, S, p)), I = n.opened !== void 0 ? n.opened : m.opened, s = e.keyCode, N = s === h.home || s === h.end, b = s === h.up || s === h.down, Y = !I && (e.altKey && s === h.down || s === h.enter || s === h.space), te = I && (e.altKey && s === h.up || s === h.esc), ce = a && (s === h.left || s === h.right), ue = b || ce && !r || N, y = t.current.initState();
143
+ skipDisabledItems: g = !0
144
+ } = n, u = E(n), D = k(), v = u.findIndex((w) => F(w, D, p)), I = n.opened !== void 0 ? n.opened : m.opened, s = e.keyCode, N = s === h.home || s === h.end, b = s === h.up || s === h.down, Y = !I && (e.altKey && s === h.down || s === h.enter || s === h.space), ne = I && (e.altKey && s === h.up || s === h.esc), ce = a && (s === h.left || s === h.right), ue = b || ce && !r || N, y = t.current.initState();
144
145
  if (y.syntheticEvent = e, !o) {
145
- if (N && ((T = t == null ? void 0 : t.current) != null && T.vs.enabled))
146
- s === h.home ? c.skip !== 0 ? ((pe = t == null ? void 0 : t.current) == null || pe.triggerOnPageChange(y, 0, c.pageSize), W.current = !0) : V(u[0], y) : c.skip < c.total - c.pageSize ? ((G = t == null ? void 0 : t.current) == null || G.triggerOnPageChange(
146
+ if (N && ((O = t == null ? void 0 : t.current) != null && O.vs.enabled))
147
+ s === h.home ? c.skip !== 0 ? ((pe = t == null ? void 0 : t.current) == null || pe.triggerOnPageChange(y, 0, c.pageSize), q.current = !0) : A(u[0], y) : c.skip < c.total - c.pageSize ? ((G = t == null ? void 0 : t.current) == null || G.triggerOnPageChange(
147
148
  y,
148
149
  c.total - c.pageSize,
149
150
  c.pageSize
150
- ), W.current = !0) : V(u[u.length - 1], y);
151
+ ), q.current = !0) : A(u[u.length - 1], y);
151
152
  else if (I && s === h.pageUp)
152
153
  e.preventDefault(), (me = t == null ? void 0 : t.current) == null || me.scrollPopupByPageSize(-1);
153
154
  else if (I && s === h.pageDown)
154
155
  e.preventDefault(), (j = t == null ? void 0 : t.current) == null || j.scrollPopupByPageSize(1);
155
156
  else if (I && s === h.enter) {
156
157
  const w = we();
157
- Te(u, w) ? (V(null, y), M(y)) : Q(w, y), (Re = t == null ? void 0 : t.current) == null || Re.togglePopup(y), e.preventDefault();
158
- } else if (Y || te)
159
- te && xe(), (et = t == null ? void 0 : t.current) == null || et.togglePopup(y), e.preventDefault();
158
+ ze(u, w) ? (A(null, y), M(y)) : Q(w, y), (nt = t == null ? void 0 : t.current) == null || nt.togglePopup(y), e.preventDefault();
159
+ } else if (Y || ne)
160
+ ne && xe(), (rt = t == null ? void 0 : t.current) == null || rt.togglePopup(y), e.preventDefault();
160
161
  else if (ue) {
161
- if (Ce.current = !1, f !== "" && d)
162
- if (!v && I)
163
- H(y, s);
162
+ if (ke.current = !1, f !== "" && d)
163
+ if (!g && I)
164
+ B(y, s);
164
165
  else {
165
166
  let w;
166
167
  if (s === h.down || s === h.right) {
167
- const x = u.slice(g + 1).find((D) => !D.disabled);
168
+ const x = u.slice(v + 1).find((S) => !S.disabled);
168
169
  w = x && u.indexOf(x);
169
170
  } else if (s === h.up || s === h.left) {
170
171
  let x;
171
- if (g === 0 && l)
172
+ if (v === 0 && l)
172
173
  w = -1;
173
- else if (g === -1)
174
- x = u, w = u.findIndex((D) => !D.disabled);
174
+ else if (v === -1)
175
+ x = u, w = u.findIndex((S) => !S.disabled);
175
176
  else {
176
- x = u.slice(0, g);
177
- let D = x.pop();
178
- for (; D && D.disabled; )
179
- D = x.pop();
180
- w = D && u.indexOf(D);
177
+ x = u.slice(0, v);
178
+ let S = x.pop();
179
+ for (; S && S.disabled; )
180
+ S = x.pop();
181
+ w = S && u.indexOf(S);
181
182
  }
182
183
  }
183
184
  if (w !== void 0) {
184
- const x = w - g;
185
- H(y, s, x);
186
- } else w === void 0 && g === u.length - 1 && H(y, s);
185
+ const x = w - v;
186
+ B(y, s, x);
187
+ } else w === void 0 && v === u.length - 1 && B(y, s);
187
188
  }
188
- else if (!v && I || N)
189
- H(y, s);
189
+ else if (!g && I || N)
190
+ B(y, s);
190
191
  else if (d) {
191
192
  let w;
192
193
  if (s === h.down || s === h.right) {
193
- const x = u.slice(g + 1).find((D) => !D.disabled);
194
+ const x = u.slice(v + 1).find((S) => !S.disabled);
194
195
  w = x && u.indexOf(x);
195
196
  } else if (s === h.up || s === h.left) {
196
197
  let x;
197
- if (g === 0 && l)
198
+ if (v === 0 && l)
198
199
  w = -1;
199
- else if (g === -1)
200
- x = u, w = u.findIndex((D) => !D.disabled);
200
+ else if (v === -1)
201
+ x = u, w = u.findIndex((S) => !S.disabled);
201
202
  else {
202
- x = u.slice(0, g);
203
- let D = x.pop();
204
- for (; D && D.disabled; )
205
- D = x.pop();
206
- w = D && u.indexOf(D);
203
+ x = u.slice(0, v);
204
+ let S = x.pop();
205
+ for (; S && S.disabled; )
206
+ S = x.pop();
207
+ w = S && u.indexOf(S);
207
208
  }
208
209
  }
209
210
  if (w !== void 0) {
210
- const x = w - g;
211
- H(y, s, x);
212
- } else w === void 0 && g === u.length - 1 && H(y, s);
211
+ const x = w - v;
212
+ B(y, s, x);
213
+ } else w === void 0 && v === u.length - 1 && B(y, s);
213
214
  } else
214
- H(y, s);
215
+ B(y, s);
215
216
  e.preventDefault();
216
217
  }
217
218
  M(y);
218
219
  }
219
- }, xt = (e) => {
220
+ }, Ct = (e) => {
220
221
  const r = t.current.initState();
221
- r.syntheticEvent = e.syntheticEvent, n.filter === void 0 && (r.data.text = e.target.value), t.current.filterChanged(e.target.value, r), Ce.current = !0, M(r), R({ group: void 0, text: String(e.target.value) });
222
- }, ze = (e) => {
222
+ r.syntheticEvent = e.syntheticEvent, n.filter === void 0 && (r.data.text = e.target.value), t.current.filterChanged(e.target.value, r), ke.current = !0, M(r), R({ group: void 0, text: String(e.target.value) });
223
+ }, Ae = (e) => {
223
224
  const r = n.filter !== void 0 ? n.filter : m.text;
224
225
  return n.filterable && /* @__PURE__ */ i.createElement(
225
- mn,
226
+ In,
226
227
  {
227
228
  value: r,
228
229
  ref: (o) => {
229
230
  X.current = o && o.element;
230
231
  },
231
- onChange: xt,
232
- onKeyDown: Oe,
233
- size: e ? "large" : z,
234
- rounded: Ke,
232
+ onChange: Ct,
233
+ onKeyDown: He,
234
+ size: e ? "large" : H,
235
+ rounded: Te,
235
236
  fillMode: fe,
236
237
  renderListFilterWrapper: !0,
237
- placeholder: qe.toLanguageString(
238
- lt,
239
- at[lt]
238
+ placeholder: be.toLanguageString(
239
+ ct,
240
+ Me[ct]
240
241
  )
241
242
  }
242
243
  );
243
- }, Dt = (e) => {
244
+ }, kt = (e) => {
244
245
  var o;
245
246
  const r = t.current.initState();
246
- r.syntheticEvent = e, (o = t == null ? void 0 : t.current) == null || o.togglePopup(r), V(n.defaultItem, r), M(r);
247
- }, St = () => {
247
+ r.syntheticEvent = e, (o = t == null ? void 0 : t.current) == null || o.togglePopup(r), A(n.defaultItem, r), M(r);
248
+ }, Et = () => {
248
249
  const { textField: e, defaultItem: r, dataItemKey: o } = n, l = k();
249
250
  return r !== void 0 && /* @__PURE__ */ i.createElement(
250
- fn,
251
+ yn,
251
252
  {
252
253
  defaultItem: r,
253
254
  textField: e,
254
255
  selected: F(l, r, o),
255
256
  key: "defaultitemkey",
256
- onClick: Dt
257
+ onClick: kt
257
258
  }
258
259
  );
259
- }, Ct = (e, r) => {
260
+ }, Lt = (e, r) => {
260
261
  var o;
261
- (o = t == null ? void 0 : t.current) == null || o.handleItemClick(e, r), A.current = void 0;
262
- }, kt = (e) => {
262
+ (o = t == null ? void 0 : t.current) == null || o.handleItemClick(e, r), W.current = void 0;
263
+ }, bt = (e) => {
263
264
  const { vs: r, list: o } = t.current;
264
265
  r.scrollHandler(e);
265
266
  const { groupField: l } = n;
266
267
  let a = E(n);
267
268
  if (!(!l || !a.length) && l) {
268
- const c = Ae.current = Ae.current || (r.enabled ? r.itemHeight : o ? o.children[0].offsetHeight : 0), f = e.target.scrollTop - r.skip * c;
269
+ const c = We.current = We.current || (r.enabled ? r.itemHeight : o ? o.children[0].offsetHeight : 0), f = e.target.scrollTop - r.skip * c;
269
270
  a = t.current.getGroupedDataModernMode(a, l);
270
271
  let d = a[0][l];
271
- for (let v = 1; v < a.length && !(c * v > f); v++)
272
- a[v] && a[v][l] && (d = a[v][l]);
272
+ for (let g = 1; g < a.length && !(c * g > f); g++)
273
+ a[g] && a[g][l] && (d = a[g][l]);
273
274
  d !== m.group && R({ group: d });
274
275
  }
275
- }, Ve = () => {
276
+ }, Be = () => {
276
277
  var s;
277
278
  const {
278
279
  textField: e,
@@ -281,56 +282,57 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
281
282
  groupHeaderItemRender: l,
282
283
  listNoDataRender: a,
283
284
  itemRender: c
284
- } = n, p = E(n), f = K && K.uDropDownList, d = t.current.vs, v = o.skip, u = n.opened !== void 0 ? n.opened : m.opened, S = t.current.getPopupSettings(), g = `translateY(${d.translate}px)`, I = k();
285
+ } = n, p = E(n), f = K && K.uDropDownList, d = t.current.vs, g = o.skip, u = n.opened !== void 0 ? n.opened : m.opened, D = t.current.getPopupSettings(), v = `translateY(${d.translate}px)`, I = k();
285
286
  return /* @__PURE__ */ i.createElement(
286
- vn,
287
+ wn,
287
288
  {
288
- id: Le,
289
+ id: Ge,
289
290
  show: u,
290
291
  data: p.slice(),
291
292
  focusedIndex: we(),
292
293
  value: I,
293
294
  textField: e,
294
295
  valueField: r,
295
- optionsGuid: Ge,
296
+ optionsGuid: $e,
296
297
  groupField: n.groupField,
298
+ ariaLabel: be.toLanguageString(ut, Me[ut]),
297
299
  listRef: (N) => {
298
300
  d.list = t.current.list = N;
299
301
  },
300
- wrapperStyle: { maxHeight: _ ? void 0 : S.height },
302
+ wrapperStyle: { maxHeight: _ ? void 0 : D.height },
301
303
  wrapperCssClass: L(P.listContent({ c: f })),
302
- listStyle: d.enabled ? { transform: g } : void 0,
304
+ listStyle: d.enabled ? { transform: v } : void 0,
303
305
  key: "listkey",
304
- skip: v,
305
- onClick: Ct,
306
+ skip: g,
307
+ onClick: Lt,
306
308
  itemRender: c,
307
309
  groupHeaderItemRender: l,
308
310
  noDataRender: a,
309
- onScroll: kt,
311
+ onScroll: bt,
310
312
  wrapperRef: d.scrollerRef,
311
313
  scroller: (s = t == null ? void 0 : t.current) == null ? void 0 : s.renderScrollElement(),
312
314
  ariaSetSize: o.total
313
315
  }
314
316
  );
315
- }, Et = () => {
317
+ }, Pt = () => {
316
318
  const { groupField: e } = n, r = E(n), o = n.opened !== void 0 ? n.opened : m.opened, l = K && K.uDropDownList, a = {
317
319
  title: n.adaptiveTitle || n.label,
318
320
  subTitle: n.adaptiveSubtitle,
319
321
  expand: o,
320
- onClose: (p) => De(p),
321
- windowWidth: Ee,
322
- mobileFilter: ze(!0)
322
+ onClose: (p) => Se(p),
323
+ windowWidth: Le,
324
+ mobileFilter: Ae(!0)
323
325
  };
324
326
  let { group: c } = m;
325
- return c === void 0 && e !== void 0 && (c = ne(r[0], e)), /* @__PURE__ */ i.createElement(Sn, { ...a }, /* @__PURE__ */ i.createElement(Dn, null, /* @__PURE__ */ i.createElement("div", { className: L(P.listContainer({ c: l, popup: !1 })) }, Ft())));
326
- }, Lt = () => {
327
+ return c === void 0 && e !== void 0 && (c = re(r[0], e)), /* @__PURE__ */ i.createElement(bn, { ...a }, /* @__PURE__ */ i.createElement(Ln, null, /* @__PURE__ */ i.createElement("div", { className: L(P.listContainer({ c: l, popup: !1 })) }, Nt())));
328
+ }, Ft = () => {
327
329
  m.focused && window.setTimeout(() => {
328
- m.focused && t.current.wrapper && re(t.current.wrapper);
330
+ m.focused && t.current.wrapper && oe(t.current.wrapper);
329
331
  });
330
- }, bt = (e) => {
332
+ }, Mt = (e) => {
331
333
  "onMouseDownOutside" in (n.popupSettings || {}) && n.popupSettings.onMouseDownOutside.call(void 0, e);
332
- }, Pt = () => {
333
- const { header: e, footer: r, dir: o, groupField: l, groupStickyHeaderItemRender: a, list: c } = n, p = E(n), f = t.current, d = f.getPopupSettings(), v = n.opened !== void 0 ? n.opened : m.opened, u = d.width !== void 0 ? d.width : f.popupWidth, S = K && K.uDropDownList, g = {
334
+ }, Kt = () => {
335
+ const { header: e, footer: r, dir: o, groupField: l, groupStickyHeaderItemRender: a, list: c } = n, p = E(n), f = t.current, d = f.getPopupSettings(), g = n.opened !== void 0 ? n.opened : m.opened, u = d.width !== void 0 ? d.width : f.popupWidth, D = K && K.uDropDownList, v = {
334
336
  dir: o !== void 0 ? o : f.dirCalculated,
335
337
  width: u,
336
338
  popupSettings: {
@@ -338,60 +340,60 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
338
340
  popupClass: L(
339
341
  d.popupClass,
340
342
  P.listContainer({
341
- c: S,
343
+ c: D,
342
344
  popup: !0
343
345
  })
344
346
  ),
345
- anchor: d.anchor || B.current,
346
- show: v,
347
+ anchor: d.anchor || V.current,
348
+ show: g,
347
349
  onOpen: ye,
348
- onClose: Lt,
349
- onMouseDownOutside: bt
350
+ onClose: Ft,
351
+ onMouseDownOutside: Mt
350
352
  },
351
353
  itemsCount: [p.length]
352
354
  };
353
355
  let { group: I } = m;
354
- return I === void 0 && l !== void 0 && (I = ne(p[0], l)), /* @__PURE__ */ i.createElement(pn, { ...g }, ze(!1), e && /* @__PURE__ */ i.createElement("div", { className: L(P.listHeader({ c: S })) }, e), /* @__PURE__ */ i.createElement(
356
+ return I === void 0 && l !== void 0 && (I = re(p[0], l)), /* @__PURE__ */ i.createElement(hn, { ...v }, Ae(!1), e && /* @__PURE__ */ i.createElement("div", { className: L(P.listHeader({ c: D })) }, e), /* @__PURE__ */ i.createElement(
355
357
  "div",
356
358
  {
357
359
  className: L(
358
360
  P.list({
359
- c: S,
360
- size: z,
361
+ c: D,
362
+ size: H,
361
363
  virtual: t.current.vs.enabled
362
364
  })
363
365
  )
364
366
  },
365
- St(),
366
- !c && I && p.length !== 0 && /* @__PURE__ */ i.createElement(nt, { group: I, render: a }),
367
- Ve()
368
- ), r && /* @__PURE__ */ i.createElement("div", { className: L(P.listFooter({ c: S })) }, r), Me && /* @__PURE__ */ i.createElement(an, { message: pt }));
369
- }, Ft = () => {
367
+ Et(),
368
+ !c && I && p.length !== 0 && /* @__PURE__ */ i.createElement(it, { group: I, render: a }),
369
+ Be()
370
+ ), r && /* @__PURE__ */ i.createElement("div", { className: L(P.listFooter({ c: D })) }, r), Ne && /* @__PURE__ */ i.createElement(pn, { message: gt }));
371
+ }, Nt = () => {
370
372
  const { header: e, footer: r, groupStickyHeaderItemRender: o, groupField: l, list: a } = n, c = E(n), p = K && K.uDropDownList;
371
373
  let { group: f } = m;
372
- return f === void 0 && l !== void 0 && (f = ne(c[0], l)), /* @__PURE__ */ i.createElement(i.Fragment, null, e && /* @__PURE__ */ i.createElement("div", { className: L(P.listHeader({ c: p })) }, e), /* @__PURE__ */ i.createElement(
374
+ return f === void 0 && l !== void 0 && (f = re(c[0], l)), /* @__PURE__ */ i.createElement(i.Fragment, null, e && /* @__PURE__ */ i.createElement("div", { className: L(P.listHeader({ c: p })) }, e), /* @__PURE__ */ i.createElement(
373
375
  "div",
374
376
  {
375
377
  className: L("k-list", {
376
- [`k-list-${_ ? "lg" : ln[z] || z}`]: _ || z
378
+ [`k-list-${_ ? "lg" : mn[H] || H}`]: _ || H
377
379
  })
378
380
  },
379
- !a && f && c.length !== 0 && /* @__PURE__ */ i.createElement(nt, { group: f, render: o }),
380
- Ve()
381
+ !a && f && c.length !== 0 && /* @__PURE__ */ i.createElement(it, { group: f, render: o }),
382
+ Be()
381
383
  ), r && /* @__PURE__ */ i.createElement("div", { className: "k-list-footer" }, r));
382
- }, Mt = (e) => {
384
+ }, Tt = (e) => {
383
385
  const { dataItemKey: r } = n, o = E(n), l = k();
384
386
  let a = o.map((b, Y) => ({ item: b, itemIndex: Y }));
385
- const c = $.current.word, p = $.current.last, f = In(c, p);
386
- let d = a.length, v = Math.max(
387
+ const c = $.current.word, p = $.current.last, f = Dn(c, p);
388
+ let d = a.length, g = Math.max(
387
389
  0,
388
390
  o.findIndex((b) => F(b, l, r))
389
391
  ), u;
390
- n.defaultItem && (u = { item: n.defaultItem, itemIndex: -1 }, d += 1, v += 1), v += f ? 1 : 0, a = yn(a, v, u);
391
- let S, g, I, s = 0;
392
+ n.defaultItem && (u = { item: n.defaultItem, itemIndex: -1 }, d += 1, g += 1), g += f ? 1 : 0, a = Cn(a, g, u);
393
+ let D, v, I, s = 0;
392
394
  const { textField: N } = n;
393
395
  for (; s < d; ) {
394
- if (S = ne(a[s].item, N), g = f && ot(S, p, J), I = ot(S, c, J), g || I) {
396
+ if (D = re(a[s].item, N), v = f && at(D, p, J), I = at(D, c, J), v || I) {
395
397
  s = a[s].itemIndex;
396
398
  break;
397
399
  }
@@ -399,37 +401,37 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
399
401
  }
400
402
  if (s !== d) {
401
403
  const b = t.current.initState();
402
- b.syntheticEvent = e, Q(s, b), M(b), A.current = void 0;
404
+ b.syntheticEvent = e, Q(s, b), M(b), W.current = void 0;
403
405
  }
404
- }, Kt = (e) => {
405
- clearTimeout(Be.current), n.filterable || (Be.current = window.setTimeout(() => $.current.word = "", mt), Mt(e));
406
- }, Nt = (e) => {
407
- oe.current || t.current.handleFocus(e);
408
- }, Tt = (e) => {
409
- if (oe.current || !m.focused)
406
+ }, Ot = (e) => {
407
+ clearTimeout(Ve.current), n.filterable || (Ve.current = window.setTimeout(() => $.current.word = "", vt), Tt(e));
408
+ }, zt = (e) => {
409
+ ie.current || t.current.handleFocus(e);
410
+ }, Ht = (e) => {
411
+ if (ie.current || !m.focused)
410
412
  return;
411
413
  const r = n.opened !== void 0 ? n.opened : m.opened, o = t.current.initState();
412
414
  o.syntheticEvent = e, o.data.focused = !1, o.events.push({ type: "onBlur" }), r && xe(), r && !_ && t.current.togglePopup(o), M(o);
413
- }, Ot = (e) => {
415
+ }, At = (e) => {
414
416
  if (n.filterable || e.which === 0 || e.keyCode === h.enter)
415
417
  return;
416
418
  let r = String.fromCharCode(e.charCode || e.keyCode);
417
419
  J && (r = r.toLowerCase()), r === " " && e.preventDefault(), $.current = {
418
420
  word: $.current.word + r,
419
421
  last: $.current.last + r
420
- }, Kt(e);
421
- }, zt = () => {
422
+ }, Ot(e);
423
+ }, Bt = () => {
422
424
  const e = t.current.initState();
423
425
  e.data.opened = m.opened, t.current.togglePopup(e), M(e);
424
- }, He = i.useRef(null), B = i.useRef(null), Se = i.useRef(null), X = i.useRef(null);
426
+ }, De = i.useRef(null), V = i.useRef(null), Ce = i.useRef(null), X = i.useRef(null);
425
427
  i.useImperativeHandle(
426
- He,
428
+ De,
427
429
  () => ({
428
430
  get element() {
429
- return B.current;
431
+ return V.current;
430
432
  },
431
433
  get index() {
432
- return gt();
434
+ return yt();
433
435
  },
434
436
  get name() {
435
437
  return n.name;
@@ -446,16 +448,16 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
446
448
  get opened() {
447
449
  return m.opened;
448
450
  },
449
- focus: vt,
451
+ focus: It,
450
452
  props: n,
451
- togglePopup: zt
453
+ togglePopup: Bt
452
454
  })
453
455
  ), i.useImperativeHandle(
454
- ut,
455
- () => He.current
456
- );
457
- const Be = i.useRef(null), $ = i.useRef({ word: "", last: "" }), oe = i.useRef(!1), A = i.useRef(null), W = i.useRef(!1), Ce = i.useRef(!1), q = i.useRef({}), ke = i.useRef({}), t = i.useRef(
458
- new dt({
456
+ ft,
457
+ () => De.current
458
+ ), sn("dropdownlist", De, n, n.webMcp);
459
+ const Ve = i.useRef(null), $ = i.useRef({ word: "", last: "" }), ie = i.useRef(!1), W = i.useRef(null), q = i.useRef(!1), ke = i.useRef(!1), U = i.useRef({}), Ee = i.useRef({}), t = i.useRef(
460
+ new pt({
459
461
  props: n,
460
462
  setState: () => {
461
463
  },
@@ -467,23 +469,23 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
467
469
  handleItemSelect: () => {
468
470
  }
469
471
  })
470
- ), Ae = i.useRef(0), Z = i.useRef(null), [m, Vt] = i.useState({}), [Ee, Ht] = i.useState(), [, We] = i.useReducer((e) => e, !0), qe = xn(), Ue = n.name || n.id, Bt = i.useCallback(
472
+ ), We = i.useRef(0), Z = i.useRef(null), [m, Vt] = i.useState({}), [Le, Wt] = i.useState(), [, qe] = i.useReducer((e) => e, !0), be = En(), Ue = n.name || n.id, qt = i.useCallback(
471
473
  (e) => {
472
474
  if (e == null || !t.current)
473
475
  return;
474
- const r = E(n), { textField: o } = n, l = String(e), a = gn(r, l, o, !1, J), c = a !== -1 ? r[a] : void 0;
476
+ const r = E(n), { textField: o } = n, l = String(e), a = xn(r, l, o, !1, J), c = a !== -1 ? r[a] : void 0;
475
477
  if (c !== void 0) {
476
478
  const p = t.current.initState();
477
479
  p.syntheticEvent = {
478
- target: B.current
479
- }, V(c, p), M(p);
480
+ target: V.current
481
+ }, A(c, p), M(p);
480
482
  }
481
483
  },
482
484
  [n, J]
483
485
  );
484
- tn(B, {
486
+ an(V, {
485
487
  fieldName: Ue,
486
- onValueChange: Bt,
488
+ onValueChange: qt,
487
489
  enabled: !!Ue
488
490
  });
489
491
  const R = (e) => {
@@ -494,135 +496,134 @@ const Cn = "Please select a value from the list!", Fe = i.forwardRef((ct, ut) =>
494
496
  props: n,
495
497
  setState: R,
496
498
  state: m,
497
- forceUpdate: We,
498
- element: B.current,
499
+ forceUpdate: qe,
500
+ element: V.current,
499
501
  handleItemSelect: Q,
500
502
  value: k()
501
503
  });
502
- }, [R, m, We, Q, k]), i.useEffect(() => {
503
- var v, u, S, g, I, s, N, b, Y, te, ce, ue, y;
504
- const { dataItemKey: e, virtual: r, groupField: o = "", textField: l } = n, a = E(n), c = q.current.virtual ? q.current.virtual.total : 0, p = n.opened !== void 0 ? n.opened : m.opened, f = q.current.opened !== void 0 ? q.current.opened : ke.current.opened, d = !f && p;
505
- if ((v = t == null ? void 0 : t.current) == null || v.didUpdate(), (u = t == null ? void 0 : t.current) != null && u.getPopupSettings().animate || d && ye(), r && r.total !== c)
506
- (S = t == null ? void 0 : t.current) == null || S.vs.calcScrollElementHeight(), (g = t == null ? void 0 : t.current) == null || g.vs.reset();
504
+ }, [R, m, qe, Q, k]), i.useEffect(() => {
505
+ var g, u, D, v, I, s, N, b, Y, ne, ce, ue, y;
506
+ const { dataItemKey: e, virtual: r, groupField: o = "", textField: l } = n, a = E(n), c = U.current.virtual ? U.current.virtual.total : 0, p = n.opened !== void 0 ? n.opened : m.opened, f = U.current.opened !== void 0 ? U.current.opened : Ee.current.opened, d = !f && p;
507
+ if ((g = t == null ? void 0 : t.current) == null || g.didUpdate(), (u = t == null ? void 0 : t.current) != null && u.getPopupSettings().animate || d && ye(), r && r.total !== c)
508
+ (D = t == null ? void 0 : t.current) == null || D.vs.calcScrollElementHeight(), (v = t == null ? void 0 : t.current) == null || v.vs.reset();
507
509
  else {
508
- const T = k(), pe = q.current.value !== void 0 ? q.current.value : ke.current.value;
509
- let G = a.findIndex((j) => F(j, T, e));
510
- o !== "" && T && l && (G = (s = (I = t == null ? void 0 : t.current) == null ? void 0 : I.getGroupedDataModernMode(a, o)) == null ? void 0 : s.map((j) => j[l]).indexOf(T[l]));
511
- const me = !F(pe, T, e);
510
+ const O = k(), pe = U.current.value !== void 0 ? U.current.value : Ee.current.value;
511
+ let G = a.findIndex((j) => F(j, O, e));
512
+ o !== "" && O && l && (G = (s = (I = t == null ? void 0 : t.current) == null ? void 0 : I.getGroupedDataModernMode(a, o)) == null ? void 0 : s.map((j) => j[l]).indexOf(O[l]));
513
+ const me = !F(pe, O, e);
512
514
  d && r ? (N = t == null ? void 0 : t.current) == null || N.scrollToVirtualItem(r, G) : d && !r ? (ye(), a && a.length !== 0 && ((b = t == null ? void 0 : t.current) == null || b.resetGroupStickyHeader(a[0][o], {
513
515
  setState: R,
514
516
  group: m.group,
515
517
  state: m
516
- })), (Y = t == null ? void 0 : t.current) == null || Y.scrollToItem(G)) : p && f && T && me && !W.current ? (ce = t == null ? void 0 : t.current) == null || ce.scrollToItem(G, (te = t == null ? void 0 : t.current) == null ? void 0 : te.vs.enabled) : p && f && W.current && (W.current && r && r.skip === 0 ? (ue = t == null ? void 0 : t.current) == null || ue.vs.reset() : W.current && r && r.skip === r.total - r.pageSize && ((y = t == null ? void 0 : t.current) == null || y.vs.scrollToEnd()));
518
+ })), (Y = t == null ? void 0 : t.current) == null || Y.scrollToItem(G)) : p && f && O && me && !q.current ? (ce = t == null ? void 0 : t.current) == null || ce.scrollToItem(G, (ne = t == null ? void 0 : t.current) == null ? void 0 : ne.vs.enabled) : p && f && q.current && (q.current && r && r.skip === 0 ? (ue = t == null ? void 0 : t.current) == null || ue.vs.reset() : q.current && r && r.skip === r.total - r.pageSize && ((y = t == null ? void 0 : t.current) == null || y.vs.scrollToEnd()));
517
519
  }
518
- W.current = !1, ke.current = m, q.current = n, Ne();
520
+ q.current = !1, Ee.current = m, U.current = n, Oe();
519
521
  }), i.useEffect(() => {
520
522
  var e, r;
521
- return Z.current = tt && window.ResizeObserver && new window.ResizeObserver(It.bind(void 0)), (e = t == null ? void 0 : t.current) == null || e.didMount(), Ne(), (r = ge()) != null && r.body && Z.current && Z.current.observe(ge().body), () => {
523
+ return Z.current = ot && window.ResizeObserver && new window.ResizeObserver(xt.bind(void 0)), (e = t == null ? void 0 : t.current) == null || e.didMount(), Oe(), (r = ve()) != null && r.body && Z.current && Z.current.observe(ve().body), () => {
522
524
  var o;
523
- (o = ge()) != null && o.body && Z.current && Z.current.disconnect();
525
+ (o = ve()) != null && o.body && Z.current && Z.current.disconnect();
524
526
  };
525
527
  }, []);
526
- const _e = ve + "-accessibility-id", Le = ve + "-listbox-id", Ge = ve + "-guid", At = qe.toLanguageString(
527
- st,
528
- at[st]
528
+ const _e = ge + "-accessibility-id", Ge = ge + "-listbox-id", $e = ge + "-guid", Ut = be.toLanguageString(
529
+ dt,
530
+ Me[dt]
529
531
  ), {
530
- style: ie,
531
- className: Wt,
532
- label: be,
533
- dir: qt,
534
- virtual: U,
535
- adaptive: En,
536
- dataItemKey: Ut,
537
- disabled: se,
538
- loading: $e,
539
- iconClassName: Ye,
540
- svgIcon: _t,
541
- valueRender: je
542
- } = n, ae = n.opened !== void 0 ? n.opened : m.opened, le = k(), Pe = ne(le, n.textField), Je = !ht() || Ie().valid, de = t.current, Gt = de.vs, ee = K && K.uDropDownList;
543
- Gt.enabled = U !== void 0;
544
- const Qe = nn(), _ = !!(Ee && Qe && Ee <= Qe.medium && n.adaptive);
545
- U !== void 0 && (de.vs.skip = U.skip, de.vs.total = U.total, de.vs.pageSize = U.pageSize);
546
- const $t = E(n), { focused: Yt } = m, jt = $t.findIndex((e) => F(e, le, Ut)), Xe = /* @__PURE__ */ i.createElement("span", { id: _e, className: L(P.inputInner({ c: ee })) }, Pe && /* @__PURE__ */ i.createElement("span", { className: L(P.inputText({ c: ee })) }, Pe)), Jt = je !== void 0 ? je.call(void 0, Xe, le) : Xe, Ze = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(
532
+ style: se,
533
+ className: _t,
534
+ label: Pe,
535
+ dir: Gt,
536
+ virtual: T,
537
+ adaptive: Mn,
538
+ dataItemKey: $t,
539
+ disabled: ae,
540
+ loading: Ye,
541
+ iconClassName: je,
542
+ svgIcon: Yt,
543
+ valueRender: Je
544
+ } = n, ee = n.opened !== void 0 ? n.opened : m.opened, le = k(), Fe = re(le, n.textField), Qe = !wt() || Ie().valid, de = t.current, jt = de.vs, te = K && K.uDropDownList;
545
+ jt.enabled = T !== void 0;
546
+ const Xe = ln(), _ = !!(Le && Xe && Le <= Xe.medium && n.adaptive);
547
+ T !== void 0 && (de.vs.skip = T.skip, de.vs.total = T.total, de.vs.pageSize = T.pageSize);
548
+ const Jt = E(n), { focused: Qt } = m, Ze = Jt.findIndex((e) => F(e, le, $t)), Xt = (tt = T == null ? void 0 : T.skip) != null ? tt : 0, Zt = ee && Ze >= 0 ? `k-${$e}-item-${Ze + Xt + 1}` : void 0, Re = /* @__PURE__ */ i.createElement("span", { id: _e, className: L(P.inputInner({ c: te })) }, Fe && /* @__PURE__ */ i.createElement("span", { className: L(P.inputText({ c: te })) }, Fe)), Rt = Je !== void 0 ? Je.call(void 0, Re, le) : Re, et = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(
547
549
  "span",
548
550
  {
549
- ref: yt,
551
+ ref: St,
550
552
  className: L(
551
553
  P.wrapper({
552
- c: ee,
553
- size: z,
554
- rounded: Ke,
554
+ c: te,
555
+ size: H,
556
+ rounded: Te,
555
557
  fillMode: fe,
556
- focused: Yt,
557
- disabled: se,
558
- invalid: !Je,
559
- loading: $e,
558
+ focused: Qt,
559
+ disabled: ae,
560
+ invalid: !Qe,
561
+ loading: Ye,
560
562
  required: he()
561
563
  }),
562
- Wt
564
+ _t
563
565
  ),
564
- style: be ? { ...ie, width: void 0 } : ie,
565
- dir: qt,
566
- onMouseDown: ae ? (e) => {
567
- e.target.nodeName !== "INPUT" && (re(t.current.wrapper), e.preventDefault());
566
+ style: Pe ? { ...se, width: void 0 } : se,
567
+ dir: Gt,
568
+ onMouseDown: ee ? (e) => {
569
+ e.target.nodeName !== "INPUT" && (oe(t.current.wrapper), e.preventDefault());
568
570
  } : void 0,
569
- onFocus: _ ? (e) => De(e) : Nt,
570
- onBlur: Tt,
571
- tabIndex: rn(ft, se),
571
+ onFocus: _ ? (e) => Se(e) : zt,
572
+ onBlur: Ht,
573
+ tabIndex: dn(ht, ae),
572
574
  accessKey: n.accessKey,
573
- onKeyDown: Oe,
574
- onKeyPress: Ot,
575
- onClick: se ? void 0 : De,
575
+ onKeyDown: He,
576
+ onKeyPress: At,
577
+ onClick: ae ? void 0 : Se,
576
578
  role: "combobox",
577
- "aria-required": he(),
578
- "aria-disabled": se || void 0,
579
+ "aria-required": he() || void 0,
580
+ "aria-disabled": ae || void 0,
579
581
  "aria-haspopup": "listbox",
580
- "aria-expanded": ae || !1,
581
- "aria-owns": Le,
582
- "aria-activedescendant": ae ? "option-" + Ge + "-" + (jt + (U ? U.skip : 0)) : void 0,
582
+ "aria-expanded": ee || !1,
583
+ "aria-activedescendant": Zt,
583
584
  "aria-label": n.ariaLabel || n.label,
584
585
  "aria-labelledby": n.ariaLabelledBy,
585
- "aria-describedby": n.ariaDescribedBy || _e,
586
- "aria-controls": ae ? Le : void 0,
586
+ "aria-describedby": n.ariaDescribedBy || (ee ? _e : void 0),
587
+ "aria-controls": ee ? Ge : void 0,
587
588
  id: n.id,
588
589
  title: n.title
589
590
  },
590
- Jt,
591
- $e && /* @__PURE__ */ i.createElement(on, { className: L(P.loadingIcon({ c: ee })), name: "loading" }),
591
+ Rt,
592
+ Ye && /* @__PURE__ */ i.createElement(cn, { className: L(P.loadingIcon({ c: te })), name: "loading" }),
592
593
  /* @__PURE__ */ i.createElement(
593
- wn,
594
+ kn,
594
595
  {
595
596
  tabIndex: -1,
596
597
  type: "button",
597
- "aria-label": At,
598
- size: z,
598
+ "aria-label": Ut,
599
+ size: H,
599
600
  fillMode: fe,
600
- className: L(P.inputButton({ c: ee })),
601
- iconClass: Ye,
602
- svgIcon: Ye ? void 0 : _t || un,
601
+ className: L(P.inputButton({ c: te })),
602
+ iconClass: je,
603
+ svgIcon: je ? void 0 : Yt || vn,
603
604
  onMouseDown: (e) => m.focused && e.preventDefault()
604
605
  }
605
606
  ),
606
- wt(le),
607
- !_ && Pt()
608
- ), _ && Et());
609
- return be ? /* @__PURE__ */ i.createElement(
610
- cn,
607
+ Dt(le),
608
+ !_ && Kt()
609
+ ), _ && Pt());
610
+ return Pe ? /* @__PURE__ */ i.createElement(
611
+ gn,
611
612
  {
612
- label: be,
613
- editorValue: Pe,
614
- editorValid: Je,
613
+ label: Pe,
614
+ editorValue: Fe,
615
+ editorValid: Qe,
615
616
  editorDisabled: n.disabled,
616
- style: { width: ie ? ie.width : void 0 },
617
- children: Ze
617
+ style: { width: se ? se.width : void 0 },
618
+ children: et
618
619
  }
619
- ) : Ze;
620
+ ) : et;
620
621
  });
621
- Fe.propTypes = {
622
+ Ke.propTypes = {
622
623
  delay: C.number,
623
624
  ignoreCase: C.bool,
624
625
  iconClassName: C.string,
625
- svgIcon: dn,
626
+ svgIcon: fn,
626
627
  defaultItem: C.any,
627
628
  valueRender: C.func,
628
629
  valueMap: C.func,
@@ -638,21 +639,21 @@ Fe.propTypes = {
638
639
  list: C.any,
639
640
  skipDisabledItems: C.bool
640
641
  };
641
- const O = {
642
+ const z = {
642
643
  delay: 500,
643
644
  tabIndex: 0,
644
645
  ignoreCase: !0,
645
- ...dt.defaultProps,
646
+ ...pt.defaultProps,
646
647
  required: !1,
647
648
  size: void 0,
648
649
  rounded: void 0,
649
650
  fillMode: void 0
650
651
  };
651
- Fe.displayName = "KendoReactDropDownList";
652
- const kn = sn();
653
- Fe.displayName = "KendoReactDropDownList";
652
+ Ke.displayName = "KendoReactDropDownList";
653
+ const Fn = un();
654
+ Ke.displayName = "KendoReactDropDownList";
654
655
  export {
655
- Fe as DropDownList,
656
- kn as DropDownListPropsContext,
657
- O as dropDownListDefaultProps
656
+ Ke as DropDownList,
657
+ Fn as DropDownListPropsContext,
658
+ z as dropDownListDefaultProps
658
659
  };