@iobroker/adapter-react-v5 4.13.7 → 4.13.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/AdminConnection.d.ts +1 -1
- package/AdminConnection.js +3 -8
- package/Components/ComplexCron.js +10 -10
- package/Components/SimpleCron/index.d.ts +1 -1
- package/Components/SimpleCron/index.js +17 -10
- package/Connection.d.ts +2 -5
- package/Connection.js +7 -26
- package/README.md +8 -2
- package/icons/IconAdapter.d.ts +3 -11
- package/icons/IconAdapter.js +8 -32
- package/icons/IconAlias.d.ts +3 -11
- package/icons/IconAlias.js +8 -32
- package/icons/IconExpert.d.ts +2 -11
- package/icons/IconExpert.js +1 -1
- package/icons/IconProps.d.ts +13 -0
- package/icons/IconProps.js +2 -0
- package/package.json +7 -7
- package/AdminConnection.js.map +0 -1
- package/Connection.js.map +0 -1
- package/icons/IconAdapter.js.map +0 -1
- package/icons/IconAlias.js.map +0 -1
package/AdminConnection.d.ts
CHANGED
package/AdminConnection.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _socketClient = require("@iobroker/socket-client");
|
|
8
|
-
var _default = exports["default"] = _socketClient.AdminConnection;
|
|
9
|
-
//# sourceMappingURL=AdminConnection.js.map
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const socket_client_1 = require("@iobroker/socket-client");
|
|
4
|
+
exports.default = socket_client_1.AdminConnection;
|
|
@@ -189,7 +189,7 @@ class ComplexCron extends react_1.Component {
|
|
|
189
189
|
hours: null,
|
|
190
190
|
dates: null,
|
|
191
191
|
months: null,
|
|
192
|
-
|
|
192
|
+
dow: null,
|
|
193
193
|
},
|
|
194
194
|
};
|
|
195
195
|
Object.assign(this.state, state);
|
|
@@ -208,7 +208,7 @@ class ComplexCron extends react_1.Component {
|
|
|
208
208
|
hours: cronParts[2] || '*',
|
|
209
209
|
dates: cronParts[3] || '*',
|
|
210
210
|
months: cronParts[4] || '*',
|
|
211
|
-
|
|
211
|
+
dow: cronParts[5] || '*',
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
else {
|
|
@@ -218,13 +218,13 @@ class ComplexCron extends react_1.Component {
|
|
|
218
218
|
hours: cronParts[1] || '*',
|
|
219
219
|
dates: cronParts[2] || '*',
|
|
220
220
|
months: cronParts[3] || '*',
|
|
221
|
-
|
|
221
|
+
dow: cronParts[4] || '*',
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
return options;
|
|
225
225
|
}
|
|
226
226
|
static state2cron(state) {
|
|
227
|
-
let text = `${state.minutes} ${state.hours} ${state.dates} ${state.months} ${state.
|
|
227
|
+
let text = `${state.minutes} ${state.hours} ${state.dates} ${state.months} ${state.dow}`;
|
|
228
228
|
if (state.seconds !== false) {
|
|
229
229
|
text = `${state.seconds} ${text}`;
|
|
230
230
|
}
|
|
@@ -370,8 +370,8 @@ class ComplexCron extends react_1.Component {
|
|
|
370
370
|
else if (attr === 'months') {
|
|
371
371
|
this.setState({ months: value, modes }, () => this.recalcCron());
|
|
372
372
|
}
|
|
373
|
-
else if (attr === '
|
|
374
|
-
this.setState({
|
|
373
|
+
else if (attr === 'dow') {
|
|
374
|
+
this.setState({ dow: value, modes }, () => this.recalcCron());
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
377
|
this.setState({ modes }, () => this.recalcCron());
|
|
@@ -393,8 +393,8 @@ class ComplexCron extends react_1.Component {
|
|
|
393
393
|
else if (attr === 'months') {
|
|
394
394
|
this.setState({ months: value }, () => this.recalcCron());
|
|
395
395
|
}
|
|
396
|
-
else if (attr === '
|
|
397
|
-
this.setState({
|
|
396
|
+
else if (attr === 'dow') {
|
|
397
|
+
this.setState({ dow: value }, () => this.recalcCron());
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -412,13 +412,13 @@ class ComplexCron extends react_1.Component {
|
|
|
412
412
|
react_1.default.createElement(material_1.Tab, { id: "hours", label: i18n_1.default.t('sc_hours') }),
|
|
413
413
|
react_1.default.createElement(material_1.Tab, { id: "dates", label: i18n_1.default.t('sc_dates') }),
|
|
414
414
|
react_1.default.createElement(material_1.Tab, { id: "months", label: i18n_1.default.t('sc_months') }),
|
|
415
|
-
react_1.default.createElement(material_1.Tab, { id: "
|
|
415
|
+
react_1.default.createElement(material_1.Tab, { id: "dow", label: i18n_1.default.t('sc_dows') }))),
|
|
416
416
|
tab === 0 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('seconds', 60)),
|
|
417
417
|
tab === 1 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('minutes', 60)),
|
|
418
418
|
tab === 2 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('hours', 24)),
|
|
419
419
|
tab === 3 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('dates', 31)),
|
|
420
420
|
tab === 4 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('months', 12)),
|
|
421
|
-
tab === 5 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('
|
|
421
|
+
tab === 5 && react_1.default.createElement("div", { className: this.props.classes.tabContent }, this.getPeriodsTab('dow', 7)));
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
exports.default = (0, styles_1.withStyles)(styles)(ComplexCron);
|
|
@@ -34,6 +34,6 @@ interface SimpleCronState {
|
|
|
34
34
|
weekdays: number[];
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
export declare function cron2state(cron: string): Partial<SimpleCronState> | null;
|
|
37
|
+
export declare function cron2state(cron: string, force?: boolean): Partial<SimpleCronState> | null;
|
|
38
38
|
declare const _default: React.JSXElementConstructor<Omit<SimpleCronProps, "classes"> & import("@mui/styles").StyledComponentProps<string> & object>;
|
|
39
39
|
export default _default;
|
|
@@ -66,7 +66,7 @@ const DEFAULT_STATE = {
|
|
|
66
66
|
unit: PERIODIC_TYPES.minutes,
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
|
-
function cron2state(cron) {
|
|
69
|
+
function cron2state(cron, force) {
|
|
70
70
|
cron = cron.replace(/['"]/g, '').trim();
|
|
71
71
|
const cronParts = cron.split(' ');
|
|
72
72
|
let options;
|
|
@@ -96,7 +96,8 @@ function cron2state(cron) {
|
|
|
96
96
|
options.minutes === '*' &&
|
|
97
97
|
options.hours === '*' &&
|
|
98
98
|
options.date === '*' &&
|
|
99
|
-
options.months === '*'
|
|
99
|
+
options.months === '*' &&
|
|
100
|
+
(options.dow === '*' || force)) {
|
|
100
101
|
state = {
|
|
101
102
|
mode: 'interval',
|
|
102
103
|
interval: {
|
|
@@ -109,7 +110,8 @@ function cron2state(cron) {
|
|
|
109
110
|
options.minutes === '*' &&
|
|
110
111
|
options.hours === '*' &&
|
|
111
112
|
options.date === '*' &&
|
|
112
|
-
options.months === '*'
|
|
113
|
+
options.months === '*' &&
|
|
114
|
+
(options.dow === '*' || force)) {
|
|
113
115
|
state = {
|
|
114
116
|
mode: 'interval',
|
|
115
117
|
interval: {
|
|
@@ -122,7 +124,8 @@ function cron2state(cron) {
|
|
|
122
124
|
options.minutes.includes('/') &&
|
|
123
125
|
options.hours === '*' &&
|
|
124
126
|
options.date === '*' &&
|
|
125
|
-
options.months === '*'
|
|
127
|
+
options.months === '*' &&
|
|
128
|
+
(options.dow === '*' || force)) {
|
|
126
129
|
// */n * * * *
|
|
127
130
|
state = {
|
|
128
131
|
mode: 'interval',
|
|
@@ -137,7 +140,8 @@ function cron2state(cron) {
|
|
|
137
140
|
options.minutes === '*' &&
|
|
138
141
|
options.hours === '*' &&
|
|
139
142
|
options.date === '*' &&
|
|
140
|
-
options.months === '*'
|
|
143
|
+
options.months === '*' &&
|
|
144
|
+
(options.dow === '*' || force)) {
|
|
141
145
|
// */n * * * * *
|
|
142
146
|
state = {
|
|
143
147
|
mode: 'interval',
|
|
@@ -152,7 +156,8 @@ function cron2state(cron) {
|
|
|
152
156
|
options.minutes === '*' &&
|
|
153
157
|
options.hours.includes('-') &&
|
|
154
158
|
options.date === '*' &&
|
|
155
|
-
options.months === '*'
|
|
159
|
+
options.months === '*' &&
|
|
160
|
+
(options.dow === '*' || force)) {
|
|
156
161
|
// */n * 1-24 * * 1-7 or */n * 1-24 * * *
|
|
157
162
|
state = {
|
|
158
163
|
mode: 'intervalBetween',
|
|
@@ -169,7 +174,8 @@ function cron2state(cron) {
|
|
|
169
174
|
options.minutes.includes('/') &&
|
|
170
175
|
options.hours.includes('-') &&
|
|
171
176
|
options.date === '*' &&
|
|
172
|
-
options.months === '*'
|
|
177
|
+
options.months === '*' &&
|
|
178
|
+
(options.dow === '*' || force)) {
|
|
173
179
|
// */n 1-24 * * 1-7 or */n 1-24 * * *
|
|
174
180
|
state = {
|
|
175
181
|
mode: 'intervalBetween',
|
|
@@ -186,7 +192,8 @@ function cron2state(cron) {
|
|
|
186
192
|
parseInt(options.minutes, 10).toString() === options.minutes &&
|
|
187
193
|
parseInt(options.hours, 10).toString() === options.hours &&
|
|
188
194
|
options.date === '*' &&
|
|
189
|
-
options.months === '*'
|
|
195
|
+
options.months === '*' &&
|
|
196
|
+
(options.dow === '*' || force)) {
|
|
190
197
|
// m h * * 1-7 or m h * * *
|
|
191
198
|
state = {
|
|
192
199
|
mode: 'specific',
|
|
@@ -201,7 +208,7 @@ function cron2state(cron) {
|
|
|
201
208
|
parseInt(options.hours, 10).toString() === options.hours &&
|
|
202
209
|
parseInt(options.date, 10).toString() === options.date &&
|
|
203
210
|
parseInt(options.months, 10).toString() === options.months &&
|
|
204
|
-
options.dow === '*') {
|
|
211
|
+
(options.dow === '*' || force)) {
|
|
205
212
|
// m h d M *
|
|
206
213
|
state = {
|
|
207
214
|
mode: 'once',
|
|
@@ -221,7 +228,7 @@ class SimpleCron extends react_1.default.Component {
|
|
|
221
228
|
if (cron[0] === '{') {
|
|
222
229
|
cron = '';
|
|
223
230
|
}
|
|
224
|
-
const state = cron2state(cron || '* * * * *') || DEFAULT_STATE;
|
|
231
|
+
const state = cron2state(cron || '* * * * *', true) || DEFAULT_STATE;
|
|
225
232
|
this.state = {
|
|
226
233
|
extended: false,
|
|
227
234
|
cron: SimpleCron.state2cron(state),
|
package/Connection.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { PROGRESS } from '@iobroker/socket-client';
|
|
3
|
-
import { ERRORS } from '@iobroker/socket-client';
|
|
4
|
-
import { PERMISSION_ERROR } from '@iobroker/socket-client';
|
|
5
|
-
import { Connection } from '@iobroker/socket-client';
|
|
1
|
+
import { Connection, PROGRESS, ERRORS, PERMISSION_ERROR } from '@iobroker/socket-client';
|
|
6
2
|
export { PROGRESS, ERRORS, PERMISSION_ERROR };
|
|
3
|
+
export default Connection;
|
package/Connection.js
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ERRORS", {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return _socketClient.ERRORS;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "PERMISSION_ERROR", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _socketClient.PERMISSION_ERROR;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "PROGRESS", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _socketClient.PROGRESS;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
exports["default"] = void 0;
|
|
25
|
-
var _socketClient = require("@iobroker/socket-client");
|
|
26
|
-
var _default = exports["default"] = _socketClient.Connection;
|
|
27
|
-
//# sourceMappingURL=Connection.js.map
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PERMISSION_ERROR = exports.ERRORS = exports.PROGRESS = void 0;
|
|
4
|
+
const socket_client_1 = require("@iobroker/socket-client");
|
|
5
|
+
Object.defineProperty(exports, "PROGRESS", { enumerable: true, get: function () { return socket_client_1.PROGRESS; } });
|
|
6
|
+
Object.defineProperty(exports, "ERRORS", { enumerable: true, get: function () { return socket_client_1.ERRORS; } });
|
|
7
|
+
Object.defineProperty(exports, "PERMISSION_ERROR", { enumerable: true, get: function () { return socket_client_1.PERMISSION_ERROR; } });
|
|
8
|
+
exports.default = socket_client_1.Connection;
|
package/README.md
CHANGED
|
@@ -180,7 +180,7 @@ onPrepareSave(settings) {
|
|
|
180
180
|
|
|
181
181
|
## Components
|
|
182
182
|
|
|
183
|
-
### Connection.
|
|
183
|
+
### Connection.tsx
|
|
184
184
|
This is a non-react class to provide the communication for socket connection with the server.
|
|
185
185
|
|
|
186
186
|
### GenericApp.tsx
|
|
@@ -670,6 +670,12 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
|
|
|
670
670
|
-->
|
|
671
671
|
|
|
672
672
|
## Changelog
|
|
673
|
+
### 4.13.9 (2024-04-20)
|
|
674
|
+
* (bluefox) Updated socket-client package
|
|
675
|
+
|
|
676
|
+
### 4.13.8 (2024-04-19)
|
|
677
|
+
* (bluefox) Corrected CRON selector
|
|
678
|
+
|
|
673
679
|
### 4.13.7 (2024-04-19)
|
|
674
680
|
* (bluefox) Migrated ColorPicker to typescript
|
|
675
681
|
|
|
@@ -917,7 +923,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
|
|
|
917
923
|
* (bluefox) Added support of custom palette for color picker
|
|
918
924
|
|
|
919
925
|
### 4.0.2 (2022-12-01)
|
|
920
|
-
* (bluefox) use `@iobroker/socket-client` instead of `Connection.
|
|
926
|
+
* (bluefox) use `@iobroker/socket-client` instead of `Connection.tsx`
|
|
921
927
|
|
|
922
928
|
### 3.5.3 (2022-11-30)
|
|
923
929
|
* (bluefox) Improved `renderTextWithA` function to support `<b>` and `<i>` tags
|
package/icons/IconAdapter.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
export default IconAdapter;
|
|
2
|
-
declare function IconAdapter(props: any): React.JSX.Element;
|
|
3
|
-
declare namespace IconAdapter {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
let onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
-
let width: PropTypes.Requireable<NonNullable<string | number>>;
|
|
7
|
-
let height: PropTypes.Requireable<NonNullable<string | number>>;
|
|
8
|
-
let className: PropTypes.Requireable<string>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
1
|
import React from 'react';
|
|
12
|
-
import
|
|
2
|
+
import type IconProps from './IconProps';
|
|
3
|
+
declare const IconAdapter: (props: IconProps) => React.JSX.Element;
|
|
4
|
+
export default IconAdapter;
|
package/icons/IconAdapter.js
CHANGED
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
|
|
11
|
-
var IconAdapter = function IconAdapter(props) {
|
|
12
|
-
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
13
|
-
onClick: function onClick(e) {
|
|
14
|
-
return props.onClick && props.onClick(e);
|
|
15
|
-
},
|
|
16
|
-
viewBox: "0 0 512 512",
|
|
17
|
-
width: props.width || 20,
|
|
18
|
-
height: props.height || props.width || 20,
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
className: props.className,
|
|
21
|
-
style: props.style
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
-
fill: "currentColor",
|
|
24
|
-
d: "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
IconAdapter.propTypes = {
|
|
28
|
-
onClick: _propTypes["default"].func,
|
|
29
|
-
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
30
|
-
height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
31
|
-
className: _propTypes["default"].string
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
4
|
};
|
|
33
|
-
|
|
34
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
|
|
8
|
+
const IconAdapter = (props) => react_1.default.createElement("svg", { onClick: e => props.onClick && props.onClick(e), viewBox: "0 0 512 512", width: props.width || 20, height: props.height || props.width || 20, xmlns: "http://www.w3.org/2000/svg", className: props.className, style: props.style },
|
|
9
|
+
react_1.default.createElement("path", { fill: "currentColor", d: "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z" }));
|
|
10
|
+
exports.default = IconAdapter;
|
package/icons/IconAlias.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
export default IconAlias;
|
|
2
|
-
declare function IconAlias(props: any): React.JSX.Element;
|
|
3
|
-
declare namespace IconAlias {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
let onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
-
let width: PropTypes.Requireable<NonNullable<string | number>>;
|
|
7
|
-
let height: PropTypes.Requireable<NonNullable<string | number>>;
|
|
8
|
-
let className: PropTypes.Requireable<string>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
1
|
import React from 'react';
|
|
12
|
-
import
|
|
2
|
+
import type IconProps from './IconProps';
|
|
3
|
+
declare const IconAlias: (props: IconProps) => React.JSX.Element;
|
|
4
|
+
export default IconAlias;
|
package/icons/IconAlias.js
CHANGED
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
|
|
11
|
-
var IconAlias = function IconAlias(props) {
|
|
12
|
-
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
13
|
-
onClick: function onClick(e) {
|
|
14
|
-
return props.onClick && props.onClick(e);
|
|
15
|
-
},
|
|
16
|
-
viewBox: "0 0 512 512",
|
|
17
|
-
width: props.width || 20,
|
|
18
|
-
height: props.height || props.width || 20,
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
className: props.className,
|
|
21
|
-
style: props.style
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
-
fill: "currentColor",
|
|
24
|
-
d: "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
IconAlias.propTypes = {
|
|
28
|
-
onClick: _propTypes["default"].func,
|
|
29
|
-
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
30
|
-
height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
31
|
-
className: _propTypes["default"].string
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
4
|
};
|
|
33
|
-
|
|
34
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
|
|
8
|
+
const IconAlias = (props) => react_1.default.createElement("svg", { onClick: e => props.onClick && props.onClick(e), viewBox: "0 0 512 512", width: props.width || 20, height: props.height || props.width || 20, xmlns: "http://www.w3.org/2000/svg", className: props.className, style: props.style },
|
|
9
|
+
react_1.default.createElement("path", { fill: "currentColor", d: "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z" }));
|
|
10
|
+
exports.default = IconAlias;
|
package/icons/IconExpert.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
width?: number | string;
|
|
5
|
-
/** The height in pixels or percentage of the icon. */
|
|
6
|
-
height?: number | string;
|
|
7
|
-
/** Click handler. */
|
|
8
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
-
/** The class name for the SVG element. */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ExpertIcon: (props: ExpertIconProps) => React.JSX.Element;
|
|
2
|
+
import type IconProps from './IconProps';
|
|
3
|
+
declare const ExpertIcon: (props: IconProps) => React.JSX.Element;
|
|
13
4
|
export default ExpertIcon;
|
package/icons/IconExpert.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const ExpertIcon = (props) => react_1.default.createElement("svg", { onClick: e => props.onClick && props.onClick(e), viewBox: "0 0 486.70625 486", width: props.width || 20, height: props.height || props.width || 20, xmlns: "http://www.w3.org/2000/svg", className: props.className },
|
|
7
|
+
const ExpertIcon = (props) => react_1.default.createElement("svg", { onClick: e => props.onClick && props.onClick(e), viewBox: "0 0 486.70625 486", width: props.width || 20, height: props.height || props.width || 20, xmlns: "http://www.w3.org/2000/svg", className: props.className, style: props.style },
|
|
8
8
|
react_1.default.createElement("path", { fill: "currentColor", d: "m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0" }),
|
|
9
9
|
react_1.default.createElement("path", { fill: "currentColor", d: "m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0" }));
|
|
10
10
|
exports.default = ExpertIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default interface IconProps {
|
|
3
|
+
/** The width in pixels or percentage of the icon. */
|
|
4
|
+
width?: number | string;
|
|
5
|
+
/** The height in pixels or percentage of the icon. */
|
|
6
|
+
height?: number | string;
|
|
7
|
+
/** Click handler. */
|
|
8
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
+
/** The class name for the SVG element. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Styles for the SVG element. */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.9",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Denis Haev (bluefox)",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
"@emotion/react": "^11.11.4",
|
|
31
31
|
"@emotion/styled": "^11.11.5",
|
|
32
32
|
"@iobroker/dm-utils": "^0.1.9",
|
|
33
|
-
"@iobroker/json-config": "^6.17.
|
|
34
|
-
"@iobroker/socket-client": "^2.4.
|
|
33
|
+
"@iobroker/json-config": "^6.17.6",
|
|
34
|
+
"@iobroker/socket-client": "^2.4.7",
|
|
35
35
|
"@iobroker/types": "^5.0.19",
|
|
36
36
|
"@iobroker/js-controller-common": "^5.0.19",
|
|
37
37
|
"@iobroker/js-controller-common-db": "^5.0.19",
|
|
38
38
|
"@mui/icons-material": "^5.15.15",
|
|
39
39
|
"@mui/material": "5.14.14",
|
|
40
40
|
"@mui/styles": "5.14.14",
|
|
41
|
-
"@mui/x-date-pickers": "^7.
|
|
42
|
-
"@sentry/browser": "^7.
|
|
43
|
-
"@sentry/integrations": "^7.
|
|
41
|
+
"@mui/x-date-pickers": "^7.2.0",
|
|
42
|
+
"@sentry/browser": "^7.111.0",
|
|
43
|
+
"@sentry/integrations": "^7.111.0",
|
|
44
44
|
"react-color": "^2.19.3",
|
|
45
45
|
"react-colorful": "^5.6.1",
|
|
46
46
|
"react-cropper": "^2.3.3",
|
|
47
47
|
"react-dropzone": "^14.2.3",
|
|
48
|
-
"react-icons": "^5.0
|
|
48
|
+
"react-icons": "^5.1.0",
|
|
49
49
|
"react-inlinesvg": "4.0.3"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/AdminConnection.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminConnection.js","names":["_socketClient","require","_default","exports","AdminConnection"],"sources":["AdminConnection.js"],"sourcesContent":["import { AdminConnection } from '@iobroker/socket-client';\n\nexport default AdminConnection;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA0D,IAAAC,QAAA,GAAAC,OAAA,cAE3CC,6BAAe","ignoreList":[]}
|
package/Connection.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.js","names":["_socketClient","require","_default","exports","Connection"],"sources":["Connection.js"],"sourcesContent":["import {\n Connection, PROGRESS, ERRORS, PERMISSION_ERROR,\n} from '@iobroker/socket-client';\n\nexport { PROGRESS, ERRORS, PERMISSION_ERROR };\n\nexport default Connection;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEiC,IAAAC,QAAA,GAAAC,OAAA,cAIlBC,wBAAU","ignoreList":[]}
|
package/icons/IconAdapter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconAdapter.js","names":["_react","_interopRequireDefault","require","_propTypes","IconAdapter","props","createElement","onClick","e","viewBox","width","height","xmlns","className","style","fill","d","propTypes","PropTypes","func","oneOfType","number","string","_default","exports"],"sources":["IconAdapter.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/\nconst IconAdapter = props => <svg\n onClick={e => props.onClick && props.onClick(e)}\n viewBox=\"0 0 512 512\"\n width={props.width || 20}\n height={props.height || props.width || 20}\n xmlns=\"http://www.w3.org/2000/svg\"\n className={props.className}\n style={props.style}\n>\n <path\n fill=\"currentColor\"\n d=\"M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z\"\n />\n</svg>;\n\nIconAdapter.propTypes = {\n onClick: PropTypes.func,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default IconAdapter;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAGC,KAAK;EAAA,oBAAIL,MAAA,YAAAM,aAAA;IACzBC,OAAO,EAAE,SAAAA,QAAAC,CAAC;MAAA,OAAIH,KAAK,CAACE,OAAO,IAAIF,KAAK,CAACE,OAAO,CAACC,CAAC,CAAC;IAAA,CAAC;IAChDC,OAAO,EAAC,aAAa;IACrBC,KAAK,EAAEL,KAAK,CAACK,KAAK,IAAI,EAAG;IACzBC,MAAM,EAAEN,KAAK,CAACM,MAAM,IAAIN,KAAK,CAACK,KAAK,IAAI,EAAG;IAC1CE,KAAK,EAAC,4BAA4B;IAClCC,SAAS,EAAER,KAAK,CAACQ,SAAU;IAC3BC,KAAK,EAAET,KAAK,CAACS;EAAM,gBAEnBd,MAAA,YAAAM,aAAA;IACIS,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;EAAoS,CACzS,CACA,CAAC;AAAA;AAENZ,WAAW,CAACa,SAAS,GAAG;EACpBV,OAAO,EAAEW,qBAAS,CAACC,IAAI;EACvBT,KAAK,EAAEQ,qBAAS,CAACE,SAAS,CAAC,CAACF,qBAAS,CAACG,MAAM,EAAEH,qBAAS,CAACI,MAAM,CAAC,CAAC;EAChEX,MAAM,EAAEO,qBAAS,CAACE,SAAS,CAAC,CAACF,qBAAS,CAACG,MAAM,EAAEH,qBAAS,CAACI,MAAM,CAAC,CAAC;EACjET,SAAS,EAAEK,qBAAS,CAACI;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACapB,WAAW","ignoreList":[]}
|
package/icons/IconAlias.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconAlias.js","names":["_react","_interopRequireDefault","require","_propTypes","IconAlias","props","createElement","onClick","e","viewBox","width","height","xmlns","className","style","fill","d","propTypes","PropTypes","func","oneOfType","number","string","_default","exports"],"sources":["IconAlias.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\n// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/\nconst IconAlias = props => <svg\n onClick={e => props.onClick && props.onClick(e)}\n viewBox=\"0 0 512 512\"\n width={props.width || 20}\n height={props.height || props.width || 20}\n xmlns=\"http://www.w3.org/2000/svg\"\n className={props.className}\n style={props.style}\n>\n <path\n fill=\"currentColor\"\n d=\"M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z\"\n />\n</svg>;\n\nIconAlias.propTypes = {\n onClick: PropTypes.func,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\n\nexport default IconAlias;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,SAAS,GAAG,SAAZA,SAASA,CAAGC,KAAK;EAAA,oBAAIL,MAAA,YAAAM,aAAA;IACvBC,OAAO,EAAE,SAAAA,QAAAC,CAAC;MAAA,OAAIH,KAAK,CAACE,OAAO,IAAIF,KAAK,CAACE,OAAO,CAACC,CAAC,CAAC;IAAA,CAAC;IAChDC,OAAO,EAAC,aAAa;IACrBC,KAAK,EAAEL,KAAK,CAACK,KAAK,IAAI,EAAG;IACzBC,MAAM,EAAEN,KAAK,CAACM,MAAM,IAAIN,KAAK,CAACK,KAAK,IAAI,EAAG;IAC1CE,KAAK,EAAC,4BAA4B;IAClCC,SAAS,EAAER,KAAK,CAACQ,SAAU;IAC3BC,KAAK,EAAET,KAAK,CAACS;EAAM,gBAEnBd,MAAA,YAAAM,aAAA;IACIS,IAAI,EAAC,cAAc;IACnBC,CAAC,EAAC;EAAsjB,CAC3jB,CACA,CAAC;AAAA;AAENZ,SAAS,CAACa,SAAS,GAAG;EAClBV,OAAO,EAAEW,qBAAS,CAACC,IAAI;EACvBT,KAAK,EAAEQ,qBAAS,CAACE,SAAS,CAAC,CAACF,qBAAS,CAACG,MAAM,EAAEH,qBAAS,CAACI,MAAM,CAAC,CAAC;EAChEX,MAAM,EAAEO,qBAAS,CAACE,SAAS,CAAC,CAACF,qBAAS,CAACG,MAAM,EAAEH,qBAAS,CAACI,MAAM,CAAC,CAAC;EACjET,SAAS,EAAEK,qBAAS,CAACI;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEapB,SAAS","ignoreList":[]}
|