jrs-react 1.2.7 → 1.2.8
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/build/index.es.js +356 -216
- package/build/index.js +356 -216
- package/package.json +4 -10
- package/src/app/window/WindowApp.jsx +50 -16
- package/src/assets/icon/card.svg +14 -0
- package/src/assets/icon/copy.svg +14 -0
- package/src/assets/icon/index.jsx +26 -0
- package/src/assets/icon/minus.svg +13 -0
- package/src/assets/icon/square.svg +13 -0
- package/src/assets/icon/x.svg +14 -0
- package/src/components/JRInput/JRButton.jsx +3 -0
- package/src/components/JRWindow/JRWindow.jsx +55 -53
- package/src/components/JRWindow/Slider.jsx +85 -34
- package/src/components/JRWindow/TitleBar.jsx +104 -19
- package/vite.config.js +10 -2
package/build/index.es.js
CHANGED
|
@@ -2807,7 +2807,7 @@ function requireReact () {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
2809
|
var reactExports = requireReact();
|
|
2810
|
-
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2810
|
+
var React$1 = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2811
2811
|
|
|
2812
2812
|
function bind(fn, thisArg) {
|
|
2813
2813
|
return function wrap() {
|
|
@@ -6066,7 +6066,7 @@ const whatType = ({
|
|
|
6066
6066
|
// const style=flexType(typeStyle,me,{},{})
|
|
6067
6067
|
// return 'type'
|
|
6068
6068
|
const typeStyle = typeof _typeStyle === 'function' ? _typeStyle?.bind(me)() : _typeStyle;
|
|
6069
|
-
return /*#__PURE__*/React.createElement(type, {
|
|
6069
|
+
return /*#__PURE__*/React$1.createElement(type, {
|
|
6070
6070
|
style: typeStyle
|
|
6071
6071
|
});
|
|
6072
6072
|
} else if (render) {
|
|
@@ -6217,9 +6217,9 @@ const StyledCover = styled.div`
|
|
|
6217
6217
|
const Cover = ({
|
|
6218
6218
|
children
|
|
6219
6219
|
}) => {
|
|
6220
|
-
return /*#__PURE__*/React.createElement(StyledCover, null, children);
|
|
6220
|
+
return /*#__PURE__*/React$1.createElement(StyledCover, null, children);
|
|
6221
6221
|
};
|
|
6222
|
-
class JRSubmit extends React.Component {
|
|
6222
|
+
class JRSubmit extends React$1.Component {
|
|
6223
6223
|
#methods = ['get', 'post', 'put', 'patch', 'delete', 'download'];
|
|
6224
6224
|
constructor(props) {
|
|
6225
6225
|
super(props);
|
|
@@ -6476,7 +6476,7 @@ class JRSubmit extends React.Component {
|
|
|
6476
6476
|
return;
|
|
6477
6477
|
}
|
|
6478
6478
|
render() {
|
|
6479
|
-
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
|
|
6479
|
+
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React$1.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
@@ -6494,12 +6494,12 @@ const FreeType$1 = ({
|
|
|
6494
6494
|
const content = config.bind(me)({
|
|
6495
6495
|
setStyle
|
|
6496
6496
|
});
|
|
6497
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
6497
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6498
6498
|
className: className,
|
|
6499
6499
|
style: style
|
|
6500
6500
|
}, content);
|
|
6501
6501
|
} else if (typeof config === 'string') {
|
|
6502
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
6502
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6503
6503
|
className: className
|
|
6504
6504
|
}, config);
|
|
6505
6505
|
}
|
|
@@ -6541,33 +6541,33 @@ const StyledJRFrame$1 = styled.div`
|
|
|
6541
6541
|
`;
|
|
6542
6542
|
class JRFrame extends JRSubmit {
|
|
6543
6543
|
renderer() {
|
|
6544
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
|
|
6544
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame$1, {
|
|
6545
6545
|
style: this.props.style,
|
|
6546
6546
|
className: `${this.props.className} jr-frame`
|
|
6547
|
-
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6547
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6548
6548
|
tag: "div",
|
|
6549
6549
|
config: this.props.start,
|
|
6550
6550
|
me: this,
|
|
6551
6551
|
className: 'start'
|
|
6552
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6552
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6553
6553
|
tag: "header",
|
|
6554
6554
|
config: this.props.top,
|
|
6555
6555
|
me: this
|
|
6556
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6556
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6557
6557
|
tag: "div",
|
|
6558
6558
|
config: this.props.left,
|
|
6559
6559
|
me: this,
|
|
6560
6560
|
className: 'left'
|
|
6561
|
-
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6561
|
+
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6562
6562
|
tag: "div",
|
|
6563
6563
|
config: this.props.right,
|
|
6564
6564
|
me: this,
|
|
6565
6565
|
className: 'right'
|
|
6566
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6566
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6567
6567
|
tag: "footer",
|
|
6568
6568
|
config: this.props.bottom,
|
|
6569
6569
|
me: this
|
|
6570
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6570
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6571
6571
|
tag: "div",
|
|
6572
6572
|
config: this.props.end,
|
|
6573
6573
|
me: this,
|
|
@@ -6594,10 +6594,10 @@ const StyledSlider$1 = styled.div`
|
|
|
6594
6594
|
border-right:1px dashed gray;
|
|
6595
6595
|
}
|
|
6596
6596
|
`;
|
|
6597
|
-
class Slider$1 extends React.Component {
|
|
6597
|
+
class Slider$1 extends React$1.Component {
|
|
6598
6598
|
constructor() {
|
|
6599
6599
|
super();
|
|
6600
|
-
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
6600
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
6601
6601
|
}
|
|
6602
6602
|
stop = e => {
|
|
6603
6603
|
this.sliderRef.current.classList.remove('resizing');
|
|
@@ -6646,7 +6646,7 @@ class Slider$1 extends React.Component {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
render() {
|
|
6648
6648
|
const column = this.props.column;
|
|
6649
|
-
return /*#__PURE__*/React.createElement(StyledSlider$1, {
|
|
6649
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider$1, {
|
|
6650
6650
|
ref: this.sliderRef,
|
|
6651
6651
|
onMouseDown: e => {
|
|
6652
6652
|
this.start(this.props.thRef, column);
|
|
@@ -6659,7 +6659,7 @@ const Colgroup = ({
|
|
|
6659
6659
|
leafColumns,
|
|
6660
6660
|
colGroupRef
|
|
6661
6661
|
}) => {
|
|
6662
|
-
return /*#__PURE__*/React.createElement("colgroup", {
|
|
6662
|
+
return /*#__PURE__*/React$1.createElement("colgroup", {
|
|
6663
6663
|
ref: colGroupRef
|
|
6664
6664
|
}, leafColumns?.map((_column, index) => {
|
|
6665
6665
|
const {
|
|
@@ -6669,7 +6669,7 @@ const Colgroup = ({
|
|
|
6669
6669
|
const style = {
|
|
6670
6670
|
width
|
|
6671
6671
|
};
|
|
6672
|
-
return /*#__PURE__*/React.createElement("col", {
|
|
6672
|
+
return /*#__PURE__*/React$1.createElement("col", {
|
|
6673
6673
|
style: style,
|
|
6674
6674
|
key: index
|
|
6675
6675
|
});
|
|
@@ -6682,13 +6682,13 @@ const Ths$1 = ({
|
|
|
6682
6682
|
table
|
|
6683
6683
|
}) => {
|
|
6684
6684
|
return rowColumn?.map((column, colIndex) => {
|
|
6685
|
-
const thRef = /*#__PURE__*/React.createRef();
|
|
6686
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6685
|
+
const thRef = /*#__PURE__*/React$1.createRef();
|
|
6686
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6687
6687
|
key: colIndex,
|
|
6688
6688
|
ref: thRef,
|
|
6689
6689
|
colSpan: column.colSpan,
|
|
6690
6690
|
rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
|
|
6691
|
-
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider$1, {
|
|
6691
|
+
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React$1.createElement(Slider$1, {
|
|
6692
6692
|
table: table,
|
|
6693
6693
|
thRef: thRef,
|
|
6694
6694
|
column: column
|
|
@@ -6702,10 +6702,10 @@ const HeadTrs = ({
|
|
|
6702
6702
|
}) => {
|
|
6703
6703
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6704
6704
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6705
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6705
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6706
6706
|
className: trClassName,
|
|
6707
6707
|
key: rowIndex
|
|
6708
|
-
}, /*#__PURE__*/React.createElement(Ths$1, {
|
|
6708
|
+
}, /*#__PURE__*/React$1.createElement(Ths$1, {
|
|
6709
6709
|
deep: columns.length - 1,
|
|
6710
6710
|
rowColumn: rowColumn,
|
|
6711
6711
|
rowIndex: rowIndex,
|
|
@@ -6718,10 +6718,10 @@ const THead = ({
|
|
|
6718
6718
|
leafColumns,
|
|
6719
6719
|
table
|
|
6720
6720
|
}) => {
|
|
6721
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
|
|
6721
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement(HeadTrs, {
|
|
6722
6722
|
columns: columns,
|
|
6723
6723
|
table: table
|
|
6724
|
-
})), /*#__PURE__*/React.createElement(Colgroup, {
|
|
6724
|
+
})), /*#__PURE__*/React$1.createElement(Colgroup, {
|
|
6725
6725
|
leafColumns: leafColumns,
|
|
6726
6726
|
colGroupRef: table.colGroupRef
|
|
6727
6727
|
}));
|
|
@@ -6746,7 +6746,7 @@ const FootThs = ({
|
|
|
6746
6746
|
// }
|
|
6747
6747
|
let style = flexType(column.style, table, {}, {});
|
|
6748
6748
|
const content = whatType(column, table, column.label);
|
|
6749
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6749
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6750
6750
|
style: style,
|
|
6751
6751
|
colSpan: column.colSpan,
|
|
6752
6752
|
rowSpan: column.rowSpan
|
|
@@ -6758,24 +6758,24 @@ const TFoot = ({
|
|
|
6758
6758
|
columns
|
|
6759
6759
|
}) => {
|
|
6760
6760
|
const trs = columns?.map((rowColumn, rowIndex) => {
|
|
6761
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6761
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6762
6762
|
key: rowIndex
|
|
6763
|
-
}, /*#__PURE__*/React.createElement(FootThs, {
|
|
6763
|
+
}, /*#__PURE__*/React$1.createElement(FootThs, {
|
|
6764
6764
|
columns: rowColumn,
|
|
6765
6765
|
table: table
|
|
6766
6766
|
}));
|
|
6767
6767
|
});
|
|
6768
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
|
|
6768
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tfoot", null, trs));
|
|
6769
6769
|
};
|
|
6770
6770
|
|
|
6771
|
-
function _extends() {
|
|
6772
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
6771
|
+
function _extends$3() {
|
|
6772
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function (n) {
|
|
6773
6773
|
for (var e = 1; e < arguments.length; e++) {
|
|
6774
6774
|
var t = arguments[e];
|
|
6775
6775
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6776
6776
|
}
|
|
6777
6777
|
return n;
|
|
6778
|
-
}, _extends.apply(null, arguments);
|
|
6778
|
+
}, _extends$3.apply(null, arguments);
|
|
6779
6779
|
}
|
|
6780
6780
|
|
|
6781
6781
|
styled.tbody`
|
|
@@ -6816,7 +6816,7 @@ const Ths = ({
|
|
|
6816
6816
|
content = column.label;
|
|
6817
6817
|
}
|
|
6818
6818
|
// style.textAlign=align
|
|
6819
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6819
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6820
6820
|
key: colIndex,
|
|
6821
6821
|
style: {
|
|
6822
6822
|
textAlign: align,
|
|
@@ -6836,10 +6836,10 @@ const GroupColumns = ({
|
|
|
6836
6836
|
}) => {
|
|
6837
6837
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6838
6838
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6839
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6839
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6840
6840
|
className: trClassName,
|
|
6841
6841
|
key: rowIndex
|
|
6842
|
-
}, /*#__PURE__*/React.createElement(Ths, {
|
|
6842
|
+
}, /*#__PURE__*/React$1.createElement(Ths, {
|
|
6843
6843
|
table: table,
|
|
6844
6844
|
groupData: groupData,
|
|
6845
6845
|
groupIndex: tbodyIndex,
|
|
@@ -6859,7 +6859,7 @@ styled.tr`
|
|
|
6859
6859
|
}
|
|
6860
6860
|
`;
|
|
6861
6861
|
const GroupHeader = props => {
|
|
6862
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6862
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6863
6863
|
trClassName: 'jr-group-header'
|
|
6864
6864
|
}, props));
|
|
6865
6865
|
};
|
|
@@ -6870,7 +6870,7 @@ styled.tr`
|
|
|
6870
6870
|
}
|
|
6871
6871
|
`;
|
|
6872
6872
|
const GroupFooter = props => {
|
|
6873
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6873
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6874
6874
|
trClassName: 'jr-group-footer'
|
|
6875
6875
|
}, props));
|
|
6876
6876
|
};
|
|
@@ -6917,7 +6917,7 @@ const Td = ({
|
|
|
6917
6917
|
const typeStyle = flexType(_typeStyle, table, {
|
|
6918
6918
|
record
|
|
6919
6919
|
}, {});
|
|
6920
|
-
content = /*#__PURE__*/React.createElement(type, {
|
|
6920
|
+
content = /*#__PURE__*/React$1.createElement(type, {
|
|
6921
6921
|
onChange: _onChange ? e => {
|
|
6922
6922
|
_onChange?.bind(table)(e, {
|
|
6923
6923
|
value,
|
|
@@ -6945,7 +6945,7 @@ const Td = ({
|
|
|
6945
6945
|
} else {
|
|
6946
6946
|
content = value;
|
|
6947
6947
|
}
|
|
6948
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
6948
|
+
return /*#__PURE__*/React$1.createElement("td", {
|
|
6949
6949
|
colSpan: style.colSpan,
|
|
6950
6950
|
rowSpan: style.rowSpan,
|
|
6951
6951
|
style: {
|
|
@@ -6964,7 +6964,7 @@ const Tds = ({
|
|
|
6964
6964
|
trIndex
|
|
6965
6965
|
}) => {
|
|
6966
6966
|
return leafColumns?.map((column, tdIndex) => {
|
|
6967
|
-
return /*#__PURE__*/React.createElement(Td, {
|
|
6967
|
+
return /*#__PURE__*/React$1.createElement(Td, {
|
|
6968
6968
|
column: column,
|
|
6969
6969
|
key: tdIndex,
|
|
6970
6970
|
record: record,
|
|
@@ -6989,14 +6989,14 @@ const TBody = ({
|
|
|
6989
6989
|
table,
|
|
6990
6990
|
tbodyIndex
|
|
6991
6991
|
};
|
|
6992
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
|
|
6992
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tbody", {
|
|
6993
6993
|
key: `tbody${tbodyIndex}`
|
|
6994
|
-
}, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
|
|
6994
|
+
}, groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupHeader, _extends$3({
|
|
6995
6995
|
groupData: groupData,
|
|
6996
6996
|
columns: groupHeader
|
|
6997
6997
|
}, neededProps)), groupData?.map?.((record, trIndex) => {
|
|
6998
6998
|
const onRowClick = table.props.onRowClick?.bind(table);
|
|
6999
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6999
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
7000
7000
|
key: trIndex,
|
|
7001
7001
|
onClick: () => {
|
|
7002
7002
|
onRowClick?.({
|
|
@@ -7005,13 +7005,13 @@ const TBody = ({
|
|
|
7005
7005
|
groupIndex: tbodyIndex
|
|
7006
7006
|
});
|
|
7007
7007
|
}
|
|
7008
|
-
}, /*#__PURE__*/React.createElement(Tds, _extends({
|
|
7008
|
+
}, /*#__PURE__*/React$1.createElement(Tds, _extends$3({
|
|
7009
7009
|
record: record,
|
|
7010
7010
|
trIndex: trIndex
|
|
7011
7011
|
}, neededProps, {
|
|
7012
7012
|
leafColumns: leafColumns
|
|
7013
7013
|
})));
|
|
7014
|
-
}), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
|
|
7014
|
+
}), groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupFooter, _extends$3({
|
|
7015
7015
|
groupData: groupData,
|
|
7016
7016
|
columns: groupFooter
|
|
7017
7017
|
}, neededProps))));
|
|
@@ -7029,7 +7029,7 @@ const TBodies = ({
|
|
|
7029
7029
|
|
|
7030
7030
|
// po('dataSource',dataSource)
|
|
7031
7031
|
return dataSource?.map((groupData, tbodyIndex, c) => {
|
|
7032
|
-
return /*#__PURE__*/React.createElement(TBody, {
|
|
7032
|
+
return /*#__PURE__*/React$1.createElement(TBody, {
|
|
7033
7033
|
key: `tbody${tbodyIndex}`,
|
|
7034
7034
|
table: table
|
|
7035
7035
|
// dataSource={dataSource}
|
|
@@ -7177,11 +7177,74 @@ const StyledJRTable = styled.div`
|
|
|
7177
7177
|
}
|
|
7178
7178
|
`;
|
|
7179
7179
|
|
|
7180
|
+
var _path$1;
|
|
7181
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
7182
|
+
var SvgX = function SvgX(props) {
|
|
7183
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$2({
|
|
7184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7185
|
+
width: 24,
|
|
7186
|
+
height: 24,
|
|
7187
|
+
fill: "none",
|
|
7188
|
+
stroke: "currentColor",
|
|
7189
|
+
strokeLinecap: "round",
|
|
7190
|
+
strokeLinejoin: "round",
|
|
7191
|
+
strokeWidth: 2
|
|
7192
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/reactExports.createElement("path", {
|
|
7193
|
+
d: "M18 6 6 18M6 6l12 12"
|
|
7194
|
+
})));
|
|
7195
|
+
};
|
|
7196
|
+
|
|
7197
|
+
var _rect;
|
|
7198
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
7199
|
+
var SvgSquare = function SvgSquare(props) {
|
|
7200
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$1({
|
|
7201
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7202
|
+
width: 24,
|
|
7203
|
+
height: 24,
|
|
7204
|
+
fill: "none",
|
|
7205
|
+
stroke: "currentColor",
|
|
7206
|
+
strokeLinecap: "round",
|
|
7207
|
+
strokeLinejoin: "round",
|
|
7208
|
+
strokeWidth: 2
|
|
7209
|
+
}, props), _rect || (_rect = /*#__PURE__*/reactExports.createElement("rect", {
|
|
7210
|
+
width: 18,
|
|
7211
|
+
height: 18,
|
|
7212
|
+
x: 3,
|
|
7213
|
+
y: 3,
|
|
7214
|
+
rx: 2,
|
|
7215
|
+
ry: 2
|
|
7216
|
+
})));
|
|
7217
|
+
};
|
|
7218
|
+
|
|
7219
|
+
var _path;
|
|
7220
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7221
|
+
var SvgMinus = function SvgMinus(props) {
|
|
7222
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends({
|
|
7223
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7224
|
+
width: 24,
|
|
7225
|
+
height: 24,
|
|
7226
|
+
fill: "none",
|
|
7227
|
+
stroke: "currentColor",
|
|
7228
|
+
strokeLinecap: "round",
|
|
7229
|
+
strokeLinejoin: "round",
|
|
7230
|
+
strokeWidth: 2
|
|
7231
|
+
}, props), _path || (_path = /*#__PURE__*/reactExports.createElement("path", {
|
|
7232
|
+
d: "M5 12h14"
|
|
7233
|
+
})));
|
|
7234
|
+
};
|
|
7235
|
+
|
|
7236
|
+
function JRButton({
|
|
7237
|
+
icon,
|
|
7238
|
+
children,
|
|
7239
|
+
...props
|
|
7240
|
+
}) {
|
|
7241
|
+
return /*#__PURE__*/React.createElement("button", props, icon, children);
|
|
7242
|
+
}
|
|
7243
|
+
|
|
7180
7244
|
const StyledTitle = styled.div`
|
|
7181
7245
|
overflow: hidden;
|
|
7182
7246
|
display: flex;
|
|
7183
|
-
|
|
7184
|
-
border:1px solid black;
|
|
7247
|
+
border-radius: var(--jr-window-radius) var(--jr-window-radius) 0 0;
|
|
7185
7248
|
background:rgb(214, 214, 214);
|
|
7186
7249
|
color: black;
|
|
7187
7250
|
&:active:hover{
|
|
@@ -7195,69 +7258,169 @@ const StyledTitle = styled.div`
|
|
|
7195
7258
|
user-select: none;
|
|
7196
7259
|
|
|
7197
7260
|
> .title{
|
|
7198
|
-
|
|
7261
|
+
|
|
7262
|
+
flex: 1;
|
|
7263
|
+
padding:2px 0 2px 8px;
|
|
7264
|
+
text-overflow: ellipsis;
|
|
7265
|
+
overflow: hidden;
|
|
7266
|
+
white-space: nowrap;
|
|
7267
|
+
}
|
|
7268
|
+
> nav{
|
|
7269
|
+
display: flex;
|
|
7270
|
+
align-items: anchor-center;
|
|
7271
|
+
|
|
7272
|
+
|
|
7273
|
+
>button{
|
|
7274
|
+
display:flex;
|
|
7275
|
+
align-items: center;
|
|
7276
|
+
justify-content: center;
|
|
7277
|
+
border: unset;
|
|
7278
|
+
background: unset;
|
|
7279
|
+
cursor: pointer;
|
|
7280
|
+
width:32px;
|
|
7281
|
+
height:32px;
|
|
7282
|
+
xborder:1px solid green;
|
|
7283
|
+
padding: 0;
|
|
7284
|
+
margin: 0;
|
|
7285
|
+
&:hover{
|
|
7286
|
+
background: #bbbbbb;
|
|
7287
|
+
color:white;
|
|
7288
|
+
}
|
|
7289
|
+
>svg{
|
|
7290
|
+
width:14px;
|
|
7291
|
+
height:14px;
|
|
7292
|
+
cursor: pointer;
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7295
|
+
>button.danger:hover{
|
|
7296
|
+
background: red;
|
|
7297
|
+
color:white;
|
|
7298
|
+
}
|
|
7199
7299
|
}
|
|
7200
7300
|
`;
|
|
7201
|
-
class TitleBar extends React.Component {
|
|
7301
|
+
class TitleBar extends React$1.Component {
|
|
7202
7302
|
pos1 = 0;
|
|
7203
7303
|
pos2 = 0;
|
|
7204
7304
|
pos3 = 0;
|
|
7205
7305
|
pos4 = 0;
|
|
7206
7306
|
x = 0;
|
|
7207
7307
|
y = 0;
|
|
7308
|
+
stop = e => {
|
|
7309
|
+
e.preventDefault();
|
|
7310
|
+
if (this.moved) {
|
|
7311
|
+
const {
|
|
7312
|
+
height: titleBarHeight
|
|
7313
|
+
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7314
|
+
const {
|
|
7315
|
+
x,
|
|
7316
|
+
y,
|
|
7317
|
+
width,
|
|
7318
|
+
height
|
|
7319
|
+
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7320
|
+
po('y', y);
|
|
7321
|
+
if (y < 1) {
|
|
7322
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y), left .1s ease-in';
|
|
7323
|
+
this.props.windowRef.current.style.left = `${-this.props.thick}px`;
|
|
7324
|
+
this.props.windowRef.current.style.width = `calc(100vw + ${this.props.thick * 2}px)`; //`${window.innerWidth+(this.props.thick*2)}px`
|
|
7325
|
+
this.props.windowRef.current.style.height = `calc(100vh + ${this.props.thick * 2}px)`; //`${window.innerHeight+(this.props.thick*2)}px`
|
|
7326
|
+
|
|
7327
|
+
this.props.window.orgHeight = height;
|
|
7328
|
+
this.props.window.orgWidth = width;
|
|
7329
|
+
}
|
|
7330
|
+
if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
|
|
7331
|
+
if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
|
|
7332
|
+
if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
|
|
7333
|
+
document.body.style.cursor = 'default';
|
|
7334
|
+
}
|
|
7335
|
+
window.removeEventListener('mousemove', this.move);
|
|
7336
|
+
window.removeEventListener('mouseup', this.stop);
|
|
7337
|
+
};
|
|
7208
7338
|
move = e => {
|
|
7209
7339
|
e.preventDefault();
|
|
7210
|
-
this.
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7340
|
+
this.moved = true;
|
|
7341
|
+
const {
|
|
7342
|
+
clientX,
|
|
7343
|
+
clientY
|
|
7344
|
+
} = e;
|
|
7345
|
+
const y = clientY < 1 ? 0 : clientY;
|
|
7346
|
+
this.pos1 = this.pos3 - clientX;
|
|
7347
|
+
this.pos2 = this.pos4 - y;
|
|
7348
|
+
this.pos3 = clientX;
|
|
7349
|
+
this.pos4 = y;
|
|
7214
7350
|
const w = this.props.windowRef.current;
|
|
7215
7351
|
this.x = w.offsetLeft - this.pos1;
|
|
7216
7352
|
this.y = w.offsetTop - this.pos2;
|
|
7353
|
+
if (this.props.window.orgHeight) {
|
|
7354
|
+
w.style.height = `${this.props.window.orgHeight}px`;
|
|
7355
|
+
this.props.window.orgHeight = null;
|
|
7356
|
+
}
|
|
7357
|
+
if (this.props.window.orgWidth) {
|
|
7358
|
+
if (clientX > this.props.window.orgWidth) {
|
|
7359
|
+
this.x = clientX - this.props.window.orgWidth / 2;
|
|
7360
|
+
}
|
|
7361
|
+
w.style.width = `${this.props.window.orgWidth}px`;
|
|
7362
|
+
this.props.window.orgWidth = null;
|
|
7363
|
+
}
|
|
7364
|
+
this.y = this.y < -this.props.thick ? -this.props.thick : this.y;
|
|
7217
7365
|
w.style.top = this.y + 'px';
|
|
7218
7366
|
w.style.left = this.x + 'px';
|
|
7219
7367
|
};
|
|
7220
|
-
stop = e => {
|
|
7221
|
-
// const w= this.props.windowRef.current
|
|
7222
|
-
// if(this.y<1)this.props.windowRef.current.style.top = '1px'
|
|
7223
|
-
// if(this.y>window.innerHeight)this.props.windowRef.current.style.top = `${window.innerHeight-32}px`
|
|
7224
|
-
// if(this.x<1)this.props.windowRef.current.style.left = '1px'
|
|
7225
|
-
// if(this.x>window.innerWidth)this.props.windowRef.current.style.left = `${window.innerWidth-100}px`
|
|
7226
|
-
document.body.style.cursor = 'default';
|
|
7227
|
-
window.removeEventListener('mousemove', this.move);
|
|
7228
|
-
window.removeEventListener('mouseup', this.stop);
|
|
7229
|
-
};
|
|
7230
7368
|
start(e) {
|
|
7231
7369
|
e.preventDefault();
|
|
7370
|
+
this.moved = false;
|
|
7232
7371
|
this.pos3 = e.clientX;
|
|
7233
7372
|
this.pos4 = e.clientY;
|
|
7373
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
|
|
7234
7374
|
document.body.style.cursor = 'grabbing';
|
|
7235
7375
|
window.addEventListener('mousemove', this.move);
|
|
7236
7376
|
window.addEventListener('mouseup', this.stop);
|
|
7237
7377
|
}
|
|
7238
7378
|
render() {
|
|
7239
|
-
return /*#__PURE__*/React.createElement(StyledTitle, {
|
|
7379
|
+
return /*#__PURE__*/React$1.createElement(StyledTitle, {
|
|
7240
7380
|
ref: this.props.titleBarRef,
|
|
7241
7381
|
draggable: "false",
|
|
7242
7382
|
onMouseDown: e => {
|
|
7243
7383
|
this.start(e);
|
|
7244
7384
|
}
|
|
7245
|
-
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
7385
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
7246
7386
|
tag: "div",
|
|
7247
7387
|
config: this.props.title ?? '',
|
|
7248
7388
|
me: this.props.window,
|
|
7249
7389
|
className: 'title'
|
|
7250
|
-
}), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement(
|
|
7390
|
+
}), /*#__PURE__*/React$1.createElement("nav", null, /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7391
|
+
icon: /*#__PURE__*/React$1.createElement(SvgMinus, null)
|
|
7392
|
+
}), /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7393
|
+
icon: /*#__PURE__*/React$1.createElement(SvgSquare, null)
|
|
7394
|
+
}), this.props.window.props.setOpen ? /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7395
|
+
icon: /*#__PURE__*/React$1.createElement(SvgX, null),
|
|
7396
|
+
className: 'danger',
|
|
7397
|
+
onClick: () => {
|
|
7398
|
+
this.props.window.props.setOpen(false);
|
|
7399
|
+
}
|
|
7400
|
+
}) : null));
|
|
7251
7401
|
}
|
|
7252
7402
|
}
|
|
7253
7403
|
|
|
7404
|
+
const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
|
|
7405
|
+
class Sliders extends React$1.Component {
|
|
7406
|
+
render() {
|
|
7407
|
+
return directions.map((direction, index) => /*#__PURE__*/React$1.createElement(Slider, {
|
|
7408
|
+
direction: direction,
|
|
7409
|
+
thick: this.props.thick,
|
|
7410
|
+
windowRef: this.props.windowRef,
|
|
7411
|
+
window: this.props.window,
|
|
7412
|
+
titleBarRef: this.props.titleBarRef,
|
|
7413
|
+
key: index
|
|
7414
|
+
}));
|
|
7415
|
+
}
|
|
7416
|
+
}
|
|
7254
7417
|
const StyledSlider = styled.div`
|
|
7255
7418
|
Xborder:1px solid ${({
|
|
7256
7419
|
$direction: {
|
|
7257
7420
|
color
|
|
7258
7421
|
}
|
|
7259
7422
|
}) => color};
|
|
7260
|
-
|
|
7423
|
+
Xbackground:${({
|
|
7261
7424
|
$direction: {
|
|
7262
7425
|
color
|
|
7263
7426
|
}
|
|
@@ -7306,13 +7469,13 @@ const StyledSlider = styled.div`
|
|
|
7306
7469
|
user-select: none;
|
|
7307
7470
|
|
|
7308
7471
|
`;
|
|
7309
|
-
class Slider extends React.Component {
|
|
7472
|
+
class Slider extends React$1.Component {
|
|
7310
7473
|
width = '3px';
|
|
7311
7474
|
borderWidth = 'px';
|
|
7312
|
-
borderLong =
|
|
7475
|
+
borderLong = 30;
|
|
7313
7476
|
constructor(props) {
|
|
7314
7477
|
super(props);
|
|
7315
|
-
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
7478
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
7316
7479
|
}
|
|
7317
7480
|
directions = {
|
|
7318
7481
|
n: {
|
|
@@ -7355,12 +7518,24 @@ class Slider extends React.Component {
|
|
|
7355
7518
|
this.resizeW(props);
|
|
7356
7519
|
}
|
|
7357
7520
|
},
|
|
7521
|
+
nw: {
|
|
7522
|
+
top: 0,
|
|
7523
|
+
left: 0,
|
|
7524
|
+
color: 'blue',
|
|
7525
|
+
width: `${this.borderLong}px`,
|
|
7526
|
+
height: `${this.borderLong}px`,
|
|
7527
|
+
cursor: 'nw-resize',
|
|
7528
|
+
resize: props => {
|
|
7529
|
+
this.resizeN(props);
|
|
7530
|
+
this.resizeW(props);
|
|
7531
|
+
}
|
|
7532
|
+
},
|
|
7358
7533
|
nww: {
|
|
7359
7534
|
top: 0,
|
|
7360
7535
|
left: 0,
|
|
7361
7536
|
color: 'blue',
|
|
7362
|
-
width: `${this.props.thick}px`,
|
|
7363
|
-
height: this.
|
|
7537
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7538
|
+
height: `${this.props.thick}px`,
|
|
7364
7539
|
cursor: 'nw-resize',
|
|
7365
7540
|
resize: props => {
|
|
7366
7541
|
this.resizeN(props);
|
|
@@ -7371,8 +7546,8 @@ class Slider extends React.Component {
|
|
|
7371
7546
|
top: 0,
|
|
7372
7547
|
left: 0,
|
|
7373
7548
|
color: 'blue',
|
|
7374
|
-
width: this.
|
|
7375
|
-
height: `${this.props.thick}px`,
|
|
7549
|
+
width: `${this.props.thick}px`,
|
|
7550
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7376
7551
|
cursor: 'nw-resize',
|
|
7377
7552
|
resize: props => {
|
|
7378
7553
|
this.resizeN(props);
|
|
@@ -7383,7 +7558,7 @@ class Slider extends React.Component {
|
|
|
7383
7558
|
top: 0,
|
|
7384
7559
|
right: 0,
|
|
7385
7560
|
color: 'green',
|
|
7386
|
-
width: this.borderLong
|
|
7561
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7387
7562
|
height: `${this.props.thick}px`,
|
|
7388
7563
|
cursor: 'ne-resize',
|
|
7389
7564
|
resize: props => {
|
|
@@ -7396,7 +7571,7 @@ class Slider extends React.Component {
|
|
|
7396
7571
|
right: 0,
|
|
7397
7572
|
color: 'green',
|
|
7398
7573
|
width: `${this.props.thick}px`,
|
|
7399
|
-
height: this.borderLong
|
|
7574
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7400
7575
|
cursor: 'ne-resize',
|
|
7401
7576
|
resize: props => {
|
|
7402
7577
|
this.resizeN(props);
|
|
@@ -7407,7 +7582,7 @@ class Slider extends React.Component {
|
|
|
7407
7582
|
color: 'red',
|
|
7408
7583
|
right: 0,
|
|
7409
7584
|
bottom: 0,
|
|
7410
|
-
width: this.borderLong
|
|
7585
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7411
7586
|
height: `${this.props.thick}px`,
|
|
7412
7587
|
cursor: 'se-resize',
|
|
7413
7588
|
resize: props => {
|
|
@@ -7420,7 +7595,7 @@ class Slider extends React.Component {
|
|
|
7420
7595
|
right: 0,
|
|
7421
7596
|
bottom: 0,
|
|
7422
7597
|
width: `${this.props.thick}px`,
|
|
7423
|
-
height: this.borderLong
|
|
7598
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7424
7599
|
cursor: 'se-resize',
|
|
7425
7600
|
resize: props => {
|
|
7426
7601
|
this.resizeS(props);
|
|
@@ -7431,7 +7606,7 @@ class Slider extends React.Component {
|
|
|
7431
7606
|
color: 'yellow',
|
|
7432
7607
|
bottom: 0,
|
|
7433
7608
|
left: 0,
|
|
7434
|
-
width: this.borderLong
|
|
7609
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7435
7610
|
height: `${this.props.thick}px`,
|
|
7436
7611
|
cursor: 'sw-resize',
|
|
7437
7612
|
resize: props => {
|
|
@@ -7444,7 +7619,7 @@ class Slider extends React.Component {
|
|
|
7444
7619
|
bottom: 0,
|
|
7445
7620
|
left: 0,
|
|
7446
7621
|
width: `${this.props.thick}px`,
|
|
7447
|
-
height: this.borderLong
|
|
7622
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7448
7623
|
cursor: 'sw-resize',
|
|
7449
7624
|
resize: props => {
|
|
7450
7625
|
this.resizeS(props);
|
|
@@ -7452,11 +7627,6 @@ class Slider extends React.Component {
|
|
|
7452
7627
|
}
|
|
7453
7628
|
}
|
|
7454
7629
|
};
|
|
7455
|
-
stop = e => {
|
|
7456
|
-
document.body.style.cursor = 'default';
|
|
7457
|
-
window.removeEventListener('mousemove', this.move);
|
|
7458
|
-
window.removeEventListener('mouseup', this.stop);
|
|
7459
|
-
};
|
|
7460
7630
|
resizeN = ({
|
|
7461
7631
|
window,
|
|
7462
7632
|
cursorY,
|
|
@@ -7501,8 +7671,8 @@ class Slider extends React.Component {
|
|
|
7501
7671
|
startWidth,
|
|
7502
7672
|
titleBarHeight
|
|
7503
7673
|
}) => {
|
|
7504
|
-
let x = cursorX;
|
|
7505
|
-
if (x
|
|
7674
|
+
let x = cursorX - this.props.thick;
|
|
7675
|
+
if (x < 0) x = 0;
|
|
7506
7676
|
let width = startWidth + (startX - x);
|
|
7507
7677
|
if (width < titleBarHeight + this.props.thick * 2) {
|
|
7508
7678
|
width = titleBarHeight + this.props.thick * 2;
|
|
@@ -7511,7 +7681,31 @@ class Slider extends React.Component {
|
|
|
7511
7681
|
window.style.left = `${x}px`;
|
|
7512
7682
|
window.style.width = `${width}px`;
|
|
7513
7683
|
};
|
|
7684
|
+
stop = e => {
|
|
7685
|
+
e.preventDefault();
|
|
7686
|
+
const {
|
|
7687
|
+
height: titleBarHeight
|
|
7688
|
+
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7689
|
+
const {
|
|
7690
|
+
x,
|
|
7691
|
+
y,
|
|
7692
|
+
width,
|
|
7693
|
+
height
|
|
7694
|
+
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7695
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
|
|
7696
|
+
if (y == 0 && this.data.direction.indexOf('n') > -1) {
|
|
7697
|
+
this.props.window.orgHeight = height;
|
|
7698
|
+
this.props.windowRef.current.style.height = `${window.innerHeight}px`;
|
|
7699
|
+
}
|
|
7700
|
+
if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
|
|
7701
|
+
if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
|
|
7702
|
+
if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
|
|
7703
|
+
document.body.style.cursor = 'default';
|
|
7704
|
+
window.removeEventListener('mousemove', this.move);
|
|
7705
|
+
window.removeEventListener('mouseup', this.stop);
|
|
7706
|
+
};
|
|
7514
7707
|
move = e => {
|
|
7708
|
+
e.preventDefault();
|
|
7515
7709
|
const {
|
|
7516
7710
|
clientX,
|
|
7517
7711
|
clientY,
|
|
@@ -7544,47 +7738,60 @@ class Slider extends React.Component {
|
|
|
7544
7738
|
startHeight,
|
|
7545
7739
|
top
|
|
7546
7740
|
});
|
|
7547
|
-
/////////////////////////////////////////////////////////////
|
|
7548
|
-
|
|
7549
|
-
/////////////////////////////////////////////////////////////
|
|
7550
7741
|
};
|
|
7551
|
-
start = () => {
|
|
7742
|
+
start = (e, direction) => {
|
|
7743
|
+
e.preventDefault();
|
|
7552
7744
|
const {
|
|
7553
7745
|
height: titleBarHeight
|
|
7554
7746
|
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7555
|
-
|
|
7747
|
+
let {
|
|
7556
7748
|
x,
|
|
7557
7749
|
y,
|
|
7558
7750
|
width,
|
|
7559
7751
|
height
|
|
7560
7752
|
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7753
|
+
if (direction.indexOf('n') > -1) {
|
|
7754
|
+
if (this.props.window.orgHeight) {
|
|
7755
|
+
height = this.props.window.orgHeight;
|
|
7756
|
+
this.props.window.orgHeight = null;
|
|
7757
|
+
}
|
|
7758
|
+
} else if (direction.indexOf('s') > -1) {
|
|
7759
|
+
this.props.window.orgHeight = null;
|
|
7760
|
+
}
|
|
7561
7761
|
this.data = {
|
|
7562
7762
|
x,
|
|
7563
7763
|
y,
|
|
7564
7764
|
width,
|
|
7565
7765
|
height,
|
|
7566
|
-
titleBarHeight
|
|
7766
|
+
titleBarHeight,
|
|
7767
|
+
direction
|
|
7567
7768
|
};
|
|
7769
|
+
this.props.windowRef.current.style.transition = 'unset';
|
|
7568
7770
|
document.body.style.cursor = this.directions[this.props.direction].cursor;
|
|
7569
7771
|
window.addEventListener('mousemove', this.move);
|
|
7570
7772
|
window.addEventListener('mouseup', this.stop);
|
|
7571
7773
|
};
|
|
7572
7774
|
render() {
|
|
7573
|
-
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
7775
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider, {
|
|
7574
7776
|
$direction: this.directions[this.props.direction],
|
|
7575
7777
|
$padding: this.props.padding,
|
|
7576
|
-
onMouseDown:
|
|
7778
|
+
onMouseDown: e => {
|
|
7779
|
+
this.start(e, this.props.direction);
|
|
7780
|
+
}
|
|
7577
7781
|
});
|
|
7578
7782
|
}
|
|
7579
7783
|
}
|
|
7580
7784
|
|
|
7581
7785
|
const StyledJRWindow = styled.div`
|
|
7786
|
+
--jr-window-radius:3px;
|
|
7582
7787
|
--padding-child:8px;
|
|
7788
|
+
--transition-x-y:height .1s ease-in, width .1s ease-in;
|
|
7583
7789
|
xborder:1px solid gray;
|
|
7584
|
-
position:
|
|
7790
|
+
position: fixed;
|
|
7585
7791
|
padding: ${({
|
|
7586
7792
|
$thick
|
|
7587
7793
|
}) => $thick}px;
|
|
7794
|
+
border-radius: var(--jr-window-radius);
|
|
7588
7795
|
|
|
7589
7796
|
top: ${({
|
|
7590
7797
|
$y
|
|
@@ -7605,6 +7812,7 @@ const StyledJRWindow = styled.div`
|
|
|
7605
7812
|
overflow: hidden;
|
|
7606
7813
|
|
|
7607
7814
|
> main{
|
|
7815
|
+
border-radius: var(--jr-window-radius);
|
|
7608
7816
|
box-shadow: 0px 0px 5px 1px gray;
|
|
7609
7817
|
Xbackground: white;
|
|
7610
7818
|
display: flex;
|
|
@@ -7625,31 +7833,29 @@ class JRWindow extends JRFrame {
|
|
|
7625
7833
|
y = 0;
|
|
7626
7834
|
width = 300;
|
|
7627
7835
|
height = 300;
|
|
7628
|
-
padding =
|
|
7629
|
-
thick =
|
|
7836
|
+
padding = 1;
|
|
7837
|
+
thick = 5;
|
|
7630
7838
|
constructor(props) {
|
|
7631
7839
|
super(props);
|
|
7632
|
-
this.ref = /*#__PURE__*/React.createRef();
|
|
7633
|
-
this.titleBarRef = /*#__PURE__*/React.createRef();
|
|
7634
|
-
if
|
|
7840
|
+
this.ref = /*#__PURE__*/React$1.createRef();
|
|
7841
|
+
this.titleBarRef = /*#__PURE__*/React$1.createRef();
|
|
7842
|
+
// if(this.props.popup===true)this.renderer=this.renderWindow
|
|
7635
7843
|
this.init();
|
|
7636
7844
|
}
|
|
7845
|
+
componentWillUpdate(prevProps, prevState, snapshot) {
|
|
7846
|
+
po('componentWillUpdate-------------------------');
|
|
7847
|
+
if (this.props.popup === true && this.props.open === true && prevProps.open === false) {
|
|
7848
|
+
this.props.onOpen?.bind(this)();
|
|
7849
|
+
}
|
|
7850
|
+
}
|
|
7637
7851
|
init() {
|
|
7638
|
-
this.height = window.innerHeight >= this.props.height ? this.props.height : window.innerHeight;
|
|
7639
|
-
this.width = window.innerWidth >= this.props.width ? this.props.width : window.innerWidth;
|
|
7852
|
+
this.height = window.innerHeight >= (this.props.height ?? this.height) ? this.props.height ?? this.height : window.innerHeight;
|
|
7853
|
+
this.width = window.innerWidth >= (this.props.width ?? this.width) ? this.props.width ?? this.width : window.innerWidth;
|
|
7640
7854
|
this.x = this.props.x ?? (window.innerWidth - (this.width ?? 300)) / 2;
|
|
7641
7855
|
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7642
7856
|
}
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
// return this.props.popup===true
|
|
7646
|
-
// ?<StyledJRWindow>
|
|
7647
|
-
// {super.renderer()}
|
|
7648
|
-
// </StyledJRWindow>
|
|
7649
|
-
// :super.renderer()
|
|
7650
|
-
// }
|
|
7651
|
-
renderWindow() {
|
|
7652
|
-
return /*#__PURE__*/React.createElement(StyledJRWindow, {
|
|
7857
|
+
renderer() {
|
|
7858
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React$1.createElement(StyledJRWindow, {
|
|
7653
7859
|
ref: this.ref,
|
|
7654
7860
|
className: `jr-window ${this.props.className ?? ''}`,
|
|
7655
7861
|
$x: this.x,
|
|
@@ -7661,84 +7867,18 @@ class JRWindow extends JRFrame {
|
|
|
7661
7867
|
// po('onFocus')
|
|
7662
7868
|
// this.ref.current.style.zIndex=100
|
|
7663
7869
|
// }}
|
|
7664
|
-
}, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
|
|
7870
|
+
}, /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(TitleBar, {
|
|
7665
7871
|
titleBarRef: this.titleBarRef,
|
|
7666
7872
|
windowRef: this.ref,
|
|
7667
7873
|
window: this,
|
|
7668
|
-
title: this.props.title
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
thick: this.thick,
|
|
7672
|
-
windowRef: this.ref,
|
|
7673
|
-
window: this,
|
|
7674
|
-
titleBarRef: this.titleBarRef
|
|
7675
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7676
|
-
direction: 'e',
|
|
7677
|
-
thick: this.thick,
|
|
7678
|
-
windowRef: this.ref,
|
|
7679
|
-
window: this,
|
|
7680
|
-
titleBarRef: this.titleBarRef
|
|
7681
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7682
|
-
direction: 's',
|
|
7683
|
-
thick: this.thick,
|
|
7684
|
-
windowRef: this.ref,
|
|
7685
|
-
window: this,
|
|
7686
|
-
titleBarRef: this.titleBarRef
|
|
7687
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7688
|
-
direction: 'w',
|
|
7689
|
-
thick: this.thick,
|
|
7690
|
-
windowRef: this.ref,
|
|
7691
|
-
window: this,
|
|
7692
|
-
titleBarRef: this.titleBarRef
|
|
7693
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7694
|
-
direction: 'nww',
|
|
7695
|
-
thick: this.thick,
|
|
7696
|
-
windowRef: this.ref,
|
|
7697
|
-
window: this,
|
|
7698
|
-
titleBarRef: this.titleBarRef
|
|
7699
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7700
|
-
direction: 'nnw',
|
|
7701
|
-
thick: this.thick,
|
|
7702
|
-
windowRef: this.ref,
|
|
7703
|
-
window: this,
|
|
7704
|
-
titleBarRef: this.titleBarRef
|
|
7705
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7706
|
-
direction: 'nne',
|
|
7707
|
-
thick: this.thick,
|
|
7708
|
-
windowRef: this.ref,
|
|
7709
|
-
window: this,
|
|
7710
|
-
titleBarRef: this.titleBarRef
|
|
7711
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7712
|
-
direction: 'nee',
|
|
7874
|
+
title: this.props.title,
|
|
7875
|
+
thick: this.thick
|
|
7876
|
+
}), /*#__PURE__*/React$1.createElement("main", null, super.renderer())), /*#__PURE__*/React$1.createElement(Sliders, {
|
|
7713
7877
|
thick: this.thick,
|
|
7714
7878
|
windowRef: this.ref,
|
|
7715
7879
|
window: this,
|
|
7716
7880
|
titleBarRef: this.titleBarRef
|
|
7717
|
-
})
|
|
7718
|
-
direction: 'sse',
|
|
7719
|
-
thick: this.thick,
|
|
7720
|
-
windowRef: this.ref,
|
|
7721
|
-
window: this,
|
|
7722
|
-
titleBarRef: this.titleBarRef
|
|
7723
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7724
|
-
direction: 'see',
|
|
7725
|
-
thick: this.thick,
|
|
7726
|
-
windowRef: this.ref,
|
|
7727
|
-
window: this,
|
|
7728
|
-
titleBarRef: this.titleBarRef
|
|
7729
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7730
|
-
direction: 'sww',
|
|
7731
|
-
thick: this.thick,
|
|
7732
|
-
windowRef: this.ref,
|
|
7733
|
-
window: this,
|
|
7734
|
-
titleBarRef: this.titleBarRef
|
|
7735
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7736
|
-
direction: 'ssw',
|
|
7737
|
-
thick: this.thick,
|
|
7738
|
-
windowRef: this.ref,
|
|
7739
|
-
window: this,
|
|
7740
|
-
titleBarRef: this.titleBarRef
|
|
7741
|
-
}));
|
|
7881
|
+
})) : '' : super.renderer();
|
|
7742
7882
|
}
|
|
7743
7883
|
}
|
|
7744
7884
|
|
|
@@ -7764,7 +7904,7 @@ const setMapObject = (map, names, value) => {
|
|
|
7764
7904
|
class JRTable extends JRWindow {
|
|
7765
7905
|
constructor(props) {
|
|
7766
7906
|
super(props);
|
|
7767
|
-
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7907
|
+
this.colGroupRef = /*#__PURE__*/React$1.createRef();
|
|
7768
7908
|
}
|
|
7769
7909
|
UNSAFE_componentWillMount() {
|
|
7770
7910
|
this.setColumns(this.props.columns ?? []);
|
|
@@ -7781,7 +7921,7 @@ class JRTable extends JRWindow {
|
|
|
7781
7921
|
value,
|
|
7782
7922
|
onChange
|
|
7783
7923
|
}) {
|
|
7784
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7924
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7785
7925
|
checked: value,
|
|
7786
7926
|
onChange: e => {
|
|
7787
7927
|
onChange(e.target.checked);
|
|
@@ -7820,7 +7960,7 @@ class JRTable extends JRWindow {
|
|
|
7820
7960
|
value,
|
|
7821
7961
|
onChange
|
|
7822
7962
|
}) {
|
|
7823
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7963
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7824
7964
|
checked: value,
|
|
7825
7965
|
onChange: e => {
|
|
7826
7966
|
onChange(e.target.checked);
|
|
@@ -7830,7 +7970,7 @@ class JRTable extends JRWindow {
|
|
|
7830
7970
|
align: 'center',
|
|
7831
7971
|
name,
|
|
7832
7972
|
label() {
|
|
7833
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
7973
|
+
return /*#__PURE__*/React$1.createElement("button", {
|
|
7834
7974
|
onClick: () => {
|
|
7835
7975
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7836
7976
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -7953,25 +8093,25 @@ class JRTable extends JRWindow {
|
|
|
7953
8093
|
}
|
|
7954
8094
|
//------------------------------------------------------------------------------------
|
|
7955
8095
|
renderMe() {
|
|
7956
|
-
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8096
|
+
return /*#__PURE__*/React$1.createElement(StyledJRTable, {
|
|
7957
8097
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
7958
|
-
}, /*#__PURE__*/React.createElement("table", {
|
|
8098
|
+
}, /*#__PURE__*/React$1.createElement("table", {
|
|
7959
8099
|
className: 'jr-table-table'
|
|
7960
|
-
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8100
|
+
}, /*#__PURE__*/React$1.createElement(TBodies, {
|
|
7961
8101
|
table: this,
|
|
7962
8102
|
leafColumns: this.state.leafColumns,
|
|
7963
8103
|
groupHeader: this.props.groupHeader,
|
|
7964
8104
|
groupFooter: this.props.groupFooter,
|
|
7965
8105
|
dataSource: this.getDataSource(),
|
|
7966
8106
|
onRowClick: this.props.onRowClick
|
|
7967
|
-
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8107
|
+
}), /*#__PURE__*/React$1.createElement(TFoot, {
|
|
7968
8108
|
columns: this.props.footColumns,
|
|
7969
8109
|
table: this
|
|
7970
|
-
}), /*#__PURE__*/React.createElement(THead, {
|
|
8110
|
+
}), /*#__PURE__*/React$1.createElement(THead, {
|
|
7971
8111
|
columns: this.state.columns,
|
|
7972
8112
|
leafColumns: this.state.leafColumns,
|
|
7973
8113
|
table: this
|
|
7974
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8114
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
7975
8115
|
className: 'empty'
|
|
7976
8116
|
}, this.noData() && '無資料'));
|
|
7977
8117
|
}
|
|
@@ -8320,12 +8460,12 @@ class JRFields extends JRWindow {
|
|
|
8320
8460
|
}
|
|
8321
8461
|
if (type) {
|
|
8322
8462
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
8323
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8463
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
8324
8464
|
className: 'jr-column-value',
|
|
8325
8465
|
style: {
|
|
8326
8466
|
gridColumn: label == null ? 'span 2' : null
|
|
8327
8467
|
}
|
|
8328
|
-
}, /*#__PURE__*/React.createElement(type, {
|
|
8468
|
+
}, /*#__PURE__*/React$1.createElement(type, {
|
|
8329
8469
|
value: value,
|
|
8330
8470
|
onChange,
|
|
8331
8471
|
record: parentValue,
|
|
@@ -8336,13 +8476,13 @@ class JRFields extends JRWindow {
|
|
|
8336
8476
|
...column
|
|
8337
8477
|
}));
|
|
8338
8478
|
} else if (column.columns) {
|
|
8339
|
-
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8479
|
+
content = /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
8340
8480
|
cols: column.cols,
|
|
8341
8481
|
className: 'jr-grid',
|
|
8342
8482
|
$gap: gap
|
|
8343
8483
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
8344
8484
|
} else if (name || column.render) {
|
|
8345
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8485
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
8346
8486
|
className: 'jr-column-value',
|
|
8347
8487
|
style: {
|
|
8348
8488
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -8356,7 +8496,7 @@ class JRFields extends JRWindow {
|
|
|
8356
8496
|
}
|
|
8357
8497
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
8358
8498
|
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8359
|
-
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
8499
|
+
return /*#__PURE__*/React$1.createElement(StyledColumn, {
|
|
8360
8500
|
$layout: layout,
|
|
8361
8501
|
$hasLabel: label != null,
|
|
8362
8502
|
key: `f${index}`,
|
|
@@ -8364,18 +8504,18 @@ class JRFields extends JRWindow {
|
|
|
8364
8504
|
className: 'jr-column',
|
|
8365
8505
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
8366
8506
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
8367
|
-
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8507
|
+
}, label != null && /*#__PURE__*/React$1.createElement(StyledColumnLabel, {
|
|
8368
8508
|
style: labelStyle,
|
|
8369
8509
|
$required: required,
|
|
8370
8510
|
className: 'label',
|
|
8371
8511
|
$layout: layout,
|
|
8372
8512
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
8373
|
-
}, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
|
|
8513
|
+
}, label), content, this.props.debugMode && /*#__PURE__*/React$1.createElement(StyledColumnFooter, null, /*#__PURE__*/React$1.createElement("div", {
|
|
8374
8514
|
className: "left"
|
|
8375
|
-
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8515
|
+
}, /*#__PURE__*/React$1.createElement(ColumnMessage, {
|
|
8376
8516
|
value: this.getValidateValue(_parentName.join('.')),
|
|
8377
8517
|
record: this.getValue()
|
|
8378
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8518
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
8379
8519
|
className: "right"
|
|
8380
8520
|
}))
|
|
8381
8521
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -8390,10 +8530,10 @@ class JRFields extends JRWindow {
|
|
|
8390
8530
|
});
|
|
8391
8531
|
}
|
|
8392
8532
|
renderMe() {
|
|
8393
|
-
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8533
|
+
return /*#__PURE__*/React$1.createElement(StyleJRFields, {
|
|
8394
8534
|
className: 'jr-fields',
|
|
8395
8535
|
style: this.props.typeStyle
|
|
8396
|
-
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8536
|
+
}, /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
8397
8537
|
cols: this.props.cols,
|
|
8398
8538
|
style: this.props.gridStyle,
|
|
8399
8539
|
className: 'jr-grid',
|
|
@@ -8455,7 +8595,7 @@ const FreeType = ({
|
|
|
8455
8595
|
const content = config.bind(me)({
|
|
8456
8596
|
setStyle
|
|
8457
8597
|
});
|
|
8458
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
8598
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
8459
8599
|
className: className,
|
|
8460
8600
|
style: style
|
|
8461
8601
|
}, content);
|
|
@@ -8463,33 +8603,33 @@ const FreeType = ({
|
|
|
8463
8603
|
};
|
|
8464
8604
|
class JRTestReact extends JRSubmit {
|
|
8465
8605
|
renderer() {
|
|
8466
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8606
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame, {
|
|
8467
8607
|
style: this.props.style,
|
|
8468
8608
|
className: `${this.props.className} jr-frame`
|
|
8469
|
-
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8609
|
+
}, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8470
8610
|
tag: "div",
|
|
8471
8611
|
config: this.props.start,
|
|
8472
8612
|
me: this,
|
|
8473
8613
|
className: 'start'
|
|
8474
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8614
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8475
8615
|
tag: "header",
|
|
8476
8616
|
config: this.props.top,
|
|
8477
8617
|
me: this
|
|
8478
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8618
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8479
8619
|
tag: "div",
|
|
8480
8620
|
config: this.props.left,
|
|
8481
8621
|
me: this,
|
|
8482
8622
|
className: 'left'
|
|
8483
|
-
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8623
|
+
}), this.renderMe(), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8484
8624
|
tag: "div",
|
|
8485
8625
|
config: this.props.right,
|
|
8486
8626
|
me: this,
|
|
8487
8627
|
className: 'right'
|
|
8488
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8628
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8489
8629
|
tag: "footer",
|
|
8490
8630
|
config: this.props.bottom,
|
|
8491
8631
|
me: this
|
|
8492
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8632
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8493
8633
|
tag: "div",
|
|
8494
8634
|
config: this.props.end,
|
|
8495
8635
|
me: this,
|
|
@@ -8497,7 +8637,7 @@ class JRTestReact extends JRSubmit {
|
|
|
8497
8637
|
}));
|
|
8498
8638
|
}
|
|
8499
8639
|
renderMe() {
|
|
8500
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8640
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
8501
8641
|
style: {
|
|
8502
8642
|
flex: 1
|
|
8503
8643
|
}
|