@apollion-dsi/core 7.1.0 → 7.2.0
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/lib/chunks/chunk-HKOM2JMK.esm.js +1 -0
- package/lib/chunks/chunk-MGWZZQPO.esm.js +1 -0
- package/lib/chunks/chunk-VPRTYKGB.esm.js +39 -0
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +5 -5
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +25 -1
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +24 -0
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +7 -7
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +44 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/lib/chunks/chunk-4EVYPW5X.esm.js +0 -1
- package/lib/chunks/chunk-6V6NLBEI.esm.js +0 -39
- package/lib/chunks/chunk-RKHQJTYX.esm.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as A}from"./chunk-ZZOIX6CV.esm.js";import{f as u}from"./chunk-CC5NKEXF.esm.js";import{e as b}from"./chunk-J2ZPCUOE.esm.js";import{a as p}from"./chunk-UDQ3TYVZ.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import{Fragment as O,jsx as t,jsxs as c}from"react/jsx-runtime";var a=i(n=>{if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&/^\d+$/.test(n.trim()))return Number(n)},"asNumber"),x=i(({initialPagination:n,finalPagination:r,linesPerPage:o,totalPagination:d,showingText:E=i((I,l,e)=>`Exibindo ${I} - ${l} de ${e} itens`,"showingText"),linesPerPageLabel:T="Linhas por p\xE1gina",linesPerPageValue:y,onLinesPerPageChange:C,onPreviousPage:k,onNextPage:w,canPreviousPage:m,canNextPage:f,previousLabel:z="Anterior",nextLabel:B="Pr\xF3ximo"})=>{if(!(n&&r&&d&&Array.isArray(o)))return null;let l=!!(k||w),e=a(n),F=a(r),$=a(d),D=m!=null?m:e===void 0?!0:e>1,S=f!=null?f:F===void 0||$===void 0?!0:F<$,j=y===void 0?void 0:o.find(s=>s.value===y);return c(p,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[t(b,{color:"primary.dark",children:E(n,r,d)}),c(p,{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:2,children:[t(b,{color:"primary.dark",children:T}),t(A,{width:"150px",options:o,"aria-label":T,value:j,onChange:C?s=>{var h;return C((h=s[0])==null?void 0:h.value)}:void 0}),l&&c(O,{children:[t(u,{variant:"linked",size:"small",disabled:!D,onClick:k,text:z}),t(u,{variant:"linked",size:"small",disabled:!S,onClick:w,text:B})]})]})]})},"TablePaginationComponent");x.displayName="TablePagination";export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as j}from"./chunk-UQVJ7IG5.esm.js";import{a as Z}from"./chunk-BHRDNR3A.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{K as Q,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{b as I}from"./chunk-H4XR4LGF.esm.js";import{f as ie}from"./chunk-CC5NKEXF.esm.js";import{e as P}from"./chunk-J2ZPCUOE.esm.js";import{a as F}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-347TNROV.esm.js";import{h as Te}from"./chunk-BV6GHAF7.esm.js";import{f as Le,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import S from"react";import X from"react";var q=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),z=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(z).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],z,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(z).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,q,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.muted,z,q,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),E=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],E,E,E,E),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let t=X.useRef(null);return X.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i(et,"useDebounce");var Ht=i(({column:e,labels:o})=>{var a,l;let t=X.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([s],[m])=>String(s).localeCompare(String(m))),[e,e.getFilterValue()]),n=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[t.length===0&&T(P,{variant:"meta",text:(l=o==null?void 0:o.filterNoValues)!=null?l:"Sem valores"}),t.map(([s,m])=>{let d=String(s),f=n.includes(d);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let c=f?n.filter(N=>N!==d):[...n,d];e.setFilterValue(c.length?c:void 0)}}),T(E,{}),T(P,{variant:"meta",text:`${d} (${m})`})]},d)})]})},"SelectFilter"),At=i(({column:e,labels:o})=>{var O,$;let[t,n]=(O=e.getFacetedMinMaxValues())!=null?O:[0,0],a=o!=null&&o.filterRangeMin?o.filterRangeMin(t):`min (${t})`,l=o!=null&&o.filterRangeMax?o.filterRangeMax(n):`max (${n})`,s=($=e.getFilterValue())!=null?$:[void 0,void 0],m=et(k=>{let[R,U]=k,B=R===void 0&&U===void 0;e.setFilterValue(B?void 0:k)},200),[d,f]=X.useState(s[0]!==void 0?String(s[0]):""),[c,N]=X.useState(s[1]!==void 0?String(s[1]):"");return T(ce,{children:Se(F,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T(j,{type:"number",placeholder:a,value:d,onChange:k=>{let R=k.target.value;f(R),m([R===""?void 0:Number(R),c===""?void 0:Number(c)])}}),T(P,{variant:"meta",text:"\u2014"}),T(j,{type:"number",placeholder:l,value:c,onChange:k=>{let R=k.target.value;N(R),m([d===""?void 0:Number(d),R===""?void 0:Number(R)])}})]})})},"RangeFilter"),Wt=i(({column:e,labels:o})=>{var s,m;let t=(s=e.getFilterValue())!=null?s:"",[n,a]=X.useState(t),l=et(d=>{e.setFilterValue(d||void 0)},200);return T(ce,{children:T(j,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:n,onChange:d=>{let f=d.target.value;a(f),l(f)}})})},"TextFilter"),tt=i((e,o,t,n)=>{switch(e){case"select":return T(Ht,{column:o,onClose:t,labels:n});case"range":return T(At,{column:o,onClose:t,labels:n});case"text":return T(Wt,{column:o,onClose:t,labels:n})}},"filterUIForVariant");import V,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as x,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>x(Ye,{...e,ref:o})),rt=i(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=V.forwardRef(({indeterminate:e,children:o,...t},n)=>{let a=V.useRef(null),l=n||a;return V.useEffect(()=>{l.current&&(l.current.indeterminate=e!=null?e:!1)},[l,e]),de(se,{as:"label",children:[o,x(le,{type:"checkbox",ref:l,...t}),x(E,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:i(()=>null,"header"),cell:i(({row:n})=>n.getCanExpand()?x(I,{icon:n.getIsExpanded()?He:Ae,onClick:n.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${n.depth*16}px`}}):x("span",{style:{display:"inline-block",marginLeft:`${n.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}i(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:i(({table:n})=>x(nt,{checked:n.getIsAllRowsSelected(),indeterminate:n.getIsSomeRowsSelected(),onChange:n.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:i(({row:n})=>{var a,l;return x(nt,{checked:n.getIsSelected(),indeterminate:(l=(a=n.getIsSomeSelected)==null?void 0:a.call(n))!=null?l:!1,onChange:n.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}i(it,"buildSelectableColumnDef");function $t(e,o){let t=V.useRef(null);return V.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i($t,"useDebounce");var lt=i(({globalFilter:e,setGlobalFilter:o,placeholder:t})=>{let[n,a]=V.useState(e),l=$t(s=>{o(s||"")},200);return x(j,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),l("")},value:n||"",onChange:s=>{a(s.target.value),l(s.target.value)},placeholder:t,"aria-label":t!=null?t:"Search",icon:x(I,{icon:Oe})})},"GlobalFilter"),st=i(({height:e,emptyIcon:o,emptyTitle:t="Nada foi encontrado",emptyDescription:n})=>x(Ke,{style:{height:e},children:de(F,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,x(P,{textAlign:"center",variant:"h5",text:t}),n&&x(P,{textAlign:"center",variant:"p",text:n})]})}),"EmptyTable");function pe(e,o,t){let[n,a]=V.useState(t),l=e!==void 0,s=l?e:n,m=V.useCallback(d=>{let f=typeof d=="function"?d(s):d;l||a(f),o==null||o(f)},[l,o,s]);return[s,m]}i(pe,"useHybridState");var ct=i(({pageIndex:e,pageSize:o,pageCount:t,rowCount:n,canPreviousPage:a,canNextPage:l,pageSizeOptions:s,onPrevious:m,onNext:d,onPageSizeChange:f,labels:c})=>{var U,B,H,Y,te;let N=n===0?0:e*o+1,O=Math.min((e+1)*o,n),$=(U=c==null?void 0:c.showingRange)!=null?U:((y,M,ge)=>`Mostrando ${y}-${M} de ${ge}`),k=(B=c==null?void 0:c.perPageOption)!=null?B:(y=>`${y} por p\xE1gina`),R=(H=c==null?void 0:c.perPageTrigger)!=null?H:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[x(P,{variant:"meta",text:$(N,O,n)}),de(F,{flexDirection:"row",gap:"small",alignItems:"center",children:[s.length>1&&x(Z,{position:"right",options:s.map(y=>({title:k(y),action:i(()=>f(y),"action")})),children:x(ie,{variant:"linked",size:"small",text:R(o)})}),x(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(Y=c==null?void 0:c.previous)!=null?Y:"Anterior"}),x(P,{variant:"meta",text:`${e+1} / ${Math.max(t,1)}`}),x(ie,{variant:"linked",size:"small",disabled:!l,onClick:d,text:(te=c==null?void 0:c.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(n=>(n.left="flex-start",n.center="center",n.right="flex-end",n))(_t||{});var ee={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as xt,getSortedRowModel as bt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as p,jsxs as L}from"react/jsx-runtime";function Gt(e,o){return e.map(t=>{var l,s,m,d,f;let n=t.accessor?String(t.accessor):void 0,a={id:(l=t.id)!=null?l:n||void 0,header:i(()=>t.Header,"header"),footer:t.Footer?c=>t.Footer({table:c.table}):void 0,enableSorting:!t.disableSortBy,enableResizing:!0,enableColumnFilter:t.disableFilters?!1:!!t.filterVariant,...t.filterVariant&&{filterFn:(s=t.filterFn)!=null?s:Ze[t.filterVariant]},size:(m=t.width)!=null?m:o.width,minSize:(d=t.minWidth)!=null?d:o.minWidth,maxSize:(f=t.maxWidth)!=null?f:o.maxWidth,meta:{align:t.align,selectable:t.selectable,filterVariant:t.filterVariant}};return n?a.accessorKey=n:a.accessorFn=()=>null,t.Cell&&(a.cell=c=>t.Cell({row:c.row,value:c.getValue()})),a})}i(Gt,"toTanstackColumns");function Gn(e){var Ve;let{data:o,columns:t,onRowSelect:n,onRowClick:a,selectableColumnWidth:l,selectableColumn:s,setRowColor:m,title:d,striped:f,bordered:c,searchPlaceholder:N,hasHeader:O,hasFooter:$,hasSpacingMenu:k,inputSearchComponent:R,headerLeftComponent:U=null,headerRightComponent:B=null,lastRowComponent:H,height:Y=400,spacing:te=0,paginated:y=!1,initialPagination:M,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,A=!!Pe,xe=S.useMemo(()=>t.some(r=>r.filterVariant&&!r.disableFilters),[t]),[Ft,be]=S.useState(48),[Pt,kt]=S.useState([]),[ve,Ie]=S.useState(""),[Ce,vt]=S.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=M==null?void 0:M.pageIndex)!=null?r:0,pageSize:(u=(g=M==null?void 0:M.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Mt,Dt]=pe(wt,yt,()=>me!=null?me:{}),[Et,zt]=pe(Tt,St,()=>fe!=null?fe:[]),Vt=S.useMemo(()=>{let r=Gt(t,ee),g=it(s,l),u=at(A,ne!=null?ne:l),w=[];return u&&w.push(u),g&&w.push(g),[...w,...r]},[t,s,l,A,ne]),v=Ct({data:o,columns:Vt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...A&&{expanded:Mt},...xe&&{columnFilters:Et}},enableRowSelection:!!s,enableExpanding:A,...A&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...A&&{onExpandedChange:Dt},...xe&&{onColumnFiltersChange:zt},getCoreRowModel:dt(),getSortedRowModel:bt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:xt()},...A&&{getExpandedRowModel:pt()},...xe&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:ee.width,minSize:ee.minWidth,maxSize:ee.maxWidth}}),K=v.getRowModel().rows;Ne(()=>{if(n){let r=K.filter(g=>Ce[g.id]).map(g=>g.original);n(r)}},[Ce]);let W=Le(),Re=K.length+(H?1:0),Me=S.useCallback((r,g)=>{let u=m&&m(r),w=f&&g%2===0,b=W.colors.surface.paper;return u?b=W.colors[u].light:r.getIsSelected()&&n?b=W.colors.muted:w&&(b=W.colors.surface.sunken),{backgroundColor:b}},[m,f,W,n]),oe=Ft+te,re=S.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:w,selectable:b})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:w?W.spacing("small"):void 0,cursor:b?"pointer":void 0}}),[oe,W]),Lt=S.useCallback(({index:r,style:g})=>{if(H&&r===Re-1)return S.cloneElement(H,{style:g});let u=K[r],w={...g,...Me(u,r)};return p(z,{style:w,children:u.getVisibleCells().map(b=>{var D;let _=(D=b.column.columnDef.meta)!=null?D:{},ye=b.column.id,G;a?G=i(()=>a(u.original),"onClickAction"):n&&(G=i(()=>u.toggleSelected(),"onClickAction"));let J=re({align:_.align,hasCheckbox:ye==="checkbox",selectable:(n||a)&&_.selectable!==!1,cellProps:_.selectable!==!1?{onClick:G}:void 0});return p(q,{...J,style:{...J.style,width:b.column.getSize(),flex:`${b.column.getSize()} 0 auto`},children:ue(b.column.columnDef.cell,b.getContext())},b.id)})})},[K,re,H,a,n,Me,Re]),we=!!K.length,Nt=$&&we&&t.some(r=>"Footer"in r),De=S.useRef(null),ae=ht({count:Re,getScrollElement:i(()=>De.current,"getScrollElement"),estimateSize:i(()=>oe,"estimateSize"),overscan:5});S.useEffect(()=>{ae.measure()},[oe,ae]);let Ee=L(qe,{ref:De,style:{maxHeight:Y},bgColor:"baseLight","data-border":c,"data-default":!f&&!c,children:[p(je,{children:v.getFlatHeaders().map(r=>{var J;let g=(J=r.column.columnDef.meta)!=null?J:{},u=r.column.getCanSort(),w=r.column.getCanResize(),b=r.column.getIsSorted(),_=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),G=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return L(q,{...G,style:{...G.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(_||u)&&L(Qe,{children:[_&&p("span",{role:"presentation",onClick:D=>D.stopPropagation(),children:p(Z,{content:({close:D})=>tt(g.filterVariant,r.column,D,ke),children:p(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&p(Xe,{children:p(I,{icon:rt(b)})})]}),w&&p(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:D=>D.stopPropagation()})]},r.id)})}),we?p(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>p(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Lt({index:r.index,style:{}})},r.key))}):p(st,{...e,height:Y}),Nt&&p(h,{children:p(_e,{children:(Ve=v.getFooterGroups()[0])==null?void 0:Ve.headers.map(r=>{var w;let g=(w=r.column.columnDef.meta)!=null?w:{},u=re({align:g.align});return p(q,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),ze=y&&we&&p(Je,{children:p(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return O?L(F,{gap:"medium",children:[L(F,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[L(F,{flexDirection:"row",gap:"medium",children:[d&&p(P,{variant:"h5",color:"primary.dark",text:d}),U]}),L(F,{flexDirection:"row",gap:"medium",children:[R!=null?R:p(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:N}),B,k?p(F,{alignSelf:"center",children:p(Z,{position:"right",options:[{icon:p(I,{icon:Q}),title:"Layout Compacto",action:i(()=>be(32),"action")},{icon:p(I,{icon:Q}),title:"Layout Padr\xE3o",action:i(()=>be(48),"action")},{icon:p(I,{icon:Q}),title:"Layout Expandido",action:i(()=>be(64),"action")}],children:p(I,{size:5,icon:Q,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),Ee,ze]}):L(jt,{children:[Ee,ze]})}i(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{a as c}from"./chunk-X2CMFDNG.esm.js";import{b as q}from"./chunk-RNAHUZE7.esm.js";import{a as T}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-FBHZTBNG.esm.js";import{a as j}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-EFFENLBC.esm.js";import{a as K}from"./chunk-HKOM2JMK.esm.js";import{g as O}from"./chunk-UQVJ7IG5.esm.js";import{a as A}from"./chunk-BHRDNR3A.esm.js";import{a as V}from"./chunk-CLU3WNVI.esm.js";import{F as N,K as y,Y as M,v as I,w as B}from"./chunk-DAT6GD4T.esm.js";import{b as m}from"./chunk-H4XR4LGF.esm.js";import{a as z,e as E}from"./chunk-J2ZPCUOE.esm.js";import{a as f}from"./chunk-UDQ3TYVZ.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as L}from"./chunk-TZQMBDGR.esm.js";import{b as o,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import P,{useEffect as ue,useState as v}from"react";function ie(e){switch(e){case"Compact":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("micro"),l,c,({theme:t})=>t.spacing("micro"));case"Expansive":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("large"),l,c,({theme:t})=>t.spacing("large"));default:return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("medium"),l,c,({theme:t})=>t.spacing("medium"))}}i(ie,"getSizeStyle");function D(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(D,"getAlignDirection");function ae(e){if(typeof e=="object"){let t=e.reduce((u,r)=>{let x=`
|
|
2
|
+
& ${l}, ${c}, ${s} {
|
|
3
|
+
&:nth-child(${r.target}) {
|
|
4
|
+
${f} {
|
|
5
|
+
text-align: ${r.direction};
|
|
6
|
+
align-items: ${D(r.direction)}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;return`${u} ${x}`},"");return o(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,f,D("center"),t)}return e!==void 0?o(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,f,e,D(e)):o(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,f)}i(ae,"getAlignStyle");function re(e){if(e===void 0)return o([""]);let t=e.map((u,r)=>u&&(u.type===void 0?`
|
|
11
|
+
&:nth-child(${r+1}) {
|
|
12
|
+
width: ${u.width}px;
|
|
13
|
+
}
|
|
14
|
+
`:`
|
|
15
|
+
&:nth-child(${r+1}) {
|
|
16
|
+
${u.type}-width: ${u.width}px;
|
|
17
|
+
}
|
|
18
|
+
`));return o(["& ",",",",","{","}"],l,c,s,t)}i(re,"getColumnSizeStyle");function oe(){return o(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,z)}i(oe,"getEllipsisStyle");function le(e){return e.map(t=>o(["& ","{&:nth-child(","){",";}}"],T,t+1,L({bgColor:"muted"})))}i(le,"getSelectedStyle");var ce=`
|
|
19
|
+
& ${s} {
|
|
20
|
+
position: sticky;
|
|
21
|
+
top: 0;
|
|
22
|
+
}
|
|
23
|
+
`,se=o(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],V,T,L({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s),de=i(e=>`
|
|
24
|
+
& ${T}{
|
|
25
|
+
&:hover{
|
|
26
|
+
& ${l}, ${c}{
|
|
27
|
+
/* box-shadow inset instead of border avoids layout shift on hover
|
|
28
|
+
(rows would get +1px taller on mouseover, causing visible
|
|
29
|
+
drift). Visually identical to the classic border-1px. */
|
|
30
|
+
box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
|
|
31
|
+
&:first-child{
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
|
|
34
|
+
inset 0 -1px 0 ${e.colors.edge.border};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,"getHoverableProps"),W=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&ce,({striped:e})=>e&&se,({hoverable:e,theme:t})=>e&&de(t),({selected:e})=>le(e),({ellipsis:e})=>e?oe():"",({columnSize:e})=>re(e),({align:e})=>ae(e),({rowSize:e})=>ie(e));import{jsx as a,jsxs as C}from"react/jsx-runtime";var Y=i(e=>{let[t,u]=v(""),[r,x]=v([]),[k,w]=v([]),[G,S]=v("Default"),b=P.useRef(null);ue(()=>{if(!b.current)return;let n=Array.from(b.current.children);x(n)},[]);let J=P.Children.toArray(e.children).length>1?1:0,Q=P.Children.map(e.children,(n,g)=>g===J?P.cloneElement(n,{ref:b}):n),U=i(n=>{if(n.key==="Enter"){if(!b.current)return;let g=b.current.children,d=r.map((h,p)=>{let $=g[p];return $&&(t===""&&($.style.display=""),h.innerText.toLowerCase().includes(t.toLowerCase())||($.style.display="none")),h});x(d)}},"getFilterData"),X=r.length>0&&r.every(n=>n.style.display==="none"),Z=r.length,_=i((n,g)=>{g&&w(d=>[...d,n]),g||w(k.filter(d=>d!==n))},"getSelected"),ee=i(n=>(r.forEach((g,d)=>{let h=g.children[0].querySelectorAll("input")[0];return n&&(h.checked=!0,w(p=>[...p,d])),n||(h.checked=!1,w([])),null}),n),"getAllSelected"),te=i(n=>r.map(d=>parseInt(d.children[n].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ne=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(n){switch(n){case"normal":if(Z<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return i(H,"getOverflow"),C(f,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[C(f,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&a(E,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true",children:e.title}),C(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&a(f,{width:"230px",children:a(O,{placeholder:"Pesquisar",type:"text",value:t,name:"search",onChange:n=>u(n.target.value),onKeyDown:n=>U(n),width:"230",icon:a(m,{icon:I}),role:"search"})}),e.rowTypes&&a(A,{options:[{icon:a(m,{icon:y}),title:"Layout Condensado",action:i(()=>S("Compact"),"action")},{icon:a(m,{icon:y}),title:"Layout Padr\xE3o",action:i(()=>S("Expansive"),"action")},{icon:a(m,{icon:y}),title:"Layout Expandido",action:i(()=>S("Default"),"action")}],children:a(m,{icon:y,color:"primary"})}),e.share&&a(A,{options:[{icon:a(m,{icon:N}),title:"Enviar por email",action:e.share.email},{icon:a(m,{icon:M}),title:"Compartilhar",action:e.share.social}],children:a(m,{icon:B,color:"primary"})})]})]}),ne&&a(K,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel,linesPerPageValue:e.linesPerPageValue,onLinesPerPageChange:e.onLinesPerPageChange,onPreviousPage:e.onPreviousPage,onNextPage:e.onNextPage,canPreviousPage:e.canPreviousPage,canNextPage:e.canNextPage,previousLabel:e.previousLabel,nextLabel:e.nextLabel}),C(W,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:G||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,children:[a(E,{as:"caption","aria-hidden":"false",hidden:!0,children:e.title}),a(j.Provider,{value:{ellipsis:e.ellipsis,getSelected:_,getAllSelected:ee,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:te(e.columnSum)}:{index:void 0,sum:void 0}},children:Q})]}),X&&a(q,{})]})},"TableComponent");export{W as a,Y as b};
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
* @see ../../vendors/TanstackReactTable (getFacetedRowModel + helpers)
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import type { DataTableLabels } from './DataTable.interface';
|
|
22
|
+
import type { DataTableLabels, FilterVariant } from './DataTable.interface';
|
|
23
23
|
import type { Column as TanstackColumn } from '../../vendors/TanstackReactTable';
|
|
24
24
|
/**
|
|
25
25
|
* Resolves the filterFn per variant (builtin string id). The consumer may
|
|
26
26
|
* override via `Column.filterFn` at the callsite — this mapping is the
|
|
27
27
|
* fallback.
|
|
28
28
|
*/
|
|
29
|
-
export declare const VARIANT_FILTER_FN: Record<
|
|
29
|
+
export declare const VARIANT_FILTER_FN: Record<FilterVariant, string>;
|
|
30
30
|
type FilterColumn = TanstackColumn<any, any>;
|
|
31
31
|
/** Filter-facing subset of {@link DataTableLabels}, threaded down by `DataTable`. */
|
|
32
|
-
export type FilterLabels = Pick<DataTableLabels, 'filterNoValues' | 'filterPlaceholder'>;
|
|
32
|
+
export type FilterLabels = Pick<DataTableLabels, 'filterNoValues' | 'filterPlaceholder' | 'filterRangeMin' | 'filterRangeMax'>;
|
|
33
33
|
type FilterUIProps = {
|
|
34
34
|
column: FilterColumn;
|
|
35
35
|
onClose: () => void;
|
|
@@ -46,7 +46,7 @@ export declare const SelectFilter: ({ column, labels }: FilterUIProps) => import
|
|
|
46
46
|
* Numeric range. Default bounds come from `column.getFacetedMinMaxValues()`.
|
|
47
47
|
* Apply debounced 200ms.
|
|
48
48
|
*/
|
|
49
|
-
export declare const RangeFilter: ({ column }: FilterUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const RangeFilter: ({ column, labels }: FilterUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
50
|
/**
|
|
51
51
|
* Text contains (case-insensitive). Apply debounced 200ms — mirror of the
|
|
52
52
|
* `GlobalFilter` pattern.
|
|
@@ -55,5 +55,5 @@ export declare const TextFilter: ({ column, labels }: FilterUIProps) => import("
|
|
|
55
55
|
/**
|
|
56
56
|
* Resolves which sub-component to render for each variant.
|
|
57
57
|
*/
|
|
58
|
-
export declare const filterUIForVariant: (variant:
|
|
58
|
+
export declare const filterUIForVariant: (variant: FilterVariant, column: FilterColumn, onClose: () => void, labels?: FilterLabels) => React.ReactElement;
|
|
59
59
|
export {};
|
|
@@ -36,6 +36,18 @@ export type CellStyle = {
|
|
|
36
36
|
selectable?: boolean;
|
|
37
37
|
cellProps?: React.ComponentPropsWithoutRef<'div'>;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Per-column filter UI variant (`Column.filterVariant`). Each variant maps to
|
|
41
|
+
* a tanstack builtin `filterFn` and a `filterValue` shape — see
|
|
42
|
+
* `VARIANT_FILTER_FN` in `DataTable.filters.tsx`:
|
|
43
|
+
*
|
|
44
|
+
* | Variant | builtin filterFn | `filterValue` |
|
|
45
|
+
* | ---------- | ----------------- | -------------------------- |
|
|
46
|
+
* | `'select'` | `arrIncludesSome` | `string[]` |
|
|
47
|
+
* | `'range'` | `inNumberRange` | `[min?, max?]` (numbers) |
|
|
48
|
+
* | `'text'` | `includesString` | `string` (case-insensitive) |
|
|
49
|
+
*/
|
|
50
|
+
export type FilterVariant = 'select' | 'range' | 'text';
|
|
39
51
|
/**
|
|
40
52
|
* Definition of a `DataTable` column.
|
|
41
53
|
*
|
|
@@ -112,7 +124,7 @@ export type Column<T extends Record<string, unknown>> = {
|
|
|
112
124
|
*
|
|
113
125
|
* @default undefined (no filter UI)
|
|
114
126
|
*/
|
|
115
|
-
filterVariant?:
|
|
127
|
+
filterVariant?: FilterVariant;
|
|
116
128
|
/**
|
|
117
129
|
* Override of the variant's default filterFn. Accepts a
|
|
118
130
|
* tanstack-react-table builtin name (`'includesString'`, `'inNumberRange'`,
|
|
@@ -182,6 +194,18 @@ export interface DataTableLabels {
|
|
|
182
194
|
* @default 'Filtrar...'
|
|
183
195
|
*/
|
|
184
196
|
filterPlaceholder?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Range-filter "min" input placeholder; receives the faceted lower bound.
|
|
199
|
+
*
|
|
200
|
+
* @default (min) => `min (${min})`
|
|
201
|
+
*/
|
|
202
|
+
filterRangeMin?: (min: number) => string;
|
|
203
|
+
/**
|
|
204
|
+
* Range-filter "max" input placeholder; receives the faceted upper bound.
|
|
205
|
+
*
|
|
206
|
+
* @default (max) => `max (${max})`
|
|
207
|
+
*/
|
|
208
|
+
filterRangeMax?: (max: number) => string;
|
|
185
209
|
}
|
|
186
210
|
/**
|
|
187
211
|
* `DataTable`-specific props (without the props of the wrapping `<div>`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-MGWZZQPO.esm.js";import"../../chunks/chunk-UQVJ7IG5.esm.js";import"../../chunks/chunk-BHRDNR3A.esm.js";import"../../chunks/chunk-3ICGUDL7.esm.js";import"../../chunks/chunk-EK6YOJCW.esm.js";import"../../chunks/chunk-ZMHNNJNC.esm.js";import"../../chunks/chunk-KQQ7V7VG.esm.js";import"../../chunks/chunk-A3OJEVGQ.esm.js";import"../../chunks/chunk-RR2TYGZC.esm.js";import"../../chunks/chunk-2FQC32AA.esm.js";import"../../chunks/chunk-HSKYQ6VP.esm.js";import"../../chunks/chunk-SPHHNZVP.esm.js";import"../../chunks/chunk-4UWZA5FD.esm.js";import"../../chunks/chunk-3QSPHURU.esm.js";import"../../chunks/chunk-NDIYF5SX.esm.js";import"../../chunks/chunk-KR2X2UQG.esm.js";import"../../chunks/chunk-BE2JDTVA.esm.js";import"../../chunks/chunk-KZTG5TDM.esm.js";import"../../chunks/chunk-5ILT45RQ.esm.js";import"../../chunks/chunk-DAT6GD4T.esm.js";import"../../chunks/chunk-H4XR4LGF.esm.js";import"../../chunks/chunk-HGOJTQ3L.esm.js";import"../../chunks/chunk-JLUNVLUS.esm.js";import"../../chunks/chunk-7TJO34VI.esm.js";import"../../chunks/chunk-JLQDS5TS.esm.js";import"../../chunks/chunk-5Q265MC7.esm.js";import"../../chunks/chunk-3V3ZEGHO.esm.js";import"../../chunks/chunk-CC5NKEXF.esm.js";import"../../chunks/chunk-J2ZPCUOE.esm.js";import"../../chunks/chunk-EBOJSNZ5.esm.js";import"../../chunks/chunk-4E3BR56X.esm.js";import"../../chunks/chunk-TMIQIUOH.esm.js";import"../../chunks/chunk-4L2KOZIQ.esm.js";import"../../chunks/chunk-MYGV5PMT.esm.js";import"../../chunks/chunk-4TQV5FFJ.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-TG2P4DDY.esm.js";import"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-YSSFTYCU.esm.js";import"../../chunks/chunk-ZQ5JOSGH.esm.js";import"../../chunks/chunk-KT4BKJVV.esm.js";import"../../chunks/chunk-UDQ3TYVZ.esm.js";import"../../chunks/chunk-347TNROV.esm.js";import"../../chunks/chunk-MPMCXGOX.esm.js";import"../../chunks/chunk-TBHGVERY.esm.js";import"../../chunks/chunk-62CVSGJD.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-MBQGF5IM.esm.js";import"../../chunks/chunk-CK3WBMQQ.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-RZLOZ3NW.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-XTY6DXMK.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as CellAlign,c as DataTable,a as RowColor};
|
|
@@ -92,6 +92,30 @@ export interface TableInterface {
|
|
|
92
92
|
* @default 'Linhas por página'
|
|
93
93
|
*/
|
|
94
94
|
linesPerPageLabel?: TablePaginationInterface['linesPerPageLabel'];
|
|
95
|
+
/** Selected rows-per-page value (controlled selector). */
|
|
96
|
+
linesPerPageValue?: TablePaginationInterface['linesPerPageValue'];
|
|
97
|
+
/** Rows-per-page change handler (receives the option `value`). */
|
|
98
|
+
onLinesPerPageChange?: TablePaginationInterface['onLinesPerPageChange'];
|
|
99
|
+
/** Previous-page handler — renders the pagination navigation when set. */
|
|
100
|
+
onPreviousPage?: TablePaginationInterface['onPreviousPage'];
|
|
101
|
+
/** Next-page handler — renders the pagination navigation when set. */
|
|
102
|
+
onNextPage?: TablePaginationInterface['onNextPage'];
|
|
103
|
+
/** Enables the previous-page button (derived from the numeric range when omitted). */
|
|
104
|
+
canPreviousPage?: TablePaginationInterface['canPreviousPage'];
|
|
105
|
+
/** Enables the next-page button (derived from the numeric range when omitted). */
|
|
106
|
+
canNextPage?: TablePaginationInterface['canNextPage'];
|
|
107
|
+
/**
|
|
108
|
+
* Previous-page button text.
|
|
109
|
+
*
|
|
110
|
+
* @default 'Anterior'
|
|
111
|
+
*/
|
|
112
|
+
previousLabel?: TablePaginationInterface['previousLabel'];
|
|
113
|
+
/**
|
|
114
|
+
* Next-page button text.
|
|
115
|
+
*
|
|
116
|
+
* @default 'Próximo'
|
|
117
|
+
*/
|
|
118
|
+
nextLabel?: TablePaginationInterface['nextLabel'];
|
|
95
119
|
/** Index of the column whose sum should be displayed in the `<TableFooter />` (0-based). */
|
|
96
120
|
columnSum?: number;
|
|
97
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../../chunks/chunk-VPRTYKGB.esm.js";import"../../../chunks/chunk-X2CMFDNG.esm.js";import"../../../chunks/chunk-RNAHUZE7.esm.js";import"../../../chunks/chunk-F7PA7OCV.esm.js";import"../../../chunks/chunk-FBHZTBNG.esm.js";import"../../../chunks/chunk-JY6IWPBO.esm.js";import"../../../chunks/chunk-KU2OQ3LP.esm.js";import"../../../chunks/chunk-7BPSZCSD.esm.js";import"../../../chunks/chunk-UACWLLHE.esm.js";import"../../../chunks/chunk-CDRLVSLF.esm.js";import"../../../chunks/chunk-EFFENLBC.esm.js";import"../../../chunks/chunk-XQJ4DROM.esm.js";import"../../../chunks/chunk-HKOM2JMK.esm.js";import"../../../chunks/chunk-ZZOIX6CV.esm.js";import"../../../chunks/chunk-UQVJ7IG5.esm.js";import"../../../chunks/chunk-BHRDNR3A.esm.js";import"../../../chunks/chunk-3ICGUDL7.esm.js";import"../../../chunks/chunk-CLU3WNVI.esm.js";import"../../../chunks/chunk-EK6YOJCW.esm.js";import"../../../chunks/chunk-ZMHNNJNC.esm.js";import"../../../chunks/chunk-KQQ7V7VG.esm.js";import"../../../chunks/chunk-A3OJEVGQ.esm.js";import"../../../chunks/chunk-RR2TYGZC.esm.js";import"../../../chunks/chunk-2FQC32AA.esm.js";import"../../../chunks/chunk-HSKYQ6VP.esm.js";import"../../../chunks/chunk-SPHHNZVP.esm.js";import"../../../chunks/chunk-4UWZA5FD.esm.js";import"../../../chunks/chunk-3QSPHURU.esm.js";import"../../../chunks/chunk-NDIYF5SX.esm.js";import"../../../chunks/chunk-KR2X2UQG.esm.js";import"../../../chunks/chunk-BE2JDTVA.esm.js";import"../../../chunks/chunk-KZTG5TDM.esm.js";import"../../../chunks/chunk-5ILT45RQ.esm.js";import"../../../chunks/chunk-DAT6GD4T.esm.js";import"../../../chunks/chunk-H4XR4LGF.esm.js";import"../../../chunks/chunk-HGOJTQ3L.esm.js";import"../../../chunks/chunk-JLUNVLUS.esm.js";import"../../../chunks/chunk-7TJO34VI.esm.js";import"../../../chunks/chunk-JLQDS5TS.esm.js";import"../../../chunks/chunk-5Q265MC7.esm.js";import"../../../chunks/chunk-3V3ZEGHO.esm.js";import"../../../chunks/chunk-CC5NKEXF.esm.js";import"../../../chunks/chunk-J2ZPCUOE.esm.js";import"../../../chunks/chunk-EBOJSNZ5.esm.js";import"../../../chunks/chunk-4E3BR56X.esm.js";import"../../../chunks/chunk-TMIQIUOH.esm.js";import"../../../chunks/chunk-4L2KOZIQ.esm.js";import"../../../chunks/chunk-MYGV5PMT.esm.js";import"../../../chunks/chunk-4TQV5FFJ.esm.js";import"../../../chunks/chunk-YJHYFCT7.esm.js";import"../../../chunks/chunk-TLIKQFOT.esm.js";import"../../../chunks/chunk-IA234JY2.esm.js";import"../../../chunks/chunk-TG5BCBO4.esm.js";import"../../../chunks/chunk-G757UD32.esm.js";import"../../../chunks/chunk-OSFHXCPW.esm.js";import"../../../chunks/chunk-BERIBF3O.esm.js";import"../../../chunks/chunk-LVVNQRJ2.esm.js";import"../../../chunks/chunk-Z7GJDO5T.esm.js";import"../../../chunks/chunk-P7RR4ZHS.esm.js";import"../../../chunks/chunk-JOKVE3IX.esm.js";import"../../../chunks/chunk-CWRWYU7D.esm.js";import"../../../chunks/chunk-PFLBU7HG.esm.js";import"../../../chunks/chunk-TG2P4DDY.esm.js";import"../../../chunks/chunk-UHABJEDB.esm.js";import"../../../chunks/chunk-3DUB5C4Z.esm.js";import"../../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../../chunks/chunk-HVFI7FHR.esm.js";import"../../../chunks/chunk-YSSFTYCU.esm.js";import"../../../chunks/chunk-ZQ5JOSGH.esm.js";import"../../../chunks/chunk-KT4BKJVV.esm.js";import"../../../chunks/chunk-UDQ3TYVZ.esm.js";import"../../../chunks/chunk-347TNROV.esm.js";import"../../../chunks/chunk-MPMCXGOX.esm.js";import"../../../chunks/chunk-TBHGVERY.esm.js";import"../../../chunks/chunk-62CVSGJD.esm.js";import"../../../chunks/chunk-VMIXRIQ2.esm.js";import"../../../chunks/chunk-VUFEYXWD.esm.js";import"../../../chunks/chunk-SF2QSF7E.esm.js";import"../../../chunks/chunk-MBQGF5IM.esm.js";import"../../../chunks/chunk-CK3WBMQQ.esm.js";import"../../../chunks/chunk-RWLJNXLX.esm.js";import"../../../chunks/chunk-RZLOZ3NW.esm.js";import"../../../chunks/chunk-IK5Z5C2R.esm.js";import"../../../chunks/chunk-BNB3KNKE.esm.js";import"../../../chunks/chunk-OXQA5WD3.esm.js";import"../../../chunks/chunk-TZQMBDGR.esm.js";import"../../../chunks/chunk-WCUEINBQ.esm.js";import"../../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../../chunks/chunk-QYL6LECA.esm.js";import"../../../chunks/chunk-3A7I6HM2.esm.js";import"../../../chunks/chunk-XTY6DXMK.esm.js";import"../../../chunks/chunk-R2B57RMV.esm.js";import"../../../chunks/chunk-RFUX53ZX.esm.js";import"../../../chunks/chunk-CQASQBD7.esm.js";import"../../../chunks/chunk-MREWGN5R.esm.js";import"../../../chunks/chunk-PXVTXO3L.esm.js";import"../../../chunks/chunk-BV6GHAF7.esm.js";import"../../../chunks/chunk-G5Z7USXC.esm.js";import"../../../chunks/chunk-AXUWC2WH.esm.js";import"../../../chunks/chunk-GZONWSRB.esm.js";export{b as SuperTable,b as Table,a as TableStyle};
|
|
@@ -2,15 +2,15 @@ import { TablePaginationInterface } from './TablePagination.interface';
|
|
|
2
2
|
/**
|
|
3
3
|
* Pagination bar displayed above the table.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* is configured.
|
|
5
|
+
* Shows the current range ("Exibindo X - Y de Z"), the rows-per-page
|
|
6
|
+
* selector and — when `onPreviousPage`/`onNextPage` are wired — the
|
|
7
|
+
* previous/next navigation. Renders `null` if any range prop is missing;
|
|
8
|
+
* the root `Table` only mounts the component when pagination is configured.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* the
|
|
10
|
+
* Stateless: the consumer owns the page index and the data slice. Without
|
|
11
|
+
* the callbacks the bar stays display-only (the historical behaviour).
|
|
12
12
|
*/
|
|
13
13
|
export declare const TablePaginationComponent: {
|
|
14
|
-
({ initialPagination, finalPagination, linesPerPage, totalPagination, showingText, linesPerPageLabel, }: TablePaginationInterface): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
({ initialPagination, finalPagination, linesPerPage, totalPagination, showingText, linesPerPageLabel, linesPerPageValue, onLinesPerPageChange, onPreviousPage, onNextPage, canPreviousPage, canNextPage, previousLabel, nextLabel, }: TablePaginationInterface): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Accepts string or number for flexibility — some APIs return counts
|
|
5
5
|
* already formatted ("1.234", "1k+"). For the bar to render, all four
|
|
6
|
-
* props must be defined.
|
|
6
|
+
* range props must be defined.
|
|
7
|
+
*
|
|
8
|
+
* The bar is stateless. Wire `onPreviousPage`/`onNextPage` to render the
|
|
9
|
+
* page navigation and `linesPerPageValue`/`onLinesPerPageChange` to control
|
|
10
|
+
* the rows-per-page selector — the consumer owns the page state and the
|
|
11
|
+
* data slice (server- or client-side).
|
|
7
12
|
*/
|
|
8
13
|
export interface TablePaginationInterface {
|
|
9
14
|
/** Index/position of the first item in the current range. */
|
|
@@ -26,4 +31,42 @@ export interface TablePaginationInterface {
|
|
|
26
31
|
* @default 'Linhas por página'
|
|
27
32
|
*/
|
|
28
33
|
linesPerPageLabel?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Selected rows-per-page `value` (controlled). Must match one of the
|
|
36
|
+
* `linesPerPage` option values.
|
|
37
|
+
*/
|
|
38
|
+
linesPerPageValue?: any;
|
|
39
|
+
/** Called with the chosen option's `value` when the selector changes. */
|
|
40
|
+
onLinesPerPageChange?: (value: any) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Previous-page handler. The navigation buttons render when this or
|
|
43
|
+
* `onNextPage` is provided.
|
|
44
|
+
*/
|
|
45
|
+
onPreviousPage?: () => void;
|
|
46
|
+
/** Next-page handler. See {@link TablePaginationInterface.onPreviousPage}. */
|
|
47
|
+
onNextPage?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Enables the previous-page button. When omitted it is derived from the
|
|
50
|
+
* range: disabled while `initialPagination <= 1` (numeric values only —
|
|
51
|
+
* formatted strings keep it enabled).
|
|
52
|
+
*/
|
|
53
|
+
canPreviousPage?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Enables the next-page button. When omitted it is derived from the
|
|
56
|
+
* range: disabled once `finalPagination >= totalPagination` (numeric
|
|
57
|
+
* values only — formatted strings keep it enabled).
|
|
58
|
+
*/
|
|
59
|
+
canNextPage?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Previous-page button text.
|
|
62
|
+
*
|
|
63
|
+
* @default 'Anterior'
|
|
64
|
+
*/
|
|
65
|
+
previousLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Next-page button text.
|
|
68
|
+
*
|
|
69
|
+
* @default 'Próximo'
|
|
70
|
+
*/
|
|
71
|
+
nextLabel?: string;
|
|
29
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/chunk-
|
|
1
|
+
import{a}from"../../../chunks/chunk-HKOM2JMK.esm.js";import"../../../chunks/chunk-ZZOIX6CV.esm.js";import"../../../chunks/chunk-ZMHNNJNC.esm.js";import"../../../chunks/chunk-KQQ7V7VG.esm.js";import"../../../chunks/chunk-A3OJEVGQ.esm.js";import"../../../chunks/chunk-RR2TYGZC.esm.js";import"../../../chunks/chunk-2FQC32AA.esm.js";import"../../../chunks/chunk-HSKYQ6VP.esm.js";import"../../../chunks/chunk-SPHHNZVP.esm.js";import"../../../chunks/chunk-4UWZA5FD.esm.js";import"../../../chunks/chunk-3QSPHURU.esm.js";import"../../../chunks/chunk-NDIYF5SX.esm.js";import"../../../chunks/chunk-KR2X2UQG.esm.js";import"../../../chunks/chunk-BE2JDTVA.esm.js";import"../../../chunks/chunk-KZTG5TDM.esm.js";import"../../../chunks/chunk-5Q265MC7.esm.js";import"../../../chunks/chunk-3V3ZEGHO.esm.js";import"../../../chunks/chunk-CC5NKEXF.esm.js";import"../../../chunks/chunk-J2ZPCUOE.esm.js";import"../../../chunks/chunk-EBOJSNZ5.esm.js";import"../../../chunks/chunk-4E3BR56X.esm.js";import"../../../chunks/chunk-TMIQIUOH.esm.js";import"../../../chunks/chunk-4L2KOZIQ.esm.js";import"../../../chunks/chunk-MYGV5PMT.esm.js";import"../../../chunks/chunk-4TQV5FFJ.esm.js";import"../../../chunks/chunk-YJHYFCT7.esm.js";import"../../../chunks/chunk-TLIKQFOT.esm.js";import"../../../chunks/chunk-IA234JY2.esm.js";import"../../../chunks/chunk-TG5BCBO4.esm.js";import"../../../chunks/chunk-G757UD32.esm.js";import"../../../chunks/chunk-OSFHXCPW.esm.js";import"../../../chunks/chunk-BERIBF3O.esm.js";import"../../../chunks/chunk-LVVNQRJ2.esm.js";import"../../../chunks/chunk-Z7GJDO5T.esm.js";import"../../../chunks/chunk-P7RR4ZHS.esm.js";import"../../../chunks/chunk-JOKVE3IX.esm.js";import"../../../chunks/chunk-CWRWYU7D.esm.js";import"../../../chunks/chunk-PFLBU7HG.esm.js";import"../../../chunks/chunk-TG2P4DDY.esm.js";import"../../../chunks/chunk-UHABJEDB.esm.js";import"../../../chunks/chunk-3DUB5C4Z.esm.js";import"../../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../../chunks/chunk-HVFI7FHR.esm.js";import"../../../chunks/chunk-YSSFTYCU.esm.js";import"../../../chunks/chunk-ZQ5JOSGH.esm.js";import"../../../chunks/chunk-KT4BKJVV.esm.js";import"../../../chunks/chunk-UDQ3TYVZ.esm.js";import"../../../chunks/chunk-347TNROV.esm.js";import"../../../chunks/chunk-MPMCXGOX.esm.js";import"../../../chunks/chunk-TBHGVERY.esm.js";import"../../../chunks/chunk-62CVSGJD.esm.js";import"../../../chunks/chunk-VMIXRIQ2.esm.js";import"../../../chunks/chunk-VUFEYXWD.esm.js";import"../../../chunks/chunk-SF2QSF7E.esm.js";import"../../../chunks/chunk-MBQGF5IM.esm.js";import"../../../chunks/chunk-CK3WBMQQ.esm.js";import"../../../chunks/chunk-RWLJNXLX.esm.js";import"../../../chunks/chunk-RZLOZ3NW.esm.js";import"../../../chunks/chunk-IK5Z5C2R.esm.js";import"../../../chunks/chunk-BNB3KNKE.esm.js";import"../../../chunks/chunk-OXQA5WD3.esm.js";import"../../../chunks/chunk-TZQMBDGR.esm.js";import"../../../chunks/chunk-WCUEINBQ.esm.js";import"../../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../../chunks/chunk-QYL6LECA.esm.js";import"../../../chunks/chunk-3A7I6HM2.esm.js";import"../../../chunks/chunk-XTY6DXMK.esm.js";import"../../../chunks/chunk-R2B57RMV.esm.js";import"../../../chunks/chunk-RFUX53ZX.esm.js";import"../../../chunks/chunk-CQASQBD7.esm.js";import"../../../chunks/chunk-MREWGN5R.esm.js";import"../../../chunks/chunk-PXVTXO3L.esm.js";import"../../../chunks/chunk-BV6GHAF7.esm.js";import"../../../chunks/chunk-G5Z7USXC.esm.js";import"../../../chunks/chunk-AXUWC2WH.esm.js";import"../../../chunks/chunk-GZONWSRB.esm.js";export{a as SuperTablePagination,a as TablePagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunks/chunk-5337L6ZX.esm.js";import{a as p,b as q}from"../../chunks/chunk-AM56FZLE.esm.js";import{a as r,b as s}from"../../chunks/chunk-LNZNPIZT.esm.js";import{a as t,b as u}from"../../chunks/chunk-CTFEQBY7.esm.js";import{a as k,b as o}from"../../chunks/chunk-
|
|
1
|
+
import"../../chunks/chunk-5337L6ZX.esm.js";import{a as p,b as q}from"../../chunks/chunk-AM56FZLE.esm.js";import{a as r,b as s}from"../../chunks/chunk-LNZNPIZT.esm.js";import{a as t,b as u}from"../../chunks/chunk-CTFEQBY7.esm.js";import{a as k,b as o}from"../../chunks/chunk-VPRTYKGB.esm.js";import{a as e,b as f}from"../../chunks/chunk-X2CMFDNG.esm.js";import{a as l,b as m}from"../../chunks/chunk-RNAHUZE7.esm.js";import{a as i,b as j}from"../../chunks/chunk-F7PA7OCV.esm.js";import{a as c,b as d}from"../../chunks/chunk-FBHZTBNG.esm.js";import"../../chunks/chunk-JY6IWPBO.esm.js";import"../../chunks/chunk-KU2OQ3LP.esm.js";import"../../chunks/chunk-7BPSZCSD.esm.js";import"../../chunks/chunk-UACWLLHE.esm.js";import"../../chunks/chunk-CDRLVSLF.esm.js";import{a as g,b as h}from"../../chunks/chunk-EFFENLBC.esm.js";import"../../chunks/chunk-XQJ4DROM.esm.js";import{a as n}from"../../chunks/chunk-HKOM2JMK.esm.js";import"../../chunks/chunk-ZZOIX6CV.esm.js";import"../../chunks/chunk-UQVJ7IG5.esm.js";import"../../chunks/chunk-BHRDNR3A.esm.js";import"../../chunks/chunk-3ICGUDL7.esm.js";import{a,b}from"../../chunks/chunk-CLU3WNVI.esm.js";import"../../chunks/chunk-EK6YOJCW.esm.js";import"../../chunks/chunk-ZMHNNJNC.esm.js";import"../../chunks/chunk-KQQ7V7VG.esm.js";import"../../chunks/chunk-A3OJEVGQ.esm.js";import"../../chunks/chunk-RR2TYGZC.esm.js";import"../../chunks/chunk-2FQC32AA.esm.js";import"../../chunks/chunk-HSKYQ6VP.esm.js";import"../../chunks/chunk-SPHHNZVP.esm.js";import"../../chunks/chunk-4UWZA5FD.esm.js";import"../../chunks/chunk-3QSPHURU.esm.js";import"../../chunks/chunk-NDIYF5SX.esm.js";import"../../chunks/chunk-KR2X2UQG.esm.js";import"../../chunks/chunk-BE2JDTVA.esm.js";import"../../chunks/chunk-KZTG5TDM.esm.js";import"../../chunks/chunk-5ILT45RQ.esm.js";import"../../chunks/chunk-DAT6GD4T.esm.js";import"../../chunks/chunk-H4XR4LGF.esm.js";import"../../chunks/chunk-HGOJTQ3L.esm.js";import"../../chunks/chunk-JLUNVLUS.esm.js";import"../../chunks/chunk-7TJO34VI.esm.js";import"../../chunks/chunk-JLQDS5TS.esm.js";import"../../chunks/chunk-5Q265MC7.esm.js";import"../../chunks/chunk-3V3ZEGHO.esm.js";import"../../chunks/chunk-CC5NKEXF.esm.js";import"../../chunks/chunk-J2ZPCUOE.esm.js";import"../../chunks/chunk-EBOJSNZ5.esm.js";import"../../chunks/chunk-4E3BR56X.esm.js";import"../../chunks/chunk-TMIQIUOH.esm.js";import"../../chunks/chunk-4L2KOZIQ.esm.js";import"../../chunks/chunk-MYGV5PMT.esm.js";import"../../chunks/chunk-4TQV5FFJ.esm.js";import"../../chunks/chunk-YJHYFCT7.esm.js";import"../../chunks/chunk-TLIKQFOT.esm.js";import"../../chunks/chunk-IA234JY2.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-G757UD32.esm.js";import"../../chunks/chunk-OSFHXCPW.esm.js";import"../../chunks/chunk-BERIBF3O.esm.js";import"../../chunks/chunk-LVVNQRJ2.esm.js";import"../../chunks/chunk-Z7GJDO5T.esm.js";import"../../chunks/chunk-P7RR4ZHS.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-PFLBU7HG.esm.js";import"../../chunks/chunk-TG2P4DDY.esm.js";import"../../chunks/chunk-UHABJEDB.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-HVFI7FHR.esm.js";import"../../chunks/chunk-YSSFTYCU.esm.js";import"../../chunks/chunk-ZQ5JOSGH.esm.js";import"../../chunks/chunk-KT4BKJVV.esm.js";import"../../chunks/chunk-UDQ3TYVZ.esm.js";import"../../chunks/chunk-347TNROV.esm.js";import"../../chunks/chunk-MPMCXGOX.esm.js";import"../../chunks/chunk-TBHGVERY.esm.js";import"../../chunks/chunk-62CVSGJD.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-MBQGF5IM.esm.js";import"../../chunks/chunk-CK3WBMQQ.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-RZLOZ3NW.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-XTY6DXMK.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as Stbody,d as Std,f as Stdc,q as Stfooter,h as Sth,u as Sthc,s as Sthead,j as Str,o as SuperTable,b as SuperTableBody,d as SuperTableCell,f as SuperTableCheckboxCell,m as SuperTableEmpty,q as SuperTableFooter,s as SuperTableHeader,h as SuperTableHeaderCell,u as SuperTableHeaderCheckboxCell,n as SuperTablePagination,j as SuperTableRow,o as Table,b as TableBody,a as TableBodyStyle,d as TableCell,c as TableCellStyle,f as TableCheckboxCell,e as TableCheckboxCellStyle,m as TableEmpty,l as TableEmptyStyle,q as TableFooter,p as TableFooterStyle,s as TableHeader,h as TableHeaderCell,g as TableHeaderCellStyle,u as TableHeaderCheckboxCell,t as TableHeaderCheckboxCellStyle,r as TableHeaderStyle,n as TablePagination,j as TableRow,i as TableRowStyle,k as TableStyle,b as Tbody,d as Td,f as Tdc,q as Tfooter,h as Th,u as Thc,s as Thead,j as Tr};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-5337L6ZX.esm.js";import{a as H,b as I,c as J,d as K}from"../chunks/chunk-ZJ3V4V3H.esm.js";import{a as B,b as C}from"../chunks/chunk-AM56FZLE.esm.js";import{a as D,b as E}from"../chunks/chunk-LNZNPIZT.esm.js";import{a as F,b as G}from"../chunks/chunk-CTFEQBY7.esm.js";import{a as o,b as r,c as e}from"../chunks/chunk-
|
|
1
|
+
import"../chunks/chunk-5337L6ZX.esm.js";import{a as H,b as I,c as J,d as K}from"../chunks/chunk-ZJ3V4V3H.esm.js";import{a as B,b as C}from"../chunks/chunk-AM56FZLE.esm.js";import{a as D,b as E}from"../chunks/chunk-LNZNPIZT.esm.js";import{a as F,b as G}from"../chunks/chunk-CTFEQBY7.esm.js";import{a as o,b as r,c as e}from"../chunks/chunk-MGWZZQPO.esm.js";import{a as f}from"../chunks/chunk-YHQ6S4MF.esm.js";import{a as m}from"../chunks/chunk-CWSD3AXD.esm.js";import"../chunks/chunk-GHDDFAEP.esm.js";import{a as p,b as t,c as x,d as a,e as b,f as c,g as d}from"../chunks/chunk-HD42Q2PS.esm.js";import{a as v,b as A}from"../chunks/chunk-VPRTYKGB.esm.js";import{a as k,b as l}from"../chunks/chunk-X2CMFDNG.esm.js";import{a as w,b as y}from"../chunks/chunk-RNAHUZE7.esm.js";import{a as s,b as u}from"../chunks/chunk-F7PA7OCV.esm.js";import{a as i,b as j}from"../chunks/chunk-FBHZTBNG.esm.js";import"../chunks/chunk-JY6IWPBO.esm.js";import"../chunks/chunk-KU2OQ3LP.esm.js";import"../chunks/chunk-7BPSZCSD.esm.js";import"../chunks/chunk-UACWLLHE.esm.js";import"../chunks/chunk-CDRLVSLF.esm.js";import{a as n,b as q}from"../chunks/chunk-EFFENLBC.esm.js";import"../chunks/chunk-XQJ4DROM.esm.js";import{a as z}from"../chunks/chunk-HKOM2JMK.esm.js";import"../chunks/chunk-ZZOIX6CV.esm.js";import"../chunks/chunk-UQVJ7IG5.esm.js";import"../chunks/chunk-BHRDNR3A.esm.js";import"../chunks/chunk-3ICGUDL7.esm.js";import{a as g,b as h}from"../chunks/chunk-CLU3WNVI.esm.js";import"../chunks/chunk-EK6YOJCW.esm.js";import"../chunks/chunk-ZMHNNJNC.esm.js";import"../chunks/chunk-KQQ7V7VG.esm.js";import"../chunks/chunk-A3OJEVGQ.esm.js";import"../chunks/chunk-RR2TYGZC.esm.js";import"../chunks/chunk-2FQC32AA.esm.js";import"../chunks/chunk-HSKYQ6VP.esm.js";import"../chunks/chunk-SPHHNZVP.esm.js";import"../chunks/chunk-4UWZA5FD.esm.js";import"../chunks/chunk-3QSPHURU.esm.js";import"../chunks/chunk-NDIYF5SX.esm.js";import"../chunks/chunk-KR2X2UQG.esm.js";import"../chunks/chunk-BE2JDTVA.esm.js";import"../chunks/chunk-KZTG5TDM.esm.js";import"../chunks/chunk-5ILT45RQ.esm.js";import"../chunks/chunk-DAT6GD4T.esm.js";import"../chunks/chunk-H4XR4LGF.esm.js";import"../chunks/chunk-HGOJTQ3L.esm.js";import"../chunks/chunk-JLUNVLUS.esm.js";import"../chunks/chunk-7TJO34VI.esm.js";import"../chunks/chunk-JLQDS5TS.esm.js";import"../chunks/chunk-5Q265MC7.esm.js";import"../chunks/chunk-3V3ZEGHO.esm.js";import"../chunks/chunk-CC5NKEXF.esm.js";import"../chunks/chunk-J2ZPCUOE.esm.js";import"../chunks/chunk-EBOJSNZ5.esm.js";import"../chunks/chunk-4E3BR56X.esm.js";import"../chunks/chunk-TMIQIUOH.esm.js";import"../chunks/chunk-4L2KOZIQ.esm.js";import"../chunks/chunk-MYGV5PMT.esm.js";import"../chunks/chunk-4TQV5FFJ.esm.js";import"../chunks/chunk-YJHYFCT7.esm.js";import"../chunks/chunk-TLIKQFOT.esm.js";import"../chunks/chunk-IA234JY2.esm.js";import"../chunks/chunk-TG5BCBO4.esm.js";import"../chunks/chunk-G757UD32.esm.js";import"../chunks/chunk-OSFHXCPW.esm.js";import"../chunks/chunk-BERIBF3O.esm.js";import"../chunks/chunk-LVVNQRJ2.esm.js";import"../chunks/chunk-Z7GJDO5T.esm.js";import"../chunks/chunk-P7RR4ZHS.esm.js";import"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import"../chunks/chunk-PFLBU7HG.esm.js";import"../chunks/chunk-TG2P4DDY.esm.js";import"../chunks/chunk-UHABJEDB.esm.js";import"../chunks/chunk-3DUB5C4Z.esm.js";import"../chunks/chunk-KT6QQ3UJ.esm.js";import"../chunks/chunk-HVFI7FHR.esm.js";import"../chunks/chunk-YSSFTYCU.esm.js";import"../chunks/chunk-ZQ5JOSGH.esm.js";import"../chunks/chunk-KT4BKJVV.esm.js";import"../chunks/chunk-UDQ3TYVZ.esm.js";import"../chunks/chunk-347TNROV.esm.js";import"../chunks/chunk-MPMCXGOX.esm.js";import"../chunks/chunk-TBHGVERY.esm.js";import"../chunks/chunk-62CVSGJD.esm.js";import"../chunks/chunk-VMIXRIQ2.esm.js";import"../chunks/chunk-VUFEYXWD.esm.js";import"../chunks/chunk-SF2QSF7E.esm.js";import"../chunks/chunk-MBQGF5IM.esm.js";import"../chunks/chunk-CK3WBMQQ.esm.js";import"../chunks/chunk-RWLJNXLX.esm.js";import"../chunks/chunk-RZLOZ3NW.esm.js";import"../chunks/chunk-IK5Z5C2R.esm.js";import"../chunks/chunk-BNB3KNKE.esm.js";import"../chunks/chunk-OXQA5WD3.esm.js";import"../chunks/chunk-TZQMBDGR.esm.js";import"../chunks/chunk-WCUEINBQ.esm.js";import"../chunks/chunk-YJ6PPJQ4.esm.js";import"../chunks/chunk-QYL6LECA.esm.js";import"../chunks/chunk-3A7I6HM2.esm.js";import"../chunks/chunk-XTY6DXMK.esm.js";import"../chunks/chunk-R2B57RMV.esm.js";import"../chunks/chunk-RFUX53ZX.esm.js";import"../chunks/chunk-CQASQBD7.esm.js";import"../chunks/chunk-MREWGN5R.esm.js";import"../chunks/chunk-PXVTXO3L.esm.js";import"../chunks/chunk-BV6GHAF7.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-AXUWC2WH.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{r as CellAlign,e as DataTable,f as DescriptionList,m as Meter,o as RowColor,h as Stbody,j as Std,l as Stdc,d as Steps,b as StepsBadge,t as StepsBadgeStyle,a as StepsItemStyle,x as StepsTrailStyle,C as Stfooter,q as Sth,G as Sthc,E as Sthead,u as Str,A as SuperTable,h as SuperTableBody,j as SuperTableCell,l as SuperTableCheckboxCell,y as SuperTableEmpty,C as SuperTableFooter,E as SuperTableHeader,q as SuperTableHeaderCell,G as SuperTableHeaderCheckboxCell,z as SuperTablePagination,u as SuperTableRow,J as TabButton,I as TabButtonStyle,A as Table,h as TableBody,g as TableBodyStyle,j as TableCell,i as TableCellStyle,l as TableCheckboxCell,k as TableCheckboxCellStyle,y as TableEmpty,w as TableEmptyStyle,C as TableFooter,B as TableFooterStyle,E as TableHeader,q as TableHeaderCell,n as TableHeaderCellStyle,G as TableHeaderCheckboxCell,F as TableHeaderCheckboxCellStyle,D as TableHeaderStyle,z as TablePagination,u as TableRow,s as TableRowStyle,v as TableStyle,K as Tabs,H as TabsHeaderStyle,h as Tbody,j as Td,l as Tdc,C as Tfooter,q as Th,G as Thc,E as Thead,u as Tr,p as badgePaint,c as resolveStepStatus};
|
package/lib/index.d.ts
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/chunk-GZONWSRB.esm.js";var O="7.
|
|
1
|
+
import"./chunks/chunk-GZONWSRB.esm.js";var O="7.2.0";export{O as APOLLION_CORE_VERSION};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var N=(o,O)=>{for(var t in O)c(o,t,{get:O[t],enumerable:!0})},R=(o,O,t,n)=>{if(O&&typeof O=="object"||typeof O=="function")for(let s of I(O))!L.call(o,s)&&s!==t&&c(o,s,{get:()=>O[s],enumerable:!(n=E(O,s))||n.enumerable});return o};var _=o=>R(c({},"__esModule",{value:!0}),o);var e={};N(e,{APOLLION_CORE_VERSION:()=>a});module.exports=_(e);var a="7.
|
|
1
|
+
"use strict";var c=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var N=(o,O)=>{for(var t in O)c(o,t,{get:O[t],enumerable:!0})},R=(o,O,t,n)=>{if(O&&typeof O=="object"||typeof O=="function")for(let s of I(O))!L.call(o,s)&&s!==t&&c(o,s,{get:()=>O[s],enumerable:!(n=E(O,s))||n.enumerable});return o};var _=o=>R(c({},"__esModule",{value:!0}),o);var e={};N(e,{APOLLION_CORE_VERSION:()=>a});module.exports=_(e);var a="7.2.0";0&&(module.exports={APOLLION_CORE_VERSION});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollion-dsi/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Apollion Design System — Component Library",
|
|
5
5
|
"homepage": "https://www.apollion.com.br",
|
|
6
6
|
"license": "MIT",
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"zod": "4.4.3"
|
|
381
381
|
},
|
|
382
382
|
"optionalDependencies": {
|
|
383
|
-
"@apollion-dsi/tokens": "7.
|
|
383
|
+
"@apollion-dsi/tokens": "7.2.0"
|
|
384
384
|
},
|
|
385
385
|
"devDependencies": {
|
|
386
386
|
"@apollion-dsi/eslint-config": "0.10.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-ZZOIX6CV.esm.js";import{e as t}from"./chunk-J2ZPCUOE.esm.js";import{a as o}from"./chunk-UDQ3TYVZ.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";import{jsx as r,jsxs as c}from"react/jsx-runtime";var n=e(({initialPagination:i,finalPagination:a,linesPerPage:p,totalPagination:l,showingText:f=e((s,x,T)=>`Exibindo ${s} - ${x} de ${T} itens`,"showingText"),linesPerPageLabel:m="Linhas por p\xE1gina"})=>i&&a&&l&&Array.isArray(p)?c(o,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[r(t,{color:"primary.dark",children:f(i,a,l)}),c(o,{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:2,children:[r(t,{color:"primary.dark",children:m}),r(b,{width:"150px",options:p,"aria-label":m})]})]}):null,"TablePaginationComponent");n.displayName="TablePagination";export{n as a};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-X2CMFDNG.esm.js";import{b as W}from"./chunk-RNAHUZE7.esm.js";import{a as T}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-FBHZTBNG.esm.js";import{a as K}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-EFFENLBC.esm.js";import{a as V}from"./chunk-4EVYPW5X.esm.js";import{g as j}from"./chunk-UQVJ7IG5.esm.js";import{a as D}from"./chunk-BHRDNR3A.esm.js";import{a as q}from"./chunk-CLU3WNVI.esm.js";import{F as M,K as y,Y as O,v as I,w as B}from"./chunk-DAT6GD4T.esm.js";import{b as g}from"./chunk-H4XR4LGF.esm.js";import{a as z,e as A}from"./chunk-J2ZPCUOE.esm.js";import{a as f}from"./chunk-UDQ3TYVZ.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as E}from"./chunk-TZQMBDGR.esm.js";import{b as a,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import p,{useEffect as ue,useState as S}from"react";function ie(e){switch(e){case"Compact":return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("micro"),l,c,({theme:t})=>t.spacing("micro"));case"Expansive":return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("large"),l,c,({theme:t})=>t.spacing("large"));default:return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("medium"),l,c,({theme:t})=>t.spacing("medium"))}}i(ie,"getSizeStyle");function L(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(L,"getAlignDirection");function re(e){if(typeof e=="object"){let t=e.reduce((u,o)=>{let w=`
|
|
2
|
-
& ${l}, ${c}, ${s} {
|
|
3
|
-
&:nth-child(${o.target}) {
|
|
4
|
-
${f} {
|
|
5
|
-
text-align: ${o.direction};
|
|
6
|
-
align-items: ${L(o.direction)}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;return`${u} ${w}`},"");return a(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,f,L("center"),t)}return e!==void 0?a(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,f,e,L(e)):a(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,f)}i(re,"getAlignStyle");function oe(e){if(e===void 0)return a([""]);let t=e.map((u,o)=>u&&(u.type===void 0?`
|
|
11
|
-
&:nth-child(${o+1}) {
|
|
12
|
-
width: ${u.width}px;
|
|
13
|
-
}
|
|
14
|
-
`:`
|
|
15
|
-
&:nth-child(${o+1}) {
|
|
16
|
-
${u.type}-width: ${u.width}px;
|
|
17
|
-
}
|
|
18
|
-
`));return a(["& ",",",",","{","}"],l,c,s,t)}i(oe,"getColumnSizeStyle");function ae(){return a(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,z)}i(ae,"getEllipsisStyle");function le(e){return e.map(t=>a(["& ","{&:nth-child(","){",";}}"],T,t+1,E({bgColor:"muted"})))}i(le,"getSelectedStyle");var ce=`
|
|
19
|
-
& ${s} {
|
|
20
|
-
position: sticky;
|
|
21
|
-
top: 0;
|
|
22
|
-
}
|
|
23
|
-
`,se=a(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],q,T,E({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s),de=i(e=>`
|
|
24
|
-
& ${T}{
|
|
25
|
-
&:hover{
|
|
26
|
-
& ${l}, ${c}{
|
|
27
|
-
/* box-shadow inset instead of border avoids layout shift on hover
|
|
28
|
-
(rows would get +1px taller on mouseover, causing visible
|
|
29
|
-
drift). Visually identical to the classic border-1px. */
|
|
30
|
-
box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
|
|
31
|
-
&:first-child{
|
|
32
|
-
box-shadow:
|
|
33
|
-
inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
|
|
34
|
-
inset 0 -1px 0 ${e.colors.edge.border};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,"getHoverableProps"),Y=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&ce,({striped:e})=>e&&se,({hoverable:e,theme:t})=>e&&de(t),({selected:e})=>le(e),({ellipsis:e})=>e?ae():"",({columnSize:e})=>oe(e),({align:e})=>re(e),({rowSize:e})=>ie(e));import{jsx as r,jsxs as C}from"react/jsx-runtime";var G=i(e=>{let[t,u]=S(""),[o,w]=S([]),[k,x]=S([]),[J,v]=S("Default"),b=p.useRef(null);ue(()=>{if(!b.current)return;let n=Array.from(b.current.children);w(n)},[]);let N=p.Children.toArray(e.children).length>1?1:0,Q=p.Children.map(e.children,(n,m)=>m===N?p.cloneElement(n,{ref:b}):n),U=i(n=>{if(n.key==="Enter"){if(!b.current)return;let m=b.current.children,d=o.map((h,P)=>{let $=m[P];return $&&(t===""&&($.style.display=""),h.innerText.toLowerCase().includes(t.toLowerCase())||($.style.display="none")),h});w(d)}},"getFilterData"),X=o.length>0&&o.every(n=>n.style.display==="none"),Z=o.length,_=i((n,m)=>{m&&x(d=>[...d,n]),m||x(k.filter(d=>d!==n))},"getSelected"),ee=i(n=>(o.forEach((m,d)=>{let h=m.children[0].querySelectorAll("input")[0];return n&&(h.checked=!0,x(P=>[...P,d])),n||(h.checked=!1,x([])),null}),n),"getAllSelected"),te=i(n=>o.map(d=>parseInt(d.children[n].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ne=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(n){switch(n){case"normal":if(Z<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return i(H,"getOverflow"),C(f,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[C(f,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&r(A,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true",children:e.title}),C(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&r(f,{width:"230px",children:r(j,{placeholder:"Pesquisar",type:"text",value:t,name:"search",onChange:n=>u(n.target.value),onKeyDown:n=>U(n),width:"230",icon:r(g,{icon:I}),role:"search"})}),e.rowTypes&&r(D,{options:[{icon:r(g,{icon:y}),title:"Layout Condensado",action:i(()=>v("Compact"),"action")},{icon:r(g,{icon:y}),title:"Layout Padr\xE3o",action:i(()=>v("Expansive"),"action")},{icon:r(g,{icon:y}),title:"Layout Expandido",action:i(()=>v("Default"),"action")}],children:r(g,{icon:y,color:"primary"})}),e.share&&r(D,{options:[{icon:r(g,{icon:M}),title:"Enviar por email",action:e.share.email},{icon:r(g,{icon:O}),title:"Compartilhar",action:e.share.social}],children:r(g,{icon:B,color:"primary"})})]})]}),ne&&r(V,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel}),C(Y,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:J||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,children:[r(A,{as:"caption","aria-hidden":"false",hidden:!0,children:e.title}),r(K.Provider,{value:{ellipsis:e.ellipsis,getSelected:_,getAllSelected:ee,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:te(e.columnSum)}:{index:void 0,sum:void 0}},children:Q})]}),X&&r(W,{})]})},"TableComponent");export{Y as a,G as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as $}from"./chunk-UQVJ7IG5.esm.js";import{a as J}from"./chunk-BHRDNR3A.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{K,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{b as I}from"./chunk-H4XR4LGF.esm.js";import{f as ie}from"./chunk-CC5NKEXF.esm.js";import{e as k}from"./chunk-J2ZPCUOE.esm.js";import{a as P}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-347TNROV.esm.js";import{h as Te}from"./chunk-BV6GHAF7.esm.js";import{f as Ve,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import F from"react";import B from"react";var U=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),M=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(M).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],M,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(M).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,U,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.muted,M,U,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),z=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],z,z,z,z),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let n=B.useRef(null);return B.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l(et,"useDebounce");var Ht=l(({column:e,labels:o})=>{var a,i;let n=B.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([c],[m])=>String(c).localeCompare(String(m))),[e,e.getFilterValue()]),t=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[n.length===0&&T(k,{variant:"meta",text:(i=o==null?void 0:o.filterNoValues)!=null?i:"Sem valores"}),n.map(([c,m])=>{let p=String(c),f=t.includes(p);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let s=f?t.filter(S=>S!==p):[...t,p];e.setFilterValue(s.length?s:void 0)}}),T(z,{}),T(k,{variant:"meta",text:`${p} (${m})`})]},p)})]})},"SelectFilter"),At=l(({column:e})=>{var f,s;let[o,n]=(f=e.getFacetedMinMaxValues())!=null?f:[0,0],t=(s=e.getFilterValue())!=null?s:[void 0,void 0],a=et(S=>{let[w,_]=S,G=w===void 0&&_===void 0;e.setFilterValue(G?void 0:S)},200),[i,c]=B.useState(t[0]!==void 0?String(t[0]):""),[m,p]=B.useState(t[1]!==void 0?String(t[1]):"");return T(ce,{children:Se(P,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T($,{type:"number",placeholder:`min (${o})`,value:i,onChange:S=>{let w=S.target.value;c(w),a([w===""?void 0:Number(w),m===""?void 0:Number(m)])}}),T(k,{variant:"meta",text:"\u2014"}),T($,{type:"number",placeholder:`max (${n})`,value:m,onChange:S=>{let w=S.target.value;p(w),a([i===""?void 0:Number(i),w===""?void 0:Number(w)])}})]})})},"RangeFilter"),Wt=l(({column:e,labels:o})=>{var c,m;let n=(c=e.getFilterValue())!=null?c:"",[t,a]=B.useState(n),i=et(p=>{e.setFilterValue(p||void 0)},200);return T(ce,{children:T($,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:t,onChange:p=>{let f=p.target.value;a(f),i(f)}})})},"TextFilter"),tt=l((e,o,n,t)=>{switch(e){case"select":return T(Ht,{column:o,onClose:n,labels:t});case"range":return T(At,{column:o,onClose:n,labels:t});case"text":return T(Wt,{column:o,onClose:n,labels:t})}},"filterUIForVariant");import L,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as b,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>b(Ye,{...e,ref:o})),rt=l(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=L.forwardRef(({indeterminate:e,children:o,...n},t)=>{let a=L.useRef(null),i=t||a;return L.useEffect(()=>{i.current&&(i.current.indeterminate=e!=null?e:!1)},[i,e]),de(se,{as:"label",children:[o,b(le,{type:"checkbox",ref:i,...n}),b(z,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:l(()=>null,"header"),cell:l(({row:t})=>t.getCanExpand()?b(I,{icon:t.getIsExpanded()?He:Ae,onClick:t.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${t.depth*16}px`}}):b("span",{style:{display:"inline-block",marginLeft:`${t.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}l(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:l(({table:t})=>b(nt,{checked:t.getIsAllRowsSelected(),indeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:l(({row:t})=>{var a,i;return b(nt,{checked:t.getIsSelected(),indeterminate:(i=(a=t.getIsSomeSelected)==null?void 0:a.call(t))!=null?i:!1,onChange:t.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}l(it,"buildSelectableColumnDef");function $t(e,o){let n=L.useRef(null);return L.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l($t,"useDebounce");var lt=l(({globalFilter:e,setGlobalFilter:o,placeholder:n})=>{let[t,a]=L.useState(e),i=$t(c=>{o(c||"")},200);return b($,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),i("")},value:t||"",onChange:c=>{a(c.target.value),i(c.target.value)},placeholder:n,"aria-label":n!=null?n:"Search",icon:b(I,{icon:Oe})})},"GlobalFilter"),st=l(({height:e,emptyIcon:o,emptyTitle:n="Nada foi encontrado",emptyDescription:t})=>b(Ke,{style:{height:e},children:de(P,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,b(k,{textAlign:"center",variant:"h5",text:n}),t&&b(k,{textAlign:"center",variant:"p",text:t})]})}),"EmptyTable");function pe(e,o,n){let[t,a]=L.useState(n),i=e!==void 0,c=i?e:t,m=L.useCallback(p=>{let f=typeof p=="function"?p(c):p;i||a(f),o==null||o(f)},[i,o,c]);return[c,m]}l(pe,"useHybridState");var ct=l(({pageIndex:e,pageSize:o,pageCount:n,rowCount:t,canPreviousPage:a,canNextPage:i,pageSizeOptions:c,onPrevious:m,onNext:p,onPageSizeChange:f,labels:s})=>{var Z,ee,N,q,te;let S=t===0?0:e*o+1,w=Math.min((e+1)*o,t),_=(Z=s==null?void 0:s.showingRange)!=null?Z:((y,D,ge)=>`Mostrando ${y}-${D} de ${ge}`),G=(ee=s==null?void 0:s.perPageOption)!=null?ee:(y=>`${y} por p\xE1gina`),j=(N=s==null?void 0:s.perPageTrigger)!=null?N:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[b(k,{variant:"meta",text:_(S,w,t)}),de(P,{flexDirection:"row",gap:"small",alignItems:"center",children:[c.length>1&&b(J,{position:"right",options:c.map(y=>({title:G(y),action:l(()=>f(y),"action")})),children:b(ie,{variant:"linked",size:"small",text:j(o)})}),b(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(q=s==null?void 0:s.previous)!=null?q:"Anterior"}),b(k,{variant:"meta",text:`${e+1} / ${Math.max(n,1)}`}),b(ie,{variant:"linked",size:"small",disabled:!i,onClick:p,text:(te=s==null?void 0:s.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(t=>(t.left="flex-start",t.center="center",t.right="flex-end",t))(_t||{});var Q={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as bt,getSortedRowModel as xt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as d,jsxs as V}from"react/jsx-runtime";function Gt(e,o){return e.map(n=>{var i,c,m,p,f;let t=n.accessor?String(n.accessor):void 0,a={id:(i=n.id)!=null?i:t||void 0,header:l(()=>n.Header,"header"),footer:n.Footer?s=>n.Footer({table:s.table}):void 0,enableSorting:!n.disableSortBy,enableResizing:!0,enableColumnFilter:n.disableFilters?!1:!!n.filterVariant,...n.filterVariant&&{filterFn:(c=n.filterFn)!=null?c:Ze[n.filterVariant]},size:(m=n.width)!=null?m:o.width,minSize:(p=n.minWidth)!=null?p:o.minWidth,maxSize:(f=n.maxWidth)!=null?f:o.maxWidth,meta:{align:n.align,selectable:n.selectable,filterVariant:n.filterVariant}};return t?a.accessorKey=t:a.accessorFn=()=>null,n.Cell&&(a.cell=s=>n.Cell({row:s.row,value:s.getValue()})),a})}l(Gt,"toTanstackColumns");function Gn(e){var Le;let{data:o,columns:n,onRowSelect:t,onRowClick:a,selectableColumnWidth:i,selectableColumn:c,setRowColor:m,title:p,striped:f,bordered:s,searchPlaceholder:S,hasHeader:w,hasFooter:_,hasSpacingMenu:G,inputSearchComponent:j,headerLeftComponent:Z=null,headerRightComponent:ee=null,lastRowComponent:N,height:q=400,spacing:te=0,paginated:y=!1,initialPagination:D,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,H=!!Pe,be=F.useMemo(()=>n.some(r=>r.filterVariant&&!r.disableFilters),[n]),[Ft,xe]=F.useState(48),[Pt,kt]=F.useState([]),[ve,Ie]=F.useState(""),[Ce,vt]=F.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=D==null?void 0:D.pageIndex)!=null?r:0,pageSize:(u=(g=D==null?void 0:D.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Dt,Et]=pe(wt,yt,()=>me!=null?me:{}),[zt,Mt]=pe(Tt,St,()=>fe!=null?fe:[]),Lt=F.useMemo(()=>{let r=Gt(n,Q),g=it(c,i),u=at(H,ne!=null?ne:i),R=[];return u&&R.push(u),g&&R.push(g),[...R,...r]},[n,c,i,H,ne]),v=Ct({data:o,columns:Lt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...H&&{expanded:Dt},...be&&{columnFilters:zt}},enableRowSelection:!!c,enableExpanding:H,...H&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...H&&{onExpandedChange:Et},...be&&{onColumnFiltersChange:Mt},getCoreRowModel:dt(),getSortedRowModel:xt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:bt()},...H&&{getExpandedRowModel:pt()},...be&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:Q.width,minSize:Q.minWidth,maxSize:Q.maxWidth}}),X=v.getRowModel().rows;Ne(()=>{if(t){let r=X.filter(g=>Ce[g.id]).map(g=>g.original);t(r)}},[Ce]);let A=Ve(),Re=X.length+(N?1:0),De=F.useCallback((r,g)=>{let u=m&&m(r),R=f&&g%2===0,x=A.colors.surface.paper;return u?x=A.colors[u].light:r.getIsSelected()&&t?x=A.colors.muted:R&&(x=A.colors.surface.sunken),{backgroundColor:x}},[m,f,A,t]),oe=Ft+te,re=F.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:R,selectable:x})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:R?A.spacing("small"):void 0,cursor:x?"pointer":void 0}}),[oe,A]),Vt=F.useCallback(({index:r,style:g})=>{if(N&&r===Re-1)return F.cloneElement(N,{style:g});let u=X[r],R={...g,...De(u,r)};return d(M,{style:R,children:u.getVisibleCells().map(x=>{var E;let W=(E=x.column.columnDef.meta)!=null?E:{},ye=x.column.id,O;a?O=l(()=>a(u.original),"onClickAction"):t&&(O=l(()=>u.toggleSelected(),"onClickAction"));let Y=re({align:W.align,hasCheckbox:ye==="checkbox",selectable:(t||a)&&W.selectable!==!1,cellProps:W.selectable!==!1?{onClick:O}:void 0});return d(U,{...Y,style:{...Y.style,width:x.column.getSize(),flex:`${x.column.getSize()} 0 auto`},children:ue(x.column.columnDef.cell,x.getContext())},x.id)})})},[X,re,N,a,t,De,Re]),we=!!X.length,Nt=_&&we&&n.some(r=>"Footer"in r),Ee=F.useRef(null),ae=ht({count:Re,getScrollElement:l(()=>Ee.current,"getScrollElement"),estimateSize:l(()=>oe,"estimateSize"),overscan:5});F.useEffect(()=>{ae.measure()},[oe,ae]);let ze=V(qe,{ref:Ee,style:{maxHeight:q},bgColor:"baseLight","data-border":s,"data-default":!f&&!s,children:[d(je,{children:v.getFlatHeaders().map(r=>{var Y;let g=(Y=r.column.columnDef.meta)!=null?Y:{},u=r.column.getCanSort(),R=r.column.getCanResize(),x=r.column.getIsSorted(),W=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),O=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return V(U,{...O,style:{...O.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(W||u)&&V(Qe,{children:[W&&d("span",{role:"presentation",onClick:E=>E.stopPropagation(),children:d(J,{content:({close:E})=>tt(g.filterVariant,r.column,E,ke),children:d(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&d(Xe,{children:d(I,{icon:rt(x)})})]}),R&&d(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:E=>E.stopPropagation()})]},r.id)})}),we?d(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>d(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Vt({index:r.index,style:{}})},r.key))}):d(st,{...e,height:q}),Nt&&d(h,{children:d(_e,{children:(Le=v.getFooterGroups()[0])==null?void 0:Le.headers.map(r=>{var R;let g=(R=r.column.columnDef.meta)!=null?R:{},u=re({align:g.align});return d(U,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),Me=y&&we&&d(Je,{children:d(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return w?V(P,{gap:"medium",children:[V(P,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[V(P,{flexDirection:"row",gap:"medium",children:[p&&d(k,{variant:"h5",color:"primary.dark",text:p}),Z]}),V(P,{flexDirection:"row",gap:"medium",children:[j!=null?j:d(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:S}),ee,G?d(P,{alignSelf:"center",children:d(J,{position:"right",options:[{icon:d(I,{icon:K}),title:"Layout Compacto",action:l(()=>xe(32),"action")},{icon:d(I,{icon:K}),title:"Layout Padr\xE3o",action:l(()=>xe(48),"action")},{icon:d(I,{icon:K}),title:"Layout Expandido",action:l(()=>xe(64),"action")}],children:d(I,{size:5,icon:K,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),ze,Me]}):V(jt,{children:[ze,Me]})}l(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};
|