@porscheinformatik/clr-addons 19.9.5 → 19.9.7

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.
@@ -3496,6 +3496,7 @@ class ClrSearchField {
3496
3496
  const event = document.createEvent('Event');
3497
3497
  event.initEvent('input', false, false);
3498
3498
  this.inputEl.nativeElement.dispatchEvent(event);
3499
+ this.inputEl.nativeElement.focus();
3499
3500
  }
3500
3501
  setHasValueClass(active) {
3501
3502
  if (active) {
@@ -4978,9 +4979,13 @@ class ClrHistory {
4978
4979
  this.historyElements$ = new ReplaySubject(1);
4979
4980
  this.pinActivated = false;
4980
4981
  this.onDestroy$ = new Subject();
4982
+ this.destroyRef = inject(DestroyRef);
4981
4983
  }
4982
4984
  ngOnInit() {
4983
- this.historyService.getHistory(this.username, this.tenantId).subscribe(elements => {
4985
+ this.historyService
4986
+ .getHistory(this.username, this.tenantId)
4987
+ .pipe(takeUntilDestroyed(this.destroyRef))
4988
+ .subscribe(elements => {
4984
4989
  this.historyElements$.next(this.historyProvider ? this.historyProvider.getModifiedHistoryEntries(elements) : elements);
4985
4990
  });
4986
4991
  this.historyService.initializeCookieSettings(this.username, this.domain);
@@ -5053,12 +5058,16 @@ class ClrHistoryPinned {
5053
5058
  */
5054
5059
  this.historyElements$ = new ReplaySubject(1);
5055
5060
  this.active$ = new BehaviorSubject(this.initActive());
5061
+ this.destroyRef = inject(DestroyRef);
5056
5062
  }
5057
5063
  initActive() {
5058
5064
  return this.historyService.initializeCookieSettings(this.username, this.domain).historyPinned;
5059
5065
  }
5060
5066
  ngOnInit() {
5061
- this.historyService.getHistory(this.username, this.tenantId).subscribe(elements => {
5067
+ this.historyService
5068
+ .getHistory(this.username, this.tenantId)
5069
+ .pipe(takeUntilDestroyed(this.destroyRef))
5070
+ .subscribe(elements => {
5062
5071
  this.historyElements$.next(this.historyProvider ? this.historyProvider.getModifiedHistoryEntries(elements) : elements);
5063
5072
  });
5064
5073
  this.settingsSubscription = this.historyService.cookieSettings$.subscribe(settings => {