// #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 '../../../../Controls/Behaviors/Themeable';
import { Disableable } from '../../../Behaviors/Disableable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { bannerHeaderElementTemplate } from './BannerHeaderElementTemplate';
import { bannerHeaderElementCosmopolitanStyle } from './Themes/BannerHeaderElement.Cosmopolitan';
import { bannerHeaderElementJoyStyle } from './Themes/BannerHeaderElement.Joy';
import { bannerHeaderElementMemphisStyle } from './Themes/BannerHeaderElement.Memphis';
// #endregion
/**
 * Banner Header - A component for displaying the header text of a banner.
 *
 * @description
 * The `Banner Header` component is used as part of a banner to display its main heading or title.
 * It supports customization through slots, CSS parts, and properties to match the design and styling needs
 * of the application.
 *
 * @name Banner Header
 * @element mosaik-banner-header
 * @category Notifications
 *
 * @slot - Slot for the banner header content.
 *
 * @csspart text - The text part of the banner header.
 *
 * @cssprop {String} --banner-header-font-family - The font family for the banner header text.
 * @cssprop {String} --banner-header-font-size - The font size for the banner header text.
 * @cssprop {String} --banner-header-font-line-height - The line height for the banner header text.
 * @cssprop {String} --banner-header-font-weight - The font weight for the banner header text.
 * @cssprop {String} --banner-header-font-letter-spacing - The letter spacing for the banner header text.
 * @cssprop {String} --banner-header-font-text-decoration - The text decoration for the banner header text.
 * @cssprop {String} --banner-header-font-text-transform - The text transformation for the banner header text.
 * @cssprop {Color} --banner-header-background-color - The background color for the banner header.
 * @cssprop {Color} --banner-header-border-color - The border color for the banner header.
 * @cssprop {Color} --banner-header-foreground-color - The foreground color for the banner header text.
 *
 * @dependency {TextElement} - The Text element.
 *
 * @example
 * ```html
 * <mosaik-banner-header>
 *   <mosaik-text>This is the banner header text</mosaik-text>
 * </mosaik-banner-header>
 * ```
 *
 * @public
 */
let BannerHeaderElement = class BannerHeaderElement extends Themeable(Variantable(Disableable(TextFormattable(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-banner-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])
], BannerHeaderElement.prototype, "text", null);
BannerHeaderElement = __decorate([
    Component({
        selector: 'mosaik-banner-header',
        template: bannerHeaderElementTemplate,
        themes: {
            joy: bannerHeaderElementJoyStyle,
            memphis: bannerHeaderElementMemphisStyle,
            cosmopolitan: bannerHeaderElementCosmopolitanStyle
        },
        host: {
            slot: 'header'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BannerHeaderElement);
export { BannerHeaderElement };
//# sourceMappingURL=BannerHeaderElement.js.map