// #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 { Disableable } from '../../Behaviors/Disableable';
import { Labelable } from '../../Behaviors/Labelable';
import { Attribute } from '../../Decorators/AttributeDecorator';
import { Component } from '../../Decorators/ComponentDecorator';
import { Property } from '../../Decorators/PropertyDecorator';
import { CustomElement } from '../Abstracts/CustomElement';
import { TextElement } from '../Primitives/Text/TextElement';
import { cellElementTemplate } from './CellElementTemplate';
import { cellElementJoyStyle } from './Themes/CellElement.Joy';
import { cellElementRetroStyle } from './Themes/CellElement.Retro';
import { cellElementCosmopolitanStyle } from './Themes/CellElement.Cosmopolitan';
// #endregion
/**
 * Cell - A flexible content container component optimized for structured data presentation in grids, lists, and tables.
 *
 * Provides a structured content cell with support for primary labels, secondary descriptions, and flexible
 * content areas. Designed for consistent data presentation across various layout patterns including
 * list items, table cells, grid components, and card content organization.
 *
 * @name CellElement
 * @element mosaik-cell
 * @category Cells
 *
 * @slot start - Leading content area for icons, avatars, thumbnails, or visual indicators
 * @slot label - Primary content area for main text, titles, or primary information
 * @slot subLabel - Secondary content area for descriptions, metadata, or supplementary text
 * @slot end - Trailing content area for actions, status indicators, or secondary controls
 *
 * @csspart root - Root container wrapping the entire cell content and layout
 * @csspart text - Text content wrapper for typography and text styling
 * @csspart label - Primary label content styling container
 * @csspart subLabel - Secondary label content styling container
 * @csspart start - Leading content area styling container
 * @csspart end - Trailing content area styling container
 *
 * @cssprop --cell-padding-top - Top padding for cell content spacing
 * @cssprop --cell-padding-right - Right padding for cell content spacing
 * @cssprop --cell-padding-bottom - Bottom padding for cell content spacing
 * @cssprop --cell-padding-left - Left padding for cell content spacing
 * @cssprop --cell-gap - Gap between cell content elements
 * @cssprop --cell-font-family - Font family for primary cell text
 * @cssprop --cell-font-size - Font size for primary cell text
 * @cssprop --cell-font-line-height - Line height for primary cell text
 * @cssprop --cell-font-weight - Font weight for primary cell text
 * @cssprop --cell-font-letter-spacing - Letter spacing for primary cell text
 * @cssprop --cell-font-text-decoration - Text decoration for primary cell text
 * @cssprop --cell-font-text-transform - Text transform for primary cell text
 * @cssprop --cell-sub-font-family - Font family for secondary cell text
 * @cssprop --cell-sub-font-size - Font size for secondary cell text
 * @cssprop --cell-sub-font-line-height - Line height for secondary cell text
 * @cssprop --cell-sub-font-weight - Font weight for secondary cell text
 * @cssprop --cell-sub-font-letter-spacing - Letter spacing for secondary cell text
 * @cssprop --cell-sub-font-text-decoration - Text decoration for secondary cell text
 * @cssprop --cell-sub-font-text-transform - Text transform for secondary cell text
 *
 * @dependency TextElement - For rendering primary and secondary text content
 *
 * @example
 * ```html
 * <!-- Contact list cell -->
 * <mosaik-cell>
 *   <mosaik-avatar slot="start" src="contact.jpg"></mosaik-avatar>
 *   <mosaik-text slot="label">John Smith</mosaik-text>
 *   <mosaik-text slot="subLabel">john.smith@company.com</mosaik-text>
 *   <mosaik-button slot="end" appearance="ghost">
 *     <mosaik-icon data="phone"></mosaik-icon>
 *   </mosaik-button>
 * </mosaik-cell>
 *
 * <!-- Product information cell -->
 * <mosaik-cell>
 *   <img slot="start" src="product-thumb.jpg" alt="Product" />
 *   <mosaik-text slot="label">Premium Headphones</mosaik-text>
 *   <mosaik-text slot="subLabel">High-quality audio experience</mosaik-text>
 *   <mosaik-text slot="end">$299.99</mosaik-text>
 * </mosaik-cell>
 *
 * <!-- Settings option cell -->
 * <mosaik-cell>
 *   <mosaik-icon slot="start" data="shield-check"></mosaik-icon>
 *   <mosaik-text slot="label">Privacy & Security</mosaik-text>
 *   <mosaik-text slot="subLabel">Manage your privacy settings</mosaik-text>
 *   <mosaik-icon slot="end" data="chevron-right"></mosaik-icon>
 * </mosaik-cell>
 *
 * <!-- Notification cell -->
 * <mosaik-cell>
 *   <mosaik-icon slot="start" data="bell" style="color: var(--primary-color);"></mosaik-icon>
 *   <mosaik-text slot="label">New Message Received</mosaik-text>
 *   <mosaik-text slot="subLabel">2 minutes ago</mosaik-text>
 *   <mosaik-badge slot="end" value="1"></mosaik-badge>
 * </mosaik-cell>
 *
 * <!-- Simple text cell -->
 * <mosaik-cell>
 *   <mosaik-text slot="label">Dashboard</mosaik-text>
 * </mosaik-cell>
 * ```
 *
 * @public
 */
let CellElement = class CellElement extends Themeable(Labelable(Disableable(CustomElement))) {
    // #region Fields
    _isNavigation;
    _subLabel;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._isNavigation = false;
        this._subLabel = '';
    }
    // #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';
    }
    /**
     * Gets or sets the `isNavigation` property.
     *
     * @public
     * @attr
     */
    get isNavigation() {
        return this._isNavigation;
    }
    set isNavigation(value) {
        if (this._isNavigation !== value) {
            this._isNavigation = value;
            this.requestUpdate('isNavigation');
        }
    }
    /**
     * Gets or sets the `subLabel` property.
     *
     * @public
     */
    get subLabel() {
        return this._subLabel;
    }
    set subLabel(value) {
        if (this._subLabel !== value) {
            this._subLabel = value;
            this.requestUpdate('subLabel');
        }
    }
};
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], CellElement.prototype, "isNavigation", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CellElement.prototype, "subLabel", null);
CellElement = __decorate([
    Component({
        selector: 'mosaik-cell',
        template: cellElementTemplate,
        themes: {
            joy: cellElementJoyStyle,
            retro: cellElementRetroStyle,
            cosmopolitan: cellElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CellElement);
export { CellElement };
//# sourceMappingURL=CellElement.js.map