@eric-emg/symphiq-components 1.2.114 → 1.2.115
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,37 @@ 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
|
+
if (!scrollEvent || !isEmbedded) {
|
|
53842
|
+
return;
|
|
53843
|
+
}
|
|
53844
|
+
const detail = scrollEvent.detail;
|
|
53845
|
+
if (!detail) {
|
|
53846
|
+
return;
|
|
53847
|
+
}
|
|
53848
|
+
const scrollTop = detail.scrollTop || 0;
|
|
53849
|
+
const currentState = this.headerScrollService.isScrolled();
|
|
53850
|
+
if (!currentState && scrollTop > this.COLLAPSE_THRESHOLD) {
|
|
53851
|
+
this.headerScrollService.isScrolled.set(true);
|
|
53852
|
+
}
|
|
53853
|
+
else if (currentState && scrollTop < this.EXPAND_THRESHOLD) {
|
|
53854
|
+
this.headerScrollService.isScrolled.set(false);
|
|
53855
|
+
}
|
|
53856
|
+
const scrollElement = this.scrollElement();
|
|
53857
|
+
if (scrollElement) {
|
|
53858
|
+
const scrollHeight = scrollElement.scrollHeight || 0;
|
|
53859
|
+
const clientHeight = scrollElement.clientHeight || 0;
|
|
53860
|
+
const maxScroll = scrollHeight - clientHeight;
|
|
53861
|
+
if (maxScroll > 0) {
|
|
53862
|
+
const progress = (scrollTop / maxScroll) * 100;
|
|
53863
|
+
this.headerScrollService.scrollProgress.set(Math.min(100, Math.max(0, progress)));
|
|
53864
|
+
}
|
|
53865
|
+
}
|
|
53866
|
+
}, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
|
|
53836
53867
|
this.scrollProgress = computed(() => this.headerScrollService.scrollProgress(), ...(ngDevMode ? [{ debugName: "scrollProgress" }] : []));
|
|
53837
53868
|
this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
|
|
53838
53869
|
this.displayMode = signal(DisplayModeEnum.SIMPLIFIED, ...(ngDevMode ? [{ debugName: "displayMode" }] : []));
|
|
@@ -54611,7 +54642,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
|
|
|
54611
54642
|
type: HostListener,
|
|
54612
54643
|
args: ['document:keydown', ['$event']]
|
|
54613
54644
|
}] }); })();
|
|
54614
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber:
|
|
54645
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 301 }); })();
|
|
54615
54646
|
|
|
54616
54647
|
function DashboardHeaderComponent_Conditional_24_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
54617
54648
|
i0.ɵɵelementStart(0, "span", 4);
|