UNPKG

graphdb-workbench

Version:
1 lines 1.02 kB
import{h}from"@stencil/core";import{SubscriptionList}from"../../../../../api/dist/ontotext-workbench-api";import{TranslationService}from"../../services/translation.service";import{OntoTooltipPlacement}from"../onto-tooltip/models/onto-tooltip-placement";export class OntoSearchIcon{constructor(){this.tooltipKey="rdf_search.labels.search",this.subscriptions=new SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h("i",{key:"6b296524936bbb2d4f3da0cc5ab73a225d201e9d","tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.BOTTOM,class:"onto-search-icon fa-light fa-magnifying-glass"})}onTooltipChange(){this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey,[],t=>this.tooltipLabel=t))}static get is(){return"onto-search-icon"}static get originalStyleUrls(){return{$:["onto-search-icon.scss"]}}static get styleUrls(){return{$:["onto-search-icon.css"]}}static get states(){return{tooltipLabel:{}}}}