import{r as e,c as o,h as c,H as a}from"./p-CjTHbolG.js";const r=()=>`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}`;const l=class{constructor(c){e(this,c);this.colHeaderClick=o(this,"colHeaderClick");this.rowClick=o(this,"rowClick");this.columns=[];this.data=[]}render(){return c(a,{key:"c893bf01d55e2c71e2b35c6627168510cfe3b10d",class:"table-wrapper"},c("table",{key:"f8ce9f4a94f6324b847d5fb6bc3baf0fbdc267f8",class:"table"},c("thead",{key:"aceb31d47b701c7eaac0ee1ecd2890a8f6eac62c"},c("tr",{key:"cb02345ee1c473e860ebd06ec333cddc0515f201",class:"row header-row"},this.columns.map(((e,o)=>c("th",{class:`col header-col col-${o} col-${e.id}`,onClick:()=>{var o;return(o=this.colHeaderClick)===null||o===void 0?void 0:o.emit({col:e})},innerHTML:e.renderHeader?e.renderHeader(e):e.header||e.id}))))),c("tbody",{key:"03570505e1a4d4c942c7391b183ddf0f8e6903f9"},this.data.map((e=>c("tr",{class:"row data-row",onClick:()=>{var o;return(o=this.rowClick)===null||o===void 0?void 0:o.emit({row:e})}},this.columns.map(((o,a)=>o.renderCell?c("td",{class:`col data-col col-${a} col-${o.id}`,innerHTML:o.renderCell(o,e)}):c("td",{class:`col data-col col-${a} col-${o.id}`},e[o.id])))))))))}};l.style=r();export{l as verdocs_table};
//# sourceMappingURL=p-aa6d4398.entry.js.map