jrs-react 1.2.10 → 1.2.12
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 +152 -91
- package/build/index.js +152 -91
- package/package.json +1 -1
- package/src/components/JRInput/JRButton.jsx +2 -0
- package/src/components/JRWindow/TitleBar.jsx +3 -3
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,24 +6766,24 @@ 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
|
-
function _extends() {
|
|
6780
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
6779
|
+
function _extends$3() {
|
|
6780
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function (n) {
|
|
6781
6781
|
for (var e = 1; e < arguments.length; e++) {
|
|
6782
6782
|
var t = arguments[e];
|
|
6783
6783
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6784
6784
|
}
|
|
6785
6785
|
return n;
|
|
6786
|
-
}, _extends.apply(null, arguments);
|
|
6786
|
+
}, _extends$3.apply(null, arguments);
|
|
6787
6787
|
}
|
|
6788
6788
|
|
|
6789
6789
|
styled__default["default"].tbody`
|
|
@@ -6824,7 +6824,7 @@ const Ths = ({
|
|
|
6824
6824
|
content = column.label;
|
|
6825
6825
|
}
|
|
6826
6826
|
// style.textAlign=align
|
|
6827
|
-
return /*#__PURE__*/React
|
|
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$3({
|
|
6871
6871
|
trClassName: 'jr-group-header'
|
|
6872
6872
|
}, props));
|
|
6873
6873
|
};
|
|
@@ -6878,7 +6878,7 @@ styled__default["default"].tr`
|
|
|
6878
6878
|
}
|
|
6879
6879
|
`;
|
|
6880
6880
|
const GroupFooter = props => {
|
|
6881
|
-
return /*#__PURE__*/React
|
|
6881
|
+
return /*#__PURE__*/React.createElement(GroupColumns, _extends$3({
|
|
6882
6882
|
trClassName: 'jr-group-footer'
|
|
6883
6883
|
}, props));
|
|
6884
6884
|
};
|
|
@@ -6925,7 +6925,7 @@ const Td = ({
|
|
|
6925
6925
|
const typeStyle = flexType(_typeStyle, table, {
|
|
6926
6926
|
record
|
|
6927
6927
|
}, {});
|
|
6928
|
-
content = /*#__PURE__*/React
|
|
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$3({
|
|
7003
7003
|
groupData: groupData,
|
|
7004
7004
|
columns: groupHeader
|
|
7005
7005
|
}, neededProps)), groupData?.map?.((record, trIndex) => {
|
|
7006
7006
|
const onRowClick = table.props.onRowClick?.bind(table);
|
|
7007
|
-
return /*#__PURE__*/React
|
|
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$3({
|
|
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$3({
|
|
7023
7023
|
groupData: groupData,
|
|
7024
7024
|
columns: groupFooter
|
|
7025
7025
|
}, neededProps))));
|
|
@@ -7037,7 +7037,7 @@ const TBodies = ({
|
|
|
7037
7037
|
|
|
7038
7038
|
// po('dataSource',dataSource)
|
|
7039
7039
|
return dataSource?.map((groupData, tbodyIndex, c) => {
|
|
7040
|
-
return /*#__PURE__*/React
|
|
7040
|
+
return /*#__PURE__*/React.createElement(TBody, {
|
|
7041
7041
|
key: `tbody${tbodyIndex}`,
|
|
7042
7042
|
table: table
|
|
7043
7043
|
// dataSource={dataSource}
|
|
@@ -7185,6 +7185,62 @@ const StyledJRTable = styled__default["default"].div`
|
|
|
7185
7185
|
}
|
|
7186
7186
|
`;
|
|
7187
7187
|
|
|
7188
|
+
var _path$1;
|
|
7189
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
7190
|
+
var SvgX = function SvgX(props) {
|
|
7191
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$2({
|
|
7192
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7193
|
+
width: 24,
|
|
7194
|
+
height: 24,
|
|
7195
|
+
fill: "none",
|
|
7196
|
+
stroke: "currentColor",
|
|
7197
|
+
strokeLinecap: "round",
|
|
7198
|
+
strokeLinejoin: "round",
|
|
7199
|
+
strokeWidth: 2
|
|
7200
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/reactExports.createElement("path", {
|
|
7201
|
+
d: "M18 6 6 18M6 6l12 12"
|
|
7202
|
+
})));
|
|
7203
|
+
};
|
|
7204
|
+
|
|
7205
|
+
var _rect;
|
|
7206
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
7207
|
+
var SvgSquare = function SvgSquare(props) {
|
|
7208
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$1({
|
|
7209
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7210
|
+
width: 24,
|
|
7211
|
+
height: 24,
|
|
7212
|
+
fill: "none",
|
|
7213
|
+
stroke: "currentColor",
|
|
7214
|
+
strokeLinecap: "round",
|
|
7215
|
+
strokeLinejoin: "round",
|
|
7216
|
+
strokeWidth: 2
|
|
7217
|
+
}, props), _rect || (_rect = /*#__PURE__*/reactExports.createElement("rect", {
|
|
7218
|
+
width: 18,
|
|
7219
|
+
height: 18,
|
|
7220
|
+
x: 3,
|
|
7221
|
+
y: 3,
|
|
7222
|
+
rx: 2,
|
|
7223
|
+
ry: 2
|
|
7224
|
+
})));
|
|
7225
|
+
};
|
|
7226
|
+
|
|
7227
|
+
var _path;
|
|
7228
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7229
|
+
var SvgMinus = function SvgMinus(props) {
|
|
7230
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends({
|
|
7231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7232
|
+
width: 24,
|
|
7233
|
+
height: 24,
|
|
7234
|
+
fill: "none",
|
|
7235
|
+
stroke: "currentColor",
|
|
7236
|
+
strokeLinecap: "round",
|
|
7237
|
+
strokeLinejoin: "round",
|
|
7238
|
+
strokeWidth: 2
|
|
7239
|
+
}, props), _path || (_path = /*#__PURE__*/reactExports.createElement("path", {
|
|
7240
|
+
d: "M5 12h14"
|
|
7241
|
+
})));
|
|
7242
|
+
};
|
|
7243
|
+
|
|
7188
7244
|
function JRButton({
|
|
7189
7245
|
icon,
|
|
7190
7246
|
children,
|
|
@@ -7250,7 +7306,7 @@ const StyledTitle = styled__default["default"].div`
|
|
|
7250
7306
|
}
|
|
7251
7307
|
}
|
|
7252
7308
|
`;
|
|
7253
|
-
class TitleBar extends React
|
|
7309
|
+
class TitleBar extends React.Component {
|
|
7254
7310
|
pos1 = 0;
|
|
7255
7311
|
pos2 = 0;
|
|
7256
7312
|
pos3 = 0;
|
|
@@ -7328,18 +7384,23 @@ class TitleBar extends React$1.Component {
|
|
|
7328
7384
|
window.addEventListener('mouseup', this.stop);
|
|
7329
7385
|
}
|
|
7330
7386
|
render() {
|
|
7331
|
-
return /*#__PURE__*/React
|
|
7387
|
+
return /*#__PURE__*/React.createElement(StyledTitle, {
|
|
7332
7388
|
ref: this.props.titleBarRef,
|
|
7333
7389
|
draggable: "false",
|
|
7334
7390
|
onMouseDown: e => {
|
|
7335
7391
|
this.start(e);
|
|
7336
7392
|
}
|
|
7337
|
-
}, /*#__PURE__*/React
|
|
7393
|
+
}, /*#__PURE__*/React.createElement(FreeType$1, {
|
|
7338
7394
|
tag: "div",
|
|
7339
7395
|
config: this.props.title ?? '',
|
|
7340
7396
|
me: this.props.window,
|
|
7341
7397
|
className: 'title'
|
|
7342
|
-
}), /*#__PURE__*/React
|
|
7398
|
+
}), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement(JRButton, {
|
|
7399
|
+
icon: /*#__PURE__*/React.createElement(SvgMinus, null)
|
|
7400
|
+
}), /*#__PURE__*/React.createElement(JRButton, {
|
|
7401
|
+
icon: /*#__PURE__*/React.createElement(SvgSquare, null)
|
|
7402
|
+
}), this.props.window.props.setOpen ? /*#__PURE__*/React.createElement(JRButton, {
|
|
7403
|
+
icon: /*#__PURE__*/React.createElement(SvgX, null),
|
|
7343
7404
|
className: 'danger',
|
|
7344
7405
|
onClick: () => {
|
|
7345
7406
|
this.props.window.props.setOpen(false);
|
|
@@ -7349,9 +7410,9 @@ class TitleBar extends React$1.Component {
|
|
|
7349
7410
|
}
|
|
7350
7411
|
|
|
7351
7412
|
const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
|
|
7352
|
-
class Sliders extends React
|
|
7413
|
+
class Sliders extends React.Component {
|
|
7353
7414
|
render() {
|
|
7354
|
-
return directions.map((direction, index) => /*#__PURE__*/React
|
|
7415
|
+
return directions.map((direction, index) => /*#__PURE__*/React.createElement(Slider, {
|
|
7355
7416
|
direction: direction,
|
|
7356
7417
|
thick: this.props.thick,
|
|
7357
7418
|
windowRef: this.props.windowRef,
|
|
@@ -7416,13 +7477,13 @@ const StyledSlider = styled__default["default"].div`
|
|
|
7416
7477
|
user-select: none;
|
|
7417
7478
|
|
|
7418
7479
|
`;
|
|
7419
|
-
class Slider extends React
|
|
7480
|
+
class Slider extends React.Component {
|
|
7420
7481
|
width = '3px';
|
|
7421
7482
|
borderWidth = 'px';
|
|
7422
7483
|
borderLong = 30;
|
|
7423
7484
|
constructor(props) {
|
|
7424
7485
|
super(props);
|
|
7425
|
-
this.sliderRef = /*#__PURE__*/React
|
|
7486
|
+
this.sliderRef = /*#__PURE__*/React.createRef();
|
|
7426
7487
|
}
|
|
7427
7488
|
directions = {
|
|
7428
7489
|
n: {
|
|
@@ -7719,7 +7780,7 @@ class Slider extends React$1.Component {
|
|
|
7719
7780
|
window.addEventListener('mouseup', this.stop);
|
|
7720
7781
|
};
|
|
7721
7782
|
render() {
|
|
7722
|
-
return /*#__PURE__*/React
|
|
7783
|
+
return /*#__PURE__*/React.createElement(StyledSlider, {
|
|
7723
7784
|
$direction: this.directions[this.props.direction],
|
|
7724
7785
|
$padding: this.props.padding,
|
|
7725
7786
|
onMouseDown: e => {
|
|
@@ -7784,8 +7845,8 @@ class JRWindow extends JRFrame {
|
|
|
7784
7845
|
thick = 5;
|
|
7785
7846
|
constructor(props) {
|
|
7786
7847
|
super(props);
|
|
7787
|
-
this.ref = /*#__PURE__*/React
|
|
7788
|
-
this.titleBarRef = /*#__PURE__*/React
|
|
7848
|
+
this.ref = /*#__PURE__*/React.createRef();
|
|
7849
|
+
this.titleBarRef = /*#__PURE__*/React.createRef();
|
|
7789
7850
|
this.init();
|
|
7790
7851
|
}
|
|
7791
7852
|
componentWillUpdate(prevProps, prevState, snapshot) {
|
|
@@ -7800,7 +7861,7 @@ class JRWindow extends JRFrame {
|
|
|
7800
7861
|
this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
|
|
7801
7862
|
}
|
|
7802
7863
|
renderer() {
|
|
7803
|
-
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React
|
|
7864
|
+
return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React.createElement(StyledJRWindow, {
|
|
7804
7865
|
ref: this.ref,
|
|
7805
7866
|
className: `jr-window ${this.props.className ?? ''}`,
|
|
7806
7867
|
$x: this.x,
|
|
@@ -7808,13 +7869,13 @@ class JRWindow extends JRFrame {
|
|
|
7808
7869
|
$width: this.width,
|
|
7809
7870
|
$height: this.height,
|
|
7810
7871
|
$thick: this.thick
|
|
7811
|
-
}, /*#__PURE__*/React
|
|
7872
|
+
}, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
|
|
7812
7873
|
titleBarRef: this.titleBarRef,
|
|
7813
7874
|
windowRef: this.ref,
|
|
7814
7875
|
window: this,
|
|
7815
7876
|
title: this.props.title,
|
|
7816
7877
|
thick: this.thick
|
|
7817
|
-
}), /*#__PURE__*/React
|
|
7878
|
+
}), /*#__PURE__*/React.createElement("main", null, super.renderer())), /*#__PURE__*/React.createElement(Sliders, {
|
|
7818
7879
|
thick: this.thick,
|
|
7819
7880
|
windowRef: this.ref,
|
|
7820
7881
|
window: this,
|
|
@@ -7845,7 +7906,7 @@ const setMapObject = (map, names, value) => {
|
|
|
7845
7906
|
class JRTable extends JRWindow {
|
|
7846
7907
|
constructor(props) {
|
|
7847
7908
|
super(props);
|
|
7848
|
-
this.colGroupRef = /*#__PURE__*/React
|
|
7909
|
+
this.colGroupRef = /*#__PURE__*/React.createRef();
|
|
7849
7910
|
}
|
|
7850
7911
|
UNSAFE_componentWillMount() {
|
|
7851
7912
|
this.setColumns(this.props.columns ?? []);
|
|
@@ -7862,7 +7923,7 @@ class JRTable extends JRWindow {
|
|
|
7862
7923
|
value,
|
|
7863
7924
|
onChange
|
|
7864
7925
|
}) {
|
|
7865
|
-
return /*#__PURE__*/React
|
|
7926
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7866
7927
|
checked: value,
|
|
7867
7928
|
onChange: e => {
|
|
7868
7929
|
onChange(e.target.checked);
|
|
@@ -7901,7 +7962,7 @@ class JRTable extends JRWindow {
|
|
|
7901
7962
|
value,
|
|
7902
7963
|
onChange
|
|
7903
7964
|
}) {
|
|
7904
|
-
return /*#__PURE__*/React
|
|
7965
|
+
return /*#__PURE__*/React.createElement("checkbox", {
|
|
7905
7966
|
checked: value,
|
|
7906
7967
|
onChange: e => {
|
|
7907
7968
|
onChange(e.target.checked);
|
|
@@ -7911,7 +7972,7 @@ class JRTable extends JRWindow {
|
|
|
7911
7972
|
align: 'center',
|
|
7912
7973
|
name,
|
|
7913
7974
|
label() {
|
|
7914
|
-
return /*#__PURE__*/React
|
|
7975
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
7915
7976
|
onClick: () => {
|
|
7916
7977
|
const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
|
|
7917
7978
|
const callback = this.props.delete.callback ?? function (a, b, c) {
|
|
@@ -8034,25 +8095,25 @@ class JRTable extends JRWindow {
|
|
|
8034
8095
|
}
|
|
8035
8096
|
//------------------------------------------------------------------------------------
|
|
8036
8097
|
renderMe() {
|
|
8037
|
-
return /*#__PURE__*/React
|
|
8098
|
+
return /*#__PURE__*/React.createElement(StyledJRTable, {
|
|
8038
8099
|
className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
|
|
8039
|
-
}, /*#__PURE__*/React
|
|
8100
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8040
8101
|
className: 'jr-table-table'
|
|
8041
|
-
}, /*#__PURE__*/React
|
|
8102
|
+
}, /*#__PURE__*/React.createElement(TBodies, {
|
|
8042
8103
|
table: this,
|
|
8043
8104
|
leafColumns: this.state.leafColumns,
|
|
8044
8105
|
groupHeader: this.props.groupHeader,
|
|
8045
8106
|
groupFooter: this.props.groupFooter,
|
|
8046
8107
|
dataSource: this.getDataSource(),
|
|
8047
8108
|
onRowClick: this.props.onRowClick
|
|
8048
|
-
}), /*#__PURE__*/React
|
|
8109
|
+
}), /*#__PURE__*/React.createElement(TFoot, {
|
|
8049
8110
|
columns: this.props.footColumns,
|
|
8050
8111
|
table: this
|
|
8051
|
-
}), /*#__PURE__*/React
|
|
8112
|
+
}), /*#__PURE__*/React.createElement(THead, {
|
|
8052
8113
|
columns: this.state.columns,
|
|
8053
8114
|
leafColumns: this.state.leafColumns,
|
|
8054
8115
|
table: this
|
|
8055
|
-
})), /*#__PURE__*/React
|
|
8116
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8056
8117
|
className: 'empty'
|
|
8057
8118
|
}, this.noData() && '無資料'));
|
|
8058
8119
|
}
|
|
@@ -8401,12 +8462,12 @@ class JRFields extends JRWindow {
|
|
|
8401
8462
|
}
|
|
8402
8463
|
if (type) {
|
|
8403
8464
|
const typeStyle = flexType(_typeStyle, this, null);
|
|
8404
|
-
content = /*#__PURE__*/React
|
|
8465
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8405
8466
|
className: 'jr-column-value',
|
|
8406
8467
|
style: {
|
|
8407
8468
|
gridColumn: label == null ? 'span 2' : null
|
|
8408
8469
|
}
|
|
8409
|
-
}, /*#__PURE__*/React
|
|
8470
|
+
}, /*#__PURE__*/React.createElement(type, {
|
|
8410
8471
|
value: value,
|
|
8411
8472
|
onChange,
|
|
8412
8473
|
record: parentValue,
|
|
@@ -8417,13 +8478,13 @@ class JRFields extends JRWindow {
|
|
|
8417
8478
|
...column
|
|
8418
8479
|
}));
|
|
8419
8480
|
} else if (column.columns) {
|
|
8420
|
-
content = /*#__PURE__*/React
|
|
8481
|
+
content = /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8421
8482
|
cols: column.cols,
|
|
8422
8483
|
className: 'jr-grid',
|
|
8423
8484
|
$gap: gap
|
|
8424
8485
|
}, this.createColumns(value, column.columns, _parentName, fullname));
|
|
8425
8486
|
} else if (name || column.render) {
|
|
8426
|
-
content = /*#__PURE__*/React
|
|
8487
|
+
content = /*#__PURE__*/React.createElement(StyledColumnValue, {
|
|
8427
8488
|
className: 'jr-column-value',
|
|
8428
8489
|
style: {
|
|
8429
8490
|
gridColumn: label == null ? 'span 2' : null,
|
|
@@ -8437,7 +8498,7 @@ class JRFields extends JRWindow {
|
|
|
8437
8498
|
}
|
|
8438
8499
|
const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
|
|
8439
8500
|
const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
|
|
8440
|
-
return /*#__PURE__*/React
|
|
8501
|
+
return /*#__PURE__*/React.createElement(StyledColumn, {
|
|
8441
8502
|
$layout: layout,
|
|
8442
8503
|
$hasLabel: label != null,
|
|
8443
8504
|
key: `f${index}`,
|
|
@@ -8445,18 +8506,18 @@ class JRFields extends JRWindow {
|
|
|
8445
8506
|
className: 'jr-column',
|
|
8446
8507
|
$labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
|
|
8447
8508
|
$valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
|
|
8448
|
-
}, label != null && /*#__PURE__*/React
|
|
8509
|
+
}, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
|
|
8449
8510
|
style: labelStyle,
|
|
8450
8511
|
$required: required,
|
|
8451
8512
|
className: 'label',
|
|
8452
8513
|
$layout: layout,
|
|
8453
8514
|
$colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
|
|
8454
|
-
}, label), content, this.props.debugMode && /*#__PURE__*/React
|
|
8515
|
+
}, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
|
|
8455
8516
|
className: "left"
|
|
8456
|
-
}, /*#__PURE__*/React
|
|
8517
|
+
}, /*#__PURE__*/React.createElement(ColumnMessage, {
|
|
8457
8518
|
value: this.getValidateValue(_parentName.join('.')),
|
|
8458
8519
|
record: this.getValue()
|
|
8459
|
-
})), /*#__PURE__*/React
|
|
8520
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8460
8521
|
className: "right"
|
|
8461
8522
|
}))
|
|
8462
8523
|
// validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
|
|
@@ -8471,10 +8532,10 @@ class JRFields extends JRWindow {
|
|
|
8471
8532
|
});
|
|
8472
8533
|
}
|
|
8473
8534
|
renderMe() {
|
|
8474
|
-
return /*#__PURE__*/React
|
|
8535
|
+
return /*#__PURE__*/React.createElement(StyleJRFields, {
|
|
8475
8536
|
className: 'jr-fields',
|
|
8476
8537
|
style: this.props.typeStyle
|
|
8477
|
-
}, /*#__PURE__*/React
|
|
8538
|
+
}, /*#__PURE__*/React.createElement(StyledGrid, {
|
|
8478
8539
|
cols: this.props.cols,
|
|
8479
8540
|
style: this.props.gridStyle,
|
|
8480
8541
|
className: 'jr-grid',
|
|
@@ -8536,7 +8597,7 @@ const FreeType = ({
|
|
|
8536
8597
|
const content = config.bind(me)({
|
|
8537
8598
|
setStyle
|
|
8538
8599
|
});
|
|
8539
|
-
return /*#__PURE__*/React
|
|
8600
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
8540
8601
|
className: className,
|
|
8541
8602
|
style: style
|
|
8542
8603
|
}, content);
|
|
@@ -8544,33 +8605,33 @@ const FreeType = ({
|
|
|
8544
8605
|
};
|
|
8545
8606
|
class JRTestReact extends JRSubmit {
|
|
8546
8607
|
renderer() {
|
|
8547
|
-
return /*#__PURE__*/React
|
|
8608
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
8548
8609
|
style: this.props.style,
|
|
8549
8610
|
className: `${this.props.className} jr-frame`
|
|
8550
|
-
}, /*#__PURE__*/React
|
|
8611
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
8551
8612
|
tag: "div",
|
|
8552
8613
|
config: this.props.start,
|
|
8553
8614
|
me: this,
|
|
8554
8615
|
className: 'start'
|
|
8555
|
-
}), /*#__PURE__*/React
|
|
8616
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8556
8617
|
tag: "header",
|
|
8557
8618
|
config: this.props.top,
|
|
8558
8619
|
me: this
|
|
8559
|
-
}), /*#__PURE__*/React
|
|
8620
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
8560
8621
|
tag: "div",
|
|
8561
8622
|
config: this.props.left,
|
|
8562
8623
|
me: this,
|
|
8563
8624
|
className: 'left'
|
|
8564
|
-
}), this.renderMe(), /*#__PURE__*/React
|
|
8625
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
8565
8626
|
tag: "div",
|
|
8566
8627
|
config: this.props.right,
|
|
8567
8628
|
me: this,
|
|
8568
8629
|
className: 'right'
|
|
8569
|
-
})), /*#__PURE__*/React
|
|
8630
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8570
8631
|
tag: "footer",
|
|
8571
8632
|
config: this.props.bottom,
|
|
8572
8633
|
me: this
|
|
8573
|
-
})), /*#__PURE__*/React
|
|
8634
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
8574
8635
|
tag: "div",
|
|
8575
8636
|
config: this.props.end,
|
|
8576
8637
|
me: this,
|
|
@@ -8578,7 +8639,7 @@ class JRTestReact extends JRSubmit {
|
|
|
8578
8639
|
}));
|
|
8579
8640
|
}
|
|
8580
8641
|
renderMe() {
|
|
8581
|
-
return /*#__PURE__*/React
|
|
8642
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8582
8643
|
style: {
|
|
8583
8644
|
flex: 1
|
|
8584
8645
|
}
|