Display lock icon if there are locks, whatever their state,
according to the spec in #556. Fixes#651.
Add missing alarms (not in the title like #556 but in
the glance area.
Don't consider non-finite values when computing measurement averages. Fixes#650.
Change styles of setpoint badge. Fixes#649.
Signed-off-by: Yannick Schaus <github@schaus.net>
The rule designer's new action module wizard
has a slider to help set the command for dimmers,
rollershutters & numbers but it doesn't work well
and prevents the input of command values
outside the range, which might prove problematic
(in particular there's no way anymore to set a
rollershutter item to UP/DOWN/STOP...).
So disable it for now.
Also fix bugs with the "thing" trigger wizard.
Signed-off-by: Yannick Schaus <github@schaus.net>
Change links to the docs throughout the app
to short redirect links so they can change and
be updated without updating the code.
Signed-off-by: Yannick Schaus <github@schaus.net>
As reported in https://community.openhab.org/t/wiki-building-pages-in-the-oh3-ui-documentation-draft-1-3/104382/58
Sometimes the colorpicker enter infinite loops
sending the same command endlessly, due to
either rounding errors in the HSB components
or other causes.
These fixes should make it better and avoid
these situations.
Add a key to the widget preview in the model
details to avoid reusing widgets when the
configuration differs.
Signed-off-by: Yannick Schaus <github@schaus.net>
Use the summary option added to some API resources in
https://github.com/openhab/openhab-core/pull/1827
when displaying counters or lists that don't
need the entire object.
Signed-off-by: Yannick Schaus <github@schaus.net>
Use the scroll option to keep analyzer charts
legend one line only
Fixes#539.
Fixes calendar axes not supporting dark mode by
supplying default colors.
Signed-off-by: Yannick Schaus <github@schaus.net>
This adds support for the "OHApp" mobile app interface to HABPanel, and
fixes setting the main UI's dark mode by the app.
They will also call OHApp.goFullscreen()
on startup if the function exists.
Currently supported in the OHApp interface:
```js
window.OHApp = {
preferDarkMode() { return 'light' },
preferTheme() { return 'md' },
pinToHome() { alert('pinned') },
exitToApp() { alert('exit') }
goFullscreen() { console.log('Going fullscreen') }
}
```
Signed-off-by: Yannick Schaus <github@schaus.net>
Fix#619 - virtual list height glitch in Firefox.
(not perfect but will have to do).
Fix#624 - sort equipment/properties cards according to translated title
Wrap card titles to avoid overflow in cases of long translations.
Signed-off-by: Yannick Schaus <github@schaus.net>
Replace the default flat grouped list of module types with
a way user-friendlier UI that is aware of the core modules
and offers an improved experience.
Examples include directly jumping into the script editor, in
Blockly mode, or pick the item from the model before
deciding which event to consider.
Also now the behavior of the icons on the cron triggers
and script actions/conditions is now reversed: clicking on
the bar will launch the special action, and clicking on the
little icon will bring up the generic module editor popup.
Fix time of day parameter, replaced day of week with an
inline list.
Move the Blockly button to the bottom in the script editor.
Support system start level in triggers > system triggers.
Signed-off-by: Yannick Schaus <github@schaus.net>
Make the model picker popup dialog routable (i.e. responds to
browser-native navigation).
Add an icon to item picker to open the model picker instead
of the standard smart select flat list.
Add a new item field & block to Blockly to easily pick an item
from the model with the dialog. Add "shadow" blocks to openHAB
blocks (can be replaced by the user).
Signed-off-by: Yannick Schaus <github@schaus.net>
Related to #394.
Add vue-i18n.
The localized messages are in `@/assets/i18n/{domain}/{locale}.json`,
and are localized by component.
They should be compatible with Crowdin.
They are also referenced in single-file components with this trick:
```
import { loadLocaleMessages } from '@/js/i18n'
export default {
...
i18n: {
messages: loadLocaleMessages(require.context('@/assets/i18n/{domain}'))
}
```
That way they should be code splitted away from the entry point bundle
when their related component is, and they are scoped to that component.
The `common` domain with a few common and home page related messages
are loaded on initialization.
English and French messages are provided, as well as German (to be
proofed!) for the `common` domain.
A footer message is added to the settings & developer tools menu if
the locale has common messages to inform the user that these parts are
not translated yet.
Signed-off-by: Yannick Schaus <github@schaus.net>
This adds a new "expert mode" to the
"Create Equipment from Thing"/"Add Equipment to Model"/
"Create Points from Thing"/"Add Points to Model"
Instead of clicking through the channels and
filling out items, a textual definition will be
generated and put it the "Add Items from
Textual Definition" page. That way, the expert
user can add their items by editing text with the
well-known syntax.
Signed-off-by: Yannick Schaus <github@schaus.net>
* use plain text type as the content is already serialized, also cleanup
the 404 page to avoid querying the rest api without being authorized
closes#509
Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
* fix tile and remove wrong path from 404 page
Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
This adds a new oh-repeater to the system library, allowing
to iterate over arbitrary arrays, ranges, or items in a certain
group or having certain tags, with support for filtering and
mapping. The children components in the default slot will be
repeated for each iteration and the current element, along with
the index and source array, will be provided as variables to the
descendants.
Add dayjs to the expression context for powerful date manipulation
and formatting. The default locale will be dynamically loaded
from the current openHAB locale.
The following Day.js plugins are loaded:
- relativeTime
- calendar
- localizedFormat
- isoWeek
- isToday
- isYesterday
- isTomorrow
Other can be added on demand.
Try to find a f7-component relative to the oh-component and merge
their parameters during hinting.
Signed-off-by: Yannick Schaus <github@schaus.net>
Fix#563 - wrong expression completion objects + improve item name completion
Fix#559 - bug with model display when items don't have any metadata (non-semantic)
Fix#553 - delete parameters when unset in config sheet unless in special circumstances
Fix#549 - detect identical channel/channel type labels and adjust item name suggestions accordingly
Fix#543 - proritize channel description to channel type description in channel list
Fix#524 - add Call item type
Fix#490 - Add anyFormat=true to fetch icons - should fix#490Fix#438 - Rename remaining instances of "equipments" in code
Fix problem with cell "on" parameter - reported in: https://community.openhab.org/t/wiki-building-pages-in-the-oh3-ui-documentation-draft-2-3/104392/92
Signed-off-by: Yannick Schaus <github@schaus.net>