@apollion-dsi/core 5.4.0 → 5.6.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/README.md +68 -56
- package/lib/chunks/{Notification.group-YC5G24UY.esm.js → Notification.group-GB62BMAL.esm.js} +1 -1
- package/lib/chunks/chunk-2CW4G3UR.esm.js +1 -0
- package/lib/chunks/{chunk-5O44BVAT.esm.js → chunk-2WED4EVR.esm.js} +1 -1
- package/lib/chunks/{chunk-C5ZCCKMP.esm.js → chunk-34QOWBI6.esm.js} +1 -1
- package/lib/chunks/{chunk-7YLTH6LY.esm.js → chunk-452VAAGY.esm.js} +1 -1
- package/lib/chunks/{chunk-XJJDEXNW.esm.js → chunk-4BMWIGG4.esm.js} +1 -1
- package/lib/chunks/{chunk-PWFS4OYV.esm.js → chunk-4VEUQE23.esm.js} +1 -1
- package/lib/chunks/chunk-56NEPHUH.esm.js +1 -0
- package/lib/chunks/chunk-5HENHW73.esm.js +1 -0
- package/lib/chunks/{chunk-MI7BQ4AV.esm.js → chunk-5MWVBWXW.esm.js} +1 -1
- package/lib/chunks/{chunk-X3YSUW3W.esm.js → chunk-5NE62M4R.esm.js} +1 -1
- package/lib/chunks/{chunk-DIN3SAMW.esm.js → chunk-AYZYOY57.esm.js} +1 -1
- package/lib/chunks/{chunk-BL3BNTW3.esm.js → chunk-CQK4PCNH.esm.js} +1 -1
- package/lib/chunks/chunk-CZAUFZ45.esm.js +1 -0
- package/lib/chunks/chunk-CZJF4EVQ.esm.js +1 -0
- package/lib/chunks/{chunk-VFA2NPNZ.esm.js → chunk-D2T4FF27.esm.js} +1 -1
- package/lib/chunks/{chunk-T5YJT2PA.esm.js → chunk-DLVRDZRA.esm.js} +1 -1
- package/lib/chunks/{chunk-FCMCTNIG.esm.js → chunk-FPUV6SIF.esm.js} +1 -1
- package/lib/chunks/{chunk-7Y6YHVIS.esm.js → chunk-G4IUG32B.esm.js} +1 -1
- package/lib/chunks/{chunk-VSLW7J54.esm.js → chunk-HMITYQV5.esm.js} +1 -1
- package/lib/chunks/{chunk-XAVQOLJ6.esm.js → chunk-HRMJR6TD.esm.js} +1 -1
- package/lib/chunks/{chunk-WS2NO23J.esm.js → chunk-IE4YNQFD.esm.js} +1 -1
- package/lib/chunks/{chunk-5LTPAIHB.esm.js → chunk-K2BKOGDX.esm.js} +1 -1
- package/lib/chunks/chunk-KASRN4X5.esm.js +1 -0
- package/lib/chunks/{chunk-IQ6MEZCJ.esm.js → chunk-KHEBUAB4.esm.js} +1 -1
- package/lib/chunks/{chunk-FUSBM77F.esm.js → chunk-KYIPVR2T.esm.js} +1 -1
- package/lib/chunks/{chunk-A3PI2KMG.esm.js → chunk-LTTG3NIJ.esm.js} +1 -1
- package/lib/chunks/{chunk-HP5OTTKY.esm.js → chunk-M32CTX5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-VHIU3G6O.esm.js → chunk-M33BYGAO.esm.js} +1 -1
- package/lib/chunks/{chunk-KUNNAGZ3.esm.js → chunk-MJUAYHOW.esm.js} +1 -1
- package/lib/chunks/{chunk-F3WJSICY.esm.js → chunk-MLIU6MRT.esm.js} +1 -1
- package/lib/chunks/{chunk-DZB2OR52.esm.js → chunk-MS7WJXDX.esm.js} +1 -1
- package/lib/chunks/{chunk-UYYT7GH5.esm.js → chunk-NYDXZB2D.esm.js} +1 -1
- package/lib/chunks/chunk-OUHMU5PP.esm.js +1 -0
- package/lib/chunks/{chunk-ARQDV4PP.esm.js → chunk-P5PWDVWO.esm.js} +1 -1
- package/lib/chunks/chunk-ROSLCQXL.esm.js +1 -0
- package/lib/chunks/{chunk-QNK4SZQ6.esm.js → chunk-RUKCBNDS.esm.js} +1 -1
- package/lib/chunks/{chunk-WJL7X2E2.esm.js → chunk-TISQZ6PQ.esm.js} +1 -1
- package/lib/chunks/{chunk-HUATVKQA.esm.js → chunk-UHMYTFMU.esm.js} +1 -1
- package/lib/chunks/{chunk-6UPV326F.esm.js → chunk-WNCECFZT.esm.js} +1 -1
- package/lib/chunks/{chunk-ROYW5FBA.esm.js → chunk-WU5LSQM6.esm.js} +1 -1
- package/lib/chunks/{chunk-QHDAJQC7.esm.js → chunk-XGE6OOEJ.esm.js} +1 -1
- package/lib/chunks/{chunk-4KZ2JQAC.esm.js → chunk-YKIFYIC5.esm.js} +1 -1
- package/lib/chunks/{chunk-XVEUJXSW.esm.js → chunk-ZZFLBPSO.esm.js} +5 -5
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Motion/index.esm.js +1 -1
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +8 -3
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +6 -4
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +60 -0
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +8 -0
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +9 -0
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/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/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Colors/Colors.presets.d.ts +23 -0
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +25 -0
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +2 -2
- package/lib/chunks/chunk-3RNWYCCU.esm.js +0 -1
- package/lib/chunks/chunk-FXR7WKA7.esm.js +0 -1
- package/lib/chunks/chunk-PR2T746R.esm.js +0 -1
- package/lib/chunks/chunk-QOO64QE4.esm.js +0 -1
- package/lib/chunks/chunk-QXQC37K5.esm.js +0 -1
- package/lib/chunks/chunk-X5UHGM25.esm.js +0 -1
- package/lib/chunks/chunk-YLRQW7VD.esm.js +0 -1
- package/lib/chunks/chunk-ZPPJD46V.esm.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b as s,d as t}from"./chunk-
|
|
1
|
+
import{a,b as s,d as t}from"./chunk-5NE62M4R.esm.js";import{a as o}from"./chunk-KASRN4X5.esm.js";import r,{forwardRef as B}from"react";var n=B(({color:m="primary",border:i,size:f="medium",progress:e=0,showProgressLabel:l=!1,...g},P)=>{let p=-100+Number(e),u=Math.min(100,Math.max(0,Number(e)));return r.createElement(t,{color:m,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,...g,ref:P},r.createElement(a,{size:f,border:i},r.createElement(s,{style:{transform:`translateX(${p}%)`}})),l&&r.createElement(o,null,e,"%"))});n.displayName="ProgressBar";export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,b as k}from"./chunk-
|
|
1
|
+
import{a as c,b as k}from"./chunk-KHEBUAB4.esm.js";import{ga as b,o as w}from"./chunk-H2KVPACE.esm.js";import{a as p,b as a}from"./chunk-5SQH2W2J.esm.js";import{a as x}from"./chunk-CLDPV7NK.esm.js";import{d as h}from"./chunk-LATE6DIA.esm.js";import{b as s}from"./chunk-OZIEVLUR.esm.js";import{b as m}from"./chunk-A6Z2M2XU.esm.js";import{b as i,f as g,g as f}from"./chunk-APD22JEO.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";function B(){return i(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus + ","{color:var(--base-color);}"],s({deep:-1}),s({deep:0}),p)}l(B,"inputVariantStyle");var D=i(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.neutral[70]),H=i(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],s({deep:0}));function N({iconPosition:o}){return o==="left"?i(["& + ",",& + ","{left:1em;right:unset;}"],c,p):null}l(N,"invertIconPosition");var E=i(["&:disabled + ","{color:var(--disabled-color);}&:disabled + ","{pointer-events:none;","}& + ","{width:intrinsic;","}& + ",",& + ","{color:var(--icon-color);z-index:100;position:absolute;align-self:center;right:1em;& > g{fill:var(--icon-color);}}"],p,c,m(()=>({bgColor:"grayscale.10"})),c,m(()=>({bgColor:"grayscale.40"})),c,p),S=f(h.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"grayscale.0",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({componentId:"sc-8elel8-0"})(["-webkit-appearance:none;display:block;width:100%;outline:none;transition:",";"," ",";",";",";",";&[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;opacity:0;}&[type='number']::-webkit-outer-spin-button,&[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"],({theme:o})=>o.animation.transitions.short,B,E,N,H,D),y=f(x).withConfig({componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let t=o.colors.primary;r==="error"?t=o.colors.danger:r==="success"&&(t=o.colors.success);let{base:e,dark:n}=t;return{display:"flex",position:"relative","--base-color":e,"--dark-color":n,"--disabled-bg":o.colors.disabled.fill,"--disabled-color":o.colors.disabled.color,"--icon-color":r==="default"?o.colors.neutral[100]:e,"--border-color":r==="default"?o.colors.neutral[40]:e}});y.displayName="input";import v,{forwardRef as L}from"react";import d from"react";function C({icon:o,variant:r,clearable:t,reset:e,value:n,readOnly:u}){return t&&e&&n&&!u?d.createElement(k,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:e,"data-testid":"input-reset-button",icon:d.createElement(a,{size:"small",color:"grayscale.0",icon:b})}):o||(r==="error"?d.createElement(a,{icon:b,"data-testid":"input-icon-error"}):r==="success"?d.createElement(a,{icon:w,"data-testid":"input-icon-success"}):null)}l(C,"getIconComponent");var P=L(({value:o,variant:r="default",iconPosition:t="right",size:e="medium",...n},u)=>{let{disabled:W,width:F,style:M,...T}=n,z=g(),I=C({...n,value:o,variant:r,size:e,iconPosition:t}),A={...z.component.input.size[e],...I&&{[t==="right"?"pr":"pl"]:"xl"}};return v.createElement(y,{variant:r,width:F,flexDirection:"row"},v.createElement(S,{iconPosition:t,disabled:W,variant:r,...A,...T,...o!==void 0&&{value:o},ref:u}),I)});P.displayName="Input";export{B as a,D as b,H as c,N as d,S as e,y as f,P as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Q as i}from"./chunk-H2KVPACE.esm.js";import{b as m}from"./chunk-5SQH2W2J.esm.js";import{d as r}from"./chunk-KASRN4X5.esm.js";import{a as o}from"./chunk-CLDPV7NK.esm.js";import{g as n}from"./chunk-APD22JEO.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";import e from"react";var p=n(o).attrs(t=>({bgColor:"neutral.5",...t})).withConfig({componentId:"sc-1rhi83a-0"})([""]);var l=a(t=>e.createElement(p,{width:"100%",justifyContent:"center",alignItems:"center",gap:2,p:"xl",...t},t.iconPropsEmpty?e.createElement(m,{...t.iconPropsEmpty}):e.createElement(m,{icon:i,size:"xl",color:"primary.dark"}),e.createElement(o,{width:"50%"},e.createElement(r,{variant:"h5",color:"primary",readable:5,textAlign:"center"},t.titleEmpty?t.titleEmpty:"Nada foi encontrado"),e.createElement(r,{variant:"p",color:"primary",readable:5,textAlign:"center"},t.subtitleEmpty?t.subtitleEmpty:"Tente ajustar os par\xE2metros dos filtros ou tente um novo termo para a busca."))),"TableEmptyComponent");export{p as a,l as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as G}from"./chunk-EJ3VKFOX.esm.js";import{a as P,b as K}from"./chunk-
|
|
1
|
+
import{a as G}from"./chunk-EJ3VKFOX.esm.js";import{a as P,b as K}from"./chunk-KHEBUAB4.esm.js";import{e as k}from"./chunk-CZAUFZ45.esm.js";import{ga as A}from"./chunk-H2KVPACE.esm.js";import{b as z}from"./chunk-5SQH2W2J.esm.js";import{e as V}from"./chunk-UNM6DHPD.esm.js";import{a as O}from"./chunk-BE2JDTVA.esm.js";import{a as L,d as j}from"./chunk-KASRN4X5.esm.js";import{a as H}from"./chunk-BMGVQBTB.esm.js";import{a as F,b as B}from"./chunk-6OXVRDS2.esm.js";import{a as b}from"./chunk-CLDPV7NK.esm.js";import{a as I}from"./chunk-YRBM4WYM.esm.js";import{a as D}from"./chunk-BV6GHAF7.esm.js";import{c as E}from"./chunk-G5Z7USXC.esm.js";import{b as h,g as c}from"./chunk-APD22JEO.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";var eo=h(["max-width:30rem;min-width:20rem;"]),to=h(["max-width:40rem;min-width:20rem;"]),no=h(["max-width:55rem;min-width:40rem;"]),ro=h(["max-width:75rem;min-width:40rem;"]),lo=h(["width:95%;"]);function ao({size:n}){switch(n){case"small":return eo;case"medium":return no;case"large":return ro;default:return to}}l(ao,"modalSize");function io({variant:n,theme:e}){let a=e.colors[n];return h(["--baseColor:",";--lightColor:",";--actionColor:",";"],a.base,a.light,a.action)}l(io,"modalVariantColor");var W=c(B).attrs({p:"large",borderRadius:"md",bgColor:"neutral.0"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],lo,io,({theme:n})=>n.breakpoints.up("sm"),ao),q=c(b).withConfig({componentId:"sc-8jjm43-1"})(["max-height:84vh;overflow:hidden;"]),N=c(b).withConfig({componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],L,P,P,P),Q=c(I).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overscroll-behavior:none;overflow:hidden;"]),Y=c(b).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),$=c(I).withConfig({componentId:"sc-8jjm43-5"})(["z-index:9999;display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;"]),J=c(B).withConfig({componentId:"sc-8jjm43-6"})(["will-change:opacity;"]);import o,{cloneElement as mo,isValidElement as so,useEffect as U,useRef as co,useState as fo}from"react";import{createPortal as uo}from"react-dom";var X=l(({isOpen:n,onDismiss:e,...a})=>{if(!n&&!e)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[i,f]=fo(!1),s=co(null);return U(()=>{f(!0)},[]),U(()=>{var C,M;if(!n||!i)return;let t=document.activeElement,d=s.current,u=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),y=l(()=>d?Array.from(d.querySelectorAll(u)).filter(r=>r.offsetParent!==null):[],"getFocusable");(M=(C=y()[0])!=null?C:d)==null||M.focus();let m=l(r=>{if(r.key==="Escape"){r.stopPropagation(),e==null||e();return}if(r.key!=="Tab")return;let p=y();if(!p.length){r.preventDefault();return}let v=p[0],S=p[p.length-1],g=document.activeElement;r.shiftKey&&(g===v||g===d)?(r.preventDefault(),S.focus()):!r.shiftKey&&g===S&&(r.preventDefault(),v.focus())},"onKeyDown");return document.addEventListener("keydown",m),()=>{var r;document.removeEventListener("keydown",m),(r=t==null?void 0:t.focus)==null||r.call(t)}},[n,i,e]),!i||!E?null:uo(o.createElement(F,null,n?o.createElement($,{"data-testid":"modal-container"},o.createElement(J,{absoluteFill:!0,bgColor:"neutral.180","data-testid":"modal-overlay",onClick:e,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0}}),o.createElement(go,{ref:s,onDismiss:e,...a})):null),E)},"ModalBaseComponent"),po=l(({defaultOpen:n,trigger:e,isOpen:a,onDismiss:i,onModalOpen:f,...s})=>{let{active:t,disable:d,enable:u,toggle:y}=O(n,{onActive:f});return(a||i)&&D.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),o.createElement(o.Fragment,null,l(()=>{let m=null;if(typeof e=="function"&&(m=e({isOpen:t,open:u})),so(e)&&(m=mo(e,{onClick:y})),m===null)throw new Error('"trigger" prop is not a valid element');return m},"renderTrigger")(),o.createElement(X,{isOpen:t,onDismiss:d,...s}))},"ModalTriggerVariant"),go=o.forwardRef(l(function({noCloseButton:e,primaryButton:a,secondaryButton:i,primaryText:f,secondaryText:s,onDismiss:t,primaryAction:d,secondaryAction:u,children:y,tagline:w,variant:m,footer:C,title:M,size:r,icon:p,closeLabel:v="Fechar"},S){let{isMobile:g}=V(),T=o.useId(),_=l(()=>{d({close:t})},"handlePrimary"),R=l(()=>{u({close:t})},"handleSecondary"),oo=l(()=>{let x={onClick:_,fullWidth:C==="full"||g,"data-testid":"modal-confirm-button"};return a?o.cloneElement(a,x):o.createElement(k,{color:m,...x},f)},"renderPrimaryButton");return o.createElement(W,{ref:S,role:"dialog","aria-modal":"true","aria-labelledby":M?T:void 0,tabIndex:-1,size:r,variant:m,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"200%",opacity:0}},o.createElement(q,{gap:"medium"},o.createElement(N,{gap:"xs"},o.createElement(H,{opener:p&&o.createElement(Y,{justifyContent:"center",alignItems:"center",p:"micro"},p),closer:!e&&o.createElement(K,{onClick:t,"data-testid":"modal-close-button","aria-label":v,icon:o.createElement(z,{icon:A}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"})},M&&o.createElement(j,{id:T,variant:"h4",area:"title",color:"neutral.170",text:M})),w&&o.createElement(j,{variant:"meta",color:"secondary.dark",area:"tagline"},w)),o.createElement(Q,{py:"medium"},o.createElement(G,null,y)),(d||u)&&o.createElement(b,{flexDirection:g?"column-reverse":"row",justifyContent:C==="expanded"?"between":"end",gap:"medium"},u&&l(()=>{if(C==="full")return null;let x={onClick:R,fullWidth:g,"data-testid":"modal-cancel-button"};return i?o.cloneElement(i,x):o.createElement(k,{variant:"outlined",color:"secondary",...x},s)},"renderSecondaryButton")(),d&&oo())))},"ModalDialog")),Z=l(({noCloseButton:n=!1,secondaryText:e="Cancelar",primaryText:a="Confirmar",variant:i="primary",footer:f="right",...s})=>{let t={noCloseButton:n,secondaryText:e,primaryText:a,variant:i,footer:f,...s};return t!=null&&t.trigger?o.createElement(po,{...t}):o.createElement(X,{...t})},"ModalComponent");Z.displayName="Modal";export{W as a,q as b,N as c,Q as d,Y as e,$ as f,J as g,Z as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ve}from"./chunk-EJ3VKFOX.esm.js";import{g as A}from"./chunk-NYDXZB2D.esm.js";import{a as q}from"./chunk-34QOWBI6.esm.js";import{e as ee}from"./chunk-CZAUFZ45.esm.js";import{K as j,X as ze,aa as Ee,ba as Me,ca as Le,p as Re,r as Ie,w as De}from"./chunk-H2KVPACE.esm.js";import{b as R}from"./chunk-5SQH2W2J.esm.js";import{a as ke}from"./chunk-2FQC32AA.esm.js";import{d as v}from"./chunk-KASRN4X5.esm.js";import{a as k}from"./chunk-CLDPV7NK.esm.js";import{a as w}from"./chunk-YRBM4WYM.esm.js";import{h as xe}from"./chunk-BV6GHAF7.esm.js";import{f as ve,g as h}from"./chunk-APD22JEO.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import i from"react";import b from"react";var W=h(w).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.neutral[180],whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),E=h(w).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),Ne=h(E).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),He=h(w).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],E,({theme:e})=>e.colors.neutral[60],({theme:e})=>e.colors.primary.base),Ae=h(w).withConfig({componentId:"sc-npwc89-4"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow-x: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.neutral[40],({theme:e})=>e.colors.neutral[40],E,({theme:e})=>e.colors.neutral[40],({theme:e})=>e.colors.neutral[40],({theme:e})=>e.colors.neutral[40],W,({theme:e})=>e.colors.neutral[40],E,({theme:e})=>e.colors.muted,E,W,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.neutral[170]),We=h(w).withConfig({componentId:"sc-npwc89-5"})(["display:inline-flex;align-items:center;flex-shrink:0;","{display:none;}"],({theme:e})=>e.breakpoints.down("sm")),Oe=h(w).withConfig({componentId:"sc-npwc89-6"})(["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=h(w).withConfig({componentId:"sc-npwc89-7"})(({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"}})),te=h.input.withConfig({componentId:"sc-npwc89-8"})(["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),ne=h(w).withConfig({componentId:"sc-npwc89-9"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.neutral[60],"--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")})`})),$e=h(w).attrs(e=>({bgColor:"neutral.5",...e})).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutral[180]})),Ue=h(w).withConfig({componentId:"sc-npwc89-11"})(({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")})),Be=h(w).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),marginLeft:e.spacing("xs"),flexShrink:0})),oe=h(w).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));var _e={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function Ge(e,o){let n=b.useRef(null);return b.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}s(Ge,"useDebounce");var zt=s(({column:e,labels:o})=>{var a,l;let n=b.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([d],[p])=>String(d).localeCompare(String(p))),[e,e.getFilterValue()]),t=(a=e.getFilterValue())!=null?a:[];return b.createElement(oe,null,n.length===0&&b.createElement(v,{variant:"meta",text:(l=o==null?void 0:o.filterNoValues)!=null?l:"Sem valores"}),n.map(([d,p])=>{let m=String(d),x=t.includes(m);return b.createElement(ne,{as:"label",key:m},b.createElement(te,{type:"checkbox",checked:x,onChange:()=>{let u=x?t.filter(F=>F!==m):[...t,m];e.setFilterValue(u.length?u:void 0)}}),b.createElement(z,null),b.createElement(v,{variant:"meta",text:`${m} (${p})`}))}))},"SelectFilter"),Et=s(({column:e})=>{var x,u;let[o,n]=(x=e.getFacetedMinMaxValues())!=null?x:[0,0],t=(u=e.getFilterValue())!=null?u:[void 0,void 0],a=Ge(F=>{let[T,O]=F,$=T===void 0&&O===void 0;e.setFilterValue($?void 0:F)},200),[l,d]=b.useState(t[0]!==void 0?String(t[0]):""),[p,m]=b.useState(t[1]!==void 0?String(t[1]):"");return b.createElement(oe,null,b.createElement(k,{flexDirection:"row",gap:"xs",alignItems:"center"},b.createElement(A,{type:"number",placeholder:`min (${o})`,value:l,onChange:F=>{let T=F.target.value;d(T),a([T===""?void 0:Number(T),p===""?void 0:Number(p)])}}),b.createElement(v,{variant:"meta",text:"\u2014"}),b.createElement(A,{type:"number",placeholder:`max (${n})`,value:p,onChange:F=>{let T=F.target.value;m(T),a([l===""?void 0:Number(l),T===""?void 0:Number(T)])}})))},"RangeFilter"),Mt=s(({column:e,labels:o})=>{var d,p;let n=(d=e.getFilterValue())!=null?d:"",[t,a]=b.useState(n),l=Ge(m=>{e.setFilterValue(m||void 0)},200);return b.createElement(oe,null,b.createElement(A,{placeholder:(p=o==null?void 0:o.filterPlaceholder)!=null?p:"Filtrar...",value:t,onChange:m=>{let x=m.target.value;a(x),l(x)}}))},"TextFilter"),je=s((e,o,n,t)=>{switch(e){case"select":return b.createElement(zt,{column:o,onClose:n,labels:t});case"range":return b.createElement(Et,{column:o,onClose:n,labels:t});case"text":return b.createElement(Mt,{column:o,onClose:n,labels:t})}},"filterUIForVariant");import c,{forwardRef as Xe}from"react";var Ye=Xe(({...e},o)=>c.createElement(Ve,{...e,style:{...e.style,width:void 0},ref:o})),Ke=Xe((e,o)=>c.createElement(Oe,{...e,ref:o})),Je=s(e=>e==="asc"?Le:e==="desc"?Me:Ee,"getSortIcon"),qe=c.forwardRef(({indeterminate:e,children:o,...n},t)=>{let a=c.useRef(null),l=t||a;return c.useEffect(()=>{l.current&&(l.current.indeterminate=e!=null?e:!1)},[l,e]),c.createElement(ne,{as:"label"},o,c.createElement(te,{type:"checkbox",ref:l,...n}),c.createElement(z,null))});function Qe(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:s(()=>null,"header"),cell:s(({row:t})=>t.getCanExpand()?c.createElement(R,{icon:t.getIsExpanded()?Re:Ie,onClick:t.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${t.depth*16}px`}}):c.createElement("span",{style:{display:"inline-block",marginLeft:`${t.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}s(Qe,"buildExpandColumnDef");function Ze(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:s(({table:t})=>c.createElement(qe,{checked:t.getIsAllRowsSelected(),indeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),"aria-label":xe(e)?void 0:"Select all rows"},xe(e)?e:void 0),"header"),cell:s(({row:t})=>{var a,l;return c.createElement(qe,{checked:t.getIsSelected(),indeterminate:(l=(a=t.getIsSomeSelected)==null?void 0:a.call(t))!=null?l:!1,onChange:t.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}s(Ze,"buildSelectableColumnDef");function Lt(e,o){let n=c.useRef(null);return c.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}s(Lt,"useDebounce");var et=s(({globalFilter:e,setGlobalFilter:o,placeholder:n})=>{let[t,a]=c.useState(e),l=Lt(d=>{o(d||"")},200);return c.createElement(A,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),l("")},value:t||"",onChange:d=>{a(d.target.value),l(d.target.value)},placeholder:n,"aria-label":n!=null?n:"Search",icon:c.createElement(R,{icon:ze})})},"GlobalFilter"),tt=s(({height:e,emptyIcon:o,emptyTitle:n="Nada foi encontrado",emptyDescription:t})=>c.createElement($e,{style:{height:e}},c.createElement(k,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e}},o,c.createElement(v,{textAlign:"center",variant:"h5",text:n}),t&&c.createElement(v,{textAlign:"center",variant:"p",text:t}))),"EmptyTable");function re(e,o,n){let[t,a]=c.useState(n),l=e!==void 0,d=l?e:t,p=c.useCallback(m=>{let x=typeof m=="function"?m(d):m;l||a(x),o==null||o(x)},[l,o,d]);return[d,p]}s(re,"useHybridState");var nt=s(({pageIndex:e,pageSize:o,pageCount:n,rowCount:t,canPreviousPage:a,canNextPage:l,pageSizeOptions:d,onPrevious:p,onNext:m,onPageSizeChange:x,labels:u})=>{var Y,K,M,B,J;let F=t===0?0:e*o+1,T=Math.min((e+1)*o,t),O=(Y=u==null?void 0:u.showingRange)!=null?Y:((S,I,ae)=>`Mostrando ${S}-${I} de ${ae}`),$=(K=u==null?void 0:u.perPageOption)!=null?K:(S=>`${S} por p\xE1gina`),U=(M=u==null?void 0:u.perPageTrigger)!=null?M:(S=>`${S} / p\xE1gina`);return c.createElement(c.Fragment,null,c.createElement(v,{variant:"meta",text:O(F,T,t)}),c.createElement(k,{flexDirection:"row",gap:"small",alignItems:"center"},d.length>1&&c.createElement(q,{position:"right",options:d.map(S=>({title:$(S),action:s(()=>x(S),"action")}))},c.createElement(ee,{variant:"linked",size:"small",text:U(o)})),c.createElement(ee,{variant:"linked",size:"small",disabled:!a,onClick:p,text:(B=u==null?void 0:u.previous)!=null?B:"Anterior"}),c.createElement(v,{variant:"meta",text:`${e+1} / ${Math.max(n,1)}`}),c.createElement(ee,{variant:"linked",size:"small",disabled:!l,onClick:m,text:(J=u==null?void 0:u.next)!=null?J:"Pr\xF3ximo"})))},"PaginationControls");var Vt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Vt||{}),Nt=(t=>(t.left="flex-start",t.center="center",t.right="flex-end",t))(Nt||{});var X={minWidth:30,width:150,maxWidth:400};import{flexRender as ie,getCoreRowModel as ot,getExpandedRowModel as rt,getFacetedMinMaxValues as it,getFacetedRowModel as at,getFacetedUniqueValues as lt,getFilteredRowModel as st,getPaginationRowModel as ct,getSortedRowModel as dt,useReactTable as ut}from"@tanstack/react-table";import{useVirtualizer as pt}from"@tanstack/react-virtual";function Ht(e,o){return e.map(n=>{var l,d,p,m,x;let t=n.accessor?String(n.accessor):void 0,a={id:(l=n.id)!=null?l:t||void 0,header:s(()=>n.Header,"header"),footer:n.Footer?u=>n.Footer({table:u.table}):void 0,enableSorting:!n.disableSortBy,enableResizing:!0,enableColumnFilter:n.disableFilters?!1:!!n.filterVariant,...n.filterVariant&&{filterFn:(d=n.filterFn)!=null?d:_e[n.filterVariant]},size:(p=n.width)!=null?p:o.width,minSize:(m=n.minWidth)!=null?m:o.minWidth,maxSize:(x=n.maxWidth)!=null?x:o.maxWidth,meta:{align:n.align,selectable:n.selectable,filterVariant:n.filterVariant}};return t?a.accessorKey=t:a.accessorFn=()=>null,n.Cell&&(a.cell=u=>n.Cell({row:u.row,value:u.getValue()})),a})}s(Ht,"toTanstackColumns");function At({height:e,width:o,rowCount:n,rowHeight:t,renderRow:a}){let l=i.useRef(null),d=pt({count:n,getScrollElement:s(()=>l.current,"getScrollElement"),estimateSize:s(()=>t,"estimateSize"),overscan:5});return i.createElement(Ye,{scrollableRef:l,style:{height:e,width:o,overflow:"auto"}},i.createElement("div",{style:{height:d.getTotalSize(),position:"relative",width:"100%"}},d.getVirtualItems().map(p=>i.createElement("div",{key:p.key,style:{position:"absolute",top:0,left:0,width:"100%",height:p.size,transform:`translateY(${p.start}px)`}},a({index:p.index,style:{}})))))}s(At,"VirtualizedRows");function Nn(e){var Pe;let{data:o,columns:n,onRowSelect:t,onRowClick:a,selectableColumnWidth:l,selectableColumn:d,setRowColor:p,title:m,striped:x,bordered:u,searchPlaceholder:F,hasHeader:T,hasFooter:O,hasSpacingMenu:$,inputSearchComponent:U,headerLeftComponent:Y=null,headerRightComponent:K=null,lastRowComponent:M,height:B=400,spacing:J=0,paginated:S=!1,initialPagination:I,pagination:ae,onPaginationChange:gt,pageSizeOptions:Ce=[10,25,50,100],getSubRows:he,expandedColumnWidth:Q,initialExpanded:le,expanded:mt,onExpandedChange:ft,initialColumnFilters:se,columnFilters:bt,onColumnFiltersChange:xt,labels:we}=e,L=!!he,ce=i.useMemo(()=>n.some(r=>r.filterVariant&&!r.disableFilters),[n]),[Ct,de]=i.useState(48),[ht,wt]=i.useState([]),[ye,Te]=i.useState(""),[ue,yt]=i.useState({}),[pe,Tt]=re(ae,gt,()=>{var r,g,f;return{pageIndex:(r=I==null?void 0:I.pageIndex)!=null?r:0,pageSize:(f=(g=I==null?void 0:I.pageSize)!=null?g:Ce[0])!=null?f:10}}),[St,Ft]=re(mt,ft,()=>le!=null?le:{}),[Pt,vt]=re(bt,xt,()=>se!=null?se:[]),kt=i.useMemo(()=>{let r=Ht(n,X),g=Ze(d,l),f=Qe(L,Q!=null?Q:l),y=[];return f&&y.push(f),g&&y.push(g),[...y,...r]},[n,d,l,L,Q]),P=ut({data:o,columns:kt,state:{sorting:ht,globalFilter:ye,rowSelection:ue,...S&&{pagination:pe},...L&&{expanded:St},...ce&&{columnFilters:Pt}},enableRowSelection:!!d,enableExpanding:L,...L&&{getSubRows:he},onSortingChange:wt,onGlobalFilterChange:Te,onRowSelectionChange:yt,...S&&{onPaginationChange:Tt},...L&&{onExpandedChange:Ft},...ce&&{onColumnFiltersChange:vt},getCoreRowModel:ot(),getSortedRowModel:dt(),getFilteredRowModel:st(),...S&&{getPaginationRowModel:ct()},...L&&{getExpandedRowModel:rt()},...ce&&{getFacetedRowModel:at(),getFacetedUniqueValues:lt(),getFacetedMinMaxValues:it()},columnResizeMode:"onChange",defaultColumn:{size:X.width,minSize:X.minWidth,maxSize:X.maxWidth}}),_=P.getRowModel().rows;ke(()=>{if(t){let r=_.filter(g=>ue[g.id]).map(g=>g.original);t(r)}},[ue]);let V=ve(),ge=_.length+(M?1:0),Se=i.useCallback((r,g)=>{let f=p&&p(r),y=x&&g%2===0,C=V.colors.neutral[0];return f?C=V.colors[f].light:r.getIsSelected()&&t?C=V.colors.muted:y&&(C=V.colors.neutral[5]),{backgroundColor:C}},[p,x,V,t]),me=Ct+J,Z=i.useCallback(({align:r="flex-start",cellProps:g={},header:f,hasCheckbox:y,selectable:C})=>Object.assign(g,{title:void 0,style:{height:me,overflow:"hidden",display:"flex",alignItems:f?"flex-end":"center",justifyContent:r,paddingLeft:y?V.spacing("small"):void 0,cursor:C?"pointer":void 0}}),[me,V]),Rt=P.getAllLeafColumns().reduce((r,g)=>r+g.getSize(),0),It=i.useCallback(({index:r,style:g})=>{if(M&&r===ge-1)return i.cloneElement(M,{style:g});let f=_[r],y={...g,...Se(f,r)};return i.createElement(E,{style:y},f.getVisibleCells().map(C=>{var D;let N=(D=C.column.columnDef.meta)!=null?D:{},be=C.column.id,H;a?H=s(()=>a(f.original),"onClickAction"):t&&(H=s(()=>f.toggleSelected(),"onClickAction"));let G=Z({align:N.align,hasCheckbox:be==="checkbox",selectable:(t||a)&&N.selectable!==!1,cellProps:N.selectable!==!1?{onClick:H}:void 0});return i.createElement(W,{key:C.id,...G,style:{...G.style,width:C.column.getSize(),flex:`${C.column.getSize()} 0 auto`}},ie(C.column.columnDef.cell,C.getContext()))}))},[_,Z,M,a,t,Se,ge]),fe=!!_.length,Dt=O&&fe&&n.some(r=>"Footer"in r),Fe=i.createElement(Ae,{bgColor:"baseLight","data-border":u,"data-default":!x&&!u},i.createElement(E,null,P.getFlatHeaders().map(r=>{var G;let g=(G=r.column.columnDef.meta)!=null?G:{},f=r.column.getCanSort(),y=r.column.getCanResize(),C=r.column.getIsSorted(),N=!!g.filterVariant&&r.column.getCanFilter(),be=r.column.getIsFiltered(),H=Z({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return i.createElement(W,{key:r.id,...H,style:{...H.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:f?"pointer":void 0,position:"relative"},onClick:f?r.column.getToggleSortingHandler():void 0},r.isPlaceholder?null:ie(r.column.columnDef.header,r.getContext()),(N||f)&&i.createElement(Be,null,N&&i.createElement("span",{role:"presentation",onClick:D=>D.stopPropagation()},i.createElement(q,{content:({close:D})=>je(g.filterVariant,r.column,D,we)},i.createElement(R,{icon:De,color:be?"primary.action":"neutral.40",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"}))),f&&i.createElement(We,null,i.createElement(R,{icon:Je(C)}))),y&&i.createElement(Ke,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:D=>D.stopPropagation()}))})),fe?i.createElement(He,null,i.createElement(At,{height:B,width:Rt,rowCount:ge,rowHeight:me,renderRow:It})):i.createElement(tt,{...e,height:B}),S&&fe&&i.createElement(Ue,null,i.createElement(nt,{pageIndex:pe.pageIndex,pageSize:pe.pageSize,pageCount:P.getPageCount(),rowCount:P.getFilteredRowModel().rows.length,canPreviousPage:P.getCanPreviousPage(),canNextPage:P.getCanNextPage(),pageSizeOptions:Ce,onPrevious:()=>P.previousPage(),onNext:()=>P.nextPage(),onPageSizeChange:r=>P.setPageSize(r),labels:we})),Dt&&i.createElement(w,null,i.createElement(Ne,null,(Pe=P.getFooterGroups()[0])==null?void 0:Pe.headers.map(r=>{var y;let g=(y=r.column.columnDef.meta)!=null?y:{},f=Z({align:g.align});return i.createElement(W,{key:r.id,...f,style:{...f.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`}},r.isPlaceholder?null:ie(r.column.columnDef.footer,r.getContext()))}))));return T?i.createElement(k,{gap:"medium"},i.createElement(k,{flexDirection:"row",alignItems:"center",justifyContent:"between"},i.createElement(k,{flexDirection:"row",gap:"medium"},m&&i.createElement(v,{variant:"h5",color:"primary.dark",text:m}),Y),i.createElement(k,{flexDirection:"row",gap:"medium"},U!=null?U:i.createElement(et,{globalFilter:ye,setGlobalFilter:Te,placeholder:F}),K,$?i.createElement(k,{alignSelf:"center"},i.createElement(q,{position:"right",options:[{icon:i.createElement(R,{icon:j}),title:"Layout Compacto",action:s(()=>de(32),"action")},{icon:i.createElement(R,{icon:j}),title:"Layout Padr\xE3o",action:s(()=>de(48),"action")},{icon:i.createElement(R,{icon:j}),title:"Layout Expandido",action:s(()=>de(64),"action")}]},i.createElement(R,{size:5,icon:j,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}}))):null)),Fe):Fe}s(Nn,"DataTable");export{Vt as a,Nt as b,Nn as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as le}from"./chunk-EJ3VKFOX.esm.js";import{e as ae}from"./chunk-UYYT7GH5.esm.js";import{b as A}from"./chunk-73MPQ5OY.esm.js";import{a as Y,b as Z}from"./chunk-IQ6MEZCJ.esm.js";import{e as J}from"./chunk-PR2T746R.esm.js";import{I as ie,J as ne,ga as re,ja as B}from"./chunk-H2KVPACE.esm.js";import{b as U}from"./chunk-5SQH2W2J.esm.js";import{b as X}from"./chunk-BVKAXW2H.esm.js";import{e as te}from"./chunk-UNM6DHPD.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as ee}from"./chunk-KR2X2UQG.esm.js";import{a as R}from"./chunk-BE2JDTVA.esm.js";import{a as Q}from"./chunk-IWMEDT6U.esm.js";import{d as v}from"./chunk-FXR7WKA7.esm.js";import{a as b}from"./chunk-CLDPV7NK.esm.js";import{a as O}from"./chunk-YRBM4WYM.esm.js";import{b as K}from"./chunk-RZDVS7AY.esm.js";import{m as z}from"./chunk-BV6GHAF7.esm.js";import{g as h}from"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var se=n(({theme:e,readOnly:t,disabled:i,active:p})=>{if(t||i)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:p?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),de=n(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),me=h(O).withConfig({componentId:"sc-1erdx9t-0"})([""," "," ","{display:flex;height:300px;max-height:300px;}"],se,de,({theme:e})=>e.breakpoints.up("sm")),V=h(O).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=h(O).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),T=h(A).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),pe=h(b).withConfig({componentId:"sc-1erdx9t-4"})(["& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],T,({theme:e})=>e.spacing("xs"),T,T,({theme:e})=>e.spacing("medium")),fe=h(v).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ue=h(O).attrs(e=>({borderRadius:"micro",bgColor:"neutral.20",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all 100ms linear;"],({theme:e})=>e.colors.information.base),E=h(O).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),ce=h(A).withConfig({componentId:"sc-1erdx9t-8"})([""," ",""],se,de),ge=h(A).withConfig({componentId:"sc-1erdx9t-9"})(["",""],K({flex:"fluid"}));import j,{forwardRef as Ne,useCallback as Me,useEffect as qe,useImperativeHandle as $e,useRef as We,useState as He}from"react";function M(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}n(M,"fileSize");function q(e,t){let i=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=i)}n(q,"filterFiles");function $(e){return e.map(t=>({id:Q(),file:t,fileName:t.name,fileSize:M(t.size)}))}n($,"convertFileToFileItem");function Fe(e){let{fieldName:t,file:i,requestConfig:p}=e,{endpoint:d,timeout:C,auth:u,params:F,withCredentials:r,responseType:m,headers:f,formDataParams:a}=p;return new Promise((c,x)=>{let l=new XMLHttpRequest;l.timeout=C;let y=new FormData;y.append(t,i,i.name),a&&a.forEach(s=>{y.append(s.key,s.value)});let S=new URL(d);if(F&&Object.keys(F).forEach(s=>{S.searchParams.append(s,F[s])}),l.open("post",S.href),"setRequestHeader"in l){let s={...f};if(u){let g=u.username||"",P=unescape(encodeURIComponent(u.password))||"",L=`${g}:${P}`;s.Authorization=`Basic ${btoa(L)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&l.setRequestHeader(g,P)})}r!==void 0&&(l.withCredentials=!!r),l.responseType=m||"json";let I=0;l.upload.addEventListener("progress",s=>{e.onProgress&&(I=s.loaded,e.onProgress(s.loaded))}),l.onreadystatechange=()=>{var g;if(!l||l.readyState!==4||l.status===0&&((g=l==null?void 0:l.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:l.response,status:l.status,statusText:l.statusText};e.onProgress&&e.onProgress(I,!0,s),c(s),l=null},l.onerror=()=>{e.onProgress&&e.onProgress(I,!1),x(),l=null},l.send(y)})}n(Fe,"uploadFile");import o from"react";import{useEffect as je,useState as ke}from"react";function Ce(e,t){let[i,p]=ke(null);return je(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),p(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),i}n(Ce,"useObjectUrl");function xe(e){let{disabled:t,acceptLabel:i,isDragging:p,events:d,files:C,removeFile:u,openFileDialogButton:F,readOnly:r,style:m,className:f,inputFile:a}=e,{isMobile:c}=te(),x=c&&C.length===0?null:o.createElement(pe,{flex:"fluid",p:"large"},o.createElement(le,null,C.map(l=>o.createElement(he,{key:l.id,removeFile:u,readOnly:r,...l}))));return o.createElement(me,{...d,style:m,className:f,active:p,disabled:t,readOnly:r,borderRadius:"md",bgColor:"neutral.5",overflow:"hidden",deep:2},a,o.createElement(b,{gap:"small",flex:"fluid",p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center"},o.createElement(b,{gap:"xs",alignItems:"center"},o.createElement(U,{icon:B,size:16,color:r||t?"neutral.30":"secondary"}),i&&o.createElement(v,{variant:"meta",fontWeight:"bold"},i)),!r&&o.createElement(o.Fragment,null,o.createElement(v,{variant:"p"},"Arraste e solte aqui"),o.createElement(v,{variant:"p",fontWeight:"bold"},"ou"),F)),x,p&&o.createElement(V,{absoluteFill:!0},o.createElement(N,{absoluteFill:!0,bgColor:"neutral.0"}),o.createElement(b,{gap:"small",justifyContent:"center",alignItems:"center",p:8},o.createElement(U,{icon:B,color:"information.dark",size:9}),o.createElement(v,{variant:"p",color:"information.dark"},"Arraste e solte aqui"))))}n(xe,"UploadCardRegular");function ye(e){let{disabled:t,isDragging:i,events:p,files:d,removeFile:C,style:u,className:F,readOnly:r,openFileDialogButton:m,inputFile:f}=e;return o.createElement(ce,{...p,style:u,className:F,active:i,disabled:t,readOnly:r,borderRadius:"md",bgColor:"neutral.5",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}}},f,o.createElement(b,{flexDirection:"row",justifyContent:"start",alignItems:"start"},m),o.createElement(ge,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}}},d.map(a=>o.createElement(he,{key:a.id,removeFile:C,readOnly:r,...a}))),i&&o.createElement(V,null,o.createElement(N,null),o.createElement(b,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center"},o.createElement(U,{icon:B,color:"information.dark",size:6}),o.createElement(v,{variant:"p"},"Arraste e solte aqui"))))}n(ye,"UploadCardCompact");function he({removeFile:e,readOnly:t,...i}){let p=i.uploadLoaded?`${i.uploadLoaded} de`:"";return o.createElement(T,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}}},o.createElement(ze,{...i}),o.createElement(b,null,o.createElement(b,{flexDirection:"row",justifyContent:"between"},o.createElement(fe,{variant:"meta"},o.createElement("b",null,i.fileName)),!t&&o.createElement(Z,{onClick:()=>e(i.id),icon:o.createElement(U,{icon:re}),variant:"linked"})),i.uploadPercentage&&o.createElement(ue,{style:{backgroundSize:i.uploadPercentage}}),o.createElement(b,{flexDirection:"row",justifyContent:"between"},o.createElement(v,{variant:"meta"},`${p} ${i.fileSize}`),i.uploadPercentage&&o.createElement(v,{variant:"meta"},`Enviando ${i.uploadPercentage}`))))}n(he,"FileItemComponent");function ze({file:e}){let t=Ce(e,i=>i.type.startsWith("image"));return t?o.createElement(E,null,o.createElement(X,{src:t,cover:!0})):e.name.endsWith(".pdf")?o.createElement(E,null,o.createElement(U,{icon:ne})):o.createElement(E,null,o.createElement(U,{icon:ie}))}n(ze,"Preview");import{useState as Ve}from"react";function be(e){let[t,i]=Ve({files:[],type:null,payload:null});return{files:t,setInitialFiles:n(r=>{var c;let m=q(r,e.maxSize),a={files:$(m),type:"ADD_INITIAL_FILES"};(c=e.onChange)==null||c.call(e,a),i(a)},"setInitialFiles"),removeFile:n(r=>{var f;let m={type:"REMOVE",files:t.files.filter(a=>a.id!==r),payload:t.files.find(a=>a.id===r)};(f=e.onChange)==null||f.call(e,m),i(m)},"removeFile"),removeAll:n(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),i(r)},"removeAll"),addFiles:n(r=>{var x;let m=q(r,e.maxSize),f=$(m),a=[...t.files,...f],c={files:a,type:"ADD",payload:f};e.single&&(a=f,c={files:a,type:"REPLACE",payload:a[0]}),(x=e.onChange)==null||x.call(e,c),i(c)},"addFiles"),updateFileProgress:n((r,m,f,a)=>{var s;let c=t.files.find(g=>g.id===r),x=n(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:a||void 0}),"uploadResponse"),y={...c,...m!==void 0?n(()=>({uploadLoaded:M(m),uploadPercentage:`${Math.min(m/c.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?x():{}},I={files:t.files.map(g=>g.id===y.id?y:g),type:"UPDATE",payload:y};(s=e.onChange)==null||s.call(e,I),i(I)},"updateFileProgress")}}n(be,"useFileState");var Ge=Ne((e,t)=>{let{accept:i,maxSize:p,singleFile:d,uploadConfig:C,onUnsupportedFile:u,customButton:F,style:r,className:m,onChange:f,initialFiles:a,name:c}=e,[x,l]=He(!1),{active:y,enable:S,disable:I}=R(),{files:s,setInitialFiles:g,addFiles:P,removeFile:L,removeAll:Ie,updateFileProgress:W}=be({single:d,maxSize:p,onChange:f}),{getFiles:Pe}=oe({accept:i,single:d,onFilesSelect:P,onUnsupportedFile:u}),{isDragging:H,events:we}=ee({accept:i,single:d,onDrop:P});qe(()=>{let w=Array.isArray(a)?a.length>0:!!a;!x&&!s.files.length&&w&&(l(!0),g(a))},[x,l,a,g,s.files]);let Ue=Me(async w=>{if(s.files.length){S();let Oe=s.files.map(({id:Le,file:De})=>Fe({file:De,fieldName:w.formDataFileKey||"file",requestConfig:{...C,...w},onProgress:n((Ae,Be,Ee)=>{W(Le,Ae,Be,Ee)},"onProgress")})),Te=await Promise.all(Oe);return I(),Te}return[]},[s.files,C,S,W,I]);$e(t,()=>({submit:Ue,addFiles:P,removeFile:L,removeAll:Ie,files:s.files}));let D=We(null),k=n(()=>{var w;(w=D==null?void 0:D.current)==null||w.click()},"openFileDialog"),Se=F?F({files:s.files,isDragging:H,openFileDialog:k,isSubmitting:y}):j.createElement(J,{onClick:k,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||y,isLoading:y,type:"button"},e.buttonText||"Enviar arquivos"),G={...e,...!e.readOnly&&{events:we,isDragging:H},files:s.files,style:r,className:m,removeFile:L,openFileDialog:k,openFileDialogButton:Se,name:c},_=j.createElement(ae,{type:"file",isHidden:!0,position:"absolute",name:c,id:c,ref:D,onChange:Pe,multiple:!d,accept:Array.isArray(i)?i.join(","):void 0});return e.compact?j.createElement(ye,{...G,inputFile:_}):j.createElement(xe,{...G,inputFile:_})});Ge.displayName="UploadCard";import{useCallback as _e,useState as ve}from"react";var No=n(()=>{let[e,t]=ve([]),[i,p]=ve([]);return{onFilesChange:_e(u=>{if(!u.payload)return;let{payload:F}=u;u.type==="ADD"?p(r=>z(r,F)):u.type==="REMOVE"&&t(r=>z(r,F))},[]),removedFiles:e,addedFiles:i,clear:n(u=>{u==="removedFiles"&&t([]),u==="addedFiles"&&p([])},"clear")}},"useFileControl");export{me as a,V as b,N as c,T as d,pe as e,fe as f,ue as g,E as h,ce as i,ge as j,Ge as k,No as l};
|
|
1
|
+
import{a as le}from"./chunk-EJ3VKFOX.esm.js";import{e as ae}from"./chunk-NYDXZB2D.esm.js";import{b as A}from"./chunk-73MPQ5OY.esm.js";import{a as Y,b as Z}from"./chunk-KHEBUAB4.esm.js";import{e as J}from"./chunk-CZAUFZ45.esm.js";import{I as ie,J as ne,ga as re,ja as B}from"./chunk-H2KVPACE.esm.js";import{b as U}from"./chunk-5SQH2W2J.esm.js";import{b as X}from"./chunk-BVKAXW2H.esm.js";import{e as te}from"./chunk-UNM6DHPD.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as ee}from"./chunk-KR2X2UQG.esm.js";import{a as R}from"./chunk-BE2JDTVA.esm.js";import{a as Q}from"./chunk-IWMEDT6U.esm.js";import{d as v}from"./chunk-KASRN4X5.esm.js";import{a as b}from"./chunk-CLDPV7NK.esm.js";import{a as O}from"./chunk-YRBM4WYM.esm.js";import{b as K}from"./chunk-RZDVS7AY.esm.js";import{m as z}from"./chunk-BV6GHAF7.esm.js";import{g as h}from"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var se=n(({theme:e,readOnly:t,disabled:i,active:p})=>{if(t||i)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:p?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),de=n(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),me=h(O).withConfig({componentId:"sc-1erdx9t-0"})([""," "," ","{display:flex;height:300px;max-height:300px;}"],se,de,({theme:e})=>e.breakpoints.up("sm")),V=h(O).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=h(O).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),T=h(A).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),pe=h(b).withConfig({componentId:"sc-1erdx9t-4"})(["& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],T,({theme:e})=>e.spacing("xs"),T,T,({theme:e})=>e.spacing("medium")),fe=h(v).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ue=h(O).attrs(e=>({borderRadius:"micro",bgColor:"neutral.20",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all 100ms linear;"],({theme:e})=>e.colors.information.base),E=h(O).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),ce=h(A).withConfig({componentId:"sc-1erdx9t-8"})([""," ",""],se,de),ge=h(A).withConfig({componentId:"sc-1erdx9t-9"})(["",""],K({flex:"fluid"}));import j,{forwardRef as Ne,useCallback as Me,useEffect as qe,useImperativeHandle as $e,useRef as We,useState as He}from"react";function M(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}n(M,"fileSize");function q(e,t){let i=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=i)}n(q,"filterFiles");function $(e){return e.map(t=>({id:Q(),file:t,fileName:t.name,fileSize:M(t.size)}))}n($,"convertFileToFileItem");function Fe(e){let{fieldName:t,file:i,requestConfig:p}=e,{endpoint:d,timeout:C,auth:u,params:F,withCredentials:r,responseType:m,headers:f,formDataParams:a}=p;return new Promise((c,x)=>{let l=new XMLHttpRequest;l.timeout=C;let y=new FormData;y.append(t,i,i.name),a&&a.forEach(s=>{y.append(s.key,s.value)});let S=new URL(d);if(F&&Object.keys(F).forEach(s=>{S.searchParams.append(s,F[s])}),l.open("post",S.href),"setRequestHeader"in l){let s={...f};if(u){let g=u.username||"",P=unescape(encodeURIComponent(u.password))||"",L=`${g}:${P}`;s.Authorization=`Basic ${btoa(L)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&l.setRequestHeader(g,P)})}r!==void 0&&(l.withCredentials=!!r),l.responseType=m||"json";let I=0;l.upload.addEventListener("progress",s=>{e.onProgress&&(I=s.loaded,e.onProgress(s.loaded))}),l.onreadystatechange=()=>{var g;if(!l||l.readyState!==4||l.status===0&&((g=l==null?void 0:l.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:l.response,status:l.status,statusText:l.statusText};e.onProgress&&e.onProgress(I,!0,s),c(s),l=null},l.onerror=()=>{e.onProgress&&e.onProgress(I,!1),x(),l=null},l.send(y)})}n(Fe,"uploadFile");import o from"react";import{useEffect as je,useState as ke}from"react";function Ce(e,t){let[i,p]=ke(null);return je(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),p(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),i}n(Ce,"useObjectUrl");function xe(e){let{disabled:t,acceptLabel:i,isDragging:p,events:d,files:C,removeFile:u,openFileDialogButton:F,readOnly:r,style:m,className:f,inputFile:a}=e,{isMobile:c}=te(),x=c&&C.length===0?null:o.createElement(pe,{flex:"fluid",p:"large"},o.createElement(le,null,C.map(l=>o.createElement(he,{key:l.id,removeFile:u,readOnly:r,...l}))));return o.createElement(me,{...d,style:m,className:f,active:p,disabled:t,readOnly:r,borderRadius:"md",bgColor:"neutral.5",overflow:"hidden",deep:2},a,o.createElement(b,{gap:"small",flex:"fluid",p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center"},o.createElement(b,{gap:"xs",alignItems:"center"},o.createElement(U,{icon:B,size:16,color:r||t?"neutral.30":"secondary"}),i&&o.createElement(v,{variant:"meta",fontWeight:"bold"},i)),!r&&o.createElement(o.Fragment,null,o.createElement(v,{variant:"p"},"Arraste e solte aqui"),o.createElement(v,{variant:"p",fontWeight:"bold"},"ou"),F)),x,p&&o.createElement(V,{absoluteFill:!0},o.createElement(N,{absoluteFill:!0,bgColor:"neutral.0"}),o.createElement(b,{gap:"small",justifyContent:"center",alignItems:"center",p:8},o.createElement(U,{icon:B,color:"information.dark",size:9}),o.createElement(v,{variant:"p",color:"information.dark"},"Arraste e solte aqui"))))}n(xe,"UploadCardRegular");function ye(e){let{disabled:t,isDragging:i,events:p,files:d,removeFile:C,style:u,className:F,readOnly:r,openFileDialogButton:m,inputFile:f}=e;return o.createElement(ce,{...p,style:u,className:F,active:i,disabled:t,readOnly:r,borderRadius:"md",bgColor:"neutral.5",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}}},f,o.createElement(b,{flexDirection:"row",justifyContent:"start",alignItems:"start"},m),o.createElement(ge,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}}},d.map(a=>o.createElement(he,{key:a.id,removeFile:C,readOnly:r,...a}))),i&&o.createElement(V,null,o.createElement(N,null),o.createElement(b,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center"},o.createElement(U,{icon:B,color:"information.dark",size:6}),o.createElement(v,{variant:"p"},"Arraste e solte aqui"))))}n(ye,"UploadCardCompact");function he({removeFile:e,readOnly:t,...i}){let p=i.uploadLoaded?`${i.uploadLoaded} de`:"";return o.createElement(T,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}}},o.createElement(ze,{...i}),o.createElement(b,null,o.createElement(b,{flexDirection:"row",justifyContent:"between"},o.createElement(fe,{variant:"meta"},o.createElement("b",null,i.fileName)),!t&&o.createElement(Z,{onClick:()=>e(i.id),icon:o.createElement(U,{icon:re}),variant:"linked"})),i.uploadPercentage&&o.createElement(ue,{style:{backgroundSize:i.uploadPercentage}}),o.createElement(b,{flexDirection:"row",justifyContent:"between"},o.createElement(v,{variant:"meta"},`${p} ${i.fileSize}`),i.uploadPercentage&&o.createElement(v,{variant:"meta"},`Enviando ${i.uploadPercentage}`))))}n(he,"FileItemComponent");function ze({file:e}){let t=Ce(e,i=>i.type.startsWith("image"));return t?o.createElement(E,null,o.createElement(X,{src:t,cover:!0})):e.name.endsWith(".pdf")?o.createElement(E,null,o.createElement(U,{icon:ne})):o.createElement(E,null,o.createElement(U,{icon:ie}))}n(ze,"Preview");import{useState as Ve}from"react";function be(e){let[t,i]=Ve({files:[],type:null,payload:null});return{files:t,setInitialFiles:n(r=>{var c;let m=q(r,e.maxSize),a={files:$(m),type:"ADD_INITIAL_FILES"};(c=e.onChange)==null||c.call(e,a),i(a)},"setInitialFiles"),removeFile:n(r=>{var f;let m={type:"REMOVE",files:t.files.filter(a=>a.id!==r),payload:t.files.find(a=>a.id===r)};(f=e.onChange)==null||f.call(e,m),i(m)},"removeFile"),removeAll:n(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),i(r)},"removeAll"),addFiles:n(r=>{var x;let m=q(r,e.maxSize),f=$(m),a=[...t.files,...f],c={files:a,type:"ADD",payload:f};e.single&&(a=f,c={files:a,type:"REPLACE",payload:a[0]}),(x=e.onChange)==null||x.call(e,c),i(c)},"addFiles"),updateFileProgress:n((r,m,f,a)=>{var s;let c=t.files.find(g=>g.id===r),x=n(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:a||void 0}),"uploadResponse"),y={...c,...m!==void 0?n(()=>({uploadLoaded:M(m),uploadPercentage:`${Math.min(m/c.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?x():{}},I={files:t.files.map(g=>g.id===y.id?y:g),type:"UPDATE",payload:y};(s=e.onChange)==null||s.call(e,I),i(I)},"updateFileProgress")}}n(be,"useFileState");var Ge=Ne((e,t)=>{let{accept:i,maxSize:p,singleFile:d,uploadConfig:C,onUnsupportedFile:u,customButton:F,style:r,className:m,onChange:f,initialFiles:a,name:c}=e,[x,l]=He(!1),{active:y,enable:S,disable:I}=R(),{files:s,setInitialFiles:g,addFiles:P,removeFile:L,removeAll:Ie,updateFileProgress:W}=be({single:d,maxSize:p,onChange:f}),{getFiles:Pe}=oe({accept:i,single:d,onFilesSelect:P,onUnsupportedFile:u}),{isDragging:H,events:we}=ee({accept:i,single:d,onDrop:P});qe(()=>{let w=Array.isArray(a)?a.length>0:!!a;!x&&!s.files.length&&w&&(l(!0),g(a))},[x,l,a,g,s.files]);let Ue=Me(async w=>{if(s.files.length){S();let Oe=s.files.map(({id:Le,file:De})=>Fe({file:De,fieldName:w.formDataFileKey||"file",requestConfig:{...C,...w},onProgress:n((Ae,Be,Ee)=>{W(Le,Ae,Be,Ee)},"onProgress")})),Te=await Promise.all(Oe);return I(),Te}return[]},[s.files,C,S,W,I]);$e(t,()=>({submit:Ue,addFiles:P,removeFile:L,removeAll:Ie,files:s.files}));let D=We(null),k=n(()=>{var w;(w=D==null?void 0:D.current)==null||w.click()},"openFileDialog"),Se=F?F({files:s.files,isDragging:H,openFileDialog:k,isSubmitting:y}):j.createElement(J,{onClick:k,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||y,isLoading:y,type:"button"},e.buttonText||"Enviar arquivos"),G={...e,...!e.readOnly&&{events:we,isDragging:H},files:s.files,style:r,className:m,removeFile:L,openFileDialog:k,openFileDialogButton:Se,name:c},_=j.createElement(ae,{type:"file",isHidden:!0,position:"absolute",name:c,id:c,ref:D,onChange:Pe,multiple:!d,accept:Array.isArray(i)?i.join(","):void 0});return e.compact?j.createElement(ye,{...G,inputFile:_}):j.createElement(xe,{...G,inputFile:_})});Ge.displayName="UploadCard";import{useCallback as _e,useState as ve}from"react";var No=n(()=>{let[e,t]=ve([]),[i,p]=ve([]);return{onFilesChange:_e(u=>{if(!u.payload)return;let{payload:F}=u;u.type==="ADD"?p(r=>z(r,F)):u.type==="REMOVE"&&t(r=>z(r,F))},[]),removedFiles:e,addedFiles:i,clear:n(u=>{u==="removedFiles"&&t([]),u==="addedFiles"&&p([])},"clear")}},"useFileControl");export{me as a,V as b,N as c,T as d,pe as e,fe as f,ue as g,E as h,ce as i,ge as j,Ge as k,No as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-KASRN4X5.esm.js";import{b as m}from"./chunk-IK5Z5C2R.esm.js";import{b as c}from"./chunk-OXQA5WD3.esm.js";import{d as l}from"./chunk-RWLJNXLX.esm.js";import{g as f}from"./chunk-APD22JEO.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";import d from"react";function b(r){return r==="default"?"primary":r==="info"?"information":r}e(b,"getColorVariant");function u(r,t,n){let a=b(t),o=r.colors[a];if(n){let i=o==null?void 0:o.action;return{backgroundColor:i,color:i&&r.colors.getContrastColor(i)}}return{backgroundColor:o==null?void 0:o.light,color:o==null?void 0:o.onLight}}e(u,"getColor");var p=f(s).withConfig({componentId:"sc-dznqj7-0"})(["display:inline;"," "," "," ",""],m({fontSize:"micro",lineHeight:"close"}),c({px:"small",py:"xs"}),l({borderRadius:"micro"}),({theme:r,variant:t,inverted:n})=>u(r,t,n));function y(r){let{variant:t="default",text:n,children:a,alignSelf:o="start",...i}=r;return d.createElement(p,{variant:t,alignSelf:o,...i},a||n)}e(y,"Label");y.displayName="Label";export{p as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-KASRN4X5.esm.js";import{a as c}from"./chunk-YRBM4WYM.esm.js";import{b as d,g as s}from"./chunk-APD22JEO.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var t=s.input.withConfig({componentId:"sc-truao3-0"})(["position:absolute;left:0;top:0;margin:0;z-index:1;opacity:0;"]);t.displayName="input";var i=s(c).attrs(o=>({borderRadius:"md",borderWidth:"regular",borderStyle:"solid",borderColor:"information",deep:-1,...o})).withConfig({componentId:"sc-truao3-1"})(["--size:20px;--checked-size:calc(var(--size) * 0.5);width:var(--size);height:var(--size);flex-shrink:0;margin-right:",";&::before{content:'';border-radius:50%;display:inline-block;width:var(--checked-size);height:var(--checked-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;}"],({theme:o})=>o.spacing("small"));function y({variant:o,theme:e}){let r=e.colors.information;return o==="success"&&(r=e.colors.success),o==="error"&&(r=e.colors.danger),d(["color:",";& > ","{border:2px solid ",";&::before{background:",";}}&:hover > ",",&:focus > ","{border-color:",";}& > ",":checked ~ ","{border-color:",";box-shadow:",";}"],r.dark,i,r.dark,r.base,i,i,r.action,t,i,r.base,e.depth("level-zero"))}a(y,"inputVariantStyle");function g(o){return d(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";&::before{background:",";}}}"],o.colors.disabled.color,t,i,o.colors.disabled.fill,o.colors.disabled.fill,o.colors.disabled.color)}a(g,"getDisabledStyle");var p=s(n).withConfig({componentId:"sc-truao3-2"})(["cursor:pointer;position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:",";margin:",";"," "," & ",":checked ~ ","::before{opacity:1;}"],({theme:o})=>o.spacing("micro"),({theme:o})=>o.spacing(0,"xs","xs",0),y,({theme:o,disabled:e})=>e&&g(o),t,i);import l from"react";var f=a(({id:o,disabled:e,label:r=null,labelProps:m,variant:u="default",...b})=>l.createElement(p,{as:"label",htmlFor:o,variant:u,disabled:e},l.createElement(t,{...b,type:"radio",id:o,disabled:e}),l.createElement(i,null),typeof r=="string"?l.createElement(n,{fontSize:"small",color:"neutral.180",...m},r):r),"RadioComponent");f.displayName="Radio";export{t as a,i as b,p as c,f as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as C,c as P,e as k,f as v,h as E,j as R,k as F,l as S,m as I,n as z,o as B}from"./chunk-5H2LWL6K.esm.js";import{a as T}from"./chunk-
|
|
1
|
+
import{a as b,b as C,c as P,e as k,f as v,h as E,j as R,k as F,l as S,m as I,n as z,o as B}from"./chunk-5H2LWL6K.esm.js";import{a as T}from"./chunk-KASRN4X5.esm.js";import{a as c}from"./chunk-YRBM4WYM.esm.js";import{g as s}from"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import o from"react";function G({inverted:t,theme:e}){return t?{"--background":e.colors.grayscale[0],"--color":e.colors.neutral[170]}:{"--background":e.colors.grayscale[80],"--color":e.colors.grayscale[0]}}n(G,"getContainerStyle");var r=s(c).withConfig({componentId:"sc-10yilai-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{content:'';transform:rotate(45deg);background:var(--background);position:absolute;width:8px;height:8px;z-index:-1;}"]),H=s(c).withConfig({componentId:"sc-10yilai-1"})([""," color:var(--color);background-color:var(--background);line-height:1;&[data-placement^='top'] > ","{bottom:-3px;}&[data-placement^='bottom'] > ","{top:-3px;}&[data-placement^='left'] > ","{right:-4px;}&[data-placement^='right'] > ","{left:-4px;}"],G,r,r,r,r);var M=n((t,e)=>typeof t=="string"?o.createElement(T,{...e},t):t,"getElement"),O=n(({children:t,position:e="top",content:A,inverted:N,noArrow:U,onDismiss:a,visible:i})=>{var y,w;if(i!==void 0&&typeof a=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');let f=o.useRef(null),[$,q]=o.useState(!1),p=i!==void 0,d=p?!!i:$,D=o.useCallback(h=>{p?!h&&a&&a():q(h)},[p,a]),{refs:m,floatingStyles:K,context:l,placement:L,middlewareData:u}=F({open:d,onOpenChange:D,placement:e,middleware:[v(8),P(),E({padding:4}),b({element:f})],whileElementsMounted:C}),{getReferenceProps:V,getFloatingProps:X}=z([I(l,{move:!1,restMs:40}),S(l),R(l,{outsidePress:!0,escapeKey:!0}),B(l,{role:"tooltip"})]),g=(y=u.arrow)==null?void 0:y.x,x=(w=u.arrow)==null?void 0:w.y,Y=M(t),j=o.cloneElement(Y,{ref:m.setReference,...V()});return o.createElement(o.Fragment,null,j,d&&o.createElement(k,null,o.createElement(H,{ref:m.setFloating,inverted:N,deep:2,p:"xs",borderRadius:"xs","data-placement":L,style:K,...X()},M(A,{fontSize:"micro",lineHeight:"regular"}),!U&&o.createElement(r,{ref:f,style:{left:g!=null?`${g}px`:"",top:x!=null?`${x}px`:""}}))))},"TooltipComponent");O.displayName="Tooltip";export{r as a,H as b,O as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f}from"./chunk-5SQH2W2J.esm.js";import{b as c}from"./chunk-BVKAXW2H.esm.js";import{d as g}from"./chunk-
|
|
1
|
+
import{b as f}from"./chunk-5SQH2W2J.esm.js";import{b as c}from"./chunk-BVKAXW2H.esm.js";import{d as g}from"./chunk-KASRN4X5.esm.js";import{a as m}from"./chunk-CLDPV7NK.esm.js";import{g as p}from"./chunk-APD22JEO.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";import s from"react";function h(r){return r==="extraLarge"?"xl":r==="giant"?"xxl":r}a(h,"getIconSize");function x({theme:r,size:i,$label:e}){let{fontSize:o}=r.font,n=(e==null?void 0:e.length)||0;switch(i){case"small":{let t=r.spacing("medium");return{width:t,height:t,fontSize:o.micro}}case"large":{let t=r.spacing("xl");return{width:t,height:t,fontSize:n===1?o.xxl:o.large}}case"extraLarge":{let t=r.spacing("xxl");return{width:t,height:t,fontSize:n===1?o.gargantua:o.giant}}case"giant":{let t=r.spacing("giant");return{width:t,height:t,fontSize:o.gargantua}}default:{let t=r.spacing("large");return{width:t,height:t,fontSize:n===1?o.medium:o.xs}}}}a(x,"getSizes");var u=p(m).withConfig({componentId:"sc-k7r87e-0"})(x);function d({imgSrc:r,icon:i,size:e,label:o,alt:n}){return r?s.createElement(c,{width:"100%",height:"100%",src:r,alt:n!=null?n:"","data-testid":"avatar-image"}):i?s.createElement(f,{icon:i,size:h(e),"data-testid":"avatar-icon"}):s.createElement(g,{textTransform:"uppercase"},o)}a(d,"getContent");var l=a(({size:r,icon:i,imgSrc:e,label:o,alt:n,...t})=>s.createElement(u,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"grayscale.5",color:"primary.base",$label:o,size:r,...!e&&!i&&!!o&&{role:"img","aria-label":n!=null?n:o},...t},d({size:r,icon:i,imgSrc:e,label:o,alt:n})),"Avatar");l.displayName="Avatar";export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as b}from"./chunk-
|
|
1
|
+
import{d as b}from"./chunk-DLVRDZRA.esm.js";import{a as r}from"./chunk-HMITYQV5.esm.js";import{a as c}from"./chunk-CDRLVSLF.esm.js";import{a as C}from"./chunk-BMGVQBTB.esm.js";import{g as n}from"./chunk-APD22JEO.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import t from"react";var a=n(r).withConfig({componentId:"sc-g7895e-0"})([""]);var o=l(m=>{let{getSelected:x}=t.useContext(c),p=l(e=>[...e.parentNode.children].indexOf(e),"getNodeIndex"),h=l(e=>{let T=p(e.target.closest("tr"));x(T,e.target.checked)},"handleChecked");return t.createElement(a,null,t.createElement(C,null,t.createElement(b,{label:m.children,onChange:h})))},"TableCheckboxCellComponent");o.displayName="TableCheckboxCell";export{a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as C}from"./chunk-
|
|
1
|
+
import{d as C}from"./chunk-DLVRDZRA.esm.js";import{b}from"./chunk-MLIU6MRT.esm.js";import{a}from"./chunk-CDRLVSLF.esm.js";import{a as t}from"./chunk-CLDPV7NK.esm.js";import{g as r}from"./chunk-APD22JEO.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import o from"react";var c=r(b).withConfig({componentId:"sc-a4obcw-0"})([""]);var e=l(n=>{let{getAllSelected:m}=o.useContext(a);return o.createElement(c,{bgColor:"baseLight"},o.createElement(t,{justifyContent:"center"},o.createElement(C,{label:n.children,onChange:x=>m(x.target.checked)})))},"TableHeaderCheckboxCellComponent");e.displayName="TableHeaderCheckboxCell";export{c as a,e as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-XGE6OOEJ.esm.js";import{b as K}from"./chunk-OUHMU5PP.esm.js";import{a as c}from"./chunk-MLIU6MRT.esm.js";import{a as W}from"./chunk-CZJF4EVQ.esm.js";import{a as T}from"./chunk-SJ3MPBVM.esm.js";import{g as M}from"./chunk-NYDXZB2D.esm.js";import{a as E}from"./chunk-34QOWBI6.esm.js";import{a as O}from"./chunk-RZGNPPLN.esm.js";import{a}from"./chunk-HMITYQV5.esm.js";import{a as q}from"./chunk-CDRLVSLF.esm.js";import{F as B,K as y,Y as j,v as z,w as I}from"./chunk-H2KVPACE.esm.js";import{b as g}from"./chunk-5SQH2W2J.esm.js";import{a as F,d as $}from"./chunk-KASRN4X5.esm.js";import{a as f}from"./chunk-CLDPV7NK.esm.js";import{b as P}from"./chunk-A6Z2M2XU.esm.js";import{d as k}from"./chunk-RWLJNXLX.esm.js";import{b as l,g as H}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import t,{useEffect as ce,useState as p}from"react";function te(e){switch(e){case"Compact":return l(["& ","{padding:",";}& ",",","{padding:",";}"],c,({theme:n})=>n.spacing("micro"),a,s,({theme:n})=>n.spacing("micro"));case"Expansive":return l(["& ","{padding:",";}& ",",","{padding:",";}"],c,({theme:n})=>n.spacing("large"),a,s,({theme:n})=>n.spacing("large"));default:return l(["& ","{padding:",";}& ",",","{padding:",";}"],c,({theme:n})=>n.spacing("medium"),a,s,({theme:n})=>n.spacing("medium"))}}r(te,"getSizeStyle");function A(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}r(A,"getAlignDirection");function ne(e){if(typeof e=="object"){let n=e.reduce((u,o)=>{let w=`
|
|
2
2
|
& ${a}, ${s}, ${c} {
|
|
3
3
|
&:nth-child(${o.target}) {
|
|
4
4
|
${f} {
|
|
@@ -15,13 +15,13 @@ import{a as s}from"./chunk-QHDAJQC7.esm.js";import{b as K}from"./chunk-QOO64QE4.
|
|
|
15
15
|
&:nth-child(${o+1}) {
|
|
16
16
|
${u.type}-width: ${u.width}px;
|
|
17
17
|
}
|
|
18
|
-
`));return l(["& ",",",",","{","}"],a,s,c,n)}r(ie,"getColumnSizeStyle");function re(){return l(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],a,s,c,
|
|
18
|
+
`));return l(["& ",",",",","{","}"],a,s,c,n)}r(ie,"getColumnSizeStyle");function re(){return l(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],a,s,c,F)}r(re,"getEllipsisStyle");function oe(e){return e.map(n=>l(["& ","{&:nth-child(","){",";}}"],T,n+1,P({bgColor:"muted"})))}r(oe,"getSelectedStyle");var le=`
|
|
19
19
|
& ${c} {
|
|
20
20
|
position: sticky;
|
|
21
21
|
top: 0;
|
|
22
22
|
}
|
|
23
|
-
`,ae=l(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],O,
|
|
24
|
-
& ${
|
|
23
|
+
`,ae=l(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],O,T,P({bgColor:"neutral.5"}),a,s,k({borderWidth:"none"}),c),se=r(e=>`
|
|
24
|
+
& ${T}{
|
|
25
25
|
&:hover{
|
|
26
26
|
& ${a}, ${s}{
|
|
27
27
|
/* box-shadow inset instead of border avoids layout shift on hover
|
|
@@ -36,4 +36,4 @@ import{a as s}from"./chunk-QHDAJQC7.esm.js";import{b as K}from"./chunk-QOO64QE4.
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`,"getHoverableProps"),V=
|
|
39
|
+
`,"getHoverableProps"),V=H.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," "," ","{overflow-x:scroll;}"],({width:e})=>e||"100%",({stickyHeader:e})=>e&&le,({striped:e})=>e&&ae,({hoverable:e,theme:n})=>e&&se(n),({selected:e})=>oe(e),({ellipsis:e})=>e?re():"",({columnSize:e})=>ie(e),({align:e})=>ne(e),({rowSize:e})=>te(e),({theme:e})=>e.breakpoints.down("sm"));var Y=r(e=>{let[n,u]=p(""),[o,w]=p([]),[D,x]=p([]),[G,C]=p("Default"),b=t.useRef(null);ce(()=>{if(!b.current)return;let i=Array.from(b.current.children);w(i)},[]);let J=t.Children.toArray(e.children).length>1?1:0,N=t.Children.map(e.children,(i,m)=>m===J?t.cloneElement(i,{ref:b}):i),Q=r(i=>{if(i.key==="Enter"){if(!b.current)return;let m=b.current.children,d=o.map((h,S)=>{let v=m[S];return v&&(n===""&&(v.style.display=""),h.innerText.toLowerCase().includes(n.toLowerCase())||(v.style.display="none")),h});w(d)}},"getFilterData"),U=o.length>0&&o.every(i=>i.style.display==="none"),X=o.length,Z=r((i,m)=>{m&&x(d=>[...d,i]),m||x(D.filter(d=>d!==i))},"getSelected"),_=r(i=>(o.forEach((m,d)=>{let h=m.children[0].querySelectorAll("input")[0];return i&&(h.checked=!0,x(S=>[...S,d])),i||(h.checked=!1,x([])),null}),i),"getAllSelected"),R=r(i=>o.map(d=>parseInt(d.children[i].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ee=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function L(i){switch(i){case"normal":if(X<=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 r(L,"getOverflow"),t.createElement(f,{overflow:L("normal"),overflowY:L("y"),gap:4},t.createElement(f,{flexDirection:"row",justifyContent:"between",alignItems:"center"},e.title&&t.createElement($,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true"},e.title),t.createElement(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2},e.searching&&t.createElement(f,{width:"230px"},t.createElement(M,{placeholder:"Pesquisar",type:"text",value:n,name:"search",onChange:i=>u(i.target.value),onKeyDown:i=>Q(i),width:"230",icon:t.createElement(g,{icon:z}),role:"search"})),e.rowTypes&&t.createElement(E,{options:[{icon:t.createElement(g,{icon:y}),title:"Layout Condensado",action:r(()=>C("Compact"),"action")},{icon:t.createElement(g,{icon:y}),title:"Layout Padr\xE3o",action:r(()=>C("Expansive"),"action")},{icon:t.createElement(g,{icon:y}),title:"Layout Expandido",action:r(()=>C("Default"),"action")}]},t.createElement(g,{icon:y,color:"primary"})),e.share&&t.createElement(E,{options:[{icon:t.createElement(g,{icon:B}),title:"Enviar por email",action:e.share.email},{icon:t.createElement(g,{icon:j}),title:"Compartilhar",action:e.share.social}]},t.createElement(g,{icon:I,color:"primary"})))),ee&&t.createElement(W,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel}),t.createElement(V,{...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:D},t.createElement($,{as:"caption","aria-hidden":"false",hidden:!0},e.title),t.createElement(q.Provider,{value:{ellipsis:e.ellipsis,getSelected:Z,getAllSelected:_,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:R(e.columnSum)}:{index:void 0,sum:void 0}}},N)),U&&t.createElement(K,null))},"TableComponent");export{V as a,Y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as BaseContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-452VAAGY.esm.js";import"../../chunks/chunk-KASRN4X5.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-BMGVQBTB.esm.js";import"../../chunks/chunk-BC24WDTC.esm.js";import"../../chunks/chunk-6N52NFPT.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-BMGVQBTB.esm.js";import"../../chunks/chunk-BC24WDTC.esm.js";import"../../chunks/chunk-6N52NFPT.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as Flex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-73MPQ5OY.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-73MPQ5OY.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as DefaultGridStyle,b as Grid,a as setGridBreakpoints};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../../chunks/chunk-6OXVRDS2.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{b as a,c as b}from"../../chunks/chunk-6OXVRDS2.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as AnimatedContainer,b as AnimatedFlex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunks/chunk-DG6QINOD.esm.js";import{a as c,b as d,c as e,d as f,e as g}from"../../chunks/chunk-
|
|
1
|
+
import"../../chunks/chunk-DG6QINOD.esm.js";import{a as c,b as d,c as e,d as f,e as g}from"../../chunks/chunk-G4IUG32B.esm.js";import"../../chunks/chunk-KHEBUAB4.esm.js";import"../../chunks/chunk-KYIPVR2T.esm.js";import"../../chunks/chunk-CZAUFZ45.esm.js";import"../../chunks/chunk-H2KVPACE.esm.js";import"../../chunks/chunk-5SQH2W2J.esm.js";import"../../chunks/chunk-TD4RVB2L.esm.js";import"../../chunks/chunk-BVKAXW2H.esm.js";import"../../chunks/chunk-TUALAE4W.esm.js";import"../../chunks/chunk-ZLFQHCLE.esm.js";import"../../chunks/chunk-KL3ATH64.esm.js";import"../../chunks/chunk-T6ZB656A.esm.js";import"../../chunks/chunk-7AFAO7ZS.esm.js";import{b as a,c as b}from"../../chunks/chunk-56NEPHUH.esm.js";import"../../chunks/chunk-RU6QRCR7.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-2R6XFFSQ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-BRXIFPWB.esm.js";import"../../chunks/chunk-3EOSES4S.esm.js";import"../../chunks/chunk-NQBO2D7L.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-7EGX7BMB.esm.js";import"../../chunks/chunk-OWMRURZT.esm.js";import"../../chunks/chunk-6X6WKZ3Y.esm.js";import"../../chunks/chunk-2ROOI4B2.esm.js";import"../../chunks/chunk-2FQC32AA.esm.js";import"../../chunks/chunk-UNM6DHPD.esm.js";import"../../chunks/chunk-SPHHNZVP.esm.js";import"../../chunks/chunk-4UWZA5FD.esm.js";import"../../chunks/chunk-KQQ7V7VG.esm.js";import"../../chunks/chunk-3QSPHURU.esm.js";import"../../chunks/chunk-NDIYF5SX.esm.js";import"../../chunks/chunk-A3OJEVGQ.esm.js";import"../../chunks/chunk-KR2X2UQG.esm.js";import"../../chunks/chunk-BE2JDTVA.esm.js";import"../../chunks/chunk-5Q265MC7.esm.js";import"../../chunks/chunk-3V3ZEGHO.esm.js";import"../../chunks/chunk-WGTBX72G.esm.js";import"../../chunks/chunk-IWMEDT6U.esm.js";import"../../chunks/chunk-KASRN4X5.esm.js";import"../../chunks/chunk-BMGVQBTB.esm.js";import"../../chunks/chunk-BC24WDTC.esm.js";import"../../chunks/chunk-6N52NFPT.esm.js";import"../../chunks/chunk-6OXVRDS2.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{g as Notification,f as NotificationIconStyle,c as NotificationProgress,a as NotificationsProvider,d as ProgressContainer,e as WrapperNotificationStyle,b as useNotification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-4V7LOS5Z.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-4V7LOS5Z.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as Paper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-EJ3VKFOX.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-EJ3VKFOX.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-5HENHW73.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as CustomScroll};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"../chunks/chunk-EJ3VKFOX.esm.js";import{a as e}from"../chunks/chunk-
|
|
1
|
+
import{a as i}from"../chunks/chunk-EJ3VKFOX.esm.js";import{a as e}from"../chunks/chunk-452VAAGY.esm.js";import{a as m,b as p}from"../chunks/chunk-73MPQ5OY.esm.js";import"../chunks/chunk-DG6QINOD.esm.js";import{a,b,c,d,e as g}from"../chunks/chunk-G4IUG32B.esm.js";import"../chunks/chunk-KHEBUAB4.esm.js";import"../chunks/chunk-KYIPVR2T.esm.js";import"../chunks/chunk-CZAUFZ45.esm.js";import"../chunks/chunk-H2KVPACE.esm.js";import"../chunks/chunk-5SQH2W2J.esm.js";import"../chunks/chunk-TD4RVB2L.esm.js";import"../chunks/chunk-BVKAXW2H.esm.js";import"../chunks/chunk-TUALAE4W.esm.js";import"../chunks/chunk-ZLFQHCLE.esm.js";import"../chunks/chunk-KL3ATH64.esm.js";import"../chunks/chunk-T6ZB656A.esm.js";import"../chunks/chunk-7AFAO7ZS.esm.js";import{b as t,c as x}from"../chunks/chunk-56NEPHUH.esm.js";import"../chunks/chunk-RU6QRCR7.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import"../chunks/chunk-2R6XFFSQ.esm.js";import"../chunks/chunk-TG5BCBO4.esm.js";import"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-BRXIFPWB.esm.js";import"../chunks/chunk-3EOSES4S.esm.js";import"../chunks/chunk-NQBO2D7L.esm.js";import"../chunks/chunk-3DUB5C4Z.esm.js";import"../chunks/chunk-KT6QQ3UJ.esm.js";import"../chunks/chunk-7EGX7BMB.esm.js";import"../chunks/chunk-OWMRURZT.esm.js";import"../chunks/chunk-6X6WKZ3Y.esm.js";import"../chunks/chunk-2ROOI4B2.esm.js";import"../chunks/chunk-2FQC32AA.esm.js";import"../chunks/chunk-UNM6DHPD.esm.js";import"../chunks/chunk-SPHHNZVP.esm.js";import"../chunks/chunk-4UWZA5FD.esm.js";import"../chunks/chunk-KQQ7V7VG.esm.js";import"../chunks/chunk-3QSPHURU.esm.js";import"../chunks/chunk-NDIYF5SX.esm.js";import"../chunks/chunk-A3OJEVGQ.esm.js";import"../chunks/chunk-KR2X2UQG.esm.js";import"../chunks/chunk-BE2JDTVA.esm.js";import"../chunks/chunk-5Q265MC7.esm.js";import"../chunks/chunk-3V3ZEGHO.esm.js";import"../chunks/chunk-WGTBX72G.esm.js";import"../chunks/chunk-IWMEDT6U.esm.js";import"../chunks/chunk-KASRN4X5.esm.js";import{a as f}from"../chunks/chunk-BMGVQBTB.esm.js";import"../chunks/chunk-BC24WDTC.esm.js";import"../chunks/chunk-6N52NFPT.esm.js";import"../chunks/chunk-6OXVRDS2.esm.js";import{a as h}from"../chunks/chunk-4V7LOS5Z.esm.js";import{a as r}from"../chunks/chunk-CLDPV7NK.esm.js";import{a as o}from"../chunks/chunk-YRBM4WYM.esm.js";import"../chunks/chunk-5OKRFXLL.esm.js";import"../chunks/chunk-LATE6DIA.esm.js";import"../chunks/chunk-VMIXRIQ2.esm.js";import"../chunks/chunk-MBYC37CX.esm.js";import"../chunks/chunk-NI6YLGUA.esm.js";import"../chunks/chunk-OZIEVLUR.esm.js";import"../chunks/chunk-5HENHW73.esm.js";import"../chunks/chunk-RZDVS7AY.esm.js";import"../chunks/chunk-IK5Z5C2R.esm.js";import"../chunks/chunk-BNB3KNKE.esm.js";import"../chunks/chunk-OXQA5WD3.esm.js";import"../chunks/chunk-A6Z2M2XU.esm.js";import"../chunks/chunk-RWLJNXLX.esm.js";import"../chunks/chunk-TLBV5OUM.esm.js";import"../chunks/chunk-E3MSXQXV.esm.js";import"../chunks/chunk-TQJTHPA3.esm.js";import"../chunks/chunk-BV6GHAF7.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-APD22JEO.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{o as BaseContainer,e as Card,f as Content,i as CustomScroll,p as DefaultGridStyle,r as Flex,p as Grid,g as Notification,d as NotificationIconStyle,a as NotificationProgress,t as NotificationsProvider,h as Paper,b as ProgressContainer,c as WrapperNotificationStyle,m as setGridBreakpoints,x as useNotification};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* @see ../../vendors/TanstackReactTable (getFacetedRowModel + helpers)
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
+
import type { DataTableLabels } from './DataTable.interface';
|
|
22
23
|
import type { Column as TanstackColumn } from '../../vendors/TanstackReactTable';
|
|
23
24
|
/**
|
|
24
25
|
* Resolves the filterFn per variant (builtin string id). The consumer may
|
|
@@ -27,16 +28,20 @@ import type { Column as TanstackColumn } from '../../vendors/TanstackReactTable'
|
|
|
27
28
|
*/
|
|
28
29
|
export declare const VARIANT_FILTER_FN: Record<'select' | 'range' | 'text', string>;
|
|
29
30
|
type FilterColumn = TanstackColumn<any, any>;
|
|
31
|
+
/** Filter-facing subset of {@link DataTableLabels}, threaded down by `DataTable`. */
|
|
32
|
+
export type FilterLabels = Pick<DataTableLabels, 'filterNoValues' | 'filterPlaceholder'>;
|
|
30
33
|
type FilterUIProps = {
|
|
31
34
|
column: FilterColumn;
|
|
32
35
|
onClose: () => void;
|
|
36
|
+
/** UI string overrides; omitted fields keep the pt-BR defaults. */
|
|
37
|
+
labels?: FilterLabels;
|
|
33
38
|
};
|
|
34
39
|
/**
|
|
35
40
|
* Multi-select via checkbox + count. Faceted unique values come from
|
|
36
41
|
* `column.getFacetedUniqueValues()` (per-column drill-down — reflects the
|
|
37
42
|
* filters of other columns).
|
|
38
43
|
*/
|
|
39
|
-
export declare const SelectFilter: ({ column }: FilterUIProps) => React.JSX.Element;
|
|
44
|
+
export declare const SelectFilter: ({ column, labels }: FilterUIProps) => React.JSX.Element;
|
|
40
45
|
/**
|
|
41
46
|
* Numeric range. Default bounds come from `column.getFacetedMinMaxValues()`.
|
|
42
47
|
* Apply debounced 200ms.
|
|
@@ -46,9 +51,9 @@ export declare const RangeFilter: ({ column }: FilterUIProps) => React.JSX.Eleme
|
|
|
46
51
|
* Text contains (case-insensitive). Apply debounced 200ms — mirror of the
|
|
47
52
|
* `GlobalFilter` pattern.
|
|
48
53
|
*/
|
|
49
|
-
export declare const TextFilter: ({ column }: FilterUIProps) => React.JSX.Element;
|
|
54
|
+
export declare const TextFilter: ({ column, labels }: FilterUIProps) => React.JSX.Element;
|
|
50
55
|
/**
|
|
51
56
|
* Resolves which sub-component to render for each variant.
|
|
52
57
|
*/
|
|
53
|
-
export declare const filterUIForVariant: (variant: "select" | "range" | "text", column: FilterColumn, onClose: () => void) => React.ReactElement;
|
|
58
|
+
export declare const filterUIForVariant: (variant: "select" | "range" | "text", column: FilterColumn, onClose: () => void, labels?: FilterLabels) => React.ReactElement;
|
|
54
59
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DataTableProps, GlobalFilterProps } from './DataTable.interface';
|
|
2
|
+
import { DataTableLabels, DataTableProps, GlobalFilterProps } from './DataTable.interface';
|
|
3
3
|
import type { IconData } from '../../icons/icon.interface';
|
|
4
4
|
import type { OnChangeFn } from '../../vendors/TanstackReactTable';
|
|
5
5
|
/**
|
|
@@ -126,6 +126,7 @@ type PaginationControlsProps = {
|
|
|
126
126
|
onPrevious: () => void;
|
|
127
127
|
onNext: () => void;
|
|
128
128
|
onPageSizeChange: (size: number) => void;
|
|
129
|
+
labels?: Pick<DataTableLabels, 'showingRange' | 'perPageOption' | 'perPageTrigger' | 'previous' | 'next'>;
|
|
129
130
|
};
|
|
130
131
|
/**
|
|
131
132
|
* The `DataTable`'s pagination navigation row.
|
|
@@ -140,8 +141,9 @@ type PaginationControlsProps = {
|
|
|
140
141
|
* State is fully derived from the props — the component is pure. The
|
|
141
142
|
* tanstack-react-table wiring lives in `DataTable.tsx`.
|
|
142
143
|
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
144
|
+
* Every UI string defaults to pt-BR (consistent with `EmptyTable`, which
|
|
145
|
+
* uses the `"Nada foi encontrado"` default) and is overridable per field
|
|
146
|
+
* via `labels` — see {@link DataTableLabels}.
|
|
145
147
|
*/
|
|
146
|
-
export declare const PaginationControls: ({ pageIndex, pageSize, pageCount, rowCount, canPreviousPage, canNextPage, pageSizeOptions, onPrevious, onNext, onPageSizeChange, }: PaginationControlsProps) => React.JSX.Element;
|
|
148
|
+
export declare const PaginationControls: ({ pageIndex, pageSize, pageCount, rowCount, canPreviousPage, canNextPage, pageSizeOptions, onPrevious, onNext, onPageSizeChange, labels, }: PaginationControlsProps) => React.JSX.Element;
|
|
147
149
|
export {};
|