Commit Graph

1638 Commits (main)

Author SHA1 Message Date
stefan-hoehn 180cd785b9
oh-canvas: Fix exception on empty initial svg config (#2864)
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 (#2787)
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 (#2863)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-09 18:24:31 +01:00
lolodomo 9e1a25df68
[BasicUI] Implement new sitemap element Colortemperaturepicker (#2851)
Related to openhab/openhab-core#3891

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 (#2860)
Fixes #1268.
Fixes #2849.

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 (#2861)
Fixes #2718.

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 (#2859)
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 (#2858)
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 (#2856)
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 (#2855)
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 (#2854)
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 (#2853)
Fixes #2844.

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 #2850.
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 (#2850)
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 (#2848)
This allows setting the step size for date and datetime contexts, which
makes the UI display seconds if the step size is 1.

Refs #2847.

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 (#2846)
Signed-off-by: Yannick Schaus <github@schaus.net>
2024-10-29 20:58:04 +01:00
openhab-bot 9b55947508
New Crowdin updates (#2829) 2024-10-29 00:02:35 +01:00
Florian Hotze 183f8f9d67
Thing action popup: Multiple improvements (#2840)
- 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 (#2839)
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 (#2838)
Closes #2816.
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 (#2837)
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
#2823 and #2827.

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 (#2835)
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 (#2834)
Follow-up for #2818.

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

- 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 (#2832)
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 (#2216)
Fixes #2205 and fixes #1668.

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 (#2830)
* 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 (#2828)
Fixes #2814.
Follow-up for #2796.

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 (#2826)
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 (#2827)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 16:12:57 +02:00
Florian Hotze 30e4d48b16
Refactor shared model code into a mixin (#2825)
Fixes #2268, where the model building code in the model-picker was
different from the model page.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 14:31:01 +02:00
Florian Hotze 427c9cea97
Items list: Add note that states not updated in real-time & Code improvement (#2824)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 13:31:46 +02:00
openhab-bot 0465fc347d
New Crowdin updates (#2822) 2024-10-24 12:18:07 +02:00
Florian Hotze 521d67b15e
Rules list: Store search query when leaving page/reloading & Improve code (#2823)
As rules-list.vue is used by scenes and scripts list, this applies to them as well.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-24 12:08:54 +02:00
openhab-bot 0a5842434a
New Crowdin updates (#2821) 2024-10-23 00:26:38 +02:00
Florian Hotze 5febf027a0
Thing page: Support invoking Thing actions & Viewing their output (#2818)
Refs https://github.com/openhab/openhab-core/pull/4392. 
Closes #2817.

This adds a new section "Actions" to the Thing tab of the Thing page,
which provides a button for each UI-supported Thing action.
Clicking on that button will open a popup, where action input can be
configured and action output can be viewed.

All keys of the action output response object from REST are rendered as
list Items, the labels are taken from the action output definitions and fallback to the key.
If the key is `qrCode` or its output type is defined as `qrCode`, its value is rendered as QR code.

For actions without inputs or without outputs, messages are shown indicating that there is no such.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-22 23:26:45 +02:00
dependabot[bot] 4100b56625
Bump cookie and express in /bundles/org.openhab.ui/web (#2811)
Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). 

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-22 23:25:05 +02:00
Florian Hotze 8ebd07fa94
Config parameter: Add unit to param description when entering UoM values (#2820)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-22 23:22:17 +02:00
Florian Hotze 85c3c3113d
Home page: Add options to set simple navbar/standard background the default on mobile/desktop (#2800)
This adds new boolean config parameters to the home page settings that allow
setting the default navbar style and standard background for mobile and desktop devices.
The device-specific settings allow to override these defaults by using a segmented button
with three options: The admin's default, option A and option B.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-21 22:04:56 +02:00
JustinGeorgi a1787ed386
oh-cell: Fix headerBadgeColor (#2807)
The color attribute for the header badges in the oh-cell were not
dynamic and as a result setting headerBadgeColor in the cell config
caused a malformed color class to be added to the badge.
2024-10-21 13:46:49 +02:00
Wouter Born f5f3a3e837
Upgrade lastnpe EEA to 2.4.0 (#2813)
For release notes, see:

https://github.com/lastnpe/eclipse-null-eea-augments/releases/tag/v2.4.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-20 10:56:22 +02:00
Wouter Born 5bc928d7f7
Remove unnecessary executable permissions (#2810)
These files are marked as executable for no good reason at all.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-19 12:49:46 +02:00
Florian Hotze 0396d314d5
oh-input: Fix style issue on mobile when sendButton enabled & Update docs (#2806)
This fixes a minor styling issue on mobile devices, where the input's
column is too wide and the sendButton overflows to the next line. Also
add `time` to the docs for valid input types.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-12 00:19:29 +02:00
Florian Hotze 83e40d58c6
Charts: Enable boundary and itemState persistence query params by default (#2805)
Refs https://github.com/openhab/openhab-core/pull/4394.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-10 15:23:53 +02:00
Florian Hotze 84b0fdce25
Remove unnecessary !important from block style fixes inside f7-card (#2804)
Minor regression from #2801.

This fixes difficulties with overwriting that style in widgets.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-09 17:03:05 +02:00
Florian Hotze 2dc7d721a1
Fix style regressions from #2801 (#2803)
Regression from #2801.

During testing, it looked good, but in production it introduced some
styling issues.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-07 01:27:27 +02:00
Sven Killig 3efc1a8902
Settings pages: Fix double scrollbars by hiding y-overflow in block-narrow (#2802)
Fixes #2788.

Signed-off-by: Sven Killig <sven@killig.de>
2024-10-06 22:43:21 +02:00
Florian Hotze 0767c91ffd
Fix safe area styling issues with card and card contents (#2801)
This fixes ugly styling issues with too large margin/padding on iOS
devices due to safe areas getting applied to children of f7-card, even
though f7-card already respects the safe areas.

-----

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-06 21:28:00 +02:00
Florian Hotze 0a3fb925e0
Revert "Change the default navbar style for non-desktop to simple navbar" (#2799)
Reverts openhab/openhab-webui#2791
2024-10-06 14:44:33 +02:00
Mark Herwege 6c46b7953a
Sitemap editor: Add Buttongrid Button support (#2755)
Refs https://github.com/openhab/openhab-core/pull/4377.

The most recent addition to the sitemap syntax allows defining buttons
nested as components inside the Buttongrid component.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-10-04 22:53:30 +02:00