@iobroker/adapter-react-v5 4.7.15 → 4.8.0

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.
Files changed (127) hide show
  1. package/Components/JsonConfigComponent/ConfigAccordion.d.ts +1 -1
  2. package/Components/JsonConfigComponent/ConfigAccordion.js +4 -6
  3. package/Components/JsonConfigComponent/ConfigAccordion.js.map +1 -1
  4. package/Components/JsonConfigComponent/ConfigAlive.d.ts +2 -2
  5. package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +36 -13
  6. package/Components/JsonConfigComponent/ConfigAutocomplete.js +66 -164
  7. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +16 -13
  8. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +119 -251
  9. package/Components/JsonConfigComponent/ConfigCRON.d.ts +2 -2
  10. package/Components/JsonConfigComponent/ConfigCertCollection.d.ts +2 -2
  11. package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +2 -2
  12. package/Components/JsonConfigComponent/ConfigCertificates.d.ts +2 -2
  13. package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +14 -13
  14. package/Components/JsonConfigComponent/ConfigCheckbox.js +37 -79
  15. package/Components/JsonConfigComponent/ConfigChip.d.ts +2 -2
  16. package/Components/JsonConfigComponent/ConfigColor.d.ts +2 -2
  17. package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +2 -2
  18. package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +2 -2
  19. package/Components/JsonConfigComponent/ConfigDeviceManager.d.ts +6 -0
  20. package/Components/JsonConfigComponent/ConfigDeviceManager.js +18 -0
  21. package/Components/JsonConfigComponent/ConfigFile.d.ts +2 -2
  22. package/Components/JsonConfigComponent/ConfigFile.js +2 -2
  23. package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
  24. package/Components/JsonConfigComponent/ConfigFileSelector.js +8 -5
  25. package/Components/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
  26. package/Components/JsonConfigComponent/ConfigFunc.d.ts +2 -2
  27. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +12 -4
  28. package/Components/JsonConfigComponent/ConfigGeneric.js +11 -2
  29. package/Components/JsonConfigComponent/ConfigIP.d.ts +2 -2
  30. package/Components/JsonConfigComponent/ConfigImageSendTo.d.ts +2 -2
  31. package/Components/JsonConfigComponent/ConfigImageUpload.js +38 -44
  32. package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
  33. package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +2 -2
  34. package/Components/JsonConfigComponent/ConfigInterface.d.ts +2 -2
  35. package/Components/JsonConfigComponent/ConfigInterface.js +1 -1
  36. package/Components/JsonConfigComponent/ConfigInterface.js.map +1 -1
  37. package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +2 -2
  38. package/Components/JsonConfigComponent/ConfigJsonEditor.js +0 -1
  39. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  40. package/Components/JsonConfigComponent/ConfigLanguage.d.ts +6 -13
  41. package/Components/JsonConfigComponent/ConfigLanguage.js +105 -154
  42. package/Components/JsonConfigComponent/ConfigLicense.d.ts +1 -1
  43. package/Components/JsonConfigComponent/ConfigNumber.d.ts +1 -1
  44. package/Components/JsonConfigComponent/ConfigObjectId.d.ts +2 -2
  45. package/Components/JsonConfigComponent/ConfigPanel.js +8 -1
  46. package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
  47. package/Components/JsonConfigComponent/ConfigPassword.d.ts +2 -2
  48. package/Components/JsonConfigComponent/ConfigPattern.d.ts +2 -2
  49. package/Components/JsonConfigComponent/ConfigRoom.d.ts +2 -2
  50. package/Components/JsonConfigComponent/ConfigSelect.d.ts +2 -2
  51. package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +2 -2
  52. package/Components/JsonConfigComponent/ConfigSendto.d.ts +23 -17
  53. package/Components/JsonConfigComponent/ConfigSendto.js +259 -399
  54. package/Components/JsonConfigComponent/ConfigSetState.d.ts +2 -2
  55. package/Components/JsonConfigComponent/ConfigSlider.d.ts +2 -2
  56. package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +2 -2
  57. package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +2 -2
  58. package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +2 -2
  59. package/Components/JsonConfigComponent/ConfigStaticText.d.ts +2 -2
  60. package/Components/JsonConfigComponent/ConfigText.d.ts +2 -2
  61. package/Components/JsonConfigComponent/ConfigText.js +18 -0
  62. package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
  63. package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +2 -2
  64. package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +2 -2
  65. package/Components/JsonConfigComponent/ConfigTopic.d.ts +2 -2
  66. package/Components/JsonConfigComponent/ConfigUUID.d.ts +2 -2
  67. package/Components/JsonConfigComponent/ConfigUser.d.ts +2 -2
  68. package/Components/JsonConfigComponent/DeviceManager/Communication.d.ts +63 -0
  69. package/Components/JsonConfigComponent/DeviceManager/Communication.js +268 -0
  70. package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.d.ts +11 -0
  71. package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.js +15 -0
  72. package/Components/JsonConfigComponent/DeviceManager/DeviceCard.d.ts +53 -0
  73. package/Components/JsonConfigComponent/DeviceManager/DeviceCard.js +340 -0
  74. package/Components/JsonConfigComponent/DeviceManager/DeviceControl.d.ts +45 -0
  75. package/Components/JsonConfigComponent/DeviceManager/DeviceControl.js +146 -0
  76. package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.d.ts +12 -0
  77. package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.js +69 -0
  78. package/Components/JsonConfigComponent/DeviceManager/DeviceList.d.ts +51 -0
  79. package/Components/JsonConfigComponent/DeviceManager/DeviceList.js +216 -0
  80. package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.d.ts +13 -0
  81. package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.js +111 -0
  82. package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.d.ts +7 -0
  83. package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.js +16 -0
  84. package/Components/JsonConfigComponent/DeviceManager/JsonConfig.d.ts +11 -0
  85. package/Components/JsonConfigComponent/DeviceManager/JsonConfig.js +94 -0
  86. package/Components/JsonConfigComponent/DeviceManager/TooltipButton.d.ts +10 -0
  87. package/Components/JsonConfigComponent/DeviceManager/TooltipButton.js +22 -0
  88. package/Components/JsonConfigComponent/DeviceManager/Utils.d.ts +12 -0
  89. package/Components/JsonConfigComponent/DeviceManager/Utils.js +158 -0
  90. package/Components/JsonConfigComponent/DeviceManager/i18n/de.json +21 -0
  91. package/Components/JsonConfigComponent/DeviceManager/i18n/en.json +21 -0
  92. package/Components/JsonConfigComponent/DeviceManager/i18n/es.json +21 -0
  93. package/Components/JsonConfigComponent/DeviceManager/i18n/fr.json +21 -0
  94. package/Components/JsonConfigComponent/DeviceManager/i18n/i18n.d.ts +26 -0
  95. package/Components/JsonConfigComponent/DeviceManager/i18n/it.json +21 -0
  96. package/Components/JsonConfigComponent/DeviceManager/i18n/nl.json +21 -0
  97. package/Components/JsonConfigComponent/DeviceManager/i18n/pl.json +21 -0
  98. package/Components/JsonConfigComponent/DeviceManager/i18n/pt.json +21 -0
  99. package/Components/JsonConfigComponent/DeviceManager/i18n/ru.json +21 -0
  100. package/Components/JsonConfigComponent/DeviceManager/i18n/uk.json +21 -0
  101. package/Components/JsonConfigComponent/DeviceManager/i18n/zh-cn.json +21 -0
  102. package/Components/JsonConfigComponent/DeviceManager/index.d.ts +2 -0
  103. package/Components/JsonConfigComponent/DeviceManager/index.js +10 -0
  104. package/Components/JsonConfigComponent/DeviceManager/index.js.map +1 -0
  105. package/Components/JsonConfigComponent/index.js +2 -7
  106. package/Components/JsonConfigComponent/index.js.map +1 -1
  107. package/Components/TextWithIcon.d.ts +1 -1
  108. package/Dialogs/ComplexCron.js +15 -17
  109. package/Dialogs/ComplexCron.js.map +1 -1
  110. package/Dialogs/Confirm.d.ts +20 -44
  111. package/Dialogs/Confirm.js +102 -158
  112. package/Dialogs/Error.d.ts +20 -39
  113. package/Dialogs/Error.js +50 -76
  114. package/Dialogs/Message.d.ts +22 -32
  115. package/Dialogs/Message.js +51 -83
  116. package/LegacyConnection.d.ts +3 -3
  117. package/README.md +7 -4
  118. package/i18n.d.ts +6 -6
  119. package/package.json +6 -5
  120. package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +0 -1
  121. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +0 -1
  122. package/Components/JsonConfigComponent/ConfigCheckbox.js.map +0 -1
  123. package/Components/JsonConfigComponent/ConfigLanguage.js.map +0 -1
  124. package/Components/JsonConfigComponent/ConfigSendto.js.map +0 -1
  125. package/Dialogs/Confirm.js.map +0 -1
  126. package/Dialogs/Error.js.map +0 -1
  127. package/Dialogs/Message.js.map +0 -1
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getTranslation = exports.renderIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const icons_material_1 = require("@mui/icons-material");
9
+ const Icon_1 = __importDefault(require("../../Icon"));
10
+ const i18n_1 = __importDefault(require("../../../i18n"));
11
+ function renderIcon(action, colors, value) {
12
+ var _a, _b, _c, _d;
13
+ if (!action) {
14
+ return null;
15
+ }
16
+ let color = (value && action.colorOn) || action.color || (action.state ? 'primary' : 'inherit');
17
+ if (colors) {
18
+ if (color === 'primary') {
19
+ color = colors.primary;
20
+ }
21
+ else if (color === 'secondary') {
22
+ color = colors.secondary;
23
+ }
24
+ }
25
+ if (((_a = action.icon) === null || _a === void 0 ? void 0 : _a.startsWith('fa-')) || ((_b = action.icon) === null || _b === void 0 ? void 0 : _b.startsWith('fas'))) {
26
+ const iconStyle = action.icon.split(' ').map(s => s.trim()).filter(s => s !== 'fa-solid');
27
+ if (iconStyle.includes('fa-trash-can') || iconStyle.includes('fa-trash')) {
28
+ return react_1.default.createElement(icons_material_1.Delete, { style: { color } });
29
+ }
30
+ if (iconStyle.includes('fa-pen')) {
31
+ return react_1.default.createElement(icons_material_1.Edit, { style: { color } });
32
+ }
33
+ if (iconStyle.includes('fa-redo-alt')) {
34
+ return react_1.default.createElement(icons_material_1.Refresh, { style: { color } });
35
+ }
36
+ if (iconStyle.includes('fa-plus')) {
37
+ return react_1.default.createElement(icons_material_1.Add, { style: { color } });
38
+ }
39
+ if (iconStyle.includes('fa-wifi')) {
40
+ return react_1.default.createElement(icons_material_1.Wifi, { style: { color } });
41
+ }
42
+ if (iconStyle.includes('fa-wifi-slash')) {
43
+ return react_1.default.createElement(icons_material_1.WifiOff, { style: { color } });
44
+ }
45
+ if (iconStyle.includes('fa-bluetooth')) {
46
+ return react_1.default.createElement(icons_material_1.Bluetooth, { style: { color } });
47
+ }
48
+ if (iconStyle.includes('fa-bluetooth-slash')) {
49
+ return react_1.default.createElement(icons_material_1.BluetoothDisabled, { style: { color } });
50
+ }
51
+ if (iconStyle.includes('fa-eye')) {
52
+ return react_1.default.createElement(icons_material_1.Visibility, { style: { color } });
53
+ }
54
+ if (iconStyle.includes('fa-search')) {
55
+ return react_1.default.createElement(icons_material_1.Search, { style: { color } });
56
+ }
57
+ if (iconStyle.includes('fa-unlink')) {
58
+ return react_1.default.createElement(icons_material_1.LinkOff, { style: { color } });
59
+ }
60
+ if (iconStyle.includes('fa-link')) {
61
+ return react_1.default.createElement(icons_material_1.Link, { style: { color } });
62
+ }
63
+ if (iconStyle.includes('fa-search-location')) {
64
+ return react_1.default.createElement(icons_material_1.NotListedLocation, { style: { color } });
65
+ }
66
+ if (iconStyle.includes('fa-play')) {
67
+ return react_1.default.createElement(icons_material_1.PlayArrow, { style: { color } });
68
+ }
69
+ if (iconStyle.includes('fa-stop')) {
70
+ return react_1.default.createElement(icons_material_1.Stop, { style: { color } });
71
+ }
72
+ if (iconStyle.includes('fa-pause')) {
73
+ return react_1.default.createElement(icons_material_1.Pause, { style: { color } });
74
+ }
75
+ if (iconStyle.includes('forward') || iconStyle.includes('fa-forward')) {
76
+ return react_1.default.createElement(icons_material_1.FastForward, { style: { color } });
77
+ }
78
+ if (iconStyle.includes('rewind') || iconStyle.includes('fa-rewind')) {
79
+ return react_1.default.createElement(icons_material_1.FastRewind, { style: { color } });
80
+ }
81
+ return null;
82
+ }
83
+ if (value && ((_c = action.iconOn) === null || _c === void 0 ? void 0 : _c.startsWith('data:image'))) {
84
+ return react_1.default.createElement(Icon_1.default, { src: action.iconOn, style: { color } });
85
+ }
86
+ if ((_d = action.icon) === null || _d === void 0 ? void 0 : _d.startsWith('data:image')) {
87
+ return react_1.default.createElement(Icon_1.default, { src: action.icon, style: { color } });
88
+ }
89
+ if (action.id === 'edit' || action.id === 'rename') {
90
+ return react_1.default.createElement(icons_material_1.Edit, { style: { color } });
91
+ }
92
+ if (action.id === 'delete') {
93
+ return react_1.default.createElement(icons_material_1.Delete, { style: { color } });
94
+ }
95
+ if (action.id === 'refresh') {
96
+ return react_1.default.createElement(icons_material_1.Refresh, { style: { color } });
97
+ }
98
+ if (action.id === 'newDevice' || action.id === 'new' || action.id === 'add') {
99
+ return react_1.default.createElement(icons_material_1.Add, { style: { color } });
100
+ }
101
+ if (action.id === 'discover' || action.id === 'search') {
102
+ return react_1.default.createElement(icons_material_1.Search, { style: { color } });
103
+ }
104
+ if (action.id === 'unpairDevice') {
105
+ return react_1.default.createElement(icons_material_1.LinkOff, { style: { color } });
106
+ }
107
+ if (action.id === 'pairDevice') {
108
+ return react_1.default.createElement(icons_material_1.Link, { style: { color } });
109
+ }
110
+ if (action.id === 'identify') {
111
+ return react_1.default.createElement(icons_material_1.NotListedLocation, { style: { color } });
112
+ }
113
+ if (action.id === 'play') {
114
+ return react_1.default.createElement(icons_material_1.PlayArrow, { style: { color } });
115
+ }
116
+ if (action.id === 'stop') {
117
+ return react_1.default.createElement(icons_material_1.Stop, { style: { color } });
118
+ }
119
+ if (action.id === 'pause') {
120
+ return react_1.default.createElement(icons_material_1.Pause, { style: { color } });
121
+ }
122
+ if (action.id === 'forward' || action.id === 'next') {
123
+ return react_1.default.createElement(icons_material_1.FastForward, { style: { color } });
124
+ }
125
+ if (action.id === 'rewind' || action.id === 'previous') {
126
+ return react_1.default.createElement(icons_material_1.FastRewind, { style: { color } });
127
+ }
128
+ if (action.id === 'lamp' || action.id === 'light') {
129
+ return react_1.default.createElement(icons_material_1.Lightbulb, { style: { color } });
130
+ }
131
+ if (action.id === 'backlight') {
132
+ return react_1.default.createElement(icons_material_1.Fluorescent, { style: { color } });
133
+ }
134
+ if (action.id === 'dimmer') {
135
+ return react_1.default.createElement(icons_material_1.WbIncandescent, { style: { color } });
136
+ }
137
+ if (action.id === 'socket') {
138
+ return react_1.default.createElement(icons_material_1.Power, { style: { color } });
139
+ }
140
+ return null;
141
+ }
142
+ exports.renderIcon = renderIcon;
143
+ let language;
144
+ /**
145
+ * Get Translation
146
+ * @param {string | object} text - Text to translate
147
+ * @returns {string}
148
+ */
149
+ function getTranslation(text) {
150
+ language = language || i18n_1.default.getLanguage();
151
+ if (typeof text === 'object') {
152
+ const words = text;
153
+ // @ts-ignore
154
+ return words[language] || text.en;
155
+ }
156
+ return i18n_1.default.t(text);
157
+ }
158
+ exports.getTranslation = getTranslation;
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Hersteller",
3
+ "model": "Modell",
4
+ "batteryTooltip": "Batterie",
5
+ "connectedIconTooltip": "Verbunden",
6
+ "disconnectedIconTooltip": "Getrennt",
7
+ "cancelButtonText": "Abbrechen",
8
+ "okButtonText": "OK",
9
+ "yesButtonText": "Ja",
10
+ "noButtonText": "Nein",
11
+ "noInstanceSelectedText": "Bitte Instanz auswählen",
12
+ "filterLabelText": "Nach Name filtern",
13
+ "instanceLabelText": "Instanz",
14
+ "refreshInstanceList": "Instanz Liste aktualisieren",
15
+ "copied": " Kopiert",
16
+ "toClipboard": " in die Zwischenablage kopiert",
17
+ "allDevicesFilteredOut": "Alle Geräte herausgefiltert",
18
+ "closeButtonText": "Schließen",
19
+ "instanceNotAlive": "Instanz ist nicht aktiv",
20
+ "noDevicesFoundText": "Keine Geräte gefunden"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Manufacturer",
3
+ "model": "Model",
4
+ "batteryTooltip": "Battery",
5
+ "connectedIconTooltip": "Connected",
6
+ "disconnectedIconTooltip": "Disconnected",
7
+ "cancelButtonText": "Cancel",
8
+ "closeButtonText": "Close",
9
+ "okButtonText": "OK",
10
+ "yesButtonText": "Yes",
11
+ "noButtonText": "No",
12
+ "noInstanceSelectedText": "Please select instance",
13
+ "filterLabelText": "Filter by name",
14
+ "instanceLabelText": "Instance",
15
+ "refreshInstanceList": "Refresh instance list",
16
+ "noDevicesFoundText": "No devices found",
17
+ "copied": "Copied",
18
+ "toClipboard": "to clipboard",
19
+ "instanceNotAlive": "Instance is not alive",
20
+ "allDevicesFilteredOut": "All devices filtered out"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Fabricante",
3
+ "model": "Modelo",
4
+ "batteryTooltip": "Batería",
5
+ "connectedIconTooltip": "Conectado",
6
+ "allDevicesFilteredOut": "Todos los dispositivos filtrados",
7
+ "cancelButtonText": "Cancelar",
8
+ "closeButtonText": "Cerca",
9
+ "copied": "copiado",
10
+ "disconnectedIconTooltip": "Desconectado",
11
+ "filterLabelText": "Filtrar por nombre",
12
+ "instanceLabelText": "Instancia",
13
+ "instanceNotAlive": "La instancia no está viva.",
14
+ "noButtonText": "No",
15
+ "noDevicesFoundText": "No se encontraron dispositivos",
16
+ "noInstanceSelectedText": "Por favor seleccione instancia",
17
+ "okButtonText": "DE ACUERDO",
18
+ "refreshInstanceList": "Actualizar lista de instancias",
19
+ "toClipboard": "al portapapeles",
20
+ "yesButtonText": "Sí"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Fabricant",
3
+ "model": "Modèle",
4
+ "batteryTooltip": "Batterie",
5
+ "connectedIconTooltip": "Connecté",
6
+ "allDevicesFilteredOut": "Tous les appareils filtrés",
7
+ "cancelButtonText": "Annuler",
8
+ "closeButtonText": "Fermer",
9
+ "copied": "Copié",
10
+ "disconnectedIconTooltip": "Débranché",
11
+ "filterLabelText": "Filtrer par nom",
12
+ "instanceLabelText": "Exemple",
13
+ "instanceNotAlive": "L'instance n'est pas vivante",
14
+ "noButtonText": "Non",
15
+ "noDevicesFoundText": "Aucun périphérique trouvé",
16
+ "noInstanceSelectedText": "Veuillez sélectionner une instance",
17
+ "okButtonText": "D'ACCORD",
18
+ "refreshInstanceList": "Actualiser la liste des instances",
19
+ "toClipboard": "au presse-papiers",
20
+ "yesButtonText": "Oui"
21
+ }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * This file loads the translations keys from `i18n/en.json` file and overrides
3
+ * the declarations for the translate function `I18n.t` available in "@iobroker/adapter-react/i18n".
4
+ * Using these definitions it is ensured that all used translations in the React
5
+ * context are defined at least in the english translations file.
6
+ * This will add no overhead in the generated code since it just reexports the
7
+ * I18n class but with a more typed `t` function.
8
+ */
9
+
10
+ /*
11
+ * DO NOT add any imports or exports in this file or it will stop working!
12
+ */
13
+
14
+ /**
15
+ * Available words in `i18n/en.json`.
16
+ */
17
+ declare type AdminWord = keyof typeof import('./en.json');
18
+
19
+ declare module '@iobroker/adapter-react/i18n' {
20
+ /**
21
+ * Translate the given string to the selected language.
22
+ * @param word The (key) word to look up the string. Has to be defined at least in `i18n/en.json`.
23
+ * @param args Optional arguments which will replace the first (second, third, ...) occurence of %s
24
+ */
25
+ function t(word: AdminWord, ...args: string[]): string;
26
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Produttore",
3
+ "model": "Modello",
4
+ "batteryTooltip": "Batteria",
5
+ "connectedIconTooltip": "Connesso",
6
+ "allDevicesFilteredOut": "Tutti i dispositivi sono stati filtrati",
7
+ "cancelButtonText": "Annulla",
8
+ "closeButtonText": "Vicino",
9
+ "copied": "Copiato",
10
+ "disconnectedIconTooltip": "Disconnesso",
11
+ "filterLabelText": "Filtra per nome",
12
+ "instanceLabelText": "Esempio",
13
+ "instanceNotAlive": "L'istanza non è viva",
14
+ "noButtonText": "NO",
15
+ "noDevicesFoundText": "Nessun dispositivo trovato",
16
+ "noInstanceSelectedText": "Seleziona l'istanza",
17
+ "okButtonText": "OK",
18
+ "refreshInstanceList": "Aggiorna l'elenco delle istanze",
19
+ "toClipboard": "negli appunti",
20
+ "yesButtonText": "SÌ"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Fabrikant",
3
+ "model": "Model",
4
+ "batteryTooltip": "Batterij",
5
+ "connectedIconTooltip": "Verbonden",
6
+ "allDevicesFilteredOut": "Alle apparaten zijn eruit gefilterd",
7
+ "cancelButtonText": "Annuleren",
8
+ "closeButtonText": "Dichtbij",
9
+ "copied": "Gekopieerd",
10
+ "disconnectedIconTooltip": "Losgekoppeld",
11
+ "filterLabelText": "Filter op naam",
12
+ "instanceLabelText": "Voorbeeld",
13
+ "instanceNotAlive": "Instantie leeft niet",
14
+ "noButtonText": "Nee",
15
+ "noDevicesFoundText": "Geen apparaten gevonden",
16
+ "noInstanceSelectedText": "Selecteer een exemplaar",
17
+ "okButtonText": "OK",
18
+ "refreshInstanceList": "Ververs de exemplaarlijst",
19
+ "toClipboard": "naar klembord",
20
+ "yesButtonText": "Ja"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Producent",
3
+ "model": "Model",
4
+ "batteryTooltip": "Bateria",
5
+ "connectedIconTooltip": "Połączono",
6
+ "allDevicesFilteredOut": "Wszystkie urządzenia zostały odfiltrowane",
7
+ "cancelButtonText": "Anulować",
8
+ "closeButtonText": "Zamknąć",
9
+ "copied": "Skopiowano",
10
+ "disconnectedIconTooltip": "Bezładny",
11
+ "filterLabelText": "Filtruj według nazwy",
12
+ "instanceLabelText": "Instancja",
13
+ "instanceNotAlive": "Instancja nie żyje",
14
+ "noButtonText": "NIE",
15
+ "noDevicesFoundText": "Nie znaleziono urządzeń",
16
+ "noInstanceSelectedText": "Wybierz instancję",
17
+ "okButtonText": "OK",
18
+ "refreshInstanceList": "Odśwież listę instancji",
19
+ "toClipboard": "do schowka",
20
+ "yesButtonText": "Tak"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Fabricante",
3
+ "model": "Modelo",
4
+ "batteryTooltip": "Bateria",
5
+ "connectedIconTooltip": "Conectado",
6
+ "allDevicesFilteredOut": "Todos os dispositivos foram filtrados",
7
+ "cancelButtonText": "Cancelar",
8
+ "closeButtonText": "Fechar",
9
+ "copied": "Copiado",
10
+ "disconnectedIconTooltip": "Desconectado",
11
+ "filterLabelText": "Filtrar por nome",
12
+ "instanceLabelText": "Instância",
13
+ "instanceNotAlive": "A instância não está ativa",
14
+ "noButtonText": "Não",
15
+ "noDevicesFoundText": "Nenhum dispositivo encontrado",
16
+ "noInstanceSelectedText": "Selecione a instância",
17
+ "okButtonText": "OK",
18
+ "refreshInstanceList": "Atualizar lista de instâncias",
19
+ "toClipboard": "para a área de transferência",
20
+ "yesButtonText": "Sim"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Производитель",
3
+ "model": "Модель",
4
+ "batteryTooltip": "Батарея",
5
+ "connectedIconTooltip": "Подключено",
6
+ "allDevicesFilteredOut": "Все устройства отфильтрованы",
7
+ "cancelButtonText": "Отмена",
8
+ "closeButtonText": "Закрыть",
9
+ "copied": "Скопировано",
10
+ "disconnectedIconTooltip": "Отключено",
11
+ "filterLabelText": "Фильтровать по имени",
12
+ "instanceLabelText": "Екземпляр",
13
+ "instanceNotAlive": "Экземпляр не жив",
14
+ "noButtonText": "Нет",
15
+ "noDevicesFoundText": "Устройства не найдены",
16
+ "noInstanceSelectedText": "Пожалуйста, выберите экземпляр",
17
+ "okButtonText": "ХОРОШО",
18
+ "refreshInstanceList": "Обновить список экземпляров",
19
+ "toClipboard": "в буфер обмена",
20
+ "yesButtonText": "Да"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "Виробник",
3
+ "model": "Модель",
4
+ "batteryTooltip": "Батарея",
5
+ "allDevicesFilteredOut": "Усі пристрої відфільтровано",
6
+ "cancelButtonText": "Скасувати",
7
+ "closeButtonText": "Закрити",
8
+ "connectedIconTooltip": "Підключено",
9
+ "copied": "Скопійовано",
10
+ "disconnectedIconTooltip": "Відключено",
11
+ "filterLabelText": "Фільтрувати за назвою",
12
+ "instanceLabelText": "Екземпляр",
13
+ "instanceNotAlive": "Примірник не живий",
14
+ "noButtonText": "Немає",
15
+ "noDevicesFoundText": "Пристроїв не знайдено",
16
+ "noInstanceSelectedText": "Виберіть екземпляр",
17
+ "okButtonText": "в порядку",
18
+ "refreshInstanceList": "Оновити список екземплярів",
19
+ "toClipboard": "в буфер обміну",
20
+ "yesButtonText": "Так"
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "manufacturer": "制造商",
3
+ "model": "型号",
4
+ "batteryTooltip": "电池",
5
+ "connectedIconTooltip": "已连接",
6
+ "allDevicesFilteredOut": "所有设备均被过滤掉",
7
+ "cancelButtonText": "取消",
8
+ "closeButtonText": "关闭",
9
+ "copied": "已复制",
10
+ "disconnectedIconTooltip": "已断开连接",
11
+ "filterLabelText": "按名称过滤",
12
+ "instanceLabelText": "实例",
13
+ "instanceNotAlive": "实例不存在",
14
+ "noButtonText": "不",
15
+ "noDevicesFoundText": "未找到设备",
16
+ "noInstanceSelectedText": "请选择实例",
17
+ "okButtonText": "好的",
18
+ "refreshInstanceList": "刷新实例列表",
19
+ "toClipboard": "到剪贴板",
20
+ "yesButtonText": "是的"
21
+ }
@@ -0,0 +1,2 @@
1
+ export default DeviceList;
2
+ import DeviceList from './DeviceList';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _DeviceList = _interopRequireDefault(require("./DeviceList"));
9
+ var _default = exports["default"] = _DeviceList["default"];
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_DeviceList","_interopRequireDefault","require","_default","exports","DeviceList"],"sources":["JsonConfigComponent/DeviceManager/index.js"],"sourcesContent":["import DeviceList from './DeviceList';\n\nexport default DeviceList;\n"],"mappings":";;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsC,IAAAC,QAAA,GAAAC,OAAA,cAEvBC,sBAAU"}
@@ -64,14 +64,9 @@ var JsonConfigComponent = /*#__PURE__*/function (_Component) {
64
64
  var newState = {
65
65
  data: data
66
66
  };
67
- var _data = {};
68
- // remove all attributes starting with "_"
69
- Object.keys(data).forEach(function (attr) {
70
- return !attr.startsWith('_') && (_data[attr] = data[attr]);
71
- });
72
- newState.changed = JSON.stringify(_data) !== _this.state.originalData;
67
+ newState.changed = JSON.stringify(data) !== _this.state.originalData;
73
68
  _this.setState(newState, function () {
74
- _this.props.onChange(_data, newState.changed, saveConfig);
69
+ _this.props.onChange(data, newState.changed, saveConfig);
75
70
  cb && cb();
76
71
  });
77
72
  } else if (saveConfig) {