// #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 { Busyable } from '../../../Behaviors/Busyable';
import { Checkable } from '../../../Behaviors/Checkable';
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 { Component } from '../../../Decorators/ComponentDecorator';
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 { toggleButtonElementJoyStyle } from './Themes/ToggleButtonElement.Joy';
import { toggleButtonElementRetroStyle } from './Themes/ToggleButtonElement.Retro';
import { toggleButtonElementTemplate } from './ToggleButtonElementTemplate';
import { toggleButtonElementCosmopolitanStyle } from './Themes/ToggleButtonElement.Cosmopolitan';
import { Iconable } from '../../../Behaviors/Iconable';
// #endregion
/**
 * Toggle Button - A user interface element for switching between two states.
 *
 * @description
 * The Toggle Button component is designed to allow users to switch between two states, typically an "on" and "off" state.
 * It is often used to represent binary choices or preferences that can be toggled on or off with a single click. Toggle
 * Buttons provide a clear and intuitive way for users to interact with options that have only two possible states.
 *
 * @name Toggle Button
 * @element mosaik-toggle-button
 * @category Buttons
 *
 * @slot label - The label slot.
 * @slot icon - The icon slot.
 * @slot overlay - The overlay slot (useful for badge).
 *
 * @csspart button - The button part of the toggle button.
 * @csspart focusRing - The focus ring part of the toggle button.
 * @csspart ripple - The ripple part of the toggle button.
 * @csspart icon - The icon part of the toggle button.
 * @csspart label - The label part of the toggle button.
 * @csspart progressRing - The progress ring part of the toggle button.
 *
 * @cssprop {String} --toggle-button-font-family - The font family of the toggle button.
 * @cssprop {String} --toggle-button-font-size - The font size of the toggle button.
 * @cssprop {String} --toggle-button-font-line-height - The font line height of the toggle button.
 * @cssprop {String} --toggle-button-font-weight - The font weight of the toggle button.
 * @cssprop {String} --toggle-button-font-letter-spacing - The font letter spacing of the toggle button.
 * @cssprop {String} --toggle-button-font-text-decoration - The font text decoration of the toggle button.
 * @cssprop {String} --toggle-button-font-text-transform - The font text transform of the toggle button.
 * @cssprop {String} --toggle-button-padding-top - The padding top of the toggle button.
 * @cssprop {String} --toggle-button-padding-right - The padding right of the toggle button.
 * @cssprop {String} --toggle-button-padding-bottom - The padding bottom of the toggle button.
 * @cssprop {String} --toggle-button-padding-left - The padding left of the toggle button.
 * @cssprop {String} --toggle-button-gap - The gap between elements of the toggle button.
 * @cssprop {String} --toggle-button-transition-duration - The transition duration for the toggle button.
 * @cssprop {String} --toggle-button-transition-mode - The transition mode for the toggle button.
 * @cssprop {String} --toggle-button-transition-property - The transition property for the toggle button.
 * @cssprop {String} --toggle-button-background-color - The background color of the toggle button.
 * @cssprop {String} --toggle-button-border-color - The border color of the toggle button.
 * @cssprop {String} --toggle-button-foreground-color - The foreground color of the toggle button.
 * @cssprop {String} --toggle-button-border-width - The border width of the toggle button.
 * @cssprop {String} --toggle-button-border-radius - The border radius of the toggle button.
 * @cssprop {String} --toggle-button-border-style - The border style of the toggle button.
 * @cssprop {String} --toggle-button-shadow - The shadow of the toggle button.
 * @cssprop {String} --focus-ring-outward-offset - The outward offset of the focus ring.
 * @cssprop {String} --toggle-button-line-height - The line height of the toggle button text.
 *
 * @fires checked {CustomEvent<IEventDetail>} - Fired when the element is checked.
 * @fires unchecked {CustomEvent<IEventDetail>} - Fired when the element is unchecked.
 *
 * @dependency {StackElement} mosaik-stack - The Stack component, used for layout management.
 * @dependency {IconElement} mosaik-icon - The Icon component, used for displaying the icon.
 * @dependency {RippleElement} mosaik-ripple - The Ripple component, used for the ripple effect.
 * @dependency {FocusRingElement} mosaik-focus-ring - The Focus Ring component, used for focus indication.
 * @dependency {TextElement} mosaik-text - The Text component, used for displaying the label text.
 * @dependency {ProgressRingElement} mosaik-progress-ring - The Progress Ring component, used for progress indication.
 *
 * @example
 * ```html
 * <mosaik-toggle-button label="Toggle"></mosaik-toggle-button>
 * ```
 *
 * @public
 */
let ToggleButtonElement = class ToggleButtonElement extends Themeable(Reversible(Orientable(ContentAlignable(Fitable(Busyable(Checkable(Labelable(Iconable(ButtonBaseElement))))))))) {
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
    }
    // #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-toggle-button';
    }
};
ToggleButtonElement = __decorate([
    Component({
        selector: 'mosaik-toggle-button',
        template: toggleButtonElementTemplate,
        themes: {
            joy: toggleButtonElementJoyStyle,
            retro: toggleButtonElementRetroStyle,
            cosmopolitan: toggleButtonElementCosmopolitanStyle
        },
        options: {
            mode: 'open',
            delegatesFocus: true
        },
        imports: [
            StackElement,
            IconElement,
            RippleElement,
            FocusRingElement,
            TextElement,
            ProgressRingElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ToggleButtonElement);
export { ToggleButtonElement };
//# sourceMappingURL=ToggleButtonElement.js.map