export type VitruvioComponentDoc = { component: string; summary: string; status: "draft" | "review" | "ready"; context: { module: string; family: string; mappedFrom: string[]; occurrences: { total: number; paineis: number; processos: number; }; }; sections: { purpose: string; basicUsage: string; properties: string[]; propertyValues: { [property: string]: string[] }; propertyValueTypes: { [property: string]: "boolean" | "enum" | "numeric" | "text" | "mixed" }; events: string[]; examples: string[]; notes: string[]; }; }; const OrgChartWidgetDoc: VitruvioComponentDoc = { component: "OrgChartWidget", summary: "Documentacao do componente OrgChartWidget mapeada a partir de exemplos reais de XML.", status: "draft", context: { module: "Vitruvio", family: "Visualizacao", mappedFrom: ["Vitruvio/Paineis", "Vitruvio/Processos"], occurrences: { total: 1, paineis: 1, processos: 0 } }, sections: { purpose: "Componente para exibicao de informacoes, resultados e feedback visual.", basicUsage: "Usar OrgChartWidget no contexto adequado da tela; as propriedades abaixo foram observadas em exemplos reais do projeto.", properties: [ "expandRatio", "height", "id", "nodeHeight", "pan", "verticalDepth", "width", "zoom" ], propertyValues: { "expandRatio": ["1"], "height": ["100%"], "id": ["orgChart1"], "nodeHeight": ["45px"], "pan": ["true"], "verticalDepth": ["3"], "width": ["100%"], "zoom": ["true"] }, propertyValueTypes: { "expandRatio": "numeric", "height": "numeric", "id": "enum", "nodeHeight": "numeric", "pan": "boolean", "verticalDepth": "numeric", "width": "numeric", "zoom": "boolean" }, events: [ ], examples: [ "Vitruvio/Paineis/EAP do Projeto.xml:223" ], notes: [ "Mapeamento automatico baseado em uso observado nos XMLs de paineis e processos.", "Valores ruidosos/textos muito longos sao filtrados para facilitar consulta.", "propertyValueTypes classifica o perfil observado da propriedade (boolean, enum, numeric, text ou mixed).", "Validar com documentacao oficial do Vitruvio quando houver divergencia funcional." ] } }; export default OrgChartWidgetDoc;