@sixbell-telco/sdk 3.1.0 → 3.2.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.
Files changed (197) hide show
  1. package/CHANGELOG.md +121 -16
  2. package/README.md +76 -58
  3. package/_index.css +297 -122
  4. package/components/accordion/README.md +20 -0
  5. package/components/audio-player/README.md +18 -0
  6. package/components/avatar/README.md +17 -0
  7. package/components/badge/README.md +17 -0
  8. package/components/badge/src/badge.component.d.ts +3 -3
  9. package/components/button/README.md +18 -0
  10. package/components/button/src/button.component.d.ts +2 -2
  11. package/components/card/README.md +36 -0
  12. package/components/countdown/README.md +18 -0
  13. package/components/data-table/README.md +31 -0
  14. package/components/data-table/src/data-table.component.d.ts +6 -1
  15. package/components/dialog/README.md +24 -0
  16. package/components/dialog/src/dialog.component.d.ts +4 -1
  17. package/components/divider/README.md +17 -0
  18. package/components/dropdown/README.md +25 -0
  19. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
  20. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
  21. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
  22. package/components/dropdown-menu/README.md +24 -0
  23. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
  24. package/components/dual-list/README.md +17 -0
  25. package/components/file-upload/README.md +17 -0
  26. package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
  27. package/components/forms/checkbox/README.md +17 -0
  28. package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
  29. package/components/forms/combobox/README.md +26 -0
  30. package/components/forms/combobox/src/combobox.component.d.ts +16 -4
  31. package/components/forms/date-picker/README.md +27 -0
  32. package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
  33. package/components/forms/form-error/README.md +21 -0
  34. package/components/forms/form-group/src/form-group.component.d.ts +27 -38
  35. package/components/forms/input/README.md +18 -0
  36. package/components/forms/input/src/input.component.d.ts +2 -2
  37. package/components/forms/radio/README.md +14 -0
  38. package/components/forms/radio/src/radio.component.d.ts +2 -2
  39. package/components/forms/range/README.md +13 -0
  40. package/components/forms/range/src/range.component.d.ts +2 -2
  41. package/components/forms/select/README.md +18 -0
  42. package/components/forms/select/src/select.component.d.ts +15 -4
  43. package/components/forms/switch/README.md +13 -0
  44. package/components/forms/switch/src/switch.component.d.ts +2 -2
  45. package/components/forms/textarea/README.md +17 -0
  46. package/components/forms/textarea/src/textarea.component.d.ts +2 -2
  47. package/components/forms/toggle/README.md +13 -0
  48. package/components/forms/toggle/src/toggle.component.d.ts +5 -36
  49. package/components/icon/README.md +18 -0
  50. package/components/link/README.md +17 -0
  51. package/components/link/src/link.component.d.ts +2 -2
  52. package/components/notification/README.md +13 -0
  53. package/components/notification/src/notification.component.d.ts +3 -3
  54. package/components/overlay/README.md +33 -0
  55. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
  56. package/components/overlay/src/overlay.component.d.ts +34 -0
  57. package/components/paginator/README.md +17 -0
  58. package/components/product-card/README.md +13 -0
  59. package/components/progress/README.md +17 -0
  60. package/components/progress/src/progress.component.d.ts +3 -3
  61. package/components/sonner/README.md +23 -0
  62. package/components/sonner/src/sonner.component.d.ts +2 -2
  63. package/components/tab/README.md +17 -0
  64. package/components/table/README.md +20 -0
  65. package/components/table/src/table.component.d.ts +6 -1
  66. package/components/table/table-action/table-action.component.d.ts +26 -3
  67. package/components/text/README.md +14 -0
  68. package/components/tooltip/README.md +29 -0
  69. package/components/tooltip/src/tooltip.component.d.ts +64 -4
  70. package/components/wizard/README.md +25 -0
  71. package/components/wizard/services/wizard.service.d.ts +1 -0
  72. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  73. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
  74. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -6
  76. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +24 -24
  78. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
  80. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +6 -5
  82. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-button.mjs +6 -6
  84. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-card.mjs +42 -42
  86. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +4 -4
  88. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
  90. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +40 -34
  92. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +21 -18
  94. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +3 -3
  96. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +36 -30
  98. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +3 -3
  100. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +46 -46
  102. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +49 -40
  104. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +3 -3
  106. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +11 -11
  108. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +7 -6
  110. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +95 -26
  112. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +31 -9
  114. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
  116. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +30 -41
  118. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +3 -3
  120. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -10
  122. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +7 -6
  124. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +7 -6
  126. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +56 -24
  128. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +7 -6
  130. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +9 -7
  132. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +102 -156
  134. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +3 -3
  136. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-link.mjs +5 -4
  138. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +26 -5
  140. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +319 -30
  142. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +38 -28
  144. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  145. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +12 -12
  146. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +6 -5
  148. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  149. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +8 -8
  150. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +10 -10
  152. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +9 -9
  154. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-components-table.mjs +56 -24
  156. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  157. package/fesm2022/sixbell-telco-sdk-components-text.mjs +3 -3
  158. package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -1
  159. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +369 -13
  160. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  161. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +81 -61
  162. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  163. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
  164. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  165. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +3 -3
  166. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  167. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +3 -3
  168. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  169. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +3 -3
  170. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  171. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  172. package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
  173. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +15 -15
  174. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -1
  175. package/fesm2022/sixbell-telco-sdk-utils-logger.mjs +3 -3
  176. package/fesm2022/sixbell-telco-sdk-utils-logger.mjs.map +1 -1
  177. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  178. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  179. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
  180. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
  181. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  182. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  183. package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs.map +1 -1
  184. package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -1
  185. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +299 -160
  186. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  187. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +12 -12
  188. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  189. package/package.json +96 -91
  190. package/utils/runtime-config/README.md +1 -1
  191. package/utils/theme/README.md +34 -19
  192. package/utils/theme/public-api.d.ts +2 -2
  193. package/utils/theme/src/constants.d.ts +6 -6
  194. package/utils/theme/src/models/theme.d.ts +14 -6
  195. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
  196. package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
  197. package/utils/theme/src/utils/utils.d.ts +9 -3
