import * as tslib_1 from "tslib";
import { IgcHeaderComponent } from "./igc-header-component";
import { TextHeader } from "./TextHeader";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
 * Represents a class used to configure the appearance of a text column header cells.
*/
var IgcTextHeaderComponent = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcTextHeaderComponent, _super);
    function IgcTextHeaderComponent() {
        return _super.call(this) || this;
    }
    IgcTextHeaderComponent.prototype.createImplementation = function () {
        return new TextHeader();
    };
    Object.defineProperty(IgcTextHeaderComponent.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcTextHeaderComponent.prototype.connectedCallback = function () {
        if (_super.prototype["connectedCallback"]) {
            _super.prototype["connectedCallback"].call(this);
        }
        if (!this._attached) {
            this._attached = true;
            this._flushQueuedAttributes();
        }
    };
    Object.defineProperty(IgcTextHeaderComponent, "observedAttributes", {
        get: function () {
            if (IgcTextHeaderComponent._observedAttributesIgcTextHeaderComponent == null) {
                var names = getAllPropertyNames(IgcTextHeaderComponent);
                for (var i = 0; i < names.length; i++) {
                    names[i] = toSpinal(names[i]);
                }
                IgcTextHeaderComponent._observedAttributesIgcTextHeaderComponent = names;
            }
            return IgcTextHeaderComponent._observedAttributesIgcTextHeaderComponent;
        },
        enumerable: true,
        configurable: true
    });
    IgcTextHeaderComponent.register = function () {
        if (!IgcTextHeaderComponent._isElementRegistered) {
            IgcTextHeaderComponent._isElementRegistered = true;
            RegisterElementHelper.registerElement(IgcTextHeaderComponent.htmlTagName, IgcTextHeaderComponent);
        }
    };
    IgcTextHeaderComponent._observedAttributesIgcTextHeaderComponent = null;
    IgcTextHeaderComponent.htmlTagName = "igc-text-header";
    IgcTextHeaderComponent._isElementRegistered = false;
    return IgcTextHeaderComponent;
}(IgcHeaderComponent));
export { IgcTextHeaderComponent };
//# sourceMappingURL=igc-text-header-component.js.map
