@eric-emg/symphiq-components 1.2.73 → 1.2.75

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.
@@ -11046,17 +11046,16 @@ function TooltipContainerComponent_Conditional_0_Template(rf, ctx) { if (rf & 1)
11046
11046
  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
11047
  i0.ɵɵelementEnd()();
11048
11048
  } if (rf & 2) {
11049
- let tmp_9_0;
11049
+ let tmp_8_0;
11050
11050
  const ctx_r1 = i0.ɵɵnextContext();
11051
- i0.ɵɵstyleProp("left", ctx_r1.tooltipLeft(), "px")("top", ctx_r1.tooltipTop(), "px");
11052
- i0.ɵɵproperty("ngClass", ctx_r1.containerClass())("@fadeInScale", undefined);
11053
- i0.ɵɵattribute("data-debug-left", ctx_r1.tooltipLeft())("data-debug-center", ctx_r1.containerClass());
11051
+ i0.ɵɵstyleProp("left", ctx_r1.tooltipLeft(), "px")("top", ctx_r1.tooltipTop(), "px")("transform", ctx_r1.transformStyle());
11052
+ i0.ɵɵattribute("data-debug-left", ctx_r1.tooltipLeft())("data-debug-transform", ctx_r1.transformStyle());
11054
11053
  i0.ɵɵadvance();
11055
11054
  i0.ɵɵproperty("ngClass", ctx_r1.contentClass());
11056
11055
  i0.ɵɵadvance();
11057
11056
  i0.ɵɵstoreLet(ctx_r1.tooltipContent());
11058
11057
  i0.ɵɵadvance();
11059
- i0.ɵɵconditional((tmp_9_0 = ctx_r1.tooltipType()) === "metric" ? 3 : tmp_9_0 === "status" ? 4 : tmp_9_0 === "trend" ? 5 : tmp_9_0 === "priority" ? 6 : tmp_9_0 === "badge" ? 7 : tmp_9_0 === "breakdown" ? 8 : tmp_9_0 === "competitive" ? 9 : tmp_9_0 === "insightsList" ? 10 : tmp_9_0 === "narrative" ? 11 : tmp_9_0 === "insight" ? 12 : tmp_9_0 === "text" ? 13 : 14);
11058
+ i0.ɵɵconditional((tmp_8_0 = ctx_r1.tooltipType()) === "metric" ? 3 : tmp_8_0 === "status" ? 4 : tmp_8_0 === "trend" ? 5 : tmp_8_0 === "priority" ? 6 : tmp_8_0 === "badge" ? 7 : tmp_8_0 === "breakdown" ? 8 : tmp_8_0 === "competitive" ? 9 : tmp_8_0 === "insightsList" ? 10 : tmp_8_0 === "narrative" ? 11 : tmp_8_0 === "insight" ? 12 : tmp_8_0 === "text" ? 13 : 14);
11060
11059
  } }
11061
11060
  class TooltipContainerComponent {
11062
11061
  constructor() {
@@ -11206,6 +11205,14 @@ class TooltipContainerComponent {
11206
11205
  ? 'bg-white/95 border-slate-300 text-slate-900'
11207
11206
  : 'bg-slate-800/95 border-slate-600 text-white', ...(ngDevMode ? [{ debugName: "contentClass" }] : []));
11208
11207
  this.textClass = computed(() => this.isLightMode() ? 'text-slate-700' : 'text-slate-200', ...(ngDevMode ? [{ debugName: "textClass" }] : []));
11208
+ this.transformStyle = computed(() => {
11209
+ const centered = this.shouldCenter();
11210
+ // Use fixed pixel value instead of percentage to avoid timing issues
11211
+ // max-w-sm (384px) / 2 = 192px
11212
+ const transform = centered ? 'translateX(-192px)' : 'none';
11213
+ console.log('🎨 [transformStyle]', { centered, transform });
11214
+ return transform;
11215
+ }, ...(ngDevMode ? [{ debugName: "transformStyle" }] : []));
11209
11216
  this.tooltipService.tooltipState$
11210
11217
  .pipe(takeUntilDestroyed())
11211
11218
  .subscribe(state => {
@@ -11401,7 +11408,7 @@ class TooltipContainerComponent {
11401
11408
  }
11402
11409
  }
11403
11410
  static { this.ɵfac = function TooltipContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TooltipContainerComponent)(); }; }
11404
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TooltipContainerComponent, selectors: [["symphiq-tooltip-container"]], decls: 1, vars: 1, consts: [[1, "fixed", "z-[100]", "pointer-events-none", 3, "left", "top", "ngClass"], [1, "fixed", "z-[100]", "pointer-events-none", 3, "ngClass"], [1, "rounded-lg", "shadow-2xl", "border", "backdrop-blur-xl", "px-4", "py-3", "max-w-sm", "pointer-events-auto", 3, "mouseenter", "mouseleave", "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) {
11411
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TooltipContainerComponent, selectors: [["symphiq-tooltip-container"]], decls: 1, vars: 1, consts: [[1, "fixed", "z-[100]", "pointer-events-none", 3, "left", "top", "transform"], [1, "fixed", "z-[100]", "pointer-events-none"], [1, "rounded-lg", "shadow-2xl", "border", "backdrop-blur-xl", "px-4", "py-3", "max-w-sm", "pointer-events-auto", 3, "mouseenter", "mouseleave", "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) {
11405
11412
  i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Template, 15, 11, "div", 0);
11406
11413
  } if (rf & 2) {
11407
11414
  i0.ɵɵconditional(ctx.isVisible() ? 0 : -1);
@@ -11459,11 +11466,10 @@ class TooltipContainerComponent {
11459
11466
  <div
11460
11467
  [style.left.px]="tooltipLeft()"
11461
11468
  [style.top.px]="tooltipTop()"
11462
- [ngClass]="containerClass()"
11469
+ [style.transform]="transformStyle()"
11463
11470
  [attr.data-debug-left]="tooltipLeft()"
11464
- [attr.data-debug-center]="containerClass()"
11465
- class="fixed z-[100] pointer-events-none"
11466
- @fadeInScale>
11471
+ [attr.data-debug-transform]="transformStyle()"
11472
+ class="fixed z-[100] pointer-events-none">
11467
11473
  <div
11468
11474
  [ngClass]="contentClass()"
11469
11475
  class="rounded-lg shadow-2xl border backdrop-blur-xl px-4 py-3 max-w-sm pointer-events-auto"
@@ -11567,7 +11573,7 @@ class TooltipContainerComponent {
11567
11573
  `
11568
11574
  }]
11569
11575
  }], () => [], null); })();
11570
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipContainerComponent, { className: "TooltipContainerComponent", filePath: "lib/components/funnel-analysis-dashboard/tooltip/tooltip-container.component.ts", lineNumber: 175 }); })();
11576
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipContainerComponent, { className: "TooltipContainerComponent", filePath: "lib/components/funnel-analysis-dashboard/tooltip/tooltip-container.component.ts", lineNumber: 174 }); })();
11571
11577
 
11572
11578
  function MobileFABComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
11573
11579
  i0.ɵɵnamespaceSVG();