import * as tslib_1 from "tslib";
import { ImageStretchOptions_$type } from "./ImageStretchOptions";
import { EditorType_$type } from "./EditorType";
import { IgcColumnComponent } from "./igc-column-component";
import { ImageColumn } from "./ImageColumn";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
 * Represents an Image grid column, used to allow the developer to display an image in a cell.
*/
var IgcImageColumnComponent = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcImageColumnComponent, _super);
    function IgcImageColumnComponent() {
        return _super.call(this) || this;
    }
    IgcImageColumnComponent.prototype.createImplementation = function () {
        return new ImageColumn();
    };
    Object.defineProperty(IgcImageColumnComponent.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcImageColumnComponent.prototype.connectedCallback = function () {
        if (_super.prototype["connectedCallback"]) {
            _super.prototype["connectedCallback"].call(this);
        }
        if (!this._attached) {
            this._attached = true;
            this._flushQueuedAttributes();
        }
    };
    Object.defineProperty(IgcImageColumnComponent, "observedAttributes", {
        get: function () {
            if (IgcImageColumnComponent._observedAttributesIgcImageColumnComponent == null) {
                var names = getAllPropertyNames(IgcImageColumnComponent);
                for (var i = 0; i < names.length; i++) {
                    names[i] = toSpinal(names[i]);
                }
                IgcImageColumnComponent._observedAttributesIgcImageColumnComponent = names;
            }
            return IgcImageColumnComponent._observedAttributesIgcImageColumnComponent;
        },
        enumerable: true,
        configurable: true
    });
    IgcImageColumnComponent.register = function () {
        if (!IgcImageColumnComponent._isElementRegistered) {
            IgcImageColumnComponent._isElementRegistered = true;
            RegisterElementHelper.registerElement(IgcImageColumnComponent.htmlTagName, IgcImageColumnComponent);
        }
    };
    Object.defineProperty(IgcImageColumnComponent.prototype, "imageStretchOption", {
        /**
         * Gets or sets the stretch option to use when rendering images
        */
        get: function () {
            return this.i.j7;
        },
        set: function (v) {
            this.i.j7 = ensureEnum(ImageStretchOptions_$type, v);
            this._a("imageStretchOption", enumToString(ImageStretchOptions_$type, this.i.j7));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcImageColumnComponent.prototype, "editorType", {
        /**
         * Gets or sets the editor type used for editing cells in this column.
        */
        get: function () {
            return this.i.j3;
        },
        set: function (v) {
            this.i.j3 = ensureEnum(EditorType_$type, v);
            this._a("editorType", enumToString(EditorType_$type, this.i.j3));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcImageColumnComponent.prototype, "editorDataSource", {
        /**
         * Gets or sets the ComboBox data source.
        */
        get: function () {
            return this.i.j8;
        },
        set: function (v) {
            this.i.j8 = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcImageColumnComponent.prototype, "editorTextField", {
        /**
         * Gets or sets the ComboBox text field.
        */
        get: function () {
            return this.i.j9;
        },
        set: function (v) {
            this.i.j9 = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcImageColumnComponent.prototype, "editorValueField", {
        /**
         * Gets or sets the ComboBox value field.
        */
        get: function () {
            return this.i.j2;
        },
        set: function (v) {
            this.i.j2 = v;
        },
        enumerable: true,
        configurable: true
    });
    IgcImageColumnComponent._observedAttributesIgcImageColumnComponent = null;
    IgcImageColumnComponent.htmlTagName = "igc-image-column";
    IgcImageColumnComponent._isElementRegistered = false;
    return IgcImageColumnComponent;
}(IgcColumnComponent));
export { IgcImageColumnComponent };
//# sourceMappingURL=igc-image-column-component.js.map
