@progress/kendo-react-buttons 7.1.1-develop.4 → 7.1.1-develop.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -3,27 +3,27 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
6
- import * as n from "react";
6
+ import * as o from "react";
7
7
  import Ie from "react";
8
8
  import s from "prop-types";
9
- import { svgIconPropType as M, validatePackage as R, classNames as f, kendoThemeMaps as P, IconWrap as A, Keys as r, dispatchEvent as I, getActiveElement as se, useDir as xe, useMouse as $e, getTabIndex as me, toIconName as ve, getter as Me, useZIndexContext as rt, useId as Re, ZIndexContext as ct, withIdHOC as Ae } from "@progress/kendo-react-common";
9
+ import { svgIconPropType as M, validatePackage as R, classNames as f, kendoThemeMaps as P, IconWrap as $, Keys as r, dispatchEvent as I, getActiveElement as T, useDir as xe, useMouse as Ae, getTabIndex as me, toIconName as Ce, getter as Me, useZIndexContext as rt, useId as Re, ZIndexContext as ct, withIdHOC as $e } from "@progress/kendo-react-common";
10
10
  import { Popup as De } from "@progress/kendo-react-popup";
11
11
  import { caretAltDownIcon as dt, xCircleIcon as ut } from "@progress/kendo-svg-icons";
12
12
  const O = {
13
13
  name: "@progress/kendo-react-buttons",
14
14
  productName: "KendoReact",
15
15
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
16
- publishDate: 1707215749,
16
+ publishDate: 1707462440,
17
17
  version: "",
18
18
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
19
19
  };
20
- function ht({ imageUrl: e, name: o, iconClass: t, svgIcon: i, imageAlt: a }) {
21
- return e ? /* @__PURE__ */ n.createElement("img", { role: "presentation", className: "k-button-icon", alt: a, src: e }) : o || i ? /* @__PURE__ */ n.createElement(A, { className: "k-button-icon", name: o, icon: i }) : t ? /* @__PURE__ */ n.createElement("span", { role: "presentation", className: f("k-button-icon", t) }) : null;
20
+ function ht({ imageUrl: e, name: n, iconClass: t, svgIcon: i, imageAlt: a }) {
21
+ return e ? /* @__PURE__ */ o.createElement("img", { role: "presentation", className: "k-button-icon", alt: a, src: e }) : n || i ? /* @__PURE__ */ o.createElement($, { className: "k-button-icon", name: n, icon: i }) : t ? /* @__PURE__ */ o.createElement("span", { role: "presentation", className: f("k-button-icon", t) }) : null;
22
22
  }
23
- const ee = class extends n.Component {
23
+ const te = class extends o.Component {
24
24
  constructor(e) {
25
- super(e), this._element = null, this.handleClick = (o) => {
26
- this.toggleIfApplicable(), this.props.onClick && this.props.onClick.call(void 0, o);
25
+ super(e), this._element = null, this.handleClick = (n) => {
26
+ this.toggleIfApplicable(), this.props.onClick && this.props.onClick.call(void 0, n);
27
27
  }, R(O), this.state = { selected: this.props.togglable === !0 && this.props.selected === !0 };
28
28
  }
29
29
  /**
@@ -42,8 +42,8 @@ const ee = class extends n.Component {
42
42
  /**
43
43
  * @hidden
44
44
  */
45
- static getDerivedStateFromProps(e, o) {
46
- return e.togglable && e.selected !== void 0 && e.selected !== o.selected ? { selected: e.selected } : null;
45
+ static getDerivedStateFromProps(e, n) {
46
+ return e.togglable && e.selected !== void 0 && e.selected !== n.selected ? { selected: e.selected } : null;
47
47
  }
48
48
  /**
49
49
  * @hidden
@@ -51,7 +51,7 @@ const ee = class extends n.Component {
51
51
  render() {
52
52
  const {
53
53
  children: e,
54
- togglable: o,
54
+ togglable: n,
55
55
  icon: t,
56
56
  iconClass: i,
57
57
  svgIcon: a,
@@ -59,33 +59,33 @@ const ee = class extends n.Component {
59
59
  imageAlt: u,
60
60
  className: c,
61
61
  onClick: g,
62
- size: v = ee.defaultProps.size,
63
- rounded: h = ee.defaultProps.rounded,
64
- fillMode: D = ee.defaultProps.fillMode,
65
- themeColor: N = ee.defaultProps.themeColor,
62
+ size: C = te.defaultProps.size,
63
+ rounded: h = te.defaultProps.rounded,
64
+ fillMode: D = te.defaultProps.fillMode,
65
+ themeColor: S = te.defaultProps.themeColor,
66
66
  ...w
67
- } = this.props, S = a !== void 0 || t !== void 0 || i !== void 0 || l !== void 0, B = e !== void 0, x = ht({
67
+ } = this.props, N = a !== void 0 || t !== void 0 || i !== void 0 || l !== void 0, B = e !== void 0, x = ht({
68
68
  name: t,
69
69
  svgIcon: a,
70
70
  iconClass: i,
71
71
  imageUrl: l,
72
72
  imageAlt: u
73
73
  });
74
- return /* @__PURE__ */ n.createElement(
74
+ return /* @__PURE__ */ o.createElement(
75
75
  "button",
76
76
  {
77
77
  ref: (E) => this._element = E,
78
- "aria-pressed": o ? this.state.selected : void 0,
78
+ "aria-pressed": n ? this.state.selected : void 0,
79
79
  ...w,
80
80
  onClick: this.handleClick,
81
81
  className: f(
82
82
  "k-button",
83
83
  {
84
- [`k-button-${P.sizeMap[v] || v}`]: v,
84
+ [`k-button-${P.sizeMap[C] || C}`]: C,
85
85
  [`k-button-${D}`]: D,
86
- [`k-button-${D}-${N}`]: !!(D && N),
86
+ [`k-button-${D}-${S}`]: !!(D && S),
87
87
  [`k-rounded-${P.roundedMap[h] || h}`]: h,
88
- "k-icon-button": !B && S,
88
+ "k-icon-button": !B && N,
89
89
  "k-disabled": this.props.disabled,
90
90
  "k-selected": this.state.selected,
91
91
  "k-rtl": this.props.dir === "rtl"
@@ -94,7 +94,7 @@ const ee = class extends n.Component {
94
94
  )
95
95
  },
96
96
  x,
97
- e && /* @__PURE__ */ n.createElement("span", { className: "k-button-text" }, e)
97
+ e && /* @__PURE__ */ o.createElement("span", { className: "k-button-text" }, e)
98
98
  );
99
99
  }
100
100
  toggleIfApplicable() {
@@ -104,7 +104,7 @@ const ee = class extends n.Component {
104
104
  }
105
105
  }
106
106
  };
107
- let ne = ee;
107
+ let ne = te;
108
108
  ne.propTypes = {
109
109
  children: s.node,
110
110
  selected: s.bool,
@@ -151,15 +151,15 @@ const pt = {
151
151
  ], ft = {
152
152
  styles: pt
153
153
  }, ue = ft.styles;
154
- class bt extends n.Component {
155
- constructor(o) {
156
- super(o), this._element = null, R(O);
154
+ class bt extends o.Component {
155
+ constructor(n) {
156
+ super(n), this._element = null, R(O);
157
157
  }
158
158
  /**
159
159
  * @hidden
160
160
  */
161
161
  render() {
162
- const o = this.mapButtons(this.props.children), t = f(
162
+ const n = this.mapButtons(this.props.children), t = f(
163
163
  [ue["button-group"]],
164
164
  {
165
165
  ["k-disabled"]: this.props.disabled,
@@ -174,7 +174,7 @@ class bt extends n.Component {
174
174
  role: "group",
175
175
  "aria-disabled": this.props.disabled
176
176
  };
177
- return /* @__PURE__ */ n.createElement(
177
+ return /* @__PURE__ */ o.createElement(
178
178
  "div",
179
179
  {
180
180
  ref: (a) => {
@@ -183,24 +183,24 @@ class bt extends n.Component {
183
183
  ...i,
184
184
  className: t
185
185
  },
186
- o
186
+ n
187
187
  );
188
188
  }
189
- mapButtons(o) {
190
- const t = n.Children.count(o), i = this.props.dir !== void 0 ? this.props.dir === "rtl" : this._element && getComputedStyle(this._element).direction === "rtl" || !1;
191
- return n.Children.map(o, (a, l) => n.isValidElement(a) ? this.renderButton(a, l, l === t - 1, i) : a);
189
+ mapButtons(n) {
190
+ const t = o.Children.count(n), i = this.props.dir !== void 0 ? this.props.dir === "rtl" : this._element && getComputedStyle(this._element).direction === "rtl" || !1;
191
+ return o.Children.map(n, (a, l) => o.isValidElement(a) ? this.renderButton(a, l, l === t - 1, i) : a);
192
192
  }
193
- renderButton(o, t, i, a) {
194
- const l = f(o.props.className, {
193
+ renderButton(n, t, i, a) {
194
+ const l = f(n.props.className, {
195
195
  [ue["group-start"]]: a ? i : t === 0,
196
196
  [ue["group-end"]]: a ? t === 0 : i
197
- }), u = { ...this.props.width ? { width: this.props.width } : {}, ...o.props.style || {} }, c = this.props.disabled || o.props.disabled, g = {
198
- ...o.props,
197
+ }), u = { ...this.props.width ? { width: this.props.width } : {}, ...n.props.style || {} }, c = this.props.disabled || n.props.disabled, g = {
198
+ ...n.props,
199
199
  ...l ? { className: l } : {},
200
200
  ...Object.keys(u).length ? { style: u } : {},
201
201
  ...c !== void 0 ? { disabled: c } : {}
202
202
  };
203
- return n.Children.count(o.props.children) > 0 ? n.cloneElement(o, g, o.props.children) : n.cloneElement(o, g);
203
+ return o.Children.count(n.props.children) > 0 ? o.cloneElement(n, g, n.props.children) : o.cloneElement(n, g);
204
204
  }
205
205
  }
206
206
  bt.propTypes = {
@@ -211,12 +211,12 @@ bt.propTypes = {
211
211
  dir: s.string
212
212
  };
213
213
  const we = (e) => {
214
- const o = n.useCallback(
214
+ const n = o.useCallback(
215
215
  (l) => {
216
216
  e.onClick(l, e.index);
217
217
  },
218
218
  [e]
219
- ), t = e.dataItem.render || e.item || (e.item === void 0 ? e.render : null), i = e.dataItem.text !== void 0 ? e.dataItem.text : e.textField ? e.dataItem[e.textField] : e.dataItem, a = /* @__PURE__ */ n.createElement(
219
+ ), t = e.dataItem.render || e.item || (e.item === void 0 ? e.render : null), i = e.dataItem.text !== void 0 ? e.dataItem.text : e.textField ? e.dataItem[e.textField] : e.dataItem, a = /* @__PURE__ */ o.createElement(
220
220
  "li",
221
221
  {
222
222
  id: e.id,
@@ -226,13 +226,13 @@ const we = (e) => {
226
226
  { "k-focus": e.focused }
227
227
  ),
228
228
  tabIndex: -1,
229
- onClick: o,
229
+ onClick: n,
230
230
  onMouseDown: e.onDown,
231
231
  onPointerDown: e.onDown,
232
232
  role: "menuitem",
233
233
  "aria-disabled": e.dataItem.disabled || void 0
234
234
  },
235
- /* @__PURE__ */ n.createElement(
235
+ /* @__PURE__ */ o.createElement(
236
236
  "span",
237
237
  {
238
238
  tabIndex: -1,
@@ -245,7 +245,7 @@ const we = (e) => {
245
245
  ),
246
246
  key: "icon"
247
247
  },
248
- t ? /* @__PURE__ */ n.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ n.createElement(n.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass || e.dataItem.svgIcon) && /* @__PURE__ */ n.createElement(A, { className: e.dataItem.iconClass, name: e.dataItem.icon, icon: e.dataItem.svgIcon }), e.dataItem.imageUrl && /* @__PURE__ */ n.createElement(
248
+ t ? /* @__PURE__ */ o.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ o.createElement(o.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass || e.dataItem.svgIcon) && /* @__PURE__ */ o.createElement($, { className: e.dataItem.iconClass, name: e.dataItem.icon, icon: e.dataItem.svgIcon }), e.dataItem.imageUrl && /* @__PURE__ */ o.createElement(
249
249
  "img",
250
250
  {
251
251
  role: "presentation",
@@ -253,14 +253,14 @@ const we = (e) => {
253
253
  src: e.dataItem.imageUrl,
254
254
  className: "k-icon"
255
255
  }
256
- ), i && /* @__PURE__ */ n.createElement("span", { className: "k-menu-link-text" }, i))
256
+ ), i && /* @__PURE__ */ o.createElement("span", { className: "k-menu-link-text" }, i))
257
257
  )
258
258
  );
259
259
  return e.item !== void 0 && /* to be removed in 5.0.0 */
260
260
  e.render !== void 0 ? e.render.call(void 0, a, e) : a;
261
261
  };
262
262
  we.displayName = "KendoReactButtonItem";
263
- class Te extends n.Component {
263
+ class Te extends o.Component {
264
264
  /**
265
265
  * @hidden
266
266
  */
@@ -276,11 +276,11 @@ Te.propTypes = {
276
276
  disabled: s.bool,
277
277
  render: s.any
278
278
  };
279
- const Le = (e, o, t, i) => {
279
+ const Le = (e, n, t, i) => {
280
280
  if (t)
281
281
  return e;
282
282
  const a = Math.min(i - 1, Math.max(0, e));
283
- switch (o) {
283
+ switch (n) {
284
284
  case r.enter:
285
285
  case r.space:
286
286
  case r.esc:
@@ -300,23 +300,23 @@ const Le = (e, o, t, i) => {
300
300
  }
301
301
  };
302
302
  function _e(e) {
303
- let o = { horizontal: "left", vertical: "bottom" };
304
- return e && (o.horizontal = "right"), o;
303
+ let n = { horizontal: "left", vertical: "bottom" };
304
+ return e && (n.horizontal = "right"), n;
305
305
  }
306
306
  function He(e) {
307
- let o = { horizontal: "left", vertical: "top" };
308
- return e && (o.horizontal = "right"), o;
307
+ let n = { horizontal: "left", vertical: "top" };
308
+ return e && (n.horizontal = "right"), n;
309
309
  }
310
- let Ee = class extends n.Component {
311
- constructor(o) {
312
- super(o), this.state = {
310
+ let Ee = class extends o.Component {
311
+ constructor(n) {
312
+ super(n), this.state = {
313
313
  focused: !1,
314
314
  focusedIndex: -1,
315
315
  opened: !1
316
316
  }, this.wrapper = null, this.mainButton = null, this.list = null, this.skipFocus = !1, this.buttonsData = [], this.onKeyDown = (t) => {
317
317
  const { focusedIndex: i } = this.state;
318
318
  if (t.altKey) {
319
- !this.opened && t.keyCode === r.down ? (this.dispatchPopupEvent(t, !0), this.setState({ focusedIndex: 0 }), this.setOpen(!0)) : this.opened && t.keyCode === r.up && (this.setState({ focusedIndex: -1 }), this.setOpen(!1));
319
+ !this.opened && t.keyCode === r.down ? (t.preventDefault(), this.setState({ focusedIndex: 0 }), this.setOpen(!0, t)) : this.opened && t.keyCode === r.up && (t.preventDefault(), this.setState({ focusedIndex: -1 }), this.setOpen(!1, t));
320
320
  return;
321
321
  }
322
322
  let a;
@@ -326,10 +326,10 @@ let Ee = class extends n.Component {
326
326
  focusedIndex: this.opened ? -1 : 0
327
327
  };
328
328
  const l = !this.opened;
329
- this.setOpen(l), l && this.dispatchPopupEvent(t, l);
329
+ this.setOpen(l, t);
330
330
  }
331
331
  } else if (this.opened && t.keyCode === r.esc) {
332
- this.setState({ focusedIndex: -1 }), this.setOpen(!1);
332
+ this.setState({ focusedIndex: -1 }), this.setOpen(!1, t);
333
333
  return;
334
334
  }
335
335
  if (this.opened) {
@@ -348,19 +348,23 @@ let Ee = class extends n.Component {
348
348
  this.skipFocus = !0, t(), window.setTimeout(() => this.skipFocus = !1, 0);
349
349
  }, this.onFocus = (t) => {
350
350
  this.skipFocus || (I(this.props.onFocus, t, this, void 0), this.setState({ focused: !0 }));
351
- }, this.setOpen = (t) => {
352
- this.openedDuringOnChange = t, this.setState({ opened: t });
351
+ }, this.setOpen = (t, i) => {
352
+ this.state.opened !== t && (this.openedDuringOnChange = t, this.setState({ opened: t }), i ? this.dispatchPopupEvent(i, t) : this.openedDuringOnChange = void 0);
353
353
  }, this.onItemClick = (t, i) => {
354
- this.opened && (this.setState({ focusedIndex: 0 }), this.setOpen(!1)), this.dispatchClickEvent(t, i);
354
+ this.opened && this.setState({ focusedIndex: 0 }), this.dispatchClickEvent(t, i), this.setOpen(!1, t);
355
355
  }, this.onBlur = (t) => {
356
356
  this.skipFocus || (this.setState({
357
357
  focused: !1,
358
358
  focusedIndex: -1
359
- }), this.setOpen(!1), I(this.props.onBlur, t, this, void 0));
360
- }, this.onPopupClose = () => {
361
- this.state.focused && this.switchFocus(() => {
362
- this.element && (this.element.removeAttribute("tabindex"), this.element.focus({ preventScroll: !0 }));
363
- }), this.dispatchPopupEvent({}, !1);
359
+ }), I(this.props.onBlur, t, this, void 0), setTimeout(() => {
360
+ this.setOpen(!1, t);
361
+ }, 0));
362
+ }, this.onPopupClose = (t) => {
363
+ var a;
364
+ const i = T(document);
365
+ this.element && this.element.removeAttribute("tabindex"), (i === this.list || (a = this.list) != null && a.contains(i)) && this.switchFocus(() => {
366
+ this.element && this.element.focus({ preventScroll: !0 });
367
+ }), this.props.popupSettings && this.props.popupSettings.onClose && this.props.popupSettings.onClose.call(void 0, t);
364
368
  }, this.listRef = (t) => {
365
369
  this.list = t, t && this.state.focused && this.switchFocus(() => {
366
370
  t.focus({ preventScroll: !0 }), this.element && (this.element.tabIndex = -1);
@@ -368,17 +372,17 @@ let Ee = class extends n.Component {
368
372
  }, this.onSplitPartClick = (t) => {
369
373
  if (this.buttonsData.length) {
370
374
  const i = !this.opened;
371
- i && this.dispatchPopupEvent(t, i), this.setState({
375
+ this.setState({
372
376
  focusedIndex: i ? 0 : -1,
373
377
  focused: !0
374
- }), this.setOpen(i);
378
+ }), this.setOpen(i, t);
375
379
  }
376
380
  }, this.onDownSplitPart = (t) => {
377
381
  t.preventDefault();
378
- const i = se(document);
382
+ const i = T(document);
379
383
  this.element && i !== this.element && i !== this.list && this.element.focus();
380
384
  }, this.onItemDown = (t) => {
381
- se(document) === this.list && t.preventDefault();
385
+ T(document) === this.list && t.preventDefault();
382
386
  }, this.dispatchPopupEvent = (t, i) => {
383
387
  I(i ? this.props.onOpen : this.props.onClose, t, this, void 0), this.openedDuringOnChange = void 0;
384
388
  }, R(O);
@@ -393,9 +397,9 @@ let Ee = class extends n.Component {
393
397
  * @hidden
394
398
  */
395
399
  render() {
396
- this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === Te).map((c) => c.props);
397
- const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
398
- return /* @__PURE__ */ n.createElement(
400
+ this.buttonsData = this.props.items || o.Children.toArray(this.props.children).filter((c) => c && c.type === Te).map((c) => c.props);
401
+ const n = this.isRtl(), t = n ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
402
+ return /* @__PURE__ */ o.createElement(
399
403
  "div",
400
404
  {
401
405
  id: i,
@@ -415,7 +419,7 @@ let Ee = class extends n.Component {
415
419
  dir: t,
416
420
  ref: (c) => this.wrapper = c
417
421
  },
418
- /* @__PURE__ */ n.createElement(
422
+ /* @__PURE__ */ o.createElement(
419
423
  ne,
420
424
  {
421
425
  ref: (c) => this.mainButton = c && c.element,
@@ -444,7 +448,7 @@ let Ee = class extends n.Component {
444
448
  },
445
449
  this.props.text
446
450
  ),
447
- /* @__PURE__ */ n.createElement(
451
+ /* @__PURE__ */ o.createElement(
448
452
  ne,
449
453
  {
450
454
  type: "button",
@@ -464,7 +468,7 @@ let Ee = class extends n.Component {
464
468
  "aria-label": "menu toggling button"
465
469
  }
466
470
  ),
467
- this.renderPopup(o)
471
+ this.renderPopup(n)
468
472
  );
469
473
  }
470
474
  /**
@@ -479,10 +483,10 @@ let Ee = class extends n.Component {
479
483
  get element() {
480
484
  return this.mainButton;
481
485
  }
482
- dispatchClickEvent(o, t) {
483
- this.isItemDisabled(t) || (t === -1 ? I(this.props.onButtonClick, o, this, void 0) : I(
486
+ dispatchClickEvent(n, t) {
487
+ this.isItemDisabled(t) || (t === -1 ? I(this.props.onButtonClick, n, this, void 0) : I(
484
488
  this.props.onItemClick,
485
- o,
489
+ n,
486
490
  this,
487
491
  {
488
492
  item: this.buttonsData[t],
@@ -490,21 +494,21 @@ let Ee = class extends n.Component {
490
494
  }
491
495
  ));
492
496
  }
493
- renderPopup(o) {
497
+ renderPopup(n) {
494
498
  const { popupSettings: t = {} } = this.props, { focusedIndex: i } = this.state;
495
- return /* @__PURE__ */ n.createElement(
499
+ return /* @__PURE__ */ o.createElement(
496
500
  De,
497
501
  {
498
502
  anchor: this.wrapper,
499
503
  show: this.opened,
500
504
  animate: t.animate,
501
505
  popupClass: f("k-menu-popup", t.popupClass),
502
- anchorAlign: t.anchorAlign || _e(o),
503
- popupAlign: t.popupAlign || He(o),
504
- style: o ? { direction: "rtl" } : void 0,
506
+ anchorAlign: t.anchorAlign || _e(n),
507
+ popupAlign: t.popupAlign || He(n),
508
+ style: n ? { direction: "rtl" } : void 0,
505
509
  onClose: this.onPopupClose
506
510
  },
507
- /* @__PURE__ */ n.createElement(
511
+ /* @__PURE__ */ o.createElement(
508
512
  "ul",
509
513
  {
510
514
  role: "menu",
@@ -522,8 +526,8 @@ let Ee = class extends n.Component {
522
526
  );
523
527
  }
524
528
  renderChildItems() {
525
- const { item: o, itemRender: t, textField: i } = this.props;
526
- return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
529
+ const { item: n, itemRender: t, textField: i } = this.props;
530
+ return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ o.createElement(
527
531
  we,
528
532
  {
529
533
  className: "k-menu-item",
@@ -533,15 +537,15 @@ let Ee = class extends n.Component {
533
537
  onClick: this.onItemClick,
534
538
  onDown: this.onItemDown,
535
539
  render: t,
536
- item: o,
540
+ item: n,
537
541
  key: l,
538
542
  index: l,
539
543
  id: `${this.guid}-${l}`
540
544
  }
541
545
  )) : null;
542
546
  }
543
- isItemDisabled(o) {
544
- return this.buttonsData[o] ? this.buttonsData[o].disabled : this.props.disabled;
547
+ isItemDisabled(n) {
548
+ return this.buttonsData[n] ? this.buttonsData[n].disabled : this.props.disabled;
545
549
  }
546
550
  isRtl() {
547
551
  return this.props.dir !== void 0 ? this.props.dir === "rtl" : !!this.wrapper && getComputedStyle(this.wrapper).direction === "rtl";
@@ -579,7 +583,7 @@ Ee.defaultProps = {
579
583
  fillMode: "solid",
580
584
  themeColor: "base"
581
585
  };
582
- class Ue extends n.Component {
586
+ class Ue extends o.Component {
583
587
  /**
584
588
  * @hidden
585
589
  */
@@ -596,30 +600,30 @@ Ue.propTypes = {
596
600
  disabled: s.bool,
597
601
  render: s.any
598
602
  };
599
- let Ne = class extends n.Component {
600
- constructor(o) {
601
- super(o), this.state = {
603
+ let Se = class extends o.Component {
604
+ constructor(n) {
605
+ super(n), this.state = {
602
606
  opened: !1,
603
607
  focused: !1,
604
608
  focusedIndex: -1
605
609
  }, this.mainButton = null, this.list = null, this.skipFocus = !1, this.buttonsData = [], this.onKeyDown = (t) => {
606
610
  const { focusedIndex: i } = this.state;
607
611
  if (t.altKey) {
608
- !this.opened && t.keyCode === r.down ? (this.setOpen(!0), this.dispatchPopupEvent(t, !0), this.setState({ focusedIndex: 0 })) : this.opened && t.keyCode === r.up && (this.setState({ focusedIndex: -1 }), this.setOpen(!1));
612
+ !this.opened && t.keyCode === r.down ? (t.preventDefault(), this.setOpen(!0, t), this.setState({ focusedIndex: 0 })) : this.opened && t.keyCode === r.up && (t.preventDefault(), this.setState({ focusedIndex: -1 }), this.setOpen(!1, t));
609
613
  return;
610
614
  }
611
615
  const a = { ...this.state };
612
616
  if (t.keyCode === r.enter || t.keyCode === r.space) {
613
- i >= 0 && this.dispatchClickEvent(t, i);
617
+ t.preventDefault(), i >= 0 && this.dispatchClickEvent(t, i);
614
618
  const l = !this.opened;
615
619
  this.setState({
616
620
  focused: !0,
617
621
  focusedIndex: l ? 0 : -1
618
- }), this.setOpen(l), l && this.dispatchPopupEvent(t, l);
622
+ }), this.setOpen(l, t);
619
623
  return;
620
624
  }
621
625
  if (this.opened && t.keyCode === r.esc) {
622
- this.setState({ focusedIndex: -1 }), this.setOpen(!1);
626
+ this.setState({ focusedIndex: -1 }), this.setOpen(!1, t);
623
627
  return;
624
628
  }
625
629
  if (this.opened) {
@@ -641,21 +645,25 @@ let Ne = class extends n.Component {
641
645
  }, this.handleButtonBlur = (t) => {
642
646
  this.opened || (this.setState({ focused: !1 }), I(this.props.onBlur, t, this, void 0));
643
647
  }, this.handleMenuBlur = (t) => {
644
- this.skipFocus || (this.setState({ focused: !1, focusedIndex: -1 }), this.setOpen(!1), I(this.props.onBlur, t, this, void 0));
645
- }, this.setOpen = (t) => {
646
- this.openedDuringOnChange = t, this.setState({ opened: t });
648
+ this.skipFocus || (this.setState({ focused: !1, focusedIndex: -1 }), I(this.props.onBlur, t, this, void 0), setTimeout(() => {
649
+ this.setOpen(!1, t);
650
+ }, 0));
651
+ }, this.setOpen = (t, i) => {
652
+ this.state.opened !== t && (this.openedDuringOnChange = t, this.setState({ opened: t }), i ? this.dispatchPopupEvent(i, t) : this.openedDuringOnChange = void 0);
647
653
  }, this.onItemClick = (t, i) => {
648
- this.setState({ focusedIndex: -1 }), this.setOpen(!1), this.dispatchClickEvent(t, i);
654
+ this.setState({ focusedIndex: -1 }), this.dispatchClickEvent(t, i), this.setOpen(!1, t);
649
655
  }, this.onItemDown = (t) => {
650
- se(document) === this.list && t.preventDefault();
656
+ T(document) === this.list && t.preventDefault();
651
657
  }, this.mouseDown = (t) => {
652
658
  t.preventDefault();
653
- const i = se(document);
659
+ const i = T(document);
654
660
  this.element && i !== this.element && i !== this.list && this.element.focus();
655
- }, this.onPopupClose = () => {
656
- this.switchFocus(() => {
657
- this.element && (this.element.removeAttribute("tabindex"), this.element.focus({ preventScroll: !0 }));
658
- }), this.dispatchPopupEvent({}, !1);
661
+ }, this.onPopupClose = (t) => {
662
+ var a;
663
+ const i = T(document);
664
+ this.element && this.element.removeAttribute("tabindex"), (i === this.list || (a = this.list) != null && a.contains(i)) && this.switchFocus(() => {
665
+ this.element && this.element.focus({ preventScroll: !0 });
666
+ }), this.props.popupSettings && this.props.popupSettings.onClose && this.props.popupSettings.onClose.call(void 0, t);
659
667
  }, this.listRef = (t) => {
660
668
  this.list = t, t && this.state.focused && this.switchFocus(() => {
661
669
  t.focus({ preventScroll: !0 }), this.element && (this.element.tabIndex = -1);
@@ -667,7 +675,7 @@ let Ne = class extends n.Component {
667
675
  this.setState({
668
676
  focused: !0,
669
677
  focusedIndex: i ? 0 : -1
670
- }), this.setOpen(i), i && this.dispatchPopupEvent(t, i);
678
+ }), this.setOpen(i, t);
671
679
  }, this.dispatchPopupEvent = (t, i) => {
672
680
  I(i ? this.props.onOpen : this.props.onClose, t, this, void 0), this.openedDuringOnChange = void 0;
673
681
  }, R(O);
@@ -682,8 +690,8 @@ let Ne = class extends n.Component {
682
690
  * @hidden
683
691
  */
684
692
  render() {
685
- const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
686
- return this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === Ue).map((c) => c.props), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
693
+ const n = this.isRtl(), t = n ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
694
+ return this.buttonsData = this.props.items || o.Children.toArray(this.props.children).filter((c) => c && c.type === Ue).map((c) => c.props), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
687
695
  ne,
688
696
  {
689
697
  id: i,
@@ -724,7 +732,7 @@ let Ne = class extends n.Component {
724
732
  title: this.props.title
725
733
  },
726
734
  this.props.text
727
- ), this.renderPopup(o));
735
+ ), this.renderPopup(n));
728
736
  }
729
737
  /**
730
738
  * @hidden
@@ -738,10 +746,10 @@ let Ne = class extends n.Component {
738
746
  get element() {
739
747
  return this.mainButton;
740
748
  }
741
- dispatchClickEvent(o, t) {
749
+ dispatchClickEvent(n, t) {
742
750
  this.isItemDisabled(t) || I(
743
751
  this.props.onItemClick,
744
- o,
752
+ n,
745
753
  this,
746
754
  {
747
755
  item: this.buttonsData[t],
@@ -749,21 +757,21 @@ let Ne = class extends n.Component {
749
757
  }
750
758
  );
751
759
  }
752
- renderPopup(o) {
760
+ renderPopup(n) {
753
761
  const { popupSettings: t = {}, id: i } = this.props, { focusedIndex: a } = this.state;
754
- return /* @__PURE__ */ n.createElement(
762
+ return /* @__PURE__ */ o.createElement(
755
763
  De,
756
764
  {
757
765
  anchor: this.mainButton,
758
766
  show: this.opened,
759
767
  animate: t.animate,
760
768
  popupClass: f("k-menu-popup", t.popupClass),
761
- anchorAlign: t.anchorAlign || _e(o),
762
- popupAlign: t.popupAlign || He(o),
763
- style: o ? { direction: "rtl" } : void 0,
769
+ anchorAlign: t.anchorAlign || _e(n),
770
+ popupAlign: t.popupAlign || He(n),
771
+ style: n ? { direction: "rtl" } : void 0,
764
772
  onClose: this.onPopupClose
765
773
  },
766
- /* @__PURE__ */ n.createElement(
774
+ /* @__PURE__ */ o.createElement(
767
775
  "ul",
768
776
  {
769
777
  role: "menu",
@@ -783,8 +791,8 @@ let Ne = class extends n.Component {
783
791
  );
784
792
  }
785
793
  renderChildItems() {
786
- const { item: o, itemRender: t, textField: i } = this.props;
787
- return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
794
+ const { item: n, itemRender: t, textField: i } = this.props;
795
+ return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ o.createElement(
788
796
  we,
789
797
  {
790
798
  className: "k-menu-item",
@@ -794,21 +802,21 @@ let Ne = class extends n.Component {
794
802
  onClick: this.onItemClick,
795
803
  onDown: this.onItemDown,
796
804
  render: t,
797
- item: o,
805
+ item: n,
798
806
  index: l,
799
807
  key: l,
800
808
  id: `${this.guid}-${l}`
801
809
  }
802
810
  )) : null;
803
811
  }
804
- isItemDisabled(o) {
805
- return this.buttonsData[o] ? this.buttonsData[o].disabled : this.props.disabled;
812
+ isItemDisabled(n) {
813
+ return this.buttonsData[n] ? this.buttonsData[n].disabled : this.props.disabled;
806
814
  }
807
815
  isRtl() {
808
816
  return this.props.dir !== void 0 ? this.props.dir === "rtl" : !!this.mainButton && getComputedStyle(this.mainButton).direction === "rtl";
809
817
  }
810
818
  };
811
- Ne.propTypes = {
819
+ Se.propTypes = {
812
820
  accessKey: s.string,
813
821
  ariaLabel: s.string,
814
822
  title: s.string,
@@ -832,26 +840,26 @@ Ne.propTypes = {
832
840
  buttonClass: s.string,
833
841
  dir: s.string
834
842
  };
835
- Ne.defaultProps = {
843
+ Se.defaultProps = {
836
844
  size: "medium",
837
845
  rounded: "medium",
838
846
  fillMode: "solid",
839
847
  themeColor: "base"
840
848
  };
841
- const Ce = class extends n.Component {
849
+ const ve = class extends o.Component {
842
850
  constructor(e) {
843
- super(e), this._element = null, this.offsetHeight = 0, this.offsetWidth = 0, this.buttons = [], this.focusedSelector = this.selectors.map((o) => o + ":focus").join(","), this.setTabIndex = (o) => {
844
- const { tabIndex: t = Ce.defaultProps.tabIndex } = this.props;
851
+ super(e), this._element = null, this.offsetHeight = 0, this.offsetWidth = 0, this.buttons = [], this.focusedSelector = this.selectors.map((n) => n + ":focus").join(","), this.setTabIndex = (n) => {
852
+ const { tabIndex: t = ve.defaultProps.tabIndex } = this.props;
845
853
  this.buttons.forEach((i, a) => {
846
- i.tabIndex = a === o ? t : -1;
854
+ i.tabIndex = a === n ? t : -1;
847
855
  });
848
- }, this.onKeyDown = (o) => {
849
- const t = o.target;
850
- if (!(o.keyCode === r.left || o.keyCode === r.right || o.keyCode === r.home || o.keyCode === r.end) || o.defaultPrevented || this.buttons.findIndex((l) => l === t) === -1)
856
+ }, this.onKeyDown = (n) => {
857
+ const t = n.target;
858
+ if (!(n.keyCode === r.left || n.keyCode === r.right || n.keyCode === r.home || n.keyCode === r.end) || n.defaultPrevented || this.buttons.findIndex((l) => l === t) === -1)
851
859
  return;
852
860
  const a = this.focusedIndex;
853
- o.keyCode === r.left ? this.focusButton(a, a === 0 ? this.buttons.length - 1 : a - 1) : this.focusButton(a, a === this.buttons.length - 1 ? 0 : a + 1), o.keyCode === r.home && this.focusButton(a, 0), o.keyCode === r.end && this.focusButton(a, this.buttons.length - 1);
854
- }, this.onWindowResize = (o) => {
861
+ n.keyCode === r.left ? this.focusButton(a, a === 0 ? this.buttons.length - 1 : a - 1) : this.focusButton(a, a === this.buttons.length - 1 ? 0 : a + 1), n.keyCode === r.home && this.focusButton(a, 0), n.keyCode === r.end && this.focusButton(a, this.buttons.length - 1);
862
+ }, this.onWindowResize = (n) => {
855
863
  const t = this.element;
856
864
  if (!t)
857
865
  return;
@@ -859,7 +867,7 @@ const Ce = class extends n.Component {
859
867
  if (this.offsetWidth !== i || this.offsetHeight !== a) {
860
868
  this.offsetWidth = i, this.offsetHeight = a;
861
869
  const l = { offsetWidth: this.offsetWidth, offsetHeight: this.offsetHeight };
862
- this.props.onResize && this.props.onResize.call(void 0, { target: this, ...l, nativeEvent: o });
870
+ this.props.onResize && this.props.onResize.call(void 0, { target: this, ...l, nativeEvent: n });
863
871
  }
864
872
  }, R(O);
865
873
  }
@@ -868,7 +876,7 @@ const Ce = class extends n.Component {
868
876
  }
869
877
  get focusedIndex() {
870
878
  const e = this.element && this.element.querySelector(this.focusedSelector);
871
- return Math.max(0, this.buttons.findIndex((o) => o === e));
879
+ return Math.max(0, this.buttons.findIndex((n) => n === e));
872
880
  }
873
881
  /**
874
882
  * Returns the HTML element of the Toolbar component.
@@ -901,7 +909,7 @@ const Ce = class extends n.Component {
901
909
  * @hidden
902
910
  */
903
911
  render() {
904
- return /* @__PURE__ */ n.createElement(
912
+ return /* @__PURE__ */ o.createElement(
905
913
  "div",
906
914
  {
907
915
  id: this.props.id,
@@ -922,8 +930,8 @@ const Ce = class extends n.Component {
922
930
  this.props.children
923
931
  );
924
932
  }
925
- focusButton(e, o) {
926
- const { tabIndex: t = Ce.defaultProps.tabIndex } = this.props, i = this.buttons[o];
933
+ focusButton(e, n) {
934
+ const { tabIndex: t = ve.defaultProps.tabIndex } = this.props, i = this.buttons[n];
927
935
  if (i) {
928
936
  i.tabIndex = t, i.focus();
929
937
  const a = this.buttons[e];
@@ -931,7 +939,7 @@ const Ce = class extends n.Component {
931
939
  }
932
940
  }
933
941
  };
934
- let We = Ce;
942
+ let We = ve;
935
943
  We.propTypes = {
936
944
  tabIndex: s.number,
937
945
  dir: s.string,
@@ -947,7 +955,7 @@ We.defaultProps = {
947
955
  tabIndex: 0,
948
956
  size: "medium"
949
957
  };
950
- class gt extends n.PureComponent {
958
+ class gt extends o.PureComponent {
951
959
  constructor() {
952
960
  super(...arguments), this._element = null;
953
961
  }
@@ -961,13 +969,13 @@ class gt extends n.PureComponent {
961
969
  * @hidden
962
970
  */
963
971
  render() {
964
- return /* @__PURE__ */ n.createElement(
972
+ return /* @__PURE__ */ o.createElement(
965
973
  "div",
966
974
  {
967
975
  id: this.props.id,
968
976
  className: f("k-toolbar-item", this.props.className),
969
977
  style: this.props.style,
970
- ref: (o) => this._element = o
978
+ ref: (n) => this._element = n
971
979
  },
972
980
  this.props.children
973
981
  );
@@ -976,25 +984,25 @@ class gt extends n.PureComponent {
976
984
  gt.propTypes = {
977
985
  className: s.string
978
986
  };
979
- class Wt extends n.PureComponent {
987
+ class Wt extends o.PureComponent {
980
988
  /**
981
989
  * @hidden
982
990
  */
983
991
  render() {
984
- return /* @__PURE__ */ n.createElement("div", { className: f("k-separator", this.props.className) });
992
+ return /* @__PURE__ */ o.createElement("div", { className: f("k-separator", this.props.className) });
985
993
  }
986
994
  }
987
- const je = n.forwardRef((e, o) => {
988
- const t = n.useRef(null), i = n.useRef(null);
989
- n.useImperativeHandle(i, () => ({ element: t.current })), n.useImperativeHandle(o, () => ({ element: t.current }));
990
- const a = n.useMemo(
995
+ const je = o.forwardRef((e, n) => {
996
+ const t = o.useRef(null), i = o.useRef(null);
997
+ o.useImperativeHandle(i, () => ({ element: t.current })), o.useImperativeHandle(n, () => ({ element: t.current }));
998
+ const a = o.useMemo(
991
999
  () => f(
992
1000
  "k-spacer",
993
1001
  e.className
994
1002
  ),
995
1003
  [e.className]
996
1004
  );
997
- return /* @__PURE__ */ n.createElement(
1005
+ return /* @__PURE__ */ o.createElement(
998
1006
  "span",
999
1007
  {
1000
1008
  ref: t,
@@ -1006,33 +1014,33 @@ je.displayName = "KendoReactToolbarSpacer";
1006
1014
  je.propTypes = {
1007
1015
  className: s.string
1008
1016
  };
1009
- const Ve = Ie.createContext([null, (e) => {
1010
- }]), Ze = Ie.createContext([null, (e) => {
1017
+ const Ze = Ie.createContext([null, (e) => {
1011
1018
  }]), qe = Ie.createContext([null, (e) => {
1019
+ }]), Ge = Ie.createContext([null, (e) => {
1012
1020
  }]);
1013
- var te = /* @__PURE__ */ ((e) => (e.next = "next", e.prev = "prev", e.current = "current", e.reset = "reset", e))(te || {});
1014
- const yt = (e, o) => {
1015
- const t = o.items.findIndex((i) => i === e);
1016
- switch (o.type) {
1021
+ var se = /* @__PURE__ */ ((e) => (e.next = "next", e.prev = "prev", e.current = "current", e.reset = "reset", e))(se || {});
1022
+ const yt = (e, n) => {
1023
+ const t = n.items.findIndex((i) => i === e);
1024
+ switch (n.type) {
1017
1025
  case "next":
1018
- return t === o.items.length - 1 ? e : o.items[t + 1];
1026
+ return t === n.items.length - 1 ? e : n.items[t + 1];
1019
1027
  case "prev":
1020
- return t === 0 ? e : o.items[t - 1];
1028
+ return t === 0 ? e : n.items[t - 1];
1021
1029
  case "current":
1022
- return o.payload;
1030
+ return n.payload;
1023
1031
  case "reset":
1024
1032
  return null;
1025
1033
  default:
1026
1034
  return e;
1027
1035
  }
1028
1036
  };
1029
- var Ge = /* @__PURE__ */ ((e) => (e.remove = "remove", e.add = "add", e.reorder = "reorder", e))(Ge || {});
1030
- const kt = (e, o) => {
1031
- switch (o.type) {
1037
+ var Xe = /* @__PURE__ */ ((e) => (e.remove = "remove", e.add = "add", e.reorder = "reorder", e))(Xe || {});
1038
+ const kt = (e, n) => {
1039
+ switch (n.type) {
1032
1040
  case "add":
1033
1041
  break;
1034
1042
  case "remove":
1035
- return e.filter((t) => t[o.valueField] !== o.payload);
1043
+ return e.filter((t) => t[n.valueField] !== n.payload);
1036
1044
  case "reorder":
1037
1045
  break;
1038
1046
  default:
@@ -1040,31 +1048,31 @@ const kt = (e, o) => {
1040
1048
  }
1041
1049
  };
1042
1050
  var pe = /* @__PURE__ */ ((e) => (e.toggle = "toggle", e.remove = "remove", e))(pe || {});
1043
- const vt = (e, o) => {
1044
- switch (o.selection) {
1051
+ const Ct = (e, n) => {
1052
+ switch (n.selection) {
1045
1053
  case "single":
1046
- switch (o.type) {
1054
+ switch (n.type) {
1047
1055
  case "toggle": {
1048
1056
  if (!Array.isArray(e) || e === null)
1049
- return o.payload === e ? null : o.payload;
1057
+ return n.payload === e ? null : n.payload;
1050
1058
  throw new Error("State cannot be an array in single selection");
1051
1059
  }
1052
1060
  case "remove":
1053
- return o.payload === e ? null : e;
1061
+ return n.payload === e ? null : e;
1054
1062
  default:
1055
1063
  return e;
1056
1064
  }
1057
1065
  case "multiple":
1058
- switch (o.type) {
1066
+ switch (n.type) {
1059
1067
  case "toggle": {
1060
1068
  if (Array.isArray(e))
1061
- return e.some((t) => t === o.payload) ? e.filter((t) => t !== o.payload) : [...e, o.payload];
1069
+ return e.some((t) => t === n.payload) ? e.filter((t) => t !== n.payload) : [...e, n.payload];
1062
1070
  if (e === null)
1063
- return [o.payload];
1071
+ return [n.payload];
1064
1072
  throw new Error("State cannot be non-array in multiple selection");
1065
1073
  }
1066
1074
  case "remove":
1067
- return Array.isArray(e) ? e.some((t) => t === o.payload) ? e.filter((t) => t !== o.payload) : [...e, o.payload] : e;
1075
+ return Array.isArray(e) ? e.some((t) => t === n.payload) ? e.filter((t) => t !== n.payload) : [...e, n.payload] : e;
1068
1076
  default:
1069
1077
  return e;
1070
1078
  }
@@ -1073,34 +1081,34 @@ const vt = (e, o) => {
1073
1081
  default:
1074
1082
  return e;
1075
1083
  }
1076
- }, j = n.forwardRef((e, o) => {
1084
+ }, Z = o.forwardRef((e, n) => {
1077
1085
  R(O);
1078
- const t = n.useRef(null), i = n.useRef(null), a = xe(i, e.dir);
1079
- n.useImperativeHandle(t, () => ({
1086
+ const t = o.useRef(null), i = o.useRef(null), a = xe(i, e.dir);
1087
+ o.useImperativeHandle(t, () => ({
1080
1088
  element: i.current,
1081
1089
  props: e
1082
- })), n.useImperativeHandle(o, () => t.current);
1083
- const [l, u] = n.useContext(Ve), [c, g] = n.useContext(Ze), [, v] = n.useContext(qe), h = n.useMemo(
1090
+ })), o.useImperativeHandle(n, () => t.current);
1091
+ const [l, u] = o.useContext(Ze), [c, g] = o.useContext(qe), [, C] = o.useContext(Ge), h = o.useMemo(
1084
1092
  () => e.selected || (Array.isArray(l) ? l.some((p) => p === e.value) : l === e.value),
1085
1093
  [e.selected, e.value, l]
1086
- ), D = n.useMemo(
1094
+ ), D = o.useMemo(
1087
1095
  () => c === e.value,
1088
1096
  [e.value, c]
1089
1097
  );
1090
- n.useEffect(
1098
+ o.useEffect(
1091
1099
  () => {
1092
1100
  D && i.current && i.current.focus();
1093
1101
  },
1094
1102
  [D]
1095
1103
  );
1096
- const N = n.useCallback(
1104
+ const S = o.useCallback(
1097
1105
  (p) => {
1098
1106
  u({ type: pe.toggle, payload: e.value, event: p });
1099
1107
  },
1100
1108
  [u, e.value]
1101
- ), w = n.useCallback(
1109
+ ), w = o.useCallback(
1102
1110
  (p) => {
1103
- e.removable && (v({ type: Ge.remove, payload: e.value, event: p }), g({ type: te.reset, payload: e.value, event: p }), u({ type: pe.remove, payload: e.value, event: p }), e.onRemove && e.onRemove.call(
1111
+ e.removable && (C({ type: Xe.remove, payload: e.value, event: p }), g({ type: se.reset, payload: e.value, event: p }), u({ type: pe.remove, payload: e.value, event: p }), e.onRemove && e.onRemove.call(
1104
1112
  void 0,
1105
1113
  {
1106
1114
  target: t.current,
@@ -1108,15 +1116,15 @@ const vt = (e, o) => {
1108
1116
  }
1109
1117
  ));
1110
1118
  },
1111
- [e.onRemove, e.value, e.removable, v, g, u]
1112
- ), S = n.useCallback(
1119
+ [e.onRemove, e.value, e.removable, C, g, u]
1120
+ ), N = o.useCallback(
1113
1121
  (p) => {
1114
1122
  switch (p.keyCode) {
1115
1123
  case r.left:
1116
- g({ type: te.prev, payload: e.value, event: p });
1124
+ g({ type: se.prev, payload: e.value, event: p });
1117
1125
  break;
1118
1126
  case r.right:
1119
- g({ type: te.next, payload: e.value, event: p });
1127
+ g({ type: se.next, payload: e.value, event: p });
1120
1128
  break;
1121
1129
  case r.enter:
1122
1130
  u({ type: pe.toggle, payload: e.value, event: p });
@@ -1134,9 +1142,9 @@ const vt = (e, o) => {
1134
1142
  );
1135
1143
  },
1136
1144
  [e.onKeyDown, e.value, g, u, w]
1137
- ), B = n.useCallback(
1145
+ ), B = o.useCallback(
1138
1146
  (p) => {
1139
- g({ payload: e.value, type: te.current, event: p }), e.onFocus && e.onFocus.call(
1147
+ g({ payload: e.value, type: se.current, event: p }), e.onFocus && e.onFocus.call(
1140
1148
  void 0,
1141
1149
  {
1142
1150
  target: t.current,
@@ -1145,7 +1153,7 @@ const vt = (e, o) => {
1145
1153
  );
1146
1154
  },
1147
1155
  [e.onFocus, e.value, g]
1148
- ), x = n.useCallback(
1156
+ ), x = o.useCallback(
1149
1157
  (p) => {
1150
1158
  e.onBlur && e.onBlur.call(
1151
1159
  void 0,
@@ -1156,8 +1164,8 @@ const vt = (e, o) => {
1156
1164
  );
1157
1165
  },
1158
1166
  [e.onBlur]
1159
- ), E = $e(e, t, { onClick: N });
1160
- return /* @__PURE__ */ n.createElement(
1167
+ ), E = Ae(e, t, { onClick: S });
1168
+ return /* @__PURE__ */ o.createElement(
1161
1169
  "div",
1162
1170
  {
1163
1171
  ...E,
@@ -1187,33 +1195,33 @@ const vt = (e, o) => {
1187
1195
  "aria-keyshortcuts": e.removable ? "Enter Delete" : void 0,
1188
1196
  onFocus: B,
1189
1197
  onBlur: x,
1190
- onKeyDown: S
1198
+ onKeyDown: N
1191
1199
  },
1192
- h && (e.selectedIcon || e.selectedSvgIcon) && /* @__PURE__ */ n.createElement(
1193
- A,
1200
+ h && (e.selectedIcon || e.selectedSvgIcon) && /* @__PURE__ */ o.createElement(
1201
+ $,
1194
1202
  {
1195
1203
  className: "k-chip-icon",
1196
- name: e.selectedIcon ? ve(e.selectedIcon) : void 0,
1204
+ name: e.selectedIcon ? Ce(e.selectedIcon) : void 0,
1197
1205
  icon: e.selectedSvgIcon,
1198
1206
  size: "small"
1199
1207
  }
1200
1208
  ),
1201
- (e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(
1202
- A,
1209
+ (e.icon || e.svgIcon) && /* @__PURE__ */ o.createElement(
1210
+ $,
1203
1211
  {
1204
1212
  className: "k-chip-icon",
1205
- name: e.icon ? ve(e.icon) : void 0,
1213
+ name: e.icon ? Ce(e.icon) : void 0,
1206
1214
  icon: e.svgIcon,
1207
1215
  size: "small"
1208
1216
  }
1209
1217
  ),
1210
- e.avatar && /* @__PURE__ */ n.createElement(
1218
+ e.avatar && /* @__PURE__ */ o.createElement(
1211
1219
  "div",
1212
1220
  {
1213
1221
  className: `k-chip-avatar k-avatar k-rounded-${e.avatar.rounded} k-avatar-md k-avatar-solid k-avatar-solid-primary`,
1214
1222
  style: e.avatar.style
1215
1223
  },
1216
- /* @__PURE__ */ n.createElement("span", { className: "k-avatar-image" }, /* @__PURE__ */ n.createElement(
1224
+ /* @__PURE__ */ o.createElement("span", { className: "k-avatar-image" }, /* @__PURE__ */ o.createElement(
1217
1225
  "img",
1218
1226
  {
1219
1227
  src: e.avatar.image,
@@ -1221,7 +1229,7 @@ const vt = (e, o) => {
1221
1229
  }
1222
1230
  ))
1223
1231
  ),
1224
- /* @__PURE__ */ n.createElement("span", { className: "k-chip-content" }, e.children !== void 0 ? e.children : e.text && /* @__PURE__ */ n.createElement(
1232
+ /* @__PURE__ */ o.createElement("span", { className: "k-chip-content" }, e.children !== void 0 ? e.children : e.text && /* @__PURE__ */ o.createElement(
1225
1233
  "span",
1226
1234
  {
1227
1235
  "aria-label": e.ariaLabel || e.text,
@@ -1229,16 +1237,16 @@ const vt = (e, o) => {
1229
1237
  },
1230
1238
  e.text
1231
1239
  )),
1232
- e.removable && /* @__PURE__ */ n.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ n.createElement("span", { className: f("k-chip-action", "k-chip-remove-action"), onClick: w }, /* @__PURE__ */ n.createElement(
1233
- A,
1240
+ e.removable && /* @__PURE__ */ o.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ o.createElement("span", { className: f("k-chip-action", "k-chip-remove-action"), onClick: w }, /* @__PURE__ */ o.createElement(
1241
+ $,
1234
1242
  {
1235
- name: e.removeIcon ? ve(e.removeIcon) : void 0,
1243
+ name: e.removeIcon ? Ce(e.removeIcon) : void 0,
1236
1244
  icon: e.removeSvgIcon || ut,
1237
1245
  size: "small"
1238
1246
  }
1239
1247
  )))
1240
1248
  );
1241
- }), Ct = {
1249
+ }), vt = {
1242
1250
  id: s.string,
1243
1251
  text: s.string,
1244
1252
  value: s.any,
@@ -1270,56 +1278,57 @@ const vt = (e, o) => {
1270
1278
  fillMode: "solid",
1271
1279
  themeColor: "base"
1272
1280
  };
1273
- j.displayName = "KendoReactChip";
1274
- j.propTypes = Ct;
1275
- j.defaultProps = It;
1276
- const xt = (e, o, t) => {
1277
- const [i, a] = n.useState(e);
1281
+ Z.displayName = "KendoReactChip";
1282
+ Z.propTypes = vt;
1283
+ Z.defaultProps = It;
1284
+ const xt = (e, n, t) => {
1285
+ n.selection === "multiple" ? Array.isArray(e) || (e = e ? [e] : null) : n.selection === "single" && Array.isArray(e) && (e = e ? e.join("") : null);
1286
+ const [i, a] = o.useState(e);
1278
1287
  return [i, (u) => {
1279
- const c = vt(o.state || i, { ...u, ...o });
1280
- t && t(c, u.event), a(c);
1288
+ const c = Ct(n.state || i, { ...u, ...n });
1289
+ t && t(c, u.event), n.selection !== "none" && a(c);
1281
1290
  }];
1282
1291
  }, Dt = (e) => {
1283
- const [o, t] = n.useState(null);
1284
- return [o, (a) => {
1292
+ const [n, t] = o.useState(null);
1293
+ return [n, (a) => {
1285
1294
  const l = yt(a.payload, { ...a, ...e });
1286
1295
  t(l);
1287
1296
  }];
1288
- }, wt = (e, o, t) => {
1289
- const [i, a] = n.useState(e);
1297
+ }, wt = (e, n, t) => {
1298
+ const [i, a] = o.useState(e);
1290
1299
  return [i, (u) => {
1291
- const c = kt(o.state || i, { ...u, ...o });
1300
+ const c = kt(n.state || i, { ...u, ...n });
1292
1301
  t && t(c, u.event), a(c);
1293
1302
  }];
1294
- }, Se = n.forwardRef((e, o) => {
1303
+ }, Ne = o.forwardRef((e, n) => {
1295
1304
  R(O);
1296
- const t = n.useRef(null), i = n.useRef(null), a = xe(i, e.dir), {
1305
+ const t = o.useRef(null), i = o.useRef(null), a = xe(i, e.dir), {
1297
1306
  chip: l,
1298
1307
  id: u,
1299
1308
  style: c,
1300
1309
  tabIndex: g,
1301
- disabled: v,
1310
+ disabled: C,
1302
1311
  size: h,
1303
1312
  className: D,
1304
- ariaDescribedBy: N,
1313
+ ariaDescribedBy: S,
1305
1314
  ariaLabelledBy: w,
1306
- ariaLabel: S,
1307
- selection: B = W.selection,
1308
- value: x = W.defaultValue,
1309
- defaultData: E = W.defaultData,
1310
- valueField: p = W.valueField,
1311
- textField: T = W.textField,
1315
+ ariaLabel: N,
1316
+ selection: B = j.selection,
1317
+ value: x = j.defaultValue,
1318
+ defaultData: E = j.defaultData,
1319
+ valueField: p = j.valueField,
1320
+ textField: L = j.textField,
1312
1321
  onChange: K,
1313
1322
  onDataChange: z
1314
- } = e, L = n.useMemo(
1315
- () => l || j,
1316
- [l, j]
1323
+ } = e, _ = o.useMemo(
1324
+ () => l || Z,
1325
+ [l, Z]
1317
1326
  );
1318
- n.useImperativeHandle(t, () => ({
1327
+ o.useImperativeHandle(t, () => ({
1319
1328
  element: i.current,
1320
1329
  props: e
1321
- })), n.useImperativeHandle(o, () => t.current);
1322
- const $ = n.useCallback(
1330
+ })), o.useImperativeHandle(n, () => t.current);
1331
+ const A = o.useCallback(
1323
1332
  (m, y) => {
1324
1333
  K && t.current && K.call(void 0, {
1325
1334
  value: m,
@@ -1328,14 +1337,14 @@ const xt = (e, o, t) => {
1328
1337
  });
1329
1338
  },
1330
1339
  [K]
1331
- ), [V, Z] = xt(
1332
- x,
1340
+ ), [q, G] = xt(
1341
+ x || e.defaultValue,
1333
1342
  {
1334
1343
  selection: B,
1335
1344
  state: x
1336
1345
  },
1337
- $
1338
- ), oe = n.useCallback(
1346
+ A
1347
+ ), oe = o.useCallback(
1339
1348
  (m, y) => {
1340
1349
  z && t.current && z.call(void 0, {
1341
1350
  value: m,
@@ -1344,66 +1353,66 @@ const xt = (e, o, t) => {
1344
1353
  });
1345
1354
  },
1346
1355
  [z]
1347
- ), [q, ie] = wt(
1356
+ ), [X, ie] = wt(
1348
1357
  e.data || E,
1349
1358
  {
1350
1359
  state: e.data,
1351
1360
  valueField: p
1352
1361
  },
1353
1362
  oe
1354
- ), G = n.useCallback(
1363
+ ), V = o.useCallback(
1355
1364
  (m, y) => (m.push(y[p]), m),
1356
1365
  [p]
1357
- ), _ = n.useMemo(
1358
- () => e.data || q,
1359
- [e.data, q]
1360
- ), ae = n.useMemo(
1361
- () => x || V,
1362
- [x, V]
1363
- ), le = n.useMemo(
1364
- () => _.reduce(G, []),
1365
- [_, G]
1366
- ), X = n.useCallback(
1366
+ ), H = o.useMemo(
1367
+ () => e.data || X,
1368
+ [e.data, X]
1369
+ ), ae = o.useMemo(
1370
+ () => x || q,
1371
+ [x, q]
1372
+ ), le = o.useMemo(
1373
+ () => H.reduce(V, []),
1374
+ [H, V]
1375
+ ), J = o.useCallback(
1367
1376
  (m) => Me(p)(m),
1368
1377
  [p]
1369
- ), k = n.useCallback(
1370
- (m) => Me(T)(m),
1371
- [T]
1372
- ), [fe, be] = Dt({ items: le }), re = $e(e, t);
1373
- return /* @__PURE__ */ n.createElement(Ve.Provider, { value: [ae, Z] }, /* @__PURE__ */ n.createElement(Ze.Provider, { value: [fe, be] }, /* @__PURE__ */ n.createElement(qe.Provider, { value: [_, ie] }, /* @__PURE__ */ n.createElement(
1378
+ ), k = o.useCallback(
1379
+ (m) => Me(L)(m),
1380
+ [L]
1381
+ ), [fe, be] = Dt({ items: le }), re = Ae(e, t);
1382
+ return /* @__PURE__ */ o.createElement(Ze.Provider, { value: [ae, G] }, /* @__PURE__ */ o.createElement(qe.Provider, { value: [fe, be] }, /* @__PURE__ */ o.createElement(Ge.Provider, { value: [H, ie] }, /* @__PURE__ */ o.createElement(
1374
1383
  "div",
1375
1384
  {
1376
1385
  ref: i,
1377
1386
  ...re,
1378
- role: v ? void 0 : "listbox",
1387
+ role: C ? void 0 : "listbox",
1379
1388
  id: u,
1380
1389
  dir: a,
1381
1390
  style: c,
1382
- tabIndex: me(g, v, void 0),
1391
+ tabIndex: me(g, C, void 0),
1383
1392
  className: f(
1384
1393
  "k-chip-list",
1385
1394
  {
1386
1395
  "k-rtl": a === "rtl",
1387
- "k-disabled": v,
1396
+ "k-disabled": C,
1388
1397
  [`k-chip-list-${P.sizeMap[h] || h}`]: h
1389
1398
  },
1390
1399
  D
1391
1400
  ),
1392
- "aria-label": S,
1401
+ "aria-label": N,
1393
1402
  "aria-labelledby": w,
1394
- "aria-describedby": N,
1403
+ "aria-describedby": S,
1395
1404
  "aria-orientation": "horizontal",
1396
1405
  "aria-multiselectable": B === "multiple"
1397
1406
  },
1398
- _.map((m, y) => /* @__PURE__ */ n.createElement(
1399
- L,
1407
+ H.map((m, y) => /* @__PURE__ */ o.createElement(
1408
+ _,
1400
1409
  {
1401
1410
  role: "option",
1402
1411
  dataItem: m,
1403
1412
  size: h,
1404
- key: [X(m), y].join("-"),
1413
+ key: [J(m), y].join("-"),
1405
1414
  text: k(m),
1406
- value: X(m),
1415
+ value: J(m),
1407
1416
  ariaLabel: m.ariaLabel,
1408
1417
  svgIcon: m.svgIcon || void 0
1409
1418
  }
@@ -1427,8 +1436,8 @@ const xt = (e, o, t) => {
1427
1436
  ariaLabelledBy: s.string,
1428
1437
  ariaDescribedBy: s.string,
1429
1438
  size: s.oneOf([null, "small", "medium", "large"])
1430
- }, W = {
1431
- chip: j,
1439
+ }, j = {
1440
+ chip: Z,
1432
1441
  size: "medium",
1433
1442
  disabled: !1,
1434
1443
  defaultValue: null,
@@ -1439,10 +1448,10 @@ const xt = (e, o, t) => {
1439
1448
  valueField: "value",
1440
1449
  removable: "removable"
1441
1450
  };
1442
- Se.displayName = "KendoReactChipList";
1443
- Se.propTypes = Et;
1444
- Se.defaultProps = W;
1445
- const Be = n.forwardRef((e, o) => {
1451
+ Ne.displayName = "KendoReactChipList";
1452
+ Ne.propTypes = Et;
1453
+ Ne.defaultProps = j;
1454
+ const Be = o.forwardRef((e, n) => {
1446
1455
  const {
1447
1456
  className: t,
1448
1457
  disabled: i,
@@ -1451,33 +1460,33 @@ const Be = n.forwardRef((e, o) => {
1451
1460
  style: u,
1452
1461
  id: c,
1453
1462
  focused: g,
1454
- tabIndex: v,
1463
+ tabIndex: C,
1455
1464
  index: h,
1456
1465
  dataItem: D,
1457
- item: N,
1466
+ item: S,
1458
1467
  svgIcon: w,
1459
- onDown: S,
1468
+ onDown: N,
1460
1469
  onClick: B,
1461
1470
  ...x
1462
- } = e, E = n.useRef(null), p = n.useCallback(
1471
+ } = e, E = o.useRef(null), p = o.useCallback(
1463
1472
  () => {
1464
1473
  E.current && E.current.focus();
1465
1474
  },
1466
1475
  []
1467
- ), T = n.useCallback(
1476
+ ), L = o.useCallback(
1468
1477
  () => ({
1469
1478
  element: E.current,
1470
1479
  focus: p
1471
1480
  }),
1472
1481
  [p]
1473
1482
  );
1474
- n.useImperativeHandle(o, T);
1475
- const K = n.useCallback(
1476
- ($) => {
1477
- B && h !== void 0 && !i && B($, h);
1483
+ o.useImperativeHandle(n, L);
1484
+ const K = o.useCallback(
1485
+ (A) => {
1486
+ B && h !== void 0 && !i && B(A, h);
1478
1487
  },
1479
1488
  [B, h]
1480
- ), z = n.useMemo(
1489
+ ), z = o.useMemo(
1481
1490
  () => f(
1482
1491
  "k-fab-item",
1483
1492
  {
@@ -1487,8 +1496,8 @@ const Be = n.forwardRef((e, o) => {
1487
1496
  t
1488
1497
  ),
1489
1498
  [t, i, g]
1490
- ), L = N;
1491
- return /* @__PURE__ */ n.createElement(
1499
+ ), _ = S;
1500
+ return /* @__PURE__ */ o.createElement(
1492
1501
  "li",
1493
1502
  {
1494
1503
  ref: E,
@@ -1496,15 +1505,15 @@ const Be = n.forwardRef((e, o) => {
1496
1505
  className: z,
1497
1506
  style: u,
1498
1507
  role: "menuitem",
1499
- tabIndex: me(v, i),
1508
+ tabIndex: me(C, i),
1500
1509
  "aria-disabled": i,
1501
1510
  "aria-label": `${a || ""} floatingactionbutton item`,
1502
1511
  onClick: K,
1503
- onMouseDown: S,
1504
- onPointerDown: S,
1512
+ onMouseDown: N,
1513
+ onPointerDown: N,
1505
1514
  ...x
1506
1515
  },
1507
- L ? /* @__PURE__ */ n.createElement(L, { itemIndex: h, item: D }) : /* @__PURE__ */ n.createElement(n.Fragment, null, a && /* @__PURE__ */ n.createElement("span", { className: "k-fab-item-text" }, a), l || w ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-item-icon", name: l, icon: w }) : null)
1516
+ _ ? /* @__PURE__ */ o.createElement(_, { itemIndex: h, item: D }) : /* @__PURE__ */ o.createElement(o.Fragment, null, a && /* @__PURE__ */ o.createElement("span", { className: "k-fab-item-text" }, a), l || w ? /* @__PURE__ */ o.createElement($, { className: "k-fab-item-icon", name: l, icon: w }) : null)
1508
1517
  );
1509
1518
  });
1510
1519
  Be.propTypes = {
@@ -1521,150 +1530,150 @@ Be.propTypes = {
1521
1530
  customProp: s.any
1522
1531
  };
1523
1532
  Be.displayName = "KendoFloatingActionButtonItem";
1524
- const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o) => {
1525
- const t = { horizontal: o ? "right" : "left", vertical: "bottom" };
1526
- return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
1527
- }, St = (e, o) => {
1528
- const t = { horizontal: o ? "right" : "left", vertical: "top" };
1529
- return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
1530
- }, Bt = (e, o) => {
1531
- const t = o === "end" ? "end" : "start";
1533
+ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, St = (e, n) => {
1534
+ const t = { horizontal: n ? "right" : "left", vertical: "bottom" };
1535
+ return e.horizontal === "end" && (t.horizontal = n ? "left" : "right"), t;
1536
+ }, Nt = (e, n) => {
1537
+ const t = { horizontal: n ? "right" : "left", vertical: "top" };
1538
+ return e.horizontal === "end" && (t.horizontal = n ? "left" : "right"), t;
1539
+ }, Bt = (e, n) => {
1540
+ const t = n === "end" ? "end" : "start";
1532
1541
  return {
1533
1542
  rtl: { end: "k-text-left", start: "k-text-right" },
1534
1543
  ltr: { start: "k-text-left", end: "k-text-right" }
1535
1544
  }[e][t];
1536
- }, Ft = (e, o, t, i) => {
1537
- const a = o.horizontal, l = o.vertical;
1545
+ }, Ft = (e, n, t, i) => {
1546
+ const a = n.horizontal, l = n.vertical;
1538
1547
  if (e.current) {
1539
- const u = t && t.x !== void 0 ? he(t.x) : Ke, c = t && t.x !== void 0 ? `calc(50% + ${he(t.x)})` : "50%", g = t && t.y !== void 0 ? he(t.y) : Ke, v = t && t.y !== void 0 ? `calc(50% + ${he(t.y)})` : "50%";
1540
- e.current.style.setProperty(zt(o, i), a === "center" ? c : u), e.current.style.setProperty(Pt(o), l === "middle" ? v : g), i && ((l === "top" || l === "bottom") && a === "start" && e.current.style.setProperty("left", "unset"), l === "middle" && a === "end" && e.current.style.setProperty("right", "unset"), l === "middle" && a === "start" && e.current.style.setProperty("left", "unset"));
1548
+ const u = t && t.x !== void 0 ? he(t.x) : Ke, c = t && t.x !== void 0 ? `calc(50% + ${he(t.x)})` : "50%", g = t && t.y !== void 0 ? he(t.y) : Ke, C = t && t.y !== void 0 ? `calc(50% + ${he(t.y)})` : "50%";
1549
+ e.current.style.setProperty(zt(n, i), a === "center" ? c : u), e.current.style.setProperty(Pt(n), l === "middle" ? C : g), i && ((l === "top" || l === "bottom") && a === "start" && e.current.style.setProperty("left", "unset"), l === "middle" && a === "end" && e.current.style.setProperty("right", "unset"), l === "middle" && a === "start" && e.current.style.setProperty("left", "unset"));
1541
1550
  }
1542
- }, zt = (e, o) => {
1551
+ }, zt = (e, n) => {
1543
1552
  const { horizontal: t } = e;
1544
1553
  return {
1545
- end: o ? "left" : "right",
1554
+ end: n ? "left" : "right",
1546
1555
  center: "left",
1547
- start: o ? "right" : "left"
1556
+ start: n ? "right" : "left"
1548
1557
  }[t || "end"];
1549
1558
  }, Pt = (e) => ({
1550
1559
  top: "top",
1551
1560
  middle: "top",
1552
1561
  bottom: "bottom"
1553
- })[e.vertical || "bottom"], Mt = 2, Rt = 100, Xe = n.forwardRef((e, o) => {
1562
+ })[e.vertical || "bottom"], Mt = 2, Rt = 100, Ve = o.forwardRef((e, n) => {
1554
1563
  R(O);
1555
1564
  const {
1556
- align: t = Y.align,
1565
+ align: t = ee.align,
1557
1566
  alignOffset: i,
1558
1567
  className: a,
1559
1568
  disabled: l,
1560
1569
  icon: u,
1561
1570
  svgIcon: c,
1562
1571
  iconClass: g,
1563
- id: v,
1572
+ id: C,
1564
1573
  items: h,
1565
1574
  item: D,
1566
- text: N,
1567
- positionMode: w = Y.positionMode,
1568
- size: S = Y.size,
1575
+ text: S,
1576
+ positionMode: w = ee.positionMode,
1577
+ size: N = ee.size,
1569
1578
  style: B,
1570
- rounded: x = Y.rounded,
1571
- themeColor: E = Y.themeColor,
1579
+ rounded: x = ee.rounded,
1580
+ themeColor: E = ee.themeColor,
1572
1581
  overlayStyle: p,
1573
- tabIndex: T,
1582
+ tabIndex: L,
1574
1583
  accessKey: K,
1575
1584
  popupSettings: z = {},
1576
- modal: L,
1577
- onClick: $,
1578
- onItemClick: V,
1579
- onFocus: Z,
1585
+ modal: _,
1586
+ onClick: A,
1587
+ onItemClick: q,
1588
+ onFocus: G,
1580
1589
  onBlur: oe,
1581
- onKeyDown: q,
1590
+ onKeyDown: X,
1582
1591
  onOpen: ie,
1583
- onClose: G,
1584
- ..._
1585
- } = e, ae = rt(), le = ae ? ae + Mt : Rt, X = n.useRef(null), k = n.useRef(null), fe = n.useRef(null), be = n.useRef(null), re = n.useCallback(
1592
+ onClose: V,
1593
+ ...H
1594
+ } = e, ae = rt(), le = ae ? ae + Mt : Rt, J = o.useRef(null), k = o.useRef(null), fe = o.useRef(null), be = o.useRef(null), re = o.useCallback(
1586
1595
  () => {
1587
1596
  k.current && k.current.focus();
1588
1597
  },
1589
1598
  []
1590
- ), m = n.useCallback(
1599
+ ), m = o.useCallback(
1591
1600
  () => ({
1592
1601
  element: k.current,
1593
1602
  focus: re
1594
1603
  }),
1595
1604
  [re]
1596
1605
  );
1597
- n.useImperativeHandle(X, m), n.useImperativeHandle(o, () => X.current);
1598
- const [y, F] = n.useState(!1), [ce, H] = n.useState(!1), [J, C] = n.useState(-1), Je = Re() + "-button-id", ge = xe(k, e.dir), Q = ge === "rtl", de = Re() + "-list-id";
1599
- n.useEffect(
1606
+ o.useImperativeHandle(J, m), o.useImperativeHandle(n, () => J.current);
1607
+ const [y, F] = o.useState(!1), [ce, U] = o.useState(!1), [Q, v] = o.useState(-1), Je = Re() + "-button-id", ge = xe(k, e.dir), Y = ge === "rtl", de = Re() + "-list-id";
1608
+ o.useEffect(
1600
1609
  () => {
1601
- Ft(k, t, i, Q);
1610
+ Ft(k, t, i, Y);
1602
1611
  },
1603
- [k, t, i, Q]
1604
- ), n.useEffect(
1612
+ [k, t, i, Y]
1613
+ ), o.useEffect(
1605
1614
  () => {
1606
1615
  ce && k && k.current && k.current.focus();
1607
1616
  },
1608
1617
  [ce, k]
1609
1618
  );
1610
- const U = n.useCallback(
1619
+ const W = o.useCallback(
1611
1620
  (d, b) => {
1612
1621
  h && I(
1613
- b ? ie : G,
1622
+ b ? ie : V,
1614
1623
  d,
1615
1624
  m(),
1616
1625
  void 0
1617
1626
  );
1618
1627
  },
1619
- [ie, G, h]
1620
- ), Fe = n.useCallback(
1628
+ [ie, V, h]
1629
+ ), Fe = o.useCallback(
1621
1630
  (d) => {
1622
- !d.target || l || (!h && $ ? I(
1623
- $,
1631
+ !d.target || l || (!h && A ? I(
1632
+ A,
1624
1633
  d,
1625
1634
  m(),
1626
1635
  void 0
1627
- ) : (F(!y), H(!0), C(y ? -1 : 0), U(d, !y)));
1636
+ ) : (F(!y), U(!0), v(y ? -1 : 0), W(d, !y)));
1628
1637
  },
1629
1638
  [
1630
1639
  F,
1631
- H,
1632
- C,
1633
- $,
1634
1640
  U,
1641
+ v,
1642
+ A,
1643
+ W,
1635
1644
  y,
1636
1645
  h,
1637
1646
  l
1638
1647
  ]
1639
- ), Qe = n.useCallback(
1648
+ ), Qe = o.useCallback(
1640
1649
  (d) => {
1641
- H(!0), C(y ? 0 : -1), Z && I(
1642
- Z,
1650
+ U(!0), v(y ? 0 : -1), G && I(
1651
+ G,
1643
1652
  d,
1644
1653
  m(),
1645
1654
  void 0
1646
1655
  );
1647
1656
  },
1648
- [Z, H, C]
1649
- ), Ye = n.useCallback(
1657
+ [G, U, v]
1658
+ ), Ye = o.useCallback(
1650
1659
  (d) => {
1651
- H(!1), F(!1), C(-1), I(
1660
+ U(!1), F(!1), v(-1), I(
1652
1661
  oe,
1653
1662
  d,
1654
1663
  m(),
1655
1664
  void 0
1656
- ), y && U(d, !1);
1665
+ ), y && W(d, !1);
1657
1666
  },
1658
- [oe, H, F, C, U]
1659
- ), et = n.useCallback(
1667
+ [oe, U, F, v, W]
1668
+ ), et = o.useCallback(
1660
1669
  (d) => {
1661
1670
  d.preventDefault();
1662
1671
  },
1663
1672
  []
1664
- ), ye = n.useCallback(
1673
+ ), ye = o.useCallback(
1665
1674
  (d, b) => {
1666
1675
  h && (h[b].disabled || I(
1667
- V,
1676
+ q,
1668
1677
  d,
1669
1678
  m(),
1670
1679
  {
@@ -1673,62 +1682,62 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1673
1682
  }
1674
1683
  ));
1675
1684
  },
1676
- [V]
1677
- ), tt = n.useCallback(
1685
+ [q]
1686
+ ), tt = o.useCallback(
1678
1687
  (d, b) => {
1679
- !d.target || !h || (C(b), F(!1), ye(d, b), U(d, !1));
1688
+ !d.target || !h || (v(b), F(!1), ye(d, b), W(d, !1));
1680
1689
  },
1681
- [C, F, ye, U]
1682
- ), st = n.useCallback(
1690
+ [v, F, ye, W]
1691
+ ), st = o.useCallback(
1683
1692
  (d) => {
1684
- se(document) === k.current && d.preventDefault();
1693
+ T(document) === k.current && d.preventDefault();
1685
1694
  },
1686
1695
  [k]
1687
- ), nt = n.useCallback(
1696
+ ), nt = o.useCallback(
1688
1697
  (d) => {
1689
- const b = J, ke = h ? h.length : -1;
1698
+ const b = Q, ke = h ? h.length : -1;
1690
1699
  if (d.altKey) {
1691
- !y && d.keyCode === r.down && (d.preventDefault(), F(!0), C(0)), y && d.keyCode === r.up && (d.preventDefault(), F(!1), C(-1));
1700
+ !y && d.keyCode === r.down && (d.preventDefault(), F(!0), v(0)), y && d.keyCode === r.up && (d.preventDefault(), F(!1), v(-1));
1692
1701
  return;
1693
1702
  }
1694
1703
  switch (d.keyCode) {
1695
1704
  case r.enter:
1696
1705
  case r.space:
1697
- b >= 0 && ye(d, b), h || Fe(d), d.preventDefault(), F(!y), C(y ? -1 : 0);
1706
+ b >= 0 && ye(d, b), h || Fe(d), d.preventDefault(), F(!y), v(y ? -1 : 0);
1698
1707
  break;
1699
1708
  case r.esc:
1700
- d.preventDefault(), F(!1), C(-1);
1709
+ d.preventDefault(), F(!1), v(-1);
1701
1710
  break;
1702
1711
  case r.home:
1703
- d.preventDefault(), C(0);
1712
+ d.preventDefault(), v(0);
1704
1713
  break;
1705
1714
  case r.end:
1706
- d.preventDefault(), C(ke - 1);
1715
+ d.preventDefault(), v(ke - 1);
1707
1716
  break;
1708
1717
  case r.down:
1709
1718
  case r.right:
1710
- d.preventDefault(), C(b + 1 >= ke ? 0 : b + 1);
1719
+ d.preventDefault(), v(b + 1 >= ke ? 0 : b + 1);
1711
1720
  break;
1712
1721
  case r.up:
1713
1722
  case r.left:
1714
- d.preventDefault(), C(b - 1 < 0 ? ke - 1 : b - 1);
1723
+ d.preventDefault(), v(b - 1 < 0 ? ke - 1 : b - 1);
1715
1724
  break;
1716
1725
  }
1717
1726
  I(
1718
- q,
1727
+ X,
1719
1728
  d,
1720
1729
  m(),
1721
1730
  void 0
1722
1731
  );
1723
1732
  },
1724
- [q, J, C, Q, F]
1725
- ), ot = n.useMemo(
1733
+ [X, Q, v, Y, F]
1734
+ ), ot = o.useMemo(
1726
1735
  () => f(
1727
1736
  "k-fab k-fab-solid",
1728
1737
  {
1729
- "k-fab-sm": S === "small",
1730
- "k-fab-md": S === "medium",
1731
- "k-fab-lg": S === "large",
1738
+ "k-fab-sm": N === "small",
1739
+ "k-fab-md": N === "medium",
1740
+ "k-fab-lg": N === "large",
1732
1741
  "k-disabled": l,
1733
1742
  "k-pos-absolute": w === "absolute",
1734
1743
  "k-pos-fixed": w === "fixed",
@@ -1739,8 +1748,8 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1739
1748
  `k-${t.vertical}-${t.horizontal}`,
1740
1749
  a
1741
1750
  ),
1742
- [E, S, x, l, w, t, ce, a]
1743
- ), it = h && h.map((d, b) => /* @__PURE__ */ n.createElement(
1751
+ [E, N, x, l, w, t, ce, a]
1752
+ ), it = h && h.map((d, b) => /* @__PURE__ */ o.createElement(
1744
1753
  Be,
1745
1754
  {
1746
1755
  ...d,
@@ -1748,7 +1757,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1748
1757
  index: b,
1749
1758
  id: `${de}-${b}`,
1750
1759
  disabled: l || d.disabled,
1751
- focused: J === b,
1760
+ focused: Q === b,
1752
1761
  dataItem: d,
1753
1762
  item: D,
1754
1763
  className: f(
@@ -1758,21 +1767,21 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1758
1767
  onClick: tt,
1759
1768
  onDown: st
1760
1769
  }
1761
- )), ze = !!((u || c) && !N), at = k.current ? k.current.offsetWidth : 0, lt = 32, Pe = at / 2 - lt / 2;
1762
- return /* @__PURE__ */ n.createElement(ct.Provider, { value: le }, /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
1770
+ )), ze = !!((u || c) && !S), at = k.current ? k.current.offsetWidth : 0, lt = 32, Pe = at / 2 - lt / 2;
1771
+ return /* @__PURE__ */ o.createElement(ct.Provider, { value: le }, /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1763
1772
  "button",
1764
1773
  {
1765
1774
  ref: k,
1766
- id: v || Je,
1775
+ id: C || Je,
1767
1776
  role: "button",
1768
1777
  type: "button",
1769
1778
  "aria-disabled": l,
1770
1779
  "aria-expanded": h ? y : void 0,
1771
1780
  "aria-haspopup": !!h,
1772
- "aria-label": `${N || ""} floatingactionbutton`,
1781
+ "aria-label": `${S || ""} floatingactionbutton`,
1773
1782
  "aria-owns": h ? de : void 0,
1774
- "aria-activedescendant": J >= 0 && h ? `${de}-${J}` : void 0,
1775
- tabIndex: me(T, l),
1783
+ "aria-activedescendant": Q >= 0 && h ? `${de}-${Q}` : void 0,
1784
+ tabIndex: me(L, l),
1776
1785
  accessKey: K,
1777
1786
  dir: ge,
1778
1787
  disabled: l,
@@ -1783,11 +1792,11 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1783
1792
  onFocus: Qe,
1784
1793
  onBlur: Ye,
1785
1794
  onKeyDown: nt,
1786
- ..._
1795
+ ...H
1787
1796
  },
1788
- u || c ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-icon", name: u, icon: c }) : g ? /* @__PURE__ */ n.createElement("span", { role: "presentation", className: g }) : null,
1789
- N && /* @__PURE__ */ n.createElement("span", { className: "k-fab-text" }, N)
1790
- ), L && y && /* @__PURE__ */ n.createElement(
1797
+ u || c ? /* @__PURE__ */ o.createElement($, { className: "k-fab-icon", name: u, icon: c }) : g ? /* @__PURE__ */ o.createElement("span", { role: "presentation", className: g }) : null,
1798
+ S && /* @__PURE__ */ o.createElement("span", { className: "k-fab-text" }, S)
1799
+ ), _ && y && /* @__PURE__ */ o.createElement(
1791
1800
  "div",
1792
1801
  {
1793
1802
  className: "k-overlay",
@@ -1796,7 +1805,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1796
1805
  ...p
1797
1806
  }
1798
1807
  }
1799
- ), /* @__PURE__ */ n.createElement(
1808
+ ), /* @__PURE__ */ o.createElement(
1800
1809
  De,
1801
1810
  {
1802
1811
  ref: be,
@@ -1804,16 +1813,16 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1804
1813
  show: y,
1805
1814
  animate: z.animate,
1806
1815
  popupClass: f("k-popup-transparent k-fab-popup", z.popupClass),
1807
- anchorAlign: z.anchorAlign || Nt(t, Q),
1808
- popupAlign: z.popupAlign || St(t, Q),
1816
+ anchorAlign: z.anchorAlign || St(t, Y),
1817
+ popupAlign: z.popupAlign || Nt(t, Y),
1809
1818
  style: { boxShadow: "none" }
1810
1819
  },
1811
- /* @__PURE__ */ n.createElement(
1820
+ /* @__PURE__ */ o.createElement(
1812
1821
  "ul",
1813
1822
  {
1814
1823
  ref: fe,
1815
1824
  role: "menu",
1816
- "aria-labelledby": v,
1825
+ "aria-labelledby": C,
1817
1826
  id: de,
1818
1827
  className: f("k-fab-items", {
1819
1828
  "k-fab-items-bottom": t.vertical !== "bottom",
@@ -1828,7 +1837,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1828
1837
  )
1829
1838
  )));
1830
1839
  });
1831
- Xe.propTypes = {
1840
+ Ve.propTypes = {
1832
1841
  className: s.string,
1833
1842
  style: s.object,
1834
1843
  id: s.string,
@@ -1867,27 +1876,27 @@ Xe.propTypes = {
1867
1876
  modal: s.bool,
1868
1877
  overlayStyle: s.object
1869
1878
  };
1870
- const Y = {
1879
+ const ee = {
1871
1880
  align: { vertical: "bottom", horizontal: "end" },
1872
1881
  size: "medium",
1873
1882
  rounded: "full",
1874
1883
  themeColor: "primary",
1875
1884
  positionMode: "fixed"
1876
1885
  };
1877
- Xe.displayName = "KendoFloatingActionButton";
1878
- const Ot = Ae(Ne);
1886
+ Ve.displayName = "KendoFloatingActionButton";
1887
+ const Ot = $e(Se);
1879
1888
  Ot.displayName = "KendoReactDropDownButton";
1880
- const Kt = Ae(Ee);
1889
+ const Kt = $e(Ee);
1881
1890
  Kt.displayName = "KendoReactSplitButton";
1882
1891
  export {
1883
1892
  ne as Button,
1884
1893
  bt as ButtonGroup,
1885
- j as Chip,
1886
- Se as ChipList,
1894
+ Z as Chip,
1895
+ Ne as ChipList,
1887
1896
  Ot as DropDownButton,
1888
- Ne as DropDownButtonClassComponent,
1897
+ Se as DropDownButtonClassComponent,
1889
1898
  Ue as DropDownButtonItem,
1890
- Xe as FloatingActionButton,
1899
+ Ve as FloatingActionButton,
1891
1900
  Be as FloatingActionButtonItem,
1892
1901
  Kt as SplitButton,
1893
1902
  Ee as SplitButtonClassComponent,