iobroker.mywebui 1.37.73 → 1.37.74

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,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.73",
4
+ "version": "1.37.74",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.37.73",
3
+ "version": "1.37.74",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -2,6 +2,7 @@ import { BaseCustomWebComponentConstructorAppend, css, cssFromString } from "@go
2
2
  import { iobrokerHandler } from "../common/IobrokerHandler.js";
3
3
  import { PropertiesHelper } from "@gokturk413/web-component-designer/dist/elements/services/propertiesService/services/PropertiesHelper.js";
4
4
  import { visibilityService } from "./VisibilityService.js";
5
+ import { scanAndApplyAnimations, scanAndApplyEffects, cleanupAnimations, cleanupEffects } from "./AnimationService.js";
5
6
  export const webuiCustomControlPrefix = 'webui-';
6
7
  export const webuiCustomControlSymbol = Symbol('webuiCustomControlSymbol');
7
8
  export class BaseCustomControl extends BaseCustomWebComponentConstructorAppend {
@@ -80,6 +81,9 @@ export class BaseCustomControl extends BaseCustomWebComponentConstructorAppend {
80
81
 
81
82
  // Scan and apply visibility to all elements inside the custom control
82
83
  await visibilityService.scanAndApply(this.shadowRoot);
84
+ // Scan and apply animations/effects to all elements inside the custom control
85
+ scanAndApplyAnimations(this.shadowRoot).catch(() => {});
86
+ scanAndApplyEffects(this.shadowRoot).catch(() => {});
83
87
  }
84
88
  disconnectedCallback() {
85
89
  for (let e of this.#eventListeners) {
@@ -98,6 +102,9 @@ export class BaseCustomControl extends BaseCustomWebComponentConstructorAppend {
98
102
  // Remove visibility control from all elements inside the custom control
99
103
  const controlledElements = this.shadowRoot.querySelectorAll('[data-visibility-controlled="true"]');
100
104
  controlledElements.forEach(el => visibilityService.removeVisibility(el));
105
+ // Cleanup animations and effects
106
+ cleanupAnimations(this.shadowRoot);
107
+ cleanupEffects(this.shadowRoot);
101
108
  }
102
109
  _assignEvent(event, callback) {
103
110
  const arrayEl = [event, callback];