This fixes a nasty bug on initial setup of an embedded SVG that has no configuration yet.
---------
Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
This is major contribution to the fixed canvas layout which allows
an SVG background to become an active part of the page. Through this
feature the SVG itself can become an active component of the page.
Keep in mind: it is not a replacement for widgets ... widgets can and
should still be used but it allows the background itself to be as
interactive as a widget.
---------
Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Use grid instead of flex with a minimum card width and automatic sizing.
Looks nearly the same on smaller screens and much better on large
screens.
Also limit width of single add-on card in swiper component as a
safeguard.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Do NOT allow the addition of the scene tag outside the scene editor and
addition of the script tag outside the script editor.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This allows setting the step size for date and datetime contexts, which
makes the UI display seconds if the step size is 1.
Refs #2847.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
- 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>