Commit Graph

1558 Commits (dependabot/npm_and_yarn/bundles/org.openhab.ui.habot/web/multi-b9e91432f9)

Author SHA1 Message Date
dependabot[bot] 241c791e3c
Bump zrender and vue-echarts in /bundles/org.openhab.ui.habot/web
Bumps [zrender](https://github.com/ecomfe/zrender) to 5.6.0 and updates ancestor dependency [vue-echarts](https://github.com/ecomfe/vue-echarts). These dependencies need to be updated together.


Updates `zrender` from 4.0.3 to 5.6.0
- [Release notes](https://github.com/ecomfe/zrender/releases)
- [Commits](https://github.com/ecomfe/zrender/compare/4.0.3...5.6.0)

Updates `vue-echarts` from 3.0.3 to 7.0.3
- [Release notes](https://github.com/ecomfe/vue-echarts/releases)
- [Changelog](https://github.com/ecomfe/vue-echarts/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ecomfe/vue-echarts/commits/v7.0.3)

---
updated-dependencies:
- dependency-name: zrender
  dependency-type: indirect
- dependency-name: vue-echarts
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 18:23:57 +00:00
Florian Hotze 1258cf0e6a
Config sheet: Always show advanced params only if changed from default ()
Improve code from .
Closes .

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-03 21:08:39 +01:00
Florian Hotze d432f3bde7
Thing: Fix dirty warning shown on deletion if unsaved changes ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 15:26:12 +01:00
Florian Hotze f7352894a1
Channel copy: Fix changed config discarded ()
Fixes https://github.com/openhab/openhab-core/issues/4458.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 13:27:26 +01:00
Florian Hotze ecb2cae390
Widget action taphold: Hide context menu in desktop browser ()
Fixes .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-30 22:12:08 +01:00
Wouter Born c1da41f909
Update bnd to 7.1.0 ()
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-7.1.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-11-30 21:38:36 +01:00
Mark Herwege 09b153c388
Sitemap editor: Add support for color temperature picker ()
Closes https://github.com/openhab/openhab-webui/issues/2852.

Refs https://github.com/openhab/openhab-core/pull/4420.
Related to https://github.com/openhab/openhab-core/issues/3891.

This implements configuring a color temperature picker in the sitemap builder UI.

It also does some visualisation improvements of names and labels (by
defaults shows item label in treeview, analogous to model treeview).

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-11-30 14:50:33 +01:00
jimtng 1e0b7deaf6
[BasicUI] Align and optimize available space for switch with mappings ()
- Should only affect switch with mappings, not player control
- Utilise the wasted space instead of wrapping the buttons into multiple
rows, if possible.
- Right align the buttons. This makes it look _much_ neater.
- Instead of limiting the width of the buttons, reserve a minimum width
for the label
- However if the label is shorter than 6 characters (including blank
labels), reduce the label's minimum width to just what's actually taken
up by the shorter label. This gives more space for the buttons with
shorter labels.
- When buttons wrap to multiple rows, make sure that each row contains
almost the same number of buttons, instead of having the first row
filling up the horizontal space, move the buttons down. By doing this,
there is more space for the label to occupy.
- Squeeze extra space for more buttons in "condensed layout" by reducing
padding, inter-button gaps, min-width, etc.
- The reduced padding in condensed layout also affects buttons in
buttongrid.

Before:
<img width="1130" alt="image"
src="https://github.com/user-attachments/assets/6bb010b7-d8e3-42bf-a3ae-0236e3ca3601">



After:

<img width="1127" alt="image"
src="https://github.com/user-attachments/assets/395b2440-532b-41f1-8369-c9963ebe84b7">

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-11-30 14:12:34 +01:00
Siegmar Immel b06c21f055
oh-context: Improve parameter descriptions ()
Added info about changeability of elements to the parameter description.

Signed-off-by: Siegmar Immel <36704892+SiggiFR@users.noreply.github.com>
2024-11-29 18:34:35 +01:00
openhab-bot db99e5846e
New Crowdin updates () 2024-11-29 18:21:02 +01:00
stefan-hoehn ed54bf6d23
Canvas Interactive SVG: Prevent image caching & Add id in config dialog ()
prevent url caching in edit mode, 
add svg element id to dialog title

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-19 00:38:42 +01:00
lolodomo d5a0748b32
[BasicUI] Add preview color to Colorpicker widget ()
Also cleanup class ColorpickerRenderer

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-18 08:58:09 +01:00
Florian Hotze 7c3d114750
oh-chart: Only include boundary & Item state if now between start/end time ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-17 22:46:54 +01:00
lolodomo e067305f32
[BasicUI] Fix selection of color temperature near min and max ()
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 18:20:59 +01:00
stefan-hoehn e1990669e0
Interactive SVG background: Allow processing whole SVG group for state ()
Allows to flash and handle state on whole SVG groups without a proxy by
using the group's path elements instead, e.g. this whole group can be used directly

---------

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-16 18:43:42 +01:00
Florian Hotze e3daf94577
oh-label-card: Hide label if no label or Item configured ()
This fixes an issue where "-" was displayed as label in that case, which
was very annoying when using the label card only for displaying an icon.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-16 18:06:44 +01:00
Florian Hotze 45dd117f9a
oh-image-card: Fix too much padding when no action configured ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-13 23:32:53 +01:00
Florian Hotze 549112b1bb
Thing actions: Respect action visibility ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-11 13:42:36 +01:00
Florian Hotze 90210ae986
Fix hsbToRgb util & Fix conversion in oh-canvas-embedded-svg-mixin.js ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 22:02:46 +01:00
Florian Hotze 7e8a03e5cc
Thing action popup: Fix invocation of action with signature hash ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 21:56:28 +01:00
stefan-hoehn 180cd785b9
oh-canvas: Fix exception on empty initial svg config ()
This fixes a nasty bug on initial setup of an embedded SVG that has no configuration yet.

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-10 15:02:38 +01:00
stefan-hoehn 3dfe023fa6
Canvas layout: Add interactive SVG support ()
This is major contribution to the fixed canvas layout which allows
an SVG background to become an active part of the page. Through this
feature the SVG itself can become an active component of the page.

Keep in mind: it is not a replacement for widgets ... widgets can and
should still be used but it allows the background itself to be as
interactive as a widget.

---------

Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-11-09 19:04:13 +01:00
Florian Hotze 3d0ac0b001
Config param time & datetime: Fix seconds support ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-09 18:24:31 +01:00
lolodomo 9e1a25df68
[BasicUI] Implement new sitemap element Colortemperaturepicker ()
Related to 

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-09 17:12:18 +01:00
Florian Hotze 1e4e69e018
oh-colorpicker: Fix color picker sends commands on external state change ()
Fixes .
Fixes .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 14:12:51 +01:00
Florian Hotze e32700f4a4
Model (picker): Fix toolbar checkbox issues with safe areas ()
Fixes .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-05 20:14:23 +01:00
Florian Hotze 1612d507f9
Add-ons store: Improve card sizing on desktop ()
Use grid instead of flex with a minimum card width and automatic sizing.
Looks nearly the same on smaller screens and much better on large
screens.

Also limit width of single add-on card in swiper component as a
safeguard.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-03 00:03:54 +01:00
Florian Hotze 7602f7156a
Thing copy: Keep label ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 02:26:57 +01:00
Florian Hotze 00e7f10408
Pages list: Don't allow selecting overview page for removal ()
The overview page cannot be removed, so do not allow to select it for removal.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 00:26:37 +01:00
Florian Hotze c74af2dad3
Implement copy functionality for Things, Items, scenes & scripts ()
Also improve the rule copy code.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 00:20:05 +01:00
Florian Hotze 3022654195
Rule/Scene/Script edit: Block addition of reserved tags ()
Do NOT allow the addition of the scene tag outside the scene editor and
addition of the script tag outside the script editor.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 22:53:34 +01:00
Florian Hotze 4dfdc981f4
oh-cell: Fix safe-area issues ()
Fixes .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 22:18:30 +01:00
Florian Hotze 4f35c14dc9 Thing action popup: Fix regression from .
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 21:49:30 +01:00
Florian Hotze 36b578a447
Thing action popup: Improve rendering of output value ()
This allows to display JSON-stringified versions of objects as returned
from the API.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-01 12:49:09 +01:00
Florian Hotze 90ce12573d
Config param time & datetime: Add support for seconds ()
This allows setting the step size for date and datetime contexts, which
makes the UI display seconds if the step size is 1.

Refs .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-30 17:04:21 +01:00
Yannick Schaus 21e429a3e7
Add bottom padding below advanced checkbox in config sheet ()
Signed-off-by: Yannick Schaus <github@schaus.net>
2024-10-29 20:58:04 +01:00
openhab-bot 9b55947508
New Crowdin updates () 2024-10-29 00:02:35 +01:00
Florian Hotze 183f8f9d67
Thing action popup: Multiple improvements ()
- Default to action input name if no label provided
- Use label for action output "result" if provided
- Display action output descriptions if provided

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-27 15:52:36 +01:00
Florian Hotze deadfdb6ab
Thing actions: Hide if no actions available & Merge with UI actions ()
Fixes https://github.com/openhab/openhab-webui/pull/2834#issuecomment-2439904745.
Shows UI actions (currently only Z-Wave network map) with the Thing actions instead of the deprecated config actions.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-27 11:01:52 +01:00
Florian Hotze acb464a36e
Config parameter: Implement `date` and `datetime` contexts ()
Closes .
Depends on https://github.com/openhab/openhab-core/pull/4428.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 20:49:21 +02:00
Florian Hotze c6dda3cdfd
Fix flickering of list pages when updating ()
Fixes Items list flickering when an Item is added, updated or removed.

Fixes the same issue for other lists, where this is a regression from
 and .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 14:13:40 +02:00
Florian Hotze 54b96e756e
Addons swiper: Fix single addon card width in landscape orientation ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 02:18:17 +02:00
Florian Hotze b9edd9767b
Thing actions: Sort by label, Show description, Hide unsupported actions ()
Follow-up for .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 01:45:00 +02:00
Florian Hotze 3166955eb9
Addons store: Multiple styling improvements ()
Follow-up for .

- Do not use addon swiper on iPad.
- Revert addon card size changes.
- Show more addon cards in swiper in landscape mode.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 01:19:47 +02:00
Florian Hotze c225819684
Number parameter: Allow configuring any step size/number of decimals ()
By setting step size to 0 in a config description parameter, one can
allow any step size i.e. the user can enter as many decimals as he wants
to.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-25 18:24:20 +02:00
Florian Hotze 574c313fde
Addons store: Use swiper for addon cards on mobile & Reduce size of addon card on desktop ()
Fixes  and fixes .

This slighly reduces the addon card size on desktop and uses a swiper
(like in many app stores) instead of a flex on mobile.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-25 13:56:15 +02:00
Wouter Born dad104e5d7
GitHub Actions upgrades and improvements ()
* Use Maven 3.9.9
* Use Ubuntu 24.04
* Verify there are no changed files

This will help preventing issues like:

* https://github.com/openhab/openhab-webui/issues/20
* https://github.com/openhab/openhab-webui/issues/107
* https://github.com/openhab/openhab-webui/issues/241
* https://github.com/openhab/openhab-webui/issues/2814

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-24 20:23:03 +02:00
Florian Hotze 331f79430d
Improve injection of build info into the UI ()
Fixes .
Follow-up for .

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 16:31:20 +02:00
Florian Hotze 96f3810be8
Items & Rules list: Minor style & code improvements ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 16:13:11 +02:00
Florian Hotze 785d8f6bcd
Search bars: Remember search query & Automatically focus on desktop ()
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 16:12:57 +02:00