ng-prime-tools 1.1.12 → 1.1.13
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.
|
@@ -9851,7 +9851,7 @@ class PTNewsTickerComponent {
|
|
|
9851
9851
|
ngOnChanges(changes) {
|
|
9852
9852
|
if (changes['news']) {
|
|
9853
9853
|
const normalizedNews = this.normalizeNews(changes['news'].currentValue ?? []);
|
|
9854
|
-
this.
|
|
9854
|
+
this.queueInputNewsWithoutRestart(normalizedNews);
|
|
9855
9855
|
}
|
|
9856
9856
|
if (changes['speed'] || changes['minSpeed'] || changes['maxSpeed']) {
|
|
9857
9857
|
this.speed = this.normalizeSpeed(this.speed);
|
|
@@ -10179,6 +10179,24 @@ class PTNewsTickerComponent {
|
|
|
10179
10179
|
? 0
|
|
10180
10180
|
: -1;
|
|
10181
10181
|
}
|
|
10182
|
+
queueInputNewsWithoutRestart(news) {
|
|
10183
|
+
const clonedNews = this.cloneNews(news);
|
|
10184
|
+
this.scheduleNewBadges(clonedNews);
|
|
10185
|
+
if (!this.viewInitialized ||
|
|
10186
|
+
!this.loop ||
|
|
10187
|
+
!this.playing ||
|
|
10188
|
+
this.internalNews.length === 0 ||
|
|
10189
|
+
this.prefersReducedMotion()) {
|
|
10190
|
+
this.pendingNews = null;
|
|
10191
|
+
this.internalNews = clonedNews;
|
|
10192
|
+
if (this.viewInitialized) {
|
|
10193
|
+
this.changeDetectorRef.detectChanges();
|
|
10194
|
+
this.scheduleAnimationRefresh(true);
|
|
10195
|
+
}
|
|
10196
|
+
return;
|
|
10197
|
+
}
|
|
10198
|
+
this.pendingNews = clonedNews;
|
|
10199
|
+
}
|
|
10182
10200
|
queueOrApplyNews(news) {
|
|
10183
10201
|
const clonedNews = this.cloneNews(news);
|
|
10184
10202
|
this.scheduleNewBadges(clonedNews);
|