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 "loadAnnotation" function of
"previous-map.js" 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 & 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 & 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>
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>
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>
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>
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>
- 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>
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>
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>
* 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>