- Set Maven version to 3.9.11 in .mvn/wrapper/maven-wrapper.properties
- Set SHA-256 checksum for wrapper JAR to ensure integrity
Signed-off-by: Wouter Born <github@maindrain.net>
Fixes an issue where rules list tabbar Item styling applied globally to
all tabbars and made all tab links appear active.
Regression from #3232.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes#3290.
Fixes
```
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'slots' -> object with constructor 'Object'
| property 'widgets' -> object with constructor 'Array'
| index 0 -> object with constructor 'Object'
--- property 'parent' closes the circle
```
when trying to save a sitemap.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes#3291.
`icon=` or `staticIcon=` values names ending with a number double quotes
around them. Properly parse and generate those.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Bumps
[org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer)
from 3.5.0 to 3.6.1.
Signed-off-by: dependabot[bot] <support@github.com>
We have Dependabot active in core and distro for quite a while, and
recently introduced it in add-ons repo.
The first part of the config just takes care of keeping _Github Actions_
up to date.
The second part takes care of _Maven plugins_.
Maven standard config will both update the plugins (which it typically
wanted) but also all dependences (which is largely not wanted). This is
why this PR uses only specific names, e.g. everything that matches the
string `plugin`.
I have defined some exclusions. Maybe we overlook some plugins which are
not matching the patterns; maybe we need some more exclusions.
Note: This config is carried over from add-ons without change, maybe a
few allow/ignore statements are not needed.
See also
openhab/openhab-addons#19029openhab/openhab-addons#19039
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Top-level semantic values like Point, Equipment, Location broke the
item-details view.
Regression from #3178.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Documentation link for certain types isn't displayed because the lookup
was done using the wrong key.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Closes https://github.com/openhab/openhab-webui/issues/3211.
This PR changes the semantics picker to use a treeview.
This treeview is inherited from
https://github.com/openhab/openhab-webui/pull/3165 and enhanced.
It therefore also introduces some enhancements in the semantic treeview maintenance.
The semantics treeview presents a searchable treeview of the semantic
classes/properties, limited to what is relevant in the context. When
used as a picker, radio buttons are used for picking. It has filter and
expand capabilities, options to show the semantic name and synonyms and
tooltips showing the semantic descriptions if available.
---------
Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Resolves#433.
Adding to the model from thing channels has been enhanced in a few ways:
- Add Points to Model: now allows to pick an existing item already
linked to the channel. The item will get default semantic tags from the
channel defaults if it does not have semantic tags already.
- Add Equipment to Model: ability to pick an existing group for the
equipment. This group will get the default equipment semantic tag from
the thing if it does not have a semantic tag already. Groups tagged as
locations cannot be selected to guard model consistency. Adding points
in this case is enhanced just as above.
When doing this, I ran into some reactivity issues with oh-icon, where
switching icon and state at the same time caused update issues. This was
caused by conflicts in the 2 watchers updating the same properties. I
fixed that by grouping these 2 elements in 1 object with a single
watcher.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Follow-up for #3197.
- Fixes issue with "overcrowded" rules-list selection toolbar on narrow screens.
- Adds ability to regenerate multiple rules at once from the rules-list selection.
- Adds ability to select all rules of a certain template by clicking on the template badge in the rules-list selection.
- Shows the script type in the top bar as subtitle for scripted rules (e.g. JS Scripting).
---------
Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
This adds a page with a treeview of the existing semantic tags in the
development tools and allows adding (and editing) custom semantic tags.
With this, you can maintain custom tags from the UI (it was already
possible from `tags.yaml` files before). Moving around custom tags with
drag and drop is possible.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Fixes#1949.
This monkey patches parseFloat to also handle decimal comma and updates
oh-input to take advantage of that.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This improves DX by adding the ability to use ./mvnw, so you aren't
required to manually install Maven anymore.
It also fixes (rare) issues with platform specific Maven builds (e.g.
https://github.com/codehaus-plexus/plexus-compiler/issues/394).
Also use Maven Wrapper in GitHub Actions CI, which eliminates the need
for the stCarols/setup-maven action.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Closes https://github.com/openhab/openhab-webui/issues/1503.
https://github.com/openhab/openhab-webui/issues/1503 is caused by the
display state of the Item formatting the raw state different from the
slider.
With this change, it is possible to make the oh-slider-item ignore the
display state for the displayed state value.
oh-slider also ignores the display state if that value is set.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Closes#2945.
Load the markdown source files used by the add-on details and the
developer sidebar from the versioned git branch instead of always using
the latest docs. This is implemented by loading the docs src from the
website, were Netlify redirects are used to point each version to the
proper branch.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This does:
1. The collection methods can now not only include exact Property /
Equipment values but also (_**new**_) children of those values
(optionally). This allows display of not only Lightbulb and Lightstripe,
but also any LightSource or child thereof. And also of doors and windows
that support either OpenState (digital) or OpenLevel (analog) positions;
to name a couple.
2. Aligns the code in this PR with the
[documentation](https://github.com/openhab/openhab-docs/pull/2514) and
vice versa; taking into account
[#556](https://github.com/openhab/openhab-webui/issues/556) and
subsequent PRs related to that. This PR and #3239 added support for
Motion detectors under presence, other displays under screens.
3. Cleans up the collection of lighting points to prevent duplicate
entries in the location card; that may otherwise arise when (say) the
user connects a Switch, a Dimmer, and a Color item to the same light
channel.
Resolves
https://github.com/openhab/openhab-webui/pull/3239#issuecomment-3004118138
---------
Also-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This fixes 2 issues:
- When picking items from model, the already checked or selected items
would not appear if these are non-semantic. It would also return a bad
selection (selecting the already selected semantic item twice). This PR
fixes it by enabling showNonSemantic if any of the selected or checked
items are non-semantic and expanding the tree to show all selected or
checked items.
- Drag/drop sometimes fails when moving into a subtree of a sibling of a
node being moved, as the added and removed events where not generated,
but a moved event is created instead. This fix also interprets the moved
event. To make things more easily understood for the users when
dragging, the ghost element is now hidden, as it sometimes showed in
another place than where it would be dropped.
- Drag/drop performance on large models was sometimes very slugish. Some
performance improvements where made that should improve this.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Follow-up for #3249.
Depends on https://github.com/openhab/openhab-core/pull/4874.
This allows to add and edit editable metadata for uneditable Items, it
only blocks edition of uneditable metadata.
For the `widget` metaddata, it allow to try out changes if not editable,
but does not allow saving them.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
When viewing an uneditable item, its metadata is shown as editable in
the UI. Use the editable property of the Item to decide whether its
metadata is editable. (Technically seen you can have managed metadata
for an unmanaged item, but this will cause confusing behaviour for the
user).
Signed-off-by: Florian Hotze <dev@florianhotze.com>