// #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 { Disableable } from '../../../../Behaviors/Disableable';
import { TextFormattable } from '../../../../Behaviors/TextFormattable';
import { TextOverflowable } from '../../../../Behaviors/TextOverflowable';
import { Attribute } from '../../../../Decorators/AttributeDecorator';
import { CustomElement } from '../../../Abstracts/CustomElement';
// #endregion
/**
 * Table Cell Base Element - The foundational base class for all table cell components.
 *
 * @description
 * TableCellBaseElement provides the core functionality and behavior patterns for all table cell
 * components in the Mosaik design system. It manages the text content property and applies
 * text formatting and overflow behaviors. Header, body, and footer cell variants extend this
 * base class to inherit consistent text display behavior.
 *
 * @public
 *
 * @remarks
 * This class applies the TextOverflowable, TextFormattable, and Disableable behavior mixins.
 * Concrete subclasses add Themeable and any section-specific behaviors (e.g., Selectable for
 * body cells, sortable for header cells).
 * @abstract
 */
export class TableCellBaseElement extends Disableable(TextFormattable(TextOverflowable(CustomElement))) {
    // #region Fields
    _text;
    _columnHidden;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._columnHidden = false;
    }
    // #endregion
    // #region Properties
    /**
     * Gets or sets the `text` property.
     *
     * @public
     * @attr
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
    /**
     * Gets or sets the `columnHidden` property that indicates whether this column is hidden.
     *
     * @public
     * @attr
     */
    get columnHidden() {
        return this._columnHidden;
    }
    set columnHidden(value) {
        if (this._columnHidden !== value) {
            this._columnHidden = value;
            this.requestUpdate('columnHidden');
        }
    }
}
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], TableCellBaseElement.prototype, "text", null);
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], TableCellBaseElement.prototype, "columnHidden", null);
//# sourceMappingURL=TableCellBaseElement.js.map