@iobroker/dm-gui-components 0.0.2

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/JsonConfig.js ADDED
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const react_1 = __importStar(require("react"));
30
+ const JsonConfigComponent_1 = __importDefault(require("@iobroker/adapter-react-v5/Components/JsonConfigComponent"));
31
+ function JsonConfig(props) {
32
+ const { instanceId, socket, schema, data, onChange, } = props;
33
+ console.log('JsonConfig', props);
34
+ const [error, setError] = (0, react_1.useState)();
35
+ if (schema === undefined) {
36
+ return null;
37
+ }
38
+ const [adapterName, instance] = instanceId.split('.', 2);
39
+ return react_1.default.createElement(react_1.default.Fragment, null,
40
+ error && react_1.default.createElement("div", null, error),
41
+ react_1.default.createElement(JsonConfigComponent_1.default, { socket: socket, adapterName: adapterName, instance: parseInt(instance), schema: schema, data: data, onError: setError, onChange: _data => onChange(_data), embedded: true }));
42
+ /*
43
+ JSON adapter config:
44
+ className={classes.scroll}
45
+ socket={socket}
46
+ theme={this.props.theme}
47
+ themeName={this.props.themeName}
48
+ themeType={this.props.themeType}
49
+ adapterName={this.props.adapterName}
50
+ instance={this.props.instance}
51
+ isFloatComma={this.props.isFloatComma}
52
+ dateFormat={this.props.dateFormat}
53
+ schema={this.state.schema}
54
+ common={this.state.common}
55
+ data={this.state.data}
56
+ updateData={this.state.updateData}
57
+ onError={(error) => this.setState({ error })}
58
+ onChange={(data, changed) => this.setState({ data, changed })}
59
+ customs={{ configCustomEasyAccess: ConfigCustomEasyAccess }}
60
+ Object custom:
61
+ instanceObj={instanceObj}
62
+ customObj={customObj}
63
+ custom={true}
64
+ className={ '' }
65
+ adapterName={adapter}
66
+ instance={parseInt(instance.split('.').pop(), 10) || 0}
67
+ socket={this.props.socket}
68
+ theme={this.props.theme}
69
+ themeName={this.props.themeName}
70
+ themeType={this.props.themeType}
71
+ multiEdit={this.props.objectIDs.length > 1}
72
+
73
+ schema={this.jsonConfigs[adapter].json}
74
+ data={data}
75
+ onError={error =>
76
+ this.setState({error}, () => this.props.onError && this.props.onError(error))}
77
+ onValueChange={(attr, value) => {
78
+ console.log(attr + ' => ' + value);
79
+ const newValues = JSON.parse(JSON.stringify(this.state.newValues));
80
+ newValues[instance] = newValues[instance] || {};
81
+ if (this.commonConfig[instance][attr] === value) {
82
+ delete newValues[instance][attr];
83
+ if (!Object.keys(newValues[instance]).length) {
84
+ delete newValues[instance];
85
+ }
86
+ } else {
87
+ newValues[instance][attr] = value;
88
+ }
89
+ this.setState({newValues, hasChanges: this.isChanged(newValues)}, () =>
90
+ this.props.onChange && this.props.onChange(this.state.hasChanges));
91
+ }}
92
+ */
93
+ }
94
+ exports.default = JsonConfig;
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Jey Cee <iobroker@all-smart.net>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # ReactJS component for ioBroker device manager
2
+ This component requires the [dm-utils](https://github.com/ioBroker/dm-utils) in adapter.
3
+
4
+ ## Usage
5
+ ```jsx
6
+ import React from 'react';
7
+ import DeviceList from '@iobroker/dm-gui-components';
8
+
9
+ ...
10
+ render() {
11
+ return <DeviceList
12
+ socket={this.props.socket}
13
+ selectedInstance="matter.0"
14
+ />;
15
+ }
16
+ ```
17
+ <!--
18
+ Placeholder for the next version (at the beginning of the line):
19
+ ### **WORK IN PROGRESS**
20
+ -->
21
+
22
+ ## Changelog
23
+ ### 0.0.2 (2023-12-12)
24
+ * (bluefox) initial commit
25
+
26
+ ## License
27
+ MIT License
28
+
29
+ Copyright (c) 2023 Jey Cee <iobroker@all-smart.net>
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface TooltipButtonProps {
3
+ tooltip?: string;
4
+ label?: string;
5
+ disabled?: boolean;
6
+ Icon: React.JSX.Element | null;
7
+ onClick?: () => void;
8
+ }
9
+ export default function TooltipButton(props: TooltipButtonProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,22 @@
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
+ const react_1 = __importDefault(require("react"));
7
+ const material_1 = require("@mui/material");
8
+ function TooltipButton(props) {
9
+ const { tooltip, label, disabled, Icon, onClick } = props;
10
+ const text = !!label && react_1.default.createElement(material_1.Typography, { variant: "button", style: { marginLeft: 4 } }, label);
11
+ if (tooltip) {
12
+ return react_1.default.createElement(material_1.Tooltip, { title: tooltip },
13
+ react_1.default.createElement("span", null,
14
+ react_1.default.createElement(material_1.IconButton, { onClick: onClick, disabled: disabled, size: "small" },
15
+ Icon,
16
+ text)));
17
+ }
18
+ return react_1.default.createElement(material_1.IconButton, { onClick: onClick, disabled: disabled, size: "small" },
19
+ Icon,
20
+ text);
21
+ }
22
+ exports.default = TooltipButton;
package/Utils.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ControlBase } from '@iobroker/dm-utils/build/types/base';
3
+ export declare function renderIcon(action: ControlBase, colors?: {
4
+ primary: string;
5
+ secondary: string;
6
+ }, value?: string | number | boolean | null): React.JSX.Element | null;
7
+ /**
8
+ * Get Translation
9
+ * @param {string | object} text - Text to translate
10
+ * @returns {string}
11
+ */
12
+ export declare function getTranslation(text: ioBroker.StringOrTranslated): string;
package/Utils.js ADDED
@@ -0,0 +1,157 @@
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 adapter_react_v5_1 = require("@iobroker/adapter-react-v5");
10
+ function renderIcon(action, colors, value) {
11
+ var _a, _b, _c, _d;
12
+ if (!action) {
13
+ return null;
14
+ }
15
+ let color = (value && action.colorOn) || action.color || (action.state ? 'primary' : 'inherit');
16
+ if (colors) {
17
+ if (color === 'primary') {
18
+ color = colors.primary;
19
+ }
20
+ else if (color === 'secondary') {
21
+ color = colors.secondary;
22
+ }
23
+ }
24
+ 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'))) {
25
+ const iconStyle = action.icon.split(' ').map(s => s.trim()).filter(s => s !== 'fa-solid');
26
+ if (iconStyle.includes('fa-trash-can') || iconStyle.includes('fa-trash')) {
27
+ return react_1.default.createElement(icons_material_1.Delete, { style: { color } });
28
+ }
29
+ if (iconStyle.includes('fa-pen')) {
30
+ return react_1.default.createElement(icons_material_1.Edit, { style: { color } });
31
+ }
32
+ if (iconStyle.includes('fa-redo-alt')) {
33
+ return react_1.default.createElement(icons_material_1.Refresh, { style: { color } });
34
+ }
35
+ if (iconStyle.includes('fa-plus')) {
36
+ return react_1.default.createElement(icons_material_1.Add, { style: { color } });
37
+ }
38
+ if (iconStyle.includes('fa-wifi')) {
39
+ return react_1.default.createElement(icons_material_1.Wifi, { style: { color } });
40
+ }
41
+ if (iconStyle.includes('fa-wifi-slash')) {
42
+ return react_1.default.createElement(icons_material_1.WifiOff, { style: { color } });
43
+ }
44
+ if (iconStyle.includes('fa-bluetooth')) {
45
+ return react_1.default.createElement(icons_material_1.Bluetooth, { style: { color } });
46
+ }
47
+ if (iconStyle.includes('fa-bluetooth-slash')) {
48
+ return react_1.default.createElement(icons_material_1.BluetoothDisabled, { style: { color } });
49
+ }
50
+ if (iconStyle.includes('fa-eye')) {
51
+ return react_1.default.createElement(icons_material_1.Visibility, { style: { color } });
52
+ }
53
+ if (iconStyle.includes('fa-search')) {
54
+ return react_1.default.createElement(icons_material_1.Search, { style: { color } });
55
+ }
56
+ if (iconStyle.includes('fa-unlink')) {
57
+ return react_1.default.createElement(icons_material_1.LinkOff, { style: { color } });
58
+ }
59
+ if (iconStyle.includes('fa-link')) {
60
+ return react_1.default.createElement(icons_material_1.Link, { style: { color } });
61
+ }
62
+ if (iconStyle.includes('fa-search-location')) {
63
+ return react_1.default.createElement(icons_material_1.NotListedLocation, { style: { color } });
64
+ }
65
+ if (iconStyle.includes('fa-play')) {
66
+ return react_1.default.createElement(icons_material_1.PlayArrow, { style: { color } });
67
+ }
68
+ if (iconStyle.includes('fa-stop')) {
69
+ return react_1.default.createElement(icons_material_1.Stop, { style: { color } });
70
+ }
71
+ if (iconStyle.includes('fa-pause')) {
72
+ return react_1.default.createElement(icons_material_1.Pause, { style: { color } });
73
+ }
74
+ if (iconStyle.includes('forward') || iconStyle.includes('fa-forward')) {
75
+ return react_1.default.createElement(icons_material_1.FastForward, { style: { color } });
76
+ }
77
+ if (iconStyle.includes('rewind') || iconStyle.includes('fa-rewind')) {
78
+ return react_1.default.createElement(icons_material_1.FastRewind, { style: { color } });
79
+ }
80
+ return null;
81
+ }
82
+ if (value && ((_c = action.iconOn) === null || _c === void 0 ? void 0 : _c.startsWith('data:image'))) {
83
+ return react_1.default.createElement(adapter_react_v5_1.Icon, { src: action.iconOn, style: { color } });
84
+ }
85
+ if ((_d = action.icon) === null || _d === void 0 ? void 0 : _d.startsWith('data:image')) {
86
+ return react_1.default.createElement(adapter_react_v5_1.Icon, { src: action.icon, style: { color } });
87
+ }
88
+ if (action.id === 'edit' || action.id === 'rename') {
89
+ return react_1.default.createElement(icons_material_1.Edit, { style: { color } });
90
+ }
91
+ if (action.id === 'delete') {
92
+ return react_1.default.createElement(icons_material_1.Delete, { style: { color } });
93
+ }
94
+ if (action.id === 'refresh') {
95
+ return react_1.default.createElement(icons_material_1.Refresh, { style: { color } });
96
+ }
97
+ if (action.id === 'newDevice' || action.id === 'new' || action.id === 'add') {
98
+ return react_1.default.createElement(icons_material_1.Add, { style: { color } });
99
+ }
100
+ if (action.id === 'discover' || action.id === 'search') {
101
+ return react_1.default.createElement(icons_material_1.Search, { style: { color } });
102
+ }
103
+ if (action.id === 'unpairDevice') {
104
+ return react_1.default.createElement(icons_material_1.LinkOff, { style: { color } });
105
+ }
106
+ if (action.id === 'pairDevice') {
107
+ return react_1.default.createElement(icons_material_1.Link, { style: { color } });
108
+ }
109
+ if (action.id === 'identify') {
110
+ return react_1.default.createElement(icons_material_1.NotListedLocation, { style: { color } });
111
+ }
112
+ if (action.id === 'play') {
113
+ return react_1.default.createElement(icons_material_1.PlayArrow, { style: { color } });
114
+ }
115
+ if (action.id === 'stop') {
116
+ return react_1.default.createElement(icons_material_1.Stop, { style: { color } });
117
+ }
118
+ if (action.id === 'pause') {
119
+ return react_1.default.createElement(icons_material_1.Pause, { style: { color } });
120
+ }
121
+ if (action.id === 'forward' || action.id === 'next') {
122
+ return react_1.default.createElement(icons_material_1.FastForward, { style: { color } });
123
+ }
124
+ if (action.id === 'rewind' || action.id === 'previous') {
125
+ return react_1.default.createElement(icons_material_1.FastRewind, { style: { color } });
126
+ }
127
+ if (action.id === 'lamp' || action.id === 'light') {
128
+ return react_1.default.createElement(icons_material_1.Lightbulb, { style: { color } });
129
+ }
130
+ if (action.id === 'backlight') {
131
+ return react_1.default.createElement(icons_material_1.Fluorescent, { style: { color } });
132
+ }
133
+ if (action.id === 'dimmer') {
134
+ return react_1.default.createElement(icons_material_1.WbIncandescent, { style: { color } });
135
+ }
136
+ if (action.id === 'socket') {
137
+ return react_1.default.createElement(icons_material_1.Power, { style: { color } });
138
+ }
139
+ return null;
140
+ }
141
+ exports.renderIcon = renderIcon;
142
+ let language;
143
+ /**
144
+ * Get Translation
145
+ * @param {string | object} text - Text to translate
146
+ * @returns {string}
147
+ */
148
+ function getTranslation(text) {
149
+ language = language || adapter_react_v5_1.I18n.getLanguage();
150
+ if (typeof text === 'object') {
151
+ const words = text;
152
+ // @ts-ignore
153
+ return words[language] || text.en;
154
+ }
155
+ return adapter_react_v5_1.I18n.t(text);
156
+ }
157
+ exports.getTranslation = getTranslation;
package/i18n/de.json ADDED
@@ -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
+ }
package/i18n/en.json ADDED
@@ -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
+ }
package/i18n/es.json ADDED
@@ -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
+ }
package/i18n/fr.json ADDED
@@ -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
+ }
package/i18n/it.json ADDED
@@ -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
+ }
package/i18n/nl.json ADDED
@@ -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
+ }
package/i18n/pl.json ADDED
@@ -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
+ }
package/i18n/pt.json ADDED
@@ -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
+ }
package/i18n/ru.json ADDED
@@ -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
+ }
package/i18n/uk.json ADDED
@@ -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
+ }
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export default DeviceList;
2
+ import DeviceList from './DeviceList';
package/index.js ADDED
@@ -0,0 +1,7 @@
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
+ const DeviceList_1 = __importDefault(require("./DeviceList"));
7
+ exports.default = DeviceList_1.default;