@breadstone/mosaik-elements-angular 0.0.90 → 0.0.92
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.0.92 (2025-08-08)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.0.91 (2025-08-08)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 0.0.90 (2025-08-08)
|
|
2
10
|
|
|
3
11
|
### 🚀 Features
|
|
@@ -56899,27 +56899,37 @@ class AnimateDirective {
|
|
|
56899
56899
|
* @private
|
|
56900
56900
|
*/
|
|
56901
56901
|
tryTrigger() {
|
|
56902
|
+
if (this._wasTriggered) {
|
|
56903
|
+
return;
|
|
56904
|
+
}
|
|
56905
|
+
let hasName = false;
|
|
56906
|
+
let name = undefined;
|
|
56902
56907
|
if (typeof this._options === 'string') {
|
|
56903
|
-
|
|
56908
|
+
hasName = true;
|
|
56909
|
+
name = this._options;
|
|
56910
|
+
}
|
|
56911
|
+
else if (this._options && 'name' in this._options && this._options.name) {
|
|
56912
|
+
hasName = true;
|
|
56913
|
+
name = this._options.name;
|
|
56914
|
+
}
|
|
56915
|
+
if (hasName && name) {
|
|
56916
|
+
this._options = this._animationRegistry.animations[name];
|
|
56904
56917
|
if (!this._options) {
|
|
56905
|
-
console.warn(`[AnimateDirective]: The animation with "${
|
|
56918
|
+
console.warn(`[AnimateDirective]: The animation with "${name}" was not found.`);
|
|
56906
56919
|
return;
|
|
56907
56920
|
}
|
|
56908
56921
|
}
|
|
56909
|
-
if (this._wasTriggered) {
|
|
56910
|
-
return;
|
|
56911
|
-
}
|
|
56912
56922
|
this._wasTriggered = true;
|
|
56913
56923
|
const from = {
|
|
56914
|
-
...this._options
|
|
56915
|
-
...this._options
|
|
56924
|
+
...this._options.from,
|
|
56925
|
+
...this._options.initial
|
|
56916
56926
|
};
|
|
56917
56927
|
for (const [k, v] of Object.entries(from)) {
|
|
56918
56928
|
if (k in this._element.nativeElement.style) {
|
|
56919
56929
|
this._renderer.setStyle(this._element.nativeElement, k, v);
|
|
56920
56930
|
}
|
|
56921
56931
|
}
|
|
56922
|
-
if (this._options
|
|
56932
|
+
if (this._options && 'trigger' in this._options) {
|
|
56923
56933
|
this._options.trigger(() => this.play(this._options));
|
|
56924
56934
|
}
|
|
56925
56935
|
else {
|