- Add bulk operations to the things list, allowing to remove,
disable or enable things
- Add bulk operations to the rules/scripts lists, ability to disable
or enable rules & scripts
- Add ability to delete a rule, script or item from its details
page
- Add ability to start checking objects for a bulk operation
("select mode") with Ctrl+click on desktops. Ctrl+click exits the
select mode automatically when the last checked object is deselected.
Closes#512.
Closes#506.
Signed-off-by: Yannick Schaus <github@schaus.net>
Fix#520 - don't evaluate null values, move labels to computed properties
Fix#515 - don't overwrite labels, icons in default representations if set in config
Fix#514 - don't inherit layout page no-gap to rows/cols
Fix#513 - fix icon properties in oh-link, oh-button
Close#508 - display error if incorrect format for rules/scripts UIDs (no hard check)
Fix#505 - incorrect bottom margin in layout editor on Firefox
Close#500 - display current value in oh-slider-item
Close#488 - default to analyze action for dimensionless Number items in some circumstances
Fix#487 - dynamic icons for default list items (only certain item types)
Allow oh-button & oh-link contents to be customized w/ default slot
Allow oh-icon to receive dynamic updates
Fix wrong API Explorer icon in sidebar
Signed-off-by: Yannick Schaus <github@schaus.net>
Allow administrators to open a sidebar with productivity tools that doesn't
get away when navigating around.
The developer sidebar is available from the developer tools menu
or anywhere with the Shift+Alt+D keyboard shortcut, if these two
conditions are met:
1. the user has an administrator role;
2. the width of the screen is >= 1280px.
Fix list index not updating correctly in rules/scripts lists
Fix links sometimes not appearing in item details
Signed-off-by: Yannick Schaus <github@schaus.net>
Fixes#486.
Blockly: add oh_log block, change oh_sendcommand
to oh_event and allow to post updates.
Read-only script editor with lock icon & tooltip
if the script not editable (text-provisioned or Blockly).
Signed-off-by: Yannick Schaus <github@schaus.net>
Allow to create new ECMAScript-based scripts with a
Blockly editor.
The undocumented "blockSource" configuration parameter
is added to the script action module and will trigger
the display of the Blockly editor instead of the code
editor if present.
3 openHAB-related blocks have been added to the standard
toolbox: get item state, send command, print. More will be
added later.
Allow to switch a application/javascript script to Blockly
if it is empty - or back to raw code editing if the
Javascript generated by Blockly is empty.
Switch between code preview (read-only) & Blockly
with a FAB button, or Ctrl-B on the keyboard.
Signed-off-by: Yannick Schaus <github@schaus.net>
Change equipment icon (to be different than the one for things)
Change layouts of item stats in semantic cards
Fix Equipment tab view title
Change labels during script creation, generate UID
Signed-off-by: Yannick Schaus <github@schaus.net>
Fix bug with cards in the home page's Locations tab
not appearing when there were non-specialized
equipment.
Add a card for non-specialized equipment in the
Equipment tab.
Rename "Equipments" to Equipment, where shown to
the user (#438) - followup PR to do for the references
in the code.
Signed-off-by: Yannick Schaus <github@schaus.net>
The variables map was not initialized in the overview
page's context, so attempting to set variables in it
resulted in an error.
Signed-off-by: Yannick Schaus <github@schaus.net>
When switching tabs in channels, things, inbox, pages
list, the searchbar.clear() function refocuses the
searchbar which brings up a virtual keyboard on mobile
and/or a backdrop or iOS. Since there's apparently no
way to prevent this behavior, do it only when there's
a value for the searchbar's filter.
Signed-off-by: Yannick Schaus <github@schaus.net>
This adds "Scripts" as a top-level object. Scripts are regular
rules, tagged "Script", without triggers or conditions and
having only a single action module with the id "script".
The main settings menu has been modified to group "Rules",
"Scripts" and "Schedule" under a new "Automation" group.
"Configuration & Automation" has been renamed to "Configuration".
Scripts can be added and edited in a dedicated, full-screen
list and editor saving the hassle of having to configure
modules manually.
The new script editor is also used on the "shortcut" button of
regular rules' script actions & conditions. During script
editing, several keyboard shortcuts are available:
- Ctrl-D disables or enable the rule;
- Ctrl-R runs the rule - but saves it first;
- Ctrl-S saves the rule.
The script editor now has support for C-like languages (the
DSL language is automatically mapped to text/x-java) and
Groovy.
When editing ECMAScript, a special Tern plugin will offer
item names for completion when the cursor is in these
positions (repesented by `|`):
- `ir.getItem("|")`
- `itemRegistry.getItem("|")`
- `events.postUpdate("|")`
- `events.sendCommand("|")`
Signed-off-by: Yannick Schaus <github@schaus.net>
- fix#472 - icons in cells
- fix#471 - tabbed pages broken as a result of #452
- fix#468 - display multiple text parameters without options as textarea
- fix#464 - allow dashes in thing UIDs
- fix#463 - reapply filter when changing grouping mode in thing, inbox, pages lists
- fix#462 - wrong link when editing custom metadata from model page
- fix#459 - disable min/max checks for number parameter when there are options present
- fix#421 - remove diacritics instead of stripping accented characters in suggested new item names
- fix#413 - prevent linking to a non-editable item, unlinking from non-editable items
- fix#382 - (No profile) option not selected when editing link
Signed-off-by: Yannick Schaus <github@schaus.net>
Only update thing statusInfo fields which change when
receiving a status update through SSE in the thing list.
Could help with #439.
Show tooltip with the status description when howering
over the status badge.
Closes#414.
Signed-off-by: Yannick Schaus <github@schaus.net>
Config parameters with options don't have to be validated;
they normally are always valid - no empty option is
presented when a value is required etc.
The introduction of validation in #431 broke the control
when options are presented "inline".
See https://github.com/openhab/openhab-core/issues/1763
Signed-off-by: Yannick Schaus <github@schaus.net>
Without this configuration there are Spotless issues with line endings on Windows.
See: openhab/openhab-addons#8712
Signed-off-by: Wouter Born <github@maindrain.net>
Mandating the user to start the scan manually and allowing
them to stop helps keeping the list static, so that the
"add manually" section can be used reliably.
Signed-off-by: Yannick Schaus <github@schaus.net>
This is the only page where all bindings are shown, including
those not sideloaded and not coming from features/the distro.
Closes#386.
Signed-off-by: Yannick Schaus <github@schaus.net>
Allow number config parameter control to input decimals
Fix#379: Check pattern if provided (fix #
Fix#391: Time of day parameter format
Fix#333: Decimal handling & FP issues with oh-stepper, oh-slider
+ fix parameter types, add unit parameter to oh-slider
Signed-off-by: Yannick Schaus <github@schaus.net>
Add `searchbar-ignore` class to link skeletons to prevent
the height of the accordion to be initialized at 0px.
Should fix#401.
Add filters to display only linked or unlinked channels.
Closes#395.
Hide item linking controls for trigger channels.
Closes#390.
Add option to select/unselect all checkboxes when in
multiple links mode. This will take the linked/unlinked
filter into account, and the advanced toggle, but not
the name filter.
Closes#377.
Signed-off-by: Yannick Schaus <github@schaus.net>
The list of (installed and uninstalled) bindings is not sorted.
As a result it depends on what the rest api returns.
In this case the bindings with lowercase first character are placed after the bindings with uppercase.
To fix this after the filter a sort is added.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This prevents infinite loops and other side effects.
Add an option to explicitely retrigger another autocompletion.
Signed-off-by: Yannick Schaus <github@schaus.net>