Commit Graph

734 Commits (e77e3f48d50ed79fa30df167b361e09da8ae7855)

Author SHA1 Message Date
Wouter Born e77e3f48d5
GitHub Actions workflow upgrades (#1573)
* Upgrade actions to fix deprecation warnings
* Use ubuntu-22.04 for builds

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-11 16:56:56 +01:00
Florian Michel 73d4935c7d
Consider semantics for default standalone/item/cell widget selection (#1558)
See https://github.com/openhab/openhab-webui/pull/1558#issuecomment-1345574684 for details.

Closes #1494.

Signed-off-by: Florian Michel <florianmichel@hotmail.de>
Also-by: Yannick Schaus <github@schaus.net>
2022-12-11 16:30:00 +01:00
Gautier 962de8a426
Fixes to canvas layout display in full screen (#1554)
Popups are now properly displayed above canvas layouts in full screen and switching to full screen is faster.
Uses the shared page fullscreen button
Button is now visible even if navigation bar is not hidden (should fix it for grid layouts as well)
Small typos in parameters' description fixed.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-12-11 14:11:28 +01:00
Florian Michel 1d7a3a9875
Add possibility to edit JSON variable keys in widgets (#1556)
Implements a possibility to work with nested JSON objects/arrays in widget variables. It allows to set the value of a custom key of the variable. The key can be nested in any depth to allow more complex scenarios. 

Adds a new action configuration `actionVariableKey` which allows to set the key of the object. The configuration syntax is like this:
```
actionVariableKey: name
actionVariableKey: user.name
actionVariableKey: user[0].address[1].street
actionVariableKey: [0]
actionVariableKey: [0].label
```

If you want to edit the key `user.name` but the key `user` is missing in the object, the parent hierarchy is automatically created. (Same applies if you want to add an value to an array but the array is not existing) This should make it easier for not so advanced users.

Signed-off-by: Florian Michel <florianmichel@hotmail.de>
Also-by: Yannick Schaus <github@schaus.net>
2022-12-11 12:35:11 +01:00
openhab-bot b5b783033a
New Crowdin updates (#1526)
* New translations en.json (Italian)

* New translations basic.properties (German)

* New translations opennlphli.properties (German)

* New translations iconset.properties (Danish)

* New translations basic.properties (Dutch)

* New translations opennlphli.properties (Dutch)

* New translations en.json (Dutch)
2022-12-11 11:05:30 +01:00
dependabot[bot] 9bf2051b08
Bump qs from 6.5.2 to 6.5.3 in /bundles/org.openhab.ui.basic (#1569)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-11 11:02:21 +01:00
Wouter Born 63e842697a
Update bnd to 6.4.0 (#1568)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.4.0

Related to openhab/openhab-core#3205

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-10 13:31:43 +01:00
dependabot[bot] 891baccdd7
Bump ejs and webpack-bundle-analyzer in /bundles/org.openhab.ui/web (#1515)
Removes [ejs](https://github.com/mde/ejs). It's no longer used after updating ancestor dependency [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer). These dependencies need to be updated together.


Removes `ejs`

Updates `webpack-bundle-analyzer` from 3.9.0 to 4.6.1
- [Release notes](https://github.com/webpack-contrib/webpack-bundle-analyzer/releases)
- [Changelog](https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/webpack-bundle-analyzer/commits/v4.6.1)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
- dependency-name: webpack-bundle-analyzer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 12:06:57 +01:00
dependabot[bot] 4fe70a73ca
Bump decode-uri-component in /bundles/org.openhab.ui.basic (#1560)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:54:46 +01:00
dependabot[bot] a46328cbc5
Bump decode-uri-component in /bundles/org.openhab.ui.habpanel/web (#1561)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:53:40 +01:00
dependabot[bot] 4f7ac329c0
Bump express from 4.17.1 to 4.18.2 in /bundles/org.openhab.ui/web (#1570)
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:53:11 +01:00
dependabot[bot] 9827ca0c3a
Bump simple-plist and cordova-ios in /bundles/org.openhab.ui/web/cordova (#1512)
Bumps [simple-plist](https://github.com/wollardj/simple-plist) to 1.3.1 and updates ancestor dependency [cordova-ios](https://github.com/apache/cordova-ios). These dependencies need to be updated together.


Updates `simple-plist` from 0.2.1 to 1.3.1
- [Release notes](https://github.com/wollardj/simple-plist/releases)
- [Commits](https://github.com/wollardj/simple-plist/compare/0.2.1...v1.3.1)

Updates `cordova-ios` from 4.5.5 to 6.2.0
- [Release notes](https://github.com/apache/cordova-ios/releases)
- [Changelog](https://github.com/apache/cordova-ios/blob/master/RELEASENOTES.md)
- [Commits](https://github.com/apache/cordova-ios/compare/4.5.5...6.2.0)

---
updated-dependencies:
- dependency-name: simple-plist
  dependency-type: indirect
- dependency-name: cordova-ios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:45:01 +01:00
stefan-hoehn 8d60efb8e8
[blockly] add new list, item, persistence, text blocks (#1549)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
2022-12-10 11:40:50 +01:00
dependabot[bot] d53fcede25
Bump decode-uri-component in /bundles/org.openhab.ui.habpanel/web (#1561)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:26:39 +01:00
dependabot[bot] 8546d43bc8
Bump decode-uri-component in /bundles/org.openhab.ui/web (#1562)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:26:14 +01:00
dependabot[bot] 25ad205c21
Bump decode-uri-component in /bundles/org.openhab.ui.habot/web (#1563)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:25:35 +01:00
dependabot[bot] 71cfdf0f0c
Bump qs from 6.5.2 to 6.5.3 in /bundles/org.openhab.ui/web (#1566)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:24:21 +01:00
Florian Michel b913dae7d1
fix oh-trend sampling property (#1564)
Signed-off-by: Florian Michel <florianmichel@hotmail.de>
2022-12-10 10:18:34 +01:00
Wouter Born e11bf7e219
Karaf feature improvements (#1541)
* Aggregate features like in the openhab-addons repository
* Verify features in bundle projects
* Add basicui.cfg file for Basic UI in openhab-ui-external
* Fix CometVisu rrd4j/jackson dependency version mismatch

Also-by: Sebastian Gerber <git@sgerber.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-05 23:04:41 +01:00
Michael Krug fd40fea0c5
Update GA metadata to current state (#1539)
Signed-off-by: Michael Krug <michi.krug@gmail.com>
2022-12-05 00:22:49 +01:00
Gautier 3ca7ba08fb
New sub-component for oh-cards footers to allow several text layouts (#1545)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-12-05 00:15:16 +01:00
Florian Michel 6b486ccd48
add robots.txt to disallow search crawler (#1557)
Signed-off-by: Florian Michel <florianmichel@hotmail.de>
2022-12-04 23:59:12 +01:00
Florian Michel f42a36f3e7
Fix items disappearing from model if stateDescription is added (#1559)
Signed-off-by: Florian Michel <florianmichel@hotmail.de>
2022-12-04 23:55:34 +01:00
Florian Hotze 6e3aad16ec
[MainUI] Update JS Scripting tern definitions (#1552)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-12-04 23:37:16 +01:00
lolodomo 4eedb63384
[BasicUI] Fix the color picker (#1548)
* [BasicUI] Color picker: fix when clicking outside the main circle

Fix #1140

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-12-04 20:14:45 +01:00
Florian Hotze 043abf4aad
[MainUI] Explain how to build the component docs (#1546)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-27 20:47:25 +01:00
lolodomo 23fc572a62
[BasicUI] Consider item state for the color picker (#1547)
It was not working if you added a label pattern to your color item

Related to discussion in #427

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-19 20:17:46 +01:00
stefan-hoehn f1db954f76
Add searching rules/scripts by id and rule status (#1540)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2022-11-16 23:04:44 +01:00
eugen 322263a336
add support for further HomeKit parameters (#1543)
Signed-off-by: Eugen <eugen@relotrust.com>
2022-11-16 23:02:49 +01:00
Jeremy 26c3e35356
Update alexa camera stream basic auth parameters (#1544)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2022-11-16 23:02:02 +01:00
Alwin Lohrie 587994b7ff
Add-on store: put boxes around addon cards for better separation (#1524)
Co-authored-by: Yannick Schaus <github@schaus.net>
Signed-off-by: niwla23 <46248939+niwla23@users.noreply.github.com>
2022-11-08 19:01:35 +01:00
Mark Herwege 4ef291ee1b
Improve sitemap validation (#1530)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Also-by: Yannick Schaus <github@schaus.net>
2022-11-08 17:36:57 +01:00
Gautier 4d1a94ac48
Reverts equipment accordion link styling (#1436)
Fix problem where accordion items caused issue in the events handling, preventing promoted widgets from working (e.g. oh-toggle).

Add styling to present equipment as accordion as activable items (pointer, hover and active states), in a similar fashion as regular link list items.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-11-08 14:51:59 +01:00
Tobias Bräutigam 531dabfa83
Fix cometvisu backend (#1535)
* update dependencies and files needed for code generation
* Fix parsing arrays - cache being overwritten. Remove redundant array evaluate. (#1531)
* Add missing features to cometvisu rest api backend, refactor some coding
mark old backend implementation as deprecated
* only download a real release (skip drafts/pre-releases),
fix zip asset detection
* update documentation
* remove obsolete header
* fix version comparison, handle equal versions correctly
* Revert "Fix parsing arrays - cache being overwritten. Remove redundant array evaluate. (#1531)"

Co-authored-by: Boris Krivonog <boris.krivonog@inova.si>
Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2022-11-05 17:51:06 +01:00
Boris Krivonog 4cdb037177
Fix parsing arrays - cache being overwritten. Remove redundant array evaluate. (#1531)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2022-10-20 21:01:24 +02:00
Yannick Schaus 5960cbe55f
Temporarily remove state options check in analyzer (#1527)
Close #1523.

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-10-14 19:53:05 +02:00
Dan Cunningham 5c6a1572c8
Use a custom servlet for serving files to support caching of files (#1521)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-10-14 18:03:06 +02:00
Mark Herwege b47ed942e6
input widgets: fix datetime-local and add datepicker time (#1525)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-10-13 21:48:23 +02:00
JustinGeorgi 79f5a6e730
Update widget expression capabilities (#1522)
- Add @ & @@ operators to insert item states.
- Add `user` context object.
- Allow expressions to specify the component type.
- Allow HTML elements as component types to build HTML structures with components & slots.
- Add 'Content' element (add the `text` config parameter inline).

Signed-off-by: justin <justin.georgi@gmail.com>
2022-10-11 19:42:09 +02:00
openhab-bot 6e9cc922fe
New Crowdin updates (#1442)
* New translations en.json (Norwegian)

* New translations en.json (Norwegian)

* New translations en.json (Norwegian)

* New translations en.json (Norwegian)

* New translations en.json (Norwegian)

* New translations iconset.properties (Norwegian)

* New translations basic.properties (Norwegian)

* New translations opennlphli.properties (Norwegian)

* New translations basic.properties (Swedish)

* New translations iconset.properties (Finnish)

* New translations en.json (Hebrew)

* New translations cometvisu.properties (Vietnamese)

* New translations basic.properties (Vietnamese)

* New translations opennlphli.properties (Hebrew)

* New translations en.json (Chinese Simplified)

* New translations opennlphli.properties (Chinese Simplified)

* New translations iconset.properties (Chinese Simplified)

* New translations basic.properties (Chinese Simplified)

* New translations cometvisu.properties (Chinese Simplified)

* New translations en.json (German)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations cometvisu.properties (Italian)

* New translations basic.properties (Italian)

* New translations en.json (Italian)

* New translations opennlphli.properties (Italian)

* New translations iconset.properties (Italian)

* New translations en.json (Polish)
2022-10-09 14:50:46 +02:00
Florian Hotze bf59452a6a
Access screen info in expressions context (#1510)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Yannick Schaus <github@schaus.net>
2022-10-09 14:45:16 +02:00
Florian Hotze e0b95d6764
[MainUI] Evaluate expressions in configuration Arrays & Update `actionPhotos` docs (#1519)
* [MainUI] Improve docs for the `actionPhotos` prop & Make Item start with uppercase

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>

* [MainUI] Regenerate component docs

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>

* [MainUI] widget-mixin:  Evaluate expressions in Arrays

This adds support for evaluating expressions in Arrays of the configuration of a component.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-10-09 02:40:07 +02:00
dependabot[bot] 6e45e04934
Bump terser from 4.8.0 to 4.8.1 in /bundles/org.openhab.ui/web (#1457)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-08 18:45:06 +02:00
dependabot[bot] 24c94c4037
Bump css-what from 2.1.2 to 2.1.3 in /bundles/org.openhab.ui/web (#1508)
Bumps [css-what](https://github.com/fb55/css-what) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/fb55/css-what/releases)
- [Commits](https://github.com/fb55/css-what/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: css-what
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-08 18:43:52 +02:00
Mateusz Bronk 9246175911
Thing "actions" config param handling made generic (#1498)
For Main UI's Thing-Details view.
Matching is by group param context ("actions") first, then falls back to
"by name" for Z-Wave binding backwards-compatibility.

Closes #1491.

Signed-off-by: Mateusz Bronk <bronk.m+gh@gmail.com>
Also-by: Yannick Schaus <github@schaus.net>
2022-10-08 18:41:52 +02:00
Mark Herwege 72fe51ea1d
Add missing sitemap attributes (#1487)
Closes #324.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-10-08 18:36:47 +02:00
Dan Cunningham 09adec507b
Monitor SSE Connection Health (#1499)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-10-07 22:15:52 +02:00
Yannick Schaus ce8d46a66c
Fix config sheet & parameter group padding (#1501)
Fixes #1500.

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-10-05 21:05:44 +02:00
jsjames 7feb536391
Adjust z-index for the oh-masonry component (#1472)
This was necessary to ensure that when an f7-card was expanded, the focus was on the expanded card.

Signed-off-by: Jeff James <jeff@james-online.com>
2022-09-24 21:46:50 +02:00
EngiNearEngiFar a42d176a9d
fixed link for f7 icons (#1497) 2022-09-24 21:43:42 +02:00