This fixes an issue where "-" was displayed as label in that case, which
was very annoying when using the label card only for displaying an icon.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
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>
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>
Regression from #2687.
The dirty indicator code blocked the use of subtitles, these were not
showing up anymore.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This PR removes Nashorn support from Blockly and removes all Nashorn
specific code from the blocks.
When opening a Blockly script, the UI will tell you if the script needs
to be saved again (because the MIME type is for Nashorn or because newly
generated code is different from the saved code).
It will also warn if the JS Scripting addon is not installed.
The Run Now link from the script editor is grayed out when the required
scripting add-on is not installed, and will show a warning when trying to run.
-----
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Closes#2701.
This PR contains a number of sitemap validation improvements,
interactive, before saving and in the DSL parser.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Resolves#1944.
When entering a state description pattern, an autocomplete list
is provided containing the available transformations.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Several small improvements:
- Persistence `previous...State` and `next...State` blocks: add boolean
shadow block for skip same, default false
- Named `timer` blocks: add a `undefined` shadow block for `context`.
- `run rule or script` block: make the parameter dictionnary input a
shadow block
In addition to that, for the `transform` block,
the transformation dropdown now dependens on the installed transformations.
---------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Also improve toast messages in developer sidebar and fix a minor styling
issues for the script settings.
Addresses no. 1 of #2749.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#2597.
Regression from #2304.
Also minimizes the gap between the Cards title and the reorder button.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>