// #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 { Component } from '../../Decorators/ComponentDecorator';
import { Property } from '../../Decorators/PropertyDecorator';
import { CustomElement } from '../Abstracts/CustomElement';
import { TextElement } from '../Primitives/Text/TextElement';
import { cellGroupElementTemplate } from './CellGroupElementTemplate';
import { cellGroupElementJoyStyle } from './Themes/CellGroupElement.Joy';
import { cellGroupElementMemphisStyle } from './Themes/CellGroupElement.Memphis';
import { cellGroupElementCosmopolitanStyle } from './Themes/CellGroupElement.Cosmopolitan';
// #endregion
/**
 * CellGroup - A logical container component for organizing related cells into cohesive sections with optional headers.
 *
 * Groups multiple cell components together with consistent styling, optional section headers, and
 * semantic organization for improved content structure. Ideal for creating organized lists,
 * settings panels, form sections, and grouped data presentations.
 *
 * @name CellGroupElement
 * @element mosaik-cell-group
 * @category Cells
 *
 * @slot header - Header content area for group titles, descriptions, or section labels
 * @slot - Default content area for cell components and related content
 *
 * @csspart header - Header section styling container for group titles
 * @csspart root - Root container wrapping the entire cell group structure
 * @csspart content - Content area containing the grouped cells
 *
 * @cssprop --cell-group-border-color - Border color for the group container
 * @cssprop --cell-group-border-radius - Border radius for group container styling
 * @cssprop --cell-group-border-width - Border width for group container outline
 * @cssprop --cell-group-background - Background color for the group container
 * @cssprop --cell-group-padding - Internal padding for group content
 * @cssprop --cell-group-margin - External margin for group spacing
 * @cssprop --cell-group-header-padding - Padding for the header section
 * @cssprop --cell-group-header-font-size - Font size for header text
 * @cssprop --cell-group-header-font-weight - Font weight for header text
 *
 * @dependency TextElement - For rendering header and label text content
 *
 * @example
 * ```html
 * <!-- Settings group with header -->
 * <mosaik-cell-group>
 *   <mosaik-text slot="header" variant="headline">Account Settings</mosaik-text>
 *   <mosaik-cell>
 *     <mosaik-icon slot="start" data="user"></mosaik-icon>
 *     <mosaik-text slot="label">Profile Information</mosaik-text>
 *     <mosaik-icon slot="end" data="chevron-right"></mosaik-icon>
 *   </mosaik-cell>
 *   <mosaik-cell>
 *     <mosaik-icon slot="start" data="key"></mosaik-icon>
 *     <mosaik-text slot="label">Change Password</mosaik-text>
 *     <mosaik-icon slot="end" data="chevron-right"></mosaik-icon>
 *   </mosaik-cell>
 * </mosaik-cell-group>
 *
 * <!-- Contact group -->
 * <mosaik-cell-group>
 *   <mosaik-text slot="header" variant="subtitle">Favorites</mosaik-text>
 *   <mosaik-cell>
 *     <mosaik-avatar slot="start" src="john.jpg"></mosaik-avatar>
 *     <mosaik-text slot="label">John Smith</mosaik-text>
 *     <mosaik-text slot="subLabel">Online</mosaik-text>
 *   </mosaik-cell>
 *   <mosaik-cell>
 *     <mosaik-avatar slot="start" src="jane.jpg"></mosaik-avatar>
 *     <mosaik-text slot="label">Jane Doe</mosaik-text>
 *     <mosaik-text slot="subLabel">Away</mosaik-text>
 *   </mosaik-cell>
 * </mosaik-cell-group>
 *
 * <!-- Menu group -->
 * <mosaik-cell-group>
 *   <mosaik-text slot="header">Navigation</mosaik-text>
 *   <mosaik-cell>
 *     <mosaik-icon slot="start" data="home"></mosaik-icon>
 *     <mosaik-text slot="label">Dashboard</mosaik-text>
 *   </mosaik-cell>
 *   <mosaik-cell>
 *     <mosaik-icon slot="start" data="chart-bar"></mosaik-icon>
 *     <mosaik-text slot="label">Analytics</mosaik-text>
 *     <mosaik-badge slot="end" value="New"></mosaik-badge>
 *   </mosaik-cell>
 *   <mosaik-cell>
 *     <mosaik-icon slot="start" data="cog"></mosaik-icon>
 *     <mosaik-text slot="label">Settings</mosaik-text>
 *   </mosaik-cell>
 * </mosaik-cell-group>
 *
 * <!-- Simple grouped content -->
 * <mosaik-cell-group>
 *   <mosaik-cell>
 *     <mosaik-text slot="label">General Information</mosaik-text>
 *   </mosaik-cell>
 *   <mosaik-cell>
 *     <mosaik-text slot="label">Privacy Settings</mosaik-text>
 *   </mosaik-cell>
 * </mosaik-cell-group>
 * ```
 *
 * @public
 */
let CellGroupElement = class CellGroupElement extends Themeable(CustomElement) {
    // #region Fields
    _header;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._header = '';
    }
    // #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-cell-group';
    }
    /**
     * 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');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CellGroupElement.prototype, "header", null);
CellGroupElement = __decorate([
    Component({
        selector: 'mosaik-cell-group',
        template: cellGroupElementTemplate,
        themes: {
            joy: cellGroupElementJoyStyle,
            memphis: cellGroupElementMemphisStyle,
            cosmopolitan: cellGroupElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CellGroupElement);
export { CellGroupElement };
//# sourceMappingURL=CellGroupElement.js.map