Commit Graph

344 Commits (7ba33ee13838e24cb4d89f54bad7ed4f897fb0b9)

Author SHA1 Message Date
Yannick Schaus 7ba33ee138 Revert changes to NPM files accidentally made in e0b5984942
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-12 16:08:25 +01:00
Kai Kreuzer dda1e78fb8 Fixed BasicUI build
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-01-11 20:03:31 +01:00
openhab-bot b5bd59b8d1 New Crowdin updates (#679)
Incl. 3 new complete translations in:
- Greek
- Hebrew
- Portuguese

Partial translation in:
- Slovak

Fixes for:
- Hungarian
- Ukrainian
2021-01-11 12:51:29 +01:00
Jerome Luckenbach 8be38a8992 [Basic UI] Remove Paper UI reference in readme, fix Markdown (#782)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-01-11 12:44:38 +01:00
Yannick Schaus 1f54695f7b Invoke the script editor directly for file-provisioned rules (#776)
Add comments on top of the script describing the triggers.
Fixes #697.

Add syntax highlighting for:
- Python scripts (application/python);
- Ruby scripts (application/x-ruby - upcoming script engine);
- Floor plan page YAML (application/vnd.openhab.uicomponent+yaml;type=plan)

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:44:24 +01:00
Yannick Schaus dda747fd26 Inbox: Fix error when deleting, add ability to set custom ID (#775)
Fixes #744.
Closes #474.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:44:18 +01:00
Yannick Schaus 5a6f47f33e Don't show edit/save buttons in model if item is not editable (#774)
Fixes #694.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:42:20 +01:00
Yannick Schaus c5cb5716e5 Only show list indexes on mobile devices (#773)
Remove list index in binding selection.

Fixes #755.
Fixes #752.
Fixes #704.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:42:11 +01:00
Yannick Schaus 3f0ee106da Consider alarms part of equipment in location glance badges (#772)
Fixes #708.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:41:52 +01:00
Yannick Schaus 9a02302036 Consider blinds open when state is ON or 0 in blinds glance (#771)
Fixes #747.
Fixes #746.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:41:47 +01:00
Yannick Schaus 917d764d6d Fix measurement badges display condition (#770)
Fixes #750.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:41:35 +01:00
Yannick Schaus 94f4058514 Fallback to UIDs if things have no label during sorting (#769)
Fixes #762.
(but there is probably also an issue in the core
that strips the labels sometimes).

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-11 12:41:29 +01:00
Garth Bushell 3bcf1d6770 Take all door subclasses in door location glance badge (#727)
(except GarageDoor which has its own badge)

Signed-off-by: Garth Bushell <garth@garthy.com>
2021-01-11 12:41:14 +01:00
Holger Hees 56b5c4205f [habpanel] Remove ItemStateEvent detection (#737)
Signed-off-by: Holger Hees <holger.hees@gmail.com>
2021-01-11 12:41:07 +01:00
Wouter Born 8d8d8f3ed9 Update license headers to 2021 (#739)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-11 12:40:23 +01:00
Eiko Wagenknecht 47b0dac5d2 Fix #538 - Do not concatenate search for items (#726)
Remove misleading code - searchIn parameter is not parsed for virtual lists

Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-01-11 12:39:11 +01:00
Eiko Wagenknecht 6e3e6b2086 Fix #722 - Show current GA metadata when editing (#723)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-01-11 12:39:06 +01:00
Eiko Wagenknecht 56e0abf3cd Fix #720 - Fix various problems with google assistant metadata UI (#721)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-01-11 12:39:03 +01:00
Eiko Wagenknecht 8f447b2d60 Fix #684 - Allow diacritics in search bars (#718)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-01-11 12:38:49 +01:00
Dan Cunningham c326c54afb CSP: allow blob: URLs (#698)
Needed in the somes for video streams in the video card. 

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-01-11 12:38:19 +01:00
Kai Kreuzer 7db4e6279b bumped to 3.0.1-SNAPSHOT
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-01-06 23:18:09 +01:00
jenkins e0b5984942 Preparation for tag creation (Tag name: '3.0.0'). 2020-12-21 13:06:03 +00:00
Yannick Schaus f9a834bd36
Fix website link in setup wizard
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-20 15:13:12 +01:00
Yannick Schaus d7976dc210
Rules: add item state update to action module wizard (#675)
Depends on https://github.com/openhab/openhab-core/pull/1970.

Also:
- Add abiilty to create a Blockly script directly.

- Only update statuses that changed in the rules list (might help with #673 and similar to #466/#439).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-20 14:51:54 +01:00
hubsif 5fde929035
Add a digital clock card widget to the standard library (#670)
Closes #669.

Also-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Hubert Nusser<hubsif@gmx.de>
2020-12-20 14:50:34 +01:00
Yannick Schaus 1c41a91bb1
Clean up debugging console log messages (#676)
Remove most of the debug logging in the Javascript console,
or adjust the log levels.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-20 14:25:55 +01:00
openhab-bot 1392a98658
New Crowdin updates (#664)
* New translations en.json (Ukrainian)

* New translations en.json (Ukrainian)

* New translations en.json (French)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (German)
2020-12-20 13:41:16 +01:00
Yannick Schaus 9c9c8bfa8e
[Items grammar] Accept all types as base types for groups (#659)
Fixes #616.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 19:22:59 +01:00
Yannick Schaus 36ba1a555f
Improve item name generation from channel (#660)
Fixes #549 (hopefully for good this time?).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 19:22:43 +01:00
Yannick Schaus e037b6d49a
Add web frame widget (#661)
Allows to put a webpage in an iframe.

Requested in https://community.openhab.org/t/oh3-show-html-content-in-an-custom-widget-iframe/110417.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 19:22:29 +01:00
openhab-bot dd77a171f8
New Crowdin updates (#642)
* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (French)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Greek)
2020-12-17 19:22:16 +01:00
Gautier d8ef369895
New Video Card widget (#648)
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
2020-12-17 19:04:32 +01:00
Jerome Luckenbach f91906bfb1
openHAB 3 Docs preparation - Remove ESH references (#641)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-17 16:51:24 +01:00
Yannick Schaus f7a8579753
Wrong operator precedence in number parameter step (#658)
Fixes #643.

Validate numbers on blur only
Allows to input "-" temporarily, fixes #519.
Don't show the clear button (it gets over the stepper arrows on some browsers).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:49:37 +01:00
Yannick Schaus baf0f31f5c
Refresh overview page key when going back to home (#657)
Fixes #518 (and possibly other problems).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:48:45 +01:00
Yannick Schaus 55068a68b1
Corrects deviations from spec in glance badges (#656)
Display lock icon if there are locks, whatever their state,
according to the spec in #556. Fixes #651.

Add missing alarms (not in the title like #556 but in
the glance area.

Don't consider non-finite values when computing measurement averages. Fixes #650.

Change styles of setpoint badge. Fixes #649.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:48:26 +01:00
Yannick Schaus 2bbd5243ad
Disable slider in item action module wizard (#655)
The rule designer's new action module wizard
has a slider to help set the command for dimmers,
rollershutters & numbers but it doesn't work well
and prevents the input of command values
outside the range, which might prove problematic
(in particular there's no way anymore to set a
rollershutter item to UP/DOWN/STOP...).
So disable it for now.

Also fix bugs with the "thing" trigger wizard.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:47:54 +01:00
Yannick Schaus 1b15ea44f7
Change links to docs to redirects (#654)
Change links to the docs throughout the app
to short redirect links so they can change and
be updated without updating the code.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:47:35 +01:00
Yannick Schaus 99292f2456
Photo browser action: allow to parse the array of photos (#653)
Fix bug that detects a JSON object instead of
an array.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:47:14 +01:00
Yannick Schaus bf44997fe4
Add keys to location control to prevent component reuse (#652)
Fixes #569.
Fixes #568. (probably)

Add some margins.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:46:55 +01:00
Yannick Schaus 1286896056
Avoid the colorpicker entering endless loops (#644)
As reported in https://community.openhab.org/t/wiki-building-pages-in-the-oh3-ui-documentation-draft-1-3/104382/58
Sometimes the colorpicker enter infinite loops
sending the same command endlessly, due to
either rounding errors in the HSB components
or other causes.

These fixes should make it better and avoid
these situations.

Add a key to the widget preview in the model
details to avoid reusing widgets when the
configuration differs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-17 16:46:41 +01:00
Yannick Schaus e16bf67a3e
Fix startlevel parameter casing (#638)
Replace hardcoded startlevels with module config sheet

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 11:54:29 +01:00
Yannick Schaus e6d81d5a38
Use summary=true for lists & counters (#640)
Use the summary option added to some API resources in
https://github.com/openhab/openhab-core/pull/1827
when displaying counters or lists that don't
need the entire object.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 11:49:05 +01:00
Yannick Schaus 91a9d05526
oh-repeater: put iteration variables in "loop" object (#639)
Add itemStateOptions & itemCommandOptions source types

Allow pages to define variables with the
"defineVars" config property

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 11:46:47 +01:00
Yannick Schaus 9438c82a43
Charts: scrollable analyzer legend, calendar (#637)
Use the scroll option to keep analyzer charts
legend one line only
Fixes #539.

Fixes calendar axes not supporting dark mode by
supplying default colors.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 11:45:12 +01:00
openhab-bot 3bd74df7c7
New Crowdin updates (#636)
* New translations en.json (Hebrew)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Russian)
2020-12-14 11:44:31 +01:00
Yannick Schaus 866feeea19
Better handling of auto-update value (#634)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 01:58:30 +01:00
Yannick Schaus 7388db03a6
Implement widgets' external URL action (#635)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 01:58:17 +01:00
Yannick Schaus 2d8b4f2537
[Main UI/HABPanel] Mobile app interface, part 2 (#633)
This adds support for the "OHApp" mobile app interface to HABPanel, and
fixes setting the main UI's dark mode by the app.
They will also call OHApp.goFullscreen()
on startup if the function exists.

Currently supported in the OHApp interface:
```js
window.OHApp = {
  preferDarkMode() { return 'light' },
  preferTheme() { return 'md' },
  pinToHome() { alert('pinned') },
  exitToApp() { alert('exit') }
  goFullscreen() { console.log('Going fullscreen') }
}
```

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 00:36:43 +01:00
Yannick Schaus 83a6dfe0d5
Support Ctrl+click in Inbox list (#632)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 00:36:24 +01:00