@progress/kendo-react-dropdowns 7.2.0-develop.7 → 7.2.0-develop.8

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.
package/index.mjs CHANGED
@@ -236,9 +236,9 @@ class js extends o.Component {
236
236
  return s !== void 0 ? s.call(void 0, a, this.props) : a;
237
237
  }
238
238
  }
239
- const ve = "dropdowns.nodata", nt = "dropdowns.clear", zt = "dropdowns.comboArrowBtnAriaLabelExpand", Ht = "dropdowns.comboArrowBtnAriaLabelCollapse", At = "dropdowns.dropDownListArrowBtnAriaLabel", ot = "dropdowns.apply", at = "dropdowns.cancel", ce = {
239
+ const me = "dropdowns.nodata", nt = "dropdowns.clear", zt = "dropdowns.comboArrowBtnAriaLabelExpand", Ht = "dropdowns.comboArrowBtnAriaLabelCollapse", At = "dropdowns.dropDownListArrowBtnAriaLabel", ot = "dropdowns.apply", at = "dropdowns.cancel", ce = {
240
240
  [nt]: "clear",
241
- [ve]: "NO DATA FOUND.",
241
+ [me]: "NO DATA FOUND.",
242
242
  [zt]: "expand combobox",
243
243
  [Ht]: "collapse combobox",
244
244
  [At]: "select",
@@ -258,16 +258,16 @@ class je extends o.Component {
258
258
  virtual: d,
259
259
  focusedIndex: r,
260
260
  highlightSelected: h = !0,
261
- value: u,
262
- data: f,
261
+ value: f,
262
+ data: u,
263
263
  itemRender: m,
264
264
  groupHeaderItemRender: v
265
- } = this.props, b = Array.isArray(u);
265
+ } = this.props, b = Array.isArray(f);
266
266
  let w = 0;
267
- return f.map((k, D) => {
268
- const O = c + D, N = c + D + w, _ = k.disabled ? !1 : h && (!b && R(k, u, e) || b && u.findIndex((E) => R(E, k, e)) !== -1);
269
- let S, T, C;
270
- return D > 0 && s !== void 0 && (T = V(k, s), C = V(f[D - 1], s), T && C && T !== C && (S = T)), S !== void 0 && n === "modern" && (w += 1), [
267
+ return u.map((k, D) => {
268
+ const O = c + D, N = c + D + w, _ = k.disabled ? !1 : h && (!b && R(k, f, e) || b && f.findIndex((E) => R(E, k, e)) !== -1);
269
+ let S, F, C;
270
+ return D > 0 && s !== void 0 && (F = V(k, s), C = V(u[D - 1], s), F && C && F !== C && (S = F)), S !== void 0 && n === "modern" && (w += 1), [
271
271
  S !== void 0 && n === "modern" && /* @__PURE__ */ o.createElement(
272
272
  js,
273
273
  {
@@ -301,7 +301,7 @@ class je extends o.Component {
301
301
  });
302
302
  }
303
303
  renderNoValueElement(t) {
304
- const e = this.props.noDataRender, s = /* @__PURE__ */ o.createElement("div", { className: "k-nodata" }, /* @__PURE__ */ o.createElement("div", null, t.toLanguageString(ve, ce[ve])));
304
+ const e = this.props.noDataRender, s = /* @__PURE__ */ o.createElement("div", { className: "k-nodata" }, /* @__PURE__ */ o.createElement("div", null, t.toLanguageString(me, ce[me])));
305
305
  return e ? e.call(void 0, s) : s;
306
306
  }
307
307
  render() {
@@ -315,8 +315,8 @@ class je extends o.Component {
315
315
  wrapperRef: d,
316
316
  listClassName: r = "k-list-ul",
317
317
  ariaSetSize: h
318
- } = this.props, u = this.renderItems();
319
- return u.length ? /* @__PURE__ */ o.createElement(
318
+ } = this.props, f = this.renderItems();
319
+ return f.length ? /* @__PURE__ */ o.createElement(
320
320
  "div",
321
321
  {
322
322
  className: n,
@@ -338,7 +338,7 @@ class je extends o.Component {
338
338
  ref: c,
339
339
  style: p
340
340
  },
341
- u
341
+ f
342
342
  ),
343
343
  this.props.scroller && /* @__PURE__ */ o.createElement("div", { className: "k-height-container" }, this.props.scroller)
344
344
  ) : this.renderNoValueElement(t);
@@ -465,9 +465,9 @@ const Zt = class {
465
465
  }
466
466
  window.setTimeout(() => s.enabled = !0, 10);
467
467
  }, this.scrollPopupByPageSize = (t) => {
468
- var p, c, d, r, h, u;
468
+ var p, c, d, r, h, f;
469
469
  const e = this.vs, s = (c = (p = this.list) == null ? void 0 : p.parentElement) == null ? void 0 : c.scrollTop, n = e.enabled && e.itemHeight ? e.itemHeight : this.list ? this.list.children[0].offsetHeight : 0, a = (r = (d = this.list) == null ? void 0 : d.parentElement) == null ? void 0 : r.offsetHeight;
470
- s !== void 0 && a !== void 0 && ((u = (h = this.list) == null ? void 0 : h.parentElement) == null || u.scroll({ top: s + t * Math.floor(a / n) * n }));
470
+ s !== void 0 && a !== void 0 && ((f = (h = this.list) == null ? void 0 : h.parentElement) == null || f.scroll({ top: s + t * Math.floor(a / n) * n }));
471
471
  }, this.renderScrollElement = () => {
472
472
  const t = this.vs;
473
473
  return t.enabled && /* @__PURE__ */ o.createElement(
@@ -610,7 +610,7 @@ const Ye = {
610
610
  name: "@progress/kendo-react-dropdowns",
611
611
  productName: "KendoReact",
612
612
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
613
- publishDate: 1708335226,
613
+ publishDate: 1708417638,
614
614
  version: "",
615
615
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
616
616
  }, wt = 500, we = 768, Xs = "Please select a value from the list!", { sizeMap: Kt, roundedMap: Zs } = Ge, Wt = class extends o.Component {
@@ -641,9 +641,9 @@ const Ye = {
641
641
  }
642
642
  )
643
643
  ), this.renderListContainer = () => {
644
- const { header: t, footer: e, dir: s, data: n = [], size: a, groupField: p, groupStickyHeaderItemRender: c, list: d } = this.props, r = this.base, h = r.getPopupSettings(), u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = h.width !== void 0 ? h.width : r.popupWidth, m = {
644
+ const { header: t, footer: e, dir: s, data: n = [], size: a, groupField: p, groupStickyHeaderItemRender: c, list: d } = this.props, r = this.base, h = r.getPopupSettings(), f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = h.width !== void 0 ? h.width : r.popupWidth, m = {
645
645
  dir: s !== void 0 ? s : r.dirCalculated,
646
- width: f,
646
+ width: u,
647
647
  popupSettings: {
648
648
  popupClass: B(
649
649
  h.popupClass,
@@ -653,7 +653,7 @@ const Ye = {
653
653
  className: h.className,
654
654
  animate: h.animate,
655
655
  anchor: this.element,
656
- show: u,
656
+ show: f,
657
657
  onOpen: this.onPopupOpened,
658
658
  onClose: this.onPopupClosed,
659
659
  appendTo: h.appendTo
@@ -685,7 +685,7 @@ const Ye = {
685
685
  groupHeaderItemRender: a,
686
686
  listNoDataRender: p,
687
687
  itemRender: c
688
- } = this.props, d = this.base.vs, r = n.skip, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = this.base.getPopupSettings(), f = `translateY(${d.translate}px)`;
688
+ } = this.props, d = this.base.vs, r = n.skip, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.base.getPopupSettings(), u = `translateY(${d.translate}px)`;
689
689
  return /* @__PURE__ */ o.createElement(
690
690
  je,
691
691
  {
@@ -700,9 +700,9 @@ const Ye = {
700
700
  groupField: this.props.groupField,
701
701
  groupMode: "modern",
702
702
  listRef: (m) => d.list = this.base.list = m,
703
- wrapperStyle: { maxHeight: u.height },
703
+ wrapperStyle: { maxHeight: f.height },
704
704
  wrapperCssClass: "k-list-content",
705
- listStyle: d.enabled ? { transform: f } : void 0,
705
+ listStyle: d.enabled ? { transform: u } : void 0,
706
706
  key: "listkey",
707
707
  skip: r,
708
708
  onClick: this.handleItemClick,
@@ -764,10 +764,10 @@ const Ye = {
764
764
  const a = this.searchState.word, p = this.searchState.last, c = Ls(a, p);
765
765
  let d = n.length, r = Math.max(0, e.findIndex((k) => R(k, this.value, s))), h;
766
766
  this.props.defaultItem && (h = { item: this.props.defaultItem, itemIndex: -1 }, d += 1, r += 1), r += c ? 1 : 0, n = zs(n, r, h);
767
- let u, f, m, v = 0;
767
+ let f, u, m, v = 0;
768
768
  const { textField: b, ignoreCase: w } = this.props;
769
769
  for (; v < d; v++)
770
- if (u = V(n[v].item, b), f = c && as(u, p, w), m = as(u, a, w), f || m) {
770
+ if (f = V(n[v].item, b), u = c && as(f, p, w), m = as(f, a, w), u || m) {
771
771
  v = n[v].itemIndex;
772
772
  break;
773
773
  }
@@ -787,8 +787,8 @@ const Ye = {
787
787
  dataItemKey: d,
788
788
  groupField: r = "",
789
789
  textField: h,
790
- skipDisabledItems: u = !0
791
- } = this.props, f = this.value, m = e.findIndex((T) => R(T, f, d)), v = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = t.keyCode, w = b === g.home || b === g.end, k = b === g.up || b === g.down, D = !v && (t.altKey && b === g.down || b === g.enter || b === g.space), O = v && (t.altKey && b === g.up || b === g.esc), N = p && (b === g.left || b === g.right), _ = k || N && !s || w, S = this.base.initState();
790
+ skipDisabledItems: f = !0
791
+ } = this.props, u = this.value, m = e.findIndex((F) => R(F, u, d)), v = this.props.opened !== void 0 ? this.props.opened : this.state.opened, b = t.keyCode, w = b === g.home || b === g.end, k = b === g.up || b === g.down, D = !v && (t.altKey && b === g.down || b === g.enter || b === g.space), O = v && (t.altKey && b === g.up || b === g.esc), N = p && (b === g.left || b === g.right), _ = k || N && !s || w, S = this.base.initState();
792
792
  if (S.syntheticEvent = t, !n) {
793
793
  if (w && this.base.vs.enabled)
794
794
  b === g.home ? c.skip !== 0 ? (this.base.triggerOnPageChange(S, 0, c.pageSize), this._navigated = !0) : this.triggerOnChange(e[0], S) : c.skip < c.total - c.pageSize ? (this.base.triggerOnPageChange(S, c.total - c.pageSize, c.pageSize), this._navigated = !0) : this.triggerOnChange(e[e.length - 1], S);
@@ -797,65 +797,65 @@ const Ye = {
797
797
  else if (v && b === g.pageDown)
798
798
  this.base.scrollPopupByPageSize(1);
799
799
  else if (v && b === g.enter) {
800
- const T = this.getFocusedIndex();
801
- this.haveFocusedItemAndDataNotEmpty(e, T) ? (this.triggerOnChange(null, S), this.applyState(S)) : this.handleItemSelect(T, S), this.base.togglePopup(S), t.preventDefault();
800
+ const F = this.getFocusedIndex();
801
+ this.haveFocusedItemAndDataNotEmpty(e, F) ? (this.triggerOnChange(null, S), this.applyState(S)) : this.handleItemSelect(F, S), this.base.togglePopup(S), t.preventDefault();
802
802
  } else if (D || O)
803
803
  O && this.resetValueIfDisabledItem(), this.base.togglePopup(S), t.preventDefault();
804
804
  else if (_) {
805
805
  if (this._lastKeypressIsFilter = !1, r !== "" && h)
806
- if (!u && v)
806
+ if (!f && v)
807
807
  this.onNavigate(S, b);
808
808
  else {
809
- let T;
809
+ let F;
810
810
  if (b === g.down || b === g.right) {
811
811
  const C = e.slice(m + 1).find((E) => !E.disabled && E[h]);
812
- T = C && e.findIndex((E) => E[h] === C[h]);
812
+ F = C && e.findIndex((E) => E[h] === C[h]);
813
813
  } else if (b === g.up || b === g.left) {
814
814
  let C;
815
815
  if (m === 0 && a)
816
- T = -1;
816
+ F = -1;
817
817
  else if (m === -1)
818
- C = e, T = e.findIndex((E) => !E.disabled && E[h]);
818
+ C = e, F = e.findIndex((E) => !E.disabled && E[h]);
819
819
  else {
820
820
  C = e.slice(0, m);
821
821
  let E = C.pop();
822
822
  for (; E && E.disabled; )
823
823
  E = C.pop();
824
- T = E && e.findIndex((M) => M[h] === E[h]);
824
+ F = E && e.findIndex((M) => M[h] === E[h]);
825
825
  }
826
826
  }
827
- if (T !== void 0) {
828
- const C = T - m;
827
+ if (F !== void 0) {
828
+ const C = F - m;
829
829
  this.onNavigate(S, b, C);
830
830
  } else
831
- T === void 0 && e.findIndex((C) => C[h] === f[h]) === e.length - 1 && this.onNavigate(S, b);
831
+ F === void 0 && e.findIndex((C) => C[h] === u[h]) === e.length - 1 && this.onNavigate(S, b);
832
832
  }
833
- else if (!u && v || w)
833
+ else if (!f && v || w)
834
834
  this.onNavigate(S, b);
835
835
  else if (h) {
836
- let T;
836
+ let F;
837
837
  if (b === g.down || b === g.right) {
838
838
  const C = e.slice(m + 1).find((E) => !E.disabled && E[h]);
839
- T = C && e.findIndex((E) => E[h] === C[h]);
839
+ F = C && e.findIndex((E) => E[h] === C[h]);
840
840
  } else if (b === g.up || b === g.left) {
841
841
  let C;
842
842
  if (m === 0 && a)
843
- T = -1;
843
+ F = -1;
844
844
  else if (m === -1)
845
- C = e, T = e.find((E) => !E.disabled && E[h]);
845
+ C = e, F = e.find((E) => !E.disabled && E[h]);
846
846
  else {
847
847
  C = e.slice(0, m);
848
848
  let E = C.pop();
849
849
  for (; E && E.disabled; )
850
850
  E = C.pop();
851
- T = E && e.findIndex((M) => M[h] === E[h]);
851
+ F = E && e.findIndex((M) => M[h] === E[h]);
852
852
  }
853
853
  }
854
- if (T !== void 0) {
855
- const C = T - m;
854
+ if (F !== void 0) {
855
+ const C = F - m;
856
856
  this.onNavigate(S, b, C);
857
857
  } else
858
- T === void 0 && e.findIndex((C) => C[h] === f[h]) === e.length - 1 && this.onNavigate(S, b);
858
+ F === void 0 && e.findIndex((C) => C[h] === u[h]) === e.length - 1 && this.onNavigate(S, b);
859
859
  } else
860
860
  this.onNavigate(S, b);
861
861
  t.preventDefault();
@@ -969,18 +969,16 @@ const Ye = {
969
969
  * @hidden
970
970
  */
971
971
  componentDidUpdate(i, t) {
972
- var u;
973
- const { dataItemKey: e, virtual: s, groupField: n = "", textField: a } = this.props;
974
- let { data: p = [] } = this.props;
975
- const c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d;
972
+ var f;
973
+ const { dataItemKey: e, virtual: s, groupField: n = "", textField: a } = this.props, { data: p = [] } = this.props, c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d;
976
974
  if (this.base.getPopupSettings().animate || h && this.onPopupOpened(), s && s.total !== c)
977
975
  this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
978
976
  else {
979
- const f = this.value, m = i.value !== void 0 ? i.value : t.value;
980
- let v = p.findIndex((w) => R(w, f, e));
981
- n !== "" && f && a && (v = (u = this.base.getGroupedDataModernMode(p, n)) == null ? void 0 : u.map((w) => w[a]).indexOf(f[a]));
982
- const b = !R(m, f, e);
983
- h && s ? this.base.scrollToVirtualItem(s, v) : h && !s ? (this.onPopupOpened(), p && p.length !== 0 && this.base.resetGroupStickyHeader(p[0][n], this), this.base.scrollToItem(v)) : d && r && f && b && !this._navigated ? this.base.scrollToItem(v) : d && r && this._navigated && (this._navigated && s && s.skip === 0 ? this.base.vs.reset() : this._navigated && s && s.skip === s.total - s.pageSize && this.base.vs.scrollToEnd());
977
+ const u = this.value, m = i.value !== void 0 ? i.value : t.value;
978
+ let v = p.findIndex((w) => R(w, u, e));
979
+ n !== "" && u && a && (v = (f = this.base.getGroupedDataModernMode(p, n)) == null ? void 0 : f.map((w) => w[a]).indexOf(u[a]));
980
+ const b = !R(m, u, e);
981
+ h && s ? this.base.scrollToVirtualItem(s, v) : h && !s ? (this.onPopupOpened(), p && p.length !== 0 && this.base.resetGroupStickyHeader(p[0][n], this), this.base.scrollToItem(v)) : d && r && u && b && !this._navigated ? this.base.scrollToItem(v) : d && r && this._navigated && (this._navigated && s && s.skip === 0 ? this.base.vs.reset() : this._navigated && s && s.skip === s.total - s.pageSize && this.base.vs.scrollToEnd());
984
982
  }
985
983
  this._navigated = !1, this.setValidity();
986
984
  }
@@ -1000,7 +998,7 @@ const Ye = {
1000
998
  * @hidden
1001
999
  */
1002
1000
  render() {
1003
- const i = We(this).toLanguageString(At, ce[At]), { style: t, className: e, label: s, dir: n, virtual: a, size: p, rounded: c, fillMode: d, adaptive: r } = this.props, { windowWidth: h = 0 } = this.state, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.value, m = V(f, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, k = h <= we && r;
1001
+ const i = We(this).toLanguageString(At, ce[At]), { style: t, className: e, label: s, dir: n, virtual: a, size: p, rounded: c, fillMode: d, adaptive: r } = this.props, { windowWidth: h = 0 } = this.state, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = this.value, m = V(u, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, k = h <= we && r;
1004
1002
  w.enabled = a !== void 0, a !== void 0 && (b.vs.skip = a.skip, b.vs.total = a.total, b.vs.pageSize = a.pageSize);
1005
1003
  const {
1006
1004
  dataItemKey: D,
@@ -1008,9 +1006,10 @@ const Ye = {
1008
1006
  disabled: N,
1009
1007
  tabIndex: _,
1010
1008
  loading: S,
1011
- iconClassName: T,
1012
- valueRender: C
1013
- } = this.props, { focused: E } = this.state, M = O.findIndex((Y) => R(Y, f, D)), H = /* @__PURE__ */ o.createElement("span", { id: this._inputId, className: "k-input-inner" }, /* @__PURE__ */ o.createElement("span", { className: "k-input-value-text" }, m)), J = C !== void 0 ? C.call(void 0, H, f) : H, j = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1009
+ iconClassName: F,
1010
+ svgIcon: C,
1011
+ valueRender: E
1012
+ } = this.props, { focused: M } = this.state, W = O.findIndex((K) => R(K, u, D)), j = /* @__PURE__ */ o.createElement("span", { id: this._inputId, className: "k-input-inner" }, /* @__PURE__ */ o.createElement("span", { className: "k-input-value-text" }, m)), Y = E !== void 0 ? E.call(void 0, j, u) : j, ee = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1014
1013
  "span",
1015
1014
  {
1016
1015
  ref: this.componentRef,
@@ -1021,7 +1020,7 @@ const Ye = {
1021
1020
  [`k-picker-${Kt[p] || p}`]: p,
1022
1021
  [`k-rounded-${Zs[c] || c}`]: c,
1023
1022
  [`k-picker-${d}`]: d,
1024
- "k-focus": E,
1023
+ "k-focus": M,
1025
1024
  "k-disabled": N,
1026
1025
  "k-invalid": !v,
1027
1026
  "k-loading": S,
@@ -1030,8 +1029,8 @@ const Ye = {
1030
1029
  ),
1031
1030
  style: s ? { ...t, width: void 0 } : t,
1032
1031
  dir: n,
1033
- onMouseDown: u ? (Y) => {
1034
- Y.target.nodeName !== "INPUT" && (this.focusElement(this.base.wrapper), Y.preventDefault());
1032
+ onMouseDown: f ? (K) => {
1033
+ K.target.nodeName !== "INPUT" && (this.focusElement(this.base.wrapper), K.preventDefault());
1035
1034
  } : void 0,
1036
1035
  onFocus: this.handleFocus,
1037
1036
  onBlur: this.handleBlur,
@@ -1044,16 +1043,16 @@ const Ye = {
1044
1043
  "aria-required": this.required,
1045
1044
  "aria-disabled": N || void 0,
1046
1045
  "aria-haspopup": "listbox",
1047
- "aria-expanded": u || !1,
1046
+ "aria-expanded": f || !1,
1048
1047
  "aria-owns": this._listboxId,
1049
- "aria-activedescendant": u ? "option-" + this._guid + "-" + (M + (a ? a.skip : 0)) : void 0,
1048
+ "aria-activedescendant": f ? "option-" + this._guid + "-" + (W + (a ? a.skip : 0)) : void 0,
1050
1049
  "aria-label": this.props.ariaLabel || this.props.label,
1051
1050
  "aria-labelledby": this.props.ariaLabelledBy,
1052
1051
  "aria-describedby": this.props.ariaDescribedBy || this._inputId,
1053
1052
  id: this.props.id,
1054
1053
  title: this.props.title
1055
1054
  },
1056
- J,
1055
+ Y,
1057
1056
  S && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
1058
1057
  /* @__PURE__ */ o.createElement(
1059
1058
  Te,
@@ -1064,16 +1063,16 @@ const Ye = {
1064
1063
  "aria-hidden": !0,
1065
1064
  size: p,
1066
1065
  fillMode: d,
1067
- iconClass: T,
1066
+ iconClass: F,
1068
1067
  className: "k-input-button",
1069
1068
  rounded: null,
1070
1069
  themeColor: "base",
1071
- icon: T ? void 0 : "caret-alt-down",
1072
- svgIcon: T ? this.props.svgIcon : jt,
1073
- onMouseDown: (Y) => this.state.focused && Y.preventDefault()
1070
+ icon: F ? void 0 : "caret-alt-down",
1071
+ svgIcon: C || jt,
1072
+ onMouseDown: (K) => this.state.focused && K.preventDefault()
1074
1073
  }
1075
1074
  ),
1076
- this.dummySelect(f),
1075
+ this.dummySelect(u),
1077
1076
  !k && this.renderListContainer()
1078
1077
  ), k && this.renderAdaptiveListContainer());
1079
1078
  return s ? /* @__PURE__ */ o.createElement(
@@ -1084,9 +1083,9 @@ const Ye = {
1084
1083
  editorValid: v,
1085
1084
  editorDisabled: this.props.disabled,
1086
1085
  style: { width: t ? t.width : void 0 },
1087
- children: j
1086
+ children: ee
1088
1087
  }
1089
- ) : j;
1088
+ ) : ee;
1090
1089
  }
1091
1090
  /**
1092
1091
  * @hidden
@@ -1097,7 +1096,7 @@ const Ye = {
1097
1096
  defaultItem: n,
1098
1097
  dataItemKey: a,
1099
1098
  virtual: p = { skip: 0, total: 0, pageSize: 0 }
1100
- } = this.props, c = this.base.vs, d = this.value, r = s.findIndex((u) => R(u, d, a)), h = this.base.navigation.navigate({
1099
+ } = this.props, c = this.base.vs, d = this.value, r = s.findIndex((f) => R(f, d, a)), h = this.base.navigation.navigate({
1101
1100
  current: p.skip + r,
1102
1101
  max: (c.enabled ? p.total : s.length) - 1,
1103
1102
  min: n !== void 0 ? -1 : 0,
@@ -1112,12 +1111,12 @@ const Ye = {
1112
1111
  navigatableElements: [],
1113
1112
  expand: r,
1114
1113
  animation: !0,
1115
- onClose: (f) => this.handleWrapperClick(f),
1114
+ onClose: (u) => this.handleWrapperClick(u),
1116
1115
  animationStyles: i <= wt ? { top: 0, width: "100%", height: "100%" } : void 0,
1117
1116
  className: i <= wt ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
1118
1117
  };
1119
- let { group: u } = this.state;
1120
- return u === void 0 && a !== void 0 && (u = V(d[0], a)), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(Jt, { ...h }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, n)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
1118
+ let { group: f } = this.state;
1119
+ return f === void 0 && a !== void 0 && (f = V(d[0], a)), /* @__PURE__ */ o.createElement(Jt, { ...h }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, n)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
1121
1120
  Te,
1122
1121
  {
1123
1122
  tabIndex: 0,
@@ -1141,9 +1140,9 @@ const Ye = {
1141
1140
  )
1142
1141
  },
1143
1142
  this.renderDefaultItem(),
1144
- !c && u && d.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: u, groupMode: "modern", render: p }),
1143
+ !c && f && d.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: f, groupMode: "modern", render: p }),
1145
1144
  this.renderList()
1146
- ), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e))));
1145
+ ), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e)));
1147
1146
  }
1148
1147
  getFocusedIndex() {
1149
1148
  const i = this.value, {
@@ -1167,7 +1166,7 @@ const Ye = {
1167
1166
  this.base.applyState(i), this._valueDuringOnChange = void 0;
1168
1167
  }
1169
1168
  calculateMedia(i) {
1170
- for (let t of i)
1169
+ for (const t of i)
1171
1170
  this.setState({ windowWidth: t.target.clientWidth });
1172
1171
  }
1173
1172
  resetValueIfDisabledItem() {
@@ -1357,11 +1356,11 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1357
1356
  n.syntheticEvent = t, this.base.togglePopup(n), this.base.filterChanged(s, n), this.applyState(n);
1358
1357
  }
1359
1358
  }, this.onInputKeyDown = (t) => {
1360
- const { data: e = [], skipDisabledItems: s, textField: n, dataItemKey: a, groupField: p } = this.props, c = this.value, d = Math.max(0, e.findIndex((w) => R(w, c, a))), r = t.keyCode, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = this.base.initState();
1361
- if (u.syntheticEvent = t, !t.altKey && (r === g.up || r === g.down)) {
1359
+ const { data: e = [], skipDisabledItems: s, textField: n, dataItemKey: a, groupField: p } = this.props, c = this.value, d = Math.max(0, e.findIndex((w) => R(w, c, a))), r = t.keyCode, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.base.initState();
1360
+ if (f.syntheticEvent = t, !t.altKey && (r === g.up || r === g.down)) {
1362
1361
  if (t.preventDefault(), p !== "" && n)
1363
1362
  if (!this.props.skipDisabledItems && h)
1364
- this.onNavigate(u, r);
1363
+ this.onNavigate(f, r);
1365
1364
  else {
1366
1365
  let w = 0;
1367
1366
  if (r === g.down || r === g.right) {
@@ -1381,12 +1380,12 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1381
1380
  }
1382
1381
  if (w !== void 0) {
1383
1382
  const k = w - d;
1384
- this.onNavigate(u, r, k);
1383
+ this.onNavigate(f, r, k);
1385
1384
  } else
1386
- w === void 0 && e.findIndex((k) => k[n] === c[n]) === e.length - 1 && this.onNavigate(u, r);
1385
+ w === void 0 && e.findIndex((k) => k[n] === c[n]) === e.length - 1 && this.onNavigate(f, r);
1387
1386
  }
1388
1387
  else if (!this.props.skipDisabledItems && h)
1389
- this.onNavigate(u, r);
1388
+ this.onNavigate(f, r);
1390
1389
  else {
1391
1390
  let w = null;
1392
1391
  if (r === g.down || r === g.right)
@@ -1398,16 +1397,16 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1398
1397
  }
1399
1398
  if (w) {
1400
1399
  const k = w.id - d - 1;
1401
- this.onNavigate(u, r, k);
1400
+ this.onNavigate(f, r, k);
1402
1401
  } else
1403
- this.onNavigate(u, r);
1402
+ this.onNavigate(f, r);
1404
1403
  }
1405
- this.applyState(u);
1404
+ this.applyState(f);
1406
1405
  }
1407
- const f = () => {
1408
- t.preventDefault(), this.base.togglePopup(u), this.applyState(u);
1406
+ const u = () => {
1407
+ t.preventDefault(), this.base.togglePopup(f), this.applyState(f);
1409
1408
  }, m = this.getFocusedIndex(), v = m === -1, b = !v && this.getCurrentValueDisabledStatus(n, e, m);
1410
- h ? r === g.pageUp ? this.base.scrollPopupByPageSize(-1) : r === g.pageDown ? this.base.scrollPopupByPageSize(1) : t.altKey && r === g.up ? f() : r === g.enter ? (t.preventDefault(), (n && !v && t.currentTarget.value ? e[m][n] : void 0) ? !s && n && b ? this.clearValueOnEnterOrEsc(t) : b || this.applyValueOnEnter(t.currentTarget.value, u) : this.applyValueOnEnter(t.currentTarget.value, u)) : r === g.esc && (!s && n && b && this.clearValueOnEnterOrEsc(t), this.applyValueOnRejectSuggestions(t.currentTarget.value, u)) : !h && r === g.esc ? this.clearValueOnEnterOrEsc(t) : t.altKey && r === g.down && f();
1409
+ h ? r === g.pageUp ? this.base.scrollPopupByPageSize(-1) : r === g.pageDown ? this.base.scrollPopupByPageSize(1) : t.altKey && r === g.up ? u() : r === g.enter ? (t.preventDefault(), (n && !v && t.currentTarget.value ? e[m][n] : void 0) ? !s && n && b ? this.clearValueOnEnterOrEsc(t) : b || this.applyValueOnEnter(t.currentTarget.value, f) : this.applyValueOnEnter(t.currentTarget.value, f)) : r === g.esc && (!s && n && b && this.clearValueOnEnterOrEsc(t), this.applyValueOnRejectSuggestions(t.currentTarget.value, f)) : !h && r === g.esc ? this.clearValueOnEnterOrEsc(t) : t.altKey && r === g.down && u();
1411
1410
  }, this.inputOnChange = (t) => {
1412
1411
  const e = this.base.initState();
1413
1412
  e.syntheticEvent = t;
@@ -1501,16 +1500,16 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1501
1500
  }
1502
1501
  /** @hidden */
1503
1502
  componentDidUpdate(i, t) {
1504
- var f;
1505
- const { dataItemKey: e, virtual: s, groupField: n = "", data: a = [], textField: p } = this.props, c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d, u = this.value;
1506
- if (this._valueOnDidUpdate = u, s && s.total !== c)
1503
+ var u;
1504
+ const { dataItemKey: e, virtual: s, groupField: n = "", data: a = [], textField: p } = this.props, c = i.virtual ? i.virtual.total : 0, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = i.opened !== void 0 ? i.opened : t.opened, h = !r && d, f = this.value;
1505
+ if (this._valueOnDidUpdate = f, s && s.total !== c)
1507
1506
  this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
1508
1507
  else {
1509
1508
  const m = i.value !== void 0 ? i.value : t.value;
1510
- let v = a.findIndex((w) => R(w, u, e));
1511
- this.props.groupMode === "modern" && p && u && (v = (f = this.base.getGroupedDataModernMode(a, n)) == null ? void 0 : f.map((w) => w[p]).indexOf(u[p]));
1512
- const b = !R(m, u, e);
1513
- h && s ? this.base.scrollToVirtualItem(s, v) : h && !s ? (this.onPopupOpened(), a && a.length !== 0 && this.base.resetGroupStickyHeader(a[0][n], this), this.base.scrollToItem(v)) : d && r && u && b && this.base.scrollToItem(v);
1509
+ let v = a.findIndex((w) => R(w, f, e));
1510
+ this.props.groupMode === "modern" && p && f && (v = (u = this.base.getGroupedDataModernMode(a, n)) == null ? void 0 : u.map((w) => w[p]).indexOf(f[p]));
1511
+ const b = !R(m, f, e);
1512
+ h && s ? this.base.scrollToVirtualItem(s, v) : h && !s ? (this.onPopupOpened(), a && a.length !== 0 && this.base.resetGroupStickyHeader(a[0][n], this), this.base.scrollToItem(v)) : d && r && f && b && this.base.scrollToItem(v);
1514
1513
  }
1515
1514
  h && this._input && this._input.focus(), this.setValidity();
1516
1515
  }
@@ -1539,16 +1538,17 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1539
1538
  className: d,
1540
1539
  style: r,
1541
1540
  loading: h,
1542
- iconClassName: u,
1543
- virtual: f,
1541
+ iconClassName: f,
1542
+ virtual: u,
1544
1543
  size: m,
1545
1544
  rounded: v,
1546
1545
  fillMode: b,
1547
1546
  opened: w = this.state.opened,
1548
- placeholder: k
1549
- } = this.props, { windowWidth: D = 0 } = this.state, O = !this.validityStyles || this.validity.valid, N = this.props.filter !== void 0 ? this.props.filter : this.state.text, _ = V(this.value, p), S = U(N) ? N : _, T = n && (!!S || U(this.value)), E = this.base.vs, M = this.props.id || this._inputId, H = D <= we && c;
1550
- E.enabled = f !== void 0, f !== void 0 && (E.skip = f.skip, E.total = f.total, E.pageSize = f.pageSize);
1551
- const [J, j] = Ne(this.props.prefix || o.Fragment), [Y, W] = Ne(this.props.suffix || o.Fragment), ge = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1547
+ placeholder: k,
1548
+ svgIcon: D
1549
+ } = this.props, { windowWidth: O = 0 } = this.state, N = !this.validityStyles || this.validity.valid, _ = this.props.filter !== void 0 ? this.props.filter : this.state.text, S = V(this.value, p), F = U(_) ? _ : S, C = n && (!!F || U(this.value)), M = this.base.vs, W = this.props.id || this._inputId, j = O <= we && c;
1550
+ M.enabled = u !== void 0, u !== void 0 && (M.skip = u.skip, M.total = u.total, M.pageSize = u.pageSize);
1551
+ const [Y, ee] = Ne(this.props.prefix || o.Fragment), [K, ve] = Ne(this.props.suffix || o.Fragment), Q = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1552
1552
  "span",
1553
1553
  {
1554
1554
  className: B(
@@ -1557,7 +1557,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1557
1557
  [`k-input-${yt[m] || m}`]: m,
1558
1558
  [`k-rounded-${ni[v] || v}`]: v,
1559
1559
  [`k-input-${b}`]: b,
1560
- "k-invalid": !O,
1560
+ "k-invalid": !N,
1561
1561
  "k-loading": h,
1562
1562
  "k-required": this.required,
1563
1563
  "k-disabled": s
@@ -1568,43 +1568,43 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1568
1568
  style: a ? { ...r, width: void 0 } : r,
1569
1569
  dir: e
1570
1570
  },
1571
- this.props.prefix && /* @__PURE__ */ o.createElement(J, { ...j }),
1572
- this.renderSearchBar(S || "", M, k),
1573
- T && !h && /* @__PURE__ */ o.createElement(dt, { onClick: this.clearButtonClick, key: "clearbutton" }),
1571
+ this.props.prefix && /* @__PURE__ */ o.createElement(Y, { ...ee }),
1572
+ this.renderSearchBar(F || "", W, k),
1573
+ C && !h && /* @__PURE__ */ o.createElement(dt, { onClick: this.clearButtonClick, key: "clearbutton" }),
1574
1574
  h && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading", key: "loading" }),
1575
- this.props.suffix && /* @__PURE__ */ o.createElement(Y, { ...W }),
1575
+ this.props.suffix && /* @__PURE__ */ o.createElement(K, { ...ve }),
1576
1576
  /* @__PURE__ */ o.createElement(
1577
1577
  Te,
1578
1578
  {
1579
1579
  tabIndex: -1,
1580
1580
  type: "button",
1581
1581
  "aria-label": w ? t : i,
1582
- icon: u ? void 0 : "caret-alt-down",
1583
- svgIcon: u ? this.props.svgIcon : jt,
1584
- iconClass: u,
1582
+ icon: f ? void 0 : "caret-alt-down",
1583
+ svgIcon: D || jt,
1584
+ iconClass: f,
1585
1585
  size: m,
1586
1586
  fillMode: b,
1587
1587
  rounded: null,
1588
1588
  themeColor: "base",
1589
1589
  className: "k-input-button",
1590
1590
  onClick: this.toggleBtnClick,
1591
- onMouseDown: (Z) => Z.preventDefault()
1591
+ onMouseDown: (J) => J.preventDefault()
1592
1592
  }
1593
1593
  ),
1594
- !H && this.renderListContainer()
1595
- ), H && this.renderAdaptiveListContainer());
1594
+ !j && this.renderListContainer()
1595
+ ), j && this.renderAdaptiveListContainer());
1596
1596
  return a ? /* @__PURE__ */ o.createElement(
1597
1597
  Ue,
1598
1598
  {
1599
1599
  label: a,
1600
- editorId: M,
1601
- editorValue: S,
1602
- editorValid: O,
1600
+ editorId: W,
1601
+ editorValue: F,
1602
+ editorValid: N,
1603
1603
  editorDisabled: s,
1604
1604
  style: { width: r ? r.width : void 0 },
1605
- children: ge
1605
+ children: Q
1606
1606
  }
1607
- ) : ge;
1607
+ ) : Q;
1608
1608
  }
1609
1609
  /** @hidden */
1610
1610
  onNavigate(i, t, e) {
@@ -1651,13 +1651,13 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1651
1651
  return d !== -1 ? this.handleItemSelect(d + c, t) : (this.triggerOnChange(null, t), this.state.text !== void 0 && (t.data.text = void 0)), e && this.base.togglePopup(t), this.applyState(t);
1652
1652
  }
1653
1653
  renderAdaptiveListContainer() {
1654
- const { windowWidth: i = 0 } = this.state, { header: t, footer: e, size: s, data: n = [], groupField: a, groupMode: p, list: c, virtual: d, adaptiveTitle: r, groupStickyHeaderItemRender: h } = this.props, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
1655
- let { group: f } = this.state;
1656
- f === void 0 && a !== void 0 && (f = V(n[0], a));
1654
+ const { windowWidth: i = 0 } = this.state, { header: t, footer: e, size: s, data: n = [], groupField: a, groupMode: p, list: c, virtual: d, adaptiveTitle: r, groupStickyHeaderItemRender: h } = this.props, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
1655
+ let { group: u } = this.state;
1656
+ u === void 0 && a !== void 0 && (u = V(n[0], a));
1657
1657
  const m = {
1658
1658
  navigatable: !1,
1659
1659
  navigatableElements: [],
1660
- expand: u,
1660
+ expand: f,
1661
1661
  animation: !0,
1662
1662
  onClose: (v) => this.toggleBtnClick(v),
1663
1663
  animationStyles: i <= wt ? { top: 0, width: "100%", height: "100%" } : void 0,
@@ -1683,26 +1683,26 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1683
1683
  "k-data-table": c,
1684
1684
  [`k-table-${yt[s] || s}`]: c && s
1685
1685
  }
1686
- ) }, t && /* @__PURE__ */ o.createElement("div", { className: "k-table-header" }, t), !c && f && n.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: f, groupMode: p, render: h }), this.renderList(), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e)))));
1686
+ ) }, t && /* @__PURE__ */ o.createElement("div", { className: "k-table-header" }, t), !c && u && n.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: u, groupMode: p, render: h }), this.renderList(), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e)))));
1687
1687
  }
