|
|
@ -17,9 +17,10 @@ |
|
|
import { |
|
|
import { |
|
|
Component, |
|
|
Component, |
|
|
ElementRef, |
|
|
ElementRef, |
|
|
Input, OnChanges, |
|
|
Input, |
|
|
OnDestroy, |
|
|
OnChanges, |
|
|
Renderer2, SimpleChanges, |
|
|
Renderer2, |
|
|
|
|
|
SimpleChanges, |
|
|
ViewChild, |
|
|
ViewChild, |
|
|
ViewContainerRef, |
|
|
ViewContainerRef, |
|
|
ViewEncapsulation |
|
|
ViewEncapsulation |
|
|
@ -38,7 +39,7 @@ import { TranslateService } from '@ngx-translate/core'; |
|
|
styleUrls: ['./help-popup.component.scss'], |
|
|
styleUrls: ['./help-popup.component.scss'], |
|
|
encapsulation: ViewEncapsulation.None |
|
|
encapsulation: ViewEncapsulation.None |
|
|
}) |
|
|
}) |
|
|
export class HelpPopupComponent implements OnChanges, OnDestroy { |
|
|
export class HelpPopupComponent implements OnChanges { |
|
|
|
|
|
|
|
|
@ViewChild('toggleHelpButton', {read: ElementRef, static: false}) toggleHelpButton: ElementRef; |
|
|
@ViewChild('toggleHelpButton', {read: ElementRef, static: false}) toggleHelpButton: ElementRef; |
|
|
@ViewChild('toggleHelpTextButton', {read: ElementRef, static: false}) toggleHelpTextButton: ElementRef; |
|
|
@ViewChild('toggleHelpTextButton', {read: ElementRef, static: false}) toggleHelpTextButton: ElementRef; |
|
|
@ -93,7 +94,7 @@ export class HelpPopupComponent implements OnChanges, OnDestroy { |
|
|
private translate: TranslateService) { |
|
|
private translate: TranslateService) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ngOnChanges(changes: SimpleChanges): void { |
|
|
ngOnChanges(_changes: SimpleChanges): void { |
|
|
if (isDefinedAndNotNull(this.triggerText)) { |
|
|
if (isDefinedAndNotNull(this.triggerText)) { |
|
|
this.triggerSafeHtml = this.sanitizer.bypassSecurityTrustHtml(this.triggerText); |
|
|
this.triggerSafeHtml = this.sanitizer.bypassSecurityTrustHtml(this.triggerText); |
|
|
} else { |
|
|
} else { |
|
|
@ -124,8 +125,4 @@ export class HelpPopupComponent implements OnChanges, OnDestroy { |
|
|
this.helpPopupStyle); |
|
|
this.helpPopupStyle); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ngOnDestroy(): void { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|