educoreapp2 1.0.53 → 1.0.56
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.
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
8
|
+
var _reactBootstrap = require("react-bootstrap");
|
9
|
+
var _educoreapp = require("educoreapp2");
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
12
|
+
class BaseButtonCountry extends _react.Component {
|
13
|
+
constructor(props) {
|
14
|
+
super();
|
15
|
+
this.states = {};
|
16
|
+
this.initFromProps(props);
|
17
|
+
}
|
18
|
+
initFromProps(props) {
|
19
|
+
if (_educoreapp.Tools.empty(props)) {
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
//this.setState("onClick",props.onClick);
|
23
|
+
this.states.onClick = props.onClick;
|
24
|
+
this.states.backgroundColor = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.backgroundColor) ? props.backgroundColor : "inherit";
|
25
|
+
this.states.label = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.label) ? props.label : "";
|
26
|
+
this.states.width = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.width) ? props.width : "250px";
|
27
|
+
this.states.height = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.height) ? props.height : "50px";
|
28
|
+
this.states.photo = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.photo) ? props.photo : null;
|
29
|
+
}
|
30
|
+
render() {
|
31
|
+
this.initFromProps(this.props);
|
32
|
+
let props = this.states;
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
34
|
+
style: {
|
35
|
+
width: props.width,
|
36
|
+
height: props.height,
|
37
|
+
backgroundColor: props.backgroundColor
|
38
|
+
},
|
39
|
+
onClick: event => props.onClick(),
|
40
|
+
className: "font-weight-bold"
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(BaseImg, {
|
42
|
+
photo: props.photo,
|
43
|
+
width: props.width,
|
44
|
+
height: props.height
|
45
|
+
}));
|
46
|
+
}
|
47
|
+
}
|
48
|
+
var _default = exports.default = BaseButtonCountry;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "educoreapp2",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.56",
|
5
5
|
"description": "",
|
6
6
|
"main": "dist/index.js",
|
7
7
|
"files": [
|
@@ -60,12 +60,12 @@
|
|
60
60
|
"bootstrap": ">=5.2.3",
|
61
61
|
"cors": ">=2.8.5",
|
62
62
|
"crypto-js": ">=4.2.0",
|
63
|
-
"history": "
|
63
|
+
"history": ">=5.3.0",
|
64
64
|
"react-bootstrap": ">=2.7.2",
|
65
65
|
"react-dom": ">=18.3.1",
|
66
66
|
"react-i18next": ">=12.2.0",
|
67
67
|
"react-icons": ">=4.8.0",
|
68
|
-
"react-scripts": ">=
|
68
|
+
"react-scripts": ">=3.0.1",
|
69
69
|
"reactstrap": ">=9.1.9"
|
70
70
|
},
|
71
71
|
"devDependencies": {
|
@@ -73,16 +73,16 @@
|
|
73
73
|
"@babel/core": ">=7.24.5",
|
74
74
|
"@babel/preset-env": ">=7.24.5",
|
75
75
|
"@babel/preset-react": ">=7.0.0",
|
76
|
-
"babel-cli": "
|
76
|
+
"babel-cli": ">=6.26.0",
|
77
77
|
"bootstrap": ">=5.2.3",
|
78
78
|
"cors": ">=2.8.5",
|
79
79
|
"crypto-js": ">=4.2.0",
|
80
|
-
"history": "
|
80
|
+
"history": ">=5.3.0",
|
81
81
|
"react-bootstrap": ">=2.7.2",
|
82
82
|
"react-dom": ">=18.3.1",
|
83
83
|
"react-i18next": ">=12.2.0",
|
84
84
|
"react-icons": ">=4.8.0",
|
85
|
-
"react-scripts": ">=
|
85
|
+
"react-scripts": ">=3.0.1",
|
86
86
|
"reactstrap": ">=9.1.9"
|
87
87
|
},
|
88
88
|
"dependencies": {
|