@eric-emg/symphiq-components 1.2.72 → 1.2.74
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.
|
@@ -11048,9 +11048,9 @@ function TooltipContainerComponent_Conditional_0_Template(rf, ctx) { if (rf & 1)
|
|
|
11048
11048
|
} if (rf & 2) {
|
|
11049
11049
|
let tmp_9_0;
|
|
11050
11050
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
11051
|
-
i0.ɵɵstyleProp("left", ctx_r1.tooltipLeft(), "px")("top", ctx_r1.tooltipTop(), "px");
|
|
11052
|
-
i0.ɵɵproperty("
|
|
11053
|
-
i0.ɵɵattribute("data-debug-left", ctx_r1.tooltipLeft())("data-debug-
|
|
11051
|
+
i0.ɵɵstyleProp("left", ctx_r1.tooltipLeft(), "px")("top", ctx_r1.tooltipTop(), "px")("transform", ctx_r1.transformStyle());
|
|
11052
|
+
i0.ɵɵproperty("@fadeInScale", undefined);
|
|
11053
|
+
i0.ɵɵattribute("data-debug-left", ctx_r1.tooltipLeft())("data-debug-transform", ctx_r1.transformStyle());
|
|
11054
11054
|
i0.ɵɵadvance();
|
|
11055
11055
|
i0.ɵɵproperty("ngClass", ctx_r1.contentClass());
|
|
11056
11056
|
i0.ɵɵadvance();
|
|
@@ -11206,6 +11206,12 @@ class TooltipContainerComponent {
|
|
|
11206
11206
|
? 'bg-white/95 border-slate-300 text-slate-900'
|
|
11207
11207
|
: 'bg-slate-800/95 border-slate-600 text-white', ...(ngDevMode ? [{ debugName: "contentClass" }] : []));
|
|
11208
11208
|
this.textClass = computed(() => this.isLightMode() ? 'text-slate-700' : 'text-slate-200', ...(ngDevMode ? [{ debugName: "textClass" }] : []));
|
|
11209
|
+
this.transformStyle = computed(() => {
|
|
11210
|
+
const centered = this.shouldCenter();
|
|
11211
|
+
const transform = centered ? 'translateX(-50%)' : 'none';
|
|
11212
|
+
console.log('🎨 [transformStyle]', { centered, transform });
|
|
11213
|
+
return transform;
|
|
11214
|
+
}, ...(ngDevMode ? [{ debugName: "transformStyle" }] : []));
|
|
11209
11215
|
this.tooltipService.tooltipState$
|
|
11210
11216
|
.pipe(takeUntilDestroyed())
|
|
11211
11217
|
.subscribe(state => {
|
|
@@ -11401,8 +11407,8 @@ class TooltipContainerComponent {
|
|
|
11401
11407
|
}
|
|
11402
11408
|
}
|
|
11403
11409
|
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", "
|
|
11405
|
-
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Template, 15,
|
|
11410
|
+
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) {
|
|
11411
|
+
i0.ɵɵconditionalCreate(0, TooltipContainerComponent_Conditional_0_Template, 15, 12, "div", 0);
|
|
11406
11412
|
} if (rf & 2) {
|
|
11407
11413
|
i0.ɵɵconditional(ctx.isVisible() ? 0 : -1);
|
|
11408
11414
|
} }, dependencies: [CommonModule, i1.NgClass, MetricValueTooltipComponent,
|
|
@@ -11459,9 +11465,9 @@ class TooltipContainerComponent {
|
|
|
11459
11465
|
<div
|
|
11460
11466
|
[style.left.px]="tooltipLeft()"
|
|
11461
11467
|
[style.top.px]="tooltipTop()"
|
|
11462
|
-
[
|
|
11468
|
+
[style.transform]="transformStyle()"
|
|
11463
11469
|
[attr.data-debug-left]="tooltipLeft()"
|
|
11464
|
-
[attr.data-debug-
|
|
11470
|
+
[attr.data-debug-transform]="transformStyle()"
|
|
11465
11471
|
class="fixed z-[100] pointer-events-none"
|
|
11466
11472
|
@fadeInScale>
|
|
11467
11473
|
<div
|