@ehfuse/mui-virtual-data-table 1.1.3 → 1.1.5

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{Box as xe,Table as Dt,TableBody as Et,TableCell as Ye,TableContainer as Ht,TableHead as It,TableRow as _e,TableSortLabel as it,Paper as Rt,Typography as $t}from"@mui/material";import{TableVirtuoso as Ot}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 xe,useMemo as nt,useRef as W,useEffect as Te,memo as Lt,useState as ot}from"react";import{flushSync as Dt}from"react-dom";import{Box as Me,Table as Et,TableBody as Ht,TableCell as qe,TableContainer as It,TableHead as $t,TableRow as _e,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 We=function(){return We=Object.assign||function(u){for(var y,m=1,g=arguments.length;m<g;m++){y=arguments[m];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(u[E]=y[E])}return u},We.apply(this,arguments)};function at(a){var u=a.visible,y=a.onComplete,m=a.fadeoutDuration,g=m===void 0?200:m,E=a.exitDelay,d=E===void 0?0:E,P=a.size,k=P===void 0?40:P,Y=a.className,Q=a.style,N=a.sx,q=a.indicator,L=a.background,V=L===void 0?{show:!0,color:"255, 255, 255",opacity:.9}:L,fe=lt(void 0),l=lt(null),F=pt(u),me=F[0],we=F[1],$=V.show,Se=$===void 0?!0:$,S=V.color,D=S===void 0?"255, 255, 255":S,he=V.opacity,ee=he===void 0?.9:he;if(ft(function(){var te=fe.current;if(te===!0&&u===!1&&l.current){var _=l.current;_.style.opacity="0",setTimeout(function(){we(!1),y?.()},g+d)}else u===!0&&(we(!0),l.current&&(l.current.style.opacity="1"));fe.current=u},[u,y,g,d]),!me)return null;var De=function(){return typeof q=="string"?tt("img",{src:q,alt:"Loading",style:{width:k,height:k}}):q||tt(ht,{size:k})},ge=function(){return Se?D.startsWith("rgba")?{backgroundColor:D}:/^\d+,\s*\d+,\s*\d+$/.test(D)?{backgroundColor:"rgba(".concat(D,", ").concat(ee,")")}:ee!==1?{backgroundColor:D,"&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:D,opacity:ee,zIndex:-1}}:{backgroundColor:D}:{backgroundColor:"transparent"}};return tt(mt,{ref:l,className:Y,style:We({},Q),sx:We(We({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(g,"ms ease-out")},ge()),N),children:De()})}import{useRef as Z,useEffect as pe,useState as A,useCallback as I,useMemo as Ye,forwardRef as gt,useImperativeHandle as bt,useLayoutEffect as yt}from"react";import{jsx as $e,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=(a,u)=>{let y=a.tagName.toLowerCase(),m=["text","password","email","number","search","tel","url","checkbox","radio"];if(y==="input"){let g=a.type;return m.includes(g)}if(["textarea","select","button"].includes(y)||["svg","path","circle","rect","line","polygon","polyline"].includes(y)||a.getAttribute("contenteditable")==="true")return!0;if(u?.excludeSelectors){for(let g of u.excludeSelectors)if(a.matches(g))return!0}return xt(a,u)},xt=(a,u)=>{let y=[...vt,...u?.excludeClasses||[]],m=a,g=0,E=5;for(;m&&g<=E;){if(y.some(d=>m.classList.contains(d)))return!0;if(m.classList.contains("MuiDialogContent-root"))break;m=m.parentElement,g++}return!1},Tt={},Mt={},wt={},St={},Ct={},kt=gt(({className:a="",style:u={},containerStyle:y={},contentStyle:m={},children:g,onScroll:E,thumb:d=Tt,track:P=Mt,arrows:k=wt,dragScroll:Y=St,autoHide:Q=Ct,showScrollbar:N=!0,detectInnerScroll:q=!1},L)=>{let V=Z({});pe(()=>{V.current={children:g,onScroll:E,showScrollbar:N,thumb:d,track:P,arrows:k,dragScroll:Y,autoHide:Q}});let fe=Z(null),l=Z(null),F=Z(null),me=Z(null),we=Z(null),$=Z(null),[Se,S]=A(!1),[D,he]=A(!1),[ee,De]=A(!1),[ge,te]=A({y:0,scrollTop:0}),[_,Ue]=A(0),[Xe,Be]=A(0),[Pe,Ke]=A(!1),[ne,Ee]=A(!1),[R,be]=A({x:0,y:0,scrollTop:0,scrollLeft:0}),[Je,Ze]=A(null),[Ce,oe]=A(null),[Re,Ne]=A(!1),He=Z(null),[Ve,Ie]=A(!1),ie=Z(null),re=Z(null),le=Z(null),H=Ye(()=>{let e=d.color??"#606060";return{width:d.width??8,minHeight:d.minHeight??50,radius:d.radius??(d.width??8)/2,color:e,opacity:d.opacity??.6,hoverColor:d.hoverColor??e,hoverOpacity:d.hoverOpacity??1}},[d]),v=Ye(()=>({width:P.width??16,color:P.color??"rgba(128, 128, 128, 0.1)",visible:P.visible??!0,alignment:P.alignment??"center",radius:P.radius??H.radius??4,margin:P.margin??4}),[P,H.radius]),G=Ye(()=>{let e=k.color??"#808080";return{visible:k.visible??!1,step:k.step??50,color:e,opacity:k.opacity??.6,hoverColor:k.hoverColor??e,hoverOpacity:k.hoverOpacity??1}},[k]),je=Ye(()=>({enabled:Y.enabled??!0,excludeClasses:Y.excludeClasses??[],excludeSelectors:Y.excludeSelectors??[]}),[Y]),b=Ye(()=>({enabled:Q.enabled??!0,delay:Q.delay??1500,delayOnWheel:Q.delayOnWheel??700}),[Q]),r=H.width,i=v.width,x=H.minHeight,p=G.visible,U=G.step,t=I(()=>{if(!l.current)return;let e=document.activeElement;e&&l.current.contains(e)&&e!==l.current||l.current.focus()},[]);bt(L,()=>({getScrollContainer:()=>l.current,scrollTo:e=>{l.current&&l.current.scrollTo(e)},get scrollTop(){return l.current?.scrollTop||0},get scrollHeight(){return l.current?.scrollHeight||0},get clientHeight(){return l.current?.clientHeight||0}}),[]);let f=I(()=>{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 e=l.current.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]');for(let n of e){let o=n;if(o!==l.current&&o.classList.contains("overlay-scrollbar-container"))continue;let s=o.parentElement,M=!1;for(;s&&s!==l.current;){if(s.classList.contains("overlay-scrollbar-container")&&s!==l.current){M=!0;break}s=s.parentElement}if(!M&&o.scrollHeight>o.clientHeight+2)return $.current=o,o}return null},[]),ae=I(()=>f()!==null,[f]),h=I(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null)},[]),se=I(()=>{re.current&&(clearTimeout(re.current),re.current=null)},[]),ce=I(()=>{le.current&&(clearTimeout(le.current),le.current=null)},[]),C=I(e=>{b.enabled&&(h(),ie.current=setTimeout(()=>{S(!1),ie.current=null},e))},[h,b.enabled]),T=I(()=>{let e=f();if(!e){S(!1),Ke(!1),h();return}if(Ke(!0),!me.current)return;b.enabled||(S(!0),h());let n=e.clientHeight,o=e.scrollHeight,s=e.scrollTop,M=0;if(fe.current){let Fe=window.getComputedStyle(fe.current),et=parseFloat(Fe.paddingTop)||0,dt=parseFloat(Fe.paddingBottom)||0;M=et+dt}let w=p?r*2+v.margin*4:v.margin*2,O=n-w+M,B=n/o,Le=Math.max(O*B,x),Ae=o-n,J=O-Le,Qe=Ae>0?s/Ae*J:0;Ue(Le),Be(Qe)},[f,h,p,r,x,b.enabled]),ze=I(e=>{e.preventDefault(),e.stopPropagation();let n=f();n&&(he(!0),te({y:e.clientY,scrollTop:n.scrollTop}),h(),S(!0),t())},[f,h,t]),X=I(e=>{if(!D)return;let n=f();if(!n)return;let o=n.clientHeight,s=n.scrollHeight-o,M=e.clientY-ge.y,w=o-_,O=M/w*s,B=Math.max(0,Math.min(s,ge.scrollTop+O));n.scrollTop=B,T()},[D,ge,_,T,f]),j=I(()=>{he(!1),ae()&&C(b.delay)},[ae,C,b.delay]),K=I(e=>{if(!me.current)return;let n=me.current.getBoundingClientRect(),o=e.clientY-n.top,s=f();if(!s)return;let M=s.clientHeight,w=s.scrollHeight,O=o/M*(w-M);s.scrollTop=Math.max(0,Math.min(w-M,O)),T(),S(!0),C(b.delay),t()},[T,C,b.delay,f,t]),ye=I(e=>{if(e.preventDefault(),e.stopPropagation(),!l.current)return;let n=Math.max(0,l.current.scrollTop-U);l.current.scrollTop=n,T(),S(!0),C(b.delay),t()},[T,C,U,b.delay,t]),ke=I(e=>{if(e.preventDefault(),e.stopPropagation(),!l.current||!F.current)return;let n=l.current,o=F.current.scrollHeight-n.clientHeight,s=Math.min(o,n.scrollTop+U);n.scrollTop=s,T(),S(!0),C(b.delay),t()},[T,C,U,b.delay,t]),ve=I(e=>{if(!je.enabled)return;let n=e.target;if(st(n,je)||e.button!==0)return;let o=f();o&&(o.scrollHeight<=o.clientHeight||(e.preventDefault(),Ee(!0),be({x:e.clientX,y:e.clientY,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft||0}),h()))},[je,st,f,h]),ue=I(e=>{if(!ne)return;let n=f();if(!n)return;let o=R.x-e.clientX,s=R.y-e.clientY;if(Math.abs(s)<3&&Math.abs(o)<3)return;S(!0);let M=Math.max(0,Math.min(n.scrollHeight-n.clientHeight,R.scrollTop+s));n.scrollTop=M,T()},[ne,R,f,T]),z=I(()=>{Ee(!1),ae()&&C(b.delay)},[ae,C,b.delay]);pe(()=>{let e=w=>{T(),h(),S(!0);let O=Ve?b.delayOnWheel:b.delay;C(O),E&&E(w)},n=()=>{Ie(!0),He.current&&clearTimeout(He.current),He.current=setTimeout(()=>{Ie(!1)},300),h(),ce(),le.current=setTimeout(()=>{S(!0),le.current=null},50)},o=[],s=f();s&&o.push(s);let M=l.current;return M&&!s&&(o.push(M),M.querySelectorAll('[data-virtuoso-scroller], [style*="overflow"], .virtuoso-scroller, [style*="overflow: auto"], [style*="overflow:auto"]').forEach(w=>{let O=w;if(O!==M&&O.classList.contains("overlay-scrollbar-container"))return;let B=O.parentElement;for(;B&&B!==M;){if(B.classList.contains("overlay-scrollbar-container")&&B!==M)return;B=B.parentElement}o.push(O)})),o.forEach(w=>{w.addEventListener("scroll",e,{passive:!0}),w.addEventListener("wheel",n,{passive:!0})}),()=>{o.forEach(w=>{w.removeEventListener("scroll",e),w.removeEventListener("wheel",n)}),He.current&&clearTimeout(He.current),le.current&&clearTimeout(le.current)}},[f,T,E,h,C,b,Ve]),pe(()=>{let e=o=>{let s=f();if(!s)return;let{key:M}=o,{scrollTop:w,scrollHeight:O,clientHeight:B}=s,Le=O-B,Ae=50,J=null;switch(M){case"ArrowUp":o.preventDefault(),J=Math.max(0,w-Ae);break;case"ArrowDown":o.preventDefault(),J=Math.min(Le,w+Ae);break;case"PageUp":o.preventDefault(),J=Math.max(0,w-B);break;case"PageDown":o.preventDefault(),J=Math.min(Le,w+B);break;case"Home":o.preventDefault(),J=0;break;case"End":o.preventDefault(),J=Le;break;default:return}if(J!==null){let Qe=J/Le,Fe=p?r*2+v.margin*4:v.margin*2,et=(B-Fe-_)*Qe;Be(et),s.scrollTop=J,h(),S(!0),C(b.delay)}},n=l.current;if(n)return n.addEventListener("keydown",e),()=>{n.removeEventListener("keydown",e)}},[f,p,r,v.margin,_,h,C,b.delay]),pe(()=>{if(ne)return document.addEventListener("mousemove",ue),document.addEventListener("mouseup",z),()=>{document.removeEventListener("mousemove",ue),document.removeEventListener("mouseup",z)}},[ne,ue,z]),pe(()=>{if(D)return document.addEventListener("mousemove",X),document.addEventListener("mouseup",j),()=>{document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",j)}},[D,X,j]),pe(()=>{T();let e=setTimeout(()=>{T()},100);return()=>clearTimeout(e)},[T]),yt(()=>{Ne(!0),T(),!b.enabled&&ae()&&S(!0)},[ae,T,b.enabled]),pe(()=>{let e=new ResizeObserver(()=>{T()}),n=[];return l.current&&n.push(l.current),F.current&&n.push(F.current),$.current&&document.contains($.current)&&n.push($.current),n.forEach(o=>{e.observe(o)}),()=>e.disconnect()},[T]),pe(()=>{if(!l.current)return;let e=new MutationObserver(()=>{$.current=null,T()});return e.observe(l.current,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>e.disconnect()},[T]);let de=Math.max(i,r);return pe(()=>{let e="overlay-scrollbar-webkit-hide",n=document.getElementById(e);n&&n.remove();let o=document.createElement("style");return o.id=e,o.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 Pt={alignment:"right",margin:0,radius:0};function Bt({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:Pt,...we,children:c(Ht,{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(Dt,{...r,sx:{borderCollapse:"separate",tableLayout:"fixed",marginRight:"16px"}}),TableHead:rt((r,i)=>c(It,{...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&&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(Et,{...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(Ot,{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($t,{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(Rt,{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 Nt=Lt(Bt);export{Nt as VirtualDataTable};
21
+ `,document.head.appendChild(o),()=>{let s=document.getElementById(e);s&&s.remove()}},[]),ct("div",{ref:fe,className:`overlay-scrollbar-wrapper ${a}`,style:{display:"flex",flexDirection:"column",position:"relative",minHeight:0,height:"100%",flex:"1 1 0%",...u},children:[$e("div",{ref:l,className:"overlay-scrollbar-container",tabIndex:-1,onMouseDown:ve,style:{display:"flex",width:"100%",flex:"1 1 auto",minHeight:0,overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none",outline:"none",userSelect:ne?"none":"auto",...y},children:$e("div",{ref:F,className:"overlay-scrollbar-content",style:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",...m},children:g})}),N&&Pe&&ct("div",{ref:me,className:"overlay-scrollbar-track",onMouseEnter:()=>{h(),re.current=setTimeout(()=>{S(!0),re.current=null},100)},onMouseLeave:()=>{se(),D||C(b.delay)},style:{position:"absolute",top:0,right:0,width:`${de}px`,height:"100%",opacity:Se?1:0,transition:"opacity 0.2s ease-in-out",cursor:"pointer",zIndex:1e3,pointerEvents:"auto"},children:[v.visible&&$e("div",{className:"overlay-scrollbar-track-background",onClick:e=>{e.preventDefault(),e.stopPropagation(),K(e)},style:{position:"absolute",top:p?`${H.width+v.margin*2}px`:`${v.margin}px`,right:v.alignment==="right"?"0px":`${(de-H.width)/2}px`,width:`${H.width}px`,height:p?`calc(100% - ${H.width*2+v.margin*4}px)`:`calc(100% - ${v.margin*2}px)`,backgroundColor:v.color,borderRadius:`${v.radius}px`,cursor:"pointer"}}),$e("div",{ref:we,className:"overlay-scrollbar-thumb",onMouseDown:ze,onMouseEnter:()=>De(!0),onMouseLeave:()=>De(!1),style:{position:"absolute",top:`${(p?r+v.margin*2:v.margin)+Xe}px`,right:v.alignment==="right"?"0px":`${(de-r)/2}px`,width:`${r}px`,height:`${Math.max(_,x)}px`,backgroundColor:ee||D?H.hoverColor:H.color,opacity:ee||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"}})]}),N&&Pe&&p&&$e("div",{className:"overlay-scrollbar-up-arrow",onClick:ye,onMouseEnter:()=>oe("up"),onMouseLeave:()=>oe(null),style:{position:"absolute",top:`${v.margin}px`,right:v.alignment==="right"?"0px":`${(de-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:Ce==="up"?G.hoverColor:G.color,userSelect:"none",zIndex:1001,opacity:Se?Ce==="up"?G.hoverOpacity:G.opacity:0,transition:"opacity 0.2s ease-in-out, color 0.15s ease-in-out"},children:"\u25B2"}),N&&Pe&&p&&$e("div",{className:"overlay-scrollbar-down-arrow",onClick:ke,onMouseEnter:()=>oe("down"),onMouseLeave:()=>oe(null),style:{position:"absolute",bottom:`${v.margin}px`,right:v.alignment==="right"?"0px":`${(de-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:Ce==="down"?G.hoverColor:G.color,userSelect:"none",zIndex:1001,opacity:Se?Ce==="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 Ge,jsx as c,jsxs as Oe}from"react/jsx-runtime";var Rt={alignment:"right",margin:0,radius:0};function Nt({data:a,loading:u=!1,columns:y,onRowClick:m,onRowMouseDown:g,getRowId:E,selectedRowId:d,rowHeight:P=50,columnHeight:k=56,striped:Y,rowDivider:Q=!0,onSort:N,onLoadMore:q,sortBy:L,sortDirection:V,showPaper:fe=!0,paddingX:l="1rem",paddingTop:F=0,paddingBottom:me=0,rowHoverColor:we,rowHoverOpacity:$,scrollbars:Se,emptyMessage:S="NO DATA",LoadingComponent:D}){let he=nt(()=>rt((r,i)=>{let x=W(null);return c(ut,{detectInnerScroll:!0,track:Rt,...Se,children:c(It,{component:Me,...r,ref:p=>{x.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:F,paddingBottom:me}}})})}),[]),ee=nt(()=>{if(Y===!0)return"#f5f5f5";if(typeof Y=="string")return Y},[Y]),[De,ge]=ot(u),[te,_]=ot(null),[Ue,Xe]=ot(0);Te(()=>{u&&ge(!0)},[u]),Te(()=>{te!==null&&te===d&&_(null)},[te,d]),Te(()=>{d==null&&_(null)},[d]);let Be=xe(()=>{ge(!1)},[]),Pe=De,Ke=u&&a.length>0,ne=W(!1),Ee=W(null),R=W(null),be=W(!1),Je=W({x:0,y:0,scrollTop:0}),Ze=W(!1),Ce=W(0),oe=W(0),Re=W(!1),Ne=W({x:0,y:0}),He=W(null),Ve=xe(r=>{},[]),Ie=xe(r=>{if(!Ze.current||!R.current)return;let i=r.clientY-Je.current.y;if(!be.current&&Math.abs(i)>5&&(be.current=!0,R.current&&(R.current.style.userSelect="none")),be.current){let p=i*2;oe.current+=-p;let U=R.current,t=Math.max(0,Ce.current+oe.current);U.scrollTop=t,Je.current.y=r.clientY,r.preventDefault()}},[]),ie=xe(()=>{if(Ze.current=!1,be.current&&R.current){let r=Math.max(0,Ce.current+oe.current),i=()=>{R.current&&(R.current.scrollTop=r)};i(),setTimeout(i,1),setTimeout(i,5),setTimeout(i,10)}be.current=!1,oe.current=0,R.current&&(R.current.style.userSelect="auto")},[]);Te(()=>{let r=document.querySelector('[data-testid="virtuoso-scroller"]');r&&r.querySelectorAll(".MuiTableSortLabel-root").forEach(x=>{let p=new MouseEvent("mouseleave",{bubbles:!0,cancelable:!0});x.dispatchEvent(p)})},[L]);let re=xe(r=>{if(!N)return;N(r,L===r&&V==="asc"?"desc":"asc")},[N,L,V]),le=xe(r=>{if(!q||u&&a.length===0)return;let i=Date.now(),x=window.lastRangeChangeTime||0;if(i-x<100)return;window.lastRangeChangeTime=i;let p=Math.max(10,Math.floor(a.length*.1)),U=r.endIndex>=a.length-p,t=a.length>=30;if(U&&t&&q&&!ne.current){ne.current=!0;let f=a.length;q(f,50)}},[a.length,u,q]);Te(()=>{u||(ne.current=!1)},[u]),Te(()=>{a.length===0&&Xe(r=>r+1)},[a.length]);let H=W(a.length);Te(()=>{let r=H.current,i=a.length;if(i>r&&r>0){H.current=i;return}Ee.current&&i>0&&i<=r&&Ee.current.scrollToIndex({index:0,align:"start",behavior:"auto"}),H.current=i},[a]),Te(()=>(document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",ie),()=>{document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",ie)}),[Ie,ie]);let v=xe(()=>{let r={},i=[];if(y.forEach(t=>{t.group?(r[t.group]||(r[t.group]=[]),r[t.group].push(t)):i.push(t)}),!(Object.keys(r).length>0))return c(_e,{children:y.map(t=>c(qe,{align:t.align||"left",style:{width:t.width,minWidth:t.width,...t.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:t.sortable?c("div",{style:{display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Oe(Me,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>re(String(t.id)),children:[t.text,c(it,{active:L===t.id,direction:L===t.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===t.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)"}}})]})}):t.text},String(t.id)))});let p=[...i.map(t=>c(qe,{rowSpan:2,align:t.align||"left",style:{width:t.width,minWidth:t.width,...t.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:t.sortable&&N?c("div",{style:{display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Oe(Me,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>re(String(t.id)),children:[t.text,c(it,{active:L===t.id,direction:L===t.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===t.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)"}}})]})}):t.text},String(t.id))),...Object.entries(r).map(([t,f])=>c(qe,{align:"center",colSpan:f.length,style:{fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:t},t))],U=[...Object.values(r).flat().map(t=>c(qe,{align:t.align||"left",style:{width:t.width,minWidth:t.width,...t.style,fontWeight:"bold",position:"sticky",top:0,zIndex:2,padding:"16px"},children:t.sortable&&N?c("div",{style:{display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",position:"relative",width:"100%"},children:Oe(Me,{sx:{position:"relative",cursor:"default","&:hover .MuiTableSortLabel-root":{opacity:"1 !important","& .MuiSvgIcon-root":{color:"#000",opacity:"1 !important"}}},onClick:()=>re(String(t.id)),children:[t.text,c(it,{active:L===t.id,direction:L===t.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===t.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)"}}})]})}):t.text},String(t.id)))];return Oe(Ge,{children:[c(_e,{children:p}),c(_e,{children:U})]})},[y,L,V,re,N,k]),G=xe((r,i)=>i?c(Ge,{children:y.map(x=>c(qe,{align:x.align||"left",style:{width:x.width,minWidth:x.width,...x.style,padding:"8px 16px"},children:x.render?x.render(i,r):String(i[x.id]||"")},String(x.id)))}):(console.log("rowContent - \uC544\uC774\uD15C \uC5C6\uC74C, \uC778\uB371\uC2A4:",r),null),[y]),je=nt(()=>({Scroller:he,Table:r=>c(Et,{...r,sx:{borderCollapse:"separate",tableLayout:"fixed",marginRight:"16px"}}),TableHead:rt((r,i)=>c($t,{...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,...x}=r,p=x["data-index"]??0,U=p%2===1,t=i&&E?E(i,p):p,f=d!=null&&t===d||te!==null&&t===te,ae=h=>{if(f)return"#dbeafe";let se=h.palette.mode==="dark",C=we??"#000000",T=$??.06,ze=C.replace("#",""),X=parseInt(ze.substring(0,2),16)/255,j=parseInt(ze.substring(2,4),16)/255,K=parseInt(ze.substring(4,6),16)/255;if(se){let ye=Math.max(X,j,K),ke=Math.min(X,j,K),ve=0,ue=0,z=(ye+ke)/2;if(ye!==ke){let e=ye-ke;switch(ue=z>.5?e/(2-ye-ke):e/(ye+ke),ye){case X:ve=((j-K)/e+(j<K?6:0))/6;break;case j:ve=((K-X)/e+2)/6;break;case K:ve=((X-j)/e+4)/6;break}}z=1-z;let de=(e,n,o)=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*6*o:o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e);if(ue===0)X=j=K=z;else{let e=z<.5?z*(1+ue):z+ue-z*ue,n=2*z-e;X=de(n,e,ve+1/3),j=de(n,e,ve),K=de(n,e,ve-1/3)}}return`rgba(${Math.round(X*255)}, ${Math.round(j*255)}, ${Math.round(K*255)}, ${T})`};return c(_e,{...x,onMouseDown:h=>{Re.current=!1,Ne.current={x:h.clientX,y:h.clientY},h.button===0&&(i&&(m||g)&&t!==d&&Dt(()=>{_(t)}),i&&g&&g(i,p))},onMouseMove:h=>{let se=Math.abs(h.clientX-Ne.current.x),ce=Math.abs(h.clientY-Ne.current.y),C=5;(se>C||ce>C)&&(Re.current=!0)},onClick:()=>{!Re.current&&!be.current&&i&&m&&(t!==d&&_(t),m(i,p)),Re.current=!1},sx:h=>{let se=f?"#dbeafe":U&&ee?ee:"transparent",ce=ae(h);return{userSelect:"none",height:P,backgroundColor:se,boxShadow:f?"inset 3px 0 0 #3b82f6":"none","& td":{padding:"8px 16px",borderBottom:Q?"1px solid rgba(224, 224, 224, 1)":"none",fontWeight:f?600:void 0,backgroundColor:se},"& th":{padding:"8px 16px",borderBottom:"none",backgroundColor:se},"&:hover":m||g?{backgroundColor:ce,transition:"background-color 0.2s ease"}:void 0,"&:hover td":m||g?{backgroundColor:ce,transition:"background-color 0.2s ease"}:void 0,"&:active":m||g?{backgroundColor:ce}:void 0,"&:active td":m||g?{backgroundColor:ce}:void 0,cursor:m||g?"pointer":void 0}}})},TableBody:rt((r,i)=>c(Ht,{...r,ref:i}))}),[m,g,E,d,te,P,Ve,ee,Q,k,we,$,he]),b=Oe(Me,{sx:{position:"relative",height:"100%",width:"100%","& .MuiTableHead-root":{backgroundColor:r=>r.palette.mode==="dark"?"#1e1e1e !important":"#ffffff !important"}},children:[c(Pt,{ref:Ee,data:a,totalCount:q?a.length+1:a.length,fixedHeaderContent:v,itemContent:G,rangeChanged:le,components:je,style:{height:"100%"},increaseViewportBy:{top:100,bottom:300},overscan:5,followOutput:!1},Ue),a.length===0&&!u&&c(Me,{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"?Oe(Ge,{children:[c(Me,{sx:{width:48,height:48,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5f5",color:"#999"},children:"\u{1F4C4}"}),c(Bt,{variant:"body1",sx:{color:"text.secondary"},children:S})]}):S}),Pe&&c(Ge,{children:D?c(D,{visible:u,onComplete:Be}):c(at,{visible:u,onComplete:Be,size:40,sx:{top:`${y.some(r=>r.group)?k*2:k}px`},background:{show:a.length===0,opacity:.8}})})]});return fe?c(Ot,{className:"grow",elevation:1,sx:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:b}):c(Me,{className:"grow",style:{padding:0,paddingLeft:l,height:"100%",minHeight:0,flex:1,display:"flex",flexDirection:"column"},children:b})}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
  *