import{g as v}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as N}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as b}from"./NumeroChip-QCXXOqUM.js";import{i as f,b as _,k as x,l as $,d as l,v as s,j as u}from"./vue-core-Di3IuVqe.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";import"./usePagerDetail-BeqYPv-1.js";import"./DataGrid-CoMfrBJA.js";import"./useAgGridConfig-Dp3DkgaV.js";const V={class:"md-form-grid"},g={class:"flex items-end md-col-full",style:{gap:"8px"}},h={class:"field",style:{flex:"1","min-width":"0"}},w={class:"field"},E={__name:"Niveau",props:["ndoc","embedded"],setup(t){const c={list:()=>`${e.lienApi}/Niveaux/${e.db}`,getOne:i=>`${e.lienApi}/unNiveau/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerniveau/${e.db}`,save:i=>`${e.lienApi}/enregistrerNiveau/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerNiveau/${e.db}/${i}`},p={excelFileName:"Niveaux",excelSheetName:"Niveaux",documentNumberFields:["ndoc"],excludedColumns:["ndoc"],columnWidths:{id_Niveau:120,Nom:200,Nomenclature:200}};return(i,o)=>{const m=v,r=f("maxlen-db");return _(),x(N,{"page-id":1409,"tab-id":"Niveau","id-field":"id_Niveau",resource:c,grid:p,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"640px",title:"Niveau","entity-label":"un niveau","empty-icon":"pi pi-sitemap","delete-message":"Voulez-vous vraiment supprimer ce niveau ?"},{form:$(({entete:a,modeModification:n})=>[l("div",V,[l("div",g,[s(b,{value:a.id_Niveau},null,8,["value"]),l("div",h,[o[0]||(o[0]=l("label",{for:"inputFocus",class:"block mb-1"},"Nom",-1)),u(s(m,{size:"small",id:"inputFocus",modelValue:a.Nom,"onUpdate:modelValue":d=>a.Nom=d,disabled:!n,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[r,"niveau.Nom"]])])]),l("div",w,[o[1]||(o[1]=l("label",{for:"nomenclature",class:"block mb-1"},"Nomenclature",-1)),u(s(m,{size:"small",id:"nomenclature",modelValue:a.Nomenclature,"onUpdate:modelValue":d=>a.Nomenclature=d,disabled:!n,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[r,"niveau.Nomenclature"]])])])]),_:1},8,["embedded","ndoc"])}}};export{E as default};
