import{h as e}from"./manifest-J9piKNZo.js";import{l as t}from"./locale-wDcg0qDg.js";const o=`The "Add New" button renders a clickable element that, when pressed, notifies other components that a new item needs to be created. This button is essential for initiating the creation process, allowing users to easily add new entries or items to the system.
`,i=`Il pulsante "Aggiungi nuovo" crea un elemento cliccabile che, una volta premuto, notifica agli altri componenti che è necessario creare un nuovo elemento. Questo pulsante è essenziale per avviare il processo di creazione, consentendo agli utenti di aggiungere facilmente nuovi elementi al sistema.
`,n={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/add_new_button",description:"A button to trigger an `add-new` event",descriptionLong:{en:o,it:i},example:JSON.stringify({properties:{initialValues:{status:"Sent"},browseOnButtonClick:{href:"/orders-list",target:"_blank",query:{foo:"bar"}},customLocale:{content:{en:"Text",it:"Testo"}}},tag:"bk-add-new-button"}),label:"Add New Button",type:"layout",properties:{browseOnButtonClick:{default:{},__mia_configuration:{attribute:!1,label:"Browse on click",description:"When provided with a valid schema, overrides the button JavaScript `onclick` listener handler allowing an `href` linking",priority:"high"},type:"object",properties:e},initialValues:{default:{},__mia_configuration:{attribute:!1,label:"Initial Values",description:"Arguments to append to the `add-new` event on button click",priority:"high"},title:"Initial Values",type:"object",description:"Payload of data to be send on each click"},customLocale:{__mia_configuration:{attribute:!1,label:"Custom Locale",description:"Custom localized texts shown as component labels",priority:"low"},type:"object",properties:{content:t("Button Content")}}}};var r=n;export{r as default};
