@su-labs/tooltip 20.0.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@ Tooltips for Angular:
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install @su-labs/tooltip@
|
|
21
|
+
npm install @su-labs/tooltip@ng21
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
This is the Angular
|
|
24
|
+
This is the Angular 21 version. For the newest Angular, install `@su-labs/tooltip` without a tag.
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
27
27
|
|
|
@@ -14,74 +14,74 @@ const DEFAULT_DURATION = 200;
|
|
|
14
14
|
*/
|
|
15
15
|
class SuTooltipComponent {
|
|
16
16
|
/** What the tooltip shows: a text, or an `<ng-template>` for links, formatting or any other markup */
|
|
17
|
-
text = input('', ...(ngDevMode ? [{ debugName: "text" }] : []));
|
|
17
|
+
text = input('', ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
18
18
|
/** The trigger: the content between the tags, or a "?" icon after it that grows into the tooltip @default 'content' */
|
|
19
|
-
trigger = input('content', ...(ngDevMode ? [{ debugName: "trigger" }] : []));
|
|
19
|
+
trigger = input('content', ...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
20
20
|
/** The icon instead of the "?": a short text such as `i` or `!`, or an `<ng-template>` with your own SVG */
|
|
21
|
-
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
21
|
+
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
22
22
|
/** The side the tooltip opens on, lined up with the trigger's start or end with `-start` and `-end` @default 'top' */
|
|
23
|
-
placement = input('top', ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
23
|
+
placement = input('top', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
24
24
|
/** What opens it: `hover` (and keyboard focus) or `click` @default 'hover', 'click' for the icon */
|
|
25
|
-
openOn = input(...(ngDevMode ? [undefined, { debugName: "openOn" }] : []));
|
|
25
|
+
openOn = input(...(ngDevMode ? [undefined, { debugName: "openOn" }] : /* istanbul ignore next */ []));
|
|
26
26
|
/**
|
|
27
27
|
* The pointer can move onto the tooltip, e.g. to click a link in it; otherwise the pointer goes through it and
|
|
28
28
|
* it closes as soon as the pointer leaves the trigger. Always on with `click` @default false
|
|
29
29
|
*/
|
|
30
|
-
interactive = input(false, ...(ngDevMode ?
|
|
30
|
+
interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
31
31
|
/** Grows out of the trigger when it opens and back into it when it closes; off when the user prefers less motion @default true */
|
|
32
|
-
animated = input(true, ...(ngDevMode ?
|
|
32
|
+
animated = input(true, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
33
33
|
/** The tooltip's width, any CSS length; without it, it fits its text up to `--su-tooltip-max-width` (`16rem` for the icon) */
|
|
34
|
-
width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
|
|
34
|
+
width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
35
35
|
/** The arrow pointing at the trigger, beside content triggers @default true */
|
|
36
|
-
arrow = input(true, ...(ngDevMode ?
|
|
36
|
+
arrow = input(true, { ...(ngDevMode ? { debugName: "arrow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
37
37
|
/** Pixels between the trigger and the tooltip @default 8 */
|
|
38
|
-
offset = input(8, ...(ngDevMode ?
|
|
38
|
+
offset = input(8, { ...(ngDevMode ? { debugName: "offset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
39
39
|
/** Milliseconds the pointer rests on the trigger before it opens @default 300 */
|
|
40
|
-
showDelay = input(300, ...(ngDevMode ?
|
|
40
|
+
showDelay = input(300, { ...(ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
41
41
|
/** Milliseconds before it closes once the pointer leaves @default 100 */
|
|
42
|
-
hideDelay = input(100, ...(ngDevMode ?
|
|
42
|
+
hideDelay = input(100, { ...(ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
43
43
|
/** Doesn't open, and closes if open @default false */
|
|
44
|
-
disabled = input(false, ...(ngDevMode ?
|
|
44
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
45
45
|
/** The icon's name for screen readers @default labels.more */
|
|
46
|
-
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
46
|
+
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
47
47
|
/** Texts to replace, e.g. in the page's language */
|
|
48
|
-
labels = input({}, ...(ngDevMode ? [{ debugName: "labels" }] : []));
|
|
48
|
+
labels = input({}, ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
49
49
|
/** Whether the tooltip is open; setting it opens or closes it at once */
|
|
50
|
-
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
50
|
+
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
51
51
|
panelId = `su-tooltip-${nextTooltipId++}`;
|
|
52
|
-
isIcon = computed(() => this.trigger() === 'icon', ...(ngDevMode ? [{ debugName: "isIcon" }] : []));
|
|
53
|
-
opensOn = computed(() => this.openOn() ?? (this.isIcon() ? 'click' : 'hover'), ...(ngDevMode ? [{ debugName: "opensOn" }] : []));
|
|
54
|
-
isInteractive = computed(() => this.interactive() || this.opensOn() === 'click', ...(ngDevMode ? [{ debugName: "isInteractive" }] : []));
|
|
52
|
+
isIcon = computed(() => this.trigger() === 'icon', ...(ngDevMode ? [{ debugName: "isIcon" }] : /* istanbul ignore next */ []));
|
|
53
|
+
opensOn = computed(() => this.openOn() ?? (this.isIcon() ? 'click' : 'hover'), ...(ngDevMode ? [{ debugName: "opensOn" }] : /* istanbul ignore next */ []));
|
|
54
|
+
isInteractive = computed(() => this.interactive() || this.opensOn() === 'click', ...(ngDevMode ? [{ debugName: "isInteractive" }] : /* istanbul ignore next */ []));
|
|
55
55
|
/** A hover tooltip describes its trigger; the others are shown and hidden by a button */
|
|
56
|
-
describes = computed(() => !this.isIcon() && this.opensOn() === 'hover', ...(ngDevMode ? [{ debugName: "describes" }] : []));
|
|
56
|
+
describes = computed(() => !this.isIcon() && this.opensOn() === 'hover', ...(ngDevMode ? [{ debugName: "describes" }] : /* istanbul ignore next */ []));
|
|
57
57
|
template = computed(() => {
|
|
58
58
|
const text = this.text();
|
|
59
59
|
return text instanceof TemplateRef ? text : null;
|
|
60
|
-
}, ...(ngDevMode ? [{ debugName: "template" }] : []));
|
|
60
|
+
}, ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
61
61
|
plainText = computed(() => {
|
|
62
62
|
const text = this.text();
|
|
63
63
|
return typeof text === 'string' ? text : '';
|
|
64
|
-
}, ...(ngDevMode ? [{ debugName: "plainText" }] : []));
|
|
64
|
+
}, ...(ngDevMode ? [{ debugName: "plainText" }] : /* istanbul ignore next */ []));
|
|
65
65
|
iconTemplate = computed(() => {
|
|
66
66
|
const icon = this.icon();
|
|
67
67
|
return icon instanceof TemplateRef ? icon : null;
|
|
68
|
-
}, ...(ngDevMode ? [{ debugName: "iconTemplate" }] : []));
|
|
68
|
+
}, ...(ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []));
|
|
69
69
|
iconText = computed(() => {
|
|
70
70
|
const icon = this.icon();
|
|
71
71
|
return typeof icon === 'string' ? icon : '';
|
|
72
|
-
}, ...(ngDevMode ? [{ debugName: "iconText" }] : []));
|
|
72
|
+
}, ...(ngDevMode ? [{ debugName: "iconText" }] : /* istanbul ignore next */ []));
|
|
73
73
|
texts = computed(() => ({
|
|
74
74
|
...SU_TOOLTIP_LABELS,
|
|
75
75
|
...this.labels(),
|
|
76
|
-
}), ...(ngDevMode ? [{ debugName: "texts" }] : []));
|
|
76
|
+
}), ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
77
77
|
/** The close button shows the "×" once the icon has opened, so the "?" turns into it */
|
|
78
|
-
morphed = signal(false, ...(ngDevMode ? [{ debugName: "morphed" }] : []));
|
|
78
|
+
morphed = signal(false, ...(ngDevMode ? [{ debugName: "morphed" }] : /* istanbul ignore next */ []));
|
|
79
79
|
host = inject(ElementRef);
|
|
80
80
|
document = inject(DOCUMENT);
|
|
81
81
|
panel = viewChild.required('panel');
|
|
82
82
|
content = viewChild.required('content');
|
|
83
|
-
iconButton = viewChild('iconButton', ...(ngDevMode ? [{ debugName: "iconButton" }] : []));
|
|
84
|
-
closeButton = viewChild('closeButton', ...(ngDevMode ? [{ debugName: "closeButton" }] : []));
|
|
83
|
+
iconButton = viewChild('iconButton', ...(ngDevMode ? [{ debugName: "iconButton" }] : /* istanbul ignore next */ []));
|
|
84
|
+
closeButton = viewChild('closeButton', ...(ngDevMode ? [{ debugName: "closeButton" }] : /* istanbul ignore next */ []));
|
|
85
85
|
controller = new SuTooltipController();
|
|
86
86
|
animation = null;
|
|
87
87
|
iconClip = null;
|
|
@@ -434,10 +434,10 @@ class SuTooltipComponent {
|
|
|
434
434
|
asNode(target) {
|
|
435
435
|
return target instanceof Node ? target : null;
|
|
436
436
|
}
|
|
437
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
438
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
437
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
438
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: SuTooltipComponent, isStandalone: true, selector: "su-lib-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "trigger", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, arrow: { classPropertyName: "arrow", publicName: "arrow", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", 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 }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { listeners: { "pointerenter": "onPointerEnter($event)", "pointerleave": "onPointerLeave($event)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)", "click": "onClick($event)", "keydown": "onKeydown($event)" }, properties: { "class.su-tooltip-open": "open()", "style.--su-tooltip-width": "width()", "style.--su-tooltip-offset.px": "offset()" }, classAttribute: "su-tooltip" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "iconButton", first: true, predicate: ["iconButton"], descendants: true, isSignal: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], ngImport: i0, template: "<span #content class=\"su-tooltip-content\"><ng-content /></span>\n@if (isIcon()) {\n <button\n #iconButton\n type=\"button\"\n class=\"su-tooltip-icon\"\n [attr.aria-label]=\"label() ?? texts().more\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </button>\n}\n<ng-template #iconGlyph>\n @if (iconTemplate(); as glyph) {\n <ng-container [ngTemplateOutlet]=\"glyph\" />\n } @else if (iconText()) {\n <span class=\"su-tooltip-icon-text\" aria-hidden=\"true\">{{ iconText() }}</span>\n } @else {\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M9 9a3 3 0 1 1 4.5 2.6c-.9.5-1.5 1.2-1.5 2.2V15\" />\n <path d=\"M12 19h.01\" />\n </svg>\n }\n</ng-template>\n<div\n #panel\n popover=\"manual\"\n class=\"su-tooltip-panel\"\n [id]=\"panelId\"\n [attr.role]=\"describes() ? 'tooltip' : null\"\n [class.su-tooltip-panel-icon]=\"isIcon()\"\n [class.su-tooltip-interactive]=\"isInteractive()\">\n @if (isIcon()) {\n <button\n #closeButton\n type=\"button\"\n class=\"su-tooltip-close\"\n [class.su-tooltip-morphed]=\"morphed()\"\n [attr.aria-label]=\"texts().close\"\n (click)=\"onClose()\">\n <span class=\"su-tooltip-glyph su-tooltip-glyph-icon\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </span>\n <span class=\"su-tooltip-glyph su-tooltip-glyph-close\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6L6 18\" />\n </svg>\n </span>\n </button>\n } @else if (arrow()) {\n <span class=\"su-tooltip-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"su-tooltip-body\">\n @if (template(); as body) {\n <ng-container [ngTemplateOutlet]=\"body\" />\n } @else {\n {{ plainText() }}\n }\n </div>\n</div>\n", styles: [":host{display:inline}.su-tooltip-content:not(:empty)+.su-tooltip-icon{margin-inline-start:.25em}.su-tooltip-icon,.su-tooltip-close{block-size:var(--su-tooltip-icon-size, 1.375rem);border:0;border-radius:50%;cursor:pointer;display:inline-grid;inline-size:var(--su-tooltip-icon-size, 1.375rem);padding:0;place-items:center}.su-tooltip-icon:focus-visible,.su-tooltip-close:focus-visible{outline:var(--su-tooltip-focus-ring, 2px solid currentColor);outline-offset:2px}.su-tooltip-icon svg,.su-tooltip-close svg{block-size:62%;fill:none;inline-size:62%;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5}.su-tooltip-icon{background:var(--su-tooltip-icon-background, var(--su-tooltip-background, #1f2937));color:var(--su-tooltip-icon-color, var(--su-tooltip-text-color, #f9fafb));vertical-align:middle}.su-tooltip-panel{background:var(--su-tooltip-background, #1f2937);border:var(--su-tooltip-border, 0);border-radius:var(--su-tooltip-radius, .375rem);box-shadow:var(--su-tooltip-shadow, 0 6px 20px rgba(0, 0, 0, .18));box-sizing:border-box;color:var(--su-tooltip-text-color, #f9fafb);display:none;font-family:var(--su-tooltip-font-family, inherit);font-size:var(--su-tooltip-font-size, .875rem);font-weight:400;height:max-content;inset:auto;line-height:var(--su-tooltip-line-height, 1.45);margin:0;max-width:min(var(--su-tooltip-max-width, 20rem),100vw - 16px);overflow:visible;padding:var(--su-tooltip-padding, .375rem .625rem);pointer-events:none;position:fixed;text-align:start;white-space:normal;width:var(--su-tooltip-width, max-content);z-index:var(--su-tooltip-z-index, 1000)}.su-tooltip-panel.su-tooltip-shown{display:block}.su-tooltip-panel.su-tooltip-interactive{pointer-events:auto}.su-tooltip-panel.su-tooltip-interactive:before{content:\"\";position:absolute}.su-tooltip-panel[data-side=top]:before{block-size:calc(var(--su-tooltip-offset, 8px) + 2px);inset-inline:0;top:100%}.su-tooltip-panel[data-side=bottom]:before{block-size:calc(var(--su-tooltip-offset, 8px) + 2px);bottom:100%;inset-inline:0}.su-tooltip-panel[data-side=left]:before{inline-size:calc(var(--su-tooltip-offset, 8px) + 2px);inset-block:0;left:100%}.su-tooltip-panel[data-side=right]:before{inline-size:calc(var(--su-tooltip-offset, 8px) + 2px);inset-block:0;right:100%}.su-tooltip-arrow{--su-tooltip-arrow-half: calc(var(--su-tooltip-arrow-size, 8px) / -2);background:inherit;block-size:var(--su-tooltip-arrow-size, 8px);inline-size:var(--su-tooltip-arrow-size, 8px);position:absolute;rotate:45deg}[data-side=top]>.su-tooltip-arrow{bottom:var(--su-tooltip-arrow-half);left:var(--su-tooltip-arrow-offset, 50%);translate:-50% 0}[data-side=bottom]>.su-tooltip-arrow{left:var(--su-tooltip-arrow-offset, 50%);top:var(--su-tooltip-arrow-half);translate:-50% 0}[data-side=left]>.su-tooltip-arrow{right:var(--su-tooltip-arrow-half);top:var(--su-tooltip-arrow-offset, 50%);translate:0 -50%}[data-side=right]>.su-tooltip-arrow{left:var(--su-tooltip-arrow-half);top:var(--su-tooltip-arrow-offset, 50%);translate:0 -50%}.su-tooltip-panel-icon{--su-tooltip-icon-gap: .5rem;background:var(--su-tooltip-icon-background, var(--su-tooltip-background, #1f2937));border-radius:var(--su-tooltip-icon-radius, .875rem);color:var(--su-tooltip-icon-color, var(--su-tooltip-text-color, #f9fafb));max-width:calc(100vw - 16px);min-block-size:calc(var(--su-tooltip-icon-size, 1.375rem) + 12px);overflow:hidden;padding:var(--su-tooltip-icon-padding, .5rem .75rem);width:var(--su-tooltip-width, 16rem)}.su-tooltip-panel-icon:not([data-inline=right]){padding-left:calc(6px + var(--su-tooltip-icon-size, 1.375rem) + var(--su-tooltip-icon-gap))}.su-tooltip-panel-icon[data-inline=right]{padding-right:calc(6px + var(--su-tooltip-icon-size, 1.375rem) + var(--su-tooltip-icon-gap))}.su-tooltip-close{background:transparent;color:inherit;display:grid;left:var(--su-tooltip-icon-x, 6px);position:absolute;top:var(--su-tooltip-icon-y, 6px)}.su-tooltip-icon-text{font-size:calc(var(--su-tooltip-icon-size, 1.375rem) * .6);font-weight:700;line-height:1}.su-tooltip-glyph{block-size:100%;display:grid;grid-area:1/1;inline-size:100%;place-items:center;transition:opacity var(--su-tooltip-duration, .2s) ease,rotate var(--su-tooltip-duration, .2s) var(--su-tooltip-easing, cubic-bezier(.2, .9, .3, 1.1))}.su-tooltip-glyph-close,.su-tooltip-morphed .su-tooltip-glyph-icon{opacity:0;rotate:-90deg}.su-tooltip-morphed .su-tooltip-glyph-close{opacity:1;rotate:0deg}@media(prefers-reduced-motion:reduce){.su-tooltip-glyph{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
439
439
|
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuTooltipComponent, decorators: [{
|
|
441
441
|
type: Component,
|
|
442
442
|
args: [{ selector: 'su-lib-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], host: {
|
|
443
443
|
class: 'su-tooltip',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"su-labs-tooltip.mjs","sources":["../../../../compat/angular-20/build/tooltip/src/lib/tooltip/tooltip.component.ts","../../../../compat/angular-20/build/tooltip/src/lib/tooltip/tooltip.component.html","../../../../compat/angular-20/build/tooltip/src/su-labs-tooltip.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { afterRenderEffect, booleanAttribute, ChangeDetectionStrategy, Component, computed, DestroyRef, effect, ElementRef, inject, input, model, numberAttribute, signal, TemplateRef, untracked, viewChild } from '@angular/core';\nimport { SU_TOOLTIP_LABELS, suTooltipIconClip, suTooltipIconPosition, SuTooltipLabels, SuTooltipOpenOn, SuTooltipPlacement, suTooltipPosition, SuTooltipSize, SuTooltipTrigger, SuTooltipController } from '@su-labs/core/tooltip';\n\nlet nextTooltipId = 0;\n\nconst FOCUSABLE =\n 'a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]';\n\nconst DEFAULT_DURATION = 200;\n\n/**\n * A tooltip over `SuTooltipController` from `@su-labs/core/tooltip`. Its content is the trigger, `text` is what the\n * tooltip shows. It opens on hover and focus or on click (`openOn`), beside the trigger with an arrow, and grows out\n * of it. With `trigger=\"icon\"` a \"?\" button follows the content and the tooltip grows out of that icon, which turns\n * into its close button.\n */\n@Component({\n selector: 'su-lib-tooltip',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet],\n templateUrl: './tooltip.component.html',\n styleUrl: './tooltip.component.scss',\n host: {\n class: 'su-tooltip',\n '[class.su-tooltip-open]': 'open()',\n '[style.--su-tooltip-width]': 'width()',\n '[style.--su-tooltip-offset.px]': 'offset()',\n '(pointerenter)': 'onPointerEnter($event)',\n '(pointerleave)': 'onPointerLeave($event)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n '(click)': 'onClick($event)',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class SuTooltipComponent {\n /** What the tooltip shows: a text, or an `<ng-template>` for links, formatting or any other markup */\n readonly text = input<string | TemplateRef<unknown>>('');\n /** The trigger: the content between the tags, or a \"?\" icon after it that grows into the tooltip @default 'content' */\n readonly trigger = input<SuTooltipTrigger>('content');\n /** The icon instead of the \"?\": a short text such as `i` or `!`, or an `<ng-template>` with your own SVG */\n readonly icon = input<string | TemplateRef<unknown>>('');\n /** The side the tooltip opens on, lined up with the trigger's start or end with `-start` and `-end` @default 'top' */\n readonly placement = input<SuTooltipPlacement>('top');\n /** What opens it: `hover` (and keyboard focus) or `click` @default 'hover', 'click' for the icon */\n readonly openOn = input<SuTooltipOpenOn>();\n /**\n * The pointer can move onto the tooltip, e.g. to click a link in it; otherwise the pointer goes through it and\n * it closes as soon as the pointer leaves the trigger. Always on with `click` @default false\n */\n readonly interactive = input(false, { transform: booleanAttribute });\n /** Grows out of the trigger when it opens and back into it when it closes; off when the user prefers less motion @default true */\n readonly animated = input(true, { transform: booleanAttribute });\n /** The tooltip's width, any CSS length; without it, it fits its text up to `--su-tooltip-max-width` (`16rem` for the icon) */\n readonly width = input<string>();\n /** The arrow pointing at the trigger, beside content triggers @default true */\n readonly arrow = input(true, { transform: booleanAttribute });\n /** Pixels between the trigger and the tooltip @default 8 */\n readonly offset = input(8, { transform: numberAttribute });\n /** Milliseconds the pointer rests on the trigger before it opens @default 300 */\n readonly showDelay = input(300, { transform: numberAttribute });\n /** Milliseconds before it closes once the pointer leaves @default 100 */\n readonly hideDelay = input(100, { transform: numberAttribute });\n /** Doesn't open, and closes if open @default false */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The icon's name for screen readers @default labels.more */\n readonly label = input<string>();\n /** Texts to replace, e.g. in the page's language */\n readonly labels = input<Partial<SuTooltipLabels>>({});\n /** Whether the tooltip is open; setting it opens or closes it at once */\n readonly open = model(false);\n\n protected readonly panelId = `su-tooltip-${nextTooltipId++}`;\n protected readonly isIcon = computed(() => this.trigger() === 'icon');\n protected readonly opensOn = computed<SuTooltipOpenOn>(\n () => this.openOn() ?? (this.isIcon() ? 'click' : 'hover')\n );\n protected readonly isInteractive = computed(\n () => this.interactive() || this.opensOn() === 'click'\n );\n /** A hover tooltip describes its trigger; the others are shown and hidden by a button */\n protected readonly describes = computed(\n () => !this.isIcon() && this.opensOn() === 'hover'\n );\n protected readonly template = computed(() => {\n const text = this.text();\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly plainText = computed(() => {\n const text = this.text();\n return typeof text === 'string' ? text : '';\n });\n protected readonly iconTemplate = computed(() => {\n const icon = this.icon();\n return icon instanceof TemplateRef ? icon : null;\n });\n protected readonly iconText = computed(() => {\n const icon = this.icon();\n return typeof icon === 'string' ? icon : '';\n });\n protected readonly texts = computed<SuTooltipLabels>(() => ({\n ...SU_TOOLTIP_LABELS,\n ...this.labels(),\n }));\n /** The close button shows the \"×\" once the icon has opened, so the \"?\" turns into it */\n protected readonly morphed = signal(false);\n\n private readonly host: ElementRef<HTMLElement> = inject(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly panel =\n viewChild.required<ElementRef<HTMLElement>>('panel');\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n private readonly iconButton =\n viewChild<ElementRef<HTMLButtonElement>>('iconButton');\n private readonly closeButton =\n viewChild<ElementRef<HTMLButtonElement>>('closeButton');\n private readonly controller = new SuTooltipController();\n private animation: Animation | null = null;\n private iconClip: { readonly from: string; readonly to: string } | null =\n null;\n private shown = false;\n /** The close button takes focus once the icon tooltip opens, after the user opened it with the icon */\n private focusOnOpen = false;\n private leftWhileGrowing = false;\n /** Focus coming back to the trigger after the tooltip closed doesn't open it again */\n private returningFocus = false;\n private linkedTrigger: HTMLElement | null = null;\n\n constructor() {\n const unsubscribe = this.controller.state.subscribe(state =>\n this.open.set(state.open)\n );\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => {\n unsubscribe();\n this.controller.cancel();\n this.animation?.cancel();\n });\n\n effect(() => {\n const delays = {\n showDelay: this.showDelay(),\n hideDelay: this.hideDelay(),\n };\n untracked(() => this.controller.setDelays(delays));\n });\n\n effect(() => {\n const open = this.open() && !this.disabled();\n untracked(() => {\n this.controller.setOpen(open);\n this.open.set(open);\n });\n });\n\n effect(onCleanup => {\n if (!this.open()) {\n return;\n }\n const onKeydown = (event: KeyboardEvent) => this.onDocumentKeydown(event);\n const onPointerDown = (event: PointerEvent) =>\n this.onDocumentPointerDown(event);\n const onMove = () => this.place();\n const view = this.document.defaultView;\n this.document.addEventListener('keydown', onKeydown);\n this.document.addEventListener('pointerdown', onPointerDown);\n view?.addEventListener('scroll', onMove, true);\n view?.addEventListener('resize', onMove);\n onCleanup(() => {\n this.document.removeEventListener('keydown', onKeydown);\n this.document.removeEventListener('pointerdown', onPointerDown);\n view?.removeEventListener('scroll', onMove, true);\n view?.removeEventListener('resize', onMove);\n });\n });\n\n afterRenderEffect(() => {\n const open = this.open();\n untracked(() => (open ? this.reveal() : this.conceal()));\n });\n\n afterRenderEffect(() => {\n const trigger = this.isIcon() ? null : this.contentTrigger();\n const describes = this.describes();\n const open = this.open();\n untracked(() => this.linkTrigger(trigger, describes, open));\n });\n }\n\n /** Opens the tooltip now */\n show(): void {\n this.controller.open();\n }\n\n /** Closes the tooltip now */\n hide(): void {\n this.controller.close();\n }\n\n /** Opens or closes the tooltip now */\n toggle(): void {\n this.controller.toggle();\n }\n\n protected onPointerEnter(event: PointerEvent): void {\n if (\n this.disabled() ||\n event.pointerType === 'touch' ||\n this.opensOn() !== 'hover'\n ) {\n return;\n }\n this.controller.show();\n }\n\n protected onPointerLeave(event: PointerEvent): void {\n if (event.pointerType === 'touch' || this.opensOn() !== 'hover') {\n return;\n }\n if (this.isGrowing()) {\n this.leftWhileGrowing = true;\n return;\n }\n this.controller.hide();\n }\n\n protected onFocusIn(event: FocusEvent): void {\n if (this.inPanel(event.target)) {\n this.controller.cancel();\n return;\n }\n if (\n !this.disabled() &&\n !this.returningFocus &&\n this.opensOn() === 'hover'\n ) {\n this.controller.open();\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = this.asNode(event.relatedTarget);\n if (!next || this.host.nativeElement.contains(next)) {\n return;\n }\n this.controller.close();\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.inPanel(event.target)) {\n return;\n }\n if (this.isIcon()) {\n if (!this.iconButton()?.nativeElement.contains(this.asNode(event.target))) {\n return;\n }\n this.focusOnOpen = !this.open();\n this.controller.toggle();\n return;\n }\n if (this.opensOn() === 'click') {\n this.controller.toggle();\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.open()) {\n event.stopPropagation();\n this.closeAndRefocus();\n return;\n }\n const isHostButton =\n !this.isIcon() &&\n this.opensOn() === 'click' &&\n event.target === this.host.nativeElement &&\n this.contentTrigger() === this.host.nativeElement;\n if (isHostButton && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n this.controller.toggle();\n }\n }\n\n protected onClose(): void {\n this.closeAndRefocus();\n }\n\n private onDocumentKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && !event.defaultPrevented) {\n this.closeAndRefocus();\n }\n }\n\n private onDocumentPointerDown(event: PointerEvent): void {\n const target = this.asNode(event.target);\n if (!target || !this.host.nativeElement.contains(target)) {\n this.controller.close();\n }\n }\n\n private closeAndRefocus(): void {\n const hadFocus = this.host.nativeElement.contains(\n this.document.activeElement\n );\n this.controller.close();\n if (hadFocus) {\n this.returningFocus = true;\n this.triggerElement()?.focus({ preventScroll: true });\n this.returningFocus = false;\n }\n }\n\n private reveal(): void {\n const panel = this.panel().nativeElement;\n this.animation?.cancel();\n this.leftWhileGrowing = false;\n if (!this.shown) {\n this.shown = true;\n panel.classList.add('su-tooltip-shown');\n if (typeof panel.showPopover === 'function' && !panel.matches(':popover-open')) {\n panel.showPopover();\n }\n }\n this.place();\n if (this.focusOnOpen) {\n this.focusOnOpen = false;\n this.closeButton()?.nativeElement.focus({ preventScroll: true });\n }\n requestFrame(this.document, () => this.morphed.set(true));\n if (this.moves(panel)) {\n this.animation = this.isIcon()\n ? this.growFromIcon(panel)\n : panel.animate(\n [\n { opacity: 0, transform: 'scale(0.6)' },\n { opacity: 1, transform: 'none' },\n ],\n { duration: this.duration(panel), easing: this.easing(panel) }\n );\n if (this.animation) {\n this.animation.onfinish = () => this.hideIfLeftWhileGrowing();\n }\n }\n }\n\n /** While it grows, only its visible part counts as under the pointer, so a pointer on the rest seems to leave it */\n private isGrowing(): boolean {\n return this.open() && this.animation?.playState === 'running';\n }\n\n private hideIfLeftWhileGrowing(): void {\n this.animation = null;\n if (this.leftWhileGrowing && !this.host.nativeElement.matches(':hover')) {\n this.controller.hide();\n }\n }\n\n private conceal(): void {\n this.morphed.set(false);\n if (!this.shown) {\n return;\n }\n const panel = this.panel().nativeElement;\n this.animation?.cancel();\n if (!this.moves(panel)) {\n this.removePanel(panel);\n return;\n }\n const duration = this.duration(panel) * 0.75;\n const animation =\n this.isIcon() && this.iconClip\n ? panel.animate(\n [{ clipPath: this.iconClip.to }, { clipPath: this.iconClip.from }],\n { duration, easing: 'ease-in' }\n )\n : panel.animate(\n [\n { opacity: 1, transform: 'none' },\n { opacity: 0, transform: 'scale(0.6)' },\n ],\n { duration, easing: 'ease-in' }\n );\n animation.onfinish = () => this.removePanel(panel);\n this.animation = animation;\n }\n\n private removePanel(panel: HTMLElement): void {\n this.shown = false;\n this.animation = null;\n panel.classList.remove('su-tooltip-shown');\n if (typeof panel.hidePopover === 'function' && panel.matches(':popover-open')) {\n panel.hidePopover();\n }\n }\n\n private growFromIcon(panel: HTMLElement): Animation | null {\n if (!this.iconClip) {\n return null;\n }\n const duration = this.duration(panel);\n panel\n .querySelector('.su-tooltip-body')\n ?.animate([{ opacity: 0 }, { opacity: 0, offset: 0.4 }, { opacity: 1 }], {\n duration,\n });\n return panel.animate(\n [{ clipPath: this.iconClip.from }, { clipPath: this.iconClip.to }],\n { duration, easing: this.easing(panel) }\n );\n }\n\n private place(): void {\n if (!this.shown) {\n return;\n }\n const panel = this.panel().nativeElement;\n const view = this.document.defaultView;\n const viewport = {\n width: this.document.documentElement.clientWidth,\n height: view?.innerHeight ?? 0,\n };\n const rtl = view?.getComputedStyle(this.host.nativeElement).direction === 'rtl';\n const size: SuTooltipSize = {\n width: panel.offsetWidth,\n height: panel.offsetHeight,\n };\n const icon = this.iconButton()?.nativeElement;\n if (this.isIcon() && icon) {\n const iconRect = icon.getBoundingClientRect();\n const position = suTooltipIconPosition(iconRect, size, {\n placement: this.placement(),\n viewport,\n rtl,\n });\n panel.dataset['inline'] = position.inline;\n panel.dataset['block'] = position.block;\n panel.style.left = `${position.x}px`;\n panel.style.top = `${position.y}px`;\n panel.style.setProperty('--su-tooltip-icon-x', `${position.icon.x}px`);\n panel.style.setProperty('--su-tooltip-icon-y', `${position.icon.y}px`);\n const radius = parseFloat(view?.getComputedStyle(panel).borderTopLeftRadius ?? '') || 0;\n this.iconClip = suTooltipIconClip(position, size, iconRect.width, radius);\n return;\n }\n const position = suTooltipPosition(\n this.content().nativeElement.getBoundingClientRect(),\n size,\n { placement: this.placement(), offset: this.offset(), viewport, rtl }\n );\n panel.dataset['side'] = position.side;\n panel.style.left = `${position.x}px`;\n panel.style.top = `${position.y}px`;\n panel.style.transformOrigin = `${position.origin.x}px ${position.origin.y}px`;\n panel.style.setProperty('--su-tooltip-arrow-offset', `${position.arrow}px`);\n }\n\n private moves(panel: HTMLElement): boolean {\n const view = this.document.defaultView;\n return (\n this.animated() &&\n typeof panel.animate === 'function' &&\n !view?.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n );\n }\n\n private duration(panel: HTMLElement): number {\n const value = this.document.defaultView\n ?.getComputedStyle(panel)\n .getPropertyValue('--su-tooltip-duration')\n .trim();\n return toMilliseconds(value) ?? DEFAULT_DURATION;\n }\n\n private easing(panel: HTMLElement): string {\n const value = this.document.defaultView\n ?.getComputedStyle(panel)\n .getPropertyValue('--su-tooltip-easing')\n .trim();\n return value || 'cubic-bezier(0.2, 0.9, 0.3, 1.1)';\n }\n\n /** The element that takes focus for the tooltip: the icon, the content's first focusable element, or the host */\n private triggerElement(): HTMLElement | null {\n return this.isIcon()\n ? (this.iconButton()?.nativeElement ?? null)\n : this.contentTrigger();\n }\n\n private contentTrigger(): HTMLElement {\n return (\n this.content().nativeElement.querySelector<HTMLElement>(FOCUSABLE) ??\n this.host.nativeElement\n );\n }\n\n private linkTrigger(\n trigger: HTMLElement | null,\n describes: boolean,\n open: boolean\n ): void {\n if (this.linkedTrigger && this.linkedTrigger !== trigger) {\n this.unlink(this.linkedTrigger);\n }\n this.linkedTrigger = trigger;\n if (!trigger) {\n return;\n }\n const isHost = trigger === this.host.nativeElement;\n if (describes) {\n setToken(trigger, 'aria-describedby', this.panelId, true);\n trigger.removeAttribute('aria-expanded');\n trigger.removeAttribute('aria-controls');\n } else {\n setToken(trigger, 'aria-describedby', this.panelId, false);\n trigger.setAttribute('aria-expanded', String(open));\n trigger.setAttribute('aria-controls', this.panelId);\n }\n toggleAttribute(trigger, 'role', 'button', isHost && !describes);\n toggleAttribute(trigger, 'tabindex', '0', isHost);\n }\n\n private unlink(trigger: HTMLElement): void {\n setToken(trigger, 'aria-describedby', this.panelId, false);\n trigger.removeAttribute('aria-expanded');\n trigger.removeAttribute('aria-controls');\n if (trigger === this.host.nativeElement) {\n trigger.removeAttribute('role');\n trigger.removeAttribute('tabindex');\n }\n }\n\n private inPanel(target: EventTarget | null): boolean {\n const node = this.asNode(target);\n return !!node && this.panel().nativeElement.contains(node);\n }\n\n private asNode(target: EventTarget | null): Node | null {\n return target instanceof Node ? target : null;\n }\n}\n\nfunction setToken(\n element: HTMLElement,\n name: string,\n token: string,\n present: boolean\n): void {\n const tokens = (element.getAttribute(name) ?? '')\n .split(/\\s+/)\n .filter(item => item && item !== token);\n const next = present ? [...tokens, token] : tokens;\n if (next.length) {\n element.setAttribute(name, next.join(' '));\n } else {\n element.removeAttribute(name);\n }\n}\n\nfunction toggleAttribute(\n element: HTMLElement,\n name: string,\n value: string,\n present: boolean\n): void {\n if (present) {\n element.setAttribute(name, value);\n } else {\n element.removeAttribute(name);\n }\n}\n\nfunction toMilliseconds(value: string | undefined): number | null {\n const match = value?.match(/^([\\d.]+)(ms|s)$/);\n if (!match) {\n return null;\n }\n const amount = Number(match[1]);\n return match[2] === 's' ? amount * 1000 : amount;\n}\n\nfunction requestFrame(document: Document, callback: () => void): void {\n const view = document.defaultView;\n if (view?.requestAnimationFrame) {\n view.requestAnimationFrame(callback);\n } else {\n callback();\n }\n}\n","<span #content class=\"su-tooltip-content\"><ng-content /></span>\n@if (isIcon()) {\n <button\n #iconButton\n type=\"button\"\n class=\"su-tooltip-icon\"\n [attr.aria-label]=\"label() ?? texts().more\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </button>\n}\n<ng-template #iconGlyph>\n @if (iconTemplate(); as glyph) {\n <ng-container [ngTemplateOutlet]=\"glyph\" />\n } @else if (iconText()) {\n <span class=\"su-tooltip-icon-text\" aria-hidden=\"true\">{{ iconText() }}</span>\n } @else {\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M9 9a3 3 0 1 1 4.5 2.6c-.9.5-1.5 1.2-1.5 2.2V15\" />\n <path d=\"M12 19h.01\" />\n </svg>\n }\n</ng-template>\n<div\n #panel\n popover=\"manual\"\n class=\"su-tooltip-panel\"\n [id]=\"panelId\"\n [attr.role]=\"describes() ? 'tooltip' : null\"\n [class.su-tooltip-panel-icon]=\"isIcon()\"\n [class.su-tooltip-interactive]=\"isInteractive()\">\n @if (isIcon()) {\n <button\n #closeButton\n type=\"button\"\n class=\"su-tooltip-close\"\n [class.su-tooltip-morphed]=\"morphed()\"\n [attr.aria-label]=\"texts().close\"\n (click)=\"onClose()\">\n <span class=\"su-tooltip-glyph su-tooltip-glyph-icon\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </span>\n <span class=\"su-tooltip-glyph su-tooltip-glyph-close\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6L6 18\" />\n </svg>\n </span>\n </button>\n } @else if (arrow()) {\n <span class=\"su-tooltip-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"su-tooltip-body\">\n @if (template(); as body) {\n <ng-container [ngTemplateOutlet]=\"body\" />\n } @else {\n {{ pl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sources":["../../../../compat/angular-21/build/tooltip/src/lib/tooltip/tooltip.component.ts","../../../../compat/angular-21/build/tooltip/src/lib/tooltip/tooltip.component.html","../../../../compat/angular-21/build/tooltip/src/su-labs-tooltip.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { afterRenderEffect, booleanAttribute, ChangeDetectionStrategy, Component, computed, DestroyRef, effect, ElementRef, inject, input, model, numberAttribute, signal, TemplateRef, untracked, viewChild } from '@angular/core';\nimport { SU_TOOLTIP_LABELS, suTooltipIconClip, suTooltipIconPosition, SuTooltipLabels, SuTooltipOpenOn, SuTooltipPlacement, suTooltipPosition, SuTooltipSize, SuTooltipTrigger, SuTooltipController } from '@su-labs/core/tooltip';\n\nlet nextTooltipId = 0;\n\nconst FOCUSABLE =\n 'a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]';\n\nconst DEFAULT_DURATION = 200;\n\n/**\n * A tooltip over `SuTooltipController` from `@su-labs/core/tooltip`. Its content is the trigger, `text` is what the\n * tooltip shows. It opens on hover and focus or on click (`openOn`), beside the trigger with an arrow, and grows out\n * of it. With `trigger=\"icon\"` a \"?\" button follows the content and the tooltip grows out of that icon, which turns\n * into its close button.\n */\n@Component({\n selector: 'su-lib-tooltip',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet],\n templateUrl: './tooltip.component.html',\n styleUrl: './tooltip.component.scss',\n host: {\n class: 'su-tooltip',\n '[class.su-tooltip-open]': 'open()',\n '[style.--su-tooltip-width]': 'width()',\n '[style.--su-tooltip-offset.px]': 'offset()',\n '(pointerenter)': 'onPointerEnter($event)',\n '(pointerleave)': 'onPointerLeave($event)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n '(click)': 'onClick($event)',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class SuTooltipComponent {\n /** What the tooltip shows: a text, or an `<ng-template>` for links, formatting or any other markup */\n readonly text = input<string | TemplateRef<unknown>>('');\n /** The trigger: the content between the tags, or a \"?\" icon after it that grows into the tooltip @default 'content' */\n readonly trigger = input<SuTooltipTrigger>('content');\n /** The icon instead of the \"?\": a short text such as `i` or `!`, or an `<ng-template>` with your own SVG */\n readonly icon = input<string | TemplateRef<unknown>>('');\n /** The side the tooltip opens on, lined up with the trigger's start or end with `-start` and `-end` @default 'top' */\n readonly placement = input<SuTooltipPlacement>('top');\n /** What opens it: `hover` (and keyboard focus) or `click` @default 'hover', 'click' for the icon */\n readonly openOn = input<SuTooltipOpenOn>();\n /**\n * The pointer can move onto the tooltip, e.g. to click a link in it; otherwise the pointer goes through it and\n * it closes as soon as the pointer leaves the trigger. Always on with `click` @default false\n */\n readonly interactive = input(false, { transform: booleanAttribute });\n /** Grows out of the trigger when it opens and back into it when it closes; off when the user prefers less motion @default true */\n readonly animated = input(true, { transform: booleanAttribute });\n /** The tooltip's width, any CSS length; without it, it fits its text up to `--su-tooltip-max-width` (`16rem` for the icon) */\n readonly width = input<string>();\n /** The arrow pointing at the trigger, beside content triggers @default true */\n readonly arrow = input(true, { transform: booleanAttribute });\n /** Pixels between the trigger and the tooltip @default 8 */\n readonly offset = input(8, { transform: numberAttribute });\n /** Milliseconds the pointer rests on the trigger before it opens @default 300 */\n readonly showDelay = input(300, { transform: numberAttribute });\n /** Milliseconds before it closes once the pointer leaves @default 100 */\n readonly hideDelay = input(100, { transform: numberAttribute });\n /** Doesn't open, and closes if open @default false */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The icon's name for screen readers @default labels.more */\n readonly label = input<string>();\n /** Texts to replace, e.g. in the page's language */\n readonly labels = input<Partial<SuTooltipLabels>>({});\n /** Whether the tooltip is open; setting it opens or closes it at once */\n readonly open = model(false);\n\n protected readonly panelId = `su-tooltip-${nextTooltipId++}`;\n protected readonly isIcon = computed(() => this.trigger() === 'icon');\n protected readonly opensOn = computed<SuTooltipOpenOn>(\n () => this.openOn() ?? (this.isIcon() ? 'click' : 'hover')\n );\n protected readonly isInteractive = computed(\n () => this.interactive() || this.opensOn() === 'click'\n );\n /** A hover tooltip describes its trigger; the others are shown and hidden by a button */\n protected readonly describes = computed(\n () => !this.isIcon() && this.opensOn() === 'hover'\n );\n protected readonly template = computed(() => {\n const text = this.text();\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly plainText = computed(() => {\n const text = this.text();\n return typeof text === 'string' ? text : '';\n });\n protected readonly iconTemplate = computed(() => {\n const icon = this.icon();\n return icon instanceof TemplateRef ? icon : null;\n });\n protected readonly iconText = computed(() => {\n const icon = this.icon();\n return typeof icon === 'string' ? icon : '';\n });\n protected readonly texts = computed<SuTooltipLabels>(() => ({\n ...SU_TOOLTIP_LABELS,\n ...this.labels(),\n }));\n /** The close button shows the \"×\" once the icon has opened, so the \"?\" turns into it */\n protected readonly morphed = signal(false);\n\n private readonly host: ElementRef<HTMLElement> = inject(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly panel =\n viewChild.required<ElementRef<HTMLElement>>('panel');\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n private readonly iconButton =\n viewChild<ElementRef<HTMLButtonElement>>('iconButton');\n private readonly closeButton =\n viewChild<ElementRef<HTMLButtonElement>>('closeButton');\n private readonly controller = new SuTooltipController();\n private animation: Animation | null = null;\n private iconClip: { readonly from: string; readonly to: string } | null =\n null;\n private shown = false;\n /** The close button takes focus once the icon tooltip opens, after the user opened it with the icon */\n private focusOnOpen = false;\n private leftWhileGrowing = false;\n /** Focus coming back to the trigger after the tooltip closed doesn't open it again */\n private returningFocus = false;\n private linkedTrigger: HTMLElement | null = null;\n\n constructor() {\n const unsubscribe = this.controller.state.subscribe(state =>\n this.open.set(state.open)\n );\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => {\n unsubscribe();\n this.controller.cancel();\n this.animation?.cancel();\n });\n\n effect(() => {\n const delays = {\n showDelay: this.showDelay(),\n hideDelay: this.hideDelay(),\n };\n untracked(() => this.controller.setDelays(delays));\n });\n\n effect(() => {\n const open = this.open() && !this.disabled();\n untracked(() => {\n this.controller.setOpen(open);\n this.open.set(open);\n });\n });\n\n effect(onCleanup => {\n if (!this.open()) {\n return;\n }\n const onKeydown = (event: KeyboardEvent) => this.onDocumentKeydown(event);\n const onPointerDown = (event: PointerEvent) =>\n this.onDocumentPointerDown(event);\n const onMove = () => this.place();\n const view = this.document.defaultView;\n this.document.addEventListener('keydown', onKeydown);\n this.document.addEventListener('pointerdown', onPointerDown);\n view?.addEventListener('scroll', onMove, true);\n view?.addEventListener('resize', onMove);\n onCleanup(() => {\n this.document.removeEventListener('keydown', onKeydown);\n this.document.removeEventListener('pointerdown', onPointerDown);\n view?.removeEventListener('scroll', onMove, true);\n view?.removeEventListener('resize', onMove);\n });\n });\n\n afterRenderEffect(() => {\n const open = this.open();\n untracked(() => (open ? this.reveal() : this.conceal()));\n });\n\n afterRenderEffect(() => {\n const trigger = this.isIcon() ? null : this.contentTrigger();\n const describes = this.describes();\n const open = this.open();\n untracked(() => this.linkTrigger(trigger, describes, open));\n });\n }\n\n /** Opens the tooltip now */\n show(): void {\n this.controller.open();\n }\n\n /** Closes the tooltip now */\n hide(): void {\n this.controller.close();\n }\n\n /** Opens or closes the tooltip now */\n toggle(): void {\n this.controller.toggle();\n }\n\n protected onPointerEnter(event: PointerEvent): void {\n if (\n this.disabled() ||\n event.pointerType === 'touch' ||\n this.opensOn() !== 'hover'\n ) {\n return;\n }\n this.controller.show();\n }\n\n protected onPointerLeave(event: PointerEvent): void {\n if (event.pointerType === 'touch' || this.opensOn() !== 'hover') {\n return;\n }\n if (this.isGrowing()) {\n this.leftWhileGrowing = true;\n return;\n }\n this.controller.hide();\n }\n\n protected onFocusIn(event: FocusEvent): void {\n if (this.inPanel(event.target)) {\n this.controller.cancel();\n return;\n }\n if (\n !this.disabled() &&\n !this.returningFocus &&\n this.opensOn() === 'hover'\n ) {\n this.controller.open();\n }\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = this.asNode(event.relatedTarget);\n if (!next || this.host.nativeElement.contains(next)) {\n return;\n }\n this.controller.close();\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.inPanel(event.target)) {\n return;\n }\n if (this.isIcon()) {\n if (!this.iconButton()?.nativeElement.contains(this.asNode(event.target))) {\n return;\n }\n this.focusOnOpen = !this.open();\n this.controller.toggle();\n return;\n }\n if (this.opensOn() === 'click') {\n this.controller.toggle();\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.open()) {\n event.stopPropagation();\n this.closeAndRefocus();\n return;\n }\n const isHostButton =\n !this.isIcon() &&\n this.opensOn() === 'click' &&\n event.target === this.host.nativeElement &&\n this.contentTrigger() === this.host.nativeElement;\n if (isHostButton && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n this.controller.toggle();\n }\n }\n\n protected onClose(): void {\n this.closeAndRefocus();\n }\n\n private onDocumentKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && !event.defaultPrevented) {\n this.closeAndRefocus();\n }\n }\n\n private onDocumentPointerDown(event: PointerEvent): void {\n const target = this.asNode(event.target);\n if (!target || !this.host.nativeElement.contains(target)) {\n this.controller.close();\n }\n }\n\n private closeAndRefocus(): void {\n const hadFocus = this.host.nativeElement.contains(\n this.document.activeElement\n );\n this.controller.close();\n if (hadFocus) {\n this.returningFocus = true;\n this.triggerElement()?.focus({ preventScroll: true });\n this.returningFocus = false;\n }\n }\n\n private reveal(): void {\n const panel = this.panel().nativeElement;\n this.animation?.cancel();\n this.leftWhileGrowing = false;\n if (!this.shown) {\n this.shown = true;\n panel.classList.add('su-tooltip-shown');\n if (typeof panel.showPopover === 'function' && !panel.matches(':popover-open')) {\n panel.showPopover();\n }\n }\n this.place();\n if (this.focusOnOpen) {\n this.focusOnOpen = false;\n this.closeButton()?.nativeElement.focus({ preventScroll: true });\n }\n requestFrame(this.document, () => this.morphed.set(true));\n if (this.moves(panel)) {\n this.animation = this.isIcon()\n ? this.growFromIcon(panel)\n : panel.animate(\n [\n { opacity: 0, transform: 'scale(0.6)' },\n { opacity: 1, transform: 'none' },\n ],\n { duration: this.duration(panel), easing: this.easing(panel) }\n );\n if (this.animation) {\n this.animation.onfinish = () => this.hideIfLeftWhileGrowing();\n }\n }\n }\n\n /** While it grows, only its visible part counts as under the pointer, so a pointer on the rest seems to leave it */\n private isGrowing(): boolean {\n return this.open() && this.animation?.playState === 'running';\n }\n\n private hideIfLeftWhileGrowing(): void {\n this.animation = null;\n if (this.leftWhileGrowing && !this.host.nativeElement.matches(':hover')) {\n this.controller.hide();\n }\n }\n\n private conceal(): void {\n this.morphed.set(false);\n if (!this.shown) {\n return;\n }\n const panel = this.panel().nativeElement;\n this.animation?.cancel();\n if (!this.moves(panel)) {\n this.removePanel(panel);\n return;\n }\n const duration = this.duration(panel) * 0.75;\n const animation =\n this.isIcon() && this.iconClip\n ? panel.animate(\n [{ clipPath: this.iconClip.to }, { clipPath: this.iconClip.from }],\n { duration, easing: 'ease-in' }\n )\n : panel.animate(\n [\n { opacity: 1, transform: 'none' },\n { opacity: 0, transform: 'scale(0.6)' },\n ],\n { duration, easing: 'ease-in' }\n );\n animation.onfinish = () => this.removePanel(panel);\n this.animation = animation;\n }\n\n private removePanel(panel: HTMLElement): void {\n this.shown = false;\n this.animation = null;\n panel.classList.remove('su-tooltip-shown');\n if (typeof panel.hidePopover === 'function' && panel.matches(':popover-open')) {\n panel.hidePopover();\n }\n }\n\n private growFromIcon(panel: HTMLElement): Animation | null {\n if (!this.iconClip) {\n return null;\n }\n const duration = this.duration(panel);\n panel\n .querySelector('.su-tooltip-body')\n ?.animate([{ opacity: 0 }, { opacity: 0, offset: 0.4 }, { opacity: 1 }], {\n duration,\n });\n return panel.animate(\n [{ clipPath: this.iconClip.from }, { clipPath: this.iconClip.to }],\n { duration, easing: this.easing(panel) }\n );\n }\n\n private place(): void {\n if (!this.shown) {\n return;\n }\n const panel = this.panel().nativeElement;\n const view = this.document.defaultView;\n const viewport = {\n width: this.document.documentElement.clientWidth,\n height: view?.innerHeight ?? 0,\n };\n const rtl = view?.getComputedStyle(this.host.nativeElement).direction === 'rtl';\n const size: SuTooltipSize = {\n width: panel.offsetWidth,\n height: panel.offsetHeight,\n };\n const icon = this.iconButton()?.nativeElement;\n if (this.isIcon() && icon) {\n const iconRect = icon.getBoundingClientRect();\n const position = suTooltipIconPosition(iconRect, size, {\n placement: this.placement(),\n viewport,\n rtl,\n });\n panel.dataset['inline'] = position.inline;\n panel.dataset['block'] = position.block;\n panel.style.left = `${position.x}px`;\n panel.style.top = `${position.y}px`;\n panel.style.setProperty('--su-tooltip-icon-x', `${position.icon.x}px`);\n panel.style.setProperty('--su-tooltip-icon-y', `${position.icon.y}px`);\n const radius = parseFloat(view?.getComputedStyle(panel).borderTopLeftRadius ?? '') || 0;\n this.iconClip = suTooltipIconClip(position, size, iconRect.width, radius);\n return;\n }\n const position = suTooltipPosition(\n this.content().nativeElement.getBoundingClientRect(),\n size,\n { placement: this.placement(), offset: this.offset(), viewport, rtl }\n );\n panel.dataset['side'] = position.side;\n panel.style.left = `${position.x}px`;\n panel.style.top = `${position.y}px`;\n panel.style.transformOrigin = `${position.origin.x}px ${position.origin.y}px`;\n panel.style.setProperty('--su-tooltip-arrow-offset', `${position.arrow}px`);\n }\n\n private moves(panel: HTMLElement): boolean {\n const view = this.document.defaultView;\n return (\n this.animated() &&\n typeof panel.animate === 'function' &&\n !view?.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n );\n }\n\n private duration(panel: HTMLElement): number {\n const value = this.document.defaultView\n ?.getComputedStyle(panel)\n .getPropertyValue('--su-tooltip-duration')\n .trim();\n return toMilliseconds(value) ?? DEFAULT_DURATION;\n }\n\n private easing(panel: HTMLElement): string {\n const value = this.document.defaultView\n ?.getComputedStyle(panel)\n .getPropertyValue('--su-tooltip-easing')\n .trim();\n return value || 'cubic-bezier(0.2, 0.9, 0.3, 1.1)';\n }\n\n /** The element that takes focus for the tooltip: the icon, the content's first focusable element, or the host */\n private triggerElement(): HTMLElement | null {\n return this.isIcon()\n ? (this.iconButton()?.nativeElement ?? null)\n : this.contentTrigger();\n }\n\n private contentTrigger(): HTMLElement {\n return (\n this.content().nativeElement.querySelector<HTMLElement>(FOCUSABLE) ??\n this.host.nativeElement\n );\n }\n\n private linkTrigger(\n trigger: HTMLElement | null,\n describes: boolean,\n open: boolean\n ): void {\n if (this.linkedTrigger && this.linkedTrigger !== trigger) {\n this.unlink(this.linkedTrigger);\n }\n this.linkedTrigger = trigger;\n if (!trigger) {\n return;\n }\n const isHost = trigger === this.host.nativeElement;\n if (describes) {\n setToken(trigger, 'aria-describedby', this.panelId, true);\n trigger.removeAttribute('aria-expanded');\n trigger.removeAttribute('aria-controls');\n } else {\n setToken(trigger, 'aria-describedby', this.panelId, false);\n trigger.setAttribute('aria-expanded', String(open));\n trigger.setAttribute('aria-controls', this.panelId);\n }\n toggleAttribute(trigger, 'role', 'button', isHost && !describes);\n toggleAttribute(trigger, 'tabindex', '0', isHost);\n }\n\n private unlink(trigger: HTMLElement): void {\n setToken(trigger, 'aria-describedby', this.panelId, false);\n trigger.removeAttribute('aria-expanded');\n trigger.removeAttribute('aria-controls');\n if (trigger === this.host.nativeElement) {\n trigger.removeAttribute('role');\n trigger.removeAttribute('tabindex');\n }\n }\n\n private inPanel(target: EventTarget | null): boolean {\n const node = this.asNode(target);\n return !!node && this.panel().nativeElement.contains(node);\n }\n\n private asNode(target: EventTarget | null): Node | null {\n return target instanceof Node ? target : null;\n }\n}\n\nfunction setToken(\n element: HTMLElement,\n name: string,\n token: string,\n present: boolean\n): void {\n const tokens = (element.getAttribute(name) ?? '')\n .split(/\\s+/)\n .filter(item => item && item !== token);\n const next = present ? [...tokens, token] : tokens;\n if (next.length) {\n element.setAttribute(name, next.join(' '));\n } else {\n element.removeAttribute(name);\n }\n}\n\nfunction toggleAttribute(\n element: HTMLElement,\n name: string,\n value: string,\n present: boolean\n): void {\n if (present) {\n element.setAttribute(name, value);\n } else {\n element.removeAttribute(name);\n }\n}\n\nfunction toMilliseconds(value: string | undefined): number | null {\n const match = value?.match(/^([\\d.]+)(ms|s)$/);\n if (!match) {\n return null;\n }\n const amount = Number(match[1]);\n return match[2] === 's' ? amount * 1000 : amount;\n}\n\nfunction requestFrame(document: Document, callback: () => void): void {\n const view = document.defaultView;\n if (view?.requestAnimationFrame) {\n view.requestAnimationFrame(callback);\n } else {\n callback();\n }\n}\n","<span #content class=\"su-tooltip-content\"><ng-content /></span>\n@if (isIcon()) {\n <button\n #iconButton\n type=\"button\"\n class=\"su-tooltip-icon\"\n [attr.aria-label]=\"label() ?? texts().more\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </button>\n}\n<ng-template #iconGlyph>\n @if (iconTemplate(); as glyph) {\n <ng-container [ngTemplateOutlet]=\"glyph\" />\n } @else if (iconText()) {\n <span class=\"su-tooltip-icon-text\" aria-hidden=\"true\">{{ iconText() }}</span>\n } @else {\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M9 9a3 3 0 1 1 4.5 2.6c-.9.5-1.5 1.2-1.5 2.2V15\" />\n <path d=\"M12 19h.01\" />\n </svg>\n }\n</ng-template>\n<div\n #panel\n popover=\"manual\"\n class=\"su-tooltip-panel\"\n [id]=\"panelId\"\n [attr.role]=\"describes() ? 'tooltip' : null\"\n [class.su-tooltip-panel-icon]=\"isIcon()\"\n [class.su-tooltip-interactive]=\"isInteractive()\">\n @if (isIcon()) {\n <button\n #closeButton\n type=\"button\"\n class=\"su-tooltip-close\"\n [class.su-tooltip-morphed]=\"morphed()\"\n [attr.aria-label]=\"texts().close\"\n (click)=\"onClose()\">\n <span class=\"su-tooltip-glyph su-tooltip-glyph-icon\">\n <ng-container [ngTemplateOutlet]=\"iconGlyph\" />\n </span>\n <span class=\"su-tooltip-glyph su-tooltip-glyph-close\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6L6 18\" />\n </svg>\n </span>\n </button>\n } @else if (arrow()) {\n <span class=\"su-tooltip-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"su-tooltip-body\">\n @if (template(); as body) {\n <ng-container [ngTemplateOutlet]=\"body\" />\n } @else {\n {{ plainText() }}\n }\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,IAAI,aAAa,GAAG,CAAC;AAErB,MAAM,SAAS,GACb,8GAA8G;AAEhH,MAAM,gBAAgB,GAAG,GAAG;AAE5B;;;;;AAKG;MAoBU,kBAAkB,CAAA;;AAEpB,IAAA,IAAI,GAAG,KAAK,CAAgC,EAAE,2EAAC;;AAE/C,IAAA,OAAO,GAAG,KAAK,CAAmB,SAAS,8EAAC;;AAE5C,IAAA,IAAI,GAAG,KAAK,CAAgC,EAAE,2EAAC;;AAE/C,IAAA,SAAS,GAAG,KAAK,CAAqB,KAAK,gFAAC;;IAE5C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmB;AAC1C;;;AAGG;IACM,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAE3D,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEvD,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;;IAEvB,KAAK,GAAG,KAAK,CAAC,IAAI,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEpD,MAAM,GAAG,KAAK,CAAC,CAAC,8EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEj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AI,CAAC,MAAM,EAAE;AACf,QAAA,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C;SAAO;AACL,QAAA,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;IAC/B;AACF;AAEA,SAAS,eAAe,CACtB,OAAoB,EACpB,IAAY,EACZ,KAAa,EACb,OAAgB,EAAA;IAEhB,IAAI,OAAO,EAAE;AACX,QAAA,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC;IACnC;SAAO;AACL,QAAA,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;IAC/B;AACF;AAEA,SAAS,cAAc,CAAC,KAAyB,EAAA;IAC/C,MAAM,KAAK,GAAG,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC;IAC9C,IAAI,CAAC,KAAK,EAAE;AACV,QAAA,OAAO,IAAI;IACb;IACA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC/B,IAAA,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM;AAClD;AAEA,SAAS,YAAY,CAAC,QAAkB,EAAE,QAAoB,EAAA;AAC5D,IAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW;AACjC,IAAA,IAAI,IAAI,EAAE,qBAAqB,EAAE;AAC/B,QAAA,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;IACtC;SAAO;AACL,QAAA,QAAQ,EAAE;IACZ;AACF;;AE5kBA;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@su-labs/tooltip",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "Accessible Angular tooltips: on your own content or a built-in \"?\" icon that grows into the tooltip and turns into its close button, opening on hover or click, 12 placements with an arrow, animated out of the trigger, themeable with CSS variables.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"url": "https://github.com/Greezaaa/settings-utils-lib/issues"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@angular/common": "^
|
|
33
|
-
"@angular/core": "^
|
|
32
|
+
"@angular/common": "^21.0.0",
|
|
33
|
+
"@angular/core": "^21.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@su-labs/core": "1.12.0",
|
|
@@ -39,14 +39,15 @@
|
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"module": "fesm2022/su-labs-tooltip.mjs",
|
|
42
|
-
"typings": "
|
|
42
|
+
"typings": "types/su-labs-tooltip.d.ts",
|
|
43
43
|
"exports": {
|
|
44
44
|
"./package.json": {
|
|
45
45
|
"default": "./package.json"
|
|
46
46
|
},
|
|
47
47
|
".": {
|
|
48
|
-
"types": "./
|
|
48
|
+
"types": "./types/su-labs-tooltip.d.ts",
|
|
49
49
|
"default": "./fesm2022/su-labs-tooltip.mjs"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"type": "module"
|
|
52
53
|
}
|
|
File without changes
|