iobroker.mywebui 1.37.53 → 1.37.54
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
package/package.json
CHANGED
|
@@ -365,6 +365,17 @@ let ScreenViewer = class ScreenViewer extends BaseCustomWebComponentConstructorA
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
+
// Custom bind-prop:hidden handler — uses inline style instead of hidden attribute
|
|
369
|
+
// because web components with :host{display:block} override the UA [hidden]{display:none}
|
|
370
|
+
for (const el of this._rootShadow.querySelectorAll('[bind-prop\\:hidden]')) {
|
|
371
|
+
Object.defineProperty(el, 'hidden', {
|
|
372
|
+
configurable: true,
|
|
373
|
+
set(val) {
|
|
374
|
+
el.style.display = val ? 'none' : '';
|
|
375
|
+
},
|
|
376
|
+
get() { return el.style.display === 'none'; }
|
|
377
|
+
});
|
|
378
|
+
}
|
|
368
379
|
// Custom bind-prop:disable handler — sets pointer-events+opacity when value is truthy
|
|
369
380
|
for (const el of this._rootShadow.querySelectorAll('[bind-prop\\:disable]')) {
|
|
370
381
|
Object.defineProperty(el, 'disable', {
|