= {
"f-icon": true,
"custom-state": this.fill ? true : false
};
// merging host classes
this.classList.forEach(cl => {
classes[cl] = true;
});
/**
* Final html to render
*/
return html`
${this.loading
? html`${unsafeSVG(loader)}`
: html`${this.isURLSource ? unsafeHTML(this.source) : unsafeSVG(this.source)}`}
`;
}
protected updated(changedProperties: PropertyValues) {
super.updated(changedProperties);
}
}
/**
* Required for typescript
*/
declare global {
interface HTMLElementTagNameMap {
"f-icon": FIcon;
}
}