@progress/kendo-react-dropdowns 13.3.0 → 13.4.0-develop.2

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 (76) hide show
  1. package/AutoComplete/AutoComplete.d.ts +274 -0
  2. package/AutoComplete/AutoComplete.js +1 -1
  3. package/AutoComplete/AutoComplete.mjs +67 -69
  4. package/AutoComplete/AutoCompleteProps.d.ts +509 -0
  5. package/ComboBox/ComboBox.d.ts +279 -0
  6. package/ComboBox/ComboBox.js +1 -1
  7. package/ComboBox/ComboBox.mjs +281 -297
  8. package/ComboBox/ComboBoxProps.d.ts +632 -0
  9. package/DropDownList/DropDownList.d.ts +41 -0
  10. package/DropDownList/DropDownList.js +1 -1
  11. package/DropDownList/DropDownList.mjs +78 -83
  12. package/DropDownList/DropDownListProps.d.ts +594 -0
  13. package/DropDownList/models/index.d.ts +54 -0
  14. package/DropDownTree/DropDownTree.d.ts +76 -0
  15. package/DropDownTree/DropDownTree.js +1 -1
  16. package/DropDownTree/DropDownTree.mjs +6 -8
  17. package/DropDownTree/DropDownTreeProps.d.ts +506 -0
  18. package/DropDownTree/ListNoData.d.ts +13 -0
  19. package/DropDownTree/useDropdownWidth.d.ts +13 -0
  20. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +299 -0
  21. package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
  22. package/MultiColumnComboBox/MultiColumnComboBox.mjs +45 -48
  23. package/MultiSelect/MultiSelect.d.ts +281 -0
  24. package/MultiSelect/MultiSelect.js +1 -1
  25. package/MultiSelect/MultiSelect.mjs +13 -15
  26. package/MultiSelect/MultiSelectProps.d.ts +592 -0
  27. package/MultiSelect/TagList.d.ts +45 -0
  28. package/MultiSelectTree/MultiSelectTree.d.ts +87 -0
  29. package/MultiSelectTree/MultiSelectTree.js +1 -1
  30. package/MultiSelectTree/MultiSelectTree.mjs +7 -7
  31. package/MultiSelectTree/MultiSelectTreeProps.d.ts +554 -0
  32. package/MultiSelectTree/utils.d.ts +24 -0
  33. package/common/AdaptiveMode.d.ts +22 -0
  34. package/common/ClearButton.d.ts +19 -0
  35. package/common/DropDownBase.d.ts +186 -0
  36. package/common/DropDownBase.js +1 -1
  37. package/common/DropDownBase.mjs +1 -1
  38. package/common/GroupStickyHeader.d.ts +26 -0
  39. package/common/GroupStickyHeader.js +1 -1
  40. package/common/GroupStickyHeader.mjs +6 -6
  41. package/common/List.d.ts +54 -0
  42. package/common/List.js +1 -1
  43. package/common/List.mjs +129 -77
  44. package/common/ListContainer.d.ts +24 -0
  45. package/common/ListDefaultItem.d.ts +22 -0
  46. package/common/ListFilter.d.ts +29 -0
  47. package/common/ListFilter.js +1 -1
  48. package/common/ListFilter.mjs +12 -12
  49. package/common/ListGroupItem.d.ts +54 -0
  50. package/common/ListGroupItem.js +1 -1
  51. package/common/ListGroupItem.mjs +21 -13
  52. package/common/ListItem.d.ts +87 -0
  53. package/common/ListItem.js +1 -1
  54. package/common/ListItem.mjs +62 -21
  55. package/common/ListItemIcon.d.ts +26 -0
  56. package/common/ListItemIcon.js +8 -0
  57. package/common/ListItemIcon.mjs +21 -0
  58. package/common/MultiColumnList.d.ts +13 -0
  59. package/common/Navigation.d.ts +20 -0
  60. package/common/SearchBar.d.ts +55 -0
  61. package/common/VirtualScrollStatic.d.ts +44 -0
  62. package/common/events.d.ts +82 -0
  63. package/common/filterDescriptor.d.ts +48 -0
  64. package/common/settings.d.ts +112 -0
  65. package/common/utils.d.ts +82 -0
  66. package/common/utils.js +1 -1
  67. package/common/utils.mjs +50 -47
  68. package/common/withCustomComponent.d.ts +12 -0
  69. package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
  70. package/index.d.mts +28 -5545
  71. package/index.d.ts +28 -5545
  72. package/messages/index.d.ts +52 -0
  73. package/package-metadata.d.ts +12 -0
  74. package/package-metadata.js +1 -1
  75. package/package-metadata.mjs +10 -16
  76. package/package.json +10 -10
@@ -5,61 +5,61 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as g from "react";
8
+ import * as u from "react";
9
9
  import m from "prop-types";
10
10
  import _ from "../common/DropDownBase.mjs";
11
- import { classNames as S, uComboBox as F, Keys as I, validatePackage as te, getLicenseMessage as se, svgIconPropType as ie, canUseDOM as A, IconWrap as oe, WatermarkOverlay as ae, createPropsContext as ne, withIdHOC as le, withPropsContext as re, withUnstyledHOC as pe, withAdaptiveModeContext as de } from "@progress/kendo-react-common";
12
- import { FloatingLabel as he } from "@progress/kendo-react-labels";
13
- import { getPlainDataDuplicates as ce, getFilteredData as y, areSame as D, getItemValue as w, isPresent as k, getItemIndexByText as z, suggestValue as ue, itemIndexStartsWith as P } from "../common/utils.mjs";
14
- import ge from "../common/SearchBar.mjs";
15
- import me from "../common/ListContainer.mjs";
16
- import fe from "../common/List.mjs";
17
- import ve from "../common/ListFilter.mjs";
11
+ import { withIdHOC as et, createPropsContext as st, withPropsContext as it, withUnstyledHOC as ot, withAdaptiveModeContext as at, classNames as S, uComboBox as F, Keys as I, validatePackage as nt, getLicenseMessage as lt, svgIconPropType as rt, canUseDOM as A, IconWrap as pt, WatermarkOverlay as dt } from "@progress/kendo-react-common";
12
+ import { FloatingLabel as ht } from "@progress/kendo-react-labels";
13
+ import { getPlainDataDuplicates as ct, getFilteredData as y, areSame as D, getItemValue as w, isPresent as k, itemIndexStartsWith as P, getItemIndexByText as z, suggestValue as ut } from "../common/utils.mjs";
14
+ import gt from "../common/SearchBar.mjs";
15
+ import mt from "../common/ListContainer.mjs";
16
+ import ft from "../common/List.mjs";
17
+ import vt from "../common/ListFilter.mjs";
18
18
  import K from "../common/GroupStickyHeader.mjs";
19
19
  import { packageMetadata as H } from "../package-metadata.mjs";
20
- import be from "../common/ClearButton.mjs";
21
- import { Button as xe } from "@progress/kendo-react-buttons";
22
- import { caretAltDownIcon as Ie } from "@progress/kendo-svg-icons";
20
+ import bt from "../common/ClearButton.mjs";
21
+ import { Button as xt } from "@progress/kendo-react-buttons";
22
+ import { caretAltDownIcon as It } from "@progress/kendo-svg-icons";
23
23
  import { comboArrowBtnAriaLabelExpand as q, messages as W, comboArrowBtnAriaLabelCollapse as G } from "../messages/index.mjs";
24
24
  import { provideLocalizationService as U } from "@progress/kendo-react-intl";
25
- import { ActionSheetContent as ye } from "@progress/kendo-react-layout";
25
+ import { ActionSheetContent as yt } from "@progress/kendo-react-layout";
26
26
  import j from "../common/withCustomComponent.mjs";
