import { LitElementWw } from '@webwriter/lit' import { CSSResult, TemplateResult, html } from 'lit' import { customElement } from 'lit/decorators.js' import { globalStyles } from '@/global_styles' import { CCard } from '../reusables/c-card' import SlButton from '@shoelace-style/shoelace/dist/components/button/button.component.js' import IconTrash from 'bootstrap-icons/icons/trash.svg' import { msg } from '@lit/localize' export class NetworkClearCard extends LitElementWw { static scopedElements = { 'c-card': CCard, 'sl-button': SlButton, } // METHODS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - handleClear() { this.dispatchEvent( new CustomEvent('clear-network', { bubbles: true, composed: true }), ) } // STYLES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static styles: CSSResult = globalStyles // RENDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - render(): TemplateResult<1> { return html`
${msg('Clear')}
${msg('Clear network')}

${msg('This will remove every layer from the network.')}

` } }