1 | import { NgModule, Directive, Input } from '@angular/core';
|
---|
2 | import { CommonModule } from '@angular/common';
|
---|
3 | import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
|
---|
4 | import { ZIndexUtils } from 'primeng/utils';
|
---|
5 | import * as i0 from "@angular/core";
|
---|
6 | import * as i1 from "primeng/api";
|
---|
7 | export class Tooltip {
|
---|
8 | constructor(el, zone, config) {
|
---|
9 | this.el = el;
|
---|
10 | this.zone = zone;
|
---|
11 | this.config = config;
|
---|
12 | this.escape = true;
|
---|
13 | this._tooltipOptions = {
|
---|
14 | tooltipPosition: 'right',
|
---|
15 | tooltipEvent: 'hover',
|
---|
16 | appendTo: 'body',
|
---|
17 | tooltipZIndex: 'auto',
|
---|
18 | escape: false,
|
---|
19 | positionTop: 0,
|
---|
20 | positionLeft: 0
|
---|
21 | };
|
---|
22 | }
|
---|
23 | get disabled() {
|
---|
24 | return this._disabled;
|
---|
25 | }
|
---|
26 | set disabled(val) {
|
---|
27 | this._disabled = val;
|
---|
28 | this.deactivate();
|
---|
29 | }
|
---|
30 | ngAfterViewInit() {
|
---|
31 | this.zone.runOutsideAngular(() => {
|
---|
32 | if (this.getOption('tooltipEvent') === 'hover') {
|
---|
33 | this.mouseEnterListener = this.onMouseEnter.bind(this);
|
---|
34 | this.mouseLeaveListener = this.onMouseLeave.bind(this);
|
---|
35 | this.clickListener = this.onClick.bind(this);
|
---|
36 | this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener);
|
---|
37 | this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener);
|
---|
38 | this.el.nativeElement.addEventListener('click', this.clickListener);
|
---|
39 | }
|
---|
40 | else if (this.getOption('tooltipEvent') === 'focus') {
|
---|
41 | this.focusListener = this.onFocus.bind(this);
|
---|
42 | this.blurListener = this.onBlur.bind(this);
|
---|
43 | this.el.nativeElement.addEventListener('focus', this.focusListener);
|
---|
44 | this.el.nativeElement.addEventListener('blur', this.blurListener);
|
---|
45 | }
|
---|
46 | });
|
---|
47 | }
|
---|
48 | ngOnChanges(simpleChange) {
|
---|
49 | if (simpleChange.tooltipPosition) {
|
---|
50 | this.setOption({ tooltipPosition: simpleChange.tooltipPosition.currentValue });
|
---|
51 | }
|
---|
52 | if (simpleChange.tooltipEvent) {
|
---|
53 | this.setOption({ tooltipEvent: simpleChange.tooltipEvent.currentValue });
|
---|
54 | }
|
---|
55 | if (simpleChange.appendTo) {
|
---|
56 | this.setOption({ appendTo: simpleChange.appendTo.currentValue });
|
---|
57 | }
|
---|
58 | if (simpleChange.positionStyle) {
|
---|
59 | this.setOption({ positionStyle: simpleChange.positionStyle.currentValue });
|
---|
60 | }
|
---|
61 | if (simpleChange.tooltipStyleClass) {
|
---|
62 | this.setOption({ tooltipStyleClass: simpleChange.tooltipStyleClass.currentValue });
|
---|
63 | }
|
---|
64 | if (simpleChange.tooltipZIndex) {
|
---|
65 | this.setOption({ tooltipZIndex: simpleChange.tooltipZIndex.currentValue });
|
---|
66 | }
|
---|
67 | if (simpleChange.escape) {
|
---|
68 | this.setOption({ escape: simpleChange.escape.currentValue });
|
---|
69 | }
|
---|
70 | if (simpleChange.showDelay) {
|
---|
71 | this.setOption({ showDelay: simpleChange.showDelay.currentValue });
|
---|
72 | }
|
---|
73 | if (simpleChange.hideDelay) {
|
---|
74 | this.setOption({ hideDelay: simpleChange.hideDelay.currentValue });
|
---|
75 | }
|
---|
76 | if (simpleChange.life) {
|
---|
77 | this.setOption({ life: simpleChange.life.currentValue });
|
---|
78 | }
|
---|
79 | if (simpleChange.positionTop) {
|
---|
80 | this.setOption({ positionTop: simpleChange.positionTop.currentValue });
|
---|
81 | }
|
---|
82 | if (simpleChange.positionLeft) {
|
---|
83 | this.setOption({ positionLeft: simpleChange.positionLeft.currentValue });
|
---|
84 | }
|
---|
85 | if (simpleChange.disabled) {
|
---|
86 | this.setOption({ disabled: simpleChange.disabled.currentValue });
|
---|
87 | }
|
---|
88 | if (simpleChange.text) {
|
---|
89 | this.setOption({ tooltipLabel: simpleChange.text.currentValue });
|
---|
90 | if (this.active) {
|
---|
91 | if (simpleChange.text.currentValue) {
|
---|
92 | if (this.container && this.container.offsetParent) {
|
---|
93 | this.updateText();
|
---|
94 | this.align();
|
---|
95 | }
|
---|
96 | else {
|
---|
97 | this.show();
|
---|
98 | }
|
---|
99 | }
|
---|
100 | else {
|
---|
101 | this.hide();
|
---|
102 | }
|
---|
103 | }
|
---|
104 | }
|
---|
105 | if (simpleChange.tooltipOptions) {
|
---|
106 | this._tooltipOptions = { ...this._tooltipOptions, ...simpleChange.tooltipOptions.currentValue };
|
---|
107 | this.deactivate();
|
---|
108 | if (this.active) {
|
---|
109 | if (this.getOption('tooltipLabel')) {
|
---|
110 | if (this.container && this.container.offsetParent) {
|
---|
111 | this.updateText();
|
---|
112 | this.align();
|
---|
113 | }
|
---|
114 | else {
|
---|
115 | this.show();
|
---|
116 | }
|
---|
117 | }
|
---|
118 | else {
|
---|
119 | this.hide();
|
---|
120 | }
|
---|
121 | }
|
---|
122 | }
|
---|
123 | }
|
---|
124 | onMouseEnter(e) {
|
---|
125 | if (!this.container && !this.showTimeout) {
|
---|
126 | this.activate();
|
---|
127 | }
|
---|
128 | }
|
---|
129 | onMouseLeave(e) {
|
---|
130 | this.deactivate();
|
---|
131 | }
|
---|
132 | onFocus(e) {
|
---|
133 | this.activate();
|
---|
134 | }
|
---|
135 | onBlur(e) {
|
---|
136 | this.deactivate();
|
---|
137 | }
|
---|
138 | onClick(e) {
|
---|
139 | this.deactivate();
|
---|
140 | }
|
---|
141 | activate() {
|
---|
142 | this.active = true;
|
---|
143 | this.clearHideTimeout();
|
---|
144 | if (this.getOption('showDelay'))
|
---|
145 | this.showTimeout = setTimeout(() => { this.show(); }, this.getOption('showDelay'));
|
---|
146 | else
|
---|
147 | this.show();
|
---|
148 | if (this.getOption('life')) {
|
---|
149 | let duration = this.getOption('showDelay') ? this.getOption('life') + this.getOption('showDelay') : this.getOption('life');
|
---|
150 | this.hideTimeout = setTimeout(() => { this.hide(); }, duration);
|
---|
151 | }
|
---|
152 | }
|
---|
153 | deactivate() {
|
---|
154 | this.active = false;
|
---|
155 | this.clearShowTimeout();
|
---|
156 | if (this.getOption('hideDelay')) {
|
---|
157 | this.clearHideTimeout(); //life timeout
|
---|
158 | this.hideTimeout = setTimeout(() => { this.hide(); }, this.getOption('hideDelay'));
|
---|
159 | }
|
---|
160 | else {
|
---|
161 | this.hide();
|
---|
162 | }
|
---|
163 | }
|
---|
164 | create() {
|
---|
165 | if (this.container) {
|
---|
166 | this.clearHideTimeout();
|
---|
167 | this.remove();
|
---|
168 | }
|
---|
169 | this.container = document.createElement('div');
|
---|
170 | let tooltipArrow = document.createElement('div');
|
---|
171 | tooltipArrow.className = 'p-tooltip-arrow';
|
---|
172 | this.container.appendChild(tooltipArrow);
|
---|
173 | this.tooltipText = document.createElement('div');
|
---|
174 | this.tooltipText.className = 'p-tooltip-text';
|
---|
175 | this.updateText();
|
---|
176 | if (this.getOption('positionStyle')) {
|
---|
177 | this.container.style.position = this.getOption('positionStyle');
|
---|
178 | }
|
---|
179 | this.container.appendChild(this.tooltipText);
|
---|
180 | if (this.getOption('appendTo') === 'body')
|
---|
181 | document.body.appendChild(this.container);
|
---|
182 | else if (this.getOption('appendTo') === 'target')
|
---|
183 | DomHandler.appendChild(this.container, this.el.nativeElement);
|
---|
184 | else
|
---|
185 | DomHandler.appendChild(this.container, this.getOption('appendTo'));
|
---|
186 | this.container.style.display = 'inline-block';
|
---|
187 | }
|
---|
188 | show() {
|
---|
189 | if (!this.getOption('tooltipLabel') || this.getOption('disabled')) {
|
---|
190 | return;
|
---|
191 | }
|
---|
192 | this.create();
|
---|
193 | this.align();
|
---|
194 | DomHandler.fadeIn(this.container, 250);
|
---|
195 | if (this.getOption('tooltipZIndex') === 'auto')
|
---|
196 | ZIndexUtils.set('tooltip', this.container, this.config.zIndex.tooltip);
|
---|
197 | else
|
---|
198 | this.container.style.zIndex = this.getOption('tooltipZIndex');
|
---|
199 | this.bindDocumentResizeListener();
|
---|
200 | this.bindScrollListener();
|
---|
201 | }
|
---|
202 | hide() {
|
---|
203 | if (this.getOption('tooltipZIndex') === 'auto') {
|
---|
204 | ZIndexUtils.clear(this.container);
|
---|
205 | }
|
---|
206 | this.remove();
|
---|
207 | }
|
---|
208 | updateText() {
|
---|
209 | if (this.getOption('escape')) {
|
---|
210 | this.tooltipText.innerHTML = '';
|
---|
211 | this.tooltipText.appendChild(document.createTextNode(this.getOption('tooltipLabel')));
|
---|
212 | }
|
---|
213 | else {
|
---|
214 | this.tooltipText.innerHTML = this.getOption('tooltipLabel');
|
---|
215 | }
|
---|
216 | }
|
---|
217 | align() {
|
---|
218 | let position = this.getOption('tooltipPosition');
|
---|
219 | switch (position) {
|
---|
220 | case 'top':
|
---|
221 | this.alignTop();
|
---|
222 | if (this.isOutOfBounds()) {
|
---|
223 | this.alignBottom();
|
---|
224 | if (this.isOutOfBounds()) {
|
---|
225 | this.alignRight();
|
---|
226 | if (this.isOutOfBounds()) {
|
---|
227 | this.alignLeft();
|
---|
228 | }
|
---|
229 | }
|
---|
230 | }
|
---|
231 | break;
|
---|
232 | case 'bottom':
|
---|
233 | this.alignBottom();
|
---|
234 | if (this.isOutOfBounds()) {
|
---|
235 | this.alignTop();
|
---|
236 | if (this.isOutOfBounds()) {
|
---|
237 | this.alignRight();
|
---|
238 | if (this.isOutOfBounds()) {
|
---|
239 | this.alignLeft();
|
---|
240 | }
|
---|
241 | }
|
---|
242 | }
|
---|
243 | break;
|
---|
244 | case 'left':
|
---|
245 | this.alignLeft();
|
---|
246 | if (this.isOutOfBounds()) {
|
---|
247 | this.alignRight();
|
---|
248 | if (this.isOutOfBounds()) {
|
---|
249 | this.alignTop();
|
---|
250 | if (this.isOutOfBounds()) {
|
---|
251 | this.alignBottom();
|
---|
252 | }
|
---|
253 | }
|
---|
254 | }
|
---|
255 | break;
|
---|
256 | case 'right':
|
---|
257 | this.alignRight();
|
---|
258 | if (this.isOutOfBounds()) {
|
---|
259 | this.alignLeft();
|
---|
260 | if (this.isOutOfBounds()) {
|
---|
261 | this.alignTop();
|
---|
262 | if (this.isOutOfBounds()) {
|
---|
263 | this.alignBottom();
|
---|
264 | }
|
---|
265 | }
|
---|
266 | }
|
---|
267 | break;
|
---|
268 | }
|
---|
269 | }
|
---|
270 | getHostOffset() {
|
---|
271 | if (this.getOption('appendTo') === 'body' || this.getOption('appendTo') === 'target') {
|
---|
272 | let offset = this.el.nativeElement.getBoundingClientRect();
|
---|
273 | let targetLeft = offset.left + DomHandler.getWindowScrollLeft();
|
---|
274 | let targetTop = offset.top + DomHandler.getWindowScrollTop();
|
---|
275 | return { left: targetLeft, top: targetTop };
|
---|
276 | }
|
---|
277 | else {
|
---|
278 | return { left: 0, top: 0 };
|
---|
279 | }
|
---|
280 | }
|
---|
281 | alignRight() {
|
---|
282 | this.preAlign('right');
|
---|
283 | let hostOffset = this.getHostOffset();
|
---|
284 | let left = hostOffset.left + DomHandler.getOuterWidth(this.el.nativeElement);
|
---|
285 | let top = hostOffset.top + (DomHandler.getOuterHeight(this.el.nativeElement) - DomHandler.getOuterHeight(this.container)) / 2;
|
---|
286 | this.container.style.left = left + this.getOption('positionLeft') + 'px';
|
---|
287 | this.container.style.top = top + this.getOption('positionTop') + 'px';
|
---|
288 | }
|
---|
289 | alignLeft() {
|
---|
290 | this.preAlign('left');
|
---|
291 | let hostOffset = this.getHostOffset();
|
---|
292 | let left = hostOffset.left - DomHandler.getOuterWidth(this.container);
|
---|
293 | let top = hostOffset.top + (DomHandler.getOuterHeight(this.el.nativeElement) - DomHandler.getOuterHeight(this.container)) / 2;
|
---|
294 | this.container.style.left = left + this.getOption('positionLeft') + 'px';
|
---|
295 | this.container.style.top = top + this.getOption('positionTop') + 'px';
|
---|
296 | }
|
---|
297 | alignTop() {
|
---|
298 | this.preAlign('top');
|
---|
299 | let hostOffset = this.getHostOffset();
|
---|
300 | let left = hostOffset.left + (DomHandler.getOuterWidth(this.el.nativeElement) - DomHandler.getOuterWidth(this.container)) / 2;
|
---|
301 | let top = hostOffset.top - DomHandler.getOuterHeight(this.container);
|
---|
302 | this.container.style.left = left + this.getOption('positionLeft') + 'px';
|
---|
303 | this.container.style.top = top + this.getOption('positionTop') + 'px';
|
---|
304 | }
|
---|
305 | alignBottom() {
|
---|
306 | this.preAlign('bottom');
|
---|
307 | let hostOffset = this.getHostOffset();
|
---|
308 | let left = hostOffset.left + (DomHandler.getOuterWidth(this.el.nativeElement) - DomHandler.getOuterWidth(this.container)) / 2;
|
---|
309 | let top = hostOffset.top + DomHandler.getOuterHeight(this.el.nativeElement);
|
---|
310 | this.container.style.left = left + this.getOption('positionLeft') + 'px';
|
---|
311 | this.container.style.top = top + this.getOption('positionTop') + 'px';
|
---|
312 | }
|
---|
313 | setOption(option) {
|
---|
314 | this._tooltipOptions = { ...this._tooltipOptions, ...option };
|
---|
315 | }
|
---|
316 | getOption(option) {
|
---|
317 | return this._tooltipOptions[option];
|
---|
318 | }
|
---|
319 | preAlign(position) {
|
---|
320 | this.container.style.left = -999 + 'px';
|
---|
321 | this.container.style.top = -999 + 'px';
|
---|
322 | let defaultClassName = 'p-tooltip p-component p-tooltip-' + position;
|
---|
323 | this.container.className = this.getOption('tooltipStyleClass') ? defaultClassName + ' ' + this.getOption('tooltipStyleClass') : defaultClassName;
|
---|
324 | }
|
---|
325 | isOutOfBounds() {
|
---|
326 | let offset = this.container.getBoundingClientRect();
|
---|
327 | let targetTop = offset.top;
|
---|
328 | let targetLeft = offset.left;
|
---|
329 | let width = DomHandler.getOuterWidth(this.container);
|
---|
330 | let height = DomHandler.getOuterHeight(this.container);
|
---|
331 | let viewport = DomHandler.getViewport();
|
---|
332 | return (targetLeft + width > viewport.width) || (targetLeft < 0) || (targetTop < 0) || (targetTop + height > viewport.height);
|
---|
333 | }
|
---|
334 | onWindowResize(e) {
|
---|
335 | this.hide();
|
---|
336 | }
|
---|
337 | bindDocumentResizeListener() {
|
---|
338 | this.zone.runOutsideAngular(() => {
|
---|
339 | this.resizeListener = this.onWindowResize.bind(this);
|
---|
340 | window.addEventListener('resize', this.resizeListener);
|
---|
341 | });
|
---|
342 | }
|
---|
343 | unbindDocumentResizeListener() {
|
---|
344 | if (this.resizeListener) {
|
---|
345 | window.removeEventListener('resize', this.resizeListener);
|
---|
346 | this.resizeListener = null;
|
---|
347 | }
|
---|
348 | }
|
---|
349 | bindScrollListener() {
|
---|
350 | if (!this.scrollHandler) {
|
---|
351 | this.scrollHandler = new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {
|
---|
352 | if (this.container) {
|
---|
353 | this.hide();
|
---|
354 | }
|
---|
355 | });
|
---|
356 | }
|
---|
357 | this.scrollHandler.bindScrollListener();
|
---|
358 | }
|
---|
359 | unbindScrollListener() {
|
---|
360 | if (this.scrollHandler) {
|
---|
361 | this.scrollHandler.unbindScrollListener();
|
---|
362 | }
|
---|
363 | }
|
---|
364 | unbindEvents() {
|
---|
365 | if (this.getOption('tooltipEvent') === 'hover') {
|
---|
366 | this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener);
|
---|
367 | this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener);
|
---|
368 | this.el.nativeElement.removeEventListener('click', this.clickListener);
|
---|
369 | }
|
---|
370 | else if (this.getOption('tooltipEvent') === 'focus') {
|
---|
371 | this.el.nativeElement.removeEventListener('focus', this.focusListener);
|
---|
372 | this.el.nativeElement.removeEventListener('blur', this.blurListener);
|
---|
373 | }
|
---|
374 | this.unbindDocumentResizeListener();
|
---|
375 | }
|
---|
376 | remove() {
|
---|
377 | if (this.container && this.container.parentElement) {
|
---|
378 | if (this.getOption('appendTo') === 'body')
|
---|
379 | document.body.removeChild(this.container);
|
---|
380 | else if (this.getOption('appendTo') === 'target')
|
---|
381 | this.el.nativeElement.removeChild(this.container);
|
---|
382 | else
|
---|
383 | DomHandler.removeChild(this.container, this.getOption('appendTo'));
|
---|
384 | }
|
---|
385 | this.unbindDocumentResizeListener();
|
---|
386 | this.unbindScrollListener();
|
---|
387 | this.clearTimeouts();
|
---|
388 | this.container = null;
|
---|
389 | this.scrollHandler = null;
|
---|
390 | }
|
---|
391 | clearShowTimeout() {
|
---|
392 | if (this.showTimeout) {
|
---|
393 | clearTimeout(this.showTimeout);
|
---|
394 | this.showTimeout = null;
|
---|
395 | }
|
---|
396 | }
|
---|
397 | clearHideTimeout() {
|
---|
398 | if (this.hideTimeout) {
|
---|
399 | clearTimeout(this.hideTimeout);
|
---|
400 | this.hideTimeout = null;
|
---|
401 | }
|
---|
402 | }
|
---|
403 | clearTimeouts() {
|
---|
404 | this.clearShowTimeout();
|
---|
405 | this.clearHideTimeout();
|
---|
406 | }
|
---|
407 | ngOnDestroy() {
|
---|
408 | this.unbindEvents();
|
---|
409 | if (this.container) {
|
---|
410 | ZIndexUtils.clear(this.container);
|
---|
411 | }
|
---|
412 | this.remove();
|
---|
413 | if (this.scrollHandler) {
|
---|
414 | this.scrollHandler.destroy();
|
---|
415 | this.scrollHandler = null;
|
---|
416 | }
|
---|
417 | }
|
---|
418 | }
|
---|
419 | Tooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Tooltip, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Directive });
|
---|
420 | Tooltip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0", type: Tooltip, selector: "[pTooltip]", inputs: { tooltipPosition: "tooltipPosition", tooltipEvent: "tooltipEvent", appendTo: "appendTo", positionStyle: "positionStyle", tooltipStyleClass: "tooltipStyleClass", tooltipZIndex: "tooltipZIndex", escape: "escape", showDelay: "showDelay", hideDelay: "hideDelay", life: "life", positionTop: "positionTop", positionLeft: "positionLeft", text: ["pTooltip", "text"], disabled: ["tooltipDisabled", "disabled"], tooltipOptions: "tooltipOptions" }, host: { classAttribute: "p-element" }, usesOnChanges: true, ngImport: i0 });
|
---|
421 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Tooltip, decorators: [{
|
---|
422 | type: Directive,
|
---|
423 | args: [{
|
---|
424 | selector: '[pTooltip]',
|
---|
425 | host: {
|
---|
426 | 'class': 'p-element'
|
---|
427 | }
|
---|
428 | }]
|
---|
429 | }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.PrimeNGConfig }]; }, propDecorators: { tooltipPosition: [{
|
---|
430 | type: Input
|
---|
431 | }], tooltipEvent: [{
|
---|
432 | type: Input
|
---|
433 | }], appendTo: [{
|
---|
434 | type: Input
|
---|
435 | }], positionStyle: [{
|
---|
436 | type: Input
|
---|
437 | }], tooltipStyleClass: [{
|
---|
438 | type: Input
|
---|
439 | }], tooltipZIndex: [{
|
---|
440 | type: Input
|
---|
441 | }], escape: [{
|
---|
442 | type: Input
|
---|
443 | }], showDelay: [{
|
---|
444 | type: Input
|
---|
445 | }], hideDelay: [{
|
---|
446 | type: Input
|
---|
447 | }], life: [{
|
---|
448 | type: Input
|
---|
449 | }], positionTop: [{
|
---|
450 | type: Input
|
---|
451 | }], positionLeft: [{
|
---|
452 | type: Input
|
---|
453 | }], text: [{
|
---|
454 | type: Input,
|
---|
455 | args: ['pTooltip']
|
---|
456 | }], disabled: [{
|
---|
457 | type: Input,
|
---|
458 | args: ["tooltipDisabled"]
|
---|
459 | }], tooltipOptions: [{
|
---|
460 | type: Input
|
---|
461 | }] } });
|
---|
462 | export class TooltipModule {
|
---|
463 | }
|
---|
464 | TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
465 | TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TooltipModule, declarations: [Tooltip], imports: [CommonModule], exports: [Tooltip] });
|
---|
466 | TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TooltipModule, imports: [[CommonModule]] });
|
---|
467 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TooltipModule, decorators: [{
|
---|
468 | type: NgModule,
|
---|
469 | args: [{
|
---|
470 | imports: [CommonModule],
|
---|
471 | exports: [Tooltip],
|
---|
472 | declarations: [Tooltip]
|
---|
473 | }]
|
---|
474 | }] });
|
---|
475 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy90b29sdGlwL3Rvb2x0aXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQXdDLEtBQUssRUFBeUIsTUFBTSxlQUFlLENBQUM7QUFDeEgsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxVQUFVLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDeEUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQTs7O0FBMEIzQyxNQUFNLE9BQU8sT0FBTztJQTRFaEIsWUFBbUIsRUFBYyxFQUFTLElBQVksRUFBUyxNQUFxQjtRQUFqRSxPQUFFLEdBQUYsRUFBRSxDQUFZO1FBQVMsU0FBSSxHQUFKLElBQUksQ0FBUTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQWU7UUE5RDNFLFdBQU0sR0FBWSxJQUFJLENBQUM7UUF3QmhDLG9CQUFlLEdBQW1CO1lBQzlCLGVBQWUsRUFBRSxPQUFPO1lBQ3hCLFlBQVksRUFBRSxPQUFPO1lBQ3JCLFFBQ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AgICAgICAgfVxuXG4gICAgICAgIGlmIChzaW1wbGVDaGFuZ2UuZGlzYWJsZWQpIHtcbiAgICAgICAgICAgIHRoaXMuc2V0T3B0aW9uKHtkaXNhYmxlZDogc2ltcGxlQ2hhbmdlLmRpc2FibGVkLmN1cnJlbnRWYWx1ZX0pO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHNpbXBsZUNoYW5nZS50ZXh0KSB7XG4gICAgICAgICAgICB0aGlzLnNldE9wdGlvbih7dG9vbHRpcExhYmVsOiBzaW1wbGVDaGFuZ2UudGV4dC5jdXJyZW50VmFsdWV9KTtcblxuICAgICAgICAgICAgaWYgKHRoaXMuYWN0aXZlKSB7XG4gICAgICAgICAgICAgICAgaWYgKHNpbXBsZUNoYW5nZS50ZXh0LmN1cnJlbnRWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5jb250YWluZXIgJiYgdGhpcy5jb250YWluZXIub2Zmc2V0UGFyZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZVRleHQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ24oKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdygpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoc2ltcGxlQ2hhbmdlLnRvb2x0aXBPcHRpb25zKSB7XG4gICAgICAgICAgICB0aGlzLl90b29sdGlwT3B0aW9ucyA9IHsuLi50aGlzLl90b29sdGlwT3B0aW9ucywgLi4uc2ltcGxlQ2hhbmdlLnRvb2x0aXBPcHRpb25zLmN1cnJlbnRWYWx1ZX07XG4gICAgICAgICAgICB0aGlzLmRlYWN0aXZhdGUoKTtcblxuICAgICAgICAgICAgaWYgKHRoaXMuYWN0aXZlKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZ2V0T3B0aW9uKCd0b29sdGlwTGFiZWwnKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5jb250YWluZXIgJiYgdGhpcy5jb250YWluZXIub2Zmc2V0UGFyZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZVRleHQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ24oKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdygpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbk1vdXNlRW50ZXIoZTogRXZlbnQpIHtcbiAgICAgICAgaWYgKCF0aGlzLmNvbnRhaW5lciAmJiAhdGhpcy5zaG93VGltZW91dCkge1xuICAgICAgICAgICAgdGhpcy5hY3RpdmF0ZSgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Nb3VzZUxlYXZlKGU6IEV2ZW50KSB7XG4gICAgICAgIHRoaXMuZGVhY3RpdmF0ZSgpO1xuICAgIH1cblxuICAgIG9uRm9jdXMoZTogRXZlbnQpIHtcbiAgICAgICAgdGhpcy5hY3RpdmF0ZSgpO1xuICAgIH1cblxuICAgIG9uQmx1cihlOiBFdmVudCkge1xuICAgICAgICB0aGlzLmRlYWN0aXZhdGUoKTtcbiAgICB9XG5cbiAgICBvbkNs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cGVuZFRvJykgPT09ICdib2R5JylcbiAgICAgICAgICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQodGhpcy5jb250YWluZXIpO1xuICAgICAgICBlbHNlIGlmICh0aGlzLmdldE9wdGlvbignYXBwZW5kVG8nKSA9PT0gJ3RhcmdldCcpXG4gICAgICAgICAgICBEb21IYW5kbGVyLmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyLCB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQpO1xuICAgICAgICBlbHNlXG4gICAgICAgICAgICBEb21IYW5kbGVyLmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyLCB0aGlzLmdldE9wdGlvbignYXBwZW5kVG8nKSk7XG5cbiAgICAgICAgdGhpcy5jb250YWluZXIuc3R5bGUuZGlzcGxheSA9ICdpbmxpbmUtYmxvY2snO1xuICAgIH1cblxuICAgIHNob3coKSB7XG4gICAgICAgIGlmICghdGhpcy5nZXRPcHRpb24oJ3Rvb2x0aXBMYWJlbCcpIHx8IHRoaXMuZ2V0T3B0aW9uKCdkaXNhYmxlZCcpKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNyZWF0ZSgpO1xuICAgICAgICB0aGlzLmFsaWduKCk7XG4gICAgICAgIERvbUhhbmRsZXIuZmFkZUluKHRoaXMuY29udGFpbmVyLCAyNTApO1xuXG4gICAgICAgIGlmICh0aGlzLmdldE9wdGlvbigndG9vbHRpcFpJbmRleCcpID09PSAnYXV0bycpXG4gICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ3Rvb2x0aXAnLCB0aGlzLmNvbnRhaW5lciwgdGhpcy5jb25maWcuekluZGV4LnRvb2x0aXApO1xuICAgICAgICBlbHNlXG4gICAgICAgICAgICB0aGlzLmNvbnRhaW5lci5zdHlsZS56SW5kZXggPSB0aGlzLmdldE9wdGlvbigndG9vbHRpcFpJbmRleCcpO1xuXG4gICAgICAgIHRoaXMuYmluZERv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lzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnblJpZ2h0KCk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25MZWZ0KCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgICAgICAgICAgdGhpcy5hbGlnbkJvdHRvbSgpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmFsaWduVG9wKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnblJpZ2h0KCk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25MZWZ0KCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ2xlZnQnOlxuICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25MZWZ0KCk7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNPdXRPZkJvdW5kcygpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25SaWdodCgpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzT3V0T2ZCb3VuZHMoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnblRvcCgpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5pc091dE9mQm91bmRzKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmFsaWduQm90dG9tKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ3JpZ2h0JzpcbiAgICAgICAgICAgICAgICB0aGlzLmFsaWduUmlnaHQoKTtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc091dE9mQm91bmRzKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnbkxlZnQoKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5pc091dE9mQm91bmRzKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25Ub3AoKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNPdXRPZkJvdW5kcygpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnbkJvdHRvbSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0SG9zdE9mZnNldCgpIHtcbiAgICAgICAgaWYgKHRoaXMuZ2V0T3B0aW9uKCdhcHBlbmRUbycpID09PSAnYm9keScgfHwgdGhpcy5nZXRPcHRpb24oJ2FwcGVuZFRvJykgPT09ICd0YXJnZXQnKSB7XG4gICAgICAgICAgICBsZXQgb2Zmc2V0ID0gdGhpcy5lbC5uYXRpdmVFbGVtZW50LmdldEJvdW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lzdGVuZXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy51bmJpbmREb2N1bWVudFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgfVxuXG4gICAgcmVtb3ZlKCkge1xuICAgICAgICBpZiAodGhpcy5jb250YWluZXIgJiYgdGhpcy5jb250YWluZXIucGFyZW50RWxlbWVudCkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZ2V0T3B0aW9uKCdhcHBlbmRUbycpID09PSAnYm9keScpXG4gICAgICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5yZW1vdmVDaGlsZCh0aGlzLmNvbnRhaW5lcik7XG4gICAgICAgICAgICBlbHNlIGlmICh0aGlzLmdldE9wdGlvbignYXBwZW5kVG8nKSA9PT0gJ3RhcmdldCcpXG4gICAgICAgICAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LnJlbW92ZUNoaWxkKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBEb21IYW5kbGVyLnJlbW92ZUNoaWxkKHRoaXMuY29udGFpbmVyLCB0aGlzLmdldE9wdGlvbignYXBwZW5kVG8nKSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50UmVzaXplTGlzdGVuZXIoKTtcbiAgICAgICAgdGhpcy51bmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLmNsZWFyVGltZW91dHMoKTtcbiAgICAgICAgdGhpcy5jb250YWluZXIgPSBudWxsO1xuICAgICAgICB0aGlzLnNjcm9sbEhhbmRsZXIgPSBudWxsO1xuICAgIH1cblxuICAgIGNsZWFyU2hvd1RpbWVvdXQoKSB7XG4gICAgICAgIGlmICh0aGlzLnNob3dUaW1lb3V0KSB7XG4gICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5zaG93VGltZW91dCk7XG4gICAgICAgICAgICB0aGlzLnNob3dUaW1lb3V0ID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNsZWFySGlkZVRpbWVvdXQoKSB7XG4gICAgICAgIGlmICh0aGlzLmhpZGVUaW1lb3V0KSB7XG4gICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5oaWRlVGltZW91dCk7XG4gICAgICAgICAgICB0aGlzLmhpZGVUaW1lb3V0ID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNsZWFyVGltZW91dHMoKSB7XG4gICAgICAgIHRoaXMuY2xlYXJTaG93VGltZW91dCgpO1xuICAgICAgICB0aGlzLmNsZWFySGlkZVRpbWVvdXQoKTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgdGhpcy51bmJpbmRFdmVudHMoKTtcblxuICAgICAgICBpZiAodGhpcy5jb250YWluZXIpIHtcbiAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMucmVtb3ZlKCk7XG5cbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLmRlc3Ryb3koKTtcbiAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gICAgZXhwb3J0czogW1Rvb2x0aXBdLFxuICAgIGRlY2xhcmF0aW9uczogW1Rvb2x0aXBdXG59KVxuZXhwb3J0IGNsYXNzIFRvb2x0aXBNb2R1bGUgeyB9XG4iXX0= |
---|