27
- import { AdaptiveMode as Ce } from "../common/AdaptiveMode.mjs";
28
- const Se = "Please enter a valid value!", E = class E extends g.Component {
27
+ import { AdaptiveMode as Ct } from "../common/AdaptiveMode.mjs";
28
+ const St = "Please enter a valid value!", M = class M extends u.Component {
29
29
  constructor(s) {
30
30
  super(s), this.state = {}, this.base = new _(this), this._element = null, this._suggested = "", this._skipBlur = !1, this._input = null, this._adaptiveFilterInput = null, this._skipFocus = !1, this.itemHeight = 0, this.duplicates = [], this.hasDuplicates = !1, this.scrollToFocused = !1, this.showLicenseWatermark = !1, this.focus = () => {
31
31
  this._input && this._input.focus();
32
32
  }, this.checkForDuplicatePlainTextRecords = () => {
33
- const e = this.props.textField !== void 0, t = this.props.dataItemKey !== void 0;
34
- if (this.props.data && this.props.data.length > 0 && !e && !t) {
33
+ const t = this.props.textField !== void 0, e = this.props.dataItemKey !== void 0;
34
+ if (this.props.data && this.props.data.length > 0 && !t && !e) {
35
35
  const i = this.props.data;
36
- this.duplicates = ce(i), this.hasDuplicates = this.duplicates.length > 0;
36
+ this.duplicates = ct(i), this.hasDuplicates = this.duplicates.length > 0;
37
37
  }
38
- }, this.handleItemSelect = (e, t) => {
39
- const { virtual: i, dataItemKey: r } = this.props, l = y(this.props), o = i ? i.skip : 0, p = l[e - o], n = this.hasDuplicates || !D(p, this.value, r);
40
- this.triggerOnChange(p, t), this.state.text !== void 0 && (t.data.text = void 0), n && this.base.triggerPageChangeCornerItems(p, t);
38
+ }, this.handleItemSelect = (t, e) => {
39
+ const { virtual: i, dataItemKey: r } = this.props, n = y(this.props), o = i ? i.skip : 0, p = n[t - o], l = this.hasDuplicates || !D(p, this.value, r);
40
+ this.triggerOnChange(p, e), this.state.text !== void 0 && (e.data.text = void 0), l && this.base.triggerPageChangeCornerItems(p, e);
41
41
  }, this.onPopupOpened = () => {
42
42
  setTimeout(() => {
43
43
  this.mobileMode && this._adaptiveFilterInput && (this._skipBlur = !0, this._adaptiveFilterInput.focus(), this._skipBlur = !1);
44
44
  }, 300);
45
- }, this.componentRef = (e) => {
46
- this._element = e, this.base.wrapper = e;
47
- }, this.toggleBtnClick = (e) => {
45
+ }, this.componentRef = (t) => {
46
+ this._element = t, this.base.wrapper = t;
47
+ }, this.toggleBtnClick = (t) => {
48
48
  this._skipFocus = !0;
49
- const { skipDisabledItems: t, textField: i } = this.props, r = y(this.props), l = this.getFocusedIndex(), o = this.getCurrentValueDisabledStatus(i, r, l), p = this.props.opened !== void 0 ? this.props.opened : this.state.opened, n = this.base.initState();
50
- if (n.syntheticEvent = e, !t && i && o && this.clearValueOnToggleBtnClick(e), this.base.togglePopup(n), !p && this.mobileMode) {
49
+ const { skipDisabledItems: e, textField: i } = this.props, r = y(this.props), n = this.getFocusedIndex(), o = this.getCurrentValueDisabledStatus(i, r, n), p = this.props.opened !== void 0 ? this.props.opened : this.state.opened, l = this.base.initState();
50
+ if (l.syntheticEvent = t, !e && i && o && this.clearValueOnToggleBtnClick(t), this.base.togglePopup(l), !p && this.mobileMode) {
51
51
  const a = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text || null;
52
- this.base.filterChanged(a, n);
52
+ this.base.filterChanged(a, l);
53
53
  }
54
- this.applyState(n), setTimeout(() => {
54
+ this.applyState(l), setTimeout(() => {
55
55
  this._skipFocus = !1;
56
56
  }, 300);
57
- }, this.closeOpenedApplyStateNonMobileMode = (e, t) => {
58
- t && !this.mobileMode && this.base.togglePopup(e);
57
+ }, this.closeOpenedApplyStateNonMobileMode = (t, e) => {
58
+ e && !this.mobileMode && this.base.togglePopup(t);
59
59
  }, this.renderMobileListFilter = () => {
60
- const e = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, t = w(this.value, this.props.textField), i = k(e) ? e : t;
61
- return /* @__PURE__ */ g.createElement(
62
- ve,
60
+ const t = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, e = w(this.value, this.props.textField), i = k(t) ? t : e;
61
+ return /* @__PURE__ */ u.createElement(
62
+ vt,
63
63
  {
64
64
  value: i,
65
65
  ref: (r) => {
@@ -74,107 +74,107 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
74
74
  }
75
75
  );
76
76
  }, this.listContainerContent = () => {
77
- const { header: e, footer: t, size: i, groupStickyHeaderItemRender: r, groupField: l, list: o, groupMode: p, unstyled: n, virtual: a } = this.props, d = y(this.props), h = n && n.uComboBox;
78
- let { group: b } = this.state;
79
- return b === void 0 && l !== void 0 && (b = w(d[0], l)), /* @__PURE__ */ g.createElement(
77
+ const { header: t, footer: e, size: i, groupStickyHeaderItemRender: r, groupField: n, list: o, unstyled: p, virtual: l } = this.props, a = y(this.props), d = p && p.uComboBox;
78
+ let { group: h } = this.state;
79
+ return h === void 0 && n !== void 0 && (h = w(a[0], n)), /* @__PURE__ */ u.createElement(
80
80
  "div",
81
81
  {
82
82
  className: S(
83
83
  F.list({
84
- c: h,
84
+ c: d,
85
85
  list: o,
86
86
  size: "large",
87
87
  tableSize: i,
88
- virtual: a
88
+ virtual: l
89
89
  })
90
90
  )
91
91
  },
92
- e && /* @__PURE__ */ g.createElement("div", { className: S(F.listHeader({ c: h })) }, e),
93
- !o && b && d.length !== 0 && /* @__PURE__ */ g.createElement(K, { group: b, groupMode: p, render: r }),
92
+ t && /* @__PURE__ */ u.createElement("div", { className: S(F.listHeader({ c: d })) }, t),
93
+ !o && h && a.length !== 0 && /* @__PURE__ */ u.createElement(K, { group: h, render: r }),
94
94
  this.renderList(),
95
- t && /* @__PURE__ */ g.createElement(
95
+ e && /* @__PURE__ */ u.createElement(
96
96
  "div",
97
97
  {
98
- className: S(F.listFooter({ c: h }), this.props.footerClassName)
98
+ className: S(F.listFooter({ c: d }), this.props.footerClassName)
99
99
  },
100
- t
100
+ e
101
101
  )
102
102
  );
103
- }, this.handleMobileFilterChange = (e) => {
104
- const t = this.base.initState();
105
- t.syntheticEvent = e.syntheticEvent, t.data.text = e.target.value, this.base.filterChanged(e.target.value, t), this.applyState(t);
106
- }, this.onScroll = (e) => {
107
- const { vs: t, list: i } = this.base;
108
- t.scrollHandler(e);
103
+ }, this.handleMobileFilterChange = (t) => {
104
+ const e = this.base.initState();
105
+ e.syntheticEvent = t.syntheticEvent, e.data.text = t.target.value, this.base.filterChanged(t.target.value, e), this.applyState(e);
106
+ }, this.onScroll = (t) => {
107
+ const { vs: e, list: i } = this.base;
108
+ e.scrollHandler(t);
109
109
  const { groupField: r } = this.props;
110
- let l = y(this.props);
111
- if (!r || !l.length)
110
+ let n = y(this.props);
111
+ if (!r || !n.length)
112
112
  return;
113
- const o = this.itemHeight = this.itemHeight || (t.enabled ? t.itemHeight : i ? i.children[0].offsetHeight : 0), n = e.target.scrollTop - t.skip * o;
114
- this.props.groupMode === "modern" && (l = this.base.getGroupedDataModernMode(l, r));
115
- let a = l[0][r];
116
- for (let d = 1; d < l.length && !(o * d > n); d++)
117
- l[d] && l[d][r] && (a = l[d][r]);
113
+ const o = this.itemHeight = this.itemHeight || (e.enabled ? e.itemHeight : i ? i.children[0].offsetHeight : 0), l = t.target.scrollTop - e.skip * o;
114
+ n = this.base.getGroupedDataModernMode(n, r);
115
+ let a = n[0][r];
116
+ for (let d = 1; d < n.length && !(o * d > l); d++)
117
+ n[d] && n[d][r] && (a = n[d][r]);
118
118
  a !== this.state.group && (this.setState({
119
119
  group: a
120
120
  }), this.props.onGroupScroll && this.props.onGroupScroll.call(void 0, { group: a }));
121
- }, this.handleItemClick = (e, t) => {
122
- this.navigationIndex = e, this.base.handleItemClick(e, t), this._valueDuringOnChange = void 0;
123
- }, this.handleBlur = (e) => {
121
+ }, this.handleItemClick = (t, e) => {
122
+ this.navigationIndex = t, this.base.handleItemClick(t, e), this._valueDuringOnChange = void 0;
123
+ }, this.handleBlur = (t) => {
124
124
  if (this.state.focused && !this._skipBlur) {
125
- const t = this.base.initState(), { textField: i } = this.props, r = y(this.props), l = this.getFocusedIndex(), p = !(l === -1) && this.getCurrentValueDisabledStatus(i, r, l);
126
- t.data.focused = !1, t.events.push({ type: "onBlur" }), t.syntheticEvent = e, i && p && this.clearValueOnBlur(e), this.applyValueOnRejectSuggestions(e.currentTarget.value, t);
125
+ const e = this.base.initState(), { textField: i } = this.props, r = y(this.props), n = this.getFocusedIndex(), p = !(n === -1) && this.getCurrentValueDisabledStatus(i, r, n);
126
+ e.data.focused = !1, e.events.push({ type: "onBlur" }), e.syntheticEvent = t, i && p && this.clearValueOnBlur(t), this.applyValueOnRejectSuggestions(t.currentTarget.value, e);
127
127
  }
128
- }, this.onInputClick = (e) => {
129
- const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, i = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text || null;
130
- if (!t && this.mobileMode) {
128
+ }, this.onInputClick = (t) => {
129
+ const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, i = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text || null;
130
+ if (!e && this.mobileMode) {
131
131
  const r = this.base.initState();
132
- r.syntheticEvent = e, this.base.togglePopup(r), this.base.filterChanged(i, r), this.applyState(r);
132
+ r.syntheticEvent = t, this.base.togglePopup(r), this.base.filterChanged(i, r), this.applyState(r);
133
133
  }
134
- }, this.onInputKeyDown = (e) => {
135
- const { skipDisabledItems: t, textField: i, dataItemKey: r, groupField: l } = this.props, o = y(this.props), p = this.value, n = Math.max(
134
+ }, this.onInputKeyDown = (t) => {
135
+ const { skipDisabledItems: e, textField: i, dataItemKey: r, groupField: n } = this.props, o = y(this.props), p = this.value, l = Math.max(
136
136
  0,
137
- o.findIndex((u) => D(u, p, r))
138
- ), a = e.keyCode, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, h = this.base.initState();
139
- if (h.syntheticEvent = e, !e.altKey && (a === I.up || a === I.down)) {
140
- if (e.preventDefault(), l !== "" && i)
137
+ o.findIndex((g) => D(g, p, r))
138
+ ), a = t.keyCode, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, h = this.base.initState();
139
+ if (h.syntheticEvent = t, !t.altKey && (a === I.up || a === I.down)) {
140
+ if (t.preventDefault(), n !== "" && i)
141
141
  if (!this.props.skipDisabledItems && d)
142
142
  this.onNavigate(h, a);
143
143
  else {
144
- let u = 0;
144
+ let g = 0;
145
145
  if (a === I.down || a === I.right) {
146
- const c = o.slice(n + 1 < o.length ? n + 1 : n).find((v) => !v.disabled && v[i]);
147
- u = c && o.findIndex((v) => v[i] === c[i]);
146
+ const c = o.slice(l + 1 < o.length ? l + 1 : l).find((v) => !v.disabled && v[i]);
147
+ g = c && o.findIndex((v) => v[i] === c[i]);
148
148
  } else if (a === I.up || a === I.left) {
149
149
  let c;
150
- if (n === 0)
151
- c = o, u = o.findIndex((v) => !v.disabled && v[i]);
150
+ if (l === 0)
151
+ c = o, g = o.findIndex((v) => !v.disabled && v[i]);
152
152
  else {
153
- c = o.slice(0, n);
153
+ c = o.slice(0, l);
154
154
  let v = c.pop();
155
155
  for (; v && v.disabled; )
156
156
  v = c.pop();
157
- u = v && o.findIndex((M) => M[i] === v[i]);
157
+ g = v && o.findIndex((E) => E[i] === v[i]);
158
158
  }
159
159
  }
160
- if (u !== void 0) {
161
- const c = u - n;
160
+ if (g !== void 0) {
161
+ const c = g - l;
162
162
  this.onNavigate(h, a, c);
163
- } else u === void 0 && o.findIndex((c) => c[i] === p[i]) === o.length - 1 && this.onNavigate(h, a);
163
+ } else g === void 0 && o.findIndex((c) => c[i] === p[i]) === o.length - 1 && this.onNavigate(h, a);
164
164
  }
165
165
  else if (!this.props.skipDisabledItems && d)
166
166
  this.onNavigate(h, a);
167
167
  else {
168
- let u = null;
168
+ let g = null;
169
169
  if (a === I.down || a === I.right)
170
- u = o.slice(n + 1).find((c) => !c.disabled);
170
+ g = o.slice(l + 1).find((c) => !c.disabled);
171
171
  else if (a === I.up || a === I.left) {
172
- const c = o.slice(0, n);
173
- for (u = c.pop(); u && u.disabled; )
174
- u = c.pop();
172
+ const c = o.slice(0, l);
173
+ for (g = c.pop(); g && g.disabled; )
174
+ g = c.pop();
175
175
  }
176
- if (u) {
177
- const c = u.id - n - 1;
176
+ if (g) {
177
+ const c = g.id - l - 1;
178
178
  this.onNavigate(h, a, c);
179
179
  } else
180
180
  this.onNavigate(h, a);
@@ -182,45 +182,45 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
182
182
  this.applyState(h);
183
183
  }
184
184
  const b = () => {
185
- e.preventDefault(), this.base.togglePopup(h), this.applyState(h);
186
- }, x = this.getFocusedIndex(), C = x === -1, f = !C && this.getCurrentValueDisabledStatus(i, o, x);
187
- d ? a === I.pageUp ? (e.preventDefault(), this.base.scrollPopupByPageSize(-1)) : a === I.pageDown ? (e.preventDefault(), this.base.scrollPopupByPageSize(1)) : e.altKey && a === I.up ? b() : a === I.enter ? (e.preventDefault(), (i && !C && e.currentTarget.value ? o[x][i] : void 0) ? !t && i && f ? this.clearValueOnEnterOrEsc(e) : f || this.applyValueOnEnter(e.currentTarget.value, h) : this.applyValueOnEnter(e.currentTarget.value, h)) : a === I.esc && (!t && i && f && this.clearValueOnEnterOrEsc(e), this.applyValueOnRejectSuggestions(e.currentTarget.value, h)) : !d && a === I.esc ? this.clearValueOnEnterOrEsc(e) : e.altKey && a === I.down && b();
188
- }, this.inputOnChange = (e) => {
189
- const t = this.base.initState();
190
- t.syntheticEvent = e;
191
- const i = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = e.currentTarget, l = r.value;
185
+ t.preventDefault(), this.base.togglePopup(h), this.applyState(h);
186
+ }, C = this.getFocusedIndex(), x = C === -1, f = !x && this.getCurrentValueDisabledStatus(i, o, C);
187
+ d ? a === I.pageUp ? (t.preventDefault(), this.base.scrollPopupByPageSize(-1)) : a === I.pageDown ? (t.preventDefault(), this.base.scrollPopupByPageSize(1)) : t.altKey && a === I.up ? b() : a === I.enter ? (t.preventDefault(), (i && !x && t.currentTarget.value ? o[C][i] : void 0) ? !e && i && f ? this.clearValueOnEnterOrEsc(t) : f || this.applyValueOnEnter(t.currentTarget.value, h) : this.applyValueOnEnter(t.currentTarget.value, h)) : a === I.esc && (!e && i && f && this.clearValueOnEnterOrEsc(t), this.applyValueOnRejectSuggestions(t.currentTarget.value, h)) : !d && a === I.esc ? this.clearValueOnEnterOrEsc(t) : t.altKey && a === I.down && b();
188
+ }, this.inputOnChange = (t) => {
189
+ const e = this.base.initState();
190
+ e.syntheticEvent = t;
191
+ const i = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = t.currentTarget, n = r.value;
192
192
  if (this.props.suggest) {
193
- const o = r.selectionEnd === l.length;
193
+ const o = r.selectionEnd === n.length;
194
194
  let p = this.props.filter !== void 0 ? this.props.filter : this.state.text;
195
195
  k(p) || (p = w(this.value, this.props.textField) || "");
196
- const n = p && p === l, a = p && p.length > l.length;
197
- n || a || !o ? this._suggested = "" : this.suggestValue(l);
196
+ const l = p && p === n, a = p && p.length > n.length;
197
+ l || a || !o ? this._suggested = "" : this.suggestValue(n);
198
198
  }
199
- this.props.filter === void 0 && (t.data.text = l), this.state.focusedItem !== void 0 && (t.data.focusedItem = void 0), i ? this.scrollToFocused = !0 : this.base.togglePopup(t), this.base.filterChanged(l, t), this.applyState(t), this.setState({ group: void 0 });
200
- }, this.clearButtonClick = (e) => {
201
- const t = this.base.initState();
202
- t.syntheticEvent = e, e.stopPropagation(), this.clearValue();
203
- }, this.clearValueOnEnterOrEsc = (e) => {
204
- const t = this.base.initState();
205
- t.syntheticEvent = e, e.stopPropagation(), this.clearValue();
206
- }, this.clearValueOnBlur = (e) => {
207
- const t = this.base.initState();
208
- t.syntheticEvent = e, e.stopPropagation(), this.clearValue();
209
- }, this.clearValueOnToggleBtnClick = (e) => {
210
- const t = this.base.initState();
211
- t.syntheticEvent = e, e.stopPropagation(), this.clearValue();
199
+ this.props.filter === void 0 && (e.data.text = n), this.state.focusedItem !== void 0 && (e.data.focusedItem = void 0), i ? this.scrollToFocused = !0 : this.base.togglePopup(e), this.base.filterChanged(n, e), this.applyState(e), this.setState({ group: void 0 });
200
+ }, this.clearButtonClick = (t) => {
201
+ const e = this.base.initState();
202
+ e.syntheticEvent = t, t.stopPropagation(), this.clearValue();
203
+ }, this.clearValueOnEnterOrEsc = (t) => {
204
+ const e = this.base.initState();
205
+ e.syntheticEvent = t, t.stopPropagation(), this.clearValue();
206
+ }, this.clearValueOnBlur = (t) => {
207
+ const e = this.base.initState();
208
+ e.syntheticEvent = t, t.stopPropagation(), this.clearValue();
209
+ }, this.clearValueOnToggleBtnClick = (t) => {
210
+ const e = this.base.initState();
211
+ e.syntheticEvent = t, t.stopPropagation(), this.clearValue();
212
212
  }, this.setValidity = () => {
213
213
  this._input && this._input.setCustomValidity && this._input.setCustomValidity(
214
- this.validity.valid ? "" : this.props.validationMessage || Se
214
+ this.validity.valid ? "" : this.props.validationMessage || St
215
215
  );
216
- }, this.handleFocus = (e) => {
216
+ }, this.handleFocus = (t) => {
217
217
  if (this._skipFocus)
218
218
  return;
219
- const t = this.base.initState();
220
- t.syntheticEvent = e, this.mobileMode && !this._skipFocus && (this._skipFocus = !0, this.base.togglePopup(t), this.applyState(t), setTimeout(() => {
219
+ const e = this.base.initState();
220
+ e.syntheticEvent = t, this.mobileMode && !this._skipFocus && (this._skipFocus = !0, this.base.togglePopup(e), this.applyState(e), setTimeout(() => {
221
221
  this._skipFocus = !1;
222
- }, 300)), this.base.handleFocus(e);
223
- }, this.showLicenseWatermark = !te(H, { component: "ComboBox" }), this.licenseMessage = se(H);
222
+ }, 300)), this.base.handleFocus(t);
223
+ }, this.showLicenseWatermark = !nt(H, { component: "ComboBox" }), this.licenseMessage = lt(H);
224
224
  }
225
225
  get _inputId() {
226
226
  return this.props.id;
@@ -237,8 +237,8 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
237
237
  * The mobile mode of the ComboBox.
238
238
  */
239
239
  get mobileMode() {
240
- var e;
241
- return !!(this.state.windowWidth && this.props._adaptiveMode && this.state.windowWidth <= ((e = this.props._adaptiveMode) == null ? void 0 : e.medium) && this.props.adaptive);
240
+ var t;
241
+ return !!(this.state.windowWidth && this.props._adaptiveMode && this.state.windowWidth <= ((t = this.props._adaptiveMode) == null ? void 0 : t.medium) && this.props.adaptive);
242
242
  }
243
243
  /**
244
244
  * The value of the ComboBox.
@@ -257,8 +257,8 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
257
257
  * The index of the selected item.
258
258
  */
259
259
  get index() {
260
- const { dataItemKey: s } = this.props, e = y(this.props), t = this.value;
261
- return e.findIndex((i) => D(i, t, s));
260
+ const { dataItemKey: s } = this.props, t = y(this.props), e = this.value;
261
+ return t.findIndex((i) => D(i, e, s));
262
262
  }
263
263
  /**
264
264
  * Gets the `name` property of the ComboBox.
@@ -270,38 +270,38 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
270
270
  * Represents the validity state into which the component is set.
271
271
  */
272
272
  get validity() {
273
- const s = this.props.validationMessage !== void 0, e = !this.required || this.value !== null && this.value !== "" && this.value !== void 0, t = this.props.valid !== void 0 ? this.props.valid : e;
273
+ const s = this.props.validationMessage !== void 0, t = !this.required || this.value !== null && this.value !== "" && this.value !== void 0, e = this.props.valid !== void 0 ? this.props.valid : t;
274
274
  return {
275
275
  customError: s,
276
- valid: t,
276
+ valid: e,
277
277
  valueMissing: this.value === null
278
278
  };
279
279
  }
280
280
  get validityStyles() {
281
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : E.defaultProps.validityStyles;
281
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : M.defaultProps.validityStyles;
282
282
  }
283
283
  /** @hidden */
284
284
  get required() {
285
- return this.props.required !== void 0 ? this.props.required : E.defaultProps.required;
285
+ return this.props.required !== void 0 ? this.props.required : M.defaultProps.required;
286
286
  }
287
287
  /** @hidden */
288
- componentDidUpdate(s, e) {
289
- var b, x;
290
- const { dataItemKey: t, virtual: i, groupField: r = "", textField: l } = this.props, o = y(this.props), p = s.virtual ? s.virtual.total : 0, n = this.props.opened !== void 0 ? this.props.opened : this.state.opened, a = s.opened !== void 0 ? s.opened : e.opened;
288
+ componentDidUpdate(s, t) {
289
+ var b, C;
290
+ const { dataItemKey: e, virtual: i, groupField: r = "", textField: n } = this.props, o = y(this.props), p = s.virtual ? s.virtual.total : 0, l = this.props.opened !== void 0 ? this.props.opened : this.state.opened, a = s.opened !== void 0 ? s.opened : t.opened;
291
291
  s.data !== o && this.checkForDuplicatePlainTextRecords();
292
- const d = !a && n, h = this.value;
292
+ const d = !a && l, h = this.value;
293
293
  if (this._valueOnDidUpdate = h, this.base.didUpdate(), i && i.total !== p)
294
294
  this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
295
295
  else {
296
- const C = s.value !== void 0 ? s.value : e.value;
297
- let f = this.hasDuplicates ? this.navigationIndex || 0 : o.findIndex((c) => D(c, h, t));
298
- this.props.groupMode === "modern" && l && h && (f = (b = this.base.getGroupedDataModernMode(o, r)) == null ? void 0 : b.map((c) => c[l]).indexOf(h[l]));
299
- const u = !D(C, h, t);
300
- if (d && i ? this.base.scrollToVirtualItem(i, f) : d && !i ? (this.onPopupOpened(), o && o.length !== 0 && this.base.resetGroupStickyHeader(o[0][r], this), this.base.scrollToItem(f)) : (this.hasDuplicates || n && a && h && u) && this.base.scrollToItem(f), n && a && this.scrollToFocused) {
301
- const c = (x = this.props.filter ? this.props.filter : this.state.text) != null ? x : "";
296
+ const x = s.value !== void 0 ? s.value : t.value;
297
+ let f = this.hasDuplicates ? this.navigationIndex || 0 : o.findIndex((c) => D(c, h, e));
298
+ n && h && (f = (b = this.base.getGroupedDataModernMode(o, r)) == null ? void 0 : b.map((c) => c[n]).indexOf(h[n]));
299
+ const g = !D(x, h, e);
300
+ if (d && i ? this.base.scrollToVirtualItem(i, f) : d && !i ? (this.onPopupOpened(), o && o.length !== 0 && this.base.resetGroupStickyHeader(o[0][r], this), this.base.scrollToItem(f)) : (this.hasDuplicates || l && a && h && g) && this.base.scrollToItem(f), l && a && this.scrollToFocused) {
301
+ const c = (C = this.props.filter ? this.props.filter : this.state.text) != null ? C : "";
302
302
  if (c) {
303
- const { focusedItemIndex: v = P } = this.props, M = v(o, c, l);
304
- this.base.scrollToItem(M);
303
+ const { focusedItemIndex: v = P } = this.props, E = v(o, c, n);
304
+ this.base.scrollToItem(E);
305
305
  } else
306
306
  this.base.scrollToItem(0);
307
307
  }
@@ -323,266 +323,252 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
323
323
  const s = U(this).toLanguageString(
324
324
  q,
325
325
  W[q]
326
- ), e = U(this).toLanguageString(
326
+ ), t = U(this).toLanguageString(
327
327
  G,
328
328
  W[G]
329
329
  ), {
330
- dir: t,
330
+ dir: e,
331
331
  disabled: i,
332
- clearButton: r = E.defaultProps.clearButton,
333
- label: l,
332
+ clearButton: r = M.defaultProps.clearButton,
333
+ label: n,
334
334
  textField: o,
335
335
  className: p,
336
- style: n,
336
+ style: l,
337
337
  loading: a,
338
338
  iconClassName: d,
339
339
  virtual: h,
340
340
  size: b,
341
- rounded: x,
342
- fillMode: C,
341
+ rounded: C,
342
+ fillMode: x,
343
343
  opened: f = this.state.opened,
344
- placeholder: u,
344
+ placeholder: g,
345
345
  svgIcon: c,
346
346
  unstyled: v
347
- } = this.props, M = !this.validityStyles || this.validity.valid, O = this.props.filter !== void 0 ? this.props.filter : this.state.text, $ = w(this.value, o), T = k(O) ? O : $, Y = r && (!!T || k(this.value)), B = this.base.vs, N = this.props.id || this._inputId, V = v && v.uComboBox;
348
- B.enabled = h !== void 0, h !== void 0 && (B.skip = h.skip, B.total = h.total, B.pageSize = h.pageSize);
349
- const [J, Q] = j(this.props.prefix || g.Fragment), [X, Z] = j(this.props.suffix || g.Fragment), R = /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(
347
+ } = this.props, E = !this.validityStyles || this.validity.valid, B = this.props.filter !== void 0 ? this.props.filter : this.state.text, $ = w(this.value, o), T = k(B) ? B : $, Y = r && (!!T || k(this.value)), O = this.base.vs, N = this.props.id || this._inputId, V = v && v.uComboBox;
348
+ O.enabled = h !== void 0, h !== void 0 && (O.skip = h.skip, O.total = h.total, O.pageSize = h.pageSize);
349
+ const [J, Q] = j(this.props.prefix || u.Fragment), [X, Z] = j(this.props.suffix || u.Fragment), R = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement(
350
350
  "span",
351
351
  {
352
352
  className: S(
353
353
  F.wrapper({
354
354
  c: V,
355
355
  size: b,
356
- rounded: x,
357
- fillMode: C,
356
+ rounded: C,
357
+ fillMode: x,
358
358
  disabled: i,
359
- invalid: !M,
359
+ invalid: !E,
360
360
  loading: a,
361
361
  required: this.required
362
362
  }),
363
363
  p
364
364
  ),
365
365
  ref: this.componentRef,
366
- style: l ? { ...n, width: void 0 } : n,
367
- dir: t,
366
+ style: n ? { ...l, width: void 0 } : l,
367
+ dir: e,
368
368
  onFocus: this.handleFocus
369
369
  },
370
- this.props.prefix && /* @__PURE__ */ g.createElement(J, { ...Q }),
371
- this.renderSearchBar(T || "", N, u),
372
- Y && !a && /* @__PURE__ */ g.createElement(be, { onClick: this.clearButtonClick, key: "clearbutton" }),
373
- a && /* @__PURE__ */ g.createElement(
374
- oe,
370
+ this.props.prefix && /* @__PURE__ */ u.createElement(J, { ...Q }),
371
+ this.renderSearchBar(T || "", N, g),
372
+ Y && !a && /* @__PURE__ */ u.createElement(bt, { onClick: this.clearButtonClick, key: "clearbutton" }),
373
+ a && /* @__PURE__ */ u.createElement(
374
+ pt,
375
375
  {
376
376
  className: S(F.loadingIcon({ c: V })),
377
377
  name: "loading",
378
378
  key: "loading"
379
379
  }
380
380
  ),
381
- this.props.suffix && /* @__PURE__ */ g.createElement(X, { ...Z }),
382
- /* @__PURE__ */ g.createElement(
383
- xe,
381
+ this.props.suffix && /* @__PURE__ */ u.createElement(X, { ...Z }),
382
+ /* @__PURE__ */ u.createElement(
383
+ xt,
384
384
  {
385
385
  tabIndex: -1,
386
386
  type: "button",
387
- "aria-label": f ? e : s,
387
+ "aria-label": f ? t : s,
388
388
  icon: d ? void 0 : "caret-alt-down",
389
- svgIcon: c || Ie,
389
+ svgIcon: c || It,
390
390
  iconClass: d,
391
391
  size: b,
392
- fillMode: C,
393
- rounded: null,
394
- themeColor: "base",
392
+ fillMode: x,
395
393
  className: S(F.inputButton({ c: V })),
396
394
  onClick: this.toggleBtnClick,
397
- onMouseDown: (ee) => ee.preventDefault()
395
+ onMouseDown: (tt) => tt.preventDefault()
398
396
  }
399
397
  ),
400
398
  !this.mobileMode && this.renderListContainer()
401
399
  ), this.mobileMode && this.renderAdaptiveListContainer());
402
- return l ? /* @__PURE__ */ g.createElement(
403
- he,
400
+ return n ? /* @__PURE__ */ u.createElement(
401
+ ht,
404
402
  {
405
- label: l,
403
+ label: n,
406
404
  editorId: N,
407
405
  editorValue: T,
408
- editorValid: M,
406
+ editorValid: E,
409
407
  editorDisabled: i,
410
- style: { width: n ? n.width : void 0 },
408
+ style: { width: l ? l.width : void 0 },
411
409
  children: R,
412
410
  unstyled: v
413
411
  }
414
412
  ) : R;
415
413
  }
416
414
  /** @hidden */
417
- onNavigate(s, e, t) {
418
- const { virtual: i = { skip: 0 } } = this.props, r = y(this.props), l = this.props.filter ? this.props.filter : this.state.text;
415
+ onNavigate(s, t, e) {
416
+ const { virtual: i = { skip: 0 } } = this.props, r = y(this.props), n = this.props.filter ? this.props.filter : this.state.text;
419
417
  let o = -1, p;
420
- const n = this.base.vs, a = this.value;
418
+ const l = this.base.vs, a = this.value;
421
419
  this._suggested = "";
422
420
  const d = this.hasDuplicates && this.duplicates.indexOf(a) !== -1;
423
421
  if (o = this.getFocusedIndex(d), o !== -1 && !k(a))
424
422
  this.handleItemSelect(o, s);
425
- else if (l === "")
423
+ else if (n === "")
426
424
  this.handleItemSelect(0, s);
427
425
  else {
428
426
  const h = i.skip + o;
429
427
  p = this.base.navigation.navigate({
430
- keyCode: e,
428
+ keyCode: t,
431
429
  current: h,
432
- max: (n.enabled ? n.total : r.length) - 1,
430
+ max: (l.enabled ? l.total : r.length) - 1,
433
431
  min: 0,
434
- skipItems: t || void 0
432
+ skipItems: e || void 0
435
433
  }), p !== void 0 && this.handleItemSelect(p, s);
436
434
  }
437
435
  this.navigationIndex = p;
438
436
  }
439
- getCurrentValueDisabledStatus(s, e, t) {
440
- return s && e && e[t] && e[t].disabled;
437
+ getCurrentValueDisabledStatus(s, t, e) {
438
+ return s && t && t[e] && t[e].disabled;
441
439
  }
442
- applyValueOnEnter(s, e) {
443
- const { textField: t, allowCustom: i, ignoreCase: r } = this.props, l = y(this.props), o = this.props.opened !== void 0 ? this.props.opened : this.state.opened, n = w(this.value, t) === s ? this.index : z(l, s, t, !1, r), a = n !== -1;
440
+ applyValueOnEnter(s, t) {
441
+ const { textField: e, allowCustom: i, ignoreCase: r } = this.props, n = y(this.props), o = this.props.opened !== void 0 ? this.props.opened : this.state.opened, l = w(this.value, e) === s ? this.index : z(n, s, e, !1, r), a = l !== -1;
444
442
  let d;
445
443
  if (this._suggested = "", a)
446
- d = l[n];
444
+ d = n[l];
447
445
  else if (i)
448
- d = t !== void 0 ? { [t]: s } : s;
446
+ d = e !== void 0 ? { [e]: s } : s;
449
447
  else
450
- return this.selectFocusedItem(s, e);
451
- this.triggerOnChange(d, e), o && this.base.togglePopup(e), this.props.filter === void 0 && this.state.text !== void 0 && (e.data.text = void 0), this.applyState(e);
448
+ return this.selectFocusedItem(s, t);
449
+ this.triggerOnChange(d, t), o && this.base.togglePopup(t), this.props.filter === void 0 && this.state.text !== void 0 && (t.data.text = void 0), this.applyState(t);
452
450
  }
453
- applyValueOnRejectSuggestions(s, e) {
454
- const { textField: t, allowCustom: i, ignoreCase: r } = this.props, l = y(this.props), o = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = w(this.value, t);
451
+ applyValueOnRejectSuggestions(s, t) {
452
+ const { textField: e, allowCustom: i, ignoreCase: r } = this.props, n = y(this.props), o = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = w(this.value, e);
455
453
  if (this._suggested = "", s === p || s === "" && !k(p))
456
- return this.closeOpenedApplyStateNonMobileMode(e, o), this.applyState(e);
457
- const n = z(l, s, t, !0, r), a = n !== -1;
454
+ return this.closeOpenedApplyStateNonMobileMode(t, o), this.applyState(t);
455
+ const l = z(n, s, e, !0, r), a = l !== -1;
458
456
  let d = null;
459
- a ? d = l[n] : i && (d = s ? t ? { [t]: s } : s : null), this.triggerOnChange(d, e), this.state.text !== void 0 && (e.data.text = void 0, this.base.filterChanged("", e)), this.closeOpenedApplyStateNonMobileMode(e, o), this.applyState(e);
457
+ a ? d = n[l] : i && (d = s ? e ? { [e]: s } : s : null), this.triggerOnChange(d, t), this.state.text !== void 0 && (t.data.text = void 0, this.base.filterChanged("", t)), this.closeOpenedApplyStateNonMobileMode(t, o), this.applyState(t);
460
458
  }
461
- selectFocusedItem(s, e) {
462
- const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { textField: i, virtual: r = { skip: 0 }, focusedItemIndex: l = P } = this.props, o = y(this.props), p = r.skip, n = s === "" && p === 0 ? 0 : l(o, s, i);
463
- return n !== -1 ? this.handleItemSelect(n + p, e) : (this.triggerOnChange(null, e), this.state.text !== void 0 && (e.data.text = void 0)), t && this.base.togglePopup(e), this.applyState(e);
459
+ selectFocusedItem(s, t) {
460
+ const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { textField: i, virtual: r = { skip: 0 }, focusedItemIndex: n = P } = this.props, o = y(this.props), p = r.skip, l = s === "" && p === 0 ? 0 : n(o, s, i);
461
+ return l !== -1 ? this.handleItemSelect(l + p, t) : (this.triggerOnChange(null, t), this.state.text !== void 0 && (t.data.text = void 0)), e && this.base.togglePopup(t), this.applyState(t);
464
462
  }
465
463
  renderAdaptiveListContainer() {
466
- const { windowWidth: s = 0 } = this.state, { groupField: e, adaptiveTitle: t = this.props.label, adaptiveSubtitle: i } = this.props, r = y(this.props), l = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
464
+ const { windowWidth: s = 0 } = this.state, { groupField: t, adaptiveTitle: e = this.props.label, adaptiveSubtitle: i } = this.props, r = y(this.props), n = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
467
465
  let { group: o } = this.state;
468
- o === void 0 && e !== void 0 && (o = w(r[0], e));
466
+ o === void 0 && t !== void 0 && (o = w(r[0], t));
469
467
  const p = {
470
- title: t || this.props.label,
468
+ title: e || this.props.label,
471
469
  subTitle: i,
472
- expand: l,
473
- onClose: (n) => this.toggleBtnClick(n),
470
+ expand: n,
471
+ onClose: (l) => this.toggleBtnClick(l),
474
472
  windowWidth: s,
475
473
  mobileFilter: this.renderMobileListFilter()
476
474
  };
477
- return /* @__PURE__ */ g.createElement(Ce, { ...p }, /* @__PURE__ */ g.createElement(ye, null, /* @__PURE__ */ g.createElement("div", { className: "k-list-container" }, this.listContainerContent())));
475
+ return /* @__PURE__ */ u.createElement(Ct, { ...p }, /* @__PURE__ */ u.createElement(yt, null, /* @__PURE__ */ u.createElement("div", { className: "k-list-container" }, this.listContainerContent())));
478
476
  }
479
477
  renderListContainer() {
480
- const s = this.base, {
481
- dir: e,
482
- header: t,
483
- footer: i,
484
- groupField: r,
485
- groupMode: l,
486
- size: o,
487
- list: p,
488
- virtual: n,
489
- groupStickyHeaderItemRender: a,
490
- unstyled: d
491
- } = this.props, h = y(this.props), b = this.props.opened !== void 0 ? this.props.opened : this.state.opened, x = s.getPopupSettings(), C = x.width !== void 0 ? x.width : s.popupWidth, f = d && d.uComboBox;
492
- let { group: u } = this.state;
493
- return u === void 0 && r !== void 0 && (u = w(h[0], r)), /* @__PURE__ */ g.createElement(
494
- me,
478
+ const s = this.base, { dir: t, header: e, footer: i, groupField: r, size: n, list: o, virtual: p, groupStickyHeaderItemRender: l, unstyled: a } = this.props, d = y(this.props), h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = s.getPopupSettings(), C = b.width !== void 0 ? b.width : s.popupWidth, x = a && a.uComboBox;
479
+ let { group: f } = this.state;
480
+ return f === void 0 && r !== void 0 && (f = w(d[0], r)), /* @__PURE__ */ u.createElement(
481
+ mt,
495
482
  {
496
483
  width: C,
497
484
  popupSettings: {
498
- ...x,
499
- anchor: x.anchor || this.element,
500
- show: b,
485
+ ...b,
486
+ anchor: b.anchor || this.element,
487
+ show: h,
501
488
  popupClass: S(
502
- x.popupClass,
489
+ b.popupClass,
503
490
  F.listContainer({
504
- c: f,
491
+ c: x,
505
492
  popup: !0
506
493
  })
507
494
  )
508
495
  },
509
- dir: e !== void 0 ? e : this.base.dirCalculated,
510
- itemsCount: [h.length]
496
+ dir: t !== void 0 ? t : this.base.dirCalculated,
497
+ itemsCount: [d.length]
511
498
  },
512
- /* @__PURE__ */ g.createElement(
499
+ /* @__PURE__ */ u.createElement(
513
500
  "div",
514
501
  {
515
502
  className: S(
516
503
  F.list({
517
- c: f,
518
- list: p,
519
- size: o,
520
- tableSize: o,
521
- virtual: n
504
+ c: x,
505
+ list: o,
506
+ size: n,
507
+ tableSize: n,
508
+ virtual: p
522
509
  })
523
510
  )
524
511
  },
525
- t && /* @__PURE__ */ g.createElement("div", { className: S(F.listHeader({ c: f })) }, t),
526
- !p && u && h.length !== 0 && /* @__PURE__ */ g.createElement(K, { group: u, groupMode: l, render: a }),
512
+ e && /* @__PURE__ */ u.createElement("div", { className: S(F.listHeader({ c: x })) }, e),
513
+ !o && f && d.length !== 0 && /* @__PURE__ */ u.createElement(K, { group: f, render: l }),
527
514
  this.renderList(),
528
- i && /* @__PURE__ */ g.createElement(
515
+ i && /* @__PURE__ */ u.createElement(
529
516
  "div",
530
517
  {
531
518
  className: S(
532
- F.listFooter({ c: f }),
519
+ F.listFooter({ c: x }),
533
520
  this.props.footerClassName
534
521
  )
535
522
  },
536
523
  i
537
524
  )
538
525
  ),
539
- this.showLicenseWatermark && /* @__PURE__ */ g.createElement(ae, { message: this.licenseMessage })
526
+ this.showLicenseWatermark && /* @__PURE__ */ u.createElement(dt, { message: this.licenseMessage })
540
527
  );
541
528
  }
542
529
  renderList() {
543
530
  const s = this.base, {
544
- textField: e,
545
- dataItemKey: t,
531
+ textField: t,
532
+ dataItemKey: e,
546
533
  listNoDataRender: i,
547
534
  itemRender: r,
548
- groupHeaderItemRender: l,
535
+ groupHeaderItemRender: n,
549
536
  virtual: o = { skip: 0, total: void 0 },
550
537
  unstyled: p
551
- } = this.props, n = y(this.props), a = s.getPopupSettings(), d = s.vs, h = o.skip, b = this.props.opened !== void 0 ? this.props.opened : this.state.opened, x = `translateY(${d.translate}px)`, C = b ? this.getFocusedIndex(this.hasDuplicates) : void 0, f = this.props.filter !== void 0 ? this.props.filter : this.state.text, u = w(this.value, e), c = k(f) && f !== u ? null : this.value, v = this.props.list || fe, M = p && p.uComboBox;
552
- return /* @__PURE__ */ g.createElement(
538
+ } = this.props, l = y(this.props), a = s.getPopupSettings(), d = s.vs, h = o.skip, b = this.props.opened !== void 0 ? this.props.opened : this.state.opened, C = `translateY(${d.translate}px)`, x = b ? this.getFocusedIndex(this.hasDuplicates) : void 0, f = this.props.filter !== void 0 ? this.props.filter : this.state.text, g = w(this.value, t), c = k(f) && f !== g ? null : this.value, v = this.props.list || ft, E = p && p.uComboBox;
539
+ return /* @__PURE__ */ u.createElement(
553
540
  v,
554
541
  {
555
542
  id: s.listBoxId,
556
543
  virtual: !!o,
557
544
  show: b,
558
- data: n,
559
- focusedIndex: C,
545
+ data: l,
546
+ focusedIndex: x,
560
547
  value: c,
561
- textField: e,
562
- valueField: t,
548
+ textField: t,
549
+ valueField: e,
563
550
  groupField: this.props.groupField,
564
- groupMode: this.props.groupMode,
565
551
  isMultiColumn: this.props.isMultiColumn,
566
552
  optionsGuid: s.guid,
567
553
  hasDuplicates: this.hasDuplicates,
568
- listRef: (O) => {
569
- d.list = this.base.list = O, this.itemHeight = 0;
554
+ listRef: (B) => {
555
+ d.list = this.base.list = B, this.itemHeight = 0;
570
556
  },
571
557
  wrapperStyle: this.mobileMode ? {} : { maxHeight: a.height },
572
558
  wrapperCssClass: S(
573
559
  F.listContent({
574
- c: M,
560
+ c: E,
575
561
  virtual: o
576
562
  })
577
563
  ),
578
- listStyle: d.enabled ? { transform: x } : void 0,
564
+ listStyle: d.enabled ? { transform: C } : void 0,
579
565
  key: "listkey",
580
566
  skip: h,
581
567
  onClick: this.handleItemClick,
582
568
  itemRender: r,
583
- groupHeaderItemRender: l,
569
+ groupHeaderItemRender: n,
584
570
  noDataRender: i,
585
- onMouseDown: (O) => O.preventDefault(),
571
+ onMouseDown: (B) => B.preventDefault(),
586
572
  onScroll: this.onScroll,
587
573
  wrapperRef: d.scrollerRef,
588
574
  scroller: this.base.renderScrollElement(),
@@ -590,28 +576,28 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
590
576
  }
591
577
  );
592
578
  }
593
- renderSearchBar(s, e, t) {
579
+ renderSearchBar(s, t, e) {
594
580
  const {
595
581
  tabIndex: i,
596
582
  accessKey: r,
597
- disabled: l,
583
+ disabled: n,
598
584
  title: o,
599
585
  ariaLabelledBy: p,
600
- ariaDescribedBy: n,
586
+ ariaDescribedBy: l,
601
587
  dataItemKey: a,
602
588
  virtual: d = { skip: 0 },
603
589
  unstyled: h,
604
590
  inputAttributes: b
605
- } = this.props, x = y(this.props), C = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.value, u = Math.max(
591
+ } = this.props, C = y(this.props), x = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.value, g = Math.max(
606
592
  0,
607
- x.findIndex((c) => D(c, f, a))
593
+ C.findIndex((c) => D(c, f, a))
608
594
  );
609
- return this._suggested && !D(this._valueOnDidUpdate, f, a) && (this._suggested = ""), /* @__PURE__ */ g.createElement(
610
- ge,
595
+ return this._suggested && !D(this._valueOnDidUpdate, f, a) && (this._suggested = ""), /* @__PURE__ */ u.createElement(
596
+ gt,
611
597
  {
612
- id: e,
613
- readOnly: C && this.mobileMode,
614
- placeholder: t,
598
+ id: t,
599
+ readOnly: x && this.mobileMode,
600
+ placeholder: e,
615
601
  tabIndex: i,
616
602
  accessKey: r,
617
603
  title: o,
@@ -625,14 +611,14 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
625
611
  onChange: this.inputOnChange,
626
612
  onFocus: this.base.handleFocus,
627
613
  onBlur: this.handleBlur,
628
- disabled: l,
629
- expanded: C,
614
+ disabled: n,
615
+ expanded: x,
630
616
  owns: this.base.listBoxId,
631
- activedescendant: `option-${this.base.guid}-${u + d.skip}`,
617
+ activedescendant: `option-${this.base.guid}-${g + d.skip}`,
632
618
  role: "combobox",
633
619
  ariaLabelledBy: p,
634
620
  ariaLabel: this.props.ariaLabel,
635
- ariaDescribedBy: n,
621
+ ariaDescribedBy: l,
636
622
  ariaRequired: this.required,
637
623
  render: this.props.valueRender,
638
624
  ariaControls: this.base.listBoxId,
@@ -644,43 +630,42 @@ const Se = "Please enter a valid value!", E = class E extends g.Component {
644
630
  clearValue() {
645
631
  const s = this.base.initState();
646
632
  this._suggested = "", this.navigationIndex = void 0, this.base.filterChanged("", s), this.props.filter === void 0 && this.state.text !== void 0 && (s.data.text = void 0), this.triggerOnChange(null, s);
647
- const e = this.props.opened !== void 0 ? this.props.opened : this.state.opened, t = this.mobileMode;
648
- e && !t && this.base.togglePopup(s), this.applyState(s);
633
+ const t = this.props.opened !== void 0 ? this.props.opened : this.state.opened, e = this.mobileMode;
634
+ t && !e && this.base.togglePopup(s), this.applyState(s);
649
635
  }
650
- triggerOnChange(s, e) {
651
- const t = this.value;
652
- !this.hasDuplicates && (!k(t) && !k(s) || D(t, s, this.props.dataItemKey)) || (this.props.value === void 0 && (e.data.value = s), this._valueDuringOnChange = s, e.events.push({ type: "onChange" }));
636
+ triggerOnChange(s, t) {
637
+ const e = this.value;
638
+ !this.hasDuplicates && (!k(e) && !k(s) || D(e, s, this.props.dataItemKey)) || (this.props.value === void 0 && (t.data.value = s), this._valueDuringOnChange = s, t.events.push({ type: "onChange" }));
653
639
  }
654
640
  getFocusedIndex(s) {
655
- const e = this.value, {
656
- textField: t,
641
+ const t = this.value, {
642
+ textField: e,
657
643
  dataItemKey: i,
658
644
  virtual: r = { skip: 0 },
659
- focusedItemIndex: l = P,
645
+ focusedItemIndex: n = P,
660
646
  skipDisabledItems: o
661
- } = this.props, p = y(this.props), n = this.props.filter ? this.props.filter : this.state.text;
662
- return s && this.navigationIndex !== void 0 ? this.navigationIndex : k(e) && n === void 0 ? p.findIndex((a) => D(a, e, i)) : n ? l(p, n, t) : o && t && !n && r.skip === 0 ? p.findIndex((a) => !a.disabled && a[t]) : r.skip === 0 ? 0 : -1;
647
+ } = this.props, p = y(this.props), l = this.props.filter ? this.props.filter : this.state.text;
648
+ return s && this.navigationIndex !== void 0 ? this.navigationIndex : k(t) && l === void 0 ? p.findIndex((a) => D(a, t, i)) : l ? n(p, l, e) : o && e && !l && r.skip === 0 ? p.findIndex((a) => !a.disabled && a[e]) : r.skip === 0 ? 0 : -1;
663
649
  }
664
650
  suggestValue(s) {
665
- const { data: e, textField: t } = this.props;
666
- this._suggested = ue(s, e, t);
651
+ const { data: t, textField: e } = this.props;
652
+ this._suggested = ut(s, t, e);
667
653
  }
668
654
  applyState(s) {
669
655
  this.base.applyState(s), this._valueDuringOnChange = void 0;
670
656
  }
671
657
  calculateMedia(s) {
672
- for (const e of s)
673
- this.setState({ windowWidth: e.target.clientWidth });
658
+ for (const t of s)
659
+ this.setState({ windowWidth: t.target.clientWidth });
674
660
  }
675
661
  };
676
- E.displayName = "ComboBox", E.propTypes = {
662
+ M.displayName = "ComboBox", M.propTypes = {
677
663
  ..._.propTypes,
678
- size: m.oneOf([null, "small", "medium", "large"]),
679
- rounded: m.oneOf([null, "small", "medium", "large", "full"]),
680
- fillMode: m.oneOf([null, "solid", "flat", "outline"]),
664
+ size: m.oneOf(["small", "medium", "large"]),
665
+ rounded: m.oneOf(["small", "medium", "large", "full"]),
666
+ fillMode: m.oneOf(["solid", "flat", "outline"]),
681
667
  dataItemKey: m.string,
682
668
  groupField: m.string,
683
- groupMode: m.oneOf([void 0, "classic", "modern"]),
684
669
  isMultiColumn: m.bool,
685
670
  suggest: m.bool,
686
671
  placeholder: m.string,
@@ -689,7 +674,7 @@ E.displayName = "ComboBox", E.propTypes = {
689
674
  ignoreCase: m.bool,
690
675
  clearButton: m.bool,
691
676
  iconClassName: m.string,
692
- svgIcon: ie,
677
+ svgIcon: rt,
693
678
  validationMessage: m.string,
694
679
  required: m.bool,
695
680
  id: m.string,
@@ -700,33 +685,32 @@ E.displayName = "ComboBox", E.propTypes = {
700
685
  valueRender: m.func,
701
686
  skipDisabledItems: m.bool,
702
687
  inputAttributes: m.object
703
- }, E.defaultProps = {
688
+ }, M.defaultProps = {
704
689
  ..._.defaultProps,
705
- size: "medium",
706
- rounded: "medium",
707
- fillMode: "solid",
690
+ size: void 0,
691
+ rounded: void 0,
692
+ fillMode: void 0,
708
693
  allowCustom: !1,
709
694
  ignoreCase: !1,
710
695
  clearButton: !0,
711
696
  required: !1,
712
- groupMode: "modern",
713
697
  isMultiColumn: !1,
714
698
  skipDisabledItems: !0,
715
699
  prefix: void 0,
716
700
  suffix: void 0
717
701
  };
718
- let L = E;
719
- const Fe = ne(), ke = le(
720
- re(
721
- Fe,
722
- pe(
723
- de(L)
702
+ let L = M;
703
+ const Ft = st(), kt = et(
704
+ it(
705
+ Ft,
706
+ ot(
707
+ at(L)
724
708
  )
725
709
  )
726
710
  );
727
- ke.displayName = "KendoReactComboBox";
711
+ kt.displayName = "KendoReactComboBox";
728
712
  export {
729
- ke as ComboBox,
730
- Fe as ComboBoxPropsContext,
713
+ kt as ComboBox,
714
+ Ft as ComboBoxPropsContext,
731
715
  L as ComboBoxWithoutContext
732
716
  };