Move from the outdated official NPM module (material-design-icons) to an
alternative NPM module (material-icons) providing most recent material
icons.
As a consequence, TTF format is no more provided, only WOFF and WOFF2
formats. All current browsers support WOFF format, so only very old
browsers could be impacted by the miss of the TTF format.
Also fix icon size in condensed mode (28x28).
Fixes#2011Fixes#2015
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Also allow 3 columns on desktop.
Possible number of columns on desktop: 1 or 2 or 3.
Possible number of columns on tablet: 1 or 2
Possible number of columns on phone: 1
New default is 3 columns on desktop and 2 on tablet.
Closes#1836
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Round block now also takes a Qty block as input.
Output type changes according to input.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Fixes#1991.
Support conversion of event context types itemState, oldItemState,
itemCommand as String or Number by supplying a mutating block with a
choise of Number / String.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
https://github.com/openhab/openhab-core/pull/3727 made core handle
`null` as values for `relative` and `inverted` fields of persistence
filters and set defaults for those. Therefore, UI does not need to
ensure they are set anymore.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #1661.
Using the cacheable list for Things leads to a failure because the
status field is not available then.
This reverts the change from #1661 to this single REST request.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
When removing a filter, the persistence editor checks which configs use
that filter and removes the filter from those configs, otherwise the
save request fails with an HTTP error.
However, the implementation was buggy and also removed other filters
from configs because of a missing check.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Follow-up for #1917.
- Display enabled filters in config footer.
- Display filter configuration in filter footer.
- Time filter: Define options for time unit.
- Add a button to open the documentation.
- Fixes an issue, where Filter creation fails due to missing filter type
arrays.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Related to #1743
Use a HTML svg element (inline SVG) instead of a img element
when the icon servlet returns a SVG icon containing "currentColor".
Then it is possible to adjust the color of these icons by using the
iconcolor sitemapo attribute.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Fixes#1956.
Adds a boolean property to the repeater (and relevant docs),
`cacheSource` which allows the user to determine whether the repeater
should refresh the source array with css and object changes or cache the
source array for performance improvements.
Signed-off-by : Justin Georgi <justin.georgi@gmail.com>
Fixes#1942.
Requires version 4.5.0 of openhab-js, therefore awaiting https://github.com/openhab/openhab-addons/pull/15219.
- Adds context block typings.
- Adds supports for Item state input in addition to Item object only in
case Qty Block has a var as input.
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Closes#1650.
Depends on https://github.com/openhab/openhab-core/pull/3335.
Will fetch items, things and rules with the `staticDataOnly` parameter set when appropriate.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Yannick Schaus <github@schaus.net>
It is possible to filter the rules on tags in the search bar of the rule
list, as they are visible on screen. As items can be searched by tag in
the developer toolbar search, I think it is still useful to extend the
rule search in the developer toolbar to tags as well. I tend to give my
rules tags, often corresponding to tags on items as well. This allows
finding all of these in one place.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Closes#1943.
Searches for 'block', 'blockly', 'blocksource' (case is ignored) will return a list of all Blockly rules.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Supersedes #1850.
Closes#1822.
Depends on https://github.com/openhab/openhab-core/pull/3559 (already
merged now).
Adding custom semantic tags is now possible:
https://github.com/openhab/openhab-core/pull/3519.
This PR loads the Semantic tags when MainUI is loaded the first time and
stores them in Vuex.
This allows the removal of the hard-coded Semantic tags and the
translations from the assets and therefore makes the initial JS smaller.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#1933.
Follow-up for #1901.
This enables the unit metadata for UoM groups (i.e. groups with a
groupType of `Number:`).
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
I noticed this especially on my iOS when I listened to music and opened
the SIP client. After leaving the iOS app, openHAB kept active in the
audio playback control and I was unable to continue listening to my
music without closing the openHAB app.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Closes#1463.
Refs https://github.com/openhab/openhab-core/pull/2871.
Refs https://github.com/openhab/openhab-core/pull/3642.
It is accessible from the add-on settings page and has both a design and
a code tab.
The design tab allows to set persistence strategies for Items, define
cron strategies and set the default strategies. It does not duplicate
names for (cron) persistence strategies and filters as well as configs
for the same set of Items.
All four filters provided by openHAB core (treshold, time, equals/not
equals, include/exclude) can be configured.
When the user removes a cron strategy or a filter, it is automatically
removed from all configs so that there is no API failure (400 Bad
Request).
No code completion is not provided, but required attributes for filters
are automatically set on save to avoid API failure (500 Internal Server
Error).
A few words about order and sorting:
- openHAB Core seems to sort the cron strategies.
- Configurations itself are unsorted, they could be sorted
alphabetically by the UI.
- Items of configuration are sorted by their type (groups before normal
Items) as well as alphabetically.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Co-authored-by: J-N-K <github@klug.nrw>
to have icon color depending on selected theme
Fix#1861
Will work only with SVG custom OH icons containing style="color-scheme:
light dark" and currentColor as fill color.
Signed-off-by : Laurent Garnier <lg.hc@free.fr>
- Hide author line if author not present
- Hide documentation line if documentation line not present
- Add correct provisioning information for jar file add-on service
- Properly handle description in add-on details page
Signed-off-by: Jan N. Klug <github@klug.nrw>
The sitemap DSL parser was not able to correctly recognize negative numbers.
Regression from https://github.com/openhab/openhab-webui/pull/1843 where explicit
recognition of hyphens was introduced for new icon syntax.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Adjust BasicUI slider unit handling.
So far, the unit was not passed on to the slider. With proposed changes
in core https://github.com/openhab/openhab-core/pull/3644, unit would be
passed and needs to stripped for the slider to work properly.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Fixes#1625.
Allows to provide the persistence type to persistence blocks.
Default can be provided instead of selecting a particular one (is
backward compatible to old blocks).
Either Iten name or Item can be provided (note that variables must have
the Item not the Item name as the type of variables cannot be detected).
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
This fixes deprecation warnings when runnings tests with Maven 3.9.x:
`[WARNING] Parameter 'localRepository' is deprecated core expression;
Avoid use of ArtifactRepository type. If you need access to local
repository, switch to '${repositorySystemSession}' expression and get
LRM from it instead.`
See: https://issues.apache.org/jira/browse/SUREFIRE-2154
Related to openhab/openhab-core#3512
Signed-off-by: Wouter Born <github@maindrain.net>
Add-on service settings are configurable from the respective add-on's
page and therefore the "Other Services" section of the main settings
page is not needed anymore.
Services provided by openHAB core that were previously listed unter
"Other Services" were moved to "System Services".
Signed-off-by: Jan N. Klug <github@klug.nrw>
Fixes variable support for the blockly unit of measurement blocks which
did not work at all -> var defaults to item object.
Blockly cannot detect the type that is contained in a variable so we
expect an Item object.
This allows to iterate over a group of Item members which returns a list
of Item objects
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Fixes https://github.com/openhab/openhab-webui/issues/1862.
When a state update like 40.545 was received, the slider component
commanded the Item to 41 because of the rounding used.
Unfortunately, the slider component has no built-in way to avoid that.
This decouples the slider value from the actual Item value and only send
command when the difference between them is larger or equal than step
size.
This is no perfect solution, because it can be that the slider does not
accept input when the above checks don't pass.
Example: Your Item has a value of 40.545, then the slider does not
accept 40.5 and 41.
I've checked `oh-setpoint` and `oh-knob`, they are not affected by this
bug.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>