64 lines
98 KiB
JavaScript
64 lines
98 KiB
JavaScript
|
|
import{bM as Nt,r as o,bq as io,dD as jn,bL as it,aS as Ee,bO as zt,dE as Ot,by as so,dA as An,aX as $e,cV as xr,dr as bn,aU as mt,ao as re,bc as ae,aV as K,aW as pt,bQ as xn,bP as co,dF as Wn,ax as ge,cr as uo,aT as fo,dG as yn,dH as Vn,dI as Xn,dJ as mo,bf as qn,dK as po,dw as Cn,bv as vo,dL as yr,dM as go,b4 as xt,dN as ho,dO as bo,dP as xo,dQ as yo,am as rt,an as jt,bu as Co,br as So,cZ as Cr,dR as wo,dS as Eo,cW as Sr,B as Un,aw as wr,J as Gn,dT as $o,dU as Ro,dV as ko,dW as Io,Q as Yn,as as A,bh as No,dX as To,at as Er,aq as Oo,ar as Po,bg as Bo,a_ as It,ay as Mo,a$ as _o,bx as Lo,av as Ho,ce as Fo,aA as Ko,aB as Do,dY as zo}from"./index-BGI3tmtB.js";import{a as $r,c as nn,R as Rr,b as jo,d as Ao,u as Wo,T as Vo,S as Xo,f as kr,e as qo,h as Uo,j as Go,k as Yo}from"./iconUtil-IZQuqZwd.js";import{C as Kt}from"./index-DJxTfCUX.js";import{P as Qo}from"./Pagination-COOq01L8.js";function sn(e){return e!=null&&e===e.window}const Jo=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return sn(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!sn(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function Zo(e,t,n,r){const l=n-t;return e/=r/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}function el(e,t={}){const{getContainer:n=()=>window,callback:r,duration:l=450}=t,a=n(),i=Jo(a),s=Date.now(),d=()=>{const p=Date.now()-s,u=Zo(p>l?l:p,i,e,l);sn(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,p<l?Nt(d):typeof r=="function"&&r()};Nt(d)}const tl=e=>{const[t,n]=o.useState(null);return[o.useCallback((l,a,i)=>{const s=t??l,d=Math.min(s||0,l),c=Math.max(s||0,l),p=a.slice(d,c+1).map(e),u=p.some(f=>!i.has(f)),m=[];return p.forEach(f=>{u?(i.has(f)||m.push(f),i.add(f)):(i.delete(f),m.push(f))}),n(u?c:null),m},[t]),n]};function nl(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const rl=(e,t)=>o.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(l,a){return n[a]?n[a]:Reflect.get(l,a)}}):nl(r,n)}),ol=e=>{const t=o.useRef(e),[,n]=io();return[()=>t.current,r=>{t.current=r,n()}]};function Qn(e,t,n,r){var l=jn.unstable_batchedUpdates?function(i){jn.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,l,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,l,r)}}}var at={},Pt="rc-table-internal-hook";function Sn(e){var t=o.createContext(void 0),n=function(l){var a=l.value,i=l.children,s=o.useRef(a);s.current=a;var d=o.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Ee(d,1),p=c[0];return zt(function(){so.unstable_batchedUpdates(function(){p.listeners.forEach(function(u){u(a)})})},[a]),o.createElement(t.Provider,{value:p},i)};return{Context:t,Provider:n,defaultValue:e}}function Me(e,t){var n=it(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var m={};return t.forEach(function(f){m[f]=u[f]}),m}),r=o.useContext(e==null?void 0:e.Context),l=r||{},a=l.listeners,i=l.getValue,s=o.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var d=o.useState({}),c=Ee(d,2),p=c[1];return zt(function(){if(!r)return;function u(m){var f=n(m);Ot(s.current,f,!0)||p({})}return a.add(u),function(){a.delete(u)}},[r]),s.current}function ll(){var e=o.createContext(null);function t(){return o.useContext(e)}function n(l,a){var i=An(l),s=function(c,p){var u=i?{ref:p}:{},m=o.useRef(0),f=o.useRef(c),v=t();return v!==null?o.createElement(l,$e({},c,u)):((!a||a(f.current,c))&&(m.current+=1),f.current=c,o.createElement(e.Provider,{value:m.current},o.createElement(l,$e({},c,u))))};return i?o.forwardRef(s):s}function r(l,a){var i=An(l),s=function(c,p){var u=i?{ref:p}:{};return t(),o.createElement(l,$e({},c,u))};return i?o.memo(o.forwardRef(s),a):o.memo(s,a)}return{makeImmu
|
||
|
|
${A(d(d(f).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
|
||
|
|
> ${t}-content,
|
||
|
|
> ${t}-header,
|
||
|
|
> ${t}-body,
|
||
|
|
> ${t}-summary
|
||
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${A(d(i).mul(-1).equal())} ${A(d(d(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
||
|
|
> tr${t}-expanded-row,
|
||
|
|
> tr${t}-placeholder
|
||
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${A(n)} 0 ${A(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Qa=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},No),{wordBreak:"keep-all",[`
|
||
|
|
&${t}-cell-fix-left-last,
|
||
|
|
&${t}-cell-fix-right-first
|
||
|
|
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ja=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Za=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:d,tableExpandColumnWidth:c,borderRadius:p,tablePaddingVertical:u,tablePaddingHorizontal:m,tableExpandedRowBg:f,paddingXXS:v,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:C,expandIconScale:E,calc:x}=e,I=`${A(l)} ${i} ${s}`,S=x(v).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},To(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:A(g),background:d,border:I,borderRadius:p,transform:`scale(${E})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:S,insetInlineStart:S,height:l},"&::after":{top:S,bottom:S,insetInlineStart:C,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${A(x(u).mul(-1).equal())} ${A(x(m).mul(-1).equal())}`,padding:`${A(u)} ${A(m)}`}}}},ei=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:d,lineWidth:c,lineType:p,tableBorderColor:u,headerIconColor:m,fontSizeSM:f,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:g,colorIcon:C,colorPrimary:E,tableHeaderFilterActiveBg:x,colorTextDisabled:I,tableFilterDropdownBg:S,tableFilterDropdownHeight:_,controlItemBgHover:R,controlItemBgActive:N,boxShadowSecondary:M,filterDropdownMenuBg:T,calc:$}=e,B=`${n}-dropdown`,P=`${t}-filter-dropdown`,b=`${n}-tree`,w=`${A(c)} ${p} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${A(i)} ${A($(v).div(2).mul(-1).equal())}`,padding:`0 ${A(i)}`,color:m,fontSize:f,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:C,background:x},"&.active":{color:E}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},Er(e)),{minWidth:l,backgroundColor:S,borderRadius:h,boxShadow:M,overflow:"hidden",[`${B}-menu`]:{maxHeight:_,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${A(s)} 0`,color:I,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${A(s)} 0`,paddingInline:s,[b]:{padding:0},[`${b}-treenode ${b}-node-content-wrapper:hover`]:{backgroundColor:R},[`${b}-treenode-checkbox-checked ${b}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:N}}},[`${P}-search`]:{padding:s,borderBottom:w,"&-input":{input:{minWidth:a},[r]:{color:I}}},[`${P}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${A($(s).sub(c).equal())} ${A(s)}`,overflow:"hidden",borderTop:w}})}},{[`${n}-dropdo
|
||
|
|
${t}-cell-fix-left,
|
||
|
|
${t}-cell-fix-right
|
||
|
|
`]:{position:"sticky !important",zIndex:a,background:i},[`
|
||
|
|
${t}-cell-fix-left-first::after,
|
||
|
|
${t}-cell-fix-left-last::after
|
||
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
||
|
|
${t}-cell-fix-right-first::after,
|
||
|
|
${t}-cell-fix-right-last::after
|
||
|
|
`]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
|
||
|
|
${t}-cell-fix-left-first::after,
|
||
|
|
${t}-cell-fix-left-last::after
|
||
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
|
||
|
|
${t}-cell-fix-right-first::after,
|
||
|
|
${t}-cell-fix-right-last::after
|
||
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`
|
||
|
|
${t}-cell-fix-left-first::after,
|
||
|
|
${t}-cell-fix-left-last::after,
|
||
|
|
${t}-cell-fix-right-first::after,
|
||
|
|
${t}-cell-fix-right-last::after
|
||
|
|
`]:{boxShadow:"none"}}}}},ni=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${A(r)} 0`}}},ri=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${A(n)} ${A(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${A(n)} ${A(n)}`}}}}},oi=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},li=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:d,tableSelectionColumnWidth:c,tableSelectedRowBg:p,tableSelectedRowHoverBg:u,tableRowHoverBg:m,tablePaddingHorizontal:f,calc:v}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:v(c).add(l).add(v(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:v(c).add(v(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:v(c).add(l).add(v(a).div(4)).add(v(i).mul(2)).equal()}},[`
|
||
|
|
table tr th${t}-selection-column,
|
||
|
|
table tr td${t}-selection-column,
|
||
|
|
${t}-selection-column
|
||
|
|
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:v(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:A(v(f).div(4).equal()),[r]:{color:s,fontSize:l,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},ai=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(a,i,s,d)=>({[`${t}${t}-${a}`]:{fontSize:d,[`
|
||
|
|
${t}-title,
|
||
|
|
${t}-footer,
|
||
|
|
${t}-cell,
|
||
|
|
${t}-thead > tr > th,
|
||
|
|
${t}-tbody > tr > th,
|
||
|
|
${t}-tbody > tr > td,
|
||
|
|
tfoot > tr > th,
|
||
|
|
tfoot > tr > td
|
||
|
|
`]:{padding:`${A(i)} ${A(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:A(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${A(r(i).mul(-1).equal())} ${A(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:A(r(i).mul(-1).equal()),marginInline:`${A(r(n).sub(s).equal())} ${A(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:A(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},ii=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
||
|
|
&${t}-cell-fix-left:hover,
|
||
|
|
&${t}-cell-fix-right:hover
|
||
|
|
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},si=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:d,lineWidth:c,lineType:p,tableBorderColor:u}=e,m=`${A(c)} ${p} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${A(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},gr=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${A(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${A(l(n).mul(-1).equal())} 0 ${r}`}}}},ci=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:i}=e,s=`${A(r)} ${l} ${a}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
||
|
|
& > ${t}-row,
|
||
|
|
& > div:not(${t}-row) > ${t}-row
|
||
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${A(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},di=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:d,tableFontSize:c,tableBg:p,tableRadius:u,tableHeaderTextColor:m,motionDurationMid:f,tableHeaderBg:v,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:C,calc:E}=e,x=`${A(i)} ${s} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Bo()),{[t]:Object.assign(Object.assign({},Er(e)),{fontSize:c,background:p,borderRadius:`${A(u)} ${A(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${A(u)} ${A(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
||
|
|
${t}-cell,
|
||
|
|
${t}-thead > tr > th,
|
||
|
|
${t}-tbody > tr > th,
|
||
|
|
${t}-tbody > tr > td,
|
||
|
|
tfoot > tr > th,
|
||
|
|
tfoot > tr > td
|
||
|
|
`]:{position:"relative",padding:`${A(r)} ${A(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${A(r)} ${A(l)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:v,borderBottom:x,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:x,[`
|
||
|
|
> ${t}-wrapper:only-child,
|
||
|
|
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
||
|
|
`]:{[t]:{marginBlock:A(E(r).mul(-1).equal()),marginInline:`${A(E(a).sub(l).equal())}
|
||
|
|
${A(E(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:v,borderBottom:x,transition:`background ${f} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${A(r)} ${A(l)}`,color:g,background:C}})}},ui=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:d,paddingSM:c,paddingXS:p,colorBorderSecondary:u,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:v,fontSize:h,fontSizeSM:g,lineHeight:C,lineWidth:E,colorIcon:x,colorIconHover:I,opacityLoading:S,controlInteractiveSize:_}=e,R=new It(l).onBackground(n).toHexString(),N=new It(a).onBackground(n).toHexString(),M=new It(t).onBackground(n).toHexString(),T=new It(x),$=new It(I),B=_/2-E,P=B*2+E*3;return{headerBg:M,headerColor:r,headerSortActiveBg:R,headerSortHoverBg:N,bodySortBg:M,rowHoverBg:M,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:c,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:u,headerBorderRadius:m,footerBg:M,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:R,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*C-E*3)/2-Math.ceil((g*1.4-E*3)/2),headerIconColor:T.clone().setA(T.a*S).toRgbString(),headerIconHoverColor:$.clone().setA($.a*S).toRgbString(),expandIconHalfInner:B,expandIconSize:P,expandIconScale:_/P}},hr=2,fi=Oo("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:d,bodySortBg:c,rowHoverBg:p,rowSelectedBg:u,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:v,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:C,cellPaddingBlockSM:E,cellPaddingInlineSM:x,borderColor:I,footerBg:S,footerColor:_,headerBorderRadius:R,cellFontSize:N,cellFontSizeMD:M,cellFontSizeSM:T,headerSplitColor:$,fixedHeaderSortActiveBg:B,headerFilterHoverBg:P,filterDropdownBg:b,expandIconBg:w,selectionColumnWidth:y,stickyScrollBarBg:O,calc:L}=e,k=Po(e,{tableFontSize:N,tableBg:r,tableRadius:R,tablePaddingVertical:v,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:E,tablePaddingHorizontalSmall:x,tableBorderColor:I,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:_,tableFooterBg:S,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:d,tableBodySortBg:c,tableFixedHeaderSortActiveBg:B,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:b,tableRowHoverBg:p,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,zIndexTableFixed:hr,zIndexTableSticky:L(hr).add(1).equal({unit:!1}),tableFontSizeMiddle:M,tableFontSizeSmall:T,tableSelectionColumnWidth:y,tableExpandIconBg:w,tableExpandColumnWidth:L(l).add(L(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:O,tableScrollThumbBgHover:t,tableScrollBg:n});return[di(k),ni(k),gr(k),ii(k),ei(k),Ya(k),ri(k),Za(k),gr(k),Ja(k),li(k),ti(k),si(k),Qa(k),ai(k),oi(k),ci(k)]},ui,{unitless:{expandIconScale:!0}}),br=[],mi=(e,t)=>{var n,r;const{prefixCls:l,className:a,rootClassName:i,style:s,size:d,bordered:c,dropdownPrefixCls:p,dataSource:u,pagination:m,rowSelection:f,rowKey:v="key",rowClassName:h,columns:g,children:C,childrenColumnName:E,onChange:x,getPopupContainer:I,loading:S,expandIcon:_,expandable:R,expandedRowRender:N,expandIconColumnIndex:M,indentSize:T,scroll:$,sortDirections:B,locale:P,showSorterTooltip:b={target:"full-header"},virtual:w}=e;Cn(
|