Commit Graph

219 Commits (7dd7f31cdd53cd5035f8d2e4680d02fa886649e9)

Author SHA1 Message Date
Wouter Born 824bbc4711
Start license headers with `/*` instead of `/**` (#2988)
Prevents JavaDoc tooling issues because these tools check comments
starting with `/**`.

Depends on #2987

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 18:49:02 +01:00
Wouter Born 4610a15ad1
Update license headers to 2025 (#2963)
Updates the license headers to 2025.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 17:09:54 +01:00
openhab-bot f3a973e4d3
New Crowdin updates (#2955) 2024-12-31 15:39:39 +01:00
openhab-bot ad971dc8bc
New Crowdin updates (#2916) 2024-12-28 13:21:56 +01:00
Holger Friedrich b54f9d2297
Prepare for OH 5.0.0 (#2924)
* Fix spotless after unleash

Depends on https://github.com/openhab/openhab-core/pull/4496

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 19:41:01 +01:00
openhab-bot f5a4bb3388 [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 17:12:57 +00:00
openhab-bot 7e8f460802
New Crowdin updates (#2906) 2024-12-09 23:25:59 +01:00
openhab-bot 1a208e77b6
New Crowdin updates (#2903) 2024-12-08 11:04:55 +01:00
lolodomo 7d80bbeb0e
[BasicUI] Replace OK by CLOSE in the 2 color pop-ups (#2895)
Also make the button label translatable.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-12-07 12:38:54 +01:00
lolodomo d6cc3419ff
[BasicUI] Fix unit determination for min/max from item state description (#2894)
Concerns the Colortemperaturepiucker element.

---------

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

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



After:

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

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-11-30 14:12:34 +01:00
lolodomo d5a0748b32
[BasicUI] Add preview color to Colorpicker widget (#2873)
Also cleanup class ColorpickerRenderer

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-18 08:58:09 +01:00
lolodomo e067305f32
[BasicUI] Fix selection of color temperature near min and max (#2871)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 18:20:59 +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
openhab-bot 9b55947508
New Crowdin updates (#2829) 2024-10-29 00:02:35 +01: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
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 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
lolodomo 6139039f6c
[BasicUI] Upgrade Material Icons (#2724)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-23 09:45:56 +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
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 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
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
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
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
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
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
openhab-bot 5c6a5d9ac2
New Crowdin updates (#2625) 2024-06-29 10:46:45 +02:00
openhab-bot eb0a24720d
New Crowdin updates (#2577) 2024-06-03 13:59:58 +02:00
lolodomo a76d0ed338
[BasicUI] Switch between several Button elements at a place in the grid (#2580)
Several Button elements are accepted at the same place in the grid only
when they all have visibility conditions.
In this case, the user must define proper conditions so that only one
button is visible at any time.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-19 15:05:03 +02:00
lolodomo 37cfea2862
[BasicUI] Switch with buttons: value displayed if pattern on widget (#2579)
When a Switch widget leads to the rendering with buttons, the value
should not be by default also displayed at the left of the buttons
(redundant information), except if it is requested through a state
pattern defined on the widget.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-18 17:32:37 +02:00
lolodomo 2fd4267ebc
[BasicUI] New Button element as child of Buttongrid (#2573)
Related to openhab/openhab-core#4173

Depends on openhab/openhab-core#4223

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-18 16:31:32 +02:00
lolodomo bcfd55fd6e
[BasicUI] Remove a useless call to function reloadIcon (slider widget) (#2578)
Follow up #2535

The function reloadIcon is already called by the function setValue at
line 636 just before calling setValuePrivate.

The icon continues being refreshed while moving the slider except if
releaseOnly parameter is set.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-18 11:54:40 +02:00
lolodomo ce17983cdf
[BasicUI] Remove a call to window.console (#2572)
Was added when implementing #2536 for test purpose and I forgot to
remove it.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-10 10:24:42 +02:00
lolodomo 02024c62b5
[BasicUI] Implement press & release button (#2536)
Related to openhab/openhab-core#3822

Depends on openhab/openhab-core#4183

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-06 20:55:24 +02:00
lolodomo 93f758b75b
[BasicUI] Fix build after a method renaming in core framework (#2557)
Related to openhab/openhab-core#3652 that renamed method setPageId into
updateSubscriptionLocation

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-02 11:01:55 +02:00
lolodomo b27d71392e
[BasicUI] Add special handling for "none" icon (#2534)
Same behaviour as in the Android app is now implemented for the "none"
icon. This icon means "no icon" and we don't want to request the icon
servlet. When this icon is associated to a sitemap element, the icon
servlet is no more requested. Instead, a simple empty SVG tag is
considered and inserted in the HTML page. There is also no dynamic
behaviour (with item state) applied for this icon.

Additionally, in case the loading of any OH icon fails, the IMG tag is
replaced by an empty SVG tag in the HTML page instead of updating the
IMG source with the none icon URL (triggering a potential new icon
servlet request).

Fix openhab/openhab-core#3977

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

---------

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-27 10:48:05 +02:00
lolodomo 0c7aa4d07d
[BasicUI] Fix slider behaviour and implement two different modes (#2535)
Fix #2525
Also related to openhab/openhab-core#4084 and openhab/openhab-core#3430

Two behaviour modes are now supported.
- If releaseOnly parameter is set, the new value is sent to the item
only when the slider is released.
- If releaseOnly parameter is not set, new values are sent to the item
while moving the slider. Events are sent at a certain frequency, this
frequency is defined by the sendFrequency parameter if set or every 200
ms by default. Event is not sent when the value is is unchanged (when
stopping the move but keeping the mouse pressed).

The brightness slider of the colorpicker widget is also updated to send
regular new color commands when moving the slider.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-21 16:29:19 +02:00
lolodomo 9e48ad8693
[BasicUI] Fix update of buttons (switch element) (#2538)
Fix #2537

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-21 11:40:15 +02:00
dependabot[bot] b614f97156
Bump tar from 6.1.13 to 6.2.1 in /bundles/org.openhab.ui.basic (#2531)
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.13 to 6.2.1.

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-20 21:21:07 +02:00
openhab-bot ac6b3a4eef
New Crowdin updates (#2528) 2024-04-12 12:37:18 +00:00
lolodomo aaf3edcd09
[BasicUI] Adjust user-defined colors to theme for better contrast (#2521)
Closes #1780

Colors are those defined by user through the labelcolor, valuecolor and
iconcolor parameters. The aim is to provide a good contrast n both
themes. For example white in light theme just leads to something not
visible. So black is used instead.

This behaviour is already implemented in the Android app with the same
adjustments.

Colors adjusted in light theme: yellow, pink, white, lime, aqua, silver
and gold.
Colors adjusted in dark theme: maroon, purple, green, navy, blue, black
and gold.

These color adjustments are controlled by a new Basic UI setting,
enabled by default. By disabling it, no adjustment is performed and the
old behaviour is restored.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-04-07 11:17:45 +02:00