@iobroker/gui-components 10.2.3 → 10.3.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.
- package/README.md +8 -1
- package/build/Components/IconLibrary/classicIcons.d.ts +15 -0
- package/build/Components/IconLibrary/classicIcons.js +1941 -0
- package/build/Components/IconLibrary/classicIcons.js.map +1 -0
- package/build/Components/IconLibrary/iconLibrary.d.ts +32 -0
- package/build/Components/IconLibrary/iconLibrary.js +49 -0
- package/build/Components/IconLibrary/iconLibrary.js.map +1 -0
- package/build/Components/IconLibrary/iconLibraryData.d.ts +3 -0
- package/build/Components/IconLibrary/iconLibraryData.js +452 -0
- package/build/Components/IconLibrary/iconLibraryData.js.map +1 -0
- package/build/Components/IconLibrary/types.d.ts +16 -0
- package/build/Components/IconLibrary/types.js +2 -0
- package/build/Components/IconLibrary/types.js.map +1 -0
- package/build/Components/IconSelector.d.ts +30 -4
- package/build/Components/IconSelector.js +243 -2056
- package/build/Components/IconSelector.js.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/en.json +1 -0
- package/build/i18n/es.json +1 -0
- package/build/i18n/fr.json +1 -0
- package/build/i18n/it.json +1 -0
- package/build/i18n/nl.json +1 -0
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pt.json +1 -0
- package/build/i18n/ru.json +1 -0
- package/build/i18n/uk.json +1 -0
- package/build/i18n/zh-cn.json +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/i18n/de.json +1 -0
- package/i18n/en.json +1 -0
- package/i18n/es.json +1 -0
- package/i18n/fr.json +1 -0
- package/i18n/it.json +1 -0
- package/i18n/nl.json +1 -0
- package/i18n/pl.json +1 -0
- package/i18n/pt.json +1 -0
- package/i18n/ru.json +1 -0
- package/i18n/uk.json +1 -0
- package/i18n/zh-cn.json +1 -0
- package/package.json +16 -14
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ npm create vite@latest src -- --template react-ts
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@emotion/react": "^11.14.0",
|
|
38
38
|
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@iobroker/gui-components": "^10.
|
|
39
|
+
"@iobroker/gui-components": "^10.3.0",
|
|
40
40
|
"@mui/icons-material": "^9.0.1",
|
|
41
41
|
"@mui/material": "^9.0.1",
|
|
42
42
|
"react": "^19.2.5",
|
|
@@ -877,6 +877,13 @@ You can find the migration instructions:
|
|
|
877
877
|
-->
|
|
878
878
|
|
|
879
879
|
## Changelog
|
|
880
|
+
### 10.3.0 (2026-09-14)
|
|
881
|
+
|
|
882
|
+
- (@GermanBluefox) Added: the icon selector offers a library of 448 icons for rooms, buildings, furniture, lighting, climate, windows and shading, security, energy, water, household appliances, multimedia, garden, weather, people and more. Every icon has a name in all 11 languages, and the search looks through all categories. The icons are taken from Material Design Icons (Apache License 2.0), painted with `currentColor` and loaded only when the dialog is opened. The classic room and device icons stay available as their own categories
|
|
883
|
+
- (@GermanBluefox) Added: `getClassicIconTemplates()` returns the classic room and function templates with ID, name and icon, so the admin does not need its own copy of them any more. `loadIconLibrary()` and `getIconLibrarySvg()` give access to the icon library
|
|
884
|
+
- (@GermanBluefox) Changed: `onlyRooms` and `onlyDevices` of `IconSelector` and `IconPicker` only choose the category that is opened first - all other categories stay available
|
|
885
|
+
- (@GermanBluefox) Fixed: the classic room templates used the ID `windscreen` and had no `cellar`, while the admin creates the enums `vestibule` and `cellar`
|
|
886
|
+
|
|
880
887
|
### 10.2.3 (2026-09-04)
|
|
881
888
|
|
|
882
889
|
- (@GermanBluefox) Fixed: Expert button highlighted in the object browser
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ClassicIconTemplate {
|
|
2
|
+
_id: string;
|
|
3
|
+
name: ioBroker.StringOrTranslated;
|
|
4
|
+
/** File name of the icon in src/assets/rooms or src/assets/devices */
|
|
5
|
+
icon: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CLASSIC_DEVICES: ClassicIconTemplate[];
|
|
8
|
+
export declare const CLASSIC_ROOMS: ClassicIconTemplate[];
|
|
9
|
+
/**
|
|
10
|
+
* Get the classic room or device templates with their icons as SVG data URL.
|
|
11
|
+
* They define an ID, a translated name and an icon, e.g., to create a room or function enum.
|
|
12
|
+
*
|
|
13
|
+
* @param type rooms or devices
|
|
14
|
+
*/
|
|
15
|
+
export declare function getClassicIconTemplates(type: 'rooms' | 'devices'): ClassicIconTemplate[];
|