// #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 { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Fitable } from '../../../Behaviors/Fitable';
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 { toolbarElementTemplate } from './ToolbarElementTemplate';
import { toolbarElementJoyStyle } from './Themes/ToolbarElement.Joy';
import { toolbarElementRetroStyle } from './Themes/ToolbarElement.Retro';
import { toolbarElementCosmopolitanStyle } from './Themes/ToolbarElement.Cosmopolitan';
// #endregion
/**
 * Toolbar - A component that represents a toolbar with various controls and title elements.
 *
 * @name Toolbar
 * @element mosaik-toolbar
 * @category Grouping
 *
 * @description
 * This element provides a container for toolbar controls, titles, and other interactive elements.
 *
 * @example
 * ```html
 * <toolbar-element>
 *   <div slot="start">Start content</div>
 *   <div slot="default">Default content</div>
 *   <div slot="title">Toolbar Title</div>
 *   <div slot="subTitle">Toolbar SubTitle</div>
 *   <div slot="end">End content</div>
 * </toolbar-element>
 * ```
 *
 * @slot start - The content placed at the start of the toolbar.
 * @slot default - The default content in the toolbar.
 * @slot title - The title of the toolbar.
 * @slot subTitle - The subtitle of the toolbar.
 * @slot end - The content placed at the end of the toolbar.
 *
 * @csspart root - The root part of the toolbar.
 * @csspart main - The main section of the toolbar.
 * @csspart title - The title section of the toolbar.
 * @csspart subTitle - The subtitle section of the toolbar.
 *
 * @cssprop {unknown} --toolbar-font-family - The font family used in the toolbar.
 * @cssprop {unknown} --toolbar-font-size - The font size used in the toolbar.
 * @cssprop {unknown} --toolbar-font-weight - The font weight used in the toolbar.
 * @cssprop {unknown} --toolbar-line-height - The line height used in the toolbar.
 * @cssprop {unknown} --toolbar-background-color - The background color of the toolbar.
 * @cssprop {unknown} --toolbar-foreground-color - The foreground color of the toolbar.
 * @cssprop {unknown} --toolbar-border-color - The border color of the toolbar.
 * @cssprop {unknown} --toolbar-border-width - The border width of the toolbar.
 * @cssprop {unknown} --toolbar-border-radius - The border radius of the toolbar.
 * @cssprop {unknown} --toolbar-border-style - The border style of the toolbar.
 * @cssprop {unknown} --toolbar-transition-duration - The transition duration for toolbar animations.
 * @cssprop {unknown} --toolbar-transition-mode - The transition mode for toolbar animations.
 * @cssprop {unknown} --toolbar-transition-property - The transition property for toolbar animations.
 * @cssprop {unknown} --toolbar-transition - The transition shorthand for toolbar animations.
 * @cssprop {unknown} --toolbar-shadow - The shadow applied to the toolbar.
 * @cssprop {unknown} --toolbar-padding-top - The padding-top of the toolbar.
 * @cssprop {unknown} --toolbar-padding-left - The padding-left of the toolbar.
 * @cssprop {unknown} --toolbar-padding-right - The padding-right of the toolbar.
 * @cssprop {unknown} --toolbar-padding-bottom - The padding-bottom of the toolbar.
 * @cssprop {unknown} --toolbar-gap - The gap between items in the toolbar.
 * @cssprop {unknown} --toolbar-height - The height of the toolbar.
 *
 * @dependency {TextElement} - The Text element used within the toolbar.
 *
 * @public
 */
let ToolbarElement = class ToolbarElement extends Themeable(Variantable(Appearanceable(Fitable(TextFormattable(CustomElement))))) {
    // #region Fields
    _title;
    _subTitle;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._title = '';
        this._subTitle = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-toolbar';
    }
    /**
     * Gets or sets the `title` property.
     *
     * @public
     * @override
     */
    get title() {
        return this._title;
    }
    set title(value) {
        if (this._title !== value) {
            this._title = value;
            this.requestUpdate('title');
        }
    }
    /**
     * Gets or sets the `subTitle` property.
     *
     * @public
     * @attr
     */
    get subTitle() {
        return this._subTitle;
    }
    set subTitle(value) {
        if (this._subTitle !== value) {
            this._subTitle = value;
            this.requestUpdate('subTitle');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ToolbarElement.prototype, "title", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ToolbarElement.prototype, "subTitle", null);
ToolbarElement = __decorate([
    Component({
        selector: 'mosaik-toolbar',
        template: toolbarElementTemplate,
        themes: {
            joy: toolbarElementJoyStyle,
            retro: toolbarElementRetroStyle,
            cosmopolitan: toolbarElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ToolbarElement);
export { ToolbarElement };
//# sourceMappingURL=ToolbarElement.js.map