jrs-react 1.2.6 → 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 +804 -95
- package/build/index.js +804 -95
- 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);
|
|
@@ -6298,6 +6298,8 @@ class JRSubmit extends React.Component {
|
|
|
6298
6298
|
}
|
|
6299
6299
|
setValue(value, reset = false) {
|
|
6300
6300
|
if (this.props.onChange) {
|
|
6301
|
+
po('name', this.props.name);
|
|
6302
|
+
po('onChange', value);
|
|
6301
6303
|
this.props.onChange(value);
|
|
6302
6304
|
} else {
|
|
6303
6305
|
this.setState({
|
|
@@ -6475,14 +6477,14 @@ class JRSubmit extends React.Component {
|
|
|
6475
6477
|
config.callback?.bind(this)(isSuccess, response, payload);
|
|
6476
6478
|
};
|
|
6477
6479
|
showMessage(success, message) {
|
|
6478
|
-
po('success',
|
|
6479
|
-
po('message',
|
|
6480
|
+
// po('success',success)
|
|
6481
|
+
// po('message',message)
|
|
6480
6482
|
}
|
|
6481
6483
|
renderer() {
|
|
6482
6484
|
return;
|
|
6483
6485
|
}
|
|
6484
6486
|
render() {
|
|
6485
|
-
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();
|
|
6486
6488
|
}
|
|
6487
6489
|
}
|
|
6488
6490
|
|
|
@@ -6500,10 +6502,14 @@ const FreeType$1 = ({
|
|
|
6500
6502
|
const content = config.bind(me)({
|
|
6501
6503
|
setStyle
|
|
6502
6504
|
});
|
|
6503
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
6505
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6504
6506
|
className: className,
|
|
6505
6507
|
style: style
|
|
6506
6508
|
}, content);
|
|
6509
|
+
} else if (typeof config === 'string') {
|
|
6510
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
6511
|
+
className: className
|
|
6512
|
+
}, config);
|
|
6507
6513
|
}
|
|
6508
6514
|
};
|
|
6509
6515
|
const StyledJRFrame$1 = styled__default["default"].div`
|
|
@@ -6521,7 +6527,7 @@ const StyledJRFrame$1 = styled__default["default"].div`
|
|
|
6521
6527
|
flex-direction: column;
|
|
6522
6528
|
> *{
|
|
6523
6529
|
XXborder:1px solid gray;
|
|
6524
|
-
|
|
6530
|
+
XXmin-height:30px;
|
|
6525
6531
|
}
|
|
6526
6532
|
|
|
6527
6533
|
>header{
|
|
@@ -6543,49 +6549,45 @@ const StyledJRFrame$1 = styled__default["default"].div`
|
|
|
6543
6549
|
`;
|
|
6544
6550
|
class JRFrame extends JRSubmit {
|
|
6545
6551
|
renderer() {
|
|
6546
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
|
|
6552
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame$1, {
|
|
6547
6553
|
style: this.props.style,
|
|
6548
6554
|
className: `${this.props.className} jr-frame`
|
|
6549
|
-
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6555
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6550
6556
|
tag: "div",
|
|
6551
6557
|
config: this.props.start,
|
|
6552
6558
|
me: this,
|
|
6553
6559
|
className: 'start'
|
|
6554
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6560
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6555
6561
|
tag: "header",
|
|
6556
6562
|
config: this.props.top,
|
|
6557
6563
|
me: this
|
|
6558
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6564
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6559
6565
|
tag: "div",
|
|
6560
6566
|
config: this.props.left,
|
|
6561
6567
|
me: this,
|
|
6562
6568
|
className: 'left'
|
|
6563
|
-
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6569
|
+
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6564
6570
|
tag: "div",
|
|
6565
6571
|
config: this.props.right,
|
|
6566
6572
|
me: this,
|
|
6567
6573
|
className: 'right'
|
|
6568
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6574
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6569
6575
|
tag: "footer",
|
|
6570
6576
|
config: this.props.bottom,
|
|
6571
6577
|
me: this
|
|
6572
|
-
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6578
|
+
})), /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
6573
6579
|
tag: "div",
|
|
6574
6580
|
config: this.props.end,
|
|
6575
6581
|
me: this,
|
|
6576
6582
|
className: 'end'
|
|
6577
6583
|
}));
|
|
6578
6584
|
}
|
|
6579
|
-
renderMe()
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
flex: 1
|
|
6583
|
-
}
|
|
6584
|
-
}, "Render me");
|
|
6585
|
-
}
|
|
6585
|
+
// renderMe(){
|
|
6586
|
+
// return <div style={{flex:1}}>Render me</div>
|
|
6587
|
+
// }
|
|
6586
6588
|
}
|
|
6587
6589
|
|
|
6588
|
-
const StyledSlider = styled__default["default"].div`
|
|
6590
|
+
const StyledSlider$1 = styled__default["default"].div`
|
|
6589
6591
|
position: absolute;
|
|
6590
6592
|
top: 0;
|
|
6591
6593
|
right: 0;
|
|
@@ -6600,10 +6602,10 @@ const StyledSlider = styled__default["default"].div`
|
|
|
6600
6602
|
border-right:1px dashed gray;
|
|
6601
6603
|
}
|
|
6602
6604
|
`;
|
|
6603
|
-
class Slider extends React.Component {
|
|
6605
|
+
class Slider$1 extends React$1.Component {
|
|
6604
6606
|
constructor() {
|
|
6605
6607
|
super();
|
|
6606
|
-
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
6608
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
6607
6609
|
}
|
|
6608
6610
|
stop = e => {
|
|
6609
6611
|
this.sliderRef.current.classList.remove('resizing');
|
|
@@ -6652,7 +6654,7 @@ class Slider extends React.Component {
|
|
|
6652
6654
|
}
|
|
6653
6655
|
render() {
|
|
6654
6656
|
const column = this.props.column;
|
|
6655
|
-
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
6657
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider$1, {
|
|
6656
6658
|
ref: this.sliderRef,
|
|
6657
6659
|
onMouseDown: e => {
|
|
6658
6660
|
this.start(this.props.thRef, column);
|
|
@@ -6665,7 +6667,7 @@ const Colgroup = ({
|
|
|
6665
6667
|
leafColumns,
|
|
6666
6668
|
colGroupRef
|
|
6667
6669
|
}) => {
|
|
6668
|
-
return /*#__PURE__*/React.createElement("colgroup", {
|
|
6670
|
+
return /*#__PURE__*/React$1.createElement("colgroup", {
|
|
6669
6671
|
ref: colGroupRef
|
|
6670
6672
|
}, leafColumns?.map((_column, index) => {
|
|
6671
6673
|
const {
|
|
@@ -6675,7 +6677,7 @@ const Colgroup = ({
|
|
|
6675
6677
|
const style = {
|
|
6676
6678
|
width
|
|
6677
6679
|
};
|
|
6678
|
-
return /*#__PURE__*/React.createElement("col", {
|
|
6680
|
+
return /*#__PURE__*/React$1.createElement("col", {
|
|
6679
6681
|
style: style,
|
|
6680
6682
|
key: index
|
|
6681
6683
|
});
|
|
@@ -6688,13 +6690,13 @@ const Ths$1 = ({
|
|
|
6688
6690
|
table
|
|
6689
6691
|
}) => {
|
|
6690
6692
|
return rowColumn?.map((column, colIndex) => {
|
|
6691
|
-
const thRef = /*#__PURE__*/React.createRef();
|
|
6692
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6693
|
+
const thRef = /*#__PURE__*/React$1.createRef();
|
|
6694
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6693
6695
|
key: colIndex,
|
|
6694
6696
|
ref: thRef,
|
|
6695
6697
|
colSpan: column.colSpan,
|
|
6696
6698
|
rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
|
|
6697
|
-
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider, {
|
|
6699
|
+
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React$1.createElement(Slider$1, {
|
|
6698
6700
|
table: table,
|
|
6699
6701
|
thRef: thRef,
|
|
6700
6702
|
column: column
|
|
@@ -6708,10 +6710,10 @@ const HeadTrs = ({
|
|
|
6708
6710
|
}) => {
|
|
6709
6711
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6710
6712
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6711
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6713
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6712
6714
|
className: trClassName,
|
|
6713
6715
|
key: rowIndex
|
|
6714
|
-
}, /*#__PURE__*/React.createElement(Ths$1, {
|
|
6716
|
+
}, /*#__PURE__*/React$1.createElement(Ths$1, {
|
|
6715
6717
|
deep: columns.length - 1,
|
|
6716
6718
|
rowColumn: rowColumn,
|
|
6717
6719
|
rowIndex: rowIndex,
|
|
@@ -6724,10 +6726,10 @@ const THead = ({
|
|
|
6724
6726
|
leafColumns,
|
|
6725
6727
|
table
|
|
6726
6728
|
}) => {
|
|
6727
|
-
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, {
|
|
6728
6730
|
columns: columns,
|
|
6729
6731
|
table: table
|
|
6730
|
-
})), /*#__PURE__*/React.createElement(Colgroup, {
|
|
6732
|
+
})), /*#__PURE__*/React$1.createElement(Colgroup, {
|
|
6731
6733
|
leafColumns: leafColumns,
|
|
6732
6734
|
colGroupRef: table.colGroupRef
|
|
6733
6735
|
}));
|
|
@@ -6752,7 +6754,7 @@ const FootThs = ({
|
|
|
6752
6754
|
// }
|
|
6753
6755
|
let style = flexType(column.style, table, {}, {});
|
|
6754
6756
|
const content = whatType(column, table, column.label);
|
|
6755
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6757
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6756
6758
|
style: style,
|
|
6757
6759
|
colSpan: column.colSpan,
|
|
6758
6760
|
rowSpan: column.rowSpan
|
|
@@ -6764,24 +6766,24 @@ const TFoot = ({
|
|
|
6764
6766
|
columns
|
|
6765
6767
|
}) => {
|
|
6766
6768
|
const trs = columns?.map((rowColumn, rowIndex) => {
|
|
6767
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6769
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6768
6770
|
key: rowIndex
|
|
6769
|
-
}, /*#__PURE__*/React.createElement(FootThs, {
|
|
6771
|
+
}, /*#__PURE__*/React$1.createElement(FootThs, {
|
|
6770
6772
|
columns: rowColumn,
|
|
6771
6773
|
table: table
|
|
6772
6774
|
}));
|
|
6773
6775
|
});
|
|
6774
|
-
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));
|
|
6775
6777
|
};
|
|
6776
6778
|
|
|
6777
|
-
function _extends() {
|
|
6778
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
6779
|
+
function _extends$3() {
|
|
6780
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function (n) {
|
|
6779
6781
|
for (var e = 1; e < arguments.length; e++) {
|
|
6780
6782
|
var t = arguments[e];
|
|
6781
6783
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6782
6784
|
}
|
|
6783
6785
|
return n;
|
|
6784
|
-
}, _extends.apply(null, arguments);
|
|
6786
|
+
}, _extends$3.apply(null, arguments);
|
|
6785
6787
|
}
|
|
6786
6788
|
|
|
6787
6789
|
styled__default["default"].tbody`
|
|
@@ -6822,7 +6824,7 @@ const Ths = ({
|
|
|
6822
6824
|
content = column.label;
|
|
6823
6825
|
}
|
|
6824
6826
|
// style.textAlign=align
|
|
6825
|
-
return /*#__PURE__*/React.createElement("th", {
|
|
6827
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
6826
6828
|
key: colIndex,
|
|
6827
6829
|
style: {
|
|
6828
6830
|
textAlign: align,
|
|
@@ -6842,10 +6844,10 @@ const GroupColumns = ({
|
|
|
6842
6844
|
}) => {
|
|
6843
6845
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6844
6846
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6845
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
6847
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
6846
6848
|
className: trClassName,
|
|
6847
6849
|
key: rowIndex
|
|
6848
|
-
}, /*#__PURE__*/React.createElement(Ths, {
|
|
6850
|
+
}, /*#__PURE__*/React$1.createElement(Ths, {
|
|
6849
6851
|
table: table,
|
|
6850
6852
|
groupData: groupData,
|
|
6851
6853
|
groupIndex: tbodyIndex,
|
|
@@ -6865,7 +6867,7 @@ styled__default["default"].tr`
|
|
|
6865
6867
|
}
|
|
6866
6868
|
`;
|
|
6867
6869
|
const GroupHeader = props => {
|
|
6868
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6870
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6869
6871
|
trClassName: 'jr-group-header'
|
|
6870
6872
|
}, props));
|
|
6871
6873
|
};
|
|
@@ -6876,7 +6878,7 @@ styled__default["default"].tr`
|
|
|
6876
6878
|
}
|
|
6877
6879
|
`;
|
|
6878
6880
|
const GroupFooter = props => {
|
|
6879
|
-
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6881
|
+
return /*#__PURE__*/React$1.createElement(GroupColumns, _extends$3({
|
|
6880
6882
|
trClassName: 'jr-group-footer'
|
|
6881
6883
|
}, props));
|
|
6882
6884
|
};
|
|
@@ -6923,7 +6925,7 @@ const Td = ({
|
|
|
6923
6925
|
const typeStyle = flexType(_typeStyle, table, {
|
|
6924
6926
|
record
|
|
6925
6927
|
}, {});
|
|
6926
|
-
content = /*#__PURE__*/React.createElement(type, {
|
|
6928
|
+
content = /*#__PURE__*/React$1.createElement(type, {
|
|
6927
6929
|
onChange: _onChange ? e => {
|
|
6928
6930
|
_onChange?.bind(table)(e, {
|
|
6929
6931
|
value,
|
|
@@ -6951,7 +6953,7 @@ const Td = ({
|
|
|
6951
6953
|
} else {
|
|
6952
6954
|
content = value;
|
|
6953
6955
|
}
|
|
6954
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
6956
|
+
return /*#__PURE__*/React$1.createElement("td", {
|
|
6955
6957
|
colSpan: style.colSpan,
|
|
6956
6958
|
rowSpan: style.rowSpan,
|
|
6957
6959
|
style: {
|
|
@@ -6970,7 +6972,7 @@ const Tds = ({
|
|
|
6970
6972
|
trIndex
|
|
6971
6973
|
}) => {
|
|
6972
6974
|
return leafColumns?.map((column, tdIndex) => {
|
|
6973
|
-
return /*#__PURE__*/React.createElement(Td, {
|
|
6975
|
+
return /*#__PURE__*/React$1.createElement(Td, {
|
|
6974
6976
|
column: column,
|
|
6975
6977
|
key: tdIndex,
|
|
6976
6978
|
record: record,
|
|
@@ -6995,14 +6997,14 @@ const TBody = ({
|
|
|
6995
6997
|
table,
|
|
6996
6998
|
tbodyIndex
|
|
6997
6999
|
};
|
|
6998
|
-
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", {
|
|
6999
7001
|
key: `tbody${tbodyIndex}`
|
|
7000
|
-
}, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
|
|
7002
|
+
}, groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupHeader, _extends$3({
|
|
7001
7003
|
groupData: groupData,
|
|
7002
7004
|
columns: groupHeader
|
|
7003
|
-
}, neededProps)), groupData?.map((record, trIndex) => {
|
|
7005
|
+
}, neededProps)), groupData?.map?.((record, trIndex) => {
|
|
7004
7006
|
const onRowClick = table.props.onRowClick?.bind(table);
|
|
7005
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
7007
|
+
return /*#__PURE__*/React$1.createElement("tr", {
|
|
7006
7008
|
key: trIndex,
|
|
7007
7009
|
onClick: () => {
|
|
7008
7010
|
onRowClick?.({
|
|
@@ -7011,13 +7013,13 @@ const TBody = ({
|
|
|
7011
7013
|
groupIndex: tbodyIndex
|
|
7012
7014
|
});
|
|
7013
7015
|
}
|
|
7014
|
-
}, /*#__PURE__*/React.createElement(Tds, _extends({
|
|
7016
|
+
}, /*#__PURE__*/React$1.createElement(Tds, _extends$3({
|
|
7015
7017
|
record: record,
|
|
7016
7018
|
trIndex: trIndex
|
|
7017
7019
|
}, neededProps, {
|
|
7018
7020
|
leafColumns: leafColumns
|
|
7019
7021
|
})));
|
|
7020
|
-
}), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
|
|
7022
|
+
}), groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupFooter, _extends$3({
|
|
7021
7023
|
groupData: groupData,
|
|
7022
7024
|
columns: groupFooter
|
|
7023
7025
|
}, neededProps))));
|
|
@@ -7035,7 +7037,7 @@ const TBodies = ({
|
|
|
7035
7037
|
|
|
7036
7038
|
// po('dataSource',dataSource)
|
|
7037
7039
|
return dataSource?.map((groupData, tbodyIndex, c) => {
|
|
7038
|
-
return /*#__PURE__*/React.createElement(TBody, {
|
|
7040
|
+
return /*#__PURE__*/React$1.createElement(TBody, {
|
|
7039
7041
|
key: `tbody${tbodyIndex}`,
|
|
7040
7042
|
table: table
|
|
7041
7043
|
// dataSource={dataSource}
|
|
@@ -7094,8 +7096,7 @@ const StyledJRTable = styled__default["default"].div`
|
|
|
7094
7096
|
|
|
7095
7097
|
th{
|
|
7096
7098
|
position: relative;
|
|
7097
|
-
|
|
7098
|
-
padding: 4px;
|
|
7099
|
+
padding: 2px 6px;
|
|
7099
7100
|
background: linear-gradient(180deg, rgba(227, 227, 226, 1) 0%, rgba(255, 255, 255, 1) 25%, rgba(210, 210, 210, 1) 100%);
|
|
7100
7101
|
box-shadow: 2px 2px 2px 0 #ffffffd6 inset, -1px -1px 2px 0px #8a847dbf inset;
|
|
7101
7102
|
color: #525252;
|
|
@@ -7184,6 +7185,711 @@ const StyledJRTable = styled__default["default"].div`
|
|
|
7184
7185
|
}
|
|
7185
7186
|
`;
|
|
7186
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
|
+
|
|
7252
|
+
const StyledTitle = styled__default["default"].div`
|
|
7253
|
+
overflow: hidden;
|
|
7254
|
+
display: flex;
|
|
7255
|
+
border-radius: var(--jr-window-radius) var(--jr-window-radius) 0 0;
|
|
7256
|
+
background:rgb(214, 214, 214);
|
|
7257
|
+
color: black;
|
|
7258
|
+
&:active:hover{
|
|
7259
|
+
cursor: grabbing;
|
|
7260
|
+
}
|
|
7261
|
+
|
|
7262
|
+
-webkit-user-select: none;
|
|
7263
|
+
-khtml-user-select: none;
|
|
7264
|
+
-moz-user-select: none;
|
|
7265
|
+
-o-user-select: none;
|
|
7266
|
+
user-select: none;
|
|
7267
|
+
|
|
7268
|
+
> .title{
|
|
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
|
+
}
|
|
7307
|
+
}
|
|
7308
|
+
`;
|
|
7309
|
+
class TitleBar extends React$1.Component {
|
|
7310
|
+
pos1 = 0;
|
|
7311
|
+
pos2 = 0;
|
|
7312
|
+
pos3 = 0;
|
|
7313
|
+
pos4 = 0;
|
|
7314
|
+
x = 0;
|
|
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
|
+
};
|
|
7346
|
+
move = e => {
|
|
7347
|
+
e.preventDefault();
|
|
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;
|
|
7358
|
+
const w = this.props.windowRef.current;
|
|
7359
|
+
this.x = w.offsetLeft - this.pos1;
|
|
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;
|
|
7373
|
+
w.style.top = this.y + 'px';
|
|
7374
|
+
w.style.left = this.x + 'px';
|
|
7375
|
+
};
|
|
7376
|
+
start(e) {
|
|
7377
|
+
e.preventDefault();
|
|
7378
|
+
this.moved = false;
|
|
7379
|
+
this.pos3 = e.clientX;
|
|
7380
|
+
this.pos4 = e.clientY;
|
|
7381
|
+
this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
|
|
7382
|
+
document.body.style.cursor = 'grabbing';
|
|
7383
|
+
window.addEventListener('mousemove', this.move);
|
|
7384
|
+
window.addEventListener('mouseup', this.stop);
|
|
7385
|
+
}
|
|
7386
|
+
render() {
|
|
7387
|
+
return /*#__PURE__*/React$1.createElement(StyledTitle, {
|
|
7388
|
+
ref: this.props.titleBarRef,
|
|
7389
|
+
draggable: "false",
|
|
7390
|
+
onMouseDown: e => {
|
|
7391
|
+
this.start(e);
|
|
7392
|
+
}
|
|
7393
|
+
}, /*#__PURE__*/React$1.createElement(FreeType$1, {
|
|
7394
|
+
tag: "div",
|
|
7395
|
+
config: this.props.title ?? '',
|
|
7396
|
+
me: this.props.window,
|
|
7397
|
+
className: 'title'
|
|
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));
|
|
7409
|
+
}
|
|
7410
|
+
}
|
|
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
|
+
}
|
|
7425
|
+
const StyledSlider = styled__default["default"].div`
|
|
7426
|
+
Xborder:1px solid ${({
|
|
7427
|
+
$direction: {
|
|
7428
|
+
color
|
|
7429
|
+
}
|
|
7430
|
+
}) => color};
|
|
7431
|
+
Xbackground:${({
|
|
7432
|
+
$direction: {
|
|
7433
|
+
color
|
|
7434
|
+
}
|
|
7435
|
+
}) => color};
|
|
7436
|
+
position: absolute;
|
|
7437
|
+
top: ${({
|
|
7438
|
+
$direction: {
|
|
7439
|
+
top
|
|
7440
|
+
}
|
|
7441
|
+
}) => top};
|
|
7442
|
+
bottom: ${({
|
|
7443
|
+
$direction: {
|
|
7444
|
+
bottom
|
|
7445
|
+
}
|
|
7446
|
+
}) => bottom};
|
|
7447
|
+
right: ${({
|
|
7448
|
+
$direction: {
|
|
7449
|
+
right
|
|
7450
|
+
}
|
|
7451
|
+
}) => right};
|
|
7452
|
+
left: ${({
|
|
7453
|
+
$direction: {
|
|
7454
|
+
left
|
|
7455
|
+
}
|
|
7456
|
+
}) => left};
|
|
7457
|
+
height: ${({
|
|
7458
|
+
$direction: {
|
|
7459
|
+
height
|
|
7460
|
+
}
|
|
7461
|
+
}) => height};
|
|
7462
|
+
width: ${({
|
|
7463
|
+
$direction: {
|
|
7464
|
+
width
|
|
7465
|
+
}
|
|
7466
|
+
}) => width};
|
|
7467
|
+
cursor: ${({
|
|
7468
|
+
$direction: {
|
|
7469
|
+
cursor
|
|
7470
|
+
}
|
|
7471
|
+
}) => cursor};
|
|
7472
|
+
|
|
7473
|
+
-webkit-user-select: none;
|
|
7474
|
+
-khtml-user-select: none;
|
|
7475
|
+
-moz-user-select: none;
|
|
7476
|
+
-o-user-select: none;
|
|
7477
|
+
user-select: none;
|
|
7478
|
+
|
|
7479
|
+
`;
|
|
7480
|
+
class Slider extends React$1.Component {
|
|
7481
|
+
width = '3px';
|
|
7482
|
+
borderWidth = 'px';
|
|
7483
|
+
borderLong = 30;
|
|
7484
|
+
constructor(props) {
|
|
7485
|
+
super(props);
|
|
7486
|
+
this.sliderRef = /*#__PURE__*/React$1.createRef();
|
|
7487
|
+
}
|
|
7488
|
+
directions = {
|
|
7489
|
+
n: {
|
|
7490
|
+
top: 0,
|
|
7491
|
+
color: 'red',
|
|
7492
|
+
width: '100%',
|
|
7493
|
+
height: `${this.props.thick}px`,
|
|
7494
|
+
cursor: 'n-resize',
|
|
7495
|
+
resize: props => {
|
|
7496
|
+
this.resizeN(props);
|
|
7497
|
+
}
|
|
7498
|
+
},
|
|
7499
|
+
e: {
|
|
7500
|
+
color: 'yellow',
|
|
7501
|
+
right: 0,
|
|
7502
|
+
width: `${this.props.thick}px`,
|
|
7503
|
+
height: '100%',
|
|
7504
|
+
cursor: 'e-resize',
|
|
7505
|
+
resize: props => {
|
|
7506
|
+
this.resizeE(props);
|
|
7507
|
+
}
|
|
7508
|
+
},
|
|
7509
|
+
s: {
|
|
7510
|
+
color: 'blue',
|
|
7511
|
+
bottom: 0,
|
|
7512
|
+
width: '100%',
|
|
7513
|
+
height: `${this.props.thick}px`,
|
|
7514
|
+
cursor: 's-resize',
|
|
7515
|
+
resize: props => {
|
|
7516
|
+
this.resizeS(props);
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7519
|
+
w: {
|
|
7520
|
+
color: 'green',
|
|
7521
|
+
left: 0,
|
|
7522
|
+
width: `${this.props.thick}px`,
|
|
7523
|
+
height: '100%',
|
|
7524
|
+
cursor: 'w-resize',
|
|
7525
|
+
resize: props => {
|
|
7526
|
+
this.resizeW(props);
|
|
7527
|
+
}
|
|
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
|
+
},
|
|
7541
|
+
nww: {
|
|
7542
|
+
top: 0,
|
|
7543
|
+
left: 0,
|
|
7544
|
+
color: 'blue',
|
|
7545
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7546
|
+
height: `${this.props.thick}px`,
|
|
7547
|
+
cursor: 'nw-resize',
|
|
7548
|
+
resize: props => {
|
|
7549
|
+
this.resizeN(props);
|
|
7550
|
+
this.resizeW(props);
|
|
7551
|
+
}
|
|
7552
|
+
},
|
|
7553
|
+
nnw: {
|
|
7554
|
+
top: 0,
|
|
7555
|
+
left: 0,
|
|
7556
|
+
color: 'blue',
|
|
7557
|
+
width: `${this.props.thick}px`,
|
|
7558
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7559
|
+
cursor: 'nw-resize',
|
|
7560
|
+
resize: props => {
|
|
7561
|
+
this.resizeN(props);
|
|
7562
|
+
this.resizeW(props);
|
|
7563
|
+
}
|
|
7564
|
+
},
|
|
7565
|
+
nne: {
|
|
7566
|
+
top: 0,
|
|
7567
|
+
right: 0,
|
|
7568
|
+
color: 'green',
|
|
7569
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7570
|
+
height: `${this.props.thick}px`,
|
|
7571
|
+
cursor: 'ne-resize',
|
|
7572
|
+
resize: props => {
|
|
7573
|
+
this.resizeN(props);
|
|
7574
|
+
this.resizeE(props);
|
|
7575
|
+
}
|
|
7576
|
+
},
|
|
7577
|
+
nee: {
|
|
7578
|
+
top: 0,
|
|
7579
|
+
right: 0,
|
|
7580
|
+
color: 'green',
|
|
7581
|
+
width: `${this.props.thick}px`,
|
|
7582
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7583
|
+
cursor: 'ne-resize',
|
|
7584
|
+
resize: props => {
|
|
7585
|
+
this.resizeN(props);
|
|
7586
|
+
this.resizeE(props);
|
|
7587
|
+
}
|
|
7588
|
+
},
|
|
7589
|
+
sse: {
|
|
7590
|
+
color: 'red',
|
|
7591
|
+
right: 0,
|
|
7592
|
+
bottom: 0,
|
|
7593
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7594
|
+
height: `${this.props.thick}px`,
|
|
7595
|
+
cursor: 'se-resize',
|
|
7596
|
+
resize: props => {
|
|
7597
|
+
this.resizeS(props);
|
|
7598
|
+
this.resizeE(props);
|
|
7599
|
+
}
|
|
7600
|
+
},
|
|
7601
|
+
see: {
|
|
7602
|
+
color: 'red',
|
|
7603
|
+
right: 0,
|
|
7604
|
+
bottom: 0,
|
|
7605
|
+
width: `${this.props.thick}px`,
|
|
7606
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7607
|
+
cursor: 'se-resize',
|
|
7608
|
+
resize: props => {
|
|
7609
|
+
this.resizeS(props);
|
|
7610
|
+
this.resizeE(props);
|
|
7611
|
+
}
|
|
7612
|
+
},
|
|
7613
|
+
ssw: {
|
|
7614
|
+
color: 'yellow',
|
|
7615
|
+
bottom: 0,
|
|
7616
|
+
left: 0,
|
|
7617
|
+
width: `${this.props.thick + this.borderLong}px`,
|
|
7618
|
+
height: `${this.props.thick}px`,
|
|
7619
|
+
cursor: 'sw-resize',
|
|
7620
|
+
resize: props => {
|
|
7621
|
+
this.resizeS(props);
|
|
7622
|
+
this.resizeW(props);
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
sww: {
|
|
7626
|
+
color: 'yellow',
|
|
7627
|
+
bottom: 0,
|
|
7628
|
+
left: 0,
|
|
7629
|
+
width: `${this.props.thick}px`,
|
|
7630
|
+
height: `${this.props.thick + this.borderLong}px`,
|
|
7631
|
+
cursor: 'sw-resize',
|
|
7632
|
+
resize: props => {
|
|
7633
|
+
this.resizeS(props);
|
|
7634
|
+
this.resizeW(props);
|
|
7635
|
+
}
|
|
7636
|
+
}
|
|
7637
|
+
};
|
|
7638
|
+
resizeN = ({
|
|
7639
|
+
window,
|
|
7640
|
+
cursorY,
|
|
7641
|
+
startY,
|
|
7642
|
+
startHeight,
|
|
7643
|
+
titleBarHeight
|
|
7644
|
+
}) => {
|
|
7645
|
+
let y = cursorY - this.props.thick;
|
|
7646
|
+
if (y < 0) y = 0;
|
|
7647
|
+
let height = startHeight + (startY - y);
|
|
7648
|
+
if (height < titleBarHeight + this.props.thick * 2) {
|
|
7649
|
+
height = titleBarHeight + this.props.thick * 2;
|
|
7650
|
+
y = startY + startHeight - titleBarHeight - this.props.thick * 2;
|
|
7651
|
+
}
|
|
7652
|
+
window.style.top = `${y}px`;
|
|
7653
|
+
window.style.height = `${height}px`;
|
|
7654
|
+
};
|
|
7655
|
+
resizeE = ({
|
|
7656
|
+
window,
|
|
7657
|
+
clientX,
|
|
7658
|
+
left,
|
|
7659
|
+
titleBarHeight
|
|
7660
|
+
}) => {
|
|
7661
|
+
let width = clientX - left - this.props.thick;
|
|
7662
|
+
if (width < titleBarHeight) width = titleBarHeight;
|
|
7663
|
+
window.style.width = `${width + this.props.thick * 2}px`;
|
|
7664
|
+
};
|
|
7665
|
+
resizeS = ({
|
|
7666
|
+
window,
|
|
7667
|
+
clientY,
|
|
7668
|
+
top,
|
|
7669
|
+
titleBarHeight
|
|
7670
|
+
}) => {
|
|
7671
|
+
let height = clientY - top - this.props.thick;
|
|
7672
|
+
if (height < titleBarHeight) height = titleBarHeight;
|
|
7673
|
+
window.style.height = `${height + this.props.thick * 2}px`;
|
|
7674
|
+
};
|
|
7675
|
+
resizeW = ({
|
|
7676
|
+
window,
|
|
7677
|
+
cursorX,
|
|
7678
|
+
startX,
|
|
7679
|
+
startWidth,
|
|
7680
|
+
titleBarHeight
|
|
7681
|
+
}) => {
|
|
7682
|
+
let x = cursorX - this.props.thick;
|
|
7683
|
+
if (x < 0) x = 0;
|
|
7684
|
+
let width = startWidth + (startX - x);
|
|
7685
|
+
if (width < titleBarHeight + this.props.thick * 2) {
|
|
7686
|
+
width = titleBarHeight + this.props.thick * 2;
|
|
7687
|
+
x = startX + startWidth - titleBarHeight - this.props.thick * 2;
|
|
7688
|
+
}
|
|
7689
|
+
window.style.left = `${x}px`;
|
|
7690
|
+
window.style.width = `${width}px`;
|
|
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
|
+
};
|
|
7715
|
+
move = e => {
|
|
7716
|
+
e.preventDefault();
|
|
7717
|
+
const {
|
|
7718
|
+
clientX,
|
|
7719
|
+
clientY,
|
|
7720
|
+
x: cursorX,
|
|
7721
|
+
y: cursorY
|
|
7722
|
+
} = e;
|
|
7723
|
+
const window = this.props.windowRef.current;
|
|
7724
|
+
const {
|
|
7725
|
+
left,
|
|
7726
|
+
top
|
|
7727
|
+
} = window.getBoundingClientRect();
|
|
7728
|
+
const {
|
|
7729
|
+
x: startX,
|
|
7730
|
+
width: startWidth,
|
|
7731
|
+
y: startY,
|
|
7732
|
+
height: startHeight,
|
|
7733
|
+
titleBarHeight
|
|
7734
|
+
} = this.data;
|
|
7735
|
+
this.directions[this.props.direction].resize({
|
|
7736
|
+
window,
|
|
7737
|
+
titleBarHeight,
|
|
7738
|
+
clientX,
|
|
7739
|
+
cursorX,
|
|
7740
|
+
startX,
|
|
7741
|
+
startWidth,
|
|
7742
|
+
left,
|
|
7743
|
+
clientY,
|
|
7744
|
+
cursorY,
|
|
7745
|
+
startY,
|
|
7746
|
+
startHeight,
|
|
7747
|
+
top
|
|
7748
|
+
});
|
|
7749
|
+
};
|
|
7750
|
+
start = (e, direction) => {
|
|
7751
|
+
e.preventDefault();
|
|
7752
|
+
const {
|
|
7753
|
+
height: titleBarHeight
|
|
7754
|
+
} = this.props.titleBarRef.current.getBoundingClientRect();
|
|
7755
|
+
let {
|
|
7756
|
+
x,
|
|
7757
|
+
y,
|
|
7758
|
+
width,
|
|
7759
|
+
height
|
|
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
|
+
}
|
|
7769
|
+
this.data = {
|
|
7770
|
+
x,
|
|
7771
|
+
y,
|
|
7772
|
+
width,
|
|
7773
|
+
height,
|
|
7774
|
+
titleBarHeight,
|
|
7775
|
+
direction
|
|
7776
|
+
};
|
|
7777
|
+
this.props.windowRef.current.style.transition = 'unset';
|
|
7778
|
+
document.body.style.cursor = this.directions[this.props.direction].cursor;
|
|
7779
|
+
window.addEventListener('mousemove', this.move);
|
|
7780
|
+
window.addEventListener('mouseup', this.stop);
|
|
7781
|
+
};
|
|
7782
|
+
render() {
|
|
7783
|
+
return /*#__PURE__*/React$1.createElement(StyledSlider, {
|
|
7784
|
+
$direction: this.directions[this.props.direction],
|
|
7785
|
+
$padding: this.props.padding,
|
|
7786
|
+
onMouseDown: e => {
|
|
7787
|
+
this.start(e, this.props.direction);
|
|
7788
|
+
}
|
|
7789
|
+
});
|
|
7790
|
+
}
|
|
7791
|
+
}
|
|
7792
|
+
|
|
7793
|
+
const StyledJRWindow = styled__default["default"].div`
|
|
7794
|
+
--jr-window-radius:3px;
|
|
7795
|
+
--padding-child:8px;
|
|
7796
|
+
--transition-x-y:height .1s ease-in, width .1s ease-in;
|
|
7797
|
+
xborder:1px solid gray;
|
|
7798
|
+
position: fixed;
|
|
7799
|
+
padding: ${({
|
|
7800
|
+
$thick
|
|
7801
|
+
}) => $thick}px;
|
|
7802
|
+
border-radius: var(--jr-window-radius);
|
|
7803
|
+
|
|
7804
|
+
top: ${({
|
|
7805
|
+
$y
|
|
7806
|
+
}) => $y}px;
|
|
7807
|
+
left: ${({
|
|
7808
|
+
$x
|
|
7809
|
+
}) => $x}px;
|
|
7810
|
+
width: ${({
|
|
7811
|
+
$width = 300
|
|
7812
|
+
}) => `${$width}px`};
|
|
7813
|
+
height: ${({
|
|
7814
|
+
$height = 300
|
|
7815
|
+
}) => `${$height}px`};
|
|
7816
|
+
overflow: hidden;
|
|
7817
|
+
|
|
7818
|
+
display: flex;
|
|
7819
|
+
flex-direction: column;
|
|
7820
|
+
overflow: hidden;
|
|
7821
|
+
|
|
7822
|
+
> main{
|
|
7823
|
+
border-radius: var(--jr-window-radius);
|
|
7824
|
+
box-shadow: 0px 0px 5px 1px gray;
|
|
7825
|
+
Xbackground: white;
|
|
7826
|
+
display: flex;
|
|
7827
|
+
flex-direction: column;
|
|
7828
|
+
overflow: hidden;
|
|
7829
|
+
flex:1;
|
|
7830
|
+
> main {
|
|
7831
|
+
background: white;
|
|
7832
|
+
Xpadding:var(--padding-child);
|
|
7833
|
+
overflow: overlay;
|
|
7834
|
+
flex:1;
|
|
7835
|
+
display: flex;
|
|
7836
|
+
}
|
|
7837
|
+
}
|
|
7838
|
+
`;
|
|
7839
|
+
class JRWindow extends JRFrame {
|
|
7840
|
+
x = 0;
|
|
7841
|
+
y = 0;
|
|
7842
|
+
width = 300;
|
|
7843
|
+
height = 300;
|
|
7844
|
+
padding = 1;
|
|
7845
|
+
thick = 5;
|
|
7846
|
+
constructor(props) {
|
|
7847
|
+
super(props);
|
|
7848
|
+
this.ref = /*#__PURE__*/React$1.createRef();
|
|
7849
|
+
this.titleBarRef = /*#__PURE__*/React$1.createRef();
|
|
7850
|
+
// if(this.props.popup===true)this.renderer=this.renderWindow
|
|
7851
|
+
this.init();
|
|
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
|
+
}
|
|
7859
|
+
init() {
|
|
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;
|
|
7862
|
+
this.x = this.props.x ?? (window.innerWidth - (this.width ?? 300)) / 2;
|
|
7863
|
+
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7864
|
+
}
|
|
7865
|
+
renderer() {
|
|
7866
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React$1.createElement(StyledJRWindow, {
|
|
7867
|
+
ref: this.ref,
|
|
7868
|
+
className: `jr-window ${this.props.className ?? ''}`,
|
|
7869
|
+
$x: this.x,
|
|
7870
|
+
$y: this.y,
|
|
7871
|
+
$width: this.width,
|
|
7872
|
+
$height: this.height,
|
|
7873
|
+
$thick: this.thick
|
|
7874
|
+
// onMouseDown={()=>{
|
|
7875
|
+
// po('onFocus')
|
|
7876
|
+
// this.ref.current.style.zIndex=100
|
|
7877
|
+
// }}
|
|
7878
|
+
}, /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(TitleBar, {
|
|
7879
|
+
titleBarRef: this.titleBarRef,
|
|
7880
|
+
windowRef: this.ref,
|
|
7881
|
+
window: this,
|
|
7882
|
+
title: this.props.title,
|
|
7883
|
+
thick: this.thick
|
|
7884
|
+
}), /*#__PURE__*/React$1.createElement("main", null, super.renderer())), /*#__PURE__*/React$1.createElement(Sliders, {
|
|
7885
|
+
thick: this.thick,
|
|
7886
|
+
windowRef: this.ref,
|
|
7887
|
+
window: this,
|
|
7888
|
+
titleBarRef: this.titleBarRef
|
|
7889
|
+
})) : '' : super.renderer();
|
|
7890
|
+
}
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7187
7893
|
const getMapObject = (map, names) => {
|
|
7188
7894
|
const name = names.shift(names);
|
|
7189
7895
|
if (names.length) {
|
|
@@ -7203,13 +7909,13 @@ const setMapObject = (map, names, value) => {
|
|
|
7203
7909
|
map[name] = value;
|
|
7204
7910
|
}
|
|
7205
7911
|
};
|
|
7206
|
-
class JRTable extends
|
|
7912
|
+
class JRTable extends JRWindow {
|
|
7207
7913
|
constructor(props) {
|
|
7208
7914
|
super(props);
|
|
7209
|
-
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7915
|
+
this.colGroupRef = /*#__PURE__*/React$1.createRef();
|
|
7210
7916
|
}
|
|
7211
7917
|
UNSAFE_componentWillMount() {
|
|
7212
|
-
this.setColumns(this.props.columns);
|
|
7918
|
+
this.setColumns(this.props.columns ?? []);
|
|
7213
7919
|
}
|
|
7214
7920
|
|
|
7215
7921
|
//------------------------------------------------------------------------------------
|
|
@@ -7223,7 +7929,7 @@ class JRTable extends JRFrame {
|
|
|
7223
7929
|
value,
|
|
7224
7930
|
onChange
|
|
7225
7931
|
}) {
|
|
7226
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7932
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7227
7933
|
checked: value,
|
|
7228
7934
|
onChange: e => {
|
|
7229
7935
|
onChange(e.target.checked);
|
|
@@ -7262,7 +7968,7 @@ class JRTable extends JRFrame {
|
|
|
7262
7968
|
value,
|
|
7263
7969
|
onChange
|
|
7264
7970
|
}) {
|
|
7265
|
-
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7971
|
+
return /*#__PURE__*/React$1.createElement("checkbox", {
|
|
7266
7972
|
checked: value,
|
|
7267
7973
|
onChange: e => {
|
|
7268
7974
|
onChange(e.target.checked);
|
|
@@ -7272,7 +7978,7 @@ class JRTable extends JRFrame {
|
|
|
7272
7978
|
align: 'center',
|
|
7273
7979
|
name,
|
|
7274
7980
|
label() {
|
|
7275
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
7981
|
+
return /*#__PURE__*/React$1.createElement("button", {
|
|
7276
7982
|
onClick: () => {
|
|
7277
7983
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7278
7984
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -7395,25 +8101,25 @@ class JRTable extends JRFrame {
|
|
|
7395
8101
|
}
|
|
7396
8102
|
//------------------------------------------------------------------------------------
|
|
7397
8103
|
renderMe() {
|
|
7398
|
-
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8104
|
+
return /*#__PURE__*/React$1.createElement(StyledJRTable, {
|
|
7399
8105
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
7400
|
-
}, /*#__PURE__*/React.createElement("table", {
|
|
8106
|
+
}, /*#__PURE__*/React$1.createElement("table", {
|
|
7401
8107
|
className: 'jr-table-table'
|
|
7402
|
-
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8108
|
+
}, /*#__PURE__*/React$1.createElement(TBodies, {
|
|
7403
8109
|
table: this,
|
|
7404
8110
|
leafColumns: this.state.leafColumns,
|
|
7405
8111
|
groupHeader: this.props.groupHeader,
|
|
7406
8112
|
groupFooter: this.props.groupFooter,
|
|
7407
8113
|
dataSource: this.getDataSource(),
|
|
7408
8114
|
onRowClick: this.props.onRowClick
|
|
7409
|
-
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8115
|
+
}), /*#__PURE__*/React$1.createElement(TFoot, {
|
|
7410
8116
|
columns: this.props.footColumns,
|
|
7411
8117
|
table: this
|
|
7412
|
-
}), /*#__PURE__*/React.createElement(THead, {
|
|
8118
|
+
}), /*#__PURE__*/React$1.createElement(THead, {
|
|
7413
8119
|
columns: this.state.columns,
|
|
7414
8120
|
leafColumns: this.state.leafColumns,
|
|
7415
8121
|
table: this
|
|
7416
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8122
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
7417
8123
|
className: 'empty'
|
|
7418
8124
|
}, this.noData() && '無資料'));
|
|
7419
8125
|
}
|
|
@@ -7427,7 +8133,8 @@ const StyleJRFields = styled__default["default"].main`
|
|
|
7427
8133
|
flex-direction: column;
|
|
7428
8134
|
flex:1;
|
|
7429
8135
|
overflow: overlay;
|
|
7430
|
-
|
|
8136
|
+
padding: 10px;
|
|
8137
|
+
|
|
7431
8138
|
color:#525252;
|
|
7432
8139
|
|
|
7433
8140
|
>.jr-grid{
|
|
@@ -7490,7 +8197,7 @@ const StyledColumn = styled__default["default"].div`
|
|
|
7490
8197
|
}
|
|
7491
8198
|
}}
|
|
7492
8199
|
`;
|
|
7493
|
-
const StyledColumnLabel = styled__default["default"].
|
|
8200
|
+
const StyledColumnLabel = styled__default["default"].div`
|
|
7494
8201
|
${({
|
|
7495
8202
|
$layout
|
|
7496
8203
|
}) => {
|
|
@@ -7601,7 +8308,7 @@ function requiredValidator({
|
|
|
7601
8308
|
};
|
|
7602
8309
|
}
|
|
7603
8310
|
}
|
|
7604
|
-
class JRFields extends
|
|
8311
|
+
class JRFields extends JRWindow {
|
|
7605
8312
|
UNSAFE_componentWillMount() {
|
|
7606
8313
|
this.#initValidateValue();
|
|
7607
8314
|
}
|
|
@@ -7761,12 +8468,12 @@ class JRFields extends JRFrame {
|
|
|
7761
8468
|
}
|
|
7762
8469
|
if (type) {
|
|
7763
8470
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
7764
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8471
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
7765
8472
|
className: 'jr-column-value',
|
|
7766
8473
|
style: {
|
|
7767
8474
|
gridColumn: label == null ? 'span 2' : null
|
|
7768
8475
|
}
|
|
7769
|
-
}, /*#__PURE__*/React.createElement(type, {
|
|
8476
|
+
}, /*#__PURE__*/React$1.createElement(type, {
|
|
7770
8477
|
value: value,
|
|
7771
8478
|
onChange,
|
|
7772
8479
|
record: parentValue,
|
|
@@ -7777,13 +8484,13 @@ class JRFields extends JRFrame {
|
|
|
7777
8484
|
...column
|
|
7778
8485
|
}));
|
|
7779
8486
|
} else if (column.columns) {
|
|
7780
|
-
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8487
|
+
content = /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
7781
8488
|
cols: column.cols,
|
|
7782
8489
|
className: 'jr-grid',
|
|
7783
8490
|
$gap: gap
|
|
7784
8491
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
7785
8492
|
} else if (name || column.render) {
|
|
7786
|
-
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8493
|
+
content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
|
|
7787
8494
|
className: 'jr-column-value',
|
|
7788
8495
|
style: {
|
|
7789
8496
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -7796,7 +8503,8 @@ class JRFields extends JRFrame {
|
|
|
7796
8503
|
}) : typeof value === 'object' ? JSON.stringify(value) : value);
|
|
7797
8504
|
}
|
|
7798
8505
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
7799
|
-
|
|
8506
|
+
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8507
|
+
return /*#__PURE__*/React$1.createElement(StyledColumn, {
|
|
7800
8508
|
$layout: layout,
|
|
7801
8509
|
$hasLabel: label != null,
|
|
7802
8510
|
key: `f${index}`,
|
|
@@ -7804,17 +8512,18 @@ class JRFields extends JRFrame {
|
|
|
7804
8512
|
className: 'jr-column',
|
|
7805
8513
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
7806
8514
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
7807
|
-
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8515
|
+
}, label != null && /*#__PURE__*/React$1.createElement(StyledColumnLabel, {
|
|
8516
|
+
style: labelStyle,
|
|
7808
8517
|
$required: required,
|
|
7809
8518
|
className: 'label',
|
|
7810
8519
|
$layout: layout,
|
|
7811
8520
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
7812
|
-
}, 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", {
|
|
7813
8522
|
className: "left"
|
|
7814
|
-
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8523
|
+
}, /*#__PURE__*/React$1.createElement(ColumnMessage, {
|
|
7815
8524
|
value: this.getValidateValue(_parentName.join('.')),
|
|
7816
8525
|
record: this.getValue()
|
|
7817
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
8526
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
7818
8527
|
className: "right"
|
|
7819
8528
|
}))
|
|
7820
8529
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -7829,10 +8538,10 @@ class JRFields extends JRFrame {
|
|
|
7829
8538
|
});
|
|
7830
8539
|
}
|
|
7831
8540
|
renderMe() {
|
|
7832
|
-
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8541
|
+
return /*#__PURE__*/React$1.createElement(StyleJRFields, {
|
|
7833
8542
|
className: 'jr-fields',
|
|
7834
8543
|
style: this.props.typeStyle
|
|
7835
|
-
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8544
|
+
}, /*#__PURE__*/React$1.createElement(StyledGrid, {
|
|
7836
8545
|
cols: this.props.cols,
|
|
7837
8546
|
style: this.props.gridStyle,
|
|
7838
8547
|
className: 'jr-grid',
|
|
@@ -7894,7 +8603,7 @@ const FreeType = ({
|
|
|
7894
8603
|
const content = config.bind(me)({
|
|
7895
8604
|
setStyle
|
|
7896
8605
|
});
|
|
7897
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
8606
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
7898
8607
|
className: className,
|
|
7899
8608
|
style: style
|
|
7900
8609
|
}, content);
|
|
@@ -7902,33 +8611,33 @@ const FreeType = ({
|
|
|
7902
8611
|
};
|
|
7903
8612
|
class JRTestReact extends JRSubmit {
|
|
7904
8613
|
renderer() {
|
|
7905
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8614
|
+
return /*#__PURE__*/React$1.createElement(StyledJRFrame, {
|
|
7906
8615
|
style: this.props.style,
|
|
7907
8616
|
className: `${this.props.className} jr-frame`
|
|
7908
|
-
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8617
|
+
}, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7909
8618
|
tag: "div",
|
|
7910
8619
|
config: this.props.start,
|
|
7911
8620
|
me: this,
|
|
7912
8621
|
className: 'start'
|
|
7913
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8622
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7914
8623
|
tag: "header",
|
|
7915
8624
|
config: this.props.top,
|
|
7916
8625
|
me: this
|
|
7917
|
-
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8626
|
+
}), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7918
8627
|
tag: "div",
|
|
7919
8628
|
config: this.props.left,
|
|
7920
8629
|
me: this,
|
|
7921
8630
|
className: 'left'
|
|
7922
|
-
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8631
|
+
}), this.renderMe(), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7923
8632
|
tag: "div",
|
|
7924
8633
|
config: this.props.right,
|
|
7925
8634
|
me: this,
|
|
7926
8635
|
className: 'right'
|
|
7927
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8636
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7928
8637
|
tag: "footer",
|
|
7929
8638
|
config: this.props.bottom,
|
|
7930
8639
|
me: this
|
|
7931
|
-
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8640
|
+
})), /*#__PURE__*/React$1.createElement(FreeType, {
|
|
7932
8641
|
tag: "div",
|
|
7933
8642
|
config: this.props.end,
|
|
7934
8643
|
me: this,
|
|
@@ -7936,7 +8645,7 @@ class JRTestReact extends JRSubmit {
|
|
|
7936
8645
|
}));
|
|
7937
8646
|
}
|
|
7938
8647
|
renderMe() {
|
|
7939
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8648
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
7940
8649
|
style: {
|
|
7941
8650
|
flex: 1
|
|
7942
8651
|
}
|