import { EditorType_$type } from "./EditorType";
import { IgcColumnComponent } from "./igc-column-component";
import { TextColumn } from "./TextColumn";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
 * Represents a Text grid column, used to allow the developer to display a formatted text in a cell.
*/
export let IgcTextColumnComponent = /*@__PURE__*/ (() => {
    class IgcTextColumnComponent extends IgcColumnComponent {
        constructor() {
            super();
        }
        createImplementation() {
            return new TextColumn();
        }
        /**
                                     * @hidden
                                     */
        get i() {
            return this._implementation;
        }
        connectedCallback() {
            if (super["connectedCallback"]) {
                super["connectedCallback"]();
            }
            if (!this._attached) {
                this._attached = true;
                this._flushQueuedAttributes();
            }
        }
        static get observedAttributes() {
            if (IgcTextColumnComponent._observedAttributesIgcTextColumnComponent == null) {
                let names = getAllPropertyNames(IgcTextColumnComponent);
                for (let i = 0; i < names.length; i++) {
                    names[i] = toSpinal(names[i]);
                }
                IgcTextColumnComponent._observedAttributesIgcTextColumnComponent = names;
            }
            return IgcTextColumnComponent._observedAttributesIgcTextColumnComponent;
        }
        static register() {
            if (!IgcTextColumnComponent._isElementRegistered) {
                IgcTextColumnComponent._isElementRegistered = true;
                RegisterElementHelper.registerElement(IgcTextColumnComponent.htmlTagName, IgcTextColumnComponent);
            }
        }
        /**
         * Gets or sets the editor type used for editing cells in this column.
        */
        get editorType() {
            return this.i.j3;
        }
        set editorType(v) {
            this.i.j3 = ensureEnum(EditorType_$type, v);
            this._a("editorType", enumToString(EditorType_$type, this.i.j3));
        }
        /**
         * Gets or sets the ComboBox data source.
        */
        get editorDataSource() {
            return this.i.j4;
        }
        set editorDataSource(v) {
            this.i.j4 = v;
        }
        /**
         * Gets or sets the ComboBox text field.
        */
        get editorTextField() {
            return this.i.j6;
        }
        set editorTextField(v) {
            this.i.j6 = v;
        }
        /**
         * Gets or sets the ComboBox value field.
        */
        get editorValueField() {
            return this.i.j2;
        }
        set editorValueField(v) {
            this.i.j2 = v;
        }
    }
    IgcTextColumnComponent._observedAttributesIgcTextColumnComponent = null;
    IgcTextColumnComponent.htmlTagName = "igc-text-column";
    IgcTextColumnComponent._isElementRegistered = false;
    return IgcTextColumnComponent;
})();
//# sourceMappingURL=igc-text-column-component.js.map
