@progress/kendo-react-dropdowns 8.3.0-develop.4 → 8.3.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.
@@ -6,34 +6,34 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as h from "react";
10
- import S from "prop-types";
11
- import { classNames as L, Keys as v, validatePackage as Q, svgIconPropType as X, canUseDOM as H, getTabIndex as Z, IconWrap as ee, createPropsContext as te, withIdHOC as se, withPropsContext as ie, kendoThemeMaps as ae } from "@progress/kendo-react-common";
12
- import { FloatingLabel as oe } from "@progress/kendo-react-labels";
13
- import { caretAltDownIcon as ne, xIcon as re } from "@progress/kendo-svg-icons";
14
- import le from "../common/ListContainer.mjs";
15
- import de from "../common/ListFilter.mjs";
16
- import B from "../common/GroupStickyHeader.mjs";
17
- import pe from "../common/ListDefaultItem.mjs";
18
- import he from "../common/List.mjs";
19
- import z from "../common/DropDownBase.mjs";
20
- import { getFilteredData as x, areSame as E, getItemValue as K, sameCharsOnly as ce, shuffleData as ue, matchText as W, isPresent as q, itemIndexStartsWith as me } from "../common/utils.mjs";
21
- import { packageMetadata as fe } from "../package-metadata.mjs";
22
- import { Button as U } from "@progress/kendo-react-buttons";
23
- import { provideLocalizationService as ge } from "@progress/kendo-react-intl";
24
- import { dropDownListArrowBtnAriaLabel as G, messages as ve } from "../messages/index.mjs";
25
- import { MOBILE_MEDIUM_DEVISE as $, MOBILE_SMALL_DEVISE as Y } from "../common/constants.mjs";
26
- import { ActionSheet as be, ActionSheetHeader as Ie, ActionSheetContent as ye } from "@progress/kendo-react-layout";
27
- const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se } = ae, _ = class _ extends h.Component {
9
+ import * as u from "react";
10
+ import C from "prop-types";
11
+ import { classNames as x, uDropDownList as D, Keys as I, validatePackage as ee, svgIconPropType as te, canUseDOM as B, getTabIndex as se, IconWrap as ie, uDropDownsActionSheet as N, createPropsContext as ae, withIdHOC as oe, withPropsContext as ne, withUnstyledHOC as re } from "@progress/kendo-react-common";
12
+ import { FloatingLabel as le } from "@progress/kendo-react-labels";
13
+ import { caretAltDownIcon as de, xIcon as pe } from "@progress/kendo-svg-icons";
14
+ import he from "../common/ListContainer.mjs";
15
+ import ce from "../common/ListFilter.mjs";
16
+ import W from "../common/GroupStickyHeader.mjs";
17
+ import ue from "../common/ListDefaultItem.mjs";
18
+ import me from "../common/List.mjs";
19
+ import R from "../common/DropDownBase.mjs";
20
+ import { getFilteredData as E, areSame as k, getItemValue as T, sameCharsOnly as fe, shuffleData as ge, matchText as q, isPresent as U, itemIndexStartsWith as ve } from "../common/utils.mjs";
21
+ import { packageMetadata as be } from "../package-metadata.mjs";
22
+ import { Button as G } from "@progress/kendo-react-buttons";
23
+ import { provideLocalizationService as Ie } from "@progress/kendo-react-intl";
24
+ import { dropDownListArrowBtnAriaLabel as Y, messages as ye } from "../messages/index.mjs";
25
+ import { MOBILE_SMALL_DEVISE as $, MOBILE_MEDIUM_DEVISE as j } from "../common/constants.mjs";
26
+ import { ActionSheet as Se, ActionSheetHeader as we, ActionSheetContent as xe } from "@progress/kendo-react-layout";
27
+ const Ce = "Please select a value from the list!", L = class L extends u.Component {
28
28
  constructor(s) {
29
- super(s), this.state = {}, this._element = null, this.base = new z(this), this.searchState = { word: "", last: "" }, this._select = null, this._skipFocusEvent = !1, this._filterInput = null, this._navigated = !1, this._lastKeypressIsFilter = !1, this.itemHeight = 0, this.focus = () => {
29
+ super(s), this.state = {}, this._element = null, this.base = new R(this), this.searchState = { word: "", last: "" }, this._select = null, this._skipFocusEvent = !1, this._filterInput = null, this._navigated = !1, this._lastKeypressIsFilter = !1, this.itemHeight = 0, this.focus = () => {
30
30
  this.base.wrapper && this.base.wrapper.focus({ preventScroll: !0 });
31
31
  }, this.handleItemSelect = (e, t) => {
32
- const { virtual: a, dataItemKey: p, defaultItem: n } = this.props, o = x(this.props), f = a ? a.skip : 0, l = e === -1 && n !== void 0 ? n : o[e - f], i = !E(l, this.value, p);
33
- this.triggerOnChange(l, t), i && this.base.triggerPageChangeCornerItems(l, t);
32
+ const { virtual: o, dataItemKey: h, defaultItem: n } = this.props, l = E(this.props), b = o ? o.skip : 0, d = e === -1 && n !== void 0 ? n : l[e - b], i = !k(d, this.value, h);
33
+ this.triggerOnChange(d, t), i && this.base.triggerPageChangeCornerItems(d, t);
34
34
  }, this.componentRef = (e) => {
35
35
  this._element = e, this.base.wrapper = e;
36
- }, this.dummySelect = (e) => /* @__PURE__ */ h.createElement(
36
+ }, this.dummySelect = (e) => /* @__PURE__ */ u.createElement(
37
37
  "select",
38
38
  {
39
39
  name: this.props.name,
@@ -45,61 +45,63 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
45
45
  title: this.props.label,
46
46
  style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: "absolute", left: "50%" }
47
47
  },
48
- /* @__PURE__ */ h.createElement(
48
+ /* @__PURE__ */ u.createElement(
49
49
  "option",
50
50
  {
51
51
  value: this.props.valueMap ? this.props.valueMap.call(void 0, e) : e
52
52
  }
53
53
  )
54
54
  ), this.renderListContainer = () => {
55
- const { header: e, footer: t, dir: a, size: p, groupField: n, groupStickyHeaderItemRender: o, list: f } = this.props, l = x(this.props), i = this.base, c = i.getPopupSettings(), r = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = c.width !== void 0 ? c.width : i.popupWidth, I = {
56
- dir: a !== void 0 ? a : i.dirCalculated,
57
- width: b,
55
+ const { header: e, footer: t, dir: o, size: h, groupField: n, groupStickyHeaderItemRender: l, list: b, unstyled: d } = this.props, i = E(this.props), c = this.base, a = c.getPopupSettings(), f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = a.width !== void 0 ? a.width : c.popupWidth, p = d && d.uDropDownList, r = {
56
+ dir: o !== void 0 ? o : c.dirCalculated,
57
+ width: g,
58
58
  popupSettings: {
59
- ...c,
60
- popupClass: L(
61
- c.popupClass,
62
- "k-list-container",
63
- "k-dropdownlist-popup"
59
+ ...a,
60
+ popupClass: x(
61
+ a.popupClass,
62
+ D.listContainer({
63
+ c: p
64
+ })
64
65
  ),
65
- anchor: c.anchor || this.element,
66
- show: r,
66
+ anchor: a.anchor || this.element,
67
+ show: f,
67
68
  onOpen: this.onPopupOpened,
68
69
  onClose: this.onPopupClosed
69
70
  },
70
- itemsCount: [l.length]
71
+ itemsCount: [i.length]
71
72
  };
72
- let { group: m } = this.state;
73
- return m === void 0 && n !== void 0 && (m = K(l[0], n)), /* @__PURE__ */ h.createElement(le, { ...I }, this.renderListFilter(), e && /* @__PURE__ */ h.createElement("div", { className: "k-list-header" }, e), /* @__PURE__ */ h.createElement(
73
+ let { group: S } = this.state;
74
+ return S === void 0 && n !== void 0 && (S = T(i[0], n)), /* @__PURE__ */ u.createElement(he, { ...r }, this.renderListFilter(), e && /* @__PURE__ */ u.createElement("div", { className: x(D.listHeader({ c: p })) }, e), /* @__PURE__ */ u.createElement(
74
75
  "div",
75
76
  {
76
- className: L(
77
- "k-list",
78
- {
79
- [`k-list-${T[p] || p}`]: p,
80
- "k-virtual-list": this.base.vs.enabled
81
- }
77
+ className: x(
78
+ D.list({
79
+ c: p,
80
+ size: h,
81
+ virtual: this.base.vs.enabled
82
+ })
82
83
  )
83
84
  },
84
85
  this.renderDefaultItem(),
85
- !f && m && l.length !== 0 && /* @__PURE__ */ h.createElement(B, { group: m, groupMode: "modern", render: o }),
86
+ !b && S && i.length !== 0 && /* @__PURE__ */ u.createElement(W, { group: S, groupMode: "modern", render: l }),
86
87
  this.renderList()
87
- ), t && /* @__PURE__ */ h.createElement("div", { className: "k-list-footer" }, t));
88
+ ), t && /* @__PURE__ */ u.createElement("div", { className: x(D.listFooter({ c: p })) }, t));
88
89
  }, this.renderList = () => {
89
90
  const {
90
91
  textField: e,
91
92
  dataItemKey: t,
92
- virtual: a = { skip: 0, total: void 0 },
93
- groupHeaderItemRender: p,
93
+ virtual: o = { skip: 0, total: void 0 },
94
+ groupHeaderItemRender: h,
94
95
  listNoDataRender: n,
95
- itemRender: o
96
- } = this.props, f = x(this.props), l = this.base.vs, i = a.skip, c = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = this.base.getPopupSettings(), b = `translateY(${l.translate}px)`;
97
- return /* @__PURE__ */ h.createElement(
98
- he,
96
+ itemRender: l,
97
+ unstyled: b
98
+ } = this.props, d = E(this.props), i = b && b.uDropDownList, c = this.base.vs, a = o.skip, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = this.base.getPopupSettings(), p = `translateY(${c.translate}px)`;
99
+ return /* @__PURE__ */ u.createElement(
100
+ me,
99
101
  {
100
102
  id: this._listboxId,
101
- show: c,
102
- data: f.slice(),
103
+ show: f,
104
+ data: d.slice(),
103
105
  focusedIndex: this.getFocusedIndex(),
104
106
  value: this.value,
105
107
  textField: e,
@@ -107,41 +109,41 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
107
109
  optionsGuid: this._guid,
108
110
  groupField: this.props.groupField,
109
111
  groupMode: "modern",
110
- listRef: (I) => l.list = this.base.list = I,
111
- wrapperStyle: { maxHeight: r.height },
112
- wrapperCssClass: "k-list-content",
113
- listStyle: l.enabled ? { transform: b } : void 0,
112
+ listRef: (r) => c.list = this.base.list = r,
113
+ wrapperStyle: { maxHeight: g.height },
114
+ wrapperCssClass: x(D.listContent({ c: i })),
115
+ listStyle: c.enabled ? { transform: p } : void 0,
114
116
  key: "listkey",
115
- skip: i,
117
+ skip: a,
116
118
  onClick: this.handleItemClick,
117
- itemRender: o,
118
- groupHeaderItemRender: p,
119
+ itemRender: l,
120
+ groupHeaderItemRender: h,
119
121
  noDataRender: n,
120
122
  onScroll: this.onScroll,
121
- wrapperRef: l.scrollerRef,
123
+ wrapperRef: c.scrollerRef,
122
124
  scroller: this.base.renderScrollElement(),
123
- ariaSetSize: a.total
125
+ ariaSetSize: o.total
124
126
  }
125
127
  );
126
128
  }, this.onScroll = (e) => {
127
- const { vs: t, list: a } = this.base;
129
+ const { vs: t, list: o } = this.base;
128
130
  t.scrollHandler(e);
129
- const { groupField: p } = this.props;
130
- let n = x(this.props);
131
- if (!(!p || !n.length) && p) {
132
- const o = this.itemHeight = this.itemHeight || (t.enabled ? t.itemHeight : a ? a.children[0].offsetHeight : 0), l = e.target.scrollTop - t.skip * o;
133
- n = this.base.getGroupedDataModernMode(n, p);
134
- let i = n[0][p];
135
- for (let c = 1; c < n.length && !(o * c > l); c++)
136
- n[c] && n[c][p] && (i = n[c][p]);
131
+ const { groupField: h } = this.props;
132
+ let n = E(this.props);
133
+ if (!(!h || !n.length) && h) {
134
+ const l = this.itemHeight = this.itemHeight || (t.enabled ? t.itemHeight : o ? o.children[0].offsetHeight : 0), d = e.target.scrollTop - t.skip * l;
135
+ n = this.base.getGroupedDataModernMode(n, h);
136
+ let i = n[0][h];
137
+ for (let c = 1; c < n.length && !(l * c > d); c++)
138
+ n[c] && n[c][h] && (i = n[c][h]);
137
139
  i !== this.state.group && this.setState({
138
140
  group: i
139
141
  });
140
142
  }
141
143
  }, this.renderListFilter = () => {
142
144
  const e = this.props.filter !== void 0 ? this.props.filter : this.state.text;
143
- return this.props.filterable && /* @__PURE__ */ h.createElement(
144
- de,
145
+ return this.props.filterable && /* @__PURE__ */ u.createElement(
146
+ ce,
145
147
  {
146
148
  value: e,
147
149
  ref: (t) => this._filterInput = t && t.element,
@@ -154,13 +156,13 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
154
156
  }
155
157
  );
156
158
  }, this.renderDefaultItem = () => {
157
- const { textField: e, defaultItem: t, dataItemKey: a } = this.props;
158
- return t !== void 0 && /* @__PURE__ */ h.createElement(
159
- pe,
159
+ const { textField: e, defaultItem: t, dataItemKey: o } = this.props;
160
+ return t !== void 0 && /* @__PURE__ */ u.createElement(
161
+ ue,
160
162
  {
161
163
  defaultItem: t,
162
164
  textField: e,
163
- selected: E(this.value, t, a),
165
+ selected: k(this.value, t, o),
164
166
  key: "defaultitemkey",
165
167
  onClick: this.handleDefaultItemClick
166
168
  }
@@ -168,107 +170,107 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
168
170
  }, this.search = (e) => {
169
171
  clearTimeout(this._typingTimeout), this.props.filterable || (this._typingTimeout = window.setTimeout(() => this.searchState.word = "", this.props.delay), this.selectNext(e));
170
172
  }, this.selectNext = (e) => {
171
- const { dataItemKey: t } = this.props, a = x(this.props);
172
- let p = a.map((C, N) => ({ item: C, itemIndex: N }));
173
- const n = this.searchState.word, o = this.searchState.last, f = ce(n, o);
174
- let l = p.length, i = Math.max(0, a.findIndex((C) => E(C, this.value, t))), c;
175
- this.props.defaultItem && (c = { item: this.props.defaultItem, itemIndex: -1 }, l += 1, i += 1), i += f ? 1 : 0, p = ue(p, i, c);
176
- let r, b, I, m = 0;
177
- const { textField: d, ignoreCase: w } = this.props;
178
- for (; m < l; m++)
179
- if (r = K(p[m].item, d), b = f && W(r, o, w), I = W(r, n, w), b || I) {
180
- m = p[m].itemIndex;
173
+ const { dataItemKey: t } = this.props, o = E(this.props);
174
+ let h = o.map((F, P) => ({ item: F, itemIndex: P }));
175
+ const n = this.searchState.word, l = this.searchState.last, b = fe(n, l);
176
+ let d = h.length, i = Math.max(0, o.findIndex((F) => k(F, this.value, t))), c;
177
+ this.props.defaultItem && (c = { item: this.props.defaultItem, itemIndex: -1 }, d += 1, i += 1), i += b ? 1 : 0, h = ge(h, i, c);
178
+ let a, f, g, p = 0;
179
+ const { textField: r, ignoreCase: S } = this.props;
180
+ for (; p < d; p++)
181
+ if (a = T(h[p].item, r), f = b && q(a, l, S), g = q(a, n, S), f || g) {
182
+ p = h[p].itemIndex;
181
183
  break;
182
184
  }
183
- if (m !== l) {
184
- const C = this.base.initState();
185
- C.syntheticEvent = e, this.handleItemSelect(m, C), this.applyState(C), this._valueDuringOnChange = void 0;
185
+ if (p !== d) {
186
+ const F = this.base.initState();
187
+ F.syntheticEvent = e, this.handleItemSelect(p, F), this.applyState(F), this._valueDuringOnChange = void 0;
186
188
  }
187
189
  }, this.handleKeyDown = (e) => {
188
190
  e && e.target instanceof Element && e.target.nodeName === "INPUT" && e.stopPropagation && e.stopPropagation();
189
191
  const {
190
192
  filterable: t,
191
- disabled: a,
192
- defaultItem: p,
193
+ disabled: o,
194
+ defaultItem: h,
193
195
  leftRightKeysNavigation: n = !0,
194
- virtual: o = { skip: 0, total: 0, pageSize: 0 },
195
- dataItemKey: f,
196
- groupField: l = "",
196
+ virtual: l = { skip: 0, total: 0, pageSize: 0 },
197
+ dataItemKey: b,
198
+ groupField: d = "",
197
199
  textField: i,
198
200
  skipDisabledItems: c = !0
199
- } = this.props, r = x(this.props), b = this.value, I = r.findIndex((y) => E(y, b, f)), m = this.props.opened !== void 0 ? this.props.opened : this.state.opened, d = e.keyCode, w = d === v.home || d === v.end, C = d === v.up || d === v.down, N = !m && (e.altKey && d === v.down || d === v.enter || d === v.space), D = m && (e.altKey && d === v.up || d === v.esc), O = n && (d === v.left || d === v.right), P = C || O && !t || w, k = this.base.initState();
200
- if (k.syntheticEvent = e, !a) {
201
- if (w && this.base.vs.enabled)
202
- d === v.home ? o.skip !== 0 ? (this.base.triggerOnPageChange(k, 0, o.pageSize), this._navigated = !0) : this.triggerOnChange(r[0], k) : o.skip < o.total - o.pageSize ? (this.base.triggerOnPageChange(k, o.total - o.pageSize, o.pageSize), this._navigated = !0) : this.triggerOnChange(r[r.length - 1], k);
203
- else if (m && d === v.pageUp)
201
+ } = this.props, a = E(this.props), f = this.value, g = a.findIndex((y) => k(y, f, b)), p = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = e.keyCode, S = r === I.home || r === I.end, F = r === I.up || r === I.down, P = !p && (e.altKey && r === I.down || r === I.enter || r === I.space), _ = p && (e.altKey && r === I.up || r === I.esc), z = n && (r === I.left || r === I.right), M = F || z && !t || S, w = this.base.initState();
202
+ if (w.syntheticEvent = e, !o) {
203
+ if (S && this.base.vs.enabled)
204
+ r === I.home ? l.skip !== 0 ? (this.base.triggerOnPageChange(w, 0, l.pageSize), this._navigated = !0) : this.triggerOnChange(a[0], w) : l.skip < l.total - l.pageSize ? (this.base.triggerOnPageChange(w, l.total - l.pageSize, l.pageSize), this._navigated = !0) : this.triggerOnChange(a[a.length - 1], w);
205
+ else if (p && r === I.pageUp)
204
206
  e.preventDefault(), this.base.scrollPopupByPageSize(-1);
205
- else if (m && d === v.pageDown)
207
+ else if (p && r === I.pageDown)
206
208
  e.preventDefault(), this.base.scrollPopupByPageSize(1);
207
- else if (m && d === v.enter) {
209
+ else if (p && r === I.enter) {
208
210
  const y = this.getFocusedIndex();
209
- this.haveFocusedItemAndDataNotEmpty(r, y) ? (this.triggerOnChange(null, k), this.applyState(k)) : this.handleItemSelect(y, k), this.base.togglePopup(k), e.preventDefault();
210
- } else if (N || D)
211
- D && this.resetValueIfDisabledItem(), this.base.togglePopup(k), e.preventDefault();
212
- else if (P) {
213
- if (this._lastKeypressIsFilter = !1, l !== "" && i)
214
- if (!c && m)
215
- this.onNavigate(k, d);
211
+ this.haveFocusedItemAndDataNotEmpty(a, y) ? (this.triggerOnChange(null, w), this.applyState(w)) : this.handleItemSelect(y, w), this.base.togglePopup(w), e.preventDefault();
212
+ } else if (P || _)
213
+ _ && this.resetValueIfDisabledItem(), this.base.togglePopup(w), e.preventDefault();
214
+ else if (M) {
215
+ if (this._lastKeypressIsFilter = !1, d !== "" && i)
216
+ if (!c && p)
217
+ this.onNavigate(w, r);
216
218
  else {
217
219
  let y;
218
- if (d === v.down || d === v.right) {
219
- const g = r.slice(I + 1).find((u) => !u.disabled && u[i]);
220
- y = g && r.findIndex((u) => u[i] === g[i]);
221
- } else if (d === v.up || d === v.left) {
222
- let g;
223
- if (I === 0 && p)
220
+ if (r === I.down || r === I.right) {
221
+ const v = a.slice(g + 1).find((m) => !m.disabled && m[i]);
222
+ y = v && a.findIndex((m) => m[i] === v[i]);
223
+ } else if (r === I.up || r === I.left) {
224
+ let v;
225
+ if (g === 0 && h)
224
226
  y = -1;
225
- else if (I === -1)
226
- g = r, y = r.findIndex((u) => !u.disabled && u[i]);
227
+ else if (g === -1)
228
+ v = a, y = a.findIndex((m) => !m.disabled && m[i]);
227
229
  else {
228
- g = r.slice(0, I);
229
- let u = g.pop();
230
- for (; u && u.disabled; )
231
- u = g.pop();
232
- y = u && r.findIndex((M) => M[i] === u[i]);
230
+ v = a.slice(0, g);
231
+ let m = v.pop();
232
+ for (; m && m.disabled; )
233
+ m = v.pop();
234
+ y = m && a.findIndex((O) => O[i] === m[i]);
233
235
  }
234
236
  }
235
237
  if (y !== void 0) {
236
- const g = y - I;
237
- this.onNavigate(k, d, g);
238
+ const v = y - g;
239
+ this.onNavigate(w, r, v);
238
240
  } else
239
- y === void 0 && r.findIndex((g) => g[i] === b[i]) === r.length - 1 && this.onNavigate(k, d);
241
+ y === void 0 && a.findIndex((v) => v[i] === f[i]) === a.length - 1 && this.onNavigate(w, r);
240
242
  }
241
- else if (!c && m || w)
242
- this.onNavigate(k, d);
243
+ else if (!c && p || S)
244
+ this.onNavigate(w, r);
243
245
  else if (i) {
244
246
  let y;
245
- if (d === v.down || d === v.right) {
246
- const g = r.slice(I + 1).find((u) => !u.disabled && u[i]);
247
- y = g && r.findIndex((u) => u[i] === g[i]);
248
- } else if (d === v.up || d === v.left) {
249
- let g;
250
- if (I === 0 && p)
247
+ if (r === I.down || r === I.right) {
248
+ const v = a.slice(g + 1).find((m) => !m.disabled && m[i]);
249
+ y = v && a.findIndex((m) => m[i] === v[i]);
250
+ } else if (r === I.up || r === I.left) {
251
+ let v;
252
+ if (g === 0 && h)
251
253
  y = -1;
252
- else if (I === -1)
253
- g = r, y = r.find((u) => !u.disabled && u[i]);
254
+ else if (g === -1)
255
+ v = a, y = a.find((m) => !m.disabled && m[i]);
254
256
  else {
255
- g = r.slice(0, I);
256
- let u = g.pop();
257
- for (; u && u.disabled; )
258
- u = g.pop();
259
- y = u && r.findIndex((M) => M[i] === u[i]);
257
+ v = a.slice(0, g);
258
+ let m = v.pop();
259
+ for (; m && m.disabled; )
260
+ m = v.pop();
261
+ y = m && a.findIndex((O) => O[i] === m[i]);
260
262
  }
261
263
  }
262
264
  if (y !== void 0) {
263
- const g = y - I;
264
- this.onNavigate(k, d, g);
265
+ const v = y - g;
266
+ this.onNavigate(w, r, v);
265
267
  } else
266
- y === void 0 && r.findIndex((g) => g[i] === b[i]) === r.length - 1 && this.onNavigate(k, d);
268
+ y === void 0 && a.findIndex((v) => v[i] === f[i]) === a.length - 1 && this.onNavigate(w, r);
267
269
  } else
268
- this.onNavigate(k, d);
270
+ this.onNavigate(w, r);
269
271
  e.preventDefault();
270
272
  }
271
- this.applyState(k);
273
+ this.applyState(w);
272
274
  }
273
275
  }, this.handleItemClick = (e, t) => {
274
276
  this.base.handleItemClick(e, t), this._valueDuringOnChange = void 0;
@@ -277,8 +279,8 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
277
279
  }, this.handleBlur = (e) => {
278
280
  if (this._skipFocusEvent || !this.state.focused)
279
281
  return;
280
- const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { adaptive: a } = this.props, { windowWidth: p = 0 } = this.state, n = p <= $ && a, o = this.base.initState();
281
- o.syntheticEvent = e, o.data.focused = !1, o.events.push({ type: "onBlur" }), t && this.resetValueIfDisabledItem(), t && !n && this.base.togglePopup(o), this.applyState(o);
282
+ const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { adaptive: o } = this.props, { windowWidth: h = 0 } = this.state, n = h <= j && o, l = this.base.initState();
283
+ l.syntheticEvent = e, l.data.focused = !1, l.events.push({ type: "onBlur" }), t && this.resetValueIfDisabledItem(), t && !n && this.base.togglePopup(l), this.applyState(l);
282
284
  }, this.handleDefaultItemClick = (e) => {
283
285
  const t = this.base.initState();
284
286
  t.syntheticEvent = e, this.base.togglePopup(t), this.triggerOnChange(this.props.defaultItem, t), this.applyState(t);
@@ -288,7 +290,7 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
288
290
  const t = this.base.initState();
289
291
  t.syntheticEvent = e, this.state.focused || (t.data.focused = !0), this.resetValueIfDisabledItem(), this.base.togglePopup(t), this.applyState(t);
290
292
  }, this.handleKeyPress = (e) => {
291
- if (this.props.filterable || e.which === 0 || e.keyCode === v.enter)
293
+ if (this.props.filterable || e.which === 0 || e.keyCode === I.enter)
292
294
  return;
293
295
  let t = String.fromCharCode(e.charCode || e.keyCode);
294
296
  this.props.ignoreCase && (t = t.toLowerCase()), t === " " && e.preventDefault(), this.searchState = {
@@ -310,9 +312,9 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
310
312
  );
311
313
  }, this.setValidity = () => {
312
314
  this._select && this._select.setCustomValidity && this._select.setCustomValidity(
313
- this.validity.valid ? "" : this.props.validationMessage || ke
315
+ this.validity.valid ? "" : this.props.validationMessage || Ce
314
316
  );
315
- }, Q(fe);
317
+ }, ee(be);
316
318
  }
317
319
  get _inputId() {
318
320
  return this.props.id + "-accessibility-id";
@@ -324,7 +326,7 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
324
326
  return this.props.id + "-guid";
325
327
  }
326
328
  get document() {
327
- if (H)
329
+ if (B)
328
330
  return this.element && this.element.ownerDocument || document;
329
331
  }
330
332
  /**
@@ -338,14 +340,14 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
338
340
  */
339
341
  get value() {
340
342
  let s;
341
- return this._valueDuringOnChange !== void 0 ? s = this._valueDuringOnChange : this.props.value !== void 0 ? s = this.props.value : this.state.value !== void 0 ? s = this.state.value : this.props.defaultValue !== void 0 && (s = this.props.defaultValue), !q(s) && this.props.defaultItem !== void 0 && (s = this.props.defaultItem), s;
343
+ return this._valueDuringOnChange !== void 0 ? s = this._valueDuringOnChange : this.props.value !== void 0 ? s = this.props.value : this.state.value !== void 0 ? s = this.state.value : this.props.defaultValue !== void 0 && (s = this.props.defaultValue), !U(s) && this.props.defaultItem !== void 0 && (s = this.props.defaultItem), s;
342
344
  }
343
345
  /**
344
346
  * The index of the selected item.
345
347
  */
346
348
  get index() {
347
- const { dataItemKey: s } = this.props, e = x(this.props), t = this.value;
348
- return e.findIndex((a) => E(a, t, s));
349
+ const { dataItemKey: s } = this.props, e = E(this.props), t = this.value;
350
+ return e.findIndex((o) => k(o, t, s));
349
351
  }
350
352
  /**
351
353
  * Gets the `name` property of the DropDownList.
@@ -365,28 +367,28 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
365
367
  };
366
368
  }
367
369
  get validityStyles() {
368
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : _.defaultProps.validityStyles;
370
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : L.defaultProps.validityStyles;
369
371
  }
370
372
  /**
371
373
  * @hidden
372
374
  */
373
375
  get required() {
374
- return this.props.required !== void 0 ? this.props.required : _.defaultProps.required;
376
+ return this.props.required !== void 0 ? this.props.required : L.defaultProps.required;
375
377
  }
376
378
  /**
377
379
  * @hidden
378
380
  */
379
381
  componentDidUpdate(s, e) {
380
- var r;
381
- const { dataItemKey: t, virtual: a, groupField: p = "", textField: n } = this.props, o = x(this.props), f = s.virtual ? s.virtual.total : 0, l = this.props.opened !== void 0 ? this.props.opened : this.state.opened, i = s.opened !== void 0 ? s.opened : e.opened, c = !i && l;
382
- if (this.base.didUpdate(), this.base.getPopupSettings().animate || c && this.onPopupOpened(), a && a.total !== f)
382
+ var a;
383
+ const { dataItemKey: t, virtual: o, groupField: h = "", textField: n } = this.props, l = E(this.props), b = s.virtual ? s.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, i = s.opened !== void 0 ? s.opened : e.opened, c = !i && d;
384
+ if (this.base.didUpdate(), this.base.getPopupSettings().animate || c && this.onPopupOpened(), o && o.total !== b)
383
385
  this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
384
386
  else {
385
- const b = this.value, I = s.value !== void 0 ? s.value : e.value;
386
- let m = o.findIndex((w) => E(w, b, t));
387
- p !== "" && b && n && (m = (r = this.base.getGroupedDataModernMode(o, p)) == null ? void 0 : r.map((w) => w[n]).indexOf(b[n]));
388
- const d = !E(I, b, t);
389
- c && a ? this.base.scrollToVirtualItem(a, m) : c && !a ? (this.onPopupOpened(), o && o.length !== 0 && this.base.resetGroupStickyHeader(o[0][p], this), this.base.scrollToItem(m)) : l && i && b && d && !this._navigated ? this.base.scrollToItem(m, this.base.vs.enabled) : l && i && this._navigated && (this._navigated && a && a.skip === 0 ? this.base.vs.reset() : this._navigated && a && a.skip === a.total - a.pageSize && this.base.vs.scrollToEnd());
387
+ const f = this.value, g = s.value !== void 0 ? s.value : e.value;
388
+ let p = l.findIndex((S) => k(S, f, t));
389
+ h !== "" && f && n && (p = (a = this.base.getGroupedDataModernMode(l, h)) == null ? void 0 : a.map((S) => S[n]).indexOf(f[n]));
390
+ const r = !k(g, f, t);
391
+ c && o ? this.base.scrollToVirtualItem(o, p) : c && !o ? (this.onPopupOpened(), l && l.length !== 0 && this.base.resetGroupStickyHeader(l[0][h], this), this.base.scrollToItem(p)) : d && i && f && r && !this._navigated ? this.base.scrollToItem(p, this.base.vs.enabled) : d && i && this._navigated && (this._navigated && o && o.skip === 0 ? this.base.vs.reset() : this._navigated && o && o.skip === o.total - o.pageSize && this.base.vs.scrollToEnd());
390
392
  }
391
393
  this._navigated = !1, this.setValidity();
392
394
  }
@@ -395,7 +397,7 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
395
397
  */
396
398
  componentDidMount() {
397
399
  var s;
398
- this.observerResize = H && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.base.didMount(), this.setValidity(), (s = this.document) != null && s.body && this.observerResize && this.observerResize.observe(this.document.body);
400
+ this.observerResize = B && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.base.didMount(), this.setValidity(), (s = this.document) != null && s.body && this.observerResize && this.observerResize.observe(this.document.body);
399
401
  }
400
402
  /** @hidden */
401
403
  componentWillUnmount() {
@@ -406,53 +408,53 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
406
408
  * @hidden
407
409
  */
408
410
  render() {
409
- const s = ge(this).toLanguageString(G, ve[G]), { style: e, className: t, label: a, dir: p, virtual: n, size: o, rounded: f, fillMode: l, adaptive: i } = this.props, { windowWidth: c = 0 } = this.state, r = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = this.value, I = K(b, this.props.textField), m = !this.validityStyles || this.validity.valid, d = this.base, w = d.vs, C = c <= $ && i;
410
- w.enabled = n !== void 0, n !== void 0 && (d.vs.skip = n.skip, d.vs.total = n.total, d.vs.pageSize = n.pageSize);
411
+ const s = Ie(this).toLanguageString(Y, ye[Y]), { style: e, className: t, label: o, dir: h, virtual: n, size: l, rounded: b, fillMode: d, adaptive: i, unstyled: c } = this.props, { windowWidth: a = 0 } = this.state, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = this.value, p = T(g, this.props.textField), r = !this.validityStyles || this.validity.valid, S = this.base, F = S.vs, P = a <= j && i, _ = c && c.uDropDownList;
412
+ F.enabled = n !== void 0, n !== void 0 && (S.vs.skip = n.skip, S.vs.total = n.total, S.vs.pageSize = n.pageSize);
411
413
  const {
412
- dataItemKey: N,
413
- disabled: D,
414
- tabIndex: O,
415
- loading: P,
416
- iconClassName: k,
417
- svgIcon: y,
418
- valueRender: g
419
- } = this.props, u = x(this.props), { focused: M } = this.state, j = u.findIndex((F) => E(F, b, N)), V = /* @__PURE__ */ h.createElement("span", { id: this._inputId, className: "k-input-inner" }, I && /* @__PURE__ */ h.createElement("span", { className: "k-input-value-text" }, I)), J = g !== void 0 ? g.call(void 0, V, b) : V, A = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(
414
+ dataItemKey: z,
415
+ disabled: M,
416
+ tabIndex: w,
417
+ loading: y,
418
+ iconClassName: v,
419
+ svgIcon: m,
420
+ valueRender: O
421
+ } = this.props, J = E(this.props), { focused: Q } = this.state, X = J.findIndex((K) => k(K, g, z)), V = /* @__PURE__ */ u.createElement("span", { id: this._inputId, className: x(D.input({ c: _ })) }, p && /* @__PURE__ */ u.createElement("span", { className: x(D.inputText({ c: _ })) }, p)), Z = O !== void 0 ? O.call(void 0, V, g) : V, H = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement(
420
422
  "span",
421
423
  {
422
424
  ref: this.componentRef,
423
- className: L(
424
- "k-dropdownlist k-picker",
425
- t,
426
- {
427
- [`k-picker-${T[o] || o}`]: o,
428
- [`k-rounded-${Se[f] || f}`]: f,
429
- [`k-picker-${l}`]: l,
430
- "k-focus": M,
431
- "k-disabled": D,
432
- "k-invalid": !m,
433
- "k-loading": P,
434
- "k-required": this.required
435
- }
425
+ className: x(
426
+ D.wrapper({
427
+ c: _,
428
+ size: l,
429
+ rounded: b,
430
+ fillMode: d,
431
+ focused: Q,
432
+ disabled: M,
433
+ invalid: !r,
434
+ loading: y,
435
+ required: this.required
436
+ }),
437
+ t
436
438
  ),
437
- style: a ? { ...e, width: void 0 } : e,
438
- dir: p,
439
- onMouseDown: r ? (F) => {
440
- F.target.nodeName !== "INPUT" && (this.focusElement(this.base.wrapper), F.preventDefault());
439
+ style: o ? { ...e, width: void 0 } : e,
440
+ dir: h,
441
+ onMouseDown: f ? (K) => {
442
+ K.target.nodeName !== "INPUT" && (this.focusElement(this.base.wrapper), K.preventDefault());
441
443
  } : void 0,
442
444
  onFocus: this.handleFocus,
443
445
  onBlur: this.handleBlur,
444
- tabIndex: Z(O, D),
446
+ tabIndex: se(w, M),
445
447
  accessKey: this.props.accessKey,
446
448
  onKeyDown: this.handleKeyDown,
447
449
  onKeyPress: this.handleKeyPress,
448
- onClick: D ? void 0 : this.handleWrapperClick,
450
+ onClick: M ? void 0 : this.handleWrapperClick,
449
451
  role: "combobox",
450
452
  "aria-required": this.required,
451
- "aria-disabled": D || void 0,
453
+ "aria-disabled": M || void 0,
452
454
  "aria-haspopup": "listbox",
453
- "aria-expanded": r || !1,
455
+ "aria-expanded": f || !1,
454
456
  "aria-owns": this._listboxId,
455
- "aria-activedescendant": r ? "option-" + this._guid + "-" + (j + (n ? n.skip : 0)) : void 0,
457
+ "aria-activedescendant": f ? "option-" + this._guid + "-" + (X + (n ? n.skip : 0)) : void 0,
456
458
  "aria-label": this.props.ariaLabel || this.props.label,
457
459
  "aria-labelledby": this.props.ariaLabelledBy,
458
460
  "aria-describedby": this.props.ariaDescribedBy || this._inputId,
@@ -460,71 +462,74 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
460
462
  id: this.props.id,
461
463
  title: this.props.title
462
464
  },
463
- J,
464
- P && /* @__PURE__ */ h.createElement(ee, { className: "k-input-loading-icon", name: "loading" }),
465
- /* @__PURE__ */ h.createElement(
466
- U,
465
+ Z,
466
+ y && /* @__PURE__ */ u.createElement(ie, { className: x(D.loadingIcon({ c: _ })), name: "loading" }),
467
+ /* @__PURE__ */ u.createElement(
468
+ G,
467
469
  {
468
470
  tabIndex: -1,
469
471
  type: "button",
470
472
  "aria-label": s,
471
473
  "aria-hidden": !0,
472
- size: o,
473
- fillMode: l,
474
- iconClass: k,
475
- className: "k-input-button",
474
+ size: l,
475
+ fillMode: d,
476
+ iconClass: v,
477
+ className: x(D.iconButton({ c: _ })),
476
478
  rounded: null,
477
479
  themeColor: "base",
478
- icon: k ? void 0 : "caret-alt-down",
479
- svgIcon: y || ne,
480
- onMouseDown: (F) => this.state.focused && F.preventDefault()
480
+ icon: v ? void 0 : "caret-alt-down",
481
+ svgIcon: m || de,
482
+ onMouseDown: (K) => this.state.focused && K.preventDefault()
481
483
  }
482
484
  ),
483
- this.dummySelect(b),
484
- !C && this.renderListContainer()
485
- ), C && this.renderAdaptiveListContainer());
486
- return a ? /* @__PURE__ */ h.createElement(
487
- oe,
485
+ this.dummySelect(g),
486
+ !P && this.renderListContainer()
487
+ ), P && this.renderAdaptiveListContainer());
488
+ return o ? /* @__PURE__ */ u.createElement(
489
+ le,
488
490
  {
489
- label: a,
490
- editorValue: I,
491
- editorValid: m,
491
+ label: o,
492
+ editorValue: p,
493
+ editorValid: r,
492
494
  editorDisabled: this.props.disabled,
493
495
  style: { width: e ? e.width : void 0 },
494
- children: A
496
+ children: H
495
497
  }
496
- ) : A;
498
+ ) : H;
497
499
  }
498
500
  /**
499
501
  * @hidden
500
502
  */
501
503
  onNavigate(s, e, t) {
502
504
  const {
503
- defaultItem: a,
504
- dataItemKey: p,
505
+ defaultItem: o,
506
+ dataItemKey: h,
505
507
  virtual: n = { skip: 0, total: 0, pageSize: 0 }
506
- } = this.props, o = x(this.props), f = this.base.vs, l = this.value, i = o.findIndex((r) => E(r, l, p)), c = this.base.navigation.navigate({
508
+ } = this.props, l = E(this.props), b = this.base.vs, d = this.value, i = l.findIndex((a) => k(a, d, h)), c = this.base.navigation.navigate({
507
509
  current: n.skip + i,
508
- max: (f.enabled ? n.total : o.length) - 1,
509
- min: a !== void 0 ? -1 : 0,
510
+ max: (b.enabled ? n.total : l.length) - 1,
511
+ min: o !== void 0 ? -1 : 0,
510
512
  keyCode: e,
511
513
  skipItems: t || void 0
512
514
  });
513
515
  c !== void 0 && this.handleItemSelect(c, s), this.applyState(s);
514
516
  }
515
517
  renderAdaptiveListContainer() {
516
- const { windowWidth: s = 0 } = this.state, { header: e, footer: t, size: a, adaptiveTitle: p, groupField: n, groupStickyHeaderItemRender: o, list: f } = this.props, l = x(this.props), i = this.props.opened !== void 0 ? this.props.opened : this.state.opened, c = {
518
+ const { windowWidth: s = 0 } = this.state, { header: e, footer: t, size: o, adaptiveTitle: h, groupField: n, groupStickyHeaderItemRender: l, list: b, unstyled: d } = this.props, i = E(this.props), c = this.props.opened !== void 0 ? this.props.opened : this.state.opened, a = d && d.uDropDownList, f = d && d.uDropDownList, g = {
517
519
  navigatable: !1,
518
520
  navigatableElements: [],
519
- expand: i,
521
+ expand: c,
520
522
  animation: !0,
521
- onClose: (b) => this.handleWrapperClick(b),
522
- animationStyles: s <= Y ? { top: 0, width: "100%", height: "100%" } : void 0,
523
- className: s <= Y ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
523
+ onClose: (r) => this.handleWrapperClick(r),
524
+ animationStyles: s <= $ ? { top: 0, width: "100%", height: "100%" } : void 0,
525
+ className: x(N.wrapper({
526
+ c: a,
527
+ isFullScreen: s <= $
528
+ }))
524
529
  };
525
- let { group: r } = this.state;
526
- return r === void 0 && n !== void 0 && (r = K(l[0], n)), /* @__PURE__ */ h.createElement(be, { ...c }, /* @__PURE__ */ h.createElement(Ie, { className: "k-text-center" }, /* @__PURE__ */ h.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ h.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ h.createElement("div", null, p)), /* @__PURE__ */ h.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ h.createElement(
527
- U,
530
+ let { group: p } = this.state;
531
+ return p === void 0 && n !== void 0 && (p = T(i[0], n)), /* @__PURE__ */ u.createElement(Se, { ...g }, /* @__PURE__ */ u.createElement(we, { className: x(N.header({ c: f })) }, /* @__PURE__ */ u.createElement("div", { className: x(N.titleBar({ c: f })) }, /* @__PURE__ */ u.createElement("div", { className: x(N.title({ c: f })) }, /* @__PURE__ */ u.createElement("div", null, h)), /* @__PURE__ */ u.createElement("div", { className: x(N.actions({ c: f })) }, /* @__PURE__ */ u.createElement(
532
+ G,
528
533
  {
529
534
  tabIndex: 0,
530
535
  "aria-label": "Cancel",
@@ -533,40 +538,40 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
533
538
  fillMode: "flat",
534
539
  onClick: this.handleWrapperClick,
535
540
  icon: "x",
536
- svgIcon: re
541
+ svgIcon: pe
537
542
  }
538
- ))), /* @__PURE__ */ h.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderListFilter())), /* @__PURE__ */ h.createElement(ye, { className: "!k-overflow-hidden" }, e && /* @__PURE__ */ h.createElement("div", { className: "k-list-header" }, e), /* @__PURE__ */ h.createElement(
543
+ ))), /* @__PURE__ */ u.createElement("div", { className: x(N.titleBarGroup({ c: f })) }, this.renderListFilter())), /* @__PURE__ */ u.createElement(xe, { className: x(N.content({ c: f })) }, e && /* @__PURE__ */ u.createElement("div", { className: x(D.listHeader({ c: a })) }, e), /* @__PURE__ */ u.createElement(
539
544
  "div",
540
545
  {
541
- className: L(
542
- "k-list",
543
- {
544
- [`k-list-${T[a] || a}`]: a,
545
- "k-virtual-list": this.base.vs.enabled
546
- }
546
+ className: x(
547
+ D.list({
548
+ c: a,
549
+ size: o,
550
+ virtual: this.base.vs.enabled
551
+ })
547
552
  )
548
553
  },
549
554
  this.renderDefaultItem(),
550
- !f && r && l.length !== 0 && /* @__PURE__ */ h.createElement(B, { group: r, groupMode: "modern", render: o }),
555
+ !b && p && i.length !== 0 && /* @__PURE__ */ u.createElement(W, { group: p, groupMode: "modern", render: l }),
551
556
  this.renderList()
552
- ), t && /* @__PURE__ */ h.createElement("div", { className: "k-list-footer" }, t)));
557
+ ), t && /* @__PURE__ */ u.createElement("div", { className: x(D.listFooter({ c: a })) }, t)));
553
558
  }
554
559
  getFocusedIndex() {
555
560
  const s = this.value, {
556
561
  textField: e,
557
562
  dataItemKey: t,
558
- virtual: a = { skip: 0 },
559
- focusedItemIndex: p = me,
563
+ virtual: o = { skip: 0 },
564
+ focusedItemIndex: h = ve,
560
565
  filterable: n,
561
- skipDisabledItems: o = !0
562
- } = this.props, f = x(this.props), l = this.props.filter ? this.props.filter : this.state.text;
563
- return o && e && !l && !s ? f.findIndex((i) => !i.disabled && i[e]) : q(s) && l === void 0 || n && l === "" ? f.findIndex((i) => E(i, s, t)) : l ? this._lastKeypressIsFilter ? p(f, l, e) : f.findIndex((i) => E(i, s, t)) : a.skip === 0 ? 0 : -1;
566
+ skipDisabledItems: l = !0
567
+ } = this.props, b = E(this.props), d = this.props.filter ? this.props.filter : this.state.text;
568
+ return l && e && !d && !s ? b.findIndex((i) => !i.disabled && i[e]) : U(s) && d === void 0 || n && d === "" ? b.findIndex((i) => k(i, s, t)) : d ? this._lastKeypressIsFilter ? h(b, d, e) : b.findIndex((i) => k(i, s, t)) : o.skip === 0 ? 0 : -1;
564
569
  }
565
570
  focusElement(s) {
566
571
  this._skipFocusEvent = !0, s.focus(), window.setTimeout(() => this._skipFocusEvent = !1, 30);
567
572
  }
568
573
  triggerOnChange(s, e) {
569
- E(this.value, s, this.props.dataItemKey) || (this.props.value === void 0 && (e.data.value = s), this._valueDuringOnChange = s, e.events.push({ type: "onChange" }));
574
+ k(this.value, s, this.props.dataItemKey) || (this.props.value === void 0 && (e.data.value = s), this._valueDuringOnChange = s, e.events.push({ type: "onChange" }));
570
575
  }
571
576
  applyState(s) {
572
577
  this.base.applyState(s), this._valueDuringOnChange = void 0;
@@ -576,53 +581,53 @@ const ke = "Please select a value from the list!", { sizeMap: T, roundedMap: Se
576
581
  this.setState({ windowWidth: e.target.clientWidth });
577
582
  }
578
583
  resetValueIfDisabledItem() {
579
- const s = x(this.props), e = this.base.initState(), t = this.getFocusedIndex();
584
+ const s = E(this.props), e = this.base.initState(), t = this.getFocusedIndex();
580
585
  this.haveFocusedItemAndDataNotEmpty(s, t) && (this.triggerOnChange(null, e), this.applyState(e));
581
586
  }
582
587
  haveFocusedItemAndDataNotEmpty(s, e) {
583
588
  return e !== void 0 && e !== -1 && s && s.length > 0 && s[e].disabled;
584
589
  }
585
590
  };
586
- _.displayName = "DropDownList", _.propTypes = {
587
- delay: S.number,
588
- ignoreCase: S.bool,
589
- iconClassName: S.string,
590
- svgIcon: X,
591
- defaultItem: S.any,
592
- valueRender: S.func,
593
- valueMap: S.func,
594
- validationMessage: S.string,
595
- required: S.bool,
596
- id: S.string,
597
- ariaLabelledBy: S.string,
598
- ariaDescribedBy: S.string,
599
- ariaLabel: S.string,
600
- leftRightKeysNavigation: S.bool,
601
- title: S.string,
602
- groupField: S.string,
603
- list: S.any,
604
- skipDisabledItems: S.bool,
605
- renderListFilterWrapper: S.bool,
606
- ...z.propTypes
607
- }, _.defaultProps = {
591
+ L.displayName = "DropDownList", L.propTypes = {
592
+ delay: C.number,
593
+ ignoreCase: C.bool,
594
+ iconClassName: C.string,
595
+ svgIcon: te,
596
+ defaultItem: C.any,
597
+ valueRender: C.func,
598
+ valueMap: C.func,
599
+ validationMessage: C.string,
600
+ required: C.bool,
601
+ id: C.string,
602
+ ariaLabelledBy: C.string,
603
+ ariaDescribedBy: C.string,
604
+ ariaLabel: C.string,
605
+ leftRightKeysNavigation: C.bool,
606
+ title: C.string,
607
+ groupField: C.string,
608
+ list: C.any,
609
+ skipDisabledItems: C.bool,
610
+ renderListFilterWrapper: C.bool,
611
+ ...R.propTypes
612
+ }, L.defaultProps = {
608
613
  delay: 500,
609
614
  tabIndex: 0,
610
615
  ignoreCase: !0,
611
- ...z.defaultProps,
616
+ ...R.defaultProps,
612
617
  required: !1,
613
618
  size: "medium",
614
619
  rounded: "medium",
615
620
  fillMode: "solid",
616
621
  groupMode: "modern"
617
622
  };
618
- let R = _;
619
- const xe = te(), we = se(ie(
620
- xe,
621
- R
623
+ let A = L;
624
+ const De = ae(), Ee = oe(ne(
625
+ De,
626
+ re(A)
622
627
  ));
623
- we.displayName = "KendoReactDropDownList";
628
+ Ee.displayName = "KendoReactDropDownList";
624
629
  export {
625
- we as DropDownList,
626
- xe as DropDownListPropsContext,
627
- R as DropDownListWithoutContext
630
+ Ee as DropDownList,
631
+ De as DropDownListPropsContext,
632
+ A as DropDownListWithoutContext
628
633
  };