@eric-emg/symphiq-components 1.2.54 → 1.2.56
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/symphiq-components.mjs +36 -21
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21602,6 +21602,19 @@ class SymphiqFunnelAnalysisDashboardComponent {
|
|
|
21602
21602
|
effect(() => {
|
|
21603
21603
|
this.searchService.setData(this.allMetrics(), this.insights(), this.allBreakdowns());
|
|
21604
21604
|
});
|
|
21605
|
+
// Set embedded scroll container when scrollElement input changes
|
|
21606
|
+
effect(() => {
|
|
21607
|
+
const scrollEl = this.scrollElement();
|
|
21608
|
+
const isEmbedded = this.embedded();
|
|
21609
|
+
if (isEmbedded && scrollEl) {
|
|
21610
|
+
console.log('[SCROLL v7] Setting embeddedScrollContainer from input', {
|
|
21611
|
+
scrollHeight: scrollEl.scrollHeight,
|
|
21612
|
+
clientHeight: scrollEl.clientHeight
|
|
21613
|
+
});
|
|
21614
|
+
this.embeddedScrollContainer = scrollEl;
|
|
21615
|
+
this.tooltipService.setScrollContainer(scrollEl);
|
|
21616
|
+
}
|
|
21617
|
+
});
|
|
21605
21618
|
// Handle scroll events from parent - unified scroll event handler for ALL features
|
|
21606
21619
|
effect(() => {
|
|
21607
21620
|
const scrollEvent = this.scrollEvent();
|
|
@@ -21635,11 +21648,6 @@ class SymphiqFunnelAnalysisDashboardComponent {
|
|
|
21635
21648
|
currentHeaderState: this.isScrolled(),
|
|
21636
21649
|
isProgrammaticScroll: this.isProgrammaticScroll
|
|
21637
21650
|
});
|
|
21638
|
-
// Skip during programmatic scrolling
|
|
21639
|
-
if (this.isProgrammaticScroll) {
|
|
21640
|
-
console.log('[SCROLL v7] Skipping - programmatic scroll in progress');
|
|
21641
|
-
return;
|
|
21642
|
-
}
|
|
21643
21651
|
// Get the scrollable element once for all features
|
|
21644
21652
|
// Priority 1: Use the scrollElement passed directly from parent (preferred method)
|
|
21645
21653
|
// Priority 2: Fall back to querying by scrollContainerId (legacy method)
|
|
@@ -21680,24 +21688,31 @@ class SymphiqFunnelAnalysisDashboardComponent {
|
|
|
21680
21688
|
// ========================================
|
|
21681
21689
|
// FEATURE 1: Header Collapse/Expand
|
|
21682
21690
|
// ========================================
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
this.isScrolled
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21691
|
+
// Skip header state updates during programmatic scrolling (e.g., clicking navigation dots)
|
|
21692
|
+
// but allow progress bar and navigation updates to continue
|
|
21693
|
+
if (!this.isProgrammaticScroll) {
|
|
21694
|
+
const COLLAPSE_THRESHOLD = 20;
|
|
21695
|
+
const EXPAND_THRESHOLD = 10;
|
|
21696
|
+
const currentState = this.isScrolled();
|
|
21697
|
+
if (!currentState && scrollTop > COLLAPSE_THRESHOLD) {
|
|
21698
|
+
console.log('[SCROLL v7] ✓ COLLAPSING HEADER', { scrollTop, threshold: COLLAPSE_THRESHOLD });
|
|
21699
|
+
this.isScrolled.set(true);
|
|
21700
|
+
}
|
|
21701
|
+
else if (currentState && scrollTop < EXPAND_THRESHOLD) {
|
|
21702
|
+
console.log('[SCROLL v7] ✓ EXPANDING HEADER', { scrollTop, threshold: EXPAND_THRESHOLD });
|
|
21703
|
+
this.isScrolled.set(false);
|
|
21704
|
+
}
|
|
21705
|
+
else {
|
|
21706
|
+
console.log('[SCROLL v7] No header state change needed', {
|
|
21707
|
+
currentState: currentState ? 'collapsed' : 'expanded',
|
|
21708
|
+
scrollTop,
|
|
21709
|
+
collapseThreshold: COLLAPSE_THRESHOLD,
|
|
21710
|
+
expandThreshold: EXPAND_THRESHOLD
|
|
21711
|
+
});
|
|
21712
|
+
}
|
|
21693
21713
|
}
|
|
21694
21714
|
else {
|
|
21695
|
-
console.log('[SCROLL v7]
|
|
21696
|
-
currentState: currentState ? 'collapsed' : 'expanded',
|
|
21697
|
-
scrollTop,
|
|
21698
|
-
collapseThreshold: COLLAPSE_THRESHOLD,
|
|
21699
|
-
expandThreshold: EXPAND_THRESHOLD
|
|
21700
|
-
});
|
|
21715
|
+
console.log('[SCROLL v7] Skipping header state update - programmatic scroll in progress');
|
|
21701
21716
|
}
|
|
21702
21717
|
// ========================================
|
|
21703
21718
|
// FEATURE 2: Progress Bar Calculation
|