prosperita-dumbo-react 1.3.13 → 1.3.14
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.
|
@@ -12114,10 +12114,10 @@ const F4 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
12114
12114
|
background: ${g.layer01};
|
|
12115
12115
|
margin: 0;
|
|
12116
12116
|
padding: 0;
|
|
12117
|
-
width:
|
|
12117
|
+
width: 99.8%;
|
|
12118
12118
|
display: flex;
|
|
12119
12119
|
justify-content: space-between;
|
|
12120
|
-
border: 1px solid ${g.
|
|
12120
|
+
border: 1px solid ${g.borderSubtle00};
|
|
12121
12121
|
border-right: 1px solid transparent;
|
|
12122
12122
|
border-bottom: 1px solid transparent;
|
|
12123
12123
|
`, o6 = y.div`
|
|
@@ -12130,7 +12130,7 @@ const F4 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
12130
12130
|
border: none;
|
|
12131
12131
|
outline: none;
|
|
12132
12132
|
cursor: pointer;
|
|
12133
|
-
border: 1px solid ${g.
|
|
12133
|
+
border: 1px solid ${g.borderSubtle00};
|
|
12134
12134
|
border-top: 1px solid transparent;
|
|
12135
12135
|
border-bottom: 1px solid transparent;
|
|
12136
12136
|
padding: 10px 12px;
|
|
@@ -12458,7 +12458,7 @@ const a6 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
12458
12458
|
style: {
|
|
12459
12459
|
display: "flex",
|
|
12460
12460
|
alignItems: "center",
|
|
12461
|
-
borderRight: `1px solid ${g.
|
|
12461
|
+
borderRight: `1px solid ${g.borderSubtle00}`
|
|
12462
12462
|
},
|
|
12463
12463
|
children: [
|
|
12464
12464
|
/* @__PURE__ */ l(Uc, { name: "select", onChange: K, children: t.map((k, O) => /* @__PURE__ */ l(Jc, { value: k, children: k }, O)) }),
|
|
@@ -12480,7 +12480,6 @@ const a6 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
12480
12480
|
style: {
|
|
12481
12481
|
display: "flex",
|
|
12482
12482
|
alignItems: "center",
|
|
12483
|
-
border: `1px solid ${g.borderSubtle01}`,
|
|
12484
12483
|
borderTop: "1px solid transparent",
|
|
12485
12484
|
borderBottom: "1px solid transparent",
|
|
12486
12485
|
cursor: "pointer"
|
|
@@ -14289,7 +14288,7 @@ const Ay = y.input`
|
|
|
14289
14288
|
background: ${g.layer01};
|
|
14290
14289
|
margin: 0;
|
|
14291
14290
|
padding: 0;
|
|
14292
|
-
width:
|
|
14291
|
+
width: 99.8%;
|
|
14293
14292
|
display: flex;
|
|
14294
14293
|
justify-content: space-between;
|
|
14295
14294
|
border: 1px solid ${g.borderSubtle00};
|
|
@@ -15479,10 +15478,10 @@ const dS = ({
|
|
|
15479
15478
|
min-width: ${({ tableWidth: e }) => `${e}px`};
|
|
15480
15479
|
margin: 0;
|
|
15481
15480
|
padding: 0;
|
|
15482
|
-
width:
|
|
15481
|
+
width: 99.8%;
|
|
15483
15482
|
display: flex;
|
|
15484
15483
|
justify-content: space-between;
|
|
15485
|
-
border: 1px solid ${g.
|
|
15484
|
+
border: 1px solid ${g.borderSubtle00};
|
|
15486
15485
|
border-right: 1px solid transparent;
|
|
15487
15486
|
border-bottom: 1px solid transparent;
|
|
15488
15487
|
`, e7 = y.div`
|
|
@@ -15495,7 +15494,7 @@ const dS = ({
|
|
|
15495
15494
|
border: none;
|
|
15496
15495
|
outline: none;
|
|
15497
15496
|
cursor: pointer;
|
|
15498
|
-
border: 1px solid ${g.
|
|
15497
|
+
border: 1px solid ${g.borderSubtle00};
|
|
15499
15498
|
border-top: 1px solid transparent;
|
|
15500
15499
|
border-bottom: 1px solid transparent;
|
|
15501
15500
|
padding: 10px 12px;
|
|
@@ -15936,7 +15935,7 @@ const n7 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
15936
15935
|
textAlign: "start",
|
|
15937
15936
|
minHeight: "100px",
|
|
15938
15937
|
width: "95%",
|
|
15939
|
-
borderTop: `1px solid ${g.
|
|
15938
|
+
borderTop: `1px solid ${g.borderSubtle00}`
|
|
15940
15939
|
}, children: /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l("div", { style: { width: "90%", margin: "20px auto" }, children: s == null ? void 0 : s.map((G) => /* @__PURE__ */ l("p", { style: { margin: "2px" }, children: G + "" + L[typeof G == "string" ? G : ""] })) }) }) })
|
|
15941
15940
|
}
|
|
15942
15941
|
)
|
|
@@ -15957,7 +15956,7 @@ const n7 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
15957
15956
|
style: {
|
|
15958
15957
|
display: "flex",
|
|
15959
15958
|
alignItems: "center",
|
|
15960
|
-
borderRight: `1px solid ${g.
|
|
15959
|
+
borderRight: `1px solid ${g.borderSubtle00}`
|
|
15961
15960
|
},
|
|
15962
15961
|
children: [
|
|
15963
15962
|
/* @__PURE__ */ l(Ud, { name: "select", onChange: _, children: t.map((L, $) => /* @__PURE__ */ l(Jd, { value: L, children: L }, $)) }),
|
|
@@ -15979,7 +15978,7 @@ const n7 = /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
|
|
|
15979
15978
|
style: {
|
|
15980
15979
|
display: "flex",
|
|
15981
15980
|
alignItems: "center",
|
|
15982
|
-
border: `1px solid ${
|
|
15981
|
+
// border: `1px solid ${theme.borderSubtle01}`,
|
|
15983
15982
|
borderTop: "1px solid transparent",
|
|
15984
15983
|
borderBottom: "1px solid transparent",
|
|
15985
15984
|
cursor: "pointer"
|
|
@@ -2133,10 +2133,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2133
2133
|
background: ${g.layer01};
|
|
2134
2134
|
margin: 0;
|
|
2135
2135
|
padding: 0;
|
|
2136
|
-
width:
|
|
2136
|
+
width: 99.8%;
|
|
2137
2137
|
display: flex;
|
|
2138
2138
|
justify-content: space-between;
|
|
2139
|
-
border: 1px solid ${g.
|
|
2139
|
+
border: 1px solid ${g.borderSubtle00};
|
|
2140
2140
|
border-right: 1px solid transparent;
|
|
2141
2141
|
border-bottom: 1px solid transparent;
|
|
2142
2142
|
`,L4=C.div`
|
|
@@ -2149,7 +2149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2149
2149
|
border: none;
|
|
2150
2150
|
outline: none;
|
|
2151
2151
|
cursor: pointer;
|
|
2152
|
-
border: 1px solid ${g.
|
|
2152
|
+
border: 1px solid ${g.borderSubtle00};
|
|
2153
2153
|
border-top: 1px solid transparent;
|
|
2154
2154
|
border-bottom: 1px solid transparent;
|
|
2155
2155
|
padding: 10px 12px;
|
|
@@ -2253,7 +2253,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2253
2253
|
background: ${g.layer01};
|
|
2254
2254
|
flex-direction: column;
|
|
2255
2255
|
min-width: ${({width:e})=>e||"100%"};
|
|
2256
|
-
`,_4=({rowData:e,pageSizes:t,buttons:n,label:o,search:r,columnTitles:i,messagedatalength:a,width:c,columsKeys:s,actions:u,sizeSearch:p,headerAction:d,rowSizes:f})=>{const[h,m]=x.useState(0),[v,b]=x.useState(t[0]),[y,w]=x.useState([]),A=G=>{const O=G.target.value.toLocaleLowerCase(),B=e.filter(k=>i.some(W=>{var j;const ee=(j=String(k[typeof W=="string"?W:""]))==null?void 0:j.toLocaleLowerCase();return ee==null?void 0:ee.includes(O)}));w(B),m(0)},P=y.length>0?y:e,E=x.useMemo(()=>P.slice(h,h+v),[P,h,v]),S=x.useMemo(()=>Math.ceil(P.length/v),[P.length,v]),D=x.useMemo(()=>Math.floor(h/v)+1,[h,v]),V=x.useCallback(()=>{m(G=>{const O=G+v;return O>=P.length?G:O})},[v,P.length]),_=x.useCallback(()=>{m(G=>{const O=G-v;return O<0?0:O})},[v]),Y=x.useCallback(G=>{const O=Number(G.target.value);m((O-1)*v)},[v]),K=x.useCallback(G=>{const O=Number(G.target.value);b(O),m(0)},[]);return l(L,{children:I(H4,{width:c,pageSizes:t,rowData:e,columnTitles:i,messagedatalength:a,style:{position:"relative"},children:[o&&l($4,{children:o}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(Ot,{kind:"default",size:p||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:A}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(G=>G.position==="left").map((G,O)=>l("div",{style:{marginLeft:"1px"},children:l(ke,{hasIconSvg:G.hasIconSvg,onClick:G.onClick,kind:G.kind,size:G.size||"small",icon:G.icon,dimension:G.dimension,label:G.label,width:G.width,disabled:G.disabled,borderNone:!0})},O))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(G=>G.position==="right").map((G,O)=>l("div",{style:{marginRight:"1px"},children:l(ke,{hasIconSvg:G.hasIconSvg,onClick:B=>{G.onClick&&G.onClick(),B.stopPropagation(),B.preventDefault()},kind:G.kind,size:G.size||"small",icon:G.icon,label:G.label,dimension:G.dimension,width:G.width,disabled:G.disabled,borderNone:!0})},O))})]}),e&&e.length>0?I(L,{children:[(d==null?void 0:d.active)&&l("div",{style:{width:"100%",height:"38px",background:g.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:g.textOnColor},children:I(L,{children:[I("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:d==null?void 0:d.count}),"item selecionados"]}),l("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:u==null?void 0:u.map(G=>I(L,{children:[l(ke,{fortable:!0,borderNone:!0,kind:"primary",size:"small",label:G.text,icon:G.icon,onClick:G.onClick}),G.feature&&l("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),I(T4,{children:[I(O4,{children:[l(ud,{}),i.map((G,O)=>l(ud,{children:l(k4,{children:G})},O))]}),E.map((G,O)=>l(L,{children:l(V4,{children:s==null?void 0:s.map((B,k)=>l(B4,{rowSizes:f,columnTitles:i,rowData:e,pageSizes:t,children:typeof B=="string"?G[B]:B},k))},O)}))]}),I(M4,{children:[I("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${g.
|
|
2256
|
+
`,_4=({rowData:e,pageSizes:t,buttons:n,label:o,search:r,columnTitles:i,messagedatalength:a,width:c,columsKeys:s,actions:u,sizeSearch:p,headerAction:d,rowSizes:f})=>{const[h,m]=x.useState(0),[v,b]=x.useState(t[0]),[y,w]=x.useState([]),A=G=>{const O=G.target.value.toLocaleLowerCase(),B=e.filter(k=>i.some(W=>{var j;const ee=(j=String(k[typeof W=="string"?W:""]))==null?void 0:j.toLocaleLowerCase();return ee==null?void 0:ee.includes(O)}));w(B),m(0)},P=y.length>0?y:e,E=x.useMemo(()=>P.slice(h,h+v),[P,h,v]),S=x.useMemo(()=>Math.ceil(P.length/v),[P.length,v]),D=x.useMemo(()=>Math.floor(h/v)+1,[h,v]),V=x.useCallback(()=>{m(G=>{const O=G+v;return O>=P.length?G:O})},[v,P.length]),_=x.useCallback(()=>{m(G=>{const O=G-v;return O<0?0:O})},[v]),Y=x.useCallback(G=>{const O=Number(G.target.value);m((O-1)*v)},[v]),K=x.useCallback(G=>{const O=Number(G.target.value);b(O),m(0)},[]);return l(L,{children:I(H4,{width:c,pageSizes:t,rowData:e,columnTitles:i,messagedatalength:a,style:{position:"relative"},children:[o&&l($4,{children:o}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(Ot,{kind:"default",size:p||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:A}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(G=>G.position==="left").map((G,O)=>l("div",{style:{marginLeft:"1px"},children:l(ke,{hasIconSvg:G.hasIconSvg,onClick:G.onClick,kind:G.kind,size:G.size||"small",icon:G.icon,dimension:G.dimension,label:G.label,width:G.width,disabled:G.disabled,borderNone:!0})},O))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(G=>G.position==="right").map((G,O)=>l("div",{style:{marginRight:"1px"},children:l(ke,{hasIconSvg:G.hasIconSvg,onClick:B=>{G.onClick&&G.onClick(),B.stopPropagation(),B.preventDefault()},kind:G.kind,size:G.size||"small",icon:G.icon,label:G.label,dimension:G.dimension,width:G.width,disabled:G.disabled,borderNone:!0})},O))})]}),e&&e.length>0?I(L,{children:[(d==null?void 0:d.active)&&l("div",{style:{width:"100%",height:"38px",background:g.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:g.textOnColor},children:I(L,{children:[I("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:d==null?void 0:d.count}),"item selecionados"]}),l("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:u==null?void 0:u.map(G=>I(L,{children:[l(ke,{fortable:!0,borderNone:!0,kind:"primary",size:"small",label:G.text,icon:G.icon,onClick:G.onClick}),G.feature&&l("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),I(T4,{children:[I(O4,{children:[l(ud,{}),i.map((G,O)=>l(ud,{children:l(k4,{children:G})},O))]}),E.map((G,O)=>l(L,{children:l(V4,{children:s==null?void 0:s.map((B,k)=>l(B4,{rowSizes:f,columnTitles:i,rowData:e,pageSizes:t,children:typeof B=="string"?G[B]:B},k))},O)}))]}),I(M4,{children:[I("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${g.borderSubtle00}`},children:[l(fd,{name:"select",onChange:K,children:t.map((G,O)=>l(pd,{value:G,children:G},O))}),I(gd,{children:[h+1," – ",Math.min(h+v,P.length)," de ",P.length," itens"]})]}),I(L4,{children:[I("div",{style:{display:"flex",alignItems:"center",borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[l(fd,{name:"select",value:D,onChange:Y,children:Array.from({length:S},(G,O)=>l(pd,{value:O+1,children:O+1},O+1))}),I(gd,{children:["de ",S," páginas"]})]}),l(Le,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:l(dd,{onClick:_,disabled:h===0,style:{borderLeft:"none",opacity:h===0?".5":"1",cursor:h===0?"not-allowed":"pointer"},children:F4})}),l(Le,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:l(dd,{onClick:V,disabled:h+v>=P.length,style:{borderRight:"none",opacity:h+v>=P.length?".5":"1",cursor:h+v>=P.length?"not-allowed":"pointer"},children:R4})})]})]})]}):l(G4,{children:a||"Nenhum item encontrado"})]})})},W4={center:"center",right:"end",left:"start"},z4=C.button`
|
|
2257
2257
|
color: ${g.textSecondary};
|
|
2258
2258
|
font-family: 'IBM Plex Sans', sans-serif;
|
|
2259
2259
|
font-size: 14px;
|
|
@@ -2455,7 +2455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2455
2455
|
background: ${g.layer01};
|
|
2456
2456
|
margin: 0;
|
|
2457
2457
|
padding: 0;
|
|
2458
|
-
width:
|
|
2458
|
+
width: 99.8%;
|
|
2459
2459
|
display: flex;
|
|
2460
2460
|
justify-content: space-between;
|
|
2461
2461
|
border: 1px solid ${g.borderSubtle00};
|
|
@@ -2917,10 +2917,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2917
2917
|
min-width: ${({tableWidth:e})=>`${e}px`};
|
|
2918
2918
|
margin: 0;
|
|
2919
2919
|
padding: 0;
|
|
2920
|
-
width:
|
|
2920
|
+
width: 99.8%;
|
|
2921
2921
|
display: flex;
|
|
2922
2922
|
justify-content: space-between;
|
|
2923
|
-
border: 1px solid ${g.
|
|
2923
|
+
border: 1px solid ${g.borderSubtle00};
|
|
2924
2924
|
border-right: 1px solid transparent;
|
|
2925
2925
|
border-bottom: 1px solid transparent;
|
|
2926
2926
|
`,Fx=C.div`
|
|
@@ -2933,7 +2933,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2933
2933
|
border: none;
|
|
2934
2934
|
outline: none;
|
|
2935
2935
|
cursor: pointer;
|
|
2936
|
-
border: 1px solid ${g.
|
|
2936
|
+
border: 1px solid ${g.borderSubtle00};
|
|
2937
2937
|
border-top: 1px solid transparent;
|
|
2938
2938
|
border-bottom: 1px solid transparent;
|
|
2939
2939
|
padding: 10px 12px;
|
|
@@ -3041,7 +3041,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3041
3041
|
overflow-x: auto;
|
|
3042
3042
|
white-space: nowrap;
|
|
3043
3043
|
}
|
|
3044
|
-
`,Xx=({rowData:e,pageSizes:t,buttons:n,label:o,search:r,columnTitles:i,messageDatalength:a,width:c,expandedRowData:s,columsKeys:u,actions:p,headerAction:d,sizeSearch:f,rowSizes:h,columnSizes:m,arrow:v,onChangeSearch:b})=>{const[y,w]=x.useState(0),[A,P]=x.useState(t[0]),[E,S]=x.useState([]),[D,V]=x.useState(Array(e.length).fill(!1)),_=E.length>0?E:e,Y=x.useMemo(()=>_.slice(y,y+A),[_,y,A]),K=x.useMemo(()=>Math.ceil(_.length/A),[_.length,A]),G=x.useMemo(()=>Math.floor(y/A)+1,[y,A]),O=x.useCallback(()=>{w(F=>{const M=F+A;return M>=_.length?F:M})},[A,_.length]),B=x.useCallback(()=>{w(F=>{const M=F-A;return M<0?0:M})},[A]),k=x.useCallback(F=>{const M=Number(F.target.value);w((M-1)*A)},[A]),W=x.useCallback(F=>{const M=Number(F.target.value);P(M),w(0)},[]),ee=F=>{V(M=>{const R=[...M];return R[F]=!R[F],R})},j=F=>D[F]?"up":"down",U=x.useRef(null),[de,he]=x.useState(0);return x.useEffect(()=>{const F=()=>{U.current&&he(U.current.offsetWidth)},M=new ResizeObserver(F);return U.current&&M.observe(U.current),F(),()=>M.disconnect()},[]),l(L,{children:I(Zx,{width:c,pageSizes:t,rowData:e,columnTitles:i,messageDatalength:a,expandedRowData:s,style:{position:"relative"},children:[o&&l(Lx,{children:o}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(Ot,{kind:"default",size:f||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:b||void 0}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(F=>F.position==="left").map((F,M)=>l("div",{style:{marginLeft:"1px"},children:l(ke,{onClick:F.onClick,kind:F.kind,size:F.size||"small",icon:F.icon,label:F.label,dimension:F.dimension,disabled:F.disabled,width:F.width,borderNone:!0})},M))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(F=>F.position==="right").map((F,M)=>l("div",{style:{marginRight:"1px"},children:l(ke,{onClick:R=>{F.onClick&&F.onClick(),R.stopPropagation(),R.preventDefault()},kind:F.kind,size:F.size||"small",icon:F.icon,label:F.label,dimension:F.dimension,disabled:F.disabled,width:F.width,borderNone:!0})},M))})]}),e&&e.length>0?I(L,{children:[(d==null?void 0:d.active)&&l("div",{style:{width:"100%",height:"45px",background:g.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:g.textOnColor},children:I(L,{children:[I("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:d==null?void 0:d.count}),"item selecionados"]}),l("div",{style:{display:"flex",gap:"10px",marginRight:"10px",alignItems:"center"},children:p==null?void 0:p.map(F=>I(L,{children:[l("div",{style:{width:F.width},children:l(ke,{borderNone:!0,kind:"primary",size:F.size,noPadding:F.noPadding,label:F.text,hasIconSvg:F.hasIconSvg||!1,icon:F.icon,onClick:F.onClick})}),F.feature&&l("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),I(kx,{ref:U,children:[I(Mx,{children:[l(R1,{style:{margin:"0 auto",padding:v!=null&&v.thSize?v==null?void 0:v.thSize:"0px 0px",textAlign:"start",width:"150px"}}),i.map((F,M)=>l(R1,{children:l(Gx,{columnTitles:i,pageSizes:t,rowData:e,columnSizes:m,children:F})},M))]}),Y.map((F,M)=>I(L,{children:[I(G1,{onClick:()=>{ee(M),F.onClick&&F.onClick()},style:{borderBottom:M===Y.length-1?"0":"1px solid #C6C6C6"},children:[l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,style:{padding:"0",margin:"0 auto",textAlign:"center",transform:`translateX(${v==null?void 0:v.transform}px)`},children:l("div",{style:{justifyContent:"center",display:"flex",margin:"0 auto",transition:".5s",transform:j(M)==="up"?"rotate(180deg) translateY(0%)":"rotate(0deg) translateY(0%)"},children:l(ke,{hasIconSvg:!0,noPadding:"8px",icon:zx,kind:"ghost",size:"small",label:"",onClick:R=>{R.stopPropagation(),V(ce=>{const ue=[...ce];return ue[M]=!ue[M],ue})}},M)})}),u==null?void 0:u.map((R,ce)=>l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,children:typeof R=="string"?F[R]:R},ce))]},M),D[M]&&l(G1,{children:l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,colSpan:i.length+2,style:{background:g.borderSubtle00},children:l("div",{style:{margin:"10px auto",textAlign:"start",minHeight:"100px",width:"95%",borderTop:`1px solid ${g.
|
|
3044
|
+
`,Xx=({rowData:e,pageSizes:t,buttons:n,label:o,search:r,columnTitles:i,messageDatalength:a,width:c,expandedRowData:s,columsKeys:u,actions:p,headerAction:d,sizeSearch:f,rowSizes:h,columnSizes:m,arrow:v,onChangeSearch:b})=>{const[y,w]=x.useState(0),[A,P]=x.useState(t[0]),[E,S]=x.useState([]),[D,V]=x.useState(Array(e.length).fill(!1)),_=E.length>0?E:e,Y=x.useMemo(()=>_.slice(y,y+A),[_,y,A]),K=x.useMemo(()=>Math.ceil(_.length/A),[_.length,A]),G=x.useMemo(()=>Math.floor(y/A)+1,[y,A]),O=x.useCallback(()=>{w(F=>{const M=F+A;return M>=_.length?F:M})},[A,_.length]),B=x.useCallback(()=>{w(F=>{const M=F-A;return M<0?0:M})},[A]),k=x.useCallback(F=>{const M=Number(F.target.value);w((M-1)*A)},[A]),W=x.useCallback(F=>{const M=Number(F.target.value);P(M),w(0)},[]),ee=F=>{V(M=>{const R=[...M];return R[F]=!R[F],R})},j=F=>D[F]?"up":"down",U=x.useRef(null),[de,he]=x.useState(0);return x.useEffect(()=>{const F=()=>{U.current&&he(U.current.offsetWidth)},M=new ResizeObserver(F);return U.current&&M.observe(U.current),F(),()=>M.disconnect()},[]),l(L,{children:I(Zx,{width:c,pageSizes:t,rowData:e,columnTitles:i,messageDatalength:a,expandedRowData:s,style:{position:"relative"},children:[o&&l(Lx,{children:o}),I("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&l(Ot,{kind:"default",size:f||"small",ContainedListMenu:!0,placeholder:"Digite Para Pesquisar",onChange:b||void 0}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(F=>F.position==="left").map((F,M)=>l("div",{style:{marginLeft:"1px"},children:l(ke,{onClick:F.onClick,kind:F.kind,size:F.size||"small",icon:F.icon,label:F.label,dimension:F.dimension,disabled:F.disabled,width:F.width,borderNone:!0})},M))}),l("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(F=>F.position==="right").map((F,M)=>l("div",{style:{marginRight:"1px"},children:l(ke,{onClick:R=>{F.onClick&&F.onClick(),R.stopPropagation(),R.preventDefault()},kind:F.kind,size:F.size||"small",icon:F.icon,label:F.label,dimension:F.dimension,disabled:F.disabled,width:F.width,borderNone:!0})},M))})]}),e&&e.length>0?I(L,{children:[(d==null?void 0:d.active)&&l("div",{style:{width:"100%",height:"45px",background:g.buttonPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",color:g.textOnColor},children:I(L,{children:[I("p",{style:{textAlign:"start",fontSize:"14px"},children:[l("span",{style:{margin:"0 5px 0 20px"},children:d==null?void 0:d.count}),"item selecionados"]}),l("div",{style:{display:"flex",gap:"10px",marginRight:"10px",alignItems:"center"},children:p==null?void 0:p.map(F=>I(L,{children:[l("div",{style:{width:F.width},children:l(ke,{borderNone:!0,kind:"primary",size:F.size,noPadding:F.noPadding,label:F.text,hasIconSvg:F.hasIconSvg||!1,icon:F.icon,onClick:F.onClick})}),F.feature&&l("div",{style:{height:"20px",width:"1px",background:"white"}})]}))})]})}),I(kx,{ref:U,children:[I(Mx,{children:[l(R1,{style:{margin:"0 auto",padding:v!=null&&v.thSize?v==null?void 0:v.thSize:"0px 0px",textAlign:"start",width:"150px"}}),i.map((F,M)=>l(R1,{children:l(Gx,{columnTitles:i,pageSizes:t,rowData:e,columnSizes:m,children:F})},M))]}),Y.map((F,M)=>I(L,{children:[I(G1,{onClick:()=>{ee(M),F.onClick&&F.onClick()},style:{borderBottom:M===Y.length-1?"0":"1px solid #C6C6C6"},children:[l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,style:{padding:"0",margin:"0 auto",textAlign:"center",transform:`translateX(${v==null?void 0:v.transform}px)`},children:l("div",{style:{justifyContent:"center",display:"flex",margin:"0 auto",transition:".5s",transform:j(M)==="up"?"rotate(180deg) translateY(0%)":"rotate(0deg) translateY(0%)"},children:l(ke,{hasIconSvg:!0,noPadding:"8px",icon:zx,kind:"ghost",size:"small",label:"",onClick:R=>{R.stopPropagation(),V(ce=>{const ue=[...ce];return ue[M]=!ue[M],ue})}},M)})}),u==null?void 0:u.map((R,ce)=>l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,children:typeof R=="string"?F[R]:R},ce))]},M),D[M]&&l(G1,{children:l(Da,{rowSizes:h,columnTitles:i,rowData:e,pageSizes:t,colSpan:i.length+2,style:{background:g.borderSubtle00},children:l("div",{style:{margin:"10px auto",textAlign:"start",minHeight:"100px",width:"95%",borderTop:`1px solid ${g.borderSubtle00}`},children:l(L,{children:l("div",{style:{width:"90%",margin:"20px auto"},children:s==null?void 0:s.map(R=>l("p",{style:{margin:"2px"},children:R+""+F[typeof R=="string"?R:""]}))})})})})})]}))]}),I(Rx,{tableWidth:de,children:[I("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${g.borderSubtle00}`},children:[l(_1,{name:"select",onChange:W,children:t.map((F,M)=>l(H1,{value:F,children:F},M))}),I(W1,{children:[y+1," – ",Math.min(y+A,_.length)," de ",_.length," itens"]})]}),I(Fx,{children:[I("div",{style:{display:"flex",alignItems:"center",borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[l(_1,{name:"select",value:G,onChange:k,children:Array.from({length:K},(F,M)=>l(H1,{value:M+1,children:M+1},M+1))}),I(W1,{children:["de ",K," páginas"]})]}),l(Le,{align:"top",size:"small",label:"Página Anterior",width:"110px",children:l(F1,{onClick:B,disabled:y===0,style:{borderLeft:"none",opacity:y===0?".5":"1",cursor:y===0?"not-allowed":"pointer"},children:Wx})}),l(Le,{align:"top-right",size:"small",label:"Próxima página",width:"110px",children:l(F1,{onClick:O,disabled:y+A>=_.length,style:{borderRight:"none",opacity:y+A>=_.length?".5":"1",cursor:y+A>=_.length?"not-allowed":"pointer"},children:_x})})]})]})]}):l(Hx,{children:a||"Nenhum item encontrado"})]})})},jx=C.pre`
|
|
3045
3045
|
background-color:${({background:e})=>e||"#282c34"} ;
|
|
3046
3046
|
padding: 5px 5px 5px 20px;
|
|
3047
3047
|
border-radius: 8px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAEV,MAAM,OAAO,CAAC;AAkBf,OAAO,2BAA2B,CAAC;AASnC,KAAK,QAAQ,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,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;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