// #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 { Slottable } from '../../../Behaviors/Slottable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { toolbarElementCosmopolitanStyle } from './Themes/ToolbarElement.Cosmopolitan';
import { toolbarElementJoyStyle } from './Themes/ToolbarElement.Joy';
import { toolbarElementMemphisStyle } from './Themes/ToolbarElement.Memphis';
import { toolbarElementTemplate } from './ToolbarElementTemplate';
// #endregion
/**
 * Toolbar - A horizontal container component for organizing actions, controls, and navigation elements.
 *
 * @description
 * The Toolbar component provides structured layout for application toolbars with dedicated slots for start/end
 * content, titles, and main actions. It supports flexible content arrangement, consistent styling across themes,
 * and responsive design patterns. Essential for application headers, action bars, control panels, and navigation
 * interfaces. Features built-in support for variant colors, appearance modes, and text formatting options.
 *
 * @name Toolbar
 * @element mosaik-toolbar
 * @category Grouping
 *
 * @slot - Default content slot for main toolbar controls and elements
 * @slot end - Trailing content area for secondary actions, user menus, or controls
 * @slot start - Leading content area for navigation buttons or primary actions
 * @slot subTitle - Secondary title or subtitle text for additional context
 * @slot title - Primary toolbar title or heading text
 *
 * @csspart main - Main content section container for default slot and titles
 * @csspart root - Root container for the entire toolbar layout
 * @csspart subTitle - Subtitle section styling container
 * @csspart title - Title section styling container
 *
 * @cssprop {String} --toolbar-background-color - Background color of the toolbar container
 * @cssprop {String} --toolbar-border-color - Border color for toolbar edges
 * @cssprop {String} --toolbar-border-radius - Border radius for toolbar corner rounding
 * @cssprop {String} --toolbar-border-style - Border line style (solid, dashed, dotted)
 * @cssprop {String} --toolbar-border-width - Border width for toolbar outline
 * @cssprop {String} --toolbar-font-family - Font family for toolbar text
 * @cssprop {String} --toolbar-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --toolbar-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --toolbar-font-size - Font size for toolbar text
 * @cssprop {String} --toolbar-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --toolbar-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --toolbar-font-weight - Font weight for toolbar text
 * @cssprop {String} --toolbar-foreground-color - Primary text and icon color
 * @cssprop {String} --toolbar-gap - Spacing between toolbar sections and elements
 * @cssprop {String} --toolbar-height - Height of the toolbar container
 * @cssprop {String} --toolbar-line-height - Line height for toolbar text
 * @cssprop {String} --toolbar-padding-bottom - Bottom padding for toolbar content
 * @cssprop {String} --toolbar-padding-left - Left padding for toolbar content
 * @cssprop {String} --toolbar-padding-right - Right padding for toolbar content
 * @cssprop {String} --toolbar-padding-top - Top padding for toolbar content
 * @cssprop {String} --toolbar-shadow - The shadow CSS custom property.
 * @cssprop {String} --toolbar-shadow-blur - Shadow blur radius for elevation effect
 * @cssprop {String} --toolbar-shadow-color - Shadow color for elevation effect
 * @cssprop {String} --toolbar-shadow-offset-x - Horizontal shadow offset
 * @cssprop {String} --toolbar-shadow-offset-y - Vertical shadow offset
 * @cssprop {String} --toolbar-shadow-spread - Shadow spread radius
 * @cssprop {String} --toolbar-transition-duration - Duration of hover and state transitions
 * @cssprop {String} --toolbar-transition-mode - Timing function for transitions
 * @cssprop {String} --toolbar-transition-property - CSS properties to transition
 * @cssprop {String} --toolbar-translate - The translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic application header:
 * ```html
 * <mosaik-toolbar title="My Application">
 *   <mosaik-button slot="start" appearance="plain"></mosaik-button>
 *   <mosaik-button slot="end" appearance="plain"></mosaik-button>
 * </mosaik-toolbar>
 * ```
 *
 * @example
 * Document toolbar with subtitle:
 * ```html
 * <mosaik-toolbar title="Document.pdf" sub-title="Last modified: Today">
 *   <mosaik-button slot="start"></mosaik-button>
 *   <mosaik-button slot="end" variant="error"></mosaik-button>
 * </mosaik-toolbar>
 * ```
 *
 * @example
 * Navigation toolbar with variant:
 * ```html
 * <mosaik-toolbar variant="primary" appearance="solid">
 *   <mosaik-button slot="start"></mosaik-button>
 *   <span slot="title">Settings</span>
 *   <mosaik-button slot="end"></mosaik-button>
 * </mosaik-toolbar>
 * ```
 *
 * @public
 */
let ToolbarElement = class ToolbarElement extends Themeable(Variantable(Appearanceable(Fitable(TextFormattable(Slottable(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
     */
    get subTitle() {
        return this._subTitle;
    }
    set subTitle(value) {
        if (this._subTitle !== value) {
            this._subTitle = value;
            this.requestUpdate('subTitle');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ToolbarElement.prototype, "title", null);
__decorate([
    Property({ 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,
            memphis: toolbarElementMemphisStyle,
            cosmopolitan: toolbarElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ToolbarElement);
export { ToolbarElement };
//# sourceMappingURL=ToolbarElement.js.map