import{p as e,H as c,c as t,h as o,d as a,t as s}from"./p-yZBlG3YQ.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=e(class e extends c{constructor(e){super();if(e!==false){this.__registerHost()}this.colHeaderClick=t(this,"colHeaderClick");this.rowClick=t(this,"rowClick");this.columns=[];this.data=[]}render(){return o(a,{key:"c893bf01d55e2c71e2b35c6627168510cfe3b10d",class:"table-wrapper"},o("table",{key:"f8ce9f4a94f6324b847d5fb6bc3baf0fbdc267f8",class:"table"},o("thead",{key:"aceb31d47b701c7eaac0ee1ecd2890a8f6eac62c"},o("tr",{key:"cb02345ee1c473e860ebd06ec333cddc0515f201",class:"row header-row"},this.columns.map(((e,c)=>o("th",{class:`col header-col col-${c} col-${e.id}`,onClick:()=>{var c;return(c=this.colHeaderClick)===null||c===void 0?void 0:c.emit({col:e})},innerHTML:e.renderHeader?e.renderHeader(e):e.header||e.id}))))),o("tbody",{key:"03570505e1a4d4c942c7391b183ddf0f8e6903f9"},this.data.map((e=>o("tr",{class:"row data-row",onClick:()=>{var c;return(c=this.rowClick)===null||c===void 0?void 0:c.emit({row:e})}},this.columns.map(((c,t)=>c.renderCell?o("td",{class:`col data-col col-${t} col-${c.id}`,innerHTML:c.renderCell(c,e)}):o("td",{class:`col data-col col-${t} col-${c.id}`},e[c.id])))))))))}static get style(){return r()}},[0,"verdocs-table",{columns:[16],data:[16]}]);function d(){if(typeof customElements==="undefined"){return}const e=["verdocs-table"];e.forEach((e=>{switch(e){case"verdocs-table":if(!customElements.get(s(e))){customElements.define(s(e),l)}break}}))}const i=l;const n=d;export{i as VerdocsTable,n as defineCustomElement};
//# sourceMappingURL=verdocs-table.js.map