// #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 { Labelable } from '../../../Behaviors/Labelable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { RippleElement } from '../../Effects/Ripple/RippleElement';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { ElevationElement } from '../../Primitives/Elevation/ElevationElement';
import { FocusRingElement } from '../../Primitives/FocusRing/FocusRingElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { ProgressRingElement } from '../../Ranges/ProgressRing/ProgressRingElement';
import { ButtonBaseElement } from '../Abstracts/ButtonBaseElement';
import { floatingActionButtonElementTemplate } from './FloatingActionButtonElementTemplate';
import { floatingActionButtonElementCosmopolitanStyle } from './Themes/FloatingActionButtonElement.Cosmopolitan';
import { floatingActionButtonElementJoyStyle } from './Themes/FloatingActionButtonElement.Joy';
import { floatingActionButtonElementRetroStyle } from './Themes/FloatingActionButtonElement.Retro';
import { Themeable } from '../../../Behaviors/Themeable';
import { Iconable } from '../../../Behaviors/Iconable';
// #endregion
/**
 * Floating Action Button - A prominent UI button that triggers a primary action in an application.
 *
 * @description
 * The Floating Action Button (FAB) is a prominent, circular UI element often used in user interfaces to initiate
 * a primary or high-priority action. It is designed to be visually distinctive and easily accessible, typically
 * positioned in a fixed or floating location on the screen for quick access. FABs are commonly employed for actions
 * such as creating new content, sharing, or navigation in mobile and web applications.
 *
 * @name Floating Action Button
 * @element mosaik-fab
 * @category Buttons
 *
 * @slot icon - The icon part.
 * @slot label - The label part.
 * @slot overlay - The overlay slot (useful for badges).
 *
 * @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 elevation - The elevation part.
 *
 * @cssprop {String} --fab-font-family - The font family for the FAB.
 * @cssprop {String} --fab-font-size - The font size for the FAB.
 * @cssprop {String} --fab-font-line-height - The line height for the FAB font.
 * @cssprop {String} --fab-font-weight - The font weight for the FAB.
 * @cssprop {String} --fab-font-letter-spacing - The letter spacing for the FAB font.
 * @cssprop {String} --fab-font-text-decoration - The text decoration for the FAB font.
 * @cssprop {String} --fab-font-text-transform - The text transform for the FAB font.
 * @cssprop {String} --fab-padding-top - The top padding for the FAB.
 * @cssprop {String} --fab-padding-right - The right padding for the FAB.
 * @cssprop {String} --fab-padding-bottom - The bottom padding for the FAB.
 * @cssprop {String} --fab-padding-left - The left padding for the FAB.
 * @cssprop {String} --fab-gap - The gap between FAB elements.
 * @cssprop {String} --fab-transition-duration - The transition duration for the FAB.
 * @cssprop {String} --fab-transition-mode - The transition mode for the FAB.
 * @cssprop {String} --fab-transition-property - The transition property for the FAB.
 * @cssprop {String} --fab-background-color - The background color of the FAB.
 * @cssprop {String} --fab-border-color - The border color of the FAB.
 * @cssprop {String} --fab-foreground-color - The foreground color of the FAB.
 * @cssprop {String} --fab-border-width - The border width of the FAB.
 * @cssprop {String} --fab-border-radius - The border radius of the FAB.
 * @cssprop {String} --fab-border-style - The border style of the FAB.
 * @cssprop {String} --fab-shadow - The shadow of the FAB.
 * @cssprop {String} --focus-ring-outward-offset - The outward offset for the focus ring.
 * @cssprop {String} --fab-line-height - The line height for the FAB 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.
 * @dependency {ElevationElement} - The Elevation element.
 *
 * @example
 * ```html
 * <mosaik-fab label="Action" icon="add"></mosaik-fab>
 * ```
 *
 * @public
 */
let FloatingActionButtonElement = class FloatingActionButtonElement extends Themeable(Busyable(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-fab';
    }
};
FloatingActionButtonElement = __decorate([
    Component({
        selector: 'mosaik-fab',
        template: floatingActionButtonElementTemplate,
        themes: {
            joy: floatingActionButtonElementJoyStyle,
            retro: floatingActionButtonElementRetroStyle,
            cosmopolitan: floatingActionButtonElementCosmopolitanStyle
        },
        options: {
            mode: 'open',
            delegatesFocus: true
        },
        imports: [
            StackElement,
            IconElement,
            RippleElement,
            FocusRingElement,
            TextElement,
            ProgressRingElement,
            ElevationElement
        ]
    }),
    __metadata("design:paramtypes", [])
], FloatingActionButtonElement);
export { FloatingActionButtonElement };
//# sourceMappingURL=FloatingActionButtonElement.js.map