import { Host, h } from '@stencil/core';
export class BsChartTable {
  constructor() {
    this.data = undefined;
    this.dataIdxLabels = undefined;
    this.tableTitle = '';
  }
  render() {
    var _a, _b, _c;
    return (h(Host, null, h("table", { summary: this.tableTitle }, h("thead", null, h("tr", null, h("th", { colSpan: ((_a = this.dataIdxLabels) === null || _a === void 0 ? void 0 : _a.length) + 1 }, this.tableTitle)), h("tr", null, h("th", { scope: "col" }, "Dataset"), (_b = this.dataIdxLabels) === null || _b === void 0 ? void 0 :
      _b.map(idxLabel => (h("th", { scope: "col" }, idxLabel))))), h("tbody", null, (_c = this.data) === null || _c === void 0 ? void 0 : _c.map(dataset => (h("tr", null, h("th", { scope: "row" }, dataset.label), dataset.data.map(d => (h("td", null, d))))))))));
  }
  static get is() { return "bs-chart-table"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() {
    return {
      "$": ["bs-chart-table.scss"]
    };
  }
  static get styleUrls() {
    return {
      "$": ["bs-chart-table.css"]
    };
  }
  static get properties() {
    return {
      "data": {
        "type": "unknown",
        "mutable": false,
        "complexType": {
          "original": "ChartData[]",
          "resolved": "ChartData[]",
          "references": {
            "ChartData": {
              "location": "import",
              "path": "../../types/propTypes"
            }
          }
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        }
      },
      "dataIdxLabels": {
        "type": "unknown",
        "mutable": false,
        "complexType": {
          "original": "string[]",
          "resolved": "string[]",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        }
      },
      "tableTitle": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "table-title",
        "reflect": false,
        "defaultValue": "''"
      }
    };
  }
}
//# sourceMappingURL=bs-chart-table.js.map
