Commit Graph

1489 Commits (1cc0b830a6f28f78ca34bd944f40561f08652d12)

Author SHA1 Message Date
Florian Hotze e3daf94577
oh-label-card: Hide label if no label or Item configured (#2874)
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 (#2869)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-13 23:32:53 +01:00
Florian Hotze 549112b1bb
Thing actions: Respect action visibility (#2867)
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 (#2866)
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 (#2865)
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 (#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
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
Florian Hotze 2975d78f7e
Add version and commit to UI during production build (#2796)
This sets the version in the Framework7 parameters to the build version during production build,
and adds the commit hash to the Vuex store so it can be displayed on the about page.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 21:42:48 +02:00
Florian Hotze d6c8904417
Fix oh-image-card action regression (#2795)
Regression from #2781.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 20:51:20 +02:00
Florian Hotze 2c28db9f32
Fix oh-gauge-card action regression & Improve oh-card docs (#2794)
Fixes #2793.
Regression from #2781.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 18:59:53 +02:00
Florian Hotze 6dc8c4b1df
Item details: Show group function for group Items if defined (#2792)
Closes #1483.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 17:12:38 +02:00
Florian Hotze 4e341fdc57
Change the default navbar style for non-desktop to simple navbar (#2791)
Discussion in
https://community.openhab.org/t/permastore-ui-look-options/152052.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-03 17:06:31 +02:00
dependabot[bot] b53cc919bd
Bump path-to-regexp from 6.1.0 to 6.3.0 in /bundles/org.openhab.ui/web (#2784)
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) from 6.1.0 to 6.3.0.

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 14:31:53 +02:00
Florian Hotze e2c3c53d29
Thing details: Fix config action Thing config modification (#2786)
Follow-up for #2775.
Fixes #2782.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 21:40:19 +02:00
Florian Hotze e27280776f
Fix meta tag apple-mobile-web-app-capable deprecation warning (#2783)
igned-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 18:24:16 +02:00
dependabot[bot] 937e1ef4c5
Bump rollup from 2.79.1 to 2.79.2 in /bundles/org.openhab.ui/web (#2769)
Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2.

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 18:06:04 +02:00
dependabot[bot] 32b4a994ac
Bump send and express in /bundles/org.openhab.ui/web (#2762)
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express).
These dependencies needed to be updated together.

Updates `send` from 0.18.0 to 0.19.0
Updates `express` from 4.19.2 to 4.21.0

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 17:54:57 +02:00
Florian Hotze dcbc549245
Refactor card widgets to use a shared base component (#2781)
Supersedes #1801.

Implements the proposal from
https://github.com/openhab/openhab-webui/pull/1801#issuecomment-1475172733.

-----

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 17:45:35 +02:00
Florian Hotze 4785cfaeb9
oh-canvas-layout: Allow overriding style (#2780)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 13:16:29 +02:00
Florian Hotze d78e6d9470
Thing details: Fix config action saves the whole Thing (#2775)
A Thing config action is only supposed to save the config of the Thing,
not the whole Thing.

Fixes https://github.com/openhab/openhab-core/issues/4380.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-01 11:19:48 +02:00
Florian Hotze bdb54a54c7
System & Add-on settings: Add dirty indicator & Improve dirty handling (#2779)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 23:03:29 +02:00
Florian Hotze e500ffe0dd
Item metadata: Improve dirty handling & Fix description metadata always dirty (#2778)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 23:02:37 +02:00
Florian Hotze 851d2507ce
oh-rollershutter: Use displayState if available & Improve styling (#2777)
Fixes #2612.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 22:19:34 +02:00
Florian Hotze e007ccd1b0
Thing add page: Fix header styling for input field (#2776)
Follow-up for #2771.
Fixes
https://github.com/openhab/openhab-webui/pull/2771#issuecomment-2383783450.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 22:01:26 +02:00
Florian Hotze 91c7c16e4d
Z-Wave network map: Fix ECharts deprecation warnings (#2774)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 17:57:50 +02:00
Florian Hotze 1ea84a134f
Config sheet: Properly handle null as configuration value (#2773)
This fixes an error that was previously thrown.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 17:11:35 +02:00
Florian Hotze e742d7a13d
Persistence edit: Fix wrong config parameter type definitions (#2772)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 16:31:23 +02:00
Florian Hotze 38a486a291
Thing add page: Add support for optional scan input (#2771)
Refs https://github.com/openhab/openhab-core/pull/4389.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 15:32:35 +02:00
lolodomo 97d1d416ce
[BasicUI] Hide header row for MJPEG video when visibility is disabled (#2764)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-28 22:39:17 +02:00
Florian Hotze 217fc060ee
CSP: Allow loading of workers from blob: URIs (#2765)
Fixes issues with VideoJS reported on the community:

https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/26.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-22 00:45:03 +02:00
lolodomo 727b876853
[BasicUI] Fix character encoding of returned page (#2746)
Fix #2681

Concerns only the settings page and the page listing all sitemaps

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-17 21:08:34 +02:00
Florian Hotze 529893f371
Script & Transformation editor: Add links to the language reference docs (#2761)
Closes #1915.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 19:37:46 +02:00
Florian Hotze d84eed00eb
Script editor: Extend mode translation for more automation languages (#2760)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:20:57 +02:00
Florian Hotze bd70e6b9c1
Transformation edit: Improve dirty handling & Fix settings styling (#2759)
Only mark the transformation as dirty if there was an actual change, not
only an editor input.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:20:35 +02:00
Florian Hotze b7e2efead8
Fix dirty indicator blocks subtitles (#2758)
Regression from #2687.

The dirty indicator code blocked the use of subtitles, these were not
showing up anymore.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 18:04:20 +02:00
Mark Herwege 66787288e0
[blockly] Remove Nashorn support & Check for required automation add-on in script edit (#2743)
This PR removes Nashorn support from Blockly and removes all Nashorn 
specific code from the blocks.

When opening a Blockly script, the UI will tell you if the script needs
to be saved again (because the MIME type is for Nashorn or because newly
generated code is different from the saved code).
It will also warn if the JS Scripting addon is not installed.

The Run Now link from the script editor is grayed out when the required
scripting add-on is not installed, and will show a warning when trying to run.

-----

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-16 17:37:15 +02:00
Mark Herwege 05464128b3
[blockly] Add persistence median methods (#2732)
Depends on https://github.com/openhab/openhab-js/pull/376

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-16 15:46:19 +02:00
Mark Herwege b293ab1b84
Sitemap editor: Validation improvements (#2720)
Closes #2701.

This PR contains a number of sitemap validation improvements,
interactive, before saving and in the DSL parser.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-13 19:36:25 +02:00
Florian Hotze 850fd48c1b
State description metadata: Allow to select transformations from list (#2752)
Resolves #1944.

When entering a state description pattern, an autocomplete list
is provided containing the available transformations.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-13 19:35:58 +02:00
Mark Herwege d79efb7cec
[blockly] Small improvements to blocks (#2742)
Several small improvements:

- Persistence `previous...State` and `next...State` blocks: add boolean
shadow block for skip same, default false
- Named `timer` blocks: add a `undefined` shadow block for `context`.
- `run rule or script` block: make the parameter dictionnary input a
shadow block

In addition to that, for the `transform` block, 
the transformation dropdown now dependens on the installed transformations.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-12 23:36:15 +02:00
Florian Hotze 920466e3aa
Rules/Scenes/Scripts: Gray out run now button if uninitialized (#2754)
Also improve toast messages in developer sidebar and fix a minor styling
issues for the script settings.

Addresses no. 1 of #2749.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 22:27:06 +02:00
Florian Hotze e958d3717b
Developer sidebar: Show error when trying to run unititialized rule (#2753)
Fixes #2748.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 21:48:59 +02:00
Florian Hotze b207722dd4
Home edit: Fix model tab settings not editable (#2751)
Fixes #2597.
Regression from #2304.

Also minimizes the gap between the Cards title and the reorder button.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 20:59:10 +02:00
Mark Herwege 99a9c0aa18
[blockly] Make HTTP block method name dropdown labels less technical (#2740)
See https://github.com/openhab/openhab-webui/pull/2607#issuecomment-2322954012.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-07 18:02:07 +02:00
Florian Hotze 22a42c3607
CSP: Allow embedding any source (#2741)
Regression from #2714.
This updates Main UI‘s CSP to allow embedding any source.

Fixes issues reported on the community, see
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/6 and
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/7.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-03 23:37:56 +02:00
dependabot[bot] ee27cecebd
Bump elliptic from 6.5.6 to 6.5.7 in /bundles/org.openhab.ui/web (#2726)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.6 to 6.5.7.

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 19:12:13 +02:00
Florian Hotze 2dccd471e2
Upgrade webpack from 5.93.0 to 5.94.0 (#2738)
Replaces #2736.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:53:28 +02:00
Florian Hotze 2a82a44884
[BasicUI] Update CONTRIBUTING.md (#2737)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:45:48 +02:00
lolodomo f295665469
[BasicUI] Upgrade node/npm/gulp/node-sass tools (#2722)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-31 18:39:53 +02:00
jimtng 08cd5a5208
Items: Add MEDIAN group function (#2734)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-26 22:31:15 +02:00
jimtng 5716165e6a
Developer sidebar: Focus on search when opened (#2731)
Resolve #2727.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-26 09:00:38 +02:00
Dan Cunningham 77dbfcb198
Fixes logic to detect when a thing's config changes vs the whole thing structure (#2729)
Fixes #2704

---------

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-08-25 09:17:40 +02:00
lolodomo 6139039f6c
[BasicUI] Upgrade Material Icons (#2724)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-23 09:45:56 +02:00