prosperita-dumbo-react 3.1.7 → 3.1.9
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.
|
@@ -4458,7 +4458,7 @@ const yp = ({
|
|
|
4458
4458
|
cursor: text;
|
|
4459
4459
|
display: flex;
|
|
4460
4460
|
width: 100%;
|
|
4461
|
-
margin:
|
|
4461
|
+
margin: 4px 0;
|
|
4462
4462
|
padding: 0;
|
|
4463
4463
|
z-index: 2;
|
|
4464
4464
|
&::after {
|
|
@@ -12154,7 +12154,7 @@ const gp = /* @__PURE__ */ a(G, { children: /* @__PURE__ */ a(
|
|
|
12154
12154
|
v.map((y, k) => /* @__PURE__ */ a(
|
|
12155
12155
|
up,
|
|
12156
12156
|
{
|
|
12157
|
-
onClick: () => y.onClick ? y.onClick() : null,
|
|
12157
|
+
onClick: () => y.onClick ? y.onClick(l + k) : null,
|
|
12158
12158
|
children: Object.keys(y).map((M) => /* @__PURE__ */ a(cp, { children: y[M] }, M))
|
|
12159
12159
|
},
|
|
12160
12160
|
k
|
|
@@ -12268,7 +12268,7 @@ const gp = /* @__PURE__ */ a(G, { children: /* @__PURE__ */ a(
|
|
|
12268
12268
|
letterSpacing: "0.16px",
|
|
12269
12269
|
width: "100%",
|
|
12270
12270
|
margin: "0"
|
|
12271
|
-
}, children: s }) })
|
|
12271
|
+
}, children: s || "Nenhum dado disponível." }) })
|
|
12272
12272
|
] }) })
|
|
12273
12273
|
]
|
|
12274
12274
|
}
|
|
@@ -670,7 +670,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[sn]+=1);const Ip="",Zi="prosp
|
|
|
670
670
|
cursor: text;
|
|
671
671
|
display: flex;
|
|
672
672
|
width: 100%;
|
|
673
|
-
margin:
|
|
673
|
+
margin: 4px 0;
|
|
674
674
|
padding: 0;
|
|
675
675
|
z-index: 2;
|
|
676
676
|
&::after {
|
|
@@ -2217,7 +2217,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2217
2217
|
align-self: end;
|
|
2218
2218
|
width: 100%;
|
|
2219
2219
|
}
|
|
2220
|
-
`,Jf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s,widthTable:d})=>{const[l,u]=B.useState(0),[f,p]=B.useState(t[0]),[b,h]=B.useState([]),m=y=>{const G=y.target.value.toLocaleLowerCase(),L=e.filter(z=>o.some(ie=>{var j;const q=(j=String(z[ie]))==null?void 0:j.toLocaleLowerCase();return q==null?void 0:q.includes(G)}));h(L),u(0)},v=b.length>0?b:e,C=B.useMemo(()=>v.slice(l,l+f),[v,l,f]),w=B.useMemo(()=>Math.ceil(v.length/f),[v.length,f]),E=B.useMemo(()=>Math.floor(l/f)+1,[l,f]),S=B.useCallback(()=>{u(y=>{const G=y+f;return G>=v.length?y:G})},[f,v.length]),P=B.useCallback(()=>{u(y=>{const G=y-f;return G<0?0:G})},[f]),A=B.useCallback(y=>{const G=Number(y.target.value);u((G-1)*f)},[f]),V=B.useCallback(y=>{const G=Number(y.target.value);p(G),u(0)},[]);return a(T,{children:I(Yf,{widthTable:d,pageSizes:t,rowdata:e,columnTitles:o,messageDataLength:s,style:{position:"relative"},children:[a(Zf,{children:i}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(_o,{kind:"default",size:"medium",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(y=>y.position==="left").map((y,G)=>I("div",{style:{marginLeft:"1px"},children:[" ",a(Gt,{onClick:y.onClick,kind:y.kind,size:"medium",icon:y.icon,label:y.label,borderNone:!0})]},G))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(y=>y.position==="right").map((y,G)=>I("div",{style:{marginRight:"1px"},children:[" ",a(Gt,{onClick:y.onClick,kind:y.kind,size:"medium",icon:y.icon,label:y.label,borderNone:!0})]},G))})]}),e&&e.length>0?I(T,{children:[I(Cl,{children:[a(vl,{children:o.map((y,G)=>a(xl,{children:a(yl,{children:y})},G))}),C.map((y,G)=>a(Of,{onClick:()=>y.onClick?y.onClick():null,children:Object.keys(y).map(L=>a(Wf,{children:y[L]},L))},G))]}),I($f,{children:[I("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(Al,{name:"select",onChange:V,children:t.map((y,G)=>a(wl,{value:y,children:y},G))}),I(Sl,{children:[l+1," – ",Math.min(l+f,v.length)," de ",v.length," itens"]})]}),I(Xf,{children:[I("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(Al,{name:"select",value:E,onChange:A,children:Array.from({length:w},(y,G)=>a(wl,{value:G+1,children:G+1},G+1))}),I(Sl,{children:["de ",w," páginas"]})]}),a(tt,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(Il,{onClick:P,disabled:l===0,style:{borderLeft:"none",opacity:l===0?".5":"1",cursor:l===0?"not-allowed":"pointer"},children:jf})}),a(tt,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(Il,{onClick:S,disabled:l+f>=v.length,style:{borderRight:"none",opacity:l+f>=v.length?".5":"1",cursor:l+f>=v.length?"not-allowed":"pointer"},children:zf})})]})]})]}):a(T,{children:I(Cl,{children:[a(vl,{children:a(xl,{children:a(yl,{})})}),a("div",{style:{height:"350px",width:"100%"},children:a("h4",{style:{fontFamily:"IBM Plex Sans",fontSize:"20px",display:"flex",padding:"0",alignItems:"center",justifyContent:"center",height:"100%",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px",width:"100%",margin:"0"},children:s})})]})})]})})},_f=x.button`
|
|
2220
|
+
`,Jf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s,widthTable:d})=>{const[l,u]=B.useState(0),[f,p]=B.useState(t[0]),[b,h]=B.useState([]),m=y=>{const G=y.target.value.toLocaleLowerCase(),L=e.filter(z=>o.some(ie=>{var j;const q=(j=String(z[ie]))==null?void 0:j.toLocaleLowerCase();return q==null?void 0:q.includes(G)}));h(L),u(0)},v=b.length>0?b:e,C=B.useMemo(()=>v.slice(l,l+f),[v,l,f]),w=B.useMemo(()=>Math.ceil(v.length/f),[v.length,f]),E=B.useMemo(()=>Math.floor(l/f)+1,[l,f]),S=B.useCallback(()=>{u(y=>{const G=y+f;return G>=v.length?y:G})},[f,v.length]),P=B.useCallback(()=>{u(y=>{const G=y-f;return G<0?0:G})},[f]),A=B.useCallback(y=>{const G=Number(y.target.value);u((G-1)*f)},[f]),V=B.useCallback(y=>{const G=Number(y.target.value);p(G),u(0)},[]);return a(T,{children:I(Yf,{widthTable:d,pageSizes:t,rowdata:e,columnTitles:o,messageDataLength:s,style:{position:"relative"},children:[a(Zf,{children:i}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(_o,{kind:"default",size:"medium",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:m}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(y=>y.position==="left").map((y,G)=>I("div",{style:{marginLeft:"1px"},children:[" ",a(Gt,{onClick:y.onClick,kind:y.kind,size:"medium",icon:y.icon,label:y.label,borderNone:!0})]},G))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(y=>y.position==="right").map((y,G)=>I("div",{style:{marginRight:"1px"},children:[" ",a(Gt,{onClick:y.onClick,kind:y.kind,size:"medium",icon:y.icon,label:y.label,borderNone:!0})]},G))})]}),e&&e.length>0?I(T,{children:[I(Cl,{children:[a(vl,{children:o.map((y,G)=>a(xl,{children:a(yl,{children:y})},G))}),C.map((y,G)=>a(Of,{onClick:()=>y.onClick?y.onClick(l+G):null,children:Object.keys(y).map(L=>a(Wf,{children:y[L]},L))},G))]}),I($f,{children:[I("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(Al,{name:"select",onChange:V,children:t.map((y,G)=>a(wl,{value:y,children:y},G))}),I(Sl,{children:[l+1," – ",Math.min(l+f,v.length)," de ",v.length," itens"]})]}),I(Xf,{children:[I("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(Al,{name:"select",value:E,onChange:A,children:Array.from({length:w},(y,G)=>a(wl,{value:G+1,children:G+1},G+1))}),I(Sl,{children:["de ",w," páginas"]})]}),a(tt,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(Il,{onClick:P,disabled:l===0,style:{borderLeft:"none",opacity:l===0?".5":"1",cursor:l===0?"not-allowed":"pointer"},children:jf})}),a(tt,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(Il,{onClick:S,disabled:l+f>=v.length,style:{borderRight:"none",opacity:l+f>=v.length?".5":"1",cursor:l+f>=v.length?"not-allowed":"pointer"},children:zf})})]})]})]}):a(T,{children:I(Cl,{children:[a(vl,{children:a(xl,{children:a(yl,{})})}),a("div",{style:{height:"350px",width:"100%"},children:a("h4",{style:{fontFamily:"IBM Plex Sans",fontSize:"20px",display:"flex",padding:"0",alignItems:"center",justifyContent:"center",height:"100%",fontStyle:"normal",fontWeight:"400",lineHeight:"18px",letterSpacing:"0.16px",width:"100%",margin:"0"},children:s||"Nenhum dado disponível."})})]})})]})})},_f=x.button`
|
|
2221
2221
|
color: ${c.textSecondary};
|
|
2222
2222
|
font-family: 'IBM Plex Sans', sans-serif !important;
|
|
2223
2223
|
font-size: 14px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACV,MAAM,OAAO,CAAC;AAiBf,OAAO,2BAA2B,CAAC;AASnC,KAAK,QAAQ,GAAG,MA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