jrs-react 1.2.41 → 1.2.43
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 +10 -42
- package/build/index.js +10 -42
- package/package.json +1 -1
- package/src/components/JRWindow/JRWindow.jsx +12 -16
package/build/index.es.js
CHANGED
|
@@ -4875,41 +4875,11 @@ class Slider$1 extends React__default.Component {
|
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
4877
|
|
|
4878
|
-
function styleInject(css, ref) {
|
|
4879
|
-
if ( ref === void 0 ) ref = {};
|
|
4880
|
-
var insertAt = ref.insertAt;
|
|
4881
|
-
|
|
4882
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
4883
|
-
|
|
4884
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4885
|
-
var style = document.createElement('style');
|
|
4886
|
-
style.type = 'text/css';
|
|
4887
|
-
|
|
4888
|
-
if (insertAt === 'top') {
|
|
4889
|
-
if (head.firstChild) {
|
|
4890
|
-
head.insertBefore(style, head.firstChild);
|
|
4891
|
-
} else {
|
|
4892
|
-
head.appendChild(style);
|
|
4893
|
-
}
|
|
4894
|
-
} else {
|
|
4895
|
-
head.appendChild(style);
|
|
4896
|
-
}
|
|
4897
|
-
|
|
4898
|
-
if (style.styleSheet) {
|
|
4899
|
-
style.styleSheet.cssText = css;
|
|
4900
|
-
} else {
|
|
4901
|
-
style.appendChild(document.createTextNode(css));
|
|
4902
|
-
}
|
|
4903
|
-
}
|
|
4904
|
-
|
|
4905
|
-
var css_248z = ".Style-module_test__LrdEc{border:1px solid red;color:red}.Style-module_withMask__LPcai{overflow:hidden!important;position:relative;user-select:none;&:after{a:#868686cc;background:#868686cc;border-radius:inherit;bottom:0;content:\"\";height:10000px;left:0;position:absolute;right:0;top:0;width:10000px}}mask{background:#868686cc;border-radius:inherit;bottom:0;height:10000px;left:0;position:absolute;right:0;top:0;width:10000px}";
|
|
4906
|
-
styleInject(css_248z);
|
|
4907
|
-
|
|
4908
4878
|
const StyledBackdrop = styled.div`
|
|
4909
4879
|
${({
|
|
4910
4880
|
$zIndex
|
|
4911
4881
|
}) => $zIndex != null ? `z-index:${$zIndex};` : null}
|
|
4912
|
-
background :
|
|
4882
|
+
background : rgba(0, 0, 0, 0.4);
|
|
4913
4883
|
height:100vh;
|
|
4914
4884
|
width:100vw;
|
|
4915
4885
|
position: fixed;
|
|
@@ -4971,7 +4941,7 @@ class Backdrop extends JRHTML {
|
|
|
4971
4941
|
backdropConfig = {
|
|
4972
4942
|
yo: 'div',
|
|
4973
4943
|
style: {
|
|
4974
|
-
background: '
|
|
4944
|
+
background: 'rgba(0, 0, 0, 0.4)',
|
|
4975
4945
|
height: '100%',
|
|
4976
4946
|
width: '100%',
|
|
4977
4947
|
position: 'absolute',
|
|
@@ -4979,9 +4949,12 @@ class Backdrop extends JRHTML {
|
|
|
4979
4949
|
left: 0
|
|
4980
4950
|
}
|
|
4981
4951
|
};
|
|
4952
|
+
constructor(params) {
|
|
4953
|
+
super(params);
|
|
4954
|
+
Object.assign(this.backdropConfig.style, params.backdropStyle);
|
|
4955
|
+
}
|
|
4982
4956
|
show() {
|
|
4983
4957
|
this.backdrop = this.agregarHijo(this.backdropConfig);
|
|
4984
|
-
po('this.hijos', this.hijos);
|
|
4985
4958
|
}
|
|
4986
4959
|
hide() {
|
|
4987
4960
|
this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
|
|
@@ -5002,14 +4975,14 @@ class JRWindow extends JRFrame {
|
|
|
5002
4975
|
}
|
|
5003
4976
|
createBackdrop() {
|
|
5004
4977
|
if (typeof this.props.backdrop === 'string') {
|
|
5005
|
-
po('find and create backdrop', this.props.backdrop);
|
|
5006
4978
|
const target = document.getElementById(this.props.backdrop);
|
|
5007
4979
|
if (target) {
|
|
5008
4980
|
this.backdropTarget = new Backdrop({
|
|
5009
4981
|
yo: target,
|
|
5010
4982
|
style: {
|
|
5011
4983
|
position: 'relative'
|
|
5012
|
-
}
|
|
4984
|
+
},
|
|
4985
|
+
backdropStyle: this.props.backdropStyle
|
|
5013
4986
|
});
|
|
5014
4987
|
}
|
|
5015
4988
|
}
|
|
@@ -5042,22 +5015,17 @@ class JRWindow extends JRFrame {
|
|
|
5042
5015
|
|
|
5043
5016
|
componentDidMount() {
|
|
5044
5017
|
super.componentDidMount();
|
|
5045
|
-
po('-------------------------componentDidMount-------------------------');
|
|
5046
5018
|
this.createBackdrop();
|
|
5047
|
-
// if(this.props.backdrop && this.props.open){
|
|
5048
|
-
// this.backdropTarget.show()
|
|
5049
|
-
// }
|
|
5050
|
-
|
|
5051
5019
|
if (this.props.open) {
|
|
5052
5020
|
this.open();
|
|
5053
5021
|
}
|
|
5054
5022
|
}
|
|
5055
5023
|
open() {
|
|
5056
|
-
this.backdropTarget
|
|
5024
|
+
this.backdropTarget?.show();
|
|
5057
5025
|
this.props.onOpen?.bind(this)();
|
|
5058
5026
|
}
|
|
5059
5027
|
close() {
|
|
5060
|
-
this.backdropTarget
|
|
5028
|
+
this.backdropTarget?.hide();
|
|
5061
5029
|
this.props.onClose?.bind(this)();
|
|
5062
5030
|
}
|
|
5063
5031
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
package/build/index.js
CHANGED
|
@@ -4902,41 +4902,11 @@ class Slider$1 extends React__default["default"].Component {
|
|
|
4902
4902
|
}
|
|
4903
4903
|
}
|
|
4904
4904
|
|
|
4905
|
-
function styleInject(css, ref) {
|
|
4906
|
-
if ( ref === void 0 ) ref = {};
|
|
4907
|
-
var insertAt = ref.insertAt;
|
|
4908
|
-
|
|
4909
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
4910
|
-
|
|
4911
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4912
|
-
var style = document.createElement('style');
|
|
4913
|
-
style.type = 'text/css';
|
|
4914
|
-
|
|
4915
|
-
if (insertAt === 'top') {
|
|
4916
|
-
if (head.firstChild) {
|
|
4917
|
-
head.insertBefore(style, head.firstChild);
|
|
4918
|
-
} else {
|
|
4919
|
-
head.appendChild(style);
|
|
4920
|
-
}
|
|
4921
|
-
} else {
|
|
4922
|
-
head.appendChild(style);
|
|
4923
|
-
}
|
|
4924
|
-
|
|
4925
|
-
if (style.styleSheet) {
|
|
4926
|
-
style.styleSheet.cssText = css;
|
|
4927
|
-
} else {
|
|
4928
|
-
style.appendChild(document.createTextNode(css));
|
|
4929
|
-
}
|
|
4930
|
-
}
|
|
4931
|
-
|
|
4932
|
-
var css_248z = ".Style-module_test__LrdEc{border:1px solid red;color:red}.Style-module_withMask__LPcai{overflow:hidden!important;position:relative;user-select:none;&:after{a:#868686cc;background:#868686cc;border-radius:inherit;bottom:0;content:\"\";height:10000px;left:0;position:absolute;right:0;top:0;width:10000px}}mask{background:#868686cc;border-radius:inherit;bottom:0;height:10000px;left:0;position:absolute;right:0;top:0;width:10000px}";
|
|
4933
|
-
styleInject(css_248z);
|
|
4934
|
-
|
|
4935
4905
|
const StyledBackdrop = styled__default["default"].div`
|
|
4936
4906
|
${({
|
|
4937
4907
|
$zIndex
|
|
4938
4908
|
}) => $zIndex != null ? `z-index:${$zIndex};` : null}
|
|
4939
|
-
background :
|
|
4909
|
+
background : rgba(0, 0, 0, 0.4);
|
|
4940
4910
|
height:100vh;
|
|
4941
4911
|
width:100vw;
|
|
4942
4912
|
position: fixed;
|
|
@@ -4998,7 +4968,7 @@ class Backdrop extends JRHTML {
|
|
|
4998
4968
|
backdropConfig = {
|
|
4999
4969
|
yo: 'div',
|
|
5000
4970
|
style: {
|
|
5001
|
-
background: '
|
|
4971
|
+
background: 'rgba(0, 0, 0, 0.4)',
|
|
5002
4972
|
height: '100%',
|
|
5003
4973
|
width: '100%',
|
|
5004
4974
|
position: 'absolute',
|
|
@@ -5006,9 +4976,12 @@ class Backdrop extends JRHTML {
|
|
|
5006
4976
|
left: 0
|
|
5007
4977
|
}
|
|
5008
4978
|
};
|
|
4979
|
+
constructor(params) {
|
|
4980
|
+
super(params);
|
|
4981
|
+
Object.assign(this.backdropConfig.style, params.backdropStyle);
|
|
4982
|
+
}
|
|
5009
4983
|
show() {
|
|
5010
4984
|
this.backdrop = this.agregarHijo(this.backdropConfig);
|
|
5011
|
-
po('this.hijos', this.hijos);
|
|
5012
4985
|
}
|
|
5013
4986
|
hide() {
|
|
5014
4987
|
this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
|
|
@@ -5029,14 +5002,14 @@ class JRWindow extends JRFrame {
|
|
|
5029
5002
|
}
|
|
5030
5003
|
createBackdrop() {
|
|
5031
5004
|
if (typeof this.props.backdrop === 'string') {
|
|
5032
|
-
po('find and create backdrop', this.props.backdrop);
|
|
5033
5005
|
const target = document.getElementById(this.props.backdrop);
|
|
5034
5006
|
if (target) {
|
|
5035
5007
|
this.backdropTarget = new Backdrop({
|
|
5036
5008
|
yo: target,
|
|
5037
5009
|
style: {
|
|
5038
5010
|
position: 'relative'
|
|
5039
|
-
}
|
|
5011
|
+
},
|
|
5012
|
+
backdropStyle: this.props.backdropStyle
|
|
5040
5013
|
});
|
|
5041
5014
|
}
|
|
5042
5015
|
}
|
|
@@ -5069,22 +5042,17 @@ class JRWindow extends JRFrame {
|
|
|
5069
5042
|
|
|
5070
5043
|
componentDidMount() {
|
|
5071
5044
|
super.componentDidMount();
|
|
5072
|
-
po('-------------------------componentDidMount-------------------------');
|
|
5073
5045
|
this.createBackdrop();
|
|
5074
|
-
// if(this.props.backdrop && this.props.open){
|
|
5075
|
-
// this.backdropTarget.show()
|
|
5076
|
-
// }
|
|
5077
|
-
|
|
5078
5046
|
if (this.props.open) {
|
|
5079
5047
|
this.open();
|
|
5080
5048
|
}
|
|
5081
5049
|
}
|
|
5082
5050
|
open() {
|
|
5083
|
-
this.backdropTarget
|
|
5051
|
+
this.backdropTarget?.show();
|
|
5084
5052
|
this.props.onOpen?.bind(this)();
|
|
5085
5053
|
}
|
|
5086
5054
|
close() {
|
|
5087
|
-
this.backdropTarget
|
|
5055
|
+
this.backdropTarget?.hide();
|
|
5088
5056
|
this.props.onClose?.bind(this)();
|
|
5089
5057
|
}
|
|
5090
5058
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
package/package.json
CHANGED
|
@@ -2,15 +2,13 @@ import React from "react";
|
|
|
2
2
|
import JRFrame from "../JRFrame/JRFrame";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import TitleBar from "./TitleBar";
|
|
5
|
-
import { po } from "../JRUtils";
|
|
6
5
|
import Sliders from "./Slider";
|
|
7
|
-
import style from './Style.module.css'
|
|
8
6
|
import { JRHTML } from "jrs-js";
|
|
9
|
-
import {
|
|
7
|
+
import { po } from "../JRUtils";
|
|
10
8
|
|
|
11
9
|
const StyledBackdrop=styled.div`
|
|
12
10
|
${({$zIndex})=>$zIndex!=null?`z-index:${$zIndex};`:null}
|
|
13
|
-
background :
|
|
11
|
+
background : rgba(0, 0, 0, 0.4);
|
|
14
12
|
height:100vh;
|
|
15
13
|
width:100vw;
|
|
16
14
|
position: fixed;
|
|
@@ -62,7 +60,7 @@ class Backdrop extends JRHTML{
|
|
|
62
60
|
backdropConfig={
|
|
63
61
|
yo:'div'
|
|
64
62
|
,style:{
|
|
65
|
-
background:'
|
|
63
|
+
background:'rgba(0, 0, 0, 0.4)'
|
|
66
64
|
,height: '100%'
|
|
67
65
|
,width: '100%'
|
|
68
66
|
,position: 'absolute'
|
|
@@ -71,9 +69,14 @@ class Backdrop extends JRHTML{
|
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
|
|
72
|
+
constructor(params){
|
|
73
|
+
super(params)
|
|
74
|
+
Object.assign(this.backdropConfig.style,params.backdropStyle)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
74
78
|
show(){
|
|
75
79
|
this.backdrop=this.agregarHijo(this.backdropConfig)
|
|
76
|
-
po('this.hijos',this.hijos)
|
|
77
80
|
}
|
|
78
81
|
hide(){
|
|
79
82
|
this.yo.removeChild(this.yo.children[this.yo.children.length-1])
|
|
@@ -97,7 +100,6 @@ export default class JRWindow extends JRFrame {
|
|
|
97
100
|
|
|
98
101
|
createBackdrop(){
|
|
99
102
|
if(typeof this.props.backdrop === 'string'){
|
|
100
|
-
po('find and create backdrop',this.props.backdrop)
|
|
101
103
|
const target=document.getElementById(this.props.backdrop)
|
|
102
104
|
if(target){
|
|
103
105
|
this.backdropTarget=new Backdrop({
|
|
@@ -105,10 +107,9 @@ export default class JRWindow extends JRFrame {
|
|
|
105
107
|
,style:{
|
|
106
108
|
position: 'relative'
|
|
107
109
|
}
|
|
110
|
+
,backdropStyle:this.props.backdropStyle
|
|
108
111
|
})
|
|
109
|
-
|
|
110
112
|
}
|
|
111
|
-
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
|
|
@@ -140,23 +141,18 @@ export default class JRWindow extends JRFrame {
|
|
|
140
141
|
|
|
141
142
|
componentDidMount(){
|
|
142
143
|
super.componentDidMount()
|
|
143
|
-
po('-------------------------componentDidMount-------------------------')
|
|
144
144
|
this.createBackdrop()
|
|
145
|
-
// if(this.props.backdrop && this.props.open){
|
|
146
|
-
// this.backdropTarget.show()
|
|
147
|
-
// }
|
|
148
|
-
|
|
149
145
|
if(this.props.open){
|
|
150
146
|
this.open()
|
|
151
147
|
}
|
|
152
148
|
}
|
|
153
149
|
|
|
154
150
|
open(){
|
|
155
|
-
this.backdropTarget
|
|
151
|
+
this.backdropTarget?.show()
|
|
156
152
|
this.props.onOpen?.bind(this)()
|
|
157
153
|
}
|
|
158
154
|
close(){
|
|
159
|
-
this.backdropTarget
|
|
155
|
+
this.backdropTarget?.hide()
|
|
160
156
|
this.props.onClose?.bind(this)()
|
|
161
157
|
}
|
|
162
158
|
|