import { Component, h, Host, Prop } from '@stencil/core';
export class DvnTableHeaderCell {
  render() {
    const { weight, width } = this;
    const style = {};
    if (weight) {
      style['--cell-weight'] = weight;
      style['--cell-width'] = `0px`;
    }
    else {
      style['--cell-weight'] = `0 0 ${width}px`;
      style['--cell-width'] = `${width}px`;
    }
    return (h(Host, { style: style },
      h("slot", null)));
  }
  static get is() { return "dvn-table-header-cell"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-table-header-cell.css"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-table-header-cell.css"]
  }; }
  static get properties() { return {
    "weight": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "weight",
      "reflect": false
    },
    "width": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false
    }
  }; }
}
