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.js
CHANGED
|
@@ -2815,7 +2815,7 @@ function requireReact () {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
var reactExports = requireReact();
|
|
2818
|
-
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2818
|
+
var React$1 = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2819
2819
|
|
|
2820
2820
|
function bind(fn, thisArg) {
|
|
2821
2821
|
return function wrap() {
|
|
@@ -6074,7 +6074,7 @@ const whatType = ({
|
|
|
6074
6074
|
// const style=flexType(typeStyle,me,{},{})
|
|
6075
6075
|
// return 'type'
|
|
6076
6076
|
const typeStyle = typeof _typeStyle === 'function' ? _typeStyle?.bind(me)() : _typeStyle;
|
|
6077
|
-
return /*#__PURE__*/React.createElement(type, {
|
|
6077
|
+
return /*#__PURE__*/React$1.createElement(type, {
|
|
6078
6078
|
style: typeStyle
|
|
6079
6079
|
});
|
|
6080
6080
|
} else if (render) {
|
|
@@ -6225,9 +6225,9 @@ const StyledCover = styled__default["default"].div`
|
|
|
6225
6225
|
const Cover = ({
|
|
6226
6226
|
children
|
|
6227
6227
|
}) => {
|
|
6228
|
-
return /*#__PURE__*/React.createElement(StyledCover, null, children);
|
|
6228
|
+
return /*#__PURE__*/React$1.createElement(StyledCover, null, children);
|
|
6229
6229
|
};
|
|
6230
|
-
class JRSubmit extends React.Component {
|
|
6230
|
+
class JRSubmit extends React$1.Component {
|
|
6231
6231
|
#methods = ['get', 'post', 'put', 'patch', 'delete', 'download'];
|
|
6232
6232
|
constructor(props) {
|
|
6233
6233
|
super(props);
|
|
@@ -6484,7 +6484,7 @@ class JRSubmit extends React.Component {
|
|
|
6484
6484
|
return;
|
|
6485
6485
|
}
|
|
6486
6486
|
render() {
|
|
6487
|
-
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
|
|
6487
|
+
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React$1.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
|
|
6488
6488
|
}
|
|
6489
6489
|
}
|
|
6490
6490
|
|
|
@@ -6502,12 +6502,12 @@ const FreeType$1 = ({
|
|
|
6502
6502
|
const content = config.bind(me)({
|
|
6503
6503
|
setStyle
|
|
6504
6504
|
});
|
|
6505
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
6505
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6506
6506
|
className: className,
|
|
6507
6507
|
style: style
|
|
6508
6508
|
}, content);
|
|
6509
6509
|
} else if (typeof config === 'string') {
|
|
6510
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
6510
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6511
6511
|
className: className
|
|
6512
6512
|
}, config);
|
|
6513
6513
|
}
|
|
@@ -6549,33 +6549,33 @@ const StyledJRFrame$1 = styled__default["default"].div`
|
|
|
6549
6549
|
`;
|
|
6550
6550
|
class JRFrame extends JRSubmit {
|
|
6551
6551
|
renderer() {
|
|
6552
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
|
|
6552
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame$1, {
|
|
6553
6553
|
style: this.props.style,
|
|
6554
6554
|
className: `${this.props.className} jr-frame`
|
|
6555
|
-
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6555
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6556
6556
|
tag: "div",
|
|
6557
6557
|
config: this.props.start,
|
|
6558
6558
|
me: this,
|
|
6559
6559
|
className: 'start'
|
|
6560
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6560
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6561
6561
|
tag: "header",
|
|
6562
6562
|
config: this.props.top,
|
|
6563
6563
|
me: this
|
|
6564
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6564
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6565
6565
|
tag: "div",
|
|
6566
6566
|
config: this.props.left,
|
|
6567
6567
|
me: this,
|
|
6568
6568
|
className: 'left'
|
|
6569
|
-
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6569
|
+
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6570
6570
|
tag: "div",
|
|
6571
6571
|
config: this.props.right,
|
|
6572
6572
|
me: this,
|
|
6573
6573
|
className: 'right'
|
|
6574
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6574
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6575
6575
|
tag: "footer",
|
|
6576
6576
|
config: this.props.bottom,
|
|
6577
6577
|
me: this
|
|
6578
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6578
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6579
6579
|
tag: "div",
|
|
6580
6580
|
config: this.props.end,
|
|
6581
6581
|
me: this,
|
|
@@ -6602,10 +6602,10 @@ const StyledSlider$1 = styled__default["default"].div`
|
|
|
6602
6602
|
border-right:1px dashed gray;
|
|
6603
6603
|
}
|
|
6604
6604
|
`;
|
|
6605
|
-
class Slider$1 extends React.Component {
|
|
6605
|
+
class Slider$1 extends React$1.Component {
|
|
6606
6606
|
constructor() {
|
|
6607
6607
|
super();
|
|
6608
|
-
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
6608
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
6609
6609
|
}
|
|
6610
6610
|
stop = e => {
|
|
6611
6611
|
this.sliderRef.current.classList.remove('resizing');
|
|
@@ -6654,7 +6654,7 @@ class Slider$1 extends React.Component {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
render() {
|
|
6656
6656
|
const column = this.props.column;
|
|
6657
|
-
return /*#__PURE__*/React.createElement(StyledSlider$1, {
|
|
6657
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider$1, {
|
|
6658
6658
|
ref: this.sliderRef,
|
|
6659
6659
|
onMouseDown: e => {
|
|
6660
6660
|
this.start(this.props.thRef, column);
|
|
@@ -6667,7 +6667,7 @@ const Colgroup = ({
|
|
|
6667
6667
|
leafColumns,
|
|
6668
6668
|
colGroupRef
|
|
6669
6669
|
}) => {
|
|
6670
|
-
return /*#__PURE__*/React.createElement("colgroup", {
|
|
6670
|
+
return /*#__PURE__*/React$1.createElement("colgroup", {
|
|
6671
6671
|
ref: colGroupRef
|
|
6672
6672
|
}, leafColumns?.map((_column, index) => {
|
|
6673
6673
|
const {
|
|
@@ -6677,7 +6677,7 @@ const Colgroup = ({
|
|
|
6677
6677
|
const style = {
|
|
6678
6678
|
width
|
|
6679
6679
|
};
|
|
6680
|
-
return /*#__PURE__*/React.createElement("col", {
|
|
6680
|
+
return /*#__PURE__*/React$1.createElement("col", {
|
|
6681
6681
|
style: style,
|
|
6682
6682
|
key: index
|
|
6683
6683
|
});
|
|
@@ -6690,13 +6690,13 @@ const Ths$1 = ({
|
|
|
6690
6690
|
table
|
|
6691
6691
|
}) => {
|
|
6692
6692
|
return rowColumn?.map((column, colIndex) => {
|
|
6693
|
-
const thRef = /*#__PURE__*/React.createRef();
|
|
6694
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6693
|
+
const thRef = /*#__PURE__*/React$1.createRef();
|
|
6694
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6695
6695
|
key: colIndex,
|
|
6696
6696
|
ref: thRef,
|
|
6697
6697
|
colSpan: column.colSpan,
|
|
6698
6698
|
rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
|
|
6699
|
-
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider$1, {
|
|
6699
|
+
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React$1.createElement(Slider$1, {
|
|
6700
6700
|
table: table,
|
|
6701
6701
|
thRef: thRef,
|
|
6702
6702
|
column: column
|
|
@@ -6710,10 +6710,10 @@ const HeadTrs = ({
|
|
|
6710
6710
|
}) => {
|
|
6711
6711
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6712
6712
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6713
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6713
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6714
6714
|
className: trClassName,
|
|
6715
6715
|
key: rowIndex
|
|
6716
|
-
}, /*#__PURE__*/React.createElement(Ths$1, {
|
|
6716
|
+
}, /*#__PURE__*/React$1.createElement(Ths$1, {
|
|
6717
6717
|
deep: columns.length - 1,
|
|
6718
6718
|
rowColumn: rowColumn,
|
|
6719
6719
|
rowIndex: rowIndex,
|
|
@@ -6726,10 +6726,10 @@ const THead = ({
|
|
|
6726
6726
|
leafColumns,
|
|
6727
6727
|
table
|
|
6728
6728
|
}) => {
|
|
6729
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
|
|
6729
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement(HeadTrs, {
|
|
6730
6730
|
columns: columns,
|
|
6731
6731
|
table: table
|
|
6732
|
-
})), /*#__PURE__*/React.createElement(Colgroup, {
|
|
6732
|
+
})), /*#__PURE__*/React$1.createElement(Colgroup, {
|
|
6733
6733
|
leafColumns: leafColumns,
|
|
6734
6734
|
colGroupRef: table.colGroupRef
|
|
6735
6735
|
}));
|
|
@@ -6754,7 +6754,7 @@ const FootThs = ({
|
|
|
6754
6754
|
// }
|
|
6755
6755
|
let style = flexType(column.style, table, {}, {});
|
|
6756
6756
|
const content = whatType(column, table, column.label);
|
|
6757
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6757
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6758
6758
|
style: style,
|
|
6759
6759
|
colSpan: column.colSpan,
|
|
6760
6760
|
rowSpan: column.rowSpan
|
|
@@ -6766,24 +6766,24 @@ const TFoot = ({
|
|
|
6766
6766
|
columns
|
|
6767
6767
|
}) => {
|
|
6768
6768
|
const trs = columns?.map((rowColumn, rowIndex) => {
|
|
6769
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6769
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6770
6770
|
key: rowIndex
|
|
6771
|
-
}, /*#__PURE__*/React.createElement(FootThs, {
|
|
6771
|
+
}, /*#__PURE__*/React$1.createElement(FootThs, {
|
|
6772
6772
|
columns: rowColumn,
|
|
6773
6773
|
table: table
|
|
6774
6774
|
}));
|
|
6775
6775
|
});
|
|
6776
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
|
|
6776
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tfoot", null, trs));
|
|
6777
6777
|
};
|
|
6778
6778
|
|
|
6779
|
-
function _extends() {
|
|
6780
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
6779
|
+
function _extends$3() {
|
|
6780
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function (n) {
|
|
6781
6781
|
for (var e = 1; e < arguments.length; e++) {
|
|
6782
6782
|
var t = arguments[e];
|
|
6783
6783
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6784
6784
|
}
|
|
6785
6785
|
return n;
|
|
6786
|
-
}, _extends.apply(null, arguments);
|
|
6786
|
+
}, _extends$3.apply(null, arguments);
|
|
6787
6787
|
}
|
|
6788
6788
|
|
|
6789
6789
|
styled__default["default"].tbody`
|
|
@@ -6824,7 +6824,7 @@ const Ths = ({
|
|
|
6824
6824
|
content = column.label;
|
|
6825
6825
|
}
|
|
6826
6826
|
// style.textAlign=align
|
|
6827
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6827
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6828
6828
|
key: colIndex,
|
|
6829
6829
|
style: {
|
|
6830
6830
|
textAlign: align,
|
|
@@ -6844,10 +6844,10 @@ const GroupColumns = ({
|
|
|
6844
6844
|
}) => {
|
|
6845
6845
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6846
6846
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6847
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6847
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6848
6848
|
className: trClassName,
|
|
6849
6849
|
key: rowIndex
|
|
6850
|
-
}, /*#__PURE__*/React.createElement(Ths, {
|
|
6850
|
+
}, /*#__PURE__*/React$1.createElement(Ths, {
|
|
6851
6851
|
table: table,
|
|
6852
6852
|
groupData: groupData,
|
|
6853
6853
|
groupIndex: tbodyIndex,
|
|
@@ -6867,7 +6867,7 @@ styled__default["default"].tr`
|
|
|
6867
6867
|
}
|
|
6868
6868
|
`;
|
|
6869
6869
|
const GroupHeader = props => {
|
|
6870
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6870
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6871
6871
|
trClassName: 'jr-group-header'
|
|
6872
6872
|
}, props));
|
|
6873
6873
|
};
|
|
@@ -6878,7 +6878,7 @@ styled__default["default"].tr`
|
|
|
6878
6878
|
}
|
|
6879
6879
|
`;
|
|
6880
6880
|
const GroupFooter = props => {
|
|
6881
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6881
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6882
6882
|
trClassName: 'jr-group-footer'
|
|
6883
6883
|
}, props));
|
|
6884
6884
|
};
|
|
@@ -6925,7 +6925,7 @@ const Td = ({
|
|
|
6925
6925
|
const typeStyle = flexType(_typeStyle, table, {
|
|
6926
6926
|
record
|
|
6927
6927
|
}, {});
|
|
6928
|
-
content = /*#__PURE__*/React.createElement(type, {
|
|
6928
|
+
content = /*#__PURE__*/React$1.createElement(type, {
|
|
6929
6929
|
onChange: _onChange ? e => {
|
|
6930
6930
|
_onChange?.bind(table)(e, {
|
|
6931
6931
|
value,
|
|
@@ -6953,7 +6953,7 @@ const Td = ({
|
|
|
6953
6953
|
} else {
|
|
6954
6954
|
content = value;
|
|
6955
6955
|
}
|
|
6956
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
6956
|
+
return /*#__PURE__*/React$1.createElement("td", {
|
|
6957
6957
|
colSpan: style.colSpan,
|
|
6958
6958
|
rowSpan: style.rowSpan,
|
|
6959
6959
|
style: {
|
|
@@ -6972,7 +6972,7 @@ const Tds = ({
|
|
|
6972
6972
|
trIndex
|
|
6973
6973
|
}) => {
|
|
6974
6974
|
return leafColumns?.map((column, tdIndex) => {
|
|
6975
|
-
return /*#__PURE__*/React.createElement(Td, {
|
|
6975
|
+
return /*#__PURE__*/React$1.createElement(Td, {
|
|
6976
6976
|
column: column,
|
|
6977
6977
|
key: tdIndex,
|
|
6978
6978
|
record: record,
|
|
@@ -6997,14 +6997,14 @@ const TBody = ({
|
|
|
6997
6997
|
table,
|
|
6998
6998
|
tbodyIndex
|
|
6999
6999
|
};
|
|
7000
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
|
|
7000
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tbody", {
|
|
7001
7001
|
key: `tbody${tbodyIndex}`
|
|
7002
|
-
}, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
|
|
7002
|
+
}, groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupHeader, _extends$3({
|
|
7003
7003
|
groupData: groupData,
|
|
7004
7004
|
columns: groupHeader
|
|
7005
7005
|
}, neededProps)), groupData?.map?.((record, trIndex) => {
|
|
7006
7006
|
const onRowClick = table.props.onRowClick?.bind(table);
|
|
7007
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
7007
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
7008
7008
|
key: trIndex,
|
|
7009
7009
|
onClick: () => {
|
|
7010
7010
|
onRowClick?.({
|
|
@@ -7013,13 +7013,13 @@ const TBody = ({
|
|
|
7013
7013
|
groupIndex: tbodyIndex
|
|
7014
7014
|
});
|
|
7015
7015
|
}
|
|
7016
|
-
}, /*#__PURE__*/React.createElement(Tds, _extends({
|
|
7016
|
+
}, /*#__PURE__*/React$1.createElement(Tds, _extends$3({
|
|
7017
7017
|
record: record,
|
|
7018
7018
|
trIndex: trIndex
|
|
7019
7019
|
}, neededProps, {
|
|
7020
7020
|
leafColumns: leafColumns
|
|
7021
7021
|
})));
|
|
7022
|
-
}), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
|
|
7022
|
+
}), groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupFooter, _extends$3({
|
|
7023
7023
|
groupData: groupData,
|
|
7024
7024
|
columns: groupFooter
|
|
7025
7025
|
}, neededProps))));
|
|
@@ -7037,7 +7037,7 @@ const TBodies = ({
|
|
|
7037
7037
|
|
|
7038
7038
|
// po('dataSource',dataSource)
|
|
7039
7039
|
return dataSource?.map((groupData, tbodyIndex, c) => {
|
|
7040
|
-
return /*#__PURE__*/React.createElement(TBody, {
|
|
7040
|
+
return /*#__PURE__*/React$1.createElement(TBody, {
|
|
7041
7041
|
key: `tbody${tbodyIndex}`,
|
|
7042
7042
|
table: table
|
|
7043
7043
|
// dataSource={dataSource}
|
|
@@ -7185,11 +7185,74 @@ const StyledJRTable = styled__default["default"].div`
|
|
|
7185
7185
|
}
|
|
7186
7186
|
`;
|
|
7187
7187
|
|
|
7188
|
+
var _path$1;
|
|
7189
|
+
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); }
|
|
7190
|
+
var SvgX = function SvgX(props) {
|
|
7191
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$2({
|
|
7192
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7193
|
+
width: 24,
|
|
7194
|
+
height: 24,
|
|
7195
|
+
fill: "none",
|
|
7196
|
+
stroke: "currentColor",
|
|
7197
|
+
strokeLinecap: "round",
|
|
7198
|
+
strokeLinejoin: "round",
|
|
7199
|
+
strokeWidth: 2
|
|
7200
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/reactExports.createElement("path", {
|
|
7201
|
+
d: "M18 6 6 18M6 6l12 12"
|
|
7202
|
+
})));
|
|
7203
|
+
};
|
|
7204
|
+
|
|
7205
|
+
var _rect;
|
|
7206
|
+
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); }
|
|
7207
|
+
var SvgSquare = function SvgSquare(props) {
|
|
7208
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$1({
|
|
7209
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7210
|
+
width: 24,
|
|
7211
|
+
height: 24,
|
|
7212
|
+
fill: "none",
|
|
7213
|
+
stroke: "currentColor",
|
|
7214
|
+
strokeLinecap: "round",
|
|
7215
|
+
strokeLinejoin: "round",
|
|
7216
|
+
strokeWidth: 2
|
|
7217
|
+
}, props), _rect || (_rect = /*#__PURE__*/reactExports.createElement("rect", {
|
|
7218
|
+
width: 18,
|
|
7219
|
+
height: 18,
|
|
7220
|
+
x: 3,
|
|
7221
|
+
y: 3,
|
|
7222
|
+
rx: 2,
|
|
7223
|
+
ry: 2
|
|
7224
|
+
})));
|
|
7225
|
+
};
|
|
7226
|
+
|
|
7227
|
+
var _path;
|
|
7228
|
+
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); }
|
|
7229
|
+
var SvgMinus = function SvgMinus(props) {
|
|
7230
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends({
|
|
7231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7232
|
+
width: 24,
|
|
7233
|
+
height: 24,
|
|
7234
|
+
fill: "none",
|
|
7235
|
+
stroke: "currentColor",
|
|
7236
|
+
strokeLinecap: "round",
|
|
7237
|
+
strokeLinejoin: "round",
|
|
7238
|
+
strokeWidth: 2
|
|
7239
|
+
}, props), _path || (_path = /*#__PURE__*/reactExports.createElement("path", {
|
|
7240
|
+
d: "M5 12h14"
|
|
7241
|
+
})));
|
|
7242
|
+
};
|
|
7243
|
+
|
|
7244
|
+
function JRButton({
|
|
7245
|
+
icon,
|
|
7246
|
+
children,
|
|
7247
|
+
...props
|
|
7248
|
+
}) {
|
|
7249
|
+
return /*#__PURE__*/React.createElement("button", props, icon, children);
|
|
7250
|
+
}
|
|
7251
|
+
|
|
7188
7252
|
const StyledTitle = styled__default["default"].div`
|
|
7189
7253
|
overflow: hidden;
|
|
7190
7254
|
display: flex;
|
|
7191
|
-
|
|
7192
|
-
border:1px solid black;
|
|
7255
|
+
border-radius: var(--jr-window-radius) var(--jr-window-radius) 0 0;
|
|
7193
7256
|
background:rgb(214, 214, 214);
|
|
7194
7257
|
color: black;
|
|
7195
7258
|
&:active:hover{
|
|
@@ -7203,69 +7266,169 @@ const StyledTitle = styled__default["default"].div`
|
|
|
7203
7266
|
user-select: none;
|
|
7204
7267
|
|
|
7205
7268
|
> .title{
|
|
7206
|
-
|
|
7269
|
+
|
|
7270
|
+
flex: 1;
|
|
7271
|
+
padding:2px 0 2px 8px;
|
|
7272
|
+
text-overflow: ellipsis;
|
|
7273
|
+
overflow: hidden;
|
|
7274
|
+
white-space: nowrap;
|
|
7275
|
+
}
|
|
7276
|
+
> nav{
|
|
7277
|
+
display: flex;
|
|
7278
|
+
align-items: anchor-center;
|
|
7279
|
+
|
|
7280
|
+
|
|
7281
|
+
>button{
|
|
7282
|
+
display:flex;
|
|
7283
|
+
align-items: center;
|
|
7284
|
+
justify-content: center;
|
|
7285
|
+
border: unset;
|
|
7286
|
+
background: unset;
|
|
7287
|
+
cursor: pointer;
|
|
7288
|
+
width:32px;
|
|
7289
|
+
height:32px;
|
|
7290
|
+
xborder:1px solid green;
|
|
7291
|
+
padding: 0;
|
|
7292
|
+
margin: 0;
|
|
7293
|
+
&:hover{
|
|
7294
|
+
background: #bbbbbb;
|
|
7295
|
+
color:white;
|
|
7296
|
+
}
|
|
7297
|
+
>svg{
|
|
7298
|
+
width:14px;
|
|
7299
|
+
height:14px;
|
|
7300
|
+
cursor: pointer;
|
|
7301
|
+
}
|
|
7302
|
+
}
|
|
7303
|
+
>button.danger:hover{
|
|
7304
|
+
background: red;
|
|
7305
|
+
color:white;
|
|
7306
|
+
}
|
|
7207
7307
|
}
|
|
7208
7308
|
`;
|
|
7209
|
-
class TitleBar extends React.Component {
|
|
7309
|
+
class TitleBar extends React$1.Component {
|
|
7210
7310
|
pos1 = 0;
|
|
7211
7311
|
pos2 = 0;
|
|
7212
7312
|
pos3 = 0;
|
|
7213
7313
|
pos4 = 0;
|
|
7214
7314
|
x = 0;
|
|
7215
7315
|
y = 0;
|
|
7316
|
+
stop = e => {
|
|
7317
|
+
e.preventDefault();
|
|
7318
|
+
if (this.moved) {
|
|
7319
|
+
const {
|
|
7320
|
+
height: titleBarHeight
|
|
7321
|
+
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7322
|
+
const {
|
|
7323
|
+
x,
|
|
7324
|
+
y,
|
|
7325
|
+
width,
|
|
7326
|
+
height
|
|
7327
|
+
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7328
|
+
po('y', y);
|
|
7329
|
+
if (y < 1) {
|
|
7330
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y), left .1s ease-in';
|
|
7331
|
+
this.props.windowRef.current.style.left = `${-this.props.thick}px`;
|
|
7332
|
+
this.props.windowRef.current.style.width = `calc(100vw + ${this.props.thick * 2}px)`; //`${window.innerWidth+(this.props.thick*2)}px`
|
|
7333
|
+
this.props.windowRef.current.style.height = `calc(100vh + ${this.props.thick * 2}px)`; //`${window.innerHeight+(this.props.thick*2)}px`
|
|
7334
|
+
|
|
7335
|
+
this.props.window.orgHeight = height;
|
|
7336
|
+
this.props.window.orgWidth = width;
|
|
7337
|
+
}
|
|
7338
|
+
if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
|
|
7339
|
+
if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
|
|
7340
|
+
if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
|
|
7341
|
+
document.body.style.cursor = 'default';
|
|
7342
|
+
}
|
|
7343
|
+
window.removeEventListener('mousemove', this.move);
|
|
7344
|
+
window.removeEventListener('mouseup', this.stop);
|
|
7345
|
+
};
|
|
7216
7346
|
move = e => {
|
|
7217
7347
|
e.preventDefault();
|
|
7218
|
-
this.
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7348
|
+
this.moved = true;
|
|
7349
|
+
const {
|
|
7350
|
+
clientX,
|
|
7351
|
+
clientY
|
|
7352
|
+
} = e;
|
|
7353
|
+
const y = clientY < 1 ? 0 : clientY;
|
|
7354
|
+
this.pos1 = this.pos3 - clientX;
|
|
7355
|
+
this.pos2 = this.pos4 - y;
|
|
7356
|
+
this.pos3 = clientX;
|
|
7357
|
+
this.pos4 = y;
|
|
7222
7358
|
const w = this.props.windowRef.current;
|
|
7223
7359
|
this.x = w.offsetLeft - this.pos1;
|
|
7224
7360
|
this.y = w.offsetTop - this.pos2;
|
|
7361
|
+
if (this.props.window.orgHeight) {
|
|
7362
|
+
w.style.height = `${this.props.window.orgHeight}px`;
|
|
7363
|
+
this.props.window.orgHeight = null;
|
|
7364
|
+
}
|
|
7365
|
+
if (this.props.window.orgWidth) {
|
|
7366
|
+
if (clientX > this.props.window.orgWidth) {
|
|
7367
|
+
this.x = clientX - this.props.window.orgWidth / 2;
|
|
7368
|
+
}
|
|
7369
|
+
w.style.width = `${this.props.window.orgWidth}px`;
|
|
7370
|
+
this.props.window.orgWidth = null;
|
|
7371
|
+
}
|
|
7372
|
+
this.y = this.y < -this.props.thick ? -this.props.thick : this.y;
|
|
7225
7373
|
w.style.top = this.y + 'px';
|
|
7226
7374
|
w.style.left = this.x + 'px';
|
|
7227
7375
|
};
|
|
7228
|
-
stop = e => {
|
|
7229
|
-
// const w= this.props.windowRef.current
|
|
7230
|
-
// if(this.y<1)this.props.windowRef.current.style.top = '1px'
|
|
7231
|
-
// if(this.y>window.innerHeight)this.props.windowRef.current.style.top = `${window.innerHeight-32}px`
|
|
7232
|
-
// if(this.x<1)this.props.windowRef.current.style.left = '1px'
|
|
7233
|
-
// if(this.x>window.innerWidth)this.props.windowRef.current.style.left = `${window.innerWidth-100}px`
|
|
7234
|
-
document.body.style.cursor = 'default';
|
|
7235
|
-
window.removeEventListener('mousemove', this.move);
|
|
7236
|
-
window.removeEventListener('mouseup', this.stop);
|
|
7237
|
-
};
|
|
7238
7376
|
start(e) {
|
|
7239
7377
|
e.preventDefault();
|
|
7378
|
+
this.moved = false;
|
|
7240
7379
|
this.pos3 = e.clientX;
|
|
7241
7380
|
this.pos4 = e.clientY;
|
|
7381
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
|
|
7242
7382
|
document.body.style.cursor = 'grabbing';
|
|
7243
7383
|
window.addEventListener('mousemove', this.move);
|
|
7244
7384
|
window.addEventListener('mouseup', this.stop);
|
|
7245
7385
|
}
|
|
7246
7386
|
render() {
|
|
7247
|
-
return /*#__PURE__*/React.createElement(StyledTitle, {
|
|
7387
|
+
return /*#__PURE__*/React$1.createElement(StyledTitle, {
|
|
7248
7388
|
ref: this.props.titleBarRef,
|
|
7249
7389
|
draggable: "false",
|
|
7250
7390
|
onMouseDown: e => {
|
|
7251
7391
|
this.start(e);
|
|
7252
7392
|
}
|
|
7253
|
-
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
7393
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
7254
7394
|
tag: "div",
|
|
7255
7395
|
config: this.props.title ?? '',
|
|
7256
7396
|
me: this.props.window,
|
|
7257
7397
|
className: 'title'
|
|
7258
|
-
}), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement(
|
|
7398
|
+
}), /*#__PURE__*/React$1.createElement("nav", null, /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7399
|
+
icon: /*#__PURE__*/React$1.createElement(SvgMinus, null)
|
|
7400
|
+
}), /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7401
|
+
icon: /*#__PURE__*/React$1.createElement(SvgSquare, null)
|
|
7402
|
+
}), this.props.window.props.setOpen ? /*#__PURE__*/React$1.createElement(JRButton, {
|
|
7403
|
+
icon: /*#__PURE__*/React$1.createElement(SvgX, null),
|
|
7404
|
+
className: 'danger',
|
|
7405
|
+
onClick: () => {
|
|
7406
|
+
this.props.window.props.setOpen(false);
|
|
7407
|
+
}
|
|
7408
|
+
}) : null));
|
|
7259
7409
|
}
|
|
7260
7410
|
}
|
|
7261
7411
|
|
|
7412
|
+
const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
|
|
7413
|
+
class Sliders extends React$1.Component {
|
|
7414
|
+
render() {
|
|
7415
|
+
return directions.map((direction, index) => /*#__PURE__*/React$1.createElement(Slider, {
|
|
7416
|
+
direction: direction,
|
|
7417
|
+
thick: this.props.thick,
|
|
7418
|
+
windowRef: this.props.windowRef,
|
|
7419
|
+
window: this.props.window,
|
|
7420
|
+
titleBarRef: this.props.titleBarRef,
|
|
7421
|
+
key: index
|
|
7422
|
+
}));
|
|
7423
|
+
}
|
|
7424
|
+
}
|
|
7262
7425
|
const StyledSlider = styled__default["default"].div`
|
|
7263
7426
|
Xborder:1px solid ${({
|
|
7264
7427
|
$direction: {
|
|
7265
7428
|
color
|
|
7266
7429
|
}
|
|
7267
7430
|
}) => color};
|
|
7268
|
-
|
|
7431
|
+
Xbackground:${({
|
|
7269
7432
|
$direction: {
|
|
7270
7433
|
color
|
|
7271
7434
|
}
|
|
@@ -7314,13 +7477,13 @@ const StyledSlider = styled__default["default"].div`
|
|
|
7314
7477
|
user-select: none;
|
|
7315
7478
|
|
|
7316
7479
|
`;
|
|
7317
|
-
class Slider extends React.Component {
|
|
7480
|
+
class Slider extends React$1.Component {
|
|
7318
7481
|
width = '3px';
|
|
7319
7482
|
borderWidth = 'px';
|
|
7320
|
-
borderLong =
|
|
7483
|
+
borderLong = 30;
|
|
7321
7484
|
constructor(props) {
|
|
7322
7485
|
super(props);
|
|
7323
|
-
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
7486
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
7324
7487
|
}
|
|
7325
7488
|
directions = {
|
|
7326
7489
|
n: {
|
|
@@ -7363,12 +7526,24 @@ class Slider extends React.Component {
|
|
|
7363
7526
|
this.resizeW(props);
|
|
7364
7527
|
}
|
|
7365
7528
|
},
|
|
7529
|
+
nw: {
|
|
7530
|
+
top: 0,
|
|
7531
|
+
left: 0,
|
|
7532
|
+
color: 'blue',
|
|
7533
|
+
width: `${this.borderLong}px`,
|
|
7534
|
+
height: `${this.borderLong}px`,
|
|
7535
|
+
cursor: 'nw-resize',
|
|
7536
|
+
resize: props => {
|
|
7537
|
+
this.resizeN(props);
|
|
7538
|
+
this.resizeW(props);
|
|
7539
|
+
}
|
|
7540
|
+
},
|
|
7366
7541
|
nww: {
|
|
7367
7542
|
top: 0,
|
|
7368
7543
|
left: 0,
|
|
7369
7544
|
color: 'blue',
|
|
7370
|
-
width: `${this.props.thick}px`,
|
|
7371
|
-
height: this.
|
|
7545
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7546
|
+
height: `${this.props.thick}px`,
|
|
7372
7547
|
cursor: 'nw-resize',
|
|
7373
7548
|
resize: props => {
|
|
7374
7549
|
this.resizeN(props);
|
|
@@ -7379,8 +7554,8 @@ class Slider extends React.Component {
|
|
|
7379
7554
|
top: 0,
|
|
7380
7555
|
left: 0,
|
|
7381
7556
|
color: 'blue',
|
|
7382
|
-
width: this.
|
|
7383
|
-
height: `${this.props.thick}px`,
|
|
7557
|
+
width: `${this.props.thick}px`,
|
|
7558
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7384
7559
|
cursor: 'nw-resize',
|
|
7385
7560
|
resize: props => {
|
|
7386
7561
|
this.resizeN(props);
|
|
@@ -7391,7 +7566,7 @@ class Slider extends React.Component {
|
|
|
7391
7566
|
top: 0,
|
|
7392
7567
|
right: 0,
|
|
7393
7568
|
color: 'green',
|
|
7394
|
-
width: this.borderLong
|
|
7569
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7395
7570
|
height: `${this.props.thick}px`,
|
|
7396
7571
|
cursor: 'ne-resize',
|
|
7397
7572
|
resize: props => {
|
|
@@ -7404,7 +7579,7 @@ class Slider extends React.Component {
|
|
|
7404
7579
|
right: 0,
|
|
7405
7580
|
color: 'green',
|
|
7406
7581
|
width: `${this.props.thick}px`,
|
|
7407
|
-
height: this.borderLong
|
|
7582
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7408
7583
|
cursor: 'ne-resize',
|
|
7409
7584
|
resize: props => {
|
|
7410
7585
|
this.resizeN(props);
|
|
@@ -7415,7 +7590,7 @@ class Slider extends React.Component {
|
|
|
7415
7590
|
color: 'red',
|
|
7416
7591
|
right: 0,
|
|
7417
7592
|
bottom: 0,
|
|
7418
|
-
width: this.borderLong
|
|
7593
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7419
7594
|
height: `${this.props.thick}px`,
|
|
7420
7595
|
cursor: 'se-resize',
|
|
7421
7596
|
resize: props => {
|
|
@@ -7428,7 +7603,7 @@ class Slider extends React.Component {
|
|
|
7428
7603
|
right: 0,
|
|
7429
7604
|
bottom: 0,
|
|
7430
7605
|
width: `${this.props.thick}px`,
|
|
7431
|
-
height: this.borderLong
|
|
7606
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7432
7607
|
cursor: 'se-resize',
|
|
7433
7608
|
resize: props => {
|
|
7434
7609
|
this.resizeS(props);
|
|
@@ -7439,7 +7614,7 @@ class Slider extends React.Component {
|
|
|
7439
7614
|
color: 'yellow',
|
|
7440
7615
|
bottom: 0,
|
|
7441
7616
|
left: 0,
|
|
7442
|
-
width: this.borderLong
|
|
7617
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7443
7618
|
height: `${this.props.thick}px`,
|
|
7444
7619
|
cursor: 'sw-resize',
|
|
7445
7620
|
resize: props => {
|
|
@@ -7452,7 +7627,7 @@ class Slider extends React.Component {
|
|
|
7452
7627
|
bottom: 0,
|
|
7453
7628
|
left: 0,
|
|
7454
7629
|
width: `${this.props.thick}px`,
|
|
7455
|
-
height: this.borderLong
|
|
7630
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7456
7631
|
cursor: 'sw-resize',
|
|
7457
7632
|
resize: props => {
|
|
7458
7633
|
this.resizeS(props);
|
|
@@ -7460,11 +7635,6 @@ class Slider extends React.Component {
|
|
|
7460
7635
|
}
|
|
7461
7636
|
}
|
|
7462
7637
|
};
|
|
7463
|
-
stop = e => {
|
|
7464
|
-
document.body.style.cursor = 'default';
|
|
7465
|
-
window.removeEventListener('mousemove', this.move);
|
|
7466
|
-
window.removeEventListener('mouseup', this.stop);
|
|
7467
|
-
};
|
|
7468
7638
|
resizeN = ({
|
|
7469
7639
|
window,
|
|
7470
7640
|
cursorY,
|
|
@@ -7509,8 +7679,8 @@ class Slider extends React.Component {
|
|
|
7509
7679
|
startWidth,
|
|
7510
7680
|
titleBarHeight
|
|
7511
7681
|
}) => {
|
|
7512
|
-
let x = cursorX;
|
|
7513
|
-
if (x
|
|
7682
|
+
let x = cursorX - this.props.thick;
|
|
7683
|
+
if (x < 0) x = 0;
|
|
7514
7684
|
let width = startWidth + (startX - x);
|
|
7515
7685
|
if (width < titleBarHeight + this.props.thick * 2) {
|
|
7516
7686
|
width = titleBarHeight + this.props.thick * 2;
|
|
@@ -7519,7 +7689,31 @@ class Slider extends React.Component {
|
|
|
7519
7689
|
window.style.left = `${x}px`;
|
|
7520
7690
|
window.style.width = `${width}px`;
|
|
7521
7691
|
};
|
|
7692
|
+
stop = e => {
|
|
7693
|
+
e.preventDefault();
|
|
7694
|
+
const {
|
|
7695
|
+
height: titleBarHeight
|
|
7696
|
+
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7697
|
+
const {
|
|
7698
|
+
x,
|
|
7699
|
+
y,
|
|
7700
|
+
width,
|
|
7701
|
+
height
|
|
7702
|
+
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7703
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
|
|
7704
|
+
if (y == 0 && this.data.direction.indexOf('n') > -1) {
|
|
7705
|
+
this.props.window.orgHeight = height;
|
|
7706
|
+
this.props.windowRef.current.style.height = `${window.innerHeight}px`;
|
|
7707
|
+
}
|
|
7708
|
+
if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
|
|
7709
|
+
if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
|
|
7710
|
+
if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
|
|
7711
|
+
document.body.style.cursor = 'default';
|
|
7712
|
+
window.removeEventListener('mousemove', this.move);
|
|
7713
|
+
window.removeEventListener('mouseup', this.stop);
|
|
7714
|
+
};
|
|
7522
7715
|
move = e => {
|
|
7716
|
+
e.preventDefault();
|
|
7523
7717
|
const {
|
|
7524
7718
|
clientX,
|
|
7525
7719
|
clientY,
|
|
@@ -7552,47 +7746,60 @@ class Slider extends React.Component {
|
|
|
7552
7746
|
startHeight,
|
|
7553
7747
|
top
|
|
7554
7748
|
});
|
|
7555
|
-
/////////////////////////////////////////////////////////////
|
|
7556
|
-
|
|
7557
|
-
/////////////////////////////////////////////////////////////
|
|
7558
7749
|
};
|
|
7559
|
-
start = () => {
|
|
7750
|
+
start = (e, direction) => {
|
|
7751
|
+
e.preventDefault();
|
|
7560
7752
|
const {
|
|
7561
7753
|
height: titleBarHeight
|
|
7562
7754
|
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7563
|
-
|
|
7755
|
+
let {
|
|
7564
7756
|
x,
|
|
7565
7757
|
y,
|
|
7566
7758
|
width,
|
|
7567
7759
|
height
|
|
7568
7760
|
} = this.props.windowRef.current.getBoundingClientRect();
|
|
7761
|
+
if (direction.indexOf('n') > -1) {
|
|
7762
|
+
if (this.props.window.orgHeight) {
|
|
7763
|
+
height = this.props.window.orgHeight;
|
|
7764
|
+
this.props.window.orgHeight = null;
|
|
7765
|
+
}
|
|
7766
|
+
} else if (direction.indexOf('s') > -1) {
|
|
7767
|
+
this.props.window.orgHeight = null;
|
|
7768
|
+
}
|
|
7569
7769
|
this.data = {
|
|
7570
7770
|
x,
|
|
7571
7771
|
y,
|
|
7572
7772
|
width,
|
|
7573
7773
|
height,
|
|
7574
|
-
titleBarHeight
|
|
7774
|
+
titleBarHeight,
|
|
7775
|
+
direction
|
|
7575
7776
|
};
|
|
7777
|
+
this.props.windowRef.current.style.transition = 'unset';
|
|
7576
7778
|
document.body.style.cursor = this.directions[this.props.direction].cursor;
|
|
7577
7779
|
window.addEventListener('mousemove', this.move);
|
|
7578
7780
|
window.addEventListener('mouseup', this.stop);
|
|
7579
7781
|
};
|
|
7580
7782
|
render() {
|
|
7581
|
-
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
7783
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider, {
|
|
7582
7784
|
$direction: this.directions[this.props.direction],
|
|
7583
7785
|
$padding: this.props.padding,
|
|
7584
|
-
onMouseDown:
|
|
7786
|
+
onMouseDown: e => {
|
|
7787
|
+
this.start(e, this.props.direction);
|
|
7788
|
+
}
|
|
7585
7789
|
});
|
|
7586
7790
|
}
|
|
7587
7791
|
}
|
|
7588
7792
|
|
|
7589
7793
|
const StyledJRWindow = styled__default["default"].div`
|
|
7794
|
+
--jr-window-radius:3px;
|
|
7590
7795
|
--padding-child:8px;
|
|
7796
|
+
--transition-x-y:height .1s ease-in, width .1s ease-in;
|
|
7591
7797
|
xborder:1px solid gray;
|
|
7592
|
-
position:
|
|
7798
|
+
position: fixed;
|
|
7593
7799
|
padding: ${({
|
|
7594
7800
|
$thick
|
|
7595
7801
|
}) => $thick}px;
|
|
7802
|
+
border-radius: var(--jr-window-radius);
|
|
7596
7803
|
|
|
7597
7804
|
top: ${({
|
|
7598
7805
|
$y
|
|
@@ -7613,6 +7820,7 @@ const StyledJRWindow = styled__default["default"].div`
|
|
|
7613
7820
|
overflow: hidden;
|
|
7614
7821
|
|
|
7615
7822
|
> main{
|
|
7823
|
+
border-radius: var(--jr-window-radius);
|
|
7616
7824
|
box-shadow: 0px 0px 5px 1px gray;
|
|
7617
7825
|
Xbackground: white;
|
|
7618
7826
|
display: flex;
|
|
@@ -7633,31 +7841,29 @@ class JRWindow extends JRFrame {
|
|
|
7633
7841
|
y = 0;
|
|
7634
7842
|
width = 300;
|
|
7635
7843
|
height = 300;
|
|
7636
|
-
padding =
|
|
7637
|
-
thick =
|
|
7844
|
+
padding = 1;
|
|
7845
|
+
thick = 5;
|
|
7638
7846
|
constructor(props) {
|
|
7639
7847
|
super(props);
|
|
7640
|
-
this.ref = /*#__PURE__*/React.createRef();
|
|
7641
|
-
this.titleBarRef = /*#__PURE__*/React.createRef();
|
|
7642
|
-
if
|
|
7848
|
+
this.ref = /*#__PURE__*/React$1.createRef();
|
|
7849
|
+
this.titleBarRef = /*#__PURE__*/React$1.createRef();
|
|
7850
|
+
// if(this.props.popup===true)this.renderer=this.renderWindow
|
|
7643
7851
|
this.init();
|
|
7644
7852
|
}
|
|
7853
|
+
componentWillUpdate(prevProps, prevState, snapshot) {
|
|
7854
|
+
po('componentWillUpdate-------------------------');
|
|
7855
|
+
if (this.props.popup === true && this.props.open === true && prevProps.open === false) {
|
|
7856
|
+
this.props.onOpen?.bind(this)();
|
|
7857
|
+
}
|
|
7858
|
+
}
|
|
7645
7859
|
init() {
|
|
7646
|
-
this.height = window.innerHeight >= this.props.height ? this.props.height : window.innerHeight;
|
|
7647
|
-
this.width = window.innerWidth >= this.props.width ? this.props.width : window.innerWidth;
|
|
7860
|
+
this.height = window.innerHeight >= (this.props.height ?? this.height) ? this.props.height ?? this.height : window.innerHeight;
|
|
7861
|
+
this.width = window.innerWidth >= (this.props.width ?? this.width) ? this.props.width ?? this.width : window.innerWidth;
|
|
7648
7862
|
this.x = this.props.x ?? (window.innerWidth - (this.width ?? 300)) / 2;
|
|
7649
7863
|
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7650
7864
|
}
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
// return this.props.popup===true
|
|
7654
|
-
// ?<StyledJRWindow>
|
|
7655
|
-
// {super.renderer()}
|
|
7656
|
-
// </StyledJRWindow>
|
|
7657
|
-
// :super.renderer()
|
|
7658
|
-
// }
|
|
7659
|
-
renderWindow() {
|
|
7660
|
-
return /*#__PURE__*/React.createElement(StyledJRWindow, {
|
|
7865
|
+
renderer() {
|
|
7866
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React$1.createElement(StyledJRWindow, {
|
|
7661
7867
|
ref: this.ref,
|
|
7662
7868
|
className: `jr-window ${this.props.className ?? ''}`,
|
|
7663
7869
|
$x: this.x,
|
|
@@ -7669,84 +7875,18 @@ class JRWindow extends JRFrame {
|
|
|
7669
7875
|
// po('onFocus')
|
|
7670
7876
|
// this.ref.current.style.zIndex=100
|
|
7671
7877
|
// }}
|
|
7672
|
-
}, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
|
|
7878
|
+
}, /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(TitleBar, {
|
|
7673
7879
|
titleBarRef: this.titleBarRef,
|
|
7674
7880
|
windowRef: this.ref,
|
|
7675
7881
|
window: this,
|
|
7676
|
-
title: this.props.title
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
thick: this.thick,
|
|
7680
|
-
windowRef: this.ref,
|
|
7681
|
-
window: this,
|
|
7682
|
-
titleBarRef: this.titleBarRef
|
|
7683
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7684
|
-
direction: 'e',
|
|
7685
|
-
thick: this.thick,
|
|
7686
|
-
windowRef: this.ref,
|
|
7687
|
-
window: this,
|
|
7688
|
-
titleBarRef: this.titleBarRef
|
|
7689
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7690
|
-
direction: 's',
|
|
7691
|
-
thick: this.thick,
|
|
7692
|
-
windowRef: this.ref,
|
|
7693
|
-
window: this,
|
|
7694
|
-
titleBarRef: this.titleBarRef
|
|
7695
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7696
|
-
direction: 'w',
|
|
7697
|
-
thick: this.thick,
|
|
7698
|
-
windowRef: this.ref,
|
|
7699
|
-
window: this,
|
|
7700
|
-
titleBarRef: this.titleBarRef
|
|
7701
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7702
|
-
direction: 'nww',
|
|
7703
|
-
thick: this.thick,
|
|
7704
|
-
windowRef: this.ref,
|
|
7705
|
-
window: this,
|
|
7706
|
-
titleBarRef: this.titleBarRef
|
|
7707
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7708
|
-
direction: 'nnw',
|
|
7709
|
-
thick: this.thick,
|
|
7710
|
-
windowRef: this.ref,
|
|
7711
|
-
window: this,
|
|
7712
|
-
titleBarRef: this.titleBarRef
|
|
7713
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7714
|
-
direction: 'nne',
|
|
7715
|
-
thick: this.thick,
|
|
7716
|
-
windowRef: this.ref,
|
|
7717
|
-
window: this,
|
|
7718
|
-
titleBarRef: this.titleBarRef
|
|
7719
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7720
|
-
direction: 'nee',
|
|
7882
|
+
title: this.props.title,
|
|
7883
|
+
thick: this.thick
|
|
7884
|
+
}), /*#__PURE__*/React$1.createElement("main", null, super.renderer())), /*#__PURE__*/React$1.createElement(Sliders, {
|
|
7721
7885
|
thick: this.thick,
|
|
7722
7886
|
windowRef: this.ref,
|
|
7723
7887
|
window: this,
|
|
7724
7888
|
titleBarRef: this.titleBarRef
|
|
7725
|
-
})
|
|
7726
|
-
direction: 'sse',
|
|
7727
|
-
thick: this.thick,
|
|
7728
|
-
windowRef: this.ref,
|
|
7729
|
-
window: this,
|
|
7730
|
-
titleBarRef: this.titleBarRef
|
|
7731
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7732
|
-
direction: 'see',
|
|
7733
|
-
thick: this.thick,
|
|
7734
|
-
windowRef: this.ref,
|
|
7735
|
-
window: this,
|
|
7736
|
-
titleBarRef: this.titleBarRef
|
|
7737
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7738
|
-
direction: 'sww',
|
|
7739
|
-
thick: this.thick,
|
|
7740
|
-
windowRef: this.ref,
|
|
7741
|
-
window: this,
|
|
7742
|
-
titleBarRef: this.titleBarRef
|
|
7743
|
-
}), /*#__PURE__*/React.createElement(Slider, {
|
|
7744
|
-
direction: 'ssw',
|
|
7745
|
-
thick: this.thick,
|
|
7746
|
-
windowRef: this.ref,
|
|
7747
|
-
window: this,
|
|
7748
|
-
titleBarRef: this.titleBarRef
|
|
7749
|
-
}));
|
|
7889
|
+
})) : '' : super.renderer();
|
|
7750
7890
|
}
|
|
7751
7891
|
}
|
|
7752
7892
|
|
|
@@ -7772,7 +7912,7 @@ const setMapObject = (map, names, value) => {
|
|
|
7772
7912
|
class JRTable extends JRWindow {
|
|
7773
7913
|
constructor(props) {
|
|
7774
7914
|
super(props);
|
|
7775
|
-
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7915
|
+
this.colGroupRef = /*#__PURE__*/React$1.createRef();
|
|
7776
7916
|
}
|
|
7777
7917
|
UNSAFE_componentWillMount() {
|
|
7778
7918
|
this.setColumns(this.props.columns ?? []);
|
|
@@ -7789,7 +7929,7 @@ class JRTable extends JRWindow {
|
|
|
7789
7929
|
value,
|
|
7790
7930
|
onChange
|
|
7791
7931
|
}) {
|
|
7792
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7932
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7793
7933
|
checked: value,
|
|
7794
7934
|
onChange: e => {
|
|
7795
7935
|
onChange(e.target.checked);
|
|
@@ -7828,7 +7968,7 @@ class JRTable extends JRWindow {
|
|
|
7828
7968
|
value,
|
|
7829
7969
|
onChange
|
|
7830
7970
|
}) {
|
|
7831
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7971
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7832
7972
|
checked: value,
|
|
7833
7973
|
onChange: e => {
|
|
7834
7974
|
onChange(e.target.checked);
|
|
@@ -7838,7 +7978,7 @@ class JRTable extends JRWindow {
|
|
|
7838
7978
|
align: 'center',
|
|
7839
7979
|
name,
|
|
7840
7980
|
label() {
|
|
7841
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
7981
|
+
return /*#__PURE__*/React$1.createElement("button", {
|
|
7842
7982
|
onClick: () => {
|
|
7843
7983
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7844
7984
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -7961,25 +8101,25 @@ class JRTable extends JRWindow {
|
|
|
7961
8101
|
}
|
|
7962
8102
|
//------------------------------------------------------------------------------------
|
|
7963
8103
|
renderMe() {
|
|
7964
|
-
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8104
|
+
return /*#__PURE__*/React$1.createElement(StyledJRTable, {
|
|
7965
8105
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
7966
|
-
}, /*#__PURE__*/React.createElement("table", {
|
|
8106
|
+
}, /*#__PURE__*/React$1.createElement("table", {
|
|
7967
8107
|
className: 'jr-table-table'
|
|
7968
|
-
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8108
|
+
}, /*#__PURE__*/React$1.createElement(TBodies, {
|
|
7969
8109
|
table: this,
|
|
7970
8110
|
leafColumns: this.state.leafColumns,
|
|
7971
8111
|
groupHeader: this.props.groupHeader,
|
|
7972
8112
|
groupFooter: this.props.groupFooter,
|
|
7973
8113
|
dataSource: this.getDataSource(),
|
|
7974
8114
|
onRowClick: this.props.onRowClick
|
|
7975
|
-
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8115
|
+
}), /*#__PURE__*/React$1.createElement(TFoot, {
|
|
7976
8116
|
columns: this.props.footColumns,
|
|
7977
8117
|
table: this
|
|
7978
|
-
}), /*#__PURE__*/React.createElement(THead, {
|
|
8118
|
+
}), /*#__PURE__*/React$1.createElement(THead, {
|
|
7979
8119
|
columns: this.state.columns,
|
|
7980
8120
|
leafColumns: this.state.leafColumns,
|
|
7981
8121
|
table: this
|
|
7982
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8122
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
7983
8123
|
className: 'empty'
|
|
7984
8124
|
}, this.noData() && '無資料'));
|
|
7985
8125
|
}
|
|
@@ -8328,12 +8468,12 @@ class JRFields extends JRWindow {
|
|
|
8328
8468
|
}
|
|
8329
8469
|
if (type) {
|
|
8330
8470
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
8331
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8471
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
8332
8472
|
className: 'jr-column-value',
|
|
8333
8473
|
style: {
|
|
8334
8474
|
gridColumn: label == null ? 'span 2' : null
|
|
8335
8475
|
}
|
|
8336
|
-
}, /*#__PURE__*/React.createElement(type, {
|
|
8476
|
+
}, /*#__PURE__*/React$1.createElement(type, {
|
|
8337
8477
|
value: value,
|
|
8338
8478
|
onChange,
|
|
8339
8479
|
record: parentValue,
|
|
@@ -8344,13 +8484,13 @@ class JRFields extends JRWindow {
|
|
|
8344
8484
|
...column
|
|
8345
8485
|
}));
|
|
8346
8486
|
} else if (column.columns) {
|
|
8347
|
-
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8487
|
+
content = /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
8348
8488
|
cols: column.cols,
|
|
8349
8489
|
className: 'jr-grid',
|
|
8350
8490
|
$gap: gap
|
|
8351
8491
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
8352
8492
|
} else if (name || column.render) {
|
|
8353
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8493
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
8354
8494
|
className: 'jr-column-value',
|
|
8355
8495
|
style: {
|
|
8356
8496
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -8364,7 +8504,7 @@ class JRFields extends JRWindow {
|
|
|
8364
8504
|
}
|
|
8365
8505
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
8366
8506
|
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8367
|
-
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
8507
|
+
return /*#__PURE__*/React$1.createElement(StyledColumn, {
|
|
8368
8508
|
$layout: layout,
|
|
8369
8509
|
$hasLabel: label != null,
|
|
8370
8510
|
key: `f${index}`,
|
|
@@ -8372,18 +8512,18 @@ class JRFields extends JRWindow {
|
|
|
8372
8512
|
className: 'jr-column',
|
|
8373
8513
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
8374
8514
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
8375
|
-
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8515
|
+
}, label != null && /*#__PURE__*/React$1.createElement(StyledColumnLabel, {
|
|
8376
8516
|
style: labelStyle,
|
|
8377
8517
|
$required: required,
|
|
8378
8518
|
className: 'label',
|
|
8379
8519
|
$layout: layout,
|
|
8380
8520
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
8381
|
-
}, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
|
|
8521
|
+
}, label), content, this.props.debugMode && /*#__PURE__*/React$1.createElement(StyledColumnFooter, null, /*#__PURE__*/React$1.createElement("div", {
|
|
8382
8522
|
className: "left"
|
|
8383
|
-
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8523
|
+
}, /*#__PURE__*/React$1.createElement(ColumnMessage, {
|
|
8384
8524
|
value: this.getValidateValue(_parentName.join('.')),
|
|
8385
8525
|
record: this.getValue()
|
|
8386
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8526
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
8387
8527
|
className: "right"
|
|
8388
8528
|
}))
|
|
8389
8529
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -8398,10 +8538,10 @@ class JRFields extends JRWindow {
|
|
|
8398
8538
|
});
|
|
8399
8539
|
}
|
|
8400
8540
|
renderMe() {
|
|
8401
|
-
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8541
|
+
return /*#__PURE__*/React$1.createElement(StyleJRFields, {
|
|
8402
8542
|
className: 'jr-fields',
|
|
8403
8543
|
style: this.props.typeStyle
|
|
8404
|
-
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8544
|
+
}, /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
8405
8545
|
cols: this.props.cols,
|
|
8406
8546
|
style: this.props.gridStyle,
|
|
8407
8547
|
className: 'jr-grid',
|
|
@@ -8463,7 +8603,7 @@ const FreeType = ({
|
|
|
8463
8603
|
const content = config.bind(me)({
|
|
8464
8604
|
setStyle
|
|
8465
8605
|
});
|
|
8466
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
8606
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
8467
8607
|
className: className,
|
|
8468
8608
|
style: style
|
|
8469
8609
|
}, content);
|
|
@@ -8471,33 +8611,33 @@ const FreeType = ({
|
|
|
8471
8611
|
};
|
|
8472
8612
|
class JRTestReact extends JRSubmit {
|
|
8473
8613
|
renderer() {
|
|
8474
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8614
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame, {
|
|
8475
8615
|
style: this.props.style,
|
|
8476
8616
|
className: `${this.props.className} jr-frame`
|
|
8477
|
-
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8617
|
+
}, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8478
8618
|
tag: "div",
|
|
8479
8619
|
config: this.props.start,
|
|
8480
8620
|
me: this,
|
|
8481
8621
|
className: 'start'
|
|
8482
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8622
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8483
8623
|
tag: "header",
|
|
8484
8624
|
config: this.props.top,
|
|
8485
8625
|
me: this
|
|
8486
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8626
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8487
8627
|
tag: "div",
|
|
8488
8628
|
config: this.props.left,
|
|
8489
8629
|
me: this,
|
|
8490
8630
|
className: 'left'
|
|
8491
|
-
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8631
|
+
}), this.renderMe(), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8492
8632
|
tag: "div",
|
|
8493
8633
|
config: this.props.right,
|
|
8494
8634
|
me: this,
|
|
8495
8635
|
className: 'right'
|
|
8496
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8636
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8497
8637
|
tag: "footer",
|
|
8498
8638
|
config: this.props.bottom,
|
|
8499
8639
|
me: this
|
|
8500
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8640
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
8501
8641
|
tag: "div",
|
|
8502
8642
|
config: this.props.end,
|
|
8503
8643
|
me: this,
|
|
@@ -8505,7 +8645,7 @@ class JRTestReact extends JRSubmit {
|
|
|
8505
8645
|
}));
|
|
8506
8646
|
}
|
|
8507
8647
|
renderMe() {
|
|
8508
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8648
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
8509
8649
|
style: {
|
|
8510
8650
|
flex: 1
|
|
8511
8651
|
}
|