Commit Graph

829 Commits (c2f31f204f6fb3cb9e7ef638c5a92be795ff2408)

Author SHA1 Message Date
Mark Herwege c2f31f204f
[MainUI] Support iconcolor for all elements in sitemap editor (#1772)
Refs https://github.com/openhab/openhab-core/pull/3403.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-06 22:36:03 +01:00
Mark Herwege d4e5ec83d7
[MainUI] Remove Sitemap List element from editor (#1771)
Refs https://github.com/openhab/openhab-core/pull/3423.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-06 22:06:43 +01:00
dependabot[bot] b70d959d7c
Bump scss-tokenizer and node-sass in /bundles/org.openhab.ui.basic (#1513)
Bumps [scss-tokenizer](https://github.com/sasstools/scss-tokenizer) to
0.4.3 and updates ancestor dependency
[node-sass](https://github.com/sass/node-sass). These dependencies need
to be updated together.

Updates `scss-tokenizer` from 0.2.3 to 0.4.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sasstools/scss-tokenizer/releases">scss-tokenizer's
releases</a>.</em></p>
<blockquote>
<h2>v0.4.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump acorn from 5.7.3 to 5.7.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/33">sasstools/scss-tokenizer#33</a></li>
<li>Fixed ReDoS in &quot;loadAnnotation&quot; function of
&quot;previous-map.js&quot; by <a
href="https://github.com/sushantmittal"><code>@​sushantmittal</code></a>
in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/49">sasstools/scss-tokenizer#49</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/dependabot"><code>@​dependabot</code></a> made
their first contribution in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/33">sasstools/scss-tokenizer#33</a></li>
<li><a
href="https://github.com/sushantmittal"><code>@​sushantmittal</code></a>
made their first contribution in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/49">sasstools/scss-tokenizer#49</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sasstools/scss-tokenizer/compare/v0.4.2...v0.4.3">https://github.com/sasstools/scss-tokenizer/compare/v0.4.2...v0.4.3</a></p>
<h2>v0.4.2</h2>
<h2>Misc</h2>
<ul>
<li>Restore <code>prepublishOnly</code> npm script (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>,
ae79d74)</li>
</ul>
<h2>v0.4.1</h2>
<h2>Fixes</h2>
<ul>
<li>Error handling utf-8 encoded sourcemap urls (<a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/13">#13</a>,
<a href="https://github.com/xzyfer"><code>@​xzyfer</code></a>)</li>
</ul>
<h2>v0.4.0</h2>
<h2>Fixes</h2>
<ul>
<li>Fix <code>endInterpolant</code> not being captured (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/20">#20</a>)</li>
<li>Fix tracking of token position (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/22">#22</a>)</li>
</ul>
<h2>Tests</h2>
<ul>
<li>Add basic test coverage to interpolant tokenization (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/20">#20</a>)</li>
</ul>
<h2>Dependencies</h2>
<ul>
<li>Replace babel-preset-es2015 with babel-preset-env (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>sass-spec@2.5.1 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>babel-core@^6.26.3 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>babel-jest@^23.6.0 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>glob@^7.1.3 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>jest@^23.6.0 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>js-base64@^2.4.9 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>source-map@^0.7.3 (<a
href="https://github.com/xzyfer"><code>@​xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
</ul>
<h2>Misc</h2>
<ul>
<li>TravisCI now tests all supported Node versions</li>
<li>Commit <code>package-lock.json</code></li>
</ul>
<h2>v0.3.0</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="3e518d908c"><code>3e518d9</code></a>
0.4.3</li>
<li><a
href="ff8e9945bc"><code>ff8e994</code></a>
Update changelog</li>
<li><a
href="a53b6f233e"><code>a53b6f2</code></a>
Fixed ReDoS in 'loadAnnotation' function of previous-map.js.</li>
<li><a
href="b55257baa5"><code>b55257b</code></a>
Bump acorn from 5.7.3 to 5.7.4</li>
<li><a
href="db9b196df8"><code>db9b196</code></a>
0.4.2</li>
<li><a
href="ae79d74ad5"><code>ae79d74</code></a>
Restore prepublishOnly npm script</li>
<li><a
href="32a65d8d8d"><code>32a65d8</code></a>
0.4.1</li>
<li><a
href="cef5140251"><code>cef5140</code></a>
Add support for utf8 name in input source map encoding</li>
<li><a
href="07c191732c"><code>07c1917</code></a>
0.4.0</li>
<li><a
href="d74f8038a0"><code>d74f803</code></a>
Commit package-lock.json</li>
<li>Additional commits viewable in <a
href="https://github.com/sasstools/scss-tokenizer/compare/v0.2.3...v0.4.3">compare
view</a></li>
</ul>
</details>
<br />

Updates `node-sass` from 6.0.1 to 7.0.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sass/node-sass/releases">node-sass's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.3</h2>
<h3>Dependencies</h3>
<ul>
<li>Bump sass-graph from 4.0.0 to ^4.0.1</li>
</ul>
<h2>Supported Environments</h2>
<table>
<thead>
<tr>
<th>OS</th>
<th>Architecture</th>
<th>Node</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td>x86 &amp; x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>OSX</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Linux*</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Alpine Linux</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>FreeBSD</td>
<td>i386 amd64</td>
<td>12, 14</td>
</tr>
</tbody>
</table>
<p>*Linux support refers to major distributions like Ubuntu, and
Debian</p>
<h2>v7.0.2</h2>
<h2>This release has been unpublished</h2>
<h2>v7.0.1</h2>
<h3>Dependencies</h3>
<ul>
<li>Bump node-gyp from 7.1.2 to 8.4.1</li>
<li>Bump sass-graph from 2.2.5 to 4.0.0</li>
</ul>
<h2>Supported Environments</h2>
<table>
<thead>
<tr>
<th>OS</th>
<th>Architecture</th>
<th>Node</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td>x86 &amp; x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>OSX</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Linux*</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Alpine Linux</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>FreeBSD</td>
<td>i386 amd64</td>
<td>12, 14</td>
</tr>
</tbody>
</table>
<p>*Linux support refers to major distributions like Ubuntu, and
Debian</p>
<h2>v7.0.0</h2>
<h3>Breaking changes</h3>
<ul>
<li>Drop support for Node 15 (<a
href="https://github.com/nschonni"><code>@​nschonni</code></a>)</li>
<li>Set <code>rejectUnauthorized</code> to <code>true</code> by default
(<a href="https://github.com/scott-ut"><code>@​scott-ut</code></a>, <a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3149">#3149</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Add support for Node 17 (<a
href="https://github.com/nschonni"><code>@​nschonni</code></a>)</li>
</ul>
<h3>Dependencies</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="73869ea88f"><code>73869ea</code></a>
7.0.3</li>
<li><a
href="11e2ab9339"><code>11e2ab9</code></a>
7.0.2</li>
<li><a
href="dc15b70919"><code>dc15b70</code></a>
Bump sass-graph@^4.0.1</li>
<li><a
href="99242d756d"><code>99242d7</code></a>
7.0.1</li>
<li><a
href="77049d166e"><code>77049d1</code></a>
build(deps): bump sass-graph from 2.2.5 to 4.0.0 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3224">#3224</a>)</li>
<li><a
href="c929f25058"><code>c929f25</code></a>
build(deps): bump node-gyp from 7.1.2 to 8.4.1 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3209">#3209</a>)</li>
<li><a
href="918dcb3a77"><code>918dcb3</code></a>
Lint fix</li>
<li><a
href="0a21792803"><code>0a21792</code></a>
Set rejectUnauthorized to true by default (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3149">#3149</a>)</li>
<li><a
href="e80d4afbce"><code>e80d4af</code></a>
chore: Drop EOL Node 15 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3122">#3122</a>)</li>
<li><a
href="d7533977a0"><code>d753397</code></a>
feat: Add Node 17 support (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3195">#3195</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sass/node-sass/compare/v6.0.1...v7.0.3">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the
default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as
the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as
the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the
default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/openhab/openhab-webui/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 19:44:48 +01:00
stefan-hoehn d5d50e6a27
`oh-knob`: Change dottedPath prop to text (#1773)
Property needs to be text to be able to set all available values for the css stroke-dasharray style.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-03-06 09:58:30 +01:00
Wouter Born 5e4e32019e
Update package.json versions of UIs to 4.0.0 (#1762)
These versions are probably not really used by anything, but it is still
nice if they are up to date.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-05 23:26:48 +01:00
lolodomo e879347eb8
[BasicUI] Change defaults when the icon reference is incomplete (#1766)
In case the icon reference contains only 2 segments, the default for
icon source is "oh", the first segment is the icon set and the second
segment is the icon name.

So mdi:lightbulb will reference an OH icon named lighbulb in iconset
mdi.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-05 20:54:42 +01:00
Wouter Born 50f9ac4db6
Remove org.openhab.ui.cometvisu.php left-overs (#1767)
This helps with fixing the release pipeline, see:

https://ci.openhab.org/view/Sandbox/job/sandbox-openhab4-release/848/console

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-05 20:46:48 +01:00
lolodomo 5213a34512
[BasicUI] Remove reference to sitemap.List (#1764)
Follow-up #1755

Related to openhab/openhab-core#3423

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-05 18:37:40 +01:00
lolodomo 230e9cd413
[BasicUI] Fix primary/secondary color for icon (#1763)
Follow-up #1756

One line was missing in the initial PR.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-05 18:35:40 +01:00
stefan-hoehn 435eb35a46
Fix Cordova build documentation (#1760)
Fixes the npm script name in the Cordova build documentation.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-03-05 14:25:53 +01:00
lolodomo 417a282070
Basicui primarysecondary icon (#1756)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-05 11:46:19 +01:00
lolodomo 1ac9d770d8
[basicui] Support primary and secondary as value for label/value colors (#1733)
Closes #1716

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:34:57 +01:00
lolodomo 970cd6f391
[BasicUI] Remove support for List element (#1755)
Related to openhab/openhab-android#3285

This sitemap widget is not documented.

It is not implemented neither in Android app nor iOS app.

It was partially implemented in BasicUI but does not work well (it
breaks the layout).

Without any opened issue, we can be relatively sure that noone is using
it.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:33:24 +01:00
lolodomo d23209266b
[BasicUI] OH icon scaling (#1754)
Fix #1744

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:27:58 +01:00
lolodomo db7e7da13d
[basicUI] Support iconcolor for non OH source icons (#1751)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:25:53 +01:00
lolodomo 66b55547a4
[BasicUI] Fix label color initialization for color widget (#1753)
Fix #1752

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:24:22 +01:00
lolodomo 7553748c78
[BasicUI] Add missing label/color management for rollershutter items (#1749)
Fix #1748

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-04 22:23:24 +01:00
dependabot[bot] 737427f777
Bump marked from 3.0.2 to 4.2.12 in /bundles/org.openhab.ui/web (#1277)
Bumps https://github.com/markedjs/marked from 3.0.2 to 4.2.12.
Only used in addon-details.vue where usage was adjusted to the new version.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-04 14:54:02 +01:00
Florian Hotze 1b5170ef4c
Configuration & iPhone style fixes for the `options` widget action (#1734)
- Fixes the style of the actions popup on iPhones in the openHAB iOS
app. It did not respect the safe-area-inlets and therefore large action
popups possibly placed behing the notch or outside of the display.
- Fixes #1210: trim whitespaces when parsing the `actionOptions` to
avoid having whitespaces in commands sent to the server.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-03 18:57:05 +01:00
Florian Hotze 984a1beb7b
Fix undefined in widget expression evaluation (#1747)
Regression from #1696.

The widget expression evaluator returns undefined a string to make it
appear in the widget expression tester etc.
This has unattended side effects because the UI internally relies on
undefined checks.

This fixes the regression by reverting the change and instead modifying
the widget-expression tester to show undefined string if text is
`undefined`.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-03 18:36:25 +01:00
Wouter Born e9b8f37b9e
Improvements for Eclipse provisioned add-ons (#1736)
This improves the UI when working with add-ons that are provisioned
using Eclipse.

* Show these add-ons in the "openHAB Distribution" section
* Show in the add-on details when add-ons are provisioned with Eclipse
* Show the add-on documentation and issue links when add-ons are
provisioned with Eclipse
* Hide Install/Uninstall buttons when add-ons are provisioned with
Eclipse

Related to openhab/openhab-core#3406

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-03 17:40:40 +01:00
Wouter Born 785bbe708b
Upgrade to Karaf 4.4.3 (#1600)
* Rework Servlets to use Http Whiteboard annotations in favor of
proprietary `org.openhab.core.io.http.servlet` classes

Depends on openhab/openhab-core#3252

Fixes #1172

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-01 18:52:49 +01:00
Florian Hotze 30ca65ef4b
Update autocompletion for widget configuration access (#1731)
Follow-up for PR #1698 where I forgot this.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-01 17:56:24 +01:00
Mark Herwege a028d1ce90
Support configuring Input element for sitemaps (#1735)
https://github.com/openhab/openhab-core/pull/3398 added an Input element
to sitemaps.
This adds support for configuring this element to MainUI.
A PR for BasicUI to support input elements is in progress
(https://github.com/openhab/openhab-webui/pull/1729).

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-02-28 21:34:23 +01:00
lolodomo 27eeefc72f
[basicui] Add support for iconify and Google material icons (#1706)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-02-27 19:09:47 +01:00
J-N-K a55220e9b5
Handle NOT_YET_READY in thing status (#1727)
See https://github.com/openhab/openhab-core/issues/3394.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-23 10:54:29 +01:00
Yannick Schaus c55c378cc9
Z-Wave map: show only current network, link fixes (#1656)
Potentially fixes #1644.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Yannick Schaus <github@schaus.net>
2023-02-22 22:33:48 +01:00
Florian Hotze 1aef618989
Save changed rule/scene on runNow & Fix keyboard shortcuts in scene editor (#1720)
This:

- makes rule and scene editor automatically save the rule/scene when
"Run Now" is clicked and the rule/scene was modified.
- fixes the keyboard shortcuts for "Run Now" and "Enable/Disable" in the
scene editor

Both were reported/discussed in
https://github.com/openhab/openhab-webui/pull/1662#issuecomment-1434132699.

/cc @stefan-hoehn

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-22 19:45:46 +01:00
Mark Herwege 340cf8646f
Add step parameter to oh-input (#1726)
When using number type in an oh-input card or oh-input-item list item, a
default step value of 1 is always respected. This leads to confusion
with users not being able to enter fractional numbers.
See [forum
post](https://community.openhab.org/t/problems-with-numerical-values-in-input-cards/134774).

This PR makes the step parameter visible, and uses a default of any
value (no step check) if no step value is provided. This is a small
breaking change, but less confusing to users.

--
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-02-22 19:27:42 +01:00
stefan-hoehn b3ca6b2796
add rulesWithTags to oh-repeater (#1724)
fixes #1721 Add Scenes option to oh-repeater component

This PR adds the possibility to iterate over a list of rules queried via
a tag.

For example it allows to create a list of Scenes via the oh-repeater by
using the rulesTag = Scene and trigger the rule via a oh-button.

Example

```
slots:
  default:
    - component: oh-list
      slots:
        default:
          - component: oh-repeater
            config:
              for: scene
              sourceType: rulesWithTags
              ruleTags: Scene
            slots:
              default:
                - component: oh-button
                  config:
                    action: rule
                    actionRule: =loop.scene.uid
                    text: =loop.scene.name
```

--
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-21 19:58:02 +01:00
Florian Hotze de0e823488
[basicui] Remove roboto font leftovers (#1719)
Follow-up PR for #1712.

/cc @lolodomo

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-21 19:45:46 +01:00
stefan-hoehn 17f12f5184
[Blockly] Add workspace search (#1723)
This adds the Blockly workspace-search plugin that allows to search within the current workspace via Cmd/Ctrl + F.
A small search box is opened in the upper right corner and search result blocks are hightlighted grey/black.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-19 23:24:44 +01:00
stefan-hoehn 0235b65a7d
[Blockly] Add bitwise math operators (#1722)
This adds two new math blocks to support bitwise NOT, AND, OR, XOR and SHIFT operations in Blockly.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-19 22:11:17 +01:00
Florian Hotze 5b680e3a08
Fix link for oh-map-page docs (#1704)
https://github.com/openhab/openhab-webui/pull/1695/files#r1103795157.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 23:18:35 +01:00
Yannick Schaus 5bf98457f4
Add a Scene settings menu entry and editor (#1662)
Closes #1528.

The scene editor allows defining Item — command pairs that are applied when the scene is activated. While designing a scene, it is possible to sync the target state to the current Item state and test the target state command.

Technologically scenes are just rules without triggers, so they can be activated using the „Run Rule, Script, Scene …“ action.

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Yannick Schaus <github@schaus.net>
2023-02-16 22:25:26 +01:00
lolodomo b2bd16b43f
[basicui] Remove Roboto font as unused by the app (#1712)
Fix #1273

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-02-16 22:17:12 +01:00
stefan-hoehn f1e4e91c1b
Blockly metadata blocks (#1664)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Also-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 22:02:24 +01:00
Florian Hotze e760877d5e
Provide access to widget configuration from widget expressions (#1698)
Fixes #1025.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 22:00:28 +01:00
Florian Hotze 78841a5bb8
Remove Blockly GraalJS dependency on prepended code (#1709)
The prepended code that made runtime, itemRegistry and events available
in Blockly on GraalJS is not required anymore. The only dependency was
the PercentType volume in Audio/Voice actions, but
https://github.com/openhab/openhab-core/pull/3352 fixed this.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 21:58:01 +01:00
Florian Hotze b3d2e3094b
Update openhab-js tern definitions (#1710)
This updates the tern definitions for the current library version
included in the addon (4.0.0).

Reference https://github.com/openhab/openhab-js/compare/v3.1.2...v4.0.0.
Last update of tern defs was in #1576.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 21:57:26 +01:00
Florian Hotze 8481e473b0
Fix wrong label from #1703 (#1705) 2023-02-12 20:55:05 +01:00
stefan-hoehn dbc3cdb5ee
Add new capabilities to oh-knob component using vue-round-slider (#1703)
Closes #1640.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-12 20:21:15 +01:00
Florian Hotze 343eda78ed
[MainUI] Fix redirection for reverse proxy with authentication not working (#1670)
When the /rest/ call fails with 302 and the client is redirected to the login page, the login page should redirect the client back to the openHAB UI and not the REST API.
Therefore the URL param of the redirect URL needs to be modified to remove the rest/ from it.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 14:34:13 +01:00
Alexander Münch 25640b1798
Fix typo in comment (#1694) 2023-02-12 13:39:16 +01:00
Florian Hotze 48a3cb8995
Improve SIP Client component docs (#1695)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:38:16 +01:00
Florian Hotze deb8e195fc
Display `undefined` correctly in widget expressions (#1696)
The widget expressions (can be tested using the expression tester) did display undefined as an empty string, which was quite confusing and a bug.
Now undefined is displayed as undefined string.

Fixes #1026.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:31:32 +01:00
Florian Hotze d1a947da7b
Improve Item name validation & Add unchangeable note on Item creation (#1699)
This updates the item-form to show a more detailed error message on Item name validation (to match the other parts of the UI like script creation etc.). Furthermore, a note is displayed to inform that the Item name cannot be changed after creation.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:23:42 +01:00
Florian Hotze 35f81ce93a
Validate Widget UID & page ID on creation (#1700)
Fixes #1689.

Also mark label as required because the pagedesigner-mixin.js alerts if label is not set.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:22:28 +01:00
Florian Hotze 9f85d213de
Add delete button for custom metadata namespaces (#1701)
Due to the missing "Config" tab for custom metadata namespaces, there was no way to delete them from the UI.
 This adds a button to the bottom of the code editor of custom metadata namespaces to delete them.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:20:52 +01:00
stefan-hoehn 92bca23b59
Add doc link to state/commandDescription edit form (#1681)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-09 09:20:44 +01:00