jrs-react 1.2.7 → 1.2.9

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 CHANGED
@@ -2807,7 +2807,7 @@ function requireReact () {
2807
2807
  }
2808
2808
 
2809
2809
  var reactExports = requireReact();
2810
- var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2810
+ var React$1 = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2811
2811
 
2812
2812
  function bind(fn, thisArg) {
2813
2813
  return function wrap() {
@@ -6066,7 +6066,7 @@ const whatType = ({
6066
6066
  // const style=flexType(typeStyle,me,{},{})
6067
6067
  // return 'type'
6068
6068
  const typeStyle = typeof _typeStyle === 'function' ? _typeStyle?.bind(me)() : _typeStyle;
6069
- return /*#__PURE__*/React.createElement(type, {
6069
+ return /*#__PURE__*/React$1.createElement(type, {
6070
6070
  style: typeStyle
6071
6071
  });
6072
6072
  } else if (render) {
@@ -6217,9 +6217,9 @@ const StyledCover = styled.div`
6217
6217
  const Cover = ({
6218
6218
  children
6219
6219
  }) => {
6220
- return /*#__PURE__*/React.createElement(StyledCover, null, children);
6220
+ return /*#__PURE__*/React$1.createElement(StyledCover, null, children);
6221
6221
  };
6222
- class JRSubmit extends React.Component {
6222
+ class JRSubmit extends React$1.Component {
6223
6223
  #methods = ['get', 'post', 'put', 'patch', 'delete', 'download'];
6224
6224
  constructor(props) {
6225
6225
  super(props);
@@ -6476,7 +6476,7 @@ class JRSubmit extends React.Component {
6476
6476
  return;
6477
6477
  }
6478
6478
  render() {
6479
- return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
6479
+ return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React$1.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
6480
6480
  }
6481
6481
  }
6482
6482
 
@@ -6494,12 +6494,12 @@ const FreeType$1 = ({
6494
6494
  const content = config.bind(me)({
6495
6495
  setStyle
6496
6496
  });
6497
- return /*#__PURE__*/React.createElement(Tag, {
6497
+ return /*#__PURE__*/React$1.createElement(Tag, {
6498
6498
  className: className,
6499
6499
  style: style
6500
6500
  }, content);
6501
6501
  } else if (typeof config === 'string') {
6502
- return /*#__PURE__*/React.createElement(Tag, {
6502
+ return /*#__PURE__*/React$1.createElement(Tag, {
6503
6503
  className: className
6504
6504
  }, config);
6505
6505
  }
@@ -6541,33 +6541,33 @@ const StyledJRFrame$1 = styled.div`
6541
6541
  `;
6542
6542
  class JRFrame extends JRSubmit {
6543
6543
  renderer() {
6544
- return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
6544
+ return /*#__PURE__*/React$1.createElement(StyledJRFrame$1, {
6545
6545
  style: this.props.style,
6546
6546
  className: `${this.props.className} jr-frame`
6547
- }, /*#__PURE__*/React.createElement(FreeType$1, {
6547
+ }, /*#__PURE__*/React$1.createElement(FreeType$1, {
6548
6548
  tag: "div",
6549
6549
  config: this.props.start,
6550
6550
  me: this,
6551
6551
  className: 'start'
6552
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6552
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
6553
6553
  tag: "header",
6554
6554
  config: this.props.top,
6555
6555
  me: this
6556
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6556
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
6557
6557
  tag: "div",
6558
6558
  config: this.props.left,
6559
6559
  me: this,
6560
6560
  className: 'left'
6561
- }), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
6561
+ }), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React$1.createElement(FreeType$1, {
6562
6562
  tag: "div",
6563
6563
  config: this.props.right,
6564
6564
  me: this,
6565
6565
  className: 'right'
6566
- })), /*#__PURE__*/React.createElement(FreeType$1, {
6566
+ })), /*#__PURE__*/React$1.createElement(FreeType$1, {
6567
6567
  tag: "footer",
6568
6568
  config: this.props.bottom,
6569
6569
  me: this
6570
- })), /*#__PURE__*/React.createElement(FreeType$1, {
6570
+ })), /*#__PURE__*/React$1.createElement(FreeType$1, {
6571
6571
  tag: "div",
6572
6572
  config: this.props.end,
6573
6573
  me: this,
@@ -6594,10 +6594,10 @@ const StyledSlider$1 = styled.div`
6594
6594
  border-right:1px dashed gray;
6595
6595
  }
6596
6596
  `;
6597
- class Slider$1 extends React.Component {
6597
+ class Slider$1 extends React$1.Component {
6598
6598
  constructor() {
6599
6599
  super();
6600
- this.sliderRef = /*#__PURE__*/React.createRef();
6600
+ this.sliderRef = /*#__PURE__*/React$1.createRef();
6601
6601
  }
6602
6602
  stop = e => {
6603
6603
  this.sliderRef.current.classList.remove('resizing');
@@ -6646,7 +6646,7 @@ class Slider$1 extends React.Component {
6646
6646
  }
6647
6647
  render() {
6648
6648
  const column = this.props.column;
6649
- return /*#__PURE__*/React.createElement(StyledSlider$1, {
6649
+ return /*#__PURE__*/React$1.createElement(StyledSlider$1, {
6650
6650
  ref: this.sliderRef,
6651
6651
  onMouseDown: e => {
6652
6652
  this.start(this.props.thRef, column);
@@ -6659,7 +6659,7 @@ const Colgroup = ({
6659
6659
  leafColumns,
6660
6660
  colGroupRef
6661
6661
  }) => {
6662
- return /*#__PURE__*/React.createElement("colgroup", {
6662
+ return /*#__PURE__*/React$1.createElement("colgroup", {
6663
6663
  ref: colGroupRef
6664
6664
  }, leafColumns?.map((_column, index) => {
6665
6665
  const {
@@ -6669,7 +6669,7 @@ const Colgroup = ({
6669
6669
  const style = {
6670
6670
  width
6671
6671
  };
6672
- return /*#__PURE__*/React.createElement("col", {
6672
+ return /*#__PURE__*/React$1.createElement("col", {
6673
6673
  style: style,
6674
6674
  key: index
6675
6675
  });
@@ -6682,13 +6682,13 @@ const Ths$1 = ({
6682
6682
  table
6683
6683
  }) => {
6684
6684
  return rowColumn?.map((column, colIndex) => {
6685
- const thRef = /*#__PURE__*/React.createRef();
6686
- return /*#__PURE__*/React.createElement("th", {
6685
+ const thRef = /*#__PURE__*/React$1.createRef();
6686
+ return /*#__PURE__*/React$1.createElement("th", {
6687
6687
  key: colIndex,
6688
6688
  ref: thRef,
6689
6689
  colSpan: column.colSpan,
6690
6690
  rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
6691
- }, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider$1, {
6691
+ }, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React$1.createElement(Slider$1, {
6692
6692
  table: table,
6693
6693
  thRef: thRef,
6694
6694
  column: column
@@ -6702,10 +6702,10 @@ const HeadTrs = ({
6702
6702
  }) => {
6703
6703
  const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
6704
6704
  return columns?.map((rowColumn, rowIndex) => {
6705
- return /*#__PURE__*/React.createElement("tr", {
6705
+ return /*#__PURE__*/React$1.createElement("tr", {
6706
6706
  className: trClassName,
6707
6707
  key: rowIndex
6708
- }, /*#__PURE__*/React.createElement(Ths$1, {
6708
+ }, /*#__PURE__*/React$1.createElement(Ths$1, {
6709
6709
  deep: columns.length - 1,
6710
6710
  rowColumn: rowColumn,
6711
6711
  rowIndex: rowIndex,
@@ -6718,10 +6718,10 @@ const THead = ({
6718
6718
  leafColumns,
6719
6719
  table
6720
6720
  }) => {
6721
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
6721
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement(HeadTrs, {
6722
6722
  columns: columns,
6723
6723
  table: table
6724
- })), /*#__PURE__*/React.createElement(Colgroup, {
6724
+ })), /*#__PURE__*/React$1.createElement(Colgroup, {
6725
6725
  leafColumns: leafColumns,
6726
6726
  colGroupRef: table.colGroupRef
6727
6727
  }));
@@ -6746,7 +6746,7 @@ const FootThs = ({
6746
6746
  // }
6747
6747
  let style = flexType(column.style, table, {}, {});
6748
6748
  const content = whatType(column, table, column.label);
6749
- return /*#__PURE__*/React.createElement("th", {
6749
+ return /*#__PURE__*/React$1.createElement("th", {
6750
6750
  style: style,
6751
6751
  colSpan: column.colSpan,
6752
6752
  rowSpan: column.rowSpan
@@ -6758,14 +6758,14 @@ const TFoot = ({
6758
6758
  columns
6759
6759
  }) => {
6760
6760
  const trs = columns?.map((rowColumn, rowIndex) => {
6761
- return /*#__PURE__*/React.createElement("tr", {
6761
+ return /*#__PURE__*/React$1.createElement("tr", {
6762
6762
  key: rowIndex
6763
- }, /*#__PURE__*/React.createElement(FootThs, {
6763
+ }, /*#__PURE__*/React$1.createElement(FootThs, {
6764
6764
  columns: rowColumn,
6765
6765
  table: table
6766
6766
  }));
6767
6767
  });
6768
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
6768
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tfoot", null, trs));
6769
6769
  };
6770
6770
 
6771
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.createElement("th", {
6819
+ return /*#__PURE__*/React$1.createElement("th", {
6820
6820
  key: colIndex,
6821
6821
  style: {
6822
6822
  textAlign: align,
@@ -6836,10 +6836,10 @@ const GroupColumns = ({
6836
6836
  }) => {
6837
6837
  const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
6838
6838
  return columns?.map((rowColumn, rowIndex) => {
6839
- return /*#__PURE__*/React.createElement("tr", {
6839
+ return /*#__PURE__*/React$1.createElement("tr", {
6840
6840
  className: trClassName,
6841
6841
  key: rowIndex
6842
- }, /*#__PURE__*/React.createElement(Ths, {
6842
+ }, /*#__PURE__*/React$1.createElement(Ths, {
6843
6843
  table: table,
6844
6844
  groupData: groupData,
6845
6845
  groupIndex: tbodyIndex,
@@ -6859,7 +6859,7 @@ styled.tr`
6859
6859
  }
6860
6860
  `;
6861
6861
  const GroupHeader = props => {
6862
- return /*#__PURE__*/React.createElement(GroupColumns, _extends({
6862
+ return /*#__PURE__*/React$1.createElement(GroupColumns, _extends({
6863
6863
  trClassName: 'jr-group-header'
6864
6864
  }, props));
6865
6865
  };
@@ -6870,7 +6870,7 @@ styled.tr`
6870
6870
  }
6871
6871
  `;
6872
6872
  const GroupFooter = props => {
6873
- return /*#__PURE__*/React.createElement(GroupColumns, _extends({
6873
+ return /*#__PURE__*/React$1.createElement(GroupColumns, _extends({
6874
6874
  trClassName: 'jr-group-footer'
6875
6875
  }, props));
6876
6876
  };
@@ -6917,7 +6917,7 @@ const Td = ({
6917
6917
  const typeStyle = flexType(_typeStyle, table, {
6918
6918
  record
6919
6919
  }, {});
6920
- content = /*#__PURE__*/React.createElement(type, {
6920
+ content = /*#__PURE__*/React$1.createElement(type, {
6921
6921
  onChange: _onChange ? e => {
6922
6922
  _onChange?.bind(table)(e, {
6923
6923
  value,
@@ -6945,7 +6945,7 @@ const Td = ({
6945
6945
  } else {
6946
6946
  content = value;
6947
6947
  }
6948
- return /*#__PURE__*/React.createElement("td", {
6948
+ return /*#__PURE__*/React$1.createElement("td", {
6949
6949
  colSpan: style.colSpan,
6950
6950
  rowSpan: style.rowSpan,
6951
6951
  style: {
@@ -6964,7 +6964,7 @@ const Tds = ({
6964
6964
  trIndex
6965
6965
  }) => {
6966
6966
  return leafColumns?.map((column, tdIndex) => {
6967
- return /*#__PURE__*/React.createElement(Td, {
6967
+ return /*#__PURE__*/React$1.createElement(Td, {
6968
6968
  column: column,
6969
6969
  key: tdIndex,
6970
6970
  record: record,
@@ -6989,14 +6989,14 @@ const TBody = ({
6989
6989
  table,
6990
6990
  tbodyIndex
6991
6991
  };
6992
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
6992
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tbody", {
6993
6993
  key: `tbody${tbodyIndex}`
6994
- }, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
6994
+ }, groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupHeader, _extends({
6995
6995
  groupData: groupData,
6996
6996
  columns: groupHeader
6997
6997
  }, neededProps)), groupData?.map?.((record, trIndex) => {
6998
6998
  const onRowClick = table.props.onRowClick?.bind(table);
6999
- return /*#__PURE__*/React.createElement("tr", {
6999
+ return /*#__PURE__*/React$1.createElement("tr", {
7000
7000
  key: trIndex,
7001
7001
  onClick: () => {
7002
7002
  onRowClick?.({
@@ -7005,13 +7005,13 @@ const TBody = ({
7005
7005
  groupIndex: tbodyIndex
7006
7006
  });
7007
7007
  }
7008
- }, /*#__PURE__*/React.createElement(Tds, _extends({
7008
+ }, /*#__PURE__*/React$1.createElement(Tds, _extends({
7009
7009
  record: record,
7010
7010
  trIndex: trIndex
7011
7011
  }, neededProps, {
7012
7012
  leafColumns: leafColumns
7013
7013
  })));
7014
- }), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
7014
+ }), groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupFooter, _extends({
7015
7015
  groupData: groupData,
7016
7016
  columns: groupFooter
7017
7017
  }, neededProps))));
@@ -7029,7 +7029,7 @@ const TBodies = ({
7029
7029
 
7030
7030
  // po('dataSource',dataSource)
7031
7031
  return dataSource?.map((groupData, tbodyIndex, c) => {
7032
- return /*#__PURE__*/React.createElement(TBody, {
7032
+ return /*#__PURE__*/React$1.createElement(TBody, {
7033
7033
  key: `tbody${tbodyIndex}`,
7034
7034
  table: table
7035
7035
  // dataSource={dataSource}
@@ -7177,11 +7177,18 @@ const StyledJRTable = styled.div`
7177
7177
  }
7178
7178
  `;
7179
7179
 
7180
+ function JRButton({
7181
+ icon,
7182
+ children,
7183
+ ...props
7184
+ }) {
7185
+ return /*#__PURE__*/React.createElement("button", props, icon, children);
7186
+ }
7187
+
7180
7188
  const StyledTitle = styled.div`
7181
7189
  overflow: hidden;
7182
7190
  display: flex;
7183
- padding:2px 8px;
7184
- border:1px solid black;
7191
+ border-radius: var(--jr-window-radius) var(--jr-window-radius) 0 0;
7185
7192
  background:rgb(214, 214, 214);
7186
7193
  color: black;
7187
7194
  &:active:hover{
@@ -7195,69 +7202,164 @@ const StyledTitle = styled.div`
7195
7202
  user-select: none;
7196
7203
 
7197
7204
  > .title{
7198
- flex: 1;
7205
+
7206
+ flex: 1;
7207
+ padding:2px 0 2px 8px;
7208
+ text-overflow: ellipsis;
7209
+ overflow: hidden;
7210
+ white-space: nowrap;
7211
+ }
7212
+ > nav{
7213
+ display: flex;
7214
+ align-items: anchor-center;
7215
+
7216
+
7217
+ >button{
7218
+ display:flex;
7219
+ align-items: center;
7220
+ justify-content: center;
7221
+ border: unset;
7222
+ background: unset;
7223
+ cursor: pointer;
7224
+ width:32px;
7225
+ height:32px;
7226
+ xborder:1px solid green;
7227
+ padding: 0;
7228
+ margin: 0;
7229
+ &:hover{
7230
+ background: #bbbbbb;
7231
+ color:white;
7232
+ }
7233
+ >svg{
7234
+ width:14px;
7235
+ height:14px;
7236
+ cursor: pointer;
7237
+ }
7238
+ }
7239
+ >button.danger:hover{
7240
+ background: red;
7241
+ color:white;
7242
+ }
7199
7243
  }
7200
7244
  `;
7201
- class TitleBar extends React.Component {
7245
+ class TitleBar extends React$1.Component {
7202
7246
  pos1 = 0;
7203
7247
  pos2 = 0;
7204
7248
  pos3 = 0;
7205
7249
  pos4 = 0;
7206
7250
  x = 0;
7207
7251
  y = 0;
7252
+ stop = e => {
7253
+ e.preventDefault();
7254
+ if (this.moved) {
7255
+ const {
7256
+ height: titleBarHeight
7257
+ } = this.props.titleBarRef.current.getBoundingClientRect();
7258
+ const {
7259
+ x,
7260
+ y,
7261
+ width,
7262
+ height
7263
+ } = this.props.windowRef.current.getBoundingClientRect();
7264
+ po('y', y);
7265
+ if (y < 1) {
7266
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y), left .1s ease-in';
7267
+ this.props.windowRef.current.style.left = `${-this.props.thick}px`;
7268
+ this.props.windowRef.current.style.width = `calc(100vw + ${this.props.thick * 2}px)`; //`${window.innerWidth+(this.props.thick*2)}px`
7269
+ this.props.windowRef.current.style.height = `calc(100vh + ${this.props.thick * 2}px)`; //`${window.innerHeight+(this.props.thick*2)}px`
7270
+
7271
+ this.props.window.orgHeight = height;
7272
+ this.props.window.orgWidth = width;
7273
+ }
7274
+ if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
7275
+ if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
7276
+ if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
7277
+ document.body.style.cursor = 'default';
7278
+ }
7279
+ window.removeEventListener('mousemove', this.move);
7280
+ window.removeEventListener('mouseup', this.stop);
7281
+ };
7208
7282
  move = e => {
7209
7283
  e.preventDefault();
7210
- this.pos1 = this.pos3 - e.clientX;
7211
- this.pos2 = this.pos4 - e.clientY;
7212
- this.pos3 = e.clientX;
7213
- this.pos4 = e.clientY;
7284
+ this.moved = true;
7285
+ const {
7286
+ clientX,
7287
+ clientY
7288
+ } = e;
7289
+ const y = clientY < 1 ? 0 : clientY;
7290
+ this.pos1 = this.pos3 - clientX;
7291
+ this.pos2 = this.pos4 - y;
7292
+ this.pos3 = clientX;
7293
+ this.pos4 = y;
7214
7294
  const w = this.props.windowRef.current;
7215
7295
  this.x = w.offsetLeft - this.pos1;
7216
7296
  this.y = w.offsetTop - this.pos2;
7297
+ if (this.props.window.orgHeight) {
7298
+ w.style.height = `${this.props.window.orgHeight}px`;
7299
+ this.props.window.orgHeight = null;
7300
+ }
7301
+ if (this.props.window.orgWidth) {
7302
+ if (clientX > this.props.window.orgWidth) {
7303
+ this.x = clientX - this.props.window.orgWidth / 2;
7304
+ }
7305
+ w.style.width = `${this.props.window.orgWidth}px`;
7306
+ this.props.window.orgWidth = null;
7307
+ }
7308
+ this.y = this.y < -this.props.thick ? -this.props.thick : this.y;
7217
7309
  w.style.top = this.y + 'px';
7218
7310
  w.style.left = this.x + 'px';
7219
7311
  };
7220
- stop = e => {
7221
- // const w= this.props.windowRef.current
7222
- // if(this.y<1)this.props.windowRef.current.style.top = '1px'
7223
- // if(this.y>window.innerHeight)this.props.windowRef.current.style.top = `${window.innerHeight-32}px`
7224
- // if(this.x<1)this.props.windowRef.current.style.left = '1px'
7225
- // if(this.x>window.innerWidth)this.props.windowRef.current.style.left = `${window.innerWidth-100}px`
7226
- document.body.style.cursor = 'default';
7227
- window.removeEventListener('mousemove', this.move);
7228
- window.removeEventListener('mouseup', this.stop);
7229
- };
7230
7312
  start(e) {
7231
7313
  e.preventDefault();
7314
+ this.moved = false;
7232
7315
  this.pos3 = e.clientX;
7233
7316
  this.pos4 = e.clientY;
7317
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
7234
7318
  document.body.style.cursor = 'grabbing';
7235
7319
  window.addEventListener('mousemove', this.move);
7236
7320
  window.addEventListener('mouseup', this.stop);
7237
7321
  }
7238
7322
  render() {
7239
- return /*#__PURE__*/React.createElement(StyledTitle, {
7323
+ return /*#__PURE__*/React$1.createElement(StyledTitle, {
7240
7324
  ref: this.props.titleBarRef,
7241
7325
  draggable: "false",
7242
7326
  onMouseDown: e => {
7243
7327
  this.start(e);
7244
7328
  }
7245
- }, /*#__PURE__*/React.createElement(FreeType$1, {
7329
+ }, /*#__PURE__*/React$1.createElement(FreeType$1, {
7246
7330
  tag: "div",
7247
7331
  config: this.props.title ?? '',
7248
7332
  me: this.props.window,
7249
7333
  className: 'title'
7250
- }), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("button", null, "X")));
7334
+ }), /*#__PURE__*/React$1.createElement("nav", null, /*#__PURE__*/React$1.createElement(JRButton, null), /*#__PURE__*/React$1.createElement(JRButton, null), this.props.window.props.setOpen ? /*#__PURE__*/React$1.createElement(JRButton, {
7335
+ className: 'danger',
7336
+ onClick: () => {
7337
+ this.props.window.props.setOpen(false);
7338
+ }
7339
+ }) : null));
7251
7340
  }
7252
7341
  }
7253
7342
 
7343
+ const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
7344
+ class Sliders extends React$1.Component {
7345
+ render() {
7346
+ return directions.map((direction, index) => /*#__PURE__*/React$1.createElement(Slider, {
7347
+ direction: direction,
7348
+ thick: this.props.thick,
7349
+ windowRef: this.props.windowRef,
7350
+ window: this.props.window,
7351
+ titleBarRef: this.props.titleBarRef,
7352
+ key: index
7353
+ }));
7354
+ }
7355
+ }
7254
7356
  const StyledSlider = styled.div`
7255
7357
  Xborder:1px solid ${({
7256
7358
  $direction: {
7257
7359
  color
7258
7360
  }
7259
7361
  }) => color};
7260
- xbackground:${({
7362
+ Xbackground:${({
7261
7363
  $direction: {
7262
7364
  color
7263
7365
  }
@@ -7306,13 +7408,13 @@ const StyledSlider = styled.div`
7306
7408
  user-select: none;
7307
7409
 
7308
7410
  `;
7309
- class Slider extends React.Component {
7411
+ class Slider extends React$1.Component {
7310
7412
  width = '3px';
7311
7413
  borderWidth = 'px';
7312
- borderLong = '10px';
7414
+ borderLong = 30;
7313
7415
  constructor(props) {
7314
7416
  super(props);
7315
- this.sliderRef = /*#__PURE__*/React.createRef();
7417
+ this.sliderRef = /*#__PURE__*/React$1.createRef();
7316
7418
  }
7317
7419
  directions = {
7318
7420
  n: {
@@ -7355,12 +7457,24 @@ class Slider extends React.Component {
7355
7457
  this.resizeW(props);
7356
7458
  }
7357
7459
  },
7460
+ nw: {
7461
+ top: 0,
7462
+ left: 0,
7463
+ color: 'blue',
7464
+ width: `${this.borderLong}px`,
7465
+ height: `${this.borderLong}px`,
7466
+ cursor: 'nw-resize',
7467
+ resize: props => {
7468
+ this.resizeN(props);
7469
+ this.resizeW(props);
7470
+ }
7471
+ },
7358
7472
  nww: {
7359
7473
  top: 0,
7360
7474
  left: 0,
7361
7475
  color: 'blue',
7362
- width: `${this.props.thick}px`,
7363
- height: this.borderLong,
7476
+ width: `${this.props.thick + this.borderLong}px`,
7477
+ height: `${this.props.thick}px`,
7364
7478
  cursor: 'nw-resize',
7365
7479
  resize: props => {
7366
7480
  this.resizeN(props);
@@ -7371,8 +7485,8 @@ class Slider extends React.Component {
7371
7485
  top: 0,
7372
7486
  left: 0,
7373
7487
  color: 'blue',
7374
- width: this.borderLong,
7375
- height: `${this.props.thick}px`,
7488
+ width: `${this.props.thick}px`,
7489
+ height: `${this.props.thick + this.borderLong}px`,
7376
7490
  cursor: 'nw-resize',
7377
7491
  resize: props => {
7378
7492
  this.resizeN(props);
@@ -7383,7 +7497,7 @@ class Slider extends React.Component {
7383
7497
  top: 0,
7384
7498
  right: 0,
7385
7499
  color: 'green',
7386
- width: this.borderLong,
7500
+ width: `${this.props.thick + this.borderLong}px`,
7387
7501
  height: `${this.props.thick}px`,
7388
7502
  cursor: 'ne-resize',
7389
7503
  resize: props => {
@@ -7396,7 +7510,7 @@ class Slider extends React.Component {
7396
7510
  right: 0,
7397
7511
  color: 'green',
7398
7512
  width: `${this.props.thick}px`,
7399
- height: this.borderLong,
7513
+ height: `${this.props.thick + this.borderLong}px`,
7400
7514
  cursor: 'ne-resize',
7401
7515
  resize: props => {
7402
7516
  this.resizeN(props);
@@ -7407,7 +7521,7 @@ class Slider extends React.Component {
7407
7521
  color: 'red',
7408
7522
  right: 0,
7409
7523
  bottom: 0,
7410
- width: this.borderLong,
7524
+ width: `${this.props.thick + this.borderLong}px`,
7411
7525
  height: `${this.props.thick}px`,
7412
7526
  cursor: 'se-resize',
7413
7527
  resize: props => {
@@ -7420,7 +7534,7 @@ class Slider extends React.Component {
7420
7534
  right: 0,
7421
7535
  bottom: 0,
7422
7536
  width: `${this.props.thick}px`,
7423
- height: this.borderLong,
7537
+ height: `${this.props.thick + this.borderLong}px`,
7424
7538
  cursor: 'se-resize',
7425
7539
  resize: props => {
7426
7540
  this.resizeS(props);
@@ -7431,7 +7545,7 @@ class Slider extends React.Component {
7431
7545
  color: 'yellow',
7432
7546
  bottom: 0,
7433
7547
  left: 0,
7434
- width: this.borderLong,
7548
+ width: `${this.props.thick + this.borderLong}px`,
7435
7549
  height: `${this.props.thick}px`,
7436
7550
  cursor: 'sw-resize',
7437
7551
  resize: props => {
@@ -7444,7 +7558,7 @@ class Slider extends React.Component {
7444
7558
  bottom: 0,
7445
7559
  left: 0,
7446
7560
  width: `${this.props.thick}px`,
7447
- height: this.borderLong,
7561
+ height: `${this.props.thick + this.borderLong}px`,
7448
7562
  cursor: 'sw-resize',
7449
7563
  resize: props => {
7450
7564
  this.resizeS(props);
@@ -7452,11 +7566,6 @@ class Slider extends React.Component {
7452
7566
  }
7453
7567
  }
7454
7568
  };
7455
- stop = e => {
7456
- document.body.style.cursor = 'default';
7457
- window.removeEventListener('mousemove', this.move);
7458
- window.removeEventListener('mouseup', this.stop);
7459
- };
7460
7569
  resizeN = ({
7461
7570
  window,
7462
7571
  cursorY,
@@ -7501,8 +7610,8 @@ class Slider extends React.Component {
7501
7610
  startWidth,
7502
7611
  titleBarHeight
7503
7612
  }) => {
7504
- let x = cursorX;
7505
- if (x <= 1) x = 1;
7613
+ let x = cursorX - this.props.thick;
7614
+ if (x < 0) x = 0;
7506
7615
  let width = startWidth + (startX - x);
7507
7616
  if (width < titleBarHeight + this.props.thick * 2) {
7508
7617
  width = titleBarHeight + this.props.thick * 2;
@@ -7511,7 +7620,31 @@ class Slider extends React.Component {
7511
7620
  window.style.left = `${x}px`;
7512
7621
  window.style.width = `${width}px`;
7513
7622
  };
7623
+ stop = e => {
7624
+ e.preventDefault();
7625
+ const {
7626
+ height: titleBarHeight
7627
+ } = this.props.titleBarRef.current.getBoundingClientRect();
7628
+ const {
7629
+ x,
7630
+ y,
7631
+ width,
7632
+ height
7633
+ } = this.props.windowRef.current.getBoundingClientRect();
7634
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
7635
+ if (y == 0 && this.data.direction.indexOf('n') > -1) {
7636
+ this.props.window.orgHeight = height;
7637
+ this.props.windowRef.current.style.height = `${window.innerHeight}px`;
7638
+ }
7639
+ if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
7640
+ if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
7641
+ if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
7642
+ document.body.style.cursor = 'default';
7643
+ window.removeEventListener('mousemove', this.move);
7644
+ window.removeEventListener('mouseup', this.stop);
7645
+ };
7514
7646
  move = e => {
7647
+ e.preventDefault();
7515
7648
  const {
7516
7649
  clientX,
7517
7650
  clientY,
@@ -7544,47 +7677,60 @@ class Slider extends React.Component {
7544
7677
  startHeight,
7545
7678
  top
7546
7679
  });
7547
- /////////////////////////////////////////////////////////////
7548
-
7549
- /////////////////////////////////////////////////////////////
7550
7680
  };
7551
- start = () => {
7681
+ start = (e, direction) => {
7682
+ e.preventDefault();
7552
7683
  const {
7553
7684
  height: titleBarHeight
7554
7685
  } = this.props.titleBarRef.current.getBoundingClientRect();
7555
- const {
7686
+ let {
7556
7687
  x,
7557
7688
  y,
7558
7689
  width,
7559
7690
  height
7560
7691
  } = this.props.windowRef.current.getBoundingClientRect();
7692
+ if (direction.indexOf('n') > -1) {
7693
+ if (this.props.window.orgHeight) {
7694
+ height = this.props.window.orgHeight;
7695
+ this.props.window.orgHeight = null;
7696
+ }
7697
+ } else if (direction.indexOf('s') > -1) {
7698
+ this.props.window.orgHeight = null;
7699
+ }
7561
7700
  this.data = {
7562
7701
  x,
7563
7702
  y,
7564
7703
  width,
7565
7704
  height,
7566
- titleBarHeight
7705
+ titleBarHeight,
7706
+ direction
7567
7707
  };
7708
+ this.props.windowRef.current.style.transition = 'unset';
7568
7709
  document.body.style.cursor = this.directions[this.props.direction].cursor;
7569
7710
  window.addEventListener('mousemove', this.move);
7570
7711
  window.addEventListener('mouseup', this.stop);
7571
7712
  };
7572
7713
  render() {
7573
- return /*#__PURE__*/React.createElement(StyledSlider, {
7714
+ return /*#__PURE__*/React$1.createElement(StyledSlider, {
7574
7715
  $direction: this.directions[this.props.direction],
7575
7716
  $padding: this.props.padding,
7576
- onMouseDown: this.start
7717
+ onMouseDown: e => {
7718
+ this.start(e, this.props.direction);
7719
+ }
7577
7720
  });
7578
7721
  }
7579
7722
  }
7580
7723
 
7581
7724
  const StyledJRWindow = styled.div`
7725
+ --jr-window-radius:3px;
7582
7726
  --padding-child:8px;
7727
+ --transition-x-y:height .1s ease-in, width .1s ease-in;
7583
7728
  xborder:1px solid gray;
7584
- position: absolute;
7729
+ position: fixed;
7585
7730
  padding: ${({
7586
7731
  $thick
7587
7732
  }) => $thick}px;
7733
+ border-radius: var(--jr-window-radius);
7588
7734
 
7589
7735
  top: ${({
7590
7736
  $y
@@ -7605,6 +7751,7 @@ const StyledJRWindow = styled.div`
7605
7751
  overflow: hidden;
7606
7752
 
7607
7753
  > main{
7754
+ border-radius: var(--jr-window-radius);
7608
7755
  box-shadow: 0px 0px 5px 1px gray;
7609
7756
  Xbackground: white;
7610
7757
  display: flex;
@@ -7625,31 +7772,27 @@ class JRWindow extends JRFrame {
7625
7772
  y = 0;
7626
7773
  width = 300;
7627
7774
  height = 300;
7628
- padding = 5;
7629
- thick = 3;
7775
+ padding = 1;
7776
+ thick = 5;
7630
7777
  constructor(props) {
7631
7778
  super(props);
7632
- this.ref = /*#__PURE__*/React.createRef();
7633
- this.titleBarRef = /*#__PURE__*/React.createRef();
7634
- if (this.props.popup === true) this.renderer = this.renderWindow;
7779
+ this.ref = /*#__PURE__*/React$1.createRef();
7780
+ this.titleBarRef = /*#__PURE__*/React$1.createRef();
7635
7781
  this.init();
7636
7782
  }
7783
+ componentWillUpdate(prevProps, prevState, snapshot) {
7784
+ if (this.props.popup === true && this.props.open === true && prevProps.open === false) {
7785
+ this.props.onOpen?.bind(this)();
7786
+ }
7787
+ }
7637
7788
  init() {
7638
- this.height = window.innerHeight >= this.props.height ? this.props.height : window.innerHeight;
7639
- this.width = window.innerWidth >= this.props.width ? this.props.width : window.innerWidth;
7789
+ this.height = window.innerHeight >= (this.props.height ?? this.height) ? this.props.height ?? this.height : window.innerHeight;
7790
+ this.width = window.innerWidth >= (this.props.width ?? this.width) ? this.props.width ?? this.width : window.innerWidth;
7640
7791
  this.x = this.props.x ?? (window.innerWidth - (this.width ?? 300)) / 2;
7641
7792
  this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
7642
7793
  }
7643
- componentWillMount() {}
7644
- // renderer(){
7645
- // return this.props.popup===true
7646
- // ?<StyledJRWindow>
7647
- // {super.renderer()}
7648
- // </StyledJRWindow>
7649
- // :super.renderer()
7650
- // }
7651
- renderWindow() {
7652
- return /*#__PURE__*/React.createElement(StyledJRWindow, {
7794
+ renderer() {
7795
+ return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React$1.createElement(StyledJRWindow, {
7653
7796
  ref: this.ref,
7654
7797
  className: `jr-window ${this.props.className ?? ''}`,
7655
7798
  $x: this.x,
@@ -7657,88 +7800,18 @@ class JRWindow extends JRFrame {
7657
7800
  $width: this.width,
7658
7801
  $height: this.height,
7659
7802
  $thick: this.thick
7660
- // onMouseDown={()=>{
7661
- // po('onFocus')
7662
- // this.ref.current.style.zIndex=100
7663
- // }}
7664
- }, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
7803
+ }, /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(TitleBar, {
7665
7804
  titleBarRef: this.titleBarRef,
7666
7805
  windowRef: this.ref,
7667
7806
  window: this,
7668
- title: this.props.title
7669
- }), /*#__PURE__*/React.createElement("main", null, super.renderer())), /*#__PURE__*/React.createElement(Slider, {
7670
- direction: 'n',
7671
- thick: this.thick,
7672
- windowRef: this.ref,
7673
- window: this,
7674
- titleBarRef: this.titleBarRef
7675
- }), /*#__PURE__*/React.createElement(Slider, {
7676
- direction: 'e',
7677
- thick: this.thick,
7678
- windowRef: this.ref,
7679
- window: this,
7680
- titleBarRef: this.titleBarRef
7681
- }), /*#__PURE__*/React.createElement(Slider, {
7682
- direction: 's',
7683
- thick: this.thick,
7684
- windowRef: this.ref,
7685
- window: this,
7686
- titleBarRef: this.titleBarRef
7687
- }), /*#__PURE__*/React.createElement(Slider, {
7688
- direction: 'w',
7807
+ title: this.props.title,
7808
+ thick: this.thick
7809
+ }), /*#__PURE__*/React$1.createElement("main", null, super.renderer())), /*#__PURE__*/React$1.createElement(Sliders, {
7689
7810
  thick: this.thick,
7690
7811
  windowRef: this.ref,
7691
7812
  window: this,
7692
7813
  titleBarRef: this.titleBarRef
7693
- }), /*#__PURE__*/React.createElement(Slider, {
7694
- direction: 'nww',
7695
- thick: this.thick,
7696
- windowRef: this.ref,
7697
- window: this,
7698
- titleBarRef: this.titleBarRef
7699
- }), /*#__PURE__*/React.createElement(Slider, {
7700
- direction: 'nnw',
7701
- thick: this.thick,
7702
- windowRef: this.ref,
7703
- window: this,
7704
- titleBarRef: this.titleBarRef
7705
- }), /*#__PURE__*/React.createElement(Slider, {
7706
- direction: 'nne',
7707
- thick: this.thick,
7708
- windowRef: this.ref,
7709
- window: this,
7710
- titleBarRef: this.titleBarRef
7711
- }), /*#__PURE__*/React.createElement(Slider, {
7712
- direction: 'nee',
7713
- thick: this.thick,
7714
- windowRef: this.ref,
7715
- window: this,
7716
- titleBarRef: this.titleBarRef
7717
- }), /*#__PURE__*/React.createElement(Slider, {
7718
- direction: 'sse',
7719
- thick: this.thick,
7720
- windowRef: this.ref,
7721
- window: this,
7722
- titleBarRef: this.titleBarRef
7723
- }), /*#__PURE__*/React.createElement(Slider, {
7724
- direction: 'see',
7725
- thick: this.thick,
7726
- windowRef: this.ref,
7727
- window: this,
7728
- titleBarRef: this.titleBarRef
7729
- }), /*#__PURE__*/React.createElement(Slider, {
7730
- direction: 'sww',
7731
- thick: this.thick,
7732
- windowRef: this.ref,
7733
- window: this,
7734
- titleBarRef: this.titleBarRef
7735
- }), /*#__PURE__*/React.createElement(Slider, {
7736
- direction: 'ssw',
7737
- thick: this.thick,
7738
- windowRef: this.ref,
7739
- window: this,
7740
- titleBarRef: this.titleBarRef
7741
- }));
7814
+ })) : '' : super.renderer();
7742
7815
  }
7743
7816
  }
7744
7817
 
@@ -7764,7 +7837,7 @@ const setMapObject = (map, names, value) => {
7764
7837
  class JRTable extends JRWindow {
7765
7838
  constructor(props) {
7766
7839
  super(props);
7767
- this.colGroupRef = /*#__PURE__*/React.createRef();
7840
+ this.colGroupRef = /*#__PURE__*/React$1.createRef();
7768
7841
  }
7769
7842
  UNSAFE_componentWillMount() {
7770
7843
  this.setColumns(this.props.columns ?? []);
@@ -7781,7 +7854,7 @@ class JRTable extends JRWindow {
7781
7854
  value,
7782
7855
  onChange
7783
7856
  }) {
7784
- return /*#__PURE__*/React.createElement("checkbox", {
7857
+ return /*#__PURE__*/React$1.createElement("checkbox", {
7785
7858
  checked: value,
7786
7859
  onChange: e => {
7787
7860
  onChange(e.target.checked);
@@ -7820,7 +7893,7 @@ class JRTable extends JRWindow {
7820
7893
  value,
7821
7894
  onChange
7822
7895
  }) {
7823
- return /*#__PURE__*/React.createElement("checkbox", {
7896
+ return /*#__PURE__*/React$1.createElement("checkbox", {
7824
7897
  checked: value,
7825
7898
  onChange: e => {
7826
7899
  onChange(e.target.checked);
@@ -7830,7 +7903,7 @@ class JRTable extends JRWindow {
7830
7903
  align: 'center',
7831
7904
  name,
7832
7905
  label() {
7833
- return /*#__PURE__*/React.createElement("button", {
7906
+ return /*#__PURE__*/React$1.createElement("button", {
7834
7907
  onClick: () => {
7835
7908
  const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
7836
7909
  const callback = this.props.delete.callback ?? function (a, b, c) {
@@ -7953,25 +8026,25 @@ class JRTable extends JRWindow {
7953
8026
  }
7954
8027
  //------------------------------------------------------------------------------------
7955
8028
  renderMe() {
7956
- return /*#__PURE__*/React.createElement(StyledJRTable, {
8029
+ return /*#__PURE__*/React$1.createElement(StyledJRTable, {
7957
8030
  className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
7958
- }, /*#__PURE__*/React.createElement("table", {
8031
+ }, /*#__PURE__*/React$1.createElement("table", {
7959
8032
  className: 'jr-table-table'
7960
- }, /*#__PURE__*/React.createElement(TBodies, {
8033
+ }, /*#__PURE__*/React$1.createElement(TBodies, {
7961
8034
  table: this,
7962
8035
  leafColumns: this.state.leafColumns,
7963
8036
  groupHeader: this.props.groupHeader,
7964
8037
  groupFooter: this.props.groupFooter,
7965
8038
  dataSource: this.getDataSource(),
7966
8039
  onRowClick: this.props.onRowClick
7967
- }), /*#__PURE__*/React.createElement(TFoot, {
8040
+ }), /*#__PURE__*/React$1.createElement(TFoot, {
7968
8041
  columns: this.props.footColumns,
7969
8042
  table: this
7970
- }), /*#__PURE__*/React.createElement(THead, {
8043
+ }), /*#__PURE__*/React$1.createElement(THead, {
7971
8044
  columns: this.state.columns,
7972
8045
  leafColumns: this.state.leafColumns,
7973
8046
  table: this
7974
- })), /*#__PURE__*/React.createElement("div", {
8047
+ })), /*#__PURE__*/React$1.createElement("div", {
7975
8048
  className: 'empty'
7976
8049
  }, this.noData() && '無資料'));
7977
8050
  }
@@ -8320,12 +8393,12 @@ class JRFields extends JRWindow {
8320
8393
  }
8321
8394
  if (type) {
8322
8395
  const typeStyle = flexType(_typeStyle, this, null);
8323
- content = /*#__PURE__*/React.createElement(StyledColumnValue, {
8396
+ content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
8324
8397
  className: 'jr-column-value',
8325
8398
  style: {
8326
8399
  gridColumn: label == null ? 'span 2' : null
8327
8400
  }
8328
- }, /*#__PURE__*/React.createElement(type, {
8401
+ }, /*#__PURE__*/React$1.createElement(type, {
8329
8402
  value: value,
8330
8403
  onChange,
8331
8404
  record: parentValue,
@@ -8336,13 +8409,13 @@ class JRFields extends JRWindow {
8336
8409
  ...column
8337
8410
  }));
8338
8411
  } else if (column.columns) {
8339
- content = /*#__PURE__*/React.createElement(StyledGrid, {
8412
+ content = /*#__PURE__*/React$1.createElement(StyledGrid, {
8340
8413
  cols: column.cols,
8341
8414
  className: 'jr-grid',
8342
8415
  $gap: gap
8343
8416
  }, this.createColumns(value, column.columns, _parentName, fullname));
8344
8417
  } else if (name || column.render) {
8345
- content = /*#__PURE__*/React.createElement(StyledColumnValue, {
8418
+ content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
8346
8419
  className: 'jr-column-value',
8347
8420
  style: {
8348
8421
  gridColumn: label == null ? 'span 2' : null,
@@ -8356,7 +8429,7 @@ class JRFields extends JRWindow {
8356
8429
  }
8357
8430
  const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
8358
8431
  const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
8359
- return /*#__PURE__*/React.createElement(StyledColumn, {
8432
+ return /*#__PURE__*/React$1.createElement(StyledColumn, {
8360
8433
  $layout: layout,
8361
8434
  $hasLabel: label != null,
8362
8435
  key: `f${index}`,
@@ -8364,18 +8437,18 @@ class JRFields extends JRWindow {
8364
8437
  className: 'jr-column',
8365
8438
  $labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
8366
8439
  $valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
8367
- }, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
8440
+ }, label != null && /*#__PURE__*/React$1.createElement(StyledColumnLabel, {
8368
8441
  style: labelStyle,
8369
8442
  $required: required,
8370
8443
  className: 'label',
8371
8444
  $layout: layout,
8372
8445
  $colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
8373
- }, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
8446
+ }, label), content, this.props.debugMode && /*#__PURE__*/React$1.createElement(StyledColumnFooter, null, /*#__PURE__*/React$1.createElement("div", {
8374
8447
  className: "left"
8375
- }, /*#__PURE__*/React.createElement(ColumnMessage, {
8448
+ }, /*#__PURE__*/React$1.createElement(ColumnMessage, {
8376
8449
  value: this.getValidateValue(_parentName.join('.')),
8377
8450
  record: this.getValue()
8378
- })), /*#__PURE__*/React.createElement("div", {
8451
+ })), /*#__PURE__*/React$1.createElement("div", {
8379
8452
  className: "right"
8380
8453
  }))
8381
8454
  // validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
@@ -8390,10 +8463,10 @@ class JRFields extends JRWindow {
8390
8463
  });
8391
8464
  }
8392
8465
  renderMe() {
8393
- return /*#__PURE__*/React.createElement(StyleJRFields, {
8466
+ return /*#__PURE__*/React$1.createElement(StyleJRFields, {
8394
8467
  className: 'jr-fields',
8395
8468
  style: this.props.typeStyle
8396
- }, /*#__PURE__*/React.createElement(StyledGrid, {
8469
+ }, /*#__PURE__*/React$1.createElement(StyledGrid, {
8397
8470
  cols: this.props.cols,
8398
8471
  style: this.props.gridStyle,
8399
8472
  className: 'jr-grid',
@@ -8455,7 +8528,7 @@ const FreeType = ({
8455
8528
  const content = config.bind(me)({
8456
8529
  setStyle
8457
8530
  });
8458
- return /*#__PURE__*/React.createElement(Tag, {
8531
+ return /*#__PURE__*/React$1.createElement(Tag, {
8459
8532
  className: className,
8460
8533
  style: style
8461
8534
  }, content);
@@ -8463,33 +8536,33 @@ const FreeType = ({
8463
8536
  };
8464
8537
  class JRTestReact extends JRSubmit {
8465
8538
  renderer() {
8466
- return /*#__PURE__*/React.createElement(StyledJRFrame, {
8539
+ return /*#__PURE__*/React$1.createElement(StyledJRFrame, {
8467
8540
  style: this.props.style,
8468
8541
  className: `${this.props.className} jr-frame`
8469
- }, /*#__PURE__*/React.createElement(FreeType, {
8542
+ }, /*#__PURE__*/React$1.createElement(FreeType, {
8470
8543
  tag: "div",
8471
8544
  config: this.props.start,
8472
8545
  me: this,
8473
8546
  className: 'start'
8474
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
8547
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
8475
8548
  tag: "header",
8476
8549
  config: this.props.top,
8477
8550
  me: this
8478
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
8551
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
8479
8552
  tag: "div",
8480
8553
  config: this.props.left,
8481
8554
  me: this,
8482
8555
  className: 'left'
8483
- }), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
8556
+ }), this.renderMe(), /*#__PURE__*/React$1.createElement(FreeType, {
8484
8557
  tag: "div",
8485
8558
  config: this.props.right,
8486
8559
  me: this,
8487
8560
  className: 'right'
8488
- })), /*#__PURE__*/React.createElement(FreeType, {
8561
+ })), /*#__PURE__*/React$1.createElement(FreeType, {
8489
8562
  tag: "footer",
8490
8563
  config: this.props.bottom,
8491
8564
  me: this
8492
- })), /*#__PURE__*/React.createElement(FreeType, {
8565
+ })), /*#__PURE__*/React$1.createElement(FreeType, {
8493
8566
  tag: "div",
8494
8567
  config: this.props.end,
8495
8568
  me: this,
@@ -8497,7 +8570,7 @@ class JRTestReact extends JRSubmit {
8497
8570
  }));
8498
8571
  }
8499
8572
  renderMe() {
8500
- return /*#__PURE__*/React.createElement("div", {
8573
+ return /*#__PURE__*/React$1.createElement("div", {
8501
8574
  style: {
8502
8575
  flex: 1
8503
8576
  }