import{_ as y}from"./ComboDynamique-DbhbUtR4.js";import{g as w,o as S,c as k,b as l,a as o,z as T,av as D,q as F,F as N,r as a}from"./vendor-BDR7yMJi.js";import{u as A,S as G,h as M}from"./index-BSaHX2oa.js";const V={class:"flex min-w-full flex-col lg:flex-row lg:items-center gap-2 p-1"},B={class:"btns flex items-center gap-2 lg:w-1/4 lg:justify-start lg:ml-0 py-2"},E={class:"mt-4 p-4 border border-gray-300 shadow-md bg-white"},R={class:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-2"},$={class:"flex flex-col space-y-4 p-2"},q={class:"ag-theme-quartz mt-4",style:"height: calc(100vh - 240px)"},P={__name:"EffectifParAffaire",setup(z){A();const s=a(),c=a(null),u=a(null),n=a(""),m=a([]),d=a({sortable:!0,filter:"agTextColumnFilter",resizable:!0,suppressHeaderMenuButton:!0}),f=[{field:"Affaire",headerName:"Affaire",sortable:!0,filter:"agTextColumnFilter",checkboxSelection:!0,headerCheckboxSelection:!1,width:150},{field:"Site",headerName:"Site",sortable:!0,filter:"agTextColumnFilter",width:150},{field:"Contrôleur",headerName:"Contrôleur",sortable:!0,filter:"agTextColumnFilter",width:150},{field:"Effectif",headerName:"Effectif",sortable:!0,filter:"agNumberColumnFilter",type:"numericColumn",cellClass:"ag-currency-cell",headerClass:"numeric-header-custom",valueFormatter:t=>M(t.value),width:120}],p=t=>{u.value=t.api},g=t=>{},h=()=>["copy","copyWithHeaders","separator","export"],_=()=>{},x=()=>{};return(t,e)=>{const i=T,C=D,b=y,v=w("ag-grid-vue");return S(),k(N,null,[l("div",V,[l("div",B,[o(i,{icon:"pi pi-refresh",label:"Afficher",text:"",onClick:_}),o(i,{icon:"pi pi-cog",label:"Actions",text:"",onClick:e[0]||(e[0]=r=>s.value.toggle(r))}),o(C,{ref_key:"actionsMenu",ref:s,model:[{label:"Imprimer",icon:"pi pi-print",command:()=>x()}],popup:!0},null,8,["model"]),o(i,{icon:"pi pi-times",label:"Fermer",text:"",onClick:e[1]||(e[1]=r=>F(G)("EffectifParAffaire"))})])]),l("div",E,[l("div",R,[l("div",$,[o(b,{pagination:!0,placeholder:"Type",modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=r=>n.value=r)},null,8,["modelValue"])]),e[3]||(e[3]=l("div",{class:"flex flex-col space-y-4 p-2"},null,-1))]),l("div",q,[o(v,{ref_key:"agGrid",ref:c,rowData:m.value,columnDefs:f,defaultColDef:d.value,theme:t.$agGridTheme,localeText:t.$agGridLocale,rowSelection:"single",animateRows:!0,suppressRowClickSelection:!1,enableCellTextSelection:!0,pagination:!1,domLayout:"normal",getContextMenuItems:h,onGridReady:p,onRowSelected:g},null,8,["rowData","defaultColDef","theme","localeText"])])])],64)}}};export{P as default};
