@progress/kendo-react-dropdowns 8.3.0-develop.1 → 8.3.0-develop.10

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