// #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 { Themeable } from '../../../Behaviors/Themeable';
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 { expanderHeaderElementCosmopolitanStyle } from './Themes/ExpanderHeaderElement.Cosmopolitan';
import { expanderHeaderElementJoyStyle } from './Themes/ExpanderHeaderElement.Joy';
import { expanderHeaderElementMemphisStyle } from './Themes/ExpanderHeaderElement.Memphis';
// #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.
 *
 * @name ExpanderHeader
 * @element mosaik-expander-header
 * @category Grouping
 *
 * @slot text - The slot for placing header content.
 *
 * @cssprop {Color} --expander-header-background-color - The background-color property for the header.
 * @cssprop {Color} --expander-header-border-color - The border-color property for the header.
 * @cssprop {String} --expander-header-font-family - The font-family property for the header text.
 * @cssprop {String} --expander-header-font-letter-spacing - The letter-spacing property for the header text.
 * @cssprop {String} --expander-header-font-line-height - The line-height property for the header text.
 * @cssprop {String} --expander-header-font-size - The font-size property for the header text.
 * @cssprop {String} --expander-header-font-text-decoration - The text-decoration property for the header text.
 * @cssprop {String} --expander-header-font-text-transform - The text-transform property for the header text.
 * @cssprop {String} --expander-header-font-weight - The font-weight property for the header text.
 * @cssprop {Color} --expander-header-foreground-color - The foreground-color property for the header.
 * @cssprop {String} --expander-header-gap - The header gap CSS custom property.
 * @cssprop {String} --expander-header-padding-bottom - The header padding bottom CSS custom property.
 * @cssprop {String} --expander-header-padding-left - The header padding left CSS custom property.
 * @cssprop {String} --expander-header-padding-right - The header padding right CSS custom property.
 * @cssprop {String} --expander-header-padding-top - The header padding top CSS custom property.
 * @cssprop {String} --expander-header-shadow - The header shadow CSS custom property.
 * @cssprop {String} --expander-header-shadow-blur - The header shadow blur CSS custom property.
 * @cssprop {String} --expander-header-shadow-color - The header shadow color CSS custom property.
 * @cssprop {String} --expander-header-shadow-offset-x - The header shadow offset x CSS custom property.
 * @cssprop {String} --expander-header-shadow-offset-y - The header shadow offset y CSS custom property.
 * @cssprop {String} --expander-header-shadow-spread - The header shadow spread CSS custom property.
 * @cssprop {String} --expander-header-transition-duration - The header transition duration CSS custom property.
 * @cssprop {String} --expander-header-transition-mode - The header transition mode CSS custom property.
 * @cssprop {String} --expander-header-transition-property - The header transition property CSS custom property.
 * @cssprop {String} --expander-header-translate - The header translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Using the text attribute:
 * ```html
 * <mosaik-expander-header text="Header Content"></mosaik-expander-header>
 * ```
 *
 * @example
 * With custom slotted content:
 * ```html
 * <mosaik-expander-header>
 *   <mosaik-text slot="text" text="Header Content"></mosaik-text>
 * </mosaik-expander-header>
 * ```
 *
 * @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,
            memphis: expanderHeaderElementMemphisStyle,
            cosmopolitan: expanderHeaderElementCosmopolitanStyle
        },
        template: expanderHeaderElementTemplate,
        host: {
            slot: 'header'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ExpanderHeaderElement);
export { ExpanderHeaderElement };
//# sourceMappingURL=ExpanderHeaderElement.js.map