@dev-tcloud/tcloud-ui 5.3.6-beta.3 → 5.3.6
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/fesm2022/dev-tcloud-tcloud-ui.mjs +103 -1
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/revitalizacao/components/tc-rev-components.module.d.ts +5 -4
- package/lib/revitalizacao/components/tc-rev-tooltip/tc-rev-tooltip.directive.d.ts +19 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/scss/tcloud-revitalizacao/components/_tc-rev-tooltip.scss +206 -0
- package/scss/tcloud-revitalizacao/tc-rev-styles.scss +1 -0
|
@@ -29,11 +29,12 @@ import * as i27 from "./tc-rev-tab-group/tc-rev-tab-group.component";
|
|
|
29
29
|
import * as i28 from "./tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component";
|
|
30
30
|
import * as i29 from "./tc-rev-tag/tc-rev-tag.component";
|
|
31
31
|
import * as i30 from "./tc-rev-toast/tc-rev-toast.component";
|
|
32
|
-
import * as i31 from "./tc-
|
|
33
|
-
import * as i32 from "./tc-sub-navbar/
|
|
34
|
-
import * as i33 from "./tc-
|
|
32
|
+
import * as i31 from "./tc-rev-tooltip/tc-rev-tooltip.directive";
|
|
33
|
+
import * as i32 from "./tc-sub-navbar/tc-sub-navbar.component";
|
|
34
|
+
import * as i33 from "./tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component";
|
|
35
|
+
import * as i34 from "./tc-rev-wizard-steps/tc-rev-wizard-steps.component";
|
|
35
36
|
export declare class TcRevComponentsLibModule {
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<TcRevComponentsLibModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSlideToggleDirective, typeof i26.TcRevSmallLoadingComponent, typeof i27.TcRevTabGroupComponent, typeof i28.TcRevTabItemComponent, typeof i29.TcRevTagComponent, typeof i30.TcRevToastComponent, typeof i31.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TcRevComponentsLibModule, never, [typeof i1.TcRevBreadcrumbComponent, typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSlideToggleDirective, typeof i26.TcRevSmallLoadingComponent, typeof i27.TcRevTabGroupComponent, typeof i28.TcRevTabItemComponent, typeof i29.TcRevTagComponent, typeof i30.TcRevToastComponent, typeof i31.TcRevTooltipDirective, typeof i32.TcRevSubNavbarComponent, typeof i33.TcRevSubNavbarItemComponent, typeof i34.TcRevWizardStepsComponent], [typeof i2.TcRevButtonDirective, typeof i3.TcRevCalendarComponent, typeof i4.TcRevCardComponent, typeof i5.TcRevCardAccordionComponent, typeof i6.TcRevCardTitleComponent, typeof i7.TcRevCheckboxDirective, typeof i8.TcRevDropdownComponent, typeof i9.TcRevDropdownGroupedComponent, typeof i10.TcRevDropdownMultiComponent, typeof i11.TcRevDropdownMultiLevelComponent, typeof i12.TcRevEmptyContentComponent, typeof i13.TcRevFaqComponent, typeof i14.TcRevIconButtonDirective, typeof i15.TcRevInputContainerComponent, typeof i16.TcRevInputDirective, typeof i17.TcRevLoadingComponent, typeof i18.TcRevMessageComponent, typeof i19.TcRevMultiInputComponent, typeof i20.TcRevPaginationComponent, typeof i21.TcRevProgressStatusBarComponent, typeof i26.TcRevSmallLoadingComponent, typeof i22.TcRevRadioDirective, typeof i23.TcRevSearchInputComponent, typeof i24.TcRevSideDrawerComponent, typeof i25.TcRevSlideToggleDirective, typeof i27.TcRevTabGroupComponent, typeof i28.TcRevTabItemComponent, typeof i29.TcRevTagComponent, typeof i30.TcRevToastComponent, typeof i31.TcRevTooltipDirective, typeof i32.TcRevSubNavbarComponent, typeof i33.TcRevSubNavbarItemComponent, typeof i34.TcRevWizardStepsComponent]>;
|
|
38
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<TcRevComponentsLibModule>;
|
|
39
40
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TcRevTooltipDirective {
|
|
4
|
+
private _el;
|
|
5
|
+
private _renderer;
|
|
6
|
+
private _vcr;
|
|
7
|
+
tcRevTooltip: import("@angular/core").InputSignal<string>;
|
|
8
|
+
position: import("@angular/core").InputSignal<"top" | "left" | "right" | "bottom">;
|
|
9
|
+
private tooltipElement;
|
|
10
|
+
constructor(_el: ElementRef, _renderer: Renderer2, _vcr: ViewContainerRef);
|
|
11
|
+
onMouseEnter(): void;
|
|
12
|
+
onMouseLeave(): void;
|
|
13
|
+
private isValidTooltipText;
|
|
14
|
+
private showTooltip;
|
|
15
|
+
private hideTooltip;
|
|
16
|
+
private positionTooltip;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TcRevTooltipDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TcRevTooltipDirective, "[tcRevTooltip]", never, { "tcRevTooltip": { "alias": "tcRevTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export * from './lib/revitalizacao/components/tc-rev-tab-group/tc-rev-tab-item/t
|
|
|
113
113
|
export * from './lib/revitalizacao/components/tc-rev-tag/tag-colors.enum';
|
|
114
114
|
export * from './lib/revitalizacao/components/tc-rev-tag/tc-rev-tag.component';
|
|
115
115
|
export * from './lib/revitalizacao/components/tc-rev-toast/tc-rev-toast.component';
|
|
116
|
+
export * from './lib/revitalizacao/components/tc-rev-tooltip/tc-rev-tooltip.directive';
|
|
116
117
|
export * from './lib/revitalizacao/components/tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component';
|
|
117
118
|
export * from './lib/revitalizacao/components/tc-sub-navbar/tc-sub-navbar.component';
|
|
118
119
|
export * from './lib/revitalizacao/util/ellipsed-text';
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
.tc-rev-tooltip {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 9999;
|
|
4
|
+
font-family: var(--f-family);
|
|
5
|
+
font-size: var(--f-size-12);
|
|
6
|
+
line-height: var(--l-height-16);
|
|
7
|
+
font-weight: var(--f-weight-400);
|
|
8
|
+
color: var(--c-neutral-50);
|
|
9
|
+
background-color: var(--c-neutral-800);
|
|
10
|
+
padding: 8px 12px;
|
|
11
|
+
border-radius: 6px;
|
|
12
|
+
box-shadow: var(--shadow-md);
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
max-width: 300px;
|
|
15
|
+
word-wrap: break-word;
|
|
16
|
+
white-space: normal;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
|
|
22
|
+
// Estado visível
|
|
23
|
+
&.tc-rev-tooltip--visible {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
visibility: visible;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Setas indicativas de direção
|
|
29
|
+
&::after {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 0;
|
|
33
|
+
height: 0;
|
|
34
|
+
border: 5px solid transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Tooltip posicionado no topo
|
|
38
|
+
&.tc-rev-tooltip--top {
|
|
39
|
+
&::after {
|
|
40
|
+
top: 100%;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
border-top-color: var(--c-neutral-800);
|
|
44
|
+
border-bottom: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Tooltip posicionado embaixo
|
|
49
|
+
&.tc-rev-tooltip--bottom {
|
|
50
|
+
&::after {
|
|
51
|
+
bottom: 100%;
|
|
52
|
+
left: 50%;
|
|
53
|
+
transform: translateX(-50%);
|
|
54
|
+
border-bottom-color: var(--c-neutral-800);
|
|
55
|
+
border-top: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Tooltip posicionado à esquerda
|
|
60
|
+
&.tc-rev-tooltip--left {
|
|
61
|
+
&::after {
|
|
62
|
+
top: 50%;
|
|
63
|
+
left: 100%;
|
|
64
|
+
transform: translateY(-50%);
|
|
65
|
+
border-left-color: var(--c-neutral-800);
|
|
66
|
+
border-right: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Tooltip posicionado à direita
|
|
71
|
+
&.tc-rev-tooltip--right {
|
|
72
|
+
&::after {
|
|
73
|
+
top: 50%;
|
|
74
|
+
right: 100%;
|
|
75
|
+
transform: translateY(-50%);
|
|
76
|
+
border-right-color: var(--c-neutral-800);
|
|
77
|
+
border-left: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Variantes de tema
|
|
82
|
+
&.tc-rev-tooltip--primary {
|
|
83
|
+
background-color: var(--c-primary-600);
|
|
84
|
+
|
|
85
|
+
&.tc-rev-tooltip--top::after {
|
|
86
|
+
border-top-color: var(--c-primary-600);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.tc-rev-tooltip--bottom::after {
|
|
90
|
+
border-bottom-color: var(--c-primary-600);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.tc-rev-tooltip--left::after {
|
|
94
|
+
border-left-color: var(--c-primary-600);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.tc-rev-tooltip--right::after {
|
|
98
|
+
border-right-color: var(--c-primary-600);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.tc-rev-tooltip--danger {
|
|
103
|
+
background-color: var(--c-danger-500);
|
|
104
|
+
|
|
105
|
+
&.tc-rev-tooltip--top::after {
|
|
106
|
+
border-top-color: var(--c-danger-500);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.tc-rev-tooltip--bottom::after {
|
|
110
|
+
border-bottom-color: var(--c-danger-500);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.tc-rev-tooltip--left::after {
|
|
114
|
+
border-left-color: var(--c-danger-500);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.tc-rev-tooltip--right::after {
|
|
118
|
+
border-right-color: var(--c-danger-500);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.tc-rev-tooltip--success {
|
|
123
|
+
background-color: var(--c-success-500);
|
|
124
|
+
|
|
125
|
+
&.tc-rev-tooltip--top::after {
|
|
126
|
+
border-top-color: var(--c-success-500);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.tc-rev-tooltip--bottom::after {
|
|
130
|
+
border-bottom-color: var(--c-success-500);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.tc-rev-tooltip--left::after {
|
|
134
|
+
border-left-color: var(--c-success-500);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.tc-rev-tooltip--right::after {
|
|
138
|
+
border-right-color: var(--c-success-500);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.tc-rev-tooltip--info {
|
|
143
|
+
background-color: var(--c-info-500);
|
|
144
|
+
|
|
145
|
+
&.tc-rev-tooltip--top::after {
|
|
146
|
+
border-top-color: var(--c-info-500);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.tc-rev-tooltip--bottom::after {
|
|
150
|
+
border-bottom-color: var(--c-info-500);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.tc-rev-tooltip--left::after {
|
|
154
|
+
border-left-color: var(--c-info-500);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.tc-rev-tooltip--right::after {
|
|
158
|
+
border-right-color: var(--c-info-500);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.tc-rev-tooltip--alert {
|
|
163
|
+
background-color: var(--c-alert-500);
|
|
164
|
+
|
|
165
|
+
&.tc-rev-tooltip--top::after {
|
|
166
|
+
border-top-color: var(--c-alert-500);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.tc-rev-tooltip--bottom::after {
|
|
170
|
+
border-bottom-color: var(--c-alert-500);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.tc-rev-tooltip--left::after {
|
|
174
|
+
border-left-color: var(--c-alert-500);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.tc-rev-tooltip--right::after {
|
|
178
|
+
border-right-color: var(--c-alert-500);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Variantes de tamanho
|
|
183
|
+
&.tc-rev-tooltip--sm {
|
|
184
|
+
font-size: var(--f-size-12);
|
|
185
|
+
padding: 6px 10px;
|
|
186
|
+
|
|
187
|
+
&::after {
|
|
188
|
+
border-width: 4px;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.tc-rev-tooltip--md {
|
|
193
|
+
font-size: var(--f-size-14);
|
|
194
|
+
padding: 8px 12px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.tc-rev-tooltip--lg {
|
|
198
|
+
font-size: var(--f-size-16);
|
|
199
|
+
padding: 10px 16px;
|
|
200
|
+
max-width: 400px;
|
|
201
|
+
|
|
202
|
+
&::after {
|
|
203
|
+
border-width: 6px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|