@ehfuse/mui-virtual-data-table 1.1.4 → 1.1.6

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.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{forwardRef as rt,useCallback as be,useMemo as nt,useRef as V,useEffect as ye,memo as Lt,useState as ot}from"react";import{flushSync as Dt}from"react-dom";import{Box as xe,Table as Et,TableBody as Ht,TableCell as Ye,TableContainer as It,TableHead as Rt,TableRow as _e,TableSortLabel as it,Paper as $t,Typography as Ot}from"@mui/material";import{TableVirtuoso as Pt}from"react-virtuoso";import{jsx as tt}from"react/jsx-runtime";import{useRef as lt,useState as pt,useEffect as ft}from"react";import{Box as mt,CircularProgress as ht}from"@mui/material";var Ae=function(){return Ae=Object.assign||function(u){for(var g,x=1,T=arguments.length;x<T;x++){g=arguments[x];for(var E in g)Object.prototype.hasOwnProperty.call(g,E)&&(u[E]=g[E])}return u},Ae.apply(this,arguments)};function at(a){var u=a.visible,g=a.onComplete,x=a.fadeoutDuration,T=x===void 0?200:x,E=a.exitDelay,d=E===void 0?0:E,N=a.size,k=N===void 0?40:N,F=a.className,ee=a.style,z=a.sx,_=a.indicator,L=a.background,G=L===void 0?{show:!0,color:"255, 255, 255",opacity:.9}:L,ue=lt(void 0),l=lt(null),U=pt(u),de=U[0],ve=U[1],O=G.show,we=O===void 0?!0:O,S=G.color,D=S===void 0?"255, 255, 255":S,pe=G.opacity,te=pe===void 0?.9:pe;if(ft(function(){var re=ue.current;if(re===!0&&u===!1&&l.current){var X=l.current;X.style.opacity="0",setTimeout(function(){ve(!1),g?.()},T+d)}else u===!0&&(ve(!0),l.current&&(l.current.style.opacity="1"));ue.current=u},[u,g,T,d]),!de)return null;var Le=function(){return typeof _=="string"?tt("img",{src:_,alt:"Loading",style:{width:k,height:k}}):_||tt(ht,{size:k})},fe=function(){return we?D.startsWith("rgba")?{backgroundColor:D}:/^\d+,\s*\d+,\s*\d+$/.test(D)?{backgroundColor:"rgba(".concat(D,", ").concat(te,")")}:te!==1?{backgroundColor:D,"&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:D,opacity:te,zIndex:-1}}:{backgroundColor:D}:{backgroundColor:"transparent"}};return tt(mt,{ref:l,className:F,style:Ae({},ee),sx:Ae(Ae({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,opacity:u?1:0,transition:"opacity ".concat(T,"ms ease-out")},fe()),z),children:Le()})}import{useRef as Q,useEffect as ce,useState as q,useCallback as R,useMemo as We,forwardRef as gt,useImperativeHandle as bt,useLayoutEffect as yt}from"react";import{jsx as Re,jsxs as ct}from"react/jsx-runtime";var xt=["editor","textarea","input","select","textfield","form-control","contenteditable","MuiInputBase-input","MuiSelect-select","MuiOutlinedInput-input","MuiFilledInput-input","MuiInput-input","MuiFormControl-root","MuiTextField-root","MuiSelect-root","MuiOutlinedInput-root","MuiFilledInput-root","MuiInput-root","MuiAutocomplete-input","MuiDatePicker-input","MuiSlider-thumb","MuiSlider-rail","MuiSlider-track","MuiSlider-mark","MuiSlider-markLabel","MuiSlider-root","MuiSlider-colorPrimary","MuiSlider-sizeMedium","MuiIconButton-root","MuiButton-root","MuiButtonBase-root","MuiTouchRipple-root","MuiCheckbox-root","MuiRadio-root","MuiSwitch-root","PrivateSwitchBase-root","ant-input","ant-input-affix-wrapper","ant-input-group-addon","ant-input-number","ant-input-number-handler","ant-select","ant-select-selector","ant-select-selection-search","ant-select-dropdown","ant-cascader","ant-cascader-input","ant-picker","ant-picker-input","ant-time-picker","ant-calendar-picker","ant-slider","ant-slider-track","ant-slider-handle","ant-switch","ant-checkbox","ant-checkbox-wrapper","ant-radio","ant-radio-wrapper","ant-rate","ant-upload","ant-upload-drag","ant-form-item","ant-form-item-control","ant-btn","ant-dropdown","ant-dropdown-trigger","ant-menu","ant-menu-item","ant-tooltip","ant-popover","ant-modal","ant-drawer","ant-tree-select","ant-auto-complete","ant-mentions","ant-transfer","ui-input","ui-textarea","ui-select","ui-select-trigger","ui-select-content","ui-select-item","ui-button","ui-checkbox","ui-radio-group","ui-switch","ui-slider","ui-range-slider","ui-calendar","ui-date-picker","ui-combobox","ui-command","ui-command-input","ui-popover","ui-dialog","ui-sheet","ui-dropdown-menu","ui-context-menu","ui-menubar","ui-navigation-menu","ui-form","ui-form-control","ui-form-item","ui-form-field","ui-label","radix-ui","radix-select","radix-dropdown","radix-dialog","radix-popover","radix-accordion","radix-tabs","radix-slider","radix-switch","radix-checkbox","radix-radio","ql-editor","ql-container","ql-toolbar","ql-picker","ql-picker-label","ql-picker-options","ql-formats","ql-snow","ql-bubble","quill","quilleditor","monaco-editor","monaco-editor-background","view-lines","decorationsOverviewRuler","monaco-scrollable-element","CodeMirror","CodeMirror-code","CodeMirror-lines","CodeMirror-scroll","CodeMirror-sizer","cm-editor","cm-focused","cm-content","tox-editor-container","tox-editor-header","tox-edit-area","tox-tinymce","mce-content-body","ck-editor","ck-content","ck-toolbar","ck-editor__editable","ck-widget","slate-editor","slate-content","DraftEditor-root","DraftEditor-editorContainer","public-DraftEditor-content","ehfuse-editor","ehfuse-editor-wrapper","ehfuse-editor-content","ehfuse-toolbar","ehfuse-toolbar-group","ehfuse-cursor","text-editor","rich-text-editor","wysiwyg","ace_editor","ace_content"],st=(a,u)=>{let g=a.tagName.toLowerCase(),x=["text","password","email","number","search","tel","url","checkbox","radio"];if(g==="input"){let T=a.type;return x.includes(T)}if(["textarea","select","button"].includes(g)||["svg","path","circle","rect","line","polygon","polyline"].includes(g)||a.getAttribute("contenteditable")==="true")return!0;if(u?.excludeSelectors){for(let T of u.excludeSelectors)if(a.matches(T))return!0}return vt(a,u)},vt=(a,u)=>{let g=[...xt,...u?.excludeClasses||[]],x=a,T=0,E=5;for(;x&&T<=E;){if(g.some(d=>x.classList.contains(d)))return!0;if(x.classList.contains("MuiDialogContent-root"))break;x=x.parentElement,T++}return!1},wt={},Mt={},Tt={},St={},Ct={},kt=gt(({className:a="",style:u={},containerStyle:g={},contentStyle:x={},children:T,onScroll:E,thumb:d=wt,track:N=Mt,arrows:k=Tt,dragScroll:F=St,autoHide:ee=Ct,showScrollbar:z=!0,detectInnerScroll:_=!1},L)=>{let G=Q({});ce(()=>{G.current={children:T,onScroll:E,showScrollbar:z,thumb:d,track:N,arrows:k,dragScroll:F,autoHide:ee}});let ue=Q(null),l=Q(null),U=Q(null),de=Q(null),ve=Q(null),O=Q(null),[we,S]=q(!1),[D,pe]=q(!1),[te,Le]=q(!1),[fe,re]=q({y:0,scrollTop:0}),[X,Ue]=q(0),[Xe,Oe]=q(0),[Pe,Ke]=q(!1),[ie,De]=q(!1),[j,me]=q({x:0,y:0,scrollTop:0,scrollLeft:0}),[Je,Ze]=q(null),[Me,le]=q(null),[Be,Ne]=q(!1),Ee=Q(null),[qe,He]=q(!1),ae=Q(null),ne=Q(null),se=Q(null),H=We(()=>{let t=d.color??"#606060";return{width:d.width??8,minHeight:d.minHeight??50,radius:d.radius??(d.width??8)/2,color:t,opacity:d.opacity??.6,hoverColor:d.hoverColor??t,hoverOpacity:d.hoverOpacity??1}},[d]),b=We(()=>({width:N.width??16,color:N.color??"rgba(128, 128, 128, 0.1)",visible:N.visible??!0,alignment:N.alignment??"center",radius:N.radius??H.radius??4,margin:N.margin??4}),[N,H.radius]),K=We(()=>{let t=k.color??"#808080";return{visible:k.visible??!1,step:k.step??50,color:t,opacity:k.opacity??.6,hoverColor:k.hoverColor??t,hoverOpacity:k.hoverOpacity??1}},[k]),je=We(()=>({enabled:F.enabled??!0,excludeClasses:F.excludeClasses??[],excludeSelectors:F.excludeSelectors??[]}),[F]),m=We(()=>({enabled:ee.enabled??!0,delay:ee.delay??1500,delayOnWheel:ee.delayOnWheel??700}),[ee]),r=H.width,i=b.width,y=H.minHeight,p=K.visible,J=K.step,e=R(()=>{if(!l.current)return;let t=document.activeElement;t&&l.current.contains(t)&&t!==l.current||l.current.focus()},[]);bt(L,()=>({getScrollContainer:()=>l.current,scrollTo:t=>{l.current&&l.current.scrollTo(t)},get scrollTop(){return l.current?.scrollTop||0},get scrollHeight(){return l.current?.scrollHeight||0},get clientHeight(){return l.current?.clientHeight||0}}),[]);let f=R(()=>{if(O.current){let n=O.current;if(document.contains(n)&&n.scrollHeight>n.clientHeight+2)return n;O.current=null}if(!l.current)return null;if(U.current&&U.current.scrollHeight>l.current.clientHeight+2)return O.current=l.current,l.current;if(!_)return null;let t=l.current.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]');for(let n of t){let o=n;if(o!==l.current&&o.classList.contains("overlay-scrollbar-container"))continue;let s=o.parentElement,w=!1;for(;s&&s!==l.current;){if(s.classList.contains("overlay-scrollbar-container")&&s!==l.current){w=!0;break}s=s.parentElement}if(!w&&o.scrollHeight>o.clientHeight+2)return O.current=o,o}return null},[]),$=R(()=>f()!==null,[f]),C=R(()=>{ae.current&&(clearTimeout(ae.current),ae.current=null)},[]),Ve=R(()=>{ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),Ie=R(()=>{se.current&&(clearTimeout(se.current),se.current=null)},[]),I=R(t=>{m.enabled&&(C(),ae.current=setTimeout(()=>{S(!1),ae.current=null},t))},[C,m.enabled]),h=R(()=>{let t=f();if(!t){S(!1),Ke(!1),C();return}if(Ke(!0),!de.current)return;m.enabled||(S(!0),C());let n=t.clientHeight,o=t.scrollHeight,s=t.scrollTop,w=0;if(ue.current){let Fe=window.getComputedStyle(ue.current),et=parseFloat(Fe.paddingTop)||0,dt=parseFloat(Fe.paddingBottom)||0;w=et+dt}let M=p?r*2+b.margin*4:b.margin*2,P=n-M+w,B=n/o,ke=Math.max(P*B,y),ze=o-n,Z=P-ke,Qe=ze>0?s/ze*Z:0;Ue(ke),Oe(Qe)},[f,C,p,r,y,m.enabled]),oe=R(t=>{t.preventDefault(),t.stopPropagation();let n=f();n&&(pe(!0),re({y:t.clientY,scrollTop:n.scrollTop}),C(),S(!0),e())},[f,C,e]),A=R(t=>{if(!D)return;let n=f();if(!n)return;let o=n.clientHeight,s=n.scrollHeight-o,w=t.clientY-fe.y,M=o-X,P=w/M*s,B=Math.max(0,Math.min(s,fe.scrollTop+P));n.scrollTop=B,h()},[D,fe,X,h,f]),W=R(()=>{pe(!1),$()&&I(m.delay)},[$,I,m.delay]),he=R(t=>{if(!de.current)return;let n=de.current.getBoundingClientRect(),o=t.clientY-n.top,s=f();if(!s)return;let w=s.clientHeight,M=s.scrollHeight,P=o/w*(M-w);s.scrollTop=Math.max(0,Math.min(M-w,P)),h(),S(!0),I(m.delay),e()},[h,I,m.delay,f,e]),Te=R(t=>{if(t.preventDefault(),t.stopPropagation(),!l.current)return;let n=Math.max(0,l.current.scrollTop-J);l.current.scrollTop=n,h(),S(!0),I(m.delay),e()},[h,I,J,m.delay,e]),ge=R(t=>{if(t.preventDefault(),t.stopPropagation(),!l.current||!U.current)return;let n=l.current,o=U.current.scrollHeight-n.clientHeight,s=Math.min(o,n.scrollTop+J);n.scrollTop=s,h(),S(!0),I(m.delay),e()},[h,I,J,m.delay,e]),Se=R(t=>{if(!je.enabled)return;let n=t.target;if(st(n,je)||t.button!==0)return;let o=f();o&&(o.scrollHeight<=o.clientHeight||(t.preventDefault(),De(!0),me({x:t.clientX,y:t.clientY,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft||0}),C()))},[je,st,f,C]),Y=R(t=>{if(!ie)return;let n=f();if(!n)return;let o=j.x-t.clientX,s=j.y-t.clientY;if(Math.abs(s)<3&&Math.abs(o)<3)return;S(!0);let w=Math.max(0,Math.min(n.scrollHeight-n.clientHeight,j.scrollTop+s));n.scrollTop=w,h()},[ie,j,f,h]),Ce=R(()=>{De(!1),$()&&I(m.delay)},[$,I,m.delay]);ce(()=>{let t=M=>{h(),C(),S(!0);let P=qe?m.delayOnWheel:m.delay;I(P),E&&E(M)},n=()=>{He(!0),Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(()=>{He(!1)},300),C(),Ie(),se.current=setTimeout(()=>{S(!0),se.current=null},50)},o=[],s=f();s&&o.push(s);let w=l.current;return w&&!s&&(o.push(w),w.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]').forEach(M=>{let P=M;if(P!==w&&P.classList.contains("overlay-scrollbar-container"))return;let B=P.parentElement;for(;B&&B!==w;){if(B.classList.contains("overlay-scrollbar-container")&&B!==w)return;B=B.parentElement}o.push(P)})),o.forEach(M=>{M.addEventListener("scroll",t,{passive:!0}),M.addEventListener("wheel",n,{passive:!0})}),()=>{o.forEach(M=>{M.removeEventListener("scroll",t),M.removeEventListener("wheel",n)}),Ee.current&&clearTimeout(Ee.current),se.current&&clearTimeout(se.current)}},[f,h,E,C,I,m,qe]),ce(()=>{let t=o=>{let s=f();if(!s)return;let{key:w}=o,{scrollTop:M,scrollHeight:P,clientHeight:B}=s,ke=P-B,ze=50,Z=null;switch(w){case"ArrowUp":o.preventDefault(),Z=Math.max(0,M-ze);break;case"ArrowDown":o.preventDefault(),Z=Math.min(ke,M+ze);break;case"PageUp":o.preventDefault(),Z=Math.max(0,M-B);break;case"PageDown":o.preventDefault(),Z=Math.min(ke,M+B);break;case"Home":o.preventDefault(),Z=0;break;case"End":o.preventDefault(),Z=ke;break;default:return}if(Z!==null){let Qe=Z/ke,Fe=p?r*2+b.margin*4:b.margin*2,et=(B-Fe-X)*Qe;Oe(et),s.scrollTop=Z,C(),S(!0),I(m.delay)}},n=l.current;if(n)return n.addEventListener("keydown",t),()=>{n.removeEventListener("keydown",t)}},[f,p,r,b.margin,X,C,I,m.delay]),ce(()=>{if(ie)return document.addEventListener("mousemove",Y),document.addEventListener("mouseup",Ce),()=>{document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",Ce)}},[ie,Y,Ce]),ce(()=>{if(D)return document.addEventListener("mousemove",A),document.addEventListener("mouseup",W),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",W)}},[D,A,W]),ce(()=>{h();let t=setTimeout(()=>{h()},100);return()=>clearTimeout(t)},[h]),yt(()=>{Ne(!0),h(),!m.enabled&&$()&&S(!0)},[$,h,m.enabled]),ce(()=>{let t=new ResizeObserver(()=>{h()}),n=[];return l.current&&n.push(l.current),U.current&&n.push(U.current),O.current&&document.contains(O.current)&&n.push(O.current),n.forEach(o=>{t.observe(o)}),()=>t.disconnect()},[h]),ce(()=>{if(!l.current)return;let t=new MutationObserver(()=>{O.current=null,h()});return t.observe(l.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>t.disconnect()},[h]);let v=Math.max(i,r);return ce(()=>{let t="overlay-scrollbar-webkit-hide",n=document.getElementById(t);n&&n.remove();let o=document.createElement("style");return o.id=t,o.textContent=`
1
+ import{forwardRef as rt,useCallback as ye,useMemo as nt,useRef as j,useEffect as de,memo as Lt,useState as ot}from"react";import{flushSync as Dt}from"react-dom";import{Box as ve,Table as Et,TableBody as Ht,TableCell as We,TableContainer as It,TableHead as $t,TableRow as Ge,TableSortLabel as it,Paper as Ot,Typography as Bt}from"@mui/material";import{TableVirtuoso as Pt}from"react-virtuoso";import{jsx as tt}from"react/jsx-runtime";import{useRef as lt,useState as pt,useEffect as ft}from"react";import{Box as mt,CircularProgress as ht}from"@mui/material";var ze=function(){return ze=Object.assign||function(d){for(var y,h=1,g=arguments.length;h<g;h++){y=arguments[h];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(d[E]=y[E])}return d},ze.apply(this,arguments)};function at(s){var d=s.visible,y=s.onComplete,h=s.fadeoutDuration,g=h===void 0?200:h,E=s.exitDelay,p=E===void 0?0:E,R=s.size,k=R===void 0?40:R,Y=s.className,te=s.style,z=s.sx,q=s.indicator,L=s.background,V=L===void 0?{show:!0,color:"255, 255, 255",opacity:.9}:L,pe=lt(void 0),l=lt(null),F=pt(d),fe=F[0],xe=F[1],$=V.show,Te=$===void 0?!0:$,S=V.color,D=S===void 0?"255, 255, 255":S,me=V.opacity,re=me===void 0?.9:me;if(ft(function(){var ie=pe.current;if(ie===!0&&d===!1&&l.current){var A=l.current;A.style.opacity="0",setTimeout(function(){xe(!1),y?.()},g+p)}else d===!0&&(xe(!0),l.current&&(l.current.style.opacity="1"));pe.current=d},[d,y,g,p]),!fe)return null;var Le=function(){return typeof q=="string"?tt("img",{src:q,alt:"Loading",style:{width:k,height:k}}):q||tt(ht,{size:k})},he=function(){return Te?D.startsWith("rgba")?{backgroundColor:D}:/^\d+,\s*\d+,\s*\d+$/.test(D)?{backgroundColor:"rgba(".concat(D,", ").concat(re,")")}:re!==1?{backgroundColor:D,"&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:D,opacity:re,zIndex:-1}}:{backgroundColor:D}:{backgroundColor:"transparent"}};return tt(mt,{ref:l,className:Y,style:ze({},te),sx:ze(ze({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,opacity:d?1:0,transition:"opacity ".concat(g,"ms ease-out")},he()),z),children:Le()})}import{useRef as ee,useEffect as ue,useState as W,useCallback as H,useMemo as Ae,forwardRef as gt,useImperativeHandle as bt,useLayoutEffect as yt}from"react";import{jsx as Oe,jsxs as ct}from"react/jsx-runtime";var vt=["editor","textarea","input","select","textfield","form-control","contenteditable","MuiInputBase-input","MuiSelect-select","MuiOutlinedInput-input","MuiFilledInput-input","MuiInput-input","MuiFormControl-root","MuiTextField-root","MuiSelect-root","MuiOutlinedInput-root","MuiFilledInput-root","MuiInput-root","MuiAutocomplete-input","MuiDatePicker-input","MuiSlider-thumb","MuiSlider-rail","MuiSlider-track","MuiSlider-mark","MuiSlider-markLabel","MuiSlider-root","MuiSlider-colorPrimary","MuiSlider-sizeMedium","MuiIconButton-root","MuiButton-root","MuiButtonBase-root","MuiTouchRipple-root","MuiCheckbox-root","MuiRadio-root","MuiSwitch-root","PrivateSwitchBase-root","ant-input","ant-input-affix-wrapper","ant-input-group-addon","ant-input-number","ant-input-number-handler","ant-select","ant-select-selector","ant-select-selection-search","ant-select-dropdown","ant-cascader","ant-cascader-input","ant-picker","ant-picker-input","ant-time-picker","ant-calendar-picker","ant-slider","ant-slider-track","ant-slider-handle","ant-switch","ant-checkbox","ant-checkbox-wrapper","ant-radio","ant-radio-wrapper","ant-rate","ant-upload","ant-upload-drag","ant-form-item","ant-form-item-control","ant-btn","ant-dropdown","ant-dropdown-trigger","ant-menu","ant-menu-item","ant-tooltip","ant-popover","ant-modal","ant-drawer","ant-tree-select","ant-auto-complete","ant-mentions","ant-transfer","ui-input","ui-textarea","ui-select","ui-select-trigger","ui-select-content","ui-select-item","ui-button","ui-checkbox","ui-radio-group","ui-switch","ui-slider","ui-range-slider","ui-calendar","ui-date-picker","ui-combobox","ui-command","ui-command-input","ui-popover","ui-dialog","ui-sheet","ui-dropdown-menu","ui-context-menu","ui-menubar","ui-navigation-menu","ui-form","ui-form-control","ui-form-item","ui-form-field","ui-label","radix-ui","radix-select","radix-dropdown","radix-dialog","radix-popover","radix-accordion","radix-tabs","radix-slider","radix-switch","radix-checkbox","radix-radio","ql-editor","ql-container","ql-toolbar","ql-picker","ql-picker-label","ql-picker-options","ql-formats","ql-snow","ql-bubble","quill","quilleditor","monaco-editor","monaco-editor-background","view-lines","decorationsOverviewRuler","monaco-scrollable-element","CodeMirror","CodeMirror-code","CodeMirror-lines","CodeMirror-scroll","CodeMirror-sizer","cm-editor","cm-focused","cm-content","tox-editor-container","tox-editor-header","tox-edit-area","tox-tinymce","mce-content-body","ck-editor","ck-content","ck-toolbar","ck-editor__editable","ck-widget","slate-editor","slate-content","DraftEditor-root","DraftEditor-editorContainer","public-DraftEditor-content","ehfuse-editor","ehfuse-editor-wrapper","ehfuse-editor-content","ehfuse-toolbar","ehfuse-toolbar-group","ehfuse-cursor","text-editor","rich-text-editor","wysiwyg","ace_editor","ace_content"],st=(s,d)=>{let y=s.tagName.toLowerCase(),h=["text","password","email","number","search","tel","url","checkbox","radio"];if(y==="input"){let g=s.type;return h.includes(g)}if(["textarea","select","button"].includes(y)||["svg","path","circle","rect","line","polygon","polyline"].includes(y)||s.getAttribute("contenteditable")==="true")return!0;if(d?.excludeSelectors){for(let g of d.excludeSelectors)if(s.matches(g))return!0}return xt(s,d)},xt=(s,d)=>{let y=[...vt,...d?.excludeClasses||[]],h=s,g=0,E=5;for(;h&&g<=E;){if(y.some(p=>h.classList.contains(p)))return!0;if(h.classList.contains("MuiDialogContent-root"))break;h=h.parentElement,g++}return!1},Tt={},Mt={},wt={},St={},Ct={},kt=gt(({className:s="",style:d={},containerStyle:y={},contentStyle:h={},children:g,onScroll:E,thumb:p=Tt,track:R=Mt,arrows:k=wt,dragScroll:Y=St,autoHide:te=Ct,showScrollbar:z=!0,detectInnerScroll:q=!1},L)=>{let V=ee({});ue(()=>{V.current={children:g,onScroll:E,showScrollbar:z,thumb:p,track:R,arrows:k,dragScroll:Y,autoHide:te}});let pe=ee(null),l=ee(null),F=ee(null),fe=ee(null),xe=ee(null),$=ee(null),[Te,S]=W(!1),[D,me]=W(!1),[re,Le]=W(!1),[he,ie]=W({y:0,scrollTop:0}),[A,Ye]=W(0),[Xe,qe]=W(0),[De,Ve]=W(!1),[Ee,He]=W(!1),[ge,X]=W({x:0,y:0,scrollTop:0,scrollLeft:0}),[Me,Ke]=W(null),[we,Se]=W(null),[Pe,Ie]=W(!1),le=ee(null),[Je,Fe]=W(!1),ae=ee(null),se=ee(null),_=ee(null),O=Ae(()=>{let t=p.color??"#606060";return{width:p.width??8,minHeight:p.minHeight??50,radius:p.radius??(p.width??8)/2,color:t,opacity:p.opacity??.6,hoverColor:p.hoverColor??t,hoverOpacity:p.hoverOpacity??1}},[p]),b=Ae(()=>({width:R.width??16,color:R.color??"rgba(128, 128, 128, 0.1)",visible:R.visible??!0,alignment:R.alignment??"center",radius:R.radius??O.radius??4,margin:R.margin??4}),[R,O.radius]),G=Ae(()=>{let t=k.color??"#808080";return{visible:k.visible??!1,step:k.step??50,color:t,opacity:k.opacity??.6,hoverColor:k.hoverColor??t,hoverOpacity:k.hoverOpacity??1}},[k]),Re=Ae(()=>({enabled:Y.enabled??!0,excludeClasses:Y.excludeClasses??[],excludeSelectors:Y.excludeSelectors??[]}),[Y]),v=Ae(()=>({enabled:te.enabled??!0,delay:te.delay??1500,delayOnWheel:te.delayOnWheel??700}),[te]),C=O.width,o=b.width,i=O.minHeight,f=G.visible,T=G.step,I=H(()=>{if(!l.current)return;let t=document.activeElement;t&&l.current.contains(t)&&t!==l.current||l.current.focus()},[]);bt(L,()=>({getScrollContainer:()=>l.current,scrollTo:t=>{l.current&&l.current.scrollTo(t)},get scrollTop(){return l.current?.scrollTop||0},get scrollHeight(){return l.current?.scrollHeight||0},get clientHeight(){return l.current?.clientHeight||0}}),[]);let e=H(()=>{if($.current){let n=$.current;if(document.contains(n)&&n.scrollHeight>n.clientHeight+2)return n;$.current=null}if(!l.current)return null;if(F.current&&F.current.scrollHeight>l.current.clientHeight+2)return $.current=l.current,l.current;if(!q)return null;let t=l.current.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]');for(let n of t){let r=n;if(r!==l.current&&r.classList.contains("overlay-scrollbar-container"))continue;let a=r.parentElement,c=!1;for(;a&&a!==l.current;){if(a.classList.contains("overlay-scrollbar-container")&&a!==l.current){c=!0;break}a=a.parentElement}if(!c&&r.scrollHeight>r.clientHeight+2)return $.current=r,r}return null},[]),N=H(()=>e()!==null,[e]),M=H(()=>{ae.current&&(clearTimeout(ae.current),ae.current=null)},[]),Ze=H(()=>{se.current&&(clearTimeout(se.current),se.current=null)},[]),U=H(()=>{_.current&&(clearTimeout(_.current),_.current=null)},[]),x=H(t=>{v.enabled&&(M(),ae.current=setTimeout(()=>{S(!1),ae.current=null},t))},[M,v.enabled]),m=H(()=>{let t=e();if(!t){S(!1),Ve(!1),M();return}if(Ve(!0),!fe.current)return;v.enabled||(S(!0),M());let n=t.clientHeight,r=t.scrollHeight,a=t.scrollTop,c=0;if(pe.current){let _e=window.getComputedStyle(pe.current),et=parseFloat(_e.paddingTop)||0,dt=parseFloat(_e.paddingBottom)||0;c=et+dt}let w=f?C*2+b.margin*4:b.margin*2,B=n-w+c,P=n/r,ke=Math.max(B*P,i),je=r-n,Q=B-ke,Qe=je>0?a/je*Q:0;Ye(ke),qe(Qe)},[e,M,f,C,i,v.enabled]),$e=H(t=>{t.preventDefault(),t.stopPropagation();let n=e();n&&(me(!0),ie({y:t.clientY,scrollTop:n.scrollTop}),M(),S(!0),I())},[e,M,I]),Ne=H(t=>{if(!D)return;let n=e();if(!n)return;let r=n.clientHeight,a=n.scrollHeight-r,c=t.clientY-he.y,w=r-A,B=c/w*a,P=Math.max(0,Math.min(a,he.scrollTop+B));n.scrollTop=P,m()},[D,he,A,m,e]),Ce=H(()=>{me(!1),N()&&x(v.delay)},[N,x,v.delay]),ne=H(t=>{if(!fe.current)return;let n=fe.current.getBoundingClientRect(),r=t.clientY-n.top,a=e();if(!a)return;let c=a.clientHeight,w=a.scrollHeight,B=r/c*(w-c);a.scrollTop=Math.max(0,Math.min(w-c,B)),m(),S(!0),x(v.delay),I()},[m,x,v.delay,e,I]),K=H(t=>{if(t.preventDefault(),t.stopPropagation(),!l.current)return;let n=Math.max(0,l.current.scrollTop-T);l.current.scrollTop=n,m(),S(!0),x(v.delay),I()},[m,x,T,v.delay,I]),J=H(t=>{if(t.preventDefault(),t.stopPropagation(),!l.current||!F.current)return;let n=l.current,r=F.current.scrollHeight-n.clientHeight,a=Math.min(r,n.scrollTop+T);n.scrollTop=a,m(),S(!0),x(v.delay),I()},[m,x,T,v.delay,I]),be=H(t=>{if(!Re.enabled)return;let n=t.target;if(st(n,Re)||t.button!==0)return;let r=e();r&&(r.scrollHeight<=r.clientHeight||(t.preventDefault(),He(!0),X({x:t.clientX,y:t.clientY,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft||0}),M()))},[Re,st,e,M]),ce=H(t=>{if(!Ee)return;let n=e();if(!n)return;let r=ge.x-t.clientX,a=ge.y-t.clientY;if(Math.abs(a)<3&&Math.abs(r)<3)return;S(!0);let c=Math.max(0,Math.min(n.scrollHeight-n.clientHeight,ge.scrollTop+a));n.scrollTop=c,m()},[Ee,ge,e,m]),oe=H(()=>{He(!1),N()&&x(v.delay)},[N,x,v.delay]);ue(()=>{let t=w=>{m(),M(),S(!0);let B=Je?v.delayOnWheel:v.delay;x(B),E&&E(w)},n=()=>{Fe(!0),le.current&&clearTimeout(le.current),le.current=setTimeout(()=>{Fe(!1)},300),M(),U(),_.current=setTimeout(()=>{S(!0),_.current=null},50)},r=[],a=e();a&&r.push(a);let c=l.current;return c&&!a&&(r.push(c),c.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]').forEach(w=>{let B=w;if(B!==c&&B.classList.contains("overlay-scrollbar-container"))return;let P=B.parentElement;for(;P&&P!==c;){if(P.classList.contains("overlay-scrollbar-container")&&P!==c)return;P=P.parentElement}r.push(B)})),r.forEach(w=>{w.addEventListener("scroll",t,{passive:!0}),w.addEventListener("wheel",n,{passive:!0})}),()=>{r.forEach(w=>{w.removeEventListener("scroll",t),w.removeEventListener("wheel",n)}),le.current&&clearTimeout(le.current),_.current&&clearTimeout(_.current)}},[e,m,E,M,x,v,Je]),ue(()=>{let t=r=>{let a=e();if(!a)return;let{key:c}=r,{scrollTop:w,scrollHeight:B,clientHeight:P}=a,ke=B-P,je=50,Q=null;switch(c){case"ArrowUp":r.preventDefault(),Q=Math.max(0,w-je);break;case"ArrowDown":r.preventDefault(),Q=Math.min(ke,w+je);break;case"PageUp":r.preventDefault(),Q=Math.max(0,w-P);break;case"PageDown":r.preventDefault(),Q=Math.min(ke,w+P);break;case"Home":r.preventDefault(),Q=0;break;case"End":r.preventDefault(),Q=ke;break;default:return}if(Q!==null){let Qe=Q/ke,_e=f?C*2+b.margin*4:b.margin*2,et=(P-_e-A)*Qe;qe(et),a.scrollTop=Q,M(),S(!0),x(v.delay)}},n=l.current;if(n)return n.addEventListener("keydown",t),()=>{n.removeEventListener("keydown",t)}},[e,f,C,b.margin,A,M,x,v.delay]),ue(()=>{if(Ee)return document.addEventListener("mousemove",ce),document.addEventListener("mouseup",oe),()=>{document.removeEventListener("mousemove",ce),document.removeEventListener("mouseup",oe)}},[Ee,ce,oe]),ue(()=>{if(D)return document.addEventListener("mousemove",Ne),document.addEventListener("mouseup",Ce),()=>{document.removeEventListener("mousemove",Ne),document.removeEventListener("mouseup",Ce)}},[D,Ne,Ce]),ue(()=>{m();let t=setTimeout(()=>{m()},100);return()=>clearTimeout(t)},[m]),yt(()=>{Ie(!0),m(),!v.enabled&&N()&&S(!0)},[N,m,v.enabled]),ue(()=>{let t=new ResizeObserver(()=>{m()}),n=[];return l.current&&n.push(l.current),F.current&&n.push(F.current),$.current&&document.contains($.current)&&n.push($.current),n.forEach(r=>{t.observe(r)}),()=>t.disconnect()},[m]),ue(()=>{if(!l.current)return;let t=new MutationObserver(()=>{$.current=null,m()});return t.observe(l.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>t.disconnect()},[m]);let Z=Math.max(o,C);return ue(()=>{let t="overlay-scrollbar-webkit-hide",n=document.getElementById(t);n&&n.remove();let r=document.createElement("style");return r.id=t,r.textContent=`
2
2
  .overlay-scrollbar-container::-webkit-scrollbar {
3
3
  display: none !important;
4
4
  width: 0 !important;
@@ -18,7 +18,7 @@ import{forwardRef as rt,useCallback as be,useMemo as nt,useRef as V,useEffect as
18
18
  outline: 2px solid rgba(0, 123, 255, 0.5);
19
19
  outline-offset: -2px;
20
20
  }
21
- `,document.head.appendChild(o),()=>{let s=document.getElementById(t);s&&s.remove()}},[]),ct("div",{ref:ue,className:`overlay-scrollbar-wrapper ${a}`,style:{display:"flex",flexDirection:"column",position:"relative",minHeight:0,height:"100%",flex:"1 1 0%",...u},children:[Re("div",{ref:l,className:"overlay-scrollbar-container",tabIndex:-1,onMouseDown:Se,style:{display:"flex",width:"100%",flex:"1 1 auto",minHeight:0,overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none",outline:"none",userSelect:ie?"none":"auto",...g},children:Re("div",{ref:U,className:"overlay-scrollbar-content",style:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",...x},children:T})}),z&&Pe&&ct("div",{ref:de,className:"overlay-scrollbar-track",onMouseEnter:()=>{C(),ne.current=setTimeout(()=>{S(!0),ne.current=null},100)},onMouseLeave:()=>{Ve(),D||I(m.delay)},style:{position:"absolute",top:0,right:0,width:`${v}px`,height:"100%",opacity:we?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[b.visible&&Re("div",{className:"overlay-scrollbar-track-background",onClick:t=>{t.preventDefault(),t.stopPropagation(),he(t)},style:{position:"absolute",top:p?`${H.width+b.margin*2}px`:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(v-H.width)/2}px`,width:`${H.width}px`,height:p?`calc(100% - ${H.width*2+b.margin*4}px)`:`calc(100% - ${b.margin*2}px)`,backgroundColor:b.color,borderRadius:`${b.radius}px`,cursor:"pointer"}}),Re("div",{ref:ve,className:"overlay-scrollbar-thumb",onMouseDown:oe,onMouseEnter:()=>Le(!0),onMouseLeave:()=>Le(!1),style:{position:"absolute",top:`${(p?r+b.margin*2:b.margin)+Xe}px`,right:b.alignment==="right"?"0px":`${(v-r)/2}px`,width:`${r}px`,height:`${Math.max(X,y)}px`,backgroundColor:te||D?H.hoverColor:H.color,opacity:te||D?H.hoverOpacity:H.opacity,borderRadius:`${H.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),z&&Pe&&p&&Re("div",{className:"overlay-scrollbar-up-arrow",onClick:Te,onMouseEnter:()=>le("up"),onMouseLeave:()=>le(null),style:{position:"absolute",top:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(v-r)/2}px`,width:`${r}px`,height:`${r}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(r*.75,8)}px`,color:Me==="up"?K.hoverColor:K.color,userSelect:"none",zIndex:1001,opacity:we?Me==="up"?K.hoverOpacity:K.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25B2"}),z&&Pe&&p&&Re("div",{className:"overlay-scrollbar-down-arrow",onClick:ge,onMouseEnter:()=>le("down"),onMouseLeave:()=>le(null),style:{position:"absolute",bottom:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(v-r)/2}px`,width:`${r}px`,height:`${r}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(r*.75,8)}px`,color:Me==="down"?K.hoverColor:K.color,userSelect:"none",zIndex:1001,opacity:we?Me==="down"?K.hoverOpacity:K.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25BC"})]})}),ut=kt;import{Fragment as Ge,jsx as c,jsxs as $e}from"react/jsx-runtime";var Bt={alignment:"right",margin:0,radius:0};function Nt({data:a,loading:u=!1,columns:g,onRowClick:x,onRowMouseDown:T,getRowId:E,selectedRowId:d,rowHeight:N=50,columnHeight:k=56,striped:F,rowDivider:ee=!0,onSort:z,onLoadMore:_,sortBy:L,sortDirection:G,showPaper:ue=!0,paddingX:l="1rem",paddingTop:U=0,paddingBottom:de=0,rowHoverColor:ve,rowHoverOpacity:O,scrollbars:we,emptyMessage:S="NO DATA",LoadingComponent:D}){let pe=nt(()=>rt((r,i)=>{let y=V(null);return c(ut,{detectInnerScroll:!0,track:Bt,...we,children:c(It,{component:xe,...r,ref:p=>{y.current=p,typeof i=="function"?i(p):i&&(i.current=p)},sx:{userSelect:"auto",WebkitUserSelect:"auto",position:"relative",width:"100%",height:"100%",overflow:"auto",display:"flex",flexDirection:"column",scrollbarWidth:"none",msOverflowStyle:"none",transform:"translateZ(0)",backfaceVisibility:"hidden",willChange:"scroll-position","&::-webkit-scrollbar":{display:"none"},"& .MuiTable-root":{paddingRight:l,paddingTop:U,paddingBottom:de}}})})}),[]),te=nt(()=>{if(F===!0)return"#f5f5f5";if(typeof F=="string")return F},[F]),[Le,fe]=ot(u),[re,X]=ot(null),[Ue,Xe]=ot(0);ye(()=>{u&&fe(!0)},[u]),ye(()=>{re!==null&&re===d&&X(null)},[re,d]),ye(()=>{d==null&&X(null)},[d]);let Oe=be(()=>{fe(!1)},[]),Pe=Le,Ke=u&&a.length>0,ie=V(!1),De=V(null),j=V(null),me=V(!1),Je=V({x:0,y:0,scrollTop:0}),Ze=V(!1),Me=V(0),le=V(0),Be=V(!1),Ne=V({x:0,y:0}),Ee=V(null),qe=be(r=>{},[]),He=be(r=>{if(!Ze.current||!j.current)return;let i=r.clientY-Je.current.y;if(!me.current&&Math.abs(i)>5&&(me.current=!0,j.current&&(j.current.style.userSelect="none")),me.current){let p=i*2;le.current+=-p;let J=j.current,e=Math.max(0,Me.current+le.current);J.scrollTop=e,Je.current.y=r.clientY,r.preventDefault()}},[]),ae=be(()=>{if(Ze.current=!1,me.current&&j.current){let r=Math.max(0,Me.current+le.current),i=()=>{j.current&&(j.current.scrollTop=r)};i(),setTimeout(i,1),setTimeout(i,5),setTimeout(i,10)}me.current=!1,le.current=0,j.current&&(j.current.style.userSelect="auto")},[]);ye(()=>{let r=document.querySelector('[data-testid="virtuoso-scroller"]');r&&r.querySelectorAll(".MuiTableSortLabel-root").forEach(y=>{let p=new MouseEvent("mouseleave",{bubbles:!0,cancelable:!0});y.dispatchEvent(p)})},[L]);let ne=be(r=>{if(!z)return;z(r,L===r&&G==="asc"?"desc":"asc")},[z,L,G]),se=be(r=>{if(!_||u&&a.length===0)return;let i=Date.now(),y=window.lastRangeChangeTime||0;if(i-y<100)return;window.lastRangeChangeTime=i;let p=Math.max(10,Math.floor(a.length*.1)),J=r.endIndex>=a.length-p,e=a.length>=30;if(J&&e&&_&&!ie.current){ie.current=!0;let f=a.length;_(f,50)}},[a.length,u,_]);ye(()=>{u||(ie.current=!1)},[u]),ye(()=>{a.length===0&&Xe(r=>r+1)},[a.length]);let H=V(a.length);ye(()=>{let r=H.current,i=a.length;if(i>r&&r>0){H.current=i;return}De.current&&i>0&&i<=r&&De.current.scrollToIndex({index:0,align:"start",behavior:"auto"}),H.current=i},[a]),ye(()=>(document.addEventListener("mousemove",He),document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mousemove",He),document.removeEventListener("mouseup",ae)}),[He,ae]);let b=be(()=>{let r={},i=[];if(g.forEach(e=>{e.group?(r[e.group]||(r[e.group]=[]),r[e.group].push(e)):i.push(e)}),!(Object.keys(r).length>0))return c(_e,{children:g.map(e=>c(Ye,{align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable?c("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:$e(xe,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>ne(String(e.id)),children:[e.text,c(it,{active:L===e.id,direction:L===e.id?G:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(180deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(0deg)"}}})]})}):e.text},String(e.id)))});let p=[...i.map(e=>c(Ye,{rowSpan:2,align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable&&z?c("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:$e(xe,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>ne(String(e.id)),children:[e.text,c(it,{active:L===e.id,direction:L===e.id?G:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","&:hover":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}},"& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(180deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(0deg)"}}})]})}):e.text},String(e.id))),...Object.entries(r).map(([e,f])=>c(Ye,{align:"center",colSpan:f.length,style:{fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e},e))],J=[...Object.values(r).flat().map(e=>c(Ye,{align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable&&z?c("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:$e(xe,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>ne(String(e.id)),children:[e.text,c(it,{active:L===e.id,direction:L===e.id?G:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","&:hover":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}},"& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(0deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(180deg)"}}})]})}):e.text},String(e.id)))];return $e(Ge,{children:[c(_e,{children:p}),c(_e,{children:J})]})},[g,L,G,ne,z,k]),K=be((r,i)=>i?c(Ge,{children:g.map(y=>c(Ye,{align:y.align||"left",style:{width:y.width,minWidth:y.width,...y.style,padding:"8px 16px"},children:y.render?y.render(i,r):String(i[y.id]||"")},String(y.id)))}):(console.log("rowContent - \uC544\uC774\uD15C \uC5C6\uC74C, \uC778\uB371\uC2A4:",r),null),[g]),je=nt(()=>({Scroller:pe,Table:r=>c(Et,{...r,sx:{borderCollapse:"separate",tableLayout:"fixed",marginRight:"16px"}}),TableHead:rt((r,i)=>c(Rt,{...r,ref:i,sx:{userSelect:"none","& tr":{height:k,"& th":{padding:"16px",position:"sticky",top:0,zIndex:2,fontWeight:"bold"}}}})),TableRow:r=>{let{item:i,...y}=r,p=y["data-index"]??0,J=p%2===1,e=i&&E?E(i,p):p,f=d!=null&&e===d||re!==null&&e===re;return c(_e,{...y,onMouseDown:$=>{Be.current=!1,Ne.current={x:$.clientX,y:$.clientY},$.button===0&&(i&&(x||T)&&e!==d&&Dt(()=>{X(e)}),i&&T&&T(i,p))},onMouseMove:$=>{let C=Math.abs($.clientX-Ne.current.x),Ve=Math.abs($.clientY-Ne.current.y),Ie=5;(C>Ie||Ve>Ie)&&(Be.current=!0)},onClick:()=>{!Be.current&&!me.current&&i&&x&&(e!==d&&X(e),x(i,p)),Be.current=!1},sx:{userSelect:"none",height:N,backgroundColor:f?"#dbeafe":J&&te?te:"transparent",boxShadow:f?"inset 3px 0 0 #3b82f6":"none","& td":{padding:"8px 16px",borderBottom:ee?"1px solid rgba(224, 224, 224, 1)":"none",fontWeight:f?600:void 0},"& th":{padding:"8px 16px",borderBottom:"none"},"&:hover":x||T?{backgroundColor:$=>{if(f)return"#dbeafe";let C=$.palette.mode==="dark",Ie=ve??"#000000",I=O??.06,h=Ie.replace("#",""),oe=parseInt(h.substring(0,2),16)/255,A=parseInt(h.substring(2,4),16)/255,W=parseInt(h.substring(4,6),16)/255;if(C){let he=Math.max(oe,A,W),Te=Math.min(oe,A,W),ge=0,Se=0,Y=(he+Te)/2;if(he!==Te){let v=he-Te;switch(Se=Y>.5?v/(2-he-Te):v/(he+Te),he){case oe:ge=((A-W)/v+(A<W?6:0))/6;break;case A:ge=((W-oe)/v+2)/6;break;case W:ge=((oe-A)/v+4)/6;break}}Y=1-Y;let Ce=(v,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?v+(t-v)*6*n:n<1/2?t:n<2/3?v+(t-v)*(2/3-n)*6:v);if(Se===0)oe=A=W=Y;else{let v=Y<.5?Y*(1+Se):Y+Se-Y*Se,t=2*Y-v;oe=Ce(t,v,ge+1/3),A=Ce(t,v,ge),W=Ce(t,v,ge-1/3)}}return`rgba(${Math.round(oe*255)}, ${Math.round(A*255)}, ${Math.round(W*255)}, ${I})`},transition:"background-color 0.2s ease"}:{}}})},TableBody:rt((r,i)=>c(Ht,{...r,ref:i}))}),[x,E,d,re,N,qe,te,ee,k,ve,O,pe]),m=$e(xe,{sx:{position:"relative",height:"100%",width:"100%","& .MuiTableHead-root":{backgroundColor:r=>r.palette.mode==="dark"?"#1e1e1e !important":"#ffffff !important"}},children:[c(Pt,{ref:De,data:a,totalCount:_?a.length+1:a.length,fixedHeaderContent:b,itemContent:K,rangeChanged:se,components:je,style:{height:"100%"},increaseViewportBy:{top:100,bottom:300},overscan:5,followOutput:!1},Ue),a.length===0&&!u&&c(xe,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2},children:typeof S=="string"?$e(Ge,{children:[c(xe,{sx:{width:48,height:48,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5f5",color:"#999"},children:"\u{1F4C4}"}),c(Ot,{variant:"body1",sx:{color:"text.secondary"},children:S})]}):S}),Pe&&c(Ge,{children:D?c(D,{visible:u,onComplete:Oe}):c(at,{visible:u,onComplete:Oe,size:40,sx:{top:`${g.some(r=>r.group)?k*2:k}px`},background:{show:a.length===0,opacity:.8}})})]});return ue?c($t,{className:"grow",elevation:1,sx:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:m}):c(xe,{className:"grow",style:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:m})}var jt=Lt(Nt);export{jt as VirtualDataTable};
21
+ `,document.head.appendChild(r),()=>{let a=document.getElementById(t);a&&a.remove()}},[]),ct("div",{ref:pe,className:`overlay-scrollbar-wrapper ${s}`,style:{display:"flex",flexDirection:"column",position:"relative",minHeight:0,height:"100%",flex:"1 1 0%",...d},children:[Oe("div",{ref:l,className:"overlay-scrollbar-container",tabIndex:-1,onMouseDown:be,style:{display:"flex",width:"100%",flex:"1 1 auto",minHeight:0,overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none",outline:"none",userSelect:Ee?"none":"auto",...y},children:Oe("div",{ref:F,className:"overlay-scrollbar-content",style:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",...h},children:g})}),z&&De&&ct("div",{ref:fe,className:"overlay-scrollbar-track",onMouseEnter:()=>{M(),se.current=setTimeout(()=>{S(!0),se.current=null},100)},onMouseLeave:()=>{Ze(),D||x(v.delay)},style:{position:"absolute",top:0,right:0,width:`${Z}px`,height:"100%",opacity:Te?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[b.visible&&Oe("div",{className:"overlay-scrollbar-track-background",onClick:t=>{t.preventDefault(),t.stopPropagation(),ne(t)},style:{position:"absolute",top:f?`${O.width+b.margin*2}px`:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(Z-O.width)/2}px`,width:`${O.width}px`,height:f?`calc(100% - ${O.width*2+b.margin*4}px)`:`calc(100% - ${b.margin*2}px)`,backgroundColor:b.color,borderRadius:`${b.radius}px`,cursor:"pointer"}}),Oe("div",{ref:xe,className:"overlay-scrollbar-thumb",onMouseDown:$e,onMouseEnter:()=>Le(!0),onMouseLeave:()=>Le(!1),style:{position:"absolute",top:`${(f?C+b.margin*2:b.margin)+Xe}px`,right:b.alignment==="right"?"0px":`${(Z-C)/2}px`,width:`${C}px`,height:`${Math.max(A,i)}px`,backgroundColor:re||D?O.hoverColor:O.color,opacity:re||D?O.hoverOpacity:O.opacity,borderRadius:`${O.radius}px`,cursor:"pointer",transition:"background-color 0.2s ease-in-out, opacity 0.2s ease-in-out"}})]}),z&&De&&f&&Oe("div",{className:"overlay-scrollbar-up-arrow",onClick:K,onMouseEnter:()=>Se("up"),onMouseLeave:()=>Se(null),style:{position:"absolute",top:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(Z-C)/2}px`,width:`${C}px`,height:`${C}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(C*.75,8)}px`,color:we==="up"?G.hoverColor:G.color,userSelect:"none",zIndex:1001,opacity:Te?we==="up"?G.hoverOpacity:G.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25B2"}),z&&De&&f&&Oe("div",{className:"overlay-scrollbar-down-arrow",onClick:J,onMouseEnter:()=>Se("down"),onMouseLeave:()=>Se(null),style:{position:"absolute",bottom:`${b.margin}px`,right:b.alignment==="right"?"0px":`${(Z-C)/2}px`,width:`${C}px`,height:`${C}px`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${Math.max(C*.75,8)}px`,color:we==="down"?G.hoverColor:G.color,userSelect:"none",zIndex:1001,opacity:Te?we==="down"?G.hoverOpacity:G.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25BC"})]})}),ut=kt;import{Fragment as Ue,jsx as u,jsxs as Be}from"react/jsx-runtime";var Rt={alignment:"right",margin:0,radius:0};function Nt({data:s,loading:d=!1,columns:y,onRowClick:h,onRowMouseDown:g,getRowId:E,selectedRowId:p,rowHeight:R=50,columnHeight:k=56,striped:Y,rowDivider:te=!0,onSort:z,onLoadMore:q,sortBy:L,sortDirection:V,showPaper:pe=!0,paddingX:l="1rem",paddingTop:F=0,paddingBottom:fe=0,rowHoverColor:xe,rowHoverOpacity:$,scrollbars:Te,emptyMessage:S="NO DATA",LoadingComponent:D}){let me=nt(()=>rt((o,i)=>{let f=j(null);return u(ut,{detectInnerScroll:!0,track:Rt,...Te,children:u(It,{component:ve,...o,ref:T=>{f.current=T,typeof i=="function"?i(T):i&&(i.current=T)},sx:{userSelect:"auto",WebkitUserSelect:"auto",position:"relative",width:"100%",height:"100%",overflow:"auto",display:"flex",flexDirection:"column",scrollbarWidth:"none",msOverflowStyle:"none",transform:"translateZ(0)",backfaceVisibility:"hidden",willChange:"scroll-position","&::-webkit-scrollbar":{display:"none"},"& .MuiTable-root":{paddingRight:l,paddingTop:F,paddingBottom:fe}}})})}),[]),re=nt(()=>{if(Y===!0)return"#f5f5f5";if(typeof Y=="string")return Y},[Y]),[Le,he]=ot(d),[ie,A]=ot(null),Ye=j(p),[Xe,qe]=ot(0);de(()=>{d&&he(!0)},[d]),de(()=>{ie!==null&&ie===p&&A(null)},[ie,p]),de(()=>{Ye.current!==p&&(A(null),Ye.current=p)},[p]),de(()=>{p==null&&A(null)},[p]);let De=ye(()=>{he(!1)},[]),Ve=Le,Ee=d&&s.length>0,He=j(!1),ge=j(null),X=j(null),Me=j(!1),Ke=j({x:0,y:0,scrollTop:0}),we=j(!1),Se=j(0),Pe=j(0),Ie=j(!1),le=j({x:0,y:0}),Je=j(null),Fe=ye(o=>{},[]),ae=ye(o=>{if(!we.current||!X.current)return;let i=o.clientY-Ke.current.y;if(!Me.current&&Math.abs(i)>5&&(Me.current=!0,X.current&&(X.current.style.userSelect="none")),Me.current){let T=i*2;Pe.current+=-T;let I=X.current,e=Math.max(0,Se.current+Pe.current);I.scrollTop=e,Ke.current.y=o.clientY,o.preventDefault()}},[]),se=ye(()=>{if(we.current=!1,Me.current&&X.current){let o=Math.max(0,Se.current+Pe.current),i=()=>{X.current&&(X.current.scrollTop=o)};i(),setTimeout(i,1),setTimeout(i,5),setTimeout(i,10)}Me.current=!1,Pe.current=0,X.current&&(X.current.style.userSelect="auto")},[]);de(()=>{let o=document.querySelector('[data-testid="virtuoso-scroller"]');o&&o.querySelectorAll(".MuiTableSortLabel-root").forEach(f=>{let T=new MouseEvent("mouseleave",{bubbles:!0,cancelable:!0});f.dispatchEvent(T)})},[L]);let _=ye(o=>{if(!z)return;z(o,L===o&&V==="asc"?"desc":"asc")},[z,L,V]),O=ye(o=>{if(!q||d&&s.length===0)return;let i=Date.now(),f=window.lastRangeChangeTime||0;if(i-f<100)return;window.lastRangeChangeTime=i;let T=Math.max(10,Math.floor(s.length*.1)),I=o.endIndex>=s.length-T,e=s.length>=30;if(I&&e&&q&&!He.current){He.current=!0;let N=s.length;q(N,50)}},[s.length,d,q]);de(()=>{d||(He.current=!1)},[d]),de(()=>{s.length===0&&qe(o=>o+1)},[s.length]);let b=j(s.length);de(()=>{let o=b.current,i=s.length;if(i>o&&o>0){b.current=i;return}ge.current&&i>0&&i<=o&&ge.current.scrollToIndex({index:0,align:"start",behavior:"auto"}),b.current=i},[s]),de(()=>(document.addEventListener("mousemove",ae),document.addEventListener("mouseup",se),()=>{document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",se)}),[ae,se]);let G=ye(()=>{let o={},i=[];if(y.forEach(e=>{e.group?(o[e.group]||(o[e.group]=[]),o[e.group].push(e)):i.push(e)}),!(Object.keys(o).length>0))return u(Ge,{children:y.map(e=>u(We,{align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable?u("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Be(ve,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>_(String(e.id)),children:[e.text,u(it,{active:L===e.id,direction:L===e.id?V:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(180deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(0deg)"}}})]})}):e.text},String(e.id)))});let T=[...i.map(e=>u(We,{rowSpan:2,align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable&&z?u("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Be(ve,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>_(String(e.id)),children:[e.text,u(it,{active:L===e.id,direction:L===e.id?V:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","&:hover":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}},"& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(180deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(0deg)"}}})]})}):e.text},String(e.id))),...Object.entries(o).map(([e,N])=>u(We,{align:"center",colSpan:N.length,style:{fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e},e))],I=[...Object.values(o).flat().map(e=>u(We,{align:e.align||"left",style:{width:e.width,minWidth:e.width,...e.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:e.sortable&&z?u("div",{style:{display:"flex",alignItems:"center",justifyContent:e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Be(ve,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>_(String(e.id)),children:[e.text,u(it,{active:L===e.id,direction:L===e.id?V:"desc",sx:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"4px",minWidth:"auto",width:"16px",height:"16px",cursor:"default",opacity:L===e.id?1:0,transition:"opacity 0.2s ease","&:hover":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}},"& .MuiTableSortLabel-icon":{position:"relative",marginLeft:0,marginRight:0,opacity:1,transition:"color 0.2s ease"},"& .MuiTableSortLabel-iconDirectionAsc":{transform:"rotate(0deg)"},"& .MuiTableSortLabel-iconDirectionDesc":{transform:"rotate(180deg)"}}})]})}):e.text},String(e.id)))];return Be(Ue,{children:[u(Ge,{children:T}),u(Ge,{children:I})]})},[y,L,V,_,z,k]),Re=ye((o,i)=>i?u(Ue,{children:y.map(f=>u(We,{align:f.align||"left",style:{width:f.width,minWidth:f.width,...f.style,padding:"8px 16px"},children:f.render?f.render(i,o):String(i[f.id]||"")},String(f.id)))}):(console.log("rowContent - \uC544\uC774\uD15C \uC5C6\uC74C, \uC778\uB371\uC2A4:",o),null),[y]),v=nt(()=>({Scroller:me,Table:o=>u(Et,{...o,sx:{borderCollapse:"separate",tableLayout:"fixed",marginRight:"16px"}}),TableHead:rt((o,i)=>u($t,{...o,ref:i,sx:{userSelect:"none","& tr":{height:k,"& th":{padding:"16px",position:"sticky",top:0,zIndex:2,fontWeight:"bold"}}}})),TableRow:o=>{let{item:i,...f}=o,T=f["data-index"]??0,I=T%2===1,e=i&&E?E(i,T):T,N=ie??p,M=N!=null&&e===N,Ze=U=>{if(M)return"#dbeafe";let x=U.palette.mode==="dark",$e=xe??"#000000",Ne=$??.06,Ce=$e.replace("#",""),ne=parseInt(Ce.substring(0,2),16)/255,K=parseInt(Ce.substring(2,4),16)/255,J=parseInt(Ce.substring(4,6),16)/255;if(x){let be=Math.max(ne,K,J),ce=Math.min(ne,K,J),oe=0,Z=0,t=(be+ce)/2;if(be!==ce){let r=be-ce;switch(Z=t>.5?r/(2-be-ce):r/(be+ce),be){case ne:oe=((K-J)/r+(K<J?6:0))/6;break;case K:oe=((J-ne)/r+2)/6;break;case J:oe=((ne-K)/r+4)/6;break}}t=1-t;let n=(r,a,c)=>(c<0&&(c+=1),c>1&&(c-=1),c<1/6?r+(a-r)*6*c:c<1/2?a:c<2/3?r+(a-r)*(2/3-c)*6:r);if(Z===0)ne=K=J=t;else{let r=t<.5?t*(1+Z):t+Z-t*Z,a=2*t-r;ne=n(a,r,oe+1/3),K=n(a,r,oe),J=n(a,r,oe-1/3)}}return`rgba(${Math.round(ne*255)}, ${Math.round(K*255)}, ${Math.round(J*255)}, ${Ne})`};return u(Ge,{...f,onMouseDown:U=>{Ie.current=!1,le.current={x:U.clientX,y:U.clientY},U.button===0&&(i&&(h||g)&&e!==p&&Dt(()=>{A(e)}),i&&g&&g(i,T))},onMouseMove:U=>{let x=Math.abs(U.clientX-le.current.x),m=Math.abs(U.clientY-le.current.y),$e=5;(x>$e||m>$e)&&(Ie.current=!0)},onClick:()=>{!Ie.current&&!Me.current&&i&&h&&(e!==p&&A(e),h(i,T)),Ie.current=!1},sx:U=>{let x=M?"#dbeafe":I&&re?re:"transparent",m=Ze(U);return{userSelect:"none",height:R,backgroundColor:x,boxShadow:M?"inset 3px 0 0 #3b82f6":"none","& td":{padding:"8px 16px",borderBottom:te?"1px solid rgba(224, 224, 224, 1)":"none",fontWeight:M?600:void 0,backgroundColor:x},"& th":{padding:"8px 16px",borderBottom:"none",backgroundColor:x},"&:hover":h||g?{backgroundColor:m,transition:"background-color 0.2s ease"}:void 0,"&:hover td":h||g?{backgroundColor:m,transition:"background-color 0.2s ease"}:void 0,"&:active":h||g?{backgroundColor:m}:void 0,"&:active td":h||g?{backgroundColor:m}:void 0,cursor:h||g?"pointer":void 0}}})},TableBody:rt((o,i)=>u(Ht,{...o,ref:i}))}),[h,g,E,p,ie,R,Fe,re,te,k,xe,$,me]),C=Be(ve,{sx:{position:"relative",height:"100%",width:"100%","& .MuiTableHead-root":{backgroundColor:o=>o.palette.mode==="dark"?"#1e1e1e !important":"#ffffff !important"}},children:[u(Pt,{ref:ge,data:s,totalCount:q?s.length+1:s.length,fixedHeaderContent:G,itemContent:Re,rangeChanged:O,components:v,style:{height:"100%"},increaseViewportBy:{top:100,bottom:300},overscan:5,followOutput:!1},Xe),s.length===0&&!d&&u(ve,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2},children:typeof S=="string"?Be(Ue,{children:[u(ve,{sx:{width:48,height:48,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5f5",color:"#999"},children:"\u{1F4C4}"}),u(Bt,{variant:"body1",sx:{color:"text.secondary"},children:S})]}):S}),Ve&&u(Ue,{children:D?u(D,{visible:d,onComplete:De}):u(at,{visible:d,onComplete:De,size:40,sx:{top:`${y.some(o=>o.group)?k*2:k}px`},background:{show:s.length===0,opacity:.8}})})]});return pe?u(Ot,{className:"grow",elevation:1,sx:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:C}):u(ve,{className:"grow",style:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:C})}var jt=Lt(Nt);export{jt as VirtualDataTable};
22
22
  /**
23
23
  * Virtual Data Table - A high-performance virtual data table component for React
24
24
  *