@progress/kendo-react-dropdowns 7.1.0-develop.7 → 7.1.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
@@ -5,7 +5,7 @@
5
5
  "use client";
6
6
  import * as o from "react";
7
7
  import l from "prop-types";
8
- import { IconWrap as ke, classNames as V, Keys as f, svgIconPropType as gs, createPropsContext as Be, withIdHOC as St, withPropsContext as wt, validatePackage as We, canUseDOM as Fe, getTabIndex as $t, kendoThemeMaps as qe, getActiveElement as ws, usePropsContext as Gt, getScrollbarWidth as Es, getter as It, setScrollbarWidth as Ds, useId as fs, useRtl as ms, noop as De, mapTree as Ts, extendDataItem as Fs } from "@progress/kendo-react-common";
8
+ import { IconWrap as ke, classNames as B, Keys as f, svgIconPropType as gs, createPropsContext as Be, withIdHOC as St, withPropsContext as wt, validatePackage as We, canUseDOM as Fe, getTabIndex as $t, kendoThemeMaps as qe, getActiveElement as ws, usePropsContext as Gt, getScrollbarWidth as Es, getter as It, setScrollbarWidth as Ds, useId as fs, useRtl as ms, noop as De, mapTree as Ts, extendDataItem as Fs } from "@progress/kendo-react-common";
9
9
  import { FloatingLabel as $e } from "@progress/kendo-react-labels";
10
10
  import { searchIcon as Ms, caretAltDownIcon as Ut, xIcon as ot, plusIcon as Ns } from "@progress/kendo-svg-icons";
11
11
  import { Popup as jt, PopupPropsContext as Os } from "@progress/kendo-react-popup";
