@4sh/ui-kit 0.16.0 → 0.17.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.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,480 +1,826 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgTemplateOutlet, isPlatformBrowser } from
|
|
4
|
-
import { Overlay } from
|
|
5
|
-
import { ComponentPortal } from
|
|
6
|
-
import { closeOnNavigation } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, ElementRef, Injector, PLATFORM_ID, Renderer2, TemplateRef, ViewContainerRef, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, inject, input, numberAttribute, output, untracked } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
4
|
+
import { Overlay } from "@angular/cdk/overlay";
|
|
5
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
6
|
+
import { closeOnNavigation } from "@4sh/ui-kit/overlay";
|
|
7
|
+
var UiTooltipPanel = class UiTooltipPanel {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.text = input(...ngDevMode ? [void 0, { debugName: "text" }] : /* istanbul ignore next */ []);
|
|
10
|
+
this.template = input(...ngDevMode ? [void 0, { debugName: "template" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.templateContext = input(...ngDevMode ? [void 0, { debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.escape = input(true, ...ngDevMode ? [{ debugName: "escape" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.position = input("top", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.tooltipId = input(...ngDevMode ? [void 0, { debugName: "tooltipId" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.visible = input(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.interactive = input(false, ...ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this.classes = computed(() => {
|
|
19
|
+
const c = ["ui-tooltip", `_${this.position()}`];
|
|
20
|
+
if (this.visible()) c.push("_visible");
|
|
21
|
+
if (this.interactive()) c.push("_interactive");
|
|
22
|
+
const sc = this.styleClass();
|
|
23
|
+
if (sc) c.push(sc);
|
|
24
|
+
return c.join(" ");
|
|
25
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.3.0",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: UiTooltipPanel,
|
|
33
|
+
deps: [],
|
|
34
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static {
|
|
38
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
39
|
+
minVersion: "17.0.0",
|
|
40
|
+
version: "22.3.0",
|
|
41
|
+
type: UiTooltipPanel,
|
|
42
|
+
isStandalone: true,
|
|
43
|
+
selector: "ui-tooltip",
|
|
44
|
+
inputs: {
|
|
45
|
+
text: {
|
|
46
|
+
classPropertyName: "text",
|
|
47
|
+
publicName: "text",
|
|
48
|
+
isSignal: true,
|
|
49
|
+
isRequired: false,
|
|
50
|
+
transformFunction: null
|
|
51
|
+
},
|
|
52
|
+
template: {
|
|
53
|
+
classPropertyName: "template",
|
|
54
|
+
publicName: "template",
|
|
55
|
+
isSignal: true,
|
|
56
|
+
isRequired: false,
|
|
57
|
+
transformFunction: null
|
|
58
|
+
},
|
|
59
|
+
templateContext: {
|
|
60
|
+
classPropertyName: "templateContext",
|
|
61
|
+
publicName: "templateContext",
|
|
62
|
+
isSignal: true,
|
|
63
|
+
isRequired: false,
|
|
64
|
+
transformFunction: null
|
|
65
|
+
},
|
|
66
|
+
escape: {
|
|
67
|
+
classPropertyName: "escape",
|
|
68
|
+
publicName: "escape",
|
|
69
|
+
isSignal: true,
|
|
70
|
+
isRequired: false,
|
|
71
|
+
transformFunction: null
|
|
72
|
+
},
|
|
73
|
+
styleClass: {
|
|
74
|
+
classPropertyName: "styleClass",
|
|
75
|
+
publicName: "styleClass",
|
|
76
|
+
isSignal: true,
|
|
77
|
+
isRequired: false,
|
|
78
|
+
transformFunction: null
|
|
79
|
+
},
|
|
80
|
+
position: {
|
|
81
|
+
classPropertyName: "position",
|
|
82
|
+
publicName: "position",
|
|
83
|
+
isSignal: true,
|
|
84
|
+
isRequired: false,
|
|
85
|
+
transformFunction: null
|
|
86
|
+
},
|
|
87
|
+
tooltipId: {
|
|
88
|
+
classPropertyName: "tooltipId",
|
|
89
|
+
publicName: "tooltipId",
|
|
90
|
+
isSignal: true,
|
|
91
|
+
isRequired: false,
|
|
92
|
+
transformFunction: null
|
|
93
|
+
},
|
|
94
|
+
visible: {
|
|
95
|
+
classPropertyName: "visible",
|
|
96
|
+
publicName: "visible",
|
|
97
|
+
isSignal: true,
|
|
98
|
+
isRequired: false,
|
|
99
|
+
transformFunction: null
|
|
100
|
+
},
|
|
101
|
+
interactive: {
|
|
102
|
+
classPropertyName: "interactive",
|
|
103
|
+
publicName: "interactive",
|
|
104
|
+
isSignal: true,
|
|
105
|
+
isRequired: false,
|
|
106
|
+
transformFunction: null
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
ngImport: i0,
|
|
110
|
+
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É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",
|
|
111
|
+
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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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"],
|
|
112
|
+
dependencies: [{
|
|
113
|
+
kind: "directive",
|
|
114
|
+
type: NgTemplateOutlet,
|
|
115
|
+
selector: "[ngTemplateOutlet]",
|
|
116
|
+
inputs: [
|
|
117
|
+
"ngTemplateOutletContext",
|
|
118
|
+
"ngTemplateOutlet",
|
|
119
|
+
"ngTemplateOutletInjector"
|
|
120
|
+
]
|
|
121
|
+
}]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
126
|
+
minVersion: "12.0.0",
|
|
127
|
+
version: "22.3.0",
|
|
128
|
+
ngImport: i0,
|
|
129
|
+
type: UiTooltipPanel,
|
|
130
|
+
decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: "ui-tooltip",
|
|
134
|
+
imports: [NgTemplateOutlet],
|
|
135
|
+
encapsulation: ViewEncapsulation.Emulated,
|
|
136
|
+
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É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",
|
|
137
|
+
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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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"]
|
|
138
|
+
}]
|
|
139
|
+
}],
|
|
140
|
+
propDecorators: {
|
|
141
|
+
text: [{
|
|
142
|
+
type: i0.Input,
|
|
143
|
+
args: [{
|
|
144
|
+
isSignal: true,
|
|
145
|
+
alias: "text",
|
|
146
|
+
required: false
|
|
147
|
+
}]
|
|
148
|
+
}],
|
|
149
|
+
template: [{
|
|
150
|
+
type: i0.Input,
|
|
151
|
+
args: [{
|
|
152
|
+
isSignal: true,
|
|
153
|
+
alias: "template",
|
|
154
|
+
required: false
|
|
155
|
+
}]
|
|
156
|
+
}],
|
|
157
|
+
templateContext: [{
|
|
158
|
+
type: i0.Input,
|
|
159
|
+
args: [{
|
|
160
|
+
isSignal: true,
|
|
161
|
+
alias: "templateContext",
|
|
162
|
+
required: false
|
|
163
|
+
}]
|
|
164
|
+
}],
|
|
165
|
+
escape: [{
|
|
166
|
+
type: i0.Input,
|
|
167
|
+
args: [{
|
|
168
|
+
isSignal: true,
|
|
169
|
+
alias: "escape",
|
|
170
|
+
required: false
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
styleClass: [{
|
|
174
|
+
type: i0.Input,
|
|
175
|
+
args: [{
|
|
176
|
+
isSignal: true,
|
|
177
|
+
alias: "styleClass",
|
|
178
|
+
required: false
|
|
179
|
+
}]
|
|
180
|
+
}],
|
|
181
|
+
position: [{
|
|
182
|
+
type: i0.Input,
|
|
183
|
+
args: [{
|
|
184
|
+
isSignal: true,
|
|
185
|
+
alias: "position",
|
|
186
|
+
required: false
|
|
187
|
+
}]
|
|
188
|
+
}],
|
|
189
|
+
tooltipId: [{
|
|
190
|
+
type: i0.Input,
|
|
191
|
+
args: [{
|
|
192
|
+
isSignal: true,
|
|
193
|
+
alias: "tooltipId",
|
|
194
|
+
required: false
|
|
195
|
+
}]
|
|
196
|
+
}],
|
|
197
|
+
visible: [{
|
|
198
|
+
type: i0.Input,
|
|
199
|
+
args: [{
|
|
200
|
+
isSignal: true,
|
|
201
|
+
alias: "visible",
|
|
202
|
+
required: false
|
|
203
|
+
}]
|
|
204
|
+
}],
|
|
205
|
+
interactive: [{
|
|
206
|
+
type: i0.Input,
|
|
207
|
+
args: [{
|
|
208
|
+
isSignal: true,
|
|
209
|
+
alias: "interactive",
|
|
210
|
+
required: false
|
|
211
|
+
}]
|
|
212
|
+
}]
|
|
213
|
+
}
|
|
214
|
+
});
|
|
67
215
|
const ARROW_GAP = 8;
|
|
68
|
-
/** Floor applied to `hideDelay` when the panel is interactive. */
|
|
69
216
|
const INTERACTIVE_HIDE_DELAY = 120;
|
|
70
|
-
/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */
|
|
71
217
|
let nextId = 0;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
218
|
+
var UiTooltip = class UiTooltip {
|
|
219
|
+
constructor() {
|
|
220
|
+
this.content = input(void 0, {
|
|
221
|
+
...ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {},
|
|
222
|
+
alias: "uiTooltip"
|
|
223
|
+
});
|
|
224
|
+
this.tooltipPosition = input("top", ...ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []);
|
|
225
|
+
this.fitContent = input(true, {
|
|
226
|
+
...ngDevMode ? { debugName: "fitContent" } : /* istanbul ignore next */ {},
|
|
227
|
+
transform: booleanAttribute
|
|
228
|
+
});
|
|
229
|
+
this.tooltipEvent = input("both", ...ngDevMode ? [{ debugName: "tooltipEvent" }] : /* istanbul ignore next */ []);
|
|
230
|
+
this.tooltipDisabled = input(false, {
|
|
231
|
+
...ngDevMode ? { debugName: "tooltipDisabled" } : /* istanbul ignore next */ {},
|
|
232
|
+
transform: booleanAttribute
|
|
233
|
+
});
|
|
234
|
+
this.showDelay = input(150, {
|
|
235
|
+
...ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {},
|
|
236
|
+
transform: numberAttribute
|
|
237
|
+
});
|
|
238
|
+
this.hideDelay = input(0, {
|
|
239
|
+
...ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {},
|
|
240
|
+
transform: numberAttribute
|
|
241
|
+
});
|
|
242
|
+
this.escape = input(true, {
|
|
243
|
+
...ngDevMode ? { debugName: "escape" } : /* istanbul ignore next */ {},
|
|
244
|
+
transform: booleanAttribute
|
|
245
|
+
});
|
|
246
|
+
this.tooltipStyleClass = input(...ngDevMode ? [void 0, { debugName: "tooltipStyleClass" }] : /* istanbul ignore next */ []);
|
|
247
|
+
this.autoHide = input(true, {
|
|
248
|
+
...ngDevMode ? { debugName: "autoHide" } : /* istanbul ignore next */ {},
|
|
249
|
+
transform: booleanAttribute
|
|
250
|
+
});
|
|
251
|
+
this.hideOnEscape = input(true, {
|
|
252
|
+
...ngDevMode ? { debugName: "hideOnEscape" } : /* istanbul ignore next */ {},
|
|
253
|
+
transform: booleanAttribute
|
|
254
|
+
});
|
|
255
|
+
this.life = input(0, {
|
|
256
|
+
...ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {},
|
|
257
|
+
transform: numberAttribute
|
|
258
|
+
});
|
|
259
|
+
this.showOnEllipsis = input(false, {
|
|
260
|
+
...ngDevMode ? { debugName: "showOnEllipsis" } : /* istanbul ignore next */ {},
|
|
261
|
+
transform: booleanAttribute
|
|
262
|
+
});
|
|
263
|
+
this.positionTop = input(0, {
|
|
264
|
+
...ngDevMode ? { debugName: "positionTop" } : /* istanbul ignore next */ {},
|
|
265
|
+
transform: numberAttribute
|
|
266
|
+
});
|
|
267
|
+
this.positionLeft = input(0, {
|
|
268
|
+
...ngDevMode ? { debugName: "positionLeft" } : /* istanbul ignore next */ {},
|
|
269
|
+
transform: numberAttribute
|
|
270
|
+
});
|
|
271
|
+
this.tooltipContext = input(...ngDevMode ? [void 0, { debugName: "tooltipContext" }] : /* istanbul ignore next */ []);
|
|
272
|
+
this.tooltipShow = output();
|
|
273
|
+
this.tooltipHide = output();
|
|
274
|
+
this.el = inject(ElementRef);
|
|
275
|
+
this.overlay = inject(Overlay);
|
|
276
|
+
this.vcr = inject(ViewContainerRef);
|
|
277
|
+
this.injector = inject(Injector);
|
|
278
|
+
this.renderer = inject(Renderer2);
|
|
279
|
+
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
280
|
+
this.overlayRef = null;
|
|
281
|
+
this.positionStrategy = null;
|
|
282
|
+
this.panelRef = null;
|
|
283
|
+
this.tooltipId = `ui-tooltip-${nextId++}`;
|
|
284
|
+
this.showTimer = null;
|
|
285
|
+
this.hideTimer = null;
|
|
286
|
+
this.lifeTimer = null;
|
|
287
|
+
this.disposers = [];
|
|
288
|
+
this.hasTemplate = computed(() => this.content() instanceof TemplateRef, ...ngDevMode ? [{ debugName: "hasTemplate" }] : /* istanbul ignore next */ []);
|
|
289
|
+
closeOnNavigation(() => this.remove());
|
|
290
|
+
if (this.isBrowser) afterNextRender(() => this.bindTriggerEvents());
|
|
291
|
+
effect(() => {
|
|
292
|
+
const content = this.content();
|
|
293
|
+
this.escape();
|
|
294
|
+
this.tooltipStyleClass();
|
|
295
|
+
this.tooltipContext();
|
|
296
|
+
untracked(() => {
|
|
297
|
+
if (!this.panelRef) return;
|
|
298
|
+
this.applyContent();
|
|
299
|
+
if (!content) this.hide();
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
effect(() => {
|
|
303
|
+
if (this.tooltipDisabled()) untracked(() => this.hide());
|
|
304
|
+
});
|
|
305
|
+
inject(DestroyRef).onDestroy(() => this.destroy());
|
|
306
|
+
}
|
|
307
|
+
show() {
|
|
308
|
+
this.activate();
|
|
309
|
+
}
|
|
310
|
+
hide() {
|
|
311
|
+
this.deactivate();
|
|
312
|
+
}
|
|
313
|
+
bindTriggerEvents() {
|
|
314
|
+
const host = this.el.nativeElement;
|
|
315
|
+
const evt = this.tooltipEvent();
|
|
316
|
+
if (evt === "hover" || evt === "both") this.disposers.push(this.renderer.listen(host, "mouseenter", () => this.activate()), this.renderer.listen(host, "mouseleave", () => this.deactivate()), this.renderer.listen(host, "click", () => this.deactivate()), this.renderer.listen(host, "touchstart", () => this.activate()));
|
|
317
|
+
if (evt === "focus" || evt === "both") this.disposers.push(this.renderer.listen(host, "focusin", () => this.activate()), this.renderer.listen(host, "focusout", (event) => {
|
|
318
|
+
if (this.movedIntoPanel(event.relatedTarget)) return;
|
|
319
|
+
this.deactivate();
|
|
320
|
+
}));
|
|
321
|
+
this.disposers.push(this.renderer.listen("document", "keydown.escape", () => {
|
|
322
|
+
if (this.hideOnEscape() && this.overlayRef?.hasAttached()) this.remove();
|
|
323
|
+
}));
|
|
324
|
+
}
|
|
325
|
+
activate() {
|
|
326
|
+
if (this.tooltipDisabled() || !this.hasContent()) return;
|
|
327
|
+
if (this.showOnEllipsis() && !this.hasEllipsis()) return;
|
|
328
|
+
this.clearHideTimer();
|
|
329
|
+
if (this.overlayRef?.hasAttached()) return;
|
|
330
|
+
const delay = this.showDelay();
|
|
331
|
+
this.clearShowTimer();
|
|
332
|
+
if (delay > 0) this.showTimer = setTimeout(() => this.render(), delay);
|
|
333
|
+
else this.render();
|
|
334
|
+
}
|
|
335
|
+
deactivate() {
|
|
336
|
+
this.clearShowTimer();
|
|
337
|
+
this.clearHideTimer();
|
|
338
|
+
const delay = this.autoHide() ? this.hideDelay() : Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);
|
|
339
|
+
if (delay > 0) this.hideTimer = setTimeout(() => this.remove(), delay);
|
|
340
|
+
else this.remove();
|
|
341
|
+
}
|
|
342
|
+
render() {
|
|
343
|
+
if (!this.hasContent() || this.tooltipDisabled()) return;
|
|
344
|
+
const overlayRef = this.getOverlayRef();
|
|
345
|
+
if (!overlayRef.hasAttached()) {
|
|
346
|
+
this.panelRef = overlayRef.attach(new ComponentPortal(UiTooltipPanel, this.vcr, this.injector));
|
|
347
|
+
this.panelRef.setInput("tooltipId", this.tooltipId);
|
|
348
|
+
this.applyContent();
|
|
349
|
+
this.renderer.setAttribute(this.el.nativeElement, "aria-describedby", this.tooltipId);
|
|
350
|
+
overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? "none" : "auto";
|
|
351
|
+
}
|
|
352
|
+
requestAnimationFrame(() => this.panelRef?.setInput("visible", true));
|
|
353
|
+
this.armLifeTimer();
|
|
354
|
+
this.tooltipShow.emit();
|
|
355
|
+
}
|
|
356
|
+
remove() {
|
|
357
|
+
this.clearLifeTimer();
|
|
358
|
+
this.clearShowTimer();
|
|
359
|
+
if (!this.overlayRef?.hasAttached()) return;
|
|
360
|
+
this.overlayRef.detach();
|
|
361
|
+
this.panelRef = null;
|
|
362
|
+
this.renderer.removeAttribute(this.el.nativeElement, "aria-describedby");
|
|
363
|
+
this.tooltipHide.emit();
|
|
364
|
+
}
|
|
365
|
+
getOverlayRef() {
|
|
366
|
+
if (this.overlayRef) {
|
|
367
|
+
this.positionStrategy?.withPositions(this.positionsFor(this.tooltipPosition()));
|
|
368
|
+
return this.overlayRef;
|
|
369
|
+
}
|
|
370
|
+
this.positionStrategy = this.overlay.position().flexibleConnectedTo(this.el).withFlexibleDimensions(false).withPush(false).withViewportMargin(ARROW_GAP).withPositions(this.positionsFor(this.tooltipPosition()));
|
|
371
|
+
this.positionStrategy.positionChanges.subscribe((change) => {
|
|
372
|
+
this.panelRef?.setInput("position", this.sideOf(change.connectionPair));
|
|
373
|
+
});
|
|
374
|
+
this.overlayRef = this.overlay.create({
|
|
375
|
+
positionStrategy: this.positionStrategy,
|
|
376
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
377
|
+
panelClass: "ui-tooltip-overlay",
|
|
378
|
+
hasBackdrop: false
|
|
379
|
+
});
|
|
380
|
+
this.bindPanelEvents(this.overlayRef);
|
|
381
|
+
return this.overlayRef;
|
|
382
|
+
}
|
|
383
|
+
positionsFor(pos) {
|
|
384
|
+
const ox = this.positionLeft();
|
|
385
|
+
const oy = this.positionTop();
|
|
386
|
+
const top = {
|
|
387
|
+
originX: "center",
|
|
388
|
+
originY: "top",
|
|
389
|
+
overlayX: "center",
|
|
390
|
+
overlayY: "bottom",
|
|
391
|
+
offsetX: ox,
|
|
392
|
+
offsetY: -8 + oy
|
|
393
|
+
};
|
|
394
|
+
const bottom = {
|
|
395
|
+
originX: "center",
|
|
396
|
+
originY: "bottom",
|
|
397
|
+
overlayX: "center",
|
|
398
|
+
overlayY: "top",
|
|
399
|
+
offsetX: ox,
|
|
400
|
+
offsetY: ARROW_GAP + oy
|
|
401
|
+
};
|
|
402
|
+
const left = {
|
|
403
|
+
originX: "start",
|
|
404
|
+
originY: "center",
|
|
405
|
+
overlayX: "end",
|
|
406
|
+
overlayY: "center",
|
|
407
|
+
offsetX: -8 + ox,
|
|
408
|
+
offsetY: oy
|
|
409
|
+
};
|
|
410
|
+
const right = {
|
|
411
|
+
originX: "end",
|
|
412
|
+
originY: "center",
|
|
413
|
+
overlayX: "start",
|
|
414
|
+
overlayY: "center",
|
|
415
|
+
offsetX: ARROW_GAP + ox,
|
|
416
|
+
offsetY: oy
|
|
417
|
+
};
|
|
418
|
+
const primary = {
|
|
419
|
+
top,
|
|
420
|
+
bottom,
|
|
421
|
+
left,
|
|
422
|
+
right
|
|
423
|
+
};
|
|
424
|
+
if (!this.fitContent()) return [primary[pos]];
|
|
425
|
+
return {
|
|
426
|
+
top: [
|
|
427
|
+
top,
|
|
428
|
+
bottom,
|
|
429
|
+
right,
|
|
430
|
+
left
|
|
431
|
+
],
|
|
432
|
+
bottom: [
|
|
433
|
+
bottom,
|
|
434
|
+
top,
|
|
435
|
+
right,
|
|
436
|
+
left
|
|
437
|
+
],
|
|
438
|
+
left: [
|
|
439
|
+
left,
|
|
440
|
+
right,
|
|
441
|
+
top,
|
|
442
|
+
bottom
|
|
443
|
+
],
|
|
444
|
+
right: [
|
|
445
|
+
right,
|
|
446
|
+
left,
|
|
447
|
+
top,
|
|
448
|
+
bottom
|
|
449
|
+
]
|
|
450
|
+
}[pos];
|
|
451
|
+
}
|
|
452
|
+
sideOf(pair) {
|
|
453
|
+
if (pair.overlayY === "bottom") return "top";
|
|
454
|
+
if (pair.overlayY === "top") return "bottom";
|
|
455
|
+
if (pair.overlayX === "end") return "left";
|
|
456
|
+
return "right";
|
|
457
|
+
}
|
|
458
|
+
applyContent() {
|
|
459
|
+
if (!this.panelRef) return;
|
|
460
|
+
const content = this.content();
|
|
461
|
+
if (this.hasTemplate()) {
|
|
462
|
+
this.panelRef.setInput("template", content);
|
|
463
|
+
this.panelRef.setInput("templateContext", this.tooltipContext());
|
|
464
|
+
this.panelRef.setInput("text", void 0);
|
|
465
|
+
} else {
|
|
466
|
+
this.panelRef.setInput("text", content);
|
|
467
|
+
this.panelRef.setInput("template", void 0);
|
|
468
|
+
}
|
|
469
|
+
this.panelRef.setInput("escape", this.escape());
|
|
470
|
+
this.panelRef.setInput("styleClass", this.tooltipStyleClass());
|
|
471
|
+
this.panelRef.setInput("interactive", !this.autoHide());
|
|
472
|
+
}
|
|
473
|
+
hasContent() {
|
|
474
|
+
const c = this.content();
|
|
475
|
+
return this.hasTemplate() || !!(typeof c === "string" && c.length);
|
|
476
|
+
}
|
|
477
|
+
hasEllipsis() {
|
|
478
|
+
const el = this.el.nativeElement;
|
|
479
|
+
return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;
|
|
480
|
+
}
|
|
481
|
+
bindPanelEvents(overlayRef) {
|
|
482
|
+
const panel = overlayRef.overlayElement;
|
|
483
|
+
this.disposers.push(this.renderer.listen(panel, "mouseenter", () => {
|
|
484
|
+
if (!this.autoHide()) this.clearHideTimer();
|
|
485
|
+
}), this.renderer.listen(panel, "mouseleave", () => {
|
|
486
|
+
if (!this.autoHide()) this.deactivate();
|
|
487
|
+
}), this.renderer.listen(panel, "focusin", () => {
|
|
488
|
+
if (!this.autoHide()) this.clearHideTimer();
|
|
489
|
+
}), this.renderer.listen(panel, "focusout", (event) => {
|
|
490
|
+
if (this.autoHide() || panel.contains(event.relatedTarget)) return;
|
|
491
|
+
this.deactivate();
|
|
492
|
+
}));
|
|
493
|
+
}
|
|
494
|
+
movedIntoPanel(target) {
|
|
495
|
+
if (this.autoHide() || !target) return false;
|
|
496
|
+
const panel = this.overlayRef?.overlayElement;
|
|
497
|
+
return !!panel && panel.contains(target);
|
|
498
|
+
}
|
|
499
|
+
armLifeTimer() {
|
|
500
|
+
this.clearLifeTimer();
|
|
501
|
+
const life = this.life();
|
|
502
|
+
if (life > 0) this.lifeTimer = setTimeout(() => this.remove(), life);
|
|
503
|
+
}
|
|
504
|
+
clearShowTimer() {
|
|
505
|
+
if (this.showTimer) {
|
|
506
|
+
clearTimeout(this.showTimer);
|
|
507
|
+
this.showTimer = null;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
clearHideTimer() {
|
|
511
|
+
if (this.hideTimer) {
|
|
512
|
+
clearTimeout(this.hideTimer);
|
|
513
|
+
this.hideTimer = null;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
clearLifeTimer() {
|
|
517
|
+
if (this.lifeTimer) {
|
|
518
|
+
clearTimeout(this.lifeTimer);
|
|
519
|
+
this.lifeTimer = null;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
destroy() {
|
|
523
|
+
this.clearShowTimer();
|
|
524
|
+
this.clearHideTimer();
|
|
525
|
+
this.clearLifeTimer();
|
|
526
|
+
this.disposers.forEach((off) => off());
|
|
527
|
+
this.disposers.length = 0;
|
|
528
|
+
this.overlayRef?.dispose();
|
|
529
|
+
this.overlayRef = null;
|
|
530
|
+
this.panelRef = null;
|
|
531
|
+
}
|
|
532
|
+
static {
|
|
533
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
534
|
+
minVersion: "12.0.0",
|
|
535
|
+
version: "22.3.0",
|
|
536
|
+
ngImport: i0,
|
|
537
|
+
type: UiTooltip,
|
|
538
|
+
deps: [],
|
|
539
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
static {
|
|
543
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
544
|
+
minVersion: "17.1.0",
|
|
545
|
+
version: "22.3.0",
|
|
546
|
+
type: UiTooltip,
|
|
547
|
+
isStandalone: true,
|
|
548
|
+
selector: "[uiTooltip]",
|
|
549
|
+
inputs: {
|
|
550
|
+
content: {
|
|
551
|
+
classPropertyName: "content",
|
|
552
|
+
publicName: "uiTooltip",
|
|
553
|
+
isSignal: true,
|
|
554
|
+
isRequired: false,
|
|
555
|
+
transformFunction: null
|
|
556
|
+
},
|
|
557
|
+
tooltipPosition: {
|
|
558
|
+
classPropertyName: "tooltipPosition",
|
|
559
|
+
publicName: "tooltipPosition",
|
|
560
|
+
isSignal: true,
|
|
561
|
+
isRequired: false,
|
|
562
|
+
transformFunction: null
|
|
563
|
+
},
|
|
564
|
+
fitContent: {
|
|
565
|
+
classPropertyName: "fitContent",
|
|
566
|
+
publicName: "fitContent",
|
|
567
|
+
isSignal: true,
|
|
568
|
+
isRequired: false,
|
|
569
|
+
transformFunction: null
|
|
570
|
+
},
|
|
571
|
+
tooltipEvent: {
|
|
572
|
+
classPropertyName: "tooltipEvent",
|
|
573
|
+
publicName: "tooltipEvent",
|
|
574
|
+
isSignal: true,
|
|
575
|
+
isRequired: false,
|
|
576
|
+
transformFunction: null
|
|
577
|
+
},
|
|
578
|
+
tooltipDisabled: {
|
|
579
|
+
classPropertyName: "tooltipDisabled",
|
|
580
|
+
publicName: "tooltipDisabled",
|
|
581
|
+
isSignal: true,
|
|
582
|
+
isRequired: false,
|
|
583
|
+
transformFunction: null
|
|
584
|
+
},
|
|
585
|
+
showDelay: {
|
|
586
|
+
classPropertyName: "showDelay",
|
|
587
|
+
publicName: "showDelay",
|
|
588
|
+
isSignal: true,
|
|
589
|
+
isRequired: false,
|
|
590
|
+
transformFunction: null
|
|
591
|
+
},
|
|
592
|
+
hideDelay: {
|
|
593
|
+
classPropertyName: "hideDelay",
|
|
594
|
+
publicName: "hideDelay",
|
|
595
|
+
isSignal: true,
|
|
596
|
+
isRequired: false,
|
|
597
|
+
transformFunction: null
|
|
598
|
+
},
|
|
599
|
+
escape: {
|
|
600
|
+
classPropertyName: "escape",
|
|
601
|
+
publicName: "escape",
|
|
602
|
+
isSignal: true,
|
|
603
|
+
isRequired: false,
|
|
604
|
+
transformFunction: null
|
|
605
|
+
},
|
|
606
|
+
tooltipStyleClass: {
|
|
607
|
+
classPropertyName: "tooltipStyleClass",
|
|
608
|
+
publicName: "tooltipStyleClass",
|
|
609
|
+
isSignal: true,
|
|
610
|
+
isRequired: false,
|
|
611
|
+
transformFunction: null
|
|
612
|
+
},
|
|
613
|
+
autoHide: {
|
|
614
|
+
classPropertyName: "autoHide",
|
|
615
|
+
publicName: "autoHide",
|
|
616
|
+
isSignal: true,
|
|
617
|
+
isRequired: false,
|
|
618
|
+
transformFunction: null
|
|
619
|
+
},
|
|
620
|
+
hideOnEscape: {
|
|
621
|
+
classPropertyName: "hideOnEscape",
|
|
622
|
+
publicName: "hideOnEscape",
|
|
623
|
+
isSignal: true,
|
|
624
|
+
isRequired: false,
|
|
625
|
+
transformFunction: null
|
|
626
|
+
},
|
|
627
|
+
life: {
|
|
628
|
+
classPropertyName: "life",
|
|
629
|
+
publicName: "life",
|
|
630
|
+
isSignal: true,
|
|
631
|
+
isRequired: false,
|
|
632
|
+
transformFunction: null
|
|
633
|
+
},
|
|
634
|
+
showOnEllipsis: {
|
|
635
|
+
classPropertyName: "showOnEllipsis",
|
|
636
|
+
publicName: "showOnEllipsis",
|
|
637
|
+
isSignal: true,
|
|
638
|
+
isRequired: false,
|
|
639
|
+
transformFunction: null
|
|
640
|
+
},
|
|
641
|
+
positionTop: {
|
|
642
|
+
classPropertyName: "positionTop",
|
|
643
|
+
publicName: "positionTop",
|
|
644
|
+
isSignal: true,
|
|
645
|
+
isRequired: false,
|
|
646
|
+
transformFunction: null
|
|
647
|
+
},
|
|
648
|
+
positionLeft: {
|
|
649
|
+
classPropertyName: "positionLeft",
|
|
650
|
+
publicName: "positionLeft",
|
|
651
|
+
isSignal: true,
|
|
652
|
+
isRequired: false,
|
|
653
|
+
transformFunction: null
|
|
654
|
+
},
|
|
655
|
+
tooltipContext: {
|
|
656
|
+
classPropertyName: "tooltipContext",
|
|
657
|
+
publicName: "tooltipContext",
|
|
658
|
+
isSignal: true,
|
|
659
|
+
isRequired: false,
|
|
660
|
+
transformFunction: null
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
outputs: {
|
|
664
|
+
tooltipShow: "tooltipShow",
|
|
665
|
+
tooltipHide: "tooltipHide"
|
|
666
|
+
},
|
|
667
|
+
exportAs: ["uiTooltip"],
|
|
668
|
+
ngImport: i0
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
673
|
+
minVersion: "12.0.0",
|
|
674
|
+
version: "22.3.0",
|
|
675
|
+
ngImport: i0,
|
|
676
|
+
type: UiTooltip,
|
|
677
|
+
decorators: [{
|
|
678
|
+
type: Directive,
|
|
679
|
+
args: [{
|
|
680
|
+
selector: "[uiTooltip]",
|
|
681
|
+
exportAs: "uiTooltip"
|
|
682
|
+
}]
|
|
683
|
+
}],
|
|
684
|
+
ctorParameters: () => [],
|
|
685
|
+
propDecorators: {
|
|
686
|
+
content: [{
|
|
687
|
+
type: i0.Input,
|
|
688
|
+
args: [{
|
|
689
|
+
isSignal: true,
|
|
690
|
+
alias: "uiTooltip",
|
|
691
|
+
required: false
|
|
692
|
+
}]
|
|
693
|
+
}],
|
|
694
|
+
tooltipPosition: [{
|
|
695
|
+
type: i0.Input,
|
|
696
|
+
args: [{
|
|
697
|
+
isSignal: true,
|
|
698
|
+
alias: "tooltipPosition",
|
|
699
|
+
required: false
|
|
700
|
+
}]
|
|
701
|
+
}],
|
|
702
|
+
fitContent: [{
|
|
703
|
+
type: i0.Input,
|
|
704
|
+
args: [{
|
|
705
|
+
isSignal: true,
|
|
706
|
+
alias: "fitContent",
|
|
707
|
+
required: false
|
|
708
|
+
}]
|
|
709
|
+
}],
|
|
710
|
+
tooltipEvent: [{
|
|
711
|
+
type: i0.Input,
|
|
712
|
+
args: [{
|
|
713
|
+
isSignal: true,
|
|
714
|
+
alias: "tooltipEvent",
|
|
715
|
+
required: false
|
|
716
|
+
}]
|
|
717
|
+
}],
|
|
718
|
+
tooltipDisabled: [{
|
|
719
|
+
type: i0.Input,
|
|
720
|
+
args: [{
|
|
721
|
+
isSignal: true,
|
|
722
|
+
alias: "tooltipDisabled",
|
|
723
|
+
required: false
|
|
724
|
+
}]
|
|
725
|
+
}],
|
|
726
|
+
showDelay: [{
|
|
727
|
+
type: i0.Input,
|
|
728
|
+
args: [{
|
|
729
|
+
isSignal: true,
|
|
730
|
+
alias: "showDelay",
|
|
731
|
+
required: false
|
|
732
|
+
}]
|
|
733
|
+
}],
|
|
734
|
+
hideDelay: [{
|
|
735
|
+
type: i0.Input,
|
|
736
|
+
args: [{
|
|
737
|
+
isSignal: true,
|
|
738
|
+
alias: "hideDelay",
|
|
739
|
+
required: false
|
|
740
|
+
}]
|
|
741
|
+
}],
|
|
742
|
+
escape: [{
|
|
743
|
+
type: i0.Input,
|
|
744
|
+
args: [{
|
|
745
|
+
isSignal: true,
|
|
746
|
+
alias: "escape",
|
|
747
|
+
required: false
|
|
748
|
+
}]
|
|
749
|
+
}],
|
|
750
|
+
tooltipStyleClass: [{
|
|
751
|
+
type: i0.Input,
|
|
752
|
+
args: [{
|
|
753
|
+
isSignal: true,
|
|
754
|
+
alias: "tooltipStyleClass",
|
|
755
|
+
required: false
|
|
756
|
+
}]
|
|
757
|
+
}],
|
|
758
|
+
autoHide: [{
|
|
759
|
+
type: i0.Input,
|
|
760
|
+
args: [{
|
|
761
|
+
isSignal: true,
|
|
762
|
+
alias: "autoHide",
|
|
763
|
+
required: false
|
|
764
|
+
}]
|
|
765
|
+
}],
|
|
766
|
+
hideOnEscape: [{
|
|
767
|
+
type: i0.Input,
|
|
768
|
+
args: [{
|
|
769
|
+
isSignal: true,
|
|
770
|
+
alias: "hideOnEscape",
|
|
771
|
+
required: false
|
|
772
|
+
}]
|
|
773
|
+
}],
|
|
774
|
+
life: [{
|
|
775
|
+
type: i0.Input,
|
|
776
|
+
args: [{
|
|
777
|
+
isSignal: true,
|
|
778
|
+
alias: "life",
|
|
779
|
+
required: false
|
|
780
|
+
}]
|
|
781
|
+
}],
|
|
782
|
+
showOnEllipsis: [{
|
|
783
|
+
type: i0.Input,
|
|
784
|
+
args: [{
|
|
785
|
+
isSignal: true,
|
|
786
|
+
alias: "showOnEllipsis",
|
|
787
|
+
required: false
|
|
788
|
+
}]
|
|
789
|
+
}],
|
|
790
|
+
positionTop: [{
|
|
791
|
+
type: i0.Input,
|
|
792
|
+
args: [{
|
|
793
|
+
isSignal: true,
|
|
794
|
+
alias: "positionTop",
|
|
795
|
+
required: false
|
|
796
|
+
}]
|
|
797
|
+
}],
|
|
798
|
+
positionLeft: [{
|
|
799
|
+
type: i0.Input,
|
|
800
|
+
args: [{
|
|
801
|
+
isSignal: true,
|
|
802
|
+
alias: "positionLeft",
|
|
803
|
+
required: false
|
|
804
|
+
}]
|
|
805
|
+
}],
|
|
806
|
+
tooltipContext: [{
|
|
807
|
+
type: i0.Input,
|
|
808
|
+
args: [{
|
|
809
|
+
isSignal: true,
|
|
810
|
+
alias: "tooltipContext",
|
|
811
|
+
required: false
|
|
812
|
+
}]
|
|
813
|
+
}],
|
|
814
|
+
tooltipShow: [{
|
|
815
|
+
type: i0.Output,
|
|
816
|
+
args: ["tooltipShow"]
|
|
817
|
+
}],
|
|
818
|
+
tooltipHide: [{
|
|
819
|
+
type: i0.Output,
|
|
820
|
+
args: ["tooltipHide"]
|
|
821
|
+
}]
|
|
822
|
+
}
|
|
823
|
+
});
|
|
479
824
|
export { UiTooltip, UiTooltipPanel };
|
|
480
|
-
|
|
825
|
+
|
|
826
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-tooltip.mjs.map
|