@@ -1,8 +1,12 @@
1
- import { CommonModule } from '@angular/common';
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
  /**
@@ -39,10 +43,10 @@ import { cva } from 'class-variance-authority';
39
43
  * ```
40
44
  */
41
45
  class TooltipContentComponent {
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TooltipContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: TooltipContentComponent, isStandalone: true, selector: "st-tooltip-content", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: TooltipContentComponent, isStandalone: true, selector: "st-tooltip-content", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
48
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TooltipContentComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipContentComponent, decorators: [{
46
50
  type: Component,
47
51
  args: [{ selector: 'st-tooltip-content', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
48
52
  }] });
@@ -54,6 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
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,34 @@ const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-t
72
77
  },
73
78
  compoundVariants: [],
74
79
  defaultVariants: {
75
- variant: 'primary',
80
+ variant: 'base',
76
81
  position: 'bottom',
77
82
  },
78
83
  });
84
+ const focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable="true"], [tabindex]:not([tabindex="-1"])';
85
+ function isEnabledFocusable(element) {
86
+ let ancestor = element;
87
+ while (ancestor) {
88
+ const ancestorStyle = getComputedStyle(ancestor);
89
+ if (ancestor.style.display === 'none' ||
90
+ ancestor.style.visibility === 'hidden' ||
91
+ ancestorStyle.display === 'none' ||
92
+ ancestorStyle.visibility === 'hidden')
93
+ return false;
94
+ ancestor = ancestor.parentElement;
95
+ }
96
+ const style = getComputedStyle(element);
97
+ return Boolean(element.isConnected &&
98
+ element.tabIndex >= 0 &&
99
+ !element.matches(':disabled') &&
100
+ !element.disabled &&
101
+ element.getAttribute('aria-disabled') !== 'true' &&
102
+ !element.closest('[hidden], [inert], [aria-hidden="true"], fieldset[disabled]') &&
103
+ !element.hidden &&
104
+ !element.inert &&
105
+ style.display !== 'none' &&
106
+ style.visibility !== 'hidden');
107
+ }
79
108
  /**
80
109
  * A customizable tooltip component with multiple variants and content options
81
110
  *
@@ -105,9 +134,17 @@ const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-t
105
134
  * ```
106
135
  */
