@eric-emg/symphiq-components 1.2.85 → 1.2.87
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 +84 -208
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +2 -4
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1526,10 +1526,9 @@ class TooltipDirective {
|
|
|
1526
1526
|
this.mouseY = event.clientY;
|
|
1527
1527
|
}
|
|
1528
1528
|
onMouseLeave() {
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
// this.scheduleHide();
|
|
1529
|
+
this.clearShowTimeout();
|
|
1530
|
+
this.isHovered.set(false);
|
|
1531
|
+
this.scheduleHide();
|
|
1533
1532
|
}
|
|
1534
1533
|
onMouseEnterAgain() {
|
|
1535
1534
|
// If user returns to element while tooltip is still visible, cancel hide
|
|
@@ -10862,110 +10861,110 @@ const _c0$6 = () => [];
|
|
|
10862
10861
|
function TooltipContainerComponent_Conditional_0_Case_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10863
10862
|
i0.ɵɵelement(0, "symphiq-metric-value-tooltip", 6);
|
|
10864
10863
|
} if (rf & 2) {
|
|
10865
|
-
const
|
|
10866
|
-
i0.ɵɵproperty("content",
|
|
10864
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10865
|
+
i0.ɵɵproperty("content", ctx_r0.metricContent())("isLightMode", ctx_r0.isLightMode());
|
|
10867
10866
|
} }
|
|
10868
10867
|
function TooltipContainerComponent_Conditional_0_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
10869
10868
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_3_Conditional_0_Template, 1, 2, "symphiq-metric-value-tooltip", 6);
|
|
10870
10869
|
} if (rf & 2) {
|
|
10871
|
-
const
|
|
10872
|
-
i0.ɵɵconditional(
|
|
10870
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10871
|
+
i0.ɵɵconditional(ctx_r0.metricContent() ? 0 : -1);
|
|
10873
10872
|
} }
|
|
10874
10873
|
function TooltipContainerComponent_Conditional_0_Case_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10875
10874
|
i0.ɵɵelement(0, "symphiq-status-badge-tooltip", 6);
|
|
10876
10875
|
} if (rf & 2) {
|
|
10877
|
-
const
|
|
10878
|
-
i0.ɵɵproperty("content",
|
|
10876
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10877
|
+
i0.ɵɵproperty("content", ctx_r0.statusContent())("isLightMode", ctx_r0.isLightMode());
|
|
10879
10878
|
} }
|
|
10880
10879
|
function TooltipContainerComponent_Conditional_0_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
10881
10880
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_4_Conditional_0_Template, 1, 2, "symphiq-status-badge-tooltip", 6);
|
|
10882
10881
|
} if (rf & 2) {
|
|
10883
|
-
const
|
|
10884
|
-
i0.ɵɵconditional(
|
|
10882
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10883
|
+
i0.ɵɵconditional(ctx_r0.statusContent() ? 0 : -1);
|
|
10885
10884
|
} }
|
|
10886
10885
|
function TooltipContainerComponent_Conditional_0_Case_5_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10887
10886
|
i0.ɵɵelement(0, "symphiq-trend-indicator-tooltip", 6);
|
|
10888
10887
|
} if (rf & 2) {
|
|
10889
|
-
const
|
|
10890
|
-
i0.ɵɵproperty("content",
|
|
10888
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10889
|
+
i0.ɵɵproperty("content", ctx_r0.trendContent())("isLightMode", ctx_r0.isLightMode());
|
|
10891
10890
|
} }
|
|
10892
10891
|
function TooltipContainerComponent_Conditional_0_Case_5_Template(rf, ctx) { if (rf & 1) {
|
|
10893
10892
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_5_Conditional_0_Template, 1, 2, "symphiq-trend-indicator-tooltip", 6);
|
|
10894
10893
|
} if (rf & 2) {
|
|
10895
|
-
const
|
|
10896
|
-
i0.ɵɵconditional(
|
|
10894
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10895
|
+
i0.ɵɵconditional(ctx_r0.trendContent() ? 0 : -1);
|
|
10897
10896
|
} }
|
|
10898
10897
|
function TooltipContainerComponent_Conditional_0_Case_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10899
10898
|
i0.ɵɵelement(0, "symphiq-priority-badge-tooltip", 6);
|
|
10900
10899
|
} if (rf & 2) {
|
|
10901
|
-
const
|
|
10902
|
-
i0.ɵɵproperty("content",
|
|
10900
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10901
|
+
i0.ɵɵproperty("content", ctx_r0.priorityContent())("isLightMode", ctx_r0.isLightMode());
|
|
10903
10902
|
} }
|
|
10904
10903
|
function TooltipContainerComponent_Conditional_0_Case_6_Template(rf, ctx) { if (rf & 1) {
|
|
10905
10904
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_6_Conditional_0_Template, 1, 2, "symphiq-priority-badge-tooltip", 6);
|
|
10906
10905
|
} if (rf & 2) {
|
|
10907
|
-
const
|
|
10908
|
-
i0.ɵɵconditional(
|
|
10906
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10907
|
+
i0.ɵɵconditional(ctx_r0.priorityContent() ? 0 : -1);
|
|
10909
10908
|
} }
|
|
10910
10909
|
function TooltipContainerComponent_Conditional_0_Case_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10911
10910
|
i0.ɵɵelement(0, "symphiq-badge-tooltip", 6);
|
|
10912
10911
|
} if (rf & 2) {
|
|
10913
|
-
const
|
|
10914
|
-
i0.ɵɵproperty("content",
|
|
10912
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10913
|
+
i0.ɵɵproperty("content", ctx_r0.badgeContent())("isLightMode", ctx_r0.isLightMode());
|
|
10915
10914
|
} }
|
|
10916
10915
|
function TooltipContainerComponent_Conditional_0_Case_7_Template(rf, ctx) { if (rf & 1) {
|
|
10917
10916
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_7_Conditional_0_Template, 1, 2, "symphiq-badge-tooltip", 6);
|
|
10918
10917
|
} if (rf & 2) {
|
|
10919
|
-
const
|
|
10920
|
-
i0.ɵɵconditional(
|
|
10918
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10919
|
+
i0.ɵɵconditional(ctx_r0.badgeContent() ? 0 : -1);
|
|
10921
10920
|
} }
|
|
10922
10921
|
function TooltipContainerComponent_Conditional_0_Case_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10923
10922
|
i0.ɵɵelement(0, "symphiq-breakdown-row-tooltip", 6);
|
|
10924
10923
|
} if (rf & 2) {
|
|
10925
|
-
const
|
|
10926
|
-
i0.ɵɵproperty("content",
|
|
10924
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10925
|
+
i0.ɵɵproperty("content", ctx_r0.breakdownContent())("isLightMode", ctx_r0.isLightMode());
|
|
10927
10926
|
} }
|
|
10928
10927
|
function TooltipContainerComponent_Conditional_0_Case_8_Template(rf, ctx) { if (rf & 1) {
|
|
10929
10928
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_8_Conditional_0_Template, 1, 2, "symphiq-breakdown-row-tooltip", 6);
|
|
10930
10929
|
} if (rf & 2) {
|
|
10931
|
-
const
|
|
10932
|
-
i0.ɵɵconditional(
|
|
10930
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10931
|
+
i0.ɵɵconditional(ctx_r0.breakdownContent() ? 0 : -1);
|
|
10933
10932
|
} }
|
|
10934
10933
|
function TooltipContainerComponent_Conditional_0_Case_9_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10935
10934
|
i0.ɵɵelement(0, "symphiq-competitive-benchmark-tooltip", 6);
|
|
10936
10935
|
} if (rf & 2) {
|
|
10937
|
-
const
|
|
10938
|
-
i0.ɵɵproperty("content",
|
|
10936
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10937
|
+
i0.ɵɵproperty("content", ctx_r0.competitiveContent())("isLightMode", ctx_r0.isLightMode());
|
|
10939
10938
|
} }
|
|
10940
10939
|
function TooltipContainerComponent_Conditional_0_Case_9_Template(rf, ctx) { if (rf & 1) {
|
|
10941
10940
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_9_Conditional_0_Template, 1, 2, "symphiq-competitive-benchmark-tooltip", 6);
|
|
10942
10941
|
} if (rf & 2) {
|
|
10943
|
-
const
|
|
10944
|
-
i0.ɵɵconditional(
|
|
10942
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10943
|
+
i0.ɵɵconditional(ctx_r0.competitiveContent() ? 0 : -1);
|
|
10945
10944
|
} }
|
|
10946
10945
|
function TooltipContainerComponent_Conditional_0_Case_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10947
10946
|
i0.ɵɵelement(0, "symphiq-insights-list-tooltip", 6);
|
|
10948
10947
|
} if (rf & 2) {
|
|
10949
|
-
const
|
|
10950
|
-
i0.ɵɵproperty("content",
|
|
10948
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10949
|
+
i0.ɵɵproperty("content", ctx_r0.insightsListContent())("isLightMode", ctx_r0.isLightMode());
|
|
10951
10950
|
} }
|
|
10952
10951
|
function TooltipContainerComponent_Conditional_0_Case_10_Template(rf, ctx) { if (rf & 1) {
|
|
10953
10952
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_10_Conditional_0_Template, 1, 2, "symphiq-insights-list-tooltip", 6);
|
|
10954
10953
|
} if (rf & 2) {
|
|
10955
|
-
const
|
|
10956
|
-
i0.ɵɵconditional(
|
|
10954
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10955
|
+
i0.ɵɵconditional(ctx_r0.insightsListContent() ? 0 : -1);
|
|
10957
10956
|
} }
|
|
10958
10957
|
function TooltipContainerComponent_Conditional_0_Case_11_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
10959
10958
|
i0.ɵɵelement(0, "symphiq-narrative-tooltip", 6);
|
|
10960
10959
|
} if (rf & 2) {
|
|
10961
|
-
const
|
|
10962
|
-
i0.ɵɵproperty("content",
|
|
10960
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
10961
|
+
i0.ɵɵproperty("content", ctx_r0.narrativeContent())("isLightMode", ctx_r0.isLightMode());
|
|
10963
10962
|
} }
|
|
10964
10963
|
function TooltipContainerComponent_Conditional_0_Case_11_Template(rf, ctx) { if (rf & 1) {
|
|
10965
10964
|
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Case_11_Conditional_0_Template, 1, 2, "symphiq-narrative-tooltip", 6);
|
|
10966
10965
|
} if (rf & 2) {
|
|
10967
|
-
const
|
|
10968
|
-
i0.ɵɵconditional(
|
|
10966
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10967
|
+
i0.ɵɵconditional(ctx_r0.narrativeContent() ? 0 : -1);
|
|
10969
10968
|
} }
|
|
10970
10969
|
function TooltipContainerComponent_Conditional_0_Case_12_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
10971
10970
|
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8);
|
|
@@ -10975,18 +10974,18 @@ function TooltipContainerComponent_Conditional_0_Case_12_Conditional_1_For_1_Tem
|
|
|
10975
10974
|
i0.ɵɵtext(4);
|
|
10976
10975
|
i0.ɵɵelementEnd()();
|
|
10977
10976
|
} if (rf & 2) {
|
|
10978
|
-
const
|
|
10977
|
+
const section_r2 = ctx.$implicit;
|
|
10979
10978
|
i0.ɵɵadvance(2);
|
|
10980
|
-
i0.ɵɵtextInterpolate(
|
|
10979
|
+
i0.ɵɵtextInterpolate(section_r2.title);
|
|
10981
10980
|
i0.ɵɵadvance(2);
|
|
10982
|
-
i0.ɵɵtextInterpolate(
|
|
10981
|
+
i0.ɵɵtextInterpolate(section_r2.content);
|
|
10983
10982
|
} }
|
|
10984
10983
|
function TooltipContainerComponent_Conditional_0_Case_12_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
10985
10984
|
i0.ɵɵrepeaterCreate(0, TooltipContainerComponent_Conditional_0_Case_12_Conditional_1_For_1_Template, 5, 2, "div", 7, i0.ɵɵrepeaterTrackByIndex);
|
|
10986
10985
|
} if (rf & 2) {
|
|
10987
10986
|
i0.ɵɵnextContext(2);
|
|
10988
|
-
const
|
|
10989
|
-
i0.ɵɵrepeater(
|
|
10987
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
10988
|
+
i0.ɵɵrepeater(content_r3["sections"] || i0.ɵɵpureFunction0(0, _c0$6));
|
|
10990
10989
|
} }
|
|
10991
10990
|
function TooltipContainerComponent_Conditional_0_Case_12_Template(rf, ctx) { if (rf & 1) {
|
|
10992
10991
|
i0.ɵɵelementStart(0, "div", 3);
|
|
@@ -10994,25 +10993,25 @@ function TooltipContainerComponent_Conditional_0_Case_12_Template(rf, ctx) { if
|
|
|
10994
10993
|
i0.ɵɵelementEnd();
|
|
10995
10994
|
} if (rf & 2) {
|
|
10996
10995
|
i0.ɵɵnextContext();
|
|
10997
|
-
const
|
|
10998
|
-
const
|
|
10999
|
-
i0.ɵɵproperty("ngClass",
|
|
10996
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
10997
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
10998
|
+
i0.ɵɵproperty("ngClass", ctx_r0.textClass());
|
|
11000
10999
|
i0.ɵɵadvance();
|
|
11001
|
-
i0.ɵɵconditional(
|
|
11000
|
+
i0.ɵɵconditional(content_r3 && typeof content_r3 === "object" && "sections" in content_r3 ? 1 : -1);
|
|
11002
11001
|
} }
|
|
11003
11002
|
function TooltipContainerComponent_Conditional_0_Case_13_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
11004
11003
|
i0.ɵɵtext(0);
|
|
11005
11004
|
} if (rf & 2) {
|
|
11006
11005
|
i0.ɵɵnextContext(2);
|
|
11007
|
-
const
|
|
11008
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11006
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
11007
|
+
i0.ɵɵtextInterpolate1(" ", content_r3["text"], " ");
|
|
11009
11008
|
} }
|
|
11010
11009
|
function TooltipContainerComponent_Conditional_0_Case_13_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
11011
11010
|
i0.ɵɵtext(0);
|
|
11012
11011
|
} if (rf & 2) {
|
|
11013
11012
|
i0.ɵɵnextContext(2);
|
|
11014
|
-
const
|
|
11015
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11013
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
11014
|
+
i0.ɵɵtextInterpolate1(" ", content_r3, " ");
|
|
11016
11015
|
} }
|
|
11017
11016
|
function TooltipContainerComponent_Conditional_0_Case_13_Template(rf, ctx) { if (rf & 1) {
|
|
11018
11017
|
i0.ɵɵelementStart(0, "div", 4);
|
|
@@ -11020,11 +11019,11 @@ function TooltipContainerComponent_Conditional_0_Case_13_Template(rf, ctx) { if
|
|
|
11020
11019
|
i0.ɵɵelementEnd();
|
|
11021
11020
|
} if (rf & 2) {
|
|
11022
11021
|
i0.ɵɵnextContext();
|
|
11023
|
-
const
|
|
11024
|
-
const
|
|
11025
|
-
i0.ɵɵproperty("ngClass",
|
|
11022
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
11023
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
11024
|
+
i0.ɵɵproperty("ngClass", ctx_r0.textClass());
|
|
11026
11025
|
i0.ɵɵadvance();
|
|
11027
|
-
i0.ɵɵconditional(
|
|
11026
|
+
i0.ɵɵconditional(content_r3 && typeof content_r3 === "object" && "text" in content_r3 ? 1 : 2);
|
|
11028
11027
|
} }
|
|
11029
11028
|
function TooltipContainerComponent_Conditional_0_Case_14_Template(rf, ctx) { if (rf & 1) {
|
|
11030
11029
|
i0.ɵɵelementStart(0, "div", 5);
|
|
@@ -11032,31 +11031,29 @@ function TooltipContainerComponent_Conditional_0_Case_14_Template(rf, ctx) { if
|
|
|
11032
11031
|
i0.ɵɵelementEnd();
|
|
11033
11032
|
} if (rf & 2) {
|
|
11034
11033
|
i0.ɵɵnextContext();
|
|
11035
|
-
const
|
|
11036
|
-
const
|
|
11037
|
-
i0.ɵɵproperty("ngClass",
|
|
11034
|
+
const content_r3 = i0.ɵɵreadContextLet(2);
|
|
11035
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
11036
|
+
i0.ɵɵproperty("ngClass", ctx_r0.textClass());
|
|
11038
11037
|
i0.ɵɵadvance();
|
|
11039
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11038
|
+
i0.ɵɵtextInterpolate1(" ", content_r3, " ");
|
|
11040
11039
|
} }
|
|
11041
11040
|
function TooltipContainerComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
11042
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
11043
11041
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
11044
|
-
i0.ɵɵlistener("mouseenter", function TooltipContainerComponent_Conditional_0_Template_div_mouseenter_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTooltipMouseEnter()); })("mouseleave", function TooltipContainerComponent_Conditional_0_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTooltipMouseLeave()); });
|
|
11045
11042
|
i0.ɵɵdeclareLet(2);
|
|
11046
11043
|
i0.ɵɵconditionalCreate(3, TooltipContainerComponent_Conditional_0_Case_3_Template, 1, 1)(4, TooltipContainerComponent_Conditional_0_Case_4_Template, 1, 1)(5, TooltipContainerComponent_Conditional_0_Case_5_Template, 1, 1)(6, TooltipContainerComponent_Conditional_0_Case_6_Template, 1, 1)(7, TooltipContainerComponent_Conditional_0_Case_7_Template, 1, 1)(8, TooltipContainerComponent_Conditional_0_Case_8_Template, 1, 1)(9, TooltipContainerComponent_Conditional_0_Case_9_Template, 1, 1)(10, TooltipContainerComponent_Conditional_0_Case_10_Template, 1, 1)(11, TooltipContainerComponent_Conditional_0_Case_11_Template, 1, 1)(12, TooltipContainerComponent_Conditional_0_Case_12_Template, 2, 2, "div", 3)(13, TooltipContainerComponent_Conditional_0_Case_13_Template, 3, 2, "div", 4)(14, TooltipContainerComponent_Conditional_0_Case_14_Template, 2, 2, "div", 5);
|
|
11047
11044
|
i0.ɵɵelementEnd()();
|
|
11048
11045
|
} if (rf & 2) {
|
|
11049
|
-
let
|
|
11050
|
-
const
|
|
11051
|
-
i0.ɵɵstyleMap("position: fixed; left: " +
|
|
11052
|
-
i0.ɵɵ
|
|
11046
|
+
let tmp_6_0;
|
|
11047
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
11048
|
+
i0.ɵɵstyleMap("position: fixed; left: " + ctx_r0.tooltipLeft() + "px; top: " + ctx_r0.tooltipTop() + "px; margin: 0; padding: 0; width: 24rem;");
|
|
11049
|
+
i0.ɵɵproperty("@fadeInScale", undefined);
|
|
11053
11050
|
i0.ɵɵadvance();
|
|
11054
|
-
i0.ɵɵstyleMap("transform: " +
|
|
11055
|
-
i0.ɵɵproperty("ngClass",
|
|
11051
|
+
i0.ɵɵstyleMap("transform: " + ctx_r0.transformStyle() + "; min-width: 12rem; box-sizing: border-box;");
|
|
11052
|
+
i0.ɵɵproperty("ngClass", ctx_r0.contentClass());
|
|
11056
11053
|
i0.ɵɵadvance();
|
|
11057
|
-
i0.ɵɵstoreLet(
|
|
11054
|
+
i0.ɵɵstoreLet(ctx_r0.tooltipContent());
|
|
11058
11055
|
i0.ɵɵadvance();
|
|
11059
|
-
i0.ɵɵconditional((
|
|
11056
|
+
i0.ɵɵconditional((tmp_6_0 = ctx_r0.tooltipType()) === "metric" ? 3 : tmp_6_0 === "status" ? 4 : tmp_6_0 === "trend" ? 5 : tmp_6_0 === "priority" ? 6 : tmp_6_0 === "badge" ? 7 : tmp_6_0 === "breakdown" ? 8 : tmp_6_0 === "competitive" ? 9 : tmp_6_0 === "insightsList" ? 10 : tmp_6_0 === "narrative" ? 11 : tmp_6_0 === "insight" ? 12 : tmp_6_0 === "text" ? 13 : 14);
|
|
11060
11057
|
} }
|
|
11061
11058
|
class TooltipContainerComponent {
|
|
11062
11059
|
constructor() {
|
|
@@ -11120,14 +11117,10 @@ class TooltipContainerComponent {
|
|
|
11120
11117
|
return this.tooltipType() === 'narrative' ? content : null;
|
|
11121
11118
|
}, ...(ngDevMode ? [{ debugName: "narrativeContent" }] : []));
|
|
11122
11119
|
this.tooltipLeft = computed(() => {
|
|
11123
|
-
|
|
11124
|
-
console.log('📍 [FINAL tooltipLeft]', left);
|
|
11125
|
-
return left;
|
|
11120
|
+
return this.calculateLeft();
|
|
11126
11121
|
}, ...(ngDevMode ? [{ debugName: "tooltipLeft" }] : []));
|
|
11127
11122
|
this.tooltipTop = computed(() => {
|
|
11128
|
-
|
|
11129
|
-
console.log('📍 [FINAL tooltipTop]', top);
|
|
11130
|
-
return top;
|
|
11123
|
+
return this.calculateTop();
|
|
11131
11124
|
}, ...(ngDevMode ? [{ debugName: "tooltipTop" }] : []));
|
|
11132
11125
|
this.shouldCenter = computed(() => {
|
|
11133
11126
|
const rect = this.targetRect();
|
|
@@ -11151,19 +11144,8 @@ class TooltipContainerComponent {
|
|
|
11151
11144
|
// Convert effective bounds back to viewport coordinates for comparison
|
|
11152
11145
|
const viewportEffectiveLeft = effectiveLeft + ancestorOffset;
|
|
11153
11146
|
const viewportEffectiveRight = effectiveRight + ancestorOffset;
|
|
11154
|
-
console.log('🎯 [shouldCenter calculation]', {
|
|
11155
|
-
position,
|
|
11156
|
-
ancestorOffset,
|
|
11157
|
-
effectiveLeft,
|
|
11158
|
-
effectiveRight,
|
|
11159
|
-
viewportEffectiveLeft,
|
|
11160
|
-
viewportEffectiveRight,
|
|
11161
|
-
'rect.left': rect.left,
|
|
11162
|
-
'rect.width': rect.width
|
|
11163
|
-
});
|
|
11164
11147
|
// For 'auto' positioning, always center horizontally
|
|
11165
11148
|
if (position === 'auto') {
|
|
11166
|
-
console.log('✅ [shouldCenter] auto = true');
|
|
11167
11149
|
return true;
|
|
11168
11150
|
}
|
|
11169
11151
|
if (position === 'top' || position === 'bottom') {
|
|
@@ -11171,49 +11153,15 @@ class TooltipContainerComponent {
|
|
|
11171
11153
|
const halfWidth = tooltipWidth / 2;
|
|
11172
11154
|
const wouldGoOffLeft = centerPosition - halfWidth < viewportEffectiveLeft + padding;
|
|
11173
11155
|
const wouldGoOffRight = centerPosition + halfWidth > viewportEffectiveRight - padding;
|
|
11174
|
-
|
|
11175
|
-
console.log('🎯 [shouldCenter] top/bottom', {
|
|
11176
|
-
centerPosition,
|
|
11177
|
-
halfWidth,
|
|
11178
|
-
wouldGoOffLeft,
|
|
11179
|
-
wouldGoOffRight,
|
|
11180
|
-
result
|
|
11181
|
-
});
|
|
11182
|
-
return result;
|
|
11156
|
+
return !wouldGoOffLeft && !wouldGoOffRight;
|
|
11183
11157
|
}
|
|
11184
|
-
console.log('❌ [shouldCenter] other position = false');
|
|
11185
11158
|
return false;
|
|
11186
11159
|
}, ...(ngDevMode ? [{ debugName: "shouldCenter" }] : []));
|
|
11187
11160
|
this.containerClass = computed(() => {
|
|
11188
11161
|
const position = this.tooltipPosition();
|
|
11189
11162
|
if (position === 'top' || position === 'bottom' || position === 'auto') {
|
|
11190
|
-
|
|
11191
|
-
const classes = shouldCenter ? '-translate-x-1/2' : '';
|
|
11192
|
-
const left = this.tooltipLeft();
|
|
11193
|
-
const rect = this.targetRect();
|
|
11194
|
-
const bounds = this.viewportBounds();
|
|
11195
|
-
console.log('═══════════════════════════════════════');
|
|
11196
|
-
console.log('🎨 [FINAL RENDER STATE]');
|
|
11197
|
-
console.log('═══════════════════════════════════════');
|
|
11198
|
-
console.log('Position:', position);
|
|
11199
|
-
console.log('Should Center:', shouldCenter);
|
|
11200
|
-
console.log('CSS Classes:', classes || '(none)');
|
|
11201
|
-
console.log('style.left will be:', left + 'px');
|
|
11202
|
-
console.log('Target rect.left:', rect?.left);
|
|
11203
|
-
console.log('Target center:', rect ? rect.left + rect.width / 2 : 'N/A');
|
|
11204
|
-
console.log('Viewport bounds:', bounds);
|
|
11205
|
-
console.log('');
|
|
11206
|
-
console.log('EXPECTED RESULT:');
|
|
11207
|
-
if (shouldCenter) {
|
|
11208
|
-
console.log('✅ Tooltip LEFT edge at', left, '+ transform -50% = CENTER at', left);
|
|
11209
|
-
}
|
|
11210
|
-
else {
|
|
11211
|
-
console.log('❌ Tooltip LEFT edge at', left, '(no centering transform)');
|
|
11212
|
-
}
|
|
11213
|
-
console.log('═══════════════════════════════════════');
|
|
11214
|
-
return classes;
|
|
11163
|
+
return this.shouldCenter() ? '-translate-x-1/2' : '';
|
|
11215
11164
|
}
|
|
11216
|
-
console.log('📦 [containerClass] no centering');
|
|
11217
11165
|
return '';
|
|
11218
11166
|
}, ...(ngDevMode ? [{ debugName: "containerClass" }] : []));
|
|
11219
11167
|
this.contentClass = computed(() => this.isLightMode()
|
|
@@ -11224,9 +11172,7 @@ class TooltipContainerComponent {
|
|
|
11224
11172
|
const centered = this.shouldCenter();
|
|
11225
11173
|
// Use fixed pixel value instead of percentage to avoid timing issues
|
|
11226
11174
|
// max-w-sm (384px) / 2 = 192px
|
|
11227
|
-
|
|
11228
|
-
console.log('🎨 [transformStyle]', { centered, transform });
|
|
11229
|
-
return transform;
|
|
11175
|
+
return centered ? 'translateX(-192px)' : 'none';
|
|
11230
11176
|
}, ...(ngDevMode ? [{ debugName: "transformStyle" }] : []));
|
|
11231
11177
|
this.tooltipService.tooltipState$
|
|
11232
11178
|
.pipe(takeUntilDestroyed())
|
|
@@ -11248,15 +11194,6 @@ class TooltipContainerComponent {
|
|
|
11248
11194
|
}
|
|
11249
11195
|
});
|
|
11250
11196
|
}
|
|
11251
|
-
onTooltipMouseEnter() {
|
|
11252
|
-
// DEBUGGING: Keep tooltip visible
|
|
11253
|
-
// this.tooltipService.setTooltipHovered(true);
|
|
11254
|
-
}
|
|
11255
|
-
onTooltipMouseLeave() {
|
|
11256
|
-
// DEBUGGING: Keep tooltip visible
|
|
11257
|
-
// this.tooltipService.setTooltipHovered(false);
|
|
11258
|
-
// this.tooltipService.triggerHideCheck();
|
|
11259
|
-
}
|
|
11260
11197
|
calculateLeft() {
|
|
11261
11198
|
const rect = this.targetRect();
|
|
11262
11199
|
if (!rect)
|
|
@@ -11265,18 +11202,6 @@ class TooltipContainerComponent {
|
|
|
11265
11202
|
// When an ancestor has transform, position:fixed is relative to that ancestor, not viewport
|
|
11266
11203
|
const transformedAncestor = this.findTransformedAncestor();
|
|
11267
11204
|
const ancestorOffset = transformedAncestor ? transformedAncestor.getBoundingClientRect().left : 0;
|
|
11268
|
-
console.log('🎯🎯🎯 [RECT FROM DIRECTIVE] 🎯🎯🎯', {
|
|
11269
|
-
left: rect.left,
|
|
11270
|
-
right: rect.right,
|
|
11271
|
-
top: rect.top,
|
|
11272
|
-
bottom: rect.bottom,
|
|
11273
|
-
width: rect.width,
|
|
11274
|
-
height: rect.height,
|
|
11275
|
-
x: rect.x,
|
|
11276
|
-
y: rect.y,
|
|
11277
|
-
ancestorOffset,
|
|
11278
|
-
transformedAncestor: transformedAncestor?.tagName
|
|
11279
|
-
});
|
|
11280
11205
|
const position = this.tooltipPosition();
|
|
11281
11206
|
const mousePos = this.mousePosition();
|
|
11282
11207
|
const tooltipWidth = 384;
|
|
@@ -11292,18 +11217,6 @@ class TooltipContainerComponent {
|
|
|
11292
11217
|
effectiveLeft = bounds.left - ancestorOffset;
|
|
11293
11218
|
effectiveRight = bounds.right - ancestorOffset;
|
|
11294
11219
|
}
|
|
11295
|
-
console.log('🔍 [Tooltip calculateLeft]', {
|
|
11296
|
-
position,
|
|
11297
|
-
'rect.left': rect.left,
|
|
11298
|
-
'rect.right': rect.right,
|
|
11299
|
-
'rect.width': rect.width,
|
|
11300
|
-
tooltipWidth,
|
|
11301
|
-
bounds,
|
|
11302
|
-
ancestorOffset,
|
|
11303
|
-
effectiveLeft,
|
|
11304
|
-
effectiveRight,
|
|
11305
|
-
'window.innerWidth': window.innerWidth
|
|
11306
|
-
});
|
|
11307
11220
|
// Handle 'auto' positioning with mouse coordinates
|
|
11308
11221
|
if (position === 'auto' && mousePos) {
|
|
11309
11222
|
const halfWidth = tooltipWidth / 2;
|
|
@@ -11331,66 +11244,37 @@ class TooltipContainerComponent {
|
|
|
11331
11244
|
// Check if centered tooltip would go off bounds (all in viewport coordinates)
|
|
11332
11245
|
const wouldGoOffLeft = centerPosition - halfWidth < viewportEffectiveLeft + padding;
|
|
11333
11246
|
const wouldGoOffRight = centerPosition + halfWidth > viewportEffectiveRight - padding;
|
|
11334
|
-
console.log('📍 [Tooltip top/bottom calculation]', {
|
|
11335
|
-
centerPosition,
|
|
11336
|
-
halfWidth,
|
|
11337
|
-
ancestorOffset,
|
|
11338
|
-
effectiveLeft,
|
|
11339
|
-
effectiveRight,
|
|
11340
|
-
viewportEffectiveLeft,
|
|
11341
|
-
viewportEffectiveRight,
|
|
11342
|
-
'centerPosition - halfWidth': centerPosition - halfWidth,
|
|
11343
|
-
'centerPosition + halfWidth': centerPosition + halfWidth,
|
|
11344
|
-
wouldGoOffLeft,
|
|
11345
|
-
wouldGoOffRight,
|
|
11346
|
-
'viewportEffectiveLeft + padding': viewportEffectiveLeft + padding,
|
|
11347
|
-
'viewportEffectiveRight - padding': viewportEffectiveRight - padding
|
|
11348
|
-
});
|
|
11349
11247
|
if (wouldGoOffLeft) {
|
|
11350
11248
|
// Align to left edge with padding (no transform applied, so this is the actual left edge)
|
|
11351
|
-
|
|
11352
|
-
console.log('⬅️ [Tooltip adjusting LEFT]', { result, effectiveLeft, tooltipWidth });
|
|
11353
|
-
return result;
|
|
11249
|
+
return effectiveLeft + padding;
|
|
11354
11250
|
}
|
|
11355
11251
|
else if (wouldGoOffRight) {
|
|
11356
11252
|
// Align to right edge with padding (no transform applied, so this is the actual left edge)
|
|
11357
|
-
|
|
11358
|
-
console.log('➡️ [Tooltip adjusting RIGHT]', { result, effectiveRight, tooltipWidth });
|
|
11359
|
-
return result;
|
|
11253
|
+
return effectiveRight - padding - tooltipWidth;
|
|
11360
11254
|
}
|
|
11361
11255
|
else {
|
|
11362
11256
|
// Center normally (transform will be applied to shift by -50%)
|
|
11363
|
-
|
|
11364
|
-
console.log('🎯 [Tooltip centered]', { centerPosition, ancestorOffset, result });
|
|
11365
|
-
return result;
|
|
11257
|
+
return centerPosition - ancestorOffset;
|
|
11366
11258
|
}
|
|
11367
11259
|
}
|
|
11368
11260
|
case 'left': {
|
|
11369
11261
|
const leftPosition = rect.left - tooltipWidth - 8;
|
|
11370
11262
|
// If tooltip would go off left edge, position it to the right instead
|
|
11371
11263
|
if (leftPosition < effectiveLeft + padding) {
|
|
11372
|
-
|
|
11373
|
-
console.log('⬅️➡️ [Tooltip LEFT flipped to RIGHT]', { leftPosition, result, ancestorOffset });
|
|
11374
|
-
return result;
|
|
11264
|
+
return rect.right + 8 - ancestorOffset;
|
|
11375
11265
|
}
|
|
11376
|
-
console.log('⬅️ [Tooltip LEFT]', { leftPosition, ancestorOffset });
|
|
11377
11266
|
return leftPosition - ancestorOffset;
|
|
11378
11267
|
}
|
|
11379
11268
|
case 'right': {
|
|
11380
11269
|
const rightPosition = rect.right + 8;
|
|
11381
11270
|
// If tooltip would go off right edge, position it to the left instead
|
|
11382
11271
|
if (rightPosition + tooltipWidth > effectiveRight - padding) {
|
|
11383
|
-
|
|
11384
|
-
console.log('➡️⬅️ [Tooltip RIGHT flipped to LEFT]', { rightPosition, result, ancestorOffset });
|
|
11385
|
-
return result;
|
|
11272
|
+
return rect.left - tooltipWidth - 8 - ancestorOffset;
|
|
11386
11273
|
}
|
|
11387
|
-
console.log('➡️ [Tooltip RIGHT]', { rightPosition, ancestorOffset });
|
|
11388
11274
|
return rightPosition - ancestorOffset;
|
|
11389
11275
|
}
|
|
11390
11276
|
default:
|
|
11391
|
-
|
|
11392
|
-
console.log('🔄 [Tooltip DEFAULT]', { defaultResult, ancestorOffset });
|
|
11393
|
-
return defaultResult;
|
|
11277
|
+
return rect.left + rect.width / 2 - ancestorOffset;
|
|
11394
11278
|
}
|
|
11395
11279
|
}
|
|
11396
11280
|
calculateTop() {
|
|
@@ -11472,11 +11356,6 @@ class TooltipContainerComponent {
|
|
|
11472
11356
|
const transform = style.transform;
|
|
11473
11357
|
// Check if element has any transform (including identity transforms like matrix3d)
|
|
11474
11358
|
if (transform && transform !== 'none') {
|
|
11475
|
-
console.log('🔍 [Found transformed ancestor]', {
|
|
11476
|
-
tagName: element.tagName,
|
|
11477
|
-
transform,
|
|
11478
|
-
rect: element.getBoundingClientRect()
|
|
11479
|
-
});
|
|
11480
11359
|
return element;
|
|
11481
11360
|
}
|
|
11482
11361
|
element = element.parentElement;
|
|
@@ -11486,8 +11365,8 @@ class TooltipContainerComponent {
|
|
|
11486
11365
|
static { this.ɵfac = function TooltipContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TooltipContainerComponent)(); }; }
|
|
11487
11366
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TooltipContainerComponent, selectors: [["symphiq-tooltip-container"]], hostVars: 2, hostBindings: function TooltipContainerComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
11488
11367
|
i0.ɵɵstyleProp("display", "contents");
|
|
11489
|
-
} }, decls: 1, vars: 1, consts: [[1, "z-[100]", "pointer-events-none", 3, "style"], [1, "z-[100]", "pointer-events-none"], [1, "rounded-lg", "shadow-2xl", "border", "backdrop-blur-xl", "px-4", "py-3", "pointer-events-auto", 3, "
|
|
11490
|
-
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Template, 15,
|
|
11368
|
+
} }, decls: 1, vars: 1, consts: [[1, "z-[100]", "pointer-events-none", 3, "style"], [1, "z-[100]", "pointer-events-none"], [1, "rounded-lg", "shadow-2xl", "border", "backdrop-blur-xl", "px-4", "py-3", "pointer-events-auto", 3, "ngClass"], [1, "text-sm", "space-y-3", 3, "ngClass"], [1, "text-sm", "whitespace-pre-line", "leading-relaxed", 3, "ngClass"], [1, "text-sm", "whitespace-pre-line", 3, "ngClass"], [3, "content", "isLightMode"], [1, "space-y-2"], [1, "font-semibold"], [1, "whitespace-pre-line", "leading-relaxed"]], template: function TooltipContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11369
|
+
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Template, 15, 8, "div", 0);
|
|
11491
11370
|
} if (rf & 2) {
|
|
11492
11371
|
i0.ɵɵconditional(ctx.isVisible() ? 0 : -1);
|
|
11493
11372
|
} }, dependencies: [CommonModule, i1.NgClass, MetricValueTooltipComponent,
|
|
@@ -11545,16 +11424,13 @@ class TooltipContainerComponent {
|
|
|
11545
11424
|
template: `
|
|
11546
11425
|
@if (isVisible()) {
|
|
11547
11426
|
<div
|
|
11427
|
+
[@fadeInScale]
|
|
11548
11428
|
[style]="'position: fixed; left: ' + tooltipLeft() + 'px; top: ' + tooltipTop() + 'px; margin: 0; padding: 0; width: 24rem;'"
|
|
11549
|
-
[attr.data-debug-left]="tooltipLeft()"
|
|
11550
|
-
[attr.data-debug-transform]="transformStyle()"
|
|
11551
11429
|
class="z-[100] pointer-events-none">
|
|
11552
11430
|
<div
|
|
11553
11431
|
[ngClass]="contentClass()"
|
|
11554
11432
|
class="rounded-lg shadow-2xl border backdrop-blur-xl px-4 py-3 pointer-events-auto"
|
|
11555
|
-
[style]="'transform: ' + transformStyle() + '; min-width: 12rem; box-sizing: border-box;'"
|
|
11556
|
-
(mouseenter)="onTooltipMouseEnter()"
|
|
11557
|
-
(mouseleave)="onTooltipMouseLeave()">
|
|
11433
|
+
[style]="'transform: ' + transformStyle() + '; min-width: 12rem; box-sizing: border-box;'">
|
|
11558
11434
|
@let content = tooltipContent();
|
|
11559
11435
|
@switch (tooltipType()) {
|
|
11560
11436
|
@case ('metric') {
|
|
@@ -11653,7 +11529,7 @@ class TooltipContainerComponent {
|
|
|
11653
11529
|
`
|
|
11654
11530
|
}]
|
|
11655
11531
|
}], () => [], null); })();
|
|
11656
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipContainerComponent, { className: "TooltipContainerComponent", filePath: "lib/components/funnel-analysis-dashboard/tooltip/tooltip-container.component.ts", lineNumber:
|
|
11532
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipContainerComponent, { className: "TooltipContainerComponent", filePath: "lib/components/funnel-analysis-dashboard/tooltip/tooltip-container.component.ts", lineNumber: 173 }); })();
|
|
11657
11533
|
|
|
11658
11534
|
function MobileFABComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
11659
11535
|
i0.ɵɵnamespaceSVG();
|