@progress/kendo-react-layout 8.6.0-develop.1 → 9.0.0-develop.10
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/README.md +82 -82
- package/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +25 -38
- package/actionsheet/ActionSheetFooter.mjs +1 -10
- package/actionsheet/ActionSheetHeader.mjs +1 -10
- package/actionsheet/ActionSheetItem.mjs +10 -7
- package/appbar/AppBar.mjs +5 -30
- package/appbar/AppBarSection.mjs +4 -17
- package/appbar/AppBarSpacer.mjs +6 -16
- package/bottomnavigation/BottomNavigation.mjs +30 -54
- package/bottomnavigation/BottomNavigationItem.mjs +63 -61
- package/breadcrumb/Breadcrumb.mjs +39 -63
- package/breadcrumb/BreadcrumbDelimiter.mjs +29 -24
- package/breadcrumb/BreadcrumbLink.mjs +16 -18
- package/breadcrumb/BreadcrumbListItem.mjs +31 -29
- package/breadcrumb/BreadcrumbOrderedList.mjs +47 -42
- package/card/Avatar.mjs +15 -1
- package/card/CardBody.mjs +1 -11
- package/card/CardFooter.mjs +1 -11
- package/card/CardHeader.mjs +1 -11
- package/card/CardImage.mjs +1 -4
- package/card/CardSubtitle.mjs +1 -11
- package/card/CardTitle.mjs +1 -11
- package/contextmenu/ContextMenu.js +1 -1
- package/contextmenu/ContextMenu.mjs +12 -24
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.mjs +10 -21
- package/drawer/DrawerContent.mjs +6 -3
- package/drawer/DrawerItem.mjs +10 -10
- package/drawer/DrawerNavigation.mjs +109 -130
- package/expansionpanel/ExpansionPanel.mjs +12 -15
- package/expansionpanel/ExpansionPanelContent.mjs +3 -9
- package/gridlayout/GridLayout.mjs +1 -10
- package/gridlayout/GridLayoutItem.mjs +1 -10
- package/index.d.mts +10 -0
- package/index.d.ts +10 -0
- package/menu/components/MenuItem.js +1 -1
- package/menu/components/MenuItem.mjs +17 -16
- package/menu/components/MenuItemInternal.js +1 -1
- package/menu/components/MenuItemInternal.mjs +35 -34
- package/menu/components/MenuItemLink.mjs +4 -17
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +55 -57
- package/menu/utils/hoverDelay.js +1 -1
- package/menu/utils/hoverDelay.mjs +2 -2
- package/menu/utils/itemsIdsUtils.js +1 -1
- package/menu/utils/itemsIdsUtils.mjs +14 -18
- package/menu/utils/misc.js +1 -1
- package/menu/utils/misc.mjs +2 -2
- package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.mjs +50 -35
- package/package-metadata.mjs +1 -1
- package/package.json +6 -6
- package/panelbar/PanelBar.mjs +2 -7
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +27 -40
- package/splitter/SplitterBar.mjs +23 -40
- package/splitter/SplitterPane.mjs +1 -11
- package/stacklayout/StackLayout.mjs +2 -14
- package/stepper/Step.mjs +25 -46
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +147 -186
- package/tabstrip/TabStripContent.mjs +2 -14
- package/tabstrip/TabStripTab.mjs +2 -9
- package/tilelayout/InternalTile.mjs +31 -19
- package/tilelayout/ResizeHandlers.mjs +7 -1
- package/tilelayout/TileLayout.mjs +24 -20
- package/timeline/TimelineCard.mjs +1 -4
- package/timeline/TimelineHorizontal.mjs +52 -63
- package/timeline/TimelineVertical.mjs +7 -5
- package/timeline/utils.mjs +4 -1
package/stepper/Stepper.mjs
CHANGED
|
@@ -6,226 +6,187 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import n from "prop-types";
|
|
11
11
|
import { StepperContext as oe } from "./context/StepperContext.mjs";
|
|
12
|
-
import { validatePackage as se, focusFirstFocusableChild as ne, useDir as re, dispatchEvent as
|
|
13
|
-
import { Step as
|
|
14
|
-
import { ProgressBar as
|
|
15
|
-
import { DEFAULT_ANIMATION_DURATION as
|
|
12
|
+
import { validatePackage as se, focusFirstFocusableChild as ne, useDir as re, dispatchEvent as L, Navigation as ie, classNames as M, svgIconPropType as P } from "@progress/kendo-react-common";
|
|
13
|
+
import { Step as ae } from "./Step.mjs";
|
|
14
|
+
import { ProgressBar as le } from "@progress/kendo-react-progressbars";
|
|
15
|
+
import { DEFAULT_ANIMATION_DURATION as ce, NO_ANIMATION as ue } from "./contants.mjs";
|
|
16
16
|
import { packageMetadata as de } from "../package-metadata.mjs";
|
|
17
|
-
import { useLocalization as
|
|
18
|
-
import { progBarAriaLabel as
|
|
19
|
-
const V =
|
|
17
|
+
import { useLocalization as me } from "@progress/kendo-react-intl";
|
|
18
|
+
import { progBarAriaLabel as A, messages as pe } from "./messages/index.mjs";
|
|
19
|
+
const V = e.forwardRef((S, z) => {
|
|
20
20
|
se(de);
|
|
21
21
|
const {
|
|
22
|
-
animationDuration:
|
|
22
|
+
animationDuration: b,
|
|
23
23
|
children: K,
|
|
24
|
-
className:
|
|
25
|
-
disabled:
|
|
24
|
+
className: x,
|
|
25
|
+
disabled: m,
|
|
26
26
|
errorIcon: G,
|
|
27
27
|
errorSVGIcon: H,
|
|
28
28
|
item: N,
|
|
29
|
-
items:
|
|
29
|
+
items: p,
|
|
30
30
|
linear: g,
|
|
31
|
-
mode:
|
|
31
|
+
mode: _,
|
|
32
32
|
orientation: E,
|
|
33
|
-
selectOnFocus:
|
|
34
|
-
style:
|
|
35
|
-
successIcon:
|
|
36
|
-
successSVGIcon:
|
|
37
|
-
value:
|
|
38
|
-
onChange:
|
|
33
|
+
selectOnFocus: v,
|
|
34
|
+
style: R,
|
|
35
|
+
successIcon: B,
|
|
36
|
+
successSVGIcon: U,
|
|
37
|
+
value: a = 0,
|
|
38
|
+
onChange: y,
|
|
39
39
|
onFocus: h
|
|
40
|
-
} =
|
|
41
|
-
()
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
[]
|
|
45
|
-
), x = n.useCallback(
|
|
40
|
+
} = S, j = me().toLanguageString(A, pe[A]), f = e.useRef(null), w = e.useCallback(() => {
|
|
41
|
+
f.current && ne(f.current);
|
|
42
|
+
}, []), I = e.useCallback(
|
|
46
43
|
() => ({
|
|
47
|
-
element:
|
|
48
|
-
focus:
|
|
44
|
+
element: f.current,
|
|
45
|
+
focus: w
|
|
49
46
|
}),
|
|
50
|
-
[
|
|
47
|
+
[w]
|
|
51
48
|
);
|
|
52
|
-
|
|
53
|
-
const [q,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
const
|
|
58
|
-
(
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
x(),
|
|
64
|
-
{ value: i }
|
|
65
|
-
), c(i));
|
|
49
|
+
e.useImperativeHandle(z, I);
|
|
50
|
+
const [q, u] = e.useState(a), d = p ? p.length : 0, s = E === "vertical", C = re(f, S.dir), J = typeof b == "number" ? b : b !== !1 ? ce : ue;
|
|
51
|
+
e.useEffect(() => {
|
|
52
|
+
u(a);
|
|
53
|
+
}, [a]);
|
|
54
|
+
const D = e.useCallback(
|
|
55
|
+
(i, r) => {
|
|
56
|
+
const t = r === a - 1, o = r === a, l = r === a + 1;
|
|
57
|
+
a !== r && y && !m && (!g || t || o || l) && (L(y, i, I(), {
|
|
58
|
+
value: r
|
|
59
|
+
}), u(r));
|
|
66
60
|
},
|
|
67
|
-
[
|
|
68
|
-
), Q =
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
[a, g, y, m, u]
|
|
62
|
+
), Q = e.useCallback(
|
|
63
|
+
(i) => {
|
|
64
|
+
const r = i.value, t = i.syntheticEvent;
|
|
65
|
+
D(t, r);
|
|
72
66
|
},
|
|
73
|
-
[
|
|
74
|
-
), W =
|
|
75
|
-
(
|
|
76
|
-
h && !
|
|
67
|
+
[D]
|
|
68
|
+
), W = e.useCallback(
|
|
69
|
+
(i) => {
|
|
70
|
+
h && !m && L(
|
|
77
71
|
h,
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
i.syntheticEvent,
|
|
73
|
+
I(),
|
|
80
74
|
void 0
|
|
81
75
|
);
|
|
82
76
|
},
|
|
83
|
-
[h,
|
|
84
|
-
), k =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
ArrowDown: (e, t, l) => {
|
|
109
|
-
l.preventDefault();
|
|
110
|
-
const s = t.elements.indexOf(e);
|
|
111
|
-
o && !r && s < i ? (t.focusNext(e), c(s + 1)) : o && r && s < i && (t.focusNext(e), c(s - 1));
|
|
112
|
-
},
|
|
113
|
-
Tab: (e, t, l) => {
|
|
114
|
-
l.preventDefault();
|
|
115
|
-
const s = t.elements.indexOf(e), P = t.previous(e).children[0], A = t.next(e).children[0];
|
|
116
|
-
l.shiftKey ? !o && !r && s > 0 ? (t.focusPrevious(e), c(s - 1), b && P.click()) : !o && r && s < i && (t.focusNext(e), c(s + 1), b && A.click()) : !o && !r && s < i ? (t.focusNext(e), c(s + 1), b && A.click()) : !o && r && s > 0 && (t.focusPrevious(e), c(s - 1), b && P.click());
|
|
117
|
-
},
|
|
118
|
-
Home: (e, t, l) => {
|
|
119
|
-
l.preventDefault(), t.focusElement(t.first, e), c(0);
|
|
120
|
-
},
|
|
121
|
-
End: (e, t, l) => {
|
|
122
|
-
l.preventDefault(), t.focusElement(t.last, e), c(i);
|
|
123
|
-
},
|
|
124
|
-
Space: (e, t, l) => {
|
|
125
|
-
l.preventDefault(), e.children[0].click();
|
|
126
|
-
},
|
|
127
|
-
Enter: (e, t, l) => {
|
|
128
|
-
l.preventDefault(), e.children[0].click();
|
|
129
|
-
}
|
|
77
|
+
[h, m]
|
|
78
|
+
), k = e.useMemo(() => {
|
|
79
|
+
const i = C === "rtl", r = p.length - 1;
|
|
80
|
+
return new ie({
|
|
81
|
+
root: f,
|
|
82
|
+
selectors: ["ol.k-step-list li.k-step a.k-step-link"],
|
|
83
|
+
tabIndex: 0,
|
|
84
|
+
keyboardEvents: {
|
|
85
|
+
keydown: {
|
|
86
|
+
Tab: (t, o, l) => {
|
|
87
|
+
l.preventDefault();
|
|
88
|
+
const c = o.elements.indexOf(t), F = o.previous(t).children[0], O = o.next(t).children[0];
|
|
89
|
+
l.shiftKey ? !i && c > 0 ? (o.focusPrevious(t), u(c - 1), v && F.click()) : i && c < r && (o.focusNext(t), u(c + 1), v && O.click()) : !i && c < r ? (o.focusNext(t), u(c + 1), v && O.click()) : i && c > 0 && (o.focusPrevious(t), u(c - 1), v && F.click());
|
|
90
|
+
},
|
|
91
|
+
Home: (t, o, l) => {
|
|
92
|
+
l.preventDefault(), o.focusElement(o.first, t), u(0);
|
|
93
|
+
},
|
|
94
|
+
End: (t, o, l) => {
|
|
95
|
+
l.preventDefault(), o.focusElement(o.last, t), u(r);
|
|
96
|
+
},
|
|
97
|
+
Space: (t, o, l) => {
|
|
98
|
+
l.preventDefault(), t.children[0].click();
|
|
99
|
+
},
|
|
100
|
+
Enter: (t, o, l) => {
|
|
101
|
+
l.preventDefault(), t.children[0].click();
|
|
130
102
|
}
|
|
131
103
|
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
() => F(
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}, [C, p.length, u, v]);
|
|
107
|
+
e.useEffect(() => (k.initializeRovingTab(a), () => k.removeFocusListener()), []);
|
|
108
|
+
const X = e.useCallback(k.triggerKeyboardEvent.bind(k), []), Y = e.useMemo(
|
|
109
|
+
() => M(
|
|
139
110
|
"k-stepper",
|
|
140
111
|
{
|
|
141
112
|
"k-stepper-linear": g
|
|
142
113
|
},
|
|
143
|
-
|
|
114
|
+
x
|
|
144
115
|
),
|
|
145
|
-
[g,
|
|
146
|
-
), Z =
|
|
116
|
+
[g, x]
|
|
117
|
+
), Z = e.useMemo(
|
|
147
118
|
() => ({
|
|
148
119
|
display: "grid",
|
|
149
|
-
gridTemplateColumns:
|
|
150
|
-
gridTemplateRows:
|
|
151
|
-
...
|
|
120
|
+
gridTemplateColumns: s ? void 0 : "repeat(" + d * 2 + ", 1fr)",
|
|
121
|
+
gridTemplateRows: s ? "repeat(" + d + ", 1fr)" : void 0,
|
|
122
|
+
...R
|
|
152
123
|
}),
|
|
153
|
-
[
|
|
154
|
-
), $ =
|
|
155
|
-
() =>
|
|
156
|
-
"k-step-list",
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
),
|
|
162
|
-
[o]
|
|
163
|
-
), ee = n.useMemo(
|
|
124
|
+
[s, d, R]
|
|
125
|
+
), $ = e.useMemo(
|
|
126
|
+
() => M("k-step-list", {
|
|
127
|
+
"k-step-list-horizontal": !s,
|
|
128
|
+
"k-step-list-vertical": s
|
|
129
|
+
}),
|
|
130
|
+
[s]
|
|
131
|
+
), ee = e.useMemo(
|
|
164
132
|
() => ({
|
|
165
|
-
gridColumnStart:
|
|
166
|
-
gridColumnEnd:
|
|
167
|
-
gridRowStart:
|
|
168
|
-
gridRowEnd:
|
|
133
|
+
gridColumnStart: s ? void 0 : 1,
|
|
134
|
+
gridColumnEnd: s ? void 0 : -1,
|
|
135
|
+
gridRowStart: s ? 1 : void 0,
|
|
136
|
+
gridRowEnd: s ? -1 : void 0
|
|
169
137
|
}),
|
|
170
|
-
[
|
|
171
|
-
), te =
|
|
138
|
+
[s]
|
|
139
|
+
), te = e.useMemo(
|
|
172
140
|
() => ({
|
|
173
|
-
gridColumnStart:
|
|
174
|
-
gridColumnEnd:
|
|
175
|
-
gridRowStart:
|
|
176
|
-
gridRowEnd:
|
|
177
|
-
top:
|
|
141
|
+
gridColumnStart: s ? void 0 : 2,
|
|
142
|
+
gridColumnEnd: s ? void 0 : d * 2,
|
|
143
|
+
gridRowStart: s ? 1 : void 0,
|
|
144
|
+
gridRowEnd: s ? d : void 0,
|
|
145
|
+
top: s ? 17 : void 0
|
|
178
146
|
}),
|
|
179
|
-
[
|
|
180
|
-
),
|
|
181
|
-
const
|
|
182
|
-
index:
|
|
183
|
-
disabled:
|
|
184
|
-
focused:
|
|
185
|
-
current:
|
|
186
|
-
...
|
|
187
|
-
},
|
|
188
|
-
return /* @__PURE__ */
|
|
147
|
+
[s, d]
|
|
148
|
+
), T = p && p.map((i, r) => {
|
|
149
|
+
const t = {
|
|
150
|
+
index: r,
|
|
151
|
+
disabled: m || i.disabled,
|
|
152
|
+
focused: r === q,
|
|
153
|
+
current: r === a,
|
|
154
|
+
...i
|
|
155
|
+
}, o = N || ae;
|
|
156
|
+
return /* @__PURE__ */ e.createElement(o, { key: r, ...t });
|
|
189
157
|
});
|
|
190
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ e.createElement(
|
|
191
159
|
oe.Provider,
|
|
192
160
|
{
|
|
193
161
|
value: {
|
|
194
|
-
animationDuration:
|
|
195
|
-
isVertical:
|
|
162
|
+
animationDuration: b,
|
|
163
|
+
isVertical: s,
|
|
196
164
|
item: N,
|
|
197
165
|
linear: g,
|
|
198
|
-
mode:
|
|
166
|
+
mode: _,
|
|
199
167
|
numOfSteps: d,
|
|
200
|
-
value:
|
|
201
|
-
successIcon:
|
|
202
|
-
successSVGIcon:
|
|
168
|
+
value: a,
|
|
169
|
+
successIcon: B,
|
|
170
|
+
successSVGIcon: U,
|
|
203
171
|
errorIcon: G,
|
|
204
172
|
errorSVGIcon: H,
|
|
205
173
|
onChange: Q,
|
|
206
174
|
onFocus: W
|
|
207
175
|
}
|
|
208
176
|
},
|
|
209
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ e.createElement(
|
|
210
178
|
"nav",
|
|
211
179
|
{
|
|
212
180
|
className: Y,
|
|
213
181
|
style: Z,
|
|
214
|
-
dir:
|
|
182
|
+
dir: C,
|
|
215
183
|
role: "navigation",
|
|
216
|
-
ref:
|
|
184
|
+
ref: f,
|
|
217
185
|
onKeyDown: X
|
|
218
186
|
},
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
className: $,
|
|
223
|
-
style: ee
|
|
224
|
-
},
|
|
225
|
-
R || K
|
|
226
|
-
),
|
|
227
|
-
/* @__PURE__ */ n.createElement(
|
|
228
|
-
ce,
|
|
187
|
+
/* @__PURE__ */ e.createElement("ol", { className: $, style: ee }, T || K),
|
|
188
|
+
/* @__PURE__ */ e.createElement(
|
|
189
|
+
le,
|
|
229
190
|
{
|
|
230
191
|
style: te,
|
|
231
192
|
labelPlacement: "start",
|
|
@@ -236,8 +197,8 @@ const V = n.forwardRef((C, z) => {
|
|
|
236
197
|
labelVisible: !1,
|
|
237
198
|
orientation: E,
|
|
238
199
|
reverse: E === "vertical",
|
|
239
|
-
value:
|
|
240
|
-
disabled:
|
|
200
|
+
value: a,
|
|
201
|
+
disabled: m,
|
|
241
202
|
tabIndex: -1
|
|
242
203
|
}
|
|
243
204
|
)
|
|
@@ -245,24 +206,24 @@ const V = n.forwardRef((C, z) => {
|
|
|
245
206
|
);
|
|
246
207
|
});
|
|
247
208
|
V.propTypes = {
|
|
248
|
-
animationDuration:
|
|
249
|
-
children:
|
|
250
|
-
className:
|
|
251
|
-
dir:
|
|
252
|
-
disabled:
|
|
253
|
-
errorIcon:
|
|
254
|
-
errorSVGIcon:
|
|
255
|
-
item:
|
|
256
|
-
items:
|
|
257
|
-
linear:
|
|
258
|
-
mode:
|
|
259
|
-
orientation:
|
|
260
|
-
style:
|
|
261
|
-
successIcon:
|
|
262
|
-
successSVGIcon:
|
|
263
|
-
value:
|
|
264
|
-
onChange:
|
|
265
|
-
onFocus:
|
|
209
|
+
animationDuration: n.oneOfType([n.bool, n.number]),
|
|
210
|
+
children: n.any,
|
|
211
|
+
className: n.string,
|
|
212
|
+
dir: n.string,
|
|
213
|
+
disabled: n.bool,
|
|
214
|
+
errorIcon: n.string,
|
|
215
|
+
errorSVGIcon: P,
|
|
216
|
+
item: n.any,
|
|
217
|
+
items: n.any,
|
|
218
|
+
linear: n.bool,
|
|
219
|
+
mode: n.oneOf(["steps", "labels"]),
|
|
220
|
+
orientation: n.oneOf(["horizontal", "vertical"]),
|
|
221
|
+
style: n.object,
|
|
222
|
+
successIcon: n.string,
|
|
223
|
+
successSVGIcon: P,
|
|
224
|
+
value: n.number.isRequired,
|
|
225
|
+
onChange: n.func,
|
|
226
|
+
onFocus: n.func
|
|
266
227
|
};
|
|
267
228
|
V.displayName = "KendoStepper";
|
|
268
229
|
export {
|
|
@@ -64,16 +64,7 @@ const l = class l extends n.Component {
|
|
|
64
64
|
hidden: !o,
|
|
65
65
|
"aria-labelledby": `${this.props.navItemId}-${r}`
|
|
66
66
|
},
|
|
67
|
-
this.props.animation ? /* @__PURE__ */ n.createElement(
|
|
68
|
-
d,
|
|
69
|
-
{
|
|
70
|
-
key: `${r}-${o}`,
|
|
71
|
-
appear: !0,
|
|
72
|
-
enter: !0,
|
|
73
|
-
exit: !1
|
|
74
|
-
},
|
|
75
|
-
s.props.children
|
|
76
|
-
) : s.props.children
|
|
67
|
+
this.props.animation ? /* @__PURE__ */ n.createElement(d, { key: `${r}-${o}`, appear: !0, enter: !0, exit: !1 }, s.props.children) : s.props.children
|
|
77
68
|
);
|
|
78
69
|
});
|
|
79
70
|
}
|
|
@@ -100,10 +91,7 @@ const l = class l extends n.Component {
|
|
|
100
91
|
};
|
|
101
92
|
l.propTypes = {
|
|
102
93
|
animation: i.bool,
|
|
103
|
-
children: i.oneOfType([
|
|
104
|
-
i.element,
|
|
105
|
-
i.arrayOf(i.element)
|
|
106
|
-
]),
|
|
94
|
+
children: i.oneOfType([i.element, i.arrayOf(i.element)]),
|
|
107
95
|
selected: i.number,
|
|
108
96
|
style: i.object
|
|
109
97
|
};
|
package/tabstrip/TabStripTab.mjs
CHANGED
|
@@ -19,15 +19,8 @@ const n = class n extends o.Component {
|
|
|
19
19
|
n.propTypes = {
|
|
20
20
|
disabled: e.bool,
|
|
21
21
|
contentClassName: e.string,
|
|
22
|
-
children: e.oneOfType([
|
|
23
|
-
|
|
24
|
-
e.node
|
|
25
|
-
]),
|
|
26
|
-
title: e.oneOfType([
|
|
27
|
-
e.string,
|
|
28
|
-
e.element,
|
|
29
|
-
e.node
|
|
30
|
-
])
|
|
22
|
+
children: e.oneOfType([e.element, e.node]),
|
|
23
|
+
title: e.oneOfType([e.string, e.element, e.node])
|
|
31
24
|
};
|
|
32
25
|
let t = n;
|
|
33
26
|
export {
|
|
@@ -102,7 +102,11 @@ const m = 200, h = class h extends p.Component {
|
|
|
102
102
|
ref: (s) => {
|
|
103
103
|
this.draggable = s ? { element: s } : null;
|
|
104
104
|
},
|
|
105
|
-
className: g(
|
|
105
|
+
className: g(
|
|
106
|
+
"k-tilelayout-item k-card",
|
|
107
|
+
{ "k-cursor-grab": this.reorderable },
|
|
108
|
+
this.props.className
|
|
109
|
+
),
|
|
106
110
|
style: { height: "100%", ...n, ...this.props.style }
|
|
107
111
|
},
|
|
108
112
|
this.props.children,
|
|
@@ -116,29 +120,37 @@ const m = 200, h = class h extends p.Component {
|
|
|
116
120
|
}
|
|
117
121
|
)
|
|
118
122
|
);
|
|
119
|
-
return /* @__PURE__ */ p.createElement(
|
|
120
|
-
this.element = s;
|
|
121
|
-
}, style: n }, /* @__PURE__ */ p.createElement(
|
|
123
|
+
return /* @__PURE__ */ p.createElement(
|
|
122
124
|
"div",
|
|
123
125
|
{
|
|
124
126
|
ref: (s) => {
|
|
125
|
-
this.
|
|
127
|
+
this.element = s;
|
|
126
128
|
},
|
|
127
|
-
style:
|
|
128
|
-
className: g("k-layout-item-hint", this.props.hintClassName)
|
|
129
|
-
}
|
|
130
|
-
), /* @__PURE__ */ p.createElement(
|
|
131
|
-
y,
|
|
132
|
-
{
|
|
133
|
-
ref: (s) => {
|
|
134
|
-
this.draggable = s;
|
|
135
|
-
},
|
|
136
|
-
onDrag: this.props.reorderable ? this.handleDrag : void 0,
|
|
137
|
-
onRelease: this.props.reorderable ? this.handleRelease : void 0,
|
|
138
|
-
onPress: this.props.reorderable ? this.handlePress : void 0
|
|
129
|
+
style: n
|
|
139
130
|
},
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
/* @__PURE__ */ p.createElement(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
ref: (s) => {
|
|
135
|
+
this.hintElement = s;
|
|
136
|
+
},
|
|
137
|
+
style: { position: "absolute", ...i },
|
|
138
|
+
className: g("k-layout-item-hint", this.props.hintClassName)
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ p.createElement(
|
|
142
|
+
y,
|
|
143
|
+
{
|
|
144
|
+
ref: (s) => {
|
|
145
|
+
this.draggable = s;
|
|
146
|
+
},
|
|
147
|
+
onDrag: this.props.reorderable ? this.handleDrag : void 0,
|
|
148
|
+
onRelease: this.props.reorderable ? this.handleRelease : void 0,
|
|
149
|
+
onPress: this.props.reorderable ? this.handlePress : void 0
|
|
150
|
+
},
|
|
151
|
+
a
|
|
152
|
+
)
|
|
153
|
+
);
|
|
142
154
|
}
|
|
143
155
|
/**
|
|
144
156
|
* @hidden
|
|
@@ -19,7 +19,13 @@ const r = (t) => /* @__PURE__ */ n.createElement(
|
|
|
19
19
|
t.onResize(e.event, !0, t.d);
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
/* @__PURE__ */ n.createElement(
|
|
22
|
+
/* @__PURE__ */ n.createElement(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: "k-resize-handle k-cursor-" + t.d + "-resize",
|
|
26
|
+
style: { bottom: 0, right: 0, ...t.style }
|
|
27
|
+
}
|
|
28
|
+
)
|
|
23
29
|
);
|
|
24
30
|
class h extends n.Component {
|
|
25
31
|
constructor() {
|
|
@@ -19,7 +19,11 @@ const O = {
|
|
|
19
19
|
unset: "k-grid-flow-unset"
|
|
20
20
|
}, h = class h extends n.Component {
|
|
21
21
|
constructor(a) {
|
|
22
|
-
super(a), this._element = null, this.state = {
|
|
22
|
+
super(a), this._element = null, this.state = {
|
|
23
|
+
positions: (this.props.items || []).map(
|
|
24
|
+
(i, o) => Object.assign({ order: o, rowSpan: 1, colSpan: 1 }, i.defaultPosition)
|
|
25
|
+
)
|
|
26
|
+
}, this.showLicenseWatermark = !1, this.focus = () => {
|
|
23
27
|
this._element && this._element.focus();
|
|
24
28
|
}, this.update = (i, o, s, l = 0, u = 0) => {
|
|
25
29
|
if (o === 0 && s === 0 && !u && !l)
|
|
@@ -48,7 +52,9 @@ const O = {
|
|
|
48
52
|
return a.positions ? {
|
|
49
53
|
positions: a.positions.map((o, s) => Object.assign({ order: s, rowSpan: 1, colSpan: 1 }, o))
|
|
50
54
|
} : a.items && (!i.positions || a.items.length !== i.positions.length) ? {
|
|
51
|
-
positions: a.items.map(
|
|
55
|
+
positions: a.items.map(
|
|
56
|
+
(o, s) => Object.assign({ order: s, rowSpan: 1, colSpan: 1 }, o.defaultPosition)
|
|
57
|
+
)
|
|
52
58
|
} : null;
|
|
53
59
|
}
|
|
54
60
|
render() {
|
|
@@ -78,24 +84,22 @@ const O = {
|
|
|
78
84
|
className: N("k-tilelayout k-pos-relative", O[m], a),
|
|
79
85
|
style: d,
|
|
80
86
|
id: this.props.id,
|
|
81
|
-
children: c.map(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
), this.showLicenseWatermark && /* @__PURE__ */ n.createElement(v, null))
|
|
98
|
-
)
|
|
87
|
+
children: c.map((e, p) => /* @__PURE__ */ n.createElement(n.Fragment, { key: this.props.dataItemKey ? E(this.props.dataItemKey)(e) : p }, /* @__PURE__ */ n.createElement(
|
|
88
|
+
x,
|
|
89
|
+
{
|
|
90
|
+
update: this.update,
|
|
91
|
+
defaultPosition: this.state.positions[p],
|
|
92
|
+
index: p,
|
|
93
|
+
resizable: e.resizable,
|
|
94
|
+
reorderable: e.reorderable,
|
|
95
|
+
style: e.style,
|
|
96
|
+
className: e.className,
|
|
97
|
+
hintClassName: e.hintClassName,
|
|
98
|
+
hintStyle: e.hintStyle,
|
|
99
|
+
ignoreDrag: this.props.ignoreDrag
|
|
100
|
+
},
|
|
101
|
+
e.item ? e.item : /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, n.isValidElement(e.header) ? e.header : /* @__PURE__ */ n.createElement("h5", { className: "k-card-title" }, e.header)), /* @__PURE__ */ n.createElement("div", { className: "k-tilelayout-item-body k-card-body" }, e.body))
|
|
102
|
+
), this.showLicenseWatermark && /* @__PURE__ */ n.createElement(v, null)))
|
|
99
103
|
}
|
|
100
104
|
);
|
|
101
105
|
}
|
|
@@ -52,10 +52,7 @@ const x = (e) => {
|
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
"data-testid": "k-timeline-card",
|
|
55
|
-
className: u(
|
|
56
|
-
"k-timeline-card",
|
|
57
|
-
{ "k-collapsed": e.collapsible && r }
|
|
58
|
-
)
|
|
55
|
+
className: u("k-timeline-card", { "k-collapsed": e.collapsible && r })
|
|
59
56
|
},
|
|
60
57
|
/* @__PURE__ */ t.createElement(
|
|
61
58
|
N,
|