@progress/kendo-react-layout 8.1.0-develop.2 → 8.1.0-develop.20
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.d.mts +17 -10
- package/index.d.ts +17 -10
- package/package-metadata.mjs +1 -1
- package/package.json +6 -6
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +72 -46
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +74 -77
- 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/index.d.mts
CHANGED
|
@@ -2715,7 +2715,7 @@ export declare interface MenuItemProps extends BaseMenuItem {
|
|
|
2715
2715
|
/**
|
|
2716
2716
|
* The properties of the [KendoReact Menu component]({% slug overview_menu %}).
|
|
2717
2717
|
*/
|
|
2718
|
-
declare interface MenuProps {
|
|
2718
|
+
export declare interface MenuProps {
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Specifies whether the Menu will be vertical ([see example]({% slug vertical_menu %})).
|
|
2721
2721
|
*/
|
|
@@ -2944,7 +2944,7 @@ export declare interface PanelBarItemProps {
|
|
|
2944
2944
|
/**
|
|
2945
2945
|
* Can be any of PanelBar items, an array of PanelBar items, or a custom component.
|
|
2946
2946
|
*/
|
|
2947
|
-
children?:
|
|
2947
|
+
children?: any;
|
|
2948
2948
|
/**
|
|
2949
2949
|
* The class name that is set to the PanelBarItem component.
|
|
2950
2950
|
*/
|
|
@@ -3232,10 +3232,14 @@ export declare class Splitter extends React_2.Component<SplitterProps, SplitterS
|
|
|
3232
3232
|
*/
|
|
3233
3233
|
export declare class SplitterBar extends React_2.Component<SplitterBarProps, SplitterBarState> {
|
|
3234
3234
|
private draggable;
|
|
3235
|
+
private spliterBarRef;
|
|
3236
|
+
private navigation?;
|
|
3235
3237
|
private get isStatic();
|
|
3236
3238
|
private get isDraggable();
|
|
3237
3239
|
private get isHorizontal();
|
|
3238
3240
|
constructor(props: SplitterBarProps);
|
|
3241
|
+
/** @hidden */
|
|
3242
|
+
componentDidMount(): void;
|
|
3239
3243
|
render(): JSX_2.Element;
|
|
3240
3244
|
private onDrag;
|
|
3241
3245
|
private onFocus;
|
|
@@ -3815,12 +3819,16 @@ export declare class TabStripClassComponent extends React_2.Component<TabStripPr
|
|
|
3815
3819
|
mouseScrollSpeed: number;
|
|
3816
3820
|
renderAllContent: boolean;
|
|
3817
3821
|
};
|
|
3818
|
-
private
|
|
3822
|
+
private tabStripRef;
|
|
3819
3823
|
private get contentPanelId();
|
|
3820
3824
|
private get navItemId();
|
|
3821
3825
|
private showLicenseWatermark;
|
|
3822
|
-
private
|
|
3826
|
+
private navigation?;
|
|
3823
3827
|
constructor(props: TabStripProps);
|
|
3828
|
+
/** @hidden */
|
|
3829
|
+
componentDidMount(): void;
|
|
3830
|
+
/** @hidden */
|
|
3831
|
+
componentWillUnmount(): void;
|
|
3824
3832
|
/**
|
|
3825
3833
|
* @hidden
|
|
3826
3834
|
*/
|
|
@@ -3828,17 +3836,16 @@ export declare class TabStripClassComponent extends React_2.Component<TabStripPr
|
|
|
3828
3836
|
/**
|
|
3829
3837
|
* @hidden
|
|
3830
3838
|
*/
|
|
3831
|
-
onKeyDown: (event:
|
|
3839
|
+
onKeyDown: (event: React_2.KeyboardEvent<HTMLElement>) => void;
|
|
3840
|
+
/**
|
|
3841
|
+
* @hidden
|
|
3842
|
+
*/
|
|
3843
|
+
onKeyboardSelect: (index: number) => void;
|
|
3832
3844
|
/**
|
|
3833
3845
|
* @hidden
|
|
3834
3846
|
*/
|
|
3835
3847
|
render(): JSX_2.Element;
|
|
3836
3848
|
private renderContent;
|
|
3837
|
-
private invertKeys;
|
|
3838
|
-
private firstNavigatableTab;
|
|
3839
|
-
private lastNavigatableTab;
|
|
3840
|
-
private prevNavigatableTab;
|
|
3841
|
-
private nextNavigatableTab;
|
|
3842
3849
|
private children;
|
|
3843
3850
|
}
|
|
3844
3851
|
|
package/index.d.ts
CHANGED
|
@@ -2715,7 +2715,7 @@ export declare interface MenuItemProps extends BaseMenuItem {
|
|
|
2715
2715
|
/**
|
|
2716
2716
|
* The properties of the [KendoReact Menu component]({% slug overview_menu %}).
|
|
2717
2717
|
*/
|
|
2718
|
-
declare interface MenuProps {
|
|
2718
|
+
export declare interface MenuProps {
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Specifies whether the Menu will be vertical ([see example]({% slug vertical_menu %})).
|
|
2721
2721
|
*/
|
|
@@ -2944,7 +2944,7 @@ export declare interface PanelBarItemProps {
|
|
|
2944
2944
|
/**
|
|
2945
2945
|
* Can be any of PanelBar items, an array of PanelBar items, or a custom component.
|
|
2946
2946
|
*/
|
|
2947
|
-
children?:
|
|
2947
|
+
children?: any;
|
|
2948
2948
|
/**
|
|
2949
2949
|
* The class name that is set to the PanelBarItem component.
|
|
2950
2950
|
*/
|
|
@@ -3232,10 +3232,14 @@ export declare class Splitter extends React_2.Component<SplitterProps, SplitterS
|
|
|
3232
3232
|
*/
|
|
3233
3233
|
export declare class SplitterBar extends React_2.Component<SplitterBarProps, SplitterBarState> {
|
|
3234
3234
|
private draggable;
|
|
3235
|
+
private spliterBarRef;
|
|
3236
|
+
private navigation?;
|
|
3235
3237
|
private get isStatic();
|
|
3236
3238
|
private get isDraggable();
|
|
3237
3239
|
private get isHorizontal();
|
|
3238
3240
|
constructor(props: SplitterBarProps);
|
|
3241
|
+
/** @hidden */
|
|
3242
|
+
componentDidMount(): void;
|
|
3239
3243
|
render(): JSX_2.Element;
|
|
3240
3244
|
private onDrag;
|
|
3241
3245
|
private onFocus;
|
|
@@ -3815,12 +3819,16 @@ export declare class TabStripClassComponent extends React_2.Component<TabStripPr
|
|
|
3815
3819
|
mouseScrollSpeed: number;
|
|
3816
3820
|
renderAllContent: boolean;
|
|
3817
3821
|
};
|
|
3818
|
-
private
|
|
3822
|
+
private tabStripRef;
|
|
3819
3823
|
private get contentPanelId();
|
|
3820
3824
|
private get navItemId();
|
|
3821
3825
|
private showLicenseWatermark;
|
|
3822
|
-
private
|
|
3826
|
+
private navigation?;
|
|
3823
3827
|
constructor(props: TabStripProps);
|
|
3828
|
+
/** @hidden */
|
|
3829
|
+
componentDidMount(): void;
|
|
3830
|
+
/** @hidden */
|
|
3831
|
+
componentWillUnmount(): void;
|
|
3824
3832
|
/**
|
|
3825
3833
|
* @hidden
|
|
3826
3834
|
*/
|
|
@@ -3828,17 +3836,16 @@ export declare class TabStripClassComponent extends React_2.Component<TabStripPr
|
|
|
3828
3836
|
/**
|
|
3829
3837
|
* @hidden
|
|
3830
3838
|
*/
|
|
3831
|
-
onKeyDown: (event:
|
|
3839
|
+
onKeyDown: (event: React_2.KeyboardEvent<HTMLElement>) => void;
|
|
3840
|
+
/**
|
|
3841
|
+
* @hidden
|
|
3842
|
+
*/
|
|
3843
|
+
onKeyboardSelect: (index: number) => void;
|
|
3832
3844
|
/**
|
|
3833
3845
|
* @hidden
|
|
3834
3846
|
*/
|
|
3835
3847
|
render(): JSX_2.Element;
|
|
3836
3848
|
private renderContent;
|
|
3837
|
-
private invertKeys;
|
|
3838
|
-
private firstNavigatableTab;
|
|
3839
|
-
private lastNavigatableTab;
|
|
3840
|
-
private prevNavigatableTab;
|
|
3841
|
-
private nextNavigatableTab;
|
|
3842
3849
|
private children;
|
|
3843
3850
|
}
|
|
3844
3851
|
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-layout",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1718871469,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-layout",
|
|
3
|
-
"version": "8.1.0-develop.
|
|
3
|
+
"version": "8.1.0-develop.20",
|
|
4
4
|
"description": "React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-animation": "8.1.0-develop.
|
|
27
|
-
"@progress/kendo-react-common": "8.1.0-develop.
|
|
28
|
-
"@progress/kendo-react-intl": "8.1.0-develop.
|
|
29
|
-
"@progress/kendo-react-popup": "8.1.0-develop.
|
|
30
|
-
"@progress/kendo-react-progressbars": "8.1.0-develop.
|
|
26
|
+
"@progress/kendo-react-animation": "8.1.0-develop.20",
|
|
27
|
+
"@progress/kendo-react-common": "8.1.0-develop.20",
|
|
28
|
+
"@progress/kendo-react-intl": "8.1.0-develop.20",
|
|
29
|
+
"@progress/kendo-react-popup": "8.1.0-develop.20",
|
|
30
|
+
"@progress/kendo-react-progressbars": "8.1.0-develop.20",
|
|
31
31
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
32
32
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
33
33
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
package/splitter/SplitterBar.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 h=require("react"),p=require("@progress/kendo-react-common"),l=require("@progress/kendo-svg-icons");function b(c){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const s in c)if(s!=="default"){const e=Object.getOwnPropertyDescriptor(c,s);Object.defineProperty(a,s,e.get?e:{enumerable:!0,get:()=>c[s]})}}return a.default=c,Object.freeze(a)}const r=b(h);class d extends r.Component{constructor(a){super(a),this.draggable=null,this.spliterBarRef=r.createRef(),this.onDrag=(s,e,o)=>{const{event:i}=s,{onDrag:n,index:t}=this.props,g=this.draggable&&this.draggable.element;g&&!this.isStatic&&this.isDraggable&&n(i,g,t,e,o)},this.onFocus=()=>{this.setState({focused:!0})},this.onBlur=()=>{this.setState({focused:!1})},this.onToggle=s=>{const{onToggle:e,index:o,prev:i,next:n}=this.props;(i.collapsible||n.collapsible)&&e(i.collapsible?o:o+1,s)},this.onPrevToggle=s=>{const{onToggle:e,index:o,prev:i}=this.props;i.collapsible&&e(o,s)},this.onNextToggle=s=>{const{onToggle:e,index:o,next:i}=this.props;i.collapsible&&e(o+1,s)},this.onKeyDown=s=>{this.navigation.triggerKeyboardEvent(s)},this.state={focused:!1}}get isStatic(){const{prev:a,next:s}=this.props,e=a.resizable&&s.resizable,o=a.collapsible||s.collapsible;return!e&&!o}get isDraggable(){const{prev:a,next:s}=this.props,e=a.resizable&&s.resizable,o=a.collapsed||s.collapsed;return!!e&&!o}get isHorizontal(){return this.props.orientation==="horizontal"}componentDidMount(){const a=this.draggable&&this.draggable.element,{index:s,onKeyboardResize:e}=this.props,o=this.isHorizontal;a&&(this.navigation=new p.Navigation({tabIndex:0,root:this.spliterBarRef,selectors:[".k-splitter .k-splitbar"],keyboardEvents:{keydown:{ArrowLeft:(i,n,t)=>{o&&(t.preventDefault(),this.isDraggable&&e(a,s,-10,t),(t.metaKey||t.ctrlKey)&&(e(a,s,0,t),this.isDraggable?this.onPrevToggle(t):this.onNextToggle(t)))},ArrowRight:(i,n,t)=>{o&&(t.preventDefault(),this.isDraggable&&e(a,s,10,t),(t.metaKey||t.ctrlKey)&&(e(a,s,0,t),this.isDraggable?this.onNextToggle(t):this.onPrevToggle(t)))},ArrowDown:(i,n,t)=>{o||(t.preventDefault(),this.isDraggable&&e(a,s,10,t),(t.metaKey||t.ctrlKey)&&(e(a,s,0,t),this.isDraggable?this.onNextToggle(t):this.onPrevToggle(t)))},ArrowUp:(i,n,t)=>{o||(t.preventDefault(),this.isDraggable&&e(a,s,-10,t),(t.metaKey||t.ctrlKey)&&(e(a,s,0,t),this.isDraggable?this.onPrevToggle(t):this.onNextToggle(t)))},Enter:(i,n,t)=>{t.preventDefault(),this.onToggle(t)}}}}))}render(){const a=this.isDraggable,s=this.isStatic,e=this.isHorizontal,o=p.classNames("k-splitbar",{"k-focus":this.state.focused,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&a,"k-splitbar-draggable-vertical":!e&&a,"k-splitbar-static-horizontal":e&&s,"k-splitbar-static-vertical":!e&&s});return r.createElement(p.Draggable,{onPress:i=>this.onDrag(i,!0,!1),onDrag:i=>this.onDrag(i,!1,!1),onRelease:i=>this.onDrag(i,!1,!0),ref:i=>{this.draggable=i}},r.createElement("div",{ref:this.spliterBarRef,tabIndex:s?-1:0,role:"separator","aria-valuenow":0,"aria-label":this.props.ariaLabel,"aria-orientation":e?"vertical":void 0,className:o,style:{touchAction:"none"},onFocus:this.onFocus,onBlur:this.onBlur,onDoubleClick:this.onToggle,onKeyDown:this.onKeyDown},this.props.prev.collapsible&&r.createElement("div",{className:"k-collapse-prev",onClick:this.onPrevToggle},r.createElement(p.IconWrap,{name:this.props.prev.collapsible?e?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,icon:this.props.prev.collapsible?e?this.props.prev.collapsed?this.props.isRtl?l.caretAltLeftIcon:l.caretAltRightIcon:this.props.isRtl?l.caretAltRightIcon:l.caretAltLeftIcon:this.props.prev.collapsed?l.caretAltDownIcon:l.caretAltUpIcon:void 0,size:"xsmall"})),r.createElement("div",{className:"k-resize-handle"}),this.props.next.collapsible&&r.createElement("div",{className:"k-collapse-next",onClick:this.onNextToggle},r.createElement(p.IconWrap,{name:this.props.next.collapsible?e?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,icon:this.props.next.collapsible?e?this.props.next.collapsed?this.props.isRtl?l.caretAltRightIcon:l.caretAltLeftIcon:this.props.isRtl?l.caretAltLeftIcon:l.caretAltRightIcon:this.props.next.collapsed?l.caretAltUpIcon:l.caretAltDownIcon:void 0,size:"xsmall"}))))}}exports.SplitterBar=d;
|
package/splitter/SplitterBar.mjs
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
11
|
-
import { caretAltLeftIcon as
|
|
12
|
-
class
|
|
13
|
-
constructor(
|
|
14
|
-
super(
|
|
15
|
-
const { event:
|
|
16
|
-
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import { Navigation as d, classNames as f, Draggable as u, IconWrap as g } from "@progress/kendo-react-common";
|
|
11
|
+
import { caretAltLeftIcon as n, caretAltRightIcon as p, caretAltDownIcon as h, caretAltUpIcon as b } from "@progress/kendo-svg-icons";
|
|
12
|
+
class v extends o.Component {
|
|
13
|
+
constructor(a) {
|
|
14
|
+
super(a), this.draggable = null, this.spliterBarRef = o.createRef(), this.onDrag = (s, e, l) => {
|
|
15
|
+
const { event: i } = s, { onDrag: r, index: t } = this.props, c = this.draggable && this.draggable.element;
|
|
16
|
+
c && !this.isStatic && this.isDraggable && r(i, c, t, e, l);
|
|
17
17
|
}, this.onFocus = () => {
|
|
18
18
|
this.setState({
|
|
19
19
|
focused: !0
|
|
@@ -22,62 +22,88 @@ class k extends a.Component {
|
|
|
22
22
|
this.setState({
|
|
23
23
|
focused: !1
|
|
24
24
|
});
|
|
25
|
-
}, this.onToggle = (
|
|
26
|
-
const { onToggle: e, index: l, prev:
|
|
27
|
-
(
|
|
28
|
-
}, this.onPrevToggle = (
|
|
29
|
-
const { onToggle: e, index: l, prev:
|
|
30
|
-
|
|
31
|
-
}, this.onNextToggle = (
|
|
32
|
-
const { onToggle: e, index: l, next:
|
|
33
|
-
|
|
34
|
-
}, this.onKeyDown = (
|
|
35
|
-
|
|
36
|
-
t.preventDefault(), this.props.onKeyboardResize(p, f, u, t);
|
|
37
|
-
};
|
|
38
|
-
i && (e === n.enter ? (t.preventDefault(), this.onToggle(t)) : this.isDraggable && (l && e === n.left ? r(i, s, -10) : l && e === n.right ? r(i, s, 10) : !l && e === n.up ? r(i, s, -10) : !l && e === n.down && r(i, s, 10)));
|
|
25
|
+
}, this.onToggle = (s) => {
|
|
26
|
+
const { onToggle: e, index: l, prev: i, next: r } = this.props;
|
|
27
|
+
(i.collapsible || r.collapsible) && e(i.collapsible ? l : l + 1, s);
|
|
28
|
+
}, this.onPrevToggle = (s) => {
|
|
29
|
+
const { onToggle: e, index: l, prev: i } = this.props;
|
|
30
|
+
i.collapsible && e(l, s);
|
|
31
|
+
}, this.onNextToggle = (s) => {
|
|
32
|
+
const { onToggle: e, index: l, next: i } = this.props;
|
|
33
|
+
i.collapsible && e(l + 1, s);
|
|
34
|
+
}, this.onKeyDown = (s) => {
|
|
35
|
+
this.navigation.triggerKeyboardEvent(s);
|
|
39
36
|
}, this.state = {
|
|
40
37
|
focused: !1
|
|
41
38
|
};
|
|
42
39
|
}
|
|
43
40
|
get isStatic() {
|
|
44
|
-
const { prev:
|
|
41
|
+
const { prev: a, next: s } = this.props, e = a.resizable && s.resizable, l = a.collapsible || s.collapsible;
|
|
45
42
|
return !e && !l;
|
|
46
43
|
}
|
|
47
44
|
get isDraggable() {
|
|
48
|
-
const { prev:
|
|
45
|
+
const { prev: a, next: s } = this.props, e = a.resizable && s.resizable, l = a.collapsed || s.collapsed;
|
|
49
46
|
return !!e && !l;
|
|
50
47
|
}
|
|
51
48
|
get isHorizontal() {
|
|
52
49
|
return this.props.orientation === "horizontal";
|
|
53
50
|
}
|
|
51
|
+
/** @hidden */
|
|
52
|
+
componentDidMount() {
|
|
53
|
+
const a = this.draggable && this.draggable.element, { index: s, onKeyboardResize: e } = this.props, l = this.isHorizontal;
|
|
54
|
+
a && (this.navigation = new d({
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
root: this.spliterBarRef,
|
|
57
|
+
selectors: [".k-splitter .k-splitbar"],
|
|
58
|
+
keyboardEvents: {
|
|
59
|
+
keydown: {
|
|
60
|
+
ArrowLeft: (i, r, t) => {
|
|
61
|
+
l && (t.preventDefault(), this.isDraggable && e(a, s, -10, t), (t.metaKey || t.ctrlKey) && (e(a, s, 0, t), this.isDraggable ? this.onPrevToggle(t) : this.onNextToggle(t)));
|
|
62
|
+
},
|
|
63
|
+
ArrowRight: (i, r, t) => {
|
|
64
|
+
l && (t.preventDefault(), this.isDraggable && e(a, s, 10, t), (t.metaKey || t.ctrlKey) && (e(a, s, 0, t), this.isDraggable ? this.onNextToggle(t) : this.onPrevToggle(t)));
|
|
65
|
+
},
|
|
66
|
+
ArrowDown: (i, r, t) => {
|
|
67
|
+
l || (t.preventDefault(), this.isDraggable && e(a, s, 10, t), (t.metaKey || t.ctrlKey) && (e(a, s, 0, t), this.isDraggable ? this.onNextToggle(t) : this.onPrevToggle(t)));
|
|
68
|
+
},
|
|
69
|
+
ArrowUp: (i, r, t) => {
|
|
70
|
+
l || (t.preventDefault(), this.isDraggable && e(a, s, -10, t), (t.metaKey || t.ctrlKey) && (e(a, s, 0, t), this.isDraggable ? this.onPrevToggle(t) : this.onNextToggle(t)));
|
|
71
|
+
},
|
|
72
|
+
Enter: (i, r, t) => {
|
|
73
|
+
t.preventDefault(), this.onToggle(t);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
54
79
|
render() {
|
|
55
|
-
const
|
|
80
|
+
const a = this.isDraggable, s = this.isStatic, e = this.isHorizontal, l = f(
|
|
56
81
|
"k-splitbar",
|
|
57
82
|
{
|
|
58
83
|
"k-focus": this.state.focused,
|
|
59
84
|
"k-splitbar-horizontal": e,
|
|
60
85
|
"k-splitbar-vertical": !e,
|
|
61
|
-
"k-splitbar-draggable-horizontal": e &&
|
|
62
|
-
"k-splitbar-draggable-vertical": !e &&
|
|
63
|
-
"k-splitbar-static-horizontal": e &&
|
|
64
|
-
"k-splitbar-static-vertical": !e &&
|
|
86
|
+
"k-splitbar-draggable-horizontal": e && a,
|
|
87
|
+
"k-splitbar-draggable-vertical": !e && a,
|
|
88
|
+
"k-splitbar-static-horizontal": e && s,
|
|
89
|
+
"k-splitbar-static-vertical": !e && s
|
|
65
90
|
}
|
|
66
91
|
);
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
|
|
92
|
+
return /* @__PURE__ */ o.createElement(
|
|
93
|
+
u,
|
|
69
94
|
{
|
|
70
|
-
onPress: (
|
|
71
|
-
onDrag: (
|
|
72
|
-
onRelease: (
|
|
73
|
-
ref: (
|
|
74
|
-
this.draggable =
|
|
95
|
+
onPress: (i) => this.onDrag(i, !0, !1),
|
|
96
|
+
onDrag: (i) => this.onDrag(i, !1, !1),
|
|
97
|
+
onRelease: (i) => this.onDrag(i, !1, !0),
|
|
98
|
+
ref: (i) => {
|
|
99
|
+
this.draggable = i;
|
|
75
100
|
}
|
|
76
101
|
},
|
|
77
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ o.createElement(
|
|
78
103
|
"div",
|
|
79
104
|
{
|
|
80
|
-
|
|
105
|
+
ref: this.spliterBarRef,
|
|
106
|
+
tabIndex: s ? -1 : 0,
|
|
81
107
|
role: "separator",
|
|
82
108
|
"aria-valuenow": 0,
|
|
83
109
|
"aria-label": this.props.ariaLabel,
|
|
@@ -89,33 +115,33 @@ class k extends a.Component {
|
|
|
89
115
|
onDoubleClick: this.onToggle,
|
|
90
116
|
onKeyDown: this.onKeyDown
|
|
91
117
|
},
|
|
92
|
-
this.props.prev.collapsible && /* @__PURE__ */
|
|
118
|
+
this.props.prev.collapsible && /* @__PURE__ */ o.createElement(
|
|
93
119
|
"div",
|
|
94
120
|
{
|
|
95
121
|
className: "k-collapse-prev",
|
|
96
122
|
onClick: this.onPrevToggle
|
|
97
123
|
},
|
|
98
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ o.createElement(
|
|
99
125
|
g,
|
|
100
126
|
{
|
|
101
127
|
name: this.props.prev.collapsible ? e ? 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,
|
|
102
|
-
icon: this.props.prev.collapsible ? e ? this.props.prev.collapsed ? this.props.isRtl ?
|
|
128
|
+
icon: this.props.prev.collapsible ? e ? this.props.prev.collapsed ? this.props.isRtl ? n : p : this.props.isRtl ? p : n : this.props.prev.collapsed ? h : b : void 0,
|
|
103
129
|
size: "xsmall"
|
|
104
130
|
}
|
|
105
131
|
)
|
|
106
132
|
),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
this.props.next.collapsible && /* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ o.createElement("div", { className: "k-resize-handle" }),
|
|
134
|
+
this.props.next.collapsible && /* @__PURE__ */ o.createElement(
|
|
109
135
|
"div",
|
|
110
136
|
{
|
|
111
137
|
className: "k-collapse-next",
|
|
112
138
|
onClick: this.onNextToggle
|
|
113
139
|
},
|
|
114
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ o.createElement(
|
|
115
141
|
g,
|
|
116
142
|
{
|
|
117
143
|
name: this.props.next.collapsible ? e ? 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,
|
|
118
|
-
icon: this.props.next.collapsible ? e ? this.props.next.collapsed ? this.props.isRtl ?
|
|
144
|
+
icon: this.props.next.collapsible ? e ? this.props.next.collapsed ? this.props.isRtl ? p : n : this.props.isRtl ? n : p : this.props.next.collapsed ? b : h : void 0,
|
|
119
145
|
size: "xsmall"
|
|
120
146
|
}
|
|
121
147
|
)
|
|
@@ -125,5 +151,5 @@ class k extends a.Component {
|
|
|
125
151
|
}
|
|
126
152
|
}
|
|
127
153
|
export {
|
|
128
|
-
|
|
154
|
+
v as SplitterBar
|
|
129
155
|
};
|
package/stepper/Step.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 ee=require("react"),n=require("prop-types"),te=require("./context/StepperContext.js"),c=require("@progress/kendo-react-common"),ne=require("@progress/kendo-react-intl"),j=require("@progress/kendo-svg-icons"),D=require("./contants.js"),L=require("./messages/index.js");function ae(s){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const l in s)if(l!=="default"){const m=Object.getOwnPropertyDescriptor(s,l);Object.defineProperty(p,l,m.get?m:{enumerable:!0,get:()=>s[l]})}}return p.default=s,Object.freeze(p)}const e=ae(ee),v=e.forwardRef((s,p)=>{const{children:l,className:m,current:I,disabled:o,focused:O,icon:b,svgIcon:M,index:a,isValid:t,label:i,optional:k,style:T,tabIndex:oe,text:q,...P}=s,{animationDuration:g,isVertical:N,item:_,linear:z,mode:F,numOfSteps:r,value:u,onChange:x,onFocus:E,successIcon:V,errorIcon:w,successSVGIcon:H,errorSVGIcon:W}=e.useContext(te.StepperContext),f=e.useRef(null),R=e.useCallback(()=>{f.current&&c.focusFirstFocusableChild(f.current)},[]),C=e.useCallback(()=>({element:f.current,focus:R}),[R]);e.useImperativeHandle(p,C);const S=!z||a===u-1||a===u||a===u+1,h=F==="labels"||!!b&&!!i,$=ne.useLocalization(),B=(d=>$.toLanguageString(d,L.messages[d]))(L.optionalText),G=typeof g=="number"?g:g!==!1?D.DEFAULT_ANIMATION_DURATION:D.NO_ANIMATION,U=e.useCallback(d=>{x&&!o&&c.dispatchEvent(x,d,C(),{value:a})},[x,u,o]),K=e.useCallback(d=>{E&&!o&&c.dispatchEvent(E,d,C(),void 0)},[E,o]),J=e.useMemo(()=>c.classNames("k-step",{"k-step-first":a===0,"k-step-last":r&&a===r-1,"k-step-done":a<u,"k-step-current":I,"k-step-optional":k,"k-step-error":t!==void 0&&!t,"k-step-success":t,"k-disabled":o,"k-focus":O},m),[a,r,u,I,k,o,O,t,m]),Q=e.useMemo(()=>({maxWidth:N?void 0:`calc(100% / ${r})`,maxHeight:N?`calc(100% / ${r})`:void 0,pointerEvents:S?void 0:"none",...T}),[N,r,T,S]),A=t?V:w,y=A?e.createElement("span",{className:"k-step-indicator-icon "+A,"aria-hidden":"true"}):e.createElement(c.IconWrap,{className:"k-step-indicator-icon",name:t?"check-circle":"exclamation-circle",icon:t?H||j.checkOutlineIcon:W||j.exclamationCircleIcon}),X=e.createElement(e.Fragment,null,F!=="labels"?e.createElement("span",{className:"k-step-indicator","aria-hidden":!0,style:{transitionDuration:G+"ms"}},b||M?!h&&t!==void 0?y:e.createElement(c.IconWrap,{className:"k-step-indicator-icon",name:b&&c.toIconName(b),icon:M}):t!==void 0?y:e.createElement("span",{className:"k-step-indicator-text"},q||a+1)):null),Y=(i||h||k)&&e.createElement("span",{className:"k-step-label"},i&&e.createElement("span",{className:"k-step-text"},i),h&&t!==void 0&&y,k&&e.createElement("span",{className:"k-step-label-optional"},B)),Z=e.createElement(e.Fragment,null,X,Y);return e.createElement("li",{ref:f,className:J,style:Q,...P},e.createElement("a",{className:"k-step-link",title:i||void 0,onClick:U,onFocus:K,"aria-current":I?"step":void 0,"aria-disabled":o||!S||void 0,"aria-invalid":t!==void 0&&!t||void 0},_?l:Z))});v.propTypes={children:n.any,className:n.string,current:n.bool,disabled:n.bool,icon:n.string,index:n.number,isValid:n.bool,label:n.string,optional:n.bool,style:n.object,tabIndex:n.number,text:n.string};const se={tabIndex:0};v.defaultProps=se;v.displayName="KendoStep";exports.Step=v;
|