Commit Graph

658 Commits (2e46427c754c834d5d53fc06f9c86cd541f12a84)

Author SHA1 Message Date
Wouter Born 2e46427c75
GitHub Actions workflow improvements (#1434)
* Upgrade actions to latest versions
* Upgrade Maven to 3.8.6
* Use Temurin JDK instead of Zulu JDK

The Temurin JDK is preinstalled in the [Ubuntu image](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#java) whereas the Zulu JDK first need to be downloaded.
It should also perform better because the Temurin JDK is linked to glibc 2.12 whereas the Zulu JDK is linked to glibc 2.5.

Also adds missing wildcards to the .gitattributes file.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-07-03 15:55:17 +02:00
Kai Kreuzer 74666a102b
Apply spotless (#1437)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:20:54 +02:00
openhab-bot 210ab3058c [unleash-maven-plugin] Preparation for next development cycle. 2022-06-26 23:10:41 +00:00
Yannick Schaus dd9e29eea1
[habpanel] Remove ES6 syntax in dummy widget (#1433)
#1380 introduced new code with ES6 syntax (arrow functions) that isn't supported in older browsers.
See https://github.com/openhab/openhab-webui/pull/1380#issuecomment-1166344112

Reimplement using the code from the selection widget to determine the option
(uses angularJS helpers)

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-06-26 02:03:17 +02:00
Florian Hotze d0df331442
Update autocompletion for ECMAScript2021 (#1421)
This updates `addItem(...)` and `updateItem(...)` for the breaking
changes from https://github.com/openhab/openhab-js/pull/109.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Yannick Schaus <github@schaus.net>
2022-06-24 12:36:14 +02:00
openhab-bot be5f2ee88c
New Crowdin updates (#1429)
* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* New translations opennlphli.properties (Portuguese)

* New translations en.json (Portuguese)

* New translations en.json (Latvian)

* New translations en.json (Bulgarian)

* New translations en.json (German)

* New translations en.json (Portuguese)

* New translations en.json (Turkish)

* New translations en.json (Latvian)

* New translations en.json (Latvian)

* New translations en.json (German)

* New translations en.json (Lithuanian)

* New translations en.json (Turkish)

* New translations en.json (Turkish)

* New translations en.json (Hebrew)

* New translations en.json (Lithuanian)

* New translations en.json (Hebrew)

* New translations en.json (Turkish)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations cometvisu.properties (Bulgarian)

* New translations cometvisu.properties (Catalan)

* New translations cometvisu.properties (Czech)

* New translations cometvisu.properties (German)

* New translations cometvisu.properties (Hebrew)

* New translations cometvisu.properties (Hungarian)

* New translations en.json (Turkish)

* New translations cometvisu.properties (Dutch)

* New translations cometvisu.properties (Russian)

* New translations opennlphli.properties (Catalan)

* New translations opennlphli.properties (Czech)

* New translations opennlphli.properties (German)

* New translations opennlphli.properties (Hebrew)

* New translations opennlphli.properties (Hungarian)

* New translations opennlphli.properties (Dutch)

* New translations opennlphli.properties (Russian)

* New translations opennlphli.properties (Bulgarian)

* New translations basic.properties (Bulgarian)

* New translations basic.properties (Dutch)

* New translations basic.properties (Hungarian)

* New translations basic.properties (Hebrew)

* New translations basic.properties (German)

* New translations basic.properties (Czech)

* New translations basic.properties (Catalan)

* New translations iconset.properties (German)

* New translations iconset.properties (Russian)

* New translations iconset.properties (Dutch)

* New translations iconset.properties (Hungarian)

* New translations iconset.properties (Hebrew)

* New translations iconset.properties (Czech)

* New translations iconset.properties (Catalan)

* New translations iconset.properties (Bulgarian)

* New translations basic.properties (Russian)
2022-06-24 12:27:42 +02:00
Bastiaan 3e7f49b657
Dummy and Clock widget improvements (#1380)
* Add color picking to dummy and clock widget
* Add state description option to dummy widget

Closes: #1349
Closes: #1293
Closes: #1294

Signed-off-by: Bastiaan van Haastrecht <b.vanhaastrecht@gmail.com>
2022-06-23 23:23:57 +02:00
Dan Cunningham 9305080c7b
Adds WebRTC support to video widget (#1386)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-06-23 23:17:37 +02:00
Dan Cunningham 182aada13d
Foreground detection mixin service for widgets (#1404)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Also-by: Yannick Schaus <github@schaus.net>
2022-06-22 15:44:31 +02:00
eugen 78d6090343
Add missing homekit parameters (#1420)
Signed-off-by: Eugen Freiter <freiter@gmx.de>
2022-06-22 14:40:27 +02:00
dependabot[bot] dd47c79b1e
Bump url-parse from 1.4.7 to 1.5.10 in /bundles/org.openhab.ui/web (#1327)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 17:02:45 +02:00
dependabot[bot] f3b0c36390
Bump postcss from 7.0.14 to 7.0.39 in /bundles/org.openhab.ui/web (#1331)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.14 to 7.0.39.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.14...7.0.39)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 17:02:03 +02:00
dependabot[bot] 8d67bfd44f
Bump node-fetch from 2.6.1 to 2.6.7 in /bundles/org.openhab.ui/web (#1332)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 17:00:31 +02:00
dependabot[bot] e228333f5d
Bump ws from 5.2.2 to 5.2.3 in /bundles/org.openhab.ui/web (#1333)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 17:00:19 +02:00
dependabot[bot] 7f1d3a74bd
Bump minimist from 1.2.5 to 1.2.6 in /bundles/org.openhab.ui.basic (#1348)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 16:59:59 +02:00
dependabot[bot] cece048a2d
Bump eventsource from 1.0.7 to 1.1.2 in /bundles/org.openhab.ui/web (#1415)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.2.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.2)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 16:59:43 +02:00
eugen ee30ec9261
homekit: add support for parameter groups (#1416)
Signed-off-by: Eugen Freiter <freiter@gmx.de>
2022-06-19 16:58:13 +02:00
stefan-hoehn 103b4a605a
[blockly] add zoom controls to workspace (#1414)
Rework bottom toolbar & blocks/code switch

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Also-by: Yannick Schaus <github@schaus.net>
2022-06-19 16:57:03 +02:00
stefan-hoehn e6871029ac
Blockly datesupport fix, rearrange item & things toolbar block order (#1410)
fix datetime block type, add missing options to datetime block, rearrange item blocks, typos

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
2022-06-19 16:55:47 +02:00
Bill Welliver c7ba3effeb
oh-icon: Verify icon property is a string before performing string operations (#1412)
Fixes #1411.

Signed-off-by: H. William Welliver III <william@welliver.org>
2022-06-18 11:12:30 +02:00
Gautier 62855efd04
Provide link styling to list item used as equipment accordion item. (#1408)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-06-16 22:11:36 +02:00
stefan-hoehn fd8bfaac80
Blockly: fix datetime block type, add missing options to datetime block, rearrange item blocks, typos (#1409)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
2022-06-16 20:53:50 +02:00
Yannick Schaus 3cbe94c627
Add source-map-loader dependency (#1406)
(the last version that supports webpack 4)
Also enforce the use of the SOURCE_MAPS env variable for the Blockly rule.

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-06-16 20:50:22 +02:00
Gautier 7932719d8e
Equipment as accordion click through fixes (#1407)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-06-14 20:14:25 +02:00
Gautier 90eeaedd9b
Fixes the end of the loop in model error message appearing while page loading indicator was displayed (without actual loop error) (#1405)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-06-10 20:08:31 +02:00
J-N-K f699f11dfc
Support formatting labels in charts in Basic UI (#1379)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-06-04 19:57:39 +02:00
Wouter Born cbf32cc069
Update bnd to 6.3.0 (#1403)
For release notes, see:

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

Related to openhab/openhab-core#2991

Signed-off-by: Wouter Born <github@maindrain.net>
2022-06-04 11:54:05 +02:00
stefan-hoehn f1851e9be2
[blockly] add help button to OH docs, provide blockly source maps for debugging (#1401)
Signed-off-by: Stefan Höhn <stefan.hoehn@nfon.com>
2022-06-03 21:08:12 +02:00
Wouter Born a8d5c0ced5
Upgrade SAT to 0.13.0 (#1399)
See the [0.13.0](https://github.com/openhab/static-code-analysis/milestone/20?closed=1) milestone for all changes in this release.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-05-29 23:00:13 +02:00
Gautier c4493ee96e
Configuration options for location context labels in Equipment and Properties card of homepage tabs. (#1395)
Options available are the path in model (joining parents label), the parent label, the item name or nothing. The possibility to trim beginning or end of path is also configurable.
If nothing is selected, will display the footer defined in metadata (if any).

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-29 20:42:30 +02:00
Gautier c8edabd586
Prevent some undesired 'NULL' labels in lists for un-typed Groups. (#1398)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-29 20:06:53 +02:00
stefan-hoehn 75e69dc1bb
Blockly: add more datetime support, type-independent log block , CRLF block (#1382)
Expand openHAB toolbar category on desktops only.

Signed-off-by: Stefan Höhn <stefan.hoehn@nfon.com>
Also-by: Yannick Schaus <github@schaus.net>
2022-05-29 19:59:03 +02:00
Gautier 0e678f496e
Addition of page action configuration option to override vars in target page. (#1394)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-20 23:43:51 +02:00
Gautier 49c2a9ad74
Fixes item value hidden for equipment accordion button (#1396)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-20 23:40:56 +02:00
Gautier 7302a311a1
Canvas layout bug fixes and edition mode UI improvements (#1393)
Display of optional id in edition.
Display of size/position during resize/drag action.
Temporarily promote active item on top for clarity and to avoid having popup menu hidden by other items.
Fix bug where canvas items would snap to grid in run mode upon user interaction if grid is enabled.
Allow positioning widgets on the borders of canvas layouts.
Multiple canvas items selection and moving.
Selection using shift key, moving around via dragging or arrow keys.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-20 23:39:07 +02:00
Sami Salonen 3553ba7a82
add ignore commands checkbox to expire metadata config (#1388)
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-05-10 21:38:58 +02:00
Gautier 4375e05db0
Fixes the parsing of the model for Location cards following PR #1307. (#1385)
Changes the parsing of the model so that Equipment or Points that are respectively sub-Equipment or Part Of an Equipment while having a Location parent can be displayed in the relevant Location tab card.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2022-05-04 20:20:40 +02:00
Mark Herwege da8621c622
Add option to use the item's displayState in oh-input (#1350)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-05-01 00:21:54 +02:00
Łukasz Dywicki 17961655d2
Allow resource overrides for main UI (#1359)
Allows using a OSGi bundle fragment to put new/additional resources
(ex. patch/app/index.html, patch/app/css/xyz.css etc.) to override built-in resources
like CSS or the logo.
Closes #551.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
2022-04-30 16:50:05 +02:00
Gautier 26a535fd3b
New option to display equipment as accordion in Locations cards (#1307)
* New option to display equipment as accordion in Locations cards, with the possibility to promote the main item of the equipment (widgetOrder == 0) as the accordion opening item, while keeping the functionality of the control.

* Improvements to equipment display in model pages.
  - Removed duplicate filtering and sorting of model items (2-3 fold execution time reduction).
  - Factorized some equipment display code.
  - Renamed equipment options.
  - Implementation of accordion style for equipment in Equipment page.
  - Slots assigned to the custom list item widget are now copied to base widget so that accordion chevron and is displayed 
and open even works for custom widgets used as equipment accordion open button.
  - Detection of loop in semantic model to prevent stack overflow error and indicate correction path.

Signed-off-by: Gautier Taravella <tarag@mailbox.org>
Also-by: Yannick Schaus <github@schaus.net>
2022-04-30 16:32:44 +02:00
Wouter Born f7721e87bd
Upgrade to Karaf 4.3.7 (#1377)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-28 22:01:19 +02:00
J-N-K b7500b5551
Add DateTimeTrigger in rules configuration (#1357)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-25 19:21:31 +02:00
J-N-K 7f1a547288
Add .gradle/ to .gitignore (#1356)
IntelliJ IDEA adds files in .gradle/. These should be ignored.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-22 10:51:51 +02:00
J-N-K d0b1a448e8
Upgrade Maven builds to Node.js v16 and npm v8 (#1353)
For Main UI & Basic UI, with appropriate changes for the latter.
Leaving HABot to current versions for now until the build is fixed.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-19 20:02:57 +02:00
Flole998 76c4dc9795
Use forceAsItem-option from sitemaps (#1256)
Depends-on: openhab/openhab-core#2657

Signed-off-by: Flole <flole@flole.de>
2022-04-19 19:57:09 +02:00
Holger Friedrich ea6726d724
UI: Thing configuration: Mask passwords in configuration read from files (#1342)
For things configured via configuration files, the UI now masks passwords
by default. The behavior is now similar to things created in
the UI: passwords are only displayed after a click on the icon.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-04-05 22:43:28 +02:00
eugen 6f383399a8
Add support for additional homekit accessories (#1347)
Signed-off-by: Eugen Freiter <freiter@gmx.de>
2022-04-05 21:12:25 +02:00
stefan-hoehn fbb9a7ff51
[blockly] change help urls to official OH blockly rules docs (#1337)
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
2022-04-05 21:04:00 +02:00
Wouter Born 77872f281e
Remove HABot service configuration (#1345)
There is now a HABot service configuration entry without any configuration parameters because those got removed in #1031.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-26 20:30:29 +01:00
Yannick Schaus a181fbbb25
Fix incorrect parameter group definition (#1344)
Bug introduced in #1313 and breaking config sheets in various parts of the UI.

Fixes #1343.
Fixes  https://github.com/openhab/openhab-core/issues/2850.

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-03-21 18:13:43 +01:00