// #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 '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../Text/TextElement';
import { summaryElementTemplate } from './SummaryElementTemplate';
import { summaryElementCosmopolitanStyle } from './Themes/SummaryElement.Cosmopolitan';
import { summaryElementJoyStyle } from './Themes/SummaryElement.Joy';
import { summaryElementMemphisStyle } from './Themes/SummaryElement.Memphis';
// #endregion
/**
 * Summary - A semantic container for grouping related information with a header and content.
 *
 * @description
 * The Summary element provides a structured container using HTML fieldset/legend semantics for
 * grouping related form controls or information blocks. Features a prominent header (legend) and
 * flexible content slots for prefix/suffix elements. Ideal for creating labeled sections within
 * forms, settings panels, or information cards. The fieldset structure provides built-in accessibility
 * benefits for screen readers and assistive technologies.
 *
 * @name Summary
 * @element mosaik-summary
 * @category Primitives
 *
 * @slot  - The default slot.
 * @slot - Default slot for additional content below the main container
 * @slot header - Custom header content (overrides header attribute, rendered as legend)
 * @slot prefix - Content positioned before the main content
 * @slot suffix - Content positioned after the main content
 *
 * @csspart container - Container for prefix, content, and suffix
 * @csspart content - The main content text element
 * @csspart header - The legend header element
 * @csspart root - The fieldset root element
 *
 * @cssprop {String} --summary-font-family - The font family CSS custom property.
 * @cssprop {String} --summary-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --summary-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --summary-font-size - The font size CSS custom property.
 * @cssprop {String} --summary-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --summary-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --summary-font-weight - The font weight CSS custom property.
 * @cssprop {String} --summary-gap - Spacing between elements (from gap mixin)
 * @cssprop {String} --summary-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --summary-padding-left - The padding left CSS custom property.
 * @cssprop {String} --summary-padding-right - The padding right CSS custom property.
 * @cssprop {String} --summary-padding-top - The padding top CSS custom property.
 * @cssprop {String} --summary-shadow - The shadow CSS custom property.
 * @cssprop {String} --summary-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --summary-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --summary-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --summary-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --summary-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --summary-transition-duration - The transition duration CSS custom property.
 * @cssprop {String} --summary-transition-mode - The transition mode CSS custom property.
 * @cssprop {String} --summary-transition-property - The transition property CSS custom property.
 * @cssprop {String} --summary-translate - The translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic summary with slotted header and content:
 * ```html
 * <mosaik-summary>
 *   <span slot="header">Personal Information</span>
 *   <div slot="content">Please provide your contact details</div>
 *   <input type="text" placeholder="Name">
 *   <input type="email" placeholder="Email">
 * </mosaik-summary>
 * ```
 *
 * @example
 * Summary with slotted content and prefix/suffix:
 * ```html
 * <mosaik-summary>
 *   <span slot="header">Account Settings</span>
 *   <mosaik-icon slot="prefix" data="settings-icon"></mosaik-icon>
 *   <div slot="content">
 *     <p>Configure your account preferences</p>
 *   </div>
 *   <mosaik-badge slot="suffix" label="3"></mosaik-badge>
 * </mosaik-summary>
 * ```
 *
 * @example
 * Form section grouping:
 * ```html
 * <form>
 *   <mosaik-summary>
 *     <span slot="header">Billing Address</span>
 *     <input type="text" name="street" placeholder="Street">
 *     <input type="text" name="city" placeholder="City">
 *     <input type="text" name="zip" placeholder="ZIP Code">
 *   </mosaik-summary>
 *   <mosaik-summary>
 *     <span slot="header">Payment Method</span>
 *     <select name="payment">
 *       <option>Credit Card</option>
 *       <option>PayPal</option>
 *     </select>
 *   </mosaik-summary>
 * </form>
 * ```
 *
 * @public
 */
let SummaryElement = class SummaryElement extends Themeable(CustomElement) {
    // #region Fields
    _header;
    _content;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._header = '';
        this._content = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-summary';
    }
    /**
     * Gets or sets the `header` property.
     *
     * @public
     */
    get header() {
        return this._header;
    }
    set header(value) {
        if (this._header !== value) {
            this._header = value;
            this.requestUpdate('header');
        }
    }
    /**
     * Gets or sets the `content` property.
     *
     * @public
     */
    get content() {
        return this._content;
    }
    set content(value) {
        if (this._content !== value) {
            this._content = value;
            this.requestUpdate('content');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], SummaryElement.prototype, "header", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], SummaryElement.prototype, "content", null);
SummaryElement = __decorate([
    Component({
        selector: 'mosaik-summary',
        template: summaryElementTemplate,
        themes: {
            joy: summaryElementJoyStyle,
            memphis: summaryElementMemphisStyle,
            cosmopolitan: summaryElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], SummaryElement);
export { SummaryElement };
//# sourceMappingURL=SummaryElement.js.map