novo-elements 13.2.0-next.12 → 13.2.0-next.13
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$tooltip-background: var(--tooltip-background-
|
|
1
|
+
$tooltip-background: var(--tooltip-color-background-default, #3D464D);
|
|
2
2
|
$tooltip-error-color: var(--color-shade-error, #b34e4d);
|
|
3
3
|
$tooltip-info-color: var(--color-shade-info, #3986ac);
|
|
4
4
|
$tooltip-warning-color: var(--color-shade-warning, #c09854);
|
|
@@ -25,14 +25,23 @@ $tooltip-success-color: var(--color-shade-success, #458746);
|
|
|
25
25
|
|
|
26
26
|
:host {
|
|
27
27
|
div {
|
|
28
|
+
display: flex;
|
|
29
|
+
max-width: 300px;
|
|
30
|
+
padding: var(--tooltip-spacing-container-medium-padding-vertical, 16px) var(--tooltip-spacing-container-medium-padding-horizontal, 16px);
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
gap: 10px;
|
|
34
|
+
border-radius: var(--tooltip-border-radius-medium, 8px);
|
|
28
35
|
background: $tooltip-background;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
font-size: var(--font-size
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
box-shadow: 0 1px 2px -1px rgba(40, 40, 40, 0.10), 0 1px 2px 0 rgba(40, 40, 40, 0.08), 0 2px 2px -1px rgba(40, 40, 40, 0.08);
|
|
37
|
+
color: var(--tooltip-color-content-default, #fff);
|
|
38
|
+
font-family: var(--typography-body-sm-font-family, Inter);
|
|
39
|
+
font-size: var(--typography-body-sm-font-size, 12px);
|
|
40
|
+
font-weight: var(--typography-body-sm-font-weight-default, 400);
|
|
41
|
+
line-height: var(--typography-body-sm-line-height, 16px);
|
|
42
|
+
letter-spacing: var(--typography-body-sm-letter-spacing, 0);
|
|
43
|
+
white-space: normal;
|
|
44
|
+
word-wrap: break-word;
|
|
36
45
|
|
|
37
46
|
&.error {
|
|
38
47
|
background-color: $tooltip-error-color;
|
|
@@ -117,16 +126,9 @@ $tooltip-success-color: var(--color-shade-success, #458746);
|
|
|
117
126
|
}
|
|
118
127
|
|
|
119
128
|
// Sizing
|
|
120
|
-
&.extra-large,
|
|
121
|
-
&.large,
|
|
122
|
-
&.small,
|
|
123
|
-
&.medium {
|
|
124
|
-
white-space: normal;
|
|
125
|
-
line-height: 1.4em;
|
|
126
|
-
word-wrap: break-word;
|
|
127
|
-
}
|
|
128
129
|
&.extra-large {
|
|
129
130
|
width: 400px;
|
|
131
|
+
max-width: unset;
|
|
130
132
|
font-size: 1.2vh;
|
|
131
133
|
}
|
|
132
134
|
&.large {
|
|
@@ -139,7 +141,7 @@ $tooltip-success-color: var(--color-shade-success, #458746);
|
|
|
139
141
|
width: 80px;
|
|
140
142
|
}
|
|
141
143
|
&.preline {
|
|
142
|
-
|
|
144
|
+
flex-direction: column;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
// Bounce
|
|
@@ -4,7 +4,8 @@ import { Overlay } from '@angular/cdk/overlay';
|
|
|
4
4
|
import * as i3 from '@angular/common';
|
|
5
5
|
|
|
6
6
|
declare class NovoTooltip {
|
|
7
|
-
message: string
|
|
7
|
+
readonly message: i0.WritableSignal<string>;
|
|
8
|
+
readonly messageLines: i0.Signal<string[]>;
|
|
8
9
|
hidden: boolean;
|
|
9
10
|
tooltipType: string;
|
|
10
11
|
rounded: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { signal, computed, Component, HostListener, Input, Directive, NgModule } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
6
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
@@ -10,8 +10,12 @@ import { BooleanInput } from 'novo-elements/utils';
|
|
|
10
10
|
|
|
11
11
|
// NG2
|
|
12
12
|
class NovoTooltip {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.message = signal('', ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
15
|
+
this.messageLines = computed(() => this.message().split('\n'), ...(ngDevMode ? [{ debugName: "messageLines" }] : []));
|
|
16
|
+
}
|
|
13
17
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoTooltip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: NovoTooltip, isStandalone: false, selector: "novo-tooltip", ngImport: i0, template: "@if (isHTML) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', preline ? 'preline' : '', bounce ? 'bounce' : '', position]\"\n [innerHTML]=\"message()\"></div>\n} @else if (preline) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', 'preline', bounce ? 'bounce' : '', position]\">\n @for (line of messageLines(); track $index) {\n <span>{{ line }}</span>\n }\n </div>\n} @else {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', bounce ? 'bounce' : '', position]\">{{ message() }}</div>\n}\n", styles: [":host div{display:flex;max-width:300px;padding:var(--tooltip-spacing-container-medium-padding-vertical, 16px) var(--tooltip-spacing-container-medium-padding-horizontal, 16px);justify-content:center;align-items:flex-start;gap:10px;border-radius:var(--tooltip-border-radius-medium, 8px);background:var(--tooltip-color-background-default, #3D464D);box-shadow:0 1px 2px -1px #2828281a,0 1px 2px #28282814,0 2px 2px -1px #28282814;color:var(--tooltip-color-content-default, #fff);font-family:var(--typography-body-sm-font-family, Inter);font-size:var(--typography-body-sm-font-size, 12px);font-weight:var(--typography-body-sm-font-weight-default, 400);line-height:var(--typography-body-sm-line-height, 16px);letter-spacing:var(--typography-body-sm-letter-spacing, 0);white-space:normal;word-wrap:break-word}:host div.error{background-color:var(--color-shade-error, #b34e4d)}:host div.error.top-right:before,:host div.error.top-left:before,:host div.error.top:before{border-top-color:var(--color-shade-error, #b34e4d)}:host div.error.bottom-left:before,:host div.error.bottom-right:before,:host div.error.bottom:before{border-bottom-color:var(--color-shade-error, #b34e4d)}:host div.error.left:before{border-left-color:var(--color-shade-error, #b34e4d)}:host div.error.right:before{border-right-color:var(--color-shade-error, #b34e4d)}:host div.info{background-color:var(--color-shade-info, #3986ac)}:host div.info.top-right:before,:host div.info.top-left:before,:host div.info.top:before{border-top-color:var(--color-shade-info, #3986ac)}:host div.info.bottom-left:before,:host div.info.bottom-right:before,:host div.info.bottom:before{border-bottom-color:var(--color-shade-info, #3986ac)}:host div.info.left:before{border-left-color:var(--color-shade-info, #3986ac)}:host div.info.right:before{border-right-color:var(--color-shade-info, #3986ac)}:host div.warning{background-color:var(--color-shade-warning, #c09854)}:host div.warning.top-right:before,:host div.warning.top-left:before,:host div.warning.top:before{border-top-color:var(--color-shade-warning, #c09854)}:host div.warning.bottom-left:before,:host div.warning.bottom-right:before,:host div.warning.bottom:before{border-bottom-color:var(--color-shade-warning, #c09854)}:host div.warning.left:before{border-left-color:var(--color-shade-warning, #c09854)}:host div.warning.right:before{border-right-color:var(--color-shade-warning, #c09854)}:host div.success{background-color:var(--color-shade-success, #458746)}:host div.success.top-right:before,:host div.success.top-left:before,:host div.success.top:before{border-top-color:var(--color-shade-success, #458746)}:host div.success.bottom-left:before,:host div.success.bottom-right:before,:host div.success.bottom:before{border-bottom-color:var(--color-shade-success, #458746)}:host div.success.left:before{border-left-color:var(--color-shade-success, #458746)}:host div.success.right:before{border-right-color:var(--color-shade-success, #458746)}:host div.top-right:before,:host div.top-left:before,:host div.top:before{border-top-color:var(--tooltip-color-background-default, #3D464D)}:host div.bottom-left:before,:host div.bottom-right:before,:host div.bottom:before{border-bottom-color:var(--tooltip-color-background-default, #3D464D)}:host div.left:before{border-left-color:var(--tooltip-color-background-default, #3D464D)}:host div.right:before{border-right-color:var(--tooltip-color-background-default, #3D464D)}:host div.top:before{margin-bottom:-11px;left:calc(50% - 6px);bottom:0}:host div.top-left:before{margin-right:0;margin-bottom:-11px;right:1px;bottom:0}:host div.top-right:before{margin-left:0;margin-bottom:-11px;left:1px;bottom:0}:host div.bottom:before{margin-top:-11px;left:calc(50% - 6px);top:0}:host div.bottom-left:before{margin-right:0;margin-top:-11px;right:1px;top:0}:host div.bottom-right:before{margin-left:0;margin-top:-11px;left:1px;top:0}:host div.left:before{margin-right:-11px;margin-bottom:-6px;right:0;bottom:50%}:host div.right:before{left:0;bottom:50%;margin-left:-11px;margin-bottom:-6px}:host div:before{content:\"\";position:absolute;background:0 0;border:6px solid transparent;box-sizing:border-box}:host div.extra-large{width:400px;max-width:unset;font-size:1.2vh}:host div.large{width:300px}:host div.medium{width:150px}:host div.small{width:80px}:host div.preline{flex-direction:column}:host div.bounce{animation:bounce .75s ease-in-out infinite}@keyframes bounce{0%{transform:translateY(0)}50%{transform:translateY(-10px)}to{transform:translateY(0)}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
15
19
|
trigger('state', [
|
|
16
20
|
state('initial, void, hidden', style({ opacity: '0' })),
|
|
17
21
|
state('visible', style({ opacity: '1' })),
|
|
@@ -49,7 +53,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
49
53
|
animate('0.3s 0.1s ease-in'),
|
|
50
54
|
]),
|
|
51
55
|
]),
|
|
52
|
-
], standalone: false, template: "
|
|
56
|
+
], standalone: false, template: "@if (isHTML) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', preline ? 'preline' : '', bounce ? 'bounce' : '', position]\"\n [innerHTML]=\"message()\"></div>\n} @else if (preline) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', 'preline', bounce ? 'bounce' : '', position]\">\n @for (line of messageLines(); track $index) {\n <span>{{ line }}</span>\n }\n </div>\n} @else {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', bounce ? 'bounce' : '', position]\">{{ message() }}</div>\n}\n", styles: [":host div{display:flex;max-width:300px;padding:var(--tooltip-spacing-container-medium-padding-vertical, 16px) var(--tooltip-spacing-container-medium-padding-horizontal, 16px);justify-content:center;align-items:flex-start;gap:10px;border-radius:var(--tooltip-border-radius-medium, 8px);background:var(--tooltip-color-background-default, #3D464D);box-shadow:0 1px 2px -1px #2828281a,0 1px 2px #28282814,0 2px 2px -1px #28282814;color:var(--tooltip-color-content-default, #fff);font-family:var(--typography-body-sm-font-family, Inter);font-size:var(--typography-body-sm-font-size, 12px);font-weight:var(--typography-body-sm-font-weight-default, 400);line-height:var(--typography-body-sm-line-height, 16px);letter-spacing:var(--typography-body-sm-letter-spacing, 0);white-space:normal;word-wrap:break-word}:host div.error{background-color:var(--color-shade-error, #b34e4d)}:host div.error.top-right:before,:host div.error.top-left:before,:host div.error.top:before{border-top-color:var(--color-shade-error, #b34e4d)}:host div.error.bottom-left:before,:host div.error.bottom-right:before,:host div.error.bottom:before{border-bottom-color:var(--color-shade-error, #b34e4d)}:host div.error.left:before{border-left-color:var(--color-shade-error, #b34e4d)}:host div.error.right:before{border-right-color:var(--color-shade-error, #b34e4d)}:host div.info{background-color:var(--color-shade-info, #3986ac)}:host div.info.top-right:before,:host div.info.top-left:before,:host div.info.top:before{border-top-color:var(--color-shade-info, #3986ac)}:host div.info.bottom-left:before,:host div.info.bottom-right:before,:host div.info.bottom:before{border-bottom-color:var(--color-shade-info, #3986ac)}:host div.info.left:before{border-left-color:var(--color-shade-info, #3986ac)}:host div.info.right:before{border-right-color:var(--color-shade-info, #3986ac)}:host div.warning{background-color:var(--color-shade-warning, #c09854)}:host div.warning.top-right:before,:host div.warning.top-left:before,:host div.warning.top:before{border-top-color:var(--color-shade-warning, #c09854)}:host div.warning.bottom-left:before,:host div.warning.bottom-right:before,:host div.warning.bottom:before{border-bottom-color:var(--color-shade-warning, #c09854)}:host div.warning.left:before{border-left-color:var(--color-shade-warning, #c09854)}:host div.warning.right:before{border-right-color:var(--color-shade-warning, #c09854)}:host div.success{background-color:var(--color-shade-success, #458746)}:host div.success.top-right:before,:host div.success.top-left:before,:host div.success.top:before{border-top-color:var(--color-shade-success, #458746)}:host div.success.bottom-left:before,:host div.success.bottom-right:before,:host div.success.bottom:before{border-bottom-color:var(--color-shade-success, #458746)}:host div.success.left:before{border-left-color:var(--color-shade-success, #458746)}:host div.success.right:before{border-right-color:var(--color-shade-success, #458746)}:host div.top-right:before,:host div.top-left:before,:host div.top:before{border-top-color:var(--tooltip-color-background-default, #3D464D)}:host div.bottom-left:before,:host div.bottom-right:before,:host div.bottom:before{border-bottom-color:var(--tooltip-color-background-default, #3D464D)}:host div.left:before{border-left-color:var(--tooltip-color-background-default, #3D464D)}:host div.right:before{border-right-color:var(--tooltip-color-background-default, #3D464D)}:host div.top:before{margin-bottom:-11px;left:calc(50% - 6px);bottom:0}:host div.top-left:before{margin-right:0;margin-bottom:-11px;right:1px;bottom:0}:host div.top-right:before{margin-left:0;margin-bottom:-11px;left:1px;bottom:0}:host div.bottom:before{margin-top:-11px;left:calc(50% - 6px);top:0}:host div.bottom-left:before{margin-right:0;margin-top:-11px;right:1px;top:0}:host div.bottom-right:before{margin-left:0;margin-top:-11px;left:1px;top:0}:host div.left:before{margin-right:-11px;margin-bottom:-6px;right:0;bottom:50%}:host div.right:before{left:0;bottom:50%;margin-left:-11px;margin-bottom:-6px}:host div:before{content:\"\";position:absolute;background:0 0;border:6px solid transparent;box-sizing:border-box}:host div.extra-large{width:400px;max-width:unset;font-size:1.2vh}:host div.large{width:300px}:host div.medium{width:150px}:host div.small{width:80px}:host div.preline{flex-direction:column}:host div.bounce{animation:bounce .75s ease-in-out infinite}@keyframes bounce{0%{transform:translateY(0)}50%{transform:translateY(-10px)}to{transform:translateY(0)}}\n"] }]
|
|
53
57
|
}] });
|
|
54
58
|
|
|
55
59
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -141,7 +145,7 @@ class TooltipDirective {
|
|
|
141
145
|
this.overlayRef.detach();
|
|
142
146
|
this.portal = this.portal || new ComponentPortal(NovoTooltip, this.viewContainerRef);
|
|
143
147
|
const tooltipInstance = this.overlayRef.attach(this.portal).instance;
|
|
144
|
-
tooltipInstance.message
|
|
148
|
+
tooltipInstance.message.set(this.tooltip);
|
|
145
149
|
tooltipInstance.tooltipType = this.type;
|
|
146
150
|
tooltipInstance.rounded = this.rounded;
|
|
147
151
|
tooltipInstance.size = this.size;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novo-elements-elements-tooltip.mjs","sources":["../../../projects/novo-elements/src/elements/tooltip/Tooltip.component.ts","../../../projects/novo-elements/src/elements/tooltip/Tooltip.html","../../../projects/novo-elements/src/elements/tooltip/Tooltip.directive.ts","../../../projects/novo-elements/src/elements/tooltip/Tooltip.module.ts","../../../projects/novo-elements/src/elements/tooltip/novo-elements-elements-tooltip.ts"],"sourcesContent":["// NG2\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'novo-tooltip',\n templateUrl: './Tooltip.html',\n styleUrls: ['./Tooltip.scss'],\n animations: [\n trigger('state', [\n state('initial, void, hidden', style({ opacity: '0' })),\n state('visible', style({ opacity: '1' })),\n transition('* => visible', [\n style({\n opacity: 0,\n }),\n animate('0.3s 0.1s ease-in'),\n ]),\n transition('* => hidden', [\n style({\n opacity: 1,\n }),\n animate('0.3s 0.1s ease-in'),\n ]),\n ]),\n ],\n standalone: false,\n})\nexport class NovoTooltip {\n public message: string;\n public hidden: boolean;\n public tooltipType: string;\n public rounded: boolean;\n public size: string;\n public positionStrategy: any;\n public preline: boolean;\n public noAnimate: boolean;\n public position: string;\n public isHTML: boolean;\n public bounce: boolean;\n}\n","<div *ngIf=\"this.isHTML\" [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', preline? 'preline' : '', bounce ? 'bounce' : '', position]\"\n [innerHTML]=\"message\"></div>\n<div *ngIf=\"!this.isHTML\" [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', preline? 'preline' : '', bounce ? 'bounce' : '', position]\">{{message}}</div>","// NG\nimport { ConnectedPosition, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, Directive, ElementRef, HostListener, Input, OnDestroy, OnInit, ViewContainerRef, signal } from '@angular/core';\n// APP\nimport { NovoTooltip } from './Tooltip.component';\nimport { BooleanInput } from 'novo-elements/utils';\n\n@Directive({\n selector: '[tooltip]',\n host: {\n '[attr.data-hint]': 'tooltip',\n },\n standalone: false,\n})\nexport class TooltipDirective implements OnDestroy, OnInit, AfterViewInit {\n @Input()\n tooltip: string;\n @Input('tooltipPosition')\n position: string = 'top';\n @Input('tooltipType')\n type: string = 'normal';\n @Input('tooltipSize')\n size: string;\n @Input('tooltipBounce')\n bounce: boolean;\n @Input('tooltipNoAnimate')\n noAnimate: boolean;\n @Input('tooltipRounded')\n rounded: boolean;\n @Input('tooltipAlways')\n always: boolean;\n @Input('tooltipPreline')\n preline: boolean;\n @Input('removeTooltipArrow')\n removeArrow: boolean = false;\n @Input('tooltipAutoPosition')\n autoPosition: boolean = true;\n @Input('tooltipIsHTML')\n isHTML: boolean;\n @Input('tooltipCloseOnClick')\n closeOnClick: boolean = false;\n @BooleanInput()\n @Input('tooltipOnOverflow')\n onOverflow: boolean = false;\n\n private _active = signal<boolean>(true);\n @Input('tooltipActive')\n set active(value: boolean) {\n this._active.set(value);\n }\n get active(): boolean {\n return this._active();\n }\n\n private tooltipInstance: NovoTooltip | null;\n private portal: ComponentPortal<NovoTooltip>;\n private overlayRef: OverlayRef;\n private _resizeObserver: ResizeObserver;\n\n constructor(protected overlay: Overlay, private viewContainerRef: ViewContainerRef, private elementRef: ElementRef) {}\n isPosition(position: string): boolean {\n return position.toLowerCase() === (this.position || '').toLowerCase();\n }\n\n isType(type: string): boolean {\n return type.toLowerCase() === (this.type || '').toLowerCase();\n }\n\n isSize(size: string): boolean {\n return size.toLowerCase() === (this.size || '').toLowerCase();\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.tooltip && this._active() && !this.always) {\n this.show();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.overlayRef && !this.always) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n @HostListener('click')\n onclick(): void {\n if (this.overlayRef && !this.always && this.closeOnClick) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n ngOnInit(): void {\n if (this.tooltip && this.always && this.active) {\n this.show();\n }\n }\n\n ngAfterViewInit(): void {\n if (this.onOverflow && this.elementRef?.nativeElement) {\n this._resizeObserver = new ResizeObserver(() => {\n const isOverflowing = this.elementRef.nativeElement.scrollWidth > this.elementRef.nativeElement.clientWidth;\n this._active.set(isOverflowing);\n });\n this._resizeObserver?.observe(this.elementRef.nativeElement);\n }\n }\n\n ngOnDestroy(): void {\n this._resizeObserver?.disconnect();\n if (this.overlayRef && !this.always) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n show(): void {\n const overlayState = new OverlayConfig();\n overlayState.positionStrategy = this.getPosition();\n\n if (this.always) {\n overlayState.scrollStrategy = this.overlay.scrollStrategies.reposition();\n } else {\n overlayState.scrollStrategy = this.overlay.scrollStrategies.close();\n }\n overlayState.scrollStrategy.enable();\n\n this.overlayRef = this.overlay.create(overlayState);\n\n this.overlayRef.detach();\n this.portal = this.portal || new ComponentPortal(NovoTooltip, this.viewContainerRef);\n\n const tooltipInstance = this.overlayRef.attach(this.portal).instance;\n tooltipInstance.message = this.tooltip;\n tooltipInstance.tooltipType = this.type;\n tooltipInstance.rounded = this.rounded;\n tooltipInstance.size = this.size;\n tooltipInstance.preline = this.preline;\n tooltipInstance.noAnimate = this.noAnimate;\n tooltipInstance.position = this.removeArrow ? 'no-arrow' : this.position;\n tooltipInstance.isHTML = this.isHTML;\n tooltipInstance.bounce = this.bounce;\n }\n\n @HostListener('blur')\n hide(): void {\n if (this.overlayRef) {\n this.overlayRef.detach();\n }\n }\n\n private getPosition(): FlexibleConnectedPositionStrategy {\n let defaultPosition: ConnectedPosition;\n let offsetX: number;\n let offsetY: number;\n const autoPositions: ConnectedPosition[] = [\n { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 12, offsetY: 0 },\n { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -12, offsetY: 0 },\n { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetX: 12, offsetY: -12 },\n { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetX: 12, offsetY: 12 },\n { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetX: -12, offsetY: -12 },\n { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetX: -12, offsetY: 12 },\n ];\n\n switch (this.position) {\n case 'right':\n defaultPosition = { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' };\n offsetX = 12;\n offsetY = 0;\n break;\n case 'bottom':\n defaultPosition = { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' };\n offsetX = 0;\n offsetY = 12;\n break;\n case 'top':\n defaultPosition = { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' };\n offsetX = 0;\n offsetY = -12;\n break;\n case 'left':\n defaultPosition = { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' };\n offsetX = -12;\n offsetY = 0;\n break;\n case 'top-left':\n defaultPosition = { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'bottom' };\n offsetX = 12;\n offsetY = -12;\n break;\n case 'bottom-left':\n defaultPosition = { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top' };\n offsetX = 12;\n offsetY = 12;\n break;\n case 'top-right':\n defaultPosition = { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom' };\n offsetX = -12;\n offsetY = -12;\n break;\n case 'bottom-right':\n defaultPosition = { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'top' };\n offsetX = -12;\n offsetY = 12;\n break;\n default:\n break;\n }\n\n const allPositions = this.autoPosition ? [defaultPosition].concat(autoPositions) : [defaultPosition];\n const strategy: FlexibleConnectedPositionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withFlexibleDimensions(false)\n .withDefaultOffsetX(offsetX)\n .withDefaultOffsetY(offsetY)\n .withPositions(allPositions);\n return strategy;\n }\n}\n","// NG2\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { NovoTooltip } from './Tooltip.component';\n// APP\nimport { TooltipDirective } from './Tooltip.directive';\n\n@NgModule({\n declarations: [TooltipDirective, NovoTooltip],\n exports: [TooltipDirective],\n imports: [CommonModule],\n})\nexport class NovoTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAAA;MA4Ba,WAAW,CAAA;+GAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BxB,0eAIuJ,EAAA,MAAA,EAAA,CAAA,67HAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EDIvI;YACR,OAAO,CAAC,OAAO,EAAE;gBACb,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;gBACvD,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;gBACzC,UAAU,CAAC,cAAc,EAAE;AACvB,oBAAA,KAAK,CAAC;AACF,wBAAA,OAAO,EAAE,CAAC;qBACb,CAAC;oBACF,OAAO,CAAC,mBAAmB,CAAC;iBAC/B,CAAC;gB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,mBAAmB;;sBAIzB,KAAK;uBAAC,eAAe;;sBA0BrB,YAAY;uBAAC,YAAY;;sBAOzB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBA4DpB,YAAY;uBAAC,MAAM;;;ACpJtB;MAYa,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBAJb,gBAAgB,EAAE,WAAW,CAAA,EAAA,OAAA,EAAA,CAElC,YAAY,aADZ,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAGf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAFlB,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAEX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC;oBAC7C,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"novo-elements-elements-tooltip.mjs","sources":["../../../projects/novo-elements/src/elements/tooltip/Tooltip.component.ts","../../../projects/novo-elements/src/elements/tooltip/Tooltip.html","../../../projects/novo-elements/src/elements/tooltip/Tooltip.directive.ts","../../../projects/novo-elements/src/elements/tooltip/Tooltip.module.ts","../../../projects/novo-elements/src/elements/tooltip/novo-elements-elements-tooltip.ts"],"sourcesContent":["// NG2\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport { Component, computed, signal } from '@angular/core';\n\n@Component({\n selector: 'novo-tooltip',\n templateUrl: './Tooltip.html',\n styleUrls: ['./Tooltip.scss'],\n animations: [\n trigger('state', [\n state('initial, void, hidden', style({ opacity: '0' })),\n state('visible', style({ opacity: '1' })),\n transition('* => visible', [\n style({\n opacity: 0,\n }),\n animate('0.3s 0.1s ease-in'),\n ]),\n transition('* => hidden', [\n style({\n opacity: 1,\n }),\n animate('0.3s 0.1s ease-in'),\n ]),\n ]),\n ],\n standalone: false,\n})\nexport class NovoTooltip {\n public readonly message = signal<string>('');\n public readonly messageLines = computed(() => this.message().split('\\n'));\n public hidden: boolean;\n public tooltipType: string;\n public rounded: boolean;\n public size: string;\n public positionStrategy: any;\n public preline: boolean;\n public noAnimate: boolean;\n public position: string;\n public isHTML: boolean;\n public bounce: boolean;\n}\n","@if (isHTML) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', preline ? 'preline' : '', bounce ? 'bounce' : '', position]\"\n [innerHTML]=\"message()\"></div>\n} @else if (preline) {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', 'preline', bounce ? 'bounce' : '', position]\">\n @for (line of messageLines(); track $index) {\n <span>{{ line }}</span>\n }\n </div>\n} @else {\n <div [@state]=\"noAnimate ? 'no-animation' : 'visible'\"\n [ngClass]=\"[tooltipType, rounded ? 'rounded' : '', size ? size : '', bounce ? 'bounce' : '', position]\">{{ message() }}</div>\n}\n","// NG\nimport { ConnectedPosition, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, Directive, ElementRef, HostListener, Input, OnDestroy, OnInit, ViewContainerRef, signal } from '@angular/core';\n// APP\nimport { NovoTooltip } from './Tooltip.component';\nimport { BooleanInput } from 'novo-elements/utils';\n\n@Directive({\n selector: '[tooltip]',\n host: {\n '[attr.data-hint]': 'tooltip',\n },\n standalone: false,\n})\nexport class TooltipDirective implements OnDestroy, OnInit, AfterViewInit {\n @Input()\n tooltip: string;\n @Input('tooltipPosition')\n position: string = 'top';\n @Input('tooltipType')\n type: string = 'normal';\n @Input('tooltipSize')\n size: string;\n @Input('tooltipBounce')\n bounce: boolean;\n @Input('tooltipNoAnimate')\n noAnimate: boolean;\n @Input('tooltipRounded')\n rounded: boolean;\n @Input('tooltipAlways')\n always: boolean;\n @Input('tooltipPreline')\n preline: boolean;\n @Input('removeTooltipArrow')\n removeArrow: boolean = false;\n @Input('tooltipAutoPosition')\n autoPosition: boolean = true;\n @Input('tooltipIsHTML')\n isHTML: boolean;\n @Input('tooltipCloseOnClick')\n closeOnClick: boolean = false;\n @BooleanInput()\n @Input('tooltipOnOverflow')\n onOverflow: boolean = false;\n\n private _active = signal<boolean>(true);\n @Input('tooltipActive')\n set active(value: boolean) {\n this._active.set(value);\n }\n get active(): boolean {\n return this._active();\n }\n\n private tooltipInstance: NovoTooltip | null;\n private portal: ComponentPortal<NovoTooltip>;\n private overlayRef: OverlayRef;\n private _resizeObserver: ResizeObserver;\n\n constructor(protected overlay: Overlay, private viewContainerRef: ViewContainerRef, private elementRef: ElementRef) {}\n isPosition(position: string): boolean {\n return position.toLowerCase() === (this.position || '').toLowerCase();\n }\n\n isType(type: string): boolean {\n return type.toLowerCase() === (this.type || '').toLowerCase();\n }\n\n isSize(size: string): boolean {\n return size.toLowerCase() === (this.size || '').toLowerCase();\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.tooltip && this._active() && !this.always) {\n this.show();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.overlayRef && !this.always) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n @HostListener('click')\n onclick(): void {\n if (this.overlayRef && !this.always && this.closeOnClick) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n ngOnInit(): void {\n if (this.tooltip && this.always && this.active) {\n this.show();\n }\n }\n\n ngAfterViewInit(): void {\n if (this.onOverflow && this.elementRef?.nativeElement) {\n this._resizeObserver = new ResizeObserver(() => {\n const isOverflowing = this.elementRef.nativeElement.scrollWidth > this.elementRef.nativeElement.clientWidth;\n this._active.set(isOverflowing);\n });\n this._resizeObserver?.observe(this.elementRef.nativeElement);\n }\n }\n\n ngOnDestroy(): void {\n this._resizeObserver?.disconnect();\n if (this.overlayRef && !this.always) {\n this.hide();\n this.overlayRef.dispose();\n }\n }\n\n show(): void {\n const overlayState = new OverlayConfig();\n overlayState.positionStrategy = this.getPosition();\n\n if (this.always) {\n overlayState.scrollStrategy = this.overlay.scrollStrategies.reposition();\n } else {\n overlayState.scrollStrategy = this.overlay.scrollStrategies.close();\n }\n overlayState.scrollStrategy.enable();\n\n this.overlayRef = this.overlay.create(overlayState);\n\n this.overlayRef.detach();\n this.portal = this.portal || new ComponentPortal(NovoTooltip, this.viewContainerRef);\n\n const tooltipInstance = this.overlayRef.attach(this.portal).instance;\n tooltipInstance.message.set(this.tooltip);\n tooltipInstance.tooltipType = this.type;\n tooltipInstance.rounded = this.rounded;\n tooltipInstance.size = this.size;\n tooltipInstance.preline = this.preline;\n tooltipInstance.noAnimate = this.noAnimate;\n tooltipInstance.position = this.removeArrow ? 'no-arrow' : this.position;\n tooltipInstance.isHTML = this.isHTML;\n tooltipInstance.bounce = this.bounce;\n }\n\n @HostListener('blur')\n hide(): void {\n if (this.overlayRef) {\n this.overlayRef.detach();\n }\n }\n\n private getPosition(): FlexibleConnectedPositionStrategy {\n let defaultPosition: ConnectedPosition;\n let offsetX: number;\n let offsetY: number;\n const autoPositions: ConnectedPosition[] = [\n { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 12, offsetY: 0 },\n { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -12, offsetY: 0 },\n { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetX: 0, offsetY: 12 },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetX: 0, offsetY: -12 },\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetX: 12, offsetY: -12 },\n { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetX: 12, offsetY: 12 },\n { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetX: -12, offsetY: -12 },\n { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetX: -12, offsetY: 12 },\n ];\n\n switch (this.position) {\n case 'right':\n defaultPosition = { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' };\n offsetX = 12;\n offsetY = 0;\n break;\n case 'bottom':\n defaultPosition = { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' };\n offsetX = 0;\n offsetY = 12;\n break;\n case 'top':\n defaultPosition = { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' };\n offsetX = 0;\n offsetY = -12;\n break;\n case 'left':\n defaultPosition = { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' };\n offsetX = -12;\n offsetY = 0;\n break;\n case 'top-left':\n defaultPosition = { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'bottom' };\n offsetX = 12;\n offsetY = -12;\n break;\n case 'bottom-left':\n defaultPosition = { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top' };\n offsetX = 12;\n offsetY = 12;\n break;\n case 'top-right':\n defaultPosition = { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom' };\n offsetX = -12;\n offsetY = -12;\n break;\n case 'bottom-right':\n defaultPosition = { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'top' };\n offsetX = -12;\n offsetY = 12;\n break;\n default:\n break;\n }\n\n const allPositions = this.autoPosition ? [defaultPosition].concat(autoPositions) : [defaultPosition];\n const strategy: FlexibleConnectedPositionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withFlexibleDimensions(false)\n .withDefaultOffsetX(offsetX)\n .withDefaultOffsetY(offsetY)\n .withPositions(allPositions);\n return strategy;\n }\n}\n","// NG2\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { NovoTooltip } from './Tooltip.component';\n// APP\nimport { TooltipDirective } from './Tooltip.directive';\n\n@NgModule({\n declarations: [TooltipDirective, NovoTooltip],\n exports: [TooltipDirective],\n imports: [CommonModule],\n})\nexport class NovoTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAAA;MA4Ba,WAAW,CAAA;AAxBxB,IAAA,WAAA,GAAA;AAyBkB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAS,EAAE,mDAAC;AAC5B,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,wDAAC;AAW1E,IAAA;+GAbY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BxB,0wBAeA,EAAA,MA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