@iobroker/gui-components 10.2.3 → 10.3.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.
Files changed (46) hide show
  1. package/README.md +12 -1
  2. package/build/Components/IconLibrary/classicIcons.d.ts +15 -0
  3. package/build/Components/IconLibrary/classicIcons.js +1941 -0
  4. package/build/Components/IconLibrary/classicIcons.js.map +1 -0
  5. package/build/Components/IconLibrary/iconLibrary.d.ts +32 -0
  6. package/build/Components/IconLibrary/iconLibrary.js +49 -0
  7. package/build/Components/IconLibrary/iconLibrary.js.map +1 -0
  8. package/build/Components/IconLibrary/iconLibraryData.d.ts +3 -0
  9. package/build/Components/IconLibrary/iconLibraryData.js +452 -0
  10. package/build/Components/IconLibrary/iconLibraryData.js.map +1 -0
  11. package/build/Components/IconLibrary/types.d.ts +16 -0
  12. package/build/Components/IconLibrary/types.js +2 -0
  13. package/build/Components/IconLibrary/types.js.map +1 -0
  14. package/build/Components/IconSelector.d.ts +30 -4
  15. package/build/Components/IconSelector.js +243 -2056
  16. package/build/Components/IconSelector.js.map +1 -1
  17. package/build/Components/ObjectBrowser/renderLeaf.js +80 -69
  18. package/build/Components/ObjectBrowser/renderLeaf.js.map +1 -1
  19. package/build/Components/ObjectBrowser/styles.js +78 -11
  20. package/build/Components/ObjectBrowser/styles.js.map +1 -1
  21. package/build/i18n/de.json +2 -0
  22. package/build/i18n/en.json +2 -0
  23. package/build/i18n/es.json +2 -0
  24. package/build/i18n/fr.json +2 -0
  25. package/build/i18n/it.json +2 -0
  26. package/build/i18n/nl.json +2 -0
  27. package/build/i18n/pl.json +2 -0
  28. package/build/i18n/pt.json +2 -0
  29. package/build/i18n/ru.json +2 -0
  30. package/build/i18n/uk.json +2 -0
  31. package/build/i18n/zh-cn.json +2 -0
  32. package/build/index.d.ts +3 -0
  33. package/build/index.js +2 -0
  34. package/build/index.js.map +1 -1
  35. package/i18n/de.json +2 -0
  36. package/i18n/en.json +2 -0
  37. package/i18n/es.json +2 -0
  38. package/i18n/fr.json +2 -0
  39. package/i18n/it.json +2 -0
  40. package/i18n/nl.json +2 -0
  41. package/i18n/pl.json +2 -0
  42. package/i18n/pt.json +2 -0
  43. package/i18n/ru.json +2 -0
  44. package/i18n/uk.json +2 -0
  45. package/i18n/zh-cn.json +2 -0
  46. 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.2.3",
39
+ "@iobroker/gui-components": "^10.3.1",
40
40
  "@mui/icons-material": "^9.0.1",
41
41
  "@mui/material": "^9.0.1",
42
42
  "react": "^19.2.5",
@@ -877,6 +877,17 @@ You can find the migration instructions:
877
877
  -->
878
878
 
879
879
  ## Changelog
880
+ ### 10.3.1 (2026-09-15)
881
+
882
+ - (@GermanBluefox) Changed: the details of the selected object in the narrow view of the object browser were reworked - theme colors, the full ID with a copy button, a dash for empty values and buttons with tooltips
883
+
884
+ ### 10.3.0 (2026-09-14)
885
+
886
+ - (@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
887
+ - (@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
888
+ - (@GermanBluefox) Changed: `onlyRooms` and `onlyDevices` of `IconSelector` and `IconPicker` only choose the category that is opened first - all other categories stay available
889
+ - (@GermanBluefox) Fixed: the classic room templates used the ID `windscreen` and had no `cellar`, while the admin creates the enums `vestibule` and `cellar`
890
+
880
891
  ### 10.2.3 (2026-09-04)
881
892
 
882
893
  - (@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[];