// #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 { Busyable } from '../../../Behaviors/Busyable';
import { ContentAlignable } from '../../../Behaviors/ContentAlignable';
import { Fitable } from '../../../Behaviors/Fitable';
import { Labelable } from '../../../Behaviors/Labelable';
import { Orientable } from '../../../Behaviors/Orientable';
import { Reversible } from '../../../Behaviors/Reversible';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { RippleElement } from '../../Effects/Ripple/RippleElement';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { FocusRingElement } from '../../Primitives/FocusRing/FocusRingElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { ProgressRingElement } from '../../Ranges/ProgressRing/ProgressRingElement';
import { ButtonBaseElement } from '../Abstracts/ButtonBaseElement';
import { compoundButtonElementTemplate } from './CompoundButtonElementTemplate';
import { Themeable } from '../../../../Controls/Behaviors/Themeable';
import { compoundButtonElementCosmopolitanStyle } from './Themes/CompoundButtonElement.Cosmopolitan';
import { compoundButtonElementMemphisStyle } from './Themes/CompoundButtonElement.Memphis';
import { compoundButtonElementJoyStyle } from './Themes/CompoundButtonElement.Joy';
import { Iconable } from '../../../Behaviors/Iconable';
// #endregion
/**
 * CompoundButton - An enhanced button component that supports multiple content areas and hierarchical information display.
 *
 * Combines primary and secondary content areas within a single interactive button, allowing for complex
 * information presentation with main labels, sub-labels, icons, and additional content slots. Ideal
 * for navigation buttons, action cards, or any interface requiring rich button content.
 *
 * @name CompoundButtonElement
 * @element mosaik-compound-button
 * @category Buttons
 *
 * @slot icon - Primary icon content area for visual button identification
 * @slot label - Primary text content area for main button labeling
 * @slot overlay - Overlay content area for badges, notifications, or status indicators
 * @slot - Default content area for additional button content and elements
 * @slot prefix - Leading content area before the main label
 * @slot suffix - Trailing content area after the main label
 * @slot subLabel - Secondary text content area for descriptions or additional information
 *
 * @csspart button - Main button element container
 * @csspart focusRing - Focus ring indicator for accessibility
 * @csspart ripple - Ripple effect animation container
 * @csspart icon - Icon content styling container
 * @csspart label - Primary label styling container
 * @csspart progressRing - Loading state progress indicator
 * @csspart subLabel - Secondary label styling container
 * @csspart icon-nav - Navigation icon styling container
 *
 * @cssprop --compound-button-font-family - Font family for button text content
 * @cssprop --compound-button-font-size - Font size for primary button text
 * @cssprop --compound-button-font-weight - Font weight for primary button text
 * @cssprop --compound-button-line-height - Line height for button text
 * @cssprop --compound-button-letter-spacing - Letter spacing for button text
 * @cssprop --compound-button-padding - Internal padding for button content
 * @cssprop --compound-button-gap - Gap between button content elements
 * @cssprop --compound-button-border-radius - Border radius for button styling
 * @cssprop --compound-button-background - Background color for the button
 * @cssprop --compound-button-sub-font-size - Font size for secondary label text
 * @cssprop --compound-button-sub-font-weight - Font weight for secondary label text
 *
 * @fires click - Dispatched when the button is clicked or activated
 * @fires focus - Dispatched when the button receives focus
 * @fires blur - Dispatched when the button loses focus
 *
 * @dependency RippleElement - For interactive ripple effects on user interaction
 * @dependency StackElement - For layout management of multiple content areas
 * @dependency IconElement - For displaying icons and visual indicators
 * @dependency FocusRingElement - For accessibility focus indicators
 * @dependency TextElement - For rendering primary and secondary text content
 * @dependency ProgressRingElement - For loading state visualization
 *
 * @example
 * ```html
 * <!-- Navigation compound button -->
 * <mosaik-compound-button onclick="navigateToSettings()">
 *   <mosaik-icon slot="icon" data="cog"></mosaik-icon>
 *   <mosaik-text slot="label">Settings</mosaik-text>
 *   <mosaik-text slot="subLabel">Manage your preferences</mosaik-text>
 *   <mosaik-icon slot="suffix" data="chevron-right"></mosaik-icon>
 * </mosaik-compound-button>
 *
 * <!-- Profile compound button -->
 * <mosaik-compound-button appearance="soft">
 *   <mosaik-avatar slot="icon" src="user-avatar.jpg"></mosaik-avatar>
 *   <mosaik-text slot="label">John Smith</mosaik-text>
 *   <mosaik-text slot="subLabel">Admin User</mosaik-text>
 *   <mosaik-badge slot="overlay" value="5"></mosaik-badge>
 * </mosaik-compound-button>
 *
 * <!-- Action compound button with status -->
 * <mosaik-compound-button appearance="primary">
 *   <mosaik-icon slot="prefix" data="upload"></mosaik-icon>
 *   <mosaik-text slot="label">Upload Files</mosaik-text>
 *   <mosaik-text slot="subLabel">Drag & drop or click to select</mosaik-text>
 * </mosaik-compound-button>
 *
 * <!-- Busy compound button -->
 * <mosaik-compound-button busy="true">
 *   <mosaik-text slot="label">Processing...</mosaik-text>
 *   <mosaik-text slot="subLabel">Please wait while we save your changes</mosaik-text>
 * </mosaik-compound-button>
 *
 * <!-- Feature compound button -->
 * <mosaik-compound-button orientation="vertical">
 *   <mosaik-icon slot="icon" data="shield-check" size="large"></mosaik-icon>
 *   <mosaik-text slot="label">Security Center</mosaik-text>
 *   <mosaik-text slot="subLabel">Protect your account with advanced security features</mosaik-text>
 * </mosaik-compound-button>
 * ```
 *
 * @public
 */
let CompoundButtonElement = class CompoundButtonElement extends Themeable(Reversible(Orientable(ContentAlignable(Fitable(Busyable(Labelable(Iconable(ButtonBaseElement)))))))) {
    // #region Fields
    _subLabel;
    _isNavigation;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        // this.verticalContentAlignment = VerticalAlignment.Center;
        // this.horizontalContentAlignment = HorizontalAlignment.Left;
        this._subLabel = '';
        this._isNavigation = false;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-compound-button';
    }
    /**
     * Gets or sets the `subLabel` property.
     *
     * @public
     */
    get subLabel() {
        return this._subLabel;
    }
    set subLabel(value) {
        if (this._subLabel !== value) {
            this._subLabel = value;
            this.requestUpdate('subLabel');
        }
    }
    /**
     * Gets or sets the `isNavigation` property.
     *
     * @public
     * @attr
     */
    get isNavigation() {
        return this._isNavigation;
    }
    set isNavigation(value) {
        if (this._isNavigation !== value) {
            this._isNavigation = value;
            this.requestUpdate('isNavigation');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CompoundButtonElement.prototype, "subLabel", null);
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], CompoundButtonElement.prototype, "isNavigation", null);
CompoundButtonElement = __decorate([
    Component({
        selector: 'mosaik-compound-button',
        template: compoundButtonElementTemplate,
        themes: {
            joy: compoundButtonElementJoyStyle,
            memphis: compoundButtonElementMemphisStyle,
            cosmopolitan: compoundButtonElementCosmopolitanStyle
        },
        options: {
            mode: 'open',
            delegatesFocus: true
        },
        imports: [
            StackElement,
            IconElement,
            RippleElement,
            FocusRingElement,
            TextElement,
            ProgressRingElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CompoundButtonElement);
export { CompoundButtonElement };
//# sourceMappingURL=CompoundButtonElement.js.map