@progress/kendo-react-layout 8.1.0-develop.9 → 8.1.0
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/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +36 -37
- package/bottomnavigation/BottomNavigationItem.js +1 -1
- package/bottomnavigation/BottomNavigationItem.mjs +33 -34
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +34 -35
- package/card/Card.js +1 -1
- package/card/Card.mjs +28 -20
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +65 -65
- package/gridlayout/GridLayout.js +1 -1
- package/gridlayout/GridLayout.mjs +11 -12
- package/index.d.mts +16 -9
- package/index.d.ts +16 -9
- package/package-metadata.mjs +1 -1
- package/package.json +6 -6
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +72 -46
- package/stacklayout/StackLayout.js +1 -1
- package/stacklayout/StackLayout.mjs +13 -14
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +68 -72
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +179 -163
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +94 -111
- package/tabstrip/TabStripContent.js +1 -1
- package/tabstrip/TabStripContent.mjs +2 -1
- package/tabstrip/TabStripNavigationItem.js +1 -1
- package/tabstrip/TabStripNavigationItem.mjs +36 -24
package/stepper/Stepper.mjs
CHANGED
|
@@ -6,134 +6,152 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
import { StepperContext as
|
|
12
|
-
import { validatePackage as
|
|
13
|
-
import { Step as
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import c from "prop-types";
|
|
11
|
+
import { StepperContext as $ } from "./context/StepperContext.mjs";
|
|
12
|
+
import { validatePackage as ee, focusFirstFocusableChild as te, useDir as oe, dispatchEvent as O, Navigation as se, classNames as P, svgIconPropType as A } from "@progress/kendo-react-common";
|
|
13
|
+
import { Step as ne } from "./Step.mjs";
|
|
14
14
|
import { ProgressBar as re } from "@progress/kendo-react-progressbars";
|
|
15
|
-
import { DEFAULT_ANIMATION_DURATION as
|
|
16
|
-
import { packageMetadata as
|
|
15
|
+
import { DEFAULT_ANIMATION_DURATION as ie, NO_ANIMATION as le } from "./contants.mjs";
|
|
16
|
+
import { packageMetadata as ae } from "../package-metadata.mjs";
|
|
17
17
|
import { useLocalization as ce } from "@progress/kendo-react-intl";
|
|
18
|
-
import { progBarAriaLabel as
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
import { progBarAriaLabel as T, messages as ue } from "./messages/index.mjs";
|
|
19
|
+
const F = n.forwardRef((x, M) => {
|
|
20
|
+
ee(ae);
|
|
21
21
|
const {
|
|
22
|
-
animationDuration:
|
|
22
|
+
animationDuration: v,
|
|
23
23
|
children: L,
|
|
24
|
-
className:
|
|
25
|
-
disabled:
|
|
26
|
-
errorIcon:
|
|
27
|
-
errorSVGIcon:
|
|
28
|
-
item:
|
|
29
|
-
items:
|
|
30
|
-
linear:
|
|
24
|
+
className: C,
|
|
25
|
+
disabled: f,
|
|
26
|
+
errorIcon: V,
|
|
27
|
+
errorSVGIcon: z,
|
|
28
|
+
item: S,
|
|
29
|
+
items: m,
|
|
30
|
+
linear: g,
|
|
31
31
|
mode: K,
|
|
32
|
-
orientation:
|
|
33
|
-
style:
|
|
34
|
-
successIcon:
|
|
35
|
-
successSVGIcon:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
orientation: I,
|
|
33
|
+
style: N,
|
|
34
|
+
successIcon: G,
|
|
35
|
+
successSVGIcon: H,
|
|
36
|
+
value: u = 0,
|
|
37
|
+
onChange: k,
|
|
38
|
+
onFocus: y
|
|
39
|
+
} = x, U = ce().toLanguageString(T, ue[T]), p = n.useRef(null), w = n.useCallback(
|
|
39
40
|
() => {
|
|
40
|
-
|
|
41
|
+
p.current && te(p.current);
|
|
41
42
|
},
|
|
42
43
|
[]
|
|
43
|
-
),
|
|
44
|
+
), E = n.useCallback(
|
|
44
45
|
() => ({
|
|
45
|
-
element:
|
|
46
|
+
element: p.current,
|
|
46
47
|
focus: w
|
|
47
48
|
}),
|
|
48
49
|
[w]
|
|
49
50
|
);
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
(
|
|
57
|
-
const e =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{ value:
|
|
63
|
-
),
|
|
51
|
+
n.useImperativeHandle(M, E);
|
|
52
|
+
const [_, a] = n.useState(u), d = m ? m.length : 0, o = I === "vertical", h = oe(p, x.dir), B = typeof v == "number" ? v : v !== !1 ? ie : le;
|
|
53
|
+
n.useEffect(() => {
|
|
54
|
+
a(u);
|
|
55
|
+
}, [u]);
|
|
56
|
+
const D = n.useCallback(
|
|
57
|
+
(r, i) => {
|
|
58
|
+
const e = i === u - 1, t = i === u, l = i === u + 1;
|
|
59
|
+
u !== i && k && !f && (!g || e || t || l) && (O(
|
|
60
|
+
k,
|
|
61
|
+
r,
|
|
62
|
+
E(),
|
|
63
|
+
{ value: i }
|
|
64
|
+
), a(i));
|
|
64
65
|
},
|
|
65
|
-
[
|
|
66
|
-
), j =
|
|
67
|
-
(
|
|
68
|
-
let
|
|
69
|
-
|
|
66
|
+
[u, g, k, f, a]
|
|
67
|
+
), j = n.useCallback(
|
|
68
|
+
(r) => {
|
|
69
|
+
let i = r.value, e = r.syntheticEvent;
|
|
70
|
+
D(e, i);
|
|
70
71
|
},
|
|
71
|
-
[
|
|
72
|
-
), q =
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
[D]
|
|
73
|
+
), q = n.useCallback(
|
|
74
|
+
(r) => {
|
|
75
|
+
y && !f && O(
|
|
76
|
+
y,
|
|
77
|
+
r.syntheticEvent,
|
|
78
|
+
E(),
|
|
78
79
|
void 0
|
|
79
80
|
);
|
|
80
81
|
},
|
|
81
|
-
[
|
|
82
|
-
),
|
|
83
|
-
(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
82
|
+
[y, f]
|
|
83
|
+
), b = n.useMemo(
|
|
84
|
+
() => {
|
|
85
|
+
const r = h === "rtl", i = m.length - 1;
|
|
86
|
+
return new se({
|
|
87
|
+
root: p,
|
|
88
|
+
selectors: ["ol.k-step-list li.k-step a.k-step-link"],
|
|
89
|
+
tabIndex: 0,
|
|
90
|
+
keyboardEvents: {
|
|
91
|
+
keydown: {
|
|
92
|
+
ArrowLeft: (e, t, l) => {
|
|
93
|
+
l.preventDefault();
|
|
94
|
+
const s = t.elements.indexOf(e);
|
|
95
|
+
!o && !r && s > 0 ? (t.focusPrevious(e), a(s - 1)) : !o && r && s < i && (t.focusNext(e), a(s + 1));
|
|
96
|
+
},
|
|
97
|
+
ArrowRight: (e, t, l) => {
|
|
98
|
+
l.preventDefault();
|
|
99
|
+
const s = t.elements.indexOf(e);
|
|
100
|
+
!o && !r && s < i ? (t.focusNext(e), a(s + 1)) : !o && r && s > 0 && (t.focusPrevious(e), a(s - 1));
|
|
101
|
+
},
|
|
102
|
+
ArrowUp: (e, t, l) => {
|
|
103
|
+
l.preventDefault();
|
|
104
|
+
const s = t.elements.indexOf(e);
|
|
105
|
+
o && !r && s > 0 ? (t.focusPrevious(e), a(s - 1)) : o && r && s > 0 && (t.focusPrevious(e), a(s + 1));
|
|
106
|
+
},
|
|
107
|
+
ArrowDown: (e, t, l) => {
|
|
108
|
+
l.preventDefault();
|
|
109
|
+
const s = t.elements.indexOf(e);
|
|
110
|
+
o && !r && s < i ? (t.focusNext(e), a(s + 1)) : o && r && s < i && (t.focusNext(e), a(s - 1));
|
|
111
|
+
},
|
|
112
|
+
Tab: (e, t, l) => {
|
|
113
|
+
l.preventDefault();
|
|
114
|
+
const s = t.elements.indexOf(e);
|
|
115
|
+
l.shiftKey ? !o && !r && s > 0 ? (t.focusPrevious(e), a(s - 1)) : !o && r && s < i && (t.focusNext(e), a(s + 1)) : !o && !r && s < i ? (t.focusNext(e), a(s + 1)) : !o && r && s > 0 && (t.focusPrevious(e), a(s - 1));
|
|
116
|
+
},
|
|
117
|
+
Home: (e, t, l) => {
|
|
118
|
+
l.preventDefault(), t.focusElement(t.first, e), a(0);
|
|
119
|
+
},
|
|
120
|
+
End: (e, t, l) => {
|
|
121
|
+
l.preventDefault(), t.focusElement(t.last, e), a(i);
|
|
122
|
+
},
|
|
123
|
+
Space: (e, t, l) => {
|
|
124
|
+
l.preventDefault(), e.children[0].click();
|
|
125
|
+
},
|
|
126
|
+
Enter: (e, t, l) => {
|
|
127
|
+
l.preventDefault(), e.children[0].click();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
116
132
|
},
|
|
117
|
-
[
|
|
118
|
-
)
|
|
119
|
-
|
|
133
|
+
[h, m.length, o, a]
|
|
134
|
+
);
|
|
135
|
+
n.useEffect(() => (b.initializeRovingTab(u), () => b.removeFocusListener()), []);
|
|
136
|
+
const J = n.useCallback(b.triggerKeyboardEvent.bind(b), []), Q = n.useMemo(
|
|
137
|
+
() => P(
|
|
120
138
|
"k-stepper",
|
|
121
139
|
{
|
|
122
|
-
"k-stepper-linear":
|
|
140
|
+
"k-stepper-linear": g
|
|
123
141
|
},
|
|
124
|
-
|
|
142
|
+
C
|
|
125
143
|
),
|
|
126
|
-
[
|
|
127
|
-
), W =
|
|
144
|
+
[g, C]
|
|
145
|
+
), W = n.useMemo(
|
|
128
146
|
() => ({
|
|
129
147
|
display: "grid",
|
|
130
|
-
gridTemplateColumns: o ? void 0 : "repeat(" +
|
|
131
|
-
gridTemplateRows: o ? "repeat(" +
|
|
132
|
-
...
|
|
148
|
+
gridTemplateColumns: o ? void 0 : "repeat(" + d * 2 + ", 1fr)",
|
|
149
|
+
gridTemplateRows: o ? "repeat(" + d + ", 1fr)" : void 0,
|
|
150
|
+
...N
|
|
133
151
|
}),
|
|
134
|
-
[o,
|
|
135
|
-
), X =
|
|
136
|
-
() =>
|
|
152
|
+
[o, d, N]
|
|
153
|
+
), X = n.useMemo(
|
|
154
|
+
() => P(
|
|
137
155
|
"k-step-list",
|
|
138
156
|
{
|
|
139
157
|
"k-step-list-horizontal": !o,
|
|
@@ -141,7 +159,7 @@ const E = a.forwardRef((k, V) => {
|
|
|
141
159
|
}
|
|
142
160
|
),
|
|
143
161
|
[o]
|
|
144
|
-
), Y =
|
|
162
|
+
), Y = n.useMemo(
|
|
145
163
|
() => ({
|
|
146
164
|
gridColumnStart: o ? void 0 : 1,
|
|
147
165
|
gridColumnEnd: o ? void 0 : -1,
|
|
@@ -149,105 +167,103 @@ const E = a.forwardRef((k, V) => {
|
|
|
149
167
|
gridRowEnd: o ? -1 : void 0
|
|
150
168
|
}),
|
|
151
169
|
[o]
|
|
152
|
-
), Z =
|
|
170
|
+
), Z = n.useMemo(
|
|
153
171
|
() => ({
|
|
154
172
|
gridColumnStart: o ? void 0 : 2,
|
|
155
|
-
gridColumnEnd: o ? void 0 :
|
|
173
|
+
gridColumnEnd: o ? void 0 : d * 2,
|
|
156
174
|
gridRowStart: o ? 1 : void 0,
|
|
157
|
-
gridRowEnd: o ?
|
|
175
|
+
gridRowEnd: o ? d : void 0,
|
|
158
176
|
top: o ? 17 : void 0
|
|
159
177
|
}),
|
|
160
|
-
[o,
|
|
161
|
-
),
|
|
178
|
+
[o, d]
|
|
179
|
+
), R = m && m.map((r, i) => {
|
|
162
180
|
const e = {
|
|
163
|
-
index:
|
|
164
|
-
disabled:
|
|
165
|
-
focused:
|
|
166
|
-
current:
|
|
167
|
-
...
|
|
168
|
-
},
|
|
169
|
-
return /* @__PURE__ */
|
|
181
|
+
index: i,
|
|
182
|
+
disabled: f || r.disabled,
|
|
183
|
+
focused: i === _,
|
|
184
|
+
current: i === u,
|
|
185
|
+
...r
|
|
186
|
+
}, t = S || ne;
|
|
187
|
+
return /* @__PURE__ */ n.createElement(t, { key: i, ...e });
|
|
170
188
|
});
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
-
|
|
189
|
+
return /* @__PURE__ */ n.createElement(
|
|
190
|
+
$.Provider,
|
|
173
191
|
{
|
|
174
192
|
value: {
|
|
175
|
-
animationDuration:
|
|
193
|
+
animationDuration: v,
|
|
176
194
|
isVertical: o,
|
|
177
|
-
item:
|
|
178
|
-
linear:
|
|
195
|
+
item: S,
|
|
196
|
+
linear: g,
|
|
179
197
|
mode: K,
|
|
180
|
-
numOfSteps:
|
|
181
|
-
value:
|
|
182
|
-
successIcon:
|
|
183
|
-
successSVGIcon:
|
|
184
|
-
errorIcon:
|
|
185
|
-
errorSVGIcon:
|
|
198
|
+
numOfSteps: d,
|
|
199
|
+
value: u,
|
|
200
|
+
successIcon: G,
|
|
201
|
+
successSVGIcon: H,
|
|
202
|
+
errorIcon: V,
|
|
203
|
+
errorSVGIcon: z,
|
|
186
204
|
onChange: j,
|
|
187
205
|
onFocus: q
|
|
188
206
|
}
|
|
189
207
|
},
|
|
190
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ n.createElement(
|
|
191
209
|
"nav",
|
|
192
210
|
{
|
|
193
211
|
className: Q,
|
|
194
212
|
style: W,
|
|
195
|
-
dir:
|
|
213
|
+
dir: h,
|
|
214
|
+
role: "navigation",
|
|
215
|
+
ref: p,
|
|
196
216
|
onKeyDown: J
|
|
197
217
|
},
|
|
198
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ n.createElement(
|
|
199
219
|
"ol",
|
|
200
220
|
{
|
|
201
221
|
className: X,
|
|
202
222
|
style: Y
|
|
203
223
|
},
|
|
204
|
-
|
|
224
|
+
R || L
|
|
205
225
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ n.createElement(
|
|
207
227
|
re,
|
|
208
228
|
{
|
|
209
229
|
style: Z,
|
|
210
230
|
labelPlacement: "start",
|
|
211
|
-
animation: { duration:
|
|
212
|
-
ariaLabel:
|
|
231
|
+
animation: { duration: B },
|
|
232
|
+
ariaLabel: U,
|
|
213
233
|
"aria-hidden": !0,
|
|
214
|
-
max:
|
|
234
|
+
max: d - 1,
|
|
215
235
|
labelVisible: !1,
|
|
216
|
-
orientation:
|
|
217
|
-
reverse:
|
|
218
|
-
value:
|
|
219
|
-
disabled:
|
|
236
|
+
orientation: I,
|
|
237
|
+
reverse: I === "vertical",
|
|
238
|
+
value: u,
|
|
239
|
+
disabled: f,
|
|
220
240
|
tabIndex: -1
|
|
221
241
|
}
|
|
222
242
|
)
|
|
223
243
|
)
|
|
224
244
|
);
|
|
225
245
|
});
|
|
226
|
-
|
|
227
|
-
animationDuration:
|
|
228
|
-
children:
|
|
229
|
-
className:
|
|
230
|
-
dir:
|
|
231
|
-
disabled:
|
|
232
|
-
errorIcon:
|
|
233
|
-
errorSVGIcon:
|
|
234
|
-
item:
|
|
235
|
-
items:
|
|
236
|
-
linear:
|
|
237
|
-
mode:
|
|
238
|
-
orientation:
|
|
239
|
-
style:
|
|
240
|
-
successIcon:
|
|
241
|
-
successSVGIcon:
|
|
242
|
-
value:
|
|
243
|
-
onChange:
|
|
244
|
-
onFocus:
|
|
245
|
-
};
|
|
246
|
-
const O = {
|
|
247
|
-
value: 0
|
|
246
|
+
F.propTypes = {
|
|
247
|
+
animationDuration: c.oneOfType([c.bool, c.number]),
|
|
248
|
+
children: c.any,
|
|
249
|
+
className: c.string,
|
|
250
|
+
dir: c.string,
|
|
251
|
+
disabled: c.bool,
|
|
252
|
+
errorIcon: c.string,
|
|
253
|
+
errorSVGIcon: A,
|
|
254
|
+
item: c.any,
|
|
255
|
+
items: c.any,
|
|
256
|
+
linear: c.bool,
|
|
257
|
+
mode: c.oneOf(["steps", "labels"]),
|
|
258
|
+
orientation: c.oneOf(["horizontal", "vertical"]),
|
|
259
|
+
style: c.object,
|
|
260
|
+
successIcon: c.string,
|
|
261
|
+
successSVGIcon: A,
|
|
262
|
+
value: c.number.isRequired,
|
|
263
|
+
onChange: c.func,
|
|
264
|
+
onFocus: c.func
|
|
248
265
|
};
|
|
249
|
-
|
|
250
|
-
E.displayName = "KendoStepper";
|
|
266
|
+
F.displayName = "KendoStepper";
|
|
251
267
|
export {
|
|
252
|
-
|
|
268
|
+
F as Stepper
|
|
253
269
|
};
|
package/tabstrip/TabStrip.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),a=require("prop-types"),f=require("./TabStripNavigation.js"),S=require("./TabStripContent.js"),p=require("@progress/kendo-react-common"),m=require("../package-metadata.js");function y(d){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(d){for(const t in d)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(d,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>d[t]})}}return o.default=d,Object.freeze(o)}const l=y(g),h=class h extends l.Component{constructor(o){super(o),this.tabStripRef=l.createRef(),this.showLicenseWatermark=!1,this.onSelect=t=>{this.props.selected!==t&&this.props.onSelect&&this.props.onSelect({selected:t})},this.onKeyDown=t=>{this.navigation.triggerKeyboardEvent(t)},this.onKeyboardSelect=t=>{const s=this.children();s&&s[t].props.disabled||this.onSelect(t)},this.renderContent=t=>{const{selected:s,children:n,tabContentStyle:e}=t,i=l.Children.count(n);return s<i&&s>-1?l.createElement(S.TabStripContent,{index:s,...t,style:e}):null},p.validatePackage(m.packageMetadata),this.showLicenseWatermark=p.shouldShowValidationUI(m.packageMetadata)}get contentPanelId(){return this.props.id+"-content-panel-id"}get navItemId(){return this.props.id+"-nav-item-id"}componentDidMount(){var s;const o=this.tabStripRef.current,t=o&&getComputedStyle(o).direction==="rtl"||!1;o&&(this.navigation=new p.Navigation({tabIndex:0,root:this.tabStripRef,rovingTabIndex:!0,focusClass:"k-focus",selectors:[".k-tabstrip .k-tabstrip-item"],keyboardEvents:{keydown:{ArrowLeft:(n,e,i)=>{i.preventDefault();const r=e.elements.indexOf(n),c=r!==0?r-1:e.elements.length-1,u=r!==e.elements.length-1?r+1:0;t?(e.focusNext(n),this.onKeyboardSelect(u)):(e.focusPrevious(n),this.onKeyboardSelect(c))},ArrowRight:(n,e,i)=>{i.preventDefault();const r=e.elements.indexOf(n),c=r!==0?r-1:e.elements.length-1,u=r!==e.elements.length-1?r+1:0;t?(e.focusPrevious(n),this.onKeyboardSelect(c)):(e.focusNext(n),this.onKeyboardSelect(u))},ArrowDown:(n,e,i)=>{i.preventDefault();const r=e.elements.indexOf(n),c=r!==e.elements.length-1?r+1:0;e.focusNext(n),this.onKeyboardSelect(c)},ArrowUp:(n,e,i)=>{i.preventDefault();const r=e.elements.indexOf(n),c=r!==0?r-1:e.elements.length-1;e.focusPrevious(n),this.onKeyboardSelect(c)},Home:(n,e,i)=>{i.preventDefault(),e.focusElement(e.first,n),this.onKeyboardSelect(0)},End:(n,e,i)=>{i.preventDefault(),e.focusElement(e.last,n),this.onKeyboardSelect(e.elements.length-1)}}}}),(s=this.navigation)==null||s.initializeRovingTab(this.props.selected))}componentWillUnmount(){var o;(o=this.navigation)==null||o.removeFocusListener()}render(){const o={...this.props,children:this.children(),contentPanelId:this.contentPanelId,renderAllContent:this.props.renderAllContent,navItemId:this.navItemId,onKeyDown:this.onKeyDown,onSelect:this.onSelect},{tabPosition:t,tabIndex:s}=o,n=t==="bottom",e=p.classNames("k-tabstrip k-pos-relative",{"k-tabstrip-left":t==="left","k-tabstrip-right":t==="right","k-tabstrip-bottom":t==="bottom","k-tabstrip-top":t==="top","k-tabstrip-scrollable":this.props.scrollable},this.props.className);return l.createElement("div",{id:this.props.id,ref:this.tabStripRef,dir:this.props.dir,className:e,style:this.props.style},!n&&l.createElement(f.TabStripNavigation,{...o,tabIndex:s}),this.renderContent(o),n&&l.createElement(f.TabStripNavigation,{...o,tabIndex:s}),this.showLicenseWatermark&&l.createElement(p.WatermarkOverlay,null))}children(){return l.Children.toArray(this.props.children).filter(o=>o)}};h.propTypes={animation:a.bool,children:a.node,onSelect:a.func,selected:a.number,style:a.object,tabContentStyle:a.object,tabPosition:a.string,tabIndex:a.number,className:a.string,dir:a.string},h.defaultProps={animation:!0,tabPosition:"top",keepTabsMounted:!1,buttonScrollSpeed:100,mouseScrollSpeed:10,renderAllContent:!1};let b=h;exports.TabStrip=b;
|