@@ -102,7 +102,7 @@ const G = (i) => i != null, Bs = (i, t) => {
102
102
  if (t) {
103
103
  t = t.toLowerCase();
104
104
  for (let n = 0; n < i.length; n++) {
105
- const a = (B(i[n], e) || "") + "";
105
+ const a = (V(i[n], e) || "") + "";
106
106
  if (a && a.toLowerCase().startsWith(t)) {
107
107
  s = n;
108
108
  break;
@@ -112,8 +112,8 @@ const G = (i) => i != null, Bs = (i, t) => {
112
112
  return s;
113
113
  }, Kt = (i, t, e, s = !1) => {
114
114
  const n = (a) => s ? a : a.toLowerCase();
115
- return i.findIndex((a) => e ? n(B(a, e)) === n(t) : n(t) === n(a.toString()));
116
- }, B = (i, t) => {
115
+ return i.findIndex((a) => e ? n(V(a, e)) === n(t) : n(t) === n(a.toString()));
116
+ }, V = (i, t) => {
117
117
  if (t && G(i)) {
118
118
  const e = t.split(".");
119
119
  let s = i;
@@ -122,6 +122,11 @@ const G = (i) => i != null, Bs = (i, t) => {
122
122
  }), s;
123
123
  }
124
124
  return i;
125
+ }, zi = (i, t, e) => {
126
+ if (!i)
127
+ return;
128
+ const s = i.findIndex((n) => V(n, t) === e);
129
+ return i[s];
125
130
  }, zs = (i = [], t = [], e) => {
126
131
  if (i === t)
127
132
  return !0;
@@ -136,7 +141,7 @@ const G = (i) => i != null, Bs = (i, t) => {
136
141
  const n = i.findIndex((a) => R(a, s, e));
137
142
  n !== -1 && i.splice(n, 1);
138
143
  });
139
- }, R = (i, t, e) => i === t || G(i) === G(t) && B(i, e) === B(t, e), as = (i, t, e) => {
144
+ }, R = (i, t, e) => i === t || G(i) === G(t) && V(i, e) === V(t, e), as = (i, t, e) => {
140
145
  if (t) {
141
146
  const s = Kt(i, t, e, !0);
142
147
  return s !== -1 ? i[s] : i[Ve(i, t, e)];
@@ -147,7 +152,7 @@ const G = (i) => i != null, Bs = (i, t) => {
147
152
  if (i) {
148
153
  const n = t[Ve(t, i, e)];
149
154
  if (n) {
150
- const a = B(n, e);
155
+ const a = V(n, e);
151
156
  i.toLowerCase() !== a.toLowerCase() && (s = a.substring(i.length));
152
157
  }
153
158
  }
@@ -168,11 +173,11 @@ class qs extends o.Component {
168
173
  onClick: this.props.onClick,
169
174
  onMouseDown: Ws,
170
175
  style: { position: "unset" },
171
- className: V("k-list-optionlabel", {
176
+ className: B("k-list-optionlabel", {
172
177
  "k-selected": t
173
178
  })
174
179
  },
175
- B(e, s) || ""
180
+ V(e, s) || ""
176
181
  );
177
182
  }
178
183
  }
@@ -196,7 +201,7 @@ class $s extends o.Component {
196
201
  role: "option",
197
202
  "aria-selected": t,
198
203
  "aria-disabled": p ? !0 : void 0,
199
- className: V("k-list-item", {
204
+ className: B("k-list-item", {
200
205
  "k-selected": t,
201
206
  "k-focus": this.props.focused,
202
207
  "k-first": !!e && a === "classic",
@@ -205,7 +210,7 @@ class $s extends o.Component {
205
210
  onClick: this.handleClick,
206
211
  style: { position: n ? "relative" : "unset" }
207
212
  },
208
- /* @__PURE__ */ o.createElement("span", { className: "k-list-item-text" }, B(s, this.props.textField).toString()),
213
+ /* @__PURE__ */ o.createElement("span", { className: "k-list-item-text" }, V(s, this.props.textField).toString()),
209
214
  e !== void 0 && a === "classic" ? /* @__PURE__ */ o.createElement("div", { className: "k-list-item-group-label" }, e) : null
210
215
  );
211
216
  return c !== void 0 ? c.call(void 0, d, this.props) : d;
@@ -262,7 +267,7 @@ class Ge extends o.Component {
262
267
  return g.map((S, D) => {
263
268
  const N = c + D, O = c + D + w, _ = S.disabled ? !1 : h && (!b && R(S, u, e) || b && u.findIndex((E) => R(E, S, e)) !== -1);
264
269
  let C, F, x;
265
- return D > 0 && s !== void 0 && (F = B(S, s), x = B(g[D - 1], s), F && x && F !== x && (C = F)), C !== void 0 && n === "modern" && (w += 1), [
270
+ return D > 0 && s !== void 0 && (F = V(S, s), x = V(g[D - 1], s), F && x && F !== x && (C = F)), C !== void 0 && n === "modern" && (w += 1), [
266
271
  C !== void 0 && n === "modern" && /* @__PURE__ */ o.createElement(
267
272
  Gs,
268
273
  {
@@ -605,7 +610,7 @@ const Ue = {
605
610
  name: "@progress/kendo-react-dropdowns",
606
611
  productName: "KendoReact",
607
612
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
608
- publishDate: 1705648009,
613
+ publishDate: 1705940158,
609
614
  version: "",
610
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"
611
616
  }, xt = 500, Se = 768, Js = "Please select a value from the list!", { sizeMap: Bt, roundedMap: Qs } = qe, At = class extends o.Component {
@@ -640,7 +645,7 @@ const Ue = {
640
645
  dir: s !== void 0 ? s : r.dirCalculated,
641
646
  width: g,
642
647
  popupSettings: {
643
- popupClass: V(
648
+ popupClass: B(
644
649
  h.popupClass,
645
650
  "k-list-container",
646
651
  "k-dropdownlist-popup"
@@ -656,10 +661,10 @@ const Ue = {
656
661
  itemsCount: [n.length]
657
662
  };
658
663
  let { group: v } = this.state;
659
- return v === void 0 && p !== void 0 && (v = B(n[0], p)), /* @__PURE__ */ o.createElement(Et, { ...m }, this.renderListFilter(), t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), /* @__PURE__ */ o.createElement(
664
+ return v === void 0 && p !== void 0 && (v = V(n[0], p)), /* @__PURE__ */ o.createElement(Et, { ...m }, this.renderListFilter(), t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), /* @__PURE__ */ o.createElement(
660
665
  "div",
661
666
  {
662
- className: V(
667
+ className: B(
663
668
  "k-list",
664
669
  {
665
670
  [`k-list-${Bt[a] || a}`]: a,
@@ -762,7 +767,7 @@ const Ue = {
762
767
  let u, g, m, v = 0;
763
768
  const { textField: b, ignoreCase: w } = this.props;
764
769
  for (; v < d; v++)
765
- if (u = B(n[v].item, b), g = c && os(u, p, w), m = os(u, a, w), g || m) {
770
+ if (u = V(n[v].item, b), g = c && os(u, p, w), m = os(u, a, w), g || m) {
766
771
  v = n[v].itemIndex;
767
772
  break;
768
773
  }
@@ -995,7 +1000,7 @@ const Ue = {
995
1000
  * @hidden
996
1001
  */
997
1002
  render() {
998
- const i = He(this).toLanguageString(Ht, le[Ht]), { 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, g = this.value, m = B(g, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, S = h <= Se && r;
1003
+ const i = He(this).toLanguageString(Ht, le[Ht]), { 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, g = this.value, m = V(g, this.props.textField), v = !this.validityStyles || this.validity.valid, b = this.base, w = b.vs, S = h <= Se && r;
999
1004
  w.enabled = a !== void 0, a !== void 0 && (b.vs.skip = a.skip, b.vs.total = a.total, b.vs.pageSize = a.pageSize);
1000
1005
  const {
1001
1006
  dataItemKey: D,
@@ -1009,7 +1014,7 @@ const Ue = {
1009
1014
  "span",
1010
1015
  {
1011
1016
  ref: this.componentRef,
1012
- className: V(
1017
+ className: B(
1013
1018
  "k-dropdownlist k-picker",
1014
1019
  e,
1015
1020
  {
@@ -1112,7 +1117,7 @@ const Ue = {
1112
1117
  className: i <= xt ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
1113
1118
  };
1114
1119
  let { group: u } = this.state;
1115
- return u === void 0 && a !== void 0 && (u = B(d[0], a)), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(Yt, { ...h }, /* @__PURE__ */ o.createElement(Jt, { 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(
1120
+ return u === void 0 && a !== void 0 && (u = V(d[0], a)), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(Yt, { ...h }, /* @__PURE__ */ o.createElement(Jt, { 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(
1116
1121
  Te,
1117
1122
  {
1118
1123
  tabIndex: 0,
@@ -1127,7 +1132,7 @@ const Ue = {
1127
1132
  ))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderListFilter())), /* @__PURE__ */ o.createElement(at, { className: "!k-overflow-hidden" }, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), /* @__PURE__ */ o.createElement(
1128
1133
  "div",
1129
1134
  {
1130
- className: V(
1135
+ className: B(
1131
1136
  "k-list",
1132
1137
  {
1133
1138
  [`k-list-${Bt[s] || s}`]: s,
@@ -1307,7 +1312,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1307
1312
  }
1308
1313
  this.applyState(d);
1309
1314
  }, this.renderMobileListFilter = () => {
1310
- const t = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, e = B(this.value, this.props.textField), s = G(t) ? t : e;
1315
+ const t = this.props.adaptiveFilter !== void 0 ? this.props.adaptiveFilter : this.state.text, e = V(this.value, this.props.textField), s = G(t) ? t : e;
1311
1316
  return /* @__PURE__ */ o.createElement(
1312
1317
  Re,
1313
1318
  {
@@ -1410,7 +1415,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1410
1415
  if (this.props.suggest) {
1411
1416
  const p = n.selectionEnd === a.length;
1412
1417
  let c = this.props.filter !== void 0 ? this.props.filter : this.state.text;
1413
- G(c) || (c = B(this.value, this.props.textField) || "");
1418
+ G(c) || (c = V(this.value, this.props.textField) || "");
1414
1419
  const d = c && c === a, r = c && c.length > a.length;
1415
1420
  d || r || !p ? this._suggested = "" : this.suggestValue(a);
1416
1421
  }
@@ -1541,12 +1546,12 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1541
1546
  fillMode: b,
1542
1547
  opened: w = this.state.opened,
1543
1548
  placeholder: S
1544
- } = this.props, { windowWidth: D = 0 } = this.state, N = !this.validityStyles || this.validity.valid, O = this.props.filter !== void 0 ? this.props.filter : this.state.text, _ = B(this.value, p), C = G(O) ? O : _, F = n && (!!C || G(this.value)), E = this.base.vs, M = this.props.id || this._inputId, K = D <= Se && c;
1549
+ } = this.props, { windowWidth: D = 0 } = this.state, N = !this.validityStyles || this.validity.valid, O = this.props.filter !== void 0 ? this.props.filter : this.state.text, _ = V(this.value, p), C = G(O) ? O : _, F = n && (!!C || G(this.value)), E = this.base.vs, M = this.props.id || this._inputId, K = D <= Se && c;
1545
1550
  E.enabled = g !== void 0, g !== void 0 && (E.skip = g.skip, E.total = g.total, E.pageSize = g.pageSize);
1546
1551
  const U = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1547
1552
  "span",
1548
1553
  {
1549
- className: V(
1554
+ className: B(
1550
1555
  "k-combobox k-input",
1551
1556
  {
1552
1557
  [`k-input-${vt[m] || m}`]: m,
@@ -1622,7 +1627,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1622
1627
  return i && t && t[e] && t[e].disabled;
1623
1628
  }
1624
1629
  applyValueOnEnter(i, t) {
1625
- const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, c = B(this.value, s) === i ? this.index : Kt(e, i, s), d = c !== -1;
1630
+ const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, c = V(this.value, s) === i ? this.index : Kt(e, i, s), d = c !== -1;
1626
1631
  let r;
1627
1632
  if (this._suggested = "", d)
1628
1633
  r = e[c];
@@ -1633,7 +1638,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1633
1638
  this.triggerOnChange(r, t), a && this.base.togglePopup(t), this.props.filter === void 0 && this.state.text !== void 0 && (t.data.text = void 0), this.applyState(t);
1634
1639
  }
1635
1640
  applyValueOnRejectSuggestions(i, t) {
1636
- const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = B(this.value, s), c = this.state.windowWidth && this.state.windowWidth <= Se;
1641
+ const { data: e = [], textField: s, allowCustom: n } = this.props, a = this.props.opened !== void 0 ? this.props.opened : this.state.opened, p = V(this.value, s), c = this.state.windowWidth && this.state.windowWidth <= Se;
1637
1642
  if (this._suggested = "", i === p || i === "" && !G(p))
1638
1643
  return a && !c && this.base.togglePopup(t), this.applyState(t);
1639
1644
  const d = Kt(e, i, s, !0), r = d !== -1;
@@ -1647,7 +1652,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1647
1652
  renderAdaptiveListContainer() {
1648
1653
  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;
1649
1654
  let { group: g } = this.state;
1650
- g === void 0 && a !== void 0 && (g = B(n[0], a));
1655
+ g === void 0 && a !== void 0 && (g = V(n[0], a));
1651
1656
  const m = {
1652
1657
  navigatable: !1,
1653
1658
  navigatableElements: [],
@@ -1669,7 +1674,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1669
1674
  icon: "x",
1670
1675
  svgIcon: ot
1671
1676
  }
1672
- ))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderMobileListFilter())), /* @__PURE__ */ o.createElement(at, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: V(
1677
+ ))), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, this.renderMobileListFilter())), /* @__PURE__ */ o.createElement(at, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-list-container" }, /* @__PURE__ */ o.createElement("div", { className: B(
1673
1678
  {
1674
1679
  ["k-list"]: !c,
1675
1680
  ["k-list-lg"]: !0,
@@ -1682,7 +1687,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1682
1687
  renderListContainer() {
1683
1688
  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, g = i.getPopupSettings(), m = g.width !== void 0 ? g.width : i.popupWidth;
1684
1689
  let { group: v } = this.state;
1685
- return v === void 0 && a !== void 0 && (v = B(n[0], a)), /* @__PURE__ */ o.createElement(
1690
+ return v === void 0 && a !== void 0 && (v = V(n[0], a)), /* @__PURE__ */ o.createElement(
1686
1691
  Et,
1687
1692
  {
1688
1693
  width: m,
@@ -1690,7 +1695,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1690
1695
  animate: g.animate,
1691
1696
  anchor: this.element,
1692
1697
  show: u,
1693
- popupClass: V(
1698
+ popupClass: B(
1694
1699
  g.popupClass,
1695
1700
  "k-list-container",
1696
1701
  "k-combobox-popup"
@@ -1701,7 +1706,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1701
1706
  dir: t !== void 0 ? t : this.base.dirCalculated,
1702
1707
  itemsCount: [n.length]
1703
1708
  },
1704
- /* @__PURE__ */ o.createElement("div", { className: V(
1709
+ /* @__PURE__ */ o.createElement("div", { className: B(
1705
1710
  {
1706
1711
  ["k-list"]: !d,
1707
1712
  [`k-list-${vt[c] || c}`]: !d && c,
@@ -1709,7 +1714,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1709
1714
  ["k-data-table"]: d,
1710
1715
  [`k-table-${vt[c] || c}`]: d && c
1711
1716
  }
1712
- ) }, e && /* @__PURE__ */ o.createElement("div", { className: "k-table-header" }, e), !d && v && n.length !== 0 && /* @__PURE__ */ o.createElement(Ae, { group: v, groupMode: p, render: h }), this.renderList(), s && /* @__PURE__ */ o.createElement("div", { className: V(
1717
+ ) }, e && /* @__PURE__ */ o.createElement("div", { className: "k-table-header" }, e), !d && v && n.length !== 0 && /* @__PURE__ */ o.createElement(Ae, { group: v, groupMode: p, render: h }), this.renderList(), s && /* @__PURE__ */ o.createElement("div", { className: B(
1713
1718
  {
1714
1719
  ["k-list-footer"]: !this.props.footerClassName
1715
1720
  },
@@ -1726,7 +1731,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1726
1731
  groupHeaderItemRender: a,
1727
1732
  data: p = [],
1728
1733
  virtual: c = { skip: 0, total: void 0 }
1729
- } = this.props, d = i.getPopupSettings(), r = i.vs, h = c.skip, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = `translateY(${r.translate}px)`, m = u ? this.getFocusedIndex() : void 0, v = this.props.filter !== void 0 ? this.props.filter : this.state.text, b = B(this.value, t), w = G(v) && v !== b ? null : this.value, S = this.props.list || Ge;
1734
+ } = this.props, d = i.getPopupSettings(), r = i.vs, h = c.skip, u = this.props.opened !== void 0 ? this.props.opened : this.state.opened, g = `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 = G(v) && v !== b ? null : this.value, S = this.props.list || Ge;
1730
1735
  return /* @__PURE__ */ o.createElement(
1731
1736
  S,
1732
1737
  {
@@ -1746,7 +1751,7 @@ const ei = "Please enter a valid value!", { sizeMap: vt, roundedMap: ti } = qe,
1746
1751
  r.list = this.base.list = D, this.itemHeight = 0;
1747
1752
  },
1748
1753
  wrapperStyle: this.state.windowWidth && this.state.windowWidth > Se ? { maxHeight: d.height } : {},
1749
- wrapperCssClass: V(
1754
+ wrapperCssClass: B(
1750
1755
  "k-list-content",
1751
1756
  {
1752
1757
  ["k-list-scroller"]: !c
@@ -1876,7 +1881,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
1876
1881
  super(i), this.state = {}, this.base = new ie(this), this._element = null, this._suggested = "", this._input = null, this._isScrolling = !1, this.itemHeight = 0, this.focus = () => {
1877
1882
  this._input && this._input.focus();
1878
1883
  }, this.handleItemSelect = (t, e) => {
1879
- const { data: s = [] } = this.props, n = B(s[t], this.props.textField);
1884
+ const { data: s = [] } = this.props, n = V(s[t], this.props.textField);
1880
1885
  this.triggerOnChange(n, e);
1881
1886
  }, this.itemFocus = (t, e) => {
1882
1887
  const { data: s = [], textField: n } = this.props, a = s[t];
@@ -2070,7 +2075,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2070
2075
  const b = /* @__PURE__ */ o.createElement(
2071
2076
  "span",
2072
2077
  {
2073
- className: V(
2078
+ className: B(
2074
2079
  "k-autocomplete k-input",
2075
2080
  s,
2076
2081
  {
@@ -2126,7 +2131,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2126
2131
  applyInputValue(i, t, e) {
2127
2132
  const s = this.props.opened !== void 0 ? this.props.opened : this.state.opened, { data: n = [], textField: a } = this.props, p = this.focusedIndex(), c = n[p];
2128
2133
  if (this._suggested = "", s && e === f.enter && c && !c.disabled) {
2129
- const d = B(n[this.focusedIndex(i)], a);
2134
+ const d = V(n[this.focusedIndex(i)], a);
2130
2135
  this.triggerOnChange(d, t);
2131
2136
  }
2132
2137
  s && this.togglePopup(t), this.applyState(t);
@@ -2174,7 +2179,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2174
2179
  groupStickyHeaderItemRender: d
2175
2180
  } = 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;
2176
2181
  let { group: g } = this.state;
2177
- return g === void 0 && p !== void 0 && (g = B(n[0], p)), /* @__PURE__ */ o.createElement(
2182
+ return g === void 0 && p !== void 0 && (g = V(n[0], p)), /* @__PURE__ */ o.createElement(
2178
2183
  Et,
2179
2184
  {
2180
2185
  width: u,
@@ -2182,7 +2187,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2182
2187
  animate: r.animate,
2183
2188
  anchor: this.element,
2184
2189
  show: h,
2185
- popupClass: V(
2190
+ popupClass: B(
2186
2191
  r.popupClass,
2187
2192
  "k-list-container",
2188
2193
  "k-autocomplete-popup"
@@ -2197,7 +2202,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2197
2202
  /* @__PURE__ */ o.createElement(
2198
2203
  "div",
2199
2204
  {
2200
- className: V(
2205
+ className: B(
2201
2206
  "k-list",
2202
2207
  {
2203
2208
  [`k-list-${ls[a] || a}`]: a
@@ -2254,7 +2259,7 @@ const ii = "Please enter a valid value!", { sizeMap: ls, roundedMap: ni } = qe,
2254
2259
  if (this._suggested = "", i) {
2255
2260
  const { data: t = [], textField: e } = this.props, s = t[Ve(t, i, e)];
2256
2261
  if (s) {
2257
- const n = B(s, e);
2262
+ const n = V(s, e);
2258
2263
  i.toLowerCase() !== n.toLowerCase() && (this._suggested = n.substring(i.length));
2259
2264
  }
2260
2265
  }
@@ -2513,7 +2518,7 @@ const rs = 500, es = (i) => {
2513
2518
  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(
2514
2519
  "div",
2515
2520
  {
2516
- className: V("k-list", {
2521
+ className: B("k-list", {
2517
2522
  [`k-list-${bt[n] || n}`]: n
2518
2523
  }),
2519
2524
  key: "customitem",
@@ -2523,7 +2528,7 @@ const rs = 500, es = (i) => {
2523
2528
  /* @__PURE__ */ o.createElement(
2524
2529
  "div",
2525
2530
  {
2526
- className: V("k-list-item k-custom-item", { "k-focus": cs(h) }),
2531
+ className: B("k-list-item k-custom-item", { "k-focus": cs(h) }),
2527
2532
  style: { fontStyle: "italic" }
2528
2533
  },
2529
2534
  r,
@@ -2531,10 +2536,10 @@ const rs = 500, es = (i) => {
2531
2536
  )
2532
2537
  );
2533
2538
  let { group: g } = this.state;
2534
- return g === void 0 && c !== void 0 && (g = B(a[0], c)), /* @__PURE__ */ o.createElement(o.Fragment, null, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), u, /* @__PURE__ */ o.createElement(
2539
+ return g === void 0 && c !== void 0 && (g = V(a[0], c)), /* @__PURE__ */ o.createElement(o.Fragment, null, t && /* @__PURE__ */ o.createElement("div", { className: "k-list-header" }, t), u, /* @__PURE__ */ o.createElement(
2535
2540
  "div",
2536
2541
  {
2537
- className: V(
2542
+ className: B(
2538
2543
  "k-list",
2539
2544
  {
2540
2545
  [`k-list-${this.mobileMode ? "lg" : bt[n] || n}`]: n,
@@ -2550,7 +2555,7 @@ const rs = 500, es = (i) => {
2550
2555
  dir: e !== void 0 ? e : t.dirCalculated,
2551
2556
  width: a,
2552
2557
  popupSettings: {
2553
- popupClass: V(
2558
+ popupClass: B(
2554
2559
  n.popupClass,
2555
2560
  "k-list-container",
2556
2561
  "k-multiselect-popup"
@@ -2719,7 +2724,7 @@ const rs = 500, es = (i) => {
2719
2724
  const { tags: i, textField: t } = this.props;
2720
2725
  let e = [];
2721
2726
  return i === void 0 ? this.value.forEach((s) => {
2722
- e.push({ text: B(s, t), data: [s] });
2727
+ e.push({ text: V(s, t), data: [s] });
2723
2728
  }) : e.push(...i), e;
2724
2729
  }
2725
2730
  /**
@@ -2822,7 +2827,7 @@ const rs = 500, es = (i) => {
2822
2827
  "div",
2823
2828
  {
2824
2829
  ref: this.componentRef,
2825
- className: V("k-multiselect k-input", t, {
2830
+ className: B("k-multiselect k-input", t, {
2826
2831
  [`k-input-${bt[d] || d}`]: d,
2827
2832
  [`k-rounded-${di[r] || r}`]: r,
2828
2833
  [`k-input-${h}`]: h,
@@ -2839,10 +2844,10 @@ const rs = 500, es = (i) => {
2839
2844
  onClick: this.handleWrapperClick,
2840
2845
  onMouseDown: As
2841
2846
  },
2842
- /* @__PURE__ */ o.createElement("div", { className: V("k-input-values") }, /* @__PURE__ */ o.createElement(
2847
+ /* @__PURE__ */ o.createElement("div", { className: B("k-input-values") }, /* @__PURE__ */ o.createElement(
2843
2848
  "div",
2844
2849
  {
2845
- className: V(
2850
+ className: B(
2846
2851
  "k-chip-list",
2847
2852
  { [`k-chip-list-${bt[d] || d}`]: d }
2848
2853
  ),
@@ -2870,7 +2875,7 @@ const rs = 500, es = (i) => {
2870
2875
  {
2871
2876
  label: e,
2872
2877
  editorId: D,
2873
- editorValue: m || B(this.value[0], a),
2878
+ editorValue: m || V(this.value[0], a),
2874
2879
  editorValid: O,
2875
2880
  editorDisabled: n,
2876
2881
  style: { width: i ? i.width : void 0 },
@@ -3060,7 +3065,7 @@ const ui = (i) => /* @__PURE__ */ o.createElement(
3060
3065
  {
3061
3066
  ...i,
3062
3067
  wrapperCssClass: "k-table-body k-table-scroller",
3063
- listClassName: V(
3068
+ listClassName: B(
3064
3069
  "k-table k-table-list",
3065
3070
  {
3066
3071
  "k-virtual-table": i.virtual !== void 0
@@ -3099,7 +3104,7 @@ const ui = (i) => /* @__PURE__ */ o.createElement(
3099
3104
  const D = o.useMemo(
3100
3105
  () => {
3101
3106
  if (e.groupField !== void 0 && e.data)
3102
- return B(e.data[0], e.groupField);
3107
+ return V(e.data[0], e.groupField);
3103
3108
  },
3104
3109
  [e.data, e.groupField]
3105
3110
  ), [N, O] = o.useState(D), [_, C] = o.useState(!0), F = o.useMemo(
@@ -3138,7 +3143,7 @@ const ui = (i) => /* @__PURE__ */ o.createElement(
3138
3143
  e.groupField !== void 0 && (Ne = It(e.groupField), Ce = Ne(Oe[A]), Me = Ne(Oe[A - 1]), Ce && Me && Ce !== Me && (me = Ce)), me && e.groupMode === "classic" && L.push(/* @__PURE__ */ o.createElement("div", { key: "group", className: "k-table-td k-table-group-td" }, /* @__PURE__ */ o.createElement("span", null, me)));
3139
3144
  const X = o.cloneElement(P, {
3140
3145
  ...P.props,
3141
- className: V("k-table-row", {
3146
+ className: B("k-table-row", {
3142
3147
  "k-table-alt-row": H.index % 2 !== 0,
3143
3148
  "k-focus": H.focused,
3144
3149
  "k-selected": H.selected,
@@ -3206,7 +3211,7 @@ const ui = (i) => /* @__PURE__ */ o.createElement(
3206
3211
  onFilterChange: Q,
3207
3212
  onPageChange: ne,
3208
3213
  onGroupScroll: oe,
3209
- className: V("k-dropdowngrid", d),
3214
+ className: B("k-dropdowngrid", d),
3210
3215
  required: e.required,
3211
3216
  adaptive: e.adaptive,
3212
3217
  adaptiveFilter: e.adaptiveFilter,
@@ -3284,7 +3289,7 @@ const Cs = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3284
3289
  valid: O,
3285
3290
  required: _,
3286
3291
  validityStyles: C
3287
- } = s, F = $t(s.tabIndex, u), x = o.useRef(null), E = o.useRef(null), M = o.useRef(null), K = o.useRef(null), U = o.useRef(null), j = o.useRef(null), Y = o.useRef(!1), [re, we] = o.useState(void 0), ne = s.value !== void 0, Q = ne ? s.value : re !== void 0 ? re : s.defaultValue, oe = G(Q), Ke = oe ? B(Q, s.textField) : "", P = ki({ validationMessage: N, valid: O, required: _ }, oe), H = o.useCallback(() => E.current && E.current.focus(), []);
3292
+ } = s, F = $t(s.tabIndex, u), x = o.useRef(null), E = o.useRef(null), M = o.useRef(null), K = o.useRef(null), U = o.useRef(null), j = o.useRef(null), Y = o.useRef(!1), [re, we] = o.useState(void 0), ne = s.value !== void 0, Q = ne ? s.value : re !== void 0 ? re : s.defaultValue, oe = G(Q), Ke = oe ? V(Q, s.textField) : "", P = ki({ validationMessage: N, valid: O, required: _ }, oe), H = o.useCallback(() => E.current && E.current.focus(), []);
3288
3293
  o.useImperativeHandle(
3289
3294
  x,
3290
3295
  () => ({
@@ -3573,7 +3578,7 @@ const Cs = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3573
3578
  ), Xe = s.listNoData || Cs, gt = s.valueHolder || Ii, Ze = bs(), ft = !C || P.valid, { size: ge, rounded: be, fillMode: Ee } = s, ae = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
3574
3579
  "span",
3575
3580
  {
3576
- className: V("k-dropdowntree k-picker", s.className, {
3581
+ className: B("k-dropdowntree k-picker", s.className, {
3577
3582
  [`k-picker-${vi[ge] || ge}`]: ge,
3578
3583
  [`k-rounded-${bi[be] || be}`]: be,
3579
3584
  [`k-picker-${Ee}`]: Ee,
@@ -3647,8 +3652,8 @@ const Cs = (i) => /* @__PURE__ */ o.createElement("div", { className: "k-nodata"
3647
3652
  !ue && /* @__PURE__ */ o.createElement(
3648
3653
  jt,
3649
3654
  {
3650
- className: V(d.className, { "k-rtl": L === "rtl" }),
3651
- popupClass: V(
3655
+ className: B(d.className, { "k-rtl": L === "rtl" }),
3656
+ popupClass: B(
3652
3657
  d.popupClass,
3653
3658
  "k-dropdowntree-popup"
3654
3659
  ),
@@ -3811,7 +3816,7 @@ const Si = "Please select a value from the list!", { sizeMap: us, roundedMap: wi
3811
3816
  width: ks(K, Mt),
3812
3817
  ...ve !== void 0 ? { direction: ve } : {}
3813
3818
  }, xe = o.useCallback(() => K.current && K.current.focus(), []);
3814
- ne.current = _ === void 0 ? (C || []).map((y) => ({ text: B(y, e.textField), data: [y] })) : [..._], o.useImperativeHandle(
3819
+ ne.current = _ === void 0 ? (C || []).map((y) => ({ text: V(y, e.textField), data: [y] })) : [..._], o.useImperativeHandle(
3815
3820
  M,
3816
3821
  () => ({
3817
3822
  props: e,
@@ -4123,7 +4128,7 @@ const Si = "Please select a value from the list!", { sizeMap: us, roundedMap: wi
4123
4128
  ), ge = e.listNoData || Cs, be = bs(), Ee = !x || ue.valid, { size: ae, rounded: I, fillMode: T } = e, $ = J && W ? Ne : ne.current, de = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
4124
4129
  "span",
4125
4130
  {
4126
- className: V("k-multiselecttree k-input", e.className, {
4131
+ className: B("k-multiselecttree k-input", e.className, {
4127
4132
  [`k-input-${us[ae] || ae}`]: ae,
4128
4133
  [`k-rounded-${wi[I] || I}`]: I,
4129
4134
  [`k-input-${T}`]: T,
@@ -4157,7 +4162,7 @@ const Si = "Please select a value from the list!", { sizeMap: us, roundedMap: wi
4157
4162
  "div",
4158
4163
  {
4159
4164
  id: "tagslist-" + n,
4160
- className: V("k-input-values k-chip-list k-selection-multiple", {
4165
+ className: B("k-input-values k-chip-list k-selection-multiple", {
4161
4166
  [`k-chip-list-${us[ae] || ae}`]: ae
4162
4167
  })
4163
4168
  },
@@ -4196,11 +4201,11 @@ const Si = "Please select a value from the list!", { sizeMap: us, roundedMap: wi
4196
4201
  !J && /* @__PURE__ */ o.createElement(
4197
4202
  jt,
4198
4203
  {
4199
- popupClass: V(
4204
+ popupClass: B(
4200
4205
  c.popupClass,
4201
4206
  "k-multiselecttree-popup"
4202
4207
  ),
4203
- className: V(c.className, { "k-rtl": ve === "rtl" }),
4208
+ className: B(c.className, { "k-rtl": ve === "rtl" }),
4204
4209
  style: dt,
4205
4210
  animate: c.animate,
4206
4211
  anchor: K.current,
@@ -4327,7 +4332,7 @@ const et = (i, t) => {
4327
4332
  return i && i.length && i.forEach((s) => {
4328
4333
  e[t(s)] = !0;
4329
4334
  }), e;
4330
- }, zi = (i, t) => {
4335
+ }, Hi = (i, t) => {
4331
4336
  const {
4332
4337
  items: e,
4333
4338
  dataItemKey: s,
@@ -4410,7 +4415,9 @@ export {
4410
4415
  Zt as SearchBar,
4411
4416
  Is as TagList,
4412
4417
  le as dropdownsMessages,
4413
- zi as getMultiSelectTreeValue,
4418
+ zi as findByFieldValue,
4419
+ V as getItemValue,
4420
+ Hi as getMultiSelectTreeValue,
4414
4421
  et as getValueMap,
4415
4422
  fe as nodata,
4416
4423
  Ls as scrollToItem
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dropdowns",
3
- "version": "7.1.0-develop.7",
3
+ "version": "7.1.0-develop.8",
4
4
  "description": "React DropDowns offer an interface for users to select different items from a list and more. KendoReact Dropdowns package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -23,14 +23,14 @@
23
23
  "sideEffects": false,
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-licensing": "^1.3.4",
26
- "@progress/kendo-react-buttons": "7.1.0-develop.7",
27
- "@progress/kendo-react-common": "7.1.0-develop.7",
28
- "@progress/kendo-react-inputs": "7.1.0-develop.7",
29
- "@progress/kendo-react-intl": "7.1.0-develop.7",
30
- "@progress/kendo-react-labels": "7.1.0-develop.7",
31
- "@progress/kendo-react-layout": "7.1.0-develop.7",
32
- "@progress/kendo-react-popup": "7.1.0-develop.7",
33
- "@progress/kendo-react-treeview": "7.1.0-develop.7",
26
+ "@progress/kendo-react-buttons": "7.1.0-develop.8",
27
+ "@progress/kendo-react-common": "7.1.0-develop.8",
28
+ "@progress/kendo-react-inputs": "7.1.0-develop.8",
29
+ "@progress/kendo-react-intl": "7.1.0-develop.8",
30
+ "@progress/kendo-react-labels": "7.1.0-develop.8",
31
+ "@progress/kendo-react-layout": "7.1.0-develop.8",
32
+ "@progress/kendo-react-popup": "7.1.0-develop.8",
33
+ "@progress/kendo-react-treeview": "7.1.0-develop.8",
34
34
  "@progress/kendo-svg-icons": "^2.1.0",
35
35
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
36
36
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"