prosperita-dumbo-react 3.0.4 → 3.0.5
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.
|
@@ -11799,7 +11799,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11799
11799
|
font-size:14px;
|
|
11800
11800
|
display:flex;
|
|
11801
11801
|
padding:0;
|
|
11802
|
-
margin:
|
|
11802
|
+
margin:10px auto;
|
|
11803
11803
|
text-align: start;
|
|
11804
11804
|
font-style: normal;
|
|
11805
11805
|
font-weight: 500;
|
|
@@ -11983,7 +11983,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11983
11983
|
background: ${c.layer01};
|
|
11984
11984
|
font-family: IBM Plex Sans;
|
|
11985
11985
|
flex-direction: column;
|
|
11986
|
-
min-width:
|
|
11986
|
+
min-width:1270px;
|
|
11987
11987
|
& > div:nth-child(2) {
|
|
11988
11988
|
display: flex;
|
|
11989
11989
|
align-self: end;
|
|
@@ -12085,7 +12085,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
12085
12085
|
] }),
|
|
12086
12086
|
e && e.length > 0 ? /* @__PURE__ */ I(k, { children: [
|
|
12087
12087
|
/* @__PURE__ */ I(oa, { children: [
|
|
12088
|
-
/* @__PURE__ */ a(aa, { children: o.map((S, A) => /* @__PURE__ */ a(la, { children: /* @__PURE__ */ a(sa, { children: S }) }, A)) }),
|
|
12088
|
+
/* @__PURE__ */ a(aa, { children: o.map((S, A) => /* @__PURE__ */ a(la, { children: /* @__PURE__ */ a(sa, { children: /* @__PURE__ */ a("b", { style: { margin: "0", padding: "0", display: "flex" }, children: S }) }) }, A)) }),
|
|
12089
12089
|
v.map((S, A) => /* @__PURE__ */ a(
|
|
12090
12090
|
a5,
|
|
12091
12091
|
{
|
|
@@ -2068,7 +2068,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2068
2068
|
font-size:14px;
|
|
2069
2069
|
display:flex;
|
|
2070
2070
|
padding:0;
|
|
2071
|
-
margin:
|
|
2071
|
+
margin:10px auto;
|
|
2072
2072
|
text-align: start;
|
|
2073
2073
|
font-style: normal;
|
|
2074
2074
|
font-weight: 500;
|
|
@@ -2195,10 +2195,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2195
2195
|
background: ${c.layer01};
|
|
2196
2196
|
font-family: IBM Plex Sans;
|
|
2197
2197
|
flex-direction: column;
|
|
2198
|
-
min-width:
|
|
2198
|
+
min-width:1270px;
|
|
2199
2199
|
& > div:nth-child(2) {
|
|
2200
2200
|
display: flex;
|
|
2201
2201
|
align-self: end;
|
|
2202
2202
|
width: 100%;
|
|
2203
2203
|
}
|
|
2204
|
-
`,Xf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s})=>{const[d,l]=P.useState(0),[u,f]=P.useState(t[0]),[p,h]=P.useState([]),m=S=>{const A=S.target.value.toLocaleLowerCase(),T=e.filter(L=>o.some(z=>{var re;const U=(re=String(L[z]))==null?void 0:re.toLocaleLowerCase();return U==null?void 0:U.includes(A)}));h(T),l(0)},b=p.length>0?p:e,v=P.useMemo(()=>b.slice(d,d+u),[b,d,u]),C=P.useMemo(()=>Math.ceil(b.length/u),[b.length,u]),I=P.useMemo(()=>Math.floor(d/u)+1,[d,u]),B=P.useCallback(()=>{l(S=>{const A=S+u;return A>=b.length?S:A})},[u,b.length]),E=P.useCallback(()=>{l(S=>{const A=S-u;return A<0?0:A})},[u]),V=P.useCallback(S=>{const A=Number(S.target.value);l((A-1)*u)},[u]),w=P.useCallback(S=>{const A=Number(S.target.value);f(A),l(0)},[]);return a(G,{children:y($f,{style:{position:"relative"},children:[a(Rf,{children:i}),y("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(Yo,{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(S=>S.position==="left").map((S,A)=>y("div",{style:{marginLeft:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="right").map((S,A)=>y("div",{style:{marginRight:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))})]}),e&&e.length>0?y(G,{children:[y(bl,{children:[a(hl,{children:o.map((S,A)=>a(ml,{children:a(Cl,{children:S})},A))}),v.map((S,A)=>a(Df,{onClick:()=>S.onClick?S.onClick(d+A):null,children:Object.keys(S).map(T=>a(Lf,{children:S[T]},T))},A))]}),y(Nf,{children:[y("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(yl,{name:"select",onChange:w,children:t.map((S,A)=>a(xl,{value:S,children:S},A))}),y(Il,{children:[d+1," – ",Math.min(d+u,b.length)," de ",b.length," itens"]})]}),y(Wf,{children:[y("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(yl,{name:"select",value:I,onChange:V,children:Array.from({length:C},(S,A)=>a(xl,{value:A+1,children:A+1},A+1))}),y(Il,{children:["de ",C," páginas"]})]}),a(qe,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(vl,{onClick:E,disabled:d===0,style:{borderLeft:"none",opacity:d===0?".5":"1",cursor:d===0?"not-allowed":"pointer"},children:Zf})}),a(qe,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(vl,{onClick:B,disabled:d+u>=b.length,style:{borderRight:"none",opacity:d+u>=b.length?".5":"1",cursor:d+u>=b.length?"not-allowed":"pointer"},children:Of})})]})]})]}):a(G,{children:y(bl,{children:[a(hl,{children:a(ml,{children:a(Cl,{})})}),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})})]})})]})})};ie.Breadcrumb=Hf,ie.Button=kt,ie.Checkbox=e1,ie.ContentSwitcher=uf,ie.Dropdown=j1,ie.FileUploader=G1,ie.InlineLoading=So,ie.Input=Ac,ie.InputFluid=Tc,ie.InputSelect=tf,ie.Loading=dr,ie.Margin=rf,ie.MenuButton=h1,ie.Modal=uo,ie.Radio=W1,ie.Search=Yo,ie.TableBatchActions=Xf,ie.Tag=C1,ie.Tile=L1,ie.Toogle=_1,ie.Tooltip=qe,ie.UIHeaderNav=Pf,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
|
2204
|
+
`,Xf=({rowdata:e,pageSizes:t,buttonsTable:n,textLabel:i,searchPlaceholder:r,columnTitles:o,messageDataLength:s})=>{const[d,l]=P.useState(0),[u,f]=P.useState(t[0]),[p,h]=P.useState([]),m=S=>{const A=S.target.value.toLocaleLowerCase(),T=e.filter(L=>o.some(z=>{var re;const U=(re=String(L[z]))==null?void 0:re.toLocaleLowerCase();return U==null?void 0:U.includes(A)}));h(T),l(0)},b=p.length>0?p:e,v=P.useMemo(()=>b.slice(d,d+u),[b,d,u]),C=P.useMemo(()=>Math.ceil(b.length/u),[b.length,u]),I=P.useMemo(()=>Math.floor(d/u)+1,[d,u]),B=P.useCallback(()=>{l(S=>{const A=S+u;return A>=b.length?S:A})},[u,b.length]),E=P.useCallback(()=>{l(S=>{const A=S-u;return A<0?0:A})},[u]),V=P.useCallback(S=>{const A=Number(S.target.value);l((A-1)*u)},[u]),w=P.useCallback(S=>{const A=Number(S.target.value);f(A),l(0)},[]);return a(G,{children:y($f,{style:{position:"relative"},children:[a(Rf,{children:i}),y("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[r&&a(Yo,{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(S=>S.position==="left").map((S,A)=>y("div",{style:{marginLeft:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))}),a("div",{style:{display:"flex",alignItems:"center"},children:n==null?void 0:n.filter(S=>S.position==="right").map((S,A)=>y("div",{style:{marginRight:"1px"},children:[" ",a(kt,{onClick:S.onClick,kind:S.kind,size:"medium",icon:S.icon,label:S.label,borderNone:!0})]},A))})]}),e&&e.length>0?y(G,{children:[y(bl,{children:[a(hl,{children:o.map((S,A)=>a(ml,{children:a(Cl,{children:a("b",{style:{margin:"0",padding:"0",display:"flex"},children:S})})},A))}),v.map((S,A)=>a(Df,{onClick:()=>S.onClick?S.onClick(d+A):null,children:Object.keys(S).map(T=>a(Lf,{children:S[T]},T))},A))]}),y(Nf,{children:[y("div",{style:{display:"flex",alignItems:"center",borderRight:`1px solid ${c.borderSubtle01}`},children:[a(yl,{name:"select",onChange:w,children:t.map((S,A)=>a(xl,{value:S,children:S},A))}),y(Il,{children:[d+1," – ",Math.min(d+u,b.length)," de ",b.length," itens"]})]}),y(Wf,{children:[y("div",{style:{display:"flex",alignItems:"center",border:`1px solid ${c.borderSubtle01}`,borderTop:"1px solid transparent",borderBottom:"1px solid transparent",cursor:"pointer"},children:[a(yl,{name:"select",value:I,onChange:V,children:Array.from({length:C},(S,A)=>a(xl,{value:A+1,children:A+1},A+1))}),y(Il,{children:["de ",C," páginas"]})]}),a(qe,{align:"top",size:"small",label:"Previous page",width:"110px",children:a(vl,{onClick:E,disabled:d===0,style:{borderLeft:"none",opacity:d===0?".5":"1",cursor:d===0?"not-allowed":"pointer"},children:Zf})}),a(qe,{align:"top-right",size:"small",label:"Next page",width:"100px",children:a(vl,{onClick:B,disabled:d+u>=b.length,style:{borderRight:"none",opacity:d+u>=b.length?".5":"1",cursor:d+u>=b.length?"not-allowed":"pointer"},children:Of})})]})]})]}):a(G,{children:y(bl,{children:[a(hl,{children:a(ml,{children:a(Cl,{})})}),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})})]})})]})})};ie.Breadcrumb=Hf,ie.Button=kt,ie.Checkbox=e1,ie.ContentSwitcher=uf,ie.Dropdown=j1,ie.FileUploader=G1,ie.InlineLoading=So,ie.Input=Ac,ie.InputFluid=Tc,ie.InputSelect=tf,ie.Loading=dr,ie.Margin=rf,ie.MenuButton=h1,ie.Modal=uo,ie.Radio=W1,ie.Search=Yo,ie.TableBatchActions=Xf,ie.Tag=C1,ie.Tile=L1,ie.Toogle=_1,ie.Tooltip=qe,ie.UIHeaderNav=Pf,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|