Commit Graph

1414 Commits (14adafb810c41a3c10d9847952ec9724e399355d)

Author SHA1 Message Date
Florian Hotze 8e9acce538 Upgrade vue-grid-layout
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 5752856c7d Upgrade vue-fullscreen
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 29f3c1be00 Upgrade vue-fragment
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze e39d476655 Upgrade tern
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 12546605be Remove sprintf-js
This dependency was not used and hence can be removed.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 6e3d483f9d Upgrade qrcode
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 7d35ec8d92 Upgrade pkce-challenge
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze bcdab18cae Upgrade moo & nearley
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 9a4d454943 Upgrade lodash
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze e494e9ec68 Upgrade leaflet
Map and floor-plan pages were tested and are still working.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 1694973960 Upgrade jssip
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 14854e03b7 Upgrade dayjs
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze afaa80b182 Upgrade cronstrue
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
Florian Hotze 52cb6ff142 Upgrade jse-eval with plugins
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-21 17:24:54 +01:00
dependabot[bot] 67163b0423
Bump follow-redirects from 1.15.5 to 1.15.6 in /bundles/org.openhab.ui/web (#2477)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 20:02:06 +01:00
Arne Seime f784419eb5
Only load ignored inbox items in inbox view (#2400)
Depends on https://github.com/openhab/openhab-core/pull/4108.

In most places, the inbox content is loaded only to show a count of items in inbox.
For any decent size systems the inbox may contain hundreds of entries that are ignored,
which equates to lots of unnecessary data being transferred and processed in the browser.

---------

Signed-off-by: Arne Seime <arne.seime@gmail.com>
2024-03-18 19:57:09 +01:00
openhab-bot 970afa0b58
New Crowdin updates (#2479) 2024-03-18 19:46:23 +01:00
Holger Friedrich 912f8645e7
Upgrade to Karaf 4.4.5 (#2458)
For release notes, see:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353604&projectId=12311140

Refs: openhab/openhab-core#4133

---------

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-18 15:32:11 +01:00
lolodomo 1613dfd236
[BasicUI] Create header row only when needed (#2344)
For buttongrid/mapview/video/webview elements, avoids generating HTML
code for header row when it is hidden.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-03-17 20:34:21 +01:00
Florian Hotze 021c3d8a43
Upgrade echarts and vue-echarts & Add fallback for visualMap when using heatmap (#2450)
This upgrades `echarts` and `vue-echarts` to the latest versions.
`@vue/composition-api` was added as dependency because `vue-echarts`
needs it on Vue 2.

See
https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/
and https://github.com/ecomfe/vue-echarts#migration-to-v6 for upgrade
guides.

This also adds a fallback default for `visualMap` because it is required
to define a `visualMap` when using a heatmap, otherwise echarts fails to
render the chart.
Even though the docs and the chart-designer mentioned this until now, it
worked without defining a visualmap, which would not be the case anymore
(and therefore break charts - defining a visual map is easy though)
without providing a fallback.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-14 20:56:29 +01:00
Florian Hotze 1ceb5c6063
Thing edit: Fix changing ID shows wrong value & Always show UID (#2475)
Fixes #2469.

After changing the ID of a Thing (only possible when creating a new
Thing), the displayed value was reset to the pre-filled default when
moving to a different field. When saving the Thing, the entered value
was used. This was because Vue did not properly notice the change of the
ID.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-13 13:02:30 +01:00
Florian Hotze f5d9cb468a
Item edit: Fix state description not saved for existing Item (#2474)
Fixes #2468.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-13 13:02:06 +01:00
Florian Hotze 7db99cb431
Item edit: Check for type change & Fix dimension/unit change checks (#2473)
- When editing an Item, also check for Item type change and display a
warning when changing the Item type.
- The dimension/unit change checks were not comparing against the saved
Item, but instead against the last changes. Fix this.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-13 12:24:26 +01:00
Florian Hotze a1eca7d695
Thing inbox: Fix "show ignored" checkbox not checkable on small screens (#2472)
Fixes #2457.

The list index collided with the "show ignored" checkbox and caused it
to not be checkable on smaller screens (mobile phones).
As I have found no real fix for this issue (setting z-indizes does not
work due to the structure of the page), I created this workaround to
switch the checkbox and the label on smaller screens.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-13 10:41:56 +01:00
Florian Hotze 5ec8fc8656
Rule edit: Code clean-ups (#2471)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-13 01:35:08 +01:00
Florian Hotze c41aa384dd
Fix dirty warning shown on delete (#2470)
Fixes #2462.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-12 23:21:03 +01:00
stefan-hoehn 9f006fdff3
[blockly] Add undefined block (#2465)
Adds the undefined block as discussed at https://community.openhab.org/t/blockly-proposal-to-change-contextual-info-blocks/154403.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2024-03-08 18:55:24 +01:00
jimtng 67e8ed4d5d
Item details: Fix editing groups with uneditable members & Sort members (#2452)
Fixes #2427.
Also sort the list of group members alphabetically based on label or name.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-07 00:23:24 +01:00
openhab-bot 00079e3c0a
New Crowdin updates (#2439) 2024-03-07 00:18:03 +01:00
jimtng a2559de97f
Item edit: Align group's aggregation function (#2454)
This was left behind in the recent class name change.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-07 00:17:34 +01:00
jimtng 0f804357c5
Channel edit: Fix regression causing editable channels to be locked (#2455)
Regression from #2403.

Channel doesn't have its own `editable` property.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-07 00:15:06 +01:00
jimtng e6d86ae14f
Item list & details: Hide group type if not set (#2453)
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-07 00:10:25 +01:00
jimtng 4af22ff777
Items List: Remove Add item from textual (#2448)
Make the + Icon in the items list go straight into adding a new item.
This makes the most common operation quicker.

Adding from textual definition can still be done through Developer Tool,
as it's not a common task.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-04 20:46:38 +01:00
Florian Hotze e288d0b07a
Improve Item name validation (#2451)
Check that an Item name does not start with a number.

Closes #2444.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-04 20:44:37 +01:00
Florian Hotze ccaa221460
Settings menu: Fix back-link (#2449)
Regression from #2432.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-04 19:45:19 +01:00
Florian Hotze 74620c3bce
Widget expressions: Improve `@` shorthand code (#2446)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-04 11:48:22 +01:00
Florian Hotze da80fbdcd4
Fix custom page icon size for openHAB icons (#2445)
Regression from #2340.

Reported on the community:
https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316/2?u=florian-h05.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-04 11:48:08 +01:00
jimtng 0f343f3ca1
Script Editor: Fix script loading (#2442)
Regression from #2374

The problem is when I clicked on a file-based script in the UI, the
content of the script didn't load.

Before:
<img width="601" alt="image"
src="https://github.com/openhab/openhab-webui/assets/2554958/b3351f27-8ae6-4463-91ee-583fce0cf873">


After:
<img width="670" alt="image"
src="https://github.com/openhab/openhab-webui/assets/2554958/596629cb-459d-43c0-992e-7221e2a505dd">

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-03 13:03:44 +01:00
lolodomo e7faba6c9f
[BasicUI] Move most of app settings to per-device (browser) settings (#2243)
Closes #1832
Closes #1930
Closes #2342

A new page is available to show and update all per-device settings. This
page is accessible through the sitemap list page or the home page of any
sitemap.
Basic UI theme now matches the dark mode of Main UI. It can be updated
either in Main UI or in the new page of Baisc UI.
Web Audio can also be enabled either in Main UI or Basic UI.

The iconify setting is now enabled by default. The script to handle
iconify icons is now loaded in sitemap pages only if the iconify setting
is enabled.

New settings are also available to control the size of the chart and the
size of content (text, line) in the chart.

A new setting is also available to enable a bigger font size.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-03-03 10:22:17 +01:00
jimtng 61aa3d8fb5
Show lock icon in the item details members list (#2410)
Depends on https://github.com/openhab/openhab-core/pull/4118.

@ghys could you comment on the purpose of `ignoreEditable` here? It's
preventing the lock icon from showing up.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-03 10:15:44 +01:00
jimtng 90223e9d4a
Widget expressions: Add `#` as a shorthand for item.numericState (#2441)
Refs https://github.com/openhab/openhab-core/pull/4123.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-03-02 14:39:06 +01:00
Florian Hotze 64a1e0a47e
Add-on logo: Fix jdbc logos not loading & list-item logo distorted (#2440)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-01 17:35:27 +01:00
Florian Hotze 80e762e78b
Developer dock: Fix styling issue when lazy loading component (#2438)
Regression from #2294.

When the developer dock was opened the first time, the navbar was not
center aligned due to a styling issue because of the lazy loading. This
works-around this by setting (sub)title after component creation.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-01 14:56:19 +01:00
Mark Herwege 2f17183bd1
Provide meaningful list of units in item-form (#2312)
Closes https://github.com/openhab/openhab-core/issues/4082.

This PR adds:

1. A curated list of units to show as a drop-down list when creating a Number item with dimension.
2. The possibility to use a different default unit on item creation than the system default unit.
3. The ability to change unit and state description for items.
4. The ability to use the `unitHint` provided by channel types for "Link channel to Item" -> "Create a new Item".

By default, the system default unit (for the configured measurement system) will be shown when editing or creating an item.

`units.js` contains a number of frequently used units by dimension and measurement system.
These will be available in a autosuggest dropdown list.
It is still possible to not select from the list and use any other string as a unit.

All units for the dimension in `units.js` will be in the dropdown list, but they will be sorted by measurement system. If the measurement system is set to US, imperial units will appear higher in the list.
Units that have not explicitely been listed as SI or US will always appear higher.

When typing a unit that is not in the curated list, a longer list will be used for autocompletion that considers allowed prefixes to base units and constructs all combinations.

`units.js` also contains a field to set a different default unit on item creation than the system default unit.

With https://github.com/openhab/openhab-core/pull/4079, the REST API of channel types will provide a unit hint if defined in the binding channel types.
If such information is available, this PR adds support for this to be the the suggested unit.
If that information is unavailable, the UI will fall back to behavious described above.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-03-01 12:48:05 +01:00
Florian Hotze 148c463a1c
Add-on store: Minor logo styling tweaks (#2435)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-29 23:37:38 +01:00
Florian Hotze 5159566e02
Fix service worker (#2433)
Regression from #2267.

This fixes the service-worker and switches from injecting the manifest
into a pre-provided service-worker to generating the service-worker
during webpack builder.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-29 12:30:29 +01:00
Florian Hotze ea28f32140
Remove Cordova from Main UI (#2432)
This removes Cordova from Main UI.

Cordova was used to build Main UI as an iOS or Android app (a webview
with pre-packed assets), but the Cordova component of Main UI is
currently unmaintained due to requiring lots of maintenance.
Both the iOS and the Android app have an integrated webview (without
pre-packed assets though), so Cordova is unlikely to be required in the
future.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-29 11:26:12 +01:00
Florian Hotze d6097a6346
Sidebar help: Use custom renderer instead of CSS for reduced list indentation (#2430)
Follow-up for #2423.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-29 11:03:31 +01:00
Jimmy Tanagra 1d22ce7e51 [blockly] Update multi-select plugin to v0.1.12 (#2419)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 23:20:28 +01:00
Jimmy Tanagra 50c43afc3b [blockly] Add multi-select plugin (#2419)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-28 23:20:28 +01:00