iobroker.nexowatt-ui 0.7.48 → 0.7.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/io-package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "nexowatt-ui",
4
- "version": "0.7.48",
4
+ "version": "0.7.49",
5
5
  "news": {
6
+ "0.7.49": {
7
+ "en": "Mobile VIS hotfix: History controls no longer overflow on smartphones; SmartHome uses a reliable mobile drawer/loading state.",
8
+ "de": "Mobile-VIS-Hotfix: History-Bedienleiste läuft auf Smartphones nicht mehr seitlich weg; SmartHome nutzt einen zuverlässigen mobilen Drawer/Ladezustand."
9
+ },
6
10
  "0.7.48": {
7
11
  "en": "Hotfix: core energy-flow datapoints are no longer discarded as stale, storage split/signed DPs remain authoritative, and balance-derived battery values are only used when no storage DP is configured.",
8
12
  "de": "Hotfix: Kern-Datenpunkte im Energiefluss werden nicht mehr wegen altem Zeitstempel verworfen, getrennte/signed Speicher-DPs bleiben autoritativ und berechnete Speicherwerte werden nur genutzt, wenn kein Speicher-DP konfiguriert ist."
@@ -1995,8 +1999,12 @@
1995
1999
  }
1996
2000
  },
1997
2001
  "instanceObjects": [],
