Commit Graph

14 Commits (main)

Author SHA1 Message Date
Florian Hotze 83e40d58c6
Charts: Enable boundary and itemState persistence query params by default ()
Refs https://github.com/openhab/openhab-core/pull/4394.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-10 15:23:53 +02:00
Florian Hotze 94b3e7c90f
Widget actions: Support optional confirmation dialog/sheet ()
This adds support for optionally asking the user for confirmation either
by dialog or by sheet before executing an action.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-14 17:08:37 +02:00
Florian Hotze a13ffe311e
Widget actions: Add a HTTP action to perform HTTP requests ()
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-13 13:19:17 +02:00
Florian Hotze 822b40c913
Analyzer: Fix silent failure if no items are set ()
Fixes .

This fixes a silent failure of the analyzer if no items are passed as
query params. In this case, the empty-state-placeholder will be used to
display a "Invalid configuration" banner.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-27 12:33:30 +02:00
Florian Hotze e9c5ad505f
Charts: Add option to extend initial period to future & Refactor prop defs ()
This adds a new option to charts which allows to extend the initial period to the future by default.
Until now, when a chart was opened its period always extended to the past.
This is especially useful with the new timeseries support for Items as it allows to display forecasts.

Also refactor the chart property definitions to use the helpers.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-04-21 17:13:39 +02:00
Florian Hotze 021c3d8a43
Upgrade echarts and vue-echarts & Add fallback for visualMap when using heatmap ()
This upgrades `echarts` and `vue-echarts` to the latest versions.
`@vue/composition-api` was added as dependency because `vue-echarts`
needs it on Vue 2.

See
https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/
and https://github.com/ecomfe/vue-echarts#migration-to-v6 for upgrade
guides.

This also adds a fallback default for `visualMap` because it is required
to define a `visualMap` when using a heatmap, otherwise echarts fails to
render the chart.
Even though the docs and the chart-designer mentioned this until now, it
worked without defining a visualmap, which would not be the case anymore
(and therefore break charts - defining a visual map is easy though)
without providing a fallback.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-14 20:56:29 +01:00
Yannick Schaus 5bf98457f4
Add a Scene settings menu entry and editor ()
Closes .

The scene editor allows defining Item — command pairs that are applied when the scene is activated. While designing a scene, it is possible to sync the target state to the current Item state and test the target state command.

Technologically scenes are just rules without triggers, so they can be activated using the „Run Rule, Script, Scene …“ action.

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Yannick Schaus <github@schaus.net>
2023-02-16 22:25:26 +01:00
Yannick Schaus e2f06a2cd6
Add context parameter to rule action ()
Signed-off-by: Yannick Schaus <github@schaus.net>
2022-12-15 19:29:09 +01:00
Florian Michel 1d7a3a9875
Add possibility to edit JSON variable keys in widgets ()
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
Florian Hotze e0b95d6764
[MainUI] Evaluate expressions in configuration Arrays & Update `actionPhotos` docs ()
* [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
Florian Hotze 1d5b1719a9
New SIP client component & widget ()
Update components docs.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Dan Cunningham <dan@digitaldan.com>
2022-07-29 22:23:45 +02:00
AndyXMB 184c6dab2f
Component docs ()
Signed-off-by: Andrew Black <andrewm.black@outlook.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-03-01 15:42:17 +01:00
Yannick Schaus 5e7c092f55
Add frontmatter to component reference pages ()
Regenerate docs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 19:22:23 +01:00
Yannick Schaus ba4d76fe9a
Add generated component reference ()
Add a Node.JS script to generate or update Markdown documentation from
the definitions of components. Generate an initial set of pages.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 15:16:35 +01:00