import { html, css, LitElement, unsafeCSS, PropertyValues } from "lit"; import { LitElementWw } from "@webwriter/lit"; import { customElement, property } from "lit/decorators.js"; //Drawflow Imports import { DrawflowNode } from "drawflow"; //CSS import styles from "./page-node-detail-view.styles"; //Shoelace Imports import "@shoelace-style/shoelace/dist/themes/light.css"; import { SlIcon, SlDivider } from "@shoelace-style/shoelace"; //Tabler Icon Import import file from "@tabler/icons/filled/file.svg"; import { ToggleTextInput } from "../../toggle-text-input/toggle-text-input"; import { NodeConnectionList } from "../../node-connection-list/node-connection-list"; import { provide, consume, createContext } from "@lit/context"; import { editorState, GamebookEditorState, } from "../../../utils/gamebook-editor-state-context"; @customElement("page-node-detail-view") export class PageNodeDetailView extends LitElementWw { //registering custom elements used in the widget static get scopedElements() { return { "toggle-text-input": ToggleTextInput, "node-connection-list": NodeConnectionList, "sl-divider": SlDivider, "sl-icon": SlIcon, }; } //import CSS static styles = [styles]; @consume({ context: editorState, subscribe: true }) @property({ type: Object, attribute: true, reflect: false }) public accessor editorStore = new GamebookEditorState("Default"); render() { return html`
this.renameNode(string)} >

Page

`; } /* */ private renameNode(text: String) { const event = new CustomEvent("renameSelectedNode", { detail: { newTitle: text }, bubbles: true, composed: true, }); this.dispatchEvent(event); } }