107
136
  class TooltipComponent {
137
+ themeDomService = inject(ThemeDomService);
138
+ elementRef = inject(ElementRef);
139
+ renderer = inject(Renderer2);
140
+ destroyRef = inject(DestroyRef);
141
+ scrollDispatcher = inject(ScrollDispatcher);
142
+ overlay = inject(Overlay);
143
+ repositionScrollStrategy = this.overlay.scrollStrategies.reposition();
144
+ cdkPositionStrategy = null;
108
145
  /**
109
146
  * Tooltip color variant
110
- * @defaultValue 'primary'
147
+ * @defaultValue 'base'
111
148
  */
112
149
  variant = input();
113
150
  /**
@@ -133,11 +170,31 @@ class TooltipComponent {
133
170
  * Reference to custom tooltip content component
134
171
  */
135
172
  customContent = contentChild(TooltipContentComponent);
173
+ richContentElement = contentChild(TooltipContentComponent, { read: (ElementRef) });
174
+ richContentText = signal('');
136
175
  /**
137
176
  * @internal
138
177
  * Computed flag indicating presence of custom content
139
178
  */
140
179
  hasCustomContent = computed(() => !!this.customContent());
180
+ hasTooltipContent = computed(() => {
181
+ const label = this.label()?.trim();
182
+ const richContent = this.richContentText();
183
+ return Boolean(label || richContent);
184
+ });
185
+ requestedOpen = signal(false);
186
+ pointerInside = signal(false);
187
+ focusedTarget = signal(null);
188
+ escapeClosed = signal(false);
189
+ renderedOpen = signal(false);
190
+ phase = signal('closed');
191
+ activePosition = signal(null);
192
+ closingSide = signal(null);
193
+ transitionToken = 0;
194
+ tooltipId = `st-tooltip-${generateUniqueId()}`;
195
+ origin = viewChild.required(CdkOverlayOrigin);
196
+ animationFallbackHandle = null;
197
+ triggerTabIndexValue = signal(0);
141
198
  /**
142
199
  * @internal
143
200
  * Computed class string for the tooltip container
@@ -148,15 +205,314 @@ class TooltipComponent {
148
205
  position: this.position(),
149
206
  }));
150
207
  });
151
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
152
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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();\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", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
208
+ constructor() {
209
+ afterRenderEffect(() => {
210
+ const richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';
211
+ if (richContent !== this.richContentText())
212
+ this.richContentText.set(richContent);
213
+ this.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);
214
+ });
215
+ effect((onCleanup) => {
216
+ const element = this.richContentElement()?.nativeElement;
217
+ if (!element || typeof MutationObserver === 'undefined')
218
+ return;
219
+ const updateRichContent = () => {
220
+ const richContent = element.textContent?.trim() ?? '';
221
+ if (richContent !== this.richContentText())
222
+ this.richContentText.set(richContent);
223
+ };
224
+ const observer = new MutationObserver(updateRichContent);
225
+ observer.observe(element, { characterData: true, childList: true, subtree: true });
226
+ updateRichContent();
227
+ onCleanup(() => observer.disconnect());
228
+ });
229
+ effect(() => {
230
+ if (!this.hasTooltipContent()) {
231
+ this.syncDescribedBy(null);
232
+ if (this.requestedOpen())
233
+ this.requestOpen(false);
234
+ }
235
+ });
236
+ this.destroyRef.onDestroy(() => {
237
+ this.clearTooltipAnimationFallback();
238
+ this.syncDescribedBy(null);
239
+ this.transitionToken += 1;
240
+ });
241
+ }
242
+ positions = computed(() => {
243
+ const requestedSide = this.sideFromPair(this.primaryPosition(this.position()));
244
+ const [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);
245
+ return [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));
246
+ });
247
+ primaryPosition(position) {
248
+ switch (position) {
249
+ case 'top':
250
+ return { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };
251
+ case 'right':
252
+ return { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };
253
+ case 'left':
254
+ return { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };
255
+ default:
256
+ return { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };
257
+ }
258
+ }
259
+ oppositeSide(side) {
260
+ return { bottom: 'top', top: 'bottom', right: 'left', left: 'right' }[side];
261
+ }
262
+ orthogonalSides(side) {
263
+ return side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];
264
+ }
265
+ sideFromPair(pair) {
266
+ if (pair.originY === 'bottom' && pair.overlayY === 'top')
267
+ return 'bottom';
268
+ if (pair.originY === 'top' && pair.overlayY === 'bottom')
269
+ return 'top';
270
+ if (pair.originX === 'end' && pair.overlayX === 'start')
271
+ return 'right';
272
+ if (pair.originX === 'start' && pair.overlayX === 'end')
273
+ return 'left';
274
+ return 'bottom';
275
+ }
276
+ tooltipDirection = computed(() => {
277
+ return this.closingSide() ?? this.sideFromPair(this.activePosition() ?? this.positions()[0]);
278
+ });
279
+ tooltipClasses = computed(() => {
280
+ const phase = this.phase();
281
+ if (phase === 'closed')
282
+ return '';
283
+ const side = this.tooltipDirection();
284
+ const classes = {
285
+ bottom: {
286
+ opening: 'animate-fade-in-up animate-duration-150 origin-top',
287
+ open: 'animate-fade-in-up animate-duration-150 origin-top',
288
+ closing: 'animate-fade-out-down animate-duration-150 origin-top',
289
+ },
290
+ top: {
291
+ opening: 'animate-fade-in-down animate-duration-150 origin-bottom',
292
+ open: 'animate-fade-in-down animate-duration-150 origin-bottom',
293
+ closing: 'animate-fade-out-up animate-duration-150 origin-bottom',
294
+ },
295
+ right: {
296
+ opening: 'animate-fade-in-right animate-duration-150 origin-left',
297
+ open: 'animate-fade-in-right animate-duration-150 origin-left',
298
+ closing: 'animate-fade-out-left animate-duration-150 origin-left',
299
+ },
300
+ left: {
301
+ opening: 'animate-fade-in-left animate-duration-150 origin-right',
302
+ open: 'animate-fade-in-left animate-duration-150 origin-right',
303
+ closing: 'animate-fade-out-right animate-duration-150 origin-right',
304
+ },
305
+ };
306
+ const variantClass = this.variant() ? `tooltip-${this.variant()}` : '';
307
+ return `tooltip ${variantClass} rounded-field bg-base-300 px-2 py-1 text-base-content shadow-sm ${classes[side][phase]}`.trim();
308
+ });
309
+ transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);
310
+ tooltipAnimationClass() {
311
+ return this.tooltipClasses();
312
+ }
313
+ expectedTooltipAnimationName(phase, side) {
314
+ return {
315
+ bottom: { opening: 'fade-in-up', closing: 'fade-out-down' },
316
+ top: { opening: 'fade-in-down', closing: 'fade-out-up' },
317
+ right: { opening: 'fade-in-right', closing: 'fade-out-left' },
318
+ left: { opening: 'fade-in-left', closing: 'fade-out-right' },
319
+ }[side][phase];
320
+ }
321
+ hasFocusableDescendant() {
322
+ const origin = this.origin().elementRef.nativeElement;
323
+ return Array.from(origin.querySelectorAll(focusableSelector)).some((element) => isEnabledFocusable(element));
324
+ }
325
+ resolveFocusTarget(event) {
326
+ const origin = this.origin().elementRef.nativeElement;
327
+ for (const item of event.composedPath()) {
328
+ if (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item))
329
+ continue;
330
+ if (item === origin && event.target !== origin)
331
+ continue;
332
+ if ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item))
333
+ return item;
334
+ }
335
+ return null;
336
+ }
337
+ syncDescribedBy(target) {
338
+ const previous = this.focusedTarget();
339
+ if (!this.hasTooltipContent()) {
340
+ if (previous)
341
+ this.removeDescribedBy(previous);
342
+ this.focusedTarget.set(null);
343
+ return;
344
+ }
345
+ if (!target) {
346
+ if (previous)
347
+ this.removeDescribedBy(previous);
348
+ this.focusedTarget.set(null);
349
+ return;
350
+ }
351
+ if (previous && previous !== target)
352
+ this.removeDescribedBy(previous);
353
+ const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter(Boolean);
354
+ if (!tokens.includes(this.tooltipId))
355
+ this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));
356
+ this.focusedTarget.set(target);
357
+ }
358
+ removeDescribedBy(target) {
359
+ const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter((token) => token && token !== this.tooltipId);
360
+ if (tokens.length)
361
+ this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));
362
+ else
363
+ this.renderer.removeAttribute(target, 'aria-describedby');
364
+ }
365
+ requestOpen(next) {
366
+ if (next && (this.escapeClosed() || !this.hasTooltipContent()))
367
+ return;
368
+ if (next === this.requestedOpen())
369
+ return;
370
+ this.requestedOpen.set(next);
371
+ this.transitionToken += 1;
372
+ this.clearTooltipAnimationFallback();
373
+ const token = this.transitionToken;
374
+ if (next) {
375
+ this.closingSide.set(null);
376
+ if (!this.renderedOpen())
377
+ this.activePosition.set(null);
378
+ this.renderedOpen.set(true);
379
+ this.phase.set('opening');
380
+ this.animationFallbackHandle = setTimeout(() => {
381
+ this.animationFallbackHandle = null;
382
+ if (token === this.transitionToken && this.phase() === 'opening')
383
+ this.scheduleTooltipAnimationFallback(token, 'opening');
384
+ }, 0);
385
+ }
386
+ else {
387
+ this.closingSide.set(this.sideFromPair(this.activePosition() ?? this.positions()[0]));
388
+ this.phase.set('closing');
389
+ this.scheduleTooltipAnimationFallback(token, 'closing');
390
+ }
391
+ }
392
+ onPointerEnter() {
393
+ this.pointerInside.set(true);
394
+ this.escapeClosed.set(false);
395
+ this.requestOpen(true);
396
+ }
397
+ onPointerLeave() {
398
+ this.pointerInside.set(false);
399
+ if (!this.focusedTarget())
400
+ this.requestOpen(false);
401
+ }
402
+ onFocusIn(event) {
403
+ this.escapeClosed.set(false);
404
+ const target = this.resolveFocusTarget(event);
405
+ this.syncDescribedBy(target);
406
+ this.requestOpen(Boolean(target));
407
+ }
408
+ onFocusOut(event) {
409
+ const related = event.relatedTarget;
410
+ if (related instanceof Node && this.elementRef.nativeElement.contains(related))
411
+ return;
412
+ this.syncDescribedBy(null);
413
+ if (!this.pointerInside())
414
+ this.requestOpen(false);
415
+ }
416
+ onEscape() {
417
+ this.escapeClosed.set(true);
418
+ this.requestOpen(false);
419
+ }
420
+ onTooltipPositionChange(event) {
421
+ this.activePosition.set(event.connectionPair);
422
+ if (this.isOriginOutsideView(event)) {
423
+ this.syncDescribedBy(null);
424
+ this.requestOpen(false);
425
+ }
426
+ }
427
+ tooltipPositionStrategy() {
428
+ const strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));
429
+ strategy
430
+ .setOrigin(this.origin().elementRef)
431
+ .withPositions(this.positions())
432
+ .withPush(true)
433
+ .withViewportMargin(8)
434
+ .withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));
435
+ return strategy;
436
+ }
437
+ isOriginOutsideView(change) {
438
+ return change.scrollableViewProperties?.isOriginOutsideView === true;
439
+ }
440
+ onTooltipAnimationEnd(event) {
441
+ const phase = this.phase();
442
+ if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
443
+ return;
444
+ const side = this.tooltipDirection();
445
+ if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
446
+ return;
447
+ if (phase === 'opening')
448
+ this.settleTooltipOpening(this.transitionToken);
449
+ else
450
+ this.settleTooltipClosing(this.transitionToken);
451
+ }
452
+ onTooltipAnimationCancel(event) {
453
+ const phase = this.phase();
454
+ if ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget)
455
+ return;
456
+ const side = this.tooltipDirection();
457
+ if (event.animationName !== this.expectedTooltipAnimationName(phase, side))
458
+ return;
459
+ this.scheduleTooltipAnimationFallback(this.transitionToken, phase);
460
+ }
461
+ onTooltipDetach() {
462
+ this.clearTooltipAnimationFallback();
463
+ this.transitionToken += 1;
464
+ this.cdkPositionStrategy = null;
465
+ this.activePosition.set(null);
466
+ this.renderedOpen.set(false);
467
+ this.phase.set('closed');
468
+ }
469
+ settleTooltipOpening(token) {
470
+ if (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening')
471
+ return;
472
+ this.clearTooltipAnimationFallback();
473
+ this.phase.set('open');
474
+ }
475
+ settleTooltipClosing(token) {
476
+ if (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing')
477
+ return;
478
+ this.clearTooltipAnimationFallback();
479
+ this.cdkPositionStrategy = null;
480
+ this.renderedOpen.set(false);
481
+ }
482
+ scheduleTooltipAnimationFallback(token, phase) {
483
+ this.clearTooltipAnimationFallback();
484
+ const root = this.elementRef.nativeElement.ownerDocument.getElementById(this.tooltipId);
485
+ const style = root ? getComputedStyle(root) : null;
486
+ const parseTime = (value) => {
487
+ const parsed = Number.parseFloat(value);
488
+ return Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;
489
+ };
490
+ const durations = style?.animationDuration.split(',').map(parseTime) ?? [0];
491
+ const delays = style?.animationDelay.split(',').map(parseTime) ?? [0];
492
+ const duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);
493
+ this.animationFallbackHandle = setTimeout(() => {
494
+ this.animationFallbackHandle = null;
495
+ if (phase === 'opening')
496
+ this.settleTooltipOpening(token);
497
+ else
498
+ this.settleTooltipClosing(token);
499
+ }, duration);
500
+ }
501
+ clearTooltipAnimationFallback() {
502
+ if (this.animationFallbackHandle === null)
503
+ return;
504
+ clearTimeout(this.animationFallbackHandle);
505
+ this.animationFallbackHandle = null;
506
+ }
507
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
508
+ 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(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
509
  }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TooltipComponent, decorators: [{
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, decorators: [{
155
511
  type: Component,
156
- args: [{ selector: 'st-tooltip', imports: [CommonModule, IconComponent], host: {
512
+ args: [{ selector: 'st-tooltip', standalone: true, imports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent], host: {
157
513
  class: 'inline-flex items-center',
158
- }, template: "@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" }]
159
- }] });
514
+ }, 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(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" }]
515
+ }], ctorParameters: () => [] });
160
516
 
161
517
  /**
162
518
  * 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;uGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAvB,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;;2FAIV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6BAAA,EAAA;;;AEjChD;;;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;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,SAAS,EAAE,CAAC,mBAAmB,CAAC;YAChC,QAAQ,EAAE,CAAC,kBAAkB,CAAC;YAC9B,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5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AA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,4yBAiCC,uBAAuB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECvHrD,4wBAwBA,EDuDW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,+BAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAOzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAT5B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,YAAY,EAAE,aAAa,CAAC,EAGhC,IAAA,EAAA;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\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 variantClass = this.variant() ? `tooltip-${this.variant()}` : '';\n\t\treturn `tooltip ${variantClass} rounded-field bg-base-300 px-2 py-1 text-base-content 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(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,E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