import{d as t,a}from"./dataSchema-VwIQYPJL.js";import"./locale-wDcg0qDg.js";import{i}from"./manifest--hA2W8VB.js";import e from"./index-9j-GHp9k.js";import"./manifest-J9piKNZo.js";import"./httpComponent-AiGk8DOD.js";const o=`The Card is a read-only visualizer for objects, arrays of objects, images.

It is not suited for editing. That role should be delegated to another component, such as the Dynamic Form Card component.

The Card is made by blocks and is recursive, which means that cards can be embedded inside cards.

The Card is made of 3 HTML5 tag (header, main and footer). If either of these keys is absent from the Card configuration, it does not appear in the Card shadow DOM and it does not clutter its internal structure.
`,n=`La Card è un visualizzatore di sola lettura per oggetti, array di oggetti e immagini.

Non è adatto alla modifica. Questo compito dovrebbe essere delegato a un altro componente, come il componente Dynamic Form Card.

La Card è composta da blocchi ed è ricorsiva, il che significa che le tessere possono essere incorporate all'interno delle tessere.

La Scheda è composta da 3 tag HTML5 (header,main e footer). Se uno di questi tag è assente dalla configurazione della Card, non appare nel shadow DOM della Card e non interferisce con la sua struttura interna.
`,r={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/card",type:"layout",label:"Card",description:"Read-only visualizer for objects, arrays and images",descriptionLong:{en:o,it:n},example:JSON.stringify({tag:"bk-card",properties:{cardSchema:{header:{title:{en:"User",it:"Utente"}},main:{dataSchema:{type:"object",properties:{name:{type:"string"},role:{type:"string",enum:["Admin","Developer","Guest"]},dateOfBirth:{type:"string",format:"date"}}}},footer:{subtitle:{en:"User details",it:"Dettagli utente"}}}}}),definitions:{...e.definitions,...t,dataSchema:a,taggableCustom:{type:"object",properties:{value:{type:"string",__mia_configuration:{label:"Value"}},tag:{type:"string",__mia_configuration:{label:"Tag",description:"Webcomponent tag"}},properties:{type:"object",__mia_configuration:{label:"Properties"}},data:{type:"object",__mia_configuration:{label:"Data"}}}},cardButton:{type:"object",properties:{tag:{const:"bk-button",__mia_configuration:{label:"Tag",description:"Webcomponent tag"}},...e.properties}}},properties:{objectSource:{__mia_configuration:{attribute:!1,label:"Object source",description:"Property to inject the object-like source from an external source not linked with the `eventBus`. This is overridden by the `display-data` event",group:"content"},type:"object",additionalProperties:{oneOf:[{type:"string"},{$ref:"#/definitions/taggableCustom"}]}},arraySource:{__mia_configuration:{attribute:!1,label:"Array source",description:"Property to inject the array-like source from an external source not linked with the `eventBus`. This is overridden by the `display-data` event",group:"content"},type:"object",additionalProperties:{type:"object",additionalProperties:{oneOf:[{type:"string"},{$ref:"#/definitions/taggableCustom"}]}}},cardSchema:{__mia_configuration:{priority:"high",label:"Card schema",description:"Object describing the card role and its content",group:"content"},type:"object",properties:{header:{__mia_configuration:{label:"Header"},type:"object",properties:{icon:{__mia_configuration:{label:"Icon"},type:"string",enum:i},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"}}}},main:{__mia_configuration:{label:"Main"},type:"object",properties:{dataSchema:{$ref:"#/definitions/dataSchema",__mia_configuration:{"shared-key":"back-kit/data-schema",label:"Data schema"}},cards:{__mia_configuration:{label:"Cards",description:"Recursive cards"},oneOf:[{type:"object"},{type:"array",items:{type:"object"}}]},img:{type:"string",__mia_configuration:{label:"Image"}},props:{type:"object",__mia_configuration:{label:"Properties"}},style:{type:"object",__mia_configuration:{label:"Style"}}}},footer:{__mia_configuration:{label:"Footer"},type:"object",properties:{title:{__mia_configuration:{"schema-hint":"localized-text",label:"Title"}},subtitle:{__mia_configuration:{"schema-hint":"localized-text",label:"Subtitle"}},subsubtitle:{__mia_configuration:{"schema-hint":"localized-text",label:"Subtitle"}},buttonsLayout:{type:"string",enum:["horizontal","vertical"],__mia_configuration:{label:"Buttons layout",enumLabels:{horizontal:"Horizontal",vertical:"Vertical"}}},buttons:{__mia_configuration:{label:"Buttons"},oneOf:[{$ref:"#/definitions/cardButton"},{type:"array",items:{$ref:"#/definitions/cardButton"},__mia_configuration:{arrayVisualization:{type:"table",configuration:{columns:["tag"]}}}}]}}}}},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",group:"content"}},customMessageOnAbsentLookup:{__mia_configuration:{attribute:!1,"schema-hint":"localized-text",label:"Message on absent lookup",description:"Message that overrides a lookup value in case the lookup is not resolved due to lack of data",group:"content"}},customMessageOnAbsentDatum:{__mia_configuration:{attribute:!1,"schema-hint":"localized-text",label:"Message on absent datum",description:"when datum reaches the card but it doesn't have value but some was expected, the displayed string can be overridden with a custom message",group:"content"}},role:{type:"string",default:"default",enum:["default","info","success","error"],__mia_configuration:{attribute:!0,label:"Role",priority:"high",description:"Card role to select color schema",group:"appearance"}},containerStyle:{type:"object",__mia_configuration:{label:"Container style",description:"React-like CSS properties to decorate card container",attribute:!1,group:"appearance"}}}};var m=r;export{m as default};
