@recursyve/nice-ui-kit.v2 13.2.0-beta.118 → 13.2.0-beta.119
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/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +6 -5
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +5 -5
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +5 -4
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1758,12 +1758,13 @@ class NiceAssetsCarouselComponent {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
writeValue(assets) {
|
|
1760
1760
|
this._assets = assets ?? [];
|
|
1761
|
-
if (this._assets
|
|
1762
|
-
this._activeAsset =
|
|
1763
|
-
}
|
|
1764
|
-
else {
|
|
1761
|
+
if (this._assets.length === 0) {
|
|
1762
|
+
this._activeAsset = null;
|
|
1765
1763
|
this._lastAsset = true;
|
|
1766
1764
|
}
|
|
1765
|
+
else if (this._assets.length > 0) {
|
|
1766
|
+
this._activeAsset = this._assets[this._active];
|
|
1767
|
+
}
|
|
1767
1768
|
}
|
|
1768
1769
|
registerOnChange(fn) {
|
|
1769
1770
|
this.propagate = fn;
|