@sixbell-telco/sdk 4.3.0 → 4.4.0
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/CHANGELOG.md +28 -1
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +1 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +10 -13
- package/components/dropdown-menu/README.md +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +5 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +2 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +2 -0
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -0
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -0
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +1 -0
- package/components/forms/combobox/README.md +1 -1
- package/components/forms/combobox/src/combobox.component.d.ts +10 -11
- package/components/forms/select/README.md +1 -1
- package/components/forms/select/src/select.component.d.ts +10 -11
- package/components/overlay/README.md +6 -1
- package/components/overlay/src/overlay.component.d.ts +9 -8
- package/components/tooltip/README.md +3 -2
- package/components/tooltip/src/tooltip.component.d.ts +8 -8
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +5 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +20 -9
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +26 -55
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +35 -49
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +35 -43
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +39 -77
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +33 -52
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +29 -9
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs +186 -0
- package/fesm2022/sixbell-telco-sdk-utils-popover-motion.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +129 -14
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/layouts/README.md +7 -1
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/menu/menu-active.d.ts +2 -1
- package/layouts/src/menu/menu-url.d.ts +2 -0
- package/layouts/src/page-banner/page-banner.component.d.ts +13 -1
- package/package.json +35 -31
- package/src/_index.css +85 -0
- package/utils/popover-motion/README.md +38 -0
- package/utils/popover-motion/index.d.ts +5 -0
- package/utils/popover-motion/public-api.d.ts +2 -0
- package/utils/popover-motion/src/popover-menu-motion.d.ts +37 -0
- package/utils/popover-motion/src/popover-motion.d.ts +31 -0
- package/utils/translation/README.md +2 -0
- package/utils/translation/src/translation.service.d.ts +24 -0
|
@@ -6,6 +6,7 @@ import { ChangeDetectionStrategy, Component, inject, ElementRef, Renderer2, Dest
|
|
|
6
6
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
7
7
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
8
8
|
import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
|
|
9
|
+
import { popoverPlacement, isPopoverMotionAnimation } from '@sixbell-telco/sdk/utils/popover-motion';
|
|
9
10
|
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
10
11
|
import { cva } from 'class-variance-authority';
|
|
11
12
|
|
|
@@ -269,7 +270,7 @@ class TooltipComponent {
|
|
|
269
270
|
renderedOpen = signal(false);
|
|
270
271
|
phase = signal('closed');
|
|
271
272
|
activePosition = signal(null);
|
|
272
|
-
|
|
273
|
+
closingPlacement = signal(null);
|
|
273
274
|
transitionToken = 0;
|
|
274
275
|
tooltipId = `st-tooltip-${generateUniqueId()}`;
|
|
275
276
|
paneId = `${this.tooltipId}-pane`;
|
|
@@ -370,53 +371,25 @@ class TooltipComponent {
|
|
|
370
371
|
return 'left';
|
|
371
372
|
return 'bottom';
|
|
372
373
|
}
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
/** Real placement of the pane, bound to `data-side` / `data-align`; null until the CDK places it */
|
|
375
|
+
placement = computed(() => {
|
|
376
|
+
const closing = this.closingPlacement();
|
|
377
|
+
if (closing)
|
|
378
|
+
return closing;
|
|
379
|
+
const active = this.activePosition();
|
|
380
|
+
return active ? popoverPlacement(active) : null;
|
|
375
381
|
});
|
|
376
382
|
tooltipClasses = computed(() => {
|
|
377
|
-
|
|
378
|
-
if (phase === 'closed')
|
|
383
|
+
if (this.phase() === 'closed')
|
|
379
384
|
return '';
|
|
380
|
-
const side = this.tooltipDirection();
|
|
381
|
-
const classes = {
|
|
382
|
-
bottom: {
|
|
383
|
-
opening: 'animate-fade-in-up animate-duration-150 origin-top',
|
|
384
|
-
open: 'animate-fade-in-up animate-duration-150 origin-top',
|
|
385
|
-
closing: 'animate-fade-out-down animate-duration-150 origin-top',
|
|
386
|
-
},
|
|
387
|
-
top: {
|
|
388
|
-
opening: 'animate-fade-in-down animate-duration-150 origin-bottom',
|
|
389
|
-
open: 'animate-fade-in-down animate-duration-150 origin-bottom',
|
|
390
|
-
closing: 'animate-fade-out-up animate-duration-150 origin-bottom',
|
|
391
|
-
},
|
|
392
|
-
right: {
|
|
393
|
-
opening: 'animate-fade-in-right animate-duration-150 origin-left',
|
|
394
|
-
open: 'animate-fade-in-right animate-duration-150 origin-left',
|
|
395
|
-
closing: 'animate-fade-out-left animate-duration-150 origin-left',
|
|
396
|
-
},
|
|
397
|
-
left: {
|
|
398
|
-
opening: 'animate-fade-in-left animate-duration-150 origin-right',
|
|
399
|
-
open: 'animate-fade-in-left animate-duration-150 origin-right',
|
|
400
|
-
closing: 'animate-fade-out-right animate-duration-150 origin-right',
|
|
401
|
-
},
|
|
402
|
-
};
|
|
403
385
|
const variant = this.variant() ?? 'base';
|
|
404
386
|
const variantClass = this.variant() ? `tooltip-${this.variant()}` : '';
|
|
405
387
|
const surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;
|
|
406
|
-
return `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm
|
|
388
|
+
return `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm popover-motion`.trim();
|
|
407
389
|
});
|
|
408
|
-
transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);
|
|
409
390
|
tooltipAnimationClass() {
|
|
410
391
|
return this.tooltipClasses();
|
|
411
392
|
}
|
|
412
|
-
expectedTooltipAnimationName(phase, side) {
|
|
413
|
-
return {
|
|
414
|
-
bottom: { opening: 'fade-in-up', closing: 'fade-out-down' },
|
|
415
|
-
top: { opening: 'fade-in-down', closing: 'fade-out-up' },
|
|
416
|
-
right: { opening: 'fade-in-right', closing: 'fade-out-left' },
|
|
417
|
-
left: { opening: 'fade-in-left', closing: 'fade-out-right' },
|
|
418
|
-
}[side][phase];
|
|
419
|
-
}
|
|
420
393
|
hasFocusableDescendant() {
|
|
421
394
|
const origin = this.origin().elementRef.nativeElement;
|
|
422
395
|
return Array.from(origin.querySelectorAll(focusableSelector)).some((element) => isEnabledFocusable(element));
|
|
@@ -476,21 +449,18 @@ class TooltipComponent {
|
|
|
476
449
|
this.clearTooltipAnimationFallback();
|
|
477
450
|
const token = this.transitionToken;
|
|
478
451
|
if (next) {
|
|
479
|
-
this.
|
|
452
|
+
this.closingPlacement.set(null);
|
|
480
453
|
if (!this.renderedOpen())
|
|
481
454
|
this.activePosition.set(null);
|
|
482
455
|
this.renderedOpen.set(true);
|
|
483
456
|
this.phase.set('opening');
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
if (token === this.transitionToken && this.phase() === 'opening')
|
|
487
|
-
this.scheduleTooltipAnimationFallback(token, 'opening');
|
|
488
|
-
}, 0);
|
|
457
|
+
if (this.activePosition())
|
|
458
|
+
this.deferTooltipAnimationFallback(token);
|
|
489
459
|
}
|
|
490
460
|
else {
|
|
491
|
-
this.
|
|
461
|
+
this.closingPlacement.set(this.placement());
|
|
492
462
|
this.phase.set('closing');
|
|
493
|
-
this.
|
|
463
|
+
this.deferTooltipAnimationFallback(token, 'closing');
|
|
494
464
|
}
|
|
495
465
|
}
|
|
496
466
|
onPointerEnter() {
|
|
@@ -578,8 +548,12 @@ class TooltipComponent {
|
|
|
578
548
|
this.dismissed.set(true);
|
|
579
549
|
this.requestOpen(false);
|
|
580
550
|
}
|
|
551
|
+
/** The first position of an open cycle starts the entrance (`data-side`), so its fallback is measured then */
|
|
581
552
|
onTooltipPositionChange(event) {
|
|
553
|
+
const firstPlacement = !this.activePosition();
|
|
582
554
|
this.activePosition.set(event.connectionPair);
|
|
555
|
+
if (firstPlacement && this.phase() === 'opening')
|
|
556
|
+
this.deferTooltipAnimationFallback(this.transitionToken);
|
|
583
557
|
if (this.isOriginOutsideView(event)) {
|
|
584
558
|
this.syncDescribedBy(null);
|
|
585
559
|
this.requestOpen(false);
|
|
@@ -602,8 +576,7 @@ class TooltipComponent {
|
|
|
602
576
|
const phase = this.phase();
|
|
603
577
|
if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
|
|
604
578
|
return;
|
|
605
|
-
|
|
606
|
-
if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
|
|
579
|
+
if (!isPopoverMotionAnimation(event, phase))
|
|
607
580
|
return;
|
|
608
581
|
if (phase === 'opening')
|
|
609
582
|
this.settleTooltipOpening(this.transitionToken);
|
|
@@ -614,8 +587,7 @@ class TooltipComponent {
|
|
|
614
587
|
const phase = this.phase();
|
|
615
588
|
if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
|
|
616
589
|
return;
|
|
617
|
-
|
|
618
|
-
if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
|
|
590
|
+
if (!isPopoverMotionAnimation(event, phase))
|
|
619
591
|
return;
|
|
620
592
|
this.scheduleTooltipAnimationFallback(this.transitionToken, phase);
|
|
621
593
|
}
|
|
@@ -641,6 +613,15 @@ class TooltipComponent {
|
|
|
641
613
|
this.cdkPositionStrategy = null;
|
|
642
614
|
this.renderedOpen.set(false);
|
|
643
615
|
}
|
|
616
|
+
/** Measure the fallback once the next render applied the phase (and `data-side`), so the computed animation is the real one */
|
|
617
|
+
deferTooltipAnimationFallback(token, phase = 'opening') {
|
|
618
|
+
this.clearTooltipAnimationFallback();
|
|
619
|
+
this.animationFallbackHandle = setTimeout(() => {
|
|
620
|
+
this.animationFallbackHandle = null;
|
|
621
|
+
if (token === this.transitionToken && this.phase() === phase)
|
|
622
|
+
this.scheduleTooltipAnimationFallback(token, phase);
|
|
623
|
+
}, 0);
|
|
624
|
+
}
|
|
644
625
|
scheduleTooltipAnimationFallback(token, phase) {
|
|
645
626
|
this.clearTooltipAnimationFallback();
|
|
646
627
|
const root = this.elementRef.nativeElement.ownerDocument.getElementById(this.paneId);
|
|
@@ -667,13 +648,13 @@ class TooltipComponent {
|
|
|
667
648
|
this.animationFallbackHandle = null;
|
|
668
649
|
}
|
|
669
650
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
670
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TooltipComponent, isStandalone: true, selector: "st-tooltip", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex items-center" }, queries: [{ propertyName: "customContent", first: true, predicate: TooltipContentComponent, descendants: true, isSignal: true }, { propertyName: "richContentElement", first: true, predicate: TooltipContentComponent, descendants: true, read: ElementRef, isSignal: true }], viewQueries: [{ propertyName: "origin", first: true, predicate: CdkOverlayOrigin, descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"
|
|
651
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TooltipComponent, isStandalone: true, selector: "st-tooltip", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex items-center" }, queries: [{ propertyName: "customContent", first: true, predicate: TooltipContentComponent, descendants: true, isSignal: true }, { propertyName: "richContentElement", first: true, predicate: TooltipContentComponent, descendants: true, read: ElementRef, isSignal: true }], viewQueries: [{ propertyName: "origin", first: true, predicate: CdkOverlayOrigin, descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"placement()?.side\"\n\t\t\t\t[attr.data-align]=\"placement()?.align\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }] });
|
|
671
652
|
}
|
|
672
653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
673
654
|
type: Component,
|
|
674
655
|
args: [{ selector: 'st-tooltip', standalone: true, imports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent], host: {
|
|
675
656
|
class: 'inline-flex items-center',
|
|
676
|
-
}, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"
|
|
657
|
+
}, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"placement()?.side\"\n\t\t\t\t[attr.data-align]=\"placement()?.align\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n" }]
|
|
677
658
|
}], ctorParameters: () => [] });
|
|
678
659
|
|
|
679
660
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-tooltip.mjs","sources":["../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.ts","../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.html","../../../projects/sdk/components/tooltip/src/tooltip.component.ts","../../../projects/sdk/components/tooltip/src/tooltip.component.html","../../../projects/sdk/components/tooltip/sixbell-telco-sdk-components-tooltip.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * A container component for custom tooltip content\n *\n * @remarks\n * Designed to be used within `<st-tooltip>` components to provide\n * rich, customized tooltip content. When used, replaces the default\n * text label with any arbitrary content.\n *\n * @example\n * ```html\n * <st-tooltip variant=\"warning\">\n * <button class=\"btn\">Hover me</button>\n * <st-tooltip-content>\n * <div class=\"animate-pulse text-red-500\">\n * ⚠️ Critical warning!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <st-tooltip position=\"right\">\n * <st-tooltip-content>\n * <div class=\"flex items-center gap-2\">\n * <st-icon icon=\"info\"></st-icon>\n * <span>Custom tooltip layout</span>\n * </div>\n * </st-tooltip-content>\n * <p class=\"cursor-pointer\">Hover for details</p>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip-content',\n\timports: [CommonModule],\n\ttemplateUrl: './tooltip-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TooltipContentComponent {}\n","<ng-content></ng-content>\n","import {\n\tCdkConnectedOverlay,\n\tCdkOverlayOrigin,\n\tConnectedOverlayPositionChange,\n\tConnectedPosition,\n\tFlexibleConnectedPositionStrategy,\n\tOverlay,\n\tScrollStrategy,\n} from '@angular/cdk/overlay';\nimport { ScrollDispatcher } from '@angular/cdk/scrolling';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { cva } from 'class-variance-authority';\nimport { TooltipContentComponent } from '../tooltip-content/tooltip-content.component';\n\n/**\n * @internal\n * Generates base tooltip classes with style variants\n */\nexport const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-top', 'text-pretty', 'font-body', 'gap-1'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['tooltip-primary'],\n\t\t\tsecondary: ['tooltip-secondary'],\n\t\t\ttertiary: ['tooltip-tertiary'],\n\t\t\tsuccess: ['tooltip-success'],\n\t\t\tneutral: ['tooltip-neutral'],\n\t\t\twarning: ['tooltip-warning'],\n\t\t\terror: ['tooltip-error'],\n\t\t\tinfo: ['tooltip-info'],\n\t\t},\n\t\tposition: {\n\t\t\ttop: ['tooltip-top'],\n\t\t\tbottom: ['tooltip-bottom'],\n\t\t\tright: ['tooltip-right'],\n\t\t\tleft: ['tooltip-left'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tposition: 'bottom',\n\t},\n});\n\n/** Possible tooltip color variants */\nexport type TooltipVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'neutral' | 'warning' | 'error' | 'info' | null | undefined;\n\nconst tooltipVariantSurface: Record<NonNullable<TooltipVariantProps>, string> = {\n\tbase: 'bg-base-300 text-base-content',\n\tprimary: 'bg-primary text-primary-content',\n\tsecondary: 'bg-secondary text-secondary-content',\n\ttertiary: 'bg-tertiary text-tertiary-content',\n\tsuccess: 'bg-success text-success-content',\n\tneutral: 'bg-neutral text-neutral-content',\n\twarning: 'bg-warning text-warning-content',\n\terror: 'bg-error text-error-content',\n\tinfo: 'bg-info text-info-content',\n};\n\n/** Possible tooltip position variants */\nexport type TooltipPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Configuration object for tooltip styling */\nexport type TooltipProps = {\n\tvariant?: TooltipVariantProps;\n\tposition?: TooltipPositionProps;\n};\n\ntype TooltipSide = 'top' | 'bottom' | 'right' | 'left';\ntype TooltipPhase = 'closed' | 'opening' | 'open' | 'closing';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable=\"true\"], [tabindex]:not([tabindex=\"-1\"])';\n\n/** Focus the browser would show a ring for (keyboard, or programmatic after keyboard), shadow roots included. */\nfunction isKeyboardFocus(element: HTMLElement): boolean {\n\ttry {\n\t\treturn element.matches(':focus-visible');\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim().toLowerCase();\n\n/** Text of the subtree that counts toward a name: skips `hidden`/`aria-hidden` subtrees and reads `img` `alt`. */\nfunction visibleText(node: Node): string {\n\tif (node.nodeType === Node.TEXT_NODE) return node.textContent ?? '';\n\tif (node.nodeType !== Node.ELEMENT_NODE) return '';\n\tconst element = node as HTMLElement;\n\tif (element.hidden || element.getAttribute('aria-hidden') === 'true') return '';\n\tif (element.localName === 'img') return element.getAttribute('alt') ?? '';\n\treturn Array.from(element.childNodes, visibleText).join(' ');\n}\n\n/** Text of the `<label>`s associated with a form control (`for` or wrapping), via `labels` or a `for` lookup. */\nfunction nativeLabelText(element: HTMLElement): string {\n\tconst labels = (element as HTMLInputElement).labels;\n\tif (labels) return Array.from(labels, visibleText).join(' ');\n\tconst id = element.id;\n\tif (!id) return '';\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\treturn Array.from(root.querySelectorAll?.('label[for]') ?? [])\n\t\t.filter((label) => label.getAttribute('for') === id)\n\t\t.map(visibleText)\n\t\t.join(' ');\n}\n\n/**\n * Approximates the accessible name: `aria-labelledby`, then `aria-label`, then the associated `<label>`, then the\n * visible text content (or `alt`), then `title`.\n */\nfunction approximateAccessibleName(element: HTMLElement): string {\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\tconst labelledBy = (element.getAttribute('aria-labelledby') ?? '')\n\t\t.split(/\\s+/)\n\t\t.filter(Boolean)\n\t\t.map((id) => root.getElementById?.(id)?.textContent ?? '')\n\t\t.join(' ');\n\treturn (\n\t\tnormalizeText(labelledBy) ||\n\t\tnormalizeText(element.getAttribute('aria-label')) ||\n\t\tnormalizeText(nativeLabelText(element)) ||\n\t\tnormalizeText(visibleText(element)) ||\n\t\tnormalizeText(element.getAttribute('title'))\n\t);\n}\n\nconst escapeRegExp = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n/** True when `name` is, or contains as whole words, the tooltip `text` (so \"Delete\" is not found in \"Undelete\"). */\nfunction nameContainsText(name: string, text: string): boolean {\n\tif (!text) return true;\n\treturn new RegExp(`(?<![\\\\p{L}\\\\p{N}])${escapeRegExp(text)}(?![\\\\p{L}\\\\p{N}])`, 'u').test(name);\n}\n\nfunction isEnabledFocusable(element: HTMLElement): boolean {\n\tlet ancestor: HTMLElement | null = element;\n\twhile (ancestor) {\n\t\tconst ancestorStyle = getComputedStyle(ancestor);\n\t\tif (\n\t\t\tancestor.style.display === 'none' ||\n\t\t\tancestor.style.visibility === 'hidden' ||\n\t\t\tancestorStyle.display === 'none' ||\n\t\t\tancestorStyle.visibility === 'hidden'\n\t\t)\n\t\t\treturn false;\n\t\tancestor = ancestor.parentElement;\n\t}\n\n\tconst style = getComputedStyle(element);\n\treturn Boolean(\n\t\telement.isConnected &&\n\t\telement.tabIndex >= 0 &&\n\t\t!element.matches(':disabled') &&\n\t\t!(element as HTMLButtonElement).disabled &&\n\t\telement.getAttribute('aria-disabled') !== 'true' &&\n\t\t!element.closest('[hidden], [inert], [aria-hidden=\"true\"], fieldset[disabled]') &&\n\t\t!element.hidden &&\n\t\t!(element as HTMLElement & { inert?: boolean }).inert &&\n\t\tstyle.display !== 'none' &&\n\t\tstyle.visibility !== 'hidden',\n\t);\n}\n\n/**\n * A customizable tooltip component with multiple variants and content options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports both simple text labels and custom content tooltips.\n *\n * @example\n * ```html\n * <!-- Simple text tooltip -->\n * <st-tooltip variant=\"primary\" label=\"Information tooltip\">\n * <button class=\"btn\">Hover me</button>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <!-- Custom content tooltip -->\n * <st-tooltip position=\"right\" variant=\"warning\">\n * <button class=\"btn\">Dangerous action</button>\n * <st-tooltip-content>\n * <div class=\"text-red-500 font-bold\">\n * ⚠️ Proceed with caution!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n\thost: {\n\t\tclass: 'inline-flex items-center',\n\t},\n})\nexport class TooltipComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprivate readonly scrollDispatcher = inject(ScrollDispatcher);\n\tprivate readonly overlay = inject(Overlay);\n\tprotected readonly repositionScrollStrategy: ScrollStrategy = this.overlay.scrollStrategies.reposition();\n\tprivate cdkPositionStrategy: FlexibleConnectedPositionStrategy | null = null;\n\t/**\n\t * Tooltip color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<TooltipVariantProps>();\n\n\t/**\n\t * Tooltip position relative to target element\n\t * @defaultValue 'bottom'\n\t */\n\tposition = input<TooltipPositionProps>();\n\n\t/**\n\t * Text label for simple tooltip content\n\t */\n\tlabel = input<string>();\n\n\t/**\n\t * Optional icon name to render inside the trigger (mirrors Button API)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Icon position relative to content\n\t * @defaultValue 'left'\n\t */\n\ticonPosition = input<'left' | 'right' | null | undefined>('left');\n\n\t/**\n\t * Delay in milliseconds before the tooltip hides after the pointer leaves the trigger or the tooltip,\n\t * so the pointer can cross the gap onto the tooltip (WCAG 1.4.13 hoverable). `0` hides immediately.\n\t * @defaultValue 120\n\t */\n\tcloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * @internal\n\t * Reference to custom tooltip content component\n\t */\n\tcustomContent = contentChild(TooltipContentComponent);\n\tprivate readonly richContentElement = contentChild(TooltipContentComponent, { read: ElementRef<HTMLElement> });\n\tprivate readonly richContentText = signal('');\n\n\t/**\n\t * @internal\n\t * Computed flag indicating presence of custom content\n\t */\n\thasCustomContent = computed(() => !!this.customContent());\n\n\t/** @internal Plain-text description the trigger's `aria-describedby` resolves to, open or closed. */\n\tprotected readonly descriptionText = computed(() => this.label()?.trim() || this.richContentText());\n\n\tprivate readonly hasTooltipContent = computed(() => Boolean(this.descriptionText()));\n\n\tprivate readonly requestedOpen = signal(false);\n\tprivate readonly pointerInside = signal(false);\n\tprivate readonly pointerOverPane = signal(false);\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate readonly focusedTarget = signal<HTMLElement | null>(null);\n\tprivate readonly keyboardFocused = signal(false);\n\t/** Set by a press, an activation or Escape; only a fresh pointer enter or keyboard focus clears it. */\n\tprivate readonly dismissed = signal(false);\n\tprotected readonly renderedOpen = signal(false);\n\tprotected readonly phase = signal<TooltipPhase>('closed');\n\tprivate readonly activePosition = signal<ConnectedPosition | null>(null);\n\tprivate readonly closingSide = signal<TooltipSide | null>(null);\n\tprivate transitionToken = 0;\n\tprotected readonly tooltipId = `st-tooltip-${generateUniqueId()}`;\n\tprotected readonly paneId = `${this.tooltipId}-pane`;\n\tprotected readonly origin = viewChild.required(CdkOverlayOrigin);\n\tprivate animationFallbackHandle: ReturnType<typeof setTimeout> | null = null;\n\tprotected readonly triggerTabIndexValue = signal<number | null>(0);\n\n\t/**\n\t * @internal\n\t * Computed class string for the tooltip container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttooltipComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tposition: this.position(),\n\t\t\t}),\n\t\t);\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';\n\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\tthis.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);\n\t\t});\n\t\teffect((onCleanup) => {\n\t\t\tconst element = this.richContentElement()?.nativeElement;\n\t\t\tif (!element || typeof MutationObserver === 'undefined') return;\n\t\t\tconst updateRichContent = () => {\n\t\t\t\tconst richContent = element.textContent?.trim() ?? '';\n\t\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\t};\n\t\t\tconst observer = new MutationObserver(updateRichContent);\n\t\t\tobserver.observe(element, { characterData: true, childList: true, subtree: true });\n\t\t\tupdateRichContent();\n\t\t\tonCleanup(() => observer.disconnect());\n\t\t});\n\t\teffect(() => {\n\t\t\tif (!this.hasTooltipContent()) {\n\t\t\t\tthis.syncDescribedBy(null);\n\t\t\t\tif (this.requestedOpen()) this.requestOpen(false);\n\t\t\t}\n\t\t});\n\t\tthis.listenForPress();\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.clearCloseTimer();\n\t\t\tthis.clearTooltipAnimationFallback();\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.transitionToken += 1;\n\t\t});\n\t}\n\n\t/**\n\t * Capture phase, so a projected control that stops propagation (`st-button [stopPropagation]`) still\n\t * dismisses it. `click` also covers keyboard activation (Enter/Space), which has no pointerdown.\n\t */\n\tprivate listenForPress(): void {\n\t\tconst host = this.elementRef.nativeElement;\n\t\tconst onPress = () => this.onPress();\n\t\thost.addEventListener('pointerdown', onPress, { capture: true });\n\t\thost.addEventListener('click', onPress, { capture: true });\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\thost.removeEventListener('pointerdown', onPress, { capture: true });\n\t\t\thost.removeEventListener('click', onPress, { capture: true });\n\t\t});\n\t}\n\n\tprotected readonly positions = computed<ConnectedPosition[]>(() => {\n\t\tconst requestedSide = this.sideFromPair(this.primaryPosition(this.position()));\n\t\tconst [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);\n\t\treturn [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));\n\t});\n\n\tprivate primaryPosition(position: TooltipPositionProps): ConnectedPosition {\n\t\tswitch (position) {\n\t\t\tcase 'top':\n\t\t\t\treturn { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };\n\t\t\tcase 'right':\n\t\t\t\treturn { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };\n\t\t\tcase 'left':\n\t\t\t\treturn { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };\n\t\t\tdefault:\n\t\t\t\treturn { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };\n\t\t}\n\t}\n\n\tprivate oppositeSide(side: TooltipSide): TooltipSide {\n\t\treturn ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' } satisfies Record<TooltipSide, TooltipSide>)[side];\n\t}\n\n\tprivate orthogonalSides(side: TooltipSide): [TooltipSide, TooltipSide] {\n\t\treturn side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];\n\t}\n\n\tprivate sideFromPair(pair: ConnectedPosition): TooltipSide {\n\t\tif (pair.originY === 'bottom' && pair.overlayY === 'top') return 'bottom';\n\t\tif (pair.originY === 'top' && pair.overlayY === 'bottom') return 'top';\n\t\tif (pair.originX === 'end' && pair.overlayX === 'start') return 'right';\n\t\tif (pair.originX === 'start' && pair.overlayX === 'end') return 'left';\n\t\treturn 'bottom';\n\t}\n\n\tprotected readonly tooltipDirection = computed<TooltipSide>(() => {\n\t\treturn this.closingSide() ?? this.sideFromPair(this.activePosition() ?? this.positions()[0]);\n\t});\n\n\tprotected readonly tooltipClasses = computed(() => {\n\t\tconst phase = this.phase();\n\t\tif (phase === 'closed') return '';\n\t\tconst side = this.tooltipDirection();\n\t\tconst classes: Record<TooltipSide, Record<'opening' | 'open' | 'closing', string>> = {\n\t\t\tbottom: {\n\t\t\t\topening: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\topen: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\tclosing: 'animate-fade-out-down animate-duration-150 origin-top',\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\topening: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\topen: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\tclosing: 'animate-fade-out-up animate-duration-150 origin-bottom',\n\t\t\t},\n\t\t\tright: {\n\t\t\t\topening: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\topen: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\tclosing: 'animate-fade-out-left animate-duration-150 origin-left',\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\topening: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\topen: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\tclosing: 'animate-fade-out-right animate-duration-150 origin-right',\n\t\t\t},\n\t\t};\n\t\tconst variant = this.variant() ?? 'base';\n\t\tconst variantClass = this.variant() ? `tooltip-${this.variant()}` : '';\n\t\tconst surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;\n\t\treturn `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm ${classes[side][phase]}`.trim();\n\t});\n\n\tprotected readonly transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);\n\n\tprotected tooltipAnimationClass(): string {\n\t\treturn this.tooltipClasses();\n\t}\n\n\tprivate expectedTooltipAnimationName(phase: 'opening' | 'closing', side: TooltipSide): string {\n\t\treturn {\n\t\t\tbottom: { opening: 'fade-in-up', closing: 'fade-out-down' },\n\t\t\ttop: { opening: 'fade-in-down', closing: 'fade-out-up' },\n\t\t\tright: { opening: 'fade-in-right', closing: 'fade-out-left' },\n\t\t\tleft: { opening: 'fade-in-left', closing: 'fade-out-right' },\n\t\t}[side][phase];\n\t}\n\n\tprivate hasFocusableDescendant(): boolean {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\treturn Array.from(origin.querySelectorAll<HTMLElement>(focusableSelector)).some((element) => isEnabledFocusable(element));\n\t}\n\n\tprotected resolveFocusTarget(event: FocusEvent): HTMLElement | null {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\tfor (const item of event.composedPath()) {\n\t\t\tif (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item)) continue;\n\t\t\tif (item === origin && event.target !== origin) continue;\n\t\t\tif ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item)) return item;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected syncDescribedBy(target: HTMLElement | null): void {\n\t\tconst previous = this.focusedTarget();\n\t\tif (!this.hasTooltipContent()) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (!target) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (previous && previous !== target) this.removeDescribedBy(previous);\n\t\tthis.focusedTarget.set(target);\n\t\tif (nameContainsText(approximateAccessibleName(target), normalizeText(this.descriptionText()))) {\n\t\t\tthis.removeDescribedBy(target);\n\t\t\treturn;\n\t\t}\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter(Boolean);\n\t\tif (!tokens.includes(this.tooltipId)) this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));\n\t}\n\n\tprivate removeDescribedBy(target: HTMLElement): void {\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((token) => token && token !== this.tooltipId);\n\t\tif (tokens.length) this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));\n\t\telse this.renderer.removeAttribute(target, 'aria-describedby');\n\t}\n\n\tprotected requestOpen(next: boolean): void {\n\t\tthis.clearCloseTimer();\n\t\tif (next && (this.dismissed() || !this.hasTooltipContent())) return;\n\t\tif (next === this.requestedOpen()) return;\n\t\tthis.requestedOpen.set(next);\n\t\tthis.transitionToken += 1;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst token = this.transitionToken;\n\t\tif (next) {\n\t\t\tthis.closingSide.set(null);\n\t\t\tif (!this.renderedOpen()) this.activePosition.set(null);\n\t\t\tthis.renderedOpen.set(true);\n\t\t\tthis.phase.set('opening');\n\t\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\t\tthis.animationFallbackHandle = null;\n\t\t\t\tif (token === this.transitionToken && this.phase() === 'opening') this.scheduleTooltipAnimationFallback(token, 'opening');\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tthis.closingSide.set(this.sideFromPair(this.activePosition() ?? this.positions()[0]));\n\t\t\tthis.phase.set('closing');\n\t\t\tthis.scheduleTooltipAnimationFallback(token, 'closing');\n\t\t}\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerInside.set(true);\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerInside.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\t/** The pointer may move onto the tooltip without hiding it (WCAG 1.4.13 hoverable). */\n\tprotected onPaneEnter(): void {\n\t\tthis.pointerOverPane.set(true);\n\t\tthis.clearCloseTimer();\n\t\tif (this.renderedOpen() && !this.requestedOpen()) this.requestOpen(true);\n\t}\n\n\tprotected onPaneLeave(): void {\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tthis.clearCloseTimer();\n\t\tconst close = () => {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane() && !this.keyboardFocused()) this.requestOpen(false);\n\t\t};\n\t\tconst delay = this.closeDelay();\n\t\tif (!Number.isFinite(delay) || delay <= 0 || !this.requestedOpen()) {\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tthis.closeTimer = setTimeout(() => {\n\t\t\tthis.closeTimer = null;\n\t\t\tclose();\n\t\t}, delay);\n\t}\n\n\tprivate clearCloseTimer(): void {\n\t\tif (this.closeTimer === null) return;\n\t\tclearTimeout(this.closeTimer);\n\t\tthis.closeTimer = null;\n\t}\n\n\t/**\n\t * Only keyboard focus (`:focus-visible`) opens or keeps the tooltip open. Focus caused by a mouse press,\n\t * or restored by a dialog after one, describes the control but never shows or pins the tooltip.\n\t */\n\tprotected onFocusIn(event: FocusEvent): void {\n\t\tconst target = this.resolveFocusTarget(event);\n\t\tthis.syncDescribedBy(target);\n\t\tconst keyboard = Boolean(target && isKeyboardFocus(target));\n\t\tthis.keyboardFocused.set(keyboard);\n\t\tif (!keyboard) {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t\t\treturn;\n\t\t}\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\t/** Pressing or activating the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */\n\tprotected onPress(): void {\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onFocusOut(event: FocusEvent): void {\n\t\tconst related = event.relatedTarget;\n\t\tif (related instanceof Node && this.elementRef.nativeElement.contains(related)) return;\n\t\tthis.syncDescribedBy(null);\n\t\tthis.keyboardFocused.set(false);\n\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t}\n\n\t/**\n\t * Escape arrives through the CDK overlay keyboard stack, which hands it only to the topmost overlay that\n\t * listens. While the tooltip is the top layer it closes the tooltip alone; an enclosing `st-dialog`\n\t * keeps its own Escape for the next press, and a menu opened above the tooltip keeps this one.\n\t */\n\tprotected onOverlayKeydown(event: KeyboardEvent): void {\n\t\tif (event.key !== 'Escape' || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n\t\tevent.preventDefault();\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onTooltipPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tthis.activePosition.set(event.connectionPair);\n\t\tif (this.isOriginOutsideView(event)) {\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.requestOpen(false);\n\t\t}\n\t}\n\n\tprotected tooltipPositionStrategy(): FlexibleConnectedPositionStrategy {\n\t\tconst strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));\n\t\tstrategy\n\t\t\t.setOrigin(this.origin().elementRef)\n\t\t\t.withPositions(this.positions())\n\t\t\t.withPush(true)\n\t\t\t.withViewportMargin(8)\n\t\t\t.withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));\n\t\treturn strategy;\n\t}\n\n\tprivate isOriginOutsideView(change: ConnectedOverlayPositionChange): boolean {\n\t\treturn change.scrollableViewProperties?.isOriginOutsideView === true;\n\t}\n\n\tprotected onTooltipAnimationEnd(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tif (phase === 'opening') this.settleTooltipOpening(this.transitionToken);\n\t\telse this.settleTooltipClosing(this.transitionToken);\n\t}\n\n\tprotected onTooltipAnimationCancel(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tthis.scheduleTooltipAnimationFallback(this.transitionToken, phase);\n\t}\n\n\tprotected onTooltipDetach(): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.transitionToken += 1;\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.activePosition.set(null);\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.renderedOpen.set(false);\n\t\tthis.phase.set('closed');\n\t}\n\n\tprivate settleTooltipOpening(token: number): void {\n\t\tif (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.phase.set('open');\n\t}\n\n\tprivate settleTooltipClosing(token: number): void {\n\t\tif (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.renderedOpen.set(false);\n\t}\n\n\tprivate scheduleTooltipAnimationFallback(token: number, phase: 'opening' | 'closing'): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst root = this.elementRef.nativeElement.ownerDocument.getElementById(this.paneId);\n\t\tconst style = root ? getComputedStyle(root) : null;\n\t\tconst parseTime = (value: string) => {\n\t\t\tconst parsed = Number.parseFloat(value);\n\t\t\treturn Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;\n\t\t};\n\t\tconst durations = style?.animationDuration.split(',').map(parseTime) ?? [0];\n\t\tconst delays = style?.animationDelay.split(',').map(parseTime) ?? [0];\n\t\tconst duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);\n\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\tthis.animationFallbackHandle = null;\n\t\t\tif (phase === 'opening') this.settleTooltipOpening(token);\n\t\t\telse this.settleTooltipClosing(token);\n\t\t}, duration);\n\t}\n\n\tprivate clearTooltipAnimationFallback(): void {\n\t\tif (this.animationFallbackHandle === null) return;\n\t\tclearTimeout(this.animationFallbackHandle);\n\t\tthis.animationFallbackHandle = null;\n\t}\n}\n","@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;MAOU,uBAAuB,CAAA;wGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1CpC,6BACA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDqCW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,YAAY,CAAC,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6BAAA,EAAA;;;AEPhD;;;AAGG;MACU,gBAAgB,GAAG,GAAG,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE;AACjI,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,SAAS,EAAE,CAAC,mBAAmB,CAAC;YAChC,QAAQ,EAAE,CAAC,kBAAkB,CAAC;YAC9B,OAAO,EAAE,CAAC,iBAAiB,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AAA;;4FAOpE,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAV5B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAA,IAAA,EAG3E;AACL,wBAAA,KAAK,EAAE,0BAA0B;AACjC,qBAAA,EAAA,QAAA,EAAA,s3EAAA,EAAA;;;AE7NF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-tooltip.mjs","sources":["../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.ts","../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.html","../../../projects/sdk/components/tooltip/src/tooltip.component.ts","../../../projects/sdk/components/tooltip/src/tooltip.component.html","../../../projects/sdk/components/tooltip/sixbell-telco-sdk-components-tooltip.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * A container component for custom tooltip content\n *\n * @remarks\n * Designed to be used within `<st-tooltip>` components to provide\n * rich, customized tooltip content. When used, replaces the default\n * text label with any arbitrary content.\n *\n * @example\n * ```html\n * <st-tooltip variant=\"warning\">\n * <button class=\"btn\">Hover me</button>\n * <st-tooltip-content>\n * <div class=\"animate-pulse text-red-500\">\n * ⚠️ Critical warning!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <st-tooltip position=\"right\">\n * <st-tooltip-content>\n * <div class=\"flex items-center gap-2\">\n * <st-icon icon=\"info\"></st-icon>\n * <span>Custom tooltip layout</span>\n * </div>\n * </st-tooltip-content>\n * <p class=\"cursor-pointer\">Hover for details</p>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip-content',\n\timports: [CommonModule],\n\ttemplateUrl: './tooltip-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TooltipContentComponent {}\n","<ng-content></ng-content>\n","import {\n\tCdkConnectedOverlay,\n\tCdkOverlayOrigin,\n\tConnectedOverlayPositionChange,\n\tConnectedPosition,\n\tFlexibleConnectedPositionStrategy,\n\tOverlay,\n\tScrollStrategy,\n} from '@angular/cdk/overlay';\nimport { ScrollDispatcher } from '@angular/cdk/scrolling';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\nimport { isPopoverMotionAnimation, PopoverMotionState, PopoverPlacement, popoverPlacement } from '@sixbell-telco/sdk/utils/popover-motion';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { cva } from 'class-variance-authority';\nimport { TooltipContentComponent } from '../tooltip-content/tooltip-content.component';\n\n/**\n * @internal\n * Generates base tooltip classes with style variants\n */\nexport const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-top', 'text-pretty', 'font-body', 'gap-1'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['tooltip-primary'],\n\t\t\tsecondary: ['tooltip-secondary'],\n\t\t\ttertiary: ['tooltip-tertiary'],\n\t\t\tsuccess: ['tooltip-success'],\n\t\t\tneutral: ['tooltip-neutral'],\n\t\t\twarning: ['tooltip-warning'],\n\t\t\terror: ['tooltip-error'],\n\t\t\tinfo: ['tooltip-info'],\n\t\t},\n\t\tposition: {\n\t\t\ttop: ['tooltip-top'],\n\t\t\tbottom: ['tooltip-bottom'],\n\t\t\tright: ['tooltip-right'],\n\t\t\tleft: ['tooltip-left'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tposition: 'bottom',\n\t},\n});\n\n/** Possible tooltip color variants */\nexport type TooltipVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'neutral' | 'warning' | 'error' | 'info' | null | undefined;\n\nconst tooltipVariantSurface: Record<NonNullable<TooltipVariantProps>, string> = {\n\tbase: 'bg-base-300 text-base-content',\n\tprimary: 'bg-primary text-primary-content',\n\tsecondary: 'bg-secondary text-secondary-content',\n\ttertiary: 'bg-tertiary text-tertiary-content',\n\tsuccess: 'bg-success text-success-content',\n\tneutral: 'bg-neutral text-neutral-content',\n\twarning: 'bg-warning text-warning-content',\n\terror: 'bg-error text-error-content',\n\tinfo: 'bg-info text-info-content',\n};\n\n/** Possible tooltip position variants */\nexport type TooltipPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Configuration object for tooltip styling */\nexport type TooltipProps = {\n\tvariant?: TooltipVariantProps;\n\tposition?: TooltipPositionProps;\n};\n\ntype TooltipSide = 'top' | 'bottom' | 'right' | 'left';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable=\"true\"], [tabindex]:not([tabindex=\"-1\"])';\n\n/** Focus the browser would show a ring for (keyboard, or programmatic after keyboard), shadow roots included. */\nfunction isKeyboardFocus(element: HTMLElement): boolean {\n\ttry {\n\t\treturn element.matches(':focus-visible');\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim().toLowerCase();\n\n/** Text of the subtree that counts toward a name: skips `hidden`/`aria-hidden` subtrees and reads `img` `alt`. */\nfunction visibleText(node: Node): string {\n\tif (node.nodeType === Node.TEXT_NODE) return node.textContent ?? '';\n\tif (node.nodeType !== Node.ELEMENT_NODE) return '';\n\tconst element = node as HTMLElement;\n\tif (element.hidden || element.getAttribute('aria-hidden') === 'true') return '';\n\tif (element.localName === 'img') return element.getAttribute('alt') ?? '';\n\treturn Array.from(element.childNodes, visibleText).join(' ');\n}\n\n/** Text of the `<label>`s associated with a form control (`for` or wrapping), via `labels` or a `for` lookup. */\nfunction nativeLabelText(element: HTMLElement): string {\n\tconst labels = (element as HTMLInputElement).labels;\n\tif (labels) return Array.from(labels, visibleText).join(' ');\n\tconst id = element.id;\n\tif (!id) return '';\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\treturn Array.from(root.querySelectorAll?.('label[for]') ?? [])\n\t\t.filter((label) => label.getAttribute('for') === id)\n\t\t.map(visibleText)\n\t\t.join(' ');\n}\n\n/**\n * Approximates the accessible name: `aria-labelledby`, then `aria-label`, then the associated `<label>`, then the\n * visible text content (or `alt`), then `title`.\n */\nfunction approximateAccessibleName(element: HTMLElement): string {\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\tconst labelledBy = (element.getAttribute('aria-labelledby') ?? '')\n\t\t.split(/\\s+/)\n\t\t.filter(Boolean)\n\t\t.map((id) => root.getElementById?.(id)?.textContent ?? '')\n\t\t.join(' ');\n\treturn (\n\t\tnormalizeText(labelledBy) ||\n\t\tnormalizeText(element.getAttribute('aria-label')) ||\n\t\tnormalizeText(nativeLabelText(element)) ||\n\t\tnormalizeText(visibleText(element)) ||\n\t\tnormalizeText(element.getAttribute('title'))\n\t);\n}\n\nconst escapeRegExp = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n/** True when `name` is, or contains as whole words, the tooltip `text` (so \"Delete\" is not found in \"Undelete\"). */\nfunction nameContainsText(name: string, text: string): boolean {\n\tif (!text) return true;\n\treturn new RegExp(`(?<![\\\\p{L}\\\\p{N}])${escapeRegExp(text)}(?![\\\\p{L}\\\\p{N}])`, 'u').test(name);\n}\n\nfunction isEnabledFocusable(element: HTMLElement): boolean {\n\tlet ancestor: HTMLElement | null = element;\n\twhile (ancestor) {\n\t\tconst ancestorStyle = getComputedStyle(ancestor);\n\t\tif (\n\t\t\tancestor.style.display === 'none' ||\n\t\t\tancestor.style.visibility === 'hidden' ||\n\t\t\tancestorStyle.display === 'none' ||\n\t\t\tancestorStyle.visibility === 'hidden'\n\t\t)\n\t\t\treturn false;\n\t\tancestor = ancestor.parentElement;\n\t}\n\n\tconst style = getComputedStyle(element);\n\treturn Boolean(\n\t\telement.isConnected &&\n\t\telement.tabIndex >= 0 &&\n\t\t!element.matches(':disabled') &&\n\t\t!(element as HTMLButtonElement).disabled &&\n\t\telement.getAttribute('aria-disabled') !== 'true' &&\n\t\t!element.closest('[hidden], [inert], [aria-hidden=\"true\"], fieldset[disabled]') &&\n\t\t!element.hidden &&\n\t\t!(element as HTMLElement & { inert?: boolean }).inert &&\n\t\tstyle.display !== 'none' &&\n\t\tstyle.visibility !== 'hidden',\n\t);\n}\n\n/**\n * A customizable tooltip component with multiple variants and content options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports both simple text labels and custom content tooltips.\n *\n * @example\n * ```html\n * <!-- Simple text tooltip -->\n * <st-tooltip variant=\"primary\" label=\"Information tooltip\">\n * <button class=\"btn\">Hover me</button>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <!-- Custom content tooltip -->\n * <st-tooltip position=\"right\" variant=\"warning\">\n * <button class=\"btn\">Dangerous action</button>\n * <st-tooltip-content>\n * <div class=\"text-red-500 font-bold\">\n * ⚠️ Proceed with caution!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n\thost: {\n\t\tclass: 'inline-flex items-center',\n\t},\n})\nexport class TooltipComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprivate readonly scrollDispatcher = inject(ScrollDispatcher);\n\tprivate readonly overlay = inject(Overlay);\n\tprotected readonly repositionScrollStrategy: ScrollStrategy = this.overlay.scrollStrategies.reposition();\n\tprivate cdkPositionStrategy: FlexibleConnectedPositionStrategy | null = null;\n\t/**\n\t * Tooltip color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<TooltipVariantProps>();\n\n\t/**\n\t * Tooltip position relative to target element\n\t * @defaultValue 'bottom'\n\t */\n\tposition = input<TooltipPositionProps>();\n\n\t/**\n\t * Text label for simple tooltip content\n\t */\n\tlabel = input<string>();\n\n\t/**\n\t * Optional icon name to render inside the trigger (mirrors Button API)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Icon position relative to content\n\t * @defaultValue 'left'\n\t */\n\ticonPosition = input<'left' | 'right' | null | undefined>('left');\n\n\t/**\n\t * Delay in milliseconds before the tooltip hides after the pointer leaves the trigger or the tooltip,\n\t * so the pointer can cross the gap onto the tooltip (WCAG 1.4.13 hoverable). `0` hides immediately.\n\t * @defaultValue 120\n\t */\n\tcloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * @internal\n\t * Reference to custom tooltip content component\n\t */\n\tcustomContent = contentChild(TooltipContentComponent);\n\tprivate readonly richContentElement = contentChild(TooltipContentComponent, { read: ElementRef<HTMLElement> });\n\tprivate readonly richContentText = signal('');\n\n\t/**\n\t * @internal\n\t * Computed flag indicating presence of custom content\n\t */\n\thasCustomContent = computed(() => !!this.customContent());\n\n\t/** @internal Plain-text description the trigger's `aria-describedby` resolves to, open or closed. */\n\tprotected readonly descriptionText = computed(() => this.label()?.trim() || this.richContentText());\n\n\tprivate readonly hasTooltipContent = computed(() => Boolean(this.descriptionText()));\n\n\tprivate readonly requestedOpen = signal(false);\n\tprivate readonly pointerInside = signal(false);\n\tprivate readonly pointerOverPane = signal(false);\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate readonly focusedTarget = signal<HTMLElement | null>(null);\n\tprivate readonly keyboardFocused = signal(false);\n\t/** Set by a press, an activation or Escape; only a fresh pointer enter or keyboard focus clears it. */\n\tprivate readonly dismissed = signal(false);\n\tprotected readonly renderedOpen = signal(false);\n\tprotected readonly phase = signal<PopoverMotionState>('closed');\n\tprivate readonly activePosition = signal<ConnectedPosition | null>(null);\n\tprivate readonly closingPlacement = signal<PopoverPlacement | null>(null);\n\tprivate transitionToken = 0;\n\tprotected readonly tooltipId = `st-tooltip-${generateUniqueId()}`;\n\tprotected readonly paneId = `${this.tooltipId}-pane`;\n\tprotected readonly origin = viewChild.required(CdkOverlayOrigin);\n\tprivate animationFallbackHandle: ReturnType<typeof setTimeout> | null = null;\n\tprotected readonly triggerTabIndexValue = signal<number | null>(0);\n\n\t/**\n\t * @internal\n\t * Computed class string for the tooltip container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttooltipComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tposition: this.position(),\n\t\t\t}),\n\t\t);\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';\n\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\tthis.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);\n\t\t});\n\t\teffect((onCleanup) => {\n\t\t\tconst element = this.richContentElement()?.nativeElement;\n\t\t\tif (!element || typeof MutationObserver === 'undefined') return;\n\t\t\tconst updateRichContent = () => {\n\t\t\t\tconst richContent = element.textContent?.trim() ?? '';\n\t\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\t};\n\t\t\tconst observer = new MutationObserver(updateRichContent);\n\t\t\tobserver.observe(element, { characterData: true, childList: true, subtree: true });\n\t\t\tupdateRichContent();\n\t\t\tonCleanup(() => observer.disconnect());\n\t\t});\n\t\teffect(() => {\n\t\t\tif (!this.hasTooltipContent()) {\n\t\t\t\tthis.syncDescribedBy(null);\n\t\t\t\tif (this.requestedOpen()) this.requestOpen(false);\n\t\t\t}\n\t\t});\n\t\tthis.listenForPress();\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.clearCloseTimer();\n\t\t\tthis.clearTooltipAnimationFallback();\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.transitionToken += 1;\n\t\t});\n\t}\n\n\t/**\n\t * Capture phase, so a projected control that stops propagation (`st-button [stopPropagation]`) still\n\t * dismisses it. `click` also covers keyboard activation (Enter/Space), which has no pointerdown.\n\t */\n\tprivate listenForPress(): void {\n\t\tconst host = this.elementRef.nativeElement;\n\t\tconst onPress = () => this.onPress();\n\t\thost.addEventListener('pointerdown', onPress, { capture: true });\n\t\thost.addEventListener('click', onPress, { capture: true });\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\thost.removeEventListener('pointerdown', onPress, { capture: true });\n\t\t\thost.removeEventListener('click', onPress, { capture: true });\n\t\t});\n\t}\n\n\tprotected readonly positions = computed<ConnectedPosition[]>(() => {\n\t\tconst requestedSide = this.sideFromPair(this.primaryPosition(this.position()));\n\t\tconst [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);\n\t\treturn [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));\n\t});\n\n\tprivate primaryPosition(position: TooltipPositionProps): ConnectedPosition {\n\t\tswitch (position) {\n\t\t\tcase 'top':\n\t\t\t\treturn { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };\n\t\t\tcase 'right':\n\t\t\t\treturn { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };\n\t\t\tcase 'left':\n\t\t\t\treturn { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };\n\t\t\tdefault:\n\t\t\t\treturn { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };\n\t\t}\n\t}\n\n\tprivate oppositeSide(side: TooltipSide): TooltipSide {\n\t\treturn ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' } satisfies Record<TooltipSide, TooltipSide>)[side];\n\t}\n\n\tprivate orthogonalSides(side: TooltipSide): [TooltipSide, TooltipSide] {\n\t\treturn side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];\n\t}\n\n\tprivate sideFromPair(pair: ConnectedPosition): TooltipSide {\n\t\tif (pair.originY === 'bottom' && pair.overlayY === 'top') return 'bottom';\n\t\tif (pair.originY === 'top' && pair.overlayY === 'bottom') return 'top';\n\t\tif (pair.originX === 'end' && pair.overlayX === 'start') return 'right';\n\t\tif (pair.originX === 'start' && pair.overlayX === 'end') return 'left';\n\t\treturn 'bottom';\n\t}\n\n\t/** Real placement of the pane, bound to `data-side` / `data-align`; null until the CDK places it */\n\tprotected readonly placement = computed<PopoverPlacement | null>(() => {\n\t\tconst closing = this.closingPlacement();\n\t\tif (closing) return closing;\n\t\tconst active = this.activePosition();\n\t\treturn active ? popoverPlacement(active) : null;\n\t});\n\n\tprotected readonly tooltipClasses = computed(() => {\n\t\tif (this.phase() === 'closed') return '';\n\t\tconst variant = this.variant() ?? 'base';\n\t\tconst variantClass = this.variant() ? `tooltip-${this.variant()}` : '';\n\t\tconst surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;\n\t\treturn `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm popover-motion`.trim();\n\t});\n\n\tprotected tooltipAnimationClass(): string {\n\t\treturn this.tooltipClasses();\n\t}\n\n\tprivate hasFocusableDescendant(): boolean {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\treturn Array.from(origin.querySelectorAll<HTMLElement>(focusableSelector)).some((element) => isEnabledFocusable(element));\n\t}\n\n\tprotected resolveFocusTarget(event: FocusEvent): HTMLElement | null {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\tfor (const item of event.composedPath()) {\n\t\t\tif (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item)) continue;\n\t\t\tif (item === origin && event.target !== origin) continue;\n\t\t\tif ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item)) return item;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected syncDescribedBy(target: HTMLElement | null): void {\n\t\tconst previous = this.focusedTarget();\n\t\tif (!this.hasTooltipContent()) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (!target) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (previous && previous !== target) this.removeDescribedBy(previous);\n\t\tthis.focusedTarget.set(target);\n\t\tif (nameContainsText(approximateAccessibleName(target), normalizeText(this.descriptionText()))) {\n\t\t\tthis.removeDescribedBy(target);\n\t\t\treturn;\n\t\t}\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter(Boolean);\n\t\tif (!tokens.includes(this.tooltipId)) this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));\n\t}\n\n\tprivate removeDescribedBy(target: HTMLElement): void {\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((token) => token && token !== this.tooltipId);\n\t\tif (tokens.length) this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));\n\t\telse this.renderer.removeAttribute(target, 'aria-describedby');\n\t}\n\n\tprotected requestOpen(next: boolean): void {\n\t\tthis.clearCloseTimer();\n\t\tif (next && (this.dismissed() || !this.hasTooltipContent())) return;\n\t\tif (next === this.requestedOpen()) return;\n\t\tthis.requestedOpen.set(next);\n\t\tthis.transitionToken += 1;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst token = this.transitionToken;\n\t\tif (next) {\n\t\t\tthis.closingPlacement.set(null);\n\t\t\tif (!this.renderedOpen()) this.activePosition.set(null);\n\t\t\tthis.renderedOpen.set(true);\n\t\t\tthis.phase.set('opening');\n\t\t\tif (this.activePosition()) this.deferTooltipAnimationFallback(token);\n\t\t} else {\n\t\t\tthis.closingPlacement.set(this.placement());\n\t\t\tthis.phase.set('closing');\n\t\t\tthis.deferTooltipAnimationFallback(token, 'closing');\n\t\t}\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerInside.set(true);\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerInside.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\t/** The pointer may move onto the tooltip without hiding it (WCAG 1.4.13 hoverable). */\n\tprotected onPaneEnter(): void {\n\t\tthis.pointerOverPane.set(true);\n\t\tthis.clearCloseTimer();\n\t\tif (this.renderedOpen() && !this.requestedOpen()) this.requestOpen(true);\n\t}\n\n\tprotected onPaneLeave(): void {\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tthis.clearCloseTimer();\n\t\tconst close = () => {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane() && !this.keyboardFocused()) this.requestOpen(false);\n\t\t};\n\t\tconst delay = this.closeDelay();\n\t\tif (!Number.isFinite(delay) || delay <= 0 || !this.requestedOpen()) {\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tthis.closeTimer = setTimeout(() => {\n\t\t\tthis.closeTimer = null;\n\t\t\tclose();\n\t\t}, delay);\n\t}\n\n\tprivate clearCloseTimer(): void {\n\t\tif (this.closeTimer === null) return;\n\t\tclearTimeout(this.closeTimer);\n\t\tthis.closeTimer = null;\n\t}\n\n\t/**\n\t * Only keyboard focus (`:focus-visible`) opens or keeps the tooltip open. Focus caused by a mouse press,\n\t * or restored by a dialog after one, describes the control but never shows or pins the tooltip.\n\t */\n\tprotected onFocusIn(event: FocusEvent): void {\n\t\tconst target = this.resolveFocusTarget(event);\n\t\tthis.syncDescribedBy(target);\n\t\tconst keyboard = Boolean(target && isKeyboardFocus(target));\n\t\tthis.keyboardFocused.set(keyboard);\n\t\tif (!keyboard) {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t\t\treturn;\n\t\t}\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\t/** Pressing or activating the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */\n\tprotected onPress(): void {\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onFocusOut(event: FocusEvent): void {\n\t\tconst related = event.relatedTarget;\n\t\tif (related instanceof Node && this.elementRef.nativeElement.contains(related)) return;\n\t\tthis.syncDescribedBy(null);\n\t\tthis.keyboardFocused.set(false);\n\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t}\n\n\t/**\n\t * Escape arrives through the CDK overlay keyboard stack, which hands it only to the topmost overlay that\n\t * listens. While the tooltip is the top layer it closes the tooltip alone; an enclosing `st-dialog`\n\t * keeps its own Escape for the next press, and a menu opened above the tooltip keeps this one.\n\t */\n\tprotected onOverlayKeydown(event: KeyboardEvent): void {\n\t\tif (event.key !== 'Escape' || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n\t\tevent.preventDefault();\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\t/** The first position of an open cycle starts the entrance (`data-side`), so its fallback is measured then */\n\tprotected onTooltipPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tconst firstPlacement = !this.activePosition();\n\t\tthis.activePosition.set(event.connectionPair);\n\t\tif (firstPlacement && this.phase() === 'opening') this.deferTooltipAnimationFallback(this.transitionToken);\n\t\tif (this.isOriginOutsideView(event)) {\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.requestOpen(false);\n\t\t}\n\t}\n\n\tprotected tooltipPositionStrategy(): FlexibleConnectedPositionStrategy {\n\t\tconst strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));\n\t\tstrategy\n\t\t\t.setOrigin(this.origin().elementRef)\n\t\t\t.withPositions(this.positions())\n\t\t\t.withPush(true)\n\t\t\t.withViewportMargin(8)\n\t\t\t.withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));\n\t\treturn strategy;\n\t}\n\n\tprivate isOriginOutsideView(change: ConnectedOverlayPositionChange): boolean {\n\t\treturn change.scrollableViewProperties?.isOriginOutsideView === true;\n\t}\n\n\tprotected onTooltipAnimationEnd(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tif (!isPopoverMotionAnimation(event, phase)) return;\n\t\tif (phase === 'opening') this.settleTooltipOpening(this.transitionToken);\n\t\telse this.settleTooltipClosing(this.transitionToken);\n\t}\n\n\tprotected onTooltipAnimationCancel(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tif (!isPopoverMotionAnimation(event, phase)) return;\n\t\tthis.scheduleTooltipAnimationFallback(this.transitionToken, phase);\n\t}\n\n\tprotected onTooltipDetach(): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.transitionToken += 1;\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.activePosition.set(null);\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.renderedOpen.set(false);\n\t\tthis.phase.set('closed');\n\t}\n\n\tprivate settleTooltipOpening(token: number): void {\n\t\tif (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.phase.set('open');\n\t}\n\n\tprivate settleTooltipClosing(token: number): void {\n\t\tif (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.renderedOpen.set(false);\n\t}\n\n\t/** Measure the fallback once the next render applied the phase (and `data-side`), so the computed animation is the real one */\n\tprivate deferTooltipAnimationFallback(token: number, phase: 'opening' | 'closing' = 'opening'): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\tthis.animationFallbackHandle = null;\n\t\t\tif (token === this.transitionToken && this.phase() === phase) this.scheduleTooltipAnimationFallback(token, phase);\n\t\t}, 0);\n\t}\n\n\tprivate scheduleTooltipAnimationFallback(token: number, phase: 'opening' | 'closing'): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst root = this.elementRef.nativeElement.ownerDocument.getElementById(this.paneId);\n\t\tconst style = root ? getComputedStyle(root) : null;\n\t\tconst parseTime = (value: string) => {\n\t\t\tconst parsed = Number.parseFloat(value);\n\t\t\treturn Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;\n\t\t};\n\t\tconst durations = style?.animationDuration.split(',').map(parseTime) ?? [0];\n\t\tconst delays = style?.animationDelay.split(',').map(parseTime) ?? [0];\n\t\tconst duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);\n\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\tthis.animationFallbackHandle = null;\n\t\t\tif (phase === 'opening') this.settleTooltipOpening(token);\n\t\t\telse this.settleTooltipClosing(token);\n\t\t}, duration);\n\t}\n\n\tprivate clearTooltipAnimationFallback(): void {\n\t\tif (this.animationFallbackHandle === null) return;\n\t\tclearTimeout(this.animationFallbackHandle);\n\t\tthis.animationFallbackHandle = null;\n\t}\n}\n","@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"placement()?.side\"\n\t\t\t\t[attr.data-align]=\"placement()?.align\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;MAOU,uBAAuB,CAAA;wGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1CpC,6BACA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDqCW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,YAAY,CAAC,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6BAAA,EAAA;;;AENhD;;;AAGG;MACU,gBAAgB,GAAG,GAAG,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EA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