Commit Graph

1101 Commits (f912de509c504ab2619bbcbca58fe959f0eb6ebf)

Author SHA1 Message Date
GiviMAD 746f5f4eb9
Allow using `=` in double-quoted widget action `options` (#1820)
Fixes https://github.com/openhab/openhab-webui/issues/1641#issuecomment-1491772150.

Update options parse logic to match recent core changes in https://github.com/openhab/openhab-core/pull/3363 and https://github.com/openhab/openhab-core/pull/3488.

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-04-02 14:21:03 +02:00
Florian Hotze 59a1dbeace
Enforce required role when accessing admin or `/profile` routes (#1815)
Fixes #1794.

This checks for admin role when a client tries to access an admin route,
e.g. /settings, /developer, and redirects to log in if needed.
It also checks if the client is logged in when /profile is accessed.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-04-01 22:52:30 +02:00
Florian Hotze d96b95d530
Thing details: Make code tab read-only if not editable (#1819)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-04-01 22:43:16 +02:00
Florian Hotze d5d6842eb6
Fix action `options` regression (#1813)
Fixes #1806, which is regression from #1734.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-30 00:37:50 +02:00
Florian Hotze d0c7ee4435
Fix text overflow in config-sheet component (#1814)
Fixes #1803.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-30 00:37:10 +02:00
Dan Cunningham cb0436bdca
Fix add equipment/points expert mode (#1802)
Fixes #1775.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2023-03-19 10:06:38 +01:00
lolodomo 6836ce578a
[BasicUI] Handle new color keyword "itemValue" (#1793)
Depends on openhab/openhab-core#3453

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-17 22:05:08 +01:00
lolodomo 34980168aa
[BasicUI] Consider the correct iconset when reloading the icon (#1792)
Fix #1790

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-17 22:03:52 +01:00
Florian Hotze e7493db398
Update Material icons to 6.7.0 & Remove tff fonts (#1740)
Fixes #1708.
Material icon source:
https://github.com/jossef/material-design-icons-iconfont/tree/v6.7.0/dist/fonts.

This:

- Removes tff fonts as all modern browsers support woff (e.g. Firefox
added support in 2010) and woff2 (see
https://www.w3schools.com/css/css3_fonts.asp), which both have better
compression.
- Sets CSS to temporarily show system font while loading fonts (even
though we talk about icons here). Recommendation from Chrome Lighthouse
audit, see
https://developer.chrome.com/docs/lighthouse/performance/font-display/?utm_source=lighthouse&utm_medium=devtools#how-to-avoid-showing-invisible-text.

 --
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-17 21:58:29 +01:00
Michal Srb 02e3eb9eb8
Pass slot names down in generic-widget-component (#1798)
Without this custom widgets based on f7-list-item can not pass
components to slots other than inner.

This is based on @arroyoj's suggestion
https://github.com/openhab/openhab-webui/issues/1129.

Fixes #1129.

Signed-off-by: Michal Srb <michalsrb@gmail.com>
2023-03-17 21:04:06 +01:00
Florian Hotze 008a53ea8f
Use channelType label & description as placeholder for channel details (#1788)
Use the `channelType`’s label and description as placeholder inside the
`channel-general-settings` component if they are available and no
explicit label or description is set.

Remove the `ready` var from the `channel-edit` component as is is only
used by the `channel-general-settings` component, for which all required
data are passed to `channel-edit` and therefore independent from the API
request inside `channel-edit`.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-15 16:56:27 +01:00
Christian Rose 87903ffe47
Fix missing diagram lines for groups in analyzer (#1761)
Fixes #1365.

The analyzer now also shows the diagram lines if the Item is a Group that
derives its state from its members.
The group must have the type Number(:) or Dimmer.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Christian Rose <christian.rose@chrose.de>
2023-03-13 21:22:52 +01:00
petero-dk 3234887212
Allow setting gradientDirection for oh-trend component (#1786)
Adds an option for setting the gradient direction of the oh-trend component.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Peter Obel <peter@ecomerc.com> (github: petero-dk)
2023-03-13 19:35:23 +01:00
Florian Hotze 3dd8e6fdd3
Scene editor: Fix triggers/conditions & Remove enable/disable and status (#1739)
- Fixes an issue where adding triggers and conditions to scenes using
the YAML code tab was not possible (reported in
https://github.com/openhab/openhab-webui/pull/1662#issuecomment-1435019).
- Fixes an issue where `null` was entered as triggers or conditions and
saving the scene failed.
- Fixes SSE event subscription for rule status inside scene editor.
- Removes the disable and enable actions from the scene the scenes list
as there are no status badges.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-03-11 22:16:16 +01:00
Florian Hotze e12a467ed7
Refactor `oh-knob` component to remove `vue-knob-control` & Lazy load dependencies (#1718)
Follow-up PR for #1703.

This:
- lazy loads `vue-knob-control`
- refactors `vue-round-slider` to only use `vue-round-slider` and remove
`vue-knob-control`

A compatiblity layers ensures that existing `oh-knob` configurations
still work and default values of properties have been adjusted so that
`vue-round-slider` looks like the removed `vue-knob-control`.
Paremeter description and docs were updated accordingly to
`vue-round-slider`.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Dan Cunningham <dan@digitaldan.com>
2023-03-11 16:05:05 +01:00
J-N-K b885158e07
Fix channel-details not shown (#1785)
Fixes #1784.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-10 14:57:53 +01:00
Mark Herwege 58d2755b03
Fix sitemap config boolean attributes (#1783)
This is a fix for the remaining bug in
https://github.com/openhab/openhab-webui/pull/1781
Boolean parameters are now properly treated as booleans and not strings
(which made the type normalizer fail in core, and blocked the sitemap
from being rendered).

See
https://github.com/openhab/openhab-webui/pull/1781#issuecomment-1461480369.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-09 20:01:08 +01:00
lolodomo aaf4b863c2
[BasicUI] Remove unused formats for font MaterialIcons-Regular (#1776)
Only 3 formats were/are set in `@font-face` rule: ttf, woff and woff2.
These 3 formats are sufficient to cover all current WEB browsers. Keep
only these formats and remove the other formats: eot, jmap and svg.

JAR file size is reduced by almost 20%.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-09 09:35:19 +01:00
Dan Cunningham b90cbc47f2
Fixes WebAudio sink not playing on Safari (#1765)
Fixes #1717.

Safari (and Chrome possibly as well) requires a user interaction after a
web audio stream has been requested, which means audio will not play
until at least one stream has been started and then the user clicks
somewhere in the web app.
This implements a workaround
(https://www.mattmontag.com/web/unlock-web-audio-in-safari-for-ios-and-macos)
which unlocks and stores the AudioContext globally, so that after the
first stream only a single interaction is required for the lifetime of
that browser session.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2023-03-08 22:50:26 +01:00
stefan-hoehn 32470b36ca
Add visible property to `oh-plan-marker` (#1652)
Fixes #845.

This adds the visible property for the plan marker component and provides docs for iconStyle and tooltipStyle.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-03-08 16:51:37 +01:00
Mark Herwege ae7ac984ae
Sitemap editor: Fix attribute value capturing in parser & string value handling in widget detail view (#1781)
See comments in https://github.com/openhab/openhab-webui/pull/1745

Fix attribute values for `forceasitem` and `sendFrequency` not being
captured properly in code tab.
Fix boolean parameters `legend`, `forceasitem` and `switchSupport` not
interpreting string value correctly in widget detail view.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-08 16:15:37 +01:00
Mark Herwege 322802c9a4
No quotes around chart period parameter in generated sitemap DSL (#1745)
Related to https://github.com/openhab/openhab-core/issues/3409.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-03-07 17:44:12 +01:00
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