import{LitElement as t,html as e,css as i}from"../../../lit/index.js";import{HaxToolbarItemBehaviors as n}from"./hax-toolbar-item.js";class HaxContextItemTextop extends(n(t)){constructor(){super(),this.action=!1,this.eventName="button",this.inputMethod=null,this.propertyToBind=null,this.slotToBind=null,this.value=""}static get tag(){return"hax-context-item-textop"}static get properties(){return{...super.properties,value:{type:String},action:{type:Boolean},eventName:{type:String,reflect:!0,attribute:"event-name"},inputMethod:{type:String,reflect:!0,attribute:"input-method"},propertyToBind:{type:String,reflect:!0,attribute:"property-to-bind"},slotToBind:{type:String,reflect:!0,attribute:"slot-to-bind"},description:{type:String,reflect:!0}}}_handleKeys(t){"Enter"==t.key&&this._fireEvent()}_handleMousedown(t){this.disabled||this.dispatchEvent(new CustomEvent("hax-context-item-selected",{bubbles:!0,cancelable:!0,composed:!0,detail:{target:this,eventName:this.eventName,value:this.value}}))}}customElements.define(HaxContextItemTextop.tag,HaxContextItemTextop);export{HaxContextItemTextop};