// #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 { Insetable } from '../../../Behaviors/Insetable';
import { Slottable } from '../../../Behaviors/Slottable';
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 { pageHeaderElementTemplate } from './PageHeaderElementTemplate';
import { pageHeaderElementCosmopolitanStyle } from './Themes/PageHeaderElement.Cosmopolitan';
import { pageHeaderElementJoyStyle } from './Themes/PageHeaderElement.Joy';
import { pageHeaderElementMemphisStyle } from './Themes/PageHeaderElement.Memphis';
// #endregion
/**
 * Page Header - The header section of a page that typically contains a title, navigation, and other relevant information.
 *
 * @element mosaik-page-header
 *
 * @slot  - The default slot.
 * @slot additionalHeader - The additionalHeader slot.
 * @slot header - The header content.
 * @slot prefix - The prefix slot.
 * @slot subHeader - The subHeader slot.
 * @slot suffix - The suffix slot.
 *
 * @csspart content - The content part.
 * @csspart heading - The heading part.
 * @csspart prefix - The prefix part.
 * @csspart root - The root part.
 * @csspart suffix - The suffix part.
 *
 * @cssprop {String} --page-header-additional-header-font-family - The header additional header font family CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-letter-spacing - The header additional header font letter spacing CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-line-height - The header additional header font line height CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-size - The header additional header font size CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-text-decoration - The header additional header font text decoration CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-text-transform - The header additional header font text transform CSS custom property.
 * @cssprop {String} --page-header-additional-header-font-weight - The header additional header font weight CSS custom property.
 * @cssprop {String} --page-header-background-color - The header background color CSS custom property.
 * @cssprop {String} --page-header-font-family - The header font family CSS custom property.
 * @cssprop {String} --page-header-font-letter-spacing - The header font letter spacing CSS custom property.
 * @cssprop {String} --page-header-font-line-height - The header font line height CSS custom property.
 * @cssprop {String} --page-header-font-size - The header font size CSS custom property.
 * @cssprop {String} --page-header-font-text-decoration - The header font text decoration CSS custom property.
 * @cssprop {String} --page-header-font-text-transform - The header font text transform CSS custom property.
 * @cssprop {String} --page-header-font-weight - The header font weight CSS custom property.
 * @cssprop {String} --page-header-foreground-color - The header foreground color CSS custom property.
 * @cssprop {String} --page-header-gap - The header gap CSS custom property.
 * @cssprop {String} --page-header-header-font-family - The header header font family CSS custom property.
 * @cssprop {String} --page-header-header-font-letter-spacing - The header header font letter spacing CSS custom property.
 * @cssprop {String} --page-header-header-font-line-height - The header header font line height CSS custom property.
 * @cssprop {String} --page-header-header-font-size - The header header font size CSS custom property.
 * @cssprop {String} --page-header-header-font-text-decoration - The header header font text decoration CSS custom property.
 * @cssprop {String} --page-header-header-font-text-transform - The header header font text transform CSS custom property.
 * @cssprop {String} --page-header-header-font-weight - The header header font weight CSS custom property.
 * @cssprop {String} --page-header-inset - The header inset CSS custom property.
 * @cssprop {String} --page-header-padding-bottom - The header padding bottom CSS custom property.
 * @cssprop {String} --page-header-padding-left - The header padding left CSS custom property.
 * @cssprop {String} --page-header-padding-right - The header padding right CSS custom property.
 * @cssprop {String} --page-header-padding-top - The header padding top CSS custom property.
 * @cssprop {String} --page-header-prefix-gap - The header prefix gap CSS custom property.
 * @cssprop {String} --page-header-shadow - The header shadow CSS custom property.
 * @cssprop {String} --page-header-shadow-blur - The header shadow blur CSS custom property.
 * @cssprop {String} --page-header-shadow-color - The header shadow color CSS custom property.
 * @cssprop {String} --page-header-shadow-offset-x - The header shadow offset x CSS custom property.
 * @cssprop {String} --page-header-shadow-offset-y - The header shadow offset y CSS custom property.
 * @cssprop {String} --page-header-shadow-spread - The header shadow spread CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-family - The header sub header font family CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-letter-spacing - The header sub header font letter spacing CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-line-height - The header sub header font line height CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-size - The header sub header font size CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-text-decoration - The header sub header font text decoration CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-text-transform - The header sub header font text transform CSS custom property.
 * @cssprop {String} --page-header-sub-header-font-weight - The header sub header font weight CSS custom property.
 * @cssprop {String} --page-header-suffix-gap - The header suffix gap CSS custom property.
 * @cssprop {String} --page-header-transition-duration - The header transition duration CSS custom property.
 * @cssprop {String} --page-header-transition-mode - The header transition mode CSS custom property.
 * @cssprop {String} --page-header-transition-property - The header transition property CSS custom property.
 * @cssprop {String} --page-header-translate - The header translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * ```html
 * <mosaik-page-header>
 *   <span slot="header">My Application</span>
 * </mosaik-page-header>
 * ```
 *
 * @public
 */
let PageHeaderElement = class PageHeaderElement extends Themeable(Insetable(Slottable(CustomElement))) {
    // #region Fields
    _text;
    _subText;
    _additionalText;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._subText = undefined;
        this._additionalText = undefined;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-page-header';
    }
    /**
      * Gets or sets the `text` property.
      *
      * @public
      */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
    /**
      * Gets or sets the `subText` property.
      *
      * @public
      */
    get subText() {
        return this._subText;
    }
    set subText(value) {
        if (this._subText !== value) {
            this._subText = value;
            this.requestUpdate('subText');
        }
    }
    /**
      * Gets or sets the `additionalText` property.
      *
      * @public
      */
    get additionalText() {
        return this._additionalText;
    }
    set additionalText(value) {
        if (this._additionalText !== value) {
            this._additionalText = value;
            this.requestUpdate('additionalText');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PageHeaderElement.prototype, "text", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], PageHeaderElement.prototype, "subText", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], PageHeaderElement.prototype, "additionalText", null);
PageHeaderElement = __decorate([
    Component({
        selector: 'mosaik-page-header',
        themes: {
            joy: pageHeaderElementJoyStyle,
            memphis: pageHeaderElementMemphisStyle,
            cosmopolitan: pageHeaderElementCosmopolitanStyle
        },
        template: pageHeaderElementTemplate,
        host: {
            slot: 'header'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], PageHeaderElement);
export { PageHeaderElement };
//# sourceMappingURL=PageHeaderElement.js.map