Commit Graph

309 Commits (55068a68b137c920c27c703ee66af25b1bb86be2)

Author SHA1 Message Date
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
Yannick Schaus b43cbf0d3f
Misc styling fixes (#631)
Fix #619 - virtual list height glitch in Firefox.
(not perfect but will have to do).

Fix #624 - sort equipment/properties cards according to translated title

Wrap card titles to avoid overflow in cases of long translations.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 00:36:06 +01:00
openhab-bot a2e15a6549
New Crowdin updates (#617)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-13 19:03:49 +01:00
Yannick Schaus 016e3b091d
Add wizards to help adding rule modules (#622)
Replace the default flat grouped list of module types with
a way user-friendlier UI that is aware of the core modules
and offers an improved experience.

Examples include directly jumping into the script editor, in
Blockly mode, or pick the item from the model before
deciding which event to consider.

Also now the behavior of the icons on the cron triggers
and script actions/conditions is now reversed: clicking on
the bar will launch the special action, and clicking on the
little icon will bring up the generic module editor popup.

Fix time of day parameter, replaced day of week with an
inline list.

Move the Blockly button to the bottom in the script editor.

Support system start level in triggers > system triggers.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-12 21:46:10 +01:00
Wouter Born 9ea63a0085
Use Jenkins Build Status badge (#627)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-12 15:23:37 +01:00
Yannick Schaus 9f0e43b4a4
Add a "pin" icon to remove the panel breakpoint (#613)
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: hubsif hubsif@gmx.de
2020-12-11 15:57:23 +01:00
Yannick Schaus 8586195565
Routable model picker, add to item picker & Blockly (#620)
Make the model picker popup dialog routable (i.e. responds to
browser-native navigation).

Add an icon to item picker to open the model picker instead
of the standard smart select flat list.

Add a new item field & block to Blockly to easily pick an item
from the model with the dialog. Add "shadow" blocks to openHAB
blocks (can be replaced by the user).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-11 15:56:04 +01:00
Yannick Schaus d075dc99dc
URL encode state sent to icon servlet (#615)
Fixes #547.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-10 23:29:42 +01:00
eugen 3e95c345a7
Add support for QR code context in configuration (#614)
Also-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Eugen Freiter <freiter@gmx.de>
2020-12-10 23:29:05 +01:00
Yannick Schaus fd40175c7c
Fix locale resolving bug, english messages (#612)
Remove vue-i18n reference to other messages (too confusing).

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-09 15:07:34 +01:00
openhab-bot 32eaac362c Update Crowdin configuration file 2020-12-08 22:33:01 +01:00
openhab-bot d776fc799c Update Crowdin configuration file 2020-12-08 21:54:55 +01:00
openhab-bot 1db413659e Update Crowdin configuration file 2020-12-08 21:48:19 +01:00
openhab-bot fca842034d Update Crowdin configuration file 2020-12-08 21:47:43 +01:00
openhab-bot 99b3f8db0f Update Crowdin configuration file 2020-12-08 21:45:32 +01:00
openhab-bot 84a712d697 Update Crowdin configuration file 2020-12-08 21:44:20 +01:00
openhab-bot 88b45ad91b Update Crowdin configuration file 2020-12-08 21:42:57 +01:00
openhab-bot adfe1f6c17 Update Crowdin configuration file 2020-12-08 21:30:41 +01:00
openhab-bot 81417adc2e Update Crowdin configuration file 2020-12-08 21:25:17 +01:00
Yannick Schaus 86db1283f9
i18n infrastructure + first end-user facing pages translations (#602)
Related to #394.

Add vue-i18n.
The localized messages are in `@/assets/i18n/{domain}/{locale}.json`,
and are localized by component.
They should be compatible with Crowdin.
They are also referenced in single-file components with this trick:
```
import { loadLocaleMessages } from '@/js/i18n'

export default {
  ...
  i18n: {
    messages: loadLocaleMessages(require.context('@/assets/i18n/{domain}'))
  }
```
That way they should be code splitted away from the entry point bundle
when their related component is, and they are scoped to that component.

The `common` domain with a few common and home page related messages
are loaded on initialization.

English and French messages are provided, as well as German (to be
proofed!) for the `common` domain.

A footer message is added to the settings & developer tools menu if
the locale has common messages to inform the user that these parts are
not translated yet.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-08 20:35:56 +01:00
Yannick Schaus f441a2615e
Material Icons Upgrade (#604)
Uses https://github.com/jossef/material-design-icons-iconfont as a drop-in
replacement of the font.

Use https://jossef.github.io/material-design-icons-iconfont/ to
browse the fonts.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-08 17:44:30 +01:00
Yannick Schaus 6f81c0a6c6
Add Items from Thing: Expert Mode (#603)
This adds a new "expert mode" to the
"Create Equipment from Thing"/"Add Equipment to Model"/
"Create Points from Thing"/"Add Points to Model"

Instead of clicking through the channels and
filling out items, a textual definition will be
generated and put it the "Add Items from
Textual Definition" page. That way, the expert
user can add their items by editing text with the
well-known syntax.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-08 17:40:25 +01:00
Tobias Bräutigam e26eac6656
CometVisu fixes (#590)
* use plain text type as the content is already serialized, also cleanup
the 404 page to avoid querying the rest api without being authorized

closes #509

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>

* fix tile and remove wrong path from 404 page

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2020-12-07 18:22:20 +01:00
Yannick Schaus 4508a88c2c
Add options to oh-map-page & fix initial positioning (#599)
Fixes #588.

Allows to select a tile provider from http://leaflet-extras.github.io/leaflet-providers/preview/
Close #589.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-07 14:44:58 +01:00
Yannick Schaus e7908dc9a3
Fix invert not applied on f7-icons in badges (#596)
Reported in https://community.openhab.org/t/openhab-3-0-milestone-4-discussion/109174/125

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-07 14:44:30 +01:00
Yannick Schaus 0ad5b1a843
Fix group settings not appearing when creating a group (#595)
Fix https://github.com/openhab/openhab-core/issues/1863

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-07 14:44:07 +01:00
Yannick Schaus 5a102830de
Don't include empty equipment when only Points are added (#593)
Fixes #583.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-07 14:42:36 +01:00
Wouter Born 9d1e435655
Use renamed OpenHABBundleServlet class (#594)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-07 10:34:19 +01:00
lolodomo 1bab2f7a3d
Semantics - illuminance property removed (#591)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2020-12-03 08:41:58 +01:00
Yannick Schaus 38a06d2e00
Add fragment option to oh-repeater (#582)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-30 20:14:05 +01:00
Yannick Schaus cc4f6a6a8d
Widgets: add oh-repeater, dayjs to expression context (#581)
This adds a new oh-repeater to the system library, allowing
to iterate over arbitrary arrays, ranges, or items in a certain
group or having certain tags, with support for filtering and
mapping. The children components in the default slot will be
repeated for each iteration and the current element, along with
the index and source array, will be provided as variables to the
descendants.

Add dayjs to the expression context for powerful date manipulation
and formatting. The default locale will be dynamically loaded
from the current openHAB locale.
The following Day.js plugins are loaded:
- relativeTime
- calendar
- localizedFormat
- isoWeek
- isToday
- isYesterday
- isTomorrow
Other can be added on demand.

Try to find a f7-component relative to the oh-component and merge
their parameters during hinting.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-30 12:23:31 +01:00
Yannick Schaus f06ddeda63
Model cards: consider the more specialized equipment class (#578)
Fix #567.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-30 12:23:10 +01:00
Yannick Schaus ab3ba9e715
Fix #576 - apply default tags from channel or channel type (#577)
Still apply "Point" if none of the default tags is a Point.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-30 12:22:55 +01:00
Wouter Born 43b7f52798
Update LastNPE EEAs to 2.2.1 (#517)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-30 12:21:30 +01:00
Yannick Schaus 6a61115429
Fix multiple issues (#566)
Fix #563 - wrong expression completion objects + improve item name completion
Fix #559 - bug with model display when items don't have any metadata (non-semantic)
Fix #553 - delete parameters when unset in config sheet unless in special circumstances
Fix #549 - detect identical channel/channel type labels and adjust item name suggestions accordingly
Fix #543 - proritize channel description to channel type description in channel list
Fix #524 - add Call item type
Fix #490 - Add anyFormat=true to fetch icons - should fix #490
Fix #438 - Rename remaining instances of "equipments" in code
Fix problem with cell "on" parameter - reported in: https://community.openhab.org/t/wiki-building-pages-in-the-oh3-ui-documentation-draft-2-3/104392/92

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-28 22:19:27 +01:00
Kai Kreuzer d5e3b38a53
Remove Travis as a build system (#552)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-28 22:10:35 +01:00