Commit Graph

1414 Commits (14adafb810c41a3c10d9847952ec9724e399355d)

Author SHA1 Message Date
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
openhab-bot 231d24b86f
New Crowdin updates (#2169) 2023-11-26 23:39:42 +01:00
Mark Herwege 6dfed0011e
Sitemap Editor: Extend chart period config for ISO8601 (#2186)
Adjust sitemap configuration in main UI for recent changes in sitemap
chart period configuration, see https://github.com/openhab/openhab-core/pull/3863.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-11-26 23:37:36 +01:00
stefan-hoehn 1c297f3175
Extend chart periods to 3Y, 5Y and 10Y (#2190)
Allow further settings 3Y, 5Y, 10Y for dynamic period of chart.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-11-26 23:27:41 +01:00
lolodomo 3e27463f45
[BasicUI] Fix updating of the chart period parameter in URL (#2162)
The period parameter syntax was extended.
Depends on openhab/openhab-core#3863

Also add few new default periods in the selection of chart period

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-11-26 21:28:16 +01:00
Florian Hotze 2f67839540
Persistence edit: Add forecast strategy (#2189)
Refs https://github.com/openhab/openhab-core/pull/3597.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-26 16:30:40 +01:00
Florian Hotze 95b48996c8
Fix developer sidebar conceals "Other Apps" panel (#2180)
Fixes #2177.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-26 01:00:27 +01:00
Mark Herwege 42193d1351
Addon suggestions (#2150)
Depends on https://github.com/openhab/openhab-core/pull/3806.

1. Have the setup wizard propose these addon suggestions (as a
complement to the hardcoded recommended addons).
2. List the addon suggestions on top in the addon store page.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-11-26 00:43:50 +01:00
Florian Hotze d8e29f1386
Re-Apply: Fix SSE failure toast container not removed (#2182)
This re-applies the fix from #2075, which must have been lost while
rebasing #1987.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-22 15:23:52 +01:00
lolodomo 9981c87410
Adapt movecontrol icon to bright and dark themes (#2116)
Related to #1769

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-11-21 21:06:32 +01:00
lolodomo c7d0b25f05
Adapt network icon to bright and dark themes (#2117)
Use currentColor as color.

Related to #1769

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-11-21 19:04:44 +01:00
Florian Hotze 0c8e5acbdd
Developer sidebar: Support searching (in) sitemaps (#2138)
Extends the developer sidebar search to sitemaps, where uid, label and
slots are searched for the query.
Case is ignored.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-21 18:58:30 +01:00
Florian Hotze ea4387cddc
MainUI CONTRIBUTING.md: Mention Vue DevTools & Add FAQ section (#2179)
This is meant to mainly help first time contributors where to start, but
it should also be quite practical for existing contributors and save
them some time looking up stuff.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-20 10:24:01 +01:00
openhab-bot 66c789be02
New Crowdin updates (#1728) 2023-11-19 22:52:23 +01:00
osama-salah b089e9916f
[habpanel] Document scene activation using the selection widget (#1853)
Added a description of how to use the "Selection" widget for changing
scenes.
2023-11-19 22:49:23 +01:00
osama-salah 21909b9f8c
[habpanel] Documentation fixes (#1854)
Changed "Get widgets from the openHAB community"  to "Get more..." and at missing „Can be found“.
2023-11-19 22:43:43 +01:00
d51x fbcc07e6b4
Rules list: Add filtering by (multiple) tags (#2122)
Closes #2123.

This adds filtering by tags to the rules list, the filter is inside an
accordion.
In case you select multiple tags, the filter behaves like OR, which
means all rules which have at least one of the selected tags are
displayed.
In case you use the searchbar, the rules list will be narrowed down to
the rules which match the search query and have the selected tags.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Dmitry P. (d51x) <dimonich110@gmail.com>
2023-11-19 17:56:10 +01:00
Florian Hotze f05316669d
Move JSON defs for help features to assets (#2178)
Follow-up for #2088.

I forgot that during review, let's do it now.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-19 12:47:51 +01:00
stefan-hoehn 483e5dc9ba
[blockly] Add event available (#2176)
Fixes #2081.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-11-19 11:43:42 +01:00
stefan-hoehn cdeee1b576
[blockly] Add parse number block (#2175)
Fixes #2139.

This adds a new toNumber block in the Math section that parses to float (I
think we don't need both parseFloat and parseInt).

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-11-19 11:41:25 +01:00
stefan-hoehn d438277655
[blockly] Add support for getting persistence previous state value as number (#2174)
Fixes #2173.

Adds the possibility to retrieve the numeric value directly from the previous state.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-11-19 11:28:10 +01:00
JustinGeorgi b4128cb0a4
Add intergrated Help Features (#2088)
Closes #2058.

This converts the developer sidebar into a multipurpose dock. 
It keeps the previous developer sidebar as the `Tools` panel and adds a
`Help` panel.

The new `Help` panel contains 4 different sections:
1) A context dependent section that will show basic help for the
administrative page currently viewed. These pages give basic
definitions, some simple tips and links to the relevant full
documentation.
2) An add-on section that lists all the currently installed add-ons and
provides direct links to their documentation pages.
3) A FAQ section for simple answers to common questions with internal
links to help guide the users, some external links to relevant
resources, and links to documentation pages providing more details about
the question.
4) A Quick-Start section that guides a new user with click-by-click
instructions for everything from binding installation to adding a widget
to a MainUI page with links to the detailed Getting Started Tutorial for
each step. This section is opened by default when an administrator opens
a new MainUI instance with no configured overview page (i.e., most
likely a new user).

All of the main setting list pages and the overview page now have a help
icon in the navbar that toggles the help dock.

FAQ and Quick-Start data are stored in separate JSON formatted files for
ease of addition and maintenance.

------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2023-11-17 23:05:54 +01:00
lolodomo dfbdcf23b3
Remove PNG icons from the classic icon set (#2084)
The docker environment is (unfortunately) kept. It can be used to
compress SVG files. Conversion from SVG into PNG format has been
commented in the script .convert.sh.

Closes #2071
Closes #1768

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-11-13 22:13:07 +01:00
mueller-ma 751f7a8bac
Remove Bountysource badge (#2166)
It seems that Bountysource has been shut down as the website isn't
reachable anymore and they don't respond to support mails.

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
2023-11-12 11:36:14 +01:00
d51x 18ad473c6e
Things: Add copy channel functionality (#2131)
Added ability to copy channels of Things.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Dmitry P. (d51x) <dimonich110@gmail.com>
2023-11-09 10:25:11 +01:00
Gwendal Roulleau a2f9003d09
[webaudio] Allow stopping play (#2031)
Use of a dictionary to store audio sources currently playing and stop
them all when asked to.
Refs https://github.com/openhab/openhab-core/pull/3766.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2023-11-08 10:38:44 +01:00
jimtng d8c69fbd27
[blockly] Cosmetic changes on cancel and reschedule timer blocks (#2163)
Make the blocks say "Cancel [private|shared] timer XXX" and "after xx
reschedule [private|shared] timer XXXX"
Also put the reschedule block right after cancel.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-11-08 10:15:26 +01:00
Thomas Wunschel f4bbba0df6
Fix error when actionAnalyzerItems value is a string (#2159)
Fixes #2158.

Only join `actionAnalyzerItems` values if the variable is an Array.

Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
2023-11-04 11:53:11 +01:00
openhab-bot f1e2c39b69
New Crowdin updates (#2124) 2023-11-04 11:51:36 +01:00
Stefan Roellin 4103c08515
Fix invalid chart period "3M" of sitemaps (#2160)
"3M" for three months is an invalid chart period for a sitemap. Replace
it with "4M" for four months, which is missing.

See https://next.openhab.org/docs/ui/sitemaps.html#element-type-chart

Signed-off-by: Stefan Roellin <stefan@roellin-baumann.ch>
2023-11-04 11:11:18 +01:00
Florian Hotze 060c14ec03
`oh-stepper`: Fix NaN shown for Item state with unit & Fix unable to control Item with NaN state (#2137)
Regression from #2090.

Reported on the community, see
https://community.openhab.org/t/openhab-4-1-0-m2-oh-stepper-not-working-properly/150372?u=florian-h05.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-11-02 21:38:38 +01:00
Florian Hotze 6d71b3d5d8
SSE event mixin: Replace RegEx lookbehind assertion with split by string (#2157)
Fixes #2153.
Regression from #2055.

MainUI was broken on older iOS versions, e.g. 15.8, because RegEx
lookbehind assertions were introduced with Safari 16.4.
This uses split by string instead and adds an ESLint rule to forbid
the usage of RegEx lookbehind assertions.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-10-30 17:42:06 +01:00
alexxys 8f06d97c5e
Create aux badge for humidity setpoints similar to temperature badge (#2154)
The temperature badge shows both the measured temperature and the
temperature setpoint in the form "measurement_value (setpoint_value)",
e.g. 20° (21°). 
This introduces the same format for
humidity badge by showing humidity setpoint in addition to humidity
measurement.

Signed-off-by: Alexander Antonov <alexxys@gmail.com>
2023-10-30 08:34:10 +01:00
Florian Hotze c9de04eaff
Fix color picker not displayed correctly (#2136)
Fixes #2134.
Regression from #1989.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-10-29 14:50:57 +01:00
Thomas Wunschel c2d071a9cf
Support configurable visibility of semantic model cards (#2144)
Closes #2143.

Only render model-card if `visible` computed property is `true`.
Hide divs in model-tabs which do not have a visible model-card.

Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
2023-10-29 14:39:48 +01:00
dependabot[bot] 4f331b5702
Bump browserify-sign from 4.2.1 to 4.2.2 in /bundles/org.openhab.ui/web (#2155)
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 14:03:25 +01:00
Florian Hotze aef0a6bf74
Fix missing footer element for Item Vue component (#2135)
Fixes #2133.
Regression from #2087.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-10-29 11:40:49 +01:00
Mark Herwege 922c4f3db7
Sitemap editor: Support AND conditions and icon rules (#2145)
Fixes #2149: Syntax validation errors when command mappings contain special characters like [ and ].

Sitemaps now support icon rules and AND conditions in icon, color and visibility rules.
Mappings now also support an icon.

This PR introduces support to configure this in the sitemap editor.
It also contains a fix for staticIcon support.

Depends on https://github.com/openhab/openhab-core/pull/3850.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-10-27 14:04:31 +02:00