Commit Graph

1504 Commits (4.3.6)

Author SHA1 Message Date
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
Tobias Bräutigam 51d28119a9
[cometvisu] fix path check regressions (#2719)
1. Fix serving the index.html when "/" (or empty) path is requested
2. Fix allowing files beeing served from special cometvisu config folder

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2024-08-21 22:14:16 +02:00
jimtng ca42730984
[BasicUI] Add build date to resource requests (#2703)
The goal is so users don't need to do a force refresh whenever openhab
is updated.

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-21 21:42:47 +02:00
Cody Cutrer 56eea58aa0
HomeKit metadata: Mark Thermostat.CurrentHeatingCoolingMode as optional (#2721)
See https://github.com/openhab/openhab-addons/pull/17191

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-08-20 18:46:11 +02:00
Mark Herwege b0d9ad7532
[blockly] HTTP block enhancements (#2607)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-19 11:16:32 +02:00
Mark Herwege 19aac477ca
[BasicUI] input widget, support html escape characters in input (#2685)
Closes https://github.com/openhab/openhab-webui/issues/2675

HTML escape characters in input widgets were not properly supported,
leading to an escaped character sequence under certain conditions.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-16 08:36:29 +02:00
Florian Hotze 17c2119efb
Charts: Apply iOS-related fixes only to iOS devices (#2717)
Improves the fixes from #2677, #2511, #2706 and #2710 to only apply to
iOS devices.
Avoids/Fixes regressions with other platforms such as
https://community.openhab.org/t/chart-scrollbar/157828.

Known issues:
- Charts display in popups on iPads are rendered to large.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 20:11:42 +02:00
Florian Hotze 6f01001b05
Main UI: Allow use of eval() in CSP (#2716)
Regression from #2714.

eval() seems to be required by ECharts: When opening a chart, an CSP
error is thrown that traces back to ECharts, but the chart still
renders.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 19:04:31 +02:00
Florian Hotze 654c89edb4
Main UI: Improve Content-Security-Policy (#2714)
This new CSP is much more restrictive compared to the old one:
- Don't allow any origin as default
- Don't allow eval() usage
- Don't allow data:, gap:, content: and blob: schemes by default

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 13:15:31 +02:00
Florian Hotze 94b3e7c90f
Widget actions: Support optional confirmation dialog/sheet (#2715)
This adds support for optionally asking the user for confirmation either
by dialog or by sheet before executing an action.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-14 17:08:37 +02:00
Florian Hotze b3ec38aa2c
Revert "Bump braces and gulp in /bundles/org.openhab.ui.basic" (#2713)
Reverts #2606.
Fixes #2712.
2024-08-14 10:57:07 +02:00
Florian Hotze a13ffe311e
Widget actions: Add a HTTP action to perform HTTP requests (#2711)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-13 13:19:17 +02:00
Florian Hotze f745fa98b7
Charts: Improve forced re-render code to keep settings and loaded data (#2710)
Follow-up for #2706.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-13 10:35:44 +02:00
dependabot[bot] 2ee0876c77
Bump braces and gulp in /bundles/org.openhab.ui.basic (#2606)
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and
updates ancestor dependency [gulp](https://github.com/gulpjs/gulp).
These dependencies need to be updated together.

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 16:45:55 +02:00
Florian Hotze c43354aabe
Upgrade dependencies with security vulnerabilities (#2709)
Run npm audit fix.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 16:26:50 +02:00
Florian Hotze 09da526815
Upgrade @jsep/template-plugin, dayjs, echarts, qrcode & yaml (#2708)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 16:12:12 +02:00
Florian Hotze 0eddb68ca7
Upgrade build dependencies & Apply new ESLint config (#2707)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 15:43:59 +02:00
Florian Hotze f7f04bf18c
Charts: Force re-render on device orientation change (#2706)
Fixes #2702.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 14:45:48 +02:00
Thomas Wunschel 94aa16aba8
Allow model cards and model tabs outside of homepage (#2584)
Fixes #2583. Fixes #1591.

This moves model loading code to a new Vuex store module named model.
Model loading is now done by app.vue on init and when an Item change event is received through SSE.

home.vue and home-edit.vue now get the model from the Vuex store instead of loading it.
Add tab components for locations-tab, equipment-tab and properties-tab for easy usage in tabbed pages.
Add card components for oh-.location-card, oh-equipment-card and oh-property-card to standard widget list.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Thomas Wunschel <4302898+wuschi@users.noreply.github.com>
2024-08-12 13:00:03 +02:00
Cody Cutrer 3afef194df
Update HomeKit metadata definitions (#2691)
Add missing accessories, configuration parameters, enums, etc.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-08-12 10:55:39 +02:00
Mark Herwege 175b639937
Sitemap editor: Remove sendFrequency parameter (#2705)
See
https://github.com/openhab/openhab-core/issues/4338#issuecomment-2283251553

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-12 10:55:12 +02:00
lolodomo be71ace313
[BasicUI] Remove reading of frequency parameter of colorpicker element (#2699)
Note that %frequency% does not exist in colorpicker snippet.

Related to openhab/openhab-core#4338

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-11 20:17:40 +02:00
jimtng 77d42c1500
[BasicUI] Fix frame title's left padding in condensed tablet layout (#2700)
Before:

<img width="328" alt="image"
src="https://github.com/user-attachments/assets/f8dcad17-a86f-4a19-8c99-7668d755f37d">

After:

<img width="378" alt="image"
src="https://github.com/user-attachments/assets/673397dc-af99-4d46-8a9c-845f44033882">

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-10 08:50:55 +02:00
jimtng 4d6ad05607
[BasicUI] Make button text not uppercased (#2697)
The buttons on iOS and Android apps don't uppercase the text, so this PR
makes BasicUI behave the same way.

Related discussion:

https://github.com/openhab/openhab-webui/pull/2388#issuecomment-2270883776

https://github.com/openhab/openhab-webui/pull/2388#issuecomment-2272304430

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-10 08:32:26 +02:00
jimtng 4dc1bda5c1
[BasicUI] Revert uppercasing exponent (#2698)
Core now accepts lowercased exponent since
https://github.com/openhab/openhab-core/pull/3834

@mherwege would you mind verifying this please?

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-08 19:00:29 +02:00
openhab-bot 19a1acf320
New Crowdin updates (#2692) 2024-08-08 18:22:59 +02:00
Tobias Bräutigam 5e53b21626
[cometvisu] add more path checks (#2696)
also deny external xml schema loading (avoid XXE attacks)

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2024-08-08 10:51:19 +02:00
Florian Hotze 85cd64e147
Page designers: Fix dirty handling for code tab (#2695)
This fixes an issue, where the usage of the code tab of a page marked it
as dirty, even if no change to the page was made.
Please note that for the layout page desinger, the fix however does not
apply on the first time when the code tab of an existing page is opened.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 13:14:18 +02:00
jimtng e5418b4f92
Add a dirty indicator on the title bar (#2687)
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-04 12:00:31 +02:00
Florian Hotze cee0377aea
SSE state tracking: Reduce logging (#2694)
This might improve performance as console logging takes some performance.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 11:40:34 +02:00
Florian Hotze 0430db5138
Clean-up unused login/logout code in app.vue (#2693)
Removes unused code from app.vue and other occurrences. This code would
be a security issue if used and generates security warnings.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 11:40:05 +02:00
Florian Hotze 6b2f264660
Link add: Support linking Number channel to Switch Item with profile (#2690)
Closes #1478.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-28 15:05:20 +02:00
Florian Hotze fa85c0752a
Link add: Fix create item fails for trigger channels (#2689)
Regression from #2312.
Fixes #2669.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-26 14:16:53 +02:00
stefan-hoehn 2de240e5d7
[blockly] Fix code generation for Thing object on Thing status block (#2688)
Fixes #2670.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-07-26 13:16:32 +02:00
stefan-hoehn 0c03554e25
[blockly] Fixes for notification block code generation (#2686)
There was an error on code generation in particular when using vars and
string concat blocks (who sometime generate code instead of pure
strings) which is fixed now.
I also gave notifications its individual color to distinguish them
better from other groups.

Follow-up for #2672.

---------

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-07-25 23:18:46 +02:00
stefan-hoehn 4ce4d495fc
[blockly] Add new sophisticated notification blocks (#2672)
Note that the new blocks can completely replace the old ones (though
they will not be automatically converted but it must be done manually).

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-07-23 22:44:43 +02:00
lolodomo 24a3d275bc
[BasicUI] Fix description for iconify parameter (#2660)
Default is enabled, not disabled.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-07-22 14:51:17 +02:00
lolodomo 187f0b2580
[BasicUI] Add a translatable title to the settings page (#2661)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-07-22 14:49:35 +02:00
stefan-hoehn bc73c9e297
[blockly] Fix bracketing in context block (#2682)
Fixes what was mentioned in
https://community.openhab.org/t/issue-with-contextual-info-block-after-upgrading-to-4-2/157321.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-07-22 14:46:19 +02:00
Florian Hotze fce76c81fe
Fix 404s for overview page, semantic model tabs and add-on store (#2678)
Fixes #2665.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-18 11:47:11 +02:00
Florian Hotze 3d27333ba4
Charts: Fix issues with charts not displaying on iOS >= 17.4 (#2677)
Follow-up for #2511.

I think I finally discovered the root cause for charts not displaying
initially on iOS >= 17.4: The height of the chart was calculated to 0px.
By using 100dvh (dynamic viewport height) and subtracting safe areas
etc. instead of using 100%, I managed to fix this issue.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-18 11:31:50 +02:00
Tobias Bräutigam 2056367b55
[cometvisu] Security fixes & cleanup for cometvisu backend (#2671)
add required authentication for some rest endpoints, add some sanity
checks to improve security.

Remove code that has been marked as deprecated.

---------

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2024-07-17 22:00:00 +02:00
Florian Hotze 97910353fd
Overview page: Fix `defineVars` is not working (#2673)
Fixes #2046.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-15 20:26:18 +02:00
Florian Hotze 0b2c42cfed
oh-sipclient: Regenerate component docs (#2666)
This regenerated the component docs after #2648.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-13 14:35:15 +02:00
jimtng b5e6c34eff
Canvas layout page: Hide empty background image element to remove white border (#2663)
See https://community.openhab.org/t/remove-border-from-fixed-canvas-layout/137541.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-07-13 13:43:52 +02:00
Florian Hotze 8a50e35514
oh-context: Fix rendering failure when not in edit mode (#2662)
When not being in edit mode, oh-context did not render at all. Instead,
an error was thrown:

```
[Vue warn]: Cannot set reactive property on undefined, null, or primitive value: undefined

found in

---> <OhContext> at src/components/widgets/system/oh-context.vue
```

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-11 02:51:20 +02:00
Florian Hotze 43abf2f52d
oh-sipclient: Add call status Item to report call status to server (#2648)
This adds the option to specify a String Item, to which the call status
is sent.
This allows to track the usage of oh-sipclient from rules and scripts.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-10 12:56:15 +02:00
Florian Hotze 553591d72c
item-mixin: Improve Item name validation RegEx (#2658)
`A-z` also matches `[ \ ] ^ _ `, which is not intended.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-09 12:01:56 +02:00
Florian Hotze 2d07d21ebb
Fix sidebar openHAB logo href to avoid repeated navigation to home page (#2657)
When clicking repeatedly on the openHAB logo in the sidebar, the
overview page was opened over and over again because it now resides
under the `/overview` path. By adjusting the href to `/overview`, this
is fixed.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-09 11:21:08 +02:00
Florian Hotze 146fda4bb7
Page editors: Encapsulate CSS to avoid polluting global CSS (#2656)
This fixes an issue where the last lines of the layout code editor were not visible.

Reported on the community: https://community.openhab.org/t/openhab-4-2-release-discussion/157076/12

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-08 23:41:54 +02:00
Florian Hotze 713cb2ba04
Fix code editor overflow in sitemap editor (#2655)
This was caused by a wrong class name in layout-edit.vue, that overwrote
a Framework7 CSS var used by the sitemap editor.

Reported on the community
https://community.openhab.org/t/openhab-4-2-release-discussion/157076/8.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-08 21:37:24 +02:00
Florian Hotze ccbda492f3
Make tabbed pages routable (#2647)
This adds the ability to route through tabbed page by their index,
i.e. 0 for the first tab and so on.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-08 12:25:23 +02:00
Kai Kreuzer 99ad4ff997
Apply spotless after release (#2653)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-07-08 02:03:57 +02:00
openhab-bot 3ce7fc1507 [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 23:43:10 +00:00
Florian Hotze 10746f1c81
Health menu: Remove sidebar and settings entry, instead use FAB (#2652)
Closes #2644.

This removes the health check entry from the sidebar and the settings
menu and instead uses a floating action button (FAB) to allow access to
the health checks page if there are any actual issues.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-07 02:18:15 +02:00
openhab-bot 7225c0dacd
New Crowdin updates (#2651) 2024-07-07 00:27:43 +02:00
openhab-bot c5d7e54f96
New Crowdin updates (#2650) 2024-07-06 23:17:03 +02:00
lolodomo 907024e8b0
[BasicUI] Fix iconify parameter description (#2649)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-07-06 22:28:35 +02:00
jimtng 06667942b8
Fix a typo in orphanlinks page (#2643)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-07-05 08:58:33 +02:00
Florian Hotze d4ad0285dd
Update openhab-js tern defs (#2642)
Depens on https://github.com/openhab/openhab-addons/pull/16985.

This updated the tern defs used for autocompletion to the current
library version included in the add-on (5.3.1).

See https://github.com/openhab/openhab-js/compare/v5.2.0...v5.3.1 for
changes.

Last update was in #2627.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-04 14:10:12 +02:00
JustinGeorgi 82c937eb6f
Developer sidebar: Fix script and scene "unpin all" links (#2640)
The links to unpin scenes and scripts in the dev toolbar were set to
'rules' instead of the correct specifics, and so, didn't work.

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-07-04 09:59:46 +02:00
Florian Hotze 57749b4127
Do not request icon with state for Image Items (#2638)
Fixes #2561.
Fixes #2637.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-02 00:35:50 +02:00
Mark Herwege 2d935d65a0
[blockly] Persistence: Enhance existing blocks & add blocks to cover all available actions (#2596)
Closes https://github.com/openhab/openhab-webui/issues/2595.

This PR further extends the Blockly capabilities to include more of the persistence extensions.

Specifically enhanced the `oh_get_persistvalue` block:
- Add all `Between` methods of already existing methods
- Add `countSince`, `countUntil` and `countBetween`
- Add `countStateChangesSince`, `countStateChangesUntil` and `countStateChangesBetween`
- Add `getAllStatesSince`, `getAllStatesUntil`, `getAllStatesBetween` returning an Array of timestamp and state pairs
- Add a parameter for return type if relevant (`String`, `Number`, `Quantity`, `Timestamp`).

Added methods to the `oh_get_persistence_lastupdate` block:
- `lastChange`, `nextChange`

Created a new block `oh_delete_persistedvalues` to delete persisted values:
- `deleteAllStatesSince`, `deleteAllStatesUntil`, `deleteAllStatesBetween`

Created a new block `oh_persist` to persist values:
- `currentState`: persists a state at the current time
- `stateAt`: persists a state to a given time
- `stateList`: persists a TimeSeries

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-06-29 16:24:16 +02:00
Arne Seime 32688a562e
Add UI for health checks (broken links) (#2420)
Refs on https://github.com/openhab/openhab-core/pull/4115.

This is the starting point for a UI that shows issues with the users installation,
the first function is broken links.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Arne Seime <arne.seime@gmail.com>
2024-06-29 16:13:00 +02:00
Dan Cunningham e9210dc8c2
oh-sipclient: Add auto answer & auto dial features (#2635)
Adds two new features:

- Auto accept calls if they match a configured list of numbers (* for all, 'user', or 'user@host` in a comma delimited list).
- Auto dial a pre-configured number when the client finishes registering (or when the client connects if registration is disabled).

Both can be safely used together.
This allows for features like intercoms, as well as widgets that connect when popped up.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-06-29 16:04:02 +02:00
openhab-bot 5c6a5d9ac2
New Crowdin updates (#2625) 2024-06-29 10:46:45 +02:00
Florian Hotze 44eaa58421
oh-input: Allow overwriting calendarParams defaults for datepicker (#2634)
Fixes #2604.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 17:21:37 +02:00
openhab-bot c5a4b1b3b1
New Crowdin updates (#2619) 2024-06-27 16:47:35 +02:00
Florian Hotze f316ded031
Rules list: Improve performance of rule status tracking (#2623)
Fixes #2621.
Fixes #2593.

This improves performance of the SSE event source event processing for
rule status changes by using a separate object for the rule statuses
(allows O(1) modification) instead of finding the rule in the rules
array (O(n) for linear search) and ignoring RUNNING status.

The RUNNING status can be ignored IMO because rules tend to run such a
short time that you don't see the state shown as RUNNING, so we can use
this "trick" to reduce the amount of processed events.

The rule-status-mixin was updated with short circuit evaluations for the
IDLE status, which is very likely the most processed status, and
therefore reducing the amount of comparisons done.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 16:46:46 +02:00
Florian Hotze 6d367b82b3
oh-input: Fix select with options & setting style not working (#2633)
Fixes #982.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 13:50:48 +02:00
Florian Hotze cee03a7414
Group item form: Add missing COUNT aggregation function (#2632)
Closes #956.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 12:38:57 +02:00
Florian Hotze 822b40c913
Analyzer: Fix silent failure if no items are set (#2631)
Fixes #910.

This fixes a silent failure of the analyzer if no items are passed as
query params. In this case, the empty-state-placeholder will be used to
display a "Invalid configuration" banner.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 12:33:30 +02:00
Florian Hotze 9ebf078a58
Cron expression builder: Set day 1 as Sunday (#2630)
Fixes #1371.
Fixes #902.

This sets the UI's cron builder to use day 1 for Sunday, instead of
Monday, which is the convention as used by the Quartz scheduler, see
https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
and https://freeformatter.com/cron-expression-generator-quartz.html.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 11:44:13 +02:00
Florian Hotze cafc8964be
Setup wizard: Add InMemory persistence to recommended add-ons (#2629)
With https://github.com/openhab/openhab-addons/pull/16496 merged, we can
add InMemory persistence to the recommended add-ons.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 11:43:45 +02:00
Florian Hotze 2decdd6ef6
Rename rule/scene/script name to label for consistency (#2628)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-26 12:33:19 +02:00
Florian Hotze eb975c16aa
Update openhab-js tern defs (#2627)
This updates the tern defs used for autocompletion to the current
library version included in the add-on (5.2.0).
See https://github.com/openhab/openhab-js/compare/v5.0.0...v5.2.0 for changes.

Last update was in #2563.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-25 20:56:49 +02:00
Mark Herwege 2a830a6f09
Fix value mapped to NULL not shown in list label item (#2626)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

See description in
https://github.com/openhab/openhab-core/pull/4203#issuecomment-2095792756

If a mapping is used to map a value to NULL, it is currently not shown
in an oh_label_item.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-06-25 10:26:30 +02:00
Dan Cunningham 0d8c21a727
[MainUI] exposes navigation commands to native wrappers (#2622)
This exposes the command item logic to native wrappers, like our IOS and
Android clients, so they can control navigation of the app when
receiving push notifications.

See https://github.com/openhab/openhab-android/issues/3193

---------

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-06-24 23:00:05 +02:00
Florian Hotze e6043d405f
Things list: Reload on ThingUpdatedEvent (#2624)
This change makes the SSE event tracking handle ThingUpdatedEvents and
reloads the Things list when such an event is received.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-24 16:44:33 +02:00
dependabot[bot] fa1d526510
Bump braces from 3.0.2 to 3.0.3 in /bundles/org.openhab.ui/web (#2616)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-23 09:57:00 +02:00
Florian Hotze 5703ddc416
Rule module popup: Fix margin issues and improve styling (#2620)
Second attempt after #2618.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-23 09:55:12 +02:00
Florian Hotze 0fd5428dd1
Rule module popup: Fix margin issue with Configuration block title (#2618)
Fixes margin issue by ensuring that margin is not negative.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-23 00:15:57 +02:00
Florian Hotze cd40c72e43
Thing view: Add support for HTML-formatting of channel descriptions (#2614)
Closes #2613.

This adds support to format channel (type) descriptions using `html` tags similar to thing-type descriptions.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-16 21:39:36 +02:00
Florian Hotze 418def2eb4
Sitemap edit: Fix column width wrongly applied (#2611)
Fixes #2574.

This is more a workaround than a real fix because it seems there is an issue in Framework7's CSS.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-16 16:27:51 +02:00
Wouter Born 85fd88dbe8
Fix Main UI dark mode scrollbars in Chrome (#2610)
This fixes the issue that when using Chrome the scrollbars are still very bright and not dark.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-06-16 15:07:59 +02:00
Mark Herwege e80b221940
Sitemap editor: Fix issues with AND, buttongrid and numeric commands (#2609)
Fixes https://github.com/openhab/openhab-webui/issues/2605
Also fixes issue with Buttongrid and non-numeric commands

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-06-13 16:01:19 +02:00