// #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 { cellGroupElementRetroStyle } from './Themes/CellGroupElement.Retro';
import { cellGroupElementCosmopolitanStyle } from './Themes/CellGroupElement.Cosmopolitan';
// #endregion
/**
 * Cell Group - A container element for grouping related cells.
 *
 * @description
 * The `Cell Group` component serves as a container for organizing related cell components into a cohesive group. It provides options for headers and customizable styles, making it suitable for structured layouts in lists, tables, or forms.
 *
 * @name Cell Group
 * @element mosaik-cell-group
 * @category Layout
 *
 * @slot header - Slot for the group header.
 * @slot - Slot for the default content, typically cells.
 *
 * @csspart header - The header part of the cell group.
 * @csspart root - The root container of the cell group.
 *
 * @cssprop {unknown} --cell-group-border-color
 * @cssprop {unknown} --cell-group-border-radius
 * @cssprop {unknown} --cell-group-border-width
 *
 * @dependency {TextElement} - The Text element.
 *
 * @example
 * ```html
 * <mosaik-cell-group>
 *   <mosaik-cell>Cell 1</mosaik-cell>
 *   <mosaik-cell>Cell 2</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,
            retro: cellGroupElementRetroStyle,
            cosmopolitan: cellGroupElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CellGroupElement);
export { CellGroupElement };
//# sourceMappingURL=CellGroupElement.js.map