lituix 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"lui-table.d.ts","sourceRoot":"","sources":["../../src/components/lui-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAM1E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,YAAY,CAAC;AACpB,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;AAChD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC,CAAC;AAC/G,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,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,CAAC,aAAa;IAqErB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,WAAW;IAyEnB,MAAM;CA+CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;QACtB,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
@@ -4250,7 +4250,7 @@
4250
4250
  </div>
4251
4251
  `})}
4252
4252
  </div>
4253
- `};this._virtualKey=e=>this._getRowKey(e.row,e.index)}connectedCallback(){super.connectedCallback(),this._explicitAttrs=new Set(this.getAttributeNames()),this._applyVirtualStyles();let e=typeof window<"u"?window.innerWidth:0;this._responsiveWidth=Math.round(this.getBoundingClientRect().width||e||0),this._responsiveResizeObserver=new ResizeObserver(t=>{let i=t[0],n=typeof window<"u"?window.innerWidth:0,a=Math.round(i?.contentRect.width||this.getBoundingClientRect().width||n||0);a>0&&a!==this._responsiveWidth&&(this._responsiveWidth=a)}),this._responsiveResizeObserver.observe(this)}disconnectedCallback(){this._endColumnResize(),this._endColumnReorder(),this._removeColumnDragGhost(),this._teardownColumnInteractions(),this._clearRowAnimationTimers(),this._scrollRaf&&cancelAnimationFrame(this._scrollRaf),this._gutterRaf&&cancelAnimationFrame(this._gutterRaf),this._resizeRaf&&cancelAnimationFrame(this._resizeRaf),this._columnInteractRaf&&cancelAnimationFrame(this._columnInteractRaf),this._responsiveResizeObserver?.disconnect(),this._responsiveResizeObserver=void 0,this._scrollRaf=0,this._gutterRaf=0,this._resizeRaf=0,this._columnInteractRaf=0,super.disconnectedCallback()}willUpdate(e){e.has("selectedRowKeys")&&(this._internalSelectedRowKeys=[...this.selectedRowKeys??[]]),(e.has("data")||e.has("dataSource")||e.has("source"))&&this._prepareRowAnimations();let t=se(this,"table");!this._explicitAttrs.has("size")&&typeof t.size=="string"&&this.size!==t.size&&(this.size=t.size),!this._explicitAttrs.has("bordered")&&typeof t.bordered=="boolean"&&this.bordered!==t.bordered&&(this.bordered=t.bordered),!this._explicitAttrs.has("border")&&typeof t.border=="boolean"&&this.border!==t.border&&(this.border=t.border),!this._explicitAttrs.has("noborder")&&typeof t.noBorder=="boolean"&&this.noBorder!==t.noBorder&&(this.noBorder=t.noBorder),!this._explicitAttrs.has("striped")&&typeof t.striped=="boolean"&&this.striped!==t.striped&&(this.striped=t.striped),!this._explicitAttrs.has("hoverable")&&typeof t.hoverable=="boolean"&&this.hoverable!==t.hoverable&&(this.hoverable=t.hoverable),!this._explicitAttrs.has("column-resizable")&&typeof t.columnResizable=="boolean"&&this.columnResizable!==t.columnResizable&&(this.columnResizable=t.columnResizable),!this._explicitAttrs.has("column-reorderable")&&typeof t.columnReorderable=="boolean"&&this.columnReorderable!==t.columnReorderable&&(this.columnReorderable=t.columnReorderable),!this._explicitAttrs.has("selection")&&typeof t.selection=="string"&&this.selection!==t.selection&&(this.selection=t.selection),!this._explicitAttrs.has("select-on-click")&&typeof t.selectOnClick=="boolean"&&this.selectOnClick!==t.selectOnClick&&(this.selectOnClick=t.selectOnClick),!this._explicitAttrs.has("pagination")&&typeof t.pagination=="boolean"&&this.pagination!==t.pagination&&(this.pagination=t.pagination),!this._explicitAttrs.has("virtual")&&typeof t.virtual=="boolean"&&this.virtual!==t.virtual&&(this.virtual=t.virtual),!this._explicitAttrs.has("row-animation")&&typeof t.rowAnimation=="string"&&this.rowAnimation!==t.rowAnimation&&(this.rowAnimation=t.rowAnimation),!this._explicitAttrs.has("virtual-height")&&(typeof t.virtualHeight=="number"||typeof t.virtualHeight=="string")&&this.virtualHeight!==t.virtualHeight&&(this.virtualHeight=t.virtualHeight),!this._explicitAttrs.has("row-height")&&typeof t.rowHeight=="number"&&this.rowHeight!==t.rowHeight&&(this.rowHeight=t.rowHeight)}updated(e){(e.has("virtual")||e.has("virtualHeight")||e.has("rowHeight"))&&this._applyVirtualStyles(),this.virtual?(this._scheduleVirtualScrollbarGutter(),this._syncHorizontalScrollVars()):(this.style.setProperty("--lui-table-scrollbar-width","0px"),this.style.setProperty("--lui-table-scroll-left","0px"),this.style.setProperty("--lui-table-scroll-overflow","0px")),(e.has("data")||e.has("dataSource")||e.has("source")||e.has("pagination")||e.has("current")||e.has("pageSize"))&&(this._scrollTop=0,this._virtualStart=0,this._lastRangeKey="",this._scrollEl&&(this._scrollEl.scrollTop=0)),this._scheduleColumnInteractions()}_applyVirtualStyles(){let e=this._resolvedVirtualHeight(),t=this.showHeader?this._resolvedRowHeight():0;this.style.setProperty("--lui-table-virtual-height",Xo(this.virtualHeight)||"360px"),this.style.setProperty("--lui-table-virtual-body-height",`${Math.max(80,e-t)}px`),typeof this.rowHeight=="number"&&Number.isFinite(this.rowHeight)&&this.style.setProperty("--lui-table-row-height",`${Math.max(24,this.rowHeight)}px`)}_scheduleVirtualScrollbarGutter(){this._gutterRaf||(this._gutterRaf=requestAnimationFrame(()=>{this._gutterRaf=0;let e=this._virtualizerEl,t=e?Math.max(0,e.offsetWidth-e.clientWidth):0;this.style.setProperty("--lui-table-scrollbar-width",`${t}px`)}))}_syncHorizontalScrollVars(e=this._scrollEl){if(!e)return;let t=Math.max(0,e.scrollLeft||0),i=Math.max(0,e.scrollWidth-e.clientWidth);this.style.setProperty("--lui-table-scroll-left",`${t}px`),this.style.setProperty("--lui-table-scroll-overflow",`${i}px`)}_rows(){return this.dataSource??this.source??this.data??[]}_columns(){return this.columns?.length?this.columns:(this._slottedColumns??[]).map(e=>e.toColumn())}_orderedColumns(e){if(!this._columnOrderKeys.length)return e;let t=e.map((s,u)=>({column:s,key:this._columnKey(s,u)})),i=new Map(t.map(s=>[s.key,s.column])),n=new Set,a=[];for(let s of this._columnOrderKeys){let u=i.get(s);!u||n.has(s)||(a.push(u),n.add(s))}for(let s of t)n.has(s.key)||a.push(s.column);return a}_currentBreakpoint(){let e=typeof window<"u"?window.innerWidth:0;return Lg(this._responsiveWidth||Math.round(this.getBoundingClientRect().width||e||0))}_responsiveColumns(e){let t=this._currentBreakpoint();return e.filter(i=>{let n=S1(i.responsive);return!n?.length||n.includes(t)})}_getRowKey(e,t){return typeof this.rowKey=="function"?this.rowKey(e,t):Ma(e,this.rowKey)??t}_columnKey(e,t){return String(e.key??e.dataIndex??t)}_columnFixed(e){if(e.fixed===!0||e.fixed==="left")return"left";if(e.fixed==="right")return"right"}_columnKeyForWidth(e,t){return this._columnKey(e,t)}_columnOverrideWidth(e,t){return this._columnWidthOverrides[this._columnKeyForWidth(e,t)]}_columnPixelWidth(e,t){return Math.max(this._columnMinWidth(e),this._columnOverrideWidth(e,t)??fd(e.width)??fd(e.minWidth)??120)}_resizedTableWidth(e){return(this.selection!=="none"?44:0)+e.reduce((t,i,n)=>t+this._columnPixelWidth(i,n),0)}_findHeaderCellByColumnKey(e){return this.renderRoot.querySelector(`[data-column-key="${CSS.escape(e)}"]`)}_lockCurrentColumnWidths(e=this._responsiveColumns(this._orderedColumns(this._columns()))){let t={};for(let i=0;i<e.length;i+=1){let n=e[i],a=this._columnKeyForWidth(n,i),s=this._findHeaderCellByColumnKey(a);t[a]=Math.max(this._columnMinWidth(n),Math.round(s?.getBoundingClientRect().width||this._columnPixelWidth(n,i)))}return t}_applyColumnWidthOverrides(e){this._columnWidthOverrides=e,this.toggleAttribute("column-resized",Object.keys(e).length>0)}_fixedColumnSize(e,t){let i=this._columnOverrideWidth(e,t);return i?`${i}px`:Xo(e.width??e.minWidth)||"120px"}_sumCss(e){return e.length?e.length===1?e[0]:`calc(${e.join(" + ")})`:"0px"}_fixedMeta(e){let t=e.map(u=>({fixed:this._columnFixed(u),offset:"0px",edge:!1})),i=t.map((u,h)=>u.fixed==="left"?h:-1).filter(u=>u>=0),n=t.map((u,h)=>u.fixed==="right"?h:-1).filter(u=>u>=0),a=this.selection!=="none"&&i.length>0?["44px"]:[];for(let u of i)t[u].offset=this._sumCss(a),a.push(this._fixedColumnSize(e[u],u));let s=[];for(let u=n.length-1;u>=0;u-=1){let h=n[u];t[h].offset=this._sumCss(s),s.push(this._fixedColumnSize(e[h],h))}return i.length&&(t[i[i.length-1]].edge=!0),n.length&&(t[n[0]].edge=!0),t}_hasLeftFixed(e){return e.some(t=>this._columnFixed(t)==="left")}_fixedClass(e,t=""){return e?.fixed?`${t} fixed-${e.fixed} ${e.edge?`fixed-${e.fixed}-edge`:""}`.trim():t}_fixedStyle(e,t=""){let i=t?[t]:[];return e?.fixed&&i.push(`--lui-table-sticky-${e.fixed}:${e.offset}`),i.filter(Boolean).join(";")}_selectionFixedClass(e,t=""){return this.selection==="none"||!this._hasLeftFixed(e)?t:`${t} fixed-left fixed-selection`.trim()}_selectionFixedStyle(e){return this.selection!=="none"&&this._hasLeftFixed(e)?"--lui-table-sticky-left:0px":""}_selectedKeys(){return this._internalSelectedRowKeys}_sortedRows(e,t){if(!this.sortKey||this.sortOrder==="none")return e;let i=t.find((a,s)=>this._columnKey(a,s)===this.sortKey);if(!i)return e;let n=this.sortOrder==="asc"?1:-1;return[...e].sort((a,s)=>(i.sorter?i.sorter(a,s,i):Vg(Ma(a,i.dataIndex??i.key),Ma(s,i.dataIndex??i.key)))*n)}_pagedRows(e){if(!this.pagination||this.remotePagination)return e;let t=Math.max(1,this.pageSize||10),i=Math.max(1,this.current||1);return e.slice((i-1)*t,i*t)}_rowKeyString(e,t){return String(this._getRowKey(e,t))}_rowAnimationsEnabled(e=this._activeRows.length){return this.rowAnimation!=="none"&&!this.virtual&&e<=500}_clearRowAnimationTimers(){for(let e of this._rowAnimationTimers)clearTimeout(e);this._rowAnimationTimers=[]}_prepareRowAnimations(){let e=this._activeRows??[],t=this._orderedColumns(this._columns()),i=this._pagedRows(this._sortedRows(this._rows(),t));if(!this._rowAnimationsEnabled(Math.max(e.length,i.length))||e.length===0){this._leavingRows=[],this._enteringRowKeys.clear();return}let n=e.map((k,w)=>this._rowKeyString(k,w)),a=i.map((k,w)=>this._rowKeyString(k,w)),s=new Set(n),u=new Set(a),h=[];e.forEach((k,w)=>{let E=n[w];u.has(E)||h.push({row:k,index:w,key:this._getRowKey(k,w)})});let f=new Set;if(a.forEach(k=>{s.has(k)||f.add(k)}),!h.length&&!f.size)return;this._clearRowAnimationTimers(),this._leavingRows=h,this._enteringRowKeys=f,this._rowAnimationTimers.push(setTimeout(()=>{this._leavingRows=[],this._enteringRowKeys.clear(),this.requestUpdate()},220))}_bodyDisplayRows(e,t,i,n){let a=e.map((u,h)=>{let f=t+h,b=this._getRowKey(u,f);return{row:u,rowIndex:f,key:b,leaving:!1,entering:this._enteringRowKeys.has(String(b))}});if(!this._rowAnimationsEnabled(a.length)||i>0||n>0||!this._leavingRows.length)return a;let s=new Set(a.map(u=>String(u.key)));for(let u of this._leavingRows)s.has(String(u.key))||a.splice(Math.min(u.index,a.length),0,{row:u.row,rowIndex:u.index,key:u.key,leaving:!0,entering:!1});return a}_resolvedRowHeight(){return typeof this.rowHeight=="number"&&Number.isFinite(this.rowHeight)?Math.max(24,this.rowHeight):this.size==="sm"?36:this.size==="lg"?52:44}_resolvedVirtualHeight(){if(typeof this.virtualHeight=="number"&&Number.isFinite(this.virtualHeight))return Math.max(80,this.virtualHeight);let e=Number.parseFloat(String(this.virtualHeight));return Number.isFinite(e)?Math.max(80,e):360}_calculateVirtualStart(e,t=this._resolvedRowHeight()){let i=Math.max(0,Math.floor(this.overscan||0));return Math.max(0,Math.floor(e/t)-i)}_virtualRange(e){if(!this.virtual||e.length===0)return{start:0,end:e.length,before:0,after:0,visibleRows:e};let t=this._resolvedRowHeight(),i=this._resolvedVirtualHeight(),n=Math.max(0,Math.floor(this.overscan||0)),a=Math.max(0,e.length-1),s=Math.min(a,this._virtualStart),u=Math.ceil(i/t)+n*2,h=Math.min(e.length,s+u),f=`${s}:${h}:${e.length}`;return f!==this._lastRangeKey&&(this._lastRangeKey=f,queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("visible-range-change",{detail:{start:s,end:h,total:e.length},bubbles:!0,composed:!0}))})),{start:s,end:h,before:s*t,after:Math.max(0,(e.length-h)*t),visibleRows:e.slice(s,h)}}scrollToIndex(e,t="start"){if(this.virtual&&this._virtualizerEl){this._virtualizerEl.scrollToIndex(e,t);return}let i=this._scrollEl;if(!i)return;let n=this._resolvedRowHeight(),a=this._resolvedVirtualHeight(),s=Math.max(0,e)*n;t==="center"&&(s-=(a-n)/2),t==="end"&&(s-=a-n),i.scrollTop=Math.max(0,s),this._scrollTop=i.scrollTop,this._virtualStart=this._calculateVirtualStart(this._scrollTop)}_selectedRowsForKeys(e,t){if(!e.length)return[];let i=new Set(e.map(String)),n=[];for(let a=0;a<t.length;a+=1){let s=t[a];if(i.has(String(this._getRowKey(s,a)))&&n.push(s),n.length>=e.length)break}return n}_emitSelection(e,t){this._internalSelectedRowKeys=e,this.dispatchEvent(new CustomEvent("selection-change",{detail:{selectedRowKeys:e,selectedRows:this._selectedRowsForKeys(e,t)},bubbles:!0,composed:!0}))}_setCheckboxState(e,t,i=!1){e&&Object.assign(e,{checked:t,indeterminate:i})}_syncRenderedSelection(){let e=new Set(this._selectedKeys().map(String));this.renderRoot.querySelectorAll("[data-row-key]").forEach(i=>{let n=e.has(i.dataset.rowKey??"");i.classList.toggle("selected",n),this._setCheckboxState(i.querySelector("lui-checkbox"),n)}),this._syncHeaderCheckbox()}_syncHeaderCheckbox(){let e=this.renderRoot.querySelector('[data-table-select-all="true"]');if(!e)return;let t=Array.from(this.renderRoot.querySelectorAll("[data-row-key]")),i=new Set(this._selectedKeys().map(String)),n=t.filter(a=>i.has(a.dataset.rowKey??"")).length;this._setCheckboxState(e,t.length>0&&n===t.length,n>0&&n<t.length)}_toggleRow(e,t,i,n,a){let s=this._getRowKey(e,t);if(this.selection==="single"){this._emitSelection(i?[s]:[],n),this._syncRenderedSelection();return}let u=this._selectedKeys().filter(f=>String(f)!==String(s));i&&u.push(s),this._emitSelection(u,n),a?.currentTarget?.closest?.("[data-row-key]")?.classList.toggle("selected",i),this._syncHeaderCheckbox()}_toggleAll(e,t,i){let n=this._selectedKeys(),a=t.map((f,b)=>this._getRowKey(f,b)),s=new Set(a.map(String)),u=n.filter(f=>!s.has(String(f))),h=e?[...u,...a]:u;this._emitSelection(h,i),this._syncRenderedSelection()}_toggleSort(e,t){if(!e.sortable&&!e.sorter)return;let i=this._columnKey(e,t),n="asc";this.sortKey===i&&(n=this.sortOrder==="asc"?"desc":this.sortOrder==="desc"?"none":"asc"),this.sortKey=n==="none"?"":i,this.sortOrder=n,this.dispatchEvent(new CustomEvent("sort",{detail:{key:i,order:n,column:e},bubbles:!0,composed:!0}))}_totalRows(){return typeof this.total=="number"?this.total:this._rows().length}_isInteractiveTarget(e){return e instanceof HTMLElement&&!!e.closest?.("lui-checkbox,lui-button,button,a,input,select,textarea,[data-table-ignore-row-click]")}_onRowClick(e,t,i,n){if(!this._isInteractiveTarget(e.target)){if(this.selectOnClick&&this.selection!=="none"){let a=this._selectedKeys().some(s=>String(s)===String(i));this._toggleRow(t,n,this.selection==="single"?!0:!a,this._activeRows,e)}this.onRow?.(t,n)?.onClick?.(e),this.dispatchEvent(new CustomEvent("row-click",{detail:{row:t,rowKey:i,index:n,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0}))}}_onRowDblClick(e,t,i,n){this._isInteractiveTarget(e.target)||(this.onRow?.(t,n)?.onDoubleClick?.(e),this.dispatchEvent(new CustomEvent("row-dblclick",{detail:{row:t,rowKey:i,index:n,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0})))}_onRowContextMenu(e,t,i){this._isInteractiveTarget(e.target)||this.onRow?.(t,i)?.onContextMenu?.(e)}_onRowMouseEnter(e,t,i){this.onRow?.(t,i)?.onMouseEnter?.(e)}_onRowMouseLeave(e,t,i){this.onRow?.(t,i)?.onMouseLeave?.(e)}_cellContext(e,t,i,n){let a=this._getRowKey(e,t),s=this._columnKey(i,n),u=Ma(e,i.dataIndex??i.key);return{row:e,rowKey:a,rowIndex:t,column:i,columnKey:s,columnIndex:n,value:u}}_onCellClick(e,t,i,n,a){if(this._isInteractiveTarget(e.target))return;let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onClick?.(e),this.onCell?.(s)?.onClick?.(e),n.onClick?.(e,s),this.dispatchEvent(new CustomEvent("cell-click",{detail:{...s,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellDblClick(e,t,i,n,a){if(this._isInteractiveTarget(e.target))return;let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onDoubleClick?.(e),this.onCell?.(s)?.onDoubleClick?.(e),n.onDblClick?.(e,s),this.dispatchEvent(new CustomEvent("cell-dblclick",{detail:{...s,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellContextMenu(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onContextMenu?.(e),this.onCell?.(s)?.onContextMenu?.(e),n.onContextMenu?.(e,s),this.dispatchEvent(new CustomEvent("cell-contextmenu",{detail:{...s,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellMouseEnter(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onMouseEnter?.(e),this.onCell?.(s)?.onMouseEnter?.(e)}_onCellMouseLeave(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onMouseLeave?.(e),this.onCell?.(s)?.onMouseLeave?.(e)}_headerCellContext(e,t){return{column:e,columnKey:this._columnKey(e,t),columnIndex:t}}_callHeaderRowHandler(e,t,i){this.onHeaderRow?.(i,0)?.[t]?.(e)}_callHeaderCellHandler(e,t,i,n){this.onHeaderCell?.(this._headerCellContext(i,n))?.[t]?.(e)}_isColumnResizable(e){return e.resizable??this.columnResizable}_isColumnReorderable(e){return e.reorderable??this.columnReorderable}_columnMinWidth(e){return Math.max(48,fd(e.minWidth)??48)}_columnInfoByKey(e){if(!e)return null;let t=this._responsiveColumns(this._orderedColumns(this._columns())),i=t.findIndex((n,a)=>this._columnKeyForWidth(n,a)===e);return i>=0?{column:t[i],index:i}:null}_teardownColumnInteractions(){for(let e of this._columnInteractDisposers)e();this._columnInteractDisposers=[]}_scheduleColumnInteractions(){this._columnInteractRaf||(this._columnInteractRaf=requestAnimationFrame(()=>{this._columnInteractRaf=0,this._syncColumnInteractions()}))}_syncColumnInteractions(){if(!this.isConnected||this._columnResizeState||this._columnDragState||(this._teardownColumnInteractions(),!this.showHeader))return;let e=Array.from(this.renderRoot.querySelectorAll(".column-resizer"));for(let i of e){let n=(0,gd.default)(i).draggable({listeners:{start:a=>{let s=this._columnInfoByKey(i.dataset.columnKey);!s||!this._isColumnResizable(s.column)||this._startColumnResizeDrag(i,s.column,s.index,a.clientX??0)},move:a=>{this._moveColumnResize(a.clientX??0)},end:()=>{this._endColumnResize(),this._scheduleColumnInteractions()}}});this._columnInteractDisposers.push(()=>n.unset())}let t=Array.from(this.renderRoot.querySelectorAll(".column-drag-handle"));for(let i of t){let n=(0,gd.default)(i).draggable({listeners:{start:a=>{let s=this._columnInfoByKey(i.dataset.columnKey);!s||!this._isColumnReorderable(s.column)||this._startColumnReorderDrag(i,s.column,s.index,a.clientX??0,a.clientY??0)},move:a=>{this._moveColumnReorder(a.clientX??0,a.clientY??0)},end:()=>{this._endColumnReorder(),this._scheduleColumnInteractions()}}});this._columnInteractDisposers.push(()=>n.unset())}}_startColumnResizeDrag(e,t,i,n){if(!this._isColumnResizable(t))return;let a=this._columnKeyForWidth(t,i),s=this._lockCurrentColumnWidths();this._applyColumnWidthOverrides(s);let u=Math.max(this._columnMinWidth(t),s[a]??this._columnPixelWidth(t,i));this._columnResizeState={key:a,column:t,columnIndex:i,startX:n,startWidth:u,minWidth:this._columnMinWidth(t),nextWidth:u},e.classList.add("active"),this.toggleAttribute("resizing-column",!0)}_moveColumnResize(e){if(!this._columnResizeState)return;let t=Math.max(this._columnResizeState.minWidth,Math.round(this._columnResizeState.startWidth+e-this._columnResizeState.startX));this._columnResizeState.nextWidth=t;let i=this._columnResizeState;this._applyColumnWidthOverrides({...this._columnWidthOverrides,[i.key]:i.nextWidth}),this.dispatchEvent(new CustomEvent("column-resize",{detail:{key:i.key,width:i.nextWidth,column:i.column,columnIndex:i.columnIndex},bubbles:!0,composed:!0}))}_endColumnResize(){this._columnResizeState&&(this._columnResizeState=null,this._resizeRaf&&(cancelAnimationFrame(this._resizeRaf),this._resizeRaf=0),this.toggleAttribute("resizing-column",!1),this.renderRoot.querySelectorAll(".column-resizer.active").forEach(e=>e.classList.remove("active")))}_headerCellsByKey(e){return Array.from(this.renderRoot.querySelectorAll(`[data-column-key="${CSS.escape(e)}"]`))}_clearColumnDropMarkers(){this.renderRoot.querySelectorAll(".column-drop-before,.column-drop-after").forEach(e=>e.classList.remove("column-drop-before","column-drop-after"))}_clearColumnDragClasses(){this._clearColumnDropMarkers(),this.renderRoot.querySelectorAll(".column-drag-source,.column-drag-handle.active").forEach(e=>e.classList.remove("column-drag-source","active"))}_setColumnDropTarget(e,t="after"){let i=this._columnDragState;if(i&&!(i.overKey===e&&i.dropPosition===t)&&(this._clearColumnDropMarkers(),i.overKey=e,i.dropPosition=t,!!e))for(let n of this._headerCellsByKey(e))n.classList.add(t==="before"?"column-drop-before":"column-drop-after")}_applyColumnReorder(){let e=this._columnDragState;if(!e?.overKey)return;let i=this._responsiveColumns(this._orderedColumns(this._columns())).map((f,b)=>this._columnKey(f,b)),n=i.indexOf(e.key);if(n<0)return;let a=[...i],[s]=a.splice(n,1),u=a.indexOf(e.overKey);if(u<0||(a.splice(u+(e.dropPosition==="after"?1:0),0,s),a.join("\0")===i.join("\0")))return;this._columnOrderKeys=a;let h=this._responsiveColumns(this._orderedColumns(this._columns()));this._activeColumns=h,this._activeFixedMeta=this._fixedMeta(h),this.dispatchEvent(new CustomEvent("column-reorder",{detail:{fromKey:e.key,toKey:e.overKey,fromIndex:n,toIndex:a.indexOf(e.key),columns:h},bubbles:!0,composed:!0}))}_createColumnDragGhost(e,t,i){this._removeColumnDragGhost();let n=getComputedStyle(this),a=document.createElement("div");a.textContent=String(e.title??e.key??e.dataIndex??"Column"),a.style.cssText=["position:fixed","left:0","top:0","z-index:2147483000","pointer-events:none","display:inline-flex","align-items:center","max-width:220px","height:30px","padding:0 10px","border-radius:10px",`border:1px solid ${n.getPropertyValue("--lui-table-border").trim()||"rgb(0 0 0 / 0.12)"}`,`background:${n.getPropertyValue("--lui-color-bg-elevated").trim()||n.getPropertyValue("--lui-color-bg").trim()||"Canvas"}`,`color:${n.getPropertyValue("--lui-color-fg").trim()||"currentColor"}`,"box-shadow:0 12px 32px rgb(0 0 0 / 0.18)","font:600 13px/1 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif","white-space:nowrap","overflow:hidden","text-overflow:ellipsis","opacity:.96","will-change:transform"].join(";"),document.body.appendChild(a),this._columnDragGhost=a,this._moveColumnDragGhost(t,i)}_moveColumnDragGhost(e,t){this._columnDragGhost&&(this._columnDragGhost.style.transform=`translate3d(${Math.round(e+12)}px, ${Math.round(t+12)}px, 0)`)}_removeColumnDragGhost(){this._columnDragGhost?.remove(),this._columnDragGhost=null}_startColumnReorderDrag(e,t,i,n,a){if(!this._isColumnReorderable(t))return;let s=this._columnKeyForWidth(t,i);this._columnDragState={key:s,column:t,columnIndex:i,overKey:null,dropPosition:"after"},this._clearColumnDragClasses(),e.classList.add("active");for(let u of this._headerCellsByKey(s))u.classList.add("column-drag-source");this._createColumnDragGhost(t,n,a),this.toggleAttribute("dragging-column",!0)}_moveColumnReorder(e,t){let i=this._columnDragState;if(!i)return;this._moveColumnDragGhost(e,t);let s=[...this.renderRoot.elementsFromPoint?.(e,t)??[],...document.elementsFromPoint(e,t)].map(b=>b.closest?.("[data-column-key]")).find(b=>!!b),u=s?.dataset.columnKey;if(!s||!u||u===i.key){this._setColumnDropTarget(null);return}let h=s.getBoundingClientRect(),f=e<h.left+h.width/2?"before":"after";this._setColumnDropTarget(u,f)}_endColumnReorder(){this._columnDragState&&(this._applyColumnReorder(),this._columnDragState=null,this.toggleAttribute("dragging-column",!1),this._clearColumnDragClasses(),this._removeColumnDragGhost())}_renderColumnDragHandle(e,t){return this._isColumnReorderable(e)?y`
4253
+ `};this._virtualKey=e=>this._getRowKey(e.row,e.index)}connectedCallback(){super.connectedCallback(),this._explicitAttrs=new Set(this.getAttributeNames()),this._applyVirtualStyles();let e=typeof window<"u"?window.innerWidth:0;this._responsiveWidth=Math.round(this.getBoundingClientRect().width||e||0),this._responsiveResizeObserver=new ResizeObserver(t=>{let i=t[0],n=typeof window<"u"?window.innerWidth:0,a=Math.round(i?.contentRect.width||this.getBoundingClientRect().width||n||0);a>0&&a!==this._responsiveWidth&&(this._responsiveWidth=a)}),this._responsiveResizeObserver.observe(this)}disconnectedCallback(){this._endColumnResize(),this._endColumnReorder(),this._removeColumnDragGhost(),this._teardownColumnInteractions(),this._clearRowAnimationTimers(),this._scrollRaf&&cancelAnimationFrame(this._scrollRaf),this._gutterRaf&&cancelAnimationFrame(this._gutterRaf),this._resizeRaf&&cancelAnimationFrame(this._resizeRaf),this._columnInteractRaf&&cancelAnimationFrame(this._columnInteractRaf),this._responsiveResizeObserver?.disconnect(),this._responsiveResizeObserver=void 0,this._scrollRaf=0,this._gutterRaf=0,this._resizeRaf=0,this._columnInteractRaf=0,super.disconnectedCallback()}willUpdate(e){e.has("selectedRowKeys")&&(this._internalSelectedRowKeys=[...this.selectedRowKeys??[]]),(e.has("data")||e.has("dataSource")||e.has("source"))&&this._prepareRowAnimations();let t=se(this,"table");!this._explicitAttrs.has("size")&&typeof t.size=="string"&&this.size!==t.size&&(this.size=t.size),!this._explicitAttrs.has("bordered")&&typeof t.bordered=="boolean"&&this.bordered!==t.bordered&&(this.bordered=t.bordered),!this._explicitAttrs.has("border")&&typeof t.border=="boolean"&&this.border!==t.border&&(this.border=t.border),!this._explicitAttrs.has("noborder")&&typeof t.noBorder=="boolean"&&this.noBorder!==t.noBorder&&(this.noBorder=t.noBorder),!this._explicitAttrs.has("striped")&&typeof t.striped=="boolean"&&this.striped!==t.striped&&(this.striped=t.striped),!this._explicitAttrs.has("hoverable")&&typeof t.hoverable=="boolean"&&this.hoverable!==t.hoverable&&(this.hoverable=t.hoverable),!this._explicitAttrs.has("column-resizable")&&typeof t.columnResizable=="boolean"&&this.columnResizable!==t.columnResizable&&(this.columnResizable=t.columnResizable),!this._explicitAttrs.has("column-reorderable")&&typeof t.columnReorderable=="boolean"&&this.columnReorderable!==t.columnReorderable&&(this.columnReorderable=t.columnReorderable),!this._explicitAttrs.has("selection")&&typeof t.selection=="string"&&this.selection!==t.selection&&(this.selection=t.selection),!this._explicitAttrs.has("select-on-click")&&typeof t.selectOnClick=="boolean"&&this.selectOnClick!==t.selectOnClick&&(this.selectOnClick=t.selectOnClick),!this._explicitAttrs.has("pagination")&&typeof t.pagination=="boolean"&&this.pagination!==t.pagination&&(this.pagination=t.pagination),!this._explicitAttrs.has("virtual")&&typeof t.virtual=="boolean"&&this.virtual!==t.virtual&&(this.virtual=t.virtual),!this._explicitAttrs.has("row-animation")&&typeof t.rowAnimation=="string"&&this.rowAnimation!==t.rowAnimation&&(this.rowAnimation=t.rowAnimation),!this._explicitAttrs.has("virtual-height")&&(typeof t.virtualHeight=="number"||typeof t.virtualHeight=="string")&&this.virtualHeight!==t.virtualHeight&&(this.virtualHeight=t.virtualHeight),!this._explicitAttrs.has("row-height")&&typeof t.rowHeight=="number"&&this.rowHeight!==t.rowHeight&&(this.rowHeight=t.rowHeight)}updated(e){(e.has("virtual")||e.has("virtualHeight")||e.has("rowHeight"))&&this._applyVirtualStyles(),this.virtual?(this._scheduleVirtualScrollbarGutter(),this._syncHorizontalScrollVars()):(this.style.setProperty("--lui-table-scrollbar-width","0px"),this.style.setProperty("--lui-table-scroll-left","0px"),this.style.setProperty("--lui-table-scroll-overflow","0px")),(e.has("data")||e.has("dataSource")||e.has("source")||e.has("pagination")||e.has("current")||e.has("pageSize"))&&(this._scrollTop=0,this._virtualStart=0,this._lastRangeKey="",this._scrollEl&&(this._scrollEl.scrollTop=0)),this._scheduleColumnInteractions()}_applyVirtualStyles(){let e=this._resolvedVirtualHeight(),t=this.showHeader?this._resolvedRowHeight():0;this.style.setProperty("--lui-table-virtual-height",Xo(this.virtualHeight)||"360px"),this.style.setProperty("--lui-table-virtual-body-height",`${Math.max(80,e-t)}px`),typeof this.rowHeight=="number"&&Number.isFinite(this.rowHeight)&&this.style.setProperty("--lui-table-row-height",`${Math.max(24,this.rowHeight)}px`)}_scheduleVirtualScrollbarGutter(){this._gutterRaf||(this._gutterRaf=requestAnimationFrame(()=>{this._gutterRaf=0;let e=this._virtualizerEl,t=e?Math.max(0,e.offsetWidth-e.clientWidth):0;this.style.setProperty("--lui-table-scrollbar-width",`${t}px`)}))}_syncHorizontalScrollVars(e=this._scrollEl){if(!e)return;let t=Math.max(0,e.scrollLeft||0),i=Math.max(0,e.scrollWidth-e.clientWidth);this.style.setProperty("--lui-table-scroll-left",`${t}px`),this.style.setProperty("--lui-table-scroll-overflow",`${i}px`)}_rows(){return this.dataSource??this.source??this.data??[]}_columns(){return this.columns?.length?this.columns:(this._slottedColumns??[]).map(e=>e.toColumn())}_orderedColumns(e){if(!this._columnOrderKeys.length)return e;let t=e.map((s,u)=>({column:s,key:this._columnKey(s,u)})),i=new Map(t.map(s=>[s.key,s.column])),n=new Set,a=[];for(let s of this._columnOrderKeys){let u=i.get(s);!u||n.has(s)||(a.push(u),n.add(s))}for(let s of t)n.has(s.key)||a.push(s.column);return a}_currentBreakpoint(){let e=typeof window<"u"?window.innerWidth:0;return Lg(this._responsiveWidth||Math.round(this.getBoundingClientRect().width||e||0))}_responsiveColumns(e){let t=this._currentBreakpoint();return e.filter(i=>{let n=S1(i.responsive);return!n?.length||n.includes(t)})}_getRowKey(e,t){return typeof this.rowKey=="function"?this.rowKey(e,t):Ma(e,this.rowKey)??t}_columnKey(e,t){return String(e.key??e.dataIndex??t)}_columnFixed(e){if(e.fixed===!0||e.fixed==="left")return"left";if(e.fixed==="right")return"right"}_columnKeyForWidth(e,t){return this._columnKey(e,t)}_columnOverrideWidth(e,t){return this._columnWidthOverrides[this._columnKeyForWidth(e,t)]}_columnPixelWidth(e,t){return Math.max(this._columnMinWidth(e),this._columnOverrideWidth(e,t)??fd(e.width)??fd(e.minWidth)??120)}_resizedTableWidth(e){return(this.selection!=="none"?44:0)+e.reduce((t,i,n)=>t+this._columnPixelWidth(i,n),0)}_findHeaderCellByColumnKey(e){return this.renderRoot.querySelector(`[data-column-key="${CSS.escape(e)}"]`)}_lockCurrentColumnWidths(e=this._responsiveColumns(this._orderedColumns(this._columns()))){let t={};for(let i=0;i<e.length;i+=1){let n=e[i],a=this._columnKeyForWidth(n,i),s=this._findHeaderCellByColumnKey(a);t[a]=Math.max(this._columnMinWidth(n),Math.round(s?.getBoundingClientRect().width||this._columnPixelWidth(n,i)))}return t}_applyColumnWidthOverrides(e){this._columnWidthOverrides=e,this.toggleAttribute("column-resized",Object.keys(e).length>0)}_fixedColumnSize(e,t){let i=this._columnOverrideWidth(e,t);return i?`${i}px`:Xo(e.width??e.minWidth)||"120px"}_sumCss(e){return e.length?e.length===1?e[0]:`calc(${e.join(" + ")})`:"0px"}_fixedMeta(e){let t=e.map(u=>({fixed:this._columnFixed(u),offset:"0px",edge:!1})),i=t.map((u,h)=>u.fixed==="left"?h:-1).filter(u=>u>=0),n=t.map((u,h)=>u.fixed==="right"?h:-1).filter(u=>u>=0),a=this.selection!=="none"&&i.length>0?["44px"]:[];for(let u of i)t[u].offset=this._sumCss(a),a.push(this._fixedColumnSize(e[u],u));let s=[];for(let u=n.length-1;u>=0;u-=1){let h=n[u];t[h].offset=this._sumCss(s),s.push(this._fixedColumnSize(e[h],h))}return i.length&&(t[i[i.length-1]].edge=!0),n.length&&(t[n[0]].edge=!0),t}_hasLeftFixed(e){return e.some(t=>this._columnFixed(t)==="left")}_fixedClass(e,t=""){return e?.fixed?`${t} fixed-${e.fixed} ${e.edge?`fixed-${e.fixed}-edge`:""}`.trim():t}_fixedStyle(e,t=""){let i=t?[t]:[];return e?.fixed&&i.push(`--lui-table-sticky-${e.fixed}:${e.offset}`),i.filter(Boolean).join(";")}_selectionFixedClass(e,t=""){return this.selection==="none"||!this._hasLeftFixed(e)?t:`${t} fixed-left fixed-selection`.trim()}_selectionFixedStyle(e){return this.selection!=="none"&&this._hasLeftFixed(e)?"--lui-table-sticky-left:0px":""}_selectedKeys(){return this._internalSelectedRowKeys}_sortedRows(e,t){if(!this.sortKey||this.sortOrder==="none")return e;let i=t.find((a,s)=>this._columnKey(a,s)===this.sortKey);if(!i)return e;let n=this.sortOrder==="asc"?1:-1;return[...e].sort((a,s)=>(i.sorter?i.sorter(a,s,i):Vg(Ma(a,i.dataIndex??i.key),Ma(s,i.dataIndex??i.key)))*n)}_pagedRows(e){if(!this.pagination||this.remotePagination)return e;let t=Math.max(1,this.pageSize||10),i=Math.max(1,this.current||1);return e.slice((i-1)*t,i*t)}_rowKeyString(e,t){return String(this._getRowKey(e,t))}_rowAnimationsEnabled(e=this._activeRows.length){return this.rowAnimation!=="none"&&!this.virtual&&e<=500}_clearRowAnimationTimers(){for(let e of this._rowAnimationTimers)clearTimeout(e);this._rowAnimationTimers=[]}_prepareRowAnimations(){let e=this._activeRows??[],t=this._orderedColumns(this._columns()),i=this._pagedRows(this._sortedRows(this._rows(),t));if(!this._rowAnimationsEnabled(Math.max(e.length,i.length))||e.length===0){this._leavingRows=[],this._enteringRowKeys.clear();return}let n=e.map((k,w)=>this._rowKeyString(k,w)),a=i.map((k,w)=>this._rowKeyString(k,w)),s=new Set(n),u=new Set(a),h=[];e.forEach((k,w)=>{let E=n[w];u.has(E)||h.push({row:k,index:w,key:this._getRowKey(k,w)})});let f=new Set;if(a.forEach(k=>{s.has(k)||f.add(k)}),!h.length&&!f.size)return;this._clearRowAnimationTimers(),this._leavingRows=h,this._enteringRowKeys=f,this._rowAnimationTimers.push(setTimeout(()=>{this._leavingRows=[],this._enteringRowKeys.clear(),this.requestUpdate()},220))}_bodyDisplayRows(e,t,i,n){let a=e.map((u,h)=>{let f=t+h,b=this._getRowKey(u,f);return{row:u,rowIndex:f,key:b,leaving:!1,entering:this._enteringRowKeys.has(String(b))}});if(!this._rowAnimationsEnabled(a.length)||i>0||n>0||!this._leavingRows.length)return a;let s=new Set(a.map(u=>String(u.key)));for(let u of this._leavingRows)s.has(String(u.key))||a.splice(Math.min(u.index,a.length),0,{row:u.row,rowIndex:u.index,key:u.key,leaving:!0,entering:!1});return a}_resolvedRowHeight(){return typeof this.rowHeight=="number"&&Number.isFinite(this.rowHeight)?Math.max(24,this.rowHeight):this.size==="sm"?36:this.size==="lg"?52:44}_resolvedVirtualHeight(){if(typeof this.virtualHeight=="number"&&Number.isFinite(this.virtualHeight))return Math.max(80,this.virtualHeight);let e=Number.parseFloat(String(this.virtualHeight));return Number.isFinite(e)?Math.max(80,e):360}_calculateVirtualStart(e,t=this._resolvedRowHeight()){let i=Math.max(0,Math.floor(this.overscan||0));return Math.max(0,Math.floor(e/t)-i)}_virtualRange(e){if(!this.virtual||e.length===0)return{start:0,end:e.length,before:0,after:0,visibleRows:e};let t=this._resolvedRowHeight(),i=this._resolvedVirtualHeight(),n=Math.max(0,Math.floor(this.overscan||0)),a=Math.max(0,e.length-1),s=Math.min(a,this._virtualStart),u=Math.ceil(i/t)+n*2,h=Math.min(e.length,s+u),f=`${s}:${h}:${e.length}`;return f!==this._lastRangeKey&&(this._lastRangeKey=f,queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("visible-range-change",{detail:{start:s,end:h,total:e.length},bubbles:!0,composed:!0}))})),{start:s,end:h,before:s*t,after:Math.max(0,(e.length-h)*t),visibleRows:e.slice(s,h)}}scrollToIndex(e,t="start"){if(this.virtual&&this._virtualizerEl){this._virtualizerEl.scrollToIndex(e,t);return}let i=this._scrollEl;if(!i)return;let n=this._resolvedRowHeight(),a=this._resolvedVirtualHeight(),s=Math.max(0,e)*n;t==="center"&&(s-=(a-n)/2),t==="end"&&(s-=a-n),i.scrollTop=Math.max(0,s),this._scrollTop=i.scrollTop,this._virtualStart=this._calculateVirtualStart(this._scrollTop)}_selectedRowsForKeys(e,t){if(!e.length)return[];let i=new Set(e.map(String)),n=[];for(let a=0;a<t.length;a+=1){let s=t[a];if(i.has(String(this._getRowKey(s,a)))&&n.push(s),n.length>=e.length)break}return n}_emitSelection(e,t){this._internalSelectedRowKeys=e,this.dispatchEvent(new CustomEvent("selection-change",{detail:{selectedRowKeys:e,selectedRows:this._selectedRowsForKeys(e,t)},bubbles:!0,composed:!0}))}_setCheckboxState(e,t,i=!1){e&&Object.assign(e,{checked:t,indeterminate:i})}_syncRenderedSelection(){let e=new Set(this._selectedKeys().map(String));this.renderRoot.querySelectorAll("[data-row-key]").forEach(i=>{let n=e.has(i.dataset.rowKey??"");i.classList.toggle("selected",n),this._setCheckboxState(i.querySelector("lui-checkbox"),n)}),this._syncHeaderCheckbox()}_syncHeaderCheckbox(){let e=this.renderRoot.querySelector('[data-table-select-all="true"]');if(!e)return;let t=Array.from(this.renderRoot.querySelectorAll("[data-row-key]")),i=new Set(this._selectedKeys().map(String)),n=t.filter(a=>i.has(a.dataset.rowKey??"")).length;this._setCheckboxState(e,t.length>0&&n===t.length,n>0&&n<t.length)}_toggleRow(e,t,i,n,a){let s=this._getRowKey(e,t);if(this.selection==="single"){this._emitSelection(i?[s]:[],n),this._syncRenderedSelection();return}let u=this._selectedKeys().filter(h=>String(h)!==String(s));i&&u.push(s),this._emitSelection(u,n),this._syncRenderedSelection()}_toggleAll(e,t,i){let n=this._selectedKeys(),a=t.map((f,b)=>this._getRowKey(f,b)),s=new Set(a.map(String)),u=n.filter(f=>!s.has(String(f))),h=e?[...u,...a]:u;this._emitSelection(h,i),this._syncRenderedSelection()}_toggleSort(e,t){if(!e.sortable&&!e.sorter)return;let i=this._columnKey(e,t),n="asc";this.sortKey===i&&(n=this.sortOrder==="asc"?"desc":this.sortOrder==="desc"?"none":"asc"),this.sortKey=n==="none"?"":i,this.sortOrder=n,this.dispatchEvent(new CustomEvent("sort",{detail:{key:i,order:n,column:e},bubbles:!0,composed:!0}))}_totalRows(){return typeof this.total=="number"?this.total:this._rows().length}_isInteractiveTarget(e){return e instanceof HTMLElement&&!!e.closest?.("lui-checkbox,lui-button,button,a,input,select,textarea,[data-table-ignore-row-click]")}_onRowClick(e,t,i,n){if(!this._isInteractiveTarget(e.target)){if(this.selectOnClick&&this.selection!=="none"){let a=this._selectedKeys().some(s=>String(s)===String(i));this._toggleRow(t,n,this.selection==="single"?!0:!a,this._activeRows,e)}this.onRow?.(t,n)?.onClick?.(e),this.dispatchEvent(new CustomEvent("row-click",{detail:{row:t,rowKey:i,index:n,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0}))}}_onRowDblClick(e,t,i,n){this._isInteractiveTarget(e.target)||(this.onRow?.(t,n)?.onDoubleClick?.(e),this.dispatchEvent(new CustomEvent("row-dblclick",{detail:{row:t,rowKey:i,index:n,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0})))}_onRowContextMenu(e,t,i){this._isInteractiveTarget(e.target)||this.onRow?.(t,i)?.onContextMenu?.(e)}_onRowMouseEnter(e,t,i){this.onRow?.(t,i)?.onMouseEnter?.(e)}_onRowMouseLeave(e,t,i){this.onRow?.(t,i)?.onMouseLeave?.(e)}_cellContext(e,t,i,n){let a=this._getRowKey(e,t),s=this._columnKey(i,n),u=Ma(e,i.dataIndex??i.key);return{row:e,rowKey:a,rowIndex:t,column:i,columnKey:s,columnIndex:n,value:u}}_onCellClick(e,t,i,n,a){if(this._isInteractiveTarget(e.target))return;let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onClick?.(e),this.onCell?.(s)?.onClick?.(e),n.onClick?.(e,s),this.dispatchEvent(new CustomEvent("cell-click",{detail:{...s,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellDblClick(e,t,i,n,a){if(this._isInteractiveTarget(e.target))return;let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onDoubleClick?.(e),this.onCell?.(s)?.onDoubleClick?.(e),n.onDblClick?.(e,s),this.dispatchEvent(new CustomEvent("cell-dblclick",{detail:{...s,clickCount:e.detail,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellContextMenu(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onContextMenu?.(e),this.onCell?.(s)?.onContextMenu?.(e),n.onContextMenu?.(e,s),this.dispatchEvent(new CustomEvent("cell-contextmenu",{detail:{...s,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}_onCellMouseEnter(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onMouseEnter?.(e),this.onCell?.(s)?.onMouseEnter?.(e)}_onCellMouseLeave(e,t,i,n,a){let s=this._cellContext(t,i,n,a);n.onCell?.(s)?.onMouseLeave?.(e),this.onCell?.(s)?.onMouseLeave?.(e)}_headerCellContext(e,t){return{column:e,columnKey:this._columnKey(e,t),columnIndex:t}}_callHeaderRowHandler(e,t,i){this.onHeaderRow?.(i,0)?.[t]?.(e)}_callHeaderCellHandler(e,t,i,n){this.onHeaderCell?.(this._headerCellContext(i,n))?.[t]?.(e)}_isColumnResizable(e){return e.resizable??this.columnResizable}_isColumnReorderable(e){return e.reorderable??this.columnReorderable}_columnMinWidth(e){return Math.max(48,fd(e.minWidth)??48)}_columnInfoByKey(e){if(!e)return null;let t=this._responsiveColumns(this._orderedColumns(this._columns())),i=t.findIndex((n,a)=>this._columnKeyForWidth(n,a)===e);return i>=0?{column:t[i],index:i}:null}_teardownColumnInteractions(){for(let e of this._columnInteractDisposers)e();this._columnInteractDisposers=[]}_scheduleColumnInteractions(){this._columnInteractRaf||(this._columnInteractRaf=requestAnimationFrame(()=>{this._columnInteractRaf=0,this._syncColumnInteractions()}))}_syncColumnInteractions(){if(!this.isConnected||this._columnResizeState||this._columnDragState||(this._teardownColumnInteractions(),!this.showHeader))return;let e=Array.from(this.renderRoot.querySelectorAll(".column-resizer"));for(let i of e){let n=(0,gd.default)(i).draggable({listeners:{start:a=>{let s=this._columnInfoByKey(i.dataset.columnKey);!s||!this._isColumnResizable(s.column)||this._startColumnResizeDrag(i,s.column,s.index,a.clientX??0)},move:a=>{this._moveColumnResize(a.clientX??0)},end:()=>{this._endColumnResize(),this._scheduleColumnInteractions()}}});this._columnInteractDisposers.push(()=>n.unset())}let t=Array.from(this.renderRoot.querySelectorAll(".column-drag-handle"));for(let i of t){let n=(0,gd.default)(i).draggable({listeners:{start:a=>{let s=this._columnInfoByKey(i.dataset.columnKey);!s||!this._isColumnReorderable(s.column)||this._startColumnReorderDrag(i,s.column,s.index,a.clientX??0,a.clientY??0)},move:a=>{this._moveColumnReorder(a.clientX??0,a.clientY??0)},end:()=>{this._endColumnReorder(),this._scheduleColumnInteractions()}}});this._columnInteractDisposers.push(()=>n.unset())}}_startColumnResizeDrag(e,t,i,n){if(!this._isColumnResizable(t))return;let a=this._columnKeyForWidth(t,i),s=this._lockCurrentColumnWidths();this._applyColumnWidthOverrides(s);let u=Math.max(this._columnMinWidth(t),s[a]??this._columnPixelWidth(t,i));this._columnResizeState={key:a,column:t,columnIndex:i,startX:n,startWidth:u,minWidth:this._columnMinWidth(t),nextWidth:u},e.classList.add("active"),this.toggleAttribute("resizing-column",!0)}_moveColumnResize(e){if(!this._columnResizeState)return;let t=Math.max(this._columnResizeState.minWidth,Math.round(this._columnResizeState.startWidth+e-this._columnResizeState.startX));this._columnResizeState.nextWidth=t;let i=this._columnResizeState;this._applyColumnWidthOverrides({...this._columnWidthOverrides,[i.key]:i.nextWidth}),this.dispatchEvent(new CustomEvent("column-resize",{detail:{key:i.key,width:i.nextWidth,column:i.column,columnIndex:i.columnIndex},bubbles:!0,composed:!0}))}_endColumnResize(){this._columnResizeState&&(this._columnResizeState=null,this._resizeRaf&&(cancelAnimationFrame(this._resizeRaf),this._resizeRaf=0),this.toggleAttribute("resizing-column",!1),this.renderRoot.querySelectorAll(".column-resizer.active").forEach(e=>e.classList.remove("active")))}_headerCellsByKey(e){return Array.from(this.renderRoot.querySelectorAll(`[data-column-key="${CSS.escape(e)}"]`))}_clearColumnDropMarkers(){this.renderRoot.querySelectorAll(".column-drop-before,.column-drop-after").forEach(e=>e.classList.remove("column-drop-before","column-drop-after"))}_clearColumnDragClasses(){this._clearColumnDropMarkers(),this.renderRoot.querySelectorAll(".column-drag-source,.column-drag-handle.active").forEach(e=>e.classList.remove("column-drag-source","active"))}_setColumnDropTarget(e,t="after"){let i=this._columnDragState;if(i&&!(i.overKey===e&&i.dropPosition===t)&&(this._clearColumnDropMarkers(),i.overKey=e,i.dropPosition=t,!!e))for(let n of this._headerCellsByKey(e))n.classList.add(t==="before"?"column-drop-before":"column-drop-after")}_applyColumnReorder(){let e=this._columnDragState;if(!e?.overKey)return;let i=this._responsiveColumns(this._orderedColumns(this._columns())).map((f,b)=>this._columnKey(f,b)),n=i.indexOf(e.key);if(n<0)return;let a=[...i],[s]=a.splice(n,1),u=a.indexOf(e.overKey);if(u<0||(a.splice(u+(e.dropPosition==="after"?1:0),0,s),a.join("\0")===i.join("\0")))return;this._columnOrderKeys=a;let h=this._responsiveColumns(this._orderedColumns(this._columns()));this._activeColumns=h,this._activeFixedMeta=this._fixedMeta(h),this.dispatchEvent(new CustomEvent("column-reorder",{detail:{fromKey:e.key,toKey:e.overKey,fromIndex:n,toIndex:a.indexOf(e.key),columns:h},bubbles:!0,composed:!0}))}_createColumnDragGhost(e,t,i){this._removeColumnDragGhost();let n=getComputedStyle(this),a=document.createElement("div");a.textContent=String(e.title??e.key??e.dataIndex??"Column"),a.style.cssText=["position:fixed","left:0","top:0","z-index:2147483000","pointer-events:none","display:inline-flex","align-items:center","max-width:220px","height:30px","padding:0 10px","border-radius:10px",`border:1px solid ${n.getPropertyValue("--lui-table-border").trim()||"rgb(0 0 0 / 0.12)"}`,`background:${n.getPropertyValue("--lui-color-bg-elevated").trim()||n.getPropertyValue("--lui-color-bg").trim()||"Canvas"}`,`color:${n.getPropertyValue("--lui-color-fg").trim()||"currentColor"}`,"box-shadow:0 12px 32px rgb(0 0 0 / 0.18)","font:600 13px/1 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif","white-space:nowrap","overflow:hidden","text-overflow:ellipsis","opacity:.96","will-change:transform"].join(";"),document.body.appendChild(a),this._columnDragGhost=a,this._moveColumnDragGhost(t,i)}_moveColumnDragGhost(e,t){this._columnDragGhost&&(this._columnDragGhost.style.transform=`translate3d(${Math.round(e+12)}px, ${Math.round(t+12)}px, 0)`)}_removeColumnDragGhost(){this._columnDragGhost?.remove(),this._columnDragGhost=null}_startColumnReorderDrag(e,t,i,n,a){if(!this._isColumnReorderable(t))return;let s=this._columnKeyForWidth(t,i);this._columnDragState={key:s,column:t,columnIndex:i,overKey:null,dropPosition:"after"},this._clearColumnDragClasses(),e.classList.add("active");for(let u of this._headerCellsByKey(s))u.classList.add("column-drag-source");this._createColumnDragGhost(t,n,a),this.toggleAttribute("dragging-column",!0)}_moveColumnReorder(e,t){let i=this._columnDragState;if(!i)return;this._moveColumnDragGhost(e,t);let s=[...this.renderRoot.elementsFromPoint?.(e,t)??[],...document.elementsFromPoint(e,t)].map(b=>b.closest?.("[data-column-key]")).find(b=>!!b),u=s?.dataset.columnKey;if(!s||!u||u===i.key){this._setColumnDropTarget(null);return}let h=s.getBoundingClientRect(),f=e<h.left+h.width/2?"before":"after";this._setColumnDropTarget(u,f)}_endColumnReorder(){this._columnDragState&&(this._applyColumnReorder(),this._columnDragState=null,this.toggleAttribute("dragging-column",!1),this._clearColumnDragClasses(),this._removeColumnDragGhost())}_renderColumnDragHandle(e,t){return this._isColumnReorderable(e)?y`
4254
4254
  <span
4255
4255
  class="column-drag-handle"
4256
4256
  part="column-drag-handle"