// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { calendarSubHeaderElementTemplate } from './CalendarSubHeaderElementTemplate';
import { calendarSubHeaderElementJoyStyle } from './Themes/CalendarSubHeaderElement.Joy';
import { calendarSubHeaderElementMemphisStyle } from './Themes/CalendarSubHeaderElement.Memphis';
import { calendarSubHeaderElementCosmopolitanStyle } from './Themes/CalendarSubHeaderElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Calendar Sub Header - A secondary heading or descriptive text displayed below calendar headers.
 *
 * @description
 * The Calendar Sub Header component provides additional contextual information or descriptions
 * within calendar interfaces. It is typically used to display day-of-week labels, supplementary
 * text, or formatting instructions below the main calendar header. The component supports custom
 * styling, disabled states, and text wrapping for longer content. It complements the Calendar
 * Header to create clear, hierarchical calendar layouts.
 *
 * @name Calendar Sub Header
 * @element mosaik-calendar-sub-header
 * @category Inputs
 *
 * @slot subHeader - The default slot for custom sub-header content
 *
 * @csspart subHeader - The container element wrapping the sub-header content
 *
 * @cssprop {String} --calendar-sub-header-background-color - The background color of the sub-header
 * @cssprop {String} --calendar-sub-header-foreground-color - The text color of the sub-header
 * @cssprop {String} --calendar-sub-header-border-color - The border color
 * @cssprop {String} --calendar-sub-header-border-width - The border thickness
 * @cssprop {String} --calendar-sub-header-border-style - The border line style
 * @cssprop {String} --calendar-sub-header-border-radius - The corner rounding radius
 * @cssprop {String} --calendar-sub-header-font - The shorthand font property
 * @cssprop {String} --calendar-sub-header-font-size - The font size for sub-header text
 * @cssprop {String} --calendar-sub-header-font-weight - The font weight for sub-header text
 * @cssprop {String} --calendar-sub-header-line-height - The line height for sub-header text
 *
 * @dependency {TextElement} - Text rendering component for sub-header labels
 *
 * @example
 * Basic calendar sub-header:
 * ```html
 * <mosaik-calendar-sub-header text="Select a date"></mosaik-calendar-sub-header>
 * ```
 *
 * @example
 * Day-of-week labels as sub-header:
 * ```html
 * <mosaik-calendar-sub-header text="Mon Tue Wed Thu Fri Sat Sun"></mosaik-calendar-sub-header>
 * ```
 *
 * @example
 * Custom content via slot:
 * ```html
 * <mosaik-calendar-sub-header>
 *   <div slot="subHeader">
 *     <em>Weekends highlighted</em>
 *   </div>
 * </mosaik-calendar-sub-header>
 * ```
 *
 * @public
 */
let CalendarSubHeaderElement = class CalendarSubHeaderElement extends Themeable(Disableable(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-calendar-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])
], CalendarSubHeaderElement.prototype, "text", null);
CalendarSubHeaderElement = __decorate([
    Component({
        selector: 'mosaik-calendar-sub-header',
        template: calendarSubHeaderElementTemplate,
        themes: {
            joy: calendarSubHeaderElementJoyStyle,
            memphis: calendarSubHeaderElementMemphisStyle,
            cosmopolitan: calendarSubHeaderElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CalendarSubHeaderElement);
export { CalendarSubHeaderElement };
//# sourceMappingURL=CalendarSubHeaderElement.js.map