@4sh/ui-kit 0.8.0 → 0.10.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 (143) hide show
  1. package/README.fr.md +11 -10
  2. package/README.md +11 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +340 -16
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +10 -82
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
  19. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +179 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -0
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  37. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
  39. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
  41. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
  47. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
  49. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
  51. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
  53. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
  55. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
  57. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
  59. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
  61. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-forms.mjs +105 -7
  65. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
  67. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
  72. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
  74. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
  76. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
  78. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  82. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
  86. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  88. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  89. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
  91. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  93. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
  95. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +605 -0
  97. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
  99. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +5 -29
  101. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +5 -29
  103. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
  105. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  107. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
  108. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
  110. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  112. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
  113. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  114. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +12 -36
  115. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  116. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
  117. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  118. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
  119. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  120. package/fesm2022/4sh-ui-kit-overlay.mjs +60 -2
  121. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  122. package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
  123. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
  124. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
  126. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  128. package/mcp/data/text-search-docs.json +486 -66
  129. package/mcp/data/ui-config.json +26605 -12458
  130. package/mcp/package.json +1 -1
  131. package/package.json +13 -1
  132. package/styles/component-vars.scss +1440 -721
  133. package/styles/settings/_ui-config.scss +45 -2
  134. package/styles/utils/_mixins.scss +32 -30
  135. package/styles/utils/_overlay.scss +1 -1
  136. package/types/4sh-ui-kit-base-ui-image.d.ts +151 -6
  137. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
  138. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +110 -0
  139. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
  140. package/types/4sh-ui-kit-forms.d.ts +43 -1
  141. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
  142. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
  143. package/types/4sh-ui-kit-overlay.d.ts +35 -1
@@ -55,16 +55,18 @@ class UiTooltipPanel {
55
55
  }, /* @ts-ignore */
56
56
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiTooltipPanel, isStandalone: true, selector: "ui-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateContext: { classPropertyName: "templateContext", publicName: "templateContext", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, tooltipId: { classPropertyName: "tooltipId", publicName: "tooltipId", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiTooltipPanel, isStandalone: true, selector: "ui-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateContext: { classPropertyName: "templateContext", publicName: "templateContext", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, tooltipId: { classPropertyName: "tooltipId", publicName: "tooltipId", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltipPanel, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltipPanel, decorators: [{
62
62
  type: Component,
63
- args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
63
+ args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
64
64
  }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], templateContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateContext", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], tooltipId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipId", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
65
65
 
66
66
  /** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */
67
67
  const ARROW_GAP = 8;
68
+ /** Floor applied to `hideDelay` when the panel is interactive. */
69
+ const INTERACTIVE_HIDE_DELAY = 120;
68
70
  /** Process-wide counter for unique tooltip ids (aria-describedby wiring). */
69
71
  let nextId = 0;
70
72
  /**
@@ -202,8 +204,16 @@ class UiTooltip {
202
204
  }
203
205
  if (evt === 'focus' || evt === 'both') {
204
206
  // focusin/focusout bubble → also works when the host wraps the focusable element.
205
- this.disposers.push(this.renderer.listen(host, 'focusin', () => this.activate()), this.renderer.listen(host, 'focusout', () => this.deactivate()));
207
+ this.disposers.push(this.renderer.listen(host, 'focusin', () => this.activate()), this.renderer.listen(host, 'focusout', (event) => {
208
+ if (this.movedIntoPanel(event.relatedTarget))
209
+ return;
210
+ this.deactivate();
211
+ }));
206
212
  }
213
+ this.disposers.push(this.renderer.listen('document', 'keydown.escape', () => {
214
+ if (this.hideOnEscape() && this.overlayRef?.hasAttached())
215
+ this.remove();
216
+ }));
207
217
  }
208
218
  // --- Activation lifecycle -------------------------------------------
209
219
  /** @ignore */
@@ -227,9 +237,11 @@ class UiTooltip {
227
237
  /** @ignore */
228
238
  deactivate() {
229
239
  this.clearShowTimer();
230
- const delay = this.hideDelay();
240
+ this.clearHideTimer();
241
+ const delay = this.autoHide()
242
+ ? this.hideDelay()
243
+ : Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);
231
244
  if (delay > 0) {
232
- this.clearHideTimer();
233
245
  this.hideTimer = setTimeout(() => this.remove(), delay);
234
246
  }
235
247
  else {
@@ -249,14 +261,10 @@ class UiTooltip {
249
261
  this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);
250
262
  // Let hover pass through unless the tooltip is interactive (autoHide=false).
251
263
  overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';
252
- if (!this.autoHide())
253
- this.bindPanelHover(overlayRef);
254
264
  }
255
265
  // Trigger the fade-in on the next frame so the transition runs.
256
266
  requestAnimationFrame(() => this.panelRef?.setInput('visible', true));
257
267
  this.armLifeTimer();
258
- if (this.hideOnEscape())
259
- this.bindEscape();
260
268
  this.tooltipShow.emit();
261
269
  }
262
270
  /** @ignore */
@@ -293,6 +301,7 @@ class UiTooltip {
293
301
  panelClass: 'ui-tooltip-overlay',
294
302
  hasBackdrop: false,
295
303
  });
304
+ this.bindPanelEvents(this.overlayRef);
296
305
  return this.overlayRef;
297
306
  }
