@progress/kendo-react-layout 7.0.0-develop.2 → 7.0.0-develop.3
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-layout.js +1 -1
- package/index.js +1 -1
- package/index.mjs +308 -298
- package/package.json +6 -6
- package/tabstrip/TabStrip.d.ts +2 -0
- package/tabstrip/TabStripContent.d.ts +8 -0
- package/tabstrip/TabStripNavigation.d.ts +8 -0
- package/tabstrip/TabStripNavigationItem.d.ts +4 -0
package/index.mjs
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as t from "react";
|
|
6
|
-
import { classNames as y, IconWrap as Q, getActiveElement as Ut, Keys as N, Draggable as lt, guid as
|
|
6
|
+
import { classNames as y, IconWrap as Q, getActiveElement as Ut, Keys as N, Draggable as lt, guid as se, validatePackage as V, shouldShowValidationUI as Fe, WatermarkOverlay as Be, svgIconPropType as Oe, dispatchEvent as q, kendoThemeMaps as Ge, toIconName as jt, getTabIndex as Pe, useDir as ye, focusFirstFocusableChild as Ie, useRtl as Vt, getter as jn, FOCUSABLE_ELEMENTS as Vn, Navigation as ct, SvgIcon as Xe, canUseDOM as qn, useAsyncFocusBlur as Gn } from "@progress/kendo-react-common";
|
|
7
7
|
import { Popup as qt } from "@progress/kendo-react-popup";
|
|
8
8
|
import * as r from "prop-types";
|
|
9
|
-
import { caretAltLeftIcon as
|
|
9
|
+
import { caretAltLeftIcon as oe, caretAltRightIcon as le, caretAltDownIcon as ze, caretAltUpIcon as Ye, chevronUpIcon as Gt, chevronDownIcon as Xt, checkOutlineIcon as Xn, exclamationCircleIcon as Yn, chevronLeftIcon as Zn, chevronRightIcon as Yt } from "@progress/kendo-svg-icons";
|
|
10
10
|
import { Button as Jn } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { Fade as Qn, Reveal as Zt, Animation as es } from "@progress/kendo-react-animation";
|
|
12
12
|
import { provideLocalizationService as ts, useLocalization as Jt, useInternationalization as Qt } from "@progress/kendo-react-intl";
|
|
13
13
|
import { ProgressBar as ns } from "@progress/kendo-react-progressbars";
|
|
14
14
|
import { validatePackage as ce } from "@progress/kendo-licensing";
|
|
15
|
-
const X = "", Ke = "0",
|
|
15
|
+
const X = "", Ke = "0", re = "_";
|
|
16
16
|
function De(e, s) {
|
|
17
17
|
if (J(e))
|
|
18
18
|
return s[Number(e)];
|
|
@@ -22,13 +22,13 @@ function De(e, s) {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
function ve(e) {
|
|
25
|
-
return ke(e) ? e : e.split(
|
|
25
|
+
return ke(e) ? e : e.split(re)[0];
|
|
26
26
|
}
|
|
27
27
|
function ss(e) {
|
|
28
28
|
if (ke(e))
|
|
29
29
|
return e;
|
|
30
30
|
{
|
|
31
|
-
const s = e.indexOf(
|
|
31
|
+
const s = e.indexOf(re);
|
|
32
32
|
return e.substring(s + 1);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -36,20 +36,20 @@ function Lt(e) {
|
|
|
36
36
|
return He("0", e);
|
|
37
37
|
}
|
|
38
38
|
function is(e, s) {
|
|
39
|
-
return s.indexOf(e) === 0 ? s.length === e.length || s.charAt(e.length) ===
|
|
39
|
+
return s.indexOf(e) === 0 ? s.length === e.length || s.charAt(e.length) === re : !1;
|
|
40
40
|
}
|
|
41
41
|
function He(e, s) {
|
|
42
|
-
return s ? s +
|
|
42
|
+
return s ? s + re + e : e;
|
|
43
43
|
}
|
|
44
44
|
function ge(e) {
|
|
45
|
-
const s = e.lastIndexOf(
|
|
45
|
+
const s = e.lastIndexOf(re);
|
|
46
46
|
return s < 0 ? X : e.substring(0, s);
|
|
47
47
|
}
|
|
48
48
|
function ke(e) {
|
|
49
|
-
return e === X || e.indexOf(
|
|
49
|
+
return e === X || e.indexOf(re) < 0;
|
|
50
50
|
}
|
|
51
51
|
function J(e) {
|
|
52
|
-
return e !== X && e.indexOf(
|
|
52
|
+
return e !== X && e.indexOf(re) < 0;
|
|
53
53
|
}
|
|
54
54
|
function rs(e) {
|
|
55
55
|
return os(e) === 1;
|
|
@@ -58,14 +58,14 @@ function as(e) {
|
|
|
58
58
|
return Ze(e) === Ke;
|
|
59
59
|
}
|
|
60
60
|
function Ze(e) {
|
|
61
|
-
const s = e.lastIndexOf(
|
|
61
|
+
const s = e.lastIndexOf(re);
|
|
62
62
|
return s < 0 ? e : e.substring(s + 1);
|
|
63
63
|
}
|
|
64
64
|
function At(e, s, n) {
|
|
65
65
|
return J(s) ? e ? Number(s) < n - 1 ? (Number(s) + 1).toString() : "0" : Number(s) > 0 ? (Number(s) - 1).toString() : (n - 1).toString() : s;
|
|
66
66
|
}
|
|
67
67
|
function os(e) {
|
|
68
|
-
return e.split(
|
|
68
|
+
return e.split(re).length - 1;
|
|
69
69
|
}
|
|
70
70
|
const zt = {
|
|
71
71
|
vertical: "top",
|
|
@@ -183,9 +183,9 @@ class rn extends t.Component {
|
|
|
183
183
|
case "downward":
|
|
184
184
|
return { name: cs, icon: ze };
|
|
185
185
|
case "rightward":
|
|
186
|
-
return { name: ds, icon:
|
|
186
|
+
return { name: ds, icon: le };
|
|
187
187
|
case "leftward":
|
|
188
|
-
return { name: us, icon:
|
|
188
|
+
return { name: us, icon: oe };
|
|
189
189
|
default:
|
|
190
190
|
return {};
|
|
191
191
|
}
|
|
@@ -489,7 +489,7 @@ class hs extends t.Component {
|
|
|
489
489
|
Q,
|
|
490
490
|
{
|
|
491
491
|
name: this.props.prev.collapsible ? i ? this.props.prev.collapsed ? this.props.isRtl ? "caret-alt-left" : "caret-alt-right" : this.props.isRtl ? "caret-alt-right" : "caret-alt-left" : this.props.prev.collapsed ? "caret-alt-down" : "caret-alt-up" : void 0,
|
|
492
|
-
icon: this.props.prev.collapsible ? i ? this.props.prev.collapsed ? this.props.isRtl ?
|
|
492
|
+
icon: this.props.prev.collapsible ? i ? this.props.prev.collapsed ? this.props.isRtl ? oe : le : this.props.isRtl ? le : oe : this.props.prev.collapsed ? ze : Ye : void 0,
|
|
493
493
|
size: "xsmall"
|
|
494
494
|
}
|
|
495
495
|
)
|
|
@@ -505,7 +505,7 @@ class hs extends t.Component {
|
|
|
505
505
|
Q,
|
|
506
506
|
{
|
|
507
507
|
name: this.props.next.collapsible ? i ? this.props.next.collapsed ? this.props.isRtl ? "caret-alt-right" : "caret-alt-left" : this.props.isRtl ? "caret-alt-left" : "caret-alt-right" : this.props.next.collapsed ? "caret-alt-up" : "caret-alt-down" : void 0,
|
|
508
|
-
icon: this.props.next.collapsible ? i ? this.props.next.collapsed ? this.props.isRtl ?
|
|
508
|
+
icon: this.props.next.collapsible ? i ? this.props.next.collapsed ? this.props.isRtl ? le : oe : this.props.isRtl ? oe : le : this.props.next.collapsed ? Ye : ze : void 0,
|
|
509
509
|
size: "xsmall"
|
|
510
510
|
}
|
|
511
511
|
)
|
|
@@ -528,23 +528,20 @@ class on extends t.Component {
|
|
|
528
528
|
* @hidden
|
|
529
529
|
*/
|
|
530
530
|
render() {
|
|
531
|
-
const { id: s, active: n, disabled: i, title: a = "Untitled", first: o, last: l } = this.props
|
|
532
|
-
|
|
533
|
-
id: s,
|
|
531
|
+
const { id: s, active: n, disabled: i, title: a = "Untitled", first: o, last: l, contentPanelId: c, index: d } = this.props, u = {
|
|
532
|
+
id: `${s}-${d.toString()}`,
|
|
534
533
|
"aria-selected": n,
|
|
535
|
-
"aria-controls":
|
|
534
|
+
"aria-controls": n ? c : void 0,
|
|
536
535
|
"aria-disabled": i,
|
|
537
|
-
"aria-hidden": i,
|
|
538
536
|
role: "tab",
|
|
539
537
|
onClick: i ? void 0 : this.onClick
|
|
540
|
-
}
|
|
541
|
-
const d = y("k-item", {
|
|
538
|
+
}, m = y("k-item", {
|
|
542
539
|
["k-first"]: o,
|
|
543
540
|
["k-last"]: l,
|
|
544
541
|
["k-disabled"]: i,
|
|
545
542
|
["k-active"]: n
|
|
546
543
|
});
|
|
547
|
-
return /* @__PURE__ */ t.createElement("li", { ...
|
|
544
|
+
return /* @__PURE__ */ t.createElement("li", { ...u, className: m, ref: (h) => this.itemRef = h, onBlur: this.blur }, /* @__PURE__ */ t.createElement("span", { className: "k-link" }, a));
|
|
548
545
|
}
|
|
549
546
|
}
|
|
550
547
|
on.propTypes = {
|
|
@@ -581,10 +578,10 @@ class Qe extends t.Component {
|
|
|
581
578
|
this.isRtl() && this.horizontalScroll() ? (n === de && d < 0 && (d += c, m += c), n === Te && d < l && (d -= c, m -= c), d = Math.min(0, Math.min(l, d))) : (n === de && d > 0 && (d -= c, u += c), n === Te && d < l && (d += c, u -= c), d = Math.max(0, Math.min(l, d)));
|
|
582
579
|
const h = d === 0, p = i.type === "click" ? xe : void 0;
|
|
583
580
|
if (o) {
|
|
584
|
-
const
|
|
581
|
+
const f = this.isRtl() ? Math.round(m) <= a.clientWidth || Math.floor(m) <= a.clientWidth : Math.round(u) <= a.clientWidth || Math.floor(u) <= a.clientWidth;
|
|
585
582
|
this.setState({
|
|
586
583
|
disabledPrev: h,
|
|
587
|
-
disabledNext:
|
|
584
|
+
disabledNext: f
|
|
588
585
|
}), a.scrollTo({ left: d, behavior: p });
|
|
589
586
|
} else
|
|
590
587
|
this.setState({
|
|
@@ -596,12 +593,12 @@ class Qe extends t.Component {
|
|
|
596
593
|
prev: {
|
|
597
594
|
arrowTab: "k-tabstrip-prev",
|
|
598
595
|
fontIcon: a ? this.isRtl() ? "caret-alt-right" : "caret-alt-left" : "caret-alt-up",
|
|
599
|
-
svgIcon: a ? this.isRtl() ?
|
|
596
|
+
svgIcon: a ? this.isRtl() ? le : oe : Ye
|
|
600
597
|
},
|
|
601
598
|
next: {
|
|
602
599
|
arrowTab: "k-tabstrip-next",
|
|
603
600
|
fontIcon: a ? this.isRtl() ? "caret-alt-left" : "caret-alt-right" : "caret-alt-down",
|
|
604
|
-
svgIcon: a ? this.isRtl() ?
|
|
601
|
+
svgIcon: a ? this.isRtl() ? oe : le : ze
|
|
605
602
|
}
|
|
606
603
|
}, l = (n === de ? this.props.prevButton : this.props.nextButton) || Jn, c = n === de ? this.arrowClickPrev : this.arrowClickNext;
|
|
607
604
|
return /* @__PURE__ */ t.createElement(
|
|
@@ -642,44 +639,47 @@ class Qe extends t.Component {
|
|
|
642
639
|
* @hidden
|
|
643
640
|
*/
|
|
644
641
|
render() {
|
|
645
|
-
const { selected: s, tabPosition: n, children: i, onSelect: a, onKeyDown: o } = this.props,
|
|
646
|
-
let
|
|
647
|
-
i && (
|
|
648
|
-
const
|
|
649
|
-
active: s ===
|
|
650
|
-
disabled:
|
|
651
|
-
index:
|
|
652
|
-
title:
|
|
653
|
-
first:
|
|
654
|
-
last:
|
|
642
|
+
const { selected: s, tabPosition: n, children: i, onSelect: a, onKeyDown: o, navItemId: l } = this.props, c = t.Children.count(i), d = t.Children.toArray(i);
|
|
643
|
+
let u;
|
|
644
|
+
i && (u = ps(c).map((p, f, g) => {
|
|
645
|
+
const I = {
|
|
646
|
+
active: s === f,
|
|
647
|
+
disabled: d[f].props.disabled,
|
|
648
|
+
index: f,
|
|
649
|
+
title: d[f].props.title,
|
|
650
|
+
first: f === 0,
|
|
651
|
+
last: f === g.length - 1,
|
|
652
|
+
contentPanelId: this.props.contentPanelId,
|
|
653
|
+
id: l,
|
|
655
654
|
onSelect: a
|
|
656
655
|
};
|
|
657
|
-
return /* @__PURE__ */ t.createElement(on, { key:
|
|
656
|
+
return /* @__PURE__ */ t.createElement(on, { key: f, ...I });
|
|
658
657
|
}));
|
|
659
|
-
const
|
|
658
|
+
const m = y("k-tabstrip-items-wrapper", {
|
|
660
659
|
"k-hstack": n === "top" || n === "bottom",
|
|
661
660
|
"k-vstack": n === "left" || n === "right"
|
|
662
|
-
}),
|
|
663
|
-
return /* @__PURE__ */ t.createElement("div", { className:
|
|
661
|
+
}), h = y("k-tabstrip-items", "k-reset");
|
|
662
|
+
return /* @__PURE__ */ t.createElement("div", { className: m }, this.props.scrollable ? /* @__PURE__ */ t.createElement(t.Fragment, null, this.renderArrow(de, this.state.disabledPrev), /* @__PURE__ */ t.createElement(
|
|
664
663
|
"ul",
|
|
665
664
|
{
|
|
666
665
|
ref: this.itemsNavRef,
|
|
667
|
-
className:
|
|
666
|
+
className: h,
|
|
668
667
|
role: "tablist",
|
|
669
668
|
tabIndex: this.props.tabIndex,
|
|
670
669
|
onKeyDown: o,
|
|
671
|
-
onWheel: this.onWheel
|
|
670
|
+
onWheel: this.onWheel,
|
|
671
|
+
"aria-orientation": n === "left" || n === "right" ? "vertical" : void 0
|
|
672
672
|
},
|
|
673
|
-
|
|
673
|
+
u
|
|
674
674
|
), this.renderArrow(Te, this.state.disabledNext)) : /* @__PURE__ */ t.createElement(
|
|
675
675
|
"ul",
|
|
676
676
|
{
|
|
677
|
-
className:
|
|
677
|
+
className: h,
|
|
678
678
|
role: "tablist",
|
|
679
679
|
tabIndex: this.props.tabIndex,
|
|
680
680
|
onKeyDown: o
|
|
681
681
|
},
|
|
682
|
-
|
|
682
|
+
u
|
|
683
683
|
));
|
|
684
684
|
}
|
|
685
685
|
scrollToSelected() {
|
|
@@ -712,7 +712,7 @@ Qe.propTypes = {
|
|
|
712
712
|
};
|
|
713
713
|
class ln extends t.Component {
|
|
714
714
|
constructor() {
|
|
715
|
-
super(...arguments), this.contentId =
|
|
715
|
+
super(...arguments), this.contentId = se(), this.childFactory = (s) => t.cloneElement(s, {
|
|
716
716
|
...s.props,
|
|
717
717
|
in: s.props.children.props.id === String(this.contentId + this.props.selected)
|
|
718
718
|
});
|
|
@@ -721,12 +721,23 @@ class ln extends t.Component {
|
|
|
721
721
|
* @hidden
|
|
722
722
|
*/
|
|
723
723
|
render() {
|
|
724
|
-
const { children: s, selected: n } = this.props,
|
|
724
|
+
const { children: s, selected: n, contentPanelId: i, keepTabsMounted: a, navItemId: o } = this.props, l = s && typeof n == "number" && t.Children.toArray(s)[n], c = y(
|
|
725
725
|
"k-tabstrip-content",
|
|
726
726
|
"k-active",
|
|
727
|
-
|
|
727
|
+
l && l.props.contentClassName
|
|
728
|
+
);
|
|
729
|
+
return /* @__PURE__ */ t.createElement(
|
|
730
|
+
"div",
|
|
731
|
+
{
|
|
732
|
+
className: c,
|
|
733
|
+
style: this.props.style,
|
|
734
|
+
id: i,
|
|
735
|
+
role: "tabpanel",
|
|
736
|
+
"aria-hidden": a,
|
|
737
|
+
"aria-describedby": `${o}-${(n || "").toString()}`
|
|
738
|
+
},
|
|
739
|
+
this.renderContent(s)
|
|
728
740
|
);
|
|
729
|
-
return /* @__PURE__ */ t.createElement("div", { className: a, style: this.props.style }, this.renderContent(s));
|
|
730
741
|
}
|
|
731
742
|
renderContent(s) {
|
|
732
743
|
return this.props.keepTabsMounted ? t.Children.map(this.props.children, (n, i) => this.renderChild(n, i)) : this.renderChild(
|
|
@@ -736,9 +747,6 @@ class ln extends t.Component {
|
|
|
736
747
|
}
|
|
737
748
|
renderChild(s, n) {
|
|
738
749
|
const i = n === this.props.selected, a = {
|
|
739
|
-
role: "tabpanel",
|
|
740
|
-
"aria-expanded": !0,
|
|
741
|
-
"aria-labelledby": n.toString(),
|
|
742
750
|
style: {
|
|
743
751
|
display: i ? void 0 : "none"
|
|
744
752
|
}
|
|
@@ -771,13 +779,13 @@ const K = {
|
|
|
771
779
|
name: "@progress/kendo-react-layout",
|
|
772
780
|
productName: "KendoReact",
|
|
773
781
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
774
|
-
publishDate:
|
|
782
|
+
publishDate: 1700651721,
|
|
775
783
|
version: "",
|
|
776
784
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
777
785
|
};
|
|
778
786
|
class cn extends t.Component {
|
|
779
787
|
constructor(s) {
|
|
780
|
-
super(s), this._element = null, this.showLicenseWatermark = !1, this.keyBinding = {
|
|
788
|
+
super(s), this._element = null, this.contentPanelId = se(), this.navItemId = se(), this.showLicenseWatermark = !1, this.keyBinding = {
|
|
781
789
|
[N.left]: () => this.prevNavigatableTab(),
|
|
782
790
|
[N.right]: () => this.nextNavigatableTab(),
|
|
783
791
|
[N.down]: () => this.nextNavigatableTab(),
|
|
@@ -859,6 +867,8 @@ class cn extends t.Component {
|
|
|
859
867
|
const s = {
|
|
860
868
|
...this.props,
|
|
861
869
|
children: this.children(),
|
|
870
|
+
contentPanelId: this.contentPanelId,
|
|
871
|
+
navItemId: this.navItemId,
|
|
862
872
|
onKeyDown: this.onKeyDown,
|
|
863
873
|
onSelect: this.onSelect
|
|
864
874
|
}, { tabPosition: n, tabIndex: i = 0 } = s, a = n === "bottom", o = y(
|
|
@@ -970,8 +980,8 @@ class ue extends t.PureComponent {
|
|
|
970
980
|
level: m,
|
|
971
981
|
headerClassName: h,
|
|
972
982
|
animation: p,
|
|
973
|
-
keepItemsMounted:
|
|
974
|
-
} = this.props,
|
|
983
|
+
keepItemsMounted: f
|
|
984
|
+
} = this.props, g = {
|
|
975
985
|
role: "treeitem",
|
|
976
986
|
"aria-disabled": o,
|
|
977
987
|
"aria-hidden": !o && !d,
|
|
@@ -993,7 +1003,7 @@ class ue extends t.PureComponent {
|
|
|
993
1003
|
"k-focus": !o && c
|
|
994
1004
|
},
|
|
995
1005
|
h
|
|
996
|
-
), k = { display: "block" },
|
|
1006
|
+
), k = { display: "block" }, b = bs(this.props), T = !o && n ? /* @__PURE__ */ t.createElement(
|
|
997
1007
|
Q,
|
|
998
1008
|
{
|
|
999
1009
|
name: d ? "chevron-up" : "chevron-down",
|
|
@@ -1003,14 +1013,14 @@ class ue extends t.PureComponent {
|
|
|
1003
1013
|
d ? "k-panelbar-collapse" : "k-panelbar-expand"
|
|
1004
1014
|
)
|
|
1005
1015
|
}
|
|
1006
|
-
) : null, R = !o && d ||
|
|
1016
|
+
) : null, R = !o && d || f ? /* @__PURE__ */ t.createElement(
|
|
1007
1017
|
"ul",
|
|
1008
1018
|
{
|
|
1009
1019
|
role: "group",
|
|
1010
1020
|
"aria-expanded": d,
|
|
1011
1021
|
"aria-hidden": !d,
|
|
1012
1022
|
className: "k-panelbar-group k-panel k-group",
|
|
1013
|
-
style: { display:
|
|
1023
|
+
style: { display: f ? this.state.show ? "block" : "none" : "block" }
|
|
1014
1024
|
},
|
|
1015
1025
|
n
|
|
1016
1026
|
) : null, w = (p === void 0 || p) && !o && n ? /* @__PURE__ */ t.createElement(
|
|
@@ -1021,10 +1031,10 @@ class ue extends t.PureComponent {
|
|
|
1021
1031
|
key: a + "_animation",
|
|
1022
1032
|
style: k,
|
|
1023
1033
|
children: R,
|
|
1024
|
-
childFactory:
|
|
1025
|
-
unmountOnExit: !
|
|
1026
|
-
onBeforeEnter: () =>
|
|
1027
|
-
onAfterExited: () =>
|
|
1034
|
+
childFactory: f && this.childFactory,
|
|
1035
|
+
unmountOnExit: !f,
|
|
1036
|
+
onBeforeEnter: () => f && this.setState({ show: !0 }),
|
|
1037
|
+
onAfterExited: () => f && this.setState({ show: !1 })
|
|
1028
1038
|
}
|
|
1029
1039
|
) : R;
|
|
1030
1040
|
return /* @__PURE__ */ t.createElement(
|
|
@@ -1032,9 +1042,9 @@ class ue extends t.PureComponent {
|
|
|
1032
1042
|
{
|
|
1033
1043
|
id: s,
|
|
1034
1044
|
className: I,
|
|
1035
|
-
...
|
|
1045
|
+
...g
|
|
1036
1046
|
},
|
|
1037
|
-
/* @__PURE__ */ t.createElement("span", { className: C, onClick: this.handleItemClick },
|
|
1047
|
+
/* @__PURE__ */ t.createElement("span", { className: C, onClick: this.handleItemClick }, b, /* @__PURE__ */ t.createElement("span", { className: "k-panelbar-item-text" }, i), T),
|
|
1038
1048
|
w
|
|
1039
1049
|
);
|
|
1040
1050
|
}
|
|
@@ -1080,7 +1090,7 @@ const dn = ({
|
|
|
1080
1090
|
if (u && u.type === ue) {
|
|
1081
1091
|
let h, p = dt(u, d, m);
|
|
1082
1092
|
if (u.props.children) {
|
|
1083
|
-
const
|
|
1093
|
+
const f = {
|
|
1084
1094
|
animation: e,
|
|
1085
1095
|
keepItemsMounted: s,
|
|
1086
1096
|
state: n,
|
|
@@ -1091,7 +1101,7 @@ const dn = ({
|
|
|
1091
1101
|
level: c + 1,
|
|
1092
1102
|
parentPrivateKey: [...d, p]
|
|
1093
1103
|
};
|
|
1094
|
-
h = dn(
|
|
1104
|
+
h = dn(f);
|
|
1095
1105
|
}
|
|
1096
1106
|
return t.cloneElement(
|
|
1097
1107
|
u,
|
|
@@ -1379,8 +1389,8 @@ function Is(e, s) {
|
|
|
1379
1389
|
}
|
|
1380
1390
|
function gn(e, s) {
|
|
1381
1391
|
let n = {};
|
|
1382
|
-
const { text: i, url: a, icon: o, svgIcon: l, disabled: c, cssClass: d, cssStyle: u, render: m, linkRender: h, contentRender: p, data:
|
|
1383
|
-
return i !== void 0 && (n.text = i), a !== void 0 && (n.url = a), o !== void 0 && (n.icon = o), l !== void 0 && (n.svgIcon = l), c !== void 0 && (n.disabled = c), d !== void 0 && (n.cssClass = d), u !== void 0 && (n.cssStyle = u), m !== void 0 && (n.render = m), h !== void 0 && (n.linkRender = h), p !== void 0 && (n.contentRender = p),
|
|
1392
|
+
const { text: i, url: a, icon: o, svgIcon: l, disabled: c, cssClass: d, cssStyle: u, render: m, linkRender: h, contentRender: p, data: f } = e || s.props;
|
|
1393
|
+
return i !== void 0 && (n.text = i), a !== void 0 && (n.url = a), o !== void 0 && (n.icon = o), l !== void 0 && (n.svgIcon = l), c !== void 0 && (n.disabled = c), d !== void 0 && (n.cssClass = d), u !== void 0 && (n.cssStyle = u), m !== void 0 && (n.render = m), h !== void 0 && (n.linkRender = h), p !== void 0 && (n.contentRender = p), f !== void 0 && (n.data = f), n;
|
|
1384
1394
|
}
|
|
1385
1395
|
function et(e) {
|
|
1386
1396
|
return t.Children.toArray(e).filter((s) => s && s.type === fn);
|
|
@@ -1428,20 +1438,20 @@ function Ns(e, s, n, i, a, o) {
|
|
|
1428
1438
|
case N.home:
|
|
1429
1439
|
return p();
|
|
1430
1440
|
case N.end:
|
|
1431
|
-
return v();
|
|
1432
|
-
case N.esc:
|
|
1433
1441
|
return f();
|
|
1442
|
+
case N.esc:
|
|
1443
|
+
return g();
|
|
1434
1444
|
default:
|
|
1435
1445
|
return w() ? I() : s;
|
|
1436
1446
|
}
|
|
1437
1447
|
function c() {
|
|
1438
|
-
return a ? o ? T() : k() : o ?
|
|
1448
|
+
return a ? o ? T() : k() : o ? b() : C();
|
|
1439
1449
|
}
|
|
1440
1450
|
function d() {
|
|
1441
|
-
return a ? o ? k() : T() : o ? C() :
|
|
1451
|
+
return a ? o ? k() : T() : o ? C() : b();
|
|
1442
1452
|
}
|
|
1443
1453
|
function u() {
|
|
1444
|
-
return a ? L() : J(s) ?
|
|
1454
|
+
return a ? L() : J(s) ? v() : L();
|
|
1445
1455
|
}
|
|
1446
1456
|
function m() {
|
|
1447
1457
|
return a ? D() : J(s) ? R() : D();
|
|
@@ -1452,34 +1462,34 @@ function Ns(e, s, n, i, a, o) {
|
|
|
1452
1462
|
function p() {
|
|
1453
1463
|
return G()[0].id;
|
|
1454
1464
|
}
|
|
1455
|
-
function
|
|
1465
|
+
function f() {
|
|
1456
1466
|
const S = G();
|
|
1457
1467
|
return S[S.length - 1].id;
|
|
1458
1468
|
}
|
|
1459
|
-
function
|
|
1469
|
+
function g() {
|
|
1460
1470
|
return J(s) ? s : ge(s);
|
|
1461
1471
|
}
|
|
1462
1472
|
function I() {
|
|
1463
|
-
const S = i.toLowerCase(), M = G(), U = Number(Ze(s)), Z = M.slice(U + 1).concat(M.slice(0, U + 1)).find((
|
|
1473
|
+
const S = i.toLowerCase(), M = G(), U = Number(Ze(s)), Z = M.slice(U + 1).concat(M.slice(0, U + 1)).find((ae) => (ae.text || "").toLowerCase().startsWith(S));
|
|
1464
1474
|
return Z ? Z.id : s;
|
|
1465
1475
|
}
|
|
1466
1476
|
function C() {
|
|
1467
|
-
return J(s) ? D() : rs(s) ?
|
|
1477
|
+
return J(s) ? D() : rs(s) ? v(D(ve(s))) : ge(s);
|
|
1468
1478
|
}
|
|
1469
1479
|
function k() {
|
|
1470
1480
|
return J(s) ? R() : ge(s);
|
|
1471
1481
|
}
|
|
1472
|
-
function
|
|
1473
|
-
return J(s) ? L() :
|
|
1482
|
+
function b() {
|
|
1483
|
+
return J(s) ? L() : v(
|
|
1474
1484
|
A() ? s : L(ve(s))
|
|
1475
1485
|
);
|
|
1476
1486
|
}
|
|
1477
1487
|
function T() {
|
|
1478
|
-
return
|
|
1488
|
+
return v(
|
|
1479
1489
|
J(s) || A() ? s : L(ve(s))
|
|
1480
1490
|
);
|
|
1481
1491
|
}
|
|
1482
|
-
function
|
|
1492
|
+
function v(S) {
|
|
1483
1493
|
return ee(!0, S);
|
|
1484
1494
|
}
|
|
1485
1495
|
function R(S) {
|
|
@@ -1571,7 +1581,7 @@ const Wt = {
|
|
|
1571
1581
|
};
|
|
1572
1582
|
class ut extends t.Component {
|
|
1573
1583
|
constructor(s) {
|
|
1574
|
-
super(s), this.menuWrapperEl = null, this.guid =
|
|
1584
|
+
super(s), this.menuWrapperEl = null, this.guid = se(), this.directionHolder = new xs(), this.inputItems = [], this.items = [], this.reset = () => {
|
|
1575
1585
|
this.clearItemHoverAndLeaveRequestsIfApplicable(), this.setState(Wt);
|
|
1576
1586
|
}, this.onKeyDown = (n) => {
|
|
1577
1587
|
if (this.state.focusedItemId !== X) {
|
|
@@ -1864,13 +1874,13 @@ class Ms extends t.Component {
|
|
|
1864
1874
|
});
|
|
1865
1875
|
return;
|
|
1866
1876
|
}
|
|
1867
|
-
const { originalPrevSize: p, originalNextSize:
|
|
1868
|
-
if (!o && c -
|
|
1877
|
+
const { originalPrevSize: p, originalNextSize: f, startTime: g, originalX: I, originalY: C } = this.state;
|
|
1878
|
+
if (!o && c - g < Ps) {
|
|
1869
1879
|
l && this.resetDragState();
|
|
1870
1880
|
return;
|
|
1871
1881
|
}
|
|
1872
1882
|
let k;
|
|
1873
|
-
this.orientation === "vertical" ? k = u - C : this.isRtl ? k = I - d : k = d - I, this.resize(a, a + 1, p,
|
|
1883
|
+
this.orientation === "vertical" ? k = u - C : this.isRtl ? k = I - d : k = d - I, this.resize(a, a + 1, p, f, k, l, n), l && this.resetDragState();
|
|
1874
1884
|
}, this.onBarKeyboardResize = (n, i, a, o) => {
|
|
1875
1885
|
const { prevElement: l, nextElement: c } = this.surroudingPanes(n), d = this.elementSize(l), u = this.elementSize(c);
|
|
1876
1886
|
this.resize(i, i + 1, d, u, a, !0, o);
|
|
@@ -1949,30 +1959,30 @@ class Ms extends t.Component {
|
|
|
1949
1959
|
});
|
|
1950
1960
|
}
|
|
1951
1961
|
resize(s, n, i, a, o, l, c) {
|
|
1952
|
-
const d = this.panesOptions(this.panesContent), u = d[s], m = d[n], h = i + a, p = this.containerSize(),
|
|
1962
|
+
const d = this.panesOptions(this.panesContent), u = d[s], m = d[n], h = i + a, p = this.containerSize(), f = (v) => this.toPixels(v, p), g = {
|
|
1953
1963
|
index: s,
|
|
1954
1964
|
initialSize: i,
|
|
1955
|
-
min:
|
|
1956
|
-
max:
|
|
1965
|
+
min: f(u.min) || h - f(m.max) || 0,
|
|
1966
|
+
max: f(u.max) || h - f(m.min) || h
|
|
1957
1967
|
}, I = {
|
|
1958
1968
|
index: n,
|
|
1959
1969
|
initialSize: a,
|
|
1960
|
-
min:
|
|
1961
|
-
max:
|
|
1962
|
-
}, C = (
|
|
1963
|
-
const w = d[
|
|
1970
|
+
min: f(m.min) || h - f(u.max) || 0,
|
|
1971
|
+
max: f(m.max) || h - f(u.min) || h
|
|
1972
|
+
}, C = (v, R) => {
|
|
1973
|
+
const w = d[v.index], O = this.clamp(v.min, v.max, v.initialSize + R);
|
|
1964
1974
|
return this.isPercent(w.size || "") ? 100 * O / p + "%" : O + "px";
|
|
1965
1975
|
};
|
|
1966
|
-
let k,
|
|
1967
|
-
this.fixedSize(u.size) && this.fixedSize(m.size) ? (k = C(
|
|
1968
|
-
const T = d.map((
|
|
1969
|
-
const w = this.getPaneProps(
|
|
1976
|
+
let k, b;
|
|
1977
|
+
this.fixedSize(u.size) && this.fixedSize(m.size) ? (k = C(g, o), b = C(I, -o)) : m.collapsible || this.fixedSize(m.size) ? b = C(I, -o) : k = C(g, o);
|
|
1978
|
+
const T = d.map((v, R) => {
|
|
1979
|
+
const w = this.getPaneProps(v);
|
|
1970
1980
|
return R === s ? {
|
|
1971
1981
|
...w,
|
|
1972
1982
|
size: k
|
|
1973
1983
|
} : R === n ? {
|
|
1974
1984
|
...w,
|
|
1975
|
-
size:
|
|
1985
|
+
size: b
|
|
1976
1986
|
} : {
|
|
1977
1987
|
...w
|
|
1978
1988
|
};
|
|
@@ -2203,20 +2213,20 @@ const zs = {
|
|
|
2203
2213
|
onSelect: m,
|
|
2204
2214
|
index: h,
|
|
2205
2215
|
tabIndex: p,
|
|
2206
|
-
children:
|
|
2207
|
-
...
|
|
2208
|
-
} = e, { expanded: I, mini: C, item: k } = t.useContext(ht),
|
|
2216
|
+
children: f,
|
|
2217
|
+
...g
|
|
2218
|
+
} = e, { expanded: I, mini: C, item: k } = t.useContext(ht), b = t.useRef(null), T = t.useCallback(
|
|
2209
2219
|
() => {
|
|
2210
|
-
|
|
2220
|
+
b.current && b.current.focus();
|
|
2211
2221
|
},
|
|
2212
2222
|
[]
|
|
2213
2223
|
);
|
|
2214
2224
|
t.useImperativeHandle(s, () => ({
|
|
2215
|
-
element:
|
|
2225
|
+
element: b.current,
|
|
2216
2226
|
focus: T,
|
|
2217
2227
|
props: e
|
|
2218
2228
|
}));
|
|
2219
|
-
const
|
|
2229
|
+
const v = y(
|
|
2220
2230
|
"k-drawer-item",
|
|
2221
2231
|
{
|
|
2222
2232
|
"k-selected": u,
|
|
@@ -2227,7 +2237,7 @@ const zs = {
|
|
|
2227
2237
|
(O) => {
|
|
2228
2238
|
if (m && !d) {
|
|
2229
2239
|
const A = {
|
|
2230
|
-
element:
|
|
2240
|
+
element: b.current,
|
|
2231
2241
|
focus: T,
|
|
2232
2242
|
props: e
|
|
2233
2243
|
};
|
|
@@ -2239,17 +2249,17 @@ const zs = {
|
|
|
2239
2249
|
return c ? /* @__PURE__ */ t.createElement("li", { className: "k-drawer-item k-drawer-separator", role: "separator" }) : /* @__PURE__ */ t.createElement(
|
|
2240
2250
|
"li",
|
|
2241
2251
|
{
|
|
2242
|
-
ref:
|
|
2243
|
-
className:
|
|
2252
|
+
ref: b,
|
|
2253
|
+
className: v,
|
|
2244
2254
|
style: i,
|
|
2245
2255
|
role: "menuitem",
|
|
2246
2256
|
"aria-label": a,
|
|
2247
2257
|
"aria-disabled": d,
|
|
2248
2258
|
onClick: R,
|
|
2249
2259
|
tabIndex: Pe(p, d),
|
|
2250
|
-
...
|
|
2260
|
+
...g
|
|
2251
2261
|
},
|
|
2252
|
-
k ?
|
|
2262
|
+
k ? f : w
|
|
2253
2263
|
);
|
|
2254
2264
|
});
|
|
2255
2265
|
pt.propTypes = {
|
|
@@ -2275,19 +2285,19 @@ const Fs = 240, Bs = 50, Ks = { type: "slide", duration: 200 }, Hs = { type: "sl
|
|
|
2275
2285
|
onOverlayClick: m,
|
|
2276
2286
|
mini: h,
|
|
2277
2287
|
dir: p,
|
|
2278
|
-
width:
|
|
2279
|
-
miniWidth:
|
|
2288
|
+
width: f,
|
|
2289
|
+
miniWidth: g,
|
|
2280
2290
|
items: I,
|
|
2281
2291
|
item: C,
|
|
2282
2292
|
onSelect: k
|
|
2283
|
-
} = t.useContext(ht),
|
|
2293
|
+
} = t.useContext(ht), b = t.useRef(null), T = t.useCallback(
|
|
2284
2294
|
() => {
|
|
2285
|
-
|
|
2295
|
+
b.current && b.current.focus();
|
|
2286
2296
|
},
|
|
2287
2297
|
[]
|
|
2288
|
-
),
|
|
2298
|
+
), v = typeof l != "boolean" ? l : l === !1 ? Hs : Ks, R = f || Fs, w = g || Bs;
|
|
2289
2299
|
t.useImperativeHandle(s, () => ({
|
|
2290
|
-
element:
|
|
2300
|
+
element: b.current,
|
|
2291
2301
|
focus: T
|
|
2292
2302
|
}));
|
|
2293
2303
|
const O = t.useMemo(
|
|
@@ -2302,38 +2312,38 @@ const Fs = 240, Bs = 50, Ks = { type: "slide", duration: 200 }, Hs = { type: "sl
|
|
|
2302
2312
|
), A = {
|
|
2303
2313
|
opacity: 1,
|
|
2304
2314
|
flexBasis: R,
|
|
2305
|
-
WebkitTransition: "all " + (
|
|
2315
|
+
WebkitTransition: "all " + (v && v.duration) + "ms",
|
|
2306
2316
|
/* Safari */
|
|
2307
|
-
transition: "all " + (
|
|
2317
|
+
transition: "all " + (v && v.duration) + "ms"
|
|
2308
2318
|
}, D = {
|
|
2309
2319
|
opacity: 1,
|
|
2310
2320
|
transform: "translateX(0px)",
|
|
2311
|
-
WebkitTransition: "all " + (
|
|
2321
|
+
WebkitTransition: "all " + (v && v.duration) + "ms",
|
|
2312
2322
|
/* Safari */
|
|
2313
|
-
transition: "all " + (
|
|
2323
|
+
transition: "all " + (v && v.duration) + "ms"
|
|
2314
2324
|
}, L = {
|
|
2315
2325
|
opacity: h ? 1 : 0,
|
|
2316
2326
|
flexBasis: h ? w : 0,
|
|
2317
|
-
WebkitTransition: "all " + (
|
|
2327
|
+
WebkitTransition: "all " + (v && v.duration) + "ms",
|
|
2318
2328
|
/* Safari */
|
|
2319
|
-
transition: "all " + (
|
|
2329
|
+
transition: "all " + (v && v.duration) + "ms"
|
|
2320
2330
|
}, B = {
|
|
2321
2331
|
opacity: 0,
|
|
2322
2332
|
transform: "translateX(-100%)",
|
|
2323
|
-
WebkitTransition: "all " + (
|
|
2333
|
+
WebkitTransition: "all " + (v && v.duration) + "ms",
|
|
2324
2334
|
/* Safari */
|
|
2325
|
-
transition: "all " + (
|
|
2335
|
+
transition: "all " + (v && v.duration) + "ms"
|
|
2326
2336
|
}, G = {
|
|
2327
2337
|
opacity: 0,
|
|
2328
2338
|
transform: "translateX(100%)",
|
|
2329
|
-
WebkitTransition: "all " + (
|
|
2339
|
+
WebkitTransition: "all " + (v && v.duration) + "ms",
|
|
2330
2340
|
/* Safari */
|
|
2331
|
-
transition: "all " + (
|
|
2341
|
+
transition: "all " + (v && v.duration) + "ms"
|
|
2332
2342
|
}, ee = {
|
|
2333
2343
|
transform: "translateX(0%)",
|
|
2334
|
-
WebkitTransitionDuration: (
|
|
2344
|
+
WebkitTransitionDuration: (v && v.duration) + "ms",
|
|
2335
2345
|
/* Safari */
|
|
2336
|
-
transitionDuration: (
|
|
2346
|
+
transitionDuration: (v && v.duration) + "ms"
|
|
2337
2347
|
}, W = c ? d === "push" ? A : D : d === "push" ? L : p === "ltr" && u === "start" || p === "rtl" && u === "end" ? h ? ee : B : h ? ee : G, S = I && /* @__PURE__ */ t.createElement(
|
|
2338
2348
|
"ul",
|
|
2339
2349
|
{
|
|
@@ -2348,16 +2358,16 @@ const Fs = 240, Bs = 50, Ks = { type: "slide", duration: 200 }, Hs = { type: "sl
|
|
|
2348
2358
|
index: Y,
|
|
2349
2359
|
...U,
|
|
2350
2360
|
onSelect: k
|
|
2351
|
-
},
|
|
2352
|
-
return /* @__PURE__ */ t.createElement(
|
|
2361
|
+
}, ae = C || pt;
|
|
2362
|
+
return /* @__PURE__ */ t.createElement(ae, { key: Y, ...Z });
|
|
2353
2363
|
}
|
|
2354
2364
|
)
|
|
2355
2365
|
), M = /* @__PURE__ */ t.createElement(
|
|
2356
2366
|
"div",
|
|
2357
2367
|
{
|
|
2358
|
-
style:
|
|
2368
|
+
style: v ? { ...W, ...a } : a,
|
|
2359
2369
|
className: O,
|
|
2360
|
-
ref:
|
|
2370
|
+
ref: b
|
|
2361
2371
|
},
|
|
2362
2372
|
/* @__PURE__ */ t.createElement(
|
|
2363
2373
|
"div",
|
|
@@ -2393,11 +2403,11 @@ const gt = t.forwardRef((e, s) => {
|
|
|
2393
2403
|
width: m,
|
|
2394
2404
|
miniWidth: h,
|
|
2395
2405
|
items: p,
|
|
2396
|
-
item:
|
|
2397
|
-
tabIndex:
|
|
2406
|
+
item: f,
|
|
2407
|
+
tabIndex: g,
|
|
2398
2408
|
onOverlayClick: I,
|
|
2399
2409
|
onSelect: C
|
|
2400
|
-
} = e, k = t.useRef(null),
|
|
2410
|
+
} = e, k = t.useRef(null), b = t.useCallback(
|
|
2401
2411
|
() => {
|
|
2402
2412
|
k.current && k.current.focus();
|
|
2403
2413
|
},
|
|
@@ -2405,7 +2415,7 @@ const gt = t.forwardRef((e, s) => {
|
|
|
2405
2415
|
);
|
|
2406
2416
|
t.useImperativeHandle(s, () => ({
|
|
2407
2417
|
element: k.current,
|
|
2408
|
-
focus:
|
|
2418
|
+
focus: b
|
|
2409
2419
|
}));
|
|
2410
2420
|
const T = t.useCallback(
|
|
2411
2421
|
(w, O, A) => {
|
|
@@ -2421,7 +2431,7 @@ const gt = t.forwardRef((e, s) => {
|
|
|
2421
2431
|
}
|
|
2422
2432
|
},
|
|
2423
2433
|
[p, C]
|
|
2424
|
-
),
|
|
2434
|
+
), v = ye(k, e.dir), R = y(
|
|
2425
2435
|
{
|
|
2426
2436
|
"k-drawer-container": !0,
|
|
2427
2437
|
"k-drawer-expanded": n,
|
|
@@ -2440,9 +2450,9 @@ const gt = t.forwardRef((e, s) => {
|
|
|
2440
2450
|
mode: i,
|
|
2441
2451
|
position: a,
|
|
2442
2452
|
mini: u,
|
|
2443
|
-
dir:
|
|
2453
|
+
dir: v,
|
|
2444
2454
|
items: p,
|
|
2445
|
-
item:
|
|
2455
|
+
item: f,
|
|
2446
2456
|
width: m,
|
|
2447
2457
|
miniWidth: h,
|
|
2448
2458
|
onOverlayClick: I,
|
|
@@ -2454,9 +2464,9 @@ const gt = t.forwardRef((e, s) => {
|
|
|
2454
2464
|
{
|
|
2455
2465
|
className: R,
|
|
2456
2466
|
ref: k,
|
|
2457
|
-
dir:
|
|
2467
|
+
dir: v,
|
|
2458
2468
|
style: c,
|
|
2459
|
-
tabIndex:
|
|
2469
|
+
tabIndex: g
|
|
2460
2470
|
},
|
|
2461
2471
|
p && /* @__PURE__ */ t.createElement(ft, null),
|
|
2462
2472
|
l
|
|
@@ -2532,15 +2542,15 @@ const Ws = {
|
|
|
2532
2542
|
isValid: m,
|
|
2533
2543
|
label: h,
|
|
2534
2544
|
optional: p,
|
|
2535
|
-
style:
|
|
2536
|
-
tabIndex:
|
|
2545
|
+
style: f,
|
|
2546
|
+
tabIndex: g,
|
|
2537
2547
|
text: I,
|
|
2538
2548
|
...C
|
|
2539
2549
|
} = e, {
|
|
2540
2550
|
animationDuration: k,
|
|
2541
|
-
isVertical:
|
|
2551
|
+
isVertical: b,
|
|
2542
2552
|
item: T,
|
|
2543
|
-
linear:
|
|
2553
|
+
linear: v,
|
|
2544
2554
|
mode: R,
|
|
2545
2555
|
numOfSteps: w,
|
|
2546
2556
|
value: O,
|
|
@@ -2563,7 +2573,7 @@ const Ws = {
|
|
|
2563
2573
|
[S]
|
|
2564
2574
|
);
|
|
2565
2575
|
t.useImperativeHandle(s, M);
|
|
2566
|
-
const U = !
|
|
2576
|
+
const U = !v || u === O - 1 || u === O || u === O + 1, Y = R === "labels" || !!c && !!h, Z = Jt(), me = ((ne) => Z.toLanguageString(ne, On[ne]))(Dn), ie = typeof k == "number" ? k : k !== !1 ? Tn : Rn, Ee = t.useCallback(
|
|
2567
2577
|
(ne) => {
|
|
2568
2578
|
A && !o && q(
|
|
2569
2579
|
A,
|
|
@@ -2604,12 +2614,12 @@ const Ws = {
|
|
|
2604
2614
|
[u, w, O, a, p, o, l, m, i]
|
|
2605
2615
|
), _ = t.useMemo(
|
|
2606
2616
|
() => ({
|
|
2607
|
-
maxWidth:
|
|
2608
|
-
maxHeight:
|
|
2617
|
+
maxWidth: b ? void 0 : `calc(100% / ${w})`,
|
|
2618
|
+
maxHeight: b ? `calc(100% / ${w})` : void 0,
|
|
2609
2619
|
pointerEvents: U ? void 0 : "none",
|
|
2610
|
-
...
|
|
2620
|
+
...f
|
|
2611
2621
|
}),
|
|
2612
|
-
[
|
|
2622
|
+
[b, w, f, U]
|
|
2613
2623
|
), F = m ? L : B, j = F ? /* @__PURE__ */ t.createElement(
|
|
2614
2624
|
"span",
|
|
2615
2625
|
{
|
|
@@ -2628,7 +2638,7 @@ const Ws = {
|
|
|
2628
2638
|
{
|
|
2629
2639
|
className: "k-step-indicator",
|
|
2630
2640
|
"aria-hidden": !0,
|
|
2631
|
-
style: { transitionDuration:
|
|
2641
|
+
style: { transitionDuration: ie + "ms" }
|
|
2632
2642
|
},
|
|
2633
2643
|
c || d ? !Y && m !== void 0 ? j : /* @__PURE__ */ t.createElement(Q, { className: "k-step-indicator-icon", name: c && jt(c), icon: d }) : m !== void 0 ? j : /* @__PURE__ */ t.createElement("span", { className: "k-step-indicator-text" }, I || u + 1)
|
|
2634
2644
|
) : null), Ce = /* @__PURE__ */ t.createElement("span", { className: "k-step-label" }, h && /* @__PURE__ */ t.createElement("span", { className: "k-step-text" }, h), Y && m !== void 0 && j, p && /* @__PURE__ */ t.createElement("span", { className: "k-step-label-optional" }, me)), fe = /* @__PURE__ */ t.createElement(t.Fragment, null, pe, Ce);
|
|
@@ -2647,7 +2657,7 @@ const Ws = {
|
|
|
2647
2657
|
title: h || void 0,
|
|
2648
2658
|
onClick: Ee,
|
|
2649
2659
|
onFocus: he,
|
|
2650
|
-
tabIndex:
|
|
2660
|
+
tabIndex: g || (l ? 0 : -1),
|
|
2651
2661
|
"aria-current": a,
|
|
2652
2662
|
"aria-disabled": o || !U || void 0,
|
|
2653
2663
|
"aria-invalid": m !== void 0 && !m || void 0
|
|
@@ -2690,25 +2700,25 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2690
2700
|
linear: m,
|
|
2691
2701
|
mode: h,
|
|
2692
2702
|
orientation: p,
|
|
2693
|
-
style:
|
|
2694
|
-
successIcon:
|
|
2703
|
+
style: f,
|
|
2704
|
+
successIcon: g,
|
|
2695
2705
|
successSVGIcon: I,
|
|
2696
2706
|
onChange: C,
|
|
2697
2707
|
onFocus: k
|
|
2698
|
-
} = e, T = Jt().toLanguageString(st, On[st]),
|
|
2708
|
+
} = e, T = Jt().toLanguageString(st, On[st]), v = t.useRef(null), R = t.useCallback(
|
|
2699
2709
|
() => {
|
|
2700
|
-
|
|
2710
|
+
v.current && Ie(v.current);
|
|
2701
2711
|
},
|
|
2702
2712
|
[]
|
|
2703
2713
|
), w = t.useCallback(
|
|
2704
2714
|
() => ({
|
|
2705
|
-
element:
|
|
2715
|
+
element: v.current,
|
|
2706
2716
|
focus: R
|
|
2707
2717
|
}),
|
|
2708
2718
|
[R]
|
|
2709
2719
|
);
|
|
2710
2720
|
t.useImperativeHandle(s, w);
|
|
2711
|
-
const O = e.value || Pn.value, [A, D] = t.useState(O), L = u ? u.length : 0, B = p === "vertical", G = Vt(
|
|
2721
|
+
const O = e.value || Pn.value, [A, D] = t.useState(O), L = u ? u.length : 0, B = p === "vertical", G = Vt(v, e.dir), ee = typeof n == "number" ? n : n !== !1 ? Tn : Rn;
|
|
2712
2722
|
t.useEffect(() => {
|
|
2713
2723
|
D(O);
|
|
2714
2724
|
}, [O]);
|
|
@@ -2784,14 +2794,14 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2784
2794
|
a
|
|
2785
2795
|
),
|
|
2786
2796
|
[m, a]
|
|
2787
|
-
),
|
|
2797
|
+
), ae = t.useMemo(
|
|
2788
2798
|
() => ({
|
|
2789
2799
|
display: "grid",
|
|
2790
2800
|
gridTemplateColumns: B ? void 0 : "repeat(" + L * 2 + ", 1fr)",
|
|
2791
2801
|
gridTemplateRows: B ? "repeat(" + L + ", 1fr)" : void 0,
|
|
2792
|
-
...
|
|
2802
|
+
...f
|
|
2793
2803
|
}),
|
|
2794
|
-
[B, L,
|
|
2804
|
+
[B, L, f]
|
|
2795
2805
|
), me = t.useMemo(
|
|
2796
2806
|
() => y(
|
|
2797
2807
|
"k-step-list",
|
|
@@ -2801,7 +2811,7 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2801
2811
|
}
|
|
2802
2812
|
),
|
|
2803
2813
|
[B]
|
|
2804
|
-
),
|
|
2814
|
+
), ie = t.useMemo(
|
|
2805
2815
|
() => ({
|
|
2806
2816
|
gridColumnStart: B ? void 0 : 1,
|
|
2807
2817
|
gridColumnEnd: B ? void 0 : -1,
|
|
@@ -2839,7 +2849,7 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2839
2849
|
mode: h,
|
|
2840
2850
|
numOfSteps: L,
|
|
2841
2851
|
value: O,
|
|
2842
|
-
successIcon:
|
|
2852
|
+
successIcon: g,
|
|
2843
2853
|
successSVGIcon: I,
|
|
2844
2854
|
errorIcon: l,
|
|
2845
2855
|
errorSVGIcon: c,
|
|
@@ -2851,7 +2861,7 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2851
2861
|
"nav",
|
|
2852
2862
|
{
|
|
2853
2863
|
className: Z,
|
|
2854
|
-
style:
|
|
2864
|
+
style: ae,
|
|
2855
2865
|
dir: G,
|
|
2856
2866
|
onKeyDown: Y
|
|
2857
2867
|
},
|
|
@@ -2859,7 +2869,7 @@ const bt = t.forwardRef((e, s) => {
|
|
|
2859
2869
|
"ol",
|
|
2860
2870
|
{
|
|
2861
2871
|
className: me,
|
|
2862
|
-
style:
|
|
2872
|
+
style: ie
|
|
2863
2873
|
},
|
|
2864
2874
|
he || i
|
|
2865
2875
|
),
|
|
@@ -2927,7 +2937,7 @@ const Mn = t.forwardRef((e, s) => {
|
|
|
2927
2937
|
[c]
|
|
2928
2938
|
);
|
|
2929
2939
|
t.useImperativeHandle(s, d);
|
|
2930
|
-
const u = t.useMemo(() =>
|
|
2940
|
+
const u = t.useMemo(() => se(), []), m = t.useMemo(
|
|
2931
2941
|
() => e.themeColor || Ve.themeColor,
|
|
2932
2942
|
[e.themeColor]
|
|
2933
2943
|
), h = t.useMemo(
|
|
@@ -2936,7 +2946,7 @@ const Mn = t.forwardRef((e, s) => {
|
|
|
2936
2946
|
), p = t.useMemo(
|
|
2937
2947
|
() => e.positionMode || Ve.positionMode,
|
|
2938
2948
|
[e.positionMode]
|
|
2939
|
-
),
|
|
2949
|
+
), f = t.useMemo(
|
|
2940
2950
|
() => y(
|
|
2941
2951
|
"k-appbar",
|
|
2942
2952
|
{
|
|
@@ -2956,7 +2966,7 @@ const Mn = t.forwardRef((e, s) => {
|
|
|
2956
2966
|
return /* @__PURE__ */ t.createElement(
|
|
2957
2967
|
"div",
|
|
2958
2968
|
{
|
|
2959
|
-
className:
|
|
2969
|
+
className: f,
|
|
2960
2970
|
style: a,
|
|
2961
2971
|
id: o || u
|
|
2962
2972
|
},
|
|
@@ -3297,14 +3307,14 @@ class zn extends t.Component {
|
|
|
3297
3307
|
if (i === 0 && a === 0 && !l && !o)
|
|
3298
3308
|
return;
|
|
3299
3309
|
let c = !1;
|
|
3300
|
-
const d = this.state.positions.map((
|
|
3310
|
+
const d = this.state.positions.map((g) => Object.assign({}, g)), u = d[n], m = d.find((g) => g.order === u.order + i);
|
|
3301
3311
|
m && m !== u && (u.order += i, m.order += -i, c = !0);
|
|
3302
3312
|
const h = u.col + a;
|
|
3303
3313
|
a !== 0 && h >= 1 && h + u.colSpan <= (this.props.columns || 3) + 1 && (u.col = h, c = !0);
|
|
3304
3314
|
const p = u.colSpan + l;
|
|
3305
3315
|
l && p >= 1 && p + u.col <= (this.props.columns || 3) + 1 && (u.colSpan = p, c = !0);
|
|
3306
|
-
const
|
|
3307
|
-
o &&
|
|
3316
|
+
const f = u.rowSpan + o;
|
|
3317
|
+
o && f >= 1 && (u.rowSpan = f, c = !0), c && (this.setState({ positions: d }), q(this.props.onReposition, {}, this, { value: d }));
|
|
3308
3318
|
}, V(K), this.showLicenseWatermark = Fe(K);
|
|
3309
3319
|
}
|
|
3310
3320
|
/**
|
|
@@ -3415,12 +3425,12 @@ const Vs = {
|
|
|
3415
3425
|
icon: m,
|
|
3416
3426
|
svgIcon: h,
|
|
3417
3427
|
text: p,
|
|
3418
|
-
id:
|
|
3419
|
-
onSelect:
|
|
3428
|
+
id: f,
|
|
3429
|
+
onSelect: g,
|
|
3420
3430
|
onKeyDown: I,
|
|
3421
3431
|
index: C,
|
|
3422
3432
|
tabIndex: k
|
|
3423
|
-
} = e,
|
|
3433
|
+
} = e, b = t.useMemo(
|
|
3424
3434
|
() => y(
|
|
3425
3435
|
"k-bottom-nav-item",
|
|
3426
3436
|
{
|
|
@@ -3432,10 +3442,10 @@ const Vs = {
|
|
|
3432
3442
|
[o, l, i]
|
|
3433
3443
|
), T = t.useCallback(
|
|
3434
3444
|
(A) => {
|
|
3435
|
-
|
|
3445
|
+
g && C !== void 0 && !l && g(A, C);
|
|
3436
3446
|
},
|
|
3437
|
-
[
|
|
3438
|
-
),
|
|
3447
|
+
[g, C, l]
|
|
3448
|
+
), v = t.useCallback(
|
|
3439
3449
|
(A) => {
|
|
3440
3450
|
I && C !== void 0 && !l && I(A, C);
|
|
3441
3451
|
},
|
|
@@ -3444,13 +3454,13 @@ const Vs = {
|
|
|
3444
3454
|
"span",
|
|
3445
3455
|
{
|
|
3446
3456
|
ref: n,
|
|
3447
|
-
className:
|
|
3457
|
+
className: b,
|
|
3448
3458
|
style: a,
|
|
3449
3459
|
role: "link",
|
|
3450
|
-
id:
|
|
3460
|
+
id: f,
|
|
3451
3461
|
tabIndex: k,
|
|
3452
3462
|
onClick: T,
|
|
3453
|
-
onKeyDown:
|
|
3463
|
+
onKeyDown: v,
|
|
3454
3464
|
"aria-current": o,
|
|
3455
3465
|
"aria-disabled": l
|
|
3456
3466
|
},
|
|
@@ -3497,14 +3507,14 @@ const vt = t.forwardRef((e, s) => {
|
|
|
3497
3507
|
item: m,
|
|
3498
3508
|
itemRender: h,
|
|
3499
3509
|
disabled: p,
|
|
3500
|
-
style:
|
|
3501
|
-
id:
|
|
3510
|
+
style: f,
|
|
3511
|
+
id: g,
|
|
3502
3512
|
onSelect: I,
|
|
3503
3513
|
onKeyDown: C
|
|
3504
|
-
} = e, k = t.useMemo(() =>
|
|
3514
|
+
} = e, k = t.useMemo(() => se(), []), b = ye(n, e.dir), T = t.useMemo(
|
|
3505
3515
|
() => e.fillMode === null || e.fill === null ? null : e.fill || e.fillMode || be.fillMode,
|
|
3506
3516
|
[e.fillMode, e.fill]
|
|
3507
|
-
),
|
|
3517
|
+
), v = t.useMemo(
|
|
3508
3518
|
() => e.themeColor || be.themeColor,
|
|
3509
3519
|
[e.themeColor]
|
|
3510
3520
|
), R = t.useMemo(
|
|
@@ -3514,13 +3524,13 @@ const vt = t.forwardRef((e, s) => {
|
|
|
3514
3524
|
Vs[l],
|
|
3515
3525
|
{
|
|
3516
3526
|
[`k-bottom-nav-${T}`]: T,
|
|
3517
|
-
[`k-bottom-nav-${T}-${
|
|
3527
|
+
[`k-bottom-nav-${T}-${v}`]: !!(T && v),
|
|
3518
3528
|
"k-bottom-nav-border": c,
|
|
3519
3529
|
"k-disabled": p
|
|
3520
3530
|
},
|
|
3521
3531
|
d
|
|
3522
3532
|
),
|
|
3523
|
-
[o,
|
|
3533
|
+
[o, v, T, l, c, p, d]
|
|
3524
3534
|
), w = t.useCallback(
|
|
3525
3535
|
(D, L) => {
|
|
3526
3536
|
u && !u[L].disabled && I && q(
|
|
@@ -3561,9 +3571,9 @@ const vt = t.forwardRef((e, s) => {
|
|
|
3561
3571
|
{
|
|
3562
3572
|
ref: n,
|
|
3563
3573
|
className: R,
|
|
3564
|
-
style:
|
|
3565
|
-
id:
|
|
3566
|
-
dir:
|
|
3574
|
+
style: f,
|
|
3575
|
+
id: g || k,
|
|
3576
|
+
dir: b
|
|
3567
3577
|
},
|
|
3568
3578
|
u && u.map((D, L) => /* @__PURE__ */ t.createElement(
|
|
3569
3579
|
Ue,
|
|
@@ -3571,7 +3581,7 @@ const vt = t.forwardRef((e, s) => {
|
|
|
3571
3581
|
...D,
|
|
3572
3582
|
key: L,
|
|
3573
3583
|
index: L,
|
|
3574
|
-
id: `${
|
|
3584
|
+
id: `${g || k}-${L}`,
|
|
3575
3585
|
disabled: p || D.disabled,
|
|
3576
3586
|
selected: D.selected,
|
|
3577
3587
|
dataItem: D,
|
|
@@ -3625,7 +3635,7 @@ const kt = t.forwardRef((e, s) => {
|
|
|
3625
3635
|
[]
|
|
3626
3636
|
);
|
|
3627
3637
|
t.useImperativeHandle(s, i);
|
|
3628
|
-
const { className: a, style: o, id: l, children: c } = e, d = t.useMemo(() =>
|
|
3638
|
+
const { className: a, style: o, id: l, children: c } = e, d = t.useMemo(() => se(), []), u = t.useMemo(
|
|
3629
3639
|
() => e.orientation || Ae.orientation,
|
|
3630
3640
|
[e.orientation]
|
|
3631
3641
|
), m = u === "horizontal", h = t.useMemo(
|
|
@@ -3634,7 +3644,7 @@ const kt = t.forwardRef((e, s) => {
|
|
|
3634
3644
|
), p = t.useMemo(
|
|
3635
3645
|
() => e.align && e.align.vertical ? e.align.vertical : Ae.vAlign,
|
|
3636
3646
|
[e.align]
|
|
3637
|
-
),
|
|
3647
|
+
), f = t.useMemo(
|
|
3638
3648
|
() => y(
|
|
3639
3649
|
"k-stack-layout",
|
|
3640
3650
|
{
|
|
@@ -3652,7 +3662,7 @@ const kt = t.forwardRef((e, s) => {
|
|
|
3652
3662
|
a
|
|
3653
3663
|
),
|
|
3654
3664
|
[u, m, h, p, a]
|
|
3655
|
-
),
|
|
3665
|
+
), g = {
|
|
3656
3666
|
gap: `${typeof e.gap == "number" ? e.gap + "px" : e.gap}`,
|
|
3657
3667
|
...o
|
|
3658
3668
|
};
|
|
@@ -3660,8 +3670,8 @@ const kt = t.forwardRef((e, s) => {
|
|
|
3660
3670
|
"div",
|
|
3661
3671
|
{
|
|
3662
3672
|
ref: n,
|
|
3663
|
-
className:
|
|
3664
|
-
style:
|
|
3673
|
+
className: f,
|
|
3674
|
+
style: g,
|
|
3665
3675
|
id: l || d
|
|
3666
3676
|
},
|
|
3667
3677
|
c
|
|
@@ -3694,7 +3704,7 @@ const yt = t.forwardRef((e, s) => {
|
|
|
3694
3704
|
[]
|
|
3695
3705
|
);
|
|
3696
3706
|
t.useImperativeHandle(s, i);
|
|
3697
|
-
const { className: a, style: o, id: l, children: c, gap: d } = e, u = t.useMemo(() =>
|
|
3707
|
+
const { className: a, style: o, id: l, children: c, gap: d } = e, u = t.useMemo(() => se(), []), m = t.useMemo(
|
|
3698
3708
|
() => e.align && e.align.horizontal ? e.align.horizontal : rt.hAlign,
|
|
3699
3709
|
[e.align]
|
|
3700
3710
|
), h = t.useMemo(
|
|
@@ -3716,10 +3726,10 @@ const yt = t.forwardRef((e, s) => {
|
|
|
3716
3726
|
a
|
|
3717
3727
|
),
|
|
3718
3728
|
[m, h, a]
|
|
3719
|
-
),
|
|
3720
|
-
gap:
|
|
3729
|
+
), f = d ? `${typeof d.rows == "number" ? d.rows + "px" : d.rows} ${typeof d.cols == "number" ? d.cols + "px" : d.cols}` : void 0, g = e.rows && e.rows.map((k) => `${typeof k.height == "number" ? k.height + "px" : k.height}`).join(" "), I = e.cols && e.cols.map((k) => `${typeof k.width == "number" ? k.width + "px" : k.width}`).join(" "), C = {
|
|
3730
|
+
gap: f,
|
|
3721
3731
|
gridTemplateColumns: I,
|
|
3722
|
-
gridTemplateRows:
|
|
3732
|
+
gridTemplateRows: g,
|
|
3723
3733
|
...o
|
|
3724
3734
|
};
|
|
3725
3735
|
return /* @__PURE__ */ t.createElement(
|
|
@@ -3762,7 +3772,7 @@ const Fn = t.forwardRef((e, s) => {
|
|
|
3762
3772
|
[]
|
|
3763
3773
|
);
|
|
3764
3774
|
t.useImperativeHandle(s, i);
|
|
3765
|
-
const { className: a, style: o, id: l, children: c, row: d, col: u, rowSpan: m, colSpan: h } = e, p = t.useMemo(() =>
|
|
3775
|
+
const { className: a, style: o, id: l, children: c, row: d, col: u, rowSpan: m, colSpan: h } = e, p = t.useMemo(() => se(), []), f = {
|
|
3766
3776
|
gridArea: `${d || "auto"} / ${u || "auto"} / ${m ? "span " + m : "auto"} / ${h ? "span " + h : "auto"}`,
|
|
3767
3777
|
...o
|
|
3768
3778
|
};
|
|
@@ -3771,7 +3781,7 @@ const Fn = t.forwardRef((e, s) => {
|
|
|
3771
3781
|
{
|
|
3772
3782
|
ref: n,
|
|
3773
3783
|
className: a,
|
|
3774
|
-
style:
|
|
3784
|
+
style: f,
|
|
3775
3785
|
id: l || p
|
|
3776
3786
|
},
|
|
3777
3787
|
c
|
|
@@ -4000,11 +4010,11 @@ const wt = t.forwardRef((e, s) => {
|
|
|
4000
4010
|
focus: d,
|
|
4001
4011
|
props: e
|
|
4002
4012
|
})), t.useImperativeHandle(s, () => n.current);
|
|
4003
|
-
const m = ye(i, e.dir), h = (
|
|
4004
|
-
n.current && q(e.onItemSelect,
|
|
4005
|
-
}, p = (
|
|
4006
|
-
n.current && q(e.onKeyDown,
|
|
4007
|
-
},
|
|
4013
|
+
const m = ye(i, e.dir), h = (b) => {
|
|
4014
|
+
n.current && q(e.onItemSelect, b, b.target, { id: b.target.id });
|
|
4015
|
+
}, p = (b) => {
|
|
4016
|
+
n.current && q(e.onKeyDown, b, b.target, { id: b.target.id });
|
|
4017
|
+
}, f = e.valueField || Re.valueField, g = e.iconField || Re.iconField, I = e.iconClassField || Re.iconClassField, C = e.textField || Re.textField, k = e.size || "medium";
|
|
4008
4018
|
return /* @__PURE__ */ t.createElement(
|
|
4009
4019
|
"nav",
|
|
4010
4020
|
{
|
|
@@ -4024,26 +4034,26 @@ const wt = t.forwardRef((e, s) => {
|
|
|
4024
4034
|
e.className
|
|
4025
4035
|
)
|
|
4026
4036
|
},
|
|
4027
|
-
/* @__PURE__ */ t.createElement(a, { rootItem: !0 }, /* @__PURE__ */ t.createElement(t.Fragment, null, e.data.map((
|
|
4028
|
-
const R =
|
|
4037
|
+
/* @__PURE__ */ t.createElement(a, { rootItem: !0 }, /* @__PURE__ */ t.createElement(t.Fragment, null, e.data.map((b, T, v) => {
|
|
4038
|
+
const R = b[f];
|
|
4029
4039
|
if (T === 0)
|
|
4030
4040
|
return /* @__PURE__ */ t.createElement(
|
|
4031
4041
|
o,
|
|
4032
4042
|
{
|
|
4033
4043
|
key: R,
|
|
4034
4044
|
isFirstItem: !0,
|
|
4035
|
-
isLastItem:
|
|
4045
|
+
isLastItem: v.length - 1 === T
|
|
4036
4046
|
},
|
|
4037
4047
|
/* @__PURE__ */ t.createElement(
|
|
4038
4048
|
c,
|
|
4039
4049
|
{
|
|
4040
|
-
isLast:
|
|
4050
|
+
isLast: v.length - 1 === T,
|
|
4041
4051
|
isFirst: !0,
|
|
4042
4052
|
id: String(R),
|
|
4043
|
-
icon: g
|
|
4044
|
-
iconClass:
|
|
4045
|
-
text:
|
|
4046
|
-
disabled:
|
|
4053
|
+
icon: b[g] || void 0,
|
|
4054
|
+
iconClass: b[I] ? String(b[I]) : void 0,
|
|
4055
|
+
text: b[C] ? String(b[C]) : void 0,
|
|
4056
|
+
disabled: b.disabled || !1,
|
|
4047
4057
|
onItemSelect: h,
|
|
4048
4058
|
onKeyDown: p,
|
|
4049
4059
|
...e
|
|
@@ -4051,27 +4061,27 @@ const wt = t.forwardRef((e, s) => {
|
|
|
4051
4061
|
)
|
|
4052
4062
|
);
|
|
4053
4063
|
}))),
|
|
4054
|
-
/* @__PURE__ */ t.createElement(a, { rootItem: !1 }, /* @__PURE__ */ t.createElement(t.Fragment, null, e.data.map((
|
|
4055
|
-
const R =
|
|
4064
|
+
/* @__PURE__ */ t.createElement(a, { rootItem: !1 }, /* @__PURE__ */ t.createElement(t.Fragment, null, e.data.map((b, T, v) => {
|
|
4065
|
+
const R = b[f];
|
|
4056
4066
|
if (T !== 0)
|
|
4057
4067
|
return /* @__PURE__ */ t.createElement(
|
|
4058
4068
|
o,
|
|
4059
4069
|
{
|
|
4060
4070
|
key: R,
|
|
4061
4071
|
isFirstItem: !1,
|
|
4062
|
-
isLastItem:
|
|
4072
|
+
isLastItem: v.length - 1 === T
|
|
4063
4073
|
},
|
|
4064
4074
|
/* @__PURE__ */ t.createElement(l, { dir: m }),
|
|
4065
4075
|
/* @__PURE__ */ t.createElement(
|
|
4066
4076
|
c,
|
|
4067
4077
|
{
|
|
4068
|
-
isLast:
|
|
4078
|
+
isLast: v.length - 1 === T,
|
|
4069
4079
|
isFirst: !1,
|
|
4070
4080
|
id: String(R),
|
|
4071
|
-
icon: g
|
|
4072
|
-
iconClass:
|
|
4073
|
-
text:
|
|
4074
|
-
disabled:
|
|
4081
|
+
icon: b[g] || void 0,
|
|
4082
|
+
iconClass: b[I] ? String(b[I]) : void 0,
|
|
4083
|
+
text: b[C] ? String(b[C]) : void 0,
|
|
4084
|
+
disabled: b.disabled || !1,
|
|
4075
4085
|
onItemSelect: h,
|
|
4076
4086
|
onKeyDown: p,
|
|
4077
4087
|
...e
|
|
@@ -4291,7 +4301,7 @@ class Rt extends t.Component {
|
|
|
4291
4301
|
expand: o,
|
|
4292
4302
|
tabIndex: l,
|
|
4293
4303
|
items: c
|
|
4294
|
-
} = this.props, d = c == null ? void 0 : c.filter((
|
|
4304
|
+
} = this.props, d = c == null ? void 0 : c.filter((g) => !g.group || g.group === "top"), u = c == null ? void 0 : c.filter((g) => g.group === "bottom"), m = d && d.length > 0 && u && u.length > 0, h = this.children(this.props.children), p = this.props.animationDuration || this.animationDuration, f = this.state.slide && /* @__PURE__ */ t.createElement(
|
|
4295
4305
|
"div",
|
|
4296
4306
|
{
|
|
4297
4307
|
className: y("k-actionsheet", this.props.className, {
|
|
@@ -4306,23 +4316,23 @@ class Rt extends t.Component {
|
|
|
4306
4316
|
},
|
|
4307
4317
|
h[ot] && !s && !n && h[ot],
|
|
4308
4318
|
(s || n) && /* @__PURE__ */ t.createElement("div", { className: "k-actionsheet-titlebar k-text-center" }, /* @__PURE__ */ t.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ t.createElement("div", { className: this.actionSheetTitleClass, id: this.ariaLabeledBy }, s && /* @__PURE__ */ t.createElement("div", null, s), n && /* @__PURE__ */ t.createElement("div", { className: "k-actionsheet-subtitle" }, n)))),
|
|
4309
|
-
h[Kn] || /* @__PURE__ */ t.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ t.createElement("div", { className: "k-list-ul", role: "group" }, d && d.map((
|
|
4319
|
+
h[Kn] || /* @__PURE__ */ t.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ t.createElement("div", { className: "k-list-ul", role: "group" }, d && d.map((g, I) => /* @__PURE__ */ t.createElement(
|
|
4310
4320
|
at,
|
|
4311
4321
|
{
|
|
4312
|
-
...
|
|
4322
|
+
...g,
|
|
4313
4323
|
id: I,
|
|
4314
4324
|
key: I,
|
|
4315
|
-
item:
|
|
4325
|
+
item: g,
|
|
4316
4326
|
tabIndex: l || 0,
|
|
4317
4327
|
onClick: this.handleItemClick
|
|
4318
4328
|
}
|
|
4319
|
-
))), m && /* @__PURE__ */ t.createElement("hr", { className: "k-hr" }), /* @__PURE__ */ t.createElement("div", { className: "k-list-ul", role: "group" }, u && u.map((
|
|
4329
|
+
))), m && /* @__PURE__ */ t.createElement("hr", { className: "k-hr" }), /* @__PURE__ */ t.createElement("div", { className: "k-list-ul", role: "group" }, u && u.map((g, I) => /* @__PURE__ */ t.createElement(
|
|
4320
4330
|
at,
|
|
4321
4331
|
{
|
|
4322
|
-
...
|
|
4332
|
+
...g,
|
|
4323
4333
|
id: I + ((d == null ? void 0 : d.length) || 0),
|
|
4324
4334
|
key: I,
|
|
4325
|
-
item:
|
|
4335
|
+
item: g,
|
|
4326
4336
|
tabIndex: l || 0,
|
|
4327
4337
|
onClick: this.handleItemClick
|
|
4328
4338
|
}
|
|
@@ -4349,8 +4359,8 @@ class Rt extends t.Component {
|
|
|
4349
4359
|
enter: !0,
|
|
4350
4360
|
appear: !1
|
|
4351
4361
|
},
|
|
4352
|
-
|
|
4353
|
-
) :
|
|
4362
|
+
f
|
|
4363
|
+
) : f)) : null);
|
|
4354
4364
|
}
|
|
4355
4365
|
}
|
|
4356
4366
|
Rt.displayName = "KendoReactActionSheet";
|
|
@@ -4366,33 +4376,33 @@ Rt.defaultProps = {
|
|
|
4366
4376
|
navigatableElements: []
|
|
4367
4377
|
};
|
|
4368
4378
|
const Dt = (e) => {
|
|
4369
|
-
const { title: n, subtitle: i, actions: a, images: o, description: l } = e.eventData, [c, d] = t.useState(e.eventData.opened || !1), [u, m] = t.useState(e.eventData.opened || !!e.collapsible), h = (
|
|
4379
|
+
const { title: n, subtitle: i, actions: a, images: o, description: l } = e.eventData, [c, d] = t.useState(e.eventData.opened || !1), [u, m] = t.useState(e.eventData.opened || !!e.collapsible), h = (g) => {
|
|
4370
4380
|
if (d(!c), e.onChange) {
|
|
4371
4381
|
const I = {
|
|
4372
|
-
syntheticEvent:
|
|
4373
|
-
nativeEvent:
|
|
4382
|
+
syntheticEvent: g,
|
|
4383
|
+
nativeEvent: g.nativeEvent,
|
|
4374
4384
|
eventData: e.eventData
|
|
4375
4385
|
};
|
|
4376
4386
|
e.onChange.call(void 0, I);
|
|
4377
4387
|
}
|
|
4378
|
-
}, p = (
|
|
4388
|
+
}, p = (g) => {
|
|
4379
4389
|
if (e.onActionClick) {
|
|
4380
4390
|
const I = {
|
|
4381
|
-
syntheticEvent:
|
|
4382
|
-
nativeEvent:
|
|
4391
|
+
syntheticEvent: g,
|
|
4392
|
+
nativeEvent: g.nativeEvent,
|
|
4383
4393
|
eventData: e.eventData
|
|
4384
4394
|
};
|
|
4385
4395
|
e.onActionClick.call(void 0, I);
|
|
4386
4396
|
}
|
|
4387
|
-
},
|
|
4397
|
+
}, f = () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(En, null, /* @__PURE__ */ t.createElement("div", { className: "k-card-description" }, /* @__PURE__ */ t.createElement("p", null, l), o && o.map((g, I) => /* @__PURE__ */ t.createElement(Nn, { key: I, src: g.src })))), /* @__PURE__ */ t.createElement(Cn, null, a && a.map((g, I) => /* @__PURE__ */ t.createElement(
|
|
4388
4398
|
"a",
|
|
4389
4399
|
{
|
|
4390
4400
|
key: I,
|
|
4391
|
-
href:
|
|
4401
|
+
href: g.url,
|
|
4392
4402
|
className: "k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",
|
|
4393
4403
|
onClick: p
|
|
4394
4404
|
},
|
|
4395
|
-
|
|
4405
|
+
g.text
|
|
4396
4406
|
))));
|
|
4397
4407
|
return /* @__PURE__ */ t.createElement(
|
|
4398
4408
|
"div",
|
|
@@ -4429,7 +4439,7 @@ const Dt = (e) => {
|
|
|
4429
4439
|
/* @__PURE__ */ t.createElement("div", { className: "k-card-inner" }, /* @__PURE__ */ t.createElement(yn, null, /* @__PURE__ */ t.createElement(In, null, /* @__PURE__ */ t.createElement("span", { className: "k-event-title" }, n), e.collapsible && /* @__PURE__ */ t.createElement(
|
|
4430
4440
|
"span",
|
|
4431
4441
|
{
|
|
4432
|
-
onClick: (
|
|
4442
|
+
onClick: (g) => h(g),
|
|
4433
4443
|
className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"
|
|
4434
4444
|
},
|
|
4435
4445
|
/* @__PURE__ */ t.createElement(Xe, { icon: Yt })
|
|
@@ -4441,8 +4451,8 @@ const Dt = (e) => {
|
|
|
4441
4451
|
onBeforeEnter: () => m(!1),
|
|
4442
4452
|
onAfterExited: () => m(!0)
|
|
4443
4453
|
},
|
|
4444
|
-
c ?
|
|
4445
|
-
) :
|
|
4454
|
+
c ? f() : null
|
|
4455
|
+
) : f())
|
|
4446
4456
|
)
|
|
4447
4457
|
);
|
|
4448
4458
|
};
|
|
@@ -4454,16 +4464,16 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4454
4464
|
let s;
|
|
4455
4465
|
return e.reduce((i, a) => (s !== a.date.getFullYear() ? (s = a.date.getFullYear(), i.push({ yearFlag: s }, a)) : i.push(a), i), []);
|
|
4456
4466
|
}, _n = (e) => {
|
|
4457
|
-
const i = Qt(), [a, o] = t.useState(!1), [l, c] = t.useState(!0), [d, u] = t.useState(), [m, h] = t.useState(0), [p,
|
|
4467
|
+
const i = Qt(), [a, o] = t.useState(!1), [l, c] = t.useState(!0), [d, u] = t.useState(), [m, h] = t.useState(0), [p, f] = t.useState(), [g, I] = t.useState(0), [C, k] = t.useState(0), [b, T] = t.useState(1), [v, R] = t.useState(), [w, O] = t.useState(), [A, D] = t.useState([0, 0, 0]), [L, B] = t.useState(0), [G, ee] = t.useState(1), W = t.useRef(null), S = t.useRef(null), M = t.useRef(null), { eventsData: U, dateFormat: Y, navigatable: Z, onActionClick: ae } = e, me = p ? `${p}%` : "150px", ie = t.useRef(new ct({
|
|
4458
4468
|
tabIndex: 0,
|
|
4459
4469
|
root: W,
|
|
4460
4470
|
selectors: [".k-timeline-scrollable-wrap"]
|
|
4461
4471
|
}));
|
|
4462
4472
|
t.useEffect(() => {
|
|
4463
4473
|
W.current && e.navigatable && (setTimeout(() => {
|
|
4464
|
-
const E =
|
|
4474
|
+
const E = ie.current.first;
|
|
4465
4475
|
E && E.setAttribute("tabindex", String(0));
|
|
4466
|
-
}, 0),
|
|
4476
|
+
}, 0), ie.current.keyboardEvents = {
|
|
4467
4477
|
keydown: {
|
|
4468
4478
|
ArrowRight: he,
|
|
4469
4479
|
ArrowLeft: H,
|
|
@@ -4471,11 +4481,11 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4471
4481
|
Home: _
|
|
4472
4482
|
}
|
|
4473
4483
|
});
|
|
4474
|
-
}, [e.navigatable,
|
|
4475
|
-
|
|
4484
|
+
}, [e.navigatable, b, g]), t.useEffect(() => {
|
|
4485
|
+
ie.current.update();
|
|
4476
4486
|
});
|
|
4477
4487
|
const Ee = (E) => {
|
|
4478
|
-
Z &&
|
|
4488
|
+
Z && ie.current && ie.current.triggerKeyboardEvent(E);
|
|
4479
4489
|
};
|
|
4480
4490
|
t.useEffect(() => {
|
|
4481
4491
|
var z;
|
|
@@ -4484,33 +4494,33 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4484
4494
|
E && E.disconnect();
|
|
4485
4495
|
};
|
|
4486
4496
|
}, []), t.useEffect(() => {
|
|
4487
|
-
const E = S.current, x = E && E.children[
|
|
4497
|
+
const E = S.current, x = E && E.children[b];
|
|
4488
4498
|
if (x) {
|
|
4489
4499
|
const P = x.offsetWidth, z = !(m >= 0);
|
|
4490
4500
|
if (o(z), w) {
|
|
4491
|
-
const $ = w.length * P >
|
|
4501
|
+
const $ = w.length * P > g * P * ((m * -1 + 100) / 100);
|
|
4492
4502
|
c($);
|
|
4493
4503
|
}
|
|
4494
|
-
(E == null ? void 0 : E.offsetWidth) * -m / 100 >= E.children.length * P && (j(), Le(), h((x.offsetLeft - x.offsetWidth) / (
|
|
4504
|
+
(E == null ? void 0 : E.offsetWidth) * -m / 100 >= E.children.length * P && (j(), Le(), h((x.offsetLeft - x.offsetWidth) / (g * x.offsetWidth) * 100 * -1)), Ot(x);
|
|
4495
4505
|
}
|
|
4496
|
-
}, [
|
|
4506
|
+
}, [g, p, b]);
|
|
4497
4507
|
const he = (E, x, P) => {
|
|
4498
4508
|
if (S.current) {
|
|
4499
|
-
const z = S.current.children[
|
|
4509
|
+
const z = S.current.children[b + 1], $ = z && z.classList.contains("k-timeline-flag-wrap") ? b + 2 : b + 1;
|
|
4500
4510
|
if (w && w.length <= $)
|
|
4501
4511
|
return;
|
|
4502
|
-
|
|
4512
|
+
g + C <= $ && Ce(), we($, P);
|
|
4503
4513
|
}
|
|
4504
4514
|
}, H = (E, x, P) => {
|
|
4505
4515
|
if (S.current) {
|
|
4506
|
-
const z = S.current && S.current.children[
|
|
4516
|
+
const z = S.current && S.current.children[b - 1], $ = z && z.classList.contains("k-timeline-flag-wrap") ? b - 2 : b - 1;
|
|
4507
4517
|
if ($ <= 0)
|
|
4508
4518
|
return;
|
|
4509
4519
|
$ < C && pe(), we($, P);
|
|
4510
4520
|
}
|
|
4511
4521
|
}, _ = (E, x, P) => {
|
|
4512
4522
|
if (S.current) {
|
|
4513
|
-
if (
|
|
4523
|
+
if (b <= 1)
|
|
4514
4524
|
return;
|
|
4515
4525
|
const z = 1;
|
|
4516
4526
|
fe(!0, z, 0, 0), we(z, P);
|
|
@@ -4518,30 +4528,30 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4518
4528
|
}, F = (E, x, P) => {
|
|
4519
4529
|
if (S.current) {
|
|
4520
4530
|
const z = S.current && S.current.children.length - 1;
|
|
4521
|
-
if (z <=
|
|
4531
|
+
if (z <= b)
|
|
4522
4532
|
return;
|
|
4523
|
-
const $ = Math.floor(z /
|
|
4533
|
+
const $ = Math.floor(z / g), Se = $ * -100, je = $ * g;
|
|
4524
4534
|
fe(!0, z, je, Se), we(z, P);
|
|
4525
4535
|
}
|
|
4526
4536
|
}, j = () => {
|
|
4527
4537
|
const E = Hn(U);
|
|
4528
|
-
O(E), R([E[
|
|
4538
|
+
O(E), R([E[b - 1], E[b], E[b + 1]]);
|
|
4529
4539
|
}, pe = () => {
|
|
4530
4540
|
var x;
|
|
4531
4541
|
if (S.current && w) {
|
|
4532
|
-
const P = C -
|
|
4542
|
+
const P = C - g, z = C - 1, $ = w[z] && ((x = w[z]) != null && x.yearFlag) ? z - 1 : z, Se = m + 100 > 0 ? 0 : m + 100;
|
|
4533
4543
|
fe(!1, $, P, Se);
|
|
4534
4544
|
}
|
|
4535
4545
|
}, Ce = () => {
|
|
4536
4546
|
if (S.current && w) {
|
|
4537
|
-
const x = C +
|
|
4547
|
+
const x = C + g, P = w[x] && w[x].yearFlag ? x + 1 : x, z = m - 100;
|
|
4538
4548
|
fe(!0, P, x, z);
|
|
4539
4549
|
}
|
|
4540
4550
|
}, fe = (E, x, P, z) => {
|
|
4541
4551
|
ne(E, x), Le(), k(P), h(z), T(x);
|
|
4542
4552
|
}, ne = (E, x) => {
|
|
4543
|
-
if (
|
|
4544
|
-
const P = Ne(E, G), z = Object.assign([],
|
|
4553
|
+
if (v && w) {
|
|
4554
|
+
const P = Ne(E, G), z = Object.assign([], v, { [P]: w[x] });
|
|
4545
4555
|
R(z), ee(P), B(E ? -100 : 100), setTimeout(() => {
|
|
4546
4556
|
var Mt;
|
|
4547
4557
|
const $ = (Mt = W.current) == null ? void 0 : Mt.offsetWidth, Se = Object.assign([], A, {
|
|
@@ -4557,18 +4567,18 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4557
4567
|
}
|
|
4558
4568
|
}, Ne = (E, x) => {
|
|
4559
4569
|
const P = E ? x + 1 : x - 1;
|
|
4560
|
-
return
|
|
4570
|
+
return v ? P < 0 ? v.length - 1 : P % v.length : 0;
|
|
4561
4571
|
}, Ot = (E) => {
|
|
4562
4572
|
var P;
|
|
4563
|
-
const x = (
|
|
4573
|
+
const x = (b - C) * E.offsetWidth + E.offsetWidth / 2 + (((P = M.current) == null ? void 0 : P.offsetWidth) || 0);
|
|
4564
4574
|
u(x);
|
|
4565
4575
|
}, we = (E, x) => {
|
|
4566
|
-
x.preventDefault(), E >
|
|
4576
|
+
x.preventDefault(), E > b ? ne(!0, E) : E < b && ne(!1, E), T(E);
|
|
4567
4577
|
}, Le = t.useCallback(() => {
|
|
4568
|
-
const E = S.current, x = E && E.children[
|
|
4578
|
+
const E = S.current, x = E && E.children[b];
|
|
4569
4579
|
if (E instanceof HTMLElement && x) {
|
|
4570
4580
|
const P = Math.round(E.offsetWidth / 150);
|
|
4571
|
-
Ot(x),
|
|
4581
|
+
Ot(x), f(100 / P), I(P);
|
|
4572
4582
|
}
|
|
4573
4583
|
}, []), Un = () => ({
|
|
4574
4584
|
transitionDuration: "300ms"
|
|
@@ -4589,7 +4599,7 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4589
4599
|
{ "k-disabled": !a }
|
|
4590
4600
|
)
|
|
4591
4601
|
},
|
|
4592
|
-
/* @__PURE__ */ t.createElement(Xe, { icon:
|
|
4602
|
+
/* @__PURE__ */ t.createElement(Xe, { icon: oe })
|
|
4593
4603
|
), /* @__PURE__ */ t.createElement(
|
|
4594
4604
|
"a",
|
|
4595
4605
|
{
|
|
@@ -4602,7 +4612,7 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4602
4612
|
{ "k-disabled": !l }
|
|
4603
4613
|
)
|
|
4604
4614
|
},
|
|
4605
|
-
/* @__PURE__ */ t.createElement(Xe, { icon:
|
|
4615
|
+
/* @__PURE__ */ t.createElement(Xe, { icon: le })
|
|
4606
4616
|
), /* @__PURE__ */ t.createElement("div", { className: "k-timeline-track" }, /* @__PURE__ */ t.createElement(
|
|
4607
4617
|
"ul",
|
|
4608
4618
|
{
|
|
@@ -4627,9 +4637,9 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4627
4637
|
role: "tab",
|
|
4628
4638
|
className: y(
|
|
4629
4639
|
"k-timeline-track-item",
|
|
4630
|
-
{ "k-focus": x ===
|
|
4640
|
+
{ "k-focus": x === b }
|
|
4631
4641
|
),
|
|
4632
|
-
"aria-selected": x ===
|
|
4642
|
+
"aria-selected": x === b,
|
|
4633
4643
|
style: { flex: `1 0 ${me}` },
|
|
4634
4644
|
key: x
|
|
4635
4645
|
},
|
|
@@ -4648,7 +4658,7 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4648
4658
|
className: "k-timeline-scrollable-wrap",
|
|
4649
4659
|
style: L === 0 ? { ...Pt(L) } : { ...Pt(L), ...Un() }
|
|
4650
4660
|
},
|
|
4651
|
-
|
|
4661
|
+
v && v.map(
|
|
4652
4662
|
(E, x) => /* @__PURE__ */ t.createElement(
|
|
4653
4663
|
"li",
|
|
4654
4664
|
{
|
|
@@ -4661,7 +4671,7 @@ const mi = (e) => e.sort((n, i) => n.date.getTime() - i.date.getTime()), Hn = (e
|
|
|
4661
4671
|
{
|
|
4662
4672
|
tabindex: A[x] === 0 ? 0 : -1,
|
|
4663
4673
|
eventData: E,
|
|
4664
|
-
onActionClick:
|
|
4674
|
+
onActionClick: ae,
|
|
4665
4675
|
horizontal: !0,
|
|
4666
4676
|
collapsible: !1,
|
|
4667
4677
|
calloutStyle: { left: `${d}px` }
|
|
@@ -4684,16 +4694,16 @@ const Wn = (e) => {
|
|
|
4684
4694
|
navigatable: u,
|
|
4685
4695
|
onChange: m,
|
|
4686
4696
|
onActionClick: h
|
|
4687
|
-
} = e, p = t.useRef(null),
|
|
4697
|
+
} = e, p = t.useRef(null), f = t.useRef(new ct({
|
|
4688
4698
|
tabIndex: 0,
|
|
4689
4699
|
root: p,
|
|
4690
4700
|
selectors: [".k-card-vertical"]
|
|
4691
4701
|
}));
|
|
4692
4702
|
t.useEffect(() => {
|
|
4693
4703
|
p.current && e.navigatable && (setTimeout(() => {
|
|
4694
|
-
const k =
|
|
4704
|
+
const k = f.current.first;
|
|
4695
4705
|
k && k.setAttribute("tabindex", String(0));
|
|
4696
|
-
}, 0),
|
|
4706
|
+
}, 0), f.current.keyboardEvents = {
|
|
4697
4707
|
keydown: {
|
|
4698
4708
|
Space: I,
|
|
4699
4709
|
Enter: I
|
|
@@ -4702,25 +4712,25 @@ const Wn = (e) => {
|
|
|
4702
4712
|
}, [e.navigatable]), t.useEffect(() => {
|
|
4703
4713
|
i(Hn(l));
|
|
4704
4714
|
}, []), t.useEffect(() => {
|
|
4705
|
-
|
|
4715
|
+
f.current.update();
|
|
4706
4716
|
});
|
|
4707
|
-
const
|
|
4708
|
-
u &&
|
|
4709
|
-
}, I = (k,
|
|
4717
|
+
const g = (k) => {
|
|
4718
|
+
u && f.current && f.current.triggerKeyboardEvent(k);
|
|
4719
|
+
}, I = (k, b, T) => {
|
|
4710
4720
|
T.preventDefault();
|
|
4711
|
-
const
|
|
4712
|
-
|
|
4721
|
+
const v = k.querySelector(".k-card-title .k-event-collapse");
|
|
4722
|
+
v && v.click();
|
|
4713
4723
|
};
|
|
4714
4724
|
let C = 0;
|
|
4715
|
-
return /* @__PURE__ */ t.createElement("ul", { ref: p, onKeyDown:
|
|
4716
|
-
const T =
|
|
4717
|
-
return k.yearFlag && (C += 1), /* @__PURE__ */ t.createElement(t.Fragment, { key:
|
|
4725
|
+
return /* @__PURE__ */ t.createElement("ul", { ref: p, onKeyDown: g }, n && n.map((k, b) => {
|
|
4726
|
+
const T = se(), v = (b + C) % 2 === 0;
|
|
4727
|
+
return k.yearFlag && (C += 1), /* @__PURE__ */ t.createElement(t.Fragment, { key: b }, k.yearFlag ? /* @__PURE__ */ t.createElement("li", { className: "k-timeline-flag-wrap" }, /* @__PURE__ */ t.createElement("span", { className: "k-timeline-flag" }, k.yearFlag)) : /* @__PURE__ */ t.createElement("li", { className: y("k-timeline-event", { "k-reverse": v }) }, /* @__PURE__ */ t.createElement("div", { className: "k-timeline-date-wrap" }, /* @__PURE__ */ t.createElement("span", { className: "k-timeline-date", id: T }, s.formatDate(k.date, c))), /* @__PURE__ */ t.createElement("a", { className: "k-timeline-circle" }), /* @__PURE__ */ t.createElement(
|
|
4718
4728
|
Dt,
|
|
4719
4729
|
{
|
|
4720
4730
|
id: T,
|
|
4721
4731
|
tabindex: u ? 0 : -1,
|
|
4722
4732
|
eventData: k,
|
|
4723
|
-
alternated: d &&
|
|
4733
|
+
alternated: d && v,
|
|
4724
4734
|
collapsible: a,
|
|
4725
4735
|
transitionDuration: o,
|
|
4726
4736
|
onChange: m,
|
|
@@ -4749,13 +4759,13 @@ const ei = (e) => {
|
|
|
4749
4759
|
dateFormat: u,
|
|
4750
4760
|
onChange: m,
|
|
4751
4761
|
onActionClick: h
|
|
4752
|
-
} = s, [p,
|
|
4762
|
+
} = s, [p, f] = t.useState(), g = t.useRef(null);
|
|
4753
4763
|
return t.useEffect(() => {
|
|
4754
|
-
|
|
4764
|
+
g.current && f(g.current.offsetWidth);
|
|
4755
4765
|
}, []), /* @__PURE__ */ t.createElement(
|
|
4756
4766
|
"div",
|
|
4757
4767
|
{
|
|
4758
|
-
ref:
|
|
4768
|
+
ref: g,
|
|
4759
4769
|
className: y(
|
|
4760
4770
|
"k-timeline",
|
|
4761
4771
|
{
|
|
@@ -4843,8 +4853,8 @@ const $n = t.forwardRef((e, s) => {
|
|
|
4843
4853
|
onAction: m,
|
|
4844
4854
|
expandIcon: h,
|
|
4845
4855
|
collapseIcon: p,
|
|
4846
|
-
expandSVGIcon:
|
|
4847
|
-
collapseSVGIcon:
|
|
4856
|
+
expandSVGIcon: f,
|
|
4857
|
+
collapseSVGIcon: g
|
|
4848
4858
|
} = e, I = t.useCallback(
|
|
4849
4859
|
(R) => {
|
|
4850
4860
|
q(m, R, o(), { expanded: l });
|
|
@@ -4857,9 +4867,9 @@ const $n = t.forwardRef((e, s) => {
|
|
|
4857
4867
|
[m, l]
|
|
4858
4868
|
), k = t.useCallback(() => {
|
|
4859
4869
|
e.disabled || a(!0);
|
|
4860
|
-
}, [e.disabled]),
|
|
4870
|
+
}, [e.disabled]), b = t.useCallback(() => {
|
|
4861
4871
|
e.disabled || a(!1);
|
|
4862
|
-
}, [e.disabled]), { onFocus: T, onBlur:
|
|
4872
|
+
}, [e.disabled]), { onFocus: T, onBlur: v } = Gn({ onFocus: k, onBlur: b });
|
|
4863
4873
|
return /* @__PURE__ */ t.createElement(
|
|
4864
4874
|
"div",
|
|
4865
4875
|
{
|
|
@@ -4874,7 +4884,7 @@ const $n = t.forwardRef((e, s) => {
|
|
|
4874
4884
|
}
|
|
4875
4885
|
),
|
|
4876
4886
|
onFocus: T,
|
|
4877
|
-
onBlur:
|
|
4887
|
+
onBlur: v,
|
|
4878
4888
|
style: e.style,
|
|
4879
4889
|
id: e.id,
|
|
4880
4890
|
dir: Vt(n, e.dir),
|
|
@@ -4898,7 +4908,7 @@ const $n = t.forwardRef((e, s) => {
|
|
|
4898
4908
|
Q,
|
|
4899
4909
|
{
|
|
4900
4910
|
name: l ? p ? void 0 : "chevron-up" : h ? void 0 : "chevron-down",
|
|
4901
|
-
icon: l ? !
|
|
4911
|
+
icon: l ? !g && !p ? Gt : g : !f && !h ? Xt : f,
|
|
4902
4912
|
className: y(
|
|
4903
4913
|
l ? {
|
|
4904
4914
|
[String(p)]: !!p
|