@yuebai008/cli
Version:
Command line interface for rapid qg-minigame development
1 lines • 1.07 kB
JavaScript
import*as Common from"../../../core/common/common.js";import*as ComponentHelpers from"../../components/helpers/helpers.js";import*as LitHtml from"../../lit-html/lit-html.js";import*as IconButton from"../icon_button/icon_button.js";import settingDeprecationWarning from"./settingDeprecationWarning.css.js";export class SettingDeprecationWarning extends HTMLElement{static litTagName=LitHtml.literal`devtools-setting-deprecation-warning`;#t=this.attachShadow({mode:"open"});connectedCallback(){this.#t.adoptedStyleSheets=[settingDeprecationWarning]}set data(t){this.#e(t)}#e({disabled:t,warning:e,experiment:n}){const o={clickable:!1};let i;t&&n&&(o.clickable=!0,i=()=>{Common.Revealer.reveal(n)}),LitHtml.render(LitHtml.html`<${IconButton.Icon.Icon.litTagName} class=${LitHtml.Directives.classMap(o)} .data=${{iconName:"info",color:"var(--icon-default)",width:"16px"}} title=${e} @click=${i}></${IconButton.Icon.Icon.litTagName}>`,this.#t,{host:this})}}ComponentHelpers.CustomElements.defineComponent("devtools-setting-deprecation-warning",SettingDeprecationWarning);