298
307
  /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
@@ -383,20 +392,30 @@ class UiTooltip {
383
392
  return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;
384
393
  }
385
394
  // --- Interactive / dismiss listeners --------------------------------
386
- /** @ignore Keep the tooltip open while the pointer is over it (autoHide=false). */
387
- bindPanelHover(overlayRef) {
395
+ /** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */
396
+ bindPanelEvents(overlayRef) {
388
397
  const panel = overlayRef.overlayElement;
389
- const enter = this.renderer.listen(panel, 'mouseenter', () => this.clearHideTimer());
390
- const leave = this.renderer.listen(panel, 'mouseleave', () => this.deactivate());
391
- this.disposers.push(enter, leave);
392
- }
393
- /** @ignore */
394
- bindEscape() {
395
- const off = this.renderer.listen('document', 'keydown.escape', () => {
398
+ this.disposers.push(this.renderer.listen(panel, 'mouseenter', () => {
399
+ if (!this.autoHide())
400
+ this.clearHideTimer();
401
+ }), this.renderer.listen(panel, 'mouseleave', () => {
402
+ if (!this.autoHide())
403
+ this.deactivate();
404
+ }), this.renderer.listen(panel, 'focusin', () => {
405
+ if (!this.autoHide())
406
+ this.clearHideTimer();
407
+ }), this.renderer.listen(panel, 'focusout', (event) => {
408
+ if (this.autoHide() || panel.contains(event.relatedTarget))
409
+ return;
396
410
  this.deactivate();
397
- off();
398
- });
399
- this.disposers.push(off);
411
+ }));
412
+ }
413
+ /** @ignore The focus moved into an interactive panel rather than away from it. */
414
+ movedIntoPanel(target) {
415
+ if (this.autoHide() || !target)
416
+ return false;
417
+ const panel = this.overlayRef?.overlayElement;
418
+ return !!panel && panel.contains(target);
400
419
  }
401
420
  // --- Timers ----------------------------------------------------------
402
421
  /** @ignore */
@@ -438,10 +457,10 @@ class UiTooltip {
438
457
  this.overlayRef = null;
439
458
  this.panelRef = null;
440
459
  }
441
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
442
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiTooltip, isStandalone: true, selector: "[uiTooltip]", inputs: { content: { classPropertyName: "content", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, tooltipContext: { classPropertyName: "tooltipContext", publicName: "tooltipContext", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, exportAs: ["uiTooltip"], ngImport: i0 }); }
460
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
461
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiTooltip, isStandalone: true, selector: "[uiTooltip]", inputs: { content: { classPropertyName: "content", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, tooltipContext: { classPropertyName: "tooltipContext", publicName: "tooltipContext", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, exportAs: ["uiTooltip"], ngImport: i0 }); }
443
462
  }
