import * as tslib_1 from "tslib";
import { IgcColumnComponent } from "./igc-column-component";
import { ComboBoxColumn } from "./ComboBoxColumn";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
 * A combobox column.
*/
var IgcComboBoxColumnComponent = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcComboBoxColumnComponent, _super);
    function IgcComboBoxColumnComponent() {
        return _super.call(this) || this;
    }
    IgcComboBoxColumnComponent.prototype.createImplementation = function () {
        return new ComboBoxColumn();
    };
    Object.defineProperty(IgcComboBoxColumnComponent.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcComboBoxColumnComponent.prototype.connectedCallback = function () {
        if (_super.prototype["connectedCallback"]) {
            _super.prototype["connectedCallback"].call(this);
        }
        if (!this._attached) {
            this._attached = true;
            this._flushQueuedAttributes();
        }
    };
    Object.defineProperty(IgcComboBoxColumnComponent, "observedAttributes", {
        get: function () {
            if (IgcComboBoxColumnComponent._observedAttributesIgcComboBoxColumnComponent == null) {
                var names = getAllPropertyNames(IgcComboBoxColumnComponent);
                for (var i = 0; i < names.length; i++) {
                    names[i] = toSpinal(names[i]);
                }
                IgcComboBoxColumnComponent._observedAttributesIgcComboBoxColumnComponent = names;
            }
            return IgcComboBoxColumnComponent._observedAttributesIgcComboBoxColumnComponent;
        },
        enumerable: true,
        configurable: true
    });
    IgcComboBoxColumnComponent.register = function () {
        if (!IgcComboBoxColumnComponent._isElementRegistered) {
            IgcComboBoxColumnComponent._isElementRegistered = true;
            RegisterElementHelper.registerElement(IgcComboBoxColumnComponent.htmlTagName, IgcComboBoxColumnComponent);
        }
    };
    Object.defineProperty(IgcComboBoxColumnComponent.prototype, "actualDataSource", {
        /**
         * Gets the actual data source that is being used by the combo. If a collection was provided for the combobox data, an implicit LocalDataSource is created, and this is available via this property.
        */
        get: function () {
            return this.i.j4;
        },
        set: function (v) {
            this.i.j4 = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcComboBoxColumnComponent.prototype, "dataSource", {
        /**
         * Gets or sets the ComboBox data source.
        */
        get: function () {
            return this.i.j5;
        },
        set: function (v) {
            this.i.j5 = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcComboBoxColumnComponent.prototype, "textField", {
        /**
         * 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(IgcComboBoxColumnComponent.prototype, "valueField", {
        /**
         * Gets or sets the ComboBox value field.
        */
        get: function () {
            return this.i.j2;
        },
        set: function (v) {
            this.i.j2 = v;
        },
        enumerable: true,
        configurable: true
    });
    IgcComboBoxColumnComponent._observedAttributesIgcComboBoxColumnComponent = null;
    IgcComboBoxColumnComponent.htmlTagName = "igc-combo-box-column";
    IgcComboBoxColumnComponent._isElementRegistered = false;
    return IgcComboBoxColumnComponent;
}(IgcColumnComponent));
export { IgcComboBoxColumnComponent };
//# sourceMappingURL=igc-combo-box-column-component.js.map
