// #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 { compoundButtonElementRetroStyle } from './Themes/CompoundButtonElement.Retro';
import { compoundButtonElementJoyStyle } from './Themes/CompoundButtonElement.Joy';
import { Iconable } from '../../../Behaviors/Iconable';
// #endregion
/**
 * Compound Button - A button component that combines different elements for extended functionality.
 *
 * @description
 * The Compound Button is a versatile button component that integrates multiple elements into a single
 * interactive component. It allows for advanced customization and interaction, making it suitable for complex
 * interfaces where combining various elements into one button is beneficial. The button supports various states
 * and can be styled extensively through CSS variables.
 *
 * @name Compound Button
 * @element mosaik-compound-button
 * @category Buttons
 *
 * @slot icon - The slot for the button icon.
 * @slot label - The slot for the button label.
 * @slot overlay - The slot for the overlay content (useful for badges or additional information).
 * @slot - The default slot for additional button content.
 * @slot prefix - The slot for the prefix content.
 * @slot suffix - The slot for the suffix content.
 * @slot subLabel - The slot for the sub label content.
 *
 * @csspart button - The button part.
 * @csspart focusRing - The focus ring part.
 * @csspart ripple - The ripple part.
 * @csspart icon - The icon part.
 * @csspart label - The label part.
 * @csspart progressRing - The progress ring part.
 * @csspart subLabel - The sub label part.
 * @csspart icon nav - The navigation icon part.
 *
 *
 * @cssprop {String} --compound-button-font-family - The font family for the Compound Button.
 * @cssprop {String} --compound-button-font-size - The font size for the Compound Button.
 * @cssprop {String} --compound-button-font-line-height - The line height for the Compound Button font.
 * @cssprop {String} --compound-button-font-weight - The font weight for the Compound Button.
 * @cssprop {String} --compound-button-font-letter-spacing - The letter spacing for the Compound Button font.
 * @cssprop {String} --compound-button-font-text-decoration - The text decoration for the Compound Button font.
 * @cssprop {String} --compound-button-font-text-transform - The text transform for the Compound Button font.
 * @cssprop {String} --compound-button-padding-top - The top padding for the Compound Button.
 * @cssprop {String} --compound-button-padding-right - The right padding for the Compound Button.
 * @cssprop {String} --compound-button-padding-bottom - The bottom padding for the Compound Button.
 * @cssprop {String} --compound-button-padding-left - The left padding for the Compound Button.
 * @cssprop {String} --compound-button-gap - The gap between Compound Button elements.
 * @cssprop {String} --compound-button-transition-duration - The transition duration for the Compound Button.
 * @cssprop {String} --compound-button-transition-mode - The transition mode for the Compound Button.
 * @cssprop {String} --compound-button-transition-property - The transition property for the Compound Button.
 * @cssprop {String} --compound-button-background-color - The background color of the Compound Button.
 * @cssprop {String} --compound-button-border-color - The border color of the Compound Button.
 * @cssprop {String} --compound-button-foreground-color - The foreground color of the Compound Button.
 * @cssprop {String} --compound-button-border-width - The border width of the Compound Button.
 * @cssprop {String} --compound-button-border-radius - The border radius of the Compound Button.
 * @cssprop {String} --compound-button-border-style - The border style of the Compound Button.
 * @cssprop {String} --compound-button-shadow - The shadow of the Compound Button.
 * @cssprop {String} --focus-ring-outward-offset - The outward offset for the focus ring.
 * @cssprop {String} --compound-button-line-height - The line height for the Compound Button text.
 *
 * @dependency {StackElement} - The Stack element.
 * @dependency {IconElement} - The Icon element.
 * @dependency {RippleElement} - The Ripple element.
 * @dependency {FocusRingElement} - The Focus Ring element.
 * @dependency {TextElement} - The Text element.
 * @dependency {ProgressRingElement} - The Progress Ring element.
 *
 * @example
 * ```html
 * <mosaik-compound-button>
 *   <mosaik-icon name="check"></mosaik-icon>
 *   <mosaik-text>Click Me</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,
            retro: compoundButtonElementRetroStyle,
            cosmopolitan: compoundButtonElementCosmopolitanStyle
        },
        options: {
            mode: 'open',
            delegatesFocus: true
        },
        imports: [
            StackElement,
            IconElement,
            RippleElement,
            FocusRingElement,
            TextElement,
            ProgressRingElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CompoundButtonElement);
export { CompoundButtonElement };
//# sourceMappingURL=CompoundButtonElement.js.map