import{r as registerInstance,c as createEvent,h,H as Host}from"./index-CjTHbolG.js";var verdocsTableCss=function(){return'verdocs-table{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none;border-collapse:collapse}verdocs-table .row.data-row{border:1px solid #d4d4d8;background-color:#ffffff}verdocs-table .header-col{color:#5c6575;font-weight:600;text-align:left;padding:8px 16px}verdocs-table .data-col{font-weight:400;padding:8px 16px}'};var VerdocsTable=function(){function e(e){registerInstance(this,e);this.colHeaderClick=createEvent(this,"colHeaderClick");this.rowClick=createEvent(this,"rowClick");this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return h(Host,{key:"c893bf01d55e2c71e2b35c6627168510cfe3b10d",class:"table-wrapper"},h("table",{key:"f8ce9f4a94f6324b847d5fb6bc3baf0fbdc267f8",class:"table"},h("thead",{key:"aceb31d47b701c7eaac0ee1ecd2890a8f6eac62c"},h("tr",{key:"cb02345ee1c473e860ebd06ec333cddc0515f201",class:"row header-row"},this.columns.map((function(r,c){return h("th",{class:"col header-col col-".concat(c," col-").concat(r.id),onClick:function(){var c;return(c=e.colHeaderClick)===null||c===void 0?void 0:c.emit({col:r})},innerHTML:r.renderHeader?r.renderHeader(r):r.header||r.id})})))),h("tbody",{key:"03570505e1a4d4c942c7391b183ddf0f8e6903f9"},this.data.map((function(r){return h("tr",{class:"row data-row",onClick:function(){var c;return(c=e.rowClick)===null||c===void 0?void 0:c.emit({row:r})}},e.columns.map((function(e,c){return e.renderCell?h("td",{class:"col data-col col-".concat(c," col-").concat(e.id),innerHTML:e.renderCell(e,r)}):h("td",{class:"col data-col col-".concat(c," col-").concat(e.id)},r[e.id])})))})))))};return e}();VerdocsTable.style=verdocsTableCss();export{VerdocsTable as verdocs_table};
//# sourceMappingURL=verdocs-table.entry.js.map