/**
 * Copyright 2019 Penn State University
 * @license Apache-2.0, see License.md for full text.
 */
import{LitElement as e,html as t,css as s}from"../../../../lit/index.js";import{RichTextEditorPickerBehaviors as i}from"./rich-text-editor-picker.js";import"../../../simple-picker/lib/simple-symbol-picker.js";class RichTextEditorSymbolPicker extends(i(e)){static get tag(){return"rich-text-editor-symbol-picker"}render(){return t`
      <simple-symbol-picker
        id="button"
        ?allow-null="${this.allowNull}"
        class="rtebutton ${this.labelVisibleClass}-label ${this.toggled?"toggled":""}"
        .controls="${super.controls}"
        ?disabled="${this.disabled}"
        @keydown="${this._pickerFocus}"
        .label="${this.currentLabel}"
        @mouseover="${this._pickerFocus}"
        .symbol-types="${this.symbolTypes}"
        tabindex="0"
        title-as-html
        ?toggled="${this.toggled}"
        @value-changed="${this._pickerChange}"
      >
      </simple-symbol-picker>
      ${super.tooltipTemplate}
    `}static get properties(){return{...super.properties,symbolTypes:{name:"symbolTypes",type:Array,attribute:"symbol-types"}}}constructor(){super(),this.icon="editor:functions",this.label="Insert symbol",this.symbolTypes=["symbols","math","characters","greek","misc"],this.command="insertHTML"}_setOptions(){}}customElements.define(RichTextEditorSymbolPicker.tag,RichTextEditorSymbolPicker);export{RichTextEditorSymbolPicker};