import{f as e,w as i}from"./locale-wDcg0qDg.js";import{formContainerManifest as t}from"./bk-form-container.manifest-y_iJQQlR.js";import"./manifest-J9piKNZo.js";import"./dataSchema-VwIQYPJL.js";import"./httpComponent-AiGk8DOD.js";import"./utils-TB-VQl6t.js";import"./index-9j-GHp9k.js";import"./manifest--hA2W8VB.js";const d=`The Form Wizard is an extension of the Dynamic Form Modal that allows to split data insertion / editing into multiple steps. Each step consists of a form or an accordion of forms and allows to fill-in / edit a subset of the data properties. 

Navigation through wizard steps is possible through buttons displayed inside the footer of the modal. Upon reaching the last step, it is possible to submit the wizard, which signals the need for an item creation / update, with data obtained by aggregating form values from each of the wizard steps.
`,l=`Il Form Wizard è un'estensione del Dynamic Form Modal che consente di suddividere l'inserimento/modifica dei dati in più fasi. Ogni fase consiste in un form o in una serie di form e consente di inserire/modificare un sottoinsieme di proprietà dei dati. 

La navigazione attraverso gli step del wizard è possibile grazie ai pulsanti visualizzati nel footer della modale. Al raggiungimento dell'ultimo step, è possibile inviare il wizard, che segnala la necessità di creare/aggiornare un articolo, con i dati ottenuti aggregando i valori dei form da ciascuno dei passi del wizard.
`;var o,a,r,s,n,p;const c={...t,docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/form_wizard#bk-form-wizard",type:"layout",label:"Form Wizard",description:"Modal containing a wizard to edit or create items described by the `dataSchema`, using forms",descriptionLong:{en:d,it:l},example:JSON.stringify({tag:"bk-form-wizard",properties:{dataSchema:{type:"object",properties:{_id:{type:"string"},__STATE__:{type:"string"},name:{type:"string"},price:{type:"number"},color:{type:"object",dataSchema:{type:"object",properties:{red:{type:"number"},green:{type:"number"},blue:{type:"number"}}}},variants:{type:"array",items:{type:"object",properties:{shape:{type:"string"},size:{type:"string"}}}}}}}}),properties:{...t.properties,customLocale:{__mia_configuration:{attribute:!1,label:"Custom Locale",description:"Custom localized texts shown as component labels",group:"content"},...e,properties:{create:{...(o=e.properties)==null?void 0:o.create,properties:{...(r=(a=e.properties)==null?void 0:a.create)==null?void 0:r.properties,...i}},update:{...(s=e.properties)==null?void 0:s.update,properties:{...(p=(n=e.properties)==null?void 0:n.update)==null?void 0:p.properties,...i}},...e.properties}},width:{type:"string",default:"70vw",__mia_configuration:{priority:"high",label:"Width",attribute:!0,group:"appearance"}},height:{type:"string",default:"60vh",__mia_configuration:{priority:"high",label:"Height",attribute:!0,group:"appearance"}},wizard:{__mia_configuration:{priority:"high",label:"Custom Wizard Steps",description:"Array of options for setting up the wizard steps. A default wizard is utilized is not specified.",attribute:!1,arrayVisualization:{type:"table",configuration:{columns:["keys"]}},group:"content"},type:"array",items:{type:"object",properties:{keys:{__mia_configuration:{label:"Step Fields",description:"Fields to display in the step"},type:"array",items:{type:"string"}},labels:{__mia_configuration:{label:"Labels",description:"Localized labels with the text to show"},type:"object",properties:i},asForm:{__mia_configuration:{label:"Display as Form",description:"Whether to render nested fields as forms when handling a single nested object/array fields within a step."},type:"boolean",default:!0}}}}}};var z=c;export{z as default};
