@zydon/common 2.4.62 → 2.4.63
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/components/DataView/index.js +10 -8
- 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/dist/theme/styles/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{chunk-FM5E5MVW.js → chunk-3IGXAQXD.js} +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { a as a$4 } from '../../chunk-MPKHVDQH.js';
|
|
2
|
+
import { a as a$5 } from '../../chunk-TWGGHTU5.js';
|
|
2
3
|
import { a as a$3 } from '../../chunk-HOMGLSVS.js';
|
|
3
|
-
import { a as a$
|
|
4
|
+
import { a as a$8 } from '../../chunk-5YJTSVA2.js';
|
|
4
5
|
import { a } from '../../chunk-CFD2VTQ3.js';
|
|
5
|
-
import { a as a$
|
|
6
|
-
import '../../chunk-FK7DDO5L.js';
|
|
6
|
+
import { a as a$7 } from '../../chunk-JTD47UZZ.js';
|
|
7
|
+
import { a as a$6 } from '../../chunk-FK7DDO5L.js';
|
|
7
8
|
import '../../chunk-PUR4ARBY.js';
|
|
8
9
|
import '../../chunk-U26IUEAG.js';
|
|
9
10
|
import '../../chunk-D27ND54J.js';
|
|
@@ -12,15 +13,16 @@ import '../../chunk-CHLVIVDD.js';
|
|
|
12
13
|
import { a as a$2 } from '../../chunk-ORYAES3Q.js';
|
|
13
14
|
import { b } from '../../chunk-ILHUUK4X.js';
|
|
14
15
|
import { forwardRef, useState } from 'react';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
16
|
+
import to from '@mui/material/Button';
|
|
17
|
+
import vo from '@mui/material/CircularProgress';
|
|
18
|
+
import j from '@mui/material/Divider';
|
|
17
19
|
import p from '@mui/material/Stack';
|
|
18
20
|
import x from '@mui/material/Typography';
|
|
19
|
-
import
|
|
21
|
+
import ho from '@mui/material/TablePagination';
|
|
20
22
|
import { styled, alpha } from '@mui/material/styles';
|
|
21
23
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
24
|
import { GridToolbarFilterButton, GridToolbarColumnsButton } from '@mui/x-data-grid-premium';
|
|
23
25
|
|
|
24
|
-
var
|
|
26
|
+
var h="datagrid-actions";var V=styled(a,{shouldForwardProp:o=>o!=="breakpoint"})(({theme:o,breakpoint:r})=>({position:"relative",borderRadius:12,padding:0,gap:0,overflow:"hidden",[o.breakpoints.down(r)]:{borderColor:alpha(o.palette.grey[500],.2)}})),$=styled(p,{shouldForwardProp:o=>o!=="breakpoint"})(({theme:o,breakpoint:r})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"24px 24px 0",gap:24,[o.breakpoints.down(r)]:{padding:"16px 16px 0"}})),Q=styled(p,{shouldForwardProp:o=>o!=="breakpoint"})(({theme:o,breakpoint:r})=>({flexDirection:"row",alignItems:"center",gap:12,color:o.palette.text.secondary,[o.breakpoints.down(r)]:{"& button":{textIndent:"-9999px",minWidth:36,maxWidth:36,height:36,width:36,"& .MuiButton-icon":{margin:0}}}})),U=styled(j)({borderStyle:"dashed",height:16,margin:"auto"}),P=styled(j)({borderStyle:"dashed",height:12,marginTop:"auto",marginBottom:"auto"}),q=styled(p,{shouldForwardProp:o=>o!=="breakpoint"})(({theme:o,breakpoint:r})=>({position:"relative",padding:16,flexDirection:"row",alignItems:"center",color:o.palette.text.secondary,[o.breakpoints.down(r)]:{padding:"12px 16px",borderBottom:`1px solid ${o.palette.divider}`,height:60,[o.breakpoints.down(r)]:{"& button":{textIndent:"-9999px",minWidth:36,maxWidth:36,height:36,width:36,"& .MuiButton-icon":{margin:0}}}}})),J=styled(p,{shouldForwardProp:o=>o!=="breakpoint"})(({theme:o,breakpoint:r})=>({width:320,alignItems:"center",justifyContent:"center",[o.breakpoints.down(r)]:{width:36,height:36,"& fieldset, & input":{display:"none"},"& .MuiInputAdornment-root":{marginLeft:-14},"&:hover":{position:"absolute",left:0,width:"100%",padding:"0 12px","& fieldset, & input":{display:"flex"},"& .MuiInputAdornment-root":{marginLeft:0}}}})),K=styled(p)({"& .MuiToolbar-root":{height:24,minHeight:24,overflow:"hidden"}}),X=styled(p)(({theme:o})=>({height:60,alignItems:"flex-end",justifyContent:"center",borderTop:`1px solid ${o.palette.divider}`})),Y=styled(p)(({theme:o})=>({flexDirection:"row",height:60,alignItems:"center",justifyContent:"space-between",borderTop:`1px solid ${o.palette.divider}`,gap:16,padding:16}));var Po=({count:o,page:r,rowsPerPage:w,onPageChange:l,onRowsPerPageChange:C})=>jsx(K,{children:jsx(ho,{color:"primary",component:"div",size:"small",count:o,page:r,rowsPerPage:w,onPageChange:(d,n)=>l(n),onRowsPerPageChange:d=>C(Number(d.target.value))})}),v=Po;var ro=forwardRef((o,r)=>jsx(to,{...o,ref:r,color:"inherit",startIcon:jsx(a$1,{icon:"COLUMNS"}),children:"Colunas"}));ro.displayName="ColumnsButton";var eo=forwardRef((o,r)=>jsx(to,{...o,ref:r,color:"inherit",startIcon:jsx(a$1,{icon:"FILTER_VERTICAL"}),children:"Filtros"}));eo.displayName="FilterButton";var wo=({setFilterButtonEl:o})=>jsxs(a$8,{container:h,children:[jsx(GridToolbarFilterButton,{ref:o,slotProps:{button:{component:eo,color:"inherit"}}}),jsx(P,{orientation:"vertical",flexItem:!0}),jsx(GridToolbarColumnsButton,{slotProps:{button:{component:ro,color:"inherit"}}})]}),no=wo;var Do=({title:o,breakpoint:r="md",columns:w,rows:l=[],mobileRender:C,rowCount:d=0,paginationModel:n={page:0,pageSize:25},onPaginationChange:u,actions:T,moreActions:D,onAdd:I,onSearch:k,searchValue:po,onSearchChange:so,slots:y,slotProps:lo,loading:c,fetching:S,...mo})=>{let g=a$2(),f=b("down",r),[co,uo]=useState(null),B=!!k,A=!!I,R=!!T,go=R||A,F=!!D,M=F||B||!f;return jsxs(V,{breakpoint:r,flex:c?1:void 0,minHeight:!c&&l.length===0?562:void 0,children:[jsxs($,{breakpoint:r,children:[jsx(x,{variant:"overline",color:"text.secondary",noWrap:!0,children:o}),go&&jsxs(Q,{breakpoint:r,children:[R&&jsxs(Fragment,{children:[T,jsx(U,{orientation:"vertical",flexItem:!0})]}),A&&jsx(to,{startIcon:jsx(a$1,{icon:"SIMPLE_ADD"}),variant:"contained",onClick:I,children:"Adicionar"})]})]}),M&&jsxs(q,{breakpoint:r,children:[jsx(p,{flex:1,direction:"row",alignItems:"center",id:h,gap:.5,children:F&&jsxs(Fragment,{children:[jsx(to,{color:"inherit",startIcon:jsx(a$1,{icon:"MORE_BOLD"}),size:"small",onClick:g.onOpen,children:"Mais"}),!f&&jsx(P,{orientation:"vertical",flexItem:!0}),jsx(a$3,{open:g.open,anchorEl:g.open,onClose:g.onClose,sx:{minWidth:160},disabledArrow:f,children:D})]})}),B&&jsx(J,{breakpoint:r,children:jsx(a$4,{value:po,placeholder:"Buscar",onSearch:k,onChange:e=>so?.(e.target.value),size:"small",fullWidth:!0,iconPosition:"start"})})]}),!M&&jsx(j,{sx:{mt:2}}),f?jsxs(a$5,{isFetching:S,fetching:jsx(a$6,{}),isLoading:c,loading:jsx(vo,{sx:{m:"160px auto"}}),isEmpty:l.length===0,empty:jsx(p,{flex:1,alignItems:"center",justifyContent:"center",children:y?.noRowsOverlay?jsx(y.noRowsOverlay,{}):jsx(x,{variant:"body2",color:"text.secondary",children:"Nenhum registro encontrado"})}),children:[jsx(p,{flex:1,children:l.map(e=>C(e))}),jsx(X,{children:jsx(v,{count:d,page:n.page,rowsPerPage:n.pageSize,onPageChange:e=>u(e,n.pageSize),onRowsPerPageChange:e=>u(n.page,e)})})]}):jsx(a$7,{columns:w,rows:l,slots:{toolbar:no,footer:()=>jsxs(Y,{children:[jsxs(p,{direction:"row",alignItems:"center",gap:.5,children:[jsx(x,{variant:"body2",color:"text.disabled",children:"Total de itens:"}),jsx(x,{variant:"body2",children:d})]}),jsx(v,{count:d,page:n.page,rowsPerPage:n.pageSize,onPageChange:e=>u(e,n.pageSize),onRowsPerPageChange:e=>u(n.page,e)})]}),...y},slotProps:{panel:{anchorEl:co},toolbar:{setFilterButtonEl:uo,showQuickFilter:!0},...lo},columnHeaderHeight:48,getRowHeight:()=>68,loading:c,fetching:S,...mo})]},c?"loading":"data")},lt=Do;
|
|
25
27
|
|
|
26
|
-
export {
|
|
28
|
+
export { lt as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-TWGGHTU5.js';
|
|
1
|
+
export { a as default } from '../../chunk-3IGXAQXD.js';
|
|
3
2
|
import '../../chunk-4ZBE3RNR.js';
|
|
4
3
|
import '../../chunk-MPKHVDQH.js';
|
|
4
|
+
import '../../chunk-TWGGHTU5.js';
|
|
5
5
|
import '../../chunk-U26IUEAG.js';
|
|
6
6
|
import '../../chunk-E5MGOPPQ.js';
|
|
7
7
|
import '../../chunk-YQ6K2DEP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-TWGGHTU5.js';
|
|
2
1
|
import { a as a$2 } from '../../chunk-4ZBE3RNR.js';
|
|
3
2
|
import { a } from '../../chunk-MPKHVDQH.js';
|
|
3
|
+
import { a as a$1 } from '../../chunk-TWGGHTU5.js';
|
|
4
4
|
import '../../chunk-U26IUEAG.js';
|
|
5
5
|
import { a as a$3 } from '../../chunk-E5MGOPPQ.js';
|
|
6
6
|
import { a as a$4 } from '../../chunk-YQ6K2DEP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-TWGGHTU5.js';
|
|
1
|
+
import { a } from '../../../chunk-3IGXAQXD.js';
|
|
3
2
|
import '../../../chunk-4ZBE3RNR.js';
|
|
4
3
|
import '../../../chunk-MPKHVDQH.js';
|
|
4
|
+
import '../../../chunk-TWGGHTU5.js';
|
|
5
5
|
import '../../../chunk-U26IUEAG.js';
|
|
6
6
|
import '../../../chunk-E5MGOPPQ.js';
|
|
7
7
|
import '../../../chunk-YQ6K2DEP.js';
|
|
@@ -443,7 +443,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
443
443
|
wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
|
|
444
444
|
writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
445
445
|
zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | undefined;
|
|
446
|
-
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal"
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
448
|
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "auto" | "none" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
449
449
|
animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as a$3 } from './chunk-TWGGHTU5.js';
|
|
2
1
|
import { a as a$4 } from './chunk-4ZBE3RNR.js';
|
|
3
2
|
import { a as a$1 } from './chunk-MPKHVDQH.js';
|
|
3
|
+
import { a as a$3 } from './chunk-TWGGHTU5.js';
|
|
4
4
|
import { a as a$2 } from './chunk-E5MGOPPQ.js';
|
|
5
5
|
import { a as a$5 } from './chunk-YQ6K2DEP.js';
|
|
6
6
|
import { useState } from 'react';
|