// #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;
};
import { Themeable } from '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { dropdownPanelElementTemplate } from './DropdownPanelElementTemplate';
import { dropdownPanelElementCosmopolitanStyle } from './Themes/DropdownPanelElement.Cosmopolitan';
import { dropdownPanelElementJoyStyle } from './Themes/DropdownPanelElement.Joy';
import { dropdownPanelElementMemphisStyle } from './Themes/DropdownPanelElement.Memphis';
// #endregion
/**
 * Dropdown Panel - A declarative alias element that projects its children into the panel area of a Dropdown.
 *
 * @description
 * DropdownPanel is a convenience wrapper that automatically assigns itself to the panel slot
 * of a parent Dropdown. It does not own any dropdown behavior, positioning, open state, or
 * animation orchestration. Its only responsibility is to project its children into the correct slot.
 *
 * @name Dropdown Panel
 * @element mosaik-dropdown-panel
 * @category Primitives
 *
 * @slot - The default slot for panel content.
 *
 * @example
 * ```html
 * <mosaik-dropdown placement="bottom-start">
 *   <mosaik-dropdown-anchor>
 *     <mosaik-button>Actions</mosaik-button>
 *   </mosaik-dropdown-anchor>
 *   <mosaik-dropdown-panel>
 *     <mosaik-menu>
 *       <mosaik-menu-item label="Edit"></mosaik-menu-item>
 *       <mosaik-menu-item label="Delete"></mosaik-menu-item>
 *     </mosaik-menu>
 *   </mosaik-dropdown-panel>
 * </mosaik-dropdown>
 * ```
 *
 * @public
 */
let DropdownPanelElement = class DropdownPanelElement extends Themeable(CustomElement) {
    // #region Methods
    /**
     * @public
     * @override
     */
    connectedCallback() {
        if (!this.hasAttribute('slot')) {
            this.setAttribute('slot', 'panel');
        }
        super.connectedCallback();
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-dropdown-panel';
    }
};
DropdownPanelElement = __decorate([
    Component({
        selector: 'mosaik-dropdown-panel',
        template: dropdownPanelElementTemplate,
        themes: {
            joy: dropdownPanelElementJoyStyle,
            memphis: dropdownPanelElementMemphisStyle,
            cosmopolitan: dropdownPanelElementCosmopolitanStyle
        },
        host: {
            slot: 'panel'
        },
        options: {
            mode: 'open'
        }
    })
], DropdownPanelElement);
export { DropdownPanelElement };
//# sourceMappingURL=DropdownPanelElement.js.map