- Default to action input name if no label provided
- Use label for action output "result" if provided
- Display action output descriptions if provided
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes Items list flickering when an Item is added, updated or removed.
Fixes the same issue for other lists, where this is a regression from
#2823 and #2827.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Follow-up for #2216.
- Do not use addon swiper on iPad.
- Revert addon card size changes.
- Show more addon cards in swiper in landscape mode.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
By setting step size to 0 in a config description parameter, one can
allow any step size i.e. the user can enter as many decimals as he wants
to.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes#2205 and fixes#1668.
This slighly reduces the addon card size on desktop and uses a swiper
(like in many app stores) instead of a flex on mobile.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Refs https://github.com/openhab/openhab-core/pull/4392.
Closes#2817.
This adds a new section "Actions" to the Thing tab of the Thing page,
which provides a button for each UI-supported Thing action.
Clicking on that button will open a popup, where action input can be
configured and action output can be viewed.
All keys of the action output response object from REST are rendered as
list Items, the labels are taken from the action output definitions and fallback to the key.
If the key is `qrCode` or its output type is defined as `qrCode`, its value is rendered as QR code.
For actions without inputs or without outputs, messages are shown indicating that there is no such.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This adds new boolean config parameters to the home page settings that allow
setting the default navbar style and standard background for mobile and desktop devices.
The device-specific settings allow to override these defaults by using a segmented button
with three options: The admin's default, option A and option B.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
The color attribute for the header badges in the oh-cell were not
dynamic and as a result setting headerBadgeColor in the cell config
caused a malformed color class to be added to the badge.
This fixes a minor styling issue on mobile devices, where the input's
column is too wide and the sendButton overflows to the next line. Also
add `time` to the docs for valid input types.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Regression from #2801.
During testing, it looked good, but in production it introduced some
styling issues.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This fixes ugly styling issues with too large margin/padding on iOS
devices due to safe areas getting applied to children of f7-card, even
though f7-card already respects the safe areas.
-----
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Refs https://github.com/openhab/openhab-core/pull/4377.
The most recent addition to the sitemap syntax allows defining buttons
nested as components inside the Buttongrid component.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This sets the version in the Framework7 parameters to the build version during production build,
and adds the commit hash to the Vuex store so it can be displayed on the about page.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express).
These dependencies needed to be updated together.
Updates `send` from 0.18.0 to 0.19.0
Updates `express` from 4.19.2 to 4.21.0
Signed-off-by: dependabot[bot] <support@github.com>
A Thing config action is only supposed to save the config of the Thing,
not the whole Thing.
Fixes https://github.com/openhab/openhab-core/issues/4380.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>