jrs-react 1.2.10 → 1.2.11
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 +88 -88
- package/build/index.js +88 -88
- package/package.json +1 -1
- package/src/components/JRInput/JRButton.jsx +2 -0
package/build/index.es.js
CHANGED
|
@@ -2807,7 +2807,7 @@ function requireReact () {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
2809
|
var reactExports = requireReact();
|
|
2810
|
-
var React
|
|
2810
|
+
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2811
2811
|
|
|
2812
2812
|
function bind(fn, thisArg) {
|
|
2813
2813
|
return function wrap() {
|
|
@@ -6066,7 +6066,7 @@ const whatType = ({
|
|
|
6066
6066
|
// const style=flexType(typeStyle,me,{},{})
|
|
6067
6067
|
// return 'type'
|
|
6068
6068
|
const typeStyle = typeof _typeStyle === 'function' ? _typeStyle?.bind(me)() : _typeStyle;
|
|
6069
|
-
return /*#__PURE__*/React
|
|
6069
|
+
return /*#__PURE__*/React.createElement(type, {
|
|
6070
6070
|
style: typeStyle
|
|
6071
6071
|
});
|
|
6072
6072
|
} else if (render) {
|
|
@@ -6217,9 +6217,9 @@ const StyledCover = styled.div`
|
|
|
6217
6217
|
const Cover = ({
|
|
6218
6218
|
children
|
|
6219
6219
|
}) => {
|
|
6220
|
-
return /*#__PURE__*/React
|
|
6220
|
+
return /*#__PURE__*/React.createElement(StyledCover, null, children);
|
|
6221
6221
|
};
|
|
6222
|
-
class JRSubmit extends React
|
|
6222
|
+
class JRSubmit extends React.Component {
|
|
6223
6223
|
#methods = ['get', 'post', 'put', 'patch', 'delete', 'download'];
|
|
6224
6224
|
constructor(props) {
|
|
6225
6225
|
super(props);
|
|
@@ -6476,7 +6476,7 @@ class JRSubmit extends React$1.Component {
|
|
|
6476
6476
|
return;
|
|
6477
6477
|
}
|
|
6478
6478
|
render() {
|
|
6479
|
-
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React
|
|
6479
|
+
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
@@ -6494,12 +6494,12 @@ const FreeType$1 = ({
|
|
|
6494
6494
|
const content = config.bind(me)({
|
|
6495
6495
|
setStyle
|
|
6496
6496
|
});
|
|
6497
|
-
return /*#__PURE__*/React
|
|
6497
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
6498
6498
|
className: className,
|
|
6499
6499
|
style: style
|
|
6500
6500
|
}, content);
|
|
6501
6501
|
} else if (typeof config === 'string') {
|
|
6502
|
-
return /*#__PURE__*/React
|
|
6502
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
6503
6503
|
className: className
|
|
6504
6504
|
}, config);
|
|
6505
6505
|
}
|
|
@@ -6541,33 +6541,33 @@ const StyledJRFrame$1 = styled.div`
|
|
|
6541
6541
|
`;
|
|
6542
6542
|
class JRFrame extends JRSubmit {
|
|
6543
6543
|
renderer() {
|
|
6544
|
-
return /*#__PURE__*/React
|
|
6544
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
|
|
6545
6545
|
style: this.props.style,
|
|
6546
6546
|
className: `${this.props.className} jr-frame`
|
|
6547
|
-
}, /*#__PURE__*/React
|
|
6547
|
+
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6548
6548
|
tag: "div",
|
|
6549
6549
|
config: this.props.start,
|
|
6550
6550
|
me: this,
|
|
6551
6551
|
className: 'start'
|
|
6552
|
-
}), /*#__PURE__*/React
|
|
6552
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6553
6553
|
tag: "header",
|
|
6554
6554
|
config: this.props.top,
|
|
6555
6555
|
me: this
|
|
6556
|
-
}), /*#__PURE__*/React
|
|
6556
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6557
6557
|
tag: "div",
|
|
6558
6558
|
config: this.props.left,
|
|
6559
6559
|
me: this,
|
|
6560
6560
|
className: 'left'
|
|
6561
|
-
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React
|
|
6561
|
+
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6562
6562
|
tag: "div",
|
|
6563
6563
|
config: this.props.right,
|
|
6564
6564
|
me: this,
|
|
6565
6565
|
className: 'right'
|
|
6566
|
-
})), /*#__PURE__*/React
|
|
6566
|
+
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6567
6567
|
tag: "footer",
|
|
6568
6568
|
config: this.props.bottom,
|
|
6569
6569
|
me: this
|
|
6570
|
-
})), /*#__PURE__*/React
|
|
6570
|
+
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6571
6571
|
tag: "div",
|
|
6572
6572
|
config: this.props.end,
|
|
6573
6573
|
me: this,
|
|
@@ -6594,10 +6594,10 @@ const StyledSlider$1 = styled.div`
|
|
|
6594
6594
|
border-right:1px dashed gray;
|
|
6595
6595
|
}
|
|
6596
6596
|
`;
|
|
6597
|
-
class Slider$1 extends React
|
|
6597
|
+
class Slider$1 extends React.Component {
|
|
6598
6598
|
constructor() {
|
|
6599
6599
|
super();
|
|
6600
|
-
this.sliderRef = /*#__PURE__*/React
|
|
6600
|
+
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
6601
6601
|
}
|
|
6602
6602
|
stop = e => {
|
|
6603
6603
|
this.sliderRef.current.classList.remove('resizing');
|
|
@@ -6646,7 +6646,7 @@ class Slider$1 extends React$1.Component {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
render() {
|
|
6648
6648
|
const column = this.props.column;
|
|
6649
|
-
return /*#__PURE__*/React
|
|
6649
|
+
return /*#__PURE__*/React.createElement(StyledSlider$1, {
|
|
6650
6650
|
ref: this.sliderRef,
|
|
6651
6651
|
onMouseDown: e => {
|
|
6652
6652
|
this.start(this.props.thRef, column);
|
|
@@ -6659,7 +6659,7 @@ const Colgroup = ({
|
|
|
6659
6659
|
leafColumns,
|
|
6660
6660
|
colGroupRef
|
|
6661
6661
|
}) => {
|
|
6662
|
-
return /*#__PURE__*/React
|
|
6662
|
+
return /*#__PURE__*/React.createElement("colgroup", {
|
|
6663
6663
|
ref: colGroupRef
|
|
6664
6664
|
}, leafColumns?.map((_column, index) => {
|
|
6665
6665
|
const {
|
|
@@ -6669,7 +6669,7 @@ const Colgroup = ({
|
|
|
6669
6669
|
const style = {
|
|
6670
6670
|
width
|
|
6671
6671
|
};
|
|
6672
|
-
return /*#__PURE__*/React
|
|
6672
|
+
return /*#__PURE__*/React.createElement("col", {
|
|
6673
6673
|
style: style,
|
|
6674
6674
|
key: index
|
|
6675
6675
|
});
|
|
@@ -6682,13 +6682,13 @@ const Ths$1 = ({
|
|
|
6682
6682
|
table
|
|
6683
6683
|
}) => {
|
|
6684
6684
|
return rowColumn?.map((column, colIndex) => {
|
|
6685
|
-
const thRef = /*#__PURE__*/React
|
|
6686
|
-
return /*#__PURE__*/React
|
|
6685
|
+
const thRef = /*#__PURE__*/React.createRef();
|
|
6686
|
+
return /*#__PURE__*/React.createElement("th", {
|
|
6687
6687
|
key: colIndex,
|
|
6688
6688
|
ref: thRef,
|
|
6689
6689
|
colSpan: column.colSpan,
|
|
6690
6690
|
rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
|
|
6691
|
-
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React
|
|
6691
|
+
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider$1, {
|
|
6692
6692
|
table: table,
|
|
6693
6693
|
thRef: thRef,
|
|
6694
6694
|
column: column
|
|
@@ -6702,10 +6702,10 @@ const HeadTrs = ({
|
|
|
6702
6702
|
}) => {
|
|
6703
6703
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6704
6704
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6705
|
-
return /*#__PURE__*/React
|
|
6705
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6706
6706
|
className: trClassName,
|
|
6707
6707
|
key: rowIndex
|
|
6708
|
-
}, /*#__PURE__*/React
|
|
6708
|
+
}, /*#__PURE__*/React.createElement(Ths$1, {
|
|
6709
6709
|
deep: columns.length - 1,
|
|
6710
6710
|
rowColumn: rowColumn,
|
|
6711
6711
|
rowIndex: rowIndex,
|
|
@@ -6718,10 +6718,10 @@ const THead = ({
|
|
|
6718
6718
|
leafColumns,
|
|
6719
6719
|
table
|
|
6720
6720
|
}) => {
|
|
6721
|
-
return /*#__PURE__*/React
|
|
6721
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
|
|
6722
6722
|
columns: columns,
|
|
6723
6723
|
table: table
|
|
6724
|
-
})), /*#__PURE__*/React
|
|
6724
|
+
})), /*#__PURE__*/React.createElement(Colgroup, {
|
|
6725
6725
|
leafColumns: leafColumns,
|
|
6726
6726
|
colGroupRef: table.colGroupRef
|
|
6727
6727
|
}));
|
|
@@ -6746,7 +6746,7 @@ const FootThs = ({
|
|
|
6746
6746
|
// }
|
|
6747
6747
|
let style = flexType(column.style, table, {}, {});
|
|
6748
6748
|
const content = whatType(column, table, column.label);
|
|
6749
|
-
return /*#__PURE__*/React
|
|
6749
|
+
return /*#__PURE__*/React.createElement("th", {
|
|
6750
6750
|
style: style,
|
|
6751
6751
|
colSpan: column.colSpan,
|
|
6752
6752
|
rowSpan: column.rowSpan
|
|
@@ -6758,14 +6758,14 @@ const TFoot = ({
|
|
|
6758
6758
|
columns
|
|
6759
6759
|
}) => {
|
|
6760
6760
|
const trs = columns?.map((rowColumn, rowIndex) => {
|
|
6761
|
-
return /*#__PURE__*/React
|
|
6761
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6762
6762
|
key: rowIndex
|
|
6763
|
-
}, /*#__PURE__*/React
|
|
6763
|
+
}, /*#__PURE__*/React.createElement(FootThs, {
|
|
6764
6764
|
columns: rowColumn,
|
|
6765
6765
|
table: table
|
|
6766
6766
|
}));
|
|
6767
6767
|
});
|
|
6768
|
-
return /*#__PURE__*/React
|
|
6768
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
|
|
6769
6769
|
};
|
|
6770
6770
|
|
|
6771
6771
|
function _extends() {
|
|
@@ -6816,7 +6816,7 @@ const Ths = ({
|
|
|
6816
6816
|
content = column.label;
|
|
6817
6817
|
}
|
|
6818
6818
|
// style.textAlign=align
|
|
6819
|
-
return /*#__PURE__*/React
|
|
6819
|
+
return /*#__PURE__*/React.createElement("th", {
|
|
6820
6820
|
key: colIndex,
|
|
6821
6821
|
style: {
|
|
6822
6822
|
textAlign: align,
|
|
@@ -6836,10 +6836,10 @@ const GroupColumns = ({
|
|
|
6836
6836
|
}) => {
|
|
6837
6837
|
const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
|
|
6838
6838
|
return columns?.map((rowColumn, rowIndex) => {
|
|
6839
|
-
return /*#__PURE__*/React
|
|
6839
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6840
6840
|
className: trClassName,
|
|
6841
6841
|
key: rowIndex
|
|
6842
|
-
}, /*#__PURE__*/React
|
|
6842
|
+
}, /*#__PURE__*/React.createElement(Ths, {
|
|
6843
6843
|
table: table,
|
|
6844
6844
|
groupData: groupData,
|
|
6845
6845
|
groupIndex: tbodyIndex,
|
|
@@ -6859,7 +6859,7 @@ styled.tr`
|
|
|
6859
6859
|
}
|
|
6860
6860
|
`;
|
|
6861
6861
|
const GroupHeader = props => {
|
|
6862
|
-
return /*#__PURE__*/React
|
|
6862
|
+
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6863
6863
|
trClassName: 'jr-group-header'
|
|
6864
6864
|
}, props));
|
|
6865
6865
|
};
|
|
@@ -6870,7 +6870,7 @@ styled.tr`
|
|
|
6870
6870
|
}
|
|
6871
6871
|
`;
|
|
6872
6872
|
const GroupFooter = props => {
|
|
6873
|
-
return /*#__PURE__*/React
|
|
6873
|
+
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
6874
6874
|
trClassName: 'jr-group-footer'
|
|
6875
6875
|
}, props));
|
|
6876
6876
|
};
|
|
@@ -6917,7 +6917,7 @@ const Td = ({
|
|
|
6917
6917
|
const typeStyle = flexType(_typeStyle, table, {
|
|
6918
6918
|
record
|
|
6919
6919
|
}, {});
|
|
6920
|
-
content = /*#__PURE__*/React
|
|
6920
|
+
content = /*#__PURE__*/React.createElement(type, {
|
|
6921
6921
|
onChange: _onChange ? e => {
|
|
6922
6922
|
_onChange?.bind(table)(e, {
|
|
6923
6923
|
value,
|
|
@@ -6945,7 +6945,7 @@ const Td = ({
|
|
|
6945
6945
|
} else {
|
|
6946
6946
|
content = value;
|
|
6947
6947
|
}
|
|
6948
|
-
return /*#__PURE__*/React
|
|
6948
|
+
return /*#__PURE__*/React.createElement("td", {
|
|
6949
6949
|
colSpan: style.colSpan,
|
|
6950
6950
|
rowSpan: style.rowSpan,
|
|
6951
6951
|
style: {
|
|
@@ -6964,7 +6964,7 @@ const Tds = ({
|
|
|
6964
6964
|
trIndex
|
|
6965
6965
|
}) => {
|
|
6966
6966
|
return leafColumns?.map((column, tdIndex) => {
|
|
6967
|
-
return /*#__PURE__*/React
|
|
6967
|
+
return /*#__PURE__*/React.createElement(Td, {
|
|
6968
6968
|
column: column,
|
|
6969
6969
|
key: tdIndex,
|
|
6970
6970
|
record: record,
|
|
@@ -6989,14 +6989,14 @@ const TBody = ({
|
|
|
6989
6989
|
table,
|
|
6990
6990
|
tbodyIndex
|
|
6991
6991
|
};
|
|
6992
|
-
return /*#__PURE__*/React
|
|
6992
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
|
|
6993
6993
|
key: `tbody${tbodyIndex}`
|
|
6994
|
-
}, groupData?.length > 0 && /*#__PURE__*/React
|
|
6994
|
+
}, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
|
|
6995
6995
|
groupData: groupData,
|
|
6996
6996
|
columns: groupHeader
|
|
6997
6997
|
}, neededProps)), groupData?.map?.((record, trIndex) => {
|
|
6998
6998
|
const onRowClick = table.props.onRowClick?.bind(table);
|
|
6999
|
-
return /*#__PURE__*/React
|
|
6999
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
7000
7000
|
key: trIndex,
|
|
7001
7001
|
onClick: () => {
|
|
7002
7002
|
onRowClick?.({
|
|
@@ -7005,13 +7005,13 @@ const TBody = ({
|
|
|
7005
7005
|
groupIndex: tbodyIndex
|
|
7006
7006
|
});
|
|
7007
7007
|
}
|
|
7008
|
-
}, /*#__PURE__*/React
|
|
7008
|
+
}, /*#__PURE__*/React.createElement(Tds, _extends({
|
|
7009
7009
|
record: record,
|
|
7010
7010
|
trIndex: trIndex
|
|
7011
7011
|
}, neededProps, {
|
|
7012
7012
|
leafColumns: leafColumns
|
|
7013
7013
|
})));
|
|
7014
|
-
}), groupData?.length > 0 && /*#__PURE__*/React
|
|
7014
|
+
}), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
|
|
7015
7015
|
groupData: groupData,
|
|
7016
7016
|
columns: groupFooter
|
|
7017
7017
|
}, neededProps))));
|
|
@@ -7029,7 +7029,7 @@ const TBodies = ({
|
|
|
7029
7029
|
|
|
7030
7030
|
// po('dataSource',dataSource)
|
|
7031
7031
|
return dataSource?.map((groupData, tbodyIndex, c) => {
|
|
7032
|
-
return /*#__PURE__*/React
|
|
7032
|
+
return /*#__PURE__*/React.createElement(TBody, {
|
|
7033
7033
|
key: `tbody${tbodyIndex}`,
|
|
7034
7034
|
table: table
|
|
7035
7035
|
// dataSource={dataSource}
|
|
@@ -7242,7 +7242,7 @@ const StyledTitle = styled.div`
|
|
|
7242
7242
|
}
|
|
7243
7243
|
}
|
|
7244
7244
|
`;
|
|
7245
|
-
class TitleBar extends React
|
|
7245
|
+
class TitleBar extends React.Component {
|
|
7246
7246
|
pos1 = 0;
|
|
7247
7247
|
pos2 = 0;
|
|
7248
7248
|
pos3 = 0;
|
|
@@ -7320,18 +7320,18 @@ class TitleBar extends React$1.Component {
|
|
|
7320
7320
|
window.addEventListener('mouseup', this.stop);
|
|
7321
7321
|
}
|
|
7322
7322
|
render() {
|
|
7323
|
-
return /*#__PURE__*/React
|
|
7323
|
+
return /*#__PURE__*/React.createElement(StyledTitle, {
|
|
7324
7324
|
ref: this.props.titleBarRef,
|
|
7325
7325
|
draggable: "false",
|
|
7326
7326
|
onMouseDown: e => {
|
|
7327
7327
|
this.start(e);
|
|
7328
7328
|
}
|
|
7329
|
-
}, /*#__PURE__*/React
|
|
7329
|
+
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
7330
7330
|
tag: "div",
|
|
7331
7331
|
config: this.props.title ?? '',
|
|
7332
7332
|
me: this.props.window,
|
|
7333
7333
|
className: 'title'
|
|
7334
|
-
}), /*#__PURE__*/React
|
|
7334
|
+
}), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement(JRButton, null), /*#__PURE__*/React.createElement(JRButton, null), this.props.window.props.setOpen ? /*#__PURE__*/React.createElement(JRButton, {
|
|
7335
7335
|
className: 'danger',
|
|
7336
7336
|
onClick: () => {
|
|
7337
7337
|
this.props.window.props.setOpen(false);
|
|
@@ -7341,9 +7341,9 @@ class TitleBar extends React$1.Component {
|
|
|
7341
7341
|
}
|
|
7342
7342
|
|
|
7343
7343
|
const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
|
|
7344
|
-
class Sliders extends React
|
|
7344
|
+
class Sliders extends React.Component {
|
|
7345
7345
|
render() {
|
|
7346
|
-
return directions.map((direction, index) => /*#__PURE__*/React
|
|
7346
|
+
return directions.map((direction, index) => /*#__PURE__*/React.createElement(Slider, {
|
|
7347
7347
|
direction: direction,
|
|
7348
7348
|
thick: this.props.thick,
|
|
7349
7349
|
windowRef: this.props.windowRef,
|
|
@@ -7408,13 +7408,13 @@ const StyledSlider = styled.div`
|
|
|
7408
7408
|
user-select: none;
|
|
7409
7409
|
|
|
7410
7410
|
`;
|
|
7411
|
-
class Slider extends React
|
|
7411
|
+
class Slider extends React.Component {
|
|
7412
7412
|
width = '3px';
|
|
7413
7413
|
borderWidth = 'px';
|
|
7414
7414
|
borderLong = 30;
|
|
7415
7415
|
constructor(props) {
|
|
7416
7416
|
super(props);
|
|
7417
|
-
this.sliderRef = /*#__PURE__*/React
|
|
7417
|
+
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
7418
7418
|
}
|
|
7419
7419
|
directions = {
|
|
7420
7420
|
n: {
|
|
@@ -7711,7 +7711,7 @@ class Slider extends React$1.Component {
|
|
|
7711
7711
|
window.addEventListener('mouseup', this.stop);
|
|
7712
7712
|
};
|
|
7713
7713
|
render() {
|
|
7714
|
-
return /*#__PURE__*/React
|
|
7714
|
+
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
7715
7715
|
$direction: this.directions[this.props.direction],
|
|
7716
7716
|
$padding: this.props.padding,
|
|
7717
7717
|
onMouseDown: e => {
|
|
@@ -7776,8 +7776,8 @@ class JRWindow extends JRFrame {
|
|
|
7776
7776
|
thick = 5;
|
|
7777
7777
|
constructor(props) {
|
|
7778
7778
|
super(props);
|
|
7779
|
-
this.ref = /*#__PURE__*/React
|
|
7780
|
-
this.titleBarRef = /*#__PURE__*/React
|
|
7779
|
+
this.ref = /*#__PURE__*/React.createRef();
|
|
7780
|
+
this.titleBarRef = /*#__PURE__*/React.createRef();
|
|
7781
7781
|
this.init();
|
|
7782
7782
|
}
|
|
7783
7783
|
componentWillUpdate(prevProps, prevState, snapshot) {
|
|
@@ -7792,7 +7792,7 @@ class JRWindow extends JRFrame {
|
|
|
7792
7792
|
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7793
7793
|
}
|
|
7794
7794
|
renderer() {
|
|
7795
|
-
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React
|
|
7795
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React.createElement(StyledJRWindow, {
|
|
7796
7796
|
ref: this.ref,
|
|
7797
7797
|
className: `jr-window ${this.props.className ?? ''}`,
|
|
7798
7798
|
$x: this.x,
|
|
@@ -7800,13 +7800,13 @@ class JRWindow extends JRFrame {
|
|
|
7800
7800
|
$width: this.width,
|
|
7801
7801
|
$height: this.height,
|
|
7802
7802
|
$thick: this.thick
|
|
7803
|
-
}, /*#__PURE__*/React
|
|
7803
|
+
}, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
|
|
7804
7804
|
titleBarRef: this.titleBarRef,
|
|
7805
7805
|
windowRef: this.ref,
|
|
7806
7806
|
window: this,
|
|
7807
7807
|
title: this.props.title,
|
|
7808
7808
|
thick: this.thick
|
|
7809
|
-
}), /*#__PURE__*/React
|
|
7809
|
+
}), /*#__PURE__*/React.createElement("main", null, super.renderer())), /*#__PURE__*/React.createElement(Sliders, {
|
|
7810
7810
|
thick: this.thick,
|
|
7811
7811
|
windowRef: this.ref,
|
|
7812
7812
|
window: this,
|
|
@@ -7837,7 +7837,7 @@ const setMapObject = (map, names, value) => {
|
|
|
7837
7837
|
class JRTable extends JRWindow {
|
|
7838
7838
|
constructor(props) {
|
|
7839
7839
|
super(props);
|
|
7840
|
-
this.colGroupRef = /*#__PURE__*/React
|
|
7840
|
+
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7841
7841
|
}
|
|
7842
7842
|
UNSAFE_componentWillMount() {
|
|
7843
7843
|
this.setColumns(this.props.columns ?? []);
|
|
@@ -7854,7 +7854,7 @@ class JRTable extends JRWindow {
|
|
|
7854
7854
|
value,
|
|
7855
7855
|
onChange
|
|
7856
7856
|
}) {
|
|
7857
|
-
return /*#__PURE__*/React
|
|
7857
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7858
7858
|
checked: value,
|
|
7859
7859
|
onChange: e => {
|
|
7860
7860
|
onChange(e.target.checked);
|
|
@@ -7893,7 +7893,7 @@ class JRTable extends JRWindow {
|
|
|
7893
7893
|
value,
|
|
7894
7894
|
onChange
|
|
7895
7895
|
}) {
|
|
7896
|
-
return /*#__PURE__*/React
|
|
7896
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7897
7897
|
checked: value,
|
|
7898
7898
|
onChange: e => {
|
|
7899
7899
|
onChange(e.target.checked);
|
|
@@ -7903,7 +7903,7 @@ class JRTable extends JRWindow {
|
|
|
7903
7903
|
align: 'center',
|
|
7904
7904
|
name,
|
|
7905
7905
|
label() {
|
|
7906
|
-
return /*#__PURE__*/React
|
|
7906
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
7907
7907
|
onClick: () => {
|
|
7908
7908
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7909
7909
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -8026,25 +8026,25 @@ class JRTable extends JRWindow {
|
|
|
8026
8026
|
}
|
|
8027
8027
|
//------------------------------------------------------------------------------------
|
|
8028
8028
|
renderMe() {
|
|
8029
|
-
return /*#__PURE__*/React
|
|
8029
|
+
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8030
8030
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
8031
|
-
}, /*#__PURE__*/React
|
|
8031
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8032
8032
|
className: 'jr-table-table'
|
|
8033
|
-
}, /*#__PURE__*/React
|
|
8033
|
+
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8034
8034
|
table: this,
|
|
8035
8035
|
leafColumns: this.state.leafColumns,
|
|
8036
8036
|
groupHeader: this.props.groupHeader,
|
|
8037
8037
|
groupFooter: this.props.groupFooter,
|
|
8038
8038
|
dataSource: this.getDataSource(),
|
|
8039
8039
|
onRowClick: this.props.onRowClick
|
|
8040
|
-
}), /*#__PURE__*/React
|
|
8040
|
+
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8041
8041
|
columns: this.props.footColumns,
|
|
8042
8042
|
table: this
|
|
8043
|
-
}), /*#__PURE__*/React
|
|
8043
|
+
}), /*#__PURE__*/React.createElement(THead, {
|
|
8044
8044
|
columns: this.state.columns,
|
|
8045
8045
|
leafColumns: this.state.leafColumns,
|
|
8046
8046
|
table: this
|
|
8047
|
-
})), /*#__PURE__*/React
|
|
8047
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8048
8048
|
className: 'empty'
|
|
8049
8049
|
}, this.noData() && '無資料'));
|
|
8050
8050
|
}
|
|
@@ -8393,12 +8393,12 @@ class JRFields extends JRWindow {
|
|
|
8393
8393
|
}
|
|
8394
8394
|
if (type) {
|
|
8395
8395
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
8396
|
-
content = /*#__PURE__*/React
|
|
8396
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8397
8397
|
className: 'jr-column-value',
|
|
8398
8398
|
style: {
|
|
8399
8399
|
gridColumn: label == null ? 'span 2' : null
|
|
8400
8400
|
}
|
|
8401
|
-
}, /*#__PURE__*/React
|
|
8401
|
+
}, /*#__PURE__*/React.createElement(type, {
|
|
8402
8402
|
value: value,
|
|
8403
8403
|
onChange,
|
|
8404
8404
|
record: parentValue,
|
|
@@ -8409,13 +8409,13 @@ class JRFields extends JRWindow {
|
|
|
8409
8409
|
...column
|
|
8410
8410
|
}));
|
|
8411
8411
|
} else if (column.columns) {
|
|
8412
|
-
content = /*#__PURE__*/React
|
|
8412
|
+
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8413
8413
|
cols: column.cols,
|
|
8414
8414
|
className: 'jr-grid',
|
|
8415
8415
|
$gap: gap
|
|
8416
8416
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
8417
8417
|
} else if (name || column.render) {
|
|
8418
|
-
content = /*#__PURE__*/React
|
|
8418
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8419
8419
|
className: 'jr-column-value',
|
|
8420
8420
|
style: {
|
|
8421
8421
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -8429,7 +8429,7 @@ class JRFields extends JRWindow {
|
|
|
8429
8429
|
}
|
|
8430
8430
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
8431
8431
|
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8432
|
-
return /*#__PURE__*/React
|
|
8432
|
+
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
8433
8433
|
$layout: layout,
|
|
8434
8434
|
$hasLabel: label != null,
|
|
8435
8435
|
key: `f${index}`,
|
|
@@ -8437,18 +8437,18 @@ class JRFields extends JRWindow {
|
|
|
8437
8437
|
className: 'jr-column',
|
|
8438
8438
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
8439
8439
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
8440
|
-
}, label != null && /*#__PURE__*/React
|
|
8440
|
+
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8441
8441
|
style: labelStyle,
|
|
8442
8442
|
$required: required,
|
|
8443
8443
|
className: 'label',
|
|
8444
8444
|
$layout: layout,
|
|
8445
8445
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
8446
|
-
}, label), content, this.props.debugMode && /*#__PURE__*/React
|
|
8446
|
+
}, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
|
|
8447
8447
|
className: "left"
|
|
8448
|
-
}, /*#__PURE__*/React
|
|
8448
|
+
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8449
8449
|
value: this.getValidateValue(_parentName.join('.')),
|
|
8450
8450
|
record: this.getValue()
|
|
8451
|
-
})), /*#__PURE__*/React
|
|
8451
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8452
8452
|
className: "right"
|
|
8453
8453
|
}))
|
|
8454
8454
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -8463,10 +8463,10 @@ class JRFields extends JRWindow {
|
|
|
8463
8463
|
});
|
|
8464
8464
|
}
|
|
8465
8465
|
renderMe() {
|
|
8466
|
-
return /*#__PURE__*/React
|
|
8466
|
+
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8467
8467
|
className: 'jr-fields',
|
|
8468
8468
|
style: this.props.typeStyle
|
|
8469
|
-
}, /*#__PURE__*/React
|
|
8469
|
+
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8470
8470
|
cols: this.props.cols,
|
|
8471
8471
|
style: this.props.gridStyle,
|
|
8472
8472
|
className: 'jr-grid',
|
|
@@ -8528,7 +8528,7 @@ const FreeType = ({
|
|
|
8528
8528
|
const content = config.bind(me)({
|
|
8529
8529
|
setStyle
|
|
8530
8530
|
});
|
|
8531
|
-
return /*#__PURE__*/React
|
|
8531
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
8532
8532
|
className: className,
|
|
8533
8533
|
style: style
|
|
8534
8534
|
}, content);
|
|
@@ -8536,33 +8536,33 @@ const FreeType = ({
|
|
|
8536
8536
|
};
|
|
8537
8537
|
class JRTestReact extends JRSubmit {
|
|
8538
8538
|
renderer() {
|
|
8539
|
-
return /*#__PURE__*/React
|
|
8539
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8540
8540
|
style: this.props.style,
|
|
8541
8541
|
className: `${this.props.className} jr-frame`
|
|
8542
|
-
}, /*#__PURE__*/React
|
|
8542
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8543
8543
|
tag: "div",
|
|
8544
8544
|
config: this.props.start,
|
|
8545
8545
|
me: this,
|
|
8546
8546
|
className: 'start'
|
|
8547
|
-
}), /*#__PURE__*/React
|
|
8547
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8548
8548
|
tag: "header",
|
|
8549
8549
|
config: this.props.top,
|
|
8550
8550
|
me: this
|
|
8551
|
-
}), /*#__PURE__*/React
|
|
8551
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8552
8552
|
tag: "div",
|
|
8553
8553
|
config: this.props.left,
|
|
8554
8554
|
me: this,
|
|
8555
8555
|
className: 'left'
|
|
8556
|
-
}), this.renderMe(), /*#__PURE__*/React
|
|
8556
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8557
8557
|
tag: "div",
|
|
8558
8558
|
config: this.props.right,
|
|
8559
8559
|
me: this,
|
|
8560
8560
|
className: 'right'
|
|
8561
|
-
})), /*#__PURE__*/React
|
|
8561
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8562
8562
|
tag: "footer",
|
|
8563
8563
|
config: this.props.bottom,
|
|
8564
8564
|
me: this
|
|
8565
|
-
})), /*#__PURE__*/React
|
|
8565
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8566
8566
|
tag: "div",
|
|
8567
8567
|
config: this.props.end,
|
|
8568
8568
|
me: this,
|
|
@@ -8570,7 +8570,7 @@ class JRTestReact extends JRSubmit {
|
|
|
8570
8570
|
}));
|
|
8571
8571
|
}
|
|
8572
8572
|
renderMe() {
|
|
8573
|
-
return /*#__PURE__*/React
|
|
8573
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8574
8574
|
style: {
|
|
8575
8575
|
flex: 1
|
|
8576
8576
|
}
|
package/build/index.js
CHANGED
|
@@ -2815,7 +2815,7 @@ function requireReact () {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
var reactExports = requireReact();
|
|
2818
|
-
var React
|
|
2818
|
+
var React = /*@__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
|
|
6077
|
+
return /*#__PURE__*/React.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
|
|
6228
|
+
return /*#__PURE__*/React.createElement(StyledCover, null, children);
|
|
6229
6229
|
};
|
|
6230
|
-
class JRSubmit extends React
|
|
6230
|
+
class JRSubmit extends React.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$1.Component {
|
|
|
6484
6484
|
return;
|
|
6485
6485
|
}
|
|
6486
6486
|
render() {
|
|
6487
|
-
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React
|
|
6487
|
+
return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.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
|
|
6505
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
6506
6506
|
className: className,
|
|
6507
6507
|
style: style
|
|
6508
6508
|
}, content);
|
|
6509
6509
|
} else if (typeof config === 'string') {
|
|
6510
|
-
return /*#__PURE__*/React
|
|
6510
|
+
return /*#__PURE__*/React.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
|
|
6552
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
|
|
6553
6553
|
style: this.props.style,
|
|
6554
6554
|
className: `${this.props.className} jr-frame`
|
|
6555
|
-
}, /*#__PURE__*/React
|
|
6555
|
+
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6556
6556
|
tag: "div",
|
|
6557
6557
|
config: this.props.start,
|
|
6558
6558
|
me: this,
|
|
6559
6559
|
className: 'start'
|
|
6560
|
-
}), /*#__PURE__*/React
|
|
6560
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6561
6561
|
tag: "header",
|
|
6562
6562
|
config: this.props.top,
|
|
6563
6563
|
me: this
|
|
6564
|
-
}), /*#__PURE__*/React
|
|
6564
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.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
|
|
6569
|
+
}), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6570
6570
|
tag: "div",
|
|
6571
6571
|
config: this.props.right,
|
|
6572
6572
|
me: this,
|
|
6573
6573
|
className: 'right'
|
|
6574
|
-
})), /*#__PURE__*/React
|
|
6574
|
+
})), /*#__PURE__*/React.createElement(FreeType$1, {
|
|
6575
6575
|
tag: "footer",
|
|
6576
6576
|
config: this.props.bottom,
|
|
6577
6577
|
me: this
|
|
6578
|
-
})), /*#__PURE__*/React
|
|
6578
|
+
})), /*#__PURE__*/React.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
|
|
6605
|
+
class Slider$1 extends React.Component {
|
|
6606
6606
|
constructor() {
|
|
6607
6607
|
super();
|
|
6608
|
-
this.sliderRef = /*#__PURE__*/React
|
|
6608
|
+
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
6609
6609
|
}
|
|
6610
6610
|
stop = e => {
|
|
6611
6611
|
this.sliderRef.current.classList.remove('resizing');
|
|
@@ -6654,7 +6654,7 @@ class Slider$1 extends React$1.Component {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
render() {
|
|
6656
6656
|
const column = this.props.column;
|
|
6657
|
-
return /*#__PURE__*/React
|
|
6657
|
+
return /*#__PURE__*/React.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
|
|
6670
|
+
return /*#__PURE__*/React.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
|
|
6680
|
+
return /*#__PURE__*/React.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
|
|
6694
|
-
return /*#__PURE__*/React
|
|
6693
|
+
const thRef = /*#__PURE__*/React.createRef();
|
|
6694
|
+
return /*#__PURE__*/React.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
|
|
6699
|
+
}, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.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
|
|
6713
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6714
6714
|
className: trClassName,
|
|
6715
6715
|
key: rowIndex
|
|
6716
|
-
}, /*#__PURE__*/React
|
|
6716
|
+
}, /*#__PURE__*/React.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
|
|
6729
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
|
|
6730
6730
|
columns: columns,
|
|
6731
6731
|
table: table
|
|
6732
|
-
})), /*#__PURE__*/React
|
|
6732
|
+
})), /*#__PURE__*/React.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
|
|
6757
|
+
return /*#__PURE__*/React.createElement("th", {
|
|
6758
6758
|
style: style,
|
|
6759
6759
|
colSpan: column.colSpan,
|
|
6760
6760
|
rowSpan: column.rowSpan
|
|
@@ -6766,14 +6766,14 @@ const TFoot = ({
|
|
|
6766
6766
|
columns
|
|
6767
6767
|
}) => {
|
|
6768
6768
|
const trs = columns?.map((rowColumn, rowIndex) => {
|
|
6769
|
-
return /*#__PURE__*/React
|
|
6769
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6770
6770
|
key: rowIndex
|
|
6771
|
-
}, /*#__PURE__*/React
|
|
6771
|
+
}, /*#__PURE__*/React.createElement(FootThs, {
|
|
6772
6772
|
columns: rowColumn,
|
|
6773
6773
|
table: table
|
|
6774
6774
|
}));
|
|
6775
6775
|
});
|
|
6776
|
-
return /*#__PURE__*/React
|
|
6776
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
|
|
6777
6777
|
};
|
|
6778
6778
|
|
|
6779
6779
|
function _extends() {
|
|
@@ -6824,7 +6824,7 @@ const Ths = ({
|
|
|
6824
6824
|
content = column.label;
|
|
6825
6825
|
}
|
|
6826
6826
|
// style.textAlign=align
|
|
6827
|
-
return /*#__PURE__*/React
|
|
6827
|
+
return /*#__PURE__*/React.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
|
|
6847
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
6848
6848
|
className: trClassName,
|
|
6849
6849
|
key: rowIndex
|
|
6850
|
-
}, /*#__PURE__*/React
|
|
6850
|
+
}, /*#__PURE__*/React.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
|
|
6870
|
+
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
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
|
|
6881
|
+
return /*#__PURE__*/React.createElement(GroupColumns, _extends({
|
|
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
|
|
6928
|
+
content = /*#__PURE__*/React.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
|
|
6956
|
+
return /*#__PURE__*/React.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
|
|
6975
|
+
return /*#__PURE__*/React.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
|
|
7000
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
|
|
7001
7001
|
key: `tbody${tbodyIndex}`
|
|
7002
|
-
}, groupData?.length > 0 && /*#__PURE__*/React
|
|
7002
|
+
}, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
|
|
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
|
|
7007
|
+
return /*#__PURE__*/React.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
|
|
7016
|
+
}, /*#__PURE__*/React.createElement(Tds, _extends({
|
|
7017
7017
|
record: record,
|
|
7018
7018
|
trIndex: trIndex
|
|
7019
7019
|
}, neededProps, {
|
|
7020
7020
|
leafColumns: leafColumns
|
|
7021
7021
|
})));
|
|
7022
|
-
}), groupData?.length > 0 && /*#__PURE__*/React
|
|
7022
|
+
}), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
|
|
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
|
|
7040
|
+
return /*#__PURE__*/React.createElement(TBody, {
|
|
7041
7041
|
key: `tbody${tbodyIndex}`,
|
|
7042
7042
|
table: table
|
|
7043
7043
|
// dataSource={dataSource}
|
|
@@ -7250,7 +7250,7 @@ const StyledTitle = styled__default["default"].div`
|
|
|
7250
7250
|
}
|
|
7251
7251
|
}
|
|
7252
7252
|
`;
|
|
7253
|
-
class TitleBar extends React
|
|
7253
|
+
class TitleBar extends React.Component {
|
|
7254
7254
|
pos1 = 0;
|
|
7255
7255
|
pos2 = 0;
|
|
7256
7256
|
pos3 = 0;
|
|
@@ -7328,18 +7328,18 @@ class TitleBar extends React$1.Component {
|
|
|
7328
7328
|
window.addEventListener('mouseup', this.stop);
|
|
7329
7329
|
}
|
|
7330
7330
|
render() {
|
|
7331
|
-
return /*#__PURE__*/React
|
|
7331
|
+
return /*#__PURE__*/React.createElement(StyledTitle, {
|
|
7332
7332
|
ref: this.props.titleBarRef,
|
|
7333
7333
|
draggable: "false",
|
|
7334
7334
|
onMouseDown: e => {
|
|
7335
7335
|
this.start(e);
|
|
7336
7336
|
}
|
|
7337
|
-
}, /*#__PURE__*/React
|
|
7337
|
+
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
7338
7338
|
tag: "div",
|
|
7339
7339
|
config: this.props.title ?? '',
|
|
7340
7340
|
me: this.props.window,
|
|
7341
7341
|
className: 'title'
|
|
7342
|
-
}), /*#__PURE__*/React
|
|
7342
|
+
}), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement(JRButton, null), /*#__PURE__*/React.createElement(JRButton, null), this.props.window.props.setOpen ? /*#__PURE__*/React.createElement(JRButton, {
|
|
7343
7343
|
className: 'danger',
|
|
7344
7344
|
onClick: () => {
|
|
7345
7345
|
this.props.window.props.setOpen(false);
|
|
@@ -7349,9 +7349,9 @@ class TitleBar extends React$1.Component {
|
|
|
7349
7349
|
}
|
|
7350
7350
|
|
|
7351
7351
|
const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
|
|
7352
|
-
class Sliders extends React
|
|
7352
|
+
class Sliders extends React.Component {
|
|
7353
7353
|
render() {
|
|
7354
|
-
return directions.map((direction, index) => /*#__PURE__*/React
|
|
7354
|
+
return directions.map((direction, index) => /*#__PURE__*/React.createElement(Slider, {
|
|
7355
7355
|
direction: direction,
|
|
7356
7356
|
thick: this.props.thick,
|
|
7357
7357
|
windowRef: this.props.windowRef,
|
|
@@ -7416,13 +7416,13 @@ const StyledSlider = styled__default["default"].div`
|
|
|
7416
7416
|
user-select: none;
|
|
7417
7417
|
|
|
7418
7418
|
`;
|
|
7419
|
-
class Slider extends React
|
|
7419
|
+
class Slider extends React.Component {
|
|
7420
7420
|
width = '3px';
|
|
7421
7421
|
borderWidth = 'px';
|
|
7422
7422
|
borderLong = 30;
|
|
7423
7423
|
constructor(props) {
|
|
7424
7424
|
super(props);
|
|
7425
|
-
this.sliderRef = /*#__PURE__*/React
|
|
7425
|
+
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
7426
7426
|
}
|
|
7427
7427
|
directions = {
|
|
7428
7428
|
n: {
|
|
@@ -7719,7 +7719,7 @@ class Slider extends React$1.Component {
|
|
|
7719
7719
|
window.addEventListener('mouseup', this.stop);
|
|
7720
7720
|
};
|
|
7721
7721
|
render() {
|
|
7722
|
-
return /*#__PURE__*/React
|
|
7722
|
+
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
7723
7723
|
$direction: this.directions[this.props.direction],
|
|
7724
7724
|
$padding: this.props.padding,
|
|
7725
7725
|
onMouseDown: e => {
|
|
@@ -7784,8 +7784,8 @@ class JRWindow extends JRFrame {
|
|
|
7784
7784
|
thick = 5;
|
|
7785
7785
|
constructor(props) {
|
|
7786
7786
|
super(props);
|
|
7787
|
-
this.ref = /*#__PURE__*/React
|
|
7788
|
-
this.titleBarRef = /*#__PURE__*/React
|
|
7787
|
+
this.ref = /*#__PURE__*/React.createRef();
|
|
7788
|
+
this.titleBarRef = /*#__PURE__*/React.createRef();
|
|
7789
7789
|
this.init();
|
|
7790
7790
|
}
|
|
7791
7791
|
componentWillUpdate(prevProps, prevState, snapshot) {
|
|
@@ -7800,7 +7800,7 @@ class JRWindow extends JRFrame {
|
|
|
7800
7800
|
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7801
7801
|
}
|
|
7802
7802
|
renderer() {
|
|
7803
|
-
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React
|
|
7803
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React.createElement(StyledJRWindow, {
|
|
7804
7804
|
ref: this.ref,
|
|
7805
7805
|
className: `jr-window ${this.props.className ?? ''}`,
|
|
7806
7806
|
$x: this.x,
|
|
@@ -7808,13 +7808,13 @@ class JRWindow extends JRFrame {
|
|
|
7808
7808
|
$width: this.width,
|
|
7809
7809
|
$height: this.height,
|
|
7810
7810
|
$thick: this.thick
|
|
7811
|
-
}, /*#__PURE__*/React
|
|
7811
|
+
}, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
|
|
7812
7812
|
titleBarRef: this.titleBarRef,
|
|
7813
7813
|
windowRef: this.ref,
|
|
7814
7814
|
window: this,
|
|
7815
7815
|
title: this.props.title,
|
|
7816
7816
|
thick: this.thick
|
|
7817
|
-
}), /*#__PURE__*/React
|
|
7817
|
+
}), /*#__PURE__*/React.createElement("main", null, super.renderer())), /*#__PURE__*/React.createElement(Sliders, {
|
|
7818
7818
|
thick: this.thick,
|
|
7819
7819
|
windowRef: this.ref,
|
|
7820
7820
|
window: this,
|
|
@@ -7845,7 +7845,7 @@ const setMapObject = (map, names, value) => {
|
|
|
7845
7845
|
class JRTable extends JRWindow {
|
|
7846
7846
|
constructor(props) {
|
|
7847
7847
|
super(props);
|
|
7848
|
-
this.colGroupRef = /*#__PURE__*/React
|
|
7848
|
+
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7849
7849
|
}
|
|
7850
7850
|
UNSAFE_componentWillMount() {
|
|
7851
7851
|
this.setColumns(this.props.columns ?? []);
|
|
@@ -7862,7 +7862,7 @@ class JRTable extends JRWindow {
|
|
|
7862
7862
|
value,
|
|
7863
7863
|
onChange
|
|
7864
7864
|
}) {
|
|
7865
|
-
return /*#__PURE__*/React
|
|
7865
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7866
7866
|
checked: value,
|
|
7867
7867
|
onChange: e => {
|
|
7868
7868
|
onChange(e.target.checked);
|
|
@@ -7901,7 +7901,7 @@ class JRTable extends JRWindow {
|
|
|
7901
7901
|
value,
|
|
7902
7902
|
onChange
|
|
7903
7903
|
}) {
|
|
7904
|
-
return /*#__PURE__*/React
|
|
7904
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7905
7905
|
checked: value,
|
|
7906
7906
|
onChange: e => {
|
|
7907
7907
|
onChange(e.target.checked);
|
|
@@ -7911,7 +7911,7 @@ class JRTable extends JRWindow {
|
|
|
7911
7911
|
align: 'center',
|
|
7912
7912
|
name,
|
|
7913
7913
|
label() {
|
|
7914
|
-
return /*#__PURE__*/React
|
|
7914
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
7915
7915
|
onClick: () => {
|
|
7916
7916
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7917
7917
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -8034,25 +8034,25 @@ class JRTable extends JRWindow {
|
|
|
8034
8034
|
}
|
|
8035
8035
|
//------------------------------------------------------------------------------------
|
|
8036
8036
|
renderMe() {
|
|
8037
|
-
return /*#__PURE__*/React
|
|
8037
|
+
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8038
8038
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
8039
|
-
}, /*#__PURE__*/React
|
|
8039
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8040
8040
|
className: 'jr-table-table'
|
|
8041
|
-
}, /*#__PURE__*/React
|
|
8041
|
+
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8042
8042
|
table: this,
|
|
8043
8043
|
leafColumns: this.state.leafColumns,
|
|
8044
8044
|
groupHeader: this.props.groupHeader,
|
|
8045
8045
|
groupFooter: this.props.groupFooter,
|
|
8046
8046
|
dataSource: this.getDataSource(),
|
|
8047
8047
|
onRowClick: this.props.onRowClick
|
|
8048
|
-
}), /*#__PURE__*/React
|
|
8048
|
+
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8049
8049
|
columns: this.props.footColumns,
|
|
8050
8050
|
table: this
|
|
8051
|
-
}), /*#__PURE__*/React
|
|
8051
|
+
}), /*#__PURE__*/React.createElement(THead, {
|
|
8052
8052
|
columns: this.state.columns,
|
|
8053
8053
|
leafColumns: this.state.leafColumns,
|
|
8054
8054
|
table: this
|
|
8055
|
-
})), /*#__PURE__*/React
|
|
8055
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8056
8056
|
className: 'empty'
|
|
8057
8057
|
}, this.noData() && '無資料'));
|
|
8058
8058
|
}
|
|
@@ -8401,12 +8401,12 @@ class JRFields extends JRWindow {
|
|
|
8401
8401
|
}
|
|
8402
8402
|
if (type) {
|
|
8403
8403
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
8404
|
-
content = /*#__PURE__*/React
|
|
8404
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8405
8405
|
className: 'jr-column-value',
|
|
8406
8406
|
style: {
|
|
8407
8407
|
gridColumn: label == null ? 'span 2' : null
|
|
8408
8408
|
}
|
|
8409
|
-
}, /*#__PURE__*/React
|
|
8409
|
+
}, /*#__PURE__*/React.createElement(type, {
|
|
8410
8410
|
value: value,
|
|
8411
8411
|
onChange,
|
|
8412
8412
|
record: parentValue,
|
|
@@ -8417,13 +8417,13 @@ class JRFields extends JRWindow {
|
|
|
8417
8417
|
...column
|
|
8418
8418
|
}));
|
|
8419
8419
|
} else if (column.columns) {
|
|
8420
|
-
content = /*#__PURE__*/React
|
|
8420
|
+
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8421
8421
|
cols: column.cols,
|
|
8422
8422
|
className: 'jr-grid',
|
|
8423
8423
|
$gap: gap
|
|
8424
8424
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
8425
8425
|
} else if (name || column.render) {
|
|
8426
|
-
content = /*#__PURE__*/React
|
|
8426
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8427
8427
|
className: 'jr-column-value',
|
|
8428
8428
|
style: {
|
|
8429
8429
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -8437,7 +8437,7 @@ class JRFields extends JRWindow {
|
|
|
8437
8437
|
}
|
|
8438
8438
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
8439
8439
|
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8440
|
-
return /*#__PURE__*/React
|
|
8440
|
+
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
8441
8441
|
$layout: layout,
|
|
8442
8442
|
$hasLabel: label != null,
|
|
8443
8443
|
key: `f${index}`,
|
|
@@ -8445,18 +8445,18 @@ class JRFields extends JRWindow {
|
|
|
8445
8445
|
className: 'jr-column',
|
|
8446
8446
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
8447
8447
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
8448
|
-
}, label != null && /*#__PURE__*/React
|
|
8448
|
+
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8449
8449
|
style: labelStyle,
|
|
8450
8450
|
$required: required,
|
|
8451
8451
|
className: 'label',
|
|
8452
8452
|
$layout: layout,
|
|
8453
8453
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
8454
|
-
}, label), content, this.props.debugMode && /*#__PURE__*/React
|
|
8454
|
+
}, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
|
|
8455
8455
|
className: "left"
|
|
8456
|
-
}, /*#__PURE__*/React
|
|
8456
|
+
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8457
8457
|
value: this.getValidateValue(_parentName.join('.')),
|
|
8458
8458
|
record: this.getValue()
|
|
8459
|
-
})), /*#__PURE__*/React
|
|
8459
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8460
8460
|
className: "right"
|
|
8461
8461
|
}))
|
|
8462
8462
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -8471,10 +8471,10 @@ class JRFields extends JRWindow {
|
|
|
8471
8471
|
});
|
|
8472
8472
|
}
|
|
8473
8473
|
renderMe() {
|
|
8474
|
-
return /*#__PURE__*/React
|
|
8474
|
+
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8475
8475
|
className: 'jr-fields',
|
|
8476
8476
|
style: this.props.typeStyle
|
|
8477
|
-
}, /*#__PURE__*/React
|
|
8477
|
+
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8478
8478
|
cols: this.props.cols,
|
|
8479
8479
|
style: this.props.gridStyle,
|
|
8480
8480
|
className: 'jr-grid',
|
|
@@ -8536,7 +8536,7 @@ const FreeType = ({
|
|
|
8536
8536
|
const content = config.bind(me)({
|
|
8537
8537
|
setStyle
|
|
8538
8538
|
});
|
|
8539
|
-
return /*#__PURE__*/React
|
|
8539
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
8540
8540
|
className: className,
|
|
8541
8541
|
style: style
|
|
8542
8542
|
}, content);
|
|
@@ -8544,33 +8544,33 @@ const FreeType = ({
|
|
|
8544
8544
|
};
|
|
8545
8545
|
class JRTestReact extends JRSubmit {
|
|
8546
8546
|
renderer() {
|
|
8547
|
-
return /*#__PURE__*/React
|
|
8547
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8548
8548
|
style: this.props.style,
|
|
8549
8549
|
className: `${this.props.className} jr-frame`
|
|
8550
|
-
}, /*#__PURE__*/React
|
|
8550
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8551
8551
|
tag: "div",
|
|
8552
8552
|
config: this.props.start,
|
|
8553
8553
|
me: this,
|
|
8554
8554
|
className: 'start'
|
|
8555
|
-
}), /*#__PURE__*/React
|
|
8555
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8556
8556
|
tag: "header",
|
|
8557
8557
|
config: this.props.top,
|
|
8558
8558
|
me: this
|
|
8559
|
-
}), /*#__PURE__*/React
|
|
8559
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8560
8560
|
tag: "div",
|
|
8561
8561
|
config: this.props.left,
|
|
8562
8562
|
me: this,
|
|
8563
8563
|
className: 'left'
|
|
8564
|
-
}), this.renderMe(), /*#__PURE__*/React
|
|
8564
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8565
8565
|
tag: "div",
|
|
8566
8566
|
config: this.props.right,
|
|
8567
8567
|
me: this,
|
|
8568
8568
|
className: 'right'
|
|
8569
|
-
})), /*#__PURE__*/React
|
|
8569
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8570
8570
|
tag: "footer",
|
|
8571
8571
|
config: this.props.bottom,
|
|
8572
8572
|
me: this
|
|
8573
|
-
})), /*#__PURE__*/React
|
|
8573
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8574
8574
|
tag: "div",
|
|
8575
8575
|
config: this.props.end,
|
|
8576
8576
|
me: this,
|
|
@@ -8578,7 +8578,7 @@ class JRTestReact extends JRSubmit {
|
|
|
8578
8578
|
}));
|
|
8579
8579
|
}
|
|
8580
8580
|
renderMe() {
|
|
8581
|
-
return /*#__PURE__*/React
|
|
8581
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8582
8582
|
style: {
|
|
8583
8583
|
flex: 1
|
|
8584
8584
|
}
|
package/package.json
CHANGED