// #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 { expanderSubHeaderElementTemplate } from './ExpanderSubHeaderElementTemplate';
import { expanderSubHeaderElementCosmopolitanStyle } from './Themes/ExpanderSubHeaderElement.Cosmopolitan';
import { expanderSubHeaderElementJoyStyle } from './Themes/ExpanderSubHeaderElement.Joy';
import { expanderSubHeaderElementMemphisStyle } from './Themes/ExpanderSubHeaderElement.Memphis';
// #endregion
/**
 * Expander Sub Header - A component that represents a sub-header within an expander element.
 *
 * @description This element is used as a sub-header within an expander component, allowing for additional contextual information or styling.
 *
 * @name ExpanderSubHeader
 * @element mosaik-expander-sub-header
 * @category Grouping
 *
 * @slot text - The slot for placing sub-header content.
 *
 * @cssprop {Color} --expander-sub-header-background-color - The background-color property for the sub header.
 * @cssprop {Color} --expander-sub-header-border-color - The border-color property for the sub header.
 * @cssprop {String} --expander-sub-header-font-family - The font-family property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-letter-spacing - The letter-spacing property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-line-height - The line-height property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-size - The font-size property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-text-decoration - The text-decoration property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-text-transform - The text-transform property for the sub header text.
 * @cssprop {String} --expander-sub-header-font-weight - The font-weight property for the sub header text.
 * @cssprop {Color} --expander-sub-header-foreground-color - The foreground-color property for the sub header.
 * @cssprop {String} --expander-sub-header-gap - The sub header gap CSS custom property.
 * @cssprop {String} --expander-sub-header-padding-bottom - The sub header padding bottom CSS custom property.
 * @cssprop {String} --expander-sub-header-padding-left - The sub header padding left CSS custom property.
 * @cssprop {String} --expander-sub-header-padding-right - The sub header padding right CSS custom property.
 * @cssprop {String} --expander-sub-header-padding-top - The sub header padding top CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow - The sub header shadow CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow-blur - The sub header shadow blur CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow-color - The sub header shadow color CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow-offset-x - The sub header shadow offset x CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow-offset-y - The sub header shadow offset y CSS custom property.
 * @cssprop {String} --expander-sub-header-shadow-spread - The sub header shadow spread CSS custom property.
 * @cssprop {String} --expander-sub-header-transition-duration - The sub header transition duration CSS custom property.
 * @cssprop {String} --expander-sub-header-transition-mode - The sub header transition mode CSS custom property.
 * @cssprop {String} --expander-sub-header-transition-property - The sub header transition property CSS custom property.
 * @cssprop {String} --expander-sub-header-translate - The sub header translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Using the text attribute:
 * ```html
 * <mosaik-expander-sub-header text="Sub Header Content"></mosaik-expander-sub-header>
 * ```
 *
 * @example
 * With custom slotted content:
 * ```html
 * <mosaik-expander-sub-header>
 *   <mosaik-text slot="text" text="Sub Header Content"></mosaik-text>
 * </mosaik-expander-sub-header>
 * ```
 *
 * @public
 */
let ExpanderSubHeaderElement = class ExpanderSubHeaderElement 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-sub-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])
], ExpanderSubHeaderElement.prototype, "text", null);
ExpanderSubHeaderElement = __decorate([
    Component({
        selector: 'mosaik-expander-sub-header',
        themes: {
            joy: expanderSubHeaderElementJoyStyle,
            memphis: expanderSubHeaderElementMemphisStyle,
            cosmopolitan: expanderSubHeaderElementCosmopolitanStyle
        },
        template: expanderSubHeaderElementTemplate,
        host: {
            slot: 'subHeader'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ExpanderSubHeaderElement);
export { ExpanderSubHeaderElement };
//# sourceMappingURL=ExpanderSubHeaderElement.js.map