jrs-react 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +104 -2
- package/build/index.js +104 -1
- package/package.json +1 -1
- package/src/components/JRSubmit.jsx +1 -1
- package/src/index.js +3 -2
package/build/index.es.js
CHANGED
|
@@ -7337,7 +7337,9 @@ class JRSubmit extends React.Component {
|
|
|
7337
7337
|
me.setState({
|
|
7338
7338
|
loading: false
|
|
7339
7339
|
});
|
|
7340
|
-
|
|
7340
|
+
displaySpinner({
|
|
7341
|
+
mask: false
|
|
7342
|
+
});
|
|
7341
7343
|
});
|
|
7342
7344
|
}
|
|
7343
7345
|
handleResponse = (response, payload, config) => {
|
|
@@ -7371,6 +7373,106 @@ class JRSubmit extends React.Component {
|
|
|
7371
7373
|
}
|
|
7372
7374
|
}
|
|
7373
7375
|
|
|
7376
|
+
const StyledJRFrame = dt.div`
|
|
7377
|
+
display:flex;
|
|
7378
|
+
flex:1;
|
|
7379
|
+
overflow:hidden;
|
|
7380
|
+
|
|
7381
|
+
> *{
|
|
7382
|
+
Xborder:1px solid gray;
|
|
7383
|
+
}
|
|
7384
|
+
>main{
|
|
7385
|
+
display:flex;
|
|
7386
|
+
flex:1;
|
|
7387
|
+
overflow:overlay;
|
|
7388
|
+
flex-direction: column;
|
|
7389
|
+
> *{
|
|
7390
|
+
XXborder:1px solid gray;
|
|
7391
|
+
min-height:30px;
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7394
|
+
>header{
|
|
7395
|
+
XXborder:1px solid red;
|
|
7396
|
+
XXoverflow: overlay;
|
|
7397
|
+
}
|
|
7398
|
+
>main{
|
|
7399
|
+
display:flex;
|
|
7400
|
+
flex:1;
|
|
7401
|
+
overflow:hidden;
|
|
7402
|
+
}
|
|
7403
|
+
>footer{
|
|
7404
|
+
XXborder:1px solid blue;
|
|
7405
|
+
overflow: overlay;
|
|
7406
|
+
}
|
|
7407
|
+
|
|
7408
|
+
}
|
|
7409
|
+
|
|
7410
|
+
`;
|
|
7411
|
+
|
|
7412
|
+
const FreeType = ({
|
|
7413
|
+
tag: Tag,
|
|
7414
|
+
config,
|
|
7415
|
+
me,
|
|
7416
|
+
className
|
|
7417
|
+
}) => {
|
|
7418
|
+
if (typeof config === 'function') {
|
|
7419
|
+
let style;
|
|
7420
|
+
const setStyle = function (_style) {
|
|
7421
|
+
style = _style;
|
|
7422
|
+
};
|
|
7423
|
+
const content = config.bind(me)({
|
|
7424
|
+
setStyle
|
|
7425
|
+
});
|
|
7426
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7427
|
+
className: className,
|
|
7428
|
+
style: style
|
|
7429
|
+
}, content);
|
|
7430
|
+
}
|
|
7431
|
+
};
|
|
7432
|
+
class JRFrame extends JRSubmit {
|
|
7433
|
+
renderer() {
|
|
7434
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7435
|
+
style: this.props.style,
|
|
7436
|
+
className: `${this.props.className} jr-frame`
|
|
7437
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
7438
|
+
tag: "div",
|
|
7439
|
+
config: this.props.start,
|
|
7440
|
+
me: this,
|
|
7441
|
+
className: 'start'
|
|
7442
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7443
|
+
tag: "header",
|
|
7444
|
+
config: this.props.top,
|
|
7445
|
+
me: this
|
|
7446
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7447
|
+
tag: "div",
|
|
7448
|
+
config: this.props.left,
|
|
7449
|
+
me: this,
|
|
7450
|
+
className: 'left'
|
|
7451
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
7452
|
+
tag: "div",
|
|
7453
|
+
config: this.props.right,
|
|
7454
|
+
me: this,
|
|
7455
|
+
className: 'right'
|
|
7456
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7457
|
+
tag: "footer",
|
|
7458
|
+
config: this.props.bottom,
|
|
7459
|
+
me: this
|
|
7460
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7461
|
+
tag: "div",
|
|
7462
|
+
config: this.props.end,
|
|
7463
|
+
me: this,
|
|
7464
|
+
className: 'end'
|
|
7465
|
+
}));
|
|
7466
|
+
}
|
|
7467
|
+
renderMe() {
|
|
7468
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7469
|
+
style: {
|
|
7470
|
+
flex: 1
|
|
7471
|
+
}
|
|
7472
|
+
}, "Render JRFrame main");
|
|
7473
|
+
}
|
|
7474
|
+
}
|
|
7475
|
+
|
|
7374
7476
|
function JRTest() {
|
|
7375
7477
|
return 'I am JRTest string';
|
|
7376
7478
|
}
|
|
@@ -7380,4 +7482,4 @@ class JRTestReact extends React.Component {
|
|
|
7380
7482
|
}
|
|
7381
7483
|
}
|
|
7382
7484
|
|
|
7383
|
-
export { JRSubmit, JRTest, JRTestReact };
|
|
7485
|
+
export { JRFrame, JRSubmit, JRTest, JRTestReact };
|
package/build/index.js
CHANGED
|
@@ -7341,7 +7341,9 @@ class JRSubmit extends React.Component {
|
|
|
7341
7341
|
me.setState({
|
|
7342
7342
|
loading: false
|
|
7343
7343
|
});
|
|
7344
|
-
|
|
7344
|
+
displaySpinner({
|
|
7345
|
+
mask: false
|
|
7346
|
+
});
|
|
7345
7347
|
});
|
|
7346
7348
|
}
|
|
7347
7349
|
handleResponse = (response, payload, config) => {
|
|
@@ -7375,6 +7377,106 @@ class JRSubmit extends React.Component {
|
|
|
7375
7377
|
}
|
|
7376
7378
|
}
|
|
7377
7379
|
|
|
7380
|
+
const StyledJRFrame = dt.div`
|
|
7381
|
+
display:flex;
|
|
7382
|
+
flex:1;
|
|
7383
|
+
overflow:hidden;
|
|
7384
|
+
|
|
7385
|
+
> *{
|
|
7386
|
+
Xborder:1px solid gray;
|
|
7387
|
+
}
|
|
7388
|
+
>main{
|
|
7389
|
+
display:flex;
|
|
7390
|
+
flex:1;
|
|
7391
|
+
overflow:overlay;
|
|
7392
|
+
flex-direction: column;
|
|
7393
|
+
> *{
|
|
7394
|
+
XXborder:1px solid gray;
|
|
7395
|
+
min-height:30px;
|
|
7396
|
+
}
|
|
7397
|
+
|
|
7398
|
+
>header{
|
|
7399
|
+
XXborder:1px solid red;
|
|
7400
|
+
XXoverflow: overlay;
|
|
7401
|
+
}
|
|
7402
|
+
>main{
|
|
7403
|
+
display:flex;
|
|
7404
|
+
flex:1;
|
|
7405
|
+
overflow:hidden;
|
|
7406
|
+
}
|
|
7407
|
+
>footer{
|
|
7408
|
+
XXborder:1px solid blue;
|
|
7409
|
+
overflow: overlay;
|
|
7410
|
+
}
|
|
7411
|
+
|
|
7412
|
+
}
|
|
7413
|
+
|
|
7414
|
+
`;
|
|
7415
|
+
|
|
7416
|
+
const FreeType = ({
|
|
7417
|
+
tag: Tag,
|
|
7418
|
+
config,
|
|
7419
|
+
me,
|
|
7420
|
+
className
|
|
7421
|
+
}) => {
|
|
7422
|
+
if (typeof config === 'function') {
|
|
7423
|
+
let style;
|
|
7424
|
+
const setStyle = function (_style) {
|
|
7425
|
+
style = _style;
|
|
7426
|
+
};
|
|
7427
|
+
const content = config.bind(me)({
|
|
7428
|
+
setStyle
|
|
7429
|
+
});
|
|
7430
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7431
|
+
className: className,
|
|
7432
|
+
style: style
|
|
7433
|
+
}, content);
|
|
7434
|
+
}
|
|
7435
|
+
};
|
|
7436
|
+
class JRFrame extends JRSubmit {
|
|
7437
|
+
renderer() {
|
|
7438
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7439
|
+
style: this.props.style,
|
|
7440
|
+
className: `${this.props.className} jr-frame`
|
|
7441
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
7442
|
+
tag: "div",
|
|
7443
|
+
config: this.props.start,
|
|
7444
|
+
me: this,
|
|
7445
|
+
className: 'start'
|
|
7446
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7447
|
+
tag: "header",
|
|
7448
|
+
config: this.props.top,
|
|
7449
|
+
me: this
|
|
7450
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7451
|
+
tag: "div",
|
|
7452
|
+
config: this.props.left,
|
|
7453
|
+
me: this,
|
|
7454
|
+
className: 'left'
|
|
7455
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
7456
|
+
tag: "div",
|
|
7457
|
+
config: this.props.right,
|
|
7458
|
+
me: this,
|
|
7459
|
+
className: 'right'
|
|
7460
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7461
|
+
tag: "footer",
|
|
7462
|
+
config: this.props.bottom,
|
|
7463
|
+
me: this
|
|
7464
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7465
|
+
tag: "div",
|
|
7466
|
+
config: this.props.end,
|
|
7467
|
+
me: this,
|
|
7468
|
+
className: 'end'
|
|
7469
|
+
}));
|
|
7470
|
+
}
|
|
7471
|
+
renderMe() {
|
|
7472
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7473
|
+
style: {
|
|
7474
|
+
flex: 1
|
|
7475
|
+
}
|
|
7476
|
+
}, "Render JRFrame main");
|
|
7477
|
+
}
|
|
7478
|
+
}
|
|
7479
|
+
|
|
7378
7480
|
function JRTest() {
|
|
7379
7481
|
return 'I am JRTest string';
|
|
7380
7482
|
}
|
|
@@ -7384,6 +7486,7 @@ class JRTestReact extends React.Component {
|
|
|
7384
7486
|
}
|
|
7385
7487
|
}
|
|
7386
7488
|
|
|
7489
|
+
exports.JRFrame = JRFrame;
|
|
7387
7490
|
exports.JRSubmit = JRSubmit;
|
|
7388
7491
|
exports.JRTest = JRTest;
|
|
7389
7492
|
exports.JRTestReact = JRTestReact;
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import JRSubmit from './components/JRSubmit'
|
|
2
|
-
|
|
2
|
+
import JRFrame from './components/JRFrame/JRFrame'
|
|
3
3
|
// import JRTable from './components/JRTable/JRTable'
|
|
4
4
|
import JRTest,{JRTestReact} from './components/JRTest'
|
|
5
5
|
export {
|
|
6
6
|
JRTest,JRTestReact
|
|
7
|
-
,JRSubmit
|
|
7
|
+
,JRSubmit,JRFrame//,JRTable
|
|
8
|
+
|
|
8
9
|
}
|