444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltip, decorators: [{
463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltip, decorators: [{
445
464
  type: Directive,
446
465
  args: [{
447
466
  selector: '[uiTooltip]',
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-tooltip.mjs","sources":["../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.ts","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.html","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip.ts","../../../projects/ui-kit/informative/ui-tooltip/src/public-api.ts","../../../projects/ui-kit/informative/ui-tooltip/src/4sh-ui-kit-informative-ui-tooltip.ts"],"sourcesContent":["import { Component, computed, input, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Side of the trigger the tooltip is displayed on (drives the arrow position). */\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Internal visual panel of the tooltip (the \"bubble\" + arrow).\n *\n * Rendered inside a CDK overlay by the {@link UiTooltip} directive — never used\n * directly in templates. Styling is co-located in `ui-tooltip.scss` and fully\n * token-driven; every value is overridable through the `--ui-tooltip-*` CSS hooks.\n */\n@Component({\n selector: 'ui-tooltip',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-tooltip-panel.html',\n styleUrl: './ui-tooltip.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class UiTooltipPanel {\n /** Plain-text (or HTML when `escape=false`) content. Ignored if `template` is set. */\n text = input<string>();\n /** Rich content rendered through `ngTemplateOutlet`. Takes precedence over `text`. */\n template = input<TemplateRef<unknown>>();\n /** Context object forwarded to `template`. */\n templateContext = input<unknown>();\n /** When true (default) content is text; when false, `text` is bound as sanitized HTML. */\n escape = input(true);\n /** Extra class(es) applied to the tooltip root for one-off customization. */\n styleClass = input<string>();\n /** Side the tooltip sits on — sets the arrow orientation. */\n position = input<TooltipPosition>('top');\n /** DOM id, wired to the trigger via `aria-describedby`. */\n tooltipId = input<string>();\n /** Whether the panel is in its shown (opaque) state — drives the fade transition. */\n visible = input(false);\n /** When true the panel accepts pointer events (autoHide disabled). */\n interactive = input(false);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tooltip', `_${this.position()}`];\n if (this.visible()) c.push('_visible');\n if (this.interactive()) c.push('_interactive');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : mode `escape=false` (opt-in). Ce n'est PAS un contournement — la liaison passe par l'assainisseur d'Angular, aucun bypass n'est levé. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n booleanAttribute,\n ComponentRef,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n numberAttribute,\n output,\n PLATFORM_ID,\n Renderer2,\n TemplateRef,\n untracked,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { TooltipPosition, UiTooltipPanel } from './ui-tooltip-panel';\n\nexport type TooltipEvent = 'hover' | 'focus' | 'both';\n\n/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */\nlet nextId = 0;\n\n/**\n * Attribute directive that attaches an advisory tooltip to its host element.\n *\n * Headless behavior (Angular CDK Overlay) + a co-located, fully token-driven panel\n * ({@link UiTooltipPanel}). Inspired by the PrimeNG `pTooltip` API, adapted to the\n * signals idiom of this design system.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the CDK\n * `FlexibleConnectedPositionStrategy` (no manual geometry).\n *\n * @example\n * ```html\n * <button uiTooltip=\"Save the document\" tooltipPosition=\"bottom\">Save</button>\n * <button [uiTooltip]=\"tpl\" [tooltipContext]=\"{ $implicit: user }\">Profile</button>\n * <ng-template #tpl let-u>{{ u.name }}</ng-template>\n * ```\n */\n@Directive({\n selector: '[uiTooltip]',\n exportAs: 'uiTooltip',\n})\nexport class UiTooltip {\n /** Content: plain text, HTML (with `escape=false`) or a `TemplateRef` for rich content. */\n content = input<string | TemplateRef<unknown> | undefined>(undefined, { alias: 'uiTooltip' });\n /** Preferred side of the trigger. CDK flips it automatically when space is lacking. */\n tooltipPosition = input<TooltipPosition>('top');\n /** Auto-flip to another side when the preferred one lacks space (default). `false` locks the side. */\n fitContent = input(true, { transform: booleanAttribute });\n /** Interaction(s) that reveal the tooltip. `both` (default) also covers keyboard focus (a11y). */\n tooltipEvent = input<TooltipEvent>('both');\n /** Disables the tooltip entirely. */\n tooltipDisabled = input(false, { transform: booleanAttribute });\n /** Delay before showing, in ms. */\n showDelay = input(150, { transform: numberAttribute });\n /** Delay before hiding, in ms. */\n hideDelay = input(0, { transform: numberAttribute });\n /** `true` (default): content rendered as text. `false`: `content` bound as sanitized HTML. */\n escape = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the tooltip panel. */\n tooltipStyleClass = input<string>();\n /** Auto-hide when the pointer leaves the trigger (default). `false` keeps it open while hovered. */\n autoHide = input(true, { transform: booleanAttribute });\n /** Hide when the Escape key is pressed (default, WCAG dismissible). */\n hideOnEscape = input(true, { transform: booleanAttribute });\n /** Auto-hide after N ms even while active. `0` (default) disables it. */\n life = input(0, { transform: numberAttribute });\n /** Only show when the trigger text is truncated (ellipsis active). */\n showOnEllipsis = input(false, { transform: booleanAttribute });\n /** Additional vertical offset (px) from the computed position. */\n positionTop = input(0, { transform: numberAttribute });\n /** Additional horizontal offset (px) from the computed position. */\n positionLeft = input(0, { transform: numberAttribute });\n /** Context object forwarded to a `TemplateRef` content. */\n tooltipContext = input<unknown>();\n\n /** Emitted right after the tooltip becomes visible. */\n tooltipShow = output<void>();\n /** Emitted right after the tooltip is hidden. */\n tooltipHide = output<void>();\n\n /** @ignore */\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore */\n private readonly overlay = inject(Overlay);\n /** @ignore */\n private readonly vcr = inject(ViewContainerRef);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore */\n private overlayRef: OverlayRef | null = null;\n /** @ignore */\n private positionStrategy: FlexibleConnectedPositionStrategy | null = null;\n /** @ignore */\n private panelRef: ComponentRef<UiTooltipPanel> | null = null;\n /** @ignore */\n private readonly tooltipId = `ui-tooltip-${nextId++}`;\n\n /** @ignore Deferred timers. */\n private showTimer: ReturnType<typeof setTimeout> | null = null;\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n private lifeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @ignore Teardown handles for host / document listeners. */\n private readonly disposers: (() => void)[] = [];\n\n /** @ignore Content is a template (vs a string). */\n private readonly hasTemplate = computed(() => this.content() instanceof TemplateRef);\n\n constructor() {\n // A navigation removes the trigger without ever firing `mouseleave`:\n // drop the tooltip (and any pending show) instead of leaving it stuck.\n closeOnNavigation(() => this.remove());\n\n // Inputs are only resolved after construction → bind once the view exists (browser only).\n if (this.isBrowser) {\n afterNextRender(() => this.bindTriggerEvents());\n }\n\n // Keep an open tooltip in sync with live content / option changes.\n effect(() => {\n // Track the visible inputs so the effect re-runs on any change.\n const content = this.content();\n this.escape();\n this.tooltipStyleClass();\n this.tooltipContext();\n untracked(() => {\n if (!this.panelRef) return;\n this.applyContent();\n if (!content) this.hide();\n });\n });\n\n // Hide as soon as the tooltip is disabled.\n effect(() => {\n if (this.tooltipDisabled()) untracked(() => this.hide());\n });\n\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n /** Programmatically show the tooltip (respects `showDelay`). */\n show(): void {\n this.activate();\n }\n\n /** Programmatically hide the tooltip (respects `hideDelay`). */\n hide(): void {\n this.deactivate();\n }\n\n // --- Trigger events --------------------------------------------------\n\n /** @ignore */\n private bindTriggerEvents(): void {\n const host = this.el.nativeElement;\n const evt = this.tooltipEvent();\n if (evt === 'hover' || evt === 'both') {\n this.disposers.push(\n this.renderer.listen(host, 'mouseenter', () => this.activate()),\n this.renderer.listen(host, 'mouseleave', () => this.deactivate()),\n this.renderer.listen(host, 'click', () => this.deactivate()),\n this.renderer.listen(host, 'touchstart', () => this.activate()),\n );\n }\n if (evt === 'focus' || evt === 'both') {\n // focusin/focusout bubble → also works when the host wraps the focusable element.\n this.disposers.push(\n this.renderer.listen(host, 'focusin', () => this.activate()),\n this.renderer.listen(host, 'focusout', () => this.deactivate()),\n );\n }\n }\n\n // --- Activation lifecycle -------------------------------------------\n\n /** @ignore */\n private activate(): void {\n if (this.tooltipDisabled() || !this.hasContent()) return;\n if (this.showOnEllipsis() && !this.hasEllipsis()) return;\n\n this.clearHideTimer();\n if (this.overlayRef?.hasAttached()) return;\n\n const delay = this.showDelay();\n this.clearShowTimer();\n if (delay > 0) {\n this.showTimer = setTimeout(() => this.render(), delay);\n } else {\n this.render();\n }\n }\n\n /** @ignore */\n private deactivate(): void {\n this.clearShowTimer();\n const delay = this.hideDelay();\n if (delay > 0) {\n this.clearHideTimer();\n this.hideTimer = setTimeout(() => this.remove(), delay);\n } else {\n this.remove();\n }\n }\n\n // --- Overlay rendering ----------------------------------------------\n\n /** @ignore */\n private render(): void {\n if (!this.hasContent() || this.tooltipDisabled()) return;\n\n const overlayRef = this.getOverlayRef();\n if (!overlayRef.hasAttached()) {\n this.panelRef = overlayRef.attach(\n new ComponentPortal(UiTooltipPanel, this.vcr, this.injector),\n );\n this.panelRef.setInput('tooltipId', this.tooltipId);\n this.applyContent();\n this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);\n // Let hover pass through unless the tooltip is interactive (autoHide=false).\n overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';\n if (!this.autoHide()) this.bindPanelHover(overlayRef);\n }\n\n // Trigger the fade-in on the next frame so the transition runs.\n requestAnimationFrame(() => this.panelRef?.setInput('visible', true));\n\n this.armLifeTimer();\n if (this.hideOnEscape()) this.bindEscape();\n this.tooltipShow.emit();\n }\n\n /** @ignore */\n private remove(): void {\n this.clearLifeTimer();\n this.clearShowTimer();\n if (!this.overlayRef?.hasAttached()) return;\n this.overlayRef.detach();\n this.panelRef = null;\n this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');\n this.tooltipHide.emit();\n }\n\n /** @ignore Built once, reused across shows; positions refreshed each time. */\n private getOverlayRef(): OverlayRef {\n if (this.overlayRef) {\n this.positionStrategy?.withPositions(this.positionsFor(this.tooltipPosition()));\n return this.overlayRef;\n }\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withViewportMargin(ARROW_GAP)\n .withPositions(this.positionsFor(this.tooltipPosition()));\n\n // Single subscription for the whole lifecycle → arrow follows the effective side.\n this.positionStrategy.positionChanges.subscribe((change) => {\n this.panelRef?.setInput('position', this.sideOf(change.connectionPair));\n });\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n panelClass: 'ui-tooltip-overlay',\n hasBackdrop: false,\n });\n return this.overlayRef;\n }\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n private positionsFor(pos: TooltipPosition): ConnectedPosition[] {\n const ox = this.positionLeft();\n const oy = this.positionTop();\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetX: ox,\n offsetY: -ARROW_GAP + oy,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetX: ox,\n offsetY: ARROW_GAP + oy,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP + ox,\n offsetY: oy,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP + ox,\n offsetY: oy,\n };\n const primary: Record<TooltipPosition, ConnectedPosition> = { top, bottom, left, right };\n // fitContent=false → keep only the preferred side (no auto-flip).\n if (!this.fitContent()) return [primary[pos]];\n\n const order: Record<TooltipPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[pos];\n }\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n private sideOf(pair: ConnectedPosition): TooltipPosition {\n if (pair.overlayY === 'bottom') return 'top';\n if (pair.overlayY === 'top') return 'bottom';\n if (pair.overlayX === 'end') return 'left';\n return 'right';\n }\n\n // --- Content ---------------------------------------------------------\n\n /** @ignore */\n private applyContent(): void {\n if (!this.panelRef) return;\n const content = this.content();\n if (this.hasTemplate()) {\n this.panelRef.setInput('template', content as TemplateRef<unknown>);\n this.panelRef.setInput('templateContext', this.tooltipContext());\n this.panelRef.setInput('text', undefined);\n } else {\n this.panelRef.setInput('text', content as string | undefined);\n this.panelRef.setInput('template', undefined);\n }\n this.panelRef.setInput('escape', this.escape());\n this.panelRef.setInput('styleClass', this.tooltipStyleClass());\n this.panelRef.setInput('interactive', !this.autoHide());\n }\n\n /** @ignore */\n private hasContent(): boolean {\n const c = this.content();\n return this.hasTemplate() || !!(typeof c === 'string' && c.length);\n }\n\n /** @ignore Whether the trigger text is visually truncated. */\n private hasEllipsis(): boolean {\n const el = this.el.nativeElement;\n return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;\n }\n\n // --- Interactive / dismiss listeners --------------------------------\n\n /** @ignore Keep the tooltip open while the pointer is over it (autoHide=false). */\n private bindPanelHover(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n const enter = this.renderer.listen(panel, 'mouseenter', () => this.clearHideTimer());\n const leave = this.renderer.listen(panel, 'mouseleave', () => this.deactivate());\n this.disposers.push(enter, leave);\n }\n\n /** @ignore */\n private bindEscape(): void {\n const off = this.renderer.listen('document', 'keydown.escape', () => {\n this.deactivate();\n off();\n });\n this.disposers.push(off);\n }\n\n // --- Timers ----------------------------------------------------------\n\n /** @ignore */\n private armLifeTimer(): void {\n this.clearLifeTimer();\n const life = this.life();\n if (life > 0) this.lifeTimer = setTimeout(() => this.remove(), life);\n }\n\n /** @ignore */\n private clearShowTimer(): void {\n if (this.showTimer) {\n clearTimeout(this.showTimer);\n this.showTimer = null;\n }\n }\n\n /** @ignore */\n private clearHideTimer(): void {\n if (this.hideTimer) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n /** @ignore */\n private clearLifeTimer(): void {\n if (this.lifeTimer) {\n clearTimeout(this.lifeTimer);\n this.lifeTimer = null;\n }\n }\n\n /** @ignore */\n private destroy(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n this.clearLifeTimer();\n this.disposers.forEach((off) => off());\n this.disposers.length = 0;\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.panelRef = null;\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-tooltip\n */\n\nexport * from './lib/ui-tooltip-panel';\nexport * from './lib/ui-tooltip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;AAMG;MAQU,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAwB;;AAExC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAW;;QAElC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI;mFAAC;;AAEpB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAE5B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,KAAK;qFAAC;;AAExC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;;QAEtB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK;wFAAC;;AAGP,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,YAAA,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,CAAA,CAAA,EAAI,IAAI,CAAC,QAAQ,EAAE,CAAA,CAAE,CAAC;YAC/C,IAAI,IAAI,CAAC,OAAO,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;YACtC,IAAI,IAAI,CAAC,WAAW,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;AAC9C,YAAA,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE;AAC5B,YAAA,IAAI,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAClB,YAAA,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;oFAAC;AACH,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AAA,WAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAJrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,WAAW;AACtB,iBAAA;;;AC3DD;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-tooltip.mjs","sources":["../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.ts","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.html","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip.ts","../../../projects/ui-kit/informative/ui-tooltip/src/public-api.ts","../../../projects/ui-kit/informative/ui-tooltip/src/4sh-ui-kit-informative-ui-tooltip.ts"],"sourcesContent":["import { Component, computed, input, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Side of the trigger the tooltip is displayed on (drives the arrow position). */\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Internal visual panel of the tooltip (the \"bubble\" + arrow).\n *\n * Rendered inside a CDK overlay by the {@link UiTooltip} directive — never used\n * directly in templates. Styling is co-located in `ui-tooltip.scss` and fully\n * token-driven; every value is overridable through the `--ui-tooltip-*` CSS hooks.\n */\n@Component({\n selector: 'ui-tooltip',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-tooltip-panel.html',\n styleUrl: './ui-tooltip.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class UiTooltipPanel {\n /** Plain-text (or HTML when `escape=false`) content. Ignored if `template` is set. */\n text = input<string>();\n /** Rich content rendered through `ngTemplateOutlet`. Takes precedence over `text`. */\n template = input<TemplateRef<unknown>>();\n /** Context object forwarded to `template`. */\n templateContext = input<unknown>();\n /** When true (default) content is text; when false, `text` is bound as sanitized HTML. */\n escape = input(true);\n /** Extra class(es) applied to the tooltip root for one-off customization. */\n styleClass = input<string>();\n /** Side the tooltip sits on — sets the arrow orientation. */\n position = input<TooltipPosition>('top');\n /** DOM id, wired to the trigger via `aria-describedby`. */\n tooltipId = input<string>();\n /** Whether the panel is in its shown (opaque) state — drives the fade transition. */\n visible = input(false);\n /** When true the panel accepts pointer events (autoHide disabled). */\n interactive = input(false);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tooltip', `_${this.position()}`];\n if (this.visible()) c.push('_visible');\n if (this.interactive()) c.push('_interactive');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : mode `escape=false` (opt-in). Ce n'est PAS un contournement — la liaison passe par l'assainisseur d'Angular, aucun bypass n'est levé. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n booleanAttribute,\n ComponentRef,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n numberAttribute,\n output,\n PLATFORM_ID,\n Renderer2,\n TemplateRef,\n untracked,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { TooltipPosition, UiTooltipPanel } from './ui-tooltip-panel';\n\nexport type TooltipEvent = 'hover' | 'focus' | 'both';\n\n/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Floor applied to `hideDelay` when the panel is interactive. */\nconst INTERACTIVE_HIDE_DELAY = 120;\n\n/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */\nlet nextId = 0;\n\n/**\n * Attribute directive that attaches an advisory tooltip to its host element.\n *\n * Headless behavior (Angular CDK Overlay) + a co-located, fully token-driven panel\n * ({@link UiTooltipPanel}). Inspired by the PrimeNG `pTooltip` API, adapted to the\n * signals idiom of this design system.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the CDK\n * `FlexibleConnectedPositionStrategy` (no manual geometry).\n *\n * @example\n * ```html\n * <button uiTooltip=\"Save the document\" tooltipPosition=\"bottom\">Save</button>\n * <button [uiTooltip]=\"tpl\" [tooltipContext]=\"{ $implicit: user }\">Profile</button>\n * <ng-template #tpl let-u>{{ u.name }}</ng-template>\n * ```\n */\n@Directive({\n selector: '[uiTooltip]',\n exportAs: 'uiTooltip',\n})\nexport class UiTooltip {\n /** Content: plain text, HTML (with `escape=false`) or a `TemplateRef` for rich content. */\n content = input<string | TemplateRef<unknown> | undefined>(undefined, { alias: 'uiTooltip' });\n /** Preferred side of the trigger. CDK flips it automatically when space is lacking. */\n tooltipPosition = input<TooltipPosition>('top');\n /** Auto-flip to another side when the preferred one lacks space (default). `false` locks the side. */\n fitContent = input(true, { transform: booleanAttribute });\n /** Interaction(s) that reveal the tooltip. `both` (default) also covers keyboard focus (a11y). */\n tooltipEvent = input<TooltipEvent>('both');\n /** Disables the tooltip entirely. */\n tooltipDisabled = input(false, { transform: booleanAttribute });\n /** Delay before showing, in ms. */\n showDelay = input(150, { transform: numberAttribute });\n /** Delay before hiding, in ms. */\n hideDelay = input(0, { transform: numberAttribute });\n /** `true` (default): content rendered as text. `false`: `content` bound as sanitized HTML. */\n escape = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the tooltip panel. */\n tooltipStyleClass = input<string>();\n /** Auto-hide when the pointer leaves the trigger (default). `false` keeps it open while hovered. */\n autoHide = input(true, { transform: booleanAttribute });\n /** Hide when the Escape key is pressed (default, WCAG dismissible). */\n hideOnEscape = input(true, { transform: booleanAttribute });\n /** Auto-hide after N ms even while active. `0` (default) disables it. */\n life = input(0, { transform: numberAttribute });\n /** Only show when the trigger text is truncated (ellipsis active). */\n showOnEllipsis = input(false, { transform: booleanAttribute });\n /** Additional vertical offset (px) from the computed position. */\n positionTop = input(0, { transform: numberAttribute });\n /** Additional horizontal offset (px) from the computed position. */\n positionLeft = input(0, { transform: numberAttribute });\n /** Context object forwarded to a `TemplateRef` content. */\n tooltipContext = input<unknown>();\n\n /** Emitted right after the tooltip becomes visible. */\n tooltipShow = output<void>();\n /** Emitted right after the tooltip is hidden. */\n tooltipHide = output<void>();\n\n /** @ignore */\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore */\n private readonly overlay = inject(Overlay);\n /** @ignore */\n private readonly vcr = inject(ViewContainerRef);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore */\n private overlayRef: OverlayRef | null = null;\n /** @ignore */\n private positionStrategy: FlexibleConnectedPositionStrategy | null = null;\n /** @ignore */\n private panelRef: ComponentRef<UiTooltipPanel> | null = null;\n /** @ignore */\n private readonly tooltipId = `ui-tooltip-${nextId++}`;\n\n /** @ignore Deferred timers. */\n private showTimer: ReturnType<typeof setTimeout> | null = null;\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n private lifeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @ignore Teardown handles for host / document listeners. */\n private readonly disposers: (() => void)[] = [];\n\n /** @ignore Content is a template (vs a string). */\n private readonly hasTemplate = computed(() => this.content() instanceof TemplateRef);\n\n constructor() {\n // A navigation removes the trigger without ever firing `mouseleave`:\n // drop the tooltip (and any pending show) instead of leaving it stuck.\n closeOnNavigation(() => this.remove());\n\n // Inputs are only resolved after construction → bind once the view exists (browser only).\n if (this.isBrowser) {\n afterNextRender(() => this.bindTriggerEvents());\n }\n\n // Keep an open tooltip in sync with live content / option changes.\n effect(() => {\n // Track the visible inputs so the effect re-runs on any change.\n const content = this.content();\n this.escape();\n this.tooltipStyleClass();\n this.tooltipContext();\n untracked(() => {\n if (!this.panelRef) return;\n this.applyContent();\n if (!content) this.hide();\n });\n });\n\n // Hide as soon as the tooltip is disabled.\n effect(() => {\n if (this.tooltipDisabled()) untracked(() => this.hide());\n });\n\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n /** Programmatically show the tooltip (respects `showDelay`). */\n show(): void {\n this.activate();\n }\n\n /** Programmatically hide the tooltip (respects `hideDelay`). */\n hide(): void {\n this.deactivate();\n }\n\n // --- Trigger events --------------------------------------------------\n\n /** @ignore */\n private bindTriggerEvents(): void {\n const host = this.el.nativeElement;\n const evt = this.tooltipEvent();\n if (evt === 'hover' || evt === 'both') {\n this.disposers.push(\n this.renderer.listen(host, 'mouseenter', () => this.activate()),\n this.renderer.listen(host, 'mouseleave', () => this.deactivate()),\n this.renderer.listen(host, 'click', () => this.deactivate()),\n this.renderer.listen(host, 'touchstart', () => this.activate()),\n );\n }\n if (evt === 'focus' || evt === 'both') {\n // focusin/focusout bubble → also works when the host wraps the focusable element.\n this.disposers.push(\n this.renderer.listen(host, 'focusin', () => this.activate()),\n this.renderer.listen(host, 'focusout', (event: FocusEvent) => {\n if (this.movedIntoPanel(event.relatedTarget)) return;\n this.deactivate();\n }),\n );\n }\n\n this.disposers.push(\n this.renderer.listen('document', 'keydown.escape', () => {\n if (this.hideOnEscape() && this.overlayRef?.hasAttached()) this.remove();\n }),\n );\n }\n\n // --- Activation lifecycle -------------------------------------------\n\n /** @ignore */\n private activate(): void {\n if (this.tooltipDisabled() || !this.hasContent()) return;\n if (this.showOnEllipsis() && !this.hasEllipsis()) return;\n\n this.clearHideTimer();\n if (this.overlayRef?.hasAttached()) return;\n\n const delay = this.showDelay();\n this.clearShowTimer();\n if (delay > 0) {\n this.showTimer = setTimeout(() => this.render(), delay);\n } else {\n this.render();\n }\n }\n\n /** @ignore */\n private deactivate(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n const delay = this.autoHide()\n ? this.hideDelay()\n : Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);\n if (delay > 0) {\n this.hideTimer = setTimeout(() => this.remove(), delay);\n } else {\n this.remove();\n }\n }\n\n // --- Overlay rendering ----------------------------------------------\n\n /** @ignore */\n private render(): void {\n if (!this.hasContent() || this.tooltipDisabled()) return;\n\n const overlayRef = this.getOverlayRef();\n if (!overlayRef.hasAttached()) {\n this.panelRef = overlayRef.attach(\n new ComponentPortal(UiTooltipPanel, this.vcr, this.injector),\n );\n this.panelRef.setInput('tooltipId', this.tooltipId);\n this.applyContent();\n this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);\n // Let hover pass through unless the tooltip is interactive (autoHide=false).\n overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';\n }\n\n // Trigger the fade-in on the next frame so the transition runs.\n requestAnimationFrame(() => this.panelRef?.setInput('visible', true));\n\n this.armLifeTimer();\n this.tooltipShow.emit();\n }\n\n /** @ignore */\n private remove(): void {\n this.clearLifeTimer();\n this.clearShowTimer();\n if (!this.overlayRef?.hasAttached()) return;\n this.overlayRef.detach();\n this.panelRef = null;\n this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');\n this.tooltipHide.emit();\n }\n\n /** @ignore Built once, reused across shows; positions refreshed each time. */\n private getOverlayRef(): OverlayRef {\n if (this.overlayRef) {\n this.positionStrategy?.withPositions(this.positionsFor(this.tooltipPosition()));\n return this.overlayRef;\n }\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withViewportMargin(ARROW_GAP)\n .withPositions(this.positionsFor(this.tooltipPosition()));\n\n // Single subscription for the whole lifecycle → arrow follows the effective side.\n this.positionStrategy.positionChanges.subscribe((change) => {\n this.panelRef?.setInput('position', this.sideOf(change.connectionPair));\n });\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n panelClass: 'ui-tooltip-overlay',\n hasBackdrop: false,\n });\n this.bindPanelEvents(this.overlayRef);\n return this.overlayRef;\n }\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n private positionsFor(pos: TooltipPosition): ConnectedPosition[] {\n const ox = this.positionLeft();\n const oy = this.positionTop();\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetX: ox,\n offsetY: -ARROW_GAP + oy,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetX: ox,\n offsetY: ARROW_GAP + oy,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP + ox,\n offsetY: oy,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP + ox,\n offsetY: oy,\n };\n const primary: Record<TooltipPosition, ConnectedPosition> = { top, bottom, left, right };\n // fitContent=false → keep only the preferred side (no auto-flip).\n if (!this.fitContent()) return [primary[pos]];\n\n const order: Record<TooltipPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[pos];\n }\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n private sideOf(pair: ConnectedPosition): TooltipPosition {\n if (pair.overlayY === 'bottom') return 'top';\n if (pair.overlayY === 'top') return 'bottom';\n if (pair.overlayX === 'end') return 'left';\n return 'right';\n }\n\n // --- Content ---------------------------------------------------------\n\n /** @ignore */\n private applyContent(): void {\n if (!this.panelRef) return;\n const content = this.content();\n if (this.hasTemplate()) {\n this.panelRef.setInput('template', content as TemplateRef<unknown>);\n this.panelRef.setInput('templateContext', this.tooltipContext());\n this.panelRef.setInput('text', undefined);\n } else {\n this.panelRef.setInput('text', content as string | undefined);\n this.panelRef.setInput('template', undefined);\n }\n this.panelRef.setInput('escape', this.escape());\n this.panelRef.setInput('styleClass', this.tooltipStyleClass());\n this.panelRef.setInput('interactive', !this.autoHide());\n }\n\n /** @ignore */\n private hasContent(): boolean {\n const c = this.content();\n return this.hasTemplate() || !!(typeof c === 'string' && c.length);\n }\n\n /** @ignore Whether the trigger text is visually truncated. */\n private hasEllipsis(): boolean {\n const el = this.el.nativeElement;\n return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;\n }\n\n // --- Interactive / dismiss listeners --------------------------------\n\n /** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */\n private bindPanelEvents(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n this.disposers.push(\n this.renderer.listen(panel, 'mouseenter', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'mouseleave', () => {\n if (!this.autoHide()) this.deactivate();\n }),\n this.renderer.listen(panel, 'focusin', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'focusout', (event: FocusEvent) => {\n if (this.autoHide() || panel.contains(event.relatedTarget as Node | null)) return;\n this.deactivate();\n }),\n );\n }\n\n /** @ignore The focus moved into an interactive panel rather than away from it. */\n private movedIntoPanel(target: EventTarget | null): boolean {\n if (this.autoHide() || !target) return false;\n const panel = this.overlayRef?.overlayElement;\n return !!panel && panel.contains(target as Node);\n }\n\n // --- Timers ----------------------------------------------------------\n\n /** @ignore */\n private armLifeTimer(): void {\n this.clearLifeTimer();\n const life = this.life();\n if (life > 0) this.lifeTimer = setTimeout(() => this.remove(), life);\n }\n\n /** @ignore */\n private clearShowTimer(): void {\n if (this.showTimer) {\n clearTimeout(this.showTimer);\n this.showTimer = null;\n }\n }\n\n /** @ignore */\n private clearHideTimer(): void {\n if (this.hideTimer) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n /** @ignore */\n private clearLifeTimer(): void {\n if (this.lifeTimer) {\n clearTimeout(this.lifeTimer);\n this.lifeTimer = null;\n }\n }\n\n /** @ignore */\n private destroy(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n this.clearLifeTimer();\n this.disposers.forEach((off) => off());\n this.disposers.length = 0;\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.panelRef = null;\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-tooltip\n */\n\nexport * from './lib/ui-tooltip-panel';\nexport * from './lib/ui-tooltip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;AAMG;MAQU,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAwB;;AAExC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAW;;QAElC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI;mFAAC;;AAEpB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAE5B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,KAAK;qFAAC;;AAExC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;;QAEtB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK;wFAAC;;AAGP,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,YAAA,MAAM,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