iobroker.mywebui 1.37.35 → 1.37.36
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
|
@@ -432,10 +432,10 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
|
|
|
432
432
|
? 'width:16px;height:16px;padding:0;font-size:11px;line-height:1;border:1px solid #888;background:#ffd700;cursor:pointer;flex-shrink:0;'
|
|
433
433
|
: 'width:16px;height:16px;padding:0;font-size:11px;line-height:1;border:1px solid #888;background:#f0f0f0;cursor:pointer;flex-shrink:0;';
|
|
434
434
|
|
|
435
|
-
// Left-click: open binding editor
|
|
435
|
+
// Left-click: open binding editor (pass null so openBindingsEditor doesn't reject on service check)
|
|
436
436
|
bindBtn.onclick = () => {
|
|
437
437
|
const property = { name: 'hidden', propertyType: 'propertyAndAttribute' };
|
|
438
|
-
serviceContainer.config.openBindingsEditor(property, [designItem],
|
|
438
|
+
serviceContainer.config.openBindingsEditor(property, [designItem], null, 'property');
|
|
439
439
|
};
|
|
440
440
|
|
|
441
441
|
// Right-click: context menu (like Properties panel)
|
|
@@ -463,7 +463,7 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
|
|
|
463
463
|
|
|
464
464
|
addItem('edit binding', () => {
|
|
465
465
|
const property = { name: 'hidden', propertyType: 'propertyAndAttribute' };
|
|
466
|
-
serviceContainer.config.openBindingsEditor(property, [designItem],
|
|
466
|
+
serviceContainer.config.openBindingsEditor(property, [designItem], null, 'property');
|
|
467
467
|
});
|
|
468
468
|
addItem('clear binding', () => {
|
|
469
469
|
designItem.removeAttribute('bind-prop:hidden');
|
|
@@ -46,6 +46,17 @@ class VisibilityService {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
removeVisibility(element) {
|
|
50
|
+
const originalDisplay = this.#originalDisplayStyles.get(element);
|
|
51
|
+
if (originalDisplay !== undefined) {
|
|
52
|
+
element.style.display = originalDisplay;
|
|
53
|
+
this.#originalDisplayStyles.delete(element);
|
|
54
|
+
}
|
|
55
|
+
element.style.visibility = '';
|
|
56
|
+
element.style.pointerEvents = '';
|
|
57
|
+
element.style.opacity = '';
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
async scanAndApply(container = document.body) {
|
|
50
61
|
const elements = container.querySelectorAll('[data-visibility-enabled="true"]');
|
|
51
62
|
for (const element of elements) {
|