import { r as registerInstance, h, e as Host, g as getElement } from './index-c8b17ddb.js';

const tableCellCss = ".sc-bds-table-cell-h{display:table-cell;padding:0 8px;font-family:\"Nunito Sans\", \"Carbona\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:14px;vertical-align:middle}.cell.sc-bds-table-cell{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:48px;margin:8px 0;color:var(--color-content-default, #454545);font-family:\"Nunito Sans\", \"Carbona\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.dense-cell.sc-bds-table-cell{margin:0}.cell-custom.sc-bds-table-cell{gap:8px}.cell-action.sc-bds-table-cell{-ms-flex-direction:row;flex-direction:row;gap:8px}.sc-bds-table-cell-h:first-child{padding-left:16px}.sc-bds-table-cell-h:last-child{padding-right:16px}";

const TableCell = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.isDense = false;
        this.type = 'text';
        this.sortable = false;
    }
    renderContent() {
        return this.type === 'custom' ? (h("div", { class: "cell cell-custom dense-cell" }, h("slot", null))) : this.type === 'text' ? (h("div", { class: "cell dense-cell" }, h("bds-typo", { variant: "fs-14", bold: this.sortable ? 'bold' : 'regular' }, h("slot", null)))) : this.type === 'action' ? (h("div", { class: "cell cell-action dense-cell" }, h("slot", null))) : this.type === 'collapse' ? (h("td", { colSpan: 2, class: "cell cell-action dense-cell" }, h("slot", null))) : (h("slot", null));
    }
    componentWillLoad() {
        const bdsTable = this.element.closest('bds-table');
        if (bdsTable && bdsTable.getAttribute('dense-table') === 'true') {
            this.isDense = true;
        }
    }
    render() {
        return h(Host, { key: 'f7884f52cde67a437886de926bcdfcb2e9e401bc' }, this.renderContent());
    }
    get element() { return getElement(this); }
};
TableCell.style = tableCellCss;

export { TableCell as bds_table_cell };

//# sourceMappingURL=bds-table-cell.entry.js.map