1688
1688
  renderListContainer() {
1689
- const i = this.base, { dir: t, header: e, footer: s, data: n = [], groupField: a, groupMode: p, size: c, list: d, virtual: r, groupStickyHeaderItemRender: h } = this.props, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = i.getPopupSettings(), m = f.width !== void 0 ? f.width : i.popupWidth;
1689
+ const i = this.base, { dir: t, header: e, footer: s, data: n = [], groupField: a, groupMode: p, size: c, list: d, virtual: r, groupStickyHeaderItemRender: h } = this.props, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = i.getPopupSettings(), m = u.width !== void 0 ? u.width : i.popupWidth;
1690
1690
  let { group: v } = this.state;
1691
1691
  return v === void 0 && a !== void 0 && (v = V(n[0], a)), /* @__PURE__ */ o.createElement(
1692
1692
  Ft,
1693
1693
  {
1694
1694
  width: m,
1695
1695
  popupSettings: {
1696
- animate: f.animate,
1696
+ animate: u.animate,
1697
1697
  anchor: this.element,
1698
- show: u,
1698
+ show: f,
1699
1699
  popupClass: B(
1700
- f.popupClass,
1700
+ u.popupClass,
1701
1701
  "k-list-container",
1702
1702
  "k-combobox-popup"
1703
1703
  ),
1704
- className: f.className,
1705
- appendTo: f.appendTo
1704
+ className: u.className,
1705
+ appendTo: u.appendTo
1706
1706
  },
1707
1707
  dir: t !== void 0 ? t : this.base.dirCalculated,
1708
1708
  itemsCount: [n.length]
@@ -1732,13 +1732,13 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1732
1732
  groupHeaderItemRender: a,
1733
1733
  data: p = [],
1734
1734
  virtual: c = { skip: 0, total: void 0 }
1735
- } = this.props, d = i.getPopupSettings(), r = i.vs, h = c.skip, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = `translateY(${r.translate}px)`, m = u ? this.getFocusedIndex() : void 0, v = this.props.filter !== void 0 ? this.props.filter : this.state.text, b = V(this.value, t), w = U(v) && v !== b ? null : this.value, k = this.props.list || je;
1735
+ } = this.props, d = i.getPopupSettings(), r = i.vs, h = c.skip, f = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = `translateY(${r.translate}px)`, m = f ? this.getFocusedIndex() : void 0, v = this.props.filter !== void 0 ? this.props.filter : this.state.text, b = V(this.value, t), w = U(v) && v !== b ? null : this.value, k = this.props.list || je;
1736
1736
  return /* @__PURE__ */ o.createElement(
1737
1737
  k,
1738
1738
  {
1739
1739
  id: i.listBoxId,
1740
1740
  virtual: !!c,
1741
- show: u,
1741
+ show: f,
1742
1742
  data: p,
1743
1743
  focusedIndex: m,
1744
1744
  value: w,
@@ -1758,7 +1758,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1758
1758
  "k-list-scroller": !c
1759
1759
  }
1760
1760
  ),
1761
- listStyle: r.enabled ? { transform: f } : void 0,
1761
+ listStyle: r.enabled ? { transform: u } : void 0,
1762
1762
  key: "listkey",
1763
1763
  skip: h,
1764
1764
  onClick: this.handleItemClick,
@@ -1780,7 +1780,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1780
1780
  data: a = [],
1781
1781
  dataItemKey: p,
1782
1782
  virtual: c = { skip: 0 }
1783
- } = this.props, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = this.value, h = Math.max(0, a.findIndex((u) => R(u, r, p)));
1783
+ } = this.props, d = this.props.opened !== void 0 ? this.props.opened : this.state.opened, r = this.value, h = Math.max(0, a.findIndex((f) => R(f, r, p)));
1784
1784
  return this._suggested && !R(this._valueOnDidUpdate, r, p) && (this._suggested = ""), /* @__PURE__ */ o.createElement(
1785
1785
  es,
1786
1786
  {
@@ -1792,7 +1792,7 @@ const si = Ds, Ne = si, ii = "Please enter a valid value!", { sizeMap: yt, round
1792
1792
  accessKey: this.props.accessKey,
1793
1793
  value: i + this._suggested,
1794
1794
  suggestedText: this._suggested,
1795
- ref: (u) => this._input = u && u.input,
1795
+ ref: (f) => this._input = f && f.input,
1796
1796
  onClick: this.onInputClick,
1797
1797
  onKeyDown: this.onInputKeyDown,
1798
1798
  onChange: this.inputOnChange,
@@ -1914,9 +1914,9 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
1914
1914
  }, this.onChangeHandler = (t) => {
1915
1915
  const s = this.base.initState(), n = t.currentTarget, a = n.value, p = n.selectionEnd === a.length;
1916
1916
  s.syntheticEvent = t;
1917
- const c = this._suggested, d = this.value, r = d && d.substring(0, d.length - c.length), h = r && r === a, u = r && r.length > a.length, { suggest: f } = this.props, m = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
1918
- if (f !== void 0 && f !== !1) {
1919
- h || u || !p ? this._suggested = "" : this.suggestValue(a);
1917
+ const c = this._suggested, d = this.value, r = d && d.substring(0, d.length - c.length), h = r && r === a, f = r && r.length > a.length, { suggest: u } = this.props, m = this.props.opened !== void 0 ? this.props.opened : this.state.opened;
1918
+ if (u !== void 0 && u !== !1) {
1919
+ h || f || !p ? this._suggested = "" : this.suggestValue(a);
1920
1920
  const v = a + this._suggested, b = { userInput: a, value: this._suggested };
1921
1921
  this.triggerOnChange(v, s, { suggestion: b });
1922
1922
  } else
@@ -1930,9 +1930,9 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
1930
1930
  }, this.onInputKeyDown = (t) => {
1931
1931
  const { data: e = [], skipDisabledItems: s, groupField: n, textField: a } = this.props;
1932
1932
  this._isScrolling && (this._isScrolling = !1);
1933
- const p = this.focusedIndex(), c = e[p], d = t.keyCode, r = t.altKey, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = this.base.initState();
1934
- u.syntheticEvent = t;
1935
- const f = () => {
1933
+ const p = this.focusedIndex(), c = e[p], d = t.keyCode, r = t.altKey, h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = this.base.initState();
1934
+ f.syntheticEvent = t;
1935
+ const u = () => {
1936
1936
  h && t.preventDefault();
1937
1937
  };
1938
1938
  if (r && d === g.down)
@@ -1948,14 +1948,14 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
1948
1948
  else if (h && d === g.pageDown)
1949
1949
  this.base.scrollPopupByPageSize(1);
1950
1950
  else if (h && (d === g.enter || d === g.esc))
1951
- f(), s === !1 && c && c.disabled ? (h && this.togglePopup(u), this.applyState(u)) : this.applyInputValue(t.currentTarget.value, u, t.keyCode);
1951
+ u(), s === !1 && c && c.disabled ? (h && this.togglePopup(f), this.applyState(f)) : this.applyInputValue(t.currentTarget.value, f, t.keyCode);
1952
1952
  else if (!h && d === g.esc) {
1953
1953
  const m = "";
1954
- this._suggested = "", this.triggerOnChange(m, u), this.state.focusedItem !== void 0 && (u.data.focusedItem = void 0), this.applyState(u);
1954
+ this._suggested = "", this.triggerOnChange(m, f), this.state.focusedItem !== void 0 && (f.data.focusedItem = void 0), this.applyState(f);
1955
1955
  } else if (d === g.up || d === g.down) {
1956
1956
  if (n !== "" && a)
1957
1957
  if (!this.props.skipDisabledItems && h)
1958
- this.onNavigate(u, d);
1958
+ this.onNavigate(f, d);
1959
1959
  else {
1960
1960
  let m = 0;
1961
1961
  if (d === g.down || d === g.right) {
@@ -1975,12 +1975,12 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
1975
1975
  }
1976
1976
  if (m !== void 0) {
1977
1977
  const v = m - p;
1978
- this.onNavigate(u, d, v);
1978
+ this.onNavigate(f, d, v);
1979
1979
  } else
1980
- m === void 0 && e.findIndex((v) => v[a]) === e.length - 1 && this.onNavigate(u, d);
1980
+ m === void 0 && e.findIndex((v) => v[a]) === e.length - 1 && this.onNavigate(f, d);
1981
1981
  }
1982
1982
  else if (!this.props.skipDisabledItems && h)
1983
- this.onNavigate(u, d);
1983
+ this.onNavigate(f, d);
1984
1984
  else {
1985
1985
  let m = null;
1986
1986
  if (d === g.down || d === g.right)
@@ -1992,11 +1992,11 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
1992
1992
  }
1993
1993
  if (m) {
1994
1994
  const v = m.id - p - 1;
1995
- this.onNavigate(u, d, v);
1995
+ this.onNavigate(f, d, v);
1996
1996
  } else
1997
- this.onNavigate(u, d);
1997
+ this.onNavigate(f, d);
1998
1998
  }
1999
- this.applyState(u), f();
1999
+ this.applyState(f), u();
2000
2000
  }
2001
2001
  }, this.handleBlur = (t) => {
2002
2002
  if (this.state.focused) {
@@ -2053,13 +2053,13 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2053
2053
  * @hidden
2054
2054
  */
2055
2055
  componentDidUpdate(i, t) {
2056
- var f;
2057
- const { groupField: e = "", data: s = [] } = this.props, { data: n = [] } = i, a = this.focusedIndex(), p = s[a], c = n !== s, d = p !== void 0 && t.focusedItem !== p, r = this.props.opened !== void 0 ? this.props.opened : this.state.opened, h = i.opened !== void 0 ? i.opened : t.opened, u = !h && r;
2056
+ var u;
2057
+ const { groupField: e = "", data: s = [] } = this.props, { data: n = [] } = i, a = this.focusedIndex(), p = s[a], c = n !== s, d = p !== void 0 && t.focusedItem !== p, r = this.props.opened !== void 0 ? this.props.opened : this.state.opened, h = i.opened !== void 0 ? i.opened : t.opened, f = !h && r;
2058
2058
  if (e === "")
2059
- (r && (d || c) || u) && this.base.scrollToItem(a);
2059
+ (r && (d || c) || f) && this.base.scrollToItem(a);
2060
2060
  else if (!this._isScrolling) {
2061
- let m = (f = this.base.getGroupedDataModernMode(s, e)) == null ? void 0 : f.indexOf(p);
2062
- u && (s && s.length !== 0 && this.base.resetGroupStickyHeader(s[0][e], this), this.base.scrollToItem(m)), r && h && d && this.base.scrollToItem(m);
2061
+ let m = (u = this.base.getGroupedDataModernMode(s, e)) == null ? void 0 : u.indexOf(p);
2062
+ f && (s && s.length !== 0 && this.base.resetGroupStickyHeader(s[0][e], this), this.base.scrollToItem(m)), r && h && d && this.base.scrollToItem(m);
2063
2063
  }
2064
2064
  this.setValidity();
2065
2065
  }
@@ -2073,7 +2073,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2073
2073
  * @hidden
2074
2074
  */
2075
2075
  render() {
2076
- const { dir: i, disabled: t, label: e, className: s, style: n, loading: a, suggest: p, size: c, rounded: d, fillMode: r } = this.props, h = !this.validityStyles || this.validity.valid, u = this.base, f = this.value, m = this.props.clearButton !== !1 && !a && !!f, v = this.props.id || this._inputId;
2076
+ const { dir: i, disabled: t, label: e, className: s, style: n, loading: a, suggest: p, size: c, rounded: d, fillMode: r } = this.props, h = !this.validityStyles || this.validity.valid, f = this.base, u = this.value, m = this.props.clearButton !== !1 && !a && !!u, v = this.props.id || this._inputId;
2077
2077
  typeof p == "string" && (this._suggested = p);
2078
2078
  const [b, w] = Ne(this.props.prefix || o.Fragment), [k, D] = Ne(this.props.suffix || o.Fragment), O = /* @__PURE__ */ o.createElement(
2079
2079
  "span",
@@ -2092,13 +2092,13 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2092
2092
  }
2093
2093
  ),
2094
2094
  ref: (N) => {
2095
- this._element = N, u.wrapper = N;
2095
+ this._element = N, f.wrapper = N;
2096
2096
  },
2097
2097
  style: e ? { ...n, width: void 0 } : n,
2098
2098
  dir: i
2099
2099
  },
2100
2100
  this.props.prefix && /* @__PURE__ */ o.createElement(b, { ...w }),
2101
- this.renderSearchBar(f || "", v),
2101
+ this.renderSearchBar(u || "", v),
2102
2102
  a && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
2103
2103
  m && !a && /* @__PURE__ */ o.createElement(dt, { onClick: this.clearButtonClick, key: "clearbutton" }),
2104
2104
  this.props.suffix && /* @__PURE__ */ o.createElement(k, { ...D }),
@@ -2109,7 +2109,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2109
2109
  {
2110
2110
  label: e,
2111
2111
  editorId: v,
2112
- editorValue: f,
2112
+ editorValue: u,
2113
2113
  editorValid: h,
2114
2114
  editorDisabled: t,
2115
2115
  style: { width: n ? n.width : void 0 },
@@ -2182,12 +2182,12 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2182
2182
  groupField: p,
2183
2183
  list: c,
2184
2184
  groupStickyHeaderItemRender: d
2185
- } = this.props, r = i.getPopupSettings(), h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, u = r.width !== void 0 ? r.width : i.popupWidth;
2186
- let { group: f } = this.state;
2187
- return f === void 0 && p !== void 0 && (f = V(n[0], p)), /* @__PURE__ */ o.createElement(
2185
+ } = this.props, r = i.getPopupSettings(), h = this.props.opened !== void 0 ? this.props.opened : this.state.opened, f = r.width !== void 0 ? r.width : i.popupWidth;
2186
+ let { group: u } = this.state;
2187
+ return u === void 0 && p !== void 0 && (u = V(n[0], p)), /* @__PURE__ */ o.createElement(
2188
2188
  Ft,
2189
2189
  {
2190
- width: u,
2190
+ width: f,
2191
2191
  popupSettings: {
2192
2192
  animate: r.animate,
2193
2193
  anchor: this.element,
@@ -2214,7 +2214,7 @@ const ai = "Please enter a valid value!", { sizeMap: rs, roundedMap: li } = Ge,
2214
2214
  }
2215
2215
  )
2216
2216
  },
2217
- !c && f && n.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: f, groupMode: "modern", render: d }),
2217
+ !c && u && n.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: u, groupMode: "modern", render: d }),
2218
2218
  this.renderList()
2219
2219
  ),
2220
2220
  s && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, s)
@@ -2339,7 +2339,7 @@ class xs extends o.Component {
2339
2339
  key: d.text + r,
2340
2340
  text: d.text,
2341
2341
  removable: !0,
2342
- onRemove: (u) => p.call(void 0, d.data, u.syntheticEvent),
2342
+ onRemove: (f) => p.call(void 0, d.data, f.syntheticEvent),
2343
2343
  onMouseDown: ci,
2344
2344
  onClick: pi,
2345
2345
  className: d === s ? "k-focus" : void 0,
@@ -2363,7 +2363,7 @@ const ds = 500, ts = (i) => {
2363
2363
  onClose: d,
2364
2364
  adaptiveTitle: r,
2365
2365
  mobileFilter: h
2366
- } = i, u = {
2366
+ } = i, f = {
2367
2367
  navigatable: n || !1,
2368
2368
  navigatableElements: a || [],
2369
2369
  expand: p,
@@ -2372,7 +2372,7 @@ const ds = 500, ts = (i) => {
2372
2372
  animationStyles: s <= ds ? { top: 0, width: "100%", height: "100%" } : void 0,
2373
2373
  className: s <= ds ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
2374
2374
  };
2375
- return /* @__PURE__ */ o.createElement(Jt, { ...u }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, r)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
2375
+ return /* @__PURE__ */ o.createElement(Jt, { ...f }, /* @__PURE__ */ o.createElement(Qt, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, r)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
2376
2376
  Te,
2377
2377
  {
2378
2378
  tabIndex: 0,
@@ -2416,8 +2416,8 @@ const ds = 500, ts = (i) => {
2416
2416
  }, this._element = null, this._valueItemsDuringOnChange = null, this.base = new oe(this), this._tags = [], this._input = null, this._adaptiveInput = null, this._skipFocusEvent = !1, this._lastSelectedOrDeslectedItemIndex = null, this.itemHeight = 0, this.scrollToFocused = !1, this.localization = null, this.focus = () => {
2417
2417
  this._input && this._input.focus();
2418
2418
  }, this.handleItemSelect = (t, e) => {
2419
- const { data: s = [], dataItemKey: n, virtual: a } = this.props, p = a ? a.skip : 0, c = s[t - p], d = this.value.findIndex((u) => R(u, c, n));
2420
- this._lastSelectedOrDeslectedItemIndex = s.findIndex((u) => R(u, c, n));
2419
+ const { data: s = [], dataItemKey: n, virtual: a } = this.props, p = a ? a.skip : 0, c = s[t - p], d = this.value.findIndex((f) => R(f, c, n));
2420
+ this._lastSelectedOrDeslectedItemIndex = s.findIndex((f) => R(f, c, n));
2421
2421
  let r = [];
2422
2422
  d !== -1 ? (r = this.value, r.splice(d, 1)) : r = [...this.value, c], (this.props.filter !== void 0 ? this.props.filter : this.state.text) && !this.mobileMode && (this.state.text && (e.data.text = ""), this.base.filterChanged("", e)), this._adaptiveInput && this._adaptiveInput.blur(), this.state.focusedIndex !== void 0 && (e.data.focusedIndex = void 0), this.triggerOnChange(r, e), this.base.triggerPageChangeCornerItems(c, e);
2423
2423
  }, this.onTagDelete = (t, e) => {
@@ -2445,7 +2445,7 @@ const ds = 500, ts = (i) => {
2445
2445
  const { data: e = [], textField: s, groupField: n } = this.props, a = t.keyCode, p = this.props.filter !== void 0 ? this.props.filter : this.state.text, c = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { focusedItem: d, focusedIndex: r } = this.getFocusedState(), h = this.base.initState();
2446
2446
  if (h.syntheticEvent = t, !p && this.value.length > 0 && (a === g.left || a === g.right || a === g.home || a === g.end || a === g.delete || a === g.backspace) && !t.shiftKey)
2447
2447
  return this.onTagsNavigate(t, h);
2448
- const u = () => {
2448
+ const f = () => {
2449
2449
  t.preventDefault(), this.base.togglePopup(h), this.applyState(h);
2450
2450
  };
2451
2451
  if (this.opened)
@@ -2457,72 +2457,72 @@ const ds = 500, ts = (i) => {
2457
2457
  const m = (this.state.value && this.state.value.length) === e.length ? [] : e;
2458
2458
  this.updateStateOnKeyboardNavigation(m, h);
2459
2459
  } else if ((t.ctrlKey || t.metaKey) && t.shiftKey && t.keyCode === g.end) {
2460
- const f = e.slice(this.getFocusedState().focusedIndex);
2461
- this.itemFocus(e.length - 1, h), this.updateStateOnKeyboardNavigation(f, h);
2460
+ const u = e.slice(this.getFocusedState().focusedIndex);
2461
+ this.itemFocus(e.length - 1, h), this.updateStateOnKeyboardNavigation(u, h);
2462
2462
  } else if ((t.ctrlKey || t.metaKey) && t.shiftKey && t.keyCode === g.home) {
2463
- const f = e.slice(0, this.getFocusedState().focusedIndex + 1);
2464
- this.itemFocus(0, h), this.updateStateOnKeyboardNavigation(f, h);
2463
+ const u = e.slice(0, this.getFocusedState().focusedIndex + 1);
2464
+ this.itemFocus(0, h), this.updateStateOnKeyboardNavigation(u, h);
2465
2465
  } else if (t.shiftKey && t.keyCode === g.up) {
2466
- let f;
2466
+ let u;
2467
2467
  const m = this.getLastSelectedOrDeselectedIndex(1, r);
2468
- m === null ? f = r !== 0 ? e.slice(r - 1, r) : [e[r]] : m === r ? f = [e[m - 1]] : r >= 0 && (f = m > r ? e.slice(r - 1, m) : e.slice(m - 1, r)), f && f.length > 0 && (r >= 1 && this.itemFocus(r - 1, h), this.updateStateOnKeyboardNavigation(f, h));
2468
+ m === null ? u = r !== 0 ? e.slice(r - 1, r) : [e[r]] : m === r ? u = [e[m - 1]] : r >= 0 && (u = m > r ? e.slice(r - 1, m) : e.slice(m - 1, r)), u && u.length > 0 && (r >= 1 && this.itemFocus(r - 1, h), this.updateStateOnKeyboardNavigation(u, h));
2469
2469
  } else if (t.shiftKey && t.keyCode === g.down) {
2470
- let f;
2470
+ let u;
2471
2471
  const m = this.getLastSelectedOrDeselectedIndex(0, r);
2472
- m === null ? f = r !== e.length - 1 ? e.slice(r, r + 1) : [e[r]] : m === r ? f = e.slice(r, r + 2) : r >= 0 && (f = m > r ? e.slice(r + 1, m + 1) : e.slice(m, r + 2)), f && f.length >= 1 && (this.itemFocus(r + 1, h), this.updateStateOnKeyboardNavigation(f, h));
2472
+ m === null ? u = r !== e.length - 1 ? e.slice(r, r + 1) : [e[r]] : m === r ? u = e.slice(r, r + 2) : r >= 0 && (u = m > r ? e.slice(r + 1, m + 1) : e.slice(m, r + 2)), u && u.length >= 1 && (this.itemFocus(r + 1, h), this.updateStateOnKeyboardNavigation(u, h));
2473
2473
  } else if (t.altKey && a === g.up)
2474
- u();
2474
+ f();
2475
2475
  else if (a === g.up || a === g.down) {
2476
2476
  if (n !== "" && s)
2477
2477
  if (!this.props.skipDisabledItems && c)
2478
2478
  this.onNavigate(h, a);
2479
2479
  else {
2480
- let f = 0;
2480
+ let u = 0;
2481
2481
  if (a === g.down || a === g.right) {
2482
2482
  const m = e.slice(r + 1).find((v) => !v.disabled && v[s]);
2483
- f = m && e.findIndex((v) => v[s] === m[s]);
2483
+ u = m && e.findIndex((v) => v[s] === m[s]);
2484
2484
  } else if (a === g.up || a === g.left) {
2485
2485
  let m;
2486
2486
  if (r === -1)
2487
- m = e, f = e.findIndex((v) => !v.disabled && v[s]);
2487
+ m = e, u = e.findIndex((v) => !v.disabled && v[s]);
2488
2488
  else {
2489
2489
  m = e.slice(0, r);
2490
2490
  let v = m.pop();
2491
2491
  for (; v && v.disabled; )
2492
2492
  v = m.pop();
2493
- f = v && e.findIndex((b) => b[s] === v[s]);
2493
+ u = v && e.findIndex((b) => b[s] === v[s]);
2494
2494
  }
2495
2495
  }
2496
- if (f) {
2497
- const m = f - r;
2496
+ if (u) {
2497
+ const m = u - r;
2498
2498
  this.onNavigate(h, a, m);
2499
2499
  } else
2500
- f !== void 0 && this.onNavigate(h, a);
2500
+ u !== void 0 && this.onNavigate(h, a);
2501
2501
  }
2502
2502
  else if (!this.props.skipDisabledItems && c)
2503
2503
  this.onNavigate(h, a);
2504
2504
  else {
2505
- let f = null;
2505
+ let u = null;
2506
2506
  if (a === g.down || a === g.right)
2507
- f = e.slice(r + 1).find((m) => !m.disabled);
2507
+ u = e.slice(r + 1).find((m) => !m.disabled);
2508
2508
  else if (a === g.up || a === g.left) {
2509
2509
  const m = e.slice(0, r);
2510
- for (f = m.pop(); f && f.disabled; )
2511
- f = m.pop();
2510
+ for (u = m.pop(); u && u.disabled; )
2511
+ u = m.pop();
2512
2512
  }
2513
- if (f) {
2514
- const m = f.id - r - 1;
2513
+ if (u) {
2514
+ const m = u.id - r - 1;
2515
2515
  this.onNavigate(h, a, m);
2516
2516
  } else
2517
2517
  this.onNavigate(h, a);
2518
2518
  }
2519
2519
  this.applyState(h), t.preventDefault();
2520
2520
  } else
2521
- a === g.enter ? (t.preventDefault(), this.props.allowCustom && p && d === null ? this.customItemSelect(t) : d && d.disabled ? u() : this.selectFocusedItem(t)) : a === g.esc && u();
2521
+ a === g.enter ? (t.preventDefault(), this.props.allowCustom && p && d === null ? this.customItemSelect(t) : d && d.disabled ? f() : this.selectFocusedItem(t)) : a === g.esc && f();
2522
2522
  else
2523
- t.altKey && a === g.down && u();
2523
+ t.altKey && a === g.down && f();
2524
2524
  }, this.listContainerContent = () => {
2525
- const { header: t, footer: e, allowCustom: s, size: n, data: a = [], groupStickyHeaderItemRender: p, groupField: c, list: d } = this.props, r = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: h } = this.getFocusedState(), u = s && r && /* @__PURE__ */ o.createElement(
2525
+ const { header: t, footer: e, allowCustom: s, size: n, data: a = [], groupStickyHeaderItemRender: p, groupField: c, list: d } = this.props, r = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: h } = this.getFocusedState(), f = s && r && /* @__PURE__ */ o.createElement(
2526
2526
  "div",
2527
2527
  {
2528
2528
  className: B("k-list", {
@@ -2542,8 +2542,8 @@ const ds = 500, ts = (i) => {
2542
2542
  /* @__PURE__ */ o.createElement(Ce, { name: "plus", icon: Ps, style: { position: "absolute", right: "0.5em" } })
2543
2543
  )
2544
2544
  );
2545
- let { group: f } = this.state;
2546
- return f === void 0 && c !== void 0 && (f = V(a[0], c)), /* @__PURE__ */ o.createElement(o.Fragment, null, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), u, /* @__PURE__ */ o.createElement(
2545
+ let { group: u } = this.state;
2546
+ return u === void 0 && c !== void 0 && (u = V(a[0], c)), /* @__PURE__ */ o.createElement(o.Fragment, null, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), f, /* @__PURE__ */ o.createElement(
2547
2547
  "div",
2548
2548
  {
2549
2549
  className: B(
@@ -2554,7 +2554,7 @@ const ds = 500, ts = (i) => {
2554
2554
  }
2555
2555
  )
2556
2556
  },
2557
- !d && f && a.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: f, groupMode: "modern", render: p }),
2557
+ !d && u && a.length !== 0 && /* @__PURE__ */ o.createElement(qe, { group: u, groupMode: "modern", render: p }),
2558
2558
  this.renderList()
2559
2559
  ), e && /* @__PURE__ */ o.createElement("div", { className: "k-list-footer" }, e));
2560
2560
  }, this.renderListContainer = () => {
@@ -2625,7 +2625,7 @@ const ds = 500, ts = (i) => {
2625
2625
  groupHeaderItemRender: a,
2626
2626
  dataItemKey: p,
2627
2627
  virtual: c = { skip: 0, total: void 0 }
2628
- } = this.props, d = this.base.vs, { focusedIndex: r } = this.getFocusedState(), h = this.base.getPopupSettings(), u = `translateY(${d.translate}px)`;
2628
+ } = this.props, d = this.base.vs, { focusedIndex: r } = this.getFocusedState(), h = this.base.getPopupSettings(), f = `translateY(${d.translate}px)`;
2629
2629
  return /* @__PURE__ */ o.createElement(
2630
2630
  je,
2631
2631
  {
@@ -2639,12 +2639,12 @@ const ds = 500, ts = (i) => {
2639
2639
  optionsGuid: this.base.guid,
2640
2640
  groupField: this.props.groupField,
2641
2641
  groupMode: "modern",
2642
- listRef: (f) => {
2643
- d.list = this.base.list = f;
2642
+ listRef: (u) => {
2643
+ d.list = this.base.list = u;
2644
2644
  },
2645
2645
  wrapperStyle: this.mobileMode ? {} : { maxHeight: h.height },
2646
2646
  wrapperCssClass: "k-list-content",
2647
- listStyle: d.enabled ? { transform: u } : void 0,
2647
+ listStyle: d.enabled ? { transform: f } : void 0,
2648
2648
  key: "listKey",
2649
2649
  skip: c.skip,
2650
2650
  onClick: this.handleItemClick,
@@ -2773,13 +2773,13 @@ const ds = 500, ts = (i) => {
2773
2773
  }
2774
2774
  /** @hidden */
2775
2775
  componentDidUpdate(i, t) {
2776
- var u;
2776
+ var f;
2777
2777
  const { virtual: e, groupField: s = "", data: n = [] } = this.props, a = e ? e.skip : 0, p = i.virtual ? i.virtual.total : 0, c = i.opened !== void 0 ? i.opened : t.opened, d = !c && this.opened, r = c && !this.opened;
2778
2778
  if (!this.base.getPopupSettings().animate && r && this.onPopupClosed(), e && e.total !== p)
2779
2779
  this.base.vs.calcScrollElementHeight(), this.base.vs.reset();
2780
2780
  else {
2781
- let { focusedItem: f, focusedIndex: m } = this.getFocusedState();
2782
- s !== "" && (m = (u = this.base.getGroupedDataModernMode(n, s)) == null ? void 0 : u.indexOf(f)), d && e ? this.base.scrollToVirtualItem(e, m - a) : d && !e ? (n && n.length !== 0 && this.base.resetGroupStickyHeader(n[0][s], this), this.base.scrollToItem(m)) : this.opened && c && f && this.scrollToFocused && this.base.scrollToItem(m - a);
2781
+ let { focusedItem: u, focusedIndex: m } = this.getFocusedState();
2782
+ s !== "" && (m = (f = this.base.getGroupedDataModernMode(n, s)) == null ? void 0 : f.indexOf(u)), d && e ? this.base.scrollToVirtualItem(e, m - a) : d && !e ? (n && n.length !== 0 && this.base.resetGroupStickyHeader(n[0][s], this), this.base.scrollToItem(m)) : this.opened && c && u && this.scrollToFocused && this.base.scrollToItem(m - a);
2783
2783
  }
2784
2784
  this.scrollToFocused = !1, this.setValidity();
2785
2785
  }
@@ -2795,18 +2795,18 @@ const ds = 500, ts = (i) => {
2795
2795
  }
2796
2796
  /** @hidden */
2797
2797
  onNavigate(i, t, e) {
2798
- const { allowCustom: s, data: n = [] } = this.props, a = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: p, focusedIndex: c } = this.getFocusedState(), d = s && a, r = ps(p), h = this.base, u = h.vs;
2798
+ const { allowCustom: s, data: n = [] } = this.props, a = this.props.filter !== void 0 ? this.props.filter : this.state.text, { focusedType: p, focusedIndex: c } = this.getFocusedState(), d = s && a, r = ps(p), h = this.base, f = h.vs;
2799
2799
  if (this.opened && t === g.up && r)
2800
2800
  this.state.focusedIndex !== void 0 && (i.data.focusedIndex = void 0);
2801
2801
  else {
2802
- const f = h.navigation.navigate({
2802
+ const u = h.navigation.navigate({
2803
2803
  keyCode: t,
2804
2804
  current: c,
2805
- max: (u.enabled ? u.total : n.length) - 1,
2805
+ max: (f.enabled ? f.total : n.length) - 1,
2806
2806
  min: d ? -1 : 0,
2807
2807
  skipItems: e || void 0
2808
2808
  });
2809
- f !== void 0 && (this.itemFocus(f, i), this.scrollToFocused = !0);
2809
+ u !== void 0 && (this.itemFocus(u, i), this.scrollToFocused = !0);
2810
2810
  }
2811
2811
  this.applyState(i);
2812
2812
  }
@@ -2824,13 +2824,13 @@ const ds = 500, ts = (i) => {
2824
2824
  size: d,
2825
2825
  rounded: r,
2826
2826
  fillMode: h,
2827
- loading: u,
2828
- filter: f
2827
+ loading: f,
2828
+ filter: u
2829
2829
  } = this.props, { text: m, focused: v, focusedTag: b, currentValue: w } = this.state, k = this.base.vs, D = this.props.id || this._inputId;
2830
2830
  k.enabled = c !== void 0, c !== void 0 && (k.skip = c.skip, k.total = c.total, k.pageSize = c.pageSize);
2831
2831
  const O = this.mobileMode && this.opened ? w : this.tagsToRender;
2832
2832
  this.setItems(this.tagsToRender, this._tags);
2833
- const N = !this.validityStyles || this.validity.valid, _ = !!(f !== void 0 ? f : m) || O && O.length > 0, [S, T] = Ne(this.props.prefix || o.Fragment), [C, E] = Ne(this.props.suffix || o.Fragment), M = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
2833
+ const N = !this.validityStyles || this.validity.valid, _ = !!(u !== void 0 ? u : m) || O && O.length > 0, [S, F] = Ne(this.props.prefix || o.Fragment), [C, E] = Ne(this.props.suffix || o.Fragment), M = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
2834
2834
  "div",
2835
2835
  {
2836
2836
  ref: this.componentRef,
@@ -2841,7 +2841,7 @@ const ds = 500, ts = (i) => {
2841
2841
  "k-focus": v && !n,
2842
2842
  "k-invalid": !N,
2843
2843
  "k-disabled": n,
2844
- "k-loading": u,
2844
+ "k-loading": f,
2845
2845
  "k-required": this.required
2846
2846
  }),
2847
2847
  style: e ? { ...i, width: void 0 } : i,
@@ -2851,7 +2851,7 @@ const ds = 500, ts = (i) => {
2851
2851
  onClick: this.handleWrapperClick,
2852
2852
  onMouseDown: qs
2853
2853
  },
2854
- this.props.prefix && /* @__PURE__ */ o.createElement(S, { ...T }),
2854
+ this.props.prefix && /* @__PURE__ */ o.createElement(S, { ...F }),
2855
2855
  /* @__PURE__ */ o.createElement("div", { className: B("k-input-values") }, /* @__PURE__ */ o.createElement(
2856
2856
  "div",
2857
2857
  {
@@ -2869,12 +2869,12 @@ const ds = 500, ts = (i) => {
2869
2869
  onTagDelete: this.onTagDelete,
2870
2870
  data: O,
2871
2871
  guid: this.base.guid,
2872
- focused: b ? O.find((H) => St(H, b, p)) : void 0,
2872
+ focused: b ? O.find((W) => St(W, b, p)) : void 0,
2873
2873
  size: d
2874
2874
  }
2875
2875
  )
2876
2876
  ), this.renderSearchBar(D)),
2877
- u && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
2877
+ f && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
2878
2878
  this.props.suffix && /* @__PURE__ */ o.createElement(C, { ...E }),
2879
2879
  _ && /* @__PURE__ */ o.createElement(dt, { onClick: this.clearButtonClick }),
2880
2880
  !this.mobileMode && this.renderListContainer()
@@ -2893,7 +2893,7 @@ const ds = 500, ts = (i) => {
2893
2893
  ) : M;
2894
2894
  }
2895
2895
  renderSearchBar(i) {
2896
- const { activedescendant: t, focusedTag: e, currentValue: s } = this.state, { disabled: n, placeholder: a, ariaDescribedBy: p } = this.props, c = !this.mobileMode && (this.props.filter !== void 0 ? this.props.filter : this.state.text) || "", { focusedIndex: d } = this.getFocusedState(), r = this.value.length === 0 && !c ? a : void 0, h = s && s.length > 0 ? void 0 : a, u = t === it.TagsList && e !== void 0 ? `tag-${this.base.guid}-${e.text.replace(/\s+/g, "-")}` : `option-${this.base.guid}-${d}`;
2896
+ const { activedescendant: t, focusedTag: e, currentValue: s } = this.state, { disabled: n, placeholder: a, ariaDescribedBy: p } = this.props, c = !this.mobileMode && (this.props.filter !== void 0 ? this.props.filter : this.state.text) || "", { focusedIndex: d } = this.getFocusedState(), r = this.value.length === 0 && !c ? a : void 0, h = s && s.length > 0 ? void 0 : a, f = t === it.TagsList && e !== void 0 ? `tag-${this.base.guid}-${e.text.replace(/\s+/g, "-")}` : `option-${this.base.guid}-${d}`;
2897
2897
  return /* @__PURE__ */ o.createElement(
2898
2898
  es,
2899
2899
  {
@@ -2910,7 +2910,7 @@ const ds = 500, ts = (i) => {
2910
2910
  expanded: this.opened,
2911
2911
  owns: this.base.listBoxId,
2912
2912
  role: "combobox",
2913
- activedescendant: u,
2913
+ activedescendant: f,
2914
2914
  ariaDescribedBy: `tagslist-${this.base.guid}${p ? " " + p : ""}`,
2915
2915
  ariaLabelledBy: this.props.ariaLabelledBy,
2916
2916
  ariaRequired: this.required
@@ -2965,7 +2965,7 @@ const ds = 500, ts = (i) => {
2965
2965
  focusedType: 1
2966
2966
  /* ListItem */
2967
2967
  };
2968
- const u = this.value;
2968
+ const f = this.value;
2969
2969
  if (e && t)
2970
2970
  return {
2971
2971
  focusedItem: null,
@@ -2980,19 +2980,19 @@ const ds = 500, ts = (i) => {
2980
2980
  focusedType: 1
2981
2981
  /* ListItem */
2982
2982
  };
2983
- if (u.length) {
2984
- const f = u[u.length - 1];
2985
- return h = s.findIndex((m) => R(m, f, n)), s[h] !== void 0 ? {
2983
+ if (f.length) {
2984
+ const u = f[f.length - 1];
2985
+ return h = s.findIndex((m) => R(m, u, n)), s[h] !== void 0 ? {
2986
2986
  focusedIndex: h + r,
2987
2987
  focusedItem: s[h],
2988
2988
  focusedType: 1
2989
2989
  /* ListItem */
2990
2990
  } : { focusedType: 0, focusedIndex: -1 };
2991
2991
  } else if (d && p && !t && r === 0) {
2992
- const f = s.findIndex((m) => !m.disabled && m[p]);
2992
+ const u = s.findIndex((m) => !m.disabled && m[p]);
2993
2993
  return {
2994
- focusedIndex: f,
2995
- focusedItem: s[f - r],
2994
+ focusedIndex: u,
2995
+ focusedItem: s[u - r],
2996
2996
  focusedType: 1
2997
2997
  /* ListItem */
2998
2998
  };
@@ -3091,8 +3091,8 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3091
3091
  className: d,
3092
3092
  size: r,
3093
3093
  prefix: h = void 0,
3094
- suffix: u = void 0,
3095
- onOpen: f,
3094
+ suffix: f = void 0,
3095
+ onOpen: u,
3096
3096
  onClose: m,
3097
3097
  onFocus: v,
3098
3098
  onBlur: b,
@@ -3120,7 +3120,7 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3120
3120
  return V(e.data[0], e.groupField);
3121
3121
  },
3122
3122
  [e.data, e.groupField]
3123
- ), [_, S] = o.useState(N), [T, C] = o.useState(!0), [E] = h ? Ne(e.prefix || o.Fragment) : [], [M] = u ? Ne(e.suffix || o.Fragment) : [], H = o.useMemo(
3123
+ ), [_, S] = o.useState(N), [F, C] = o.useState(!0), [E] = h ? Ne(e.prefix || o.Fragment) : [], [M] = f ? Ne(e.suffix || o.Fragment) : [], W = o.useMemo(
3124
3124
  () => {
3125
3125
  const P = /* @__PURE__ */ o.createElement("th", { className: "k-table-th", colSpan: p.length }, _);
3126
3126
  return /* @__PURE__ */ o.createElement(o.Fragment, null, e.header, /* @__PURE__ */ o.createElement("div", { className: "k-table-header-wrap" }, /* @__PURE__ */ o.createElement("table", { className: "k-table", role: "presentation" }, /* @__PURE__ */ o.createElement("colgroup", null, p.map(
@@ -3131,29 +3131,29 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3131
3131
  style: { width: q.width ? q.width : Ae.width }
3132
3132
  }
3133
3133
  )
3134
- )), /* @__PURE__ */ o.createElement("thead", { className: "k-table-thead" }, /* @__PURE__ */ o.createElement("tr", { className: "k-table-row" }, p.map((q, be) => /* @__PURE__ */ o.createElement("th", { className: "k-table-th", key: q.uniqueKey ? q.uniqueKey : be }, q.header || " "))), _ && T && /* @__PURE__ */ o.createElement("tr", { className: "k-table-group-row" }, e.groupStickyHeaderItemRender ? e.groupStickyHeaderItemRender.call(void 0, P, {}) : P)))));
3134
+ )), /* @__PURE__ */ o.createElement("thead", { className: "k-table-thead" }, /* @__PURE__ */ o.createElement("tr", { className: "k-table-row" }, p.map((q, be) => /* @__PURE__ */ o.createElement("th", { className: "k-table-th", key: q.uniqueKey ? q.uniqueKey : be }, q.header || " "))), _ && F && /* @__PURE__ */ o.createElement("tr", { className: "k-table-group-row" }, e.groupStickyHeaderItemRender ? e.groupStickyHeaderItemRender.call(void 0, P, {}) : P)))));
3135
3135
  },
3136
- [e.header, p, _, T]
3137
- ), J = o.useMemo(
3136
+ [e.header, p, _, F]
3137
+ ), j = o.useMemo(
3138
3138
  () => (
3139
3139
  // These additional 4px are coming from the child elements side borders (fixes horizontal scrollbar)
3140
3140
  `calc(${p.map((P) => vi(P.width, Ae.width)).filter(Boolean).join(" + ")} + ${a}px + 4px)`
3141
3141
  ),
3142
3142
  [p, a]
3143
- ), j = e.virtual ? e.virtual.skip : 0, Y = o.useCallback(
3143
+ ), Y = e.virtual ? e.virtual.skip : 0, ee = o.useCallback(
3144
3144
  (P, q) => {
3145
- const be = p.map((X, Je) => /* @__PURE__ */ o.createElement(
3145
+ const be = p.map((Z, Je) => /* @__PURE__ */ o.createElement(
3146
3146
  "span",
3147
3147
  {
3148
3148
  className: e.itemRender ? void 0 : "k-table-td",
3149
- style: e.itemRender ? void 0 : { width: X.width ? X.width : Ae.width },
3150
- key: X.uniqueKey ? X.uniqueKey : Je
3149
+ style: e.itemRender ? void 0 : { width: Z.width ? Z.width : Ae.width },
3150
+ key: Z.uniqueKey ? Z.uniqueKey : Je
3151
3151
  },
3152
- X.field ? String(Ct(X.field)(q.dataItem)) : ""
3152
+ Z.field ? String(Ct(Z.field)(q.dataItem)) : ""
3153
3153
  ));
3154
- let ke, L, Q, le, z = e.data || [];
3155
- const Ee = q.index - j;
3156
- e.groupField !== void 0 && (le = Ct(e.groupField), L = le(z[Ee]), Q = le(z[Ee - 1]), L && Q && L !== Q && (ke = L)), ke && e.groupMode === "classic" && be.push(/* @__PURE__ */ o.createElement("div", { key: "group", className: "k-table-td k-table-group-td" }, /* @__PURE__ */ o.createElement("span", null, ke)));
3154
+ let ke, z, X, le, H = e.data || [];
3155
+ const Ee = q.index - Y;
3156
+ e.groupField !== void 0 && (le = Ct(e.groupField), z = le(H[Ee]), X = le(H[Ee - 1]), z && X && z !== X && (ke = z)), ke && e.groupMode === "classic" && be.push(/* @__PURE__ */ o.createElement("div", { key: "group", className: "k-table-td k-table-group-td" }, /* @__PURE__ */ o.createElement("span", null, ke)));
3157
3157
  const re = o.cloneElement(P, {
3158
3158
  ...P.props,
3159
3159
  className: B("k-table-row", {
@@ -3166,8 +3166,8 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3166
3166
  }, be);
3167
3167
  return e.itemRender ? e.itemRender.call(void 0, re, q) : re;
3168
3168
  },
3169
- [p, e.groupField, e.itemRender, e.data, j]
3170
- ), W = o.useCallback(
3169
+ [p, e.groupField, e.itemRender, e.data, Y]
3170
+ ), K = o.useCallback(
3171
3171
  (P, q) => {
3172
3172
  P && P.call(void 0, {
3173
3173
  ...q,
@@ -3175,7 +3175,7 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3175
3175
  });
3176
3176
  },
3177
3177
  []
3178
- ), ge = o.useCallback((P) => (e.virtual || S(N), W(f, P)), [W, f, e.virtual, N]), Z = o.useCallback((P) => W(m, P), [m]), ee = o.useCallback((P) => W(v, P), [v]), ae = o.useCallback((P) => W(b, P), [b]), Le = o.useCallback((P) => W(w, P), [w]), Oe = o.useCallback((P) => W(D, P), [D]), ze = o.useCallback((P) => (S(N), W(k, {
3178
+ ), ve = o.useCallback((P) => (e.virtual || S(N), K(u, P)), [K, u, e.virtual, N]), Q = o.useCallback((P) => K(m, P), [m]), J = o.useCallback((P) => K(v, P), [v]), ae = o.useCallback((P) => K(b, P), [b]), Le = o.useCallback((P) => K(w, P), [w]), Oe = o.useCallback((P) => K(D, P), [D]), ze = o.useCallback((P) => (S(N), K(k, {
3179
3179
  ...P,
3180
3180
  mobileMode: P.target.mobileMode
3181
3181
  })), [k]), A = o.useCallback(
@@ -3202,13 +3202,13 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3202
3202
  ...O,
3203
3203
  list: Pe,
3204
3204
  popupSettings: {
3205
- width: J,
3205
+ width: j,
3206
3206
  ...c,
3207
3207
  className: c.className
3208
3208
  },
3209
3209
  ref: n,
3210
- header: H,
3211
- itemRender: Y,
3210
+ header: W,
3211
+ itemRender: ee,
3212
3212
  groupHeaderItemRender: e.groupHeaderItemRender,
3213
3213
  size: e.size,
3214
3214
  rounded: e.rounded,
@@ -3216,9 +3216,9 @@ const mi = (i) => /* @__PURE__ */ o.createElement(
3216
3216
  groupMode: e.groupMode,
3217
3217
  groupField: e.groupField,
3218
3218
  isMultiColumn: !0,
3219
- onOpen: ge,
3220
- onClose: Z,
3221
- onFocus: ee,
3219
+ onOpen: ve,
3220
+ onClose: Q,
3221
+ onFocus: J,
3222
3222
  onBlur: ae,
3223
3223
  onChange: Le,
3224
3224
  onFilterChange: ze,
@@ -3292,8 +3292,8 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3292
3292
  popupSettings: d,
3293
3293
  style: r,
3294
3294
  opened: h,
3295
- disabled: u,
3296
- onOpen: f = Fe,
3295
+ disabled: f,
3296
+ onOpen: u = Fe,
3297
3297
  onClose: m = Fe,
3298
3298
  placeholder: v,
3299
3299
  label: b,
@@ -3304,7 +3304,7 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3304
3304
  valid: N,
3305
3305
  required: _,
3306
3306
  validityStyles: S
3307
- } = s, T = Gt(s.tabIndex, u), C = o.useRef(null), E = o.useRef(null), M = o.useRef(null), H = o.useRef(null), J = o.useRef(null), j = o.useRef(null), Y = o.useRef(!1), [W, ge] = o.useState(void 0), Z = s.value !== void 0, ee = Z ? s.value : W !== void 0 ? W : s.defaultValue, ae = U(ee), Le = ae ? V(ee, s.textField) : "", Oe = Si({ validationMessage: O, valid: N, required: _ }, ae), ze = o.useCallback(() => E.current && E.current.focus(), []);
3307
+ } = s, F = Gt(s.tabIndex, f), C = o.useRef(null), E = o.useRef(null), M = o.useRef(null), W = o.useRef(null), j = o.useRef(null), Y = o.useRef(null), ee = o.useRef(!1), [K, ve] = o.useState(void 0), Q = s.value !== void 0, J = Q ? s.value : K !== void 0 ? K : s.defaultValue, ae = U(J), Le = ae ? V(J, s.textField) : "", Oe = Si({ validationMessage: O, valid: N, required: _ }, ae), ze = o.useCallback(() => E.current && E.current.focus(), []);
3308
3308
  o.useImperativeHandle(
3309
3309
  C,
3310
3310
  () => ({
@@ -3316,9 +3316,9 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3316
3316
  const A = vs(E, s.dir), Pe = d.width !== void 0 ? d.width : r.width !== void 0 ? r.width : us.popupSettings.width, q = {
3317
3317
  width: Cs(E, Pe),
3318
3318
  ...A !== void 0 ? { direction: A } : {}
3319
- }, [be, ke] = o.useState(!1), L = h !== void 0 ? h : be, [Q, le] = o.useState(!1), [z, Ee] = o.useState(), re = !!(z && z <= we && s.adaptive), [X, Je] = o.useState(""), ns = o.useCallback(
3319
+ }, [be, ke] = o.useState(!1), z = h !== void 0 ? h : be, [X, le] = o.useState(!1), [H, Ee] = o.useState(), re = !!(H && H <= we && s.adaptive), [Z, Je] = o.useState(""), ns = o.useCallback(
3320
3320
  () => {
3321
- J.current && J.current.setCustomValidity && J.current.setCustomValidity(
3321
+ j.current && j.current.setCustomValidity && j.current.setCustomValidity(
3322
3322
  Oe.valid ? "" : O === void 0 ? Ci : O
3323
3323
  );
3324
3324
  },
@@ -3332,51 +3332,51 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3332
3332
  }, []);
3333
3333
  const pt = o.useCallback(
3334
3334
  (I) => {
3335
- if (!L) {
3336
- if (f) {
3337
- const F = { ...I };
3338
- f.call(void 0, F);
3335
+ if (!z) {
3336
+ if (u) {
3337
+ const T = { ...I };
3338
+ u.call(void 0, T);
3339
3339
  }
3340
3340
  h === void 0 && ke(!0);
3341
3341
  }
3342
3342
  },
3343
- [L, h, f]
3343
+ [z, h, u]
3344
3344
  ), Se = o.useCallback(
3345
3345
  (I) => {
3346
- if (L) {
3346
+ if (z) {
3347
3347
  if (m) {
3348
- const F = { ...I };
3349
- m.call(void 0, F);
3348
+ const T = { ...I };
3349
+ m.call(void 0, T);
3350
3350
  }
3351
3351
  h === void 0 && (ke(!1), re && setTimeout(() => {
3352
- var F;
3353
- $((F = H.current) == null ? void 0 : F.element);
3352
+ var T;
3353
+ $((T = W.current) == null ? void 0 : T.element);
3354
3354
  }, 300));
3355
3355
  }
3356
3356
  },
3357
- [L, h, m, re]
3357
+ [z, h, m, re]
3358
3358
  ), Ot = o.useCallback(
3359
3359
  (I) => {
3360
3360
  if (!I.isDefaultPrevented() && C.current) {
3361
3361
  le(!0);
3362
- const F = {
3362
+ const T = {
3363
3363
  syntheticEvent: I,
3364
3364
  nativeEvent: I.nativeEvent,
3365
3365
  target: C.current
3366
3366
  };
3367
- (L ? Se : pt)(F);
3367
+ (z ? Se : pt)(T);
3368
3368
  }
3369
3369
  },
3370
- [L, h, f, m]
3370
+ [z, h, u, m]
3371
3371
  ), ne = o.useCallback(
3372
3372
  (I) => {
3373
- Y.current = !0, I(), window.setTimeout(() => Y.current = !1, 0);
3373
+ ee.current = !0, I(), window.setTimeout(() => ee.current = !1, 0);
3374
3374
  },
3375
3375
  []
3376
3376
  ), He = o.useCallback(
3377
3377
  (I) => {
3378
- var x, K;
3379
- const { keyCode: F, altKey: G } = I, pe = j.current && j.current.element;
3378
+ var x, L;
3379
+ const { keyCode: T, altKey: G } = I, pe = Y.current && Y.current.element;
3380
3380
  if (!C.current || I.isDefaultPrevented() && ((x = M.current) == null ? void 0 : x.element) === I.target)
3381
3381
  return;
3382
3382
  const y = {
@@ -3384,11 +3384,11 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3384
3384
  nativeEvent: I.nativeEvent,
3385
3385
  target: C.current
3386
3386
  };
3387
- if (L)
3388
- if (F === g.esc || G && F === g.up)
3387
+ if (z)
3388
+ if (T === g.esc || G && T === g.up)
3389
3389
  I.preventDefault(), Se(y);
3390
- else if (pe && pe.querySelector(".k-focus") && (F === g.up || F === g.down || F === g.left || F === g.right || F === g.home || F === g.end)) {
3391
- if (F === g.up && ((K = M.current) != null && K.element)) {
3390
+ else if (pe && pe.querySelector(".k-focus") && (T === g.up || T === g.down || T === g.left || T === g.right || T === g.home || T === g.end)) {
3391
+ if (T === g.up && ((L = M.current) != null && L.element)) {
3392
3392
  const se = Array.from(pe.querySelectorAll(".k-treeview-item")), Ie = [...se].reverse().find((xe) => !!(xe && xe.querySelector(".k-focus")));
3393
3393
  if (Ie && se.indexOf(Ie) === 0)
3394
3394
  return ne(() => {
@@ -3398,22 +3398,22 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3398
3398
  }
3399
3399
  ne(Fe);
3400
3400
  } else
3401
- F === g.down && ne(() => {
3401
+ T === g.down && ne(() => {
3402
3402
  var se;
3403
3403
  $(((se = M.current) == null ? void 0 : se.element) || pe);
3404
3404
  });
3405
3405
  else
3406
- G && F === g.down ? (I.preventDefault(), pt(y)) : L || F === g.esc && ft(I);
3406
+ G && T === g.down ? (I.preventDefault(), pt(y)) : z || T === g.esc && ft(I);
3407
3407
  },
3408
- [L, h, f, m]
3408
+ [z, h, u, m]
3409
3409
  ), _e = o.useCallback(
3410
3410
  (I) => {
3411
- const { keyCode: F, altKey: G } = I;
3412
- G || F !== g.up && F !== g.down || (I.preventDefault(), ne(
3413
- F === g.up ? () => {
3411
+ const { keyCode: T, altKey: G } = I;
3412
+ G || T !== g.up && T !== g.down || (I.preventDefault(), ne(
3413
+ T === g.up ? () => {
3414
3414
  $(E.current);
3415
3415
  } : () => {
3416
- $(j.current && j.current.element);
3416
+ $(Y.current && Y.current.element);
3417
3417
  }
3418
3418
  ));
3419
3419
  },
@@ -3426,94 +3426,94 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3426
3426
  ), fe = o.useCallback(
3427
3427
  () => {
3428
3428
  var I;
3429
- !Q && L && !h ? Se({ target: C.current }) : e.filterable ? $((I = M.current) == null ? void 0 : I.element) : $(j.current && j.current.element);
3429
+ !X && z && !h ? Se({ target: C.current }) : e.filterable ? $((I = M.current) == null ? void 0 : I.element) : $(Y.current && Y.current.element);
3430
3430
  },
3431
- [m, e.filterable, Q, h, L]
3431
+ [m, e.filterable, X, h, z]
3432
3432
  ), te = o.useCallback(
3433
3433
  () => {
3434
- Q && $(E.current);
3434
+ X && $(E.current);
3435
3435
  },
3436
- [Q]
3436
+ [X]
3437
3437
  ), Pt = o.useCallback(
3438
3438
  (I) => {
3439
- if (!Q && !Y.current && (le(!0), e.onFocus && C.current)) {
3440
- const F = {
3439
+ if (!X && !ee.current && (le(!0), e.onFocus && C.current)) {
3440
+ const T = {
3441
3441
  syntheticEvent: I,
3442
3442
  nativeEvent: I.nativeEvent,
3443
3443
  target: C.current
3444
3444
  };
3445
- e.onFocus.call(void 0, F);
3445
+ e.onFocus.call(void 0, T);
3446
3446
  }
3447
3447
  },
3448
- [Q, e.onFocus]
3448
+ [X, e.onFocus]
3449
3449
  ), _t = o.useCallback(
3450
3450
  (I) => {
3451
- if (Q && !Y.current && C.current) {
3451
+ if (X && !ee.current && C.current) {
3452
3452
  le(!1);
3453
- const F = {
3453
+ const T = {
3454
3454
  syntheticEvent: I,
3455
3455
  nativeEvent: I.nativeEvent,
3456
3456
  target: C.current
3457
3457
  };
3458
3458
  if (e.onBlur) {
3459
- const G = { ...F };
3459
+ const G = { ...T };
3460
3460
  e.onBlur.call(void 0, G);
3461
3461
  }
3462
- re || Se(F);
3462
+ re || Se(T);
3463
3463
  }
3464
3464
  },
3465
- [Q, e.onBlur, L, h, m]
3465
+ [X, e.onBlur, z, h, m]
3466
3466
  ), Rt = o.useCallback(
3467
3467
  () => {
3468
- Q && ne(Fe), re && setTimeout(() => {
3468
+ X && ne(Fe), re && setTimeout(() => {
3469
3469
  var I;
3470
- $((I = H.current) == null ? void 0 : I.element);
3470
+ $((I = W.current) == null ? void 0 : I.element);
3471
3471
  }, 300);
3472
3472
  },
3473
- [Q, re]
3473
+ [X, re]
3474
3474
  ), ht = o.useCallback(
3475
- (I, F, G) => {
3475
+ (I, T, G) => {
3476
3476
  if (e.onChange) {
3477
3477
  const pe = {
3478
- value: F,
3478
+ value: T,
3479
3479
  level: G ? hs(G) : [],
3480
3480
  ...I
3481
3481
  };
3482
3482
  e.onChange.call(void 0, pe);
3483
3483
  }
3484
- Z || ge(F);
3484
+ Q || ve(T);
3485
3485
  },
3486
- [e.onChange, Z]
3486
+ [e.onChange, Q]
3487
3487
  ), ut = o.useCallback(
3488
3488
  (I) => {
3489
- if (R(I.item, ee, c) || !C.current)
3489
+ if (R(I.item, J, c) || !C.current)
3490
3490
  return;
3491
- const { item: F, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
3491
+ const { item: T, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
3492
3492
  syntheticEvent: y,
3493
3493
  nativeEvent: pe,
3494
3494
  target: C.current
3495
3495
  };
3496
- ht(x, F, G), Se(x);
3496
+ ht(x, T, G), Se(x);
3497
3497
  },
3498
- [Z, ee, e.onChange, c, L, h, m]
3498
+ [Q, J, e.onChange, c, z, h, m]
3499
3499
  ), ft = o.useCallback(
3500
3500
  (I) => {
3501
3501
  if (!C.current)
3502
3502
  return;
3503
- const F = {
3503
+ const T = {
3504
3504
  syntheticEvent: I,
3505
3505
  nativeEvent: I.nativeEvent,
3506
3506
  target: C.current
3507
3507
  };
3508
- ht(F, null), Se(F), I.preventDefault();
3508
+ ht(T, null), Se(T), I.preventDefault();
3509
3509
  },
3510
- [Z, e.onChange, L, h, m]
3510
+ [Q, e.onChange, z, h, m]
3511
3511
  ), gt = o.useCallback(
3512
3512
  (I) => {
3513
3513
  if (I.syntheticEvent.stopPropagation(), e.onExpandChange && C.current) {
3514
- const { item: F, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
3514
+ const { item: T, itemHierarchicalIndex: G, nativeEvent: pe, syntheticEvent: y } = I, x = {
3515
3515
  level: hs(G),
3516
- item: F,
3516
+ item: T,
3517
3517
  nativeEvent: pe,
3518
3518
  syntheticEvent: y,
3519
3519
  target: C.current
@@ -3539,26 +3539,26 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3539
3539
  const I = s.filterable ? /* @__PURE__ */ o.createElement(
3540
3540
  Ve,
3541
3541
  {
3542
- value: s.filter === void 0 ? X : s.filter,
3543
- ref: H,
3542
+ value: s.filter === void 0 ? Z : s.filter,
3543
+ ref: W,
3544
3544
  onChange: Qe,
3545
3545
  onKeyDown: _e,
3546
- size: me,
3546
+ size: ge,
3547
3547
  rounded: ye,
3548
3548
  fillMode: De
3549
3549
  }
3550
- ) : null, F = {
3550
+ ) : null, T = {
3551
3551
  adaptiveTitle: s.adaptiveTitle,
3552
- expand: L,
3552
+ expand: z,
3553
3553
  onClose: (G) => Se(G),
3554
- windowWidth: z,
3554
+ windowWidth: H,
3555
3555
  mobileFilter: I
3556
3556
  };
3557
- return /* @__PURE__ */ o.createElement(ts, { ...F }, /* @__PURE__ */ o.createElement(rt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: "k-list k-list-lg" }, p.length > 0 ? /* @__PURE__ */ o.createElement(
3557
+ return /* @__PURE__ */ o.createElement(ts, { ...T }, /* @__PURE__ */ o.createElement(rt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: "k-list k-list-lg" }, p.length > 0 ? /* @__PURE__ */ o.createElement(
3558
3558
  kt,
3559
3559
  {
3560
- ref: j,
3561
- tabIndex: T,
3560
+ ref: Y,
3561
+ tabIndex: F,
3562
3562
  data: Ze,
3563
3563
  focusIdField: c,
3564
3564
  textField: s.textField,
@@ -3568,64 +3568,64 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3568
3568
  expandIcons: !0,
3569
3569
  onItemClick: ut,
3570
3570
  onExpandChange: gt,
3571
- size: me,
3571
+ size: ge,
3572
3572
  item: s.item,
3573
3573
  dir: A
3574
3574
  }
3575
- ) : /* @__PURE__ */ o.createElement(et, null, tt.toLanguageString(ve, ce[ve]))))));
3575
+ ) : /* @__PURE__ */ o.createElement(et, null, tt.toLanguageString(me, ce[me]))))));
3576
3576
  }, Vt = o.useCallback(
3577
3577
  (I) => {
3578
- for (let F of I)
3579
- Ee(F.target.clientWidth);
3578
+ for (let T of I)
3579
+ Ee(T.target.clientWidth);
3580
3580
  },
3581
3581
  []
3582
3582
  ), Ze = o.useMemo(
3583
- () => Z || !ae ? p : Ms(
3583
+ () => Q || !ae ? p : Ms(
3584
3584
  p,
3585
3585
  D,
3586
3586
  (I) => Ns(
3587
3587
  I,
3588
3588
  D,
3589
- { [k]: R(I, ee, c) }
3589
+ { [k]: R(I, J, c) }
3590
3590
  )
3591
3591
  ),
3592
- [p, ee, Z, ae, k, D]
3593
- ), et = s.listNoData || ks, mt = s.valueHolder || ki, tt = ys(), vt = !S || Oe.valid, { size: me, rounded: ye, fillMode: De } = s, de = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
3592
+ [p, J, Q, ae, k, D]
3593
+ ), et = s.listNoData || ks, mt = s.valueHolder || ki, tt = ys(), vt = !S || Oe.valid, { size: ge, rounded: ye, fillMode: De } = s, de = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
3594
3594
  "span",
3595
3595
  {
3596
3596
  className: B("k-dropdowntree k-picker", s.className, {
3597
- [`k-picker-${Ii[me] || me}`]: me,
3597
+ [`k-picker-${Ii[ge] || ge}`]: ge,
3598
3598
  [`k-rounded-${xi[ye] || ye}`]: ye,
3599
3599
  [`k-picker-${De}`]: De,
3600
- "k-focus": Q,
3600
+ "k-focus": X,
3601
3601
  "k-invalid": !vt,
3602
3602
  "k-loading": s.loading,
3603
3603
  "k-required": _,
3604
3604
  "k-disabled": s.disabled
3605
3605
  }),
3606
- tabIndex: T,
3606
+ tabIndex: F,
3607
3607
  accessKey: s.accessKey,
3608
3608
  id: a,
3609
3609
  style: b ? { ...r, width: void 0 } : r,
3610
3610
  dir: A,
3611
3611
  ref: E,
3612
- onKeyDown: u ? void 0 : He,
3612
+ onKeyDown: f ? void 0 : He,
3613
3613
  onMouseDown: Rt,
3614
- onClick: u ? void 0 : Ot,
3614
+ onClick: f ? void 0 : Ot,
3615
3615
  onFocus: Pt,
3616
3616
  onBlur: _t,
3617
3617
  role: "combobox",
3618
3618
  "aria-haspopup": "tree",
3619
- "aria-expanded": L,
3620
- "aria-disabled": u,
3619
+ "aria-expanded": z,
3620
+ "aria-disabled": f,
3621
3621
  "aria-label": b,
3622
3622
  "aria-labelledby": s.ariaLabelledBy,
3623
3623
  "aria-describedby": s.ariaDescribedBy,
3624
3624
  "aria-required": _
3625
3625
  },
3626
- /* @__PURE__ */ o.createElement("span", { className: "k-input-inner" }, /* @__PURE__ */ o.createElement(mt, { item: ee }, Le || v)),
3626
+ /* @__PURE__ */ o.createElement("span", { className: "k-input-inner" }, /* @__PURE__ */ o.createElement(mt, { item: J }, Le || v)),
3627
3627
  s.loading && /* @__PURE__ */ o.createElement(Ce, { className: "k-input-loading-icon", name: "loading" }),
3628
- ae && !u && /* @__PURE__ */ o.createElement(
3628
+ ae && !f && /* @__PURE__ */ o.createElement(
3629
3629
  "span",
3630
3630
  {
3631
3631
  onClick: ft,
@@ -3644,7 +3644,7 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3644
3644
  type: "button",
3645
3645
  "aria-label": "select",
3646
3646
  className: "k-input-button",
3647
- size: me,
3647
+ size: ge,
3648
3648
  fillMode: De,
3649
3649
  themeColor: "base",
3650
3650
  rounded: null,
@@ -3656,13 +3656,13 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3656
3656
  "select",
3657
3657
  {
3658
3658
  name: w,
3659
- ref: J,
3659
+ ref: j,
3660
3660
  tabIndex: -1,
3661
3661
  "aria-hidden": !0,
3662
3662
  title: b,
3663
3663
  style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: "absolute", left: "50%" }
3664
3664
  },
3665
- /* @__PURE__ */ o.createElement("option", { value: s.valueMap ? s.valueMap.call(void 0, ee) : ee })
3665
+ /* @__PURE__ */ o.createElement("option", { value: s.valueMap ? s.valueMap.call(void 0, J) : J })
3666
3666
  ),
3667
3667
  !re && /* @__PURE__ */ o.createElement(
3668
3668
  Yt,
@@ -3675,7 +3675,7 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3675
3675
  style: q,
3676
3676
  animate: d.animate,
3677
3677
  anchor: E.current,
3678
- show: L,
3678
+ show: z,
3679
3679
  onOpen: fe,
3680
3680
  onClose: te,
3681
3681
  appendTo: d.appendTo
@@ -3683,11 +3683,11 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3683
3683
  s.filterable && /* @__PURE__ */ o.createElement(
3684
3684
  Ve,
3685
3685
  {
3686
- value: s.filter === void 0 ? X : s.filter,
3686
+ value: s.filter === void 0 ? Z : s.filter,
3687
3687
  ref: M,
3688
3688
  onChange: Qe,
3689
3689
  onKeyDown: _e,
3690
- size: me,
3690
+ size: ge,
3691
3691
  rounded: ye,
3692
3692
  fillMode: De
3693
3693
  }
@@ -3695,8 +3695,8 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3695
3695
  p.length > 0 ? /* @__PURE__ */ o.createElement(
3696
3696
  kt,
3697
3697
  {
3698
- ref: j,
3699
- tabIndex: T,
3698
+ ref: Y,
3699
+ tabIndex: F,
3700
3700
  data: Ze,
3701
3701
  focusIdField: c,
3702
3702
  textField: s.textField,
@@ -3706,11 +3706,11 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3706
3706
  expandIcons: !0,
3707
3707
  onItemClick: ut,
3708
3708
  onExpandChange: gt,
3709
- size: me,
3709
+ size: ge,
3710
3710
  item: s.item,
3711
3711
  dir: A
3712
3712
  }
3713
- ) : /* @__PURE__ */ o.createElement(et, null, tt.toLanguageString(ve, ce[ve]))
3713
+ ) : /* @__PURE__ */ o.createElement(et, null, tt.toLanguageString(me, ce[me]))
3714
3714
  )
3715
3715
  ), re && Xe());
3716
3716
  return b ? /* @__PURE__ */ o.createElement(
@@ -3720,7 +3720,7 @@ const ks = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3720
3720
  editorValue: Le,
3721
3721
  editorPlaceholder: v,
3722
3722
  editorValid: vt,
3723
- editorDisabled: u,
3723
+ editorDisabled: f,
3724
3724
  editorId: a,
3725
3725
  style: { width: r ? r.width : void 0 },
3726
3726
  children: de,
@@ -3813,8 +3813,8 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3813
3813
  style: d = {},
3814
3814
  opened: r,
3815
3815
  disabled: h,
3816
- onOpen: u = Fe,
3817
- onClose: f = Fe,
3816
+ onOpen: f = Fe,
3817
+ onClose: u = Fe,
3818
3818
  placeholder: m,
3819
3819
  label: v,
3820
3820
  name: b,
@@ -3825,23 +3825,23 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3825
3825
  valid: N,
3826
3826
  tags: _,
3827
3827
  value: S,
3828
- required: T = Re.required,
3828
+ required: F = Re.required,
3829
3829
  validityStyles: C = Re.validityStyles
3830
- } = e, E = Gt(e.tabIndex, h), M = o.useRef(null), H = o.useRef(null), J = o.useRef(null), j = o.useRef(null), Y = o.useRef(null), W = o.useRef(null), ge = o.useRef(!1), Z = o.useRef([]), ee = o.useRef(null), [ae, Le] = o.useState(), [Oe, ze] = o.useState(!1), [A, Pe] = o.useState(!1), [P, q] = o.useState(), [be, ke] = o.useState([]), [L, Q] = o.useState(""), le = !!(P && P <= we && e.adaptive), z = r !== void 0 ? r : Oe, Ee = !!(Array.isArray(S) && S.length), re = Mi({ validationMessage: O, valid: N, required: T }, Ee), X = vs(H, e.dir), Je = c.width !== void 0 ? c.width : d.width !== void 0 ? d.width : Re.popupSettings.width, pt = {
3831
- width: Cs(H, Je),
3832
- ...X !== void 0 ? { direction: X } : {}
3833
- }, Se = o.useCallback(() => H.current && H.current.focus(), []);
3834
- Z.current = _ === void 0 ? (S || []).map((y) => ({ text: V(y, e.textField), data: [y] })) : [..._], o.useImperativeHandle(
3830
+ } = e, E = Gt(e.tabIndex, h), M = o.useRef(null), W = o.useRef(null), j = o.useRef(null), Y = o.useRef(null), ee = o.useRef(null), K = o.useRef(null), ve = o.useRef(!1), Q = o.useRef([]), J = o.useRef(null), [ae, Le] = o.useState(), [Oe, ze] = o.useState(!1), [A, Pe] = o.useState(!1), [P, q] = o.useState(), [be, ke] = o.useState([]), [z, X] = o.useState(""), le = !!(P && P <= we && e.adaptive), H = r !== void 0 ? r : Oe, Ee = !!(Array.isArray(S) && S.length), re = Mi({ validationMessage: O, valid: N, required: F }, Ee), Z = vs(W, e.dir), Je = c.width !== void 0 ? c.width : d.width !== void 0 ? d.width : Re.popupSettings.width, pt = {
3831
+ width: Cs(W, Je),
3832
+ ...Z !== void 0 ? { direction: Z } : {}
3833
+ }, Se = o.useCallback(() => W.current && W.current.focus(), []);
3834
+ Q.current = _ === void 0 ? (S || []).map((y) => ({ text: V(y, e.textField), data: [y] })) : [..._], o.useImperativeHandle(
3835
3835
  M,
3836
3836
  () => ({
3837
3837
  props: e,
3838
- element: H.current,
3838
+ element: W.current,
3839
3839
  focus: Se
3840
3840
  })
3841
3841
  ), o.useImperativeHandle(t, () => M.current);
3842
3842
  const Ot = o.useCallback(
3843
3843
  () => {
3844
- Y.current && Y.current.setCustomValidity && Y.current.setCustomValidity(
3844
+ ee.current && ee.current.setCustomValidity && ee.current.setCustomValidity(
3845
3845
  re.valid ? "" : O === void 0 ? Di : O
3846
3846
  );
3847
3847
  },
@@ -3854,16 +3854,16 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3854
3854
  };
3855
3855
  }, []), o.useEffect(
3856
3856
  () => {
3857
- ee.current && z && ee.current.setPosition(ee.current._popup);
3857
+ J.current && H && J.current.setPosition(J.current._popup);
3858
3858
  },
3859
- [S, z]
3859
+ [S, H]
3860
3860
  );
3861
3861
  const ne = o.useCallback(
3862
- (y, x, K) => {
3862
+ (y, x, L) => {
3863
3863
  if (e.onChange) {
3864
3864
  const se = {
3865
3865
  items: x,
3866
- operation: K,
3866
+ operation: L,
3867
3867
  ...y
3868
3868
  };
3869
3869
  e.onChange.call(void 0, se);
@@ -3874,9 +3874,9 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3874
3874
  (y) => {
3875
3875
  if (R(y.item, S, p) || !M.current)
3876
3876
  return;
3877
- const { item: x, nativeEvent: K, syntheticEvent: se } = y, Ie = {
3877
+ const { item: x, nativeEvent: L, syntheticEvent: se } = y, Ie = {
3878
3878
  syntheticEvent: se,
3879
- nativeEvent: K,
3879
+ nativeEvent: L,
3880
3880
  target: M.current
3881
3881
  };
3882
3882
  ne(Ie, [x], "toggle");
@@ -3884,32 +3884,32 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3884
3884
  [S, p, ne]
3885
3885
  ), _e = o.useCallback(
3886
3886
  (y) => {
3887
- if (!z) {
3888
- if (u) {
3887
+ if (!H) {
3888
+ if (f) {
3889
3889
  const x = { ...y };
3890
- u.call(void 0, x);
3890
+ f.call(void 0, x);
3891
3891
  }
3892
3892
  r === void 0 && (ze(!0), ke(S || []), le && setTimeout(() => {
3893
3893
  var x;
3894
- te((x = j.current) == null ? void 0 : x.element);
3894
+ te((x = Y.current) == null ? void 0 : x.element);
3895
3895
  }, 300));
3896
3896
  }
3897
3897
  },
3898
- [z, r, u, le, j]
3898
+ [H, r, f, le, Y]
3899
3899
  ), $ = o.useCallback(
3900
3900
  (y) => {
3901
- if (z) {
3902
- if (f) {
3901
+ if (H) {
3902
+ if (u) {
3903
3903
  const x = { ...y };
3904
- f.call(void 0, x);
3904
+ u.call(void 0, x);
3905
3905
  }
3906
3906
  r === void 0 && ze(!1);
3907
3907
  }
3908
3908
  },
3909
- [z, r, f]
3909
+ [H, r, u]
3910
3910
  ), fe = o.useCallback(
3911
3911
  (y) => {
3912
- ge.current = !0, y(), window.setTimeout(() => ge.current = !1, 0);
3912
+ ve.current = !0, y(), window.setTimeout(() => ve.current = !1, 0);
3913
3913
  },
3914
3914
  []
3915
3915
  ), te = o.useCallback(
@@ -3920,17 +3920,17 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3920
3920
  ), Pt = o.useCallback(
3921
3921
  () => {
3922
3922
  var y;
3923
- !A && z ? $({ target: M.current }) : e.filterable ? te((y = J.current) == null ? void 0 : y.element) : te(W.current && W.current.element);
3923
+ !A && H ? $({ target: M.current }) : e.filterable ? te((y = j.current) == null ? void 0 : y.element) : te(K.current && K.current.element);
3924
3924
  },
3925
- [A, z, te, $, e.filterable]
3925
+ [A, H, te, $, e.filterable]
3926
3926
  ), _t = o.useCallback(
3927
3927
  () => {
3928
- A && te(H.current);
3928
+ A && te(W.current);
3929
3929
  },
3930
3930
  [A, te]
3931
3931
  ), Rt = o.useCallback(
3932
3932
  (y) => {
3933
- if (!A && !ge.current && (Pe(!0), e.onFocus && M.current)) {
3933
+ if (!A && !ve.current && (Pe(!0), e.onFocus && M.current)) {
3934
3934
  const x = {
3935
3935
  syntheticEvent: y,
3936
3936
  nativeEvent: y.nativeEvent,
@@ -3942,7 +3942,7 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3942
3942
  [A, e.onFocus]
3943
3943
  ), ht = o.useCallback(
3944
3944
  (y) => {
3945
- if (A && !ge.current && M.current) {
3945
+ if (A && !ve.current && M.current) {
3946
3946
  Pe(!1);
3947
3947
  const x = {
3948
3948
  syntheticEvent: y,
@@ -3950,13 +3950,13 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3950
3950
  target: M.current
3951
3951
  };
3952
3952
  if (e.onBlur) {
3953
- const K = { ...x };
3954
- e.onBlur.call(void 0, K);
3953
+ const L = { ...x };
3954
+ e.onBlur.call(void 0, L);
3955
3955
  }
3956
3956
  le || $(x);
3957
3957
  }
3958
3958
  },
3959
- [A, e.onBlur, z, r, f]
3959
+ [A, e.onBlur, H, r, u]
3960
3960
  ), ut = o.useCallback(
3961
3961
  () => {
3962
3962
  A && fe(Fe);
@@ -3971,15 +3971,15 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3971
3971
  nativeEvent: y.nativeEvent,
3972
3972
  target: M.current
3973
3973
  };
3974
- z || _e(x);
3974
+ H || _e(x);
3975
3975
  }
3976
3976
  },
3977
- [z, _e]
3977
+ [H, _e]
3978
3978
  ), gt = o.useCallback(
3979
3979
  (y) => {
3980
3980
  var xe, os;
3981
- const { keyCode: x, altKey: K } = y, se = W.current && W.current.element;
3982
- if (!M.current || y.isDefaultPrevented() && ((xe = J.current) == null ? void 0 : xe.element) === y.target)
3981
+ const { keyCode: x, altKey: L } = y, se = K.current && K.current.element;
3982
+ if (!M.current || y.isDefaultPrevented() && ((xe = j.current) == null ? void 0 : xe.element) === y.target)
3983
3983
  return;
3984
3984
  const Ie = {
3985
3985
  syntheticEvent: y,
@@ -3987,41 +3987,41 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
3987
3987
  target: M.current
3988
3988
  };
3989
3989
  if (S && S.length > 0 && (x === g.left || x === g.right || x === g.home || x === g.end || x === g.delete)) {
3990
- const ie = Z.current;
3990
+ const ie = Q.current;
3991
3991
  let he = ae ? ie.findIndex((ws) => St(ws, ae, p)) : -1, ue;
3992
3992
  const Bt = he !== -1;
3993
3993
  x === g.left ? (Bt ? he = Math.max(0, he - 1) : he = ie.length - 1, ue = ie[he]) : x === g.right ? he === ie.length - 1 ? ue = void 0 : Bt && (he = Math.min(ie.length - 1, he + 1), ue = ie[he]) : x === g.home ? ue = ie[0] : x === g.end ? ue = ie[ie.length - 1] : x === g.delete && Bt && ne(Ie, ie[he].data, "delete"), ue !== ae && Le(ue);
3994
3994
  }
3995
- if (z)
3996
- if (x === g.esc || K && x === g.up)
3995
+ if (H)
3996
+ if (x === g.esc || L && x === g.up)
3997
3997
  y.preventDefault(), $(Ie);
3998
3998
  else if (se && se.querySelector(".k-focus") && (x === g.up || x === g.down || x === g.left || x === g.right || x === g.home || x === g.end)) {
3999
- if (x === g.up && ((os = J.current) != null && os.element)) {
3999
+ if (x === g.up && ((os = j.current) != null && os.element)) {
4000
4000
  const ie = Array.from(se.querySelectorAll(".k-treeview-item")), he = [...ie].reverse().find((ue) => !!(ue && ue.querySelector(".k-focus")));
4001
4001
  if (he && ie.indexOf(he) === 0)
4002
4002
  return fe(() => {
4003
4003
  var ue;
4004
- te((ue = J.current) == null ? void 0 : ue.element);
4004
+ te((ue = j.current) == null ? void 0 : ue.element);
4005
4005
  });
4006
4006
  }
4007
4007
  fe(Fe);
4008
4008
  } else
4009
4009
  x === g.down && fe(() => {
4010
4010
  var ie;
4011
- te(((ie = J.current) == null ? void 0 : ie.element) || se);
4011
+ te(((ie = j.current) == null ? void 0 : ie.element) || se);
4012
4012
  });
4013
4013
  else
4014
- K && x === g.down && (y.preventDefault(), _e(Ie));
4014
+ L && x === g.down && (y.preventDefault(), _e(Ie));
4015
4015
  },
4016
- [z, $, te, fe, _e, ae, p, S, ne]
4016
+ [H, $, te, fe, _e, ae, p, S, ne]
4017
4017
  ), Qe = o.useCallback(
4018
4018
  (y) => {
4019
- const { keyCode: x, altKey: K } = y;
4020
- K || x !== g.up && x !== g.down || (y.preventDefault(), fe(
4019
+ const { keyCode: x, altKey: L } = y;
4020
+ L || x !== g.up && x !== g.down || (y.preventDefault(), fe(
4021
4021
  x === g.up ? () => {
4022
- te(H.current);
4022
+ te(W.current);
4023
4023
  } : () => {
4024
- te(W.current && W.current.element);
4024
+ te(K.current && K.current.element);
4025
4025
  }
4026
4026
  ));
4027
4027
  },
@@ -4040,8 +4040,8 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4040
4040
  [ne, $]
4041
4041
  ), Vt = o.useCallback(
4042
4042
  (y, x) => {
4043
- var K;
4044
- $({ target: M.current }), A || te((K = J.current) == null ? void 0 : K.element), ne({
4043
+ var L;
4044
+ $({ target: M.current }), A || te((L = j.current) == null ? void 0 : L.element), ne({
4045
4045
  syntheticEvent: x,
4046
4046
  nativeEvent: x.nativeEvent,
4047
4047
  target: M.current
@@ -4051,8 +4051,8 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4051
4051
  ), Ze = o.useCallback(
4052
4052
  (y) => {
4053
4053
  if (e.onExpandChange && M.current) {
4054
- const { item: x, itemHierarchicalIndex: K, nativeEvent: se, syntheticEvent: Ie } = y, xe = {
4055
- level: Ti(K),
4054
+ const { item: x, itemHierarchicalIndex: L, nativeEvent: se, syntheticEvent: Ie } = y, xe = {
4055
+ level: Ti(L),
4056
4056
  item: x,
4057
4057
  nativeEvent: se,
4058
4058
  syntheticEvent: Ie,
@@ -4065,13 +4065,13 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4065
4065
  ), et = o.useCallback(
4066
4066
  (y) => {
4067
4067
  if (e.onFilterChange && M.current) {
4068
- const K = {
4068
+ const L = {
4069
4069
  filter: { field: e.textField, operator: "contains", value: y.target.value },
4070
4070
  syntheticEvent: y.syntheticEvent,
4071
4071
  nativeEvent: y.nativeEvent,
4072
4072
  target: M.current
4073
4073
  };
4074
- e.onFilterChange.call(void 0, K), e.filter === void 0 && Q(y.target.value);
4074
+ e.onFilterChange.call(void 0, L), e.filter === void 0 && X(y.target.value);
4075
4075
  }
4076
4076
  },
4077
4077
  [e.onFilterChange, e.filter, e.textField]
@@ -4091,31 +4091,31 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4091
4091
  const y = e.filterable ? /* @__PURE__ */ o.createElement(
4092
4092
  Ve,
4093
4093
  {
4094
- value: e.filter === void 0 ? L : e.filter,
4095
- ref: j,
4094
+ value: e.filter === void 0 ? z : e.filter,
4095
+ ref: Y,
4096
4096
  onChange: et,
4097
4097
  onKeyDown: Qe,
4098
4098
  size: de,
4099
4099
  rounded: I,
4100
- fillMode: F
4100
+ fillMode: T
4101
4101
  }
4102
4102
  ) : null, x = {
4103
4103
  adaptiveTitle: e.adaptiveTitle,
4104
- expand: z,
4105
- onClose: (K) => e.onCancel ? mt(K) : Xe(K),
4104
+ expand: H,
4105
+ onClose: (L) => e.onCancel ? mt(L) : Xe(L),
4106
4106
  windowWidth: P,
4107
4107
  mobileFilter: y,
4108
4108
  footer: {
4109
4109
  cancelText: ye.toLanguageString(at, ce[at]),
4110
- onCancel: (K) => e.onCancel ? mt(K) : Xe(K),
4110
+ onCancel: (L) => e.onCancel ? mt(L) : Xe(L),
4111
4111
  applyText: ye.toLanguageString(ot, ce[ot]),
4112
- onApply: (K) => $(K)
4112
+ onApply: (L) => $(L)
4113
4113
  }
4114
4114
  };
4115
4115
  return /* @__PURE__ */ o.createElement(ts, { ...x }, /* @__PURE__ */ o.createElement(rt, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: "k-list k-list-lg" }, a.length > 0 ? /* @__PURE__ */ o.createElement(
4116
4116
  kt,
4117
4117
  {
4118
- ref: W,
4118
+ ref: K,
4119
4119
  tabIndex: E,
4120
4120
  data: a,
4121
4121
  focusIdField: p,
@@ -4131,41 +4131,41 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4131
4131
  checkboxes: !0,
4132
4132
  size: de,
4133
4133
  item: e.item,
4134
- dir: X
4134
+ dir: Z
4135
4135
  }
4136
- ) : /* @__PURE__ */ o.createElement(me, null, ye.toLanguageString(ve, ce[ve]))))));
4136
+ ) : /* @__PURE__ */ o.createElement(ge, null, ye.toLanguageString(me, ce[me]))))));
4137
4137
  }, vt = o.useCallback(
4138
4138
  (y) => {
4139
4139
  for (let x of y)
4140
4140
  q(x.target.clientWidth);
4141
4141
  },
4142
4142
  []
4143
- ), me = e.listNoData || ks, ye = ys(), De = !C || re.valid, { size: de, rounded: I, fillMode: F } = e, G = le && z ? be : Z.current, pe = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
4143
+ ), ge = e.listNoData || ks, ye = ys(), De = !C || re.valid, { size: de, rounded: I, fillMode: T } = e, G = le && H ? be : Q.current, pe = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
4144
4144
  "span",
4145
4145
  {
4146
4146
  className: B("k-multiselecttree k-input", e.className, {
4147
4147
  [`k-input-${fs[de] || de}`]: de,
4148
4148
  [`k-rounded-${Fi[I] || I}`]: I,
4149
- [`k-input-${F}`]: F,
4149
+ [`k-input-${T}`]: T,
4150
4150
  "k-focus": A && !h,
4151
4151
  "k-invalid": !De,
4152
4152
  "k-disabled": h,
4153
4153
  "k-loading": e.loading,
4154
- "k-required": T
4154
+ "k-required": F
4155
4155
  }),
4156
4156
  tabIndex: E,
4157
4157
  accessKey: e.accessKey,
4158
4158
  id: n,
4159
4159
  style: v ? { ...d, width: void 0 } : d,
4160
- dir: X,
4161
- ref: H,
4160
+ dir: Z,
4161
+ ref: W,
4162
4162
  onKeyDown: h ? void 0 : gt,
4163
4163
  onMouseDown: ut,
4164
4164
  onFocus: Rt,
4165
4165
  onBlur: ht,
4166
4166
  role: "combobox",
4167
4167
  "aria-haspopup": "tree",
4168
- "aria-expanded": z,
4168
+ "aria-expanded": H,
4169
4169
  "aria-disabled": h,
4170
4170
  "aria-label": v,
4171
4171
  "aria-labelledby": e.ariaLabelledBy,
@@ -4188,7 +4188,7 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4188
4188
  onTagDelete: Vt,
4189
4189
  data: G,
4190
4190
  guid: n,
4191
- focused: ae ? Z.current.find((y) => St(y, ae, p)) : void 0,
4191
+ focused: ae ? Q.current.find((y) => St(y, ae, p)) : void 0,
4192
4192
  size: de
4193
4193
  }
4194
4194
  )
@@ -4200,7 +4200,7 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4200
4200
  "select",
4201
4201
  {
4202
4202
  name: b,
4203
- ref: Y,
4203
+ ref: ee,
4204
4204
  tabIndex: -1,
4205
4205
  "aria-hidden": !0,
4206
4206
  title: v,
@@ -4220,33 +4220,33 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4220
4220
  c.popupClass,
4221
4221
  "k-multiselecttree-popup"
4222
4222
  ),
4223
- className: B(c.className, { "k-rtl": X === "rtl" }),
4223
+ className: B(c.className, { "k-rtl": Z === "rtl" }),
4224
4224
  style: pt,
4225
4225
  animate: c.animate,
4226
- anchor: H.current,
4227
- show: z,
4226
+ anchor: W.current,
4227
+ show: H,
4228
4228
  onOpen: Pt,
4229
4229
  onClose: _t,
4230
4230
  appendTo: c.appendTo,
4231
- ref: ee
4231
+ ref: J
4232
4232
  },
4233
4233
  e.filterable && /* @__PURE__ */ o.createElement(
4234
4234
  Ve,
4235
4235
  {
4236
- value: e.filter === void 0 ? L : e.filter,
4237
- ref: J,
4236
+ value: e.filter === void 0 ? z : e.filter,
4237
+ ref: j,
4238
4238
  onChange: et,
4239
4239
  onKeyDown: Qe,
4240
4240
  tabIndex: E,
4241
4241
  size: de,
4242
4242
  rounded: I,
4243
- fillMode: F
4243
+ fillMode: T
4244
4244
  }
4245
4245
  ),
4246
4246
  a.length > 0 ? /* @__PURE__ */ o.createElement(
4247
4247
  kt,
4248
4248
  {
4249
- ref: W,
4249
+ ref: K,
4250
4250
  tabIndex: E,
4251
4251
  data: a,
4252
4252
  focusIdField: p,
@@ -4262,9 +4262,9 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4262
4262
  checkboxes: !0,
4263
4263
  size: de,
4264
4264
  item: e.item,
4265
- dir: X
4265
+ dir: Z
4266
4266
  }
4267
- ) : /* @__PURE__ */ o.createElement(me, null, ye.toLanguageString(ve, ce[ve]))
4267
+ ) : /* @__PURE__ */ o.createElement(ge, null, ye.toLanguageString(me, ce[me]))
4268
4268
  )
4269
4269
  ), le && tt());
4270
4270
  return v ? /* @__PURE__ */ o.createElement(
@@ -4278,7 +4278,7 @@ const Di = "Please select a value from the list!", { sizeMap: fs, roundedMap: Fi
4278
4278
  editorId: n,
4279
4279
  style: { width: d ? d.width : void 0 },
4280
4280
  children: pe,
4281
- dir: X
4281
+ dir: Z
4282
4282
  }
4283
4283
  ) : pe;
4284
4284
  }), Oi = {
@@ -4361,25 +4361,25 @@ const st = (i, t) => {
4361
4361
  const N = st(e, c);
4362
4362
  return n.filter((_) => !N[c(_)]);
4363
4363
  }
4364
- const r = e[0], h = c(r), u = Ct(a), f = [...i], m = [];
4364
+ const r = e[0], h = c(r), f = Ct(a), u = [...i], m = [];
4365
4365
  let v = [], b;
4366
- for (; f.length; ) {
4367
- const N = f.pop();
4366
+ for (; u.length; ) {
4367
+ const N = u.pop();
4368
4368
  if (h === c(N)) {
4369
4369
  v = m.map((_) => _.item), b = N;
4370
4370
  break;
4371
4371
  } else {
4372
- m && m.length && m[m.length - 1].parentPosition === f.length && m.pop();
4373
- const _ = u(N);
4374
- _ && _.length && (m.push({ item: N, parentPosition: f.length }), f.push(..._));
4372
+ m && m.length && m[m.length - 1].parentPosition === u.length && m.pop();
4373
+ const _ = f(N);
4374
+ _ && _.length && (m.push({ item: N, parentPosition: u.length }), u.push(..._));
4375
4375
  }
4376
4376
  }
4377
- const w = [...u(b) || []];
4377
+ const w = [...f(b) || []];
4378
4378
  let k = [];
4379
4379
  for (; w.length; ) {
4380
4380
  const N = w.pop();
4381
4381
  k.push(N);
4382
- const _ = u(N);
4382
+ const _ = f(N);
4383
4383
  _ && _.length && w.push(..._);
4384
4384
  }
4385
4385
  const D = !d[h], O = [];
@@ -4387,16 +4387,16 @@ const st = (i, t) => {
4387
4387
  O.push(...n), O.push(b), O.push(...k.filter((S) => !d[c(S)]));
4388
4388
  const N = v.filter((S) => !d[c(S)]), _ = st(O, c);
4389
4389
  for (let S = N.length - 1; S > -1; S--) {
4390
- const T = N[S], C = u(T);
4390
+ const F = N[S], C = f(F);
4391
4391
  if (C.filter((M) => _[c(M)]).length < C.length)
4392
4392
  break;
4393
- O.push(T), _[c(T)] = !0;
4393
+ O.push(F), _[c(F)] = !0;
4394
4394
  }
4395
4395
  } else {
4396
4396
  const N = c(b), _ = st(k, c), S = st(v, c);
4397
4397
  O.push(
4398
- ...n.filter((T) => {
4399
- const C = c(T);
4398
+ ...n.filter((F) => {
4399
+ const C = c(F);
4400
4400
  return !_[C] && N !== C && !S[C];
4401
4401
  })
4402
4402
  );
@@ -4434,6 +4434,6 @@ export {
4434
4434
  V as getItemValue,
4435
4435
  qi as getMultiSelectTreeValue,
4436
4436
  st as getValueMap,
4437
- ve as nodata,
4437
+ me as nodata,
4438
4438
  Hs as scrollToItem
4439
4439
  };