Skip to content

Commit

Permalink
[v5.0.0-bate-19] fix(deps): update dependency @uiw/react-split to ~5.…
Browse files Browse the repository at this point in the history
…9.0 (#966)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> a52526f
  • Loading branch information
github-actions[bot] committed Nov 29, 2023
1 parent 4c4afee commit f3162d0
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 68 deletions.
12 changes: 6 additions & 6 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": {
"main.css": "/static/css/main.3d080c32.css",
"main.css": "/static/css/main.be061f95.css",
"main.js": "/static/js/main.98167582.js",
"static/css/3174.3b3d8416.chunk.css": "/static/css/3174.3b3d8416.chunk.css",
"static/js/3174.d48bb4d7.chunk.js": "/static/js/3174.d48bb4d7.chunk.js",
Expand Down Expand Up @@ -79,13 +79,13 @@
"static/js/632.e7f1e895.chunk.js": "/static/js/632.e7f1e895.chunk.js",
"static/js/3026.de8f0b6e.chunk.js": "/static/js/3026.de8f0b6e.chunk.js",
"vendors-standalone.js": "/static/js/vendors-standalone.885ccf98.chunk.js",
"vendors-uiwjs.js": "/static/js/vendors-uiwjs.bc70d56e.js",
"vendors-uiwjs.js": "/static/js/vendors-uiwjs.45c0fcba.js",
"vendors-react.js": "/static/js/vendors-react.4cd24633.js",
"static/js/2405.19c27c9b.chunk.js": "/static/js/2405.19c27c9b.chunk.js",
"static/js/6450.86718bc0.js": "/static/js/6450.86718bc0.js",
"static/css/9677.58363bc6.chunk.css": "/static/css/9677.58363bc6.chunk.css",
"index.html": "/index.html",
"main.3d080c32.css.map": "/static/css/main.3d080c32.css.map",
"main.be061f95.css.map": "/static/css/main.be061f95.css.map",
"main.98167582.js.map": "/static/js/main.98167582.js.map",
"3174.3b3d8416.chunk.css.map": "/static/css/3174.3b3d8416.chunk.css.map",
"3174.d48bb4d7.chunk.js.map": "/static/js/3174.d48bb4d7.chunk.js.map",
Expand Down Expand Up @@ -164,17 +164,17 @@
"632.e7f1e895.chunk.js.map": "/static/js/632.e7f1e895.chunk.js.map",
"3026.de8f0b6e.chunk.js.map": "/static/js/3026.de8f0b6e.chunk.js.map",
"vendors-standalone.885ccf98.chunk.js.map": "/static/js/vendors-standalone.885ccf98.chunk.js.map",
"vendors-uiwjs.bc70d56e.js.map": "/static/js/vendors-uiwjs.bc70d56e.js.map",
"vendors-uiwjs.45c0fcba.js.map": "/static/js/vendors-uiwjs.45c0fcba.js.map",
"vendors-react.4cd24633.js.map": "/static/js/vendors-react.4cd24633.js.map",
"2405.19c27c9b.chunk.js.map": "/static/js/2405.19c27c9b.chunk.js.map",
"6450.86718bc0.js.map": "/static/js/6450.86718bc0.js.map",
"9677.58363bc6.chunk.css.map": "/static/css/9677.58363bc6.chunk.css.map"
},
"entrypoints": [
"static/js/vendors-uiwjs.bc70d56e.js",
"static/js/vendors-uiwjs.45c0fcba.js",
"static/js/vendors-react.4cd24633.js",
"static/js/6450.86718bc0.js",
"static/css/main.3d080c32.css",
"static/css/main.be061f95.css",
"static/js/main.98167582.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>uiw react, A high quality UI Toolkit, A Component Library for React 16+.</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="UIW React, A high quality UI Toolkit, A Component Library for React 16+. "><meta name="keywords" content="uiw, uiw-react, uiwjs, react.js, react, component, components, ui, framework, toolkit"><script defer="defer" src="./static/js/vendors-uiwjs.bc70d56e.js"></script><script defer="defer" src="./static/js/vendors-react.4cd24633.js"></script><script defer="defer" src="./static/js/6450.86718bc0.js"></script><script defer="defer" src="./static/js/main.98167582.js"></script><link href="./static/css/main.3d080c32.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>uiw react, A high quality UI Toolkit, A Component Library for React 16+.</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="UIW React, A high quality UI Toolkit, A Component Library for React 16+. "><meta name="keywords" content="uiw, uiw-react, uiwjs, react.js, react, component, components, ui, framework, toolkit"><script defer="defer" src="./static/js/vendors-uiwjs.45c0fcba.js"></script><script defer="defer" src="./static/js/vendors-react.4cd24633.js"></script><script defer="defer" src="./static/js/6450.86718bc0.js"></script><script defer="defer" src="./static/js/main.98167582.js"></script><link href="./static/css/main.be061f95.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1 change: 0 additions & 1 deletion static/css/main.3d080c32.css.map

This file was deleted.

4 changes: 2 additions & 2 deletions static/css/main.3d080c32.css → static/css/main.be061f95.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/main.be061f95.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions static/js/vendors-uiwjs.45c0fcba.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/vendors-uiwjs.45c0fcba.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions static/js/vendors-uiwjs.bc70d56e.js

This file was deleted.

1 change: 0 additions & 1 deletion static/js/vendors-uiwjs.bc70d56e.js.map

This file was deleted.

29 changes: 19 additions & 10 deletions uiw.css
Original file line number Diff line number Diff line change
Expand Up @@ -3877,15 +3877,19 @@ a.w-list-item:hover:not(.w-disabled) {
height: 100%;
display: flex;
flex-direction: row;
--w-split-bar-shadow: #d5d5d5;
--w-split-bar-shadow-disable: #d5d5d5;
}
.w-split-bar {
z-index: 10;
position: relative;
justify-content: center;
display: flex;
background: #f8f8f9;
background: var(--w-split-bar-background, #f8f8f9);
-webkit-user-select: none;
user-select: none;
-moz-user-select: none;
user-select: none;
}
.w-split-bar::before,
.w-split-bar::after {
Expand All @@ -3899,6 +3903,7 @@ a.w-list-item:hover:not(.w-disabled) {
.w-split-bar:hover:not(.disable) {
transition: background-color 0.3s;
background: #ecf7ff;
background: var(--w-split-bar-hover-background, #ecf7ff);
}
.w-split.dragging .w-split-pane {
position: relative;
Expand All @@ -3921,13 +3926,13 @@ a.w-list-item:hover:not(.w-disabled) {
cursor: col-resize;
width: 5px;
flex-direction: column;
box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5;
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow);
}
.w-split-horizontal > .w-split-bar::before,
.w-split-horizontal > .w-split-bar::after {
height: 3px;
width: 100%;
box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5;
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow);
}
.w-split-horizontal > .w-split-bar::before {
margin-top: -1px;
Expand All @@ -3936,7 +3941,7 @@ a.w-list-item:hover:not(.w-disabled) {
margin-top: 3px;
}
.w-split-horizontal > .w-split-bar.disable {
box-shadow: inset 1px 0 0 0 #e6e6e6, 1px 0 0 0 #eaeaea !important;
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow-disable), 1px 0 0 0 var(--w-split-bar-shadow-disable) !important;
}
.w-split-vertical {
flex-direction: column;
Expand All @@ -3947,16 +3952,16 @@ a.w-list-item:hover:not(.w-disabled) {
height: 5px;
align-items: center;
flex-direction: row;
box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5;
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow);
}
.w-split-vertical > .w-split-bar.disable {
box-shadow: inset 0 1px 0 0 #e6e6e6, 0 1px 0 0 #eaeaea !important;
box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow-disable), 0 1px 0 0 var(--w-split-bar-shadow-disable) !important;
}
.w-split-vertical > .w-split-bar::before,
.w-split-vertical > .w-split-bar::after {
height: 100%;
width: 3px;
box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5;
box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow);
}
.w-split-vertical > .w-split-bar::before {
margin-left: -1px;
Expand All @@ -3973,7 +3978,8 @@ a.w-list-item:hover:not(.w-disabled) {
}
.w-split-vertical > .w-split-line-bar:hover::before,
.w-split-horizontal > .w-split-line-bar:hover::before {
border-color: #008EF0;
background: #008ef0;
background: var(--w-split-line-bar-hover-border-color, #008ef0);
}
.w-split-vertical > .w-split-line-bar {
height: 1px;
Expand All @@ -3995,7 +4001,8 @@ a.w-list-item:hover:not(.w-disabled) {
.w-split-vertical > .w-split-line-bar div:hover::after,
.w-split-vertical > .w-split-line-bar div:active::after,
.w-split-vertical > .w-split-line-bar div:focus::after {
background-color: #008EF0;
background: #008ef0;
background: var(--w-split-line-bar-active-background, #008ef0);
}
.w-split-vertical > .w-split-line-bar div::after {
height: 1px;
Expand All @@ -4021,7 +4028,8 @@ a.w-list-item:hover:not(.w-disabled) {
.w-split-horizontal > .w-split-line-bar div:hover::after,
.w-split-horizontal > .w-split-line-bar div:active::after,
.w-split-horizontal > .w-split-line-bar div:focus::after {
background-color: #008EF0;
background: #008ef0;
background: var(--w-split-line-bar-active-background, #008ef0);
}
.w-split-horizontal > .w-split-line-bar div::after {
width: 1px;
Expand All @@ -4047,6 +4055,7 @@ a.w-list-item:hover:not(.w-disabled) {
content: '';
display: block;
background-color: #d5d5d5;
background-color: var(--w-split-line-bar-background, #d5d5d5);
}
.w-split-line-bar {
box-shadow: inset 0 0 0 0 !important;
Expand Down
58 changes: 16 additions & 42 deletions uiw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8154,7 +8154,7 @@ function SearchSelect(props) {
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-split/esm/index.js


var react_split_esm_excluded = ["prefixCls", "className", "children", "mode", "visiable", "renderBar", "lineBar", "disable", "onDragEnd", "onDragging"];
var react_split_esm_excluded = ["prefixCls", "className", "children", "mode", "visiable", "visible", "renderBar", "lineBar", "disable", "onDragEnd", "onDragging"];



Expand Down Expand Up @@ -8182,21 +8182,17 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
this.onDragEnd = this.onDragEnd.bind(this);
this.onDragging = this.onDragging.bind(this);
}

componentWillUnmount() {
this.removeEvent();
}

removeEvent() {
window.removeEventListener('mousemove', this.onDragging, false);
window.removeEventListener('mouseup', this.onDragEnd, false);
}

onMouseDown(paneNumber, env) {
if (!env.target || !this.warpper) {
return;
}

this.paneNumber = paneNumber;
this.startX = env.clientX;
this.startY = env.clientY;
Expand All @@ -8206,35 +8202,29 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
var nextTarget = this.target.nextElementSibling;
this.boxWidth = this.warpper.clientWidth;
this.boxHeight = this.warpper.clientHeight;

if (prevTarget) {
this.preWidth = prevTarget.clientWidth;
this.preHeight = prevTarget.clientHeight;
}

if (nextTarget) {
this.nextWidth = nextTarget.clientWidth;
this.nextHeight = nextTarget.clientHeight;
}

window.addEventListener('mousemove', this.onDragging);
window.addEventListener('mouseup', this.onDragEnd, false);
this.setState({
dragging: true
});
}

onDragging(env) {
if (!this.move) {
return;
}

if (!this.state.dragging) {
this.setState({
dragging: true
});
}

var {
mode,
onDragging
Expand All @@ -8245,43 +8235,34 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
var y = env.clientY - this.startY;
this.preSize = 0;
this.nextSize = 0;

if (mode === 'horizontal') {
this.preSize = this.preWidth + x > -1 ? this.preWidth + x : 0;
this.nextSize = this.nextWidth - x > -1 ? this.nextWidth - x : 0;

if (this.preSize === 0 || this.nextSize === 0) {
return;
}

this.preSize = (this.preSize / this.boxWidth >= 1 ? 1 : this.preSize / this.boxWidth) * 100;
this.nextSize = (this.nextSize / this.boxWidth >= 1 ? 1 : this.nextSize / this.boxWidth) * 100;

if (prevTarget && nextTarget) {
prevTarget.style.width = this.preSize + "%";
nextTarget.style.width = this.nextSize + "%";
}
}

if (mode === 'vertical' && this.preHeight + y > -1 && this.nextHeight - y > -1) {
this.preSize = this.preHeight + y > -1 ? this.preHeight + y : 0;
this.nextSize = this.nextHeight - y > -1 ? this.nextHeight - y : 0;
this.preSize = (this.preSize / this.boxHeight >= 1 ? 1 : this.preSize / this.boxHeight) * 100;
this.nextSize = (this.nextSize / this.boxHeight >= 1 ? 1 : this.nextSize / this.boxHeight) * 100;

if (this.preSize === 0 || this.nextSize === 0) {
return;
}

if (prevTarget && nextTarget) {
prevTarget.style.height = this.preSize + "%";
nextTarget.style.height = this.nextSize + "%";
}
}

onDragging && onDragging(this.preSize, this.nextSize, this.paneNumber);
}

onDragEnd() {
var {
onDragEnd
Expand All @@ -8293,21 +8274,20 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
dragging: false
});
}

render() {
var _this$props$visible;
var _this$props = this.props,
{
prefixCls,
className,
children,
mode,
visiable,
renderBar,
lineBar,
disable
} = _this$props,
other = _objectWithoutPropertiesLoose(_this$props, react_split_esm_excluded);

{
prefixCls,
className,
children,
mode,
visible = (_this$props$visible = this.props.visible) != null ? _this$props$visible : this.props.visiable,
renderBar,
lineBar,
disable
} = _this$props,
other = _objectWithoutPropertiesLoose(_this$props, react_split_esm_excluded);
var {
dragging
} = this.state;
Expand All @@ -8322,41 +8302,35 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
className: [prefixCls + "-pane", element.props.className].filter(Boolean).join(' ').trim(),
style: _extends({}, element.props.style)
});
var visiableBar = visiable === true || visiable && visiable.includes(idx + 1) || false;
var visibleBar = visible === true || visible && visible.includes(idx + 1) || false;
var barProps = {
className: [prefixCls + "-bar", lineBar ? prefixCls + "-line-bar" : null, !lineBar ? prefixCls + "-large-bar" : null].filter(Boolean).join(' ').trim()
};

if (disable === true || disable && disable.includes(idx + 1)) {
barProps.className = [barProps.className, disable ? 'disable' : null].filter(Boolean).join(' ').trim();
}

var BarCom = null;

if (idx !== 0 && visiableBar && renderBar) {
if (idx !== 0 && visibleBar && renderBar) {
BarCom = renderBar(_extends({}, barProps, {
onMouseDown: this.onMouseDown.bind(this, idx + 1)
}));
} else if (idx !== 0 && visiableBar) {
} else if (idx !== 0 && visibleBar) {
BarCom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement('div', _extends({}, barProps), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onMouseDown: this.onMouseDown.bind(this, idx + 1)
}));
}

return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
children: [BarCom, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, _extends({}, props))]
}, idx);
})
}));
}

}
Split.defaultProps = {
prefixCls: 'w-split',
visiable: true,
mode: 'horizontal'
};
//# sourceMappingURL=index.js.map
;// CONCATENATED MODULE: ../react-steps/esm/style/index.css
// extracted by mini-css-extract-plugin
/* harmony default export */ const react_steps_esm_style = ({});
Expand Down
2 changes: 1 addition & 1 deletion uiw.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion uiw.min.js

Large diffs are not rendered by default.

0 comments on commit f3162d0

Please sign in to comment.