@iobroker/adapter-react-v5 7.1.4 → 7.2.1
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/Components/UploadImage.js +14 -3
- package/Dialogs/Confirm.d.ts +1 -1
- package/Dialogs/Error.d.ts +1 -1
- package/Dialogs/Message.d.ts +1 -1
- package/LegacyConnection.d.ts +1 -0
- package/LegacyConnection.js +2 -2
- package/README.md +198 -193
- package/package.json +6 -6
- package/src/Components/UploadImage.tsx +15 -3
- package/src/Dialogs/Confirm.tsx +1 -1
- package/src/Dialogs/Error.tsx +1 -1
- package/src/Dialogs/Message.tsx +1 -1
- package/src/LegacyConnection.tsx +3 -2
|
@@ -471,8 +471,19 @@ class UploadImage extends react_1.Component {
|
|
|
471
471
|
render() {
|
|
472
472
|
const { disabled, icon, removeIconFunc, error, crop, onChange } = this.props;
|
|
473
473
|
const maxSize = this.props.maxSize || 10 * 1024;
|
|
474
|
-
|
|
474
|
+
let accept = this.props.accept || { 'image/*': [] };
|
|
475
475
|
const { uploadFile, anchorEl, cropHandler } = this.state;
|
|
476
|
+
// covert '"image/png"' to { 'image/*': [] }
|
|
477
|
+
if (typeof accept === 'string') {
|
|
478
|
+
accept = { [accept]: [] };
|
|
479
|
+
}
|
|
480
|
+
else if (Array.isArray(accept)) {
|
|
481
|
+
const result = {};
|
|
482
|
+
accept.forEach(item => {
|
|
483
|
+
result[item] = [];
|
|
484
|
+
});
|
|
485
|
+
accept = result;
|
|
486
|
+
}
|
|
476
487
|
return (react_1.default.createElement(react_dropzone_1.default, { disabled: !!disabled || cropHandler, key: "dropzone", multiple: false, accept: accept, maxSize: maxSize, onDragEnter: () => this.setState({ uploadFile: 'dragging' }), onDragLeave: () => this.setState({ uploadFile: true }), onDrop: (acceptedFiles, errors) => {
|
|
477
488
|
this.setState({ uploadFile: false });
|
|
478
489
|
if (!acceptedFiles.length) {
|
|
@@ -495,14 +506,14 @@ class UploadImage extends react_1.Component {
|
|
|
495
506
|
? i18n_1.default.t('ra_Drop file here')
|
|
496
507
|
: i18n_1.default.t('ra_Place your files here or click here to open the browse dialog')))) : (removeIconFunc &&
|
|
497
508
|
!cropHandler && (react_1.default.createElement("div", { style: styles.buttonRemoveWrapper },
|
|
498
|
-
react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Clear'),
|
|
509
|
+
react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Clear'), slotProps: { popper: { sx: { pointerEvents: 'none' } } } },
|
|
499
510
|
react_1.default.createElement(material_1.IconButton, { size: "large", onClick: e => {
|
|
500
511
|
removeIconFunc && removeIconFunc();
|
|
501
512
|
e.stopPropagation();
|
|
502
513
|
} },
|
|
503
514
|
react_1.default.createElement(icons_material_1.Close, null)))))),
|
|
504
515
|
icon && crop && (react_1.default.createElement("div", { style: styles.buttonCropWrapper },
|
|
505
|
-
react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Crop'),
|
|
516
|
+
react_1.default.createElement(material_1.Tooltip, { title: i18n_1.default.t('ra_Crop'), slotProps: { popper: { sx: { pointerEvents: 'none' } } } },
|
|
506
517
|
react_1.default.createElement(material_1.IconButton, { size: "large", onClick: e => {
|
|
507
518
|
if (!cropHandler) {
|
|
508
519
|
this.setState({ cropHandler: true });
|
package/Dialogs/Confirm.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface DialogConfirmProps {
|
|
|
9
9
|
/** The dialog title; default: Are you sure? (translated) */
|
|
10
10
|
title?: string;
|
|
11
11
|
/** The dialog text */
|
|
12
|
-
text?: string | React.JSX.Element;
|
|
12
|
+
text?: string | React.JSX.Element | React.JSX.Element[];
|
|
13
13
|
/** Close handler. */
|
|
14
14
|
onClose?: (ok: boolean) => void;
|
|
15
15
|
/** if the dialog must be fill sized */
|
package/Dialogs/Error.d.ts
CHANGED
package/Dialogs/Message.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React, { Component, type JSX } from 'react';
|
|
8
8
|
interface DialogMessageProps {
|
|
9
9
|
title?: string;
|
|
10
|
-
text: string | React.JSX.Element;
|
|
10
|
+
text: string | React.JSX.Element | React.JSX.Element[];
|
|
11
11
|
onClose?: () => void;
|
|
12
12
|
fullWidth?: boolean;
|
|
13
13
|
icon?: React.JSX.Element;
|
package/LegacyConnection.d.ts
CHANGED
package/LegacyConnection.js
CHANGED
|
@@ -164,7 +164,7 @@ class Connection {
|
|
|
164
164
|
*/
|
|
165
165
|
startSocket() {
|
|
166
166
|
// if socket io is not yet loaded
|
|
167
|
-
if (typeof window.io === 'undefined') {
|
|
167
|
+
if (typeof window.io === 'undefined' && typeof window.iob === 'undefined') {
|
|
168
168
|
// if in index.html the onLoad function not defined
|
|
169
169
|
if (typeof window.registerSocketOnLoad !== 'function') {
|
|
170
170
|
// poll if loaded
|
|
@@ -225,7 +225,7 @@ class Connection {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
const url = port ? `${protocol}://${host}:${port}${path}` : `${protocol}://${host}${path}`;
|
|
228
|
-
this._socket = window.io.connect(url, {
|
|
228
|
+
this._socket = (window.io || window.iob).connect(url, {
|
|
229
229
|
path: path.endsWith('/') ? `${path}socket.io` : `${path}/socket.io`,
|
|
230
230
|
query: 'ws=true',
|
|
231
231
|
name: this.props.name,
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ If you want to create the configuration page with ReactJS:
|
|
|
13
13
|
- Change `name` from `src` to `ADAPTERNAME-admin` (Of course replace `ADAPTERNAME` with yours)
|
|
14
14
|
- Add to devDependencies:
|
|
15
15
|
```
|
|
16
|
-
"@iobroker/adapter-react-v5": "^7.1
|
|
16
|
+
"@iobroker/adapter-react-v5": "^7.2.1",
|
|
17
17
|
```
|
|
18
18
|
Versions can be higher.
|
|
19
19
|
So your `src/package.json` should look like:
|
|
@@ -24,7 +24,7 @@ If you want to create the configuration page with ReactJS:
|
|
|
24
24
|
"version": "0.1.0",
|
|
25
25
|
"private": true,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@iobroker/adapter-react-v5": "^7.1
|
|
27
|
+
"@iobroker/adapter-react-v5": "^7.2.1",
|
|
28
28
|
"@iobroker/build-tools": "^1.0.0",
|
|
29
29
|
"@iobroker/eslint-config": "^0.1.2",
|
|
30
30
|
"@mui/material": "^6.0.2",
|
|
@@ -697,224 +697,229 @@ You can find the migration instructions:
|
|
|
697
697
|
-->
|
|
698
698
|
|
|
699
699
|
## Changelog
|
|
700
|
+
### 7.2.1 (2024-09-30)
|
|
701
|
+
|
|
702
|
+
- (bluefox) Allowed using an array of elements in dialogs
|
|
703
|
+
- (@GermanBluefox) Allowed to use `socket.iob` instead of `socket.io`
|
|
704
|
+
|
|
700
705
|
### 7.1.4 (2024-09-15)
|
|
701
706
|
|
|
702
|
-
- (
|
|
707
|
+
- (@GermanBluefox) Updated socket classes
|
|
703
708
|
|
|
704
709
|
### 7.1.3 (2024-09-15)
|
|
705
710
|
|
|
706
|
-
- (
|
|
707
|
-
- (
|
|
711
|
+
- (@GermanBluefox) Updated socket classes
|
|
712
|
+
- (@GermanBluefox) Added additional confirmation dialog for CRONs for every minute execution
|
|
708
713
|
|
|
709
714
|
### 7.1.1 (2024-09-13)
|
|
710
715
|
|
|
711
|
-
- (
|
|
716
|
+
- (@GermanBluefox) Corrected TabContainer
|
|
712
717
|
|
|
713
718
|
### 7.1.0 (2024-09-12)
|
|
714
719
|
|
|
715
|
-
- (
|
|
716
|
-
- (
|
|
720
|
+
- (@GermanBluefox) Optimized the icon picker
|
|
721
|
+
- (@GermanBluefox) Used common eslint-config
|
|
717
722
|
|
|
718
723
|
### 7.0.2 (2024-09-10)
|
|
719
724
|
|
|
720
|
-
- (
|
|
721
|
-
- (
|
|
725
|
+
- (@GermanBluefox) Showed the context menu under cursor position in the object browser
|
|
726
|
+
- (@GermanBluefox) Added links to aliases in the object browser
|
|
722
727
|
|
|
723
728
|
### 7.0.1 (2024-08-29)
|
|
724
729
|
|
|
725
|
-
- (
|
|
726
|
-
- (
|
|
730
|
+
- (@GermanBluefox) Updated the object browser
|
|
731
|
+
- (@GermanBluefox) Used MUI Library 6.0
|
|
727
732
|
|
|
728
733
|
### 6.1.10 (2024-08-30)
|
|
729
734
|
|
|
730
|
-
- (
|
|
735
|
+
- (@GermanBluefox) Updated the object browser
|
|
731
736
|
|
|
732
737
|
### 6.1.9 (2024-08-14)
|
|
733
738
|
|
|
734
|
-
- (
|
|
739
|
+
- (@GermanBluefox) Updated JSON schema
|
|
735
740
|
|
|
736
741
|
### 6.1.8 (2024-08-03)
|
|
737
742
|
|
|
738
|
-
- (
|
|
743
|
+
- (@GermanBluefox) Added translations
|
|
739
744
|
|
|
740
745
|
### 6.1.6 (2024-07-23)
|
|
741
746
|
|
|
742
|
-
- (
|
|
747
|
+
- (@GermanBluefox) Optimize package
|
|
743
748
|
|
|
744
749
|
### 6.1.5 (2024-07-20)
|
|
745
750
|
|
|
746
|
-
- (
|
|
751
|
+
- (@GermanBluefox) Added sources to package
|
|
747
752
|
|
|
748
753
|
### 6.1.3 (2024-07-20)
|
|
749
754
|
|
|
750
|
-
- (
|
|
755
|
+
- (@GermanBluefox) Better typing of legacy connection
|
|
751
756
|
|
|
752
757
|
### 6.1.1 (2024-07-16)
|
|
753
758
|
|
|
754
|
-
- (
|
|
759
|
+
- (@GermanBluefox) Added translations
|
|
755
760
|
|
|
756
761
|
### 6.1.0 (2024-07-15)
|
|
757
762
|
|
|
758
|
-
- (
|
|
763
|
+
- (@GermanBluefox) Replace by CRON to text the package to `cronstrue`
|
|
759
764
|
|
|
760
765
|
### 6.0.19 (2024-07-14)
|
|
761
766
|
|
|
762
|
-
- (
|
|
767
|
+
- (@GermanBluefox) added some packages for federation
|
|
763
768
|
|
|
764
769
|
### 6.0.17 (2024-07-14)
|
|
765
770
|
|
|
766
|
-
- (
|
|
767
|
-
- (
|
|
771
|
+
- (@GermanBluefox) Allowed playing mp3 files in the file browser
|
|
772
|
+
- (@GermanBluefox) Corrected jump by object selection
|
|
768
773
|
|
|
769
774
|
### 6.0.14 (2024-07-07)
|
|
770
775
|
|
|
771
|
-
- (
|
|
776
|
+
- (@GermanBluefox) Corrected theme type selection
|
|
772
777
|
|
|
773
778
|
### 6.0.13 (2024-06-30)
|
|
774
779
|
|
|
775
|
-
- (
|
|
780
|
+
- (@GermanBluefox) Corrected color picker
|
|
776
781
|
|
|
777
782
|
### 6.0.12 (2024-06-29)
|
|
778
783
|
|
|
779
|
-
- (
|
|
784
|
+
- (@GermanBluefox) Added support for the overrides in the theme
|
|
780
785
|
|
|
781
786
|
### 6.0.10 (2024-06-27)
|
|
782
787
|
|
|
783
|
-
- (
|
|
784
|
-
- (
|
|
788
|
+
- (@GermanBluefox) Added translation
|
|
789
|
+
- (@GermanBluefox) Mobile object browser improved
|
|
785
790
|
|
|
786
791
|
### 6.0.9 (2024-06-26)
|
|
787
792
|
|
|
788
|
-
- (
|
|
793
|
+
- (@GermanBluefox) Corrected Icons
|
|
789
794
|
|
|
790
795
|
### 6.0.8 (2024-06-26)
|
|
791
796
|
|
|
792
|
-
- (
|
|
793
|
-
- (
|
|
797
|
+
- (@GermanBluefox) Corrected types of the select ID dialog
|
|
798
|
+
- (@GermanBluefox) Made the tooltips neutral to the pointer events
|
|
794
799
|
|
|
795
800
|
### 6.0.6 (2024-06-24)
|
|
796
801
|
|
|
797
|
-
- (
|
|
798
|
-
- (
|
|
802
|
+
- (@GermanBluefox) Synchronised with admin
|
|
803
|
+
- (@GermanBluefox) Added translations for time scheduler
|
|
799
804
|
|
|
800
805
|
### 6.0.4 (2024-06-21)
|
|
801
806
|
|
|
802
|
-
- (
|
|
803
|
-
- (
|
|
807
|
+
- (@GermanBluefox) Removed the usage of `withStyles` in favor of `sx` and `style` properties (see [Migration from v5 to v6](#migration-from-v5-to-v6)
|
|
808
|
+
- (@GermanBluefox) (BREAKING) Higher version of `@mui/material` (5.15.20) is used
|
|
804
809
|
|
|
805
810
|
### 5.0.8 (2024-06-15)
|
|
806
811
|
|
|
807
|
-
- (
|
|
812
|
+
- (@GermanBluefox) Added `modulefederation.admin.config.js` for module federation
|
|
808
813
|
|
|
809
814
|
### 5.0.5 (2024-06-10)
|
|
810
815
|
|
|
811
|
-
- (
|
|
816
|
+
- (@GermanBluefox) Sources were synchronized with admin
|
|
812
817
|
|
|
813
818
|
### 5.0.4 (2024-06-07)
|
|
814
819
|
|
|
815
|
-
- (
|
|
820
|
+
- (@GermanBluefox) Added better typing
|
|
816
821
|
|
|
817
822
|
### 5.0.2 (2024-05-30)
|
|
818
823
|
|
|
819
|
-
- (
|
|
820
|
-
- (
|
|
824
|
+
- (@GermanBluefox) Added better typing
|
|
825
|
+
- (@GermanBluefox) Json-Config is now a separate package and must be installed additionally
|
|
821
826
|
|
|
822
827
|
### 5.0.0 (2024-05-29)
|
|
823
828
|
|
|
824
|
-
- (
|
|
825
|
-
- (
|
|
826
|
-
- (
|
|
829
|
+
- (@GermanBluefox) Types are now exported
|
|
830
|
+
- (@GermanBluefox) Translator renamed to Translate
|
|
831
|
+
- (@GermanBluefox) Breaking: Theme renamed to IobTheme because of the naming conflict
|
|
827
832
|
|
|
828
833
|
### 4.13.24 (2024-05-25)
|
|
829
834
|
|
|
830
|
-
- (
|
|
835
|
+
- (@GermanBluefox) Updated packages
|
|
831
836
|
|
|
832
837
|
- ### 4.13.22 (2024-05-23)
|
|
833
|
-
- (
|
|
838
|
+
- (@GermanBluefox) Updated packages
|
|
834
839
|
|
|
835
840
|
### 4.13.20 (2024-05-22)
|
|
836
841
|
|
|
837
|
-
- (
|
|
838
|
-
- (
|
|
839
|
-
- (
|
|
842
|
+
- (@GermanBluefox) Better types added
|
|
843
|
+
- (@GermanBluefox) updated theme definitions
|
|
844
|
+
- (@GermanBluefox) corrected dates in cron dialog
|
|
840
845
|
|
|
841
846
|
### 4.13.14 (2024-05-19)
|
|
842
847
|
|
|
843
|
-
- (
|
|
848
|
+
- (@GermanBluefox) Updated packages
|
|
844
849
|
|
|
845
850
|
### 4.13.13 (2024-05-09)
|
|
846
851
|
|
|
847
|
-
- (
|
|
852
|
+
- (@GermanBluefox) Updated ioBroker types
|
|
848
853
|
|
|
849
854
|
### 4.13.12 (2024-05-06)
|
|
850
855
|
|
|
851
|
-
- (
|
|
856
|
+
- (@GermanBluefox) All files are migrated to Typescript
|
|
852
857
|
|
|
853
858
|
### 4.13.11 (2024-04-23)
|
|
854
859
|
|
|
855
|
-
- (
|
|
860
|
+
- (@GermanBluefox) Corrected the size of icons
|
|
856
861
|
|
|
857
862
|
### 4.13.10 (2024-04-22)
|
|
858
863
|
|
|
859
|
-
- (
|
|
864
|
+
- (@GermanBluefox) Migrated all icons to Typescript
|
|
860
865
|
|
|
861
866
|
### 4.13.9 (2024-04-20)
|
|
862
867
|
|
|
863
|
-
- (
|
|
868
|
+
- (@GermanBluefox) Updated socket-client package
|
|
864
869
|
|
|
865
870
|
### 4.13.8 (2024-04-19)
|
|
866
871
|
|
|
867
|
-
- (
|
|
872
|
+
- (@GermanBluefox) Corrected CRON selector
|
|
868
873
|
|
|
869
874
|
### 4.13.7 (2024-04-19)
|
|
870
875
|
|
|
871
|
-
- (
|
|
876
|
+
- (@GermanBluefox) Migrated ColorPicker to typescript
|
|
872
877
|
|
|
873
878
|
### 4.13.6 (2024-04-11)
|
|
874
879
|
|
|
875
|
-
- (
|
|
876
|
-
- (
|
|
880
|
+
- (@GermanBluefox) Migrated TreeTable to typescript
|
|
881
|
+
- (@GermanBluefox) corrected the object subscription
|
|
877
882
|
|
|
878
883
|
### 4.13.5 (2024-04-02)
|
|
879
884
|
|
|
880
|
-
- (
|
|
881
|
-
- (
|
|
885
|
+
- (@GermanBluefox) used new connection classes
|
|
886
|
+
- (@GermanBluefox) Improved the `SelectID` dialog
|
|
882
887
|
|
|
883
888
|
### 4.13.3 (2024-04-01)
|
|
884
889
|
|
|
885
|
-
- (
|
|
890
|
+
- (@GermanBluefox) used new connection classes
|
|
886
891
|
|
|
887
892
|
### 4.12.3 (2024-03-30)
|
|
888
893
|
|
|
889
|
-
- (
|
|
894
|
+
- (@GermanBluefox) Migrated legacy connection to typescript
|
|
890
895
|
|
|
891
896
|
### 4.12.2 (2024-03-25)
|
|
892
897
|
|
|
893
|
-
- (
|
|
898
|
+
- (@GermanBluefox) Added support for remote cloud
|
|
894
899
|
|
|
895
900
|
### 4.11.6 (2024-03-19)
|
|
896
901
|
|
|
897
|
-
- (
|
|
902
|
+
- (@GermanBluefox) Corrected rendering of LoaderMV
|
|
898
903
|
|
|
899
904
|
### 4.11.4 (2024-03-18)
|
|
900
905
|
|
|
901
|
-
- (
|
|
906
|
+
- (@GermanBluefox) Corrected types of IconPicker
|
|
902
907
|
|
|
903
908
|
### 4.11.3 (2024-03-17)
|
|
904
909
|
|
|
905
|
-
- (
|
|
910
|
+
- (@GermanBluefox) Made filters for the file selector dialog optional
|
|
906
911
|
|
|
907
912
|
### 4.11.2 (2024-03-16)
|
|
908
913
|
|
|
909
|
-
- (
|
|
914
|
+
- (@GermanBluefox) Migrated GenericApp to typescript
|
|
910
915
|
|
|
911
916
|
### 4.10.4 (2024-03-16)
|
|
912
917
|
|
|
913
|
-
- (
|
|
918
|
+
- (@GermanBluefox) Migrated some components to typescript
|
|
914
919
|
|
|
915
920
|
### 4.10.1 (2024-03-11)
|
|
916
921
|
|
|
917
|
-
- (
|
|
922
|
+
- (@GermanBluefox) Migrated some components to typescript
|
|
918
923
|
|
|
919
924
|
### 4.9.11 (2024-03-08)
|
|
920
925
|
|
|
@@ -922,8 +927,8 @@ You can find the migration instructions:
|
|
|
922
927
|
|
|
923
928
|
### 4.9.10 (2024-02-21)
|
|
924
929
|
|
|
925
|
-
- (
|
|
926
|
-
- (
|
|
930
|
+
- (@GermanBluefox) translations
|
|
931
|
+
- (@GermanBluefox) updated JSON config
|
|
927
932
|
|
|
928
933
|
### 4.9.9 (2024-02-16)
|
|
929
934
|
|
|
@@ -931,7 +936,7 @@ You can find the migration instructions:
|
|
|
931
936
|
|
|
932
937
|
### 4.9.8 (2024-02-13)
|
|
933
938
|
|
|
934
|
-
- (
|
|
939
|
+
- (@GermanBluefox) allowed hiding wizard in cron dialog
|
|
935
940
|
|
|
936
941
|
### 4.9.7 (2024-02-03)
|
|
937
942
|
|
|
@@ -956,27 +961,27 @@ You can find the migration instructions:
|
|
|
956
961
|
### 4.9.0 (2023-12-22)
|
|
957
962
|
|
|
958
963
|
- (foxriver76) migrate to `@iobroker/json-config` module to have a single point of truth
|
|
959
|
-
- (
|
|
964
|
+
- (@GermanBluefox) Allowed using of `filterFunc` as string
|
|
960
965
|
|
|
961
966
|
### 4.8.1 (2023-12-14)
|
|
962
967
|
|
|
963
|
-
- (
|
|
968
|
+
- (@GermanBluefox) Added Device manager to JSON Config
|
|
964
969
|
|
|
965
970
|
### 4.7.15 (2023-12-12)
|
|
966
971
|
|
|
967
|
-
- (
|
|
972
|
+
- (@GermanBluefox) Corrected parsing of a text
|
|
968
973
|
|
|
969
974
|
### 4.7.13 (2023-12-10)
|
|
970
975
|
|
|
971
|
-
- (
|
|
976
|
+
- (@GermanBluefox) Added possibility to define the root style and embedded property
|
|
972
977
|
|
|
973
978
|
### 4.7.11 (2023-12-06)
|
|
974
979
|
|
|
975
|
-
- (
|
|
980
|
+
- (@GermanBluefox) Extended color picker with "noInputField" option
|
|
976
981
|
|
|
977
982
|
### 4.7.9 (2023-12-04)
|
|
978
983
|
|
|
979
|
-
- (
|
|
984
|
+
- (@GermanBluefox) Corrected the icon picker
|
|
980
985
|
|
|
981
986
|
### 4.7.8 (2023-12-04)
|
|
982
987
|
|
|
@@ -984,20 +989,20 @@ You can find the migration instructions:
|
|
|
984
989
|
|
|
985
990
|
### 4.7.6 (2023-11-29)
|
|
986
991
|
|
|
987
|
-
- (
|
|
992
|
+
- (@GermanBluefox) Added translations
|
|
988
993
|
|
|
989
994
|
### 4.7.5 (2023-11-28)
|
|
990
995
|
|
|
991
|
-
- (
|
|
996
|
+
- (@GermanBluefox) Corrected subscribe on objects in the legacy connection
|
|
992
997
|
|
|
993
998
|
### 4.7.4 (2023-11-23)
|
|
994
999
|
|
|
995
|
-
- (
|
|
996
|
-
- (
|
|
1000
|
+
- (@GermanBluefox) Updated packages
|
|
1001
|
+
- (@GermanBluefox) Made getStates method in legacy connection compatible with new one
|
|
997
1002
|
|
|
998
1003
|
### 4.7.3 (2023-11-08)
|
|
999
1004
|
|
|
1000
|
-
- (
|
|
1005
|
+
- (@GermanBluefox) Updated packages
|
|
1001
1006
|
|
|
1002
1007
|
### 4.7.2 (2023-11-03)
|
|
1003
1008
|
|
|
@@ -1006,16 +1011,16 @@ You can find the migration instructions:
|
|
|
1006
1011
|
|
|
1007
1012
|
### 4.7.0 (2023-10-31)
|
|
1008
1013
|
|
|
1009
|
-
- (
|
|
1010
|
-
- (
|
|
1014
|
+
- (@GermanBluefox) Synced with admin
|
|
1015
|
+
- (@GermanBluefox) Added GIF to image files
|
|
1011
1016
|
|
|
1012
1017
|
### 4.6.7 (2023-10-19)
|
|
1013
1018
|
|
|
1014
|
-
- (
|
|
1019
|
+
- (@GermanBluefox) Added return value for `subscribeOnInstance` for Connection class
|
|
1015
1020
|
|
|
1016
1021
|
### 4.6.6 (2023-10-13)
|
|
1017
1022
|
|
|
1018
|
-
- (
|
|
1023
|
+
- (@GermanBluefox) Fixed the legacy connection
|
|
1019
1024
|
|
|
1020
1025
|
### 4.6.5 (2023-10-12)
|
|
1021
1026
|
|
|
@@ -1023,24 +1028,24 @@ You can find the migration instructions:
|
|
|
1023
1028
|
|
|
1024
1029
|
### 4.6.4 (2023-10-11)
|
|
1025
1030
|
|
|
1026
|
-
- (
|
|
1031
|
+
- (@GermanBluefox) Updated the packages
|
|
1027
1032
|
|
|
1028
1033
|
### 4.6.3 (2023-10-09)
|
|
1029
1034
|
|
|
1030
|
-
- (
|
|
1031
|
-
- (
|
|
1035
|
+
- (@GermanBluefox) Just updated the packages
|
|
1036
|
+
- (@GermanBluefox) Synced with admin
|
|
1032
1037
|
|
|
1033
1038
|
### 4.6.2 (2023-09-29)
|
|
1034
1039
|
|
|
1035
|
-
- (
|
|
1040
|
+
- (@GermanBluefox) Experimental feature added: update states on re-subscribe
|
|
1036
1041
|
|
|
1037
1042
|
### 4.5.5 (2023-09-27)
|
|
1038
1043
|
|
|
1039
|
-
- (
|
|
1044
|
+
- (@GermanBluefox) Added export for IconNoIcon
|
|
1040
1045
|
|
|
1041
1046
|
### 4.5.4 (2023-09-17)
|
|
1042
1047
|
|
|
1043
|
-
- (
|
|
1048
|
+
- (@GermanBluefox) Added the restricting to folder property for select file dialog
|
|
1044
1049
|
|
|
1045
1050
|
### 4.5.3 (2023-08-20)
|
|
1046
1051
|
|
|
@@ -1056,165 +1061,165 @@ You can find the migration instructions:
|
|
|
1056
1061
|
|
|
1057
1062
|
### 4.5.0 (2023-08-18)
|
|
1058
1063
|
|
|
1059
|
-
- (
|
|
1064
|
+
- (@GermanBluefox) Synchronize components with admin
|
|
1060
1065
|
|
|
1061
1066
|
### 4.4.8 (2023-08-17)
|
|
1062
1067
|
|
|
1063
|
-
- (
|
|
1068
|
+
- (@GermanBluefox) Added translations
|
|
1064
1069
|
|
|
1065
1070
|
### 4.4.7 (2023-08-10)
|
|
1066
1071
|
|
|
1067
|
-
- (
|
|
1068
|
-
- (
|
|
1072
|
+
- (@GermanBluefox) Added `subscribeStateAsync` method to wait for answer
|
|
1073
|
+
- (@GermanBluefox) Added support for arrays for un/subscriptions
|
|
1069
1074
|
|
|
1070
1075
|
### 4.4.5 (2023-08-01)
|
|
1071
1076
|
|
|
1072
|
-
- (
|
|
1077
|
+
- (@GermanBluefox) Updated packages
|
|
1073
1078
|
|
|
1074
1079
|
### 4.3.3 (2023-07-28)
|
|
1075
1080
|
|
|
1076
|
-
- (
|
|
1081
|
+
- (@GermanBluefox) Added translations
|
|
1077
1082
|
|
|
1078
1083
|
### 4.3.0 (2023-07-19)
|
|
1079
1084
|
|
|
1080
|
-
- (
|
|
1081
|
-
- (
|
|
1082
|
-
- (
|
|
1083
|
-
- (
|
|
1085
|
+
- (@GermanBluefox) Updated packages
|
|
1086
|
+
- (@GermanBluefox) Added translations
|
|
1087
|
+
- (@GermanBluefox) Synced object browser
|
|
1088
|
+
- (@GermanBluefox) formatting
|
|
1084
1089
|
|
|
1085
1090
|
### 4.2.1 (2023-07-17)
|
|
1086
1091
|
|
|
1087
|
-
- (
|
|
1088
|
-
- (
|
|
1092
|
+
- (@GermanBluefox) Updated packages
|
|
1093
|
+
- (@GermanBluefox) Added translations
|
|
1089
1094
|
|
|
1090
1095
|
### 4.2.0 (2023-07-07)
|
|
1091
1096
|
|
|
1092
|
-
- (
|
|
1093
|
-
- (
|
|
1097
|
+
- (@GermanBluefox) Updated packages
|
|
1098
|
+
- (@GermanBluefox) Added new method `getObjectsById` to the socket communication
|
|
1094
1099
|
|
|
1095
1100
|
### 4.1.2 (2023-06-20)
|
|
1096
1101
|
|
|
1097
|
-
- (
|
|
1102
|
+
- (@GermanBluefox) Allowed setting theme name directly by theme toggle
|
|
1098
1103
|
|
|
1099
1104
|
### 4.1.0 (2023-05-10)
|
|
1100
1105
|
|
|
1101
|
-
- (
|
|
1106
|
+
- (@GermanBluefox) `craco-module-federation.js` was added. For node 16
|
|
1102
1107
|
|
|
1103
1108
|
### 4.0.27 (2023-05-09)
|
|
1104
1109
|
|
|
1105
|
-
- (
|
|
1110
|
+
- (@GermanBluefox) Allowed showing only specific root in SelectIDDialog
|
|
1106
1111
|
|
|
1107
1112
|
### 4.0.26 (2023-05-08)
|
|
1108
1113
|
|
|
1109
|
-
- (
|
|
1114
|
+
- (@GermanBluefox) Added IDs to the buttons in the dialog for GUI tests
|
|
1110
1115
|
|
|
1111
1116
|
### 4.0.25 (2023-04-23)
|
|
1112
1117
|
|
|
1113
|
-
- (
|
|
1118
|
+
- (@GermanBluefox) Extended `TextWithIcon` with defined color and icon
|
|
1114
1119
|
|
|
1115
1120
|
### 4.0.24 (2023-04-03)
|
|
1116
1121
|
|
|
1117
|
-
- (
|
|
1122
|
+
- (@GermanBluefox) Updated the file selector in tile mode
|
|
1118
1123
|
|
|
1119
1124
|
### 4.0.23 (2023-03-27)
|
|
1120
1125
|
|
|
1121
|
-
- (
|
|
1126
|
+
- (@GermanBluefox) Added translations
|
|
1122
1127
|
|
|
1123
1128
|
### 4.0.22 (2023-03-22)
|
|
1124
1129
|
|
|
1125
|
-
- (
|
|
1130
|
+
- (@GermanBluefox) Re-Activate legacy connection
|
|
1126
1131
|
|
|
1127
1132
|
### 4.0.21 (2023-03-22)
|
|
1128
1133
|
|
|
1129
|
-
- (
|
|
1134
|
+
- (@GermanBluefox) Added translations
|
|
1130
1135
|
|
|
1131
1136
|
### 4.0.20 (2023-03-21)
|
|
1132
1137
|
|
|
1133
|
-
- (
|
|
1138
|
+
- (@GermanBluefox) Color picker was improved
|
|
1134
1139
|
|
|
1135
1140
|
### 4.0.19 (2023-03-20)
|
|
1136
1141
|
|
|
1137
|
-
- (
|
|
1138
|
-
- (
|
|
1142
|
+
- (@GermanBluefox) Packages were updated
|
|
1143
|
+
- (@GermanBluefox) Added new translations
|
|
1139
1144
|
|
|
1140
1145
|
### 4.0.18 (2023-03-16)
|
|
1141
1146
|
|
|
1142
|
-
- (
|
|
1147
|
+
- (@GermanBluefox) Packages were updated
|
|
1143
1148
|
|
|
1144
1149
|
### 4.0.17 (2023-03-15)
|
|
1145
1150
|
|
|
1146
|
-
- (
|
|
1147
|
-
- (
|
|
1151
|
+
- (@GermanBluefox) Added translations
|
|
1152
|
+
- (@GermanBluefox) Added port controller to JSON config
|
|
1148
1153
|
|
|
1149
1154
|
### 4.0.15 (2023-03-12)
|
|
1150
1155
|
|
|
1151
|
-
- (
|
|
1156
|
+
- (@GermanBluefox) Updated the object browser and file browser
|
|
1152
1157
|
|
|
1153
1158
|
### 4.0.14 (2023-03-03)
|
|
1154
1159
|
|
|
1155
|
-
- (
|
|
1160
|
+
- (@GermanBluefox) added handler of alert messages
|
|
1156
1161
|
|
|
1157
1162
|
### 4.0.13 (2023-02-15)
|
|
1158
1163
|
|
|
1159
|
-
- (
|
|
1164
|
+
- (@GermanBluefox) Corrected the theme button
|
|
1160
1165
|
|
|
1161
1166
|
### 4.0.12 (2023-02-15)
|
|
1162
1167
|
|
|
1163
|
-
- (
|
|
1168
|
+
- (@GermanBluefox) made the fix for `echarts`
|
|
1164
1169
|
|
|
1165
1170
|
### 4.0.11 (2023-02-14)
|
|
1166
1171
|
|
|
1167
|
-
- (
|
|
1168
|
-
- (
|
|
1172
|
+
- (@GermanBluefox) Updated packages
|
|
1173
|
+
- (@GermanBluefox) The `chartReady` event was omitted
|
|
1169
1174
|
|
|
1170
1175
|
### 4.0.10 (2023-02-10)
|
|
1171
1176
|
|
|
1172
|
-
- (
|
|
1173
|
-
- (
|
|
1177
|
+
- (@GermanBluefox) Updated packages
|
|
1178
|
+
- (@GermanBluefox) made the fix for `material`
|
|
1174
1179
|
|
|
1175
1180
|
### 4.0.9 (2023-02-02)
|
|
1176
1181
|
|
|
1177
|
-
- (
|
|
1182
|
+
- (@GermanBluefox) Updated packages
|
|
1178
1183
|
|
|
1179
1184
|
### 4.0.8 (2022-12-19)
|
|
1180
1185
|
|
|
1181
|
-
- (
|
|
1186
|
+
- (@GermanBluefox) Extended socket with `log` command
|
|
1182
1187
|
|
|
1183
1188
|
### 4.0.6 (2022-12-19)
|
|
1184
1189
|
|
|
1185
|
-
- (
|
|
1190
|
+
- (@GermanBluefox) Corrected URL for the connection
|
|
1186
1191
|
|
|
1187
1192
|
### 4.0.5 (2022-12-14)
|
|
1188
1193
|
|
|
1189
|
-
- (
|
|
1194
|
+
- (@GermanBluefox) Added support of custom palette for color picker
|
|
1190
1195
|
|
|
1191
1196
|
### 4.0.2 (2022-12-01)
|
|
1192
1197
|
|
|
1193
|
-
- (
|
|
1198
|
+
- (@GermanBluefox) use `@iobroker/socket-client` instead of `Connection.tsx`
|
|
1194
1199
|
|
|
1195
1200
|
### 3.5.3 (2022-11-30)
|
|
1196
1201
|
|
|
1197
|
-
- (
|
|
1202
|
+
- (@GermanBluefox) Improved `renderTextWithA` function to support `<b>` and `<i>` tags
|
|
1198
1203
|
|
|
1199
1204
|
### 3.5.2 (2022-11-30)
|
|
1200
1205
|
|
|
1201
|
-
- (
|
|
1206
|
+
- (@GermanBluefox) updated json config component
|
|
1202
1207
|
|
|
1203
1208
|
### 3.4.1 (2022-11-29)
|
|
1204
1209
|
|
|
1205
|
-
- (
|
|
1210
|
+
- (@GermanBluefox) Added button text for message dialog
|
|
1206
1211
|
|
|
1207
1212
|
### 3.4.0 (2022-11-29)
|
|
1208
1213
|
|
|
1209
|
-
- (
|
|
1214
|
+
- (@GermanBluefox) Added file selector
|
|
1210
1215
|
|
|
1211
1216
|
### 3.3.0 (2022-11-26)
|
|
1212
1217
|
|
|
1213
|
-
- (
|
|
1218
|
+
- (@GermanBluefox) Added subscribe on files
|
|
1214
1219
|
|
|
1215
1220
|
### 3.2.7 (2022-11-13)
|
|
1216
1221
|
|
|
1217
|
-
- (
|
|
1222
|
+
- (@GermanBluefox) Added `fullWidth` property to `Dialog`
|
|
1218
1223
|
|
|
1219
1224
|
### 3.2.6 (2022-11-08)
|
|
1220
1225
|
|
|
@@ -1222,195 +1227,195 @@ You can find the migration instructions:
|
|
|
1222
1227
|
|
|
1223
1228
|
### 3.2.5 (2022-11-08)
|
|
1224
1229
|
|
|
1225
|
-
- (
|
|
1230
|
+
- (@GermanBluefox) Added the role filter for the object browser
|
|
1226
1231
|
|
|
1227
1232
|
### 3.2.4 (2022-11-03)
|
|
1228
1233
|
|
|
1229
|
-
- (
|
|
1234
|
+
- (@GermanBluefox) Added support for alfa channel for `invertColor`
|
|
1230
1235
|
|
|
1231
1236
|
### 3.2.3 (2022-10-26)
|
|
1232
1237
|
|
|
1233
|
-
- (
|
|
1238
|
+
- (@GermanBluefox) Corrected expert mode for object browser
|
|
1234
1239
|
|
|
1235
1240
|
### 3.2.2 (2022-10-25)
|
|
1236
1241
|
|
|
1237
|
-
- (
|
|
1242
|
+
- (@GermanBluefox) Added support for prefixes for translations
|
|
1238
1243
|
|
|
1239
1244
|
### 3.2.1 (2022-10-24)
|
|
1240
1245
|
|
|
1241
|
-
- (
|
|
1246
|
+
- (@GermanBluefox) Corrected color inversion
|
|
1242
1247
|
|
|
1243
1248
|
### 3.2.0 (2022-10-19)
|
|
1244
1249
|
|
|
1245
|
-
- (
|
|
1250
|
+
- (@GermanBluefox) Added ukrainian translation
|
|
1246
1251
|
|
|
1247
1252
|
### 3.1.35 (2022-10-17)
|
|
1248
1253
|
|
|
1249
|
-
- (
|
|
1254
|
+
- (@GermanBluefox) small changes for material
|
|
1250
1255
|
|
|
1251
1256
|
### 3.1.34 (2022-08-24)
|
|
1252
1257
|
|
|
1253
|
-
- (
|
|
1258
|
+
- (@GermanBluefox) Implemented fallback to english by translations
|
|
1254
1259
|
|
|
1255
1260
|
### 3.1.33 (2022-08-24)
|
|
1256
1261
|
|
|
1257
|
-
- (
|
|
1262
|
+
- (@GermanBluefox) Added support for onchange flag
|
|
1258
1263
|
|
|
1259
1264
|
### 3.1.30 (2022-08-23)
|
|
1260
1265
|
|
|
1261
|
-
- (
|
|
1262
|
-
- (
|
|
1266
|
+
- (@GermanBluefox) Added method `getCompactSystemRepositories`
|
|
1267
|
+
- (@GermanBluefox) corrected error in `ObjectBrowser`
|
|
1263
1268
|
|
|
1264
1269
|
### 3.1.27 (2022-08-01)
|
|
1265
1270
|
|
|
1266
|
-
- (
|
|
1271
|
+
- (@GermanBluefox) Disable file editing in FileViewer
|
|
1267
1272
|
|
|
1268
1273
|
### 3.1.26 (2022-08-01)
|
|
1269
1274
|
|
|
1270
|
-
- (
|
|
1271
|
-
- (
|
|
1275
|
+
- (@GermanBluefox) Added translations
|
|
1276
|
+
- (@GermanBluefox) JSON schema was extended with missing definitions
|
|
1272
1277
|
|
|
1273
1278
|
### 3.1.24 (2022-07-28)
|
|
1274
1279
|
|
|
1275
|
-
- (
|
|
1280
|
+
- (@GermanBluefox) Updated file browser and object browser
|
|
1276
1281
|
|
|
1277
1282
|
### 3.1.23 (2022-07-25)
|
|
1278
1283
|
|
|
1279
|
-
- (
|
|
1284
|
+
- (@GermanBluefox) Extend custom filter for object selector
|
|
1280
1285
|
|
|
1281
1286
|
### 3.1.22 (2022-07-22)
|
|
1282
1287
|
|
|
1283
|
-
- (
|
|
1288
|
+
- (@GermanBluefox) Added i18n tools for development
|
|
1284
1289
|
|
|
1285
1290
|
### 3.1.20 (2022-07-14)
|
|
1286
1291
|
|
|
1287
|
-
- (
|
|
1292
|
+
- (@GermanBluefox) Allowed to show select dialog with the expert mode enabled
|
|
1288
1293
|
|
|
1289
1294
|
### 3.1.19 (2022-07-08)
|
|
1290
1295
|
|
|
1291
|
-
- (
|
|
1296
|
+
- (@GermanBluefox) Allowed extending translations for all languages together
|
|
1292
1297
|
|
|
1293
1298
|
### 3.1.18 (2022-07-06)
|
|
1294
1299
|
|
|
1295
|
-
- (
|
|
1300
|
+
- (@GermanBluefox) Added translation
|
|
1296
1301
|
|
|
1297
1302
|
### 3.1.17 (2022-07-05)
|
|
1298
1303
|
|
|
1299
|
-
- (
|
|
1304
|
+
- (@GermanBluefox) Deactivate JSON editor for JSONConfig because of space
|
|
1300
1305
|
|
|
1301
1306
|
### 3.1.16 (2022-06-27)
|
|
1302
1307
|
|
|
1303
|
-
- (
|
|
1308
|
+
- (@GermanBluefox) Update object browser
|
|
1304
1309
|
|
|
1305
1310
|
### 3.1.15 (2022-06-27)
|
|
1306
1311
|
|
|
1307
|
-
- (
|
|
1312
|
+
- (@GermanBluefox) Allowed using of spaces in name
|
|
1308
1313
|
|
|
1309
1314
|
### 3.1.14 (2022-06-23)
|
|
1310
1315
|
|
|
1311
|
-
- (
|
|
1316
|
+
- (@GermanBluefox) Added translations
|
|
1312
1317
|
|
|
1313
1318
|
### 3.1.11 (2022-06-22)
|
|
1314
1319
|
|
|
1315
|
-
- (
|
|
1320
|
+
- (@GermanBluefox) Added preparations for iobroker cloud
|
|
1316
1321
|
|
|
1317
1322
|
### 3.1.10 (2022-06-22)
|
|
1318
1323
|
|
|
1319
|
-
- (
|
|
1324
|
+
- (@GermanBluefox) Added translations
|
|
1320
1325
|
|
|
1321
1326
|
### 3.1.9 (2022-06-20)
|
|
1322
1327
|
|
|
1323
|
-
- (
|
|
1328
|
+
- (@GermanBluefox) Allowed working behind reverse proxy
|
|
1324
1329
|
|
|
1325
1330
|
### 3.1.7 (2022-06-19)
|
|
1326
1331
|
|
|
1327
|
-
- (
|
|
1332
|
+
- (@GermanBluefox) Added file select dialog
|
|
1328
1333
|
|
|
1329
1334
|
### 3.1.3 (2022-06-13)
|
|
1330
1335
|
|
|
1331
|
-
- (
|
|
1336
|
+
- (@GermanBluefox) Added table with resized headers
|
|
1332
1337
|
|
|
1333
1338
|
### 3.1.2 (2022-06-09)
|
|
1334
1339
|
|
|
1335
|
-
- (
|
|
1340
|
+
- (@GermanBluefox) Added new document icon (read only)
|
|
1336
1341
|
|
|
1337
1342
|
### 3.1.1 (2022-06-09)
|
|
1338
1343
|
|
|
1339
|
-
- (
|
|
1344
|
+
- (@GermanBluefox) Allowed working behind reverse proxy
|
|
1340
1345
|
|
|
1341
1346
|
### 3.1.0 (2022-06-07)
|
|
1342
1347
|
|
|
1343
|
-
- (
|
|
1348
|
+
- (@GermanBluefox) Some german texts were corrected
|
|
1344
1349
|
|
|
1345
1350
|
### 3.0.17 (2022-06-03)
|
|
1346
1351
|
|
|
1347
|
-
- (
|
|
1352
|
+
- (@GermanBluefox) Allowed calling getAdapterInstances not for admin too
|
|
1348
1353
|
|
|
1349
1354
|
### 3.0.15 (2022-06-01)
|
|
1350
1355
|
|
|
1351
|
-
- (
|
|
1356
|
+
- (@GermanBluefox) Updated JsonConfigComponent: password, table
|
|
1352
1357
|
|
|
1353
1358
|
### 3.0.14 (2022-05-25)
|
|
1354
1359
|
|
|
1355
|
-
- (
|
|
1360
|
+
- (@GermanBluefox) Added ConfigGeneric to import
|
|
1356
1361
|
|
|
1357
1362
|
### 3.0.7 (2022-05-25)
|
|
1358
1363
|
|
|
1359
|
-
- (
|
|
1364
|
+
- (@GermanBluefox) Made the module definitions
|
|
1360
1365
|
|
|
1361
1366
|
### 3.0.6 (2022-05-25)
|
|
1362
1367
|
|
|
1363
|
-
- (
|
|
1368
|
+
- (@GermanBluefox) Added JsonConfigComponent
|
|
1364
1369
|
|
|
1365
1370
|
### 2.1.11 (2022-05-24)
|
|
1366
1371
|
|
|
1367
|
-
- (
|
|
1372
|
+
- (@GermanBluefox) Update file browser. It supports now the file changed events.
|
|
1368
1373
|
|
|
1369
1374
|
### 2.1.10 (2022-05-24)
|
|
1370
1375
|
|
|
1371
|
-
- (
|
|
1376
|
+
- (@GermanBluefox) Corrected object browser
|
|
1372
1377
|
|
|
1373
1378
|
### 2.1.9 (2022-05-16)
|
|
1374
1379
|
|
|
1375
|
-
- (
|
|
1380
|
+
- (@GermanBluefox) Corrected expert mode in object browser
|
|
1376
1381
|
|
|
1377
1382
|
### 2.1.7 (2022-05-09)
|
|
1378
1383
|
|
|
1379
|
-
- (
|
|
1380
|
-
- (
|
|
1384
|
+
- (@GermanBluefox) Changes were synchronized with adapter-react-v5
|
|
1385
|
+
- (@GermanBluefox) Added `I18n.disableWarning` method
|
|
1381
1386
|
|
|
1382
1387
|
### 2.1.6 (2022-03-28)
|
|
1383
1388
|
|
|
1384
|
-
- (
|
|
1385
|
-
- (
|
|
1389
|
+
- (@GermanBluefox) Added `log` method to connection
|
|
1390
|
+
- (@GermanBluefox) Corrected translations
|
|
1386
1391
|
|
|
1387
1392
|
### 2.1.1 (2022-03-27)
|
|
1388
1393
|
|
|
1389
|
-
- (
|
|
1394
|
+
- (@GermanBluefox) Corrected error in TreeTable
|
|
1390
1395
|
|
|
1391
1396
|
### 2.1.0 (2022-03-26)
|
|
1392
1397
|
|
|
1393
|
-
- (
|
|
1398
|
+
- (@GermanBluefox) BREAKING_CHANGE: Corrected error with readFile(base64=false)
|
|
1394
1399
|
|
|
1395
1400
|
### 2.0.0 (2022-03-26)
|
|
1396
1401
|
|
|
1397
|
-
- (
|
|
1402
|
+
- (@GermanBluefox) Initial version
|
|
1398
1403
|
|
|
1399
1404
|
### 0.1.0 (2022-03-23)
|
|
1400
1405
|
|
|
1401
|
-
- (
|
|
1406
|
+
- (@GermanBluefox) Fixed theme errors
|
|
1402
1407
|
|
|
1403
1408
|
### 0.0.4 (2022-03-22)
|
|
1404
1409
|
|
|
1405
|
-
- (
|
|
1410
|
+
- (@GermanBluefox) Fixed eslint warnings
|
|
1406
1411
|
|
|
1407
1412
|
### 0.0.3 (2022-03-19)
|
|
1408
1413
|
|
|
1409
|
-
- (
|
|
1414
|
+
- (@GermanBluefox) beta version
|
|
1410
1415
|
|
|
1411
1416
|
### 0.0.2 (2022-02-24)
|
|
1412
1417
|
|
|
1413
|
-
- (
|
|
1418
|
+
- (@GermanBluefox) try to publish a first version
|
|
1414
1419
|
|
|
1415
1420
|
### 0.0.1 (2022-02-24)
|
|
1416
1421
|
|
|
@@ -1420,7 +1425,7 @@ You can find the migration instructions:
|
|
|
1420
1425
|
|
|
1421
1426
|
The MIT License (MIT)
|
|
1422
1427
|
|
|
1423
|
-
Copyright (c) 2019-2024
|
|
1428
|
+
Copyright (c) 2019-2024 @GermanBluefox <dogafox@gmail.com>
|
|
1424
1429
|
|
|
1425
1430
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1426
1431
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Denis Haev (bluefox)",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@emotion/react": "^11.13.3",
|
|
31
31
|
"@emotion/styled": "^11.13.0",
|
|
32
|
-
"@iobroker/socket-client": "^3.0
|
|
32
|
+
"@iobroker/socket-client": "^3.1.0",
|
|
33
33
|
"@iobroker/types": "^6.0.11",
|
|
34
34
|
"@iobroker/js-controller-common": "^6.0.11",
|
|
35
35
|
"@iobroker/js-controller-common-db": "^6.0.11",
|
|
36
|
-
"@mui/icons-material": "^6.1.
|
|
37
|
-
"@mui/material": "^6.1.
|
|
38
|
-
"@mui/x-date-pickers": "^7.
|
|
39
|
-
"@sentry/browser": "^8.
|
|
36
|
+
"@mui/icons-material": "^6.1.1",
|
|
37
|
+
"@mui/material": "^6.1.1",
|
|
38
|
+
"@mui/x-date-pickers": "^7.18.0",
|
|
39
|
+
"@sentry/browser": "^8.32.0",
|
|
40
40
|
"cronstrue": "^2.50.0",
|
|
41
41
|
"react-color": "^2.19.3",
|
|
42
42
|
"react-colorful": "^5.6.1",
|
|
@@ -478,8 +478,20 @@ class UploadImage extends Component<UploadImageProps, UploadImageState> {
|
|
|
478
478
|
render(): JSX.Element {
|
|
479
479
|
const { disabled, icon, removeIconFunc, error, crop, onChange } = this.props;
|
|
480
480
|
const maxSize = this.props.maxSize || 10 * 1024;
|
|
481
|
-
|
|
481
|
+
let accept = this.props.accept || { 'image/*': [] };
|
|
482
482
|
const { uploadFile, anchorEl, cropHandler } = this.state;
|
|
483
|
+
|
|
484
|
+
// covert '"image/png"' to { 'image/*': [] }
|
|
485
|
+
if (typeof accept === 'string') {
|
|
486
|
+
accept = { [accept]: [] };
|
|
487
|
+
} else if (Array.isArray(accept)) {
|
|
488
|
+
const result: Record<string, string[]> = {};
|
|
489
|
+
accept.forEach(item => {
|
|
490
|
+
result[item] = [];
|
|
491
|
+
});
|
|
492
|
+
accept = result;
|
|
493
|
+
}
|
|
494
|
+
|
|
483
495
|
return (
|
|
484
496
|
<Dropzone
|
|
485
497
|
disabled={!!disabled || cropHandler}
|
|
@@ -535,7 +547,7 @@ class UploadImage extends Component<UploadImageProps, UploadImageState> {
|
|
|
535
547
|
<div style={styles.buttonRemoveWrapper}>
|
|
536
548
|
<Tooltip
|
|
537
549
|
title={I18n.t('ra_Clear')}
|
|
538
|
-
|
|
550
|
+
slotProps={{ popper: { sx: { pointerEvents: 'none' } } }}
|
|
539
551
|
>
|
|
540
552
|
<IconButton
|
|
541
553
|
size="large"
|
|
@@ -554,7 +566,7 @@ class UploadImage extends Component<UploadImageProps, UploadImageState> {
|
|
|
554
566
|
<div style={styles.buttonCropWrapper}>
|
|
555
567
|
<Tooltip
|
|
556
568
|
title={I18n.t('ra_Crop')}
|
|
557
|
-
|
|
569
|
+
slotProps={{ popper: { sx: { pointerEvents: 'none' } } }}
|
|
558
570
|
>
|
|
559
571
|
<IconButton
|
|
560
572
|
size="large"
|
package/src/Dialogs/Confirm.tsx
CHANGED
|
@@ -37,7 +37,7 @@ interface DialogConfirmProps {
|
|
|
37
37
|
/** The dialog title; default: Are you sure? (translated) */
|
|
38
38
|
title?: string;
|
|
39
39
|
/** The dialog text */
|
|
40
|
-
text?: string | React.JSX.Element;
|
|
40
|
+
text?: string | React.JSX.Element | React.JSX.Element[];
|
|
41
41
|
/** Close handler. */
|
|
42
42
|
onClose?: (ok: boolean) => void;
|
|
43
43
|
/** if the dialog must be fill sized */
|
package/src/Dialogs/Error.tsx
CHANGED
|
@@ -17,7 +17,7 @@ interface DialogErrorProps {
|
|
|
17
17
|
/* The dialog title; default: Error (translated) */
|
|
18
18
|
title?: string;
|
|
19
19
|
/* The dialog text */
|
|
20
|
-
text: string | React.JSX.Element;
|
|
20
|
+
text: string | React.JSX.Element | React.JSX.Element[];
|
|
21
21
|
/* Close handler. */
|
|
22
22
|
onClose?: () => void;
|
|
23
23
|
/* if the dialog must be fill sized */
|
package/src/Dialogs/Message.tsx
CHANGED
|
@@ -18,7 +18,7 @@ interface DialogMessageProps {
|
|
|
18
18
|
/* The dialog title; default: Message (translated) */
|
|
19
19
|
title?: string;
|
|
20
20
|
/* The dialog text */
|
|
21
|
-
text: string | React.JSX.Element;
|
|
21
|
+
text: string | React.JSX.Element | React.JSX.Element[];
|
|
22
22
|
/* Close handler. */
|
|
23
23
|
onClose?: () => void;
|
|
24
24
|
/* if the dialog must be fill sized */
|
package/src/LegacyConnection.tsx
CHANGED
|
@@ -16,6 +16,7 @@ declare global {
|
|
|
16
16
|
registerSocketOnLoad: (func: () => void) => void;
|
|
17
17
|
vendorPrefix: undefined | string;
|
|
18
18
|
io: any;
|
|
19
|
+
iob: any;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -410,7 +411,7 @@ class Connection {
|
|
|
410
411
|
*/
|
|
411
412
|
startSocket(): void {
|
|
412
413
|
// if socket io is not yet loaded
|
|
413
|
-
if (typeof window.io === 'undefined') {
|
|
414
|
+
if (typeof window.io === 'undefined' && typeof window.iob === 'undefined') {
|
|
414
415
|
// if in index.html the onLoad function not defined
|
|
415
416
|
if (typeof window.registerSocketOnLoad !== 'function') {
|
|
416
417
|
// poll if loaded
|
|
@@ -475,7 +476,7 @@ class Connection {
|
|
|
475
476
|
|
|
476
477
|
const url = port ? `${protocol}://${host}:${port}${path}` : `${protocol}://${host}${path}`;
|
|
477
478
|
|
|
478
|
-
this._socket = window.io.connect(url, {
|
|
479
|
+
this._socket = (window.io || window.iob).connect(url, {
|
|
479
480
|
path: path.endsWith('/') ? `${path}socket.io` : `${path}/socket.io`,
|
|
480
481
|
query: 'ws=true',
|
|
481
482
|
name: this.props.name,
|