1998
- "version": "0.7.48",
2002
+ "version": "0.7.49",
1999
2003
  "news": {
2004
+ "0.7.49": {
2005
+ "en": "Mobile VIS hotfix: History controls no longer overflow on smartphones; SmartHome uses a reliable mobile drawer/loading state.",
2006
+ "de": "Mobile-VIS-Hotfix: History-Bedienleiste läuft auf Smartphones nicht mehr seitlich weg; SmartHome nutzt einen zuverlässigen mobilen Drawer/Ladezustand."
2007
+ },
2000
2008
  "0.7.42": {
2001
2009
  "en": "Feature-dependent visibility fixed: EVCS/charging station and storage farm are only shown in the customer frontend when they are actually configured. Default/legacy placeholders no longer enable wallbox UI; AI Advisor suppresses EV/wallbox hints when no wallbox is available.",
2002
2010
  "de": "Anlagenabhängige Sichtbarkeit korrigiert: EVCS/Ladestation und Speicherfarm erscheinen im Kunden-Frontend nur noch, wenn sie wirklich konfiguriert sind. Default-/Legacy-Placeholder aktivieren keine Wallbox-Anzeige mehr; KI-Empfehlungen verzichten ohne Wallbox auf EV-/Wallbox-Hinweise."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.nexowatt-ui",
3
- "version": "0.7.48",
3
+ "version": "0.7.49",
4
4
  "description": "Responsive NexoWatt EMS visualization adapter.",
5
5
  "author": "NexoWatt",
6
6
  "license": "Proprietary License (NPL) v1.0",
package/www/history.html CHANGED
@@ -194,24 +194,28 @@
194
194
  <button class="btn sm" type="button" onclick="window.location.href='year-report.html'">Jahresreport</button>
195
195
  </div>
196
196
  </section>
197
- <div class="toolbar">
198
- <div class="range">
197
+ <div class="toolbar history-toolbar">
198
+ <div class="range history-toolbar__range" aria-label="Zeitraum">
199
199
  <button class="btn sm range-btn active" data-range="day">Tag</button>
200
200
  <button class="btn sm range-btn" data-range="week">Woche</button>
201
201
  <button class="btn sm range-btn" data-range="month">Monat</button>
202
202
  <button class="btn sm range-btn" data-range="year">Jahr</button>
203
203
  </div>
204
- <button id="navPrev" class="btn sm" title="Zurück">◀</button>
205
- <button id="navNext" class="btn sm" title="Weiter">▶</button>
206
- <button id="resetZoomBtn" class="btn sm hidden" title="Zoom zurücksetzen">Zoom zurück</button>
207
- <label>Datum: <input type="date" id="day"></label>
208
- <button id="stackToggle" class="btn sm active" title="Stapel/Fläche an/aus">Stapel</button>
209
- <!-- Zeitfilter bleiben intern erhalten (für Zoom/Reset), werden aber nicht mehr im UI gezeigt -->
210
- <label class="hidden">Von: <input type="datetime-local" id="from"></label>
211
- <label class="hidden">Bis: <input type="datetime-local" id="to"></label>
212
- <button id="loadBtn" class="btn sm">Laden</button>
213
- <button id="evcsReportBtn" class="btn sm">EVCS PDF</button>
214
- <button id="yearReportBtn" class="btn sm">Jahresreport</button>
204
+ <div class="history-toolbar__date">
205
+ <button id="navPrev" class="btn sm" title="Zurück" aria-label="Vorheriger Zeitraum">◀</button>
206
+ <label><span>Datum</span><input type="date" id="day"></label>
207
+ <button id="navNext" class="btn sm" title="Weiter" aria-label="Nächster Zeitraum">▶</button>
208
+ </div>
209
+ <div class="history-toolbar__actions" aria-label="Aktionen">
210
+ <button id="resetZoomBtn" class="btn sm hidden" title="Zoom zurücksetzen">Zoom zurück</button>
211
+ <button id="stackToggle" class="btn sm active" title="Stapel/Fläche an/aus">Stapel</button>
212
+ <!-- Zeitfilter bleiben intern erhalten (für Zoom/Reset), werden aber nicht mehr im UI gezeigt -->
213
+ <label class="hidden">Von: <input type="datetime-local" id="from"></label>
214
+ <label class="hidden">Bis: <input type="datetime-local" id="to"></label>
215
+ <button id="loadBtn" class="btn sm">Laden</button>
216
+ <button id="evcsReportBtn" class="btn sm hidden" data-feature="evcs">EVCS PDF</button>
217
+ <button id="yearReportBtn" class="btn sm">Jahresreport</button>
218
+ </div>
215
219
  </div>
216
220
  <canvas id="chart"></canvas>
217
221
  <div class="legend" id="mainLegend">
@@ -220,7 +224,7 @@
220
224
  <div class="lg" data-series="dchg" data-label="Entladung"><div class="sw dchg"></div><span>Entladung</span></div>
221
225
  <div class="lg" data-series="sell" data-label="Einspeisung"><div class="sw sell"></div><span>Einspeisung</span></div>
222
226
  <div class="lg" data-series="buy" data-label="Bezug"><div class="sw buy"></div><span>Bezug</span></div>
223
- <div class="lg" data-series="evcs" data-label="E‑Mobilität"><div class="sw evcs"></div><span>E‑Mobilität</span></div>
227
+ <div class="lg hidden" data-feature="evcs" data-series="evcs" data-label="E‑Mobilität"><div class="sw evcs"></div><span>E‑Mobilität</span></div>
224
228
  <div class="lg" data-series="load" data-label="Verbrauch"><div class="sw load"></div><span>Verbrauch</span></div>
225
229
  <div class="lg" data-series="soc" data-label="Ladezustand"><div class="sw soc"></div><span>Ladezustand</span></div>
226
230
  </div>
package/www/history.js CHANGED
@@ -2260,12 +2260,16 @@ async function load(force = false){
2260
2260
  const evcsAvailable = ((Number(sc.evcsConfiguredCount || 0) || (Array.isArray(sc.evcsList) ? sc.evcsList.filter(function(r){ if(!r || r.enabled === false) return false; return ['powerId','energyTotalId','energySessionId','statusId','activeId','onlineId','setCurrentAId','setPowerWId','enableWriteId','lockWriteId','rfidReadId','vehicleSocId'].some(function(k){ return String(r[k] || '').trim(); }); }).length : 0)) > 0);
2261
2261
  const c = evcsAvailable ? Math.max(0, Math.round(Number(sc.evcsCount) || 0)) : 0;
2262
2262
  const showEvcs = evcsAvailable && c >= 2;
2263
+ const showEvcsHistory = evcsAvailable && c >= 1;
2263
2264
  const l = document.getElementById('menuEvcsLink');
2264
2265
  if (l) l.classList.toggle('hidden', !showEvcs);
2265
2266
  const t = document.getElementById('tabEvcs');
2266
2267
  if (t) t.classList.toggle('hidden', !showEvcs);
2267
2268
  const n = document.getElementById('nav-evcs');
2268
2269
  if (n) n.classList.toggle('hidden', !showEvcs);
2270
+ document.querySelectorAll('[data-feature="evcs"]').forEach(function(el){
2271
+ el.classList.toggle('hidden', !showEvcsHistory);
2272
+ });
2269
2273
  const sh = !!((cfg.smartHome && cfg.smartHome.enabled) || cfg.smartHomeEnabled);
2270
2274
  const sl = document.getElementById('menuSmartHomeLink');
2271
2275
  if (sl) sl.classList.toggle('hidden', !sh);
@@ -44,5 +44,5 @@
44
44
  "purpose": "maskable"
45
45
  }
46
46
  ],
47
- "version": "0.7.48"
47
+ "version": "0.7.49"
48
48
  }
@@ -81,7 +81,7 @@
81
81
 
82
82
  <!-- Filter-/Chip-Leiste bewusst entfernt (Endkunden-UI soll clean bleiben). -->
83
83
 
84
- <div id="nw-smarthome-empty" class="nw-sh-empty" style="display:none;"></div>
84
+ <div id="nw-smarthome-empty" class="nw-sh-empty nw-sh-empty--loading">SmartHome wird geladen …</div>
85
85
  <div id="nw-smarthome-rooms" class="nw-sh-rooms"></div>
86
86
  </section>
87
87
  </div>
package/www/smarthome.js CHANGED
@@ -3238,11 +3238,14 @@ function nwShowEmptyState(show, ctx) {
3238
3238
  if (!empty) return;
3239
3239
 
3240
3240
  if (!show) {
3241
+ empty.classList.remove('nw-sh-empty--loading');
3241
3242
  empty.style.display = 'none';
3242
3243
  empty.textContent = '';
3243
3244
  return;
3244
3245
  }
3245
3246
 
3247
+ empty.classList.remove('nw-sh-empty--loading');
3248
+
3246
3249
  const enabled = (typeof ctx?.enabled === 'boolean')
3247
3250
  ? ctx.enabled
3248
3251
  : (typeof nwSmartHomeEnabled === 'boolean' ? nwSmartHomeEnabled : null);
@@ -8359,6 +8362,14 @@ async function nwReloadDevices(opts) {
8359
8362
  nwApplyFiltersAndRender();
8360
8363
  } catch (e) {
8361
8364
  console.error('SmartHome reload error:', e);
8365
+ nwShowEmptyState(true, { enabled: nwSmartHomeEnabled, reason: 'load-error' });
8366
+ const empty = document.getElementById('nw-smarthome-empty');
8367
+ if (empty) {
8368
+ empty.innerHTML = [
8369
+ '⚠️ <b>SmartHome-Daten konnten nicht geladen werden.</b><br/>',
8370
+ '<span style="opacity:0.85">Bitte Verbindung/API prüfen und die Seite neu laden.</span>'
8371
+ ].join('');
8372
+ }
8362
8373
  } finally {
8363
8374
  nwReloadInFlight = false;
8364
8375
  }
package/www/styles.css CHANGED
@@ -10917,3 +10917,361 @@ body.nw-page-ems-apps .nw-heatingrod-stage-dp-row .nw-config-dp-input-wrapper .n
10917
10917
  min-width:520px !important;
10918
10918
  }
10919
10919
  }
10920
+
10921
+ /* =====================================================================
10922
+ NexoWatt EMS 0.7.49 – Mobile VIS Hotfix
10923
+ - History toolbar ohne horizontales Wegscrollen auf Smartphone
10924
+ - SmartHome Mobile Drawer/Content wird zuverlässig sichtbar
10925
+ - EVCS-History-Aktionen nur anzeigen, wenn wirklich Ladepunkte vorhanden sind
10926
+ ===================================================================== */
10927
+ body.nw-page-history,
10928
+ body.nw-page-smarthome{
10929
+ overflow-x:hidden !important;
10930
+ }
10931
+
10932
+ /* History: strukturiert statt langer, horizontaler Button-Leiste. */
10933
+ body.nw-page-history .history-toolbar,
10934
+ body.nw-cockpit-page.nw-page-history .history-toolbar{
10935
+ display:grid !important;
10936
+ grid-template-columns:minmax(260px, auto) minmax(280px, 1fr) minmax(260px, auto) !important;
10937
+ align-items:center !important;
10938
+ gap:10px !important;
10939
+ overflow:visible !important;
10940
+ flex-wrap:unset !important;
10941
+ }
10942
+ body.nw-page-history .history-toolbar__range,
10943
+ body.nw-cockpit-page.nw-page-history .history-toolbar__range,
10944
+ body.nw-page-history .history-toolbar__date,
10945
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date,
10946
+ body.nw-page-history .history-toolbar__actions,
10947
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions{
10948
+ min-width:0 !important;
10949
+ width:100% !important;
10950
+ }
10951
+ body.nw-page-history .history-toolbar__range,
10952
+ body.nw-cockpit-page.nw-page-history .history-toolbar__range{
10953
+ display:grid !important;
10954
+ grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
10955
+ gap:8px !important;
10956
+ }
10957
+ body.nw-page-history .history-toolbar__date,
10958
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date{
10959
+ display:grid !important;
10960
+ grid-template-columns:44px minmax(160px, 1fr) 44px !important;
10961
+ gap:8px !important;
10962
+ align-items:stretch !important;
10963
+ }
10964
+ body.nw-page-history .history-toolbar__date label,
10965
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date label{
10966
+ display:grid !important;
10967
+ grid-template-columns:auto minmax(0, 1fr) !important;
10968
+ gap:8px !important;
10969
+ align-items:center !important;
10970
+ width:100% !important;
10971
+ min-width:0 !important;
10972
+ }
10973
+ body.nw-page-history .history-toolbar__date label span,
10974
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date label span{
10975
+ font-size:12px !important;
10976
+ font-weight:850 !important;
10977
+ color:rgba(203,213,225,.78) !important;
10978
+ white-space:nowrap !important;
10979
+ }
10980
+ body.nw-page-history .history-toolbar__actions,
10981
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions{
10982
+ display:flex !important;
10983
+ justify-content:flex-end !important;
10984
+ gap:8px !important;
10985
+ flex-wrap:wrap !important;
10986
+ }
10987
+ body.nw-page-history .history-toolbar .btn,
10988
+ body.nw-cockpit-page.nw-page-history .history-toolbar .btn{
10989
+ min-height:38px !important;
10990
+ min-width:0 !important;
10991
+ display:inline-flex !important;
10992
+ align-items:center !important;
10993
+ justify-content:center !important;
10994
+ white-space:nowrap !important;
10995
+ }
10996
+ body.nw-page-history .history-toolbar input[type="date"],
10997
+ body.nw-cockpit-page.nw-page-history .history-toolbar input[type="date"]{
10998
+ min-width:0 !important;
10999
+ width:100% !important;
11000
+ }
11001
+
11002
+ @media (max-width: 1060px){
11003
+ body.nw-page-history .history-toolbar,
11004
+ body.nw-cockpit-page.nw-page-history .history-toolbar{
11005
+ grid-template-columns:1fr !important;
11006
+ }
11007
+ body.nw-page-history .history-toolbar__actions,
11008
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions{
11009
+ justify-content:stretch !important;
11010
+ }
11011
+ body.nw-page-history .history-toolbar__actions > .btn,
11012
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions > .btn{
11013
+ flex:1 1 140px !important;
11014
+ }
11015
+ }
11016
+
11017
+ @media (max-width: 640px){
11018
+ body.nw-page-history .hist-wrap,
11019
+ body.nw-cockpit-page.nw-page-history .hist-wrap{
11020
+ width:100% !important;
11021
+ max-width:100% !important;
11022
+ padding:8px !important;
11023
+ }
11024
+ body.nw-page-history .nw-page-hero,
11025
+ body.nw-cockpit-page.nw-page-history .nw-page-hero{
11026
+ padding:14px !important;
11027
+ border-radius:20px !important;
11028
+ }
11029
+ body.nw-page-history .nw-page-hero h1,
11030
+ body.nw-page-history .nw-page-hero h2,
11031
+ body.nw-cockpit-page.nw-page-history .nw-page-hero h1,
11032
+ body.nw-cockpit-page.nw-page-history .nw-page-hero h2{
11033
+ font-size:clamp(26px, 8.2vw, 34px) !important;
11034
+ line-height:1.04 !important;
11035
+ }
11036
+ body.nw-page-history .nw-page-hero__actions,
11037
+ body.nw-cockpit-page.nw-page-history .nw-page-hero__actions{
11038
+ display:grid !important;
11039
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
11040
+ gap:8px !important;
11041
+ width:100% !important;
11042
+ }
11043
+ body.nw-page-history .nw-page-hero__actions .btn,
11044
+ body.nw-cockpit-page.nw-page-history .nw-page-hero__actions .btn{
11045
+ min-height:46px !important;
11046
+ border-radius:16px !important;
11047
+ }
11048
+ body.nw-page-history .history-toolbar,
11049
+ body.nw-cockpit-page.nw-page-history .history-toolbar{
11050
+ padding:12px !important;
11051
+ border-radius:20px !important;
11052
+ overflow:visible !important;
11053
+ }
11054
+ body.nw-page-history .history-toolbar__range,
11055
+ body.nw-cockpit-page.nw-page-history .history-toolbar__range{
11056
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
11057
+ }
11058
+ body.nw-page-history .history-toolbar__date,
11059
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date{
11060
+ grid-template-columns:46px minmax(0, 1fr) 46px !important;
11061
+ }
11062
+ body.nw-page-history .history-toolbar__date label,
11063
+ body.nw-cockpit-page.nw-page-history .history-toolbar__date label{
11064
+ grid-template-columns:1fr !important;
11065
+ gap:5px !important;
11066
+ }
11067
+ body.nw-page-history .history-toolbar__actions,
11068
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions{
11069
+ display:grid !important;
11070
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
11071
+ gap:8px !important;
11072
+ }
11073
+ body.nw-page-history .history-toolbar__actions > .btn,
11074
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions > .btn{
11075
+ width:100% !important;
11076
+ min-height:46px !important;
11077
+ border-radius:16px !important;
11078
+ padding:0 10px !important;
11079
+ }
11080
+ body.nw-page-history .legend,
11081
+ body.nw-cockpit-page.nw-page-history .legend{
11082
+ display:grid !important;
11083
+ grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
11084
+ gap:8px !important;
11085
+ }
11086
+ body.nw-page-history .legend .lg,
11087
+ body.nw-cockpit-page.nw-page-history .legend .lg{
11088
+ min-width:0 !important;
11089
+ justify-content:center !important;
11090
+ padding:8px 10px !important;
11091
+ overflow:hidden !important;
11092
+ }
11093
+ body.nw-page-history .legend .lg span,
11094
+ body.nw-cockpit-page.nw-page-history .legend .lg span{
11095
+ overflow:hidden !important;
11096
+ text-overflow:ellipsis !important;
11097
+ white-space:nowrap !important;
11098
+ }
11099
+ }
11100
+
11101
+ @media (max-width: 390px){
11102
+ body.nw-page-history .history-toolbar__actions,
11103
+ body.nw-cockpit-page.nw-page-history .history-toolbar__actions,
11104
+ body.nw-page-history .legend,
11105
+ body.nw-cockpit-page.nw-page-history .legend{
11106
+ grid-template-columns:1fr !important;
11107
+ }
11108
+ }
11109
+
11110
+ /* SmartHome Mobile: Der linke Bereich ist auf Smartphone ein Drawer, nicht
11111
+ Teil des Seitenflusses. So verschwindet die eigentliche Geräteansicht nicht
11112
+ unter einer großen leeren Fläche. */
11113
+ #nw-smarthome-empty.nw-sh-empty--loading{
11114
+ display:block !important;
11115
+ min-height:96px !important;
11116
+ padding:18px !important;
11117
+ color:rgba(226,232,240,.86) !important;
11118
+ }
11119
+
11120
+ @media (max-width: 900px){
11121
+ body.nw-page-smarthome main.nw-page-shell,
11122
+ body.nw-cockpit-page.nw-page-smarthome main.nw-page-shell{
11123
+ width:100% !important;
11124
+ max-width:100% !important;
11125
+ padding:8px !important;
11126
+ gap:12px !important;
11127
+ overflow:hidden !important;
11128
+ }
11129
+ body.nw-page-smarthome #nw-smarthome-root,
11130
+ body.nw-cockpit-page.nw-page-smarthome #nw-smarthome-root{
11131
+ min-height:0 !important;
11132
+ width:100% !important;
11133
+ padding:0 !important;
11134
+ overflow:visible !important;
11135
+ }
11136
+ body.nw-page-smarthome .nw-sh-layout,
11137
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-layout{
11138
+ display:block !important;
11139
+ grid-template-columns:1fr !important;
11140
+ gap:0 !important;
11141
+ min-width:0 !important;
11142
+ width:100% !important;
11143
+ }
11144
+ body.nw-page-smarthome .nw-sh-main,
11145
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-main{
11146
+ display:block !important;
11147
+ width:100% !important;
11148
+ min-width:0 !important;
11149
+ min-height:0 !important;
11150
+ padding:0 !important;
11151
+ }
11152
+ body.nw-page-smarthome .nw-sh-topbar,
11153
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-topbar{
11154
+ display:flex !important;
11155
+ flex-direction:row !important;
11156
+ align-items:center !important;
11157
+ justify-content:space-between !important;
11158
+ width:100% !important;
11159
+ min-height:54px !important;
11160
+ margin:0 0 12px !important;
11161
+ padding:10px 12px !important;
11162
+ border-radius:18px !important;
11163
+ }
11164
+ body.nw-page-smarthome .nw-sh-topbar-title,
11165
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-topbar-title{
11166
+ min-width:0 !important;
11167
+ text-align:right !important;
11168
+ }
11169
+ body.nw-page-smarthome #nwShPageTitle,
11170
+ body.nw-cockpit-page.nw-page-smarthome #nwShPageTitle{
11171
+ overflow:hidden !important;
11172
+ text-overflow:ellipsis !important;
11173
+ white-space:nowrap !important;
11174
+ font-size:1rem !important;
11175
+ }
11176
+ body.nw-page-smarthome .nw-sh-nav-toggle,
11177
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-nav-toggle{
11178
+ display:inline-flex !important;
11179
+ align-items:center !important;
11180
+ justify-content:center !important;
11181
+ width:42px !important;
11182
+ height:42px !important;
11183
+ min-width:42px !important;
11184
+ min-height:42px !important;
11185
+ padding:0 !important;
11186
+ }
11187
+ body.nw-page-smarthome .nw-sh-sidebar,
11188
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-sidebar{
11189
+ position:fixed !important;
11190
+ z-index:2300 !important;
11191
+ top:var(--topbar-h, 64px) !important;
11192
+ bottom:0 !important;
11193
+ left:0 !important;
11194
+ width:min(86vw, 330px) !important;
11195
+ max-width:330px !important;
11196
+ max-height:none !important;
11197
+ overflow:auto !important;
11198
+ -webkit-overflow-scrolling:touch !important;
11199
+ transform:translateX(-110%) !important;
11200
+ transition:transform 190ms ease !important;
11201
+ border-radius:0 22px 22px 0 !important;
11202
+ box-shadow:20px 0 60px rgba(0,0,0,.42) !important;
11203
+ }
11204
+ body.nw-page-smarthome .nw-sh-sidebar.nw-sh-sidebar--open,
11205
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-sidebar.nw-sh-sidebar--open{
11206
+ transform:translateX(0) !important;
11207
+ }
11208
+ body.nw-page-smarthome .nw-sh-overlay,
11209
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-overlay{
11210
+ position:fixed !important;
11211
+ inset:var(--topbar-h, 64px) 0 0 0 !important;
11212
+ z-index:2290 !important;
11213
+ background:rgba(0,0,0,.56) !important;
11214
+ backdrop-filter:blur(3px) !important;
11215
+ }
11216
+ body.nw-page-smarthome .nw-sh-rooms,
11217
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-rooms{
11218
+ display:block !important;
11219
+ width:100% !important;
11220
+ min-width:0 !important;
11221
+ }
11222
+ body.nw-page-smarthome .nw-sh-empty,
11223
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-empty{
11224
+ display:block;
11225
+ width:100% !important;
11226
+ min-height:auto !important;
11227
+ padding:16px !important;
11228
+ border-radius:18px !important;
11229
+ }
11230
+ body.nw-page-smarthome .nw-sh-floor,
11231
+ body.nw-page-smarthome .nw-sh-room,
11232
+ body.nw-page-smarthome .nw-sh-home__info,
11233
+ body.nw-page-smarthome .nw-sh-home__section,
11234
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-floor,
11235
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-room,
11236
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-home__info,
11237
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-home__section{
11238
+ width:100% !important;
11239
+ min-width:0 !important;
11240
+ margin-inline:0 !important;
11241
+ }
11242
+ }
11243
+
11244
+ @media (max-width: 520px){
11245
+ body.nw-page-smarthome .nw-page-hero,
11246
+ body.nw-cockpit-page.nw-page-smarthome .nw-page-hero{
11247
+ width:100% !important;
11248
+ padding:16px !important;
11249
+ border-radius:20px !important;
11250
+ }
11251
+ body.nw-page-smarthome .nw-page-hero h1,
11252
+ body.nw-page-smarthome .nw-page-hero h2,
11253
+ body.nw-cockpit-page.nw-page-smarthome .nw-page-hero h1,
11254
+ body.nw-cockpit-page.nw-page-smarthome .nw-page-hero h2{
11255
+ font-size:clamp(28px, 8.6vw, 36px) !important;
11256
+ line-height:1.04 !important;
11257
+ }
11258
+ body.nw-page-smarthome .nw-page-hero p,
11259
+ body.nw-page-smarthome .nw-page-hero__subtitle,
11260
+ body.nw-cockpit-page.nw-page-smarthome .nw-page-hero p,
11261
+ body.nw-cockpit-page.nw-page-smarthome .nw-page-hero__subtitle{
11262
+ font-size:15px !important;
11263
+ line-height:1.42 !important;
11264
+ }
11265
+ body.nw-page-smarthome .nw-sh-grid,
11266
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-grid,
11267
+ body.nw-page-smarthome .nw-sh-home__floors,
11268
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-home__floors{
11269
+ display:grid !important;
11270
+ grid-template-columns:1fr !important;
11271
+ gap:10px !important;
11272
+ }
11273
+ body.nw-page-smarthome .nw-sh-tile,
11274
+ body.nw-cockpit-page.nw-page-smarthome .nw-sh-tile{
11275
+ min-height:138px !important;
11276
+ }
11277
+ }
package/www/sw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Increment cache name on releases so browser updates JS/HTML reliably.
2
2
  // NOTE: Keep this monotonic to force SW updates on hotfixes.
3
- const CACHE_NAME = 'nexowatt-cache-v216';
3
+ const CACHE_NAME = 'nexowatt-cache-v217';
4
4
 
5
5
  const OFFLINE_URLS = [
6
6
  './',