// #region Imports
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { expanderHeaderElementTemplate } from './ExpanderHeaderElementTemplate';
import { expanderHeaderElementJoyStyle } from './Themes/ExpanderHeaderElement.Joy';
import { expanderHeaderElementRetroStyle } from './Themes/ExpanderHeaderElement.Retro';
import { expanderHeaderElementCosmopolitanStyle } from './Themes/ExpanderHeaderElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * ExpanderHeader - A component that represents a header within an expander element.
 *
 * @description
 * This element is used as a header within an expander component, allowing for the display of titles or key information.
 *
 * @element mosaik-expander-header
 * @name ExpanderHeader
 * @category Grouping
 *
 * @example
 * ```html
 * <mosaik-expander-header>
 *   <div slot="header">Header Content</div>
 * </mosaik-expander-header>
 * ```
 *
 * @slot header - The slot for placing header content.
 *
 * @cssprop {unknown} --expander-header-font-family - The font-family property for the header text.
 * @cssprop {unknown} --expander-header-font-size - The font-size property for the header text.
 * @cssprop {unknown} --expander-header-font-line-height - The line-height property for the header text.
 * @cssprop {unknown} --expander-header-font-weight - The font-weight property for the header text.
 * @cssprop {unknown} --expander-header-font-letter-spacing - The letter-spacing property for the header text.
 * @cssprop {unknown} --expander-header-font-text-decoration - The text-decoration property for the header text.
 * @cssprop {unknown} --expander-header-font-text-transform - The text-transform property for the header text.
 * @cssprop {unknown} --expander-header-background-color - The background-color property for the header.
 * @cssprop {unknown} --expander-header-border-color - The border-color property for the header.
 * @cssprop {unknown} --expander-header-foreground-color - The foreground-color property for the header.
 *
 * @dependency {TextElement} - The Text element.
 *
 * @public
 */
let ExpanderHeaderElement = class ExpanderHeaderElement extends Themeable(CustomElement) {
    // #region Fields
    _text;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-expander-header';
    }
    /**
     * Gets or sets the `text` property.
     *
     * @public
     * @attr
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ExpanderHeaderElement.prototype, "text", null);
ExpanderHeaderElement = __decorate([
    Component({
        selector: 'mosaik-expander-header',
        themes: {
            joy: expanderHeaderElementJoyStyle,
            retro: expanderHeaderElementRetroStyle,
            cosmopolitan: expanderHeaderElementCosmopolitanStyle
        },
        template: expanderHeaderElementTemplate,
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ExpanderHeaderElement);
export { ExpanderHeaderElement };
//# sourceMappingURL=ExpanderHeaderElement.js.map