import{r as registerInstance,h,H as Host,g as getElement}from"./index-4a3a9179.js";var pdsTableHeadCss=":host{--background-fixed:var(--pine-color-base-white);--border:var(--pine-border-default);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host pds-table-checkbox-cell{-webkit-border-after:var(--border);border-block-end:var(--border)}";var PdsTableHeadStyle0=pdsTableHeadCss;var PdsTableHead=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){var e=this.hostElement.querySelector("pds-table-head-cell:first-child");e===null||e===void 0?void 0:e.classList.add("is-fixed")}};e.prototype.render=function(){return h(Host,{key:"63d7450f27eaec26afc0724f7498cd3197ccc6f3",role:"row"},this.tableRef&&this.tableRef.selectable&&h("pds-table-head-cell",{part:this.tableRef.fixedColumn?"checkbox-cell":""}),h("slot",{key:"29ccb7483aea5efc5aa6f24e9dded5bb812748e2"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PdsTableHead.style=PdsTableHeadStyle0;export{PdsTableHead as pds_table_head};
//# sourceMappingURL=pds-table-head.entry.js.map