import{A as e,C as t,Ct as n,D as r,F as i,N as a,_ as o,bt as s,c,h as l,l as u,o as d,p as f,s as p,tt as m,u as h,xt as g,z as _}from"./runtime-core.esm-bundler-DJThmTxA.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as y}from"./useUiAdapter-Dhcoyf0S.js";import"./KsInlineMessage-Cl9GruP-.js";var b=[`data-invalid`],x=[`for`],S={key:0,"aria-hidden":`true`},C=[`id`,`role`],w=v(l({__name:`FieldShell`,props:{label:{},inputId:{},required:{type:Boolean},error:{},help:{}},setup(t){let a=t,o=i(),c=d(()=>a.inputId??`ks-field-${o}`),l=d(()=>a.error||a.help?`${c.value}-message`:void 0);return(i,a)=>(r(),h(`div`,{class:`ks-field-shell`,"data-invalid":!!t.error||void 0},[p(`label`,{for:c.value},[f(n(t.label)+` `,1),t.required?(r(),h(`span`,S,`*`)):u(``,!0)],8,x),e(i.$slots,`default`,{inputId:c.value,describedBy:l.value,invalid:!!t.error,required:!!t.required},void 0,!0),t.error||t.help?(r(),h(`small`,{key:0,id:l.value,class:s({"ks-danger-text":t.error}),role:t.error?`alert`:void 0},n(t.error??t.help),11,C)):u(``,!0)],8,b))}}),[[`__scopeId`,`data-v-11b166bf`]]),T=l({__name:`KsTextField`,props:{modelValue:{},label:{},inputId:{},disabled:{type:Boolean},required:{type:Boolean},error:{},help:{},placeholder:{}},emits:[`update:modelValue`,`blur`],setup(e,{emit:t}){let n=t,i=y();return(t,o)=>(r(),c(w,{label:e.label,"input-id":e.inputId,required:e.required,error:e.error,help:e.help},{default:_(t=>[(r(),c(a(m(i).components.TextField),{"input-id":t.inputId,"model-value":e.modelValue,disabled:e.disabled,invalid:t.invalid,placeholder:e.placeholder,"aria-describedby":t.describedBy,"aria-required":t.required||void 0,"onUpdate:modelValue":o[0]||=e=>n(`update:modelValue`,e),onBlur:o[1]||=e=>n(`blur`,e)},null,40,[`input-id`,`model-value`,`disabled`,`invalid`,`placeholder`,`aria-describedby`,`aria-required`]))]),_:1},8,[`label`,`input-id`,`required`,`error`,`help`]))}}),E=l({__name:`KsSelect`,props:{modelValue:{},label:{},options:{},inputId:{},disabled:{type:Boolean},required:{type:Boolean},error:{},help:{},placeholder:{}},emits:[`update:modelValue`,`blur`],setup(e,{emit:t}){let n=t,i=y();return(t,o)=>(r(),c(w,{label:e.label,"input-id":e.inputId,required:e.required,error:e.error,help:e.help},{default:_(t=>[(r(),c(a(m(i).components.Select),{"input-id":t.inputId,"model-value":e.modelValue,options:e.options,disabled:e.disabled,invalid:t.invalid,placeholder:e.placeholder,"aria-describedby":t.describedBy,"aria-required":t.required||void 0,"onUpdate:modelValue":o[0]||=e=>n(`update:modelValue`,e),onBlur:o[1]||=e=>n(`blur`,e)},null,40,[`input-id`,`model-value`,`options`,`disabled`,`invalid`,`placeholder`,`aria-describedby`,`aria-required`]))]),_:1},8,[`label`,`input-id`,`required`,`error`,`help`]))}}),D=l({__name:`KsStatusTag`,props:{value:{},severity:{},iconLabel:{}},setup(e){let t=y();return(e,n)=>(r(),c(a(m(t).components.StatusTag),g(o(e.$props)),null,16))}}),O=l({__name:`KsDataGrid`,props:{rows:{},columns:{},loading:{type:Boolean,default:!1},height:{default:`32rem`},rowSelection:{default:`single`}},emits:[`rowSelected`],setup(e,{emit:n}){let i=n,o=y();return(e,n)=>(r(),c(a(m(o).components.DataGrid),t(e.$props,{onRowSelected:n[0]||=e=>i(`rowSelected`,e)}),null,16))}});export{T as i,D as n,E as r,O as t};