@progress/kendo-react-buttons 7.0.0-develop.8 → 7.0.0-develop.9
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/dist/cdn/js/kendo-react-buttons.js +1 -1
- package/index.js +1 -1
- package/index.mjs +300 -296
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as n from "react";
|
|
6
|
-
import
|
|
6
|
+
import xe from "react";
|
|
7
7
|
import * as s from "prop-types";
|
|
8
|
-
import { svgIconPropType as M, validatePackage as R, classNames as
|
|
9
|
-
import { Popup as
|
|
10
|
-
import { caretAltDownIcon as
|
|
8
|
+
import { svgIconPropType as M, validatePackage as R, classNames as f, kendoThemeMaps as B, IconWrap as A, Keys as r, guid as me, dispatchEvent as x, getActiveElement as se, useDir as we, useMouse as Oe, getTabIndex as fe, toIconName as Ce, getter as Be, useZIndexContext as lt, ZIndexContext as rt } from "@progress/kendo-react-common";
|
|
9
|
+
import { Popup as De } from "@progress/kendo-react-popup";
|
|
10
|
+
import { caretAltDownIcon as ct, xCircleIcon as dt } from "@progress/kendo-svg-icons";
|
|
11
11
|
const O = {
|
|
12
12
|
name: "@progress/kendo-react-buttons",
|
|
13
13
|
productName: "KendoReact",
|
|
14
14
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
15
|
-
publishDate:
|
|
15
|
+
publishDate: 1701354512,
|
|
16
16
|
version: "",
|
|
17
17
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
return e ? /* @__PURE__ */ n.createElement("img", { role: "presentation", className: "k-button-icon", alt: a, src: e }) : o || i ? /* @__PURE__ */ n.createElement(
|
|
19
|
+
function ut({ imageUrl: e, name: o, iconClass: t, svgIcon: i, imageAlt: a }) {
|
|
20
|
+
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;
|
|
21
21
|
}
|
|
22
22
|
const ee = class extends n.Component {
|
|
23
23
|
constructor(e) {
|
|
@@ -55,20 +55,20 @@ const ee = class extends n.Component {
|
|
|
55
55
|
iconClass: i,
|
|
56
56
|
svgIcon: a,
|
|
57
57
|
imageUrl: l,
|
|
58
|
-
imageAlt:
|
|
58
|
+
imageAlt: u,
|
|
59
59
|
className: c,
|
|
60
60
|
onClick: g,
|
|
61
61
|
size: C = ee.defaultProps.size,
|
|
62
|
-
rounded:
|
|
62
|
+
rounded: h = ee.defaultProps.rounded,
|
|
63
63
|
fillMode: w = ee.defaultProps.fillMode,
|
|
64
64
|
themeColor: N = ee.defaultProps.themeColor,
|
|
65
65
|
...D
|
|
66
|
-
} = this.props, S = a !== void 0 || t !== void 0 || i !== void 0 || l !== void 0, F = e !== void 0, I =
|
|
66
|
+
} = this.props, S = a !== void 0 || t !== void 0 || i !== void 0 || l !== void 0, F = e !== void 0, I = ut({
|
|
67
67
|
name: t,
|
|
68
68
|
svgIcon: a,
|
|
69
69
|
iconClass: i,
|
|
70
70
|
imageUrl: l,
|
|
71
|
-
imageAlt:
|
|
71
|
+
imageAlt: u
|
|
72
72
|
});
|
|
73
73
|
return /* @__PURE__ */ n.createElement(
|
|
74
74
|
"button",
|
|
@@ -77,13 +77,13 @@ const ee = class extends n.Component {
|
|
|
77
77
|
"aria-pressed": o ? this.state.selected : void 0,
|
|
78
78
|
...D,
|
|
79
79
|
onClick: this.handleClick,
|
|
80
|
-
className:
|
|
80
|
+
className: f(
|
|
81
81
|
"k-button",
|
|
82
82
|
{
|
|
83
|
-
[`k-button-${
|
|
83
|
+
[`k-button-${B.sizeMap[C] || C}`]: C,
|
|
84
84
|
[`k-button-${w}`]: w,
|
|
85
85
|
[`k-button-${w}-${N}`]: !!(w && N),
|
|
86
|
-
[`k-rounded-${
|
|
86
|
+
[`k-rounded-${B.roundedMap[h] || h}`]: h,
|
|
87
87
|
"k-icon-button": !F && S,
|
|
88
88
|
"k-disabled": this.props.disabled,
|
|
89
89
|
"k-selected": this.state.selected,
|
|
@@ -126,7 +126,7 @@ ne.defaultProps = {
|
|
|
126
126
|
fillMode: "solid",
|
|
127
127
|
themeColor: "base"
|
|
128
128
|
};
|
|
129
|
-
const
|
|
129
|
+
const ht = {
|
|
130
130
|
button: "k-button",
|
|
131
131
|
flat: "k-flat",
|
|
132
132
|
outline: "k-outline",
|
|
@@ -142,15 +142,15 @@ const pt = {
|
|
|
142
142
|
"button-group-stretched": "k-button-group-stretched",
|
|
143
143
|
ltr: "k-ltr",
|
|
144
144
|
rtl: "k-rtl"
|
|
145
|
-
}, Me = ":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",
|
|
145
|
+
}, Me = ":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)", pt = [
|
|
146
146
|
"button" + Me,
|
|
147
147
|
".k-button-group > button" + Me,
|
|
148
148
|
".k-colorpicker",
|
|
149
149
|
".k-dropdownlist"
|
|
150
|
-
],
|
|
151
|
-
styles:
|
|
152
|
-
},
|
|
153
|
-
class
|
|
150
|
+
], mt = {
|
|
151
|
+
styles: ht
|
|
152
|
+
}, ue = mt.styles;
|
|
153
|
+
class ft extends n.Component {
|
|
154
154
|
constructor(o) {
|
|
155
155
|
super(o), this._element = null, R(O);
|
|
156
156
|
}
|
|
@@ -158,11 +158,11 @@ class bt extends n.Component {
|
|
|
158
158
|
* @hidden
|
|
159
159
|
*/
|
|
160
160
|
render() {
|
|
161
|
-
const o = this.mapButtons(this.props.children), t =
|
|
162
|
-
[
|
|
161
|
+
const o = this.mapButtons(this.props.children), t = f(
|
|
162
|
+
[ue["button-group"]],
|
|
163
163
|
{
|
|
164
164
|
["k-disabled"]: this.props.disabled,
|
|
165
|
-
[
|
|
165
|
+
[ue["button-group-stretched"]]: !!this.props.width
|
|
166
166
|
},
|
|
167
167
|
this.props.className
|
|
168
168
|
), i = {
|
|
@@ -190,26 +190,26 @@ class bt extends n.Component {
|
|
|
190
190
|
return n.Children.map(o, (a, l) => n.isValidElement(a) ? this.renderButton(a, l, l === t - 1, i) : a);
|
|
191
191
|
}
|
|
192
192
|
renderButton(o, t, i, a) {
|
|
193
|
-
const l =
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
}),
|
|
193
|
+
const l = f(o.props.className, {
|
|
194
|
+
[ue["group-start"]]: a ? i : t === 0,
|
|
195
|
+
[ue["group-end"]]: a ? t === 0 : i
|
|
196
|
+
}), u = { ...this.props.width ? { width: this.props.width } : {}, ...o.props.style || {} }, c = this.props.disabled || o.props.disabled, g = {
|
|
197
197
|
...o.props,
|
|
198
198
|
...l ? { className: l } : {},
|
|
199
|
-
...Object.keys(
|
|
199
|
+
...Object.keys(u).length ? { style: u } : {},
|
|
200
200
|
...c !== void 0 ? { disabled: c } : {}
|
|
201
201
|
};
|
|
202
202
|
return n.Children.count(o.props.children) > 0 ? n.cloneElement(o, g, o.props.children) : n.cloneElement(o, g);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
ft.propTypes = {
|
|
206
206
|
children: s.oneOfType([s.arrayOf(s.element), s.element]),
|
|
207
207
|
className: s.string,
|
|
208
208
|
disabled: s.bool,
|
|
209
209
|
width: s.string,
|
|
210
210
|
dir: s.string
|
|
211
211
|
};
|
|
212
|
-
const
|
|
212
|
+
const Ee = (e) => {
|
|
213
213
|
const o = n.useCallback(
|
|
214
214
|
(l) => {
|
|
215
215
|
e.onClick(l, e.index);
|
|
@@ -219,7 +219,7 @@ const Ne = (e) => {
|
|
|
219
219
|
"li",
|
|
220
220
|
{
|
|
221
221
|
id: e.id,
|
|
222
|
-
className:
|
|
222
|
+
className: f(
|
|
223
223
|
"k-item",
|
|
224
224
|
e.className,
|
|
225
225
|
{ "k-focus": e.focused }
|
|
@@ -235,7 +235,7 @@ const Ne = (e) => {
|
|
|
235
235
|
"span",
|
|
236
236
|
{
|
|
237
237
|
tabIndex: -1,
|
|
238
|
-
className:
|
|
238
|
+
className: f(
|
|
239
239
|
"k-link k-menu-link",
|
|
240
240
|
{
|
|
241
241
|
"k-selected": e.dataItem.selected,
|
|
@@ -244,7 +244,7 @@ const Ne = (e) => {
|
|
|
244
244
|
),
|
|
245
245
|
key: "icon"
|
|
246
246
|
},
|
|
247
|
-
t ? /* @__PURE__ */ n.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ n.createElement(n.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass) && /* @__PURE__ */ n.createElement(
|
|
247
|
+
t ? /* @__PURE__ */ n.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ n.createElement(n.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass) && /* @__PURE__ */ n.createElement(A, { className: e.dataItem.iconClass, name: e.dataItem.icon, icon: e.dataItem.svgIcon }), e.dataItem.imageUrl && /* @__PURE__ */ n.createElement(
|
|
248
248
|
"img",
|
|
249
249
|
{
|
|
250
250
|
role: "presentation",
|
|
@@ -258,7 +258,7 @@ const Ne = (e) => {
|
|
|
258
258
|
return e.item !== void 0 && /* to be removed in 5.0.0 */
|
|
259
259
|
e.render !== void 0 ? e.render.call(void 0, a, e) : a;
|
|
260
260
|
};
|
|
261
|
-
|
|
261
|
+
Ee.displayName = "KendoReactButtonItem";
|
|
262
262
|
class Ke extends n.Component {
|
|
263
263
|
/**
|
|
264
264
|
* @hidden
|
|
@@ -275,7 +275,7 @@ Ke.propTypes = {
|
|
|
275
275
|
disabled: s.bool,
|
|
276
276
|
render: s.any
|
|
277
277
|
};
|
|
278
|
-
const
|
|
278
|
+
const $e = (e, o, t, i) => {
|
|
279
279
|
if (t)
|
|
280
280
|
return e;
|
|
281
281
|
const a = Math.min(i - 1, Math.max(0, e));
|
|
@@ -298,7 +298,7 @@ const Ae = (e, o, t, i) => {
|
|
|
298
298
|
return e;
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
|
-
function
|
|
301
|
+
function Ae(e) {
|
|
302
302
|
let o = { horizontal: "left", vertical: "bottom" };
|
|
303
303
|
return e && (o.horizontal = "right"), o;
|
|
304
304
|
}
|
|
@@ -312,7 +312,7 @@ class Le extends n.Component {
|
|
|
312
312
|
focused: !1,
|
|
313
313
|
focusedIndex: -1,
|
|
314
314
|
opened: !1
|
|
315
|
-
}, this.wrapper = null, this.mainButton = null, this.list = null, this.guid =
|
|
315
|
+
}, this.wrapper = null, this.mainButton = null, this.list = null, this.guid = me(), this.skipFocus = !1, this.buttonsData = [], this.onKeyDown = (t) => {
|
|
316
316
|
const { focusedIndex: i } = this.state;
|
|
317
317
|
if (t.altKey) {
|
|
318
318
|
!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));
|
|
@@ -332,15 +332,15 @@ class Le extends n.Component {
|
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
334
|
if (this.opened) {
|
|
335
|
-
const l =
|
|
335
|
+
const l = $e(
|
|
336
336
|
i,
|
|
337
337
|
t.keyCode,
|
|
338
338
|
t.altKey,
|
|
339
339
|
this.buttonsData.length
|
|
340
340
|
);
|
|
341
341
|
l !== i && (a = a || {}, a.focusedIndex = l);
|
|
342
|
-
const
|
|
343
|
-
!t.altKey && (
|
|
342
|
+
const u = t.keyCode === r.up || t.keyCode === r.down || t.keyCode === r.left || t.keyCode === r.right;
|
|
343
|
+
!t.altKey && (u || t.keyCode === r.home || t.keyCode === r.end) && t.preventDefault();
|
|
344
344
|
}
|
|
345
345
|
a && this.setState(a);
|
|
346
346
|
}, this.switchFocus = (t) => {
|
|
@@ -390,19 +390,19 @@ class Le extends n.Component {
|
|
|
390
390
|
*/
|
|
391
391
|
render() {
|
|
392
392
|
this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === Ke).map((c) => c.props);
|
|
393
|
-
const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled:
|
|
393
|
+
const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
|
|
394
394
|
return /* @__PURE__ */ n.createElement(
|
|
395
395
|
"div",
|
|
396
396
|
{
|
|
397
397
|
id: i,
|
|
398
398
|
style: a,
|
|
399
|
-
className:
|
|
399
|
+
className: f(
|
|
400
400
|
"k-split-button",
|
|
401
401
|
"k-button-group",
|
|
402
402
|
{
|
|
403
403
|
"k-focus": this.state.focused
|
|
404
404
|
},
|
|
405
|
-
`k-rounded-${
|
|
405
|
+
`k-rounded-${B.roundedMap[this.props.rounded || "medium"]}`,
|
|
406
406
|
this.props.className
|
|
407
407
|
),
|
|
408
408
|
onKeyDown: this.onKeyDown,
|
|
@@ -421,7 +421,7 @@ class Le extends n.Component {
|
|
|
421
421
|
fillMode: this.props.fillMode,
|
|
422
422
|
themeColor: this.props.themeColor,
|
|
423
423
|
onClick: (c) => this.onItemClick(c, -1),
|
|
424
|
-
disabled:
|
|
424
|
+
disabled: u || void 0,
|
|
425
425
|
tabIndex: l,
|
|
426
426
|
accessKey: this.props.accessKey,
|
|
427
427
|
className: this.props.buttonClass,
|
|
@@ -430,7 +430,7 @@ class Le extends n.Component {
|
|
|
430
430
|
iconClass: this.props.iconClass,
|
|
431
431
|
imageUrl: this.props.imageUrl,
|
|
432
432
|
dir: t,
|
|
433
|
-
"aria-disabled":
|
|
433
|
+
"aria-disabled": u,
|
|
434
434
|
"aria-haspopup": !0,
|
|
435
435
|
"aria-expanded": this.opened || void 0,
|
|
436
436
|
"aria-label": this.props.ariaLabel,
|
|
@@ -449,9 +449,9 @@ class Le extends n.Component {
|
|
|
449
449
|
fillMode: this.props.fillMode,
|
|
450
450
|
themeColor: this.props.themeColor,
|
|
451
451
|
icon: "caret-alt-down",
|
|
452
|
-
svgIcon:
|
|
452
|
+
svgIcon: ct,
|
|
453
453
|
className: "k-split-button-arrow",
|
|
454
|
-
disabled:
|
|
454
|
+
disabled: u || void 0,
|
|
455
455
|
tabIndex: -1,
|
|
456
456
|
onClick: this.onSplitPartClick,
|
|
457
457
|
onMouseDown: this.onDownSplitPart,
|
|
@@ -489,13 +489,13 @@ class Le extends n.Component {
|
|
|
489
489
|
renderPopup(o) {
|
|
490
490
|
const { popupSettings: t = {} } = this.props, { focusedIndex: i } = this.state;
|
|
491
491
|
return /* @__PURE__ */ n.createElement(
|
|
492
|
-
|
|
492
|
+
De,
|
|
493
493
|
{
|
|
494
494
|
anchor: this.wrapper,
|
|
495
495
|
show: this.opened,
|
|
496
496
|
animate: t.animate,
|
|
497
|
-
popupClass:
|
|
498
|
-
anchorAlign: t.anchorAlign ||
|
|
497
|
+
popupClass: f("k-menu-popup", t.popupClass),
|
|
498
|
+
anchorAlign: t.anchorAlign || Ae(o),
|
|
499
499
|
popupAlign: t.popupAlign || Te(o),
|
|
500
500
|
style: o ? { direction: "rtl" } : void 0,
|
|
501
501
|
onClose: this.onPopupClose
|
|
@@ -509,8 +509,8 @@ class Le extends n.Component {
|
|
|
509
509
|
tabIndex: -1,
|
|
510
510
|
ref: this.listRef,
|
|
511
511
|
"aria-activedescendant": i >= 0 ? `${this.guid}-${i}` : void 0,
|
|
512
|
-
className:
|
|
513
|
-
[`k-menu-group-${
|
|
512
|
+
className: f("k-group k-menu-group k-reset", {
|
|
513
|
+
[`k-menu-group-${B.sizeMap[this.props.size] || this.props.size}`]: this.props.size
|
|
514
514
|
})
|
|
515
515
|
},
|
|
516
516
|
this.renderChildItems()
|
|
@@ -520,7 +520,7 @@ class Le extends n.Component {
|
|
|
520
520
|
renderChildItems() {
|
|
521
521
|
const { item: o, itemRender: t, textField: i } = this.props;
|
|
522
522
|
return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
|
|
523
|
-
|
|
523
|
+
Ee,
|
|
524
524
|
{
|
|
525
525
|
className: "k-menu-item",
|
|
526
526
|
dataItem: a,
|
|
@@ -598,7 +598,7 @@ class He extends n.Component {
|
|
|
598
598
|
opened: !1,
|
|
599
599
|
focused: !1,
|
|
600
600
|
focusedIndex: -1
|
|
601
|
-
}, this.wrapper = null, this.mainButton = null, this.list = null, this.skipFocus = !1, this.guid =
|
|
601
|
+
}, this.wrapper = null, this.mainButton = null, this.list = null, this.skipFocus = !1, this.guid = me(), this.buttonsData = [], this.onKeyDown = (t) => {
|
|
602
602
|
const { focusedIndex: i } = this.state;
|
|
603
603
|
if (t.altKey) {
|
|
604
604
|
!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));
|
|
@@ -615,15 +615,15 @@ class He extends n.Component {
|
|
|
615
615
|
return;
|
|
616
616
|
}
|
|
617
617
|
if (this.opened) {
|
|
618
|
-
const l =
|
|
618
|
+
const l = $e(
|
|
619
619
|
i,
|
|
620
620
|
t.keyCode,
|
|
621
621
|
t.altKey,
|
|
622
622
|
this.buttonsData.length
|
|
623
623
|
);
|
|
624
624
|
a.focusedIndex = l;
|
|
625
|
-
const
|
|
626
|
-
!t.altKey && (
|
|
625
|
+
const u = t.keyCode === r.up || t.keyCode === r.down || t.keyCode === r.left || t.keyCode === r.right;
|
|
626
|
+
!t.altKey && (u || t.keyCode === r.home || t.keyCode === r.end) && t.preventDefault();
|
|
627
627
|
}
|
|
628
628
|
this.setState(a);
|
|
629
629
|
}, this.switchFocus = (t) => {
|
|
@@ -669,13 +669,13 @@ class He extends n.Component {
|
|
|
669
669
|
* @hidden
|
|
670
670
|
*/
|
|
671
671
|
render() {
|
|
672
|
-
const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled:
|
|
672
|
+
const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
|
|
673
673
|
return this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === _e).map((c) => c.props), /* @__PURE__ */ n.createElement(
|
|
674
674
|
"div",
|
|
675
675
|
{
|
|
676
676
|
id: i,
|
|
677
677
|
style: a,
|
|
678
|
-
className:
|
|
678
|
+
className: f(
|
|
679
679
|
"k-dropdown-button",
|
|
680
680
|
{
|
|
681
681
|
"k-focus": this.state.focused
|
|
@@ -697,7 +697,7 @@ class He extends n.Component {
|
|
|
697
697
|
themeColor: this.props.themeColor,
|
|
698
698
|
onClick: this.onClickMainButton,
|
|
699
699
|
onMouseDown: this.mouseDown,
|
|
700
|
-
disabled:
|
|
700
|
+
disabled: u || void 0,
|
|
701
701
|
tabIndex: l,
|
|
702
702
|
accessKey: this.props.accessKey,
|
|
703
703
|
icon: this.props.icon,
|
|
@@ -746,13 +746,13 @@ class He extends n.Component {
|
|
|
746
746
|
renderPopup(o) {
|
|
747
747
|
const { popupSettings: t = {} } = this.props, { focusedIndex: i } = this.state;
|
|
748
748
|
return /* @__PURE__ */ n.createElement(
|
|
749
|
-
|
|
749
|
+
De,
|
|
750
750
|
{
|
|
751
751
|
anchor: this.wrapper,
|
|
752
752
|
show: this.opened,
|
|
753
753
|
animate: t.animate,
|
|
754
|
-
popupClass:
|
|
755
|
-
anchorAlign: t.anchorAlign ||
|
|
754
|
+
popupClass: f("k-menu-popup", t.popupClass),
|
|
755
|
+
anchorAlign: t.anchorAlign || Ae(o),
|
|
756
756
|
popupAlign: t.popupAlign || Te(o),
|
|
757
757
|
style: o ? { direction: "rtl" } : void 0,
|
|
758
758
|
onClose: this.onPopupClose
|
|
@@ -766,8 +766,8 @@ class He extends n.Component {
|
|
|
766
766
|
tabIndex: -1,
|
|
767
767
|
"aria-activedescendant": i >= 0 ? `${this.guid}-${i}` : void 0,
|
|
768
768
|
ref: this.listRef,
|
|
769
|
-
className:
|
|
770
|
-
[`k-menu-group-${
|
|
769
|
+
className: f("k-group k-menu-group k-reset", {
|
|
770
|
+
[`k-menu-group-${B.sizeMap[this.props.size] || this.props.size}`]: this.props.size
|
|
771
771
|
})
|
|
772
772
|
},
|
|
773
773
|
this.renderChildItems()
|
|
@@ -777,7 +777,7 @@ class He extends n.Component {
|
|
|
777
777
|
renderChildItems() {
|
|
778
778
|
const { item: o, itemRender: t, textField: i } = this.props;
|
|
779
779
|
return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
|
|
780
|
-
|
|
780
|
+
Ee,
|
|
781
781
|
{
|
|
782
782
|
className: "k-menu-item",
|
|
783
783
|
dataItem: a,
|
|
@@ -830,10 +830,10 @@ He.defaultProps = {
|
|
|
830
830
|
fillMode: "solid",
|
|
831
831
|
themeColor: "base"
|
|
832
832
|
};
|
|
833
|
-
const
|
|
833
|
+
const Ie = class extends n.Component {
|
|
834
834
|
constructor(e) {
|
|
835
835
|
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) => {
|
|
836
|
-
const { tabIndex: t =
|
|
836
|
+
const { tabIndex: t = Ie.defaultProps.tabIndex } = this.props;
|
|
837
837
|
this.buttons.forEach((i, a) => {
|
|
838
838
|
i.tabIndex = a === o ? t : -1;
|
|
839
839
|
});
|
|
@@ -856,7 +856,7 @@ const xe = class extends n.Component {
|
|
|
856
856
|
}, R(O);
|
|
857
857
|
}
|
|
858
858
|
get selectors() {
|
|
859
|
-
return this.props.buttons ||
|
|
859
|
+
return this.props.buttons || pt;
|
|
860
860
|
}
|
|
861
861
|
get focusedIndex() {
|
|
862
862
|
const e = this.element && this.element.querySelector(this.focusedSelector);
|
|
@@ -898,10 +898,10 @@ const xe = class extends n.Component {
|
|
|
898
898
|
{
|
|
899
899
|
id: this.props.id,
|
|
900
900
|
"aria-label": this.props.ariaLabel,
|
|
901
|
-
className:
|
|
901
|
+
className: f(
|
|
902
902
|
"k-toolbar",
|
|
903
903
|
{
|
|
904
|
-
[`k-toolbar-${
|
|
904
|
+
[`k-toolbar-${B.sizeMap[this.props.size] || this.props.size}`]: this.props.size
|
|
905
905
|
},
|
|
906
906
|
this.props.className
|
|
907
907
|
),
|
|
@@ -915,7 +915,7 @@ const xe = class extends n.Component {
|
|
|
915
915
|
);
|
|
916
916
|
}
|
|
917
917
|
focusButton(e, o) {
|
|
918
|
-
const { tabIndex: t =
|
|
918
|
+
const { tabIndex: t = Ie.defaultProps.tabIndex } = this.props, i = this.buttons[o];
|
|
919
919
|
if (i) {
|
|
920
920
|
i.tabIndex = t, i.focus();
|
|
921
921
|
const a = this.buttons[e];
|
|
@@ -923,7 +923,7 @@ const xe = class extends n.Component {
|
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
};
|
|
926
|
-
let Ue =
|
|
926
|
+
let Ue = Ie;
|
|
927
927
|
Ue.propTypes = {
|
|
928
928
|
tabIndex: s.number,
|
|
929
929
|
dir: s.string,
|
|
@@ -939,7 +939,7 @@ Ue.defaultProps = {
|
|
|
939
939
|
tabIndex: 0,
|
|
940
940
|
size: "medium"
|
|
941
941
|
};
|
|
942
|
-
class
|
|
942
|
+
class bt extends n.PureComponent {
|
|
943
943
|
constructor() {
|
|
944
944
|
super(...arguments), this._element = null;
|
|
945
945
|
}
|
|
@@ -957,7 +957,7 @@ class gt extends n.PureComponent {
|
|
|
957
957
|
"div",
|
|
958
958
|
{
|
|
959
959
|
id: this.props.id,
|
|
960
|
-
className:
|
|
960
|
+
className: f("k-toolbar-item", this.props.className),
|
|
961
961
|
style: this.props.style,
|
|
962
962
|
ref: (o) => this._element = o
|
|
963
963
|
},
|
|
@@ -965,22 +965,22 @@ class gt extends n.PureComponent {
|
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
|
|
968
|
+
bt.propTypes = {
|
|
969
969
|
className: s.string
|
|
970
970
|
};
|
|
971
|
-
class
|
|
971
|
+
class At extends n.PureComponent {
|
|
972
972
|
/**
|
|
973
973
|
* @hidden
|
|
974
974
|
*/
|
|
975
975
|
render() {
|
|
976
|
-
return /* @__PURE__ */ n.createElement("div", { className:
|
|
976
|
+
return /* @__PURE__ */ n.createElement("div", { className: f("k-separator", this.props.className) });
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
const We = n.forwardRef((e, o) => {
|
|
980
980
|
const t = n.useRef(null), i = n.useRef(null);
|
|
981
981
|
n.useImperativeHandle(i, () => ({ element: t.current })), n.useImperativeHandle(o, () => ({ element: t.current }));
|
|
982
982
|
const a = n.useMemo(
|
|
983
|
-
() =>
|
|
983
|
+
() => f(
|
|
984
984
|
"k-spacer",
|
|
985
985
|
e.className
|
|
986
986
|
),
|
|
@@ -998,12 +998,12 @@ We.displayName = "KendoReactToolbarSpacer";
|
|
|
998
998
|
We.propTypes = {
|
|
999
999
|
className: s.string
|
|
1000
1000
|
};
|
|
1001
|
-
const je =
|
|
1002
|
-
}]), Ve =
|
|
1003
|
-
}]), Ze =
|
|
1001
|
+
const je = xe.createContext([null, (e) => {
|
|
1002
|
+
}]), Ve = xe.createContext([null, (e) => {
|
|
1003
|
+
}]), Ze = xe.createContext([null, (e) => {
|
|
1004
1004
|
}]);
|
|
1005
1005
|
var te = /* @__PURE__ */ ((e) => (e.next = "next", e.prev = "prev", e.current = "current", e.reset = "reset", e))(te || {});
|
|
1006
|
-
const
|
|
1006
|
+
const gt = (e, o) => {
|
|
1007
1007
|
const t = o.items.findIndex((i) => i === e);
|
|
1008
1008
|
switch (o.type) {
|
|
1009
1009
|
case "next":
|
|
@@ -1019,7 +1019,7 @@ const kt = (e, o) => {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
1021
|
var qe = /* @__PURE__ */ ((e) => (e.remove = "remove", e.add = "add", e.reorder = "reorder", e))(qe || {});
|
|
1022
|
-
const
|
|
1022
|
+
const kt = (e, o) => {
|
|
1023
1023
|
switch (o.type) {
|
|
1024
1024
|
case "add":
|
|
1025
1025
|
break;
|
|
@@ -1031,8 +1031,8 @@ const yt = (e, o) => {
|
|
|
1031
1031
|
return e;
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
|
-
var
|
|
1035
|
-
const
|
|
1034
|
+
var pe = /* @__PURE__ */ ((e) => (e.toggle = "toggle", e.remove = "remove", e))(pe || {});
|
|
1035
|
+
const yt = (e, o) => {
|
|
1036
1036
|
switch (o.selection) {
|
|
1037
1037
|
case "single":
|
|
1038
1038
|
switch (o.type) {
|
|
@@ -1067,12 +1067,12 @@ const vt = (e, o) => {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
}, j = n.forwardRef((e, o) => {
|
|
1069
1069
|
R(O);
|
|
1070
|
-
const t = n.useRef(null), i = n.useRef(null), a =
|
|
1070
|
+
const t = n.useRef(null), i = n.useRef(null), a = we(i, e.dir);
|
|
1071
1071
|
n.useImperativeHandle(t, () => ({
|
|
1072
1072
|
element: i.current,
|
|
1073
1073
|
props: e
|
|
1074
1074
|
})), n.useImperativeHandle(o, () => t.current);
|
|
1075
|
-
const [l,
|
|
1075
|
+
const [l, u] = n.useContext(je), [c, g] = n.useContext(Ve), [, C] = n.useContext(Ze), h = n.useMemo(
|
|
1076
1076
|
() => e.selected || (Array.isArray(l) ? l.some((p) => p === e.value) : l === e.value),
|
|
1077
1077
|
[e.selected, e.value, l]
|
|
1078
1078
|
), w = n.useMemo(
|
|
@@ -1087,12 +1087,12 @@ const vt = (e, o) => {
|
|
|
1087
1087
|
);
|
|
1088
1088
|
const N = n.useCallback(
|
|
1089
1089
|
(p) => {
|
|
1090
|
-
|
|
1090
|
+
u({ type: pe.toggle, payload: e.value, event: p });
|
|
1091
1091
|
},
|
|
1092
|
-
[
|
|
1092
|
+
[u, e.value]
|
|
1093
1093
|
), D = n.useCallback(
|
|
1094
1094
|
(p) => {
|
|
1095
|
-
e.removable && (C({ type: qe.remove, payload: e.value, event: p }), g({ type: te.reset, payload: e.value, event: p }),
|
|
1095
|
+
e.removable && (C({ type: qe.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(
|
|
1096
1096
|
void 0,
|
|
1097
1097
|
{
|
|
1098
1098
|
target: t.current,
|
|
@@ -1100,7 +1100,7 @@ const vt = (e, o) => {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
));
|
|
1102
1102
|
},
|
|
1103
|
-
[e.onRemove, e.value, e.removable, C, g,
|
|
1103
|
+
[e.onRemove, e.value, e.removable, C, g, u]
|
|
1104
1104
|
), S = n.useCallback(
|
|
1105
1105
|
(p) => {
|
|
1106
1106
|
switch (p.keyCode) {
|
|
@@ -1111,7 +1111,7 @@ const vt = (e, o) => {
|
|
|
1111
1111
|
g({ type: te.next, payload: e.value, event: p });
|
|
1112
1112
|
break;
|
|
1113
1113
|
case r.enter:
|
|
1114
|
-
|
|
1114
|
+
u({ type: pe.toggle, payload: e.value, event: p });
|
|
1115
1115
|
break;
|
|
1116
1116
|
case r.delete:
|
|
1117
1117
|
D(p);
|
|
@@ -1125,7 +1125,7 @@ const vt = (e, o) => {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
1127
|
},
|
|
1128
|
-
[e.onKeyDown, e.value, g,
|
|
1128
|
+
[e.onKeyDown, e.value, g, u, D]
|
|
1129
1129
|
), F = n.useCallback(
|
|
1130
1130
|
(p) => {
|
|
1131
1131
|
g({ payload: e.value, type: te.current, event: p }), e.onFocus && e.onFocus.call(
|
|
@@ -1158,42 +1158,42 @@ const vt = (e, o) => {
|
|
|
1158
1158
|
style: e.style,
|
|
1159
1159
|
ref: i,
|
|
1160
1160
|
dir: a,
|
|
1161
|
-
tabIndex:
|
|
1162
|
-
className:
|
|
1161
|
+
tabIndex: fe(e.tabIndex, e.disabled, void 0),
|
|
1162
|
+
className: f(
|
|
1163
1163
|
"k-chip",
|
|
1164
1164
|
{
|
|
1165
1165
|
"k-rtl": a === "rtl",
|
|
1166
1166
|
"k-disabled": e.disabled,
|
|
1167
|
-
"k-selected":
|
|
1167
|
+
"k-selected": h,
|
|
1168
1168
|
"k-focus": w,
|
|
1169
|
-
[`k-chip-${
|
|
1170
|
-
[`k-rounded-${
|
|
1169
|
+
[`k-chip-${B.sizeMap[e.size] || e.size}`]: e.size,
|
|
1170
|
+
[`k-rounded-${B.roundedMap[e.rounded] || e.rounded}`]: e.rounded,
|
|
1171
1171
|
[`k-chip-${e.fillMode}`]: e.fillMode,
|
|
1172
1172
|
[`k-chip-${e.fillMode}-${e.themeColor}`]: !!(e.fillMode && e.themeColor)
|
|
1173
1173
|
},
|
|
1174
1174
|
e.className
|
|
1175
1175
|
),
|
|
1176
|
-
"aria-pressed": e.role ? void 0 :
|
|
1176
|
+
"aria-pressed": e.role ? void 0 : h,
|
|
1177
1177
|
"aria-disabled": e.disabled,
|
|
1178
1178
|
"aria-describedby": e.ariaDescribedBy,
|
|
1179
1179
|
onFocus: F,
|
|
1180
1180
|
onBlur: I,
|
|
1181
1181
|
onKeyDown: S
|
|
1182
1182
|
},
|
|
1183
|
-
|
|
1184
|
-
|
|
1183
|
+
h && (e.selectedIcon || e.selectedSvgIcon) && /* @__PURE__ */ n.createElement(
|
|
1184
|
+
A,
|
|
1185
1185
|
{
|
|
1186
1186
|
className: "k-chip-icon",
|
|
1187
|
-
name: e.selectedIcon ?
|
|
1187
|
+
name: e.selectedIcon ? Ce(e.selectedIcon) : void 0,
|
|
1188
1188
|
icon: e.selectedSvgIcon,
|
|
1189
1189
|
size: "small"
|
|
1190
1190
|
}
|
|
1191
1191
|
),
|
|
1192
1192
|
(e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(
|
|
1193
|
-
|
|
1193
|
+
A,
|
|
1194
1194
|
{
|
|
1195
1195
|
className: "k-chip-icon",
|
|
1196
|
-
name: e.icon ?
|
|
1196
|
+
name: e.icon ? Ce(e.icon) : void 0,
|
|
1197
1197
|
icon: e.svgIcon,
|
|
1198
1198
|
size: "small"
|
|
1199
1199
|
}
|
|
@@ -1220,16 +1220,16 @@ const vt = (e, o) => {
|
|
|
1220
1220
|
},
|
|
1221
1221
|
e.text
|
|
1222
1222
|
)),
|
|
1223
|
-
e.removable && /* @__PURE__ */ n.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ n.createElement("span", { className:
|
|
1224
|
-
|
|
1223
|
+
e.removable && /* @__PURE__ */ n.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ n.createElement("span", { className: f("k-chip-action", "k-chip-remove-action"), onClick: D }, /* @__PURE__ */ n.createElement(
|
|
1224
|
+
A,
|
|
1225
1225
|
{
|
|
1226
|
-
name: e.removeIcon ?
|
|
1227
|
-
icon: e.removeSvgIcon ||
|
|
1226
|
+
name: e.removeIcon ? Ce(e.removeIcon) : void 0,
|
|
1227
|
+
icon: e.removeSvgIcon || dt,
|
|
1228
1228
|
size: "small"
|
|
1229
1229
|
}
|
|
1230
1230
|
)))
|
|
1231
1231
|
);
|
|
1232
|
-
}),
|
|
1232
|
+
}), vt = {
|
|
1233
1233
|
id: s.string,
|
|
1234
1234
|
text: s.string,
|
|
1235
1235
|
value: s.any,
|
|
@@ -1251,7 +1251,7 @@ const vt = (e, o) => {
|
|
|
1251
1251
|
fillMode: s.oneOf([null, "outline", "solid"]),
|
|
1252
1252
|
// eslint-disable-next-line max-len
|
|
1253
1253
|
themeColor: s.oneOf([null, "base", "info", "success", "warning", "error"])
|
|
1254
|
-
},
|
|
1254
|
+
}, Ct = {
|
|
1255
1255
|
disabled: !1,
|
|
1256
1256
|
removable: !1,
|
|
1257
1257
|
removeIcon: "k-i-x-circle",
|
|
@@ -1262,35 +1262,35 @@ const vt = (e, o) => {
|
|
|
1262
1262
|
themeColor: "base"
|
|
1263
1263
|
};
|
|
1264
1264
|
j.displayName = "KendoReactChip";
|
|
1265
|
-
j.propTypes =
|
|
1266
|
-
j.defaultProps =
|
|
1267
|
-
const
|
|
1265
|
+
j.propTypes = vt;
|
|
1266
|
+
j.defaultProps = Ct;
|
|
1267
|
+
const It = (e, o, t) => {
|
|
1268
1268
|
const [i, a] = n.useState(e);
|
|
1269
|
-
return [i, (
|
|
1270
|
-
const c =
|
|
1271
|
-
t && t(c,
|
|
1269
|
+
return [i, (u) => {
|
|
1270
|
+
const c = yt(o.state || i, { ...u, ...o });
|
|
1271
|
+
t && t(c, u.event), a(c);
|
|
1272
1272
|
}];
|
|
1273
|
-
},
|
|
1273
|
+
}, xt = (e) => {
|
|
1274
1274
|
const [o, t] = n.useState(null);
|
|
1275
1275
|
return [o, (a) => {
|
|
1276
|
-
const l =
|
|
1276
|
+
const l = gt(a.payload, { ...a, ...e });
|
|
1277
1277
|
t(l);
|
|
1278
1278
|
}];
|
|
1279
|
-
},
|
|
1279
|
+
}, wt = (e, o, t) => {
|
|
1280
1280
|
const [i, a] = n.useState(e);
|
|
1281
|
-
return [i, (
|
|
1282
|
-
const c =
|
|
1283
|
-
t && t(c,
|
|
1281
|
+
return [i, (u) => {
|
|
1282
|
+
const c = kt(o.state || i, { ...u, ...o });
|
|
1283
|
+
t && t(c, u.event), a(c);
|
|
1284
1284
|
}];
|
|
1285
|
-
},
|
|
1285
|
+
}, Ne = n.forwardRef((e, o) => {
|
|
1286
1286
|
R(O);
|
|
1287
|
-
const t = n.useRef(null), i = n.useRef(null), a =
|
|
1287
|
+
const t = n.useRef(null), i = n.useRef(null), a = we(i, e.dir), {
|
|
1288
1288
|
chip: l,
|
|
1289
|
-
id:
|
|
1289
|
+
id: u,
|
|
1290
1290
|
style: c,
|
|
1291
1291
|
tabIndex: g,
|
|
1292
1292
|
disabled: C,
|
|
1293
|
-
size:
|
|
1293
|
+
size: h,
|
|
1294
1294
|
className: w,
|
|
1295
1295
|
ariaDescribedBy: N,
|
|
1296
1296
|
ariaLabelledBy: D,
|
|
@@ -1301,7 +1301,7 @@ const xt = (e, o, t) => {
|
|
|
1301
1301
|
valueField: p = W.valueField,
|
|
1302
1302
|
textField: T = W.textField,
|
|
1303
1303
|
onChange: K,
|
|
1304
|
-
onDataChange:
|
|
1304
|
+
onDataChange: P
|
|
1305
1305
|
} = e, L = n.useMemo(
|
|
1306
1306
|
() => l || j,
|
|
1307
1307
|
[l, j]
|
|
@@ -1310,32 +1310,32 @@ const xt = (e, o, t) => {
|
|
|
1310
1310
|
element: i.current,
|
|
1311
1311
|
props: e
|
|
1312
1312
|
})), n.useImperativeHandle(o, () => t.current);
|
|
1313
|
-
const
|
|
1314
|
-
(
|
|
1313
|
+
const $ = n.useCallback(
|
|
1314
|
+
(m, k) => {
|
|
1315
1315
|
K && t.current && K.call(void 0, {
|
|
1316
|
-
value:
|
|
1316
|
+
value: m,
|
|
1317
1317
|
target: t.current,
|
|
1318
1318
|
syntheticEvent: k
|
|
1319
1319
|
});
|
|
1320
1320
|
},
|
|
1321
1321
|
[K]
|
|
1322
|
-
), [V, Z] =
|
|
1322
|
+
), [V, Z] = It(
|
|
1323
1323
|
I,
|
|
1324
1324
|
{
|
|
1325
1325
|
selection: F,
|
|
1326
1326
|
state: I
|
|
1327
1327
|
},
|
|
1328
|
-
|
|
1328
|
+
$
|
|
1329
1329
|
), oe = n.useCallback(
|
|
1330
|
-
(
|
|
1331
|
-
|
|
1332
|
-
value:
|
|
1330
|
+
(m, k) => {
|
|
1331
|
+
P && t.current && P.call(void 0, {
|
|
1332
|
+
value: m,
|
|
1333
1333
|
target: t.current,
|
|
1334
1334
|
syntheticEvent: k
|
|
1335
1335
|
});
|
|
1336
1336
|
},
|
|
1337
|
-
[
|
|
1338
|
-
), [q, ie] =
|
|
1337
|
+
[P]
|
|
1338
|
+
), [q, ie] = wt(
|
|
1339
1339
|
e.data || E,
|
|
1340
1340
|
{
|
|
1341
1341
|
state: e.data,
|
|
@@ -1343,7 +1343,7 @@ const xt = (e, o, t) => {
|
|
|
1343
1343
|
},
|
|
1344
1344
|
oe
|
|
1345
1345
|
), G = n.useCallback(
|
|
1346
|
-
(
|
|
1346
|
+
(m, k) => (m.push(k[p]), m),
|
|
1347
1347
|
[p]
|
|
1348
1348
|
), _ = n.useMemo(
|
|
1349
1349
|
() => e.data || q,
|
|
@@ -1355,28 +1355,28 @@ const xt = (e, o, t) => {
|
|
|
1355
1355
|
() => _.reduce(G, []),
|
|
1356
1356
|
[_, G]
|
|
1357
1357
|
), X = n.useCallback(
|
|
1358
|
-
(
|
|
1358
|
+
(m) => Be(p)(m),
|
|
1359
1359
|
[p]
|
|
1360
1360
|
), y = n.useCallback(
|
|
1361
|
-
(
|
|
1361
|
+
(m) => Be(T)(m),
|
|
1362
1362
|
[T]
|
|
1363
|
-
), [
|
|
1364
|
-
return /* @__PURE__ */ n.createElement(je.Provider, { value: [ae, Z] }, /* @__PURE__ */ n.createElement(Ve.Provider, { value: [
|
|
1363
|
+
), [be, ge] = xt({ items: le }), re = Oe(e, t);
|
|
1364
|
+
return /* @__PURE__ */ n.createElement(je.Provider, { value: [ae, Z] }, /* @__PURE__ */ n.createElement(Ve.Provider, { value: [be, ge] }, /* @__PURE__ */ n.createElement(Ze.Provider, { value: [_, ie] }, /* @__PURE__ */ n.createElement(
|
|
1365
1365
|
"div",
|
|
1366
1366
|
{
|
|
1367
1367
|
ref: i,
|
|
1368
1368
|
...re,
|
|
1369
1369
|
role: "listbox",
|
|
1370
|
-
id:
|
|
1370
|
+
id: u,
|
|
1371
1371
|
dir: a,
|
|
1372
1372
|
style: c,
|
|
1373
|
-
tabIndex:
|
|
1374
|
-
className:
|
|
1373
|
+
tabIndex: fe(g, C, void 0),
|
|
1374
|
+
className: f(
|
|
1375
1375
|
"k-chip-list",
|
|
1376
1376
|
{
|
|
1377
1377
|
"k-rtl": a === "rtl",
|
|
1378
1378
|
"k-disabled": C,
|
|
1379
|
-
[`k-chip-list-${
|
|
1379
|
+
[`k-chip-list-${B.sizeMap[h] || h}`]: h
|
|
1380
1380
|
},
|
|
1381
1381
|
w
|
|
1382
1382
|
),
|
|
@@ -1384,21 +1384,21 @@ const xt = (e, o, t) => {
|
|
|
1384
1384
|
"aria-labelledby": D,
|
|
1385
1385
|
"aria-describedby": N
|
|
1386
1386
|
},
|
|
1387
|
-
_.map((
|
|
1387
|
+
_.map((m, k) => /* @__PURE__ */ n.createElement(
|
|
1388
1388
|
L,
|
|
1389
1389
|
{
|
|
1390
1390
|
role: "option",
|
|
1391
|
-
dataItem:
|
|
1392
|
-
size:
|
|
1393
|
-
key: [X(
|
|
1394
|
-
text: y(
|
|
1395
|
-
value: X(
|
|
1396
|
-
ariaLabel:
|
|
1397
|
-
svgIcon:
|
|
1391
|
+
dataItem: m,
|
|
1392
|
+
size: h,
|
|
1393
|
+
key: [X(m), k].join("-"),
|
|
1394
|
+
text: y(m),
|
|
1395
|
+
value: X(m),
|
|
1396
|
+
ariaLabel: m.ariaLabel,
|
|
1397
|
+
svgIcon: m.svgIcon || void 0
|
|
1398
1398
|
}
|
|
1399
1399
|
))
|
|
1400
1400
|
))));
|
|
1401
|
-
}),
|
|
1401
|
+
}), Dt = {
|
|
1402
1402
|
id: s.string,
|
|
1403
1403
|
className: s.string,
|
|
1404
1404
|
tabIndex: s.number,
|
|
@@ -1428,20 +1428,20 @@ const xt = (e, o, t) => {
|
|
|
1428
1428
|
valueField: "value",
|
|
1429
1429
|
removable: "removable"
|
|
1430
1430
|
};
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
const
|
|
1431
|
+
Ne.displayName = "KendoReactChipList";
|
|
1432
|
+
Ne.propTypes = Dt;
|
|
1433
|
+
Ne.defaultProps = W;
|
|
1434
|
+
const Se = n.forwardRef((e, o) => {
|
|
1435
1435
|
const {
|
|
1436
1436
|
className: t,
|
|
1437
1437
|
disabled: i,
|
|
1438
1438
|
text: a,
|
|
1439
1439
|
icon: l,
|
|
1440
|
-
style:
|
|
1440
|
+
style: u,
|
|
1441
1441
|
id: c,
|
|
1442
1442
|
focused: g,
|
|
1443
1443
|
tabIndex: C,
|
|
1444
|
-
index:
|
|
1444
|
+
index: h,
|
|
1445
1445
|
dataItem: w,
|
|
1446
1446
|
item: N,
|
|
1447
1447
|
svgIcon: D,
|
|
@@ -1462,12 +1462,12 @@ const Fe = n.forwardRef((e, o) => {
|
|
|
1462
1462
|
);
|
|
1463
1463
|
n.useImperativeHandle(o, T);
|
|
1464
1464
|
const K = n.useCallback(
|
|
1465
|
-
(
|
|
1466
|
-
F &&
|
|
1465
|
+
($) => {
|
|
1466
|
+
F && h !== void 0 && !i && F($, h);
|
|
1467
1467
|
},
|
|
1468
|
-
[F,
|
|
1469
|
-
),
|
|
1470
|
-
() =>
|
|
1468
|
+
[F, h]
|
|
1469
|
+
), P = n.useMemo(
|
|
1470
|
+
() => f(
|
|
1471
1471
|
"k-fab-item",
|
|
1472
1472
|
{
|
|
1473
1473
|
"k-focus": g,
|
|
@@ -1482,10 +1482,10 @@ const Fe = n.forwardRef((e, o) => {
|
|
|
1482
1482
|
{
|
|
1483
1483
|
ref: E,
|
|
1484
1484
|
id: c,
|
|
1485
|
-
className:
|
|
1486
|
-
style:
|
|
1485
|
+
className: P,
|
|
1486
|
+
style: u,
|
|
1487
1487
|
role: "menuitem",
|
|
1488
|
-
tabIndex:
|
|
1488
|
+
tabIndex: fe(C, i),
|
|
1489
1489
|
"aria-disabled": i,
|
|
1490
1490
|
"aria-label": `${a || ""} floatingactionbutton item`,
|
|
1491
1491
|
onClick: K,
|
|
@@ -1493,10 +1493,10 @@ const Fe = n.forwardRef((e, o) => {
|
|
|
1493
1493
|
onPointerDown: S,
|
|
1494
1494
|
...I
|
|
1495
1495
|
},
|
|
1496
|
-
L ? /* @__PURE__ */ n.createElement(L, { itemIndex:
|
|
1496
|
+
L ? /* @__PURE__ */ n.createElement(L, { itemIndex: h, item: w }) : /* @__PURE__ */ n.createElement(n.Fragment, null, a && /* @__PURE__ */ n.createElement("span", { className: "k-fab-item-text" }, a), l || D ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-item-icon", name: l, icon: D }) : null)
|
|
1497
1497
|
);
|
|
1498
1498
|
});
|
|
1499
|
-
|
|
1499
|
+
Se.propTypes = {
|
|
1500
1500
|
className: s.string,
|
|
1501
1501
|
style: s.object,
|
|
1502
1502
|
children: s.any,
|
|
@@ -1509,48 +1509,48 @@ Fe.propTypes = {
|
|
|
1509
1509
|
tabIndex: s.number,
|
|
1510
1510
|
customProp: s.any
|
|
1511
1511
|
};
|
|
1512
|
-
|
|
1513
|
-
const Re = "16px",
|
|
1512
|
+
Se.displayName = "KendoFloatingActionButtonItem";
|
|
1513
|
+
const Re = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Et = (e, o) => {
|
|
1514
1514
|
const t = { horizontal: o ? "right" : "left", vertical: "bottom" };
|
|
1515
1515
|
return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
|
|
1516
|
-
},
|
|
1516
|
+
}, Nt = (e, o) => {
|
|
1517
1517
|
const t = { horizontal: o ? "right" : "left", vertical: "top" };
|
|
1518
1518
|
return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
|
|
1519
|
-
},
|
|
1519
|
+
}, St = (e, o) => {
|
|
1520
1520
|
const t = o === "end" ? "end" : "start";
|
|
1521
1521
|
return {
|
|
1522
1522
|
rtl: { end: "k-text-left", start: "k-text-right" },
|
|
1523
1523
|
ltr: { start: "k-text-left", end: "k-text-right" }
|
|
1524
1524
|
}[e][t];
|
|
1525
|
-
},
|
|
1525
|
+
}, Ft = (e, o, t, i) => {
|
|
1526
1526
|
const a = o.horizontal, l = o.vertical;
|
|
1527
1527
|
if (e.current) {
|
|
1528
|
-
const
|
|
1529
|
-
e.current.style.setProperty(
|
|
1528
|
+
const u = t && t.x !== void 0 ? he(t.x) : Re, c = t && t.x !== void 0 ? `calc(50% + ${he(t.x)})` : "50%", g = t && t.y !== void 0 ? he(t.y) : Re, C = t && t.y !== void 0 ? `calc(50% + ${he(t.y)})` : "50%";
|
|
1529
|
+
e.current.style.setProperty(zt(o, i), a === "center" ? c : u), e.current.style.setProperty(Pt(o), 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"));
|
|
1530
1530
|
}
|
|
1531
|
-
},
|
|
1531
|
+
}, zt = (e, o) => {
|
|
1532
1532
|
const { horizontal: t } = e;
|
|
1533
1533
|
return {
|
|
1534
1534
|
end: o ? "left" : "right",
|
|
1535
1535
|
center: "left",
|
|
1536
1536
|
start: o ? "right" : "left"
|
|
1537
1537
|
}[t || "end"];
|
|
1538
|
-
},
|
|
1538
|
+
}, Pt = (e) => ({
|
|
1539
1539
|
top: "top",
|
|
1540
1540
|
middle: "top",
|
|
1541
1541
|
bottom: "bottom"
|
|
1542
|
-
})[e.vertical || "bottom"],
|
|
1542
|
+
})[e.vertical || "bottom"], Bt = 2, Mt = 100, Ge = n.forwardRef((e, o) => {
|
|
1543
1543
|
R(O);
|
|
1544
1544
|
const {
|
|
1545
1545
|
align: t = Y.align,
|
|
1546
1546
|
alignOffset: i,
|
|
1547
1547
|
className: a,
|
|
1548
1548
|
disabled: l,
|
|
1549
|
-
icon:
|
|
1549
|
+
icon: u,
|
|
1550
1550
|
svgIcon: c,
|
|
1551
1551
|
iconClass: g,
|
|
1552
1552
|
id: C,
|
|
1553
|
-
items:
|
|
1553
|
+
items: h,
|
|
1554
1554
|
item: w,
|
|
1555
1555
|
text: N,
|
|
1556
1556
|
positionMode: D = Y.positionMode,
|
|
@@ -1561,9 +1561,9 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1561
1561
|
overlayStyle: p,
|
|
1562
1562
|
tabIndex: T,
|
|
1563
1563
|
accessKey: K,
|
|
1564
|
-
popupSettings:
|
|
1564
|
+
popupSettings: P = {},
|
|
1565
1565
|
modal: L,
|
|
1566
|
-
onClick:
|
|
1566
|
+
onClick: $,
|
|
1567
1567
|
onItemClick: V,
|
|
1568
1568
|
onFocus: Z,
|
|
1569
1569
|
onBlur: oe,
|
|
@@ -1571,23 +1571,23 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1571
1571
|
onOpen: ie,
|
|
1572
1572
|
onClose: G,
|
|
1573
1573
|
..._
|
|
1574
|
-
} = e, ae =
|
|
1574
|
+
} = e, ae = lt(), le = ae ? ae + Bt : Mt, X = n.useRef(null), y = n.useRef(null), be = n.useRef(null), ge = n.useRef(null), re = n.useCallback(
|
|
1575
1575
|
() => {
|
|
1576
1576
|
y.current && y.current.focus();
|
|
1577
1577
|
},
|
|
1578
1578
|
[]
|
|
1579
|
-
),
|
|
1579
|
+
), m = n.useCallback(
|
|
1580
1580
|
() => ({
|
|
1581
1581
|
element: y.current,
|
|
1582
1582
|
focus: re
|
|
1583
1583
|
}),
|
|
1584
1584
|
[re]
|
|
1585
1585
|
);
|
|
1586
|
-
n.useImperativeHandle(X,
|
|
1587
|
-
const [k,
|
|
1586
|
+
n.useImperativeHandle(X, m), n.useImperativeHandle(o, () => X.current);
|
|
1587
|
+
const [k, z] = n.useState(!1), [ce, H] = n.useState(!1), [J, v] = n.useState(-1), Xe = n.useMemo(() => me(), []), ke = we(y, e.dir), Q = ke === "rtl", de = n.useMemo(() => me(), []);
|
|
1588
1588
|
n.useEffect(
|
|
1589
1589
|
() => {
|
|
1590
|
-
|
|
1590
|
+
Ft(y, t, i, Q);
|
|
1591
1591
|
},
|
|
1592
1592
|
[y, t, i, Q]
|
|
1593
1593
|
), n.useEffect(
|
|
@@ -1597,118 +1597,122 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1597
1597
|
[ce, y]
|
|
1598
1598
|
);
|
|
1599
1599
|
const U = n.useCallback(
|
|
1600
|
-
(
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1600
|
+
(d, b) => {
|
|
1601
|
+
h && x(
|
|
1602
|
+
b ? ie : G,
|
|
1603
|
+
d,
|
|
1604
|
+
m(),
|
|
1605
1605
|
void 0
|
|
1606
1606
|
);
|
|
1607
1607
|
},
|
|
1608
|
-
[ie, G,
|
|
1609
|
-
),
|
|
1610
|
-
(
|
|
1611
|
-
!
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1608
|
+
[ie, G, h]
|
|
1609
|
+
), Fe = n.useCallback(
|
|
1610
|
+
(d) => {
|
|
1611
|
+
!d.target || l || (!h && $ ? x(
|
|
1612
|
+
$,
|
|
1613
|
+
d,
|
|
1614
|
+
m(),
|
|
1615
1615
|
void 0
|
|
1616
|
-
) : (
|
|
1616
|
+
) : (z(!k), H(!0), v(k ? -1 : 0), U(d, !k)));
|
|
1617
1617
|
},
|
|
1618
1618
|
[
|
|
1619
|
-
|
|
1619
|
+
z,
|
|
1620
1620
|
H,
|
|
1621
1621
|
v,
|
|
1622
|
-
|
|
1622
|
+
$,
|
|
1623
1623
|
U,
|
|
1624
1624
|
k,
|
|
1625
|
-
|
|
1625
|
+
h,
|
|
1626
1626
|
l
|
|
1627
1627
|
]
|
|
1628
|
-
),
|
|
1629
|
-
(
|
|
1628
|
+
), Je = n.useCallback(
|
|
1629
|
+
(d) => {
|
|
1630
1630
|
H(!0), v(k ? 0 : -1), Z && x(
|
|
1631
1631
|
Z,
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
d,
|
|
1633
|
+
m(),
|
|
1634
1634
|
void 0
|
|
1635
1635
|
);
|
|
1636
1636
|
},
|
|
1637
1637
|
[Z, H, v]
|
|
1638
|
-
),
|
|
1639
|
-
(
|
|
1640
|
-
H(!1),
|
|
1638
|
+
), Qe = n.useCallback(
|
|
1639
|
+
(d) => {
|
|
1640
|
+
H(!1), z(!1), v(-1), x(
|
|
1641
1641
|
oe,
|
|
1642
|
-
|
|
1643
|
-
|
|
1642
|
+
d,
|
|
1643
|
+
m(),
|
|
1644
1644
|
void 0
|
|
1645
|
-
), k && U(
|
|
1645
|
+
), k && U(d, !1);
|
|
1646
1646
|
},
|
|
1647
|
-
[oe, H,
|
|
1648
|
-
),
|
|
1649
|
-
(
|
|
1650
|
-
|
|
1647
|
+
[oe, H, z, v, U]
|
|
1648
|
+
), Ye = n.useCallback(
|
|
1649
|
+
(d) => {
|
|
1650
|
+
d.preventDefault();
|
|
1651
1651
|
},
|
|
1652
1652
|
[]
|
|
1653
|
-
),
|
|
1654
|
-
(
|
|
1655
|
-
|
|
1653
|
+
), ye = n.useCallback(
|
|
1654
|
+
(d, b) => {
|
|
1655
|
+
h && (h[b].disabled || x(
|
|
1656
1656
|
V,
|
|
1657
|
-
|
|
1658
|
-
|
|
1657
|
+
d,
|
|
1658
|
+
m(),
|
|
1659
1659
|
{
|
|
1660
|
-
itemProps:
|
|
1661
|
-
itemIndex:
|
|
1660
|
+
itemProps: h[b],
|
|
1661
|
+
itemIndex: b
|
|
1662
1662
|
}
|
|
1663
1663
|
));
|
|
1664
1664
|
},
|
|
1665
1665
|
[V]
|
|
1666
|
-
),
|
|
1667
|
-
(
|
|
1668
|
-
!
|
|
1666
|
+
), et = n.useCallback(
|
|
1667
|
+
(d, b) => {
|
|
1668
|
+
!d.target || !h || (v(b), z(!1), ye(d, b), U(d, !1));
|
|
1669
1669
|
},
|
|
1670
|
-
[v,
|
|
1671
|
-
),
|
|
1672
|
-
(
|
|
1673
|
-
se(document) === y.current &&
|
|
1670
|
+
[v, z, ye, U]
|
|
1671
|
+
), tt = n.useCallback(
|
|
1672
|
+
(d) => {
|
|
1673
|
+
se(document) === y.current && d.preventDefault();
|
|
1674
1674
|
},
|
|
1675
1675
|
[y]
|
|
1676
|
-
),
|
|
1677
|
-
(
|
|
1678
|
-
const
|
|
1679
|
-
|
|
1676
|
+
), st = n.useCallback(
|
|
1677
|
+
(d) => {
|
|
1678
|
+
const b = J, ve = h ? h.length : -1;
|
|
1679
|
+
if (d.altKey) {
|
|
1680
|
+
!k && d.keyCode === r.down && (d.preventDefault(), z(!0), v(0)), k && d.keyCode === r.up && (d.preventDefault(), z(!1), v(-1));
|
|
1681
|
+
return;
|
|
1682
|
+
}
|
|
1683
|
+
switch (d.keyCode) {
|
|
1680
1684
|
case r.enter:
|
|
1681
1685
|
case r.space:
|
|
1682
|
-
|
|
1686
|
+
b >= 0 && ye(d, b), h || Fe(d), d.preventDefault(), z(!k), v(k ? -1 : 0);
|
|
1683
1687
|
break;
|
|
1684
1688
|
case r.esc:
|
|
1685
|
-
|
|
1689
|
+
d.preventDefault(), z(!1), v(-1);
|
|
1686
1690
|
break;
|
|
1687
1691
|
case r.home:
|
|
1688
|
-
|
|
1692
|
+
d.preventDefault(), v(0);
|
|
1689
1693
|
break;
|
|
1690
1694
|
case r.end:
|
|
1691
|
-
|
|
1695
|
+
d.preventDefault(), v(ve - 1);
|
|
1692
1696
|
break;
|
|
1693
1697
|
case r.down:
|
|
1694
1698
|
case r.right:
|
|
1695
|
-
|
|
1699
|
+
d.preventDefault(), v(b + 1 >= ve ? 0 : b + 1);
|
|
1696
1700
|
break;
|
|
1697
1701
|
case r.up:
|
|
1698
1702
|
case r.left:
|
|
1699
|
-
|
|
1703
|
+
d.preventDefault(), v(b - 1 < 0 ? ve - 1 : b - 1);
|
|
1700
1704
|
break;
|
|
1701
1705
|
}
|
|
1702
1706
|
x(
|
|
1703
1707
|
q,
|
|
1704
|
-
|
|
1705
|
-
|
|
1708
|
+
d,
|
|
1709
|
+
m(),
|
|
1706
1710
|
void 0
|
|
1707
1711
|
);
|
|
1708
1712
|
},
|
|
1709
|
-
[q, J, v, Q,
|
|
1710
|
-
),
|
|
1711
|
-
() =>
|
|
1713
|
+
[q, J, v, Q, z]
|
|
1714
|
+
), nt = n.useMemo(
|
|
1715
|
+
() => f(
|
|
1712
1716
|
"k-fab k-fab-solid",
|
|
1713
1717
|
{
|
|
1714
1718
|
"k-fab-sm": S === "small",
|
|
@@ -1718,59 +1722,59 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1718
1722
|
"k-pos-absolute": D === "absolute",
|
|
1719
1723
|
"k-pos-fixed": D === "fixed",
|
|
1720
1724
|
"k-focus": ce,
|
|
1721
|
-
[`k-rounded-${
|
|
1725
|
+
[`k-rounded-${B.roundedMap[I] || I}`]: I,
|
|
1722
1726
|
[`k-fab-solid-${E}`]: E
|
|
1723
1727
|
},
|
|
1724
1728
|
`k-${t.vertical}-${t.horizontal}`,
|
|
1725
1729
|
a
|
|
1726
1730
|
),
|
|
1727
1731
|
[E, S, I, l, D, t, ce, a]
|
|
1728
|
-
),
|
|
1729
|
-
|
|
1732
|
+
), ot = h && h.map((d, b) => /* @__PURE__ */ n.createElement(
|
|
1733
|
+
Se,
|
|
1730
1734
|
{
|
|
1731
|
-
...
|
|
1732
|
-
key:
|
|
1733
|
-
index:
|
|
1734
|
-
id: `${de}-${
|
|
1735
|
-
disabled: l ||
|
|
1736
|
-
focused: J ===
|
|
1737
|
-
dataItem:
|
|
1735
|
+
...d,
|
|
1736
|
+
key: b,
|
|
1737
|
+
index: b,
|
|
1738
|
+
id: `${de}-${b}`,
|
|
1739
|
+
disabled: l || d.disabled,
|
|
1740
|
+
focused: J === b,
|
|
1741
|
+
dataItem: d,
|
|
1738
1742
|
item: w,
|
|
1739
|
-
className:
|
|
1740
|
-
|
|
1741
|
-
|
|
1743
|
+
className: f(
|
|
1744
|
+
d.className,
|
|
1745
|
+
St(ke || "ltr", t.horizontal)
|
|
1742
1746
|
),
|
|
1743
|
-
onClick:
|
|
1744
|
-
onDown:
|
|
1747
|
+
onClick: et,
|
|
1748
|
+
onDown: tt
|
|
1745
1749
|
}
|
|
1746
|
-
)), ze = !!((
|
|
1747
|
-
return /* @__PURE__ */ n.createElement(
|
|
1750
|
+
)), ze = !!((u || c) && !N), it = y.current ? y.current.offsetWidth : 0, at = 32, Pe = it / 2 - at / 2;
|
|
1751
|
+
return /* @__PURE__ */ n.createElement(rt.Provider, { value: le }, /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
|
|
1748
1752
|
"button",
|
|
1749
1753
|
{
|
|
1750
1754
|
ref: y,
|
|
1751
1755
|
id: C || Xe,
|
|
1752
|
-
role:
|
|
1756
|
+
role: "button",
|
|
1753
1757
|
type: "button",
|
|
1754
1758
|
"aria-disabled": l,
|
|
1755
|
-
"aria-expanded":
|
|
1756
|
-
"aria-haspopup": !!
|
|
1759
|
+
"aria-expanded": h ? k : void 0,
|
|
1760
|
+
"aria-haspopup": !!h,
|
|
1757
1761
|
"aria-label": `${N || ""} floatingactionbutton`,
|
|
1758
|
-
"aria-owns":
|
|
1759
|
-
"aria-activedescendant": J >= 0 &&
|
|
1760
|
-
tabIndex:
|
|
1762
|
+
"aria-owns": h ? de : void 0,
|
|
1763
|
+
"aria-activedescendant": J >= 0 && h ? `${de}-${J}` : void 0,
|
|
1764
|
+
tabIndex: fe(T, l),
|
|
1761
1765
|
accessKey: K,
|
|
1762
|
-
dir:
|
|
1766
|
+
dir: ke,
|
|
1763
1767
|
disabled: l,
|
|
1764
|
-
className:
|
|
1768
|
+
className: nt,
|
|
1765
1769
|
style: F,
|
|
1766
|
-
onClick:
|
|
1767
|
-
onMouseDown:
|
|
1768
|
-
onFocus:
|
|
1769
|
-
onBlur:
|
|
1770
|
-
onKeyDown:
|
|
1770
|
+
onClick: Fe,
|
|
1771
|
+
onMouseDown: Ye,
|
|
1772
|
+
onFocus: Je,
|
|
1773
|
+
onBlur: Qe,
|
|
1774
|
+
onKeyDown: st,
|
|
1771
1775
|
..._
|
|
1772
1776
|
},
|
|
1773
|
-
|
|
1777
|
+
u || c ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-icon", name: u, icon: c }) : g ? /* @__PURE__ */ n.createElement("span", { role: "presentation", className: g }) : null,
|
|
1774
1778
|
N && /* @__PURE__ */ n.createElement("span", { className: "k-fab-text" }, N)
|
|
1775
1779
|
), L && k && /* @__PURE__ */ n.createElement(
|
|
1776
1780
|
"div",
|
|
@@ -1782,25 +1786,25 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1782
1786
|
}
|
|
1783
1787
|
}
|
|
1784
1788
|
), /* @__PURE__ */ n.createElement(
|
|
1785
|
-
|
|
1789
|
+
De,
|
|
1786
1790
|
{
|
|
1787
|
-
ref:
|
|
1791
|
+
ref: ge,
|
|
1788
1792
|
anchor: y.current,
|
|
1789
1793
|
show: k,
|
|
1790
|
-
animate:
|
|
1791
|
-
popupClass:
|
|
1792
|
-
anchorAlign:
|
|
1793
|
-
popupAlign:
|
|
1794
|
+
animate: P.animate,
|
|
1795
|
+
popupClass: f("k-popup-transparent k-fab-popup", P.popupClass),
|
|
1796
|
+
anchorAlign: P.anchorAlign || Et(t, Q),
|
|
1797
|
+
popupAlign: P.popupAlign || Nt(t, Q),
|
|
1794
1798
|
style: { boxShadow: "none" }
|
|
1795
1799
|
},
|
|
1796
1800
|
/* @__PURE__ */ n.createElement(
|
|
1797
1801
|
"ul",
|
|
1798
1802
|
{
|
|
1799
|
-
ref:
|
|
1803
|
+
ref: be,
|
|
1800
1804
|
role: "menu",
|
|
1801
1805
|
"aria-labelledby": C,
|
|
1802
1806
|
id: de,
|
|
1803
|
-
className:
|
|
1807
|
+
className: f("k-fab-items", {
|
|
1804
1808
|
"k-fab-items-bottom": t.vertical !== "bottom",
|
|
1805
1809
|
"k-fab-items-top": t.vertical === "bottom"
|
|
1806
1810
|
}),
|
|
@@ -1809,7 +1813,7 @@ const Re = "16px", pe = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
|
|
|
1809
1813
|
paddingRight: ze ? Pe : void 0
|
|
1810
1814
|
}
|
|
1811
1815
|
},
|
|
1812
|
-
|
|
1816
|
+
ot
|
|
1813
1817
|
)
|
|
1814
1818
|
)));
|
|
1815
1819
|
});
|
|
@@ -1862,18 +1866,18 @@ const Y = {
|
|
|
1862
1866
|
Ge.displayName = "KendoFloatingActionButton";
|
|
1863
1867
|
export {
|
|
1864
1868
|
ne as Button,
|
|
1865
|
-
|
|
1869
|
+
ft as ButtonGroup,
|
|
1866
1870
|
j as Chip,
|
|
1867
|
-
|
|
1871
|
+
Ne as ChipList,
|
|
1868
1872
|
He as DropDownButton,
|
|
1869
1873
|
_e as DropDownButtonItem,
|
|
1870
1874
|
Ge as FloatingActionButton,
|
|
1871
|
-
|
|
1875
|
+
Se as FloatingActionButtonItem,
|
|
1872
1876
|
Le as SplitButton,
|
|
1873
1877
|
Ke as SplitButtonItem,
|
|
1874
1878
|
Ue as Toolbar,
|
|
1875
|
-
|
|
1876
|
-
|
|
1879
|
+
bt as ToolbarItem,
|
|
1880
|
+
At as ToolbarSeparator,
|
|
1877
1881
|
We as ToolbarSpacer,
|
|
1878
|
-
|
|
1882
|
+
pt as toolbarButtons
|
|
1879
1883
|
};
|