@eric-emg/symphiq-components 1.2.115 → 1.2.116
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.
|
@@ -53838,19 +53838,40 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
53838
53838
|
this.embeddedScrollEffect = effect(() => {
|
|
53839
53839
|
const scrollEvent = this.scrollEvent();
|
|
53840
53840
|
const isEmbedded = this.embedded();
|
|
53841
|
+
console.log('[BusinessDashboard] embeddedScrollEffect triggered', {
|
|
53842
|
+
hasScrollEvent: !!scrollEvent,
|
|
53843
|
+
isEmbedded,
|
|
53844
|
+
scrollEventType: scrollEvent ? typeof scrollEvent : 'none'
|
|
53845
|
+
});
|
|
53841
53846
|
if (!scrollEvent || !isEmbedded) {
|
|
53847
|
+
console.log('[BusinessDashboard] Skipping - no scrollEvent or not embedded');
|
|
53842
53848
|
return;
|
|
53843
53849
|
}
|
|
53844
53850
|
const detail = scrollEvent.detail;
|
|
53851
|
+
console.log('[BusinessDashboard] scrollEvent.detail', {
|
|
53852
|
+
hasDetail: !!detail,
|
|
53853
|
+
detail: detail
|
|
53854
|
+
});
|
|
53845
53855
|
if (!detail) {
|
|
53856
|
+
console.log('[BusinessDashboard] Skipping - no detail in scrollEvent');
|
|
53846
53857
|
return;
|
|
53847
53858
|
}
|
|
53848
53859
|
const scrollTop = detail.scrollTop || 0;
|
|
53849
53860
|
const currentState = this.headerScrollService.isScrolled();
|
|
53861
|
+
console.log('[BusinessDashboard] Processing scroll', {
|
|
53862
|
+
scrollTop,
|
|
53863
|
+
currentState,
|
|
53864
|
+
collapseThreshold: this.COLLAPSE_THRESHOLD,
|
|
53865
|
+
expandThreshold: this.EXPAND_THRESHOLD,
|
|
53866
|
+
shouldCollapse: !currentState && scrollTop > this.COLLAPSE_THRESHOLD,
|
|
53867
|
+
shouldExpand: currentState && scrollTop < this.EXPAND_THRESHOLD
|
|
53868
|
+
});
|
|
53850
53869
|
if (!currentState && scrollTop > this.COLLAPSE_THRESHOLD) {
|
|
53870
|
+
console.log('[BusinessDashboard] Setting isScrolled to TRUE (collapsing header)');
|
|
53851
53871
|
this.headerScrollService.isScrolled.set(true);
|
|
53852
53872
|
}
|
|
53853
53873
|
else if (currentState && scrollTop < this.EXPAND_THRESHOLD) {
|
|
53874
|
+
console.log('[BusinessDashboard] Setting isScrolled to FALSE (expanding header)');
|
|
53854
53875
|
this.headerScrollService.isScrolled.set(false);
|
|
53855
53876
|
}
|
|
53856
53877
|
const scrollElement = this.scrollElement();
|