Commit Graph

1101 Commits (f912de509c504ab2619bbcbca58fe959f0eb6ebf)

Author SHA1 Message Date
Florian Hotze f912de509c
oh-colorpicker: Replace defaultColor option with an actual default color (#2270)
Remove the defaultColor option.
Instead use RGB(0,0,0) black as default color if the Item state holds no
valid color, so that the color picker is accessible.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-14 14:50:56 +01:00
dependabot[bot] 4d4aea4a69
Bump follow-redirects from 1.14.8 to 1.15.4 in /bundles/org.openhab.ui/web (#2264)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.8 to 1.15.4.

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-14 12:56:18 +01:00
lolodomo 5c116092f3
[BasicUI] Update the content of the default cfg file (#2269)
Add missing settings.

Fix #2261

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-14 11:39:26 +01:00
jimtng a7cf1a0a1d
[BasicUI] Fix Buttongrid alignment on desktop (#2260)
Fixes #2259

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-01-13 16:58:51 +01:00
lolodomo 5a09f71eae
[BaiscUI] Adjust the SVG icon in buttons to the current theme (#2257)
Only concerns SVG icons delivered by the openHAB icon servlet and having
"currentColor" as fill color.

Convertion to inline SVG is applied only if the "inline SVG" setting is
enabled.

Fix #2249

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-07 11:33:57 +01:00
Wouter Born 225e61c97c
Improve network-interface context support (#2246)
This allows for selecting multiple network interface names in
configuration parameters.

Related to:

* https://github.com/openhab/openhab-core/pull/3981
* https://github.com/openhab/openhab-addons/pull/16145

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-06 11:36:57 +01:00
Wouter Born afdfa01b07
Update license headers to 2024 (#2254)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 21:17:55 +01:00
lolodomo b6aeaa5760
[BasicUI] Enhance the description of the "Inline SVG" setting (#2247)
In order to explain the default value.

Related to #2240

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-02 19:56:06 +01:00
Mark Herwege 898b519c77
[BasicUI] icon.png minimal fix (#2232)
See comment
https://github.com/openhab/openhab-webui/pull/2231#issuecomment-1867570889

This is the minimal fix to the issue.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-01-02 19:26:18 +01:00
lolodomo b175d1b6bd
[BasicUI] Fix image element being link to a sub page (#2238)
Fix #2233

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-01-01 16:05:14 +01:00
Florian Hotze bf2f257afe
Settings pages: Fix x-overflow and large spaces on phone screens & Change icon for persistence config (#2248)
Follow-up for #2229.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-30 15:47:23 +01:00
Mark Herwege 2fe6ae9b3b
Add a new settings menu for persistence (#2229)
Persistence policies can be configured from the UI. However, it is
difficult to find, and one needs to know where to look. Apart from a
documentation issue, I think persistence is core enough to merrit its
own entry in the settings, so it becomes more prominent.

See for example here:
https://community.openhab.org/t/after-reboot-string-values-are-empty/152064/16

This adds a persistence entry below transformations to the settings menu.

The new persistence config page allows to set the default persistence,
and links to defining the policies for each installed persistence add-on.
There also is a "add" list entry to install more persistence add-ons.
If none is installed, it will explain persistence and link to the docs and the add-on store.

The default persistence settings has been removed from the system
settings, and the link to the persistence policy config from the add-on
settings page has been converted to a button.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-30 00:48:18 +01:00
Florian Hotze 0f35e0ef55
Fix Quickstart-Button shown for non-admin users (#2245)
Follow-up for #2209.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-30 00:32:14 +01:00
dependabot[bot] 3e5018b973
Bump minimatch from 3.0.4 to 3.0.8 in /bundles/org.openhab.ui.basic (#1779)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to
3.0.8.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 23:19:21 +01:00
dependabot[bot] 25afea1c1f
Bump semver from 5.7.1 to 5.7.2 in /bundles/org.openhab.ui.basic (#1959)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 22:54:33 +01:00
dependabot[bot] 480f7ad239
Bump word-wrap from 1.2.3 to 1.2.5 in /bundles/org.openhab.ui.basic (#2236)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3
to 1.2.5.

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-27 19:28:17 +01:00
lolodomo 09df379308
[BasicUI] Fix closing h4 tag in sitemap list page (#2234)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-12-26 17:38:09 +01:00
Kai Kreuzer 4eda3ac170 Apply spotless after release
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-12-22 23:33:18 +01:00
openhab-bot f4cf9535f3 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 18:16:31 +00:00
Mark Herwege cdfe37a72b
[BasicUI] Fix icon none (#2231)
As described in
https://community.openhab.org/t/openhab-4-1-milestone-discussion/149502/222,
none.png is not found for BasicUI.

This PR replaces it with non.svg, see discussion on forum.

@lolodomo @florian-h05 I was behind my screen when I saw the issue. I
didn't test, but did the replacement based on info provided on the
forum.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-22 11:34:06 +01:00
openhab-bot a908b02820
New Crowdin updates (#2230) 2023-12-20 18:19:39 +01:00
openhab-bot 4593101773
New Crowdin updates (#2225) 2023-12-19 19:39:59 +01:00
Mark Herwege f94187652e
No suggestion for installed add-ons (#2226)
Suggestions are being shown in the add-on store for add-ons that are already installed.
This PR removes suggestions for installed add-ons.

See request here https://github.com/openhab/openhab-core/issues/3868#issuecomment-1859950504.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-19 18:49:11 +01:00
GiviMAD d52296a0e1
Add panel for voiceSystem metadata (#2222)
Refs https://github.com/openhab/openhab-core/pull/3925,
https://github.com/openhab/openhab-core/pull/3897 and
https://github.com/openhab/openhab-core/pull/3853.

---------

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-12-17 12:20:17 +01:00
openhab-bot 20a313f266
New Crowdin updates (#2201) 2023-12-17 10:58:39 +01:00
Florian Hotze ab080dc8d2
Model page: Add expand/collapse model button (#2224)
Brings #2191 to the model page:
Provides a button to expand or collapse the model tree.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-16 16:09:08 +01:00
Florian Hotze c8a58fb744
Update component docs (#2223)
Follow-up for #2190 and #2215.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-15 22:06:01 +01:00
Yannick Schaus a5cce9a4c9
Fix unwanted model card back navigation (#2221)
Fixes #2196.
Replaces #2211.

The double back navigation was caused by:

31f4c7065e/src/core/utils/history.js (L56-L61)

and `router.updateCurrentUrl()`, unlike the name implies, doesn't update
`router.url` for some reason (maybe a bug?).

-----

Signed-off-by: Yannick Schaus <github@schaus.net>
2023-12-15 21:54:32 +01:00
Florian Hotze 813fb72480
Update openhab-js tern defs (#2220)
This updates the tern defs used for autocompletion to the current
library version included in the addon (4.7.0).

Reference https://github.com/openhab/openhab-js/compare/v4.0.0...v4.7.0.

Last update of those was in #1710.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-14 21:35:31 +01:00
Mark Herwege da639e2f7d
Limit add-on settings menu list to bundles (#2217)
When installing rule templates or UI components or blockly libraries
from the marketplace, they get an entry in the add-on settings menu.
There is nothing that can be configured in these types of add-ons.
Therefore limit the list to bundles and features.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-14 08:58:13 +01:00
Florian Hotze f4773a7c86
Sitemap editor: Move collapse chevron for toolbar to the left (#2218)
Follow-up for #2193.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-13 23:55:15 +01:00
Mark Herwege 123a8d3fd7
Sitemap Editor: Buttongrid support (#2193)
This PR adds the Buttongrid element to the sitemap editor.
There is also some cleanup for configuration on small screens.
See https://github.com/openhab/openhab-core/pull/3810 and
https://github.com/openhab/openhab-android/issues/3494

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-13 20:28:41 +01:00
Florian Hotze 03fdd31616
oh-input: Update component docs & Minor fixes (#2215)
- Update component docs (follow-up for #2214).
- Avoid sending "Invalid date" to server and do not accept "Invalid
date" as a valid state.
- Fix some errors thrown while configuring component or providing
invalid input.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-13 00:25:45 +01:00
Mark Herwege d4e4fb678e
Add more suggestions in add-on store (#2213)
Some persistence services can be detected by suggestion finders. They
are not made visible in the add-on store so far. This PR fixes this.

See
https://github.com/openhab/openhab-core/issues/3868#issuecomment-1848899824

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-13 00:01:08 +01:00
Mark Herwege be188e344c
Support time in oh-input widget (#2214)
Time only was not supported so far in the oh-input widget.

This was requested in the community forum:
https://community.openhab.org/t/using-a-user-input/151884/9

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-12 23:49:38 +01:00
lolodomo 4e73cbf968
[BasicUI] Implement Buttongrid widget (#2195)
Support grids containing from 1 to 12 columns.
Only the first 8 columns are rendered on tablet.
Only the first 4 columns are rendered on phone.

Related to openhab/openhab-core#3441

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-12-12 22:19:01 +01:00
JustinGeorgi 8c12108337
Fix auto-opening developer dock (#2209)
Closes #2206 

This will replace the auto-opening developer dock with a button on the
empty overview page to open the in-app quick start tutorial. Button will
only appear on pages wide enough to support the developer dock.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2023-12-11 09:27:54 +01:00
stefan-hoehn 8cc9e4b573
[blockly] Add block to get hue, saturation and brightness from Color Item (#2210)
Small extension to retrieve Hue, Saturation or Brightness from a color
Item.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-12-10 22:50:34 +01:00
Florian Hotze 7ca7e843e1
Help sidebar & Overview page: Respect release type for doc links & Add persistence FAQs (#2212)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-10 22:43:24 +01:00
Florian Hotze 4fd7c8c611
Developer sidebar: Add search for persistence configs & Style enhancements (#2208)
This adds support to the developer sidebar search to search persistence
configs by:
- serviceId
- label
- Items included in them

It also fixes a styling issue, where tools where to close to the search
bar and search results were far away from the search bar.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-09 16:40:38 +01:00
Florian Hotze 0c199ec102
Rule edit: Only save rule if it has changed when opening script editor (#2203)
Fixes #2027.

When a script inside a rule was opened, the UI always saved the rule
before navigating to the script editor. With this fix, the rule is only
saved if there is a change to save. If the rule hasn't been changed, no
save request is performed.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-07 22:38:45 +01:00
Florian Hotze 93a3e184a3
Items list: Fix searchbar broken after Items list update & Fix search query not stored (#2184)
Fixes #1334.
Fixes #1702.

After editing or removing an Item, the searchbar of the Items list was
sometimes not working anymore. Console then showed this error:
```
TypeError: undefined is not an object (evaluating
'n.virtualList.params')
```
  
It seems that this was caused because the replaceAllItems operation was
applied on the virtual list without re-rendering the searchbar
afterward.

The search query was forgotten when the Items list reloaded or the 
Items list page was re-entered from an Item detail page.
This is also fixed by using `$f7.data` to store the query.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-07 22:28:27 +01:00
Florian Hotze 10da2fea05
Rule/scene/script list: Hide scene/script tag from filter (#2202)
Follow-up for #2122.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-07 22:23:17 +01:00
Florian Hotze ba7f12615b
Rule/script/scene edit: Update tag input & Refactoring (#2083)
- Refactor rule & scene settings into rule-general-settings Vue
component and use this component on rule-edit, scene-edit pages and
inside script-general-settings component.
- Replace semantic tag picker & custom tag input with accordion tag
input (inspired by #2078) and show number of tags.
- Refactor shared code from rules & scenes into mixin
(`rule-edit-mixin.js`).
- Fix Scene tag is not hidden from tag input.
- Show number of tags on page settings page, follow up for #2078.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-07 22:06:16 +01:00
Jeremy 5a9c0c90c7
Fix alexa item group type parameter support (#2194)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-12-06 00:14:01 +01:00
Florian Hotze 1c15a11b73
Item edit: Fix wording of Item name alert (#2200)
Addresses
https://github.com/openhab/openhab-webui/pull/2126#pullrequestreview-1765483229.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-05 22:24:12 +01:00
Florian Hotze 617f70b103
Set unit metadata & state description pattern when creating UoM Item (#2126)
Related to https://github.com/openhab/openhab-core/pull/3481.
Closes #2108.

- Ensures that the internal unit is set when an Item is created, so that
in case the system unit changes (i.e. measurement system changes)
persisted data does not get corrupted.
By default, the unit metadata is set to the system default unit, however
the user can easily change that on Item creation.
  
The unit can also be changed later as it is just normal metadata,
however this can corrupt persisted data.
- Adds the ability to set state description pattern when creating a UoM
Item.
- Shows the group type for groups, e.g. `Group (Number:Temperature)`
instead of just the Item type.

This applies to both the Items and the model page.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-05 17:06:28 +01:00
lolodomo 18e93f5b1c
[BasicUI] Fix dark theme for selection popups (#2187)
Fix #2142

Add a border to the popup.
Also update the separator color (make it more visible) in dark theme.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-11-30 21:48:14 +01:00
Florian Hotze 4be00c2673
Update browserslist-db & Remove unused uglifyjs-webpack-plugin (#2156)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-29 11:13:40 +01:00
stefan-hoehn 700c47094c
Model Item picker: Add button to expand or collapse model (#2191)
Fixes #665.

Provides a button to expand or collapse the model tree while searching.

Note: I didn't implement an auto-open because I felt it would be rather disturbing.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-11-26 23:53:35 +01:00