// #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 { floatingActionButtonElementMemphisStyle } from './Themes/FloatingActionButtonElement.Memphis';
import { Themeable } from '../../../Behaviors/Themeable';
import { Iconable } from '../../../Behaviors/Iconable';
// #endregion
/**
 * FloatingActionButton - A prominent circular button designed for primary actions with elevated visual prominence.
 *
 * Creates a distinctive, floating circular button optimized for triggering the most important action
 * on a screen. Features elevated styling, ripple effects, and optional labeling to draw user attention
 * to critical functionality like creating content, composing messages, or initiating workflows.
 *
 * @name FloatingActionButtonElement
 * @element mosaik-fab
 * @category Buttons
 *
 * @slot icon - Icon content area for the primary visual indicator
 * @slot label - Optional text label for extended floating action buttons
 * @slot overlay - Overlay content area for badges, notifications, or status indicators
 *
 * @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 - Text label styling container
 * @csspart progressRing - Loading state progress indicator
 * @csspart elevation - Shadow and elevation styling container
 *
 * @cssprop --fab-font-family - Font family for button text and label
 * @cssprop --fab-font-size - Font size for button text
 * @cssprop --fab-font-line-height - Line height for button text
 * @cssprop --fab-font-weight - Font weight for button text
 * @cssprop --fab-font-letter-spacing - Letter spacing for button text
 * @cssprop --fab-font-text-decoration - Text decoration for button text
 * @cssprop --fab-font-text-transform - Text transform for button text
 * @cssprop --fab-padding-top - Top padding for button content
 * @cssprop --fab-padding-right - Right padding for button content
 * @cssprop --fab-padding-bottom - Bottom padding for button content
 * @cssprop --fab-padding-left - Left padding for button content
 * @cssprop --fab-gap - Gap between icon and label elements
 * @cssprop --fab-elevation - Elevation shadow level for the button
 * @cssprop --fab-background-color - Background color for the button
 * @cssprop --fab-border-radius - Border radius for circular styling
 *
 * @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 icon and label
 * @dependency IconElement - For displaying primary action icons
 * @dependency ElevationElement - For creating elevated shadow effects
 * @dependency FocusRingElement - For accessibility focus indicators
 * @dependency TextElement - For optional text labels
 * @dependency ProgressRingElement - For loading state visualization
 *
 * @example
 * ```html
 * <!-- Primary action FAB -->
 * <mosaik-fab onclick="createNew()">
 *   <mosaik-icon slot="icon" data="plus"></mosaik-icon>
 * </mosaik-fab>
 *
 * <!-- FAB with label (extended) -->
 * <mosaik-fab appearance="primary">
 *   <mosaik-icon slot="icon" data="edit"></mosaik-icon>
 *   <mosaik-text slot="label">Compose</mosaik-text>
 * </mosaik-fab>
 *
 * <!-- FAB with notification badge -->
 * <mosaik-fab>
 *   <mosaik-icon slot="icon" data="message-circle"></mosaik-icon>
 *   <mosaik-badge slot="overlay" value="3"></mosaik-badge>
 * </mosaik-fab>
 *
 * <!-- Loading state FAB -->
 * <mosaik-fab busy="true">
 *   <mosaik-icon slot="icon" data="upload"></mosaik-icon>
 * </mosaik-fab>
 *
 * <!-- Secondary action FAB -->
 * <mosaik-fab appearance="soft" size="small">
 *   <mosaik-icon slot="icon" data="heart"></mosaik-icon>
 * </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,
            memphis: floatingActionButtonElementMemphisStyle,
            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