prosperita-dumbo-react 1.0.10 → 1.0.11
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.
|
@@ -11848,7 +11848,7 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11848
11848
|
width: 3%;
|
|
11849
11849
|
white-space: nowrap;
|
|
11850
11850
|
border-collapse: collapse;
|
|
11851
|
-
align
|
|
11851
|
+
vertical-align: middle;
|
|
11852
11852
|
`, Sl = x.tr`
|
|
11853
11853
|
background: ${u.layer01};
|
|
11854
11854
|
text-align: start;
|
|
@@ -11864,7 +11864,7 @@ const a5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
11864
11864
|
background: ${u.layerHover01};
|
|
11865
11865
|
}
|
|
11866
11866
|
margin: 0;
|
|
11867
|
-
|
|
11867
|
+
|
|
11868
11868
|
|
|
11869
11869
|
`, El = x.th`
|
|
11870
11870
|
padding: .7em;
|
|
@@ -12258,7 +12258,7 @@ const w5 = /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
|
12258
12258
|
/* @__PURE__ */ l(zn, { children: /* @__PURE__ */ l("p", { style: {
|
|
12259
12259
|
margin: "0",
|
|
12260
12260
|
textAlign: "center",
|
|
12261
|
-
transform: U(N) === "up" ? "rotate(180deg) translateY(
|
|
12261
|
+
transform: U(N) === "up" ? "rotate(180deg) translateY(10%)" : "rotate(0deg) translateY(20%)",
|
|
12262
12262
|
padding: "0"
|
|
12263
12263
|
}, children: S5 }) }),
|
|
12264
12264
|
/* @__PURE__ */ l(zn, { children: /* @__PURE__ */ l(
|
|
@@ -2054,7 +2054,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2054
2054
|
width: 3%;
|
|
2055
2055
|
white-space: nowrap;
|
|
2056
2056
|
border-collapse: collapse;
|
|
2057
|
-
align
|
|
2057
|
+
vertical-align: middle;
|
|
2058
2058
|
`,Ns=I.tr`
|
|
2059
2059
|
background: ${u.layer01};
|
|
2060
2060
|
text-align: start;
|
|
@@ -2070,7 +2070,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2070
2070
|
background: ${u.layerHover01};
|
|
2071
2071
|
}
|
|
2072
2072
|
margin: 0;
|
|
2073
|
-
|
|
2073
|
+
|
|
2074
2074
|
|
|
2075
2075
|
`,Hs=I.th`
|
|
2076
2076
|
padding: .7em;
|
|
@@ -2220,7 +2220,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2220
2220
|
background: ${u.layer01};
|
|
2221
2221
|
flex-direction: column;
|
|
2222
2222
|
min-width: ${({width:e})=>e||"100%"};
|
|
2223
|
-
`,u5=({rowdata:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:a,width:c,expandedRowData:s,columskeys:d,actions:f})=>{const[p,g]=x.useState(0),[b,v]=x.useState(t[0]),[y,m]=x.useState([]),[C,P]=x.useState(Array(e.length).fill(!1)),[B,V]=x.useState(Array(e.length).fill(!1)),[A,E]=x.useState(!1),[S,G]=x.useState(!1),_=M=>{V(R=>{const ne=[...R];ne[M]=!ne[M];const pe=ne.filter(Boolean).length,ye=pe===e.length,ue=pe>0;return E(ye),G(!ye&&ue),ne})},U=()=>{const M=!A;V(Array(e.length).fill(M)),E(M),G(!1)},te=M=>{const R=M.target.value.toLocaleLowerCase(),ne=e.filter(pe=>o.some(ye=>{var Te;const ue=(Te=String(pe[ye]))==null?void 0:Te.toLocaleLowerCase();return ue==null?void 0:ue.includes(R)}));m(ne),g(0)},Y=y.length>0?y:e,Q=x.useMemo(()=>Y.slice(p,p+b),[Y,p,b]),H=x.useMemo(()=>Math.ceil(Y.length/b),[Y.length,b]),O=x.useMemo(()=>Math.floor(p/b)+1,[p,b]),W=x.useCallback(()=>{g(M=>{const R=M+b;return R>=Y.length?M:R})},[b,Y.length]),le=x.useCallback(()=>{g(M=>{const R=M-b;return R<0?0:R})},[b]),ve=x.useCallback(M=>{const R=Number(M.target.value);g((R-1)*b)},[b]),ce=x.useCallback(M=>{const R=Number(M.target.value);v(R),g(0)},[]),Ee=M=>{P(R=>{const ne=[...R];return ne[M]=!ne[M],ne})},Pe=()=>B.filter(M=>M).length,K=M=>C[M]?"up":"down";return x.useEffect(()=>{V(Array(Y.length).fill(!1))},[Y]),l(F,{children:w(c5,{width:c,pageSizes:t,rowdata:e,columnTitles:o,messagedatalength:a,expandedRowData:s,style:{position:"relative"},children:[i&&l(n5,{children:i}),w("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(hl,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:te}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="left").map((M,R)=>l("div",{style:{marginLeft:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="right").map((M,R)=>l("div",{style:{marginRight:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))})]}),e&&e.length>0?w(F,{children:[Pe()>0&&l("div",{style:{width:"100%",height:"45px",background:u.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:u.textOnColor},children:w(F,{children:[w("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:Pe()}),"item selecionados"]}),l("div",{style:{display:"flex",gap:"10px",marginRight:"10px",alignItems:"center"},children:f==null?void 0:f.map(M=>l(F,{children:w("p",{style:{display:"flex",gap:"8px",marginRight:"10px",cursor:"pointer",fontFamily:"IBM Plex sans,sans-serif",fontWeight:"400",fontSize:"14px"},onClick:M.onClick,children:[M.text,l("img",{style:{objectFit:"none"},src:M.icon})]})}))})]})}),w(e5,{children:[w(t5,{children:[l(Hs,{}),o.map((M,R)=>w(Hs,{children:[R===0&&l(li,{checked:A,indeterminate:S,onChange:U}),l(r5,{children:M})]},R))]}),Q.map((M,R)=>w(F,{children:[w(Ns,{onClick:()=>{Ee(R)},children:[l(xr,{children:l("p",{style:{margin:"0",textAlign:"center",transform:K(R)==="up"?"rotate(180deg) translateY(
|
|
2223
|
+
`,u5=({rowdata:e,pageSizes:t,buttons:n,label:i,search:r,columnTitles:o,messagedatalength:a,width:c,expandedRowData:s,columskeys:d,actions:f})=>{const[p,g]=x.useState(0),[b,v]=x.useState(t[0]),[y,m]=x.useState([]),[C,P]=x.useState(Array(e.length).fill(!1)),[B,V]=x.useState(Array(e.length).fill(!1)),[A,E]=x.useState(!1),[S,G]=x.useState(!1),_=M=>{V(R=>{const ne=[...R];ne[M]=!ne[M];const pe=ne.filter(Boolean).length,ye=pe===e.length,ue=pe>0;return E(ye),G(!ye&&ue),ne})},U=()=>{const M=!A;V(Array(e.length).fill(M)),E(M),G(!1)},te=M=>{const R=M.target.value.toLocaleLowerCase(),ne=e.filter(pe=>o.some(ye=>{var Te;const ue=(Te=String(pe[ye]))==null?void 0:Te.toLocaleLowerCase();return ue==null?void 0:ue.includes(R)}));m(ne),g(0)},Y=y.length>0?y:e,Q=x.useMemo(()=>Y.slice(p,p+b),[Y,p,b]),H=x.useMemo(()=>Math.ceil(Y.length/b),[Y.length,b]),O=x.useMemo(()=>Math.floor(p/b)+1,[p,b]),W=x.useCallback(()=>{g(M=>{const R=M+b;return R>=Y.length?M:R})},[b,Y.length]),le=x.useCallback(()=>{g(M=>{const R=M-b;return R<0?0:R})},[b]),ve=x.useCallback(M=>{const R=Number(M.target.value);g((R-1)*b)},[b]),ce=x.useCallback(M=>{const R=Number(M.target.value);v(R),g(0)},[]),Ee=M=>{P(R=>{const ne=[...R];return ne[M]=!ne[M],ne})},Pe=()=>B.filter(M=>M).length,K=M=>C[M]?"up":"down";return x.useEffect(()=>{V(Array(Y.length).fill(!1))},[Y]),l(F,{children:w(c5,{width:c,pageSizes:t,rowdata:e,columnTitles:o,messagedatalength:a,expandedRowData:s,style:{position:"relative"},children:[i&&l(n5,{children:i}),w("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(hl,{kind:"default",size:"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:te}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="left").map((M,R)=>l("div",{style:{marginLeft:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(M=>M.position==="right").map((M,R)=>l("div",{style:{marginRight:"1px"},children:l(dn,{onClick:M.onClick,kind:M.kind,size:"small",icon:M.icon,label:M.label,borderNone:!0})},R))})]}),e&&e.length>0?w(F,{children:[Pe()>0&&l("div",{style:{width:"100%",height:"45px",background:u.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:u.textOnColor},children:w(F,{children:[w("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:Pe()}),"item selecionados"]}),l("div",{style:{display:"flex",gap:"10px",marginRight:"10px",alignItems:"center"},children:f==null?void 0:f.map(M=>l(F,{children:w("p",{style:{display:"flex",gap:"8px",marginRight:"10px",cursor:"pointer",fontFamily:"IBM Plex sans,sans-serif",fontWeight:"400",fontSize:"14px"},onClick:M.onClick,children:[M.text,l("img",{style:{objectFit:"none"},src:M.icon})]})}))})]})}),w(e5,{children:[w(t5,{children:[l(Hs,{}),o.map((M,R)=>w(Hs,{children:[R===0&&l(li,{checked:A,indeterminate:S,onChange:U}),l(r5,{children:M})]},R))]}),Q.map((M,R)=>w(F,{children:[w(Ns,{onClick:()=>{Ee(R)},children:[l(xr,{children:l("p",{style:{margin:"0",textAlign:"center",transform:K(R)==="up"?"rotate(180deg) translateY(10%)":"rotate(0deg) translateY(20%)",padding:"0"},children:s5})}),l(xr,{children:l(li,{checked:B[p+R],onClick:()=>{_(p+R),M.onClick&&M.onClick(p+R)}})}),d==null?void 0:d.map(ne=>l(xr,{children:M[ne]},ne))]}),C[R]&&l(Ns,{children:l(xr,{colSpan:o.length+2,style:{background:u.borderSubtle00},children:l("div",{style:{margin:"10px auto",textAlign:"start",minHeight:"100px",width:"95%",borderTop:`1px solid ${u.borderSubtle01}`},children:l(F,{children:l("div",{style:{width:"90%",margin:"20px auto"},children:s==null?void 0:s.map(ne=>l("p",{style:{margin:"2px"},children:ne+""+M[ne]}))})})})})})]}))]}),w(i5,{children:[w("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${u.borderSubtle01}`},children:[l(Zs,{name:"select",onChange:ce,children:t.map((M,R)=>l(Ws,{value:M,children:M},R))}),w(Wi,{children:[p+1," – ",Math.min(p+b,Y.length)," de ",Y.length," itens"]})]}),w(o5,{children:[w("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${u.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[l(Zs,{name:"select",value:O,onChange:ve,children:Array.from({length:H},(M,R)=>l(Ws,{value:R+1,children:R+1},R+1))}),w(Wi,{children:["de ",H," páginas"]})]}),l(mt,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:l(Rs,{onClick:le,disabled:p===0,style:{borderLeft:"none",opacity:p===0?".5":"1",cursor:p===0?"not-allowed":"pointer"},children:l5})}),l(mt,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:l(Rs,{onClick:W,disabled:p+b>=Y.length,style:{borderRight:"none",opacity:p+b>=Y.length?".5":"1",cursor:p+b>=Y.length?"not-allowed":"pointer"},children:a5})})]})]})]}):l(Wi,{children:a||"Nenhum item encontrado"})]})})},d5=I.button`
|
|
2224
2224
|
color: ${u.textSecondary};
|
|
2225
2225
|
font-size: 14px;
|
|
2226
2226
|
font-style: normal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAGV,MAAM,OAAO,CAAC;AAiBf,OAAO,2BAA2B,CAAC;AAYnC,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG;IAChD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAGF,KAAK,UAAU,GAAG;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B,CAAC;AAYF,eAAO,MAAM,iBAAiB,iIAY3B,UAAU,4CA0XZ,CAAC"}
|