@porscheinformatik/clr-addons 19.9.6 → 19.9.8
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/fesm2022/clr-addons.mjs +10 -2
- package/fesm2022/clr-addons.mjs.map +1 -1
- package/history/history-pinned.d.ts +1 -0
- package/history/history.d.ts +1 -0
- package/package.json +1 -1
- package/styles/clr-addons-phs.css +4 -0
- package/styles/clr-addons-phs.css.map +1 -1
- package/styles/clr-addons-phs.min.css +1 -1
- package/styles/clr-addons-phs.min.css.map +1 -1
package/fesm2022/clr-addons.mjs
CHANGED
|
@@ -4979,9 +4979,13 @@ class ClrHistory {
|
|
|
4979
4979
|
this.historyElements$ = new ReplaySubject(1);
|
|
4980
4980
|
this.pinActivated = false;
|
|
4981
4981
|
this.onDestroy$ = new Subject();
|
|
4982
|
+
this.destroyRef = inject(DestroyRef);
|
|
4982
4983
|
}
|
|
4983
4984
|
ngOnInit() {
|
|
4984
|
-
this.historyService
|
|
4985
|
+
this.historyService
|
|
4986
|
+
.getHistory(this.username, this.tenantId)
|
|
4987
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
4988
|
+
.subscribe(elements => {
|
|
4985
4989
|
this.historyElements$.next(this.historyProvider ? this.historyProvider.getModifiedHistoryEntries(elements) : elements);
|
|
4986
4990
|
});
|
|
4987
4991
|
this.historyService.initializeCookieSettings(this.username, this.domain);
|
|
@@ -5054,12 +5058,16 @@ class ClrHistoryPinned {
|
|
|
5054
5058
|
*/
|
|
5055
5059
|
this.historyElements$ = new ReplaySubject(1);
|
|
5056
5060
|
this.active$ = new BehaviorSubject(this.initActive());
|
|
5061
|
+
this.destroyRef = inject(DestroyRef);
|
|
5057
5062
|
}
|
|
5058
5063
|
initActive() {
|
|
5059
5064
|
return this.historyService.initializeCookieSettings(this.username, this.domain).historyPinned;
|
|
5060
5065
|
}
|
|
5061
5066
|
ngOnInit() {
|
|
5062
|
-
this.historyService
|
|
5067
|
+
this.historyService
|
|
5068
|
+
.getHistory(this.username, this.tenantId)
|
|
5069
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
5070
|
+
.subscribe(elements => {
|
|
5063
5071
|
this.historyElements$.next(this.historyProvider ? this.historyProvider.getModifiedHistoryEntries(elements) : elements);
|
|
5064
5072
|
});
|
|
5065
5073
|
this.settingsSubscription = this.historyService.cookieSettings$.subscribe(settings => {
|