import{l as e}from"./locale-wDcg0qDg.js";const a="The Search Bar allows data filtering by matching a text string.\n\nSearch bar allows to filter data against text using a regex. Special regex characters (`( ) [ ] { } + - ^ * $ \\ ? / | .`) are sanitized within the input.\n\nUpon search, the Search Bar notifies that data should be queried by matching its fields against the input string. Technically, the Search Bar emits a `change-query` event, injecting the submitted text in the payload event with key `search`.\n",t="La Search Bar permette di filtrare i dati in base alla corrispondenza con una stringa di testo.\n\nLa barra di ricerca consente di filtrare i dati in base a un testo utilizzando una regex. Caratteri speciali della regex (`( ) [ ] { } + - ^ * $ \\ ? / | .`) vengono sanificati all'interno dell'input.\n\nAl momento della ricerca, la barra di ricerca notifica che i dati devono essere interrogati confrontando i suoi campi con la stringa di input. Tecnicamente, la barra di ricerca emette un evento `change-query`, iniettando il testo scritto nell'evento payload con la chiave `search`.\n",i={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/search_bar",description:"Search bar",descriptionLong:{en:a,it:t},example:JSON.stringify({tag:"bk-search-bar"}),label:"Search Bar",type:"layout",properties:{placeholder:{__mia_configuration:{"schema-hint":"localized-text",attribute:!1,description:"placeholder of the search bar input",label:"Placeholder",priority:"high"}},searchLookup:{type:"boolean",default:!1,__mia_configuration:{attribute:!1,priority:"high",label:"Enable lookup search",description:"Whether or not to perform search on lookups. If true, `lookup-crud-client` (or any component listening to `search-lookups` and emitting `search-lookups-found`) should be included in the plugin"}},searchDebounce:{type:"number",default:0,__mia_configuration:{priority:"high",label:"Search debounce",description:"Time to wait before performing an automatic search. If 0, automatic search is disabled",attribute:!1}},liveSearchItemsLimit:{type:"number",default:100,__mia_configuration:{attribute:!1,label:"Max quantity of items",description:"Max items to fetch on regex live search"}},autoSearchMinInput:{type:"number",default:2,__mia_configuration:{attribute:!1,label:"Min character to search",description:"Min length of input string before performing automatic search"}},customLocale:{__mia_configuration:{attribute:!1,label:"Custom Locale",description:"Custom localized texts shown as component labels",priority:"low"},type:"object",properties:{placeholder:e("Placeholder")}}}};var n=i;export{n as default};
