PageSourceSearch

https://www.vigocloud.com/_next/static/chunks/pages/dashboards/development/ExampleDataGrid-892cdfb8706e234a.js

js vigocloud.com collected 2026-09-30 18:52:30 UTC 3,503 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7770],{436588:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboards/development/ExampleDataGrid",function(){return a(495542)}])},495542:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var l=a(637876),o=a(14232),s=a(991040),n=a(961025),i=a(366628),r=a(754544),c=a(566911),d=a(702665),m=a(352500),u=a(192459),x=a(337277),h=a(242252),f=a(703509),p=a(485406);let g={admin:(0,l.jsx)(r.A,{fontSize:"small",sx:{mr:3,color:"error.main"}}),author:(0,l.jsx)(c.A,{fontSize:"small",sx:{mr:3,color:"warning.main"}}),editor:(0,l.jsx)(d.A,{fontSize:"small",sx:{mr:3,color:"info.main"}}),maintainer:(0,l.jsx)(m.A,{fontSize:"small",sx:{mr:3,color:"success.main"}}),subscriber:(0,l.jsx)(u.A,{fontSize:"small",sx:{mr:3,color:"primary.main"}})},S={active:"success",pending:"warning",inactive:"secondary"},w=[{headerName:"User",field:"fullName",fieldLine2:"@line2Here",fieldLine2Styles:{color:"dodgerBlue"},minWidth:230,flex:.25,route:"/dashboards/warehouse",routeId:"",sortable:!1},{flex:.25,field:"email",minWidth:250,headerName:"Email",renderCell:({row:e})=>(0,l.jsx)(f.z,{value:e.email,noWrap:!0,variant:"body2",disableTranslation:!0})},{flex:.2,field:"role",minWidth:175,headerName:"Role",renderCell:({row:e})=>(0,l.jsxs)(n.A,{sx:{display:"flex",alignItems:"center"},children:[g[e.role],(0,l.jsx)(f.z,{value:e.role,noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"}})]})},{flex:.2,minWidth:150,headerName:"Plan",field:"currentPlan",renderCell:({row:e})=>(0,l.jsx)(f.z,{value:e.currentPlan,noWrap:!0,sx:{textTransform:"capitalize"}})},{flex:.2,minWidth:140,field:"status",headerName:"Status",type:"chip",chipOptions:{size:"small",color:e=>S[e]}}],b=[{id:"999",icon:(0,l.jsx)(x.A,{fontSize:"small",sx:{mr:2}}),text:"custom 1",clickHandler:()=>{console.log("custom 1")}},{id:"998",icon:(0,l.jsx)(x.A,{fontSize:"small",sx:{mr:2}}),text:"custom 2",clickHandler:()=>{console.log("custom 2")}}],j={canEdit:!0,canDelete:!0,showHistory:!0,showAttachments:!0,editCallBack:e=>{console.log(e)},deleteCallBack:e=>{console.log(e)}},v=()=>{let[e,t]=(0,o.useState)([]),{isLoading:a,error:n,data:r}=(0,h.I)({queryKey:["dataGridData"],queryFn:async()=>(await s.A.get("/apps/users/list")).data.users}),c=(0,l.jsx)(p.E,{name:"test",value:"Button 1",variant:"text",onClick:()=>console.log("button 1 click")},"1"),d=(0,l.jsx)(p.E,{name:"test",value:"Button 2",variant:"text",onClick:()=>console.log("button 2 click")},"2"),m=(0,l.jsx)(p.E,{name:"test",value:"Button 3",variant:"text",onClick:()=>console.log("button 3 click")},"3"),u=(0,l.jsx)(p.E,{name:"test",value:"Delete",variant:"text",onClick:()=>console.log(e)},"3");return a?(0,l.jsx)(f.z,{value:"Loading..."}):n&&s.A.isAxiosError(n)?(0,l.jsx)(f.z,{value:"An error has occurred: "+n.message}):(0,l.jsx)(i.A,{name:"Example",isEditable:!1,dataSource:r,totalRows:r.length,currentLoadedRows:r.length,columns:w,customActions:b,gridLoading:a,disableFilters:!0,disableColumnMenu:!1,disableSorting:!1,disableExport:!1,disableSearch:!1,defaultActions:j,pageSize:10,pagination:!0,multiSelect:!0,multiSelectButtons:[{name:"multiSelectButton",component:u,alwaysShow:!1,showWithNoSelection:!1},{name:"customButton3",component:m,alwaysShow:!1,showWithNoSelection:!1}],setSelectedRowIds:t,density:"standard",headerButtonGroup:[c,d,m]})}}},e=>{e.O(0,[3911,3572,8992,5947,1926,9634,7703,3396,4375,7033,636,6593,8792],()=>e(e.s=436588)),_N_E=e.O()}]);
2//# sourceMappingURL=ExampleDataGrid-892cdfb8706e234a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.