import{e as i}from"./manifest-J9piKNZo.js";import{d as o,a as n}from"./dataSchema-liIE6AFZ.js";import{f as e,l as r}from"./locale-2oqXkJWO.js";import{i as l}from"./manifest--hA2W8VB.js";var t,a;const s={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/form_card",type:"layout",label:"Form Card",description:"Card containing a Form to edit or create items described by the `dataSchema`. The component contains a generic Form component, thus it listens to and emits all the events that this does",definitions:{...o,dataSchema:n},properties:{dataSchema:{$ref:"#/definitions/dataSchema",__mia_configuration:{label:"Data Schema",priority:"high","shared-key":"back-kit/data-schema"}},enableSubmitOnFormUntouched:{type:"boolean",default:!1,__mia_configuration:{attribute:!1,label:"Submit on form untouched",description:"boolean to enable footer call-to-action even if no field within the form has been touched"}},customLocale:{__mia_configuration:{attribute:!1,label:"Custom Locale",description:"Custom localized texts shown as component labels"},...e,properties:{...(a=(t=e.properties)==null?void 0:t.create)==null?void 0:a.properties,cancelLabel:r("Cancel Button Label"),form:e.properties.form}},formKind:{type:"string",enum:["add","edit"],default:"edit",__mia_configuration:{attribute:!1,label:"Form type",priority:"high",enumLabels:{add:"Add",edit:"Edit"}}},readonlyOnView:{type:"boolean",default:!1,__mia_configuration:{attribute:!1,description:"upon marking this prop as true, on selecting a record, the form will be displayed as readonly, with no possibility to edit",label:"Readonly on view"}},liveSearchTimeout:{type:"number",default:5e3,__mia_configuration:{attribute:!1,label:"Live search timeout"}},liveSearchItemsLimit:{type:"number",default:10,__mia_configuration:{attribute:!1,label:"Live search items limit"}},allowAutoDisableDeps:{type:"boolean",default:!1,__mia_configuration:{attribute:!0,label:"Allow auto disable deps",description:"If true, dependent lookup and multilookup select fields are automatically disabled in case of no options"}},afterFinishEvents:{...i,__mia_configuration:{attribute:!1,label:"After finish events",description:"Events or state push to concatenate after successful finish action has been performed"}},dataIndex:{type:"number",default:0,__mia_configuration:{attribute:"data-index",label:"Data index",description:"The index from which taking the data. 0 is the first element"}},editorHeight:{oneOf:[{type:"string"},{type:"number"}],__mia_configuration:{attribute:"editor-height",label:"Editor height",description:"height of object/array editor"}},header:{__mia_configuration:{label:"Header",description:"Card header settings",attribute:!0},type:"object",properties:{icon:{__mia_configuration:{label:"Icon"},type:"string",enum:l},title:{__mia_configuration:{"schema-hint":"localized-text",label:"Title"}},badge:{__mia_configuration:{"schema-hint":"localized-text",label:"Badge"}},subtitle:{__mia_configuration:{"schema-hint":"localized-text",label:"Subtitle"}}}},customLabels:{__mia_configuration:{deprecated:!0,attribute:!1,label:"Custom Labels",priority:"low",description:"(DEPRECATED: use Custom Locale instead) Custom localized texts shown as components labels"},type:"object",additionalProperties:{__mia_configuration:{"schema-hint":"localized-text"}}}}};var f=s;export{f as default};
