@sixbell-telco/sdk 3.1.1 → 3.2.1
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 +85 -1
- package/README.md +74 -56
- package/_index.css +290 -122
- package/components/accordion/README.md +20 -0
- package/components/audio-player/README.md +18 -0
- package/components/avatar/README.md +17 -0
- package/components/badge/README.md +17 -0
- package/components/badge/src/badge.component.d.ts +3 -3
- package/components/button/README.md +18 -0
- package/components/button/src/button.component.d.ts +2 -2
- package/components/card/README.md +36 -0
- package/components/countdown/README.md +18 -0
- package/components/data-table/README.md +31 -0
- package/components/dialog/README.md +24 -0
- package/components/dialog/src/dialog.component.d.ts +4 -1
- package/components/divider/README.md +17 -0
- package/components/dropdown/README.md +25 -0
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
- package/components/dropdown-menu/README.md +24 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
- package/components/dual-list/README.md +17 -0
- package/components/file-upload/README.md +17 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
- package/components/forms/checkbox/README.md +17 -0
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
- package/components/forms/combobox/README.md +26 -0
- package/components/forms/combobox/src/combobox.component.d.ts +16 -4
- package/components/forms/date-picker/README.md +27 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +21 -0
- package/components/forms/form-group/src/form-group.component.d.ts +27 -38
- package/components/forms/input/README.md +18 -0
- package/components/forms/input/src/input.component.d.ts +2 -2
- package/components/forms/radio/README.md +14 -0
- package/components/forms/radio/src/radio.component.d.ts +2 -2
- package/components/forms/range/README.md +13 -0
- package/components/forms/range/src/range.component.d.ts +2 -2
- package/components/forms/select/README.md +18 -0
- package/components/forms/select/src/select.component.d.ts +15 -4
- package/components/forms/switch/README.md +13 -0
- package/components/forms/switch/src/switch.component.d.ts +2 -2
- package/components/forms/textarea/README.md +17 -0
- package/components/forms/textarea/src/textarea.component.d.ts +2 -2
- package/components/forms/toggle/README.md +13 -0
- package/components/forms/toggle/src/toggle.component.d.ts +5 -36
- package/components/icon/README.md +18 -0
- package/components/link/README.md +17 -0
- package/components/link/src/link.component.d.ts +2 -2
- package/components/notification/README.md +13 -0
- package/components/notification/src/notification.component.d.ts +3 -3
- package/components/overlay/README.md +33 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +34 -0
- package/components/paginator/README.md +17 -0
- package/components/product-card/README.md +13 -0
- package/components/progress/README.md +17 -0
- package/components/progress/src/progress.component.d.ts +3 -3
- package/components/sonner/README.md +23 -0
- package/components/sonner/src/sonner.component.d.ts +2 -2
- package/components/tab/README.md +17 -0
- package/components/table/README.md +20 -0
- package/components/table/table-action/table-action.component.d.ts +26 -3
- package/components/text/README.md +14 -0
- package/components/tooltip/README.md +29 -0
- package/components/tooltip/src/tooltip.component.d.ts +64 -4
- package/components/wizard/README.md +25 -0
- package/components/wizard/services/wizard.service.d.ts +1 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +6 -3
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +8 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +22 -13
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +92 -23
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +29 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +27 -38
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +5 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +53 -21
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +4 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +6 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +99 -153
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +2 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +23 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +312 -23
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +29 -19
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +34 -8
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +377 -8
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +61 -41
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +284 -145
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/package.json +1 -1
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +34 -19
- package/utils/theme/public-api.d.ts +2 -2
- package/utils/theme/src/constants.d.ts +6 -6
- package/utils/theme/src/models/theme.d.ts +14 -6
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
- package/utils/theme/src/utils/utils.d.ts +9 -3
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Overlay, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
3
|
+
import { CommonModule, NgTemplateOutlet } from '@angular/common';
|
|
2
4
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, input, contentChild, computed } from '@angular/core';
|
|
5
|
+
import { ChangeDetectionStrategy, Component, inject, ElementRef, Renderer2, DestroyRef, input, contentChild, signal, computed, viewChild, afterRenderEffect, effect } from '@angular/core';
|
|
4
6
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
5
7
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
8
|
+
import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
|
|
9
|
+
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
6
10
|
import { cva } from 'class-variance-authority';
|
|
7
11
|
|
|
8
12
|
/**
|
|
@@ -54,6 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
54
58
|
const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-top', 'text-pretty', 'font-body', 'gap-1'], {
|
|
55
59
|
variants: {
|
|
56
60
|
variant: {
|
|
61
|
+
base: [],
|
|
57
62
|
primary: ['tooltip-primary'],
|
|
58
63
|
secondary: ['tooltip-secondary'],
|
|
59
64
|
tertiary: ['tooltip-tertiary'],
|
|
@@ -72,10 +77,45 @@ const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-t
|
|
|
72
77
|
},
|
|
73
78
|
compoundVariants: [],
|
|
74
79
|
defaultVariants: {
|
|
75
|
-
variant: '
|
|
80
|
+
variant: 'base',
|
|
76
81
|
position: 'bottom',
|
|
77
82
|
},
|
|
78
83
|
});
|
|
84
|
+
const tooltipVariantSurface = {
|
|
85
|
+
base: 'bg-base-300 text-base-content',
|
|
86
|
+
primary: 'bg-primary text-primary-content',
|
|
87
|
+
secondary: 'bg-secondary text-secondary-content',
|
|
88
|
+
tertiary: 'bg-tertiary text-tertiary-content',
|
|
89
|
+
success: 'bg-success text-success-content',
|
|
90
|
+
neutral: 'bg-neutral text-neutral-content',
|
|
91
|
+
warning: 'bg-warning text-warning-content',
|
|
92
|
+
error: 'bg-error text-error-content',
|
|
93
|
+
info: 'bg-info text-info-content',
|
|
94
|
+
};
|
|
95
|
+
const focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable="true"], [tabindex]:not([tabindex="-1"])';
|
|
96
|
+
function isEnabledFocusable(element) {
|
|
97
|
+
let ancestor = element;
|
|
98
|
+
while (ancestor) {
|
|
99
|
+
const ancestorStyle = getComputedStyle(ancestor);
|
|
100
|
+
if (ancestor.style.display === 'none' ||
|
|
101
|
+
ancestor.style.visibility === 'hidden' ||
|
|
102
|
+
ancestorStyle.display === 'none' ||
|
|
103
|
+
ancestorStyle.visibility === 'hidden')
|
|
104
|
+
return false;
|
|
105
|
+
ancestor = ancestor.parentElement;
|
|
106
|
+
}
|
|
107
|
+
const style = getComputedStyle(element);
|
|
108
|
+
return Boolean(element.isConnected &&
|
|
109
|
+
element.tabIndex >= 0 &&
|
|
110
|
+
!element.matches(':disabled') &&
|
|
111
|
+
!element.disabled &&
|
|
112
|
+
element.getAttribute('aria-disabled') !== 'true' &&
|
|
113
|
+
!element.closest('[hidden], [inert], [aria-hidden="true"], fieldset[disabled]') &&
|
|
114
|
+
!element.hidden &&
|
|
115
|
+
!element.inert &&
|
|
116
|
+
style.display !== 'none' &&
|
|
117
|
+
style.visibility !== 'hidden');
|
|
118
|
+
}
|
|
79
119
|
/**
|
|
80
120
|
* A customizable tooltip component with multiple variants and content options
|
|
81
121
|
*
|
|
@@ -105,9 +145,17 @@ const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-t
|
|
|
105
145
|
* ```
|
|
106
146
|
*/
|
|
107
147
|
class TooltipComponent {
|
|
148
|
+
themeDomService = inject(ThemeDomService);
|
|
149
|
+
elementRef = inject(ElementRef);
|
|
150
|
+
renderer = inject(Renderer2);
|
|
151
|
+
destroyRef = inject(DestroyRef);
|
|
152
|
+
scrollDispatcher = inject(ScrollDispatcher);
|
|
153
|
+
overlay = inject(Overlay);
|
|
154
|
+
repositionScrollStrategy = this.overlay.scrollStrategies.reposition();
|
|
155
|
+
cdkPositionStrategy = null;
|
|
108
156
|
/**
|
|
109
157
|
* Tooltip color variant
|
|
110
|
-
* @defaultValue '
|
|
158
|
+
* @defaultValue 'base'
|
|
111
159
|
*/
|
|
112
160
|
variant = input();
|
|
113
161
|
/**
|
|
@@ -133,11 +181,31 @@ class TooltipComponent {
|
|
|
133
181
|
* Reference to custom tooltip content component
|
|
134
182
|
*/
|
|
135
183
|
customContent = contentChild(TooltipContentComponent);
|
|
184
|
+
richContentElement = contentChild(TooltipContentComponent, { read: (ElementRef) });
|
|
185
|
+
richContentText = signal('');
|
|
136
186
|
/**
|
|
137
187
|
* @internal
|
|
138
188
|
* Computed flag indicating presence of custom content
|
|
139
189
|
*/
|
|
140
190
|
hasCustomContent = computed(() => !!this.customContent());
|
|
191
|
+
hasTooltipContent = computed(() => {
|
|
192
|
+
const label = this.label()?.trim();
|
|
193
|
+
const richContent = this.richContentText();
|
|
194
|
+
return Boolean(label || richContent);
|
|
195
|
+
});
|
|
196
|
+
requestedOpen = signal(false);
|
|
197
|
+
pointerInside = signal(false);
|
|
198
|
+
focusedTarget = signal(null);
|
|
199
|
+
escapeClosed = signal(false);
|
|
200
|
+
renderedOpen = signal(false);
|
|
201
|
+
phase = signal('closed');
|
|
202
|
+
activePosition = signal(null);
|
|
203
|
+
closingSide = signal(null);
|
|
204
|
+
transitionToken = 0;
|
|
205
|
+
tooltipId = `st-tooltip-${generateUniqueId()}`;
|
|
206
|
+
origin = viewChild.required(CdkOverlayOrigin);
|
|
207
|
+
animationFallbackHandle = null;
|
|
208
|
+
triggerTabIndexValue = signal(0);
|
|
141
209
|
/**
|
|
142
210
|
* @internal
|
|
143
211
|
* Computed class string for the tooltip container
|
|
@@ -148,15 +216,316 @@ class TooltipComponent {
|
|
|
148
216
|
position: this.position(),
|
|
149
217
|
}));
|
|
150
218
|
});
|
|
219
|
+
constructor() {
|
|
220
|
+
afterRenderEffect(() => {
|
|
221
|
+
const richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';
|
|
222
|
+
if (richContent !== this.richContentText())
|
|
223
|
+
this.richContentText.set(richContent);
|
|
224
|
+
this.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);
|
|
225
|
+
});
|
|
226
|
+
effect((onCleanup) => {
|
|
227
|
+
const element = this.richContentElement()?.nativeElement;
|
|
228
|
+
if (!element || typeof MutationObserver === 'undefined')
|
|
229
|
+
return;
|
|
230
|
+
const updateRichContent = () => {
|
|
231
|
+
const richContent = element.textContent?.trim() ?? '';
|
|
232
|
+
if (richContent !== this.richContentText())
|
|
233
|
+
this.richContentText.set(richContent);
|
|
234
|
+
};
|
|
235
|
+
const observer = new MutationObserver(updateRichContent);
|
|
236
|
+
observer.observe(element, { characterData: true, childList: true, subtree: true });
|
|
237
|
+
updateRichContent();
|
|
238
|
+
onCleanup(() => observer.disconnect());
|
|
239
|
+
});
|
|
240
|
+
effect(() => {
|
|
241
|
+
if (!this.hasTooltipContent()) {
|
|
242
|
+
this.syncDescribedBy(null);
|
|
243
|
+
if (this.requestedOpen())
|
|
244
|
+
this.requestOpen(false);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
this.destroyRef.onDestroy(() => {
|
|
248
|
+
this.clearTooltipAnimationFallback();
|
|
249
|
+
this.syncDescribedBy(null);
|
|
250
|
+
this.transitionToken += 1;
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
positions = computed(() => {
|
|
254
|
+
const requestedSide = this.sideFromPair(this.primaryPosition(this.position()));
|
|
255
|
+
const [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);
|
|
256
|
+
return [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));
|
|
257
|
+
});
|
|
258
|
+
primaryPosition(position) {
|
|
259
|
+
switch (position) {
|
|
260
|
+
case 'top':
|
|
261
|
+
return { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };
|
|
262
|
+
case 'right':
|
|
263
|
+
return { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };
|
|
264
|
+
case 'left':
|
|
265
|
+
return { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };
|
|
266
|
+
default:
|
|
267
|
+
return { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
oppositeSide(side) {
|
|
271
|
+
return { bottom: 'top', top: 'bottom', right: 'left', left: 'right' }[side];
|
|
272
|
+
}
|
|
273
|
+
orthogonalSides(side) {
|
|
274
|
+
return side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];
|
|
275
|
+
}
|
|
276
|
+
sideFromPair(pair) {
|
|
277
|
+
if (pair.originY === 'bottom' && pair.overlayY === 'top')
|
|
278
|
+
return 'bottom';
|
|
279
|
+
if (pair.originY === 'top' && pair.overlayY === 'bottom')
|
|
280
|
+
return 'top';
|
|
281
|
+
if (pair.originX === 'end' && pair.overlayX === 'start')
|
|
282
|
+
return 'right';
|
|
283
|
+
if (pair.originX === 'start' && pair.overlayX === 'end')
|
|
284
|
+
return 'left';
|
|
285
|
+
return 'bottom';
|
|
286
|
+
}
|
|
287
|
+
tooltipDirection = computed(() => {
|
|
288
|
+
return this.closingSide() ?? this.sideFromPair(this.activePosition() ?? this.positions()[0]);
|
|
289
|
+
});
|
|
290
|
+
tooltipClasses = computed(() => {
|
|
291
|
+
const phase = this.phase();
|
|
292
|
+
if (phase === 'closed')
|
|
293
|
+
return '';
|
|
294
|
+
const side = this.tooltipDirection();
|
|
295
|
+
const classes = {
|
|
296
|
+
bottom: {
|
|
297
|
+
opening: 'animate-fade-in-up animate-duration-150 origin-top',
|
|
298
|
+
open: 'animate-fade-in-up animate-duration-150 origin-top',
|
|
299
|
+
closing: 'animate-fade-out-down animate-duration-150 origin-top',
|
|
300
|
+
},
|
|
301
|
+
top: {
|
|
302
|
+
opening: 'animate-fade-in-down animate-duration-150 origin-bottom',
|
|
303
|
+
open: 'animate-fade-in-down animate-duration-150 origin-bottom',
|
|
304
|
+
closing: 'animate-fade-out-up animate-duration-150 origin-bottom',
|
|
305
|
+
},
|
|
306
|
+
right: {
|
|
307
|
+
opening: 'animate-fade-in-right animate-duration-150 origin-left',
|
|
308
|
+
open: 'animate-fade-in-right animate-duration-150 origin-left',
|
|
309
|
+
closing: 'animate-fade-out-left animate-duration-150 origin-left',
|
|
310
|
+
},
|
|
311
|
+
left: {
|
|
312
|
+
opening: 'animate-fade-in-left animate-duration-150 origin-right',
|
|
313
|
+
open: 'animate-fade-in-left animate-duration-150 origin-right',
|
|
314
|
+
closing: 'animate-fade-out-right animate-duration-150 origin-right',
|
|
315
|
+
},
|
|
316
|
+
};
|
|
317
|
+
const variant = this.variant() ?? 'base';
|
|
318
|
+
const variantClass = this.variant() ? `tooltip-${this.variant()}` : '';
|
|
319
|
+
const surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;
|
|
320
|
+
return `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm ${classes[side][phase]}`.trim();
|
|
321
|
+
});
|
|
322
|
+
transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);
|
|
323
|
+
tooltipAnimationClass() {
|
|
324
|
+
return this.tooltipClasses();
|
|
325
|
+
}
|
|
326
|
+
expectedTooltipAnimationName(phase, side) {
|
|
327
|
+
return {
|
|
328
|
+
bottom: { opening: 'fade-in-up', closing: 'fade-out-down' },
|
|
329
|
+
top: { opening: 'fade-in-down', closing: 'fade-out-up' },
|
|
330
|
+
right: { opening: 'fade-in-right', closing: 'fade-out-left' },
|
|
331
|
+
left: { opening: 'fade-in-left', closing: 'fade-out-right' },
|
|
332
|
+
}[side][phase];
|
|
333
|
+
}
|
|
334
|
+
hasFocusableDescendant() {
|
|
335
|
+
const origin = this.origin().elementRef.nativeElement;
|
|
336
|
+
return Array.from(origin.querySelectorAll(focusableSelector)).some((element) => isEnabledFocusable(element));
|
|
337
|
+
}
|
|
338
|
+
resolveFocusTarget(event) {
|
|
339
|
+
const origin = this.origin().elementRef.nativeElement;
|
|
340
|
+
for (const item of event.composedPath()) {
|
|
341
|
+
if (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item))
|
|
342
|
+
continue;
|
|
343
|
+
if (item === origin && event.target !== origin)
|
|
344
|
+
continue;
|
|
345
|
+
if ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item))
|
|
346
|
+
return item;
|
|
347
|
+
}
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
syncDescribedBy(target) {
|
|
351
|
+
const previous = this.focusedTarget();
|
|
352
|
+
if (!this.hasTooltipContent()) {
|
|
353
|
+
if (previous)
|
|
354
|
+
this.removeDescribedBy(previous);
|
|
355
|
+
this.focusedTarget.set(null);
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
if (!target) {
|
|
359
|
+
if (previous)
|
|
360
|
+
this.removeDescribedBy(previous);
|
|
361
|
+
this.focusedTarget.set(null);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
if (previous && previous !== target)
|
|
365
|
+
this.removeDescribedBy(previous);
|
|
366
|
+
const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter(Boolean);
|
|
367
|
+
if (!tokens.includes(this.tooltipId))
|
|
368
|
+
this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));
|
|
369
|
+
this.focusedTarget.set(target);
|
|
370
|
+
}
|
|
371
|
+
removeDescribedBy(target) {
|
|
372
|
+
const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter((token) => token && token !== this.tooltipId);
|
|
373
|
+
if (tokens.length)
|
|
374
|
+
this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));
|
|
375
|
+
else
|
|
376
|
+
this.renderer.removeAttribute(target, 'aria-describedby');
|
|
377
|
+
}
|
|
378
|
+
requestOpen(next) {
|
|
379
|
+
if (next && (this.escapeClosed() || !this.hasTooltipContent()))
|
|
380
|
+
return;
|
|
381
|
+
if (next === this.requestedOpen())
|
|
382
|
+
return;
|
|
383
|
+
this.requestedOpen.set(next);
|
|
384
|
+
this.transitionToken += 1;
|
|
385
|
+
this.clearTooltipAnimationFallback();
|
|
386
|
+
const token = this.transitionToken;
|
|
387
|
+
if (next) {
|
|
388
|
+
this.closingSide.set(null);
|
|
389
|
+
if (!this.renderedOpen())
|
|
390
|
+
this.activePosition.set(null);
|
|
391
|
+
this.renderedOpen.set(true);
|
|
392
|
+
this.phase.set('opening');
|
|
393
|
+
this.animationFallbackHandle = setTimeout(() => {
|
|
394
|
+
this.animationFallbackHandle = null;
|
|
395
|
+
if (token === this.transitionToken && this.phase() === 'opening')
|
|
396
|
+
this.scheduleTooltipAnimationFallback(token, 'opening');
|
|
397
|
+
}, 0);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
this.closingSide.set(this.sideFromPair(this.activePosition() ?? this.positions()[0]));
|
|
401
|
+
this.phase.set('closing');
|
|
402
|
+
this.scheduleTooltipAnimationFallback(token, 'closing');
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
onPointerEnter() {
|
|
406
|
+
this.pointerInside.set(true);
|
|
407
|
+
this.escapeClosed.set(false);
|
|
408
|
+
this.requestOpen(true);
|
|
409
|
+
}
|
|
410
|
+
onPointerLeave() {
|
|
411
|
+
this.pointerInside.set(false);
|
|
412
|
+
if (!this.focusedTarget())
|
|
413
|
+
this.requestOpen(false);
|
|
414
|
+
}
|
|
415
|
+
onFocusIn(event) {
|
|
416
|
+
this.escapeClosed.set(false);
|
|
417
|
+
const target = this.resolveFocusTarget(event);
|
|
418
|
+
this.syncDescribedBy(target);
|
|
419
|
+
this.requestOpen(Boolean(target));
|
|
420
|
+
}
|
|
421
|
+
onFocusOut(event) {
|
|
422
|
+
const related = event.relatedTarget;
|
|
423
|
+
if (related instanceof Node && this.elementRef.nativeElement.contains(related))
|
|
424
|
+
return;
|
|
425
|
+
this.syncDescribedBy(null);
|
|
426
|
+
if (!this.pointerInside())
|
|
427
|
+
this.requestOpen(false);
|
|
428
|
+
}
|
|
429
|
+
onEscape() {
|
|
430
|
+
this.escapeClosed.set(true);
|
|
431
|
+
this.requestOpen(false);
|
|
432
|
+
}
|
|
433
|
+
onTooltipPositionChange(event) {
|
|
434
|
+
this.activePosition.set(event.connectionPair);
|
|
435
|
+
if (this.isOriginOutsideView(event)) {
|
|
436
|
+
this.syncDescribedBy(null);
|
|
437
|
+
this.requestOpen(false);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
tooltipPositionStrategy() {
|
|
441
|
+
const strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));
|
|
442
|
+
strategy
|
|
443
|
+
.setOrigin(this.origin().elementRef)
|
|
444
|
+
.withPositions(this.positions())
|
|
445
|
+
.withPush(true)
|
|
446
|
+
.withViewportMargin(8)
|
|
447
|
+
.withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));
|
|
448
|
+
return strategy;
|
|
449
|
+
}
|
|
450
|
+
isOriginOutsideView(change) {
|
|
451
|
+
return change.scrollableViewProperties?.isOriginOutsideView === true;
|
|
452
|
+
}
|
|
453
|
+
onTooltipAnimationEnd(event) {
|
|
454
|
+
const phase = this.phase();
|
|
455
|
+
if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
|
|
456
|
+
return;
|
|
457
|
+
const side = this.tooltipDirection();
|
|
458
|
+
if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
|
|
459
|
+
return;
|
|
460
|
+
if (phase === 'opening')
|
|
461
|
+
this.settleTooltipOpening(this.transitionToken);
|
|
462
|
+
else
|
|
463
|
+
this.settleTooltipClosing(this.transitionToken);
|
|
464
|
+
}
|
|
465
|
+
onTooltipAnimationCancel(event) {
|
|
466
|
+
const phase = this.phase();
|
|
467
|
+
if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
|
|
468
|
+
return;
|
|
469
|
+
const side = this.tooltipDirection();
|
|
470
|
+
if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
|
|
471
|
+
return;
|
|
472
|
+
this.scheduleTooltipAnimationFallback(this.transitionToken, phase);
|
|
473
|
+
}
|
|
474
|
+
onTooltipDetach() {
|
|
475
|
+
this.clearTooltipAnimationFallback();
|
|
476
|
+
this.transitionToken += 1;
|
|
477
|
+
this.cdkPositionStrategy = null;
|
|
478
|
+
this.activePosition.set(null);
|
|
479
|
+
this.renderedOpen.set(false);
|
|
480
|
+
this.phase.set('closed');
|
|
481
|
+
}
|
|
482
|
+
settleTooltipOpening(token) {
|
|
483
|
+
if (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening')
|
|
484
|
+
return;
|
|
485
|
+
this.clearTooltipAnimationFallback();
|
|
486
|
+
this.phase.set('open');
|
|
487
|
+
}
|
|
488
|
+
settleTooltipClosing(token) {
|
|
489
|
+
if (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing')
|
|
490
|
+
return;
|
|
491
|
+
this.clearTooltipAnimationFallback();
|
|
492
|
+
this.cdkPositionStrategy = null;
|
|
493
|
+
this.renderedOpen.set(false);
|
|
494
|
+
}
|
|
495
|
+
scheduleTooltipAnimationFallback(token, phase) {
|
|
496
|
+
this.clearTooltipAnimationFallback();
|
|
497
|
+
const root = this.elementRef.nativeElement.ownerDocument.getElementById(this.tooltipId);
|
|
498
|
+
const style = root ? getComputedStyle(root) : null;
|
|
499
|
+
const parseTime = (value) => {
|
|
500
|
+
const parsed = Number.parseFloat(value);
|
|
501
|
+
return Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;
|
|
502
|
+
};
|
|
503
|
+
const durations = style?.animationDuration.split(',').map(parseTime) ?? [0];
|
|
504
|
+
const delays = style?.animationDelay.split(',').map(parseTime) ?? [0];
|
|
505
|
+
const duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);
|
|
506
|
+
this.animationFallbackHandle = setTimeout(() => {
|
|
507
|
+
this.animationFallbackHandle = null;
|
|
508
|
+
if (phase === 'opening')
|
|
509
|
+
this.settleTooltipOpening(token);
|
|
510
|
+
else
|
|
511
|
+
this.settleTooltipClosing(token);
|
|
512
|
+
}, duration);
|
|
513
|
+
}
|
|
514
|
+
clearTooltipAnimationFallback() {
|
|
515
|
+
if (this.animationFallbackHandle === null)
|
|
516
|
+
return;
|
|
517
|
+
clearTimeout(this.animationFallbackHandle);
|
|
518
|
+
this.animationFallbackHandle = null;
|
|
519
|
+
}
|
|
151
520
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
-
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 } }, host: { classAttribute: "inline-flex items-center" }, queries: [{ propertyName: "customContent", first: true, predicate: TooltipContentComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label()
|
|
521
|
+
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 } }, 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\t(keydown.escape)=\"onEscape()\"\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@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[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\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]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\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>\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"] }] });
|
|
153
522
|
}
|
|
154
523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
155
524
|
type: Component,
|
|
156
|
-
args: [{ selector: 'st-tooltip', imports: [
|
|
525
|
+
args: [{ selector: 'st-tooltip', standalone: true, imports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent], host: {
|
|
157
526
|
class: 'inline-flex items-center',
|
|
158
|
-
}, template: "@let labelVar = label()
|
|
159
|
-
}] });
|
|
527
|
+
}, 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\t(keydown.escape)=\"onEscape()\"\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@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[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\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]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\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>\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" }]
|
|
528
|
+
}], ctorParameters: () => [] });
|
|
160
529
|
|
|
161
530
|
/**
|
|
162
531
|
* Generated bundle index. Do not edit.
|
|
@@ -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 { CommonModule } from '@angular/common';\nimport { Component, computed, contentChild, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\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\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: 'primary',\n\t\tposition: 'bottom',\n\t},\n});\n\n/** Possible tooltip color variants */\nexport type TooltipVariantProps = 'primary' | 'secondary' | 'tertiary' | 'success' | 'neutral' | 'warning' | 'error' | 'info' | null | undefined;\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\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\timports: [CommonModule, IconComponent],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n\thost: {\n\t\tclass: 'inline-flex items-center',\n\t},\n})\nexport class TooltipComponent {\n\t/**\n\t * Tooltip color variant\n\t * @defaultValue 'primary'\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 * @internal\n\t * Reference to custom tooltip content component\n\t */\n\tcustomContent = contentChild(TooltipContentComponent);\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/**\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","@let labelVar = label();\n@let hasCustomContentVar = hasCustomContent();\n@let componentClassVar = componentClass();\n\n<!-- tooltip.component.html -->\n<div [class]=\"componentClassVar\" [attr.data-tip]=\"hasCustomContentVar ? null : labelVar\">\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\n\t@if (hasCustomContentVar) {\n\t\t<div class=\"tooltip-content\">\n\t\t\t<ng-content select=\"st-tooltip-content\"></ng-content>\n\t\t</div>\n\t}\n</div>\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,IAA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gB,EAAA,UAAA,EAAA,CAAA;kBAT5B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,YAAY,EAAE,aAAa,CAAC,EAAA,IAAA,EAGhC;AACL,wBAAA,KAAK,EAAE,0BAA0B;AACjC,qBAAA,EAAA,QAAA,EAAA,4wBAAA,EAAA;;;AEpFF;;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\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'\n\t| 'primary'\n\t| 'secondary'\n\t| 'tertiary'\n\t| 'success'\n\t| 'neutral'\n\t| 'warning'\n\t| 'error'\n\t| 'info'\n\t| null\n\t| 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\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\t\telement.tabIndex >= 0 &&\n\t\t\t!element.matches(':disabled') &&\n\t\t\t!(element as HTMLButtonElement).disabled &&\n\t\t\telement.getAttribute('aria-disabled') !== 'true' &&\n\t\t\t!element.closest('[hidden], [inert], [aria-hidden=\"true\"], fieldset[disabled]') &&\n\t\t\t!element.hidden &&\n\t\t\t!(element as HTMLElement & { inert?: boolean }).inert &&\n\t\t\tstyle.display !== 'none' &&\n\t\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 * @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\tprivate readonly hasTooltipContent = computed(() => {\n\t\tconst label = this.label()?.trim();\n\t\tconst richContent = this.richContentText();\n\t\treturn Boolean(label || richContent);\n\t});\n\n\tprivate readonly requestedOpen = signal(false);\n\tprivate readonly pointerInside = signal(false);\n\tprivate readonly focusedTarget = signal<HTMLElement | null>(null);\n\tprivate readonly escapeClosed = 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 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.destroyRef.onDestroy(() => {\n\t\t\tthis.clearTooltipAnimationFallback();\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.transitionToken += 1;\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\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\tthis.focusedTarget.set(target);\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\tif (next && (this.escapeClosed() || !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.escapeClosed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerInside.set(false);\n\t\tif (!this.focusedTarget()) this.requestOpen(false);\n\t}\n\n\tprotected onFocusIn(event: FocusEvent): void {\n\t\tthis.escapeClosed.set(false);\n\t\tconst target = this.resolveFocusTarget(event);\n\t\tthis.syncDescribedBy(target);\n\t\tthis.requestOpen(Boolean(target));\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\tif (!this.pointerInside()) this.requestOpen(false);\n\t}\n\n\tprotected onEscape(): void {\n\t\tthis.escapeClosed.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.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.tooltipId);\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\t(keydown.escape)=\"onEscape()\"\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@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[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\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]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\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>\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,CA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