@applica-software-guru/react-admin 1.0.40 → 1.0.41
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/react-admin.cjs.js +1 -1
- package/dist/react-admin.es.js +119 -119
- package/dist/react-admin.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/ActionsMenu.tsx +5 -10
package/dist/react-admin.cjs.js
CHANGED
|
@@ -66,7 +66,7 @@ const theme1 = createTheme({ palette: {
|
|
|
66
66
|
const theme2 = createTheme({ palette: {
|
|
67
67
|
primary: { main: green[500] },
|
|
68
68
|
} });`:di(12,y?` (${y})`:"",JSON.stringify(B.main)));return Dh(B,"light",M,r),Dh(B,"dark",w,r),B.contrastText||(B.contrastText=E(B.main)),B},m={dark:bA,light:Oh};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),fr(z({common:z({},As),mode:t,primary:C({color:a,name:"primary"}),secondary:C({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:A,name:"error"}),warning:C({color:f,name:"warning"}),info:C({color:d,name:"info"}),success:C({color:g,name:"success"}),grey:LR,contrastThreshold:n,getContrastText:E,augmentColor:C,tonalOffset:r},m[t]),i)}const eO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tO(e){return Math.round(e*1e5)/1e5}const Mh={textTransform:"uppercase"},kh='"Roboto", "Helvetica", "Arial", sans-serif';function nO(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=kh,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:A=500,fontWeightBold:d=700,htmlFontSize:g=16,allVariants:f,pxToRem:E}=n,C=He(n,eO);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof g!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=i/14,I=E||(T=>`${T/g*m}rem`),B=(T,M,w,x,R)=>z({fontFamily:r,fontWeight:T,fontSize:I(M),lineHeight:w},r===kh?{letterSpacing:`${tO(x/M)}em`}:{},R,f),y={h1:B(a,96,1.167,-1.5),h2:B(a,60,1.2,-.5),h3:B(l,48,1.167,0),h4:B(l,34,1.235,.25),h5:B(l,24,1.334,0),h6:B(A,20,1.6,.15),subtitle1:B(l,16,1.75,.15),subtitle2:B(A,14,1.57,.1),body1:B(l,16,1.5,.15),body2:B(l,14,1.43,.15),button:B(A,14,1.75,.4,Mh),caption:B(l,12,1.66,.4),overline:B(l,12,2.66,1,Mh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fr(z({htmlFontSize:g,pxToRem:I,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:A,fontWeightBold:d},y),C,{clone:!1})}const rO=.2,oO=.14,iO=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${oO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${iO})`].join(",")}const sO=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],aO=sO,lO=["duration","easing","delay"],cO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},AO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jh(e){return`${Math.round(e)}ms`}function uO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dO(e){const t=z({},cO,e.easing),n=z({},AO,e.duration);return z({getAutoHeightDuration:uO,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:A=t.easeInOut,delay:d=0}=a,g=He(a,lO);if(process.env.NODE_ENV!=="production"){const f=C=>typeof C=="string",E=C=>!isNaN(parseFloat(C));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!E(l)&&!f(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),f(A)||console.error('MUI: Argument "easing" must be a string.'),!E(d)&&!f(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(g).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(g).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof l=="string"?l:jh(l)} ${A} ${typeof d=="string"?d:jh(d)}`).join(",")}},e,{easing:t,duration:n})}const gO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fO=gO,pO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qu(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,l=He(e,pO);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":di(18));const A=$R(r),d=Gu(e);let g=fr(d,{mixins:jR(d.breakpoints,n),palette:A,shadows:aO.slice(),typography:nO(A,a),transitions:dO(i),zIndex:z({},fO)});if(g=fr(g,l),g=t.reduce((f,E)=>fr(f,E),g),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(C,m)=>{let I;for(I in C){const B=C[I];if(f.indexOf(I)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const y=yt("",I);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
69
|
-
`))}C[I]={}}}};Object.keys(g.components).forEach(C=>{const m=g.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&E(m,C)})}return g.unstable_sxConfig=z({},vl,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return Yu({sx:E,theme:this})},g}const hO=qu(),Ju=hO;function at(){const e=cm(Ju);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[ls]||e}function wt({props:e,name:t}){return SR({props:e,name:t,defaultTheme:Ju,themeId:ls})}const wl=e=>Ma(e)&&e!=="classes",CO=dm({themeId:ls,defaultTheme:Ju,rootShouldForwardProp:wl}),le=CO,EO=["theme"];function hm(e){let{theme:t}=e,n=He(e,EO);const r=t[ls];return h.jsx(Ya,z({},n,{themeId:r?ls:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(hm.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const mO=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Fh=mO,IO=le("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Le(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},A={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},d={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...A,top:20},...e==="left-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...A,bottom:20},...e==="right-top"&&{...d,top:20},...e==="right-center"&&{...d,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...d,bottom:20}}});function BO(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const Tl=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:A,transformOrigin:d}=BO(n);return h.jsxs(P.Popover,{open:!!e,anchorEl:e,anchorOrigin:A,transformOrigin:d,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&h.jsx(IO,{arrow:n}),t]})};Tl.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const QO=P.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),yO=P.styled(Tl,{name:"
|
|
69
|
+
`))}C[I]={}}}};Object.keys(g.components).forEach(C=>{const m=g.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&E(m,C)})}return g.unstable_sxConfig=z({},vl,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return Yu({sx:E,theme:this})},g}const hO=qu(),Ju=hO;function at(){const e=cm(Ju);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[ls]||e}function wt({props:e,name:t}){return SR({props:e,name:t,defaultTheme:Ju,themeId:ls})}const wl=e=>Ma(e)&&e!=="classes",CO=dm({themeId:ls,defaultTheme:Ju,rootShouldForwardProp:wl}),le=CO,EO=["theme"];function hm(e){let{theme:t}=e,n=He(e,EO);const r=t[ls];return h.jsx(Ya,z({},n,{themeId:r?ls:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(hm.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const mO=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Fh=mO,IO=le("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Le(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},A={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},d={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...A,top:20},...e==="left-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...A,bottom:20},...e==="right-top"&&{...d,top:20},...e==="right-center"&&{...d,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...d,bottom:20}}});function BO(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const Tl=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:A,transformOrigin:d}=BO(n);return h.jsxs(P.Popover,{open:!!e,anchorEl:e,anchorOrigin:A,transformOrigin:d,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&h.jsx(IO,{arrow:n}),t]})};Tl.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const QO=P.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),yO=P.styled(Tl,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Bs=({children:e})=>{const[t,n]=O.useState(null),r=a=>{a.stopPropagation(),a.preventDefault(),n(a.currentTarget)},i=O.useCallback(()=>{n(null)},[]);return!e||O.Children.count(e)===0||e!=null&&e.filter&&(e==null?void 0:e.filter(a=>O.isValidElement(a)).length)===0?null:h.jsxs(QO,{children:[h.jsx(P.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:r,color:t?"inherit":"default",children:h.jsx(Wr.MoreVert,{})}),h.jsx(yO,{open:t,onClose:i,arrow:"right-top",children:O.Children.map(e,(a,l)=>O.isValidElement(a)&&h.jsx(P.MenuItem,{children:O.cloneElement(a)},l))})]})};Bs.propTypes={...Tl.propTypes,children:c.node.isRequired};const Cm={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},Xu=O.createContext(Cm),Zu=({children:e})=>{const[t,n]=O.useState(Cm),r=(l,A)=>{n(d=>({...d,openDialogs:[...d.openDialogs,l]})),A&&A()},i=(l,A)=>{n(d=>({...d,openDialogs:d.openDialogs.filter(g=>g!==l)})),A&&A()},a=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return h.jsx(Xu.Provider,{value:{...t,openDialog:r,closeDialog:i,getCurrentDialog:a},children:e})};Zu.propTypes={children:c.node};const bo=()=>O.useContext(Xu);var Ga={exports:{}};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Lodash <https://lodash.com/>
|
|
72
72
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
package/dist/react-admin.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useResourceDefinitions as tR, useGetIdentity as bm, usePermissions as n
|
|
|
3
3
|
import { ArrayInputContext as Q7, BooleanField as v7, BulkDeleteWithConfirmButton as b7, Button as y7, ChipField as x7, Confirm as w7, Create as T7, CreateButton as P7, CreateContextProvider as S7, CustomRoutes as R7, DeleteWithConfirmButton as O7, DeleteWithUndoButton as D7, EditButton as M7, EditContextProvider as k7, FieldTitle as F7, Form as N7, HttpError as L7, ListToolbar as j7, Pagination as V7, ArrayInput as H7, SimpleFormIterator as z7, RecordContextProvider as W7, ReferenceArrayField as U7, ReferenceField as Y7, Resource as G7, ResourceContextProvider as K7, SaveButton as _7, SimpleFormIteratorContext as q7, SimpleList as J7, SingleFieldList as $7, TopToolbar as X7, UrlField as Z7, choices as eG, email as tG, maxLength as nG, maxValue as rG, minLength as oG, minValue as iG, number as aG, regex as sG, required as lG, useArrayInput as cG, useAuthProvider as AG, useCreateController as uG, useDataProvider as dG, useEditContext as gG, useGetIdentity as fG, useGetList as pG, useGetMany as hG, useGetManyReference as CG, useGetOne as EG, useListContext as mG, useNotify as IG, usePermissions as BG, useRecordContext as QG, useRefresh as vG, useResourceContext as bG, useResourceDefinition as yG, useResourceDefinitions as xG, useTranslate as wG, useUnselect as TG, useUnselectAll as PG, useUpdateMany as SG } from "react-admin";
|
|
4
4
|
import { Popover as xR, styled as Vd, IconButton as Vm, MenuItem as wR, Card as TR, CardHeader as Mu, Typography as we, Divider as wi, CardContent as Hm, Grid as xt, Box as Fe, Tooltip as za, tooltipClasses as Ks, Grow as PR, Collapse as zm, Fade as SR, Slide as RR, Zoom as Wm, CircularProgress as ku, circularProgressClasses as OR, LinearProgress as Um, useMediaQuery as Tn, ListItemButton as ko, ListItemIcon as $r, ListItemText as Fo, Chip as Lh, Avatar as hl, Popper as Wa, Paper as Oi, ClickAwayListener as Di, List as Sa, ButtonBase as Ym, Drawer as DR, Stack as Zn, AppBar as Hd, Toolbar as zd, ListItemAvatar as MR, ListItemSecondaryAction as Gm, Badge as kR, Container as Km, useScrollTrigger as FR, Fab as NR, Dialog as _m, InputLabel as Wd, FormHelperText as qm, TextField as LR, useTheme as jR, darken as VR, lighten as HR, Button as zR, StyledEngineProvider as WR, CssBaseline as UR } from "@mui/material";
|
|
5
5
|
import * as D from "react";
|
|
6
|
-
import ve, { useState as lt, Children as Ro, createContext as Yn, useContext as kt, useMemo as Je, useEffect as Ft, forwardRef as Ho, isValidElement as Ea, cloneElement as Xr, useLayoutEffect as YR, useRef as to, useInsertionEffect as GR,
|
|
6
|
+
import ve, { useState as lt, useCallback as ot, Children as Ro, createContext as Yn, useContext as kt, useMemo as Je, useEffect as Ft, forwardRef as Ho, isValidElement as Ea, cloneElement as Xr, useLayoutEffect as YR, useRef as to, useInsertionEffect as GR, createElement as KR, useId as _R, Fragment as zo, Suspense as qR } from "react";
|
|
7
7
|
import JR from "@emotion/styled";
|
|
8
8
|
import { ThemeContext as Jm, keyframes as io, css as Ua, useTheme as $m } from "@emotion/react";
|
|
9
9
|
import { MoreVert as $R, Add as jh, Edit as XR, VpnKey as ZR, Inbox as eO, Email as tO, Drafts as nO } from "@mui/icons-material";
|
|
@@ -1458,7 +1458,7 @@ function Il(e, t, n, r = n) {
|
|
|
1458
1458
|
let i;
|
|
1459
1459
|
return typeof e == "function" ? i = e(n) : Array.isArray(e) ? i = e[n] || r : i = ec(e, n) || r, t && (i = t(i, r, e)), i;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function it(e) {
|
|
1462
1462
|
const {
|
|
1463
1463
|
prop: t,
|
|
1464
1464
|
cssProperty: n = e.prop,
|
|
@@ -1569,39 +1569,39 @@ function rc(...e) {
|
|
|
1569
1569
|
function ar(e) {
|
|
1570
1570
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
1571
1571
|
}
|
|
1572
|
-
const FD =
|
|
1572
|
+
const FD = it({
|
|
1573
1573
|
prop: "border",
|
|
1574
1574
|
themeKey: "borders",
|
|
1575
1575
|
transform: ar
|
|
1576
|
-
}), ND =
|
|
1576
|
+
}), ND = it({
|
|
1577
1577
|
prop: "borderTop",
|
|
1578
1578
|
themeKey: "borders",
|
|
1579
1579
|
transform: ar
|
|
1580
|
-
}), LD =
|
|
1580
|
+
}), LD = it({
|
|
1581
1581
|
prop: "borderRight",
|
|
1582
1582
|
themeKey: "borders",
|
|
1583
1583
|
transform: ar
|
|
1584
|
-
}), jD =
|
|
1584
|
+
}), jD = it({
|
|
1585
1585
|
prop: "borderBottom",
|
|
1586
1586
|
themeKey: "borders",
|
|
1587
1587
|
transform: ar
|
|
1588
|
-
}), VD =
|
|
1588
|
+
}), VD = it({
|
|
1589
1589
|
prop: "borderLeft",
|
|
1590
1590
|
themeKey: "borders",
|
|
1591
1591
|
transform: ar
|
|
1592
|
-
}), HD =
|
|
1592
|
+
}), HD = it({
|
|
1593
1593
|
prop: "borderColor",
|
|
1594
1594
|
themeKey: "palette"
|
|
1595
|
-
}), zD =
|
|
1595
|
+
}), zD = it({
|
|
1596
1596
|
prop: "borderTopColor",
|
|
1597
1597
|
themeKey: "palette"
|
|
1598
|
-
}), WD =
|
|
1598
|
+
}), WD = it({
|
|
1599
1599
|
prop: "borderRightColor",
|
|
1600
1600
|
themeKey: "palette"
|
|
1601
|
-
}), UD =
|
|
1601
|
+
}), UD = it({
|
|
1602
1602
|
prop: "borderBottomColor",
|
|
1603
1603
|
themeKey: "palette"
|
|
1604
|
-
}), YD =
|
|
1604
|
+
}), YD = it({
|
|
1605
1605
|
prop: "borderLeftColor",
|
|
1606
1606
|
themeKey: "palette"
|
|
1607
1607
|
}), oc = (e) => {
|
|
@@ -1657,39 +1657,39 @@ sc.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1657
1657
|
rowGap: so
|
|
1658
1658
|
} : {};
|
|
1659
1659
|
sc.filterProps = ["rowGap"];
|
|
1660
|
-
const GD =
|
|
1660
|
+
const GD = it({
|
|
1661
1661
|
prop: "gridColumn"
|
|
1662
|
-
}), KD =
|
|
1662
|
+
}), KD = it({
|
|
1663
1663
|
prop: "gridRow"
|
|
1664
|
-
}), _D =
|
|
1664
|
+
}), _D = it({
|
|
1665
1665
|
prop: "gridAutoFlow"
|
|
1666
|
-
}), qD =
|
|
1666
|
+
}), qD = it({
|
|
1667
1667
|
prop: "gridAutoColumns"
|
|
1668
|
-
}), JD =
|
|
1668
|
+
}), JD = it({
|
|
1669
1669
|
prop: "gridAutoRows"
|
|
1670
|
-
}), $D =
|
|
1670
|
+
}), $D = it({
|
|
1671
1671
|
prop: "gridTemplateColumns"
|
|
1672
|
-
}), XD =
|
|
1672
|
+
}), XD = it({
|
|
1673
1673
|
prop: "gridTemplateRows"
|
|
1674
|
-
}), ZD =
|
|
1674
|
+
}), ZD = it({
|
|
1675
1675
|
prop: "gridTemplateAreas"
|
|
1676
|
-
}), e2 =
|
|
1676
|
+
}), e2 = it({
|
|
1677
1677
|
prop: "gridArea"
|
|
1678
1678
|
});
|
|
1679
1679
|
rc(ic, ac, sc, GD, KD, _D, qD, JD, $D, XD, ZD, e2);
|
|
1680
1680
|
function Ti(e, t) {
|
|
1681
1681
|
return t === "grey" ? t : e;
|
|
1682
1682
|
}
|
|
1683
|
-
const t2 =
|
|
1683
|
+
const t2 = it({
|
|
1684
1684
|
prop: "color",
|
|
1685
1685
|
themeKey: "palette",
|
|
1686
1686
|
transform: Ti
|
|
1687
|
-
}), n2 =
|
|
1687
|
+
}), n2 = it({
|
|
1688
1688
|
prop: "bgcolor",
|
|
1689
1689
|
cssProperty: "backgroundColor",
|
|
1690
1690
|
themeKey: "palette",
|
|
1691
1691
|
transform: Ti
|
|
1692
|
-
}), r2 =
|
|
1692
|
+
}), r2 = it({
|
|
1693
1693
|
prop: "backgroundColor",
|
|
1694
1694
|
themeKey: "palette",
|
|
1695
1695
|
transform: Ti
|
|
@@ -1698,7 +1698,7 @@ rc(t2, n2, r2);
|
|
|
1698
1698
|
function wn(e) {
|
|
1699
1699
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1700
1700
|
}
|
|
1701
|
-
const o2 =
|
|
1701
|
+
const o2 = it({
|
|
1702
1702
|
prop: "width",
|
|
1703
1703
|
transform: wn
|
|
1704
1704
|
}), $d = (e) => {
|
|
@@ -1714,30 +1714,30 @@ const o2 = ot({
|
|
|
1714
1714
|
return null;
|
|
1715
1715
|
};
|
|
1716
1716
|
$d.filterProps = ["maxWidth"];
|
|
1717
|
-
const i2 =
|
|
1717
|
+
const i2 = it({
|
|
1718
1718
|
prop: "minWidth",
|
|
1719
1719
|
transform: wn
|
|
1720
|
-
}), a2 =
|
|
1720
|
+
}), a2 = it({
|
|
1721
1721
|
prop: "height",
|
|
1722
1722
|
transform: wn
|
|
1723
|
-
}), s2 =
|
|
1723
|
+
}), s2 = it({
|
|
1724
1724
|
prop: "maxHeight",
|
|
1725
1725
|
transform: wn
|
|
1726
|
-
}), l2 =
|
|
1726
|
+
}), l2 = it({
|
|
1727
1727
|
prop: "minHeight",
|
|
1728
1728
|
transform: wn
|
|
1729
1729
|
});
|
|
1730
|
-
|
|
1730
|
+
it({
|
|
1731
1731
|
prop: "size",
|
|
1732
1732
|
cssProperty: "width",
|
|
1733
1733
|
transform: wn
|
|
1734
1734
|
});
|
|
1735
|
-
|
|
1735
|
+
it({
|
|
1736
1736
|
prop: "size",
|
|
1737
1737
|
cssProperty: "height",
|
|
1738
1738
|
transform: wn
|
|
1739
1739
|
});
|
|
1740
|
-
const c2 =
|
|
1740
|
+
const c2 = it({
|
|
1741
1741
|
prop: "boxSizing"
|
|
1742
1742
|
});
|
|
1743
1743
|
rc(o2, $d, i2, a2, s2, l2, c2);
|
|
@@ -3331,7 +3331,7 @@ const vM = Vd("div", {
|
|
|
3331
3331
|
})(() => ({
|
|
3332
3332
|
textAlign: "right"
|
|
3333
3333
|
})), bM = Vd(og, {
|
|
3334
|
-
name: "
|
|
3334
|
+
name: "ApplicaActionsMenu",
|
|
3335
3335
|
slot: "root"
|
|
3336
3336
|
})(({ theme: e }) => ({
|
|
3337
3337
|
"& .MuiMenuItem-root": {
|
|
@@ -3345,15 +3345,15 @@ const vM = Vd("div", {
|
|
|
3345
3345
|
})), uc = ({ children: e }) => {
|
|
3346
3346
|
const [t, n] = lt(null), r = (s) => {
|
|
3347
3347
|
s.stopPropagation(), s.preventDefault(), n(s.currentTarget);
|
|
3348
|
-
}, i = () => {
|
|
3348
|
+
}, i = ot(() => {
|
|
3349
3349
|
n(null);
|
|
3350
|
-
};
|
|
3350
|
+
}, []);
|
|
3351
3351
|
return !e || ve.Children.count(e) === 0 || // @ts-ignore
|
|
3352
3352
|
e != null && e.filter && (e == null ? void 0 : e.filter((s) => ve.isValidElement(s)).length) === 0 ? null : /* @__PURE__ */ ae(vM, { children: [
|
|
3353
3353
|
/* @__PURE__ */ m(Vm, { "aria-label": "more", "aria-haspopup": "true", onClick: r, color: t ? "inherit" : "default", children: /* @__PURE__ */ m($R, {}) }),
|
|
3354
3354
|
/* @__PURE__ */ m(bM, { open: t, onClose: i, arrow: "right-top", children: Ro.map(
|
|
3355
3355
|
e,
|
|
3356
|
-
(s, l) => ve.isValidElement(s) && /* @__PURE__ */ m(wR, {
|
|
3356
|
+
(s, l) => ve.isValidElement(s) && /* @__PURE__ */ m(wR, { children: ve.cloneElement(s) }, l)
|
|
3357
3357
|
) })
|
|
3358
3358
|
] });
|
|
3359
3359
|
};
|
|
@@ -3960,11 +3960,11 @@ vl.exports;
|
|
|
3960
3960
|
}
|
|
3961
3961
|
var Ky = function M(q) {
|
|
3962
3962
|
q = q == null ? Kt : Zo.defaults(Kt.Object(), q, Zo.pick(Kt, py));
|
|
3963
|
-
var G = q.Array, Ce = q.Date, De = q.Error, Xe = q.Function, jt = q.Math, ct = q.Object, tA = q.RegExp, _y = q.String, kn = q.TypeError, us = G.prototype, qy = Xe.prototype, ei = ct.prototype, ds = q["__core-js_shared__"], gs = qy.toString,
|
|
3963
|
+
var G = q.Array, Ce = q.Date, De = q.Error, Xe = q.Function, jt = q.Math, ct = q.Object, tA = q.RegExp, _y = q.String, kn = q.TypeError, us = G.prototype, qy = Xe.prototype, ei = ct.prototype, ds = q["__core-js_shared__"], gs = qy.toString, at = ei.hasOwnProperty, Jy = 0, qf = function() {
|
|
3964
3964
|
var o = /[^.]+$/.exec(ds && ds.keys && ds.keys.IE_PROTO || "");
|
|
3965
3965
|
return o ? "Symbol(src)_1." + o : "";
|
|
3966
3966
|
}(), fs = ei.toString, $y = gs.call(ct), Xy = Kt._, Zy = tA(
|
|
3967
|
-
"^" + gs.call(
|
|
3967
|
+
"^" + gs.call(at).replace(Nc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3968
3968
|
), ps = Of ? q.Buffer : n, Lr = q.Symbol, hs = q.Uint8Array, Jf = ps ? ps.allocUnsafe : n, Cs = Kf(ct.getPrototypeOf, ct), $f = ct.create, Xf = ei.propertyIsEnumerable, Es = us.splice, Zf = Lr ? Lr.isConcatSpreadable : n, qi = Lr ? Lr.iterator : n, fo = Lr ? Lr.toStringTag : n, ms = function() {
|
|
3969
3969
|
try {
|
|
3970
3970
|
var o = mo(ct, "defineProperty");
|
|
@@ -3976,7 +3976,7 @@ vl.exports;
|
|
|
3976
3976
|
if (vt(o) && !ke(o) && !(o instanceof Ye)) {
|
|
3977
3977
|
if (o instanceof Fn)
|
|
3978
3978
|
return o;
|
|
3979
|
-
if (
|
|
3979
|
+
if (at.call(o, "__wrapped__"))
|
|
3980
3980
|
return rh(o);
|
|
3981
3981
|
}
|
|
3982
3982
|
return new Fn(o);
|
|
@@ -4102,11 +4102,11 @@ vl.exports;
|
|
|
4102
4102
|
var u = a[o];
|
|
4103
4103
|
return u === d ? n : u;
|
|
4104
4104
|
}
|
|
4105
|
-
return
|
|
4105
|
+
return at.call(a, o) ? a[o] : n;
|
|
4106
4106
|
}
|
|
4107
4107
|
function Ix(o) {
|
|
4108
4108
|
var a = this.__data__;
|
|
4109
|
-
return Xi ? a[o] !== n :
|
|
4109
|
+
return Xi ? a[o] !== n : at.call(a, o);
|
|
4110
4110
|
}
|
|
4111
4111
|
function Bx(o, a) {
|
|
4112
4112
|
var u = this.__data__;
|
|
@@ -4214,7 +4214,7 @@ vl.exports;
|
|
|
4214
4214
|
function rp(o, a) {
|
|
4215
4215
|
var u = ke(o), p = !u && Bo(o), Q = !u && !p && Wr(o), y = !u && !p && !Q && si(o), S = u || p || Q || y, O = S ? Xc(o.length, _y) : [], k = O.length;
|
|
4216
4216
|
for (var X in o)
|
|
4217
|
-
(a ||
|
|
4217
|
+
(a || at.call(o, X)) && !(S && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4218
4218
|
(X == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
4219
4219
|
Q && (X == "offset" || X == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
4220
4220
|
y && (X == "buffer" || X == "byteLength" || X == "byteOffset") || // Skip index properties.
|
|
@@ -4236,7 +4236,7 @@ vl.exports;
|
|
|
4236
4236
|
}
|
|
4237
4237
|
function ea(o, a, u) {
|
|
4238
4238
|
var p = o[a];
|
|
4239
|
-
(!(
|
|
4239
|
+
(!(at.call(o, a) && Jn(p, u)) || u === n && !(a in o)) && fr(o, a, u);
|
|
4240
4240
|
}
|
|
4241
4241
|
function ys(o, a) {
|
|
4242
4242
|
for (var u = o.length; u--; )
|
|
@@ -4414,7 +4414,7 @@ vl.exports;
|
|
|
4414
4414
|
return o > a;
|
|
4415
4415
|
}
|
|
4416
4416
|
function Gx(o, a) {
|
|
4417
|
-
return o != null &&
|
|
4417
|
+
return o != null && at.call(o, a);
|
|
4418
4418
|
}
|
|
4419
4419
|
function Kx(o, a) {
|
|
4420
4420
|
return o != null && a in ct(o);
|
|
@@ -4477,7 +4477,7 @@ vl.exports;
|
|
|
4477
4477
|
if (de && !Z)
|
|
4478
4478
|
return y || (y = new qn()), S || si(o) ? Yp(o, a, u, p, Q, y) : y1(o, a, k, u, p, Q, y);
|
|
4479
4479
|
if (!(u & I)) {
|
|
4480
|
-
var Ie = Z &&
|
|
4480
|
+
var Ie = Z && at.call(o, "__wrapped__"), Te = te && at.call(a, "__wrapped__");
|
|
4481
4481
|
if (Ie || Te) {
|
|
4482
4482
|
var je = Ie ? o.value() : o, Pe = Te ? a.value() : a;
|
|
4483
4483
|
return y || (y = new qn()), Q(je, Pe, u, p, y);
|
|
@@ -4536,7 +4536,7 @@ vl.exports;
|
|
|
4536
4536
|
return ix(o);
|
|
4537
4537
|
var a = [];
|
|
4538
4538
|
for (var u in ct(o))
|
|
4539
|
-
|
|
4539
|
+
at.call(o, u) && u != "constructor" && a.push(u);
|
|
4540
4540
|
return a;
|
|
4541
4541
|
}
|
|
4542
4542
|
function r1(o) {
|
|
@@ -4544,7 +4544,7 @@ vl.exports;
|
|
|
4544
4544
|
return j1(o);
|
|
4545
4545
|
var a = aa(o), u = [];
|
|
4546
4546
|
for (var p in o)
|
|
4547
|
-
p == "constructor" && (a || !
|
|
4547
|
+
p == "constructor" && (a || !at.call(o, p)) || u.push(p);
|
|
4548
4548
|
return u;
|
|
4549
4549
|
}
|
|
4550
4550
|
function gA(o, a) {
|
|
@@ -5219,7 +5219,7 @@ vl.exports;
|
|
|
5219
5219
|
return eh(je(Te, Ie), o, a);
|
|
5220
5220
|
}
|
|
5221
5221
|
function Wp(o, a, u, p) {
|
|
5222
|
-
return o === n || Jn(o, ei[u]) && !
|
|
5222
|
+
return o === n || Jn(o, ei[u]) && !at.call(p, u) ? a : o;
|
|
5223
5223
|
}
|
|
5224
5224
|
function Up(o, a, u, p, Q, y) {
|
|
5225
5225
|
return mt(o) && mt(a) && (y.set(a, o), Ts(o, a, n, Up, y), y.delete(a)), o;
|
|
@@ -5301,7 +5301,7 @@ vl.exports;
|
|
|
5301
5301
|
return !1;
|
|
5302
5302
|
for (var te = k; te--; ) {
|
|
5303
5303
|
var de = O[te];
|
|
5304
|
-
if (!(S ? de in a :
|
|
5304
|
+
if (!(S ? de in a : at.call(a, de)))
|
|
5305
5305
|
return !1;
|
|
5306
5306
|
}
|
|
5307
5307
|
var Ie = y.get(o), Te = y.get(a);
|
|
@@ -5339,7 +5339,7 @@ vl.exports;
|
|
|
5339
5339
|
return Qs.get(o);
|
|
5340
5340
|
} : GA;
|
|
5341
5341
|
function Fs(o) {
|
|
5342
|
-
for (var a = o.name + "", u = ni[a], p =
|
|
5342
|
+
for (var a = o.name + "", u = ni[a], p = at.call(ni, a) ? u.length : 0; p--; ) {
|
|
5343
5343
|
var Q = u[p], y = Q.func;
|
|
5344
5344
|
if (y == null || y == o)
|
|
5345
5345
|
return Q.name;
|
|
@@ -5347,7 +5347,7 @@ vl.exports;
|
|
|
5347
5347
|
return a;
|
|
5348
5348
|
}
|
|
5349
5349
|
function ai(o) {
|
|
5350
|
-
var a =
|
|
5350
|
+
var a = at.call(b, "placeholder") ? b : o;
|
|
5351
5351
|
return a.placeholder;
|
|
5352
5352
|
}
|
|
5353
5353
|
function xe() {
|
|
@@ -5370,7 +5370,7 @@ vl.exports;
|
|
|
5370
5370
|
return gp(u) ? u : n;
|
|
5371
5371
|
}
|
|
5372
5372
|
function w1(o) {
|
|
5373
|
-
var a =
|
|
5373
|
+
var a = at.call(o, fo), u = o[fo];
|
|
5374
5374
|
try {
|
|
5375
5375
|
o[fo] = n;
|
|
5376
5376
|
var p = !0;
|
|
@@ -5441,7 +5441,7 @@ vl.exports;
|
|
|
5441
5441
|
}
|
|
5442
5442
|
function S1(o) {
|
|
5443
5443
|
var a = o.length, u = new o.constructor(a);
|
|
5444
|
-
return a && typeof o[0] == "string" &&
|
|
5444
|
+
return a && typeof o[0] == "string" && at.call(o, "index") && (u.index = o.index, u.input = o.input), u;
|
|
5445
5445
|
}
|
|
5446
5446
|
function _p(o) {
|
|
5447
5447
|
return typeof o.constructor == "function" && !aa(o) ? ri(Cs(o)) : {};
|
|
@@ -5983,7 +5983,7 @@ vl.exports;
|
|
|
5983
5983
|
return xp(this.__wrapped__, this.__actions__);
|
|
5984
5984
|
}
|
|
5985
5985
|
var Zw = Rs(function(o, a, u) {
|
|
5986
|
-
|
|
5986
|
+
at.call(o, u) ? ++o[u] : fr(o, u, 1);
|
|
5987
5987
|
});
|
|
5988
5988
|
function eT(o, a, u) {
|
|
5989
5989
|
var p = ke(o) ? jf : Ux;
|
|
@@ -6012,7 +6012,7 @@ vl.exports;
|
|
|
6012
6012
|
return u(o, xe(a, 3));
|
|
6013
6013
|
}
|
|
6014
6014
|
var sT = Rs(function(o, a, u) {
|
|
6015
|
-
|
|
6015
|
+
at.call(o, u) ? o[u].push(a) : fr(o, u, [a]);
|
|
6016
6016
|
});
|
|
6017
6017
|
function lT(o, a, u, p) {
|
|
6018
6018
|
o = An(o) ? o : li(o), u = u && !p ? Le(u) : 0;
|
|
@@ -6292,7 +6292,7 @@ vl.exports;
|
|
|
6292
6292
|
}), Bo = dp(function() {
|
|
6293
6293
|
return arguments;
|
|
6294
6294
|
}()) ? dp : function(o) {
|
|
6295
|
-
return vt(o) &&
|
|
6295
|
+
return vt(o) && at.call(o, "callee") && !Xf.call(o, "callee");
|
|
6296
6296
|
}, ke = G.isArray, zT = Df ? mn(Df) : Jx;
|
|
6297
6297
|
function An(o) {
|
|
6298
6298
|
return o != null && Us(o.length) && !Er(o);
|
|
@@ -6318,7 +6318,7 @@ vl.exports;
|
|
|
6318
6318
|
if (aa(o))
|
|
6319
6319
|
return !dA(o).length;
|
|
6320
6320
|
for (var u in o)
|
|
6321
|
-
if (
|
|
6321
|
+
if (at.call(o, u))
|
|
6322
6322
|
return !1;
|
|
6323
6323
|
return !0;
|
|
6324
6324
|
}
|
|
@@ -6388,7 +6388,7 @@ vl.exports;
|
|
|
6388
6388
|
var a = Cs(o);
|
|
6389
6389
|
if (a === null)
|
|
6390
6390
|
return !0;
|
|
6391
|
-
var u =
|
|
6391
|
+
var u = at.call(a, "constructor") && a.constructor;
|
|
6392
6392
|
return typeof u == "function" && u instanceof u && gs.call(u) == $y;
|
|
6393
6393
|
}
|
|
6394
6394
|
var jA = Ff ? mn(Ff) : e1;
|
|
@@ -6471,7 +6471,7 @@ vl.exports;
|
|
|
6471
6471
|
return;
|
|
6472
6472
|
}
|
|
6473
6473
|
for (var u in a)
|
|
6474
|
-
|
|
6474
|
+
at.call(a, u) && ea(o, u, a[u]);
|
|
6475
6475
|
}), wh = oi(function(o, a) {
|
|
6476
6476
|
nr(a, un(a), o);
|
|
6477
6477
|
}), Gs = oi(function(o, a, u, p) {
|
|
@@ -6489,7 +6489,7 @@ vl.exports;
|
|
|
6489
6489
|
for (Q && on(a[0], a[1], Q) && (p = 1); ++u < p; )
|
|
6490
6490
|
for (var y = a[u], S = un(y), O = -1, k = S.length; ++O < k; ) {
|
|
6491
6491
|
var X = S[O], Z = o[X];
|
|
6492
|
-
(Z === n || Jn(Z, ei[X]) && !
|
|
6492
|
+
(Z === n || Jn(Z, ei[X]) && !at.call(o, X)) && (o[X] = y[X]);
|
|
6493
6493
|
}
|
|
6494
6494
|
return o;
|
|
6495
6495
|
}), fP = He(function(o) {
|
|
@@ -6532,7 +6532,7 @@ vl.exports;
|
|
|
6532
6532
|
var bP = jp(function(o, a, u) {
|
|
6533
6533
|
a != null && typeof a.toString != "function" && (a = fs.call(a)), o[a] = u;
|
|
6534
6534
|
}, WA(dn)), yP = jp(function(o, a, u) {
|
|
6535
|
-
a != null && typeof a.toString != "function" && (a = fs.call(a)),
|
|
6535
|
+
a != null && typeof a.toString != "function" && (a = fs.call(a)), at.call(o, a) ? o[a].push(u) : o[a] = [u];
|
|
6536
6536
|
}, xe), xP = He(na);
|
|
6537
6537
|
function Wt(o) {
|
|
6538
6538
|
return An(o) ? rp(o) : dA(o);
|
|
@@ -6715,7 +6715,7 @@ vl.exports;
|
|
|
6715
6715
|
var Q = Gs({}, a.imports, p.imports, Wp), y = Wt(Q), S = Zc(Q, y), O, k, X = 0, Z = a.interpolate || is, te = "__p += '", de = tA(
|
|
6716
6716
|
(a.escape || is).source + "|" + Z.source + "|" + (Z === uf ? Vb : is).source + "|" + (a.evaluate || is).source + "|$",
|
|
6717
6717
|
"g"
|
|
6718
|
-
), Ie = "//# sourceURL=" + (
|
|
6718
|
+
), Ie = "//# sourceURL=" + (at.call(a, "sourceURL") ? (a.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++hy + "]") + `
|
|
6719
6719
|
`;
|
|
6720
6720
|
o.replace(de, function(Pe, We, _e, Qn, an, vn) {
|
|
6721
6721
|
return _e || (_e = Qn), te += o.slice(X, vn).replace(Kb, Fy), We && (O = !0, te += `' +
|
|
@@ -6727,7 +6727,7 @@ __p += '`), _e && (te += `' +
|
|
|
6727
6727
|
'`), X = vn + Pe.length, Pe;
|
|
6728
6728
|
}), te += `';
|
|
6729
6729
|
`;
|
|
6730
|
-
var Te =
|
|
6730
|
+
var Te = at.call(a, "variable") && a.variable;
|
|
6731
6731
|
if (!Te)
|
|
6732
6732
|
te = `with (obj) {
|
|
6733
6733
|
` + te + `
|
|
@@ -6983,7 +6983,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6983
6983
|
return b.after = QT, b.ary = gh, b.assign = cP, b.assignIn = wh, b.assignInWith = Gs, b.assignWith = AP, b.at = uP, b.before = fh, b.bind = FA, b.bindAll = hS, b.bindKey = ph, b.castArray = MT, b.chain = Ah, b.chunk = W1, b.compact = U1, b.concat = Y1, b.cond = CS, b.conforms = ES, b.constant = WA, b.countBy = Zw, b.create = dP, b.curry = hh, b.curryRight = Ch, b.debounce = Eh, b.defaults = gP, b.defaultsDeep = fP, b.defer = vT, b.delay = bT, b.difference = G1, b.differenceBy = K1, b.differenceWith = _1, b.drop = q1, b.dropRight = J1, b.dropRightWhile = $1, b.dropWhile = X1, b.fill = Z1, b.filter = tT, b.flatMap = oT, b.flatMapDeep = iT, b.flatMapDepth = aT, b.flatten = ah, b.flattenDeep = ew, b.flattenDepth = tw, b.flip = yT, b.flow = IS, b.flowRight = BS, b.fromPairs = nw, b.functions = BP, b.functionsIn = QP, b.groupBy = sT, b.initial = ow, b.intersection = iw, b.intersectionBy = aw, b.intersectionWith = sw, b.invert = bP, b.invertBy = yP, b.invokeMap = cT, b.iteratee = UA, b.keyBy = AT, b.keys = Wt, b.keysIn = un, b.map = Vs, b.mapKeys = wP, b.mapValues = TP, b.matches = QS, b.matchesProperty = vS, b.memoize = zs, b.merge = PP, b.mergeWith = Th, b.method = bS, b.methodOf = yS, b.mixin = YA, b.negate = Ws, b.nthArg = wS, b.omit = SP, b.omitBy = RP, b.once = xT, b.orderBy = uT, b.over = TS, b.overArgs = wT, b.overEvery = PS, b.overSome = SS, b.partial = NA, b.partialRight = mh, b.partition = dT, b.pick = OP, b.pickBy = Ph, b.property = Fh, b.propertyOf = RS, b.pull = uw, b.pullAll = lh, b.pullAllBy = dw, b.pullAllWith = gw, b.pullAt = fw, b.range = OS, b.rangeRight = DS, b.rearg = TT, b.reject = pT, b.remove = pw, b.rest = PT, b.reverse = MA, b.sampleSize = CT, b.set = MP, b.setWith = kP, b.shuffle = ET, b.slice = hw, b.sortBy = BT, b.sortedUniq = vw, b.sortedUniqBy = bw, b.split = oS, b.spread = ST, b.tail = yw, b.take = xw, b.takeRight = ww, b.takeRightWhile = Tw, b.takeWhile = Pw, b.tap = Uw, b.throttle = RT, b.thru = js, b.toArray = bh, b.toPairs = Sh, b.toPairsIn = Rh, b.toPath = LS, b.toPlainObject = xh, b.transform = FP, b.unary = OT, b.union = Sw, b.unionBy = Rw, b.unionWith = Ow, b.uniq = Dw, b.uniqBy = Mw, b.uniqWith = kw, b.unset = NP, b.unzip = kA, b.unzipWith = ch, b.update = LP, b.updateWith = jP, b.values = li, b.valuesIn = VP, b.without = Fw, b.words = Mh, b.wrap = DT, b.xor = Nw, b.xorBy = Lw, b.xorWith = jw, b.zip = Vw, b.zipObject = Hw, b.zipObjectDeep = zw, b.zipWith = Ww, b.entries = Sh, b.entriesIn = Rh, b.extend = wh, b.extendWith = Gs, YA(b, b), b.add = VS, b.attempt = kh, b.camelCase = UP, b.capitalize = Oh, b.ceil = HS, b.clamp = HP, b.clone = kT, b.cloneDeep = NT, b.cloneDeepWith = LT, b.cloneWith = FT, b.conformsTo = jT, b.deburr = Dh, b.defaultTo = mS, b.divide = zS, b.endsWith = YP, b.eq = Jn, b.escape = GP, b.escapeRegExp = KP, b.every = eT, b.find = nT, b.findIndex = oh, b.findKey = pP, b.findLast = rT, b.findLastIndex = ih, b.findLastKey = hP, b.floor = WS, b.forEach = uh, b.forEachRight = dh, b.forIn = CP, b.forInRight = EP, b.forOwn = mP, b.forOwnRight = IP, b.get = VA, b.gt = VT, b.gte = HT, b.has = vP, b.hasIn = HA, b.head = sh, b.identity = dn, b.includes = lT, b.indexOf = rw, b.inRange = zP, b.invoke = xP, b.isArguments = Bo, b.isArray = ke, b.isArrayBuffer = zT, b.isArrayLike = An, b.isArrayLikeObject = Tt, b.isBoolean = WT, b.isBuffer = Wr, b.isDate = UT, b.isElement = YT, b.isEmpty = GT, b.isEqual = KT, b.isEqualWith = _T, b.isError = LA, b.isFinite = qT, b.isFunction = Er, b.isInteger = Ih, b.isLength = Us, b.isMap = Bh, b.isMatch = JT, b.isMatchWith = $T, b.isNaN = XT, b.isNative = ZT, b.isNil = tP, b.isNull = eP, b.isNumber = Qh, b.isObject = mt, b.isObjectLike = vt, b.isPlainObject = la, b.isRegExp = jA, b.isSafeInteger = nP, b.isSet = vh, b.isString = Ys, b.isSymbol = Bn, b.isTypedArray = si, b.isUndefined = rP, b.isWeakMap = oP, b.isWeakSet = iP, b.join = lw, b.kebabCase = _P, b.last = jn, b.lastIndexOf = cw, b.lowerCase = qP, b.lowerFirst = JP, b.lt = aP, b.lte = sP, b.max = US, b.maxBy = YS, b.mean = GS, b.meanBy = KS, b.min = _S, b.minBy = qS, b.stubArray = KA, b.stubFalse = _A, b.stubObject = MS, b.stubString = kS, b.stubTrue = FS, b.multiply = JS, b.nth = Aw, b.noConflict = xS, b.noop = GA, b.now = Hs, b.pad = $P, b.padEnd = XP, b.padStart = ZP, b.parseInt = eS, b.random = WP, b.reduce = gT, b.reduceRight = fT, b.repeat = tS, b.replace = nS, b.result = DP, b.round = $S, b.runInContext = M, b.sample = hT, b.size = mT, b.snakeCase = rS, b.some = IT, b.sortedIndex = Cw, b.sortedIndexBy = Ew, b.sortedIndexOf = mw, b.sortedLastIndex = Iw, b.sortedLastIndexBy = Bw, b.sortedLastIndexOf = Qw, b.startCase = iS, b.startsWith = aS, b.subtract = XS, b.sum = ZS, b.sumBy = eR, b.template = sS, b.times = NS, b.toFinite = mr, b.toInteger = Le, b.toLength = yh, b.toLower = lS, b.toNumber = Vn, b.toSafeInteger = lP, b.toString = Ze, b.toUpper = cS, b.trim = AS, b.trimEnd = uS, b.trimStart = dS, b.truncate = gS, b.unescape = fS, b.uniqueId = jS, b.upperCase = pS, b.upperFirst = zA, b.each = uh, b.eachRight = dh, b.first = sh, YA(b, function() {
|
|
6984
6984
|
var o = {};
|
|
6985
6985
|
return tr(b, function(a, u) {
|
|
6986
|
-
|
|
6986
|
+
at.call(b.prototype, u) || (o[u] = a);
|
|
6987
6987
|
}), o;
|
|
6988
6988
|
}(), { chain: !1 }), b.VERSION = r, Mn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(o) {
|
|
6989
6989
|
b[o].placeholder = b;
|
|
@@ -7069,7 +7069,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
7069
7069
|
var u = b[a];
|
|
7070
7070
|
if (u) {
|
|
7071
7071
|
var p = u.name + "";
|
|
7072
|
-
|
|
7072
|
+
at.call(ni, p) || (ni[p] = []), ni[p].push({ name: a, func: u });
|
|
7073
7073
|
}
|
|
7074
7074
|
}), ni[Os(n, T).name] = [{
|
|
7075
7075
|
name: "wrapper",
|
|
@@ -7079,7 +7079,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
7079
7079
|
go ? ((go.exports = Zo)._ = Zo, Uc._ = Zo) : Kt._ = Zo;
|
|
7080
7080
|
}).call(Wn);
|
|
7081
7081
|
})(vl, vl.exports);
|
|
7082
|
-
var
|
|
7082
|
+
var st = vl.exports;
|
|
7083
7083
|
const hC = (e) => function() {
|
|
7084
7084
|
return e.apply(this, arguments);
|
|
7085
7085
|
}, Ma = c.shape({
|
|
@@ -7304,7 +7304,7 @@ const Ar = () => kt(RI), wM = ["e-", "entities/"], TM = (e) => {
|
|
|
7304
7304
|
}, kI = (e) => e ? e.type === "item" ? !0 : (e.children && (e.children = e.children.filter(kI)), e.children && e.children.length > 0) : !1, FI = (e) => (e.children && e.children.forEach((t) => {
|
|
7305
7305
|
t.parent = e, FI(t);
|
|
7306
7306
|
}), e), RM = ({ userGroups: e, resources: t, permissions: n, translate: r }) => {
|
|
7307
|
-
const i = (f) => (f.title = r(f.title, { _: f.title }), f.children && f.children.forEach((C) => i(C)), f), s = Object.keys(t), l = (f, C) => (f.children && (f.children = f.children.filter((h) => h.resource === !1 ? !0 : h.type === "item" ? C.includes(h.id) : (l(h, C), h.children && h.children.length > 0))), f), A =
|
|
7307
|
+
const i = (f) => (f.title = r(f.title, { _: f.title }), f.children && f.children.forEach((C) => i(C)), f), s = Object.keys(t), l = (f, C) => (f.children && (f.children = f.children.filter((h) => h.resource === !1 ? !0 : h.type === "item" ? C.includes(h.id) : (l(h, C), h.children && h.children.length > 0))), f), A = st.cloneDeep(e).map((f) => ({
|
|
7308
7308
|
type: "group",
|
|
7309
7309
|
icon: Vh,
|
|
7310
7310
|
children: [],
|
|
@@ -7349,7 +7349,7 @@ const Ar = () => kt(RI), wM = ["e-", "entities/"], TM = (e) => {
|
|
|
7349
7349
|
return Je(() => {
|
|
7350
7350
|
var C;
|
|
7351
7351
|
const s = i.split("/").filter((h) => h);
|
|
7352
|
-
let l =
|
|
7352
|
+
let l = st.cloneDeep(n), A = i, d = r(l, i);
|
|
7353
7353
|
if (d || (d = r(l, s[s.length - 1]), A = d ? d.id : A), !d)
|
|
7354
7354
|
for (let h = s.length; h >= 0; h--) {
|
|
7355
7355
|
let E = s.slice(0, h).join("/");
|
|
@@ -10218,7 +10218,7 @@ function Qi(e) {
|
|
|
10218
10218
|
return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
10219
10219
|
}
|
|
10220
10220
|
function nF(e, t, n) {
|
|
10221
|
-
return
|
|
10221
|
+
return ot(
|
|
10222
10222
|
(r) => {
|
|
10223
10223
|
r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Qi(n) && (n.current = r));
|
|
10224
10224
|
},
|
|
@@ -14295,7 +14295,7 @@ const o3 = (e, t) => pg(e) ? new r3(t, { enableHardwareAcceleration: !1 }) : new
|
|
|
14295
14295
|
return ((n - e) % r + r) % r + e;
|
|
14296
14296
|
};
|
|
14297
14297
|
function DE(...e) {
|
|
14298
|
-
const t = to(0), [n, r] = lt(e[t.current]), i =
|
|
14298
|
+
const t = to(0), [n, r] = lt(e[t.current]), i = ot(
|
|
14299
14299
|
(s) => {
|
|
14300
14300
|
t.current = typeof s != "number" ? s3(0, e.length, t.current + 1) : s, r(e[t.current]);
|
|
14301
14301
|
},
|
|
@@ -19947,7 +19947,7 @@ const ZQ = () => {
|
|
|
19947
19947
|
i((v) => !v);
|
|
19948
19948
|
}, l = (v) => {
|
|
19949
19949
|
n.current && n.current.contains(v.target) || i(!1);
|
|
19950
|
-
}, A = e.palette.mode === "dark" ? "grey.200" : "grey.300", d = !1, g = rR(), f = bd(), C = ym(), h =
|
|
19950
|
+
}, A = e.palette.mode === "dark" ? "grey.200" : "grey.300", d = !1, g = rR(), f = bd(), C = ym(), h = ot(() => {
|
|
19951
19951
|
g();
|
|
19952
19952
|
}, [C, d, g]), [E, I] = lt(null);
|
|
19953
19953
|
return Ft(() => {
|
|
@@ -20406,7 +20406,7 @@ const Or = /* @__PURE__ */ Ga(Z6), bc = ({ resource: e, selected: t, notificatio
|
|
|
20406
20406
|
i("resources.notifications.messages.readed.error", "warning");
|
|
20407
20407
|
}
|
|
20408
20408
|
}
|
|
20409
|
-
), A =
|
|
20409
|
+
), A = ot(() => l(), [l]), [d] = Wl(), g = Je(
|
|
20410
20410
|
() => Or(n.created).locale(d).fromNow(),
|
|
20411
20411
|
[n, d]
|
|
20412
20412
|
);
|
|
@@ -21291,7 +21291,7 @@ const vj = { display: "none" }, wc = ({
|
|
|
21291
21291
|
const E = er(), I = Yd(), B = {
|
|
21292
21292
|
component: vr,
|
|
21293
21293
|
to: { ...I, pathname: s }
|
|
21294
|
-
}, v = ve.isValidElement(r) ? r : E(r, { _: r }), T =
|
|
21294
|
+
}, v = ve.isValidElement(r) ? r : E(r, { _: r }), T = ot(() => d(s), [d, s]);
|
|
21295
21295
|
return e === "header" ? (() => /* @__PURE__ */ ae(ko, { selected: A, ...l ? B : {}, onClick: T, children: [
|
|
21296
21296
|
i && /* @__PURE__ */ m($r, { children: i }),
|
|
21297
21297
|
/* @__PURE__ */ m(Fo, { primary: v }),
|
|
@@ -22613,9 +22613,9 @@ var Pa = globalThis && globalThis.__assign || function() {
|
|
|
22613
22613
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
22614
22614
|
return n;
|
|
22615
22615
|
}, xv = function(e) {
|
|
22616
|
-
var t, n = e.className, r = e.isOpen, i = r === void 0 ? !1 : r, s = e.loading, l = e.title, A = e.content, d = e.cancel, g = d === void 0 ? "ra.action.cancel" : d, f = e.confirm, C = f === void 0 ? "ra.action.confirm" : f, h = e.confirmColor, E = h === void 0 ? "primary" : h, I = e.ConfirmIcon, B = I === void 0 ? bv : I, v = e.CancelIcon, T = v === void 0 ? yv : v, R = e.onClose, w = e.onConfirm, x = e.translateOptions, P = x === void 0 ? {} : x, L = oW(e, ["className", "isOpen", "loading", "title", "content", "cancel", "confirm", "confirmColor", "ConfirmIcon", "CancelIcon", "onClose", "onConfirm", "translateOptions"]), N = Ya(), U =
|
|
22616
|
+
var t, n = e.className, r = e.isOpen, i = r === void 0 ? !1 : r, s = e.loading, l = e.title, A = e.content, d = e.cancel, g = d === void 0 ? "ra.action.cancel" : d, f = e.confirm, C = f === void 0 ? "ra.action.confirm" : f, h = e.confirmColor, E = h === void 0 ? "primary" : h, I = e.ConfirmIcon, B = I === void 0 ? bv : I, v = e.CancelIcon, T = v === void 0 ? yv : v, R = e.onClose, w = e.onConfirm, x = e.translateOptions, P = x === void 0 ? {} : x, L = oW(e, ["className", "isOpen", "loading", "title", "content", "cancel", "confirm", "confirmColor", "ConfirmIcon", "CancelIcon", "onClose", "onConfirm", "translateOptions"]), N = Ya(), U = ot(function(z) {
|
|
22617
22617
|
z.stopPropagation(), w(z);
|
|
22618
|
-
}, [w]), K =
|
|
22618
|
+
}, [w]), K = ot(function(z) {
|
|
22619
22619
|
z.stopPropagation();
|
|
22620
22620
|
}, []);
|
|
22621
22621
|
return D.createElement(
|
|
@@ -22995,7 +22995,7 @@ var vd = globalThis && globalThis.__assign || function() {
|
|
|
22995
22995
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
22996
22996
|
return n;
|
|
22997
22997
|
}, Zg = function(e) {
|
|
22998
|
-
var t = e.addButton, n = t === void 0 ? D.createElement(A9, null) : t, r = e.removeButton, i = r === void 0 ? D.createElement(p9, null) : r, s = e.reOrderButtons, l = s === void 0 ? D.createElement(b9, null) : s, A = e.children, d = e.className, g = e.resource, f = e.source, C = e.disabled, h = e.disableAdd, E = e.disableClear, I = e.disableRemove, B = e.disableReordering, v = e.inline, T = e.getItemLabel, R = T === void 0 ? !1 : T, w = e.fullWidth, x = e.sx, P = lt(!1), L = P[0], N = P[1], U = r9(e), K = U.append, z = U.fields, oe = U.move, pe = U.remove, ee = U.replace, V = Ya(), H = Gd(e), _ = to({}), Y =
|
|
22998
|
+
var t = e.addButton, n = t === void 0 ? D.createElement(A9, null) : t, r = e.removeButton, i = r === void 0 ? D.createElement(p9, null) : r, s = e.reOrderButtons, l = s === void 0 ? D.createElement(b9, null) : s, A = e.children, d = e.className, g = e.resource, f = e.source, C = e.disabled, h = e.disableAdd, E = e.disableClear, I = e.disableRemove, B = e.disableReordering, v = e.inline, T = e.getItemLabel, R = T === void 0 ? !1 : T, w = e.fullWidth, x = e.sx, P = lt(!1), L = P[0], N = P[1], U = r9(e), K = U.append, z = U.fields, oe = U.move, pe = U.remove, ee = U.replace, V = Ya(), H = Gd(e), _ = to({}), Y = ot(function(he) {
|
|
22999
22999
|
pe(he);
|
|
23000
23000
|
}, [pe]);
|
|
23001
23001
|
if (z.length > 0) {
|
|
@@ -23006,7 +23006,7 @@ var vd = globalThis && globalThis.__assign || function() {
|
|
|
23006
23006
|
for (var W in _.current)
|
|
23007
23007
|
_.current[W] = null;
|
|
23008
23008
|
}
|
|
23009
|
-
var F =
|
|
23009
|
+
var F = ot(function(he) {
|
|
23010
23010
|
he === void 0 && (he = void 0);
|
|
23011
23011
|
var fe = he;
|
|
23012
23012
|
he == null && (fe = _.current, Ro.count(A) === 1 && D.isValidElement(Ro.only(A)) && // @ts-ignore
|
|
@@ -23018,9 +23018,9 @@ var vd = globalThis && globalThis.__assign || function() {
|
|
|
23018
23018
|
return function(fe) {
|
|
23019
23019
|
F(), he && he(fe);
|
|
23020
23020
|
};
|
|
23021
|
-
}, se =
|
|
23021
|
+
}, se = ot(function(he, fe) {
|
|
23022
23022
|
oe(he, fe);
|
|
23023
|
-
}, [oe]), le =
|
|
23023
|
+
}, [oe]), le = ot(function() {
|
|
23024
23024
|
ee([]), N(!1);
|
|
23025
23025
|
}, [ee]), ge = e9(H, f), ue = Je(function() {
|
|
23026
23026
|
return {
|
|
@@ -23185,7 +23185,7 @@ const tf = (e, t) => {
|
|
|
23185
23185
|
onSuccess: s,
|
|
23186
23186
|
onError: l
|
|
23187
23187
|
}) => {
|
|
23188
|
-
const A = yO(), d = Sn(), g = yd(), f = Fi(), C =
|
|
23188
|
+
const A = yO(), d = Sn(), g = yd(), f = Fi(), C = ot(
|
|
23189
23189
|
(B) => {
|
|
23190
23190
|
const T = Date.now();
|
|
23191
23191
|
A.setQueryData([d, "getOne", { id: B.id }], B), A.setQueriesData([d, "getList"], (R) => M9(R, B), {
|
|
@@ -23200,7 +23200,7 @@ const tf = (e, t) => {
|
|
|
23200
23200
|
onSuccess: C,
|
|
23201
23201
|
onError: l
|
|
23202
23202
|
}
|
|
23203
|
-
}), I =
|
|
23203
|
+
}), I = ot(
|
|
23204
23204
|
(B) => {
|
|
23205
23205
|
i ? i(B, e) : h && h(B);
|
|
23206
23206
|
},
|
|
@@ -23265,7 +23265,7 @@ const k9 = {
|
|
|
23265
23265
|
onError: f,
|
|
23266
23266
|
...C
|
|
23267
23267
|
}) => {
|
|
23268
|
-
const [h, E] = lt(!1), I = er(), B = Sn(), { openDialog: v, closeDialog: T } = Vi(), R =
|
|
23268
|
+
const [h, E] = lt(!1), I = er(), B = Sn(), { openDialog: v, closeDialog: T } = Vi(), R = ot(() => v(B, () => E(!0)), [v, B]), w = ot(() => T(B, () => E(!1)), [T, B]), x = Tn((P) => P.breakpoints.down("md"));
|
|
23269
23269
|
return /* @__PURE__ */ ae(fn, { children: [
|
|
23270
23270
|
x ? /* @__PURE__ */ m(
|
|
23271
23271
|
F9,
|
|
@@ -23315,7 +23315,7 @@ Lv.propTypes = {
|
|
|
23315
23315
|
onError: c.func
|
|
23316
23316
|
};
|
|
23317
23317
|
const jv = ({ onClose: e, children: t }) => {
|
|
23318
|
-
const n = Fi(), r = Yt(), i = Sn(), { id: s } = r, { isLoading: l, data: A } = dR(i, { id: s }), d =
|
|
23318
|
+
const n = Fi(), r = Yt(), i = Sn(), { id: s } = r, { isLoading: l, data: A } = dR(i, { id: s }), d = ot(() => {
|
|
23319
23319
|
n("ra.notification.updated", {
|
|
23320
23320
|
type: "info",
|
|
23321
23321
|
messageArgs: {
|
|
@@ -23353,10 +23353,10 @@ jv.propTypes = {
|
|
|
23353
23353
|
onClose: c.func
|
|
23354
23354
|
};
|
|
23355
23355
|
const Vv = ({ fullWidth: e, maxWidth: t, label: n, ...r }) => {
|
|
23356
|
-
const [i, s] = lt(!1), { openDialog: l, closeDialog: A } = Vi(), d = Sn(), g =
|
|
23356
|
+
const [i, s] = lt(!1), { openDialog: l, closeDialog: A } = Vi(), d = Sn(), g = ot(
|
|
23357
23357
|
() => l(d, () => s(!0)),
|
|
23358
23358
|
[l, d]
|
|
23359
|
-
), f =
|
|
23359
|
+
), f = ot(
|
|
23360
23360
|
() => A(d, () => s(!1)),
|
|
23361
23361
|
[A, d]
|
|
23362
23362
|
);
|
|
@@ -23376,7 +23376,7 @@ Vv.propTypes = {
|
|
|
23376
23376
|
label: c.string
|
|
23377
23377
|
};
|
|
23378
23378
|
const N9 = ({ label: e = "ra.auth.sign_in", ...t }) => {
|
|
23379
|
-
const n = Yt(), [r, i] = lt(!1), s = ym(), l =
|
|
23379
|
+
const n = Yt(), [r, i] = lt(!1), s = ym(), l = ot(
|
|
23380
23380
|
(A) => {
|
|
23381
23381
|
A.stopPropagation(), A.preventDefault(), i(!0), s.impersonate(n == null ? void 0 : n.id).then(() => {
|
|
23382
23382
|
i(!1), document.location.href = "/";
|
|
@@ -23424,16 +23424,16 @@ const fm = ie("div", {
|
|
|
23424
23424
|
display: "inline-block"
|
|
23425
23425
|
}), zv = (e) => {
|
|
23426
23426
|
var f;
|
|
23427
|
-
const { className: t, emptyText: n, source: r, title: i, ...s } = e, l = Gd(e), A =
|
|
23427
|
+
const { className: t, emptyText: n, source: r, title: i, ...s } = e, l = Gd(e), A = st.get(l, r), d = Ya();
|
|
23428
23428
|
if (!A)
|
|
23429
23429
|
return n ? /* @__PURE__ */ m(we, { component: "span", variant: "body2", className: t, ...s, children: n && d(n, { _: n }) }) : /* @__PURE__ */ m(fm, { className: t, ...s });
|
|
23430
23430
|
if (Array.isArray(A))
|
|
23431
23431
|
return /* @__PURE__ */ m(L9, { className: t, ...s, children: A.map((C, h) => {
|
|
23432
23432
|
var I;
|
|
23433
|
-
const E = i instanceof String ? (I =
|
|
23433
|
+
const E = i instanceof String ? (I = st.get(C, i)) == null ? void 0 : I.toString() : i;
|
|
23434
23434
|
return /* @__PURE__ */ m("li", { children: E }, h);
|
|
23435
23435
|
}) });
|
|
23436
|
-
const g = i instanceof String ? (f =
|
|
23436
|
+
const g = i instanceof String ? (f = st.get(l, i)) == null ? void 0 : f.toString() : i;
|
|
23437
23437
|
return /* @__PURE__ */ m(fm, { className: t, ...s, children: g });
|
|
23438
23438
|
};
|
|
23439
23439
|
zv.propTypes = {
|
|
@@ -23448,20 +23448,20 @@ zv.propTypes = {
|
|
|
23448
23448
|
rel: c.string
|
|
23449
23449
|
};
|
|
23450
23450
|
const Wv = ({ entityId: e, property: t, disabled: n, userResource: r = "entities/user", ...i }) => {
|
|
23451
|
-
const [s, l] = lt(null), A = Yt(i), d = bd(), g = Sn(), f =
|
|
23451
|
+
const [s, l] = lt(null), A = Yt(i), d = bd(), g = Sn(), f = ot(
|
|
23452
23452
|
async (E) => {
|
|
23453
23453
|
E.preventDefault(), E.stopPropagation();
|
|
23454
|
-
const I =
|
|
23454
|
+
const I = st.get(A, i == null ? void 0 : i.source), B = g.replace("entities/", ""), v = await d.getFile(
|
|
23455
23455
|
`/attachments/${B}/${e || (A == null ? void 0 : A.id)}/${t || (i == null ? void 0 : i.source)}/${(I == null ? void 0 : I.id) || (A == null ? void 0 : A.id)}`
|
|
23456
23456
|
), T = document.createElement("a");
|
|
23457
|
-
T.href = v, T.download =
|
|
23457
|
+
T.href = v, T.download = st.get(A, (i == null ? void 0 : i.title) || (i == null ? void 0 : i.source)), T.click();
|
|
23458
23458
|
},
|
|
23459
23459
|
[d, A, e, g, t, i == null ? void 0 : i.source, i == null ? void 0 : i.title]
|
|
23460
23460
|
), C = Je(
|
|
23461
23461
|
() => ({
|
|
23462
23462
|
...A,
|
|
23463
|
-
[i == null ? void 0 : i.source]: (A == null ? void 0 : A.src) ||
|
|
23464
|
-
[i == null ? void 0 : i.title]: (A == null ? void 0 : A.title) ||
|
|
23463
|
+
[i == null ? void 0 : i.source]: (A == null ? void 0 : A.src) || st.get(A, i == null ? void 0 : i.source),
|
|
23464
|
+
[i == null ? void 0 : i.title]: (A == null ? void 0 : A.title) || st.get(A, (i == null ? void 0 : i.title) || (i == null ? void 0 : i.source))
|
|
23465
23465
|
}),
|
|
23466
23466
|
[A, i == null ? void 0 : i.source, i == null ? void 0 : i.title]
|
|
23467
23467
|
), h = er();
|
|
@@ -23475,9 +23475,9 @@ const Wv = ({ entityId: e, property: t, disabled: n, userResource: r = "entities
|
|
|
23475
23475
|
record: C,
|
|
23476
23476
|
onClick: f,
|
|
23477
23477
|
title: /* @__PURE__ */ ae(Fe, { sx: { cursor: "pointer" }, children: [
|
|
23478
|
-
/* @__PURE__ */ m(we, { variant: "subtitle1", children:
|
|
23478
|
+
/* @__PURE__ */ m(we, { variant: "subtitle1", children: st.get(C, (i == null ? void 0 : i.title) || (i == null ? void 0 : i.source)) }),
|
|
23479
23479
|
/* @__PURE__ */ ae(we, { variant: "caption", color: "secondary", children: [
|
|
23480
|
-
|
|
23480
|
+
st.get(C, "sizeDescription"),
|
|
23481
23481
|
s && " | ",
|
|
23482
23482
|
s && h("ra.attachment.info", {
|
|
23483
23483
|
user: s == null ? void 0 : s.name,
|
|
@@ -23605,7 +23605,7 @@ const H9 = /* @__PURE__ */ Ga(V9);
|
|
|
23605
23605
|
Or.extend(H9);
|
|
23606
23606
|
const of = (e) => {
|
|
23607
23607
|
const t = Yt(e), [n] = Wl(), r = Je(
|
|
23608
|
-
() => Or(
|
|
23608
|
+
() => Or(st.get(t, e == null ? void 0 : e.source)).locale(n).fromNow(),
|
|
23609
23609
|
[t, e == null ? void 0 : e.source, n]
|
|
23610
23610
|
);
|
|
23611
23611
|
return /* @__PURE__ */ ae(zo, { children: [
|
|
@@ -23652,10 +23652,10 @@ const z9 = ie(Td, {
|
|
|
23652
23652
|
name: "RaApplicaFileField",
|
|
23653
23653
|
slot: "root"
|
|
23654
23654
|
})(() => ({})), qv = ({ ...e }) => {
|
|
23655
|
-
const t = Yt(e), n =
|
|
23655
|
+
const t = Yt(e), n = ot(
|
|
23656
23656
|
(r) => {
|
|
23657
23657
|
r.preventDefault(), r.stopPropagation();
|
|
23658
|
-
const i =
|
|
23658
|
+
const i = st.get(t, `_${e == null ? void 0 : e.source}`, st.get(t, e == null ? void 0 : e.source)), s = st.get(t, (e == null ? void 0 : e.title) || (e == null ? void 0 : e.source)) || (e == null ? void 0 : e.title), l = document.createElement("a");
|
|
23659
23659
|
l.href = i, l.download = s, l.click();
|
|
23660
23660
|
},
|
|
23661
23661
|
[e == null ? void 0 : e.source, t, e == null ? void 0 : e.title]
|
|
@@ -23685,7 +23685,7 @@ const U9 = ie("div")(({ theme: e }) => ({
|
|
|
23685
23685
|
textOverflow: "inherit"
|
|
23686
23686
|
}
|
|
23687
23687
|
})), af = ({ source: e, defaultValue: t, ...n }) => {
|
|
23688
|
-
const r = Yt(n), i =
|
|
23688
|
+
const r = Yt(n), i = st.get(r, e, t);
|
|
23689
23689
|
return /* @__PURE__ */ m("span", { dangerouslySetInnerHTML: { __html: i && i !== null ? i : t } });
|
|
23690
23690
|
};
|
|
23691
23691
|
af.propTypes = {
|
|
@@ -23702,7 +23702,7 @@ Jv.propTypes = {
|
|
|
23702
23702
|
children: c.oneOfType([c.element, c.arrayOf(c.element)])
|
|
23703
23703
|
};
|
|
23704
23704
|
const $v = ({ label: e, source: t, defaultValue: n, children: r, tooltip: i, ...s }) => {
|
|
23705
|
-
const { getCurrentDialog: l } = Vi(), A = Yt(s), d = Sn(s), g = l(), f = Je(() => !i || i === !1 ? !1 : typeof i == "function" ? i(A) : typeof i == "string" ?
|
|
23705
|
+
const { getCurrentDialog: l } = Vi(), A = Yt(s), d = Sn(s), g = l(), f = Je(() => !i || i === !1 ? !1 : typeof i == "function" ? i(A) : typeof i == "string" ? st.get(A, i, i) : i, [A, i]);
|
|
23706
23706
|
return /* @__PURE__ */ m(Jv, { title: f, children: /* @__PURE__ */ ae(zo, { children: [
|
|
23707
23707
|
/* @__PURE__ */ m(Wd, { children: /* @__PURE__ */ m(Pd, { label: e, source: t, resource: g || d }) }),
|
|
23708
23708
|
/* @__PURE__ */ m(U9, { ...s, children: ve.cloneElement(r, {
|
|
@@ -23776,7 +23776,7 @@ rs.propTypes = {
|
|
|
23776
23776
|
border: c.bool
|
|
23777
23777
|
};
|
|
23778
23778
|
const G9 = ({ source: e, ...t }) => {
|
|
23779
|
-
const n = Yt(t), r =
|
|
23779
|
+
const n = Yt(t), r = st.get(n, e, 0), i = r / 1024, s = i / 1024, l = s / 1024, A = l > 1 ? `${l.toFixed(2)} GB` : s > 1 ? `${s.toFixed(2)} MB` : i > 1 ? `${i.toFixed(2)} KB` : `${r.toFixed(2)} B`;
|
|
23780
23780
|
return /* @__PURE__ */ m(we, { component: "span", variant: "body1", ...t, children: A });
|
|
23781
23781
|
};
|
|
23782
23782
|
G9.propTypes = {
|
|
@@ -24115,7 +24115,7 @@ const nU = ie(_l, {
|
|
|
24115
24115
|
const r = eI({ name: n.source }), i = Yt(n), { source: s } = n, l = Je(() => {
|
|
24116
24116
|
if (r && (r != null && r.title))
|
|
24117
24117
|
return r == null ? void 0 : r.title;
|
|
24118
|
-
const A =
|
|
24118
|
+
const A = st.get(i, s);
|
|
24119
24119
|
if (A) {
|
|
24120
24120
|
const d = A.split("__");
|
|
24121
24121
|
return d.length > 0 ? d[d.length - 1] : A;
|
|
@@ -24128,8 +24128,8 @@ const nU = ie(_l, {
|
|
|
24128
24128
|
source: s,
|
|
24129
24129
|
record: {
|
|
24130
24130
|
...i,
|
|
24131
|
-
[s]: (r == null ? void 0 : r.title) ||
|
|
24132
|
-
[`_${s}`]: (r == null ? void 0 : r.src) ||
|
|
24131
|
+
[s]: (r == null ? void 0 : r.title) || st.get(i, s),
|
|
24132
|
+
[`_${s}`]: (r == null ? void 0 : r.src) || st.get(i, `_${s}`),
|
|
24133
24133
|
[t || s]: l
|
|
24134
24134
|
}
|
|
24135
24135
|
}) }) });
|
|
@@ -24151,8 +24151,8 @@ const ob = ({ children: e, title: t, ...n }) => {
|
|
|
24151
24151
|
source: s,
|
|
24152
24152
|
record: {
|
|
24153
24153
|
...i,
|
|
24154
|
-
[s]: (r == null ? void 0 : r.title) ||
|
|
24155
|
-
[`_${s}`]: (r == null ? void 0 : r.src) ||
|
|
24154
|
+
[s]: (r == null ? void 0 : r.title) || st.get(i, s),
|
|
24155
|
+
[`_${s}`]: (r == null ? void 0 : r.src) || st.get(i, `_${s}`)
|
|
24156
24156
|
}
|
|
24157
24157
|
}) }) });
|
|
24158
24158
|
};
|
|
@@ -24184,7 +24184,7 @@ ib.defaultProps = {
|
|
|
24184
24184
|
...ft.defaultProps
|
|
24185
24185
|
};
|
|
24186
24186
|
const oU = ({ source: e, minWidth: t = 300, children: n }) => {
|
|
24187
|
-
const r = Sn(), i = Yt(), [s, l] = lt(
|
|
24187
|
+
const r = Sn(), i = Yt(), [s, l] = lt(st.get(i, e, "")), [A, d] = lt(!1), g = ot((I) => l(I.target.value), []), f = bd(), C = ot(
|
|
24188
24188
|
(I) => {
|
|
24189
24189
|
I.key === "Enter" && (d(!0), f.update(r, {
|
|
24190
24190
|
id: i.id,
|
|
@@ -24196,8 +24196,8 @@ const oU = ({ source: e, minWidth: t = 300, children: n }) => {
|
|
|
24196
24196
|
}).then(() => d(!1)));
|
|
24197
24197
|
},
|
|
24198
24198
|
[s, f, r, i, e]
|
|
24199
|
-
), h =
|
|
24200
|
-
|
|
24199
|
+
), h = ot(() => {
|
|
24200
|
+
st.get(i, e) !== s && (d(!0), f.update(r, {
|
|
24201
24201
|
id: i.id,
|
|
24202
24202
|
data: {
|
|
24203
24203
|
...i,
|
|
@@ -24205,7 +24205,7 @@ const oU = ({ source: e, minWidth: t = 300, children: n }) => {
|
|
|
24205
24205
|
_changed: e
|
|
24206
24206
|
}
|
|
24207
24207
|
}).then(() => d(!1)));
|
|
24208
|
-
}, [s, f, r, e, i]), E =
|
|
24208
|
+
}, [s, f, r, e, i]), E = ot(
|
|
24209
24209
|
(I) => {
|
|
24210
24210
|
d(!0), f.update(r, {
|
|
24211
24211
|
id: i.id,
|
|
@@ -24218,7 +24218,7 @@ const oU = ({ source: e, minWidth: t = 300, children: n }) => {
|
|
|
24218
24218
|
},
|
|
24219
24219
|
[f, r, e, i]
|
|
24220
24220
|
);
|
|
24221
|
-
return Ft(() => l(
|
|
24221
|
+
return Ft(() => l(st.get(i, e)), [i, e]), n ? ve.cloneElement(n, {
|
|
24222
24222
|
...n.props,
|
|
24223
24223
|
source: e,
|
|
24224
24224
|
value: s,
|
|
@@ -24567,7 +24567,7 @@ const CU = () => {
|
|
|
24567
24567
|
onError: () => t("ra.notification.readed_error", "warning"),
|
|
24568
24568
|
onFailure: () => t("ra.notification.readed_error", "warning")
|
|
24569
24569
|
}
|
|
24570
|
-
), f =
|
|
24570
|
+
), f = ot(() => {
|
|
24571
24571
|
d();
|
|
24572
24572
|
}, [d]);
|
|
24573
24573
|
return /* @__PURE__ */ m(
|
|
@@ -24593,7 +24593,7 @@ const CU = () => {
|
|
|
24593
24593
|
},
|
|
24594
24594
|
onFailure: () => t("resources.notifications.messages.unreaded.error", "warning")
|
|
24595
24595
|
}
|
|
24596
|
-
), f =
|
|
24596
|
+
), f = ot(() => {
|
|
24597
24597
|
d();
|
|
24598
24598
|
}, [d]);
|
|
24599
24599
|
return /* @__PURE__ */ m(
|
|
@@ -24627,7 +24627,7 @@ const CU = () => {
|
|
|
24627
24627
|
i("ra.notification.readed_error", "warning");
|
|
24628
24628
|
}
|
|
24629
24629
|
}
|
|
24630
|
-
), g =
|
|
24630
|
+
), g = ot(() => d(), [d]);
|
|
24631
24631
|
return /* @__PURE__ */ ae("div", { onClick: g, style: { cursor: "pointer" }, role: "button", tabIndex: 0, children: [
|
|
24632
24632
|
/* @__PURE__ */ m(we, { variant: "subtitle1", children: /* @__PURE__ */ ae(Fe, { fontWeight: "bold", children: [
|
|
24633
24633
|
" ",
|
|
@@ -24657,7 +24657,7 @@ const CU = () => {
|
|
|
24657
24657
|
density: t.palette.mode === "dark" ? 0.5 : 0.9
|
|
24658
24658
|
}),
|
|
24659
24659
|
[t.palette.mode]
|
|
24660
|
-
), s =
|
|
24660
|
+
), s = ot(
|
|
24661
24661
|
(l) => ({
|
|
24662
24662
|
backgroundColor: l != null && l.readed ? r(t.palette.primary[n], i) : r(t.palette.secondary[n], i)
|
|
24663
24663
|
}),
|
|
@@ -24688,7 +24688,7 @@ const CU = () => {
|
|
|
24688
24688
|
buttonProps: f,
|
|
24689
24689
|
...C
|
|
24690
24690
|
}) => {
|
|
24691
|
-
const { getCurrentDialog: h } = Vi(), E = Zm(C), I = h(), B = Gd(), v = r || B, T =
|
|
24691
|
+
const { getCurrentDialog: h } = Vi(), E = Zm(C), I = h(), B = Gd(), v = r || B, T = st.get(v, e || "");
|
|
24692
24692
|
return /* @__PURE__ */ ae(
|
|
24693
24693
|
Zn,
|
|
24694
24694
|
{
|
|
@@ -27852,7 +27852,7 @@ function jY() {
|
|
|
27852
27852
|
};
|
|
27853
27853
|
}
|
|
27854
27854
|
function VY(e) {
|
|
27855
|
-
return
|
|
27855
|
+
return st.merge(
|
|
27856
27856
|
KU(e),
|
|
27857
27857
|
_U(e),
|
|
27858
27858
|
qU(e),
|
|
@@ -28059,7 +28059,7 @@ const HY = ({ apiUrl: e, endpoint: t, locale: n, message: r, bodyBuilder: i }) =
|
|
|
28059
28059
|
f.logError() && HY({ apiUrl: t, endpoint: n, message: g, bodyBuilder: s }), f.displayError() ? l.apply(console, arguments) : console.debug.apply(console, arguments);
|
|
28060
28060
|
};
|
|
28061
28061
|
}, [t, r, s, n, i, e]), !0), WY = ({ languages: e, defaultLocale: t, allowMissing: n = !1 }) => PO(
|
|
28062
|
-
(r) =>
|
|
28062
|
+
(r) => st.get(e, r, {}),
|
|
28063
28063
|
t,
|
|
28064
28064
|
[{ locale: t }],
|
|
28065
28065
|
{ allowMissing: n }
|
package/dist/react-admin.umd.js
CHANGED
|
@@ -66,7 +66,7 @@ const theme1 = createTheme({ palette: {
|
|
|
66
66
|
const theme2 = createTheme({ palette: {
|
|
67
67
|
primary: { main: green[500] },
|
|
68
68
|
} });`:So(12,y?` (${y})`:"",JSON.stringify(m.main)));return Pf(m,"light",R,r),Pf(m,"dark",w,r),m.contrastText||(m.contrastText=E(m.main)),m},I={dark:wc,light:Tf};return process.env.NODE_ENV!=="production"&&(I[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),rr(W({common:W({},ji),mode:t,primary:C({color:a,name:"primary"}),secondary:C({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:A,name:"error"}),warning:C({color:f,name:"warning"}),info:C({color:d,name:"info"}),success:C({color:g,name:"success"}),grey:Xb,contrastThreshold:n,getContrastText:E,augmentColor:C,tonalOffset:r},I[t]),i)}const iv=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sv(e){return Math.round(e*1e5)/1e5}const Sf={textTransform:"uppercase"},Of='"Roboto", "Helvetica", "Arial", sans-serif';function av(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Of,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:A=500,fontWeightBold:d=700,htmlFontSize:g=16,allVariants:f,pxToRem:E}=n,C=He(n,iv);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof g!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const I=i/14,B=E||(T=>`${T/g*I}rem`),m=(T,R,w,x,O)=>W({fontFamily:r,fontWeight:T,fontSize:B(R),lineHeight:w},r===Of?{letterSpacing:`${sv(x/R)}em`}:{},O,f),y={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(l,48,1.167,0),h4:m(l,34,1.235,.25),h5:m(l,24,1.334,0),h6:m(A,20,1.6,.15),subtitle1:m(l,16,1.75,.15),subtitle2:m(A,14,1.57,.1),body1:m(l,16,1.5,.15),body2:m(l,14,1.43,.15),button:m(A,14,1.75,.4,Sf),caption:m(l,12,1.66,.4),overline:m(l,12,2.66,1,Sf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rr(W({htmlFontSize:g,pxToRem:B,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:A,fontWeightBold:d},y),C,{clone:!1})}const lv=.2,cv=.14,Av=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lv})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cv})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Av})`].join(",")}const uv=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],dv=["duration","easing","delay"],gv={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Df(e){return`${Math.round(e)}ms`}function pv(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function hv(e){const t=W({},gv,e.easing),n=W({},fv,e.duration);return W({getAutoHeightDuration:pv,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:A=t.easeInOut,delay:d=0}=a,g=He(a,dv);if(process.env.NODE_ENV!=="production"){const f=C=>typeof C=="string",E=C=>!isNaN(parseFloat(C));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!E(l)&&!f(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),f(A)||console.error('MUI: Argument "easing" must be a string.'),!E(d)&&!f(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(g).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(g).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof l=="string"?l:Df(l)} ${A} ${typeof d=="string"?d:Df(d)}`).join(",")}},e,{easing:t,duration:n})}const Cv={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ev=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Tc(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,l=He(e,Ev);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":So(18));const A=ov(r),d=yc(e);let g=rr(d,{mixins:Jb(d.breakpoints,n),palette:A,shadows:uv.slice(),typography:av(A,a),transitions:hv(i),zIndex:W({},Cv)});if(g=rr(g,l),g=t.reduce((f,E)=>rr(f,E),g),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(C,I)=>{let B;for(B in C){const m=C[B];if(f.indexOf(B)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const y=mt("",B);console.error([`MUI: The \`${I}\` component increases the CSS specificity of the \`${B}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
69
|
-
`))}C[B]={}}}};Object.keys(g.components).forEach(C=>{const I=g.components[C].styleOverrides;I&&C.indexOf("Mui")===0&&E(I,C)})}return g.unstable_sxConfig=W({},Js,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return Qc({sx:E,theme:this})},g}const Pc=Tc();function at(){const e=hf(Pc);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Si]||e}function xt({props:e,name:t}){return Ub({props:e,name:t,defaultTheme:Pc,themeId:Si})}const ea=e=>Xs(e)&&e!=="classes",ce=Bf({themeId:Si,defaultTheme:Pc,rootShouldForwardProp:ea}),Iv=["theme"];function Mf(e){let{theme:t}=e,n=He(e,Iv);const r=t[Si];return p.jsx($s,W({},n,{themeId:r?Si:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Mf.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const Rf=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Bv=ce("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Le(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},A={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},d={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...A,top:20},...e==="left-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...A,bottom:20},...e==="right-top"&&{...d,top:20},...e==="right-center"&&{...d,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...d,bottom:20}}});function mv(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const ta=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:A,transformOrigin:d}=mv(n);return p.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:A,transformOrigin:d,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&p.jsx(Bv,{arrow:n}),t]})};ta.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const Qv=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),yv=S.styled(ta,{name:"
|
|
69
|
+
`))}C[B]={}}}};Object.keys(g.components).forEach(C=>{const I=g.components[C].styleOverrides;I&&C.indexOf("Mui")===0&&E(I,C)})}return g.unstable_sxConfig=W({},Js,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return Qc({sx:E,theme:this})},g}const Pc=Tc();function at(){const e=hf(Pc);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Si]||e}function xt({props:e,name:t}){return Ub({props:e,name:t,defaultTheme:Pc,themeId:Si})}const ea=e=>Xs(e)&&e!=="classes",ce=Bf({themeId:Si,defaultTheme:Pc,rootShouldForwardProp:ea}),Iv=["theme"];function Mf(e){let{theme:t}=e,n=He(e,Iv);const r=t[Si];return p.jsx($s,W({},n,{themeId:r?Si:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Mf.propTypes={children:c.node,theme:c.oneOfType([c.object,c.func]).isRequired});const Rf=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Bv=ce("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${Le(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},A={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},d={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...l,left:20},...e==="bottom-center"&&{...l,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...l,right:20},...e==="left-top"&&{...A,top:20},...e==="left-center"&&{...A,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...A,bottom:20},...e==="right-top"&&{...d,top:20},...e==="right-center"&&{...d,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...d,bottom:20}}});function mv(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const ta=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:i,...a})=>{const{style:l,anchorOrigin:A,transformOrigin:d}=mv(n);return p.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:A,transformOrigin:d,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...l,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!r&&p.jsx(Bv,{arrow:n}),t]})};ta.propTypes={sx:c.object,open:c.object,children:c.node,disabledArrow:c.bool,arrow:c.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const Qv=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),yv=S.styled(ta,{name:"ApplicaActionsMenu",slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,backgroundColor:e.palette.background.paper,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}})),Ni=({children:e})=>{const[t,n]=D.useState(null),r=a=>{a.stopPropagation(),a.preventDefault(),n(a.currentTarget)},i=D.useCallback(()=>{n(null)},[]);return!e||D.Children.count(e)===0||e!=null&&e.filter&&(e==null?void 0:e.filter(a=>D.isValidElement(a)).length)===0?null:p.jsxs(Qv,{children:[p.jsx(S.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:r,color:t?"inherit":"default",children:p.jsx(br.MoreVert,{})}),p.jsx(yv,{open:t,onClose:i,arrow:"right-top",children:D.Children.map(e,(a,l)=>D.isValidElement(a)&&p.jsx(S.MenuItem,{children:D.cloneElement(a)},l))})]})};Ni.propTypes={...ta.propTypes,children:c.node.isRequired};const vW="",kf={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},Sc=D.createContext(kf),Oc=({children:e})=>{const[t,n]=D.useState(kf),r=(l,A)=>{n(d=>({...d,openDialogs:[...d.openDialogs,l]})),A&&A()},i=(l,A)=>{n(d=>({...d,openDialogs:d.openDialogs.filter(g=>g!==l)})),A&&A()},a=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return p.jsx(Sc.Provider,{value:{...t,openDialog:r,closeDialog:i,getCurrentDialog:a},children:e})};Oc.propTypes={children:c.node};const oo=()=>D.useContext(Sc);var na={exports:{}};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Lodash <https://lodash.com/>
|
|
72
72
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconButton, MenuItem, styled } from '@mui/material';
|
|
2
|
-
import React, { Children, useState } from 'react';
|
|
2
|
+
import React, { Children, useCallback, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import MenuPopover from './MenuPopover/MenuPopover';
|
|
5
5
|
import { MoreVert } from '@mui/icons-material';
|
|
@@ -14,7 +14,7 @@ const StyledRoot = styled('div', {
|
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
16
|
const StyledMenuPopover = styled(MenuPopover, {
|
|
17
|
-
name: '
|
|
17
|
+
name: 'ApplicaActionsMenu',
|
|
18
18
|
slot: 'root'
|
|
19
19
|
})(({ theme }) => ({
|
|
20
20
|
'& .MuiMenuItem-root': {
|
|
@@ -50,9 +50,9 @@ const ActionsMenu = ({ children }: ActionsMenuProps): React.ReactElement | null
|
|
|
50
50
|
e.preventDefault();
|
|
51
51
|
setOpen(e.currentTarget);
|
|
52
52
|
};
|
|
53
|
-
const handleClose = () => {
|
|
53
|
+
const handleClose = useCallback(() => {
|
|
54
54
|
setOpen(null);
|
|
55
|
-
};
|
|
55
|
+
}, []);
|
|
56
56
|
|
|
57
57
|
if (
|
|
58
58
|
!children ||
|
|
@@ -71,12 +71,7 @@ const ActionsMenu = ({ children }: ActionsMenuProps): React.ReactElement | null
|
|
|
71
71
|
<StyledMenuPopover open={open} onClose={handleClose} arrow="right-top">
|
|
72
72
|
{Children.map(
|
|
73
73
|
children,
|
|
74
|
-
(action, index) =>
|
|
75
|
-
React.isValidElement(action) && (
|
|
76
|
-
<MenuItem key={index} onClick={handleClose}>
|
|
77
|
-
{React.cloneElement(action)}
|
|
78
|
-
</MenuItem>
|
|
79
|
-
)
|
|
74
|
+
(action, index) => React.isValidElement(action) && <MenuItem key={index}>{React.cloneElement(action)}</MenuItem>
|
|
80
75
|
)}
|
|
81
76
|
</StyledMenuPopover>
|
|
82
77
|
</StyledRoot>
|