prosperita-dumbo-react 3.0.0 → 3.0.2
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.
|
@@ -11744,9 +11744,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11744
11744
|
border-collapse: collapse;
|
|
11745
11745
|
margin: 0;
|
|
11746
11746
|
padding: 0;
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11747
|
+
width:100%;
|
|
11750
11748
|
`, aa = x.tr`
|
|
11751
11749
|
text-align: start;
|
|
11752
11750
|
background: ${c.layerAccent01};
|
|
@@ -11798,13 +11796,13 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11798
11796
|
cursor: pointer;
|
|
11799
11797
|
`, sa = x.p`
|
|
11800
11798
|
font-family:IBM Plex Sans;
|
|
11801
|
-
font-size:
|
|
11799
|
+
font-size:14px;
|
|
11802
11800
|
display:flex;
|
|
11803
11801
|
padding:0;
|
|
11804
11802
|
margin:0;
|
|
11805
11803
|
text-align: start;
|
|
11806
11804
|
font-style: normal;
|
|
11807
|
-
font-weight:
|
|
11805
|
+
font-weight: 500;
|
|
11808
11806
|
line-height: 18px;
|
|
11809
11807
|
letter-spacing: 0.16px;
|
|
11810
11808
|
cursor: pointer;
|
|
@@ -11825,6 +11823,7 @@ const Jf = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11825
11823
|
padding: 0;
|
|
11826
11824
|
display: flex;
|
|
11827
11825
|
flex-direction: row;
|
|
11826
|
+
|
|
11828
11827
|
`, ca = x.button`
|
|
11829
11828
|
font-family: IBM Plex Sans;
|
|
11830
11829
|
border: none;
|
|
@@ -11980,11 +11979,11 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
11980
11979
|
margin: 0;
|
|
11981
11980
|
padding: 0;
|
|
11982
11981
|
display: flex;
|
|
11983
|
-
width: 1100px;
|
|
11984
11982
|
align-items: start;
|
|
11985
11983
|
background: ${c.layer01};
|
|
11986
11984
|
font-family: IBM Plex Sans;
|
|
11987
11985
|
flex-direction: column;
|
|
11986
|
+
min-width:1100px;
|
|
11988
11987
|
& > div:nth-child(2) {
|
|
11989
11988
|
display: flex;
|
|
11990
11989
|
align-self: end;
|
|
@@ -12038,7 +12037,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
12038
12037
|
},
|
|
12039
12038
|
[]
|
|
12040
12039
|
);
|
|
12041
|
-
return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ I(f5, { style: {
|
|
12040
|
+
return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ I(f5, { style: { position: "relative" }, children: [
|
|
12042
12041
|
/* @__PURE__ */ a(l5, { children: i }),
|
|
12043
12042
|
/* @__PURE__ */ I("div", { style: {
|
|
12044
12043
|
display: "flex",
|
|
@@ -12055,7 +12054,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
12055
12054
|
onChange: m
|
|
12056
12055
|
}
|
|
12057
12056
|
),
|
|
12058
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "left").map((S, A) => /* @__PURE__ */ I("div", { children: [
|
|
12057
|
+
/* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "left").map((S, A) => /* @__PURE__ */ I("div", { style: { marginLeft: "1px" }, children: [
|
|
12059
12058
|
" ",
|
|
12060
12059
|
/* @__PURE__ */ a(
|
|
12061
12060
|
mn,
|
|
@@ -12069,7 +12068,7 @@ const u5 = /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
|
12069
12068
|
}
|
|
12070
12069
|
)
|
|
12071
12070
|
] }, A)) }),
|
|
12072
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "right").map((S, A) => /* @__PURE__ */ I("div", { children: [
|
|
12071
|
+
/* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((S) => S.position === "right").map((S, A) => /* @__PURE__ */ I("div", { style: { marginRight: "1px" }, children: [
|
|
12073
12072
|
" ",
|
|
12074
12073
|
/* @__PURE__ */ a(
|
|
12075
12074
|
mn,
|
|
@@ -2013,9 +2013,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2013
2013
|
border-collapse: collapse;
|
|
2014
2014
|
margin: 0;
|
|
2015
2015
|
padding: 0;
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2016
|
+
width:100%;
|
|
2019
2017
|
`,hl=x.tr`
|
|
2020
2018
|
text-align: start;
|
|
2021
2019
|
background: ${c.layerAccent01};
|
|
@@ -2067,13 +2065,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2067
2065
|
cursor: pointer;
|
|
2068
2066
|
`,Cl=x.p`
|
|
2069
2067
|
font-family:IBM Plex Sans;
|
|
2070
|
-
font-size:
|
|
2068
|
+
font-size:14px;
|
|
2071
2069
|
display:flex;
|
|
2072
2070
|
padding:0;
|
|
2073
2071
|
margin:0;
|
|
2074
2072
|
text-align: start;
|
|
2075
2073
|
font-style: normal;
|
|
2076
|
-
font-weight:
|
|
2074
|
+
font-weight: 500;
|
|
2077
2075
|
line-height: 18px;
|
|
2078
2076
|
letter-spacing: 0.16px;
|
|
2079
2077
|
cursor: pointer;
|
|
@@ -2094,6 +2092,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2094
2092
|
padding: 0;
|
|
2095
2093
|
display: flex;
|
|
2096
2094
|
flex-direction: row;
|
|
2095
|
+
|
|
2097
2096
|
`,vl=x.button`
|
|
2098
2097
|
font-family: IBM Plex Sans;
|
|
2099
2098
|
border: none;
|
|
@@ -2192,14 +2191,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2192
2191
|
margin: 0;
|
|
2193
2192
|
padding: 0;
|
|
2194
2193
|
display: flex;
|
|
2195
|
-
width: 1100px;
|
|
2196
2194
|
align-items: start;
|
|
2197
2195
|
background: ${c.layer01};
|
|
2198
2196
|
font-family: IBM Plex Sans;
|
|
2199
2197
|
flex-direction: column;
|
|
2198
|
+
min-width:1100px;
|
|
2200
2199
|
& > div:nth-child(2) {
|
|
2201
2200
|
display: flex;
|
|
2202
2201
|
align-self: end;
|
|
2203
2202
|
width: 100%;
|
|
2204
2203
|
}
|
|
2205
|
-
`,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:{
|
|
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"})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableBatchActions/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAWf,CAAC;AAGF,eAAO,MAAM,GAAG,mPAMf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAepB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAMf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAWtB,CAAC;AACF,eAAO,MAAM,aAAa,yOAYzB,CAAC;AAGF,eAAO,MAAM,UAAU,6NAWtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAOnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAGtB,CAAC;AACF,eAAO,MAAM,SAAS,yOAoBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOAUpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAkD1B,CAAC"}
|