const e="wfrol",a="wfrol",l=[{field:"RolId",headerName:"Identificador",width:130},{field:"RolNom",headerName:"Nombre",width:200},{field:"RolAbr",headerName:"Abreviatura",width:130},{field:"RolAllUsrSuc",headerName:"Ve todas las Sucursales",width:130},{field:"RolAllUsr",headerName:"Ve todos los Usuarios",width:130},{field:"RolOnlyUsr",headerName:"Ve solo lo de el",width:130},{field:"Jerarquia",headerName:"Jerarquia",width:130}],r=[{field:"RolId",headerName:"RolId",width:90},{field:"RolNom",headerName:"RolNom",width:130,type:"text",required:!1,minLength:2,maxLength:50},{field:"RolAbr",headerName:"RolAbr",width:130,type:"text",required:!1,minLength:2,maxLength:50},{field:"RolTip",headerName:"RolTip",width:130,type:"text",required:!1,minLength:2,maxLength:50},{field:"RolAllUsrSuc",headerName:"RolAllUsrSuc",width:130,type:"number",required:!1,maxValue:1,minValue:0},{field:"RolAllUsr",headerName:"RolAllUsr",width:130,type:"number",required:!1,maxValue:1,minValue:0},{field:"RolOnlyUsr",headerName:"RolOnlyUsr",width:130,type:"number",required:!1,maxValue:1,minValue:0},{field:"RolAsigTar",headerName:"RolAsigTar",width:130,type:"number",required:!1,maxValue:1,minValue:0},{field:"Jerarquia",headerName:"Jerarquia",type:"text",required:!1}],d="RolId",o={list:"/api/list",create:"/api/create",update:"/api/update",delete:"/api/delete"},i={showPrimaryKeyInCreate:!1,showPrimaryKeyInUpdate:!1,enableSearch:!0,searchPlaceholder:"Buscar...",searchDebounceMs:500,useEmpId:!0},t={tabla:"wfrol as w LEFT JOIN emp as e ON w.EmpId = e.EmpId",campoId:"RolId",campoDisplay:"RolNom",camposBusqueda:["RolNom","RolAbr"],condicion:"w.empId = ${empId}",otrosCampos:"w.*, e.EmpNombre",orderBy:"RolNom",limit:"20"},m={entityName:e,tableName:a,columns:l,formFields:r,primaryKey:d,endpoints:o,options:i,tableParams:t};export{l as columns,m as default,o as endpoints,e as entityName,r as formFields,i as options,d as primaryKey,a as tableName,t as tableParams};
