@zydon/common 2.0.51 → 2.0.53
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.
- package/dist/{chunk-4IAKXBIK.js → chunk-2MVQI7NJ.js} +2 -2
- package/dist/{chunk-PLCESEMU.js → chunk-SDAADUWY.js} +1 -1
- package/dist/components/DataGrid/index.js +6 -6
- package/dist/components/EmptyView/index.js +1 -1
- package/dist/components/SelectableCards/index.js +2 -2
- package/dist/components/SwapList/index.js +1 -1
- package/dist/components/form/SelectableCards/index.js +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,6 @@ import p from '@mui/material/Stack';
|
|
|
3
3
|
import i from '@mui/material/Typography';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var n=({text:r,sx:e})=>jsxs(p,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"
|
|
6
|
+
var n=({text:r,sx:e})=>jsxs(p,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"#fff",padding:2,borderRadius:2,"& svg":{width:"100%"},...e},children:[jsx(a,{}),jsx(i,{variant:"body1",sx:{color:"text.secondary"},children:r})]}),f=n;
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { f as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as a$1 } from './chunk-W7WGC3PV.js';
|
|
2
2
|
import { a as a$3 } from './chunk-TWGGHTU5.js';
|
|
3
|
-
import { a as a$4 } from './chunk-
|
|
3
|
+
import { a as a$4 } from './chunk-2MVQI7NJ.js';
|
|
4
4
|
import { a as a$2 } from './chunk-GFKQNVYS.js';
|
|
5
5
|
import { a as a$5 } from './chunk-QS4ZTVL4.js';
|
|
6
6
|
import { useState } from 'react';
|
|
@@ -2,14 +2,14 @@ import { a as a$1 } from '../../chunk-ZODC2MGF.js';
|
|
|
2
2
|
import '../../chunk-ZDHXW74M.js';
|
|
3
3
|
import { a } from '../../chunk-YWEB6IAI.js';
|
|
4
4
|
import '../../chunk-D27ND54J.js';
|
|
5
|
-
import
|
|
5
|
+
import x, { useState } from 'react';
|
|
6
6
|
import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, GridToolbarContainer, GridToolbarColumnsButton, GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExport, useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '@mui/x-data-grid-premium';
|
|
7
|
-
import
|
|
7
|
+
import R from '@mui/material/Box';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import F from '@mui/material/Skeleton';
|
|
10
|
+
import L from '@mui/material/Stack';
|
|
11
11
|
import { styled } from '@mui/material/styles';
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var D=({showToolbar:t,disableExport:r,setFilterButtonEl:i,toolbarContent:l})=>{if(t)return jsxs(GridToolbarContainer,{children:[jsx(GridToolbarColumnsButton,{slotProps:{button:{color:"inherit"}}}),jsx(GridToolbarFilterButton,{ref:i,slotProps:{button:{color:"inherit"}}}),jsx(GridToolbarDensitySelector,{slotProps:{button:{color:"inherit"}}}),!r&&jsx(GridToolbarExport,{slotProps:{button:{color:"inherit"}}}),jsx(R,{sx:{flexGrow:1}}),l]})},S=D;var y=styled(R)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),A=()=>{let t=useGridApiContext(),{rowHeight:r,paginationModel:i,initialState:l}=useGridRootProps(),s=i?.pageSize||l?.pagination?.paginationModel?.pageSize||10,d=gridColumnsTotalWidthSelector(t),m=gridColumnPositionsSelector(t),h=x.useMemo(()=>m.filter(o=>o<=d).length,[d,m]),p=t.current.getVisibleColumns().slice(0,h),n=p.length>0?p:[{field:"fake01",headerName:"",computedWidth:100},{field:"fake02",headerName:"",computedWidth:100},{field:"fake03",headerName:"",computedWidth:100},{field:"fake04",headerName:"",computedWidth:100},{field:"fake05",headerName:"",computedWidth:100}],g=x.useMemo(()=>{let o=[];for(let e=0;e<s;e+=1){for(let u of n)o.push(jsx(y,{sx:{justifyContent:u.align},children:jsx(F,{width:"100%"})},`column-${e}-${u.field}`));o.push(jsx(y,{},`fill-${e}`));}return o},[s,n]);return jsx(L,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${n.map(({computedWidth:o})=>`${o}px`).join(" ")} 1fr`,gridAutoRows:r,backgroundColor:"#fff",overflow:"hidden",maxHeight:"100%"},children:g})},G=A;var U=({columns:t,rows:r=[],loading:i,fetching:l,hideFooter:s,sx:d,showToolbar:m,disableExport:h,columnHeaderHeight:p=56,rowHeight:n=76,rowSpacingType:g="margin",getRowSpacing:o=()=>({top:0,bottom:0}),autoHeight:e=!1,toolbarContent:u,...k})=>{let[P,T]=useState(null),w=[{...GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...t];return jsxs(Fragment,{children:[l&&jsx(a,{sx:{zIndex:1}}),jsx(DataGridPremium,{columns:w,rows:r,loading:i,autoHeight:e,hideFooter:r.length===0?!0:s,rowHeight:n,columnHeaderHeight:p,getRowSpacing:o,rowSpacingType:g,slots:{toolbar:S,noRowsOverlay:()=>jsx(a$1,{title:"Nenhum registro encontrado"}),noResultsOverlay:()=>jsx(a$1,{title:"Nenhum registro encontrado"}),loadingOverlay:G},slotProps:{panel:{anchorEl:P},toolbar:{setFilterButtonEl:T,showQuickFilter:!0,disableExport:h,showToolbar:m,toolbarContent:u}},sx:d,...k})]})},go=U;
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { go as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-2MVQI7NJ.js';
|
|
2
2
|
import '../../chunk-ZDHXW74M.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-SDAADUWY.js';
|
|
2
2
|
import '../../chunk-W7WGC3PV.js';
|
|
3
3
|
import '../../chunk-TWGGHTU5.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-2MVQI7NJ.js';
|
|
5
5
|
import '../../chunk-ZDHXW74M.js';
|
|
6
6
|
import '../../chunk-GFKQNVYS.js';
|
|
7
7
|
import '../../chunk-QS4ZTVL4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from '../../chunk-W7WGC3PV.js';
|
|
2
2
|
import { a as a$1 } from '../../chunk-TWGGHTU5.js';
|
|
3
|
-
import { a as a$2 } from '../../chunk-
|
|
3
|
+
import { a as a$2 } from '../../chunk-2MVQI7NJ.js';
|
|
4
4
|
import '../../chunk-ZDHXW74M.js';
|
|
5
5
|
import { a as a$3 } from '../../chunk-GFKQNVYS.js';
|
|
6
6
|
import { a as a$4 } from '../../chunk-QS4ZTVL4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-SDAADUWY.js';
|
|
2
2
|
import '../../../chunk-W7WGC3PV.js';
|
|
3
3
|
import '../../../chunk-TWGGHTU5.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-2MVQI7NJ.js';
|
|
5
5
|
import '../../../chunk-ZDHXW74M.js';
|
|
6
6
|
import '../../../chunk-GFKQNVYS.js';
|
|
7
7
|
import '../../../chunk-QS4ZTVL4.js';
|