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.js CHANGED
@@ -2815,7 +2815,7 @@ function requireReact () {
2815
2815
  }
2816
2816
 
2817
2817
  var reactExports = requireReact();
2818
- var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2818
+ var React$1 = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2819
2819
 
2820
2820
  function bind(fn, thisArg) {
2821
2821
  return function wrap() {
@@ -6074,7 +6074,7 @@ const whatType = ({
6074
6074
  // const style=flexType(typeStyle,me,{},{})
6075
6075
  // return 'type'
6076
6076
  const typeStyle = typeof _typeStyle === 'function' ? _typeStyle?.bind(me)() : _typeStyle;
6077
- return /*#__PURE__*/React.createElement(type, {
6077
+ return /*#__PURE__*/React$1.createElement(type, {
6078
6078
  style: typeStyle
6079
6079
  });
6080
6080
  } else if (render) {
@@ -6225,9 +6225,9 @@ const StyledCover = styled__default["default"].div`
6225
6225
  const Cover = ({
6226
6226
  children
6227
6227
  }) => {
6228
- return /*#__PURE__*/React.createElement(StyledCover, null, children);
6228
+ return /*#__PURE__*/React$1.createElement(StyledCover, null, children);
6229
6229
  };
6230
- class JRSubmit extends React.Component {
6230
+ class JRSubmit extends React$1.Component {
6231
6231
  #methods = ['get', 'post', 'put', 'patch', 'delete', 'download'];
6232
6232
  constructor(props) {
6233
6233
  super(props);
@@ -6484,7 +6484,7 @@ class JRSubmit extends React.Component {
6484
6484
  return;
6485
6485
  }
6486
6486
  render() {
6487
- return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
6487
+ return this.props.cover != null && this.state?.lodaing ? /*#__PURE__*/React$1.createElement(Cover, null, flexType(this.props.cover, this, null, null)) : this.renderer();
6488
6488
  }
6489
6489
  }
6490
6490
 
@@ -6502,12 +6502,12 @@ const FreeType$1 = ({
6502
6502
  const content = config.bind(me)({
6503
6503
  setStyle
6504
6504
  });
6505
- return /*#__PURE__*/React.createElement(Tag, {
6505
+ return /*#__PURE__*/React$1.createElement(Tag, {
6506
6506
  className: className,
6507
6507
  style: style
6508
6508
  }, content);
6509
6509
  } else if (typeof config === 'string') {
6510
- return /*#__PURE__*/React.createElement(Tag, {
6510
+ return /*#__PURE__*/React$1.createElement(Tag, {
6511
6511
  className: className
6512
6512
  }, config);
6513
6513
  }
@@ -6549,33 +6549,33 @@ const StyledJRFrame$1 = styled__default["default"].div`
6549
6549
  `;
6550
6550
  class JRFrame extends JRSubmit {
6551
6551
  renderer() {
6552
- return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
6552
+ return /*#__PURE__*/React$1.createElement(StyledJRFrame$1, {
6553
6553
  style: this.props.style,
6554
6554
  className: `${this.props.className} jr-frame`
6555
- }, /*#__PURE__*/React.createElement(FreeType$1, {
6555
+ }, /*#__PURE__*/React$1.createElement(FreeType$1, {
6556
6556
  tag: "div",
6557
6557
  config: this.props.start,
6558
6558
  me: this,
6559
6559
  className: 'start'
6560
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6560
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
6561
6561
  tag: "header",
6562
6562
  config: this.props.top,
6563
6563
  me: this
6564
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6564
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType$1, {
6565
6565
  tag: "div",
6566
6566
  config: this.props.left,
6567
6567
  me: this,
6568
6568
  className: 'left'
6569
- }), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React.createElement(FreeType$1, {
6569
+ }), this.renderMe?.() ?? this.props.children, /*#__PURE__*/React$1.createElement(FreeType$1, {
6570
6570
  tag: "div",
6571
6571
  config: this.props.right,
6572
6572
  me: this,
6573
6573
  className: 'right'
6574
- })), /*#__PURE__*/React.createElement(FreeType$1, {
6574
+ })), /*#__PURE__*/React$1.createElement(FreeType$1, {
6575
6575
  tag: "footer",
6576
6576
  config: this.props.bottom,
6577
6577
  me: this
6578
- })), /*#__PURE__*/React.createElement(FreeType$1, {
6578
+ })), /*#__PURE__*/React$1.createElement(FreeType$1, {
6579
6579
  tag: "div",
6580
6580
  config: this.props.end,
6581
6581
  me: this,
@@ -6602,10 +6602,10 @@ const StyledSlider$1 = styled__default["default"].div`
6602
6602
  border-right:1px dashed gray;
6603
6603
  }
6604
6604
  `;
6605
- class Slider$1 extends React.Component {
6605
+ class Slider$1 extends React$1.Component {
6606
6606
  constructor() {
6607
6607
  super();
6608
- this.sliderRef = /*#__PURE__*/React.createRef();
6608
+ this.sliderRef = /*#__PURE__*/React$1.createRef();
6609
6609
  }
6610
6610
  stop = e => {
6611
6611
  this.sliderRef.current.classList.remove('resizing');
@@ -6654,7 +6654,7 @@ class Slider$1 extends React.Component {
6654
6654
  }
6655
6655
  render() {
6656
6656
  const column = this.props.column;
6657
- return /*#__PURE__*/React.createElement(StyledSlider$1, {
6657
+ return /*#__PURE__*/React$1.createElement(StyledSlider$1, {
6658
6658
  ref: this.sliderRef,
6659
6659
  onMouseDown: e => {
6660
6660
  this.start(this.props.thRef, column);
@@ -6667,7 +6667,7 @@ const Colgroup = ({
6667
6667
  leafColumns,
6668
6668
  colGroupRef
6669
6669
  }) => {
6670
- return /*#__PURE__*/React.createElement("colgroup", {
6670
+ return /*#__PURE__*/React$1.createElement("colgroup", {
6671
6671
  ref: colGroupRef
6672
6672
  }, leafColumns?.map((_column, index) => {
6673
6673
  const {
@@ -6677,7 +6677,7 @@ const Colgroup = ({
6677
6677
  const style = {
6678
6678
  width
6679
6679
  };
6680
- return /*#__PURE__*/React.createElement("col", {
6680
+ return /*#__PURE__*/React$1.createElement("col", {
6681
6681
  style: style,
6682
6682
  key: index
6683
6683
  });
@@ -6690,13 +6690,13 @@ const Ths$1 = ({
6690
6690
  table
6691
6691
  }) => {
6692
6692
  return rowColumn?.map((column, colIndex) => {
6693
- const thRef = /*#__PURE__*/React.createRef();
6694
- return /*#__PURE__*/React.createElement("th", {
6693
+ const thRef = /*#__PURE__*/React$1.createRef();
6694
+ return /*#__PURE__*/React$1.createElement("th", {
6695
6695
  key: colIndex,
6696
6696
  ref: thRef,
6697
6697
  colSpan: column.colSpan,
6698
6698
  rowSpan: column.rowSpan ?? (column.isLeaf && deep > rowIndex ? deep - rowIndex + 1 : null)
6699
- }, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React.createElement(Slider$1, {
6699
+ }, flexType(column.label, table), table.props.resizableColumns === true && /*#__PURE__*/React$1.createElement(Slider$1, {
6700
6700
  table: table,
6701
6701
  thRef: thRef,
6702
6702
  column: column
@@ -6710,10 +6710,10 @@ const HeadTrs = ({
6710
6710
  }) => {
6711
6711
  const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
6712
6712
  return columns?.map((rowColumn, rowIndex) => {
6713
- return /*#__PURE__*/React.createElement("tr", {
6713
+ return /*#__PURE__*/React$1.createElement("tr", {
6714
6714
  className: trClassName,
6715
6715
  key: rowIndex
6716
- }, /*#__PURE__*/React.createElement(Ths$1, {
6716
+ }, /*#__PURE__*/React$1.createElement(Ths$1, {
6717
6717
  deep: columns.length - 1,
6718
6718
  rowColumn: rowColumn,
6719
6719
  rowIndex: rowIndex,
@@ -6726,10 +6726,10 @@ const THead = ({
6726
6726
  leafColumns,
6727
6727
  table
6728
6728
  }) => {
6729
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadTrs, {
6729
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement(HeadTrs, {
6730
6730
  columns: columns,
6731
6731
  table: table
6732
- })), /*#__PURE__*/React.createElement(Colgroup, {
6732
+ })), /*#__PURE__*/React$1.createElement(Colgroup, {
6733
6733
  leafColumns: leafColumns,
6734
6734
  colGroupRef: table.colGroupRef
6735
6735
  }));
@@ -6754,7 +6754,7 @@ const FootThs = ({
6754
6754
  // }
6755
6755
  let style = flexType(column.style, table, {}, {});
6756
6756
  const content = whatType(column, table, column.label);
6757
- return /*#__PURE__*/React.createElement("th", {
6757
+ return /*#__PURE__*/React$1.createElement("th", {
6758
6758
  style: style,
6759
6759
  colSpan: column.colSpan,
6760
6760
  rowSpan: column.rowSpan
@@ -6766,14 +6766,14 @@ const TFoot = ({
6766
6766
  columns
6767
6767
  }) => {
6768
6768
  const trs = columns?.map((rowColumn, rowIndex) => {
6769
- return /*#__PURE__*/React.createElement("tr", {
6769
+ return /*#__PURE__*/React$1.createElement("tr", {
6770
6770
  key: rowIndex
6771
- }, /*#__PURE__*/React.createElement(FootThs, {
6771
+ }, /*#__PURE__*/React$1.createElement(FootThs, {
6772
6772
  columns: rowColumn,
6773
6773
  table: table
6774
6774
  }));
6775
6775
  });
6776
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tfoot", null, trs));
6776
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tfoot", null, trs));
6777
6777
  };
6778
6778
 
6779
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.createElement("th", {
6827
+ return /*#__PURE__*/React$1.createElement("th", {
6828
6828
  key: colIndex,
6829
6829
  style: {
6830
6830
  textAlign: align,
@@ -6844,10 +6844,10 @@ const GroupColumns = ({
6844
6844
  }) => {
6845
6845
  const columns = Array.isArray(_columns?.[0]) ? _columns : [_columns];
6846
6846
  return columns?.map((rowColumn, rowIndex) => {
6847
- return /*#__PURE__*/React.createElement("tr", {
6847
+ return /*#__PURE__*/React$1.createElement("tr", {
6848
6848
  className: trClassName,
6849
6849
  key: rowIndex
6850
- }, /*#__PURE__*/React.createElement(Ths, {
6850
+ }, /*#__PURE__*/React$1.createElement(Ths, {
6851
6851
  table: table,
6852
6852
  groupData: groupData,
6853
6853
  groupIndex: tbodyIndex,
@@ -6867,7 +6867,7 @@ styled__default["default"].tr`
6867
6867
  }
6868
6868
  `;
6869
6869
  const GroupHeader = props => {
6870
- return /*#__PURE__*/React.createElement(GroupColumns, _extends({
6870
+ return /*#__PURE__*/React$1.createElement(GroupColumns, _extends({
6871
6871
  trClassName: 'jr-group-header'
6872
6872
  }, props));
6873
6873
  };
@@ -6878,7 +6878,7 @@ styled__default["default"].tr`
6878
6878
  }
6879
6879
  `;
6880
6880
  const GroupFooter = props => {
6881
- return /*#__PURE__*/React.createElement(GroupColumns, _extends({
6881
+ return /*#__PURE__*/React$1.createElement(GroupColumns, _extends({
6882
6882
  trClassName: 'jr-group-footer'
6883
6883
  }, props));
6884
6884
  };
@@ -6925,7 +6925,7 @@ const Td = ({
6925
6925
  const typeStyle = flexType(_typeStyle, table, {
6926
6926
  record
6927
6927
  }, {});
6928
- content = /*#__PURE__*/React.createElement(type, {
6928
+ content = /*#__PURE__*/React$1.createElement(type, {
6929
6929
  onChange: _onChange ? e => {
6930
6930
  _onChange?.bind(table)(e, {
6931
6931
  value,
@@ -6953,7 +6953,7 @@ const Td = ({
6953
6953
  } else {
6954
6954
  content = value;
6955
6955
  }
6956
- return /*#__PURE__*/React.createElement("td", {
6956
+ return /*#__PURE__*/React$1.createElement("td", {
6957
6957
  colSpan: style.colSpan,
6958
6958
  rowSpan: style.rowSpan,
6959
6959
  style: {
@@ -6972,7 +6972,7 @@ const Tds = ({
6972
6972
  trIndex
6973
6973
  }) => {
6974
6974
  return leafColumns?.map((column, tdIndex) => {
6975
- return /*#__PURE__*/React.createElement(Td, {
6975
+ return /*#__PURE__*/React$1.createElement(Td, {
6976
6976
  column: column,
6977
6977
  key: tdIndex,
6978
6978
  record: record,
@@ -6997,14 +6997,14 @@ const TBody = ({
6997
6997
  table,
6998
6998
  tbodyIndex
6999
6999
  };
7000
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tbody", {
7000
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tbody", {
7001
7001
  key: `tbody${tbodyIndex}`
7002
- }, groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupHeader, _extends({
7002
+ }, groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupHeader, _extends({
7003
7003
  groupData: groupData,
7004
7004
  columns: groupHeader
7005
7005
  }, neededProps)), groupData?.map?.((record, trIndex) => {
7006
7006
  const onRowClick = table.props.onRowClick?.bind(table);
7007
- return /*#__PURE__*/React.createElement("tr", {
7007
+ return /*#__PURE__*/React$1.createElement("tr", {
7008
7008
  key: trIndex,
7009
7009
  onClick: () => {
7010
7010
  onRowClick?.({
@@ -7013,13 +7013,13 @@ const TBody = ({
7013
7013
  groupIndex: tbodyIndex
7014
7014
  });
7015
7015
  }
7016
- }, /*#__PURE__*/React.createElement(Tds, _extends({
7016
+ }, /*#__PURE__*/React$1.createElement(Tds, _extends({
7017
7017
  record: record,
7018
7018
  trIndex: trIndex
7019
7019
  }, neededProps, {
7020
7020
  leafColumns: leafColumns
7021
7021
  })));
7022
- }), groupData?.length > 0 && /*#__PURE__*/React.createElement(GroupFooter, _extends({
7022
+ }), groupData?.length > 0 && /*#__PURE__*/React$1.createElement(GroupFooter, _extends({
7023
7023
  groupData: groupData,
7024
7024
  columns: groupFooter
7025
7025
  }, neededProps))));
@@ -7037,7 +7037,7 @@ const TBodies = ({
7037
7037
 
7038
7038
  // po('dataSource',dataSource)
7039
7039
  return dataSource?.map((groupData, tbodyIndex, c) => {
7040
- return /*#__PURE__*/React.createElement(TBody, {
7040
+ return /*#__PURE__*/React$1.createElement(TBody, {
7041
7041
  key: `tbody${tbodyIndex}`,
7042
7042
  table: table
7043
7043
  // dataSource={dataSource}
@@ -7185,11 +7185,18 @@ const StyledJRTable = styled__default["default"].div`
7185
7185
  }
7186
7186
  `;
7187
7187
 
7188
+ function JRButton({
7189
+ icon,
7190
+ children,
7191
+ ...props
7192
+ }) {
7193
+ return /*#__PURE__*/React.createElement("button", props, icon, children);
7194
+ }
7195
+
7188
7196
  const StyledTitle = styled__default["default"].div`
7189
7197
  overflow: hidden;
7190
7198
  display: flex;
7191
- padding:2px 8px;
7192
- border:1px solid black;
7199
+ border-radius: var(--jr-window-radius) var(--jr-window-radius) 0 0;
7193
7200
  background:rgb(214, 214, 214);
7194
7201
  color: black;
7195
7202
  &:active:hover{
@@ -7203,69 +7210,164 @@ const StyledTitle = styled__default["default"].div`
7203
7210
  user-select: none;
7204
7211
 
7205
7212
  > .title{
7206
- flex: 1;
7213
+
7214
+ flex: 1;
7215
+ padding:2px 0 2px 8px;
7216
+ text-overflow: ellipsis;
7217
+ overflow: hidden;
7218
+ white-space: nowrap;
7219
+ }
7220
+ > nav{
7221
+ display: flex;
7222
+ align-items: anchor-center;
7223
+
7224
+
7225
+ >button{
7226
+ display:flex;
7227
+ align-items: center;
7228
+ justify-content: center;
7229
+ border: unset;
7230
+ background: unset;
7231
+ cursor: pointer;
7232
+ width:32px;
7233
+ height:32px;
7234
+ xborder:1px solid green;
7235
+ padding: 0;
7236
+ margin: 0;
7237
+ &:hover{
7238
+ background: #bbbbbb;
7239
+ color:white;
7240
+ }
7241
+ >svg{
7242
+ width:14px;
7243
+ height:14px;
7244
+ cursor: pointer;
7245
+ }
7246
+ }
7247
+ >button.danger:hover{
7248
+ background: red;
7249
+ color:white;
7250
+ }
7207
7251
  }
7208
7252
  `;
7209
- class TitleBar extends React.Component {
7253
+ class TitleBar extends React$1.Component {
7210
7254
  pos1 = 0;
7211
7255
  pos2 = 0;
7212
7256
  pos3 = 0;
7213
7257
  pos4 = 0;
7214
7258
  x = 0;
7215
7259
  y = 0;
7260
+ stop = e => {
7261
+ e.preventDefault();
7262
+ if (this.moved) {
7263
+ const {
7264
+ height: titleBarHeight
7265
+ } = this.props.titleBarRef.current.getBoundingClientRect();
7266
+ const {
7267
+ x,
7268
+ y,
7269
+ width,
7270
+ height
7271
+ } = this.props.windowRef.current.getBoundingClientRect();
7272
+ po('y', y);
7273
+ if (y < 1) {
7274
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y), left .1s ease-in';
7275
+ this.props.windowRef.current.style.left = `${-this.props.thick}px`;
7276
+ this.props.windowRef.current.style.width = `calc(100vw + ${this.props.thick * 2}px)`; //`${window.innerWidth+(this.props.thick*2)}px`
7277
+ this.props.windowRef.current.style.height = `calc(100vh + ${this.props.thick * 2}px)`; //`${window.innerHeight+(this.props.thick*2)}px`
7278
+
7279
+ this.props.window.orgHeight = height;
7280
+ this.props.window.orgWidth = width;
7281
+ }
7282
+ if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
7283
+ if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
7284
+ if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
7285
+ document.body.style.cursor = 'default';
7286
+ }
7287
+ window.removeEventListener('mousemove', this.move);
7288
+ window.removeEventListener('mouseup', this.stop);
7289
+ };
7216
7290
  move = e => {
7217
7291
  e.preventDefault();
7218
- this.pos1 = this.pos3 - e.clientX;
7219
- this.pos2 = this.pos4 - e.clientY;
7220
- this.pos3 = e.clientX;
7221
- this.pos4 = e.clientY;
7292
+ this.moved = true;
7293
+ const {
7294
+ clientX,
7295
+ clientY
7296
+ } = e;
7297
+ const y = clientY < 1 ? 0 : clientY;
7298
+ this.pos1 = this.pos3 - clientX;
7299
+ this.pos2 = this.pos4 - y;
7300
+ this.pos3 = clientX;
7301
+ this.pos4 = y;
7222
7302
  const w = this.props.windowRef.current;
7223
7303
  this.x = w.offsetLeft - this.pos1;
7224
7304
  this.y = w.offsetTop - this.pos2;
7305
+ if (this.props.window.orgHeight) {
7306
+ w.style.height = `${this.props.window.orgHeight}px`;
7307
+ this.props.window.orgHeight = null;
7308
+ }
7309
+ if (this.props.window.orgWidth) {
7310
+ if (clientX > this.props.window.orgWidth) {
7311
+ this.x = clientX - this.props.window.orgWidth / 2;
7312
+ }
7313
+ w.style.width = `${this.props.window.orgWidth}px`;
7314
+ this.props.window.orgWidth = null;
7315
+ }
7316
+ this.y = this.y < -this.props.thick ? -this.props.thick : this.y;
7225
7317
  w.style.top = this.y + 'px';
7226
7318
  w.style.left = this.x + 'px';
7227
7319
  };
7228
- stop = e => {
7229
- // const w= this.props.windowRef.current
7230
- // if(this.y<1)this.props.windowRef.current.style.top = '1px'
7231
- // if(this.y>window.innerHeight)this.props.windowRef.current.style.top = `${window.innerHeight-32}px`
7232
- // if(this.x<1)this.props.windowRef.current.style.left = '1px'
7233
- // if(this.x>window.innerWidth)this.props.windowRef.current.style.left = `${window.innerWidth-100}px`
7234
- document.body.style.cursor = 'default';
7235
- window.removeEventListener('mousemove', this.move);
7236
- window.removeEventListener('mouseup', this.stop);
7237
- };
7238
7320
  start(e) {
7239
7321
  e.preventDefault();
7322
+ this.moved = false;
7240
7323
  this.pos3 = e.clientX;
7241
7324
  this.pos4 = e.clientY;
7325
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
7242
7326
  document.body.style.cursor = 'grabbing';
7243
7327
  window.addEventListener('mousemove', this.move);
7244
7328
  window.addEventListener('mouseup', this.stop);
7245
7329
  }
7246
7330
  render() {
7247
- return /*#__PURE__*/React.createElement(StyledTitle, {
7331
+ return /*#__PURE__*/React$1.createElement(StyledTitle, {
7248
7332
  ref: this.props.titleBarRef,
7249
7333
  draggable: "false",
7250
7334
  onMouseDown: e => {
7251
7335
  this.start(e);
7252
7336
  }
7253
- }, /*#__PURE__*/React.createElement(FreeType$1, {
7337
+ }, /*#__PURE__*/React$1.createElement(FreeType$1, {
7254
7338
  tag: "div",
7255
7339
  config: this.props.title ?? '',
7256
7340
  me: this.props.window,
7257
7341
  className: 'title'
7258
- }), /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("button", null, "X")));
7342
+ }), /*#__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, {
7343
+ className: 'danger',
7344
+ onClick: () => {
7345
+ this.props.window.props.setOpen(false);
7346
+ }
7347
+ }) : null));
7259
7348
  }
7260
7349
  }
7261
7350
 
7351
+ const directions = ['n', 'e', 's', 'w', 'nww', 'nnw', 'nne', 'nee', 'sse', 'see', 'sww', 'ssw'];
7352
+ class Sliders extends React$1.Component {
7353
+ render() {
7354
+ return directions.map((direction, index) => /*#__PURE__*/React$1.createElement(Slider, {
7355
+ direction: direction,
7356
+ thick: this.props.thick,
7357
+ windowRef: this.props.windowRef,
7358
+ window: this.props.window,
7359
+ titleBarRef: this.props.titleBarRef,
7360
+ key: index
7361
+ }));
7362
+ }
7363
+ }
7262
7364
  const StyledSlider = styled__default["default"].div`
7263
7365
  Xborder:1px solid ${({
7264
7366
  $direction: {
7265
7367
  color
7266
7368
  }
7267
7369
  }) => color};
7268
- xbackground:${({
7370
+ Xbackground:${({
7269
7371
  $direction: {
7270
7372
  color
7271
7373
  }
@@ -7314,13 +7416,13 @@ const StyledSlider = styled__default["default"].div`
7314
7416
  user-select: none;
7315
7417
 
7316
7418
  `;
7317
- class Slider extends React.Component {
7419
+ class Slider extends React$1.Component {
7318
7420
  width = '3px';
7319
7421
  borderWidth = 'px';
7320
- borderLong = '10px';
7422
+ borderLong = 30;
7321
7423
  constructor(props) {
7322
7424
  super(props);
7323
- this.sliderRef = /*#__PURE__*/React.createRef();
7425
+ this.sliderRef = /*#__PURE__*/React$1.createRef();
7324
7426
  }
7325
7427
  directions = {
7326
7428
  n: {
@@ -7363,12 +7465,24 @@ class Slider extends React.Component {
7363
7465
  this.resizeW(props);
7364
7466
  }
7365
7467
  },
7468
+ nw: {
7469
+ top: 0,
7470
+ left: 0,
7471
+ color: 'blue',
7472
+ width: `${this.borderLong}px`,
7473
+ height: `${this.borderLong}px`,
7474
+ cursor: 'nw-resize',
7475
+ resize: props => {
7476
+ this.resizeN(props);
7477
+ this.resizeW(props);
7478
+ }
7479
+ },
7366
7480
  nww: {
7367
7481
  top: 0,
7368
7482
  left: 0,
7369
7483
  color: 'blue',
7370
- width: `${this.props.thick}px`,
7371
- height: this.borderLong,
7484
+ width: `${this.props.thick + this.borderLong}px`,
7485
+ height: `${this.props.thick}px`,
7372
7486
  cursor: 'nw-resize',
7373
7487
  resize: props => {
7374
7488
  this.resizeN(props);
@@ -7379,8 +7493,8 @@ class Slider extends React.Component {
7379
7493
  top: 0,
7380
7494
  left: 0,
7381
7495
  color: 'blue',
7382
- width: this.borderLong,
7383
- height: `${this.props.thick}px`,
7496
+ width: `${this.props.thick}px`,
7497
+ height: `${this.props.thick + this.borderLong}px`,
7384
7498
  cursor: 'nw-resize',
7385
7499
  resize: props => {
7386
7500
  this.resizeN(props);
@@ -7391,7 +7505,7 @@ class Slider extends React.Component {
7391
7505
  top: 0,
7392
7506
  right: 0,
7393
7507
  color: 'green',
7394
- width: this.borderLong,
7508
+ width: `${this.props.thick + this.borderLong}px`,
7395
7509
  height: `${this.props.thick}px`,
7396
7510
  cursor: 'ne-resize',
7397
7511
  resize: props => {
@@ -7404,7 +7518,7 @@ class Slider extends React.Component {
7404
7518
  right: 0,
7405
7519
  color: 'green',
7406
7520
  width: `${this.props.thick}px`,
7407
- height: this.borderLong,
7521
+ height: `${this.props.thick + this.borderLong}px`,
7408
7522
  cursor: 'ne-resize',
7409
7523
  resize: props => {
7410
7524
  this.resizeN(props);
@@ -7415,7 +7529,7 @@ class Slider extends React.Component {
7415
7529
  color: 'red',
7416
7530
  right: 0,
7417
7531
  bottom: 0,
7418
- width: this.borderLong,
7532
+ width: `${this.props.thick + this.borderLong}px`,
7419
7533
  height: `${this.props.thick}px`,
7420
7534
  cursor: 'se-resize',
7421
7535
  resize: props => {
@@ -7428,7 +7542,7 @@ class Slider extends React.Component {
7428
7542
  right: 0,
7429
7543
  bottom: 0,
7430
7544
  width: `${this.props.thick}px`,
7431
- height: this.borderLong,
7545
+ height: `${this.props.thick + this.borderLong}px`,
7432
7546
  cursor: 'se-resize',
7433
7547
  resize: props => {
7434
7548
  this.resizeS(props);
@@ -7439,7 +7553,7 @@ class Slider extends React.Component {
7439
7553
  color: 'yellow',
7440
7554
  bottom: 0,
7441
7555
  left: 0,
7442
- width: this.borderLong,
7556
+ width: `${this.props.thick + this.borderLong}px`,
7443
7557
  height: `${this.props.thick}px`,
7444
7558
  cursor: 'sw-resize',
7445
7559
  resize: props => {
@@ -7452,7 +7566,7 @@ class Slider extends React.Component {
7452
7566
  bottom: 0,
7453
7567
  left: 0,
7454
7568
  width: `${this.props.thick}px`,
7455
- height: this.borderLong,
7569
+ height: `${this.props.thick + this.borderLong}px`,
7456
7570
  cursor: 'sw-resize',
7457
7571
  resize: props => {
7458
7572
  this.resizeS(props);
@@ -7460,11 +7574,6 @@ class Slider extends React.Component {
7460
7574
  }
7461
7575
  }
7462
7576
  };
7463
- stop = e => {
7464
- document.body.style.cursor = 'default';
7465
- window.removeEventListener('mousemove', this.move);
7466
- window.removeEventListener('mouseup', this.stop);
7467
- };
7468
7577
  resizeN = ({
7469
7578
  window,
7470
7579
  cursorY,
@@ -7509,8 +7618,8 @@ class Slider extends React.Component {
7509
7618
  startWidth,
7510
7619
  titleBarHeight
7511
7620
  }) => {
7512
- let x = cursorX;
7513
- if (x <= 1) x = 1;
7621
+ let x = cursorX - this.props.thick;
7622
+ if (x < 0) x = 0;
7514
7623
  let width = startWidth + (startX - x);
7515
7624
  if (width < titleBarHeight + this.props.thick * 2) {
7516
7625
  width = titleBarHeight + this.props.thick * 2;
@@ -7519,7 +7628,31 @@ class Slider extends React.Component {
7519
7628
  window.style.left = `${x}px`;
7520
7629
  window.style.width = `${width}px`;
7521
7630
  };
7631
+ stop = e => {
7632
+ e.preventDefault();
7633
+ const {
7634
+ height: titleBarHeight
7635
+ } = this.props.titleBarRef.current.getBoundingClientRect();
7636
+ const {
7637
+ x,
7638
+ y,
7639
+ width,
7640
+ height
7641
+ } = this.props.windowRef.current.getBoundingClientRect();
7642
+ this.props.windowRef.current.style.transition = 'var(--transition-x-y)';
7643
+ if (y == 0 && this.data.direction.indexOf('n') > -1) {
7644
+ this.props.window.orgHeight = height;
7645
+ this.props.windowRef.current.style.height = `${window.innerHeight}px`;
7646
+ }
7647
+ if (y > window.innerHeight) this.props.windowRef.current.style.top = `${window.innerHeight - titleBarHeight}px`;
7648
+ if (x + width - this.props.thick < 0) this.props.windowRef.current.style.left = 0;
7649
+ if (x > window.innerWidth) this.props.windowRef.current.style.left = `${window.innerWidth - width}px`;
7650
+ document.body.style.cursor = 'default';
7651
+ window.removeEventListener('mousemove', this.move);
7652
+ window.removeEventListener('mouseup', this.stop);
7653
+ };
7522
7654
  move = e => {
7655
+ e.preventDefault();
7523
7656
  const {
7524
7657
  clientX,
7525
7658
  clientY,
@@ -7552,47 +7685,60 @@ class Slider extends React.Component {
7552
7685
  startHeight,
7553
7686
  top
7554
7687
  });
7555
- /////////////////////////////////////////////////////////////
7556
-
7557
- /////////////////////////////////////////////////////////////
7558
7688
  };
7559
- start = () => {
7689
+ start = (e, direction) => {
7690
+ e.preventDefault();
7560
7691
  const {
7561
7692
  height: titleBarHeight
7562
7693
  } = this.props.titleBarRef.current.getBoundingClientRect();
7563
- const {
7694
+ let {
7564
7695
  x,
7565
7696
  y,
7566
7697
  width,
7567
7698
  height
7568
7699
  } = this.props.windowRef.current.getBoundingClientRect();
7700
+ if (direction.indexOf('n') > -1) {
7701
+ if (this.props.window.orgHeight) {
7702
+ height = this.props.window.orgHeight;
7703
+ this.props.window.orgHeight = null;
7704
+ }
7705
+ } else if (direction.indexOf('s') > -1) {
7706
+ this.props.window.orgHeight = null;
7707
+ }
7569
7708
  this.data = {
7570
7709
  x,
7571
7710
  y,
7572
7711
  width,
7573
7712
  height,
7574
- titleBarHeight
7713
+ titleBarHeight,
7714
+ direction
7575
7715
  };
7716
+ this.props.windowRef.current.style.transition = 'unset';
7576
7717
  document.body.style.cursor = this.directions[this.props.direction].cursor;
7577
7718
  window.addEventListener('mousemove', this.move);
7578
7719
  window.addEventListener('mouseup', this.stop);
7579
7720
  };
7580
7721
  render() {
7581
- return /*#__PURE__*/React.createElement(StyledSlider, {
7722
+ return /*#__PURE__*/React$1.createElement(StyledSlider, {
7582
7723
  $direction: this.directions[this.props.direction],
7583
7724
  $padding: this.props.padding,
7584
- onMouseDown: this.start
7725
+ onMouseDown: e => {
7726
+ this.start(e, this.props.direction);
7727
+ }
7585
7728
  });
7586
7729
  }
7587
7730
  }
7588
7731
 
7589
7732
  const StyledJRWindow = styled__default["default"].div`
7733
+ --jr-window-radius:3px;
7590
7734
  --padding-child:8px;
7735
+ --transition-x-y:height .1s ease-in, width .1s ease-in;
7591
7736
  xborder:1px solid gray;
7592
- position: absolute;
7737
+ position: fixed;
7593
7738
  padding: ${({
7594
7739
  $thick
7595
7740
  }) => $thick}px;
7741
+ border-radius: var(--jr-window-radius);
7596
7742
 
7597
7743
  top: ${({
7598
7744
  $y
@@ -7613,6 +7759,7 @@ const StyledJRWindow = styled__default["default"].div`
7613
7759
  overflow: hidden;
7614
7760
 
7615
7761
  > main{
7762
+ border-radius: var(--jr-window-radius);
7616
7763
  box-shadow: 0px 0px 5px 1px gray;
7617
7764
  Xbackground: white;
7618
7765
  display: flex;
@@ -7633,31 +7780,27 @@ class JRWindow extends JRFrame {
7633
7780
  y = 0;
7634
7781
  width = 300;
7635
7782
  height = 300;
7636
- padding = 5;
7637
- thick = 3;
7783
+ padding = 1;
7784
+ thick = 5;
7638
7785
  constructor(props) {
7639
7786
  super(props);
7640
- this.ref = /*#__PURE__*/React.createRef();
7641
- this.titleBarRef = /*#__PURE__*/React.createRef();
7642
- if (this.props.popup === true) this.renderer = this.renderWindow;
7787
+ this.ref = /*#__PURE__*/React$1.createRef();
7788
+ this.titleBarRef = /*#__PURE__*/React$1.createRef();
7643
7789
  this.init();
7644
7790
  }
7791
+ componentWillUpdate(prevProps, prevState, snapshot) {
7792
+ if (this.props.popup === true && this.props.open === true && prevProps.open === false) {
7793
+ this.props.onOpen?.bind(this)();
7794
+ }
7795
+ }
7645
7796
  init() {
7646
- this.height = window.innerHeight >= this.props.height ? this.props.height : window.innerHeight;
7647
- this.width = window.innerWidth >= this.props.width ? this.props.width : window.innerWidth;
7797
+ this.height = window.innerHeight >= (this.props.height ?? this.height) ? this.props.height ?? this.height : window.innerHeight;
7798
+ this.width = window.innerWidth >= (this.props.width ?? this.width) ? this.props.width ?? this.width : window.innerWidth;
7648
7799
  this.x = this.props.x ?? (window.innerWidth - (this.width ?? 300)) / 2;
7649
7800
  this.y = this.props.y ?? (window.innerHeight - (this.height ?? 300)) / 2;
7650
7801
  }
7651
- componentWillMount() {}
7652
- // renderer(){
7653
- // return this.props.popup===true
7654
- // ?<StyledJRWindow>
7655
- // {super.renderer()}
7656
- // </StyledJRWindow>
7657
- // :super.renderer()
7658
- // }
7659
- renderWindow() {
7660
- return /*#__PURE__*/React.createElement(StyledJRWindow, {
7802
+ renderer() {
7803
+ return this.props.popup === true ? this.props.open === true ? /*#__PURE__*/React$1.createElement(StyledJRWindow, {
7661
7804
  ref: this.ref,
7662
7805
  className: `jr-window ${this.props.className ?? ''}`,
7663
7806
  $x: this.x,
@@ -7665,88 +7808,18 @@ class JRWindow extends JRFrame {
7665
7808
  $width: this.width,
7666
7809
  $height: this.height,
7667
7810
  $thick: this.thick
7668
- // onMouseDown={()=>{
7669
- // po('onFocus')
7670
- // this.ref.current.style.zIndex=100
7671
- // }}
7672
- }, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(TitleBar, {
7811
+ }, /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(TitleBar, {
7673
7812
  titleBarRef: this.titleBarRef,
7674
7813
  windowRef: this.ref,
7675
7814
  window: this,
7676
- title: this.props.title
7677
- }), /*#__PURE__*/React.createElement("main", null, super.renderer())), /*#__PURE__*/React.createElement(Slider, {
7678
- direction: 'n',
7679
- thick: this.thick,
7680
- windowRef: this.ref,
7681
- window: this,
7682
- titleBarRef: this.titleBarRef
7683
- }), /*#__PURE__*/React.createElement(Slider, {
7684
- direction: 'e',
7685
- thick: this.thick,
7686
- windowRef: this.ref,
7687
- window: this,
7688
- titleBarRef: this.titleBarRef
7689
- }), /*#__PURE__*/React.createElement(Slider, {
7690
- direction: 's',
7691
- thick: this.thick,
7692
- windowRef: this.ref,
7693
- window: this,
7694
- titleBarRef: this.titleBarRef
7695
- }), /*#__PURE__*/React.createElement(Slider, {
7696
- direction: 'w',
7815
+ title: this.props.title,
7816
+ thick: this.thick
7817
+ }), /*#__PURE__*/React$1.createElement("main", null, super.renderer())), /*#__PURE__*/React$1.createElement(Sliders, {
7697
7818
  thick: this.thick,
7698
7819
  windowRef: this.ref,
7699
7820
  window: this,
7700
7821
  titleBarRef: this.titleBarRef
7701
- }), /*#__PURE__*/React.createElement(Slider, {
7702
- direction: 'nww',
7703
- thick: this.thick,
7704
- windowRef: this.ref,
7705
- window: this,
7706
- titleBarRef: this.titleBarRef
7707
- }), /*#__PURE__*/React.createElement(Slider, {
7708
- direction: 'nnw',
7709
- thick: this.thick,
7710
- windowRef: this.ref,
7711
- window: this,
7712
- titleBarRef: this.titleBarRef
7713
- }), /*#__PURE__*/React.createElement(Slider, {
7714
- direction: 'nne',
7715
- thick: this.thick,
7716
- windowRef: this.ref,
7717
- window: this,
7718
- titleBarRef: this.titleBarRef
7719
- }), /*#__PURE__*/React.createElement(Slider, {
7720
- direction: 'nee',
7721
- thick: this.thick,
7722
- windowRef: this.ref,
7723
- window: this,
7724
- titleBarRef: this.titleBarRef
7725
- }), /*#__PURE__*/React.createElement(Slider, {
7726
- direction: 'sse',
7727
- thick: this.thick,
7728
- windowRef: this.ref,
7729
- window: this,
7730
- titleBarRef: this.titleBarRef
7731
- }), /*#__PURE__*/React.createElement(Slider, {
7732
- direction: 'see',
7733
- thick: this.thick,
7734
- windowRef: this.ref,
7735
- window: this,
7736
- titleBarRef: this.titleBarRef
7737
- }), /*#__PURE__*/React.createElement(Slider, {
7738
- direction: 'sww',
7739
- thick: this.thick,
7740
- windowRef: this.ref,
7741
- window: this,
7742
- titleBarRef: this.titleBarRef
7743
- }), /*#__PURE__*/React.createElement(Slider, {
7744
- direction: 'ssw',
7745
- thick: this.thick,
7746
- windowRef: this.ref,
7747
- window: this,
7748
- titleBarRef: this.titleBarRef
7749
- }));
7822
+ })) : '' : super.renderer();
7750
7823
  }
7751
7824
  }
7752
7825
 
@@ -7772,7 +7845,7 @@ const setMapObject = (map, names, value) => {
7772
7845
  class JRTable extends JRWindow {
7773
7846
  constructor(props) {
7774
7847
  super(props);
7775
- this.colGroupRef = /*#__PURE__*/React.createRef();
7848
+ this.colGroupRef = /*#__PURE__*/React$1.createRef();
7776
7849
  }
7777
7850
  UNSAFE_componentWillMount() {
7778
7851
  this.setColumns(this.props.columns ?? []);
@@ -7789,7 +7862,7 @@ class JRTable extends JRWindow {
7789
7862
  value,
7790
7863
  onChange
7791
7864
  }) {
7792
- return /*#__PURE__*/React.createElement("checkbox", {
7865
+ return /*#__PURE__*/React$1.createElement("checkbox", {
7793
7866
  checked: value,
7794
7867
  onChange: e => {
7795
7868
  onChange(e.target.checked);
@@ -7828,7 +7901,7 @@ class JRTable extends JRWindow {
7828
7901
  value,
7829
7902
  onChange
7830
7903
  }) {
7831
- return /*#__PURE__*/React.createElement("checkbox", {
7904
+ return /*#__PURE__*/React$1.createElement("checkbox", {
7832
7905
  checked: value,
7833
7906
  onChange: e => {
7834
7907
  onChange(e.target.checked);
@@ -7838,7 +7911,7 @@ class JRTable extends JRWindow {
7838
7911
  align: 'center',
7839
7912
  name,
7840
7913
  label() {
7841
- return /*#__PURE__*/React.createElement("button", {
7914
+ return /*#__PURE__*/React$1.createElement("button", {
7842
7915
  onClick: () => {
7843
7916
  const value = this.props.delete.value ?? this.getDataSource()?.filter(record => record[name]).map(record => sendValue ? record[sendValue] : record);
7844
7917
  const callback = this.props.delete.callback ?? function (a, b, c) {
@@ -7961,25 +8034,25 @@ class JRTable extends JRWindow {
7961
8034
  }
7962
8035
  //------------------------------------------------------------------------------------
7963
8036
  renderMe() {
7964
- return /*#__PURE__*/React.createElement(StyledJRTable, {
8037
+ return /*#__PURE__*/React$1.createElement(StyledJRTable, {
7965
8038
  className: `${this.props.className ?? ''} jr-table ${this.props.onRowClick ? 'row-highlightable' : ''}`
7966
- }, /*#__PURE__*/React.createElement("table", {
8039
+ }, /*#__PURE__*/React$1.createElement("table", {
7967
8040
  className: 'jr-table-table'
7968
- }, /*#__PURE__*/React.createElement(TBodies, {
8041
+ }, /*#__PURE__*/React$1.createElement(TBodies, {
7969
8042
  table: this,
7970
8043
  leafColumns: this.state.leafColumns,
7971
8044
  groupHeader: this.props.groupHeader,
7972
8045
  groupFooter: this.props.groupFooter,
7973
8046
  dataSource: this.getDataSource(),
7974
8047
  onRowClick: this.props.onRowClick
7975
- }), /*#__PURE__*/React.createElement(TFoot, {
8048
+ }), /*#__PURE__*/React$1.createElement(TFoot, {
7976
8049
  columns: this.props.footColumns,
7977
8050
  table: this
7978
- }), /*#__PURE__*/React.createElement(THead, {
8051
+ }), /*#__PURE__*/React$1.createElement(THead, {
7979
8052
  columns: this.state.columns,
7980
8053
  leafColumns: this.state.leafColumns,
7981
8054
  table: this
7982
- })), /*#__PURE__*/React.createElement("div", {
8055
+ })), /*#__PURE__*/React$1.createElement("div", {
7983
8056
  className: 'empty'
7984
8057
  }, this.noData() && '無資料'));
7985
8058
  }
@@ -8328,12 +8401,12 @@ class JRFields extends JRWindow {
8328
8401
  }
8329
8402
  if (type) {
8330
8403
  const typeStyle = flexType(_typeStyle, this, null);
8331
- content = /*#__PURE__*/React.createElement(StyledColumnValue, {
8404
+ content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
8332
8405
  className: 'jr-column-value',
8333
8406
  style: {
8334
8407
  gridColumn: label == null ? 'span 2' : null
8335
8408
  }
8336
- }, /*#__PURE__*/React.createElement(type, {
8409
+ }, /*#__PURE__*/React$1.createElement(type, {
8337
8410
  value: value,
8338
8411
  onChange,
8339
8412
  record: parentValue,
@@ -8344,13 +8417,13 @@ class JRFields extends JRWindow {
8344
8417
  ...column
8345
8418
  }));
8346
8419
  } else if (column.columns) {
8347
- content = /*#__PURE__*/React.createElement(StyledGrid, {
8420
+ content = /*#__PURE__*/React$1.createElement(StyledGrid, {
8348
8421
  cols: column.cols,
8349
8422
  className: 'jr-grid',
8350
8423
  $gap: gap
8351
8424
  }, this.createColumns(value, column.columns, _parentName, fullname));
8352
8425
  } else if (name || column.render) {
8353
- content = /*#__PURE__*/React.createElement(StyledColumnValue, {
8426
+ content = /*#__PURE__*/React$1.createElement(StyledColumnValue, {
8354
8427
  className: 'jr-column-value',
8355
8428
  style: {
8356
8429
  gridColumn: label == null ? 'span 2' : null,
@@ -8364,7 +8437,7 @@ class JRFields extends JRWindow {
8364
8437
  }
8365
8438
  const layout = column.labelProps?.layout === undefined ? this.props.labelProps?.layout : column.labelProps?.layout;
8366
8439
  const labelStyle = column.labelProps?.style ?? this.props.labelProps?.style ?? {};
8367
- return /*#__PURE__*/React.createElement(StyledColumn, {
8440
+ return /*#__PURE__*/React$1.createElement(StyledColumn, {
8368
8441
  $layout: layout,
8369
8442
  $hasLabel: label != null,
8370
8443
  key: `f${index}`,
@@ -8372,18 +8445,18 @@ class JRFields extends JRWindow {
8372
8445
  className: 'jr-column',
8373
8446
  $labelWidth: column.labelProps?.width ?? this.props.labelProps?.width ?? '120px',
8374
8447
  $valueWidth: column.valueProps?.width ?? this.props.valueProps?.width ?? '1fr'
8375
- }, label != null && /*#__PURE__*/React.createElement(StyledColumnLabel, {
8448
+ }, label != null && /*#__PURE__*/React$1.createElement(StyledColumnLabel, {
8376
8449
  style: labelStyle,
8377
8450
  $required: required,
8378
8451
  className: 'label',
8379
8452
  $layout: layout,
8380
8453
  $colon: column.labelProps?.colon === undefined ? this.colon : column.labelProps?.colon
8381
- }, label), content, this.props.debugMode && /*#__PURE__*/React.createElement(StyledColumnFooter, null, /*#__PURE__*/React.createElement("div", {
8454
+ }, label), content, this.props.debugMode && /*#__PURE__*/React$1.createElement(StyledColumnFooter, null, /*#__PURE__*/React$1.createElement("div", {
8382
8455
  className: "left"
8383
- }, /*#__PURE__*/React.createElement(ColumnMessage, {
8456
+ }, /*#__PURE__*/React$1.createElement(ColumnMessage, {
8384
8457
  value: this.getValidateValue(_parentName.join('.')),
8385
8458
  record: this.getValue()
8386
- })), /*#__PURE__*/React.createElement("div", {
8459
+ })), /*#__PURE__*/React$1.createElement("div", {
8387
8460
  className: "right"
8388
8461
  }))
8389
8462
  // validateValue?.[name]!==undefined && <StyledColumnFooter $layout={layout}>
@@ -8398,10 +8471,10 @@ class JRFields extends JRWindow {
8398
8471
  });
8399
8472
  }
8400
8473
  renderMe() {
8401
- return /*#__PURE__*/React.createElement(StyleJRFields, {
8474
+ return /*#__PURE__*/React$1.createElement(StyleJRFields, {
8402
8475
  className: 'jr-fields',
8403
8476
  style: this.props.typeStyle
8404
- }, /*#__PURE__*/React.createElement(StyledGrid, {
8477
+ }, /*#__PURE__*/React$1.createElement(StyledGrid, {
8405
8478
  cols: this.props.cols,
8406
8479
  style: this.props.gridStyle,
8407
8480
  className: 'jr-grid',
@@ -8463,7 +8536,7 @@ const FreeType = ({
8463
8536
  const content = config.bind(me)({
8464
8537
  setStyle
8465
8538
  });
8466
- return /*#__PURE__*/React.createElement(Tag, {
8539
+ return /*#__PURE__*/React$1.createElement(Tag, {
8467
8540
  className: className,
8468
8541
  style: style
8469
8542
  }, content);
@@ -8471,33 +8544,33 @@ const FreeType = ({
8471
8544
  };
8472
8545
  class JRTestReact extends JRSubmit {
8473
8546
  renderer() {
8474
- return /*#__PURE__*/React.createElement(StyledJRFrame, {
8547
+ return /*#__PURE__*/React$1.createElement(StyledJRFrame, {
8475
8548
  style: this.props.style,
8476
8549
  className: `${this.props.className} jr-frame`
8477
- }, /*#__PURE__*/React.createElement(FreeType, {
8550
+ }, /*#__PURE__*/React$1.createElement(FreeType, {
8478
8551
  tag: "div",
8479
8552
  config: this.props.start,
8480
8553
  me: this,
8481
8554
  className: 'start'
8482
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
8555
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
8483
8556
  tag: "header",
8484
8557
  config: this.props.top,
8485
8558
  me: this
8486
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
8559
+ }), /*#__PURE__*/React$1.createElement("main", null, /*#__PURE__*/React$1.createElement(FreeType, {
8487
8560
  tag: "div",
8488
8561
  config: this.props.left,
8489
8562
  me: this,
8490
8563
  className: 'left'
8491
- }), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
8564
+ }), this.renderMe(), /*#__PURE__*/React$1.createElement(FreeType, {
8492
8565
  tag: "div",
8493
8566
  config: this.props.right,
8494
8567
  me: this,
8495
8568
  className: 'right'
8496
- })), /*#__PURE__*/React.createElement(FreeType, {
8569
+ })), /*#__PURE__*/React$1.createElement(FreeType, {
8497
8570
  tag: "footer",
8498
8571
  config: this.props.bottom,
8499
8572
  me: this
8500
- })), /*#__PURE__*/React.createElement(FreeType, {
8573
+ })), /*#__PURE__*/React$1.createElement(FreeType, {
8501
8574
  tag: "div",
8502
8575
  config: this.props.end,
8503
8576
  me: this,
@@ -8505,7 +8578,7 @@ class JRTestReact extends JRSubmit {
8505
8578
  }));
8506
8579
  }
8507
8580
  renderMe() {
8508
- return /*#__PURE__*/React.createElement("div", {
8581
+ return /*#__PURE__*/React$1.createElement("div", {
8509
8582
  style: {
8510
8583
  flex: 1
8511
8584
  }