@iobroker/adapter-react-v5 3.0.7 → 3.0.10
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,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = void 0;
|
|
11
|
+
|
|
12
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
+
|
|
14
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
+
|
|
16
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
17
|
+
|
|
18
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
19
|
+
|
|
20
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
21
|
+
|
|
22
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
23
|
+
|
|
24
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
25
|
+
|
|
26
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
27
|
+
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
+
|
|
30
|
+
var _LinearProgress = _interopRequireDefault(require("@mui/material/LinearProgress"));
|
|
31
|
+
|
|
32
|
+
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
+
|
|
38
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
var ConfigCustom = /*#__PURE__*/function (_Component) {
|
|
43
|
+
(0, _inherits2["default"])(ConfigCustom, _Component);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(ConfigCustom);
|
|
46
|
+
|
|
47
|
+
function ConfigCustom(props) {
|
|
48
|
+
var _this;
|
|
49
|
+
|
|
50
|
+
(0, _classCallCheck2["default"])(this, ConfigCustom);
|
|
51
|
+
_this = _super.call(this, props); // schema.url - location of Widget
|
|
52
|
+
// schema.name - Component name
|
|
53
|
+
|
|
54
|
+
_this.state = {
|
|
55
|
+
Component: null,
|
|
56
|
+
error: ''
|
|
57
|
+
};
|
|
58
|
+
return _this;
|
|
59
|
+
} // load component dynamically
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
(0, _createClass2["default"])(ConfigCustom, [{
|
|
63
|
+
key: "componentDidMount",
|
|
64
|
+
value: function () {
|
|
65
|
+
var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
66
|
+
var component, keys;
|
|
67
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
68
|
+
while (1) {
|
|
69
|
+
switch (_context.prev = _context.next) {
|
|
70
|
+
case 0:
|
|
71
|
+
if (this.props.schema.url) {
|
|
72
|
+
_context.next = 4;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
console.error('URL is empty. Cannot load custom component!');
|
|
77
|
+
this.setState({
|
|
78
|
+
error: 'URL is empty. Cannot load custom component!'
|
|
79
|
+
});
|
|
80
|
+
return _context.abrupt("return");
|
|
81
|
+
|
|
82
|
+
case 4:
|
|
83
|
+
if (this.props.schema.url.startsWith('http:') || this.props.schema.url.startsWith('https:')) {
|
|
84
|
+
window._customComponent = this.props.schema.url;
|
|
85
|
+
} else if (this.props.schema.url.startsWith('./')) {
|
|
86
|
+
window._customComponent = "".concat(window.location.protocol, "//").concat(window.location.host).concat(this.props.schema.url.replace(/^\./, ''));
|
|
87
|
+
} else {
|
|
88
|
+
window._customComponent = "".concat(window.location.protocol, "//").concat(window.location.host, "/").concat(this.props.schema.url);
|
|
89
|
+
} // custom component always has constant name
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
_context.next = 7;
|
|
93
|
+
return Promise.resolve().then(function () {
|
|
94
|
+
return _interopRequireWildcard(require('CustomComponent/Components'));
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
case 7:
|
|
98
|
+
component = _context.sent;
|
|
99
|
+
|
|
100
|
+
if (!component || !component["default"] || !component["default"][this.props.schema.name]) {
|
|
101
|
+
keys = Object.keys((component === null || component === void 0 ? void 0 : component["default"]) || {});
|
|
102
|
+
console.error('URL is empty. Cannot load custom component!');
|
|
103
|
+
this.setState({
|
|
104
|
+
error: "Component ".concat(this.props.schema.name, " not found in ").concat(this.props.schema.url, ". Found: ").concat(keys.join(', '))
|
|
105
|
+
});
|
|
106
|
+
} else {
|
|
107
|
+
this.setState({
|
|
108
|
+
Component: component["default"][this.props.schema.name]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
case 9:
|
|
113
|
+
case "end":
|
|
114
|
+
return _context.stop();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, _callee, this);
|
|
118
|
+
}));
|
|
119
|
+
|
|
120
|
+
function componentDidMount() {
|
|
121
|
+
return _componentDidMount.apply(this, arguments);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return componentDidMount;
|
|
125
|
+
}()
|
|
126
|
+
}, {
|
|
127
|
+
key: "render",
|
|
128
|
+
value: function render() {
|
|
129
|
+
var Component = this.state.Component; // render temporary placeholder
|
|
130
|
+
|
|
131
|
+
if (!Component) {
|
|
132
|
+
if (this.state.error) {
|
|
133
|
+
return;
|
|
134
|
+
} else {
|
|
135
|
+
var schema = this.props.schema || {};
|
|
136
|
+
|
|
137
|
+
var item = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
138
|
+
item: true,
|
|
139
|
+
xs: schema.xs || undefined,
|
|
140
|
+
lg: schema.lg || undefined,
|
|
141
|
+
md: schema.md || undefined,
|
|
142
|
+
sm: schema.sm || undefined,
|
|
143
|
+
style: Object.assign({}, {
|
|
144
|
+
marginBottom: 0,
|
|
145
|
+
//marginRight: 8,
|
|
146
|
+
textAlign: 'left',
|
|
147
|
+
width: schema.type === 'divider' || schema.type === 'header' ? schema.width || '100%' : undefined
|
|
148
|
+
}, schema.style, this.props.themeType === 'dark' ? schema.darkStyle : {})
|
|
149
|
+
}, this.state.error ? /*#__PURE__*/_react["default"].createElement("div", null, this.state.error) : /*#__PURE__*/_react["default"].createElement(_LinearProgress["default"], null));
|
|
150
|
+
|
|
151
|
+
if (schema.newLine) {
|
|
152
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
+
style: {
|
|
154
|
+
flexBasis: '100%',
|
|
155
|
+
height: 0
|
|
156
|
+
}
|
|
157
|
+
}), item);
|
|
158
|
+
} else {
|
|
159
|
+
return item;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return /*#__PURE__*/_react["default"].createElement(Component, this.props);
|
|
165
|
+
}
|
|
166
|
+
}]);
|
|
167
|
+
return ConfigCustom;
|
|
168
|
+
}(_react.Component);
|
|
169
|
+
|
|
170
|
+
ConfigCustom.propTypes = {
|
|
171
|
+
socket: _propTypes["default"].object.isRequired,
|
|
172
|
+
themeType: _propTypes["default"].string,
|
|
173
|
+
themeName: _propTypes["default"].string,
|
|
174
|
+
style: _propTypes["default"].object,
|
|
175
|
+
className: _propTypes["default"].string,
|
|
176
|
+
data: _propTypes["default"].object.isRequired,
|
|
177
|
+
schema: _propTypes["default"].object,
|
|
178
|
+
onError: _propTypes["default"].func,
|
|
179
|
+
onChange: _propTypes["default"].func
|
|
180
|
+
};
|
|
181
|
+
var _default = ConfigCustom;
|
|
182
|
+
exports["default"] = _default;
|
|
183
|
+
//# sourceMappingURL=ConfigCustom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigCustom.js","names":["ConfigCustom","props","state","Component","error","schema","url","console","setState","startsWith","window","_customComponent","location","protocol","host","replace","component","name","keys","Object","join","item","xs","undefined","lg","md","sm","assign","marginBottom","textAlign","width","type","style","themeType","darkStyle","newLine","flexBasis","height","propTypes","socket","PropTypes","object","isRequired","string","themeName","className","data","onError","func","onChange"],"sources":["JsonConfigComponent/ConfigCustom.jsx"],"sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport LinearProgress from '@mui/material/LinearProgress';\nimport Grid from '@mui/material/Grid';\n\nclass ConfigCustom extends Component {\n constructor(props) {\n super(props);\n // schema.url - location of Widget\n // schema.name - Component name\n\n this.state = {\n Component: null,\n error: '',\n };\n }\n\n // load component dynamically\n async componentDidMount() {\n if (!this.props.schema.url) {\n console.error('URL is empty. Cannot load custom component!');\n this.setState({ error: 'URL is empty. Cannot load custom component!' });\n return;\n }\n\n if (this.props.schema.url.startsWith('http:') || this.props.schema.url.startsWith('https:')) {\n window._customComponent = this.props.schema.url;\n } else if (this.props.schema.url.startsWith('./')) {\n window._customComponent = `${window.location.protocol}//${window.location.host}${this.props.schema.url.replace(/^\\./, '')}`;\n } else {\n window._customComponent = `${window.location.protocol}//${window.location.host}/${this.props.schema.url}`;\n }\n\n // custom component always has constant name\n const component = await import('CustomComponent/Components');\n\n if (!component || !component.default || !component.default[this.props.schema.name]) {\n const keys = Object.keys(component?.default || {});\n console.error('URL is empty. Cannot load custom component!');\n this.setState({ error: `Component ${this.props.schema.name} not found in ${this.props.schema.url}. Found: ${keys.join(', ')}` });\n } else {\n this.setState({\n Component: component.default[this.props.schema.name]\n });\n }\n }\n\n render() {\n const Component = this.state.Component;\n\n // render temporary placeholder\n if (!Component) {\n if (this.state.error) {\n return ;\n } else {\n const schema = this.props.schema || {};\n\n const item = <Grid\n item\n xs={schema.xs || undefined}\n lg={schema.lg || undefined}\n md={schema.md || undefined}\n sm={schema.sm || undefined}\n style={Object.assign({}, {\n marginBottom: 0,\n //marginRight: 8,\n textAlign: 'left',\n width: schema.type === 'divider' || schema.type === 'header' ? schema.width || '100%' : undefined\n }, schema.style, this.props.themeType === 'dark' ? schema.darkStyle : {})}>\n {this.state.error ? <div>{this.state.error}</div> : <LinearProgress />}\n </Grid>;\n\n if (schema.newLine) {\n return <>\n <div style={{ flexBasis: '100%', height: 0 }} />\n {item}\n </>;\n } else {\n return item;\n }\n }\n }\n\n return <Component {...this.props} />;\n }\n}\n\nConfigCustom.propTypes = {\n socket: PropTypes.object.isRequired,\n themeType: PropTypes.string,\n themeName: PropTypes.string,\n style: PropTypes.object,\n className: PropTypes.string,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n onError: PropTypes.func,\n onChange: PropTypes.func,\n};\n\nexport default ConfigCustom;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;IAEMA,Y;;;;;EACF,sBAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACf,0BAAMA,KAAN,EADe,CAEf;IACA;;IAEA,MAAKC,KAAL,GAAa;MACTC,SAAS,EAAE,IADF;MAETC,KAAK,EAAE;IAFE,CAAb;IALe;EASlB,C,CAED;;;;;;6GACA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,IACS,KAAKH,KAAL,CAAWI,MAAX,CAAkBC,GAD3B;kBAAA;kBAAA;gBAAA;;gBAEQC,OAAO,CAACH,KAAR,CAAc,6CAAd;gBACA,KAAKI,QAAL,CAAc;kBAAEJ,KAAK,EAAE;gBAAT,CAAd;gBAHR;;cAAA;gBAOI,IAAI,KAAKH,KAAL,CAAWI,MAAX,CAAkBC,GAAlB,CAAsBG,UAAtB,CAAiC,OAAjC,KAA6C,KAAKR,KAAL,CAAWI,MAAX,CAAkBC,GAAlB,CAAsBG,UAAtB,CAAiC,QAAjC,CAAjD,EAA6F;kBACzFC,MAAM,CAACC,gBAAP,GAA0B,KAAKV,KAAL,CAAWI,MAAX,CAAkBC,GAA5C;gBACH,CAFD,MAEO,IAAI,KAAKL,KAAL,CAAWI,MAAX,CAAkBC,GAAlB,CAAsBG,UAAtB,CAAiC,IAAjC,CAAJ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AED,oBAAO,gCAAC,SAAD,EAAe,KAAKpB,KAApB,CAAP;IACH;;;EA/EsBE,gB;;AAkF3BH,YAAY,CAACsC,SAAb,GAAyB;EACrBC,MAAM,EAAEC,qBAAA,CAAUC,MAAV,CAAiBC,UADJ;EAErBT,SAAS,EAAEO,qBAAA,CAAUG,MAFA;EAGrBC,SAAS,EAAEJ,qBAAA,CAAUG,MAHA;EAIrBX,KAAK,EAAEQ,qBAAA,CAAUC,MAJI;EAKrBI,SAAS,EAAEL,qBAAA,CAAUG,MALA;EAMrBG,IAAI,EAAEN,qBAAA,CAAUC,MAAV,CAAiBC,UANF;EAOrBrC,MAAM,EAAEmC,qBAAA,CAAUC,MAPG;EAQrBM,OAAO,EAAEP,qBAAA,CAAUQ,IARE;EASrBC,QAAQ,EAAET,qBAAA,CAAUQ;AATC,CAAzB;eAYehD,Y"}
|
package/README.md
CHANGED
|
@@ -641,6 +641,9 @@ If you still have questions, try to find an answer [here](https://mui.com/guides
|
|
|
641
641
|
-->
|
|
642
642
|
|
|
643
643
|
## Changelog
|
|
644
|
+
### 3.0.10 (2022-05-25)
|
|
645
|
+
* (bluefox) Added ConfigGeneric to import
|
|
646
|
+
|
|
644
647
|
### 3.0.7 (2022-05-25)
|
|
645
648
|
* (bluefox) Made the module definitions
|
|
646
649
|
|
package/index.js
CHANGED
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
var _exportNames = {
|
|
11
11
|
Theme: true,
|
|
12
|
-
GenericApp: true,
|
|
13
12
|
Connection: true,
|
|
14
13
|
i18n: true,
|
|
15
14
|
Prompt: true,
|
|
@@ -63,7 +62,8 @@ var _exportNames = {
|
|
|
63
62
|
Message: true,
|
|
64
63
|
SelectID: true,
|
|
65
64
|
SimpleCronDialog: true,
|
|
66
|
-
TextInput: true
|
|
65
|
+
TextInput: true,
|
|
66
|
+
ConfigGeneric: true
|
|
67
67
|
};
|
|
68
68
|
Object.defineProperty(exports, "ColorPicker", {
|
|
69
69
|
enumerable: true,
|
|
@@ -83,6 +83,12 @@ Object.defineProperty(exports, "ComplexCronDialog", {
|
|
|
83
83
|
return _ComplexCron2["default"];
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
+
Object.defineProperty(exports, "ConfigGeneric", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function get() {
|
|
89
|
+
return _ConfigGeneric["default"];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
86
92
|
Object.defineProperty(exports, "Confirm", {
|
|
87
93
|
enumerable: true,
|
|
88
94
|
get: function get() {
|
|
@@ -125,12 +131,6 @@ Object.defineProperty(exports, "FileViewer", {
|
|
|
125
131
|
return _FileViewer["default"];
|
|
126
132
|
}
|
|
127
133
|
});
|
|
128
|
-
Object.defineProperty(exports, "GenericApp", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function get() {
|
|
131
|
-
return _GenericApp["default"];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
134
|
Object.defineProperty(exports, "Icon", {
|
|
135
135
|
enumerable: true,
|
|
136
136
|
get: function get() {
|
|
@@ -416,20 +416,6 @@ Object.keys(_Theme).forEach(function (key) {
|
|
|
416
416
|
});
|
|
417
417
|
});
|
|
418
418
|
|
|
419
|
-
var _GenericApp = _interopRequireWildcard(require("./GenericApp"));
|
|
420
|
-
|
|
421
|
-
Object.keys(_GenericApp).forEach(function (key) {
|
|
422
|
-
if (key === "default" || key === "__esModule") return;
|
|
423
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
424
|
-
if (key in exports && exports[key] === _GenericApp[key]) return;
|
|
425
|
-
Object.defineProperty(exports, key, {
|
|
426
|
-
enumerable: true,
|
|
427
|
-
get: function get() {
|
|
428
|
-
return _GenericApp[key];
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
|
|
433
419
|
var _Connection = _interopRequireWildcard(require("./Connection"));
|
|
434
420
|
|
|
435
421
|
Object.keys(_Connection).forEach(function (key) {
|
|
@@ -1174,6 +1160,20 @@ Object.keys(_TextInput).forEach(function (key) {
|
|
|
1174
1160
|
});
|
|
1175
1161
|
});
|
|
1176
1162
|
|
|
1163
|
+
var _ConfigGeneric = _interopRequireWildcard(require("./Components/JsonConfigComponent/ConfigGeneric"));
|
|
1164
|
+
|
|
1165
|
+
Object.keys(_ConfigGeneric).forEach(function (key) {
|
|
1166
|
+
if (key === "default" || key === "__esModule") return;
|
|
1167
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1168
|
+
if (key in exports && exports[key] === _ConfigGeneric[key]) return;
|
|
1169
|
+
Object.defineProperty(exports, key, {
|
|
1170
|
+
enumerable: true,
|
|
1171
|
+
get: function get() {
|
|
1172
|
+
return _ConfigGeneric[key];
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
});
|
|
1176
|
+
|
|
1177
1177
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
1178
1178
|
|
|
1179
1179
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["export { default as Theme } from './Theme';\nexport * from './Theme';\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["export { default as Theme } from './Theme';\nexport * from './Theme';\n\n// export { default as GenericApp } from './GenericApp';\n// export * from './GenericApp';\n\nexport { default as Connection } from './Connection';\nexport * from './Connection';\n\nexport { default as i18n } from './i18n';\nexport * from './i18n';\n\nexport { default as Prompt } from './Prompt';\nexport * from './Prompt';\n\nexport { default as ColorPicker } from './Components/ColorPicker';\nexport * from './Components/ColorPicker';\n\nexport { default as ComplexCron } from './Components/ComplexCron';\nexport * from './Components/ComplexCron';\n\nexport { default as copy } from './Components/copy-to-clipboard';\n\nexport { default as CustomModal } from './Components/CustomModal';\nexport * from './Components/CustomModal';\n\nexport { default as FileBrowser } from './Components/FileBrowser';\nexport * from './Components/FileBrowser';\n\nexport { default as FileViewer } from './Components/FileViewer';\nexport * from './Components/FileViewer';\n\nexport { default as Icon } from './Components/Icon';\nexport * from './Components/Icon';\n\nexport { default as IconPicker } from './Components/IconPicker';\nexport * from './Components/IconPicker';\n\nexport { default as IconSelector } from './Components/IconSelector';\nexport * from './Components/IconSelector';\n\nexport { default as Image } from './Components/Image';\nexport * from './Components/Image';\n\nexport { default as Loader } from './Components/Loader';\nexport * from './Components/Loader';\n\nexport { default as Logo } from './Components/Logo';\nexport * from './Components/Logo';\n\nexport { default as MDUtils } from './Components/MDUtils';\nexport * from './Components/MDUtils';\n\nexport { default as ObjectBrowser } from './Components/ObjectBrowser';\nexport * from './Components/ObjectBrowser';\n\nexport { default as Router } from './Components/Router';\nexport * from './Components/Router';\n\nexport { default as SaveCloseButtons } from './Components/SaveCloseButtons';\nexport * from './Components/SaveCloseButtons';\n\nexport { default as Schedule } from './Components/Schedule';\nexport * from './Components/Schedule';\n\nexport { default as SelectWithIcon } from './Components/SelectWithIcon';\nexport * from './Components/SelectWithIcon';\n\nexport { default as TabContainer } from './Components/TabContainer';\nexport * from './Components/TabContainer';\n\nexport { default as TabContent } from './Components/TabContent';\nexport * from './Components/TabContent';\n\nexport { default as TabHeader } from './Components/TabHeader';\nexport * from './Components/TabHeader';\n\nexport { default as TextWithIcon } from './Components/TextWithIcon';\nexport * from './Components/TextWithIcon';\n\nexport { default as ToggleThemeMenu } from './Components/ToggleThemeMenu';\nexport * from './Components/ToggleThemeMenu';\n\nexport { default as TreeTable } from './Components/TreeTable';\nexport * from './Components/TreeTable';\n\nexport { default as UploadImage } from './Components/UploadImage';\nexport * from './Components/UploadImage';\n\nexport { default as Utils } from './Components/Utils';\nexport * from './Components/Utils';\n\nexport { default as withWidth } from './Components/withWidth';\nexport * from './Components/withWidth';\n\nexport { default as SimpleCron } from './Components/SimpleCron';\nexport * from './Components/SimpleCron';\n\nexport { default as Vendor } from './Components/Loaders/Vendor';\nexport * from './Components/Loaders/Vendor';\n\nexport { default as JsonConfigComponent } from './Components/JsonConfigComponent';\nexport * from './Components/JsonConfigComponent';\n\nexport { default as IconAdapter } from './icons/IconAdapter';\nexport * from './icons/IconAdapter';\n\nexport { default as IconAlias } from './icons/IconAlias';\nexport * from './icons/IconAlias';\n\nexport { default as IconChannel } from './icons/IconChannel';\nexport * from './icons/IconChannel';\n\nexport { default as IconClosed } from './icons/IconClosed';\nexport * from './icons/IconClosed';\n\nexport { default as IconCopy } from './icons/IconCopy';\nexport * from './icons/IconCopy';\n\nexport { default as IconDevice } from './icons/IconDevice';\nexport * from './icons/IconDevice';\n\nexport { default as IconDocument } from './icons/IconDocument';\nexport * from './icons/IconDocument';\n\nexport { default as IconExpert } from './icons/IconExpert';\nexport * from './icons/IconExpert';\n\nexport { default as IconFx } from './icons/IconFx';\nexport * from './icons/IconFx';\n\nexport { default as IconInstance } from './icons/IconInstance';\nexport * from './icons/IconInstance';\n\nexport { default as IconLogout } from './icons/IconLogout';\nexport * from './icons/IconLogout';\n\nexport { default as IconOpen } from './icons/IconOpen';\nexport * from './icons/IconOpen';\n\nexport { default as IconState } from './icons/IconState';\nexport * from './icons/IconState';\n\nexport { default as ComplexCronDialog } from './Dialogs/ComplexCron';\nexport * from './Dialogs/ComplexCron';\n\nexport { default as Confirm } from './Dialogs/Confirm';\nexport * from './Dialogs/Confirm';\n\nexport { default as Cron } from './Dialogs/Cron';\nexport * from './Dialogs/Cron';\n\nexport { default as Error } from './Dialogs/Error';\nexport * from './Dialogs/Error';\n\nexport { default as Message } from './Dialogs/Message';\nexport * from './Dialogs/Message';\n\nexport { default as SelectID } from './Dialogs/SelectID';\nexport * from './Dialogs/SelectID';\n\nexport { default as SimpleCronDialog } from './Dialogs/SimpleCron';\nexport * from './Dialogs/SimpleCron';\n\nexport { default as TextInput } from './Dialogs/TextInput';\nexport * from './Dialogs/TextInput';\n\nexport { default as ConfigGeneric } from './Components/JsonConfigComponent/ConfigGeneric';\nexport * from './Components/JsonConfigComponent/ConfigGeneric';\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAKA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MA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A;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git+https://github.com/ioBroker/adapter-react-v5.git"
|
|
16
16
|
},
|
|
17
|
+
"module": "./index.js",
|
|
17
18
|
"keywords": [
|
|
18
19
|
"iobroker",
|
|
19
20
|
"adapter",
|