// #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 component representing a single cell in a grid or table layout.
 *
 * @description
 * The Cell component is designed to be used as a single cell within a grid or table. It provides styling and
 * layout capabilities for individual cells, allowing for padding and spacing customization. This component is useful
 * for building structured layouts where cells need to be uniformly styled and spaced.
 *
 * @name Cell
 * @element mosaik-cell
 * @category Layout
 *
 * @csspart root - The root part of the Cell that wraps the entire cell content.
 * @csspart text - The part of the Cell that contains the text content.
 * @csspart label - The part of the Cell that contains the primary label content.
 * @csspart subLabel - The part of the Cell that contains the sub label content.
 *
 * @cssprop {unknown} --cell-padding-top - The padding at the top of the cell.
 * @cssprop {unknown} --cell-padding-right - The padding on the right side of the cell.
 * @cssprop {unknown} --cell-padding-bottom - The padding at the bottom of the cell.
 * @cssprop {unknown} --cell-padding-left - The padding on the left side of the cell.
 * @cssprop {unknown} --cell-gap - The gap between cells.
 * @cssprop {unknown} --cell-font-family
 * @cssprop {unknown} --cell-font-size
 * @cssprop {unknown} --cell-font-line-height
 * @cssprop {unknown} --cell-font-weight
 * @cssprop {unknown} --cell-font-letter-spacing
 * @cssprop {unknown} --cell-font-text-decoration
 * @cssprop {unknown} --cell-font-text-transform
 * @cssprop {unknown} --cell-sub-font-family
 * @cssprop {unknown} --cell-sub-font-size
 * @cssprop {unknown} --cell-sub-font-line-height
 * @cssprop {unknown} --cell-sub-font-weight
 * @cssprop {unknown} --cell-sub-font-letter-spacing
 * @cssprop {unknown} --cell-sub-font-text-decoration
 * @cssprop {unknown} --cell-sub-font-text-transform
 *
 * @dependency {TextElement} - The Text element used within the cell for displaying text content.
 *
 * @slot start - Slot for content to be displayed at the start of the cell.
 * @slot label - Slot for the primary label content of the cell.
 * @slot subLabel - Slot for additional label content or description.
 * @slot end - Slot for content to be displayed at the end of the cell.
 *
 * @example
 * ```html
 * <mosaik-cell>
 *   <span slot="start">Start Content</span>
 *   <span slot="label">Primary Label</span>
 *   <span slot="subLabel">Sub Label</span>
 *   <span slot="end">End Content</span>
 * </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