Applied to Chart/Image/Viodeo/Mapview/Webview elements.
Chart and Image elements are also now clickable.
Clicking allows toggling between header row shown and header row hidden.
Fix#2065
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Sitemaps are now also sorted by label/name.
Dark theme is now properly handled.
In case several sitemaps have the same label, the sitemap name is
concatenated in parenthesis.
Fix#2101
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Fixes#927.
When attempting to open an `oh-` Vue component, e.g.
`oh-colorpicker-card`, as action modal, it was not possible to configure
it, even though `actionModalConfig` was set.
This was because `oh-` componens take their configuration from the
computed `config` of the widget-mixin instead of the Vue component
`props`.
This PR fixes that by using the `actionModalConfig` for the computed
`config` of `oh-` components in action modals.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Changes introduced into #2087 in combination with #2093 create duplicity
in showing non-semantic tags in the model page
(component/model/item-details.vue).
Non-semantic tags are displayed both in the Item and when edit mode is
enabled, in the accordion tag input in item-form.
Signed-off-by: David Kesl <david_git@keslovi.cz>
The RelativeCI action was using the CLI with an inline API key.
This PR replaces the RelativeCI CLI with the action agent running on workflow_run
event and in the context of the default branch (secrets are not leaked to forks).
Signed-off-by: Viorel Cojocaru <vio@beanon.com>
Closes#2092.
- Adds possibility to display Item name and non-semantic tags in Semantic model tree view.
- Adds search for Items also based on Item name and tags depending on selected view options.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <david_git@keslovi.cz>
Closes#2086
- Adds Non-semantic tags to Items list (e.g. /settings/items/)
consistently with similar list of Rules / Scripts / Pages.
- Extends `getItemTypeAndMetaLabel` with relatesTo part of Semantic
classification and moves it to a mixin.
- Fixes incorrect calculation of vue virtual box height on Items list.
- Replaces custom tag input with accordion tag input (inspired by
https://github.com/openhab/openhab-webui/pull/2078) and show number of
tags (inspired by https://github.com/openhab/openhab-webui/pull/2083).
- Moves the custom tag input to `item-form.vue`, so it is available also
in Model view, when creating Item from Thing etc.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <david_git@keslovi.cz>
Fixes#2089.
Possibly regression from #1875.
Stepper formatValue was calculating displayed number of decimals from the value of the step property, not it's length.
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
When generating the sitemap DSL from a UI configured sitemap with color
conditions, if the color in the condition has a leading space, it will
be included in the color string.
While this does not have an impact on the sitemap functionality (it
works), it is an issue if one would copy this sitemap to a sitemap file.
This PR strips the blanks from the color.
See #2082 and the example provided there.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Closes#2077.
This PR adds ability to add / change / remove Tags to Pages via MainUI.
It is using existing tag-input.vue component similar as UI for Items and
Rules.
---------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: David Kesl <davidkesl76@gmail.com>
Adds routes for `/overview`, `/locations`, `/equipment` and
`/properties` so a home page reload keeps the tab and routing to
individual tabs is possible.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Follow-up for #1997.
- Addresses
https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378:
Use filled icon for the add-on store.
- Fixes#2049: Fix sidebar highlighting for add-on settings and add-on
store pages.
- Fixes#2028: Fix tab is resetted to bindings when reloading the add-on
store (by using seperate routes for all tabs, therefore addresses
https://github.com/openhab/openhab-webui/pull/1997#issuecomment-1703221977).
- Closes#2048: Expand system settings by default on large screens where
three columns are used.
- Localize the "Show All" buttons.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Co-authored-by: Yannick Schaus <github@schaus.net>
The block can now take both “get item item xxx” or (new) “item xxx” directly.
I have also added some hint in the help tooltip that clarifies
how to work with the block when using it through variables because
Blockly has to make an assumption due to the fact that it cannot detect
what is provided in the variable.
See https://community.openhab.org/t/less-then-greater-then-comparison-return-value-seems-to-be-inverted/148910/9.
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Closes#2067.
This PR introduces CO2 measument badge to the location card in MainUI.
It is same logic as other measuments badges, i.e. average from items
with Measurement and CO2 Semantic tags.
---------
Signed-off-by: David Kesl <davidkesl76@gmail.com>
The openHAB demo's profile page takes ages to render because of the huge
sessions list. This should fix that problem.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#2006.
With the attempt in #2029 failing due to #2054, this finally fixes an
issue where the semantic model pages (Equipment, Properties) were
missing translations.
This was due to a race condition, where the semantic model pages were
built before the tags were loaded.
This PR fixes this by watching for semantic model updates (i.e.
subscripting to the underlying Vuex mutation) and loading/building the
model pages after such an update.
Futher improvements:
- Initial loading of semantic tags is put in parallel with other API
requests performed on app init.
- Vuex semantics: A mutation is used for setting the semantic tags from
the action.
- Debug logging is added to both the semantic tag and the semantic model
page loading.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
When set on a sitemap element, Basic UI ignores the item state when
initially requesting the OH icon and do not request it again when the
item state is updated.
Depends on openhab/openhab-core#3735
Related to openhab/openhab-android#3404
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Header line for video element contains icon and label.
Header line for image element contains icon, label and a button to
switch between no upscale and upscale of the image. Header line for
chart element contains icon, label and 4 buttons:
- one button to show or hide the legend
- one button to change the time range
- one button to switch between no upscale and upscale of the chart
- one button to refresh the chart
Fix handling of iconcolor and labelcolor parameters for mapview and
webview elements.
For image and chart elements, the header line is always present so that
user has an access to its buttons.
For video, mapview and webview elements, if the label is empty, the
header line is hidden.
For chart and image elements, there is now no upscale applied by default
(tablet/phone devices) but a button allows upscaling.
Closes#1939Fixes#1367
Also related to #1930
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Fixes#1713.
- Fix command not sent when current Item state is null.
- Fix style can not be set.
- Fix a (cosmetic) error thrown when defaultColor has no value.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes https://github.com/openhab/openhab-webui/issues/2043
The sitemap parser was not able to cope with comments in the sitemap
text when pasted in from a sitemap file.
Comments will now be discarded (the REST API does not have fields for
comments), but the sitemap will still be parsed and saved.
Similarly, blanks where accepted in a number of places when defined in
text files, but not in the parser. This is now also corrected.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Regression from #2029.
A few of my UI pages stopped loading properly. Specifically there seemed to be a condition where when the page would draw its widgets before other parts
of the page were loaded (or something similar, some race conditional).
This would result in widgets loading with the wrong state, colors, icons, etc that are dependent on item state.
I tracked it down to this
one very small change, reverting back to a `v-show` from `v-if` for the
main view ready state fixes this.
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Using this configuration the maven-compiler-plugin will also use the
Eclipse External Annotations. This results in more similar build results
when not using Eclipse like CI, on the CLI and when using other IDEs.
Signed-off-by: Wouter Born <github@maindrain.net>
Closes#1935.
- Moves transformations to a new list for visual separaration, as it is
only second class configuration.
- Renames System Services to System Settings.
- Add Add-on Settings, which opens the same settings page as the add-on
store, i.e. provides log, service config and persistence config (if
persistence service). Add-ons that only provide log settings are
considered advanced and hidden by default.
- Consolidate the add-on store and the newly added add-on settings into
a single place (refactoring included).
- Add doc links to Things, Items, pages, rules, scenes & scripts list
pages.
- Make some system settings advanced.
- Use a third column for large screens.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Transformations are searchable by uid and label, and as the uid contains
the type, also by type.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
It is still using /bindings to get the data resulting in a 404 Not
Found. The other pages were updated in #1468.
Signed-off-by: Wouter Born <github@maindrain.net>
When the Item was a group Item and groupType was not defined, an error
was thrown. This fixes it.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>