@eric-emg/symphiq-components 1.2.114 → 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.
|
@@ -53833,6 +53833,58 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
53833
53833
|
this.searchService = inject(BusinessProfileSearchService);
|
|
53834
53834
|
this.modalService = inject(ModalService);
|
|
53835
53835
|
this.currentProfile = signal(undefined, ...(ngDevMode ? [{ debugName: "currentProfile" }] : []));
|
|
53836
|
+
this.COLLAPSE_THRESHOLD = 20;
|
|
53837
|
+
this.EXPAND_THRESHOLD = 10;
|
|
53838
|
+
this.embeddedScrollEffect = effect(() => {
|
|
53839
|
+
const scrollEvent = this.scrollEvent();
|
|
53840
|
+
const isEmbedded = this.embedded();
|
|
53841
|
+
console.log('[BusinessDashboard] embeddedScrollEffect triggered', {
|
|
53842
|
+
hasScrollEvent: !!scrollEvent,
|
|
53843
|
+
isEmbedded,
|
|
53844
|
+
scrollEventType: scrollEvent ? typeof scrollEvent : 'none'
|
|
53845
|
+
});
|
|
53846
|
+
if (!scrollEvent || !isEmbedded) {
|
|
53847
|
+
console.log('[BusinessDashboard] Skipping - no scrollEvent or not embedded');
|
|
53848
|
+
return;
|
|
53849
|
+
}
|
|
53850
|
+
const detail = scrollEvent.detail;
|
|
53851
|
+
console.log('[BusinessDashboard] scrollEvent.detail', {
|
|
53852
|
+
hasDetail: !!detail,
|
|
53853
|
+
detail: detail
|
|
53854
|
+
});
|
|
53855
|
+
if (!detail) {
|
|
53856
|
+
console.log('[BusinessDashboard] Skipping - no detail in scrollEvent');
|
|
53857
|
+
return;
|
|
53858
|
+
}
|
|
53859
|
+
const scrollTop = detail.scrollTop || 0;
|
|
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
|
+
});
|
|
53869
|
+
if (!currentState && scrollTop > this.COLLAPSE_THRESHOLD) {
|
|
53870
|
+
console.log('[BusinessDashboard] Setting isScrolled to TRUE (collapsing header)');
|
|
53871
|
+
this.headerScrollService.isScrolled.set(true);
|
|
53872
|
+
}
|
|
53873
|
+
else if (currentState && scrollTop < this.EXPAND_THRESHOLD) {
|
|
53874
|
+
console.log('[BusinessDashboard] Setting isScrolled to FALSE (expanding header)');
|
|
53875
|
+
this.headerScrollService.isScrolled.set(false);
|
|
53876
|
+
}
|
|
53877
|
+
const scrollElement = this.scrollElement();
|
|
53878
|
+
if (scrollElement) {
|
|
53879
|
+
const scrollHeight = scrollElement.scrollHeight || 0;
|
|
53880
|
+
const clientHeight = scrollElement.clientHeight || 0;
|
|
53881
|
+
const maxScroll = scrollHeight - clientHeight;
|
|
53882
|
+
if (maxScroll > 0) {
|
|
53883
|
+
const progress = (scrollTop / maxScroll) * 100;
|
|
53884
|
+
this.headerScrollService.scrollProgress.set(Math.min(100, Math.max(0, progress)));
|
|
53885
|
+
}
|
|
53886
|
+
}
|
|
53887
|
+
}, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
|
|
53836
53888
|
this.scrollProgress = computed(() => this.headerScrollService.scrollProgress(), ...(ngDevMode ? [{ debugName: "scrollProgress" }] : []));
|
|
53837
53889
|
this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
|
|
53838
53890
|
this.displayMode = signal(DisplayModeEnum.SIMPLIFIED, ...(ngDevMode ? [{ debugName: "displayMode" }] : []));
|
|
@@ -54611,7 +54663,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
54611
54663
|
type: HostListener,
|
|
54612
54664
|
args: ['document:keydown', ['$event']]
|
|
54613
54665
|
}] }); })();
|
|
54614
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber:
|
|
54666
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 301 }); })();
|
|
54615
54667
|
|
|
54616
54668
|
function DashboardHeaderComponent_Conditional_24_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
54617
54669
|
i0.ɵɵelementStart(0, "span", 4);
|