import{formContainerManifest as e}from"./bk-form-container.manifest-GFnwi9A2.js";import"./manifest-J9piKNZo.js";import"./dataSchema-VwIQYPJL.js";import"./locale-wDcg0qDg.js";import"./httpComponent-AiGk8DOD.js";import"./utils-TB-VQl6t.js";import"./index-Bn3NRnWw.js";import"./manifest--hA2W8VB.js";const t=`The Dynamic Form Modal is used to display a modal containing a form to edit or create items described by the dataSchema. Custom behavior can also specified, allowing extra actions to be included in the modal footer via buttons.

The Dynamic Form Modal listens to the add-new and selected-data events to become visible and initialize its form.
`,i=`Il Dynamic Form Modal viene utilizzato per visualizzare una modale contenente un form per modificare o creare gli elementi descritti dal dataSchema. È possibile specificare anche un comportamento personalizzato, che consente di includere azioni extra nel footer della modale tramite pulsanti.

Il Dynamic Form Modal è in ascolto degli eventi add-new e selected-data per essere visibile e inizializzare il form.
`,a={...e,docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/dynamic_form_modal#bk-dynamic-form-modal",type:"layout",label:"Dynamic Form Modal",description:"Modal containing a Form to edit or create items described by the `dataSchema`",descriptionLong:{en:t,it:i},example:JSON.stringify({tag:"bk-dynamic-form-modal",properties:{dataSchema:{type:"object",properties:{_id:{type:"string"}}},onSuccess:{type:"file-download",config:{url:"/latest-report"}},onFail:{insert:{type:"push",config:{url:"/insert-error-faq"}},select:{type:"push",config:{url:"/edit-error-faq"}}}}}),properties:{...e.properties,width:{type:"string",default:"70vw",__mia_configuration:{priority:"high",label:"Width",attribute:!0}},height:{type:"string",default:"60vh",__mia_configuration:{priority:"high",label:"Height",attribute:!0}},allowObjectAsTable:{type:"boolean",default:!1,__mia_configuration:{attribute:!1,label:"Allow object as table",description:"allows to visualize objects and arrays without specific format and a dataschema in both a editor and read-only table"}}}};var p=a;export{p as default};
