'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-305226cb.js');

const bsChartTableCss = ":host{border:0;clip:rect(0 0 0 0);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";

const BsChartTable = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.data = undefined;
    this.dataIdxLabels = undefined;
    this.tableTitle = '';
  }
  render() {
    var _a, _b, _c;
    return (index.h(index.Host, null, index.h("table", { summary: this.tableTitle }, index.h("thead", null, index.h("tr", null, index.h("th", { colSpan: ((_a = this.dataIdxLabels) === null || _a === void 0 ? void 0 : _a.length) + 1 }, this.tableTitle)), index.h("tr", null, index.h("th", { scope: "col" }, "Dataset"), (_b = this.dataIdxLabels) === null || _b === void 0 ? void 0 :
      _b.map(idxLabel => (index.h("th", { scope: "col" }, idxLabel))))), index.h("tbody", null, (_c = this.data) === null || _c === void 0 ? void 0 : _c.map(dataset => (index.h("tr", null, index.h("th", { scope: "row" }, dataset.label), dataset.data.map(d => (index.h("td", null, d))))))))));
  }
};
BsChartTable.style = bsChartTableCss;

exports.bs_chart_table = BsChartTable;

//# sourceMappingURL=bs-chart-table.cjs.entry.js.map