91 lines
3.4 KiB
TypeScript
Executable File
91 lines
3.4 KiB
TypeScript
Executable File
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 ScriptWidgetDoc: VitruvioComponentDoc = {
|
|
component: "ScriptWidget",
|
|
summary: "Documentacao do componente ScriptWidget mapeada a partir de exemplos reais de XML.",
|
|
status: "draft",
|
|
context: {
|
|
module: "Vitruvio",
|
|
family: "Visualizacao",
|
|
mappedFrom: ["Vitruvio/Paineis", "Vitruvio/Processos"],
|
|
occurrences: { total: 593, paineis: 552, processos: 41 }
|
|
},
|
|
sections: {
|
|
purpose: "Componente para exibicao de informacoes, resultados e feedback visual.",
|
|
basicUsage: "Usar ScriptWidget no contexto adequado da tela; as propriedades abaixo foram observadas em exemplos reais do projeto.",
|
|
properties: [
|
|
"align",
|
|
"expandRatio",
|
|
"height",
|
|
"id",
|
|
"spacing",
|
|
"width"
|
|
],
|
|
propertyValues: {
|
|
"align": ["TOP_CENTER", "TOP_LEFT", "TOP_RIGHT"],
|
|
"expandRatio": ["0", "0.8", "1", "1.0"],
|
|
"height": ["100%"],
|
|
"id": ["abrirProcessoMapa", "calculateScript", "customPresenterInit", "directoryTableGenerator", "grafGaugeSLA", "grafGeral", "grafGeralFornecedor", "grafGeralLojas", "grafGeralSkips", "grafGeralTempo", "grafGeralTempo2", "grafHistorico", "graficoBarras", "graficoBarrasAbertos", "grafLinhaAndamento", "__TRUNCADO__"],
|
|
"spacing": ["false"],
|
|
"width": ["100%"]
|
|
},
|
|
propertyValueTypes: {
|
|
"align": "enum",
|
|
"expandRatio": "numeric",
|
|
"height": "numeric",
|
|
"id": "text",
|
|
"spacing": "boolean",
|
|
"width": "numeric"
|
|
},
|
|
events: [
|
|
|
|
],
|
|
examples: [
|
|
"Vitruvio/Paineis/Painel de Queijos.xml:697",
|
|
"Vitruvio/Paineis/Cadastro de Elementos.xml:1281",
|
|
"Vitruvio/Paineis/Cadastro de Elementos.xml:1562",
|
|
"Vitruvio/Paineis/Gráfico CheckList - Resultado por Bimestre Loja.xml:602",
|
|
"Vitruvio/Paineis/Estoque em Tempo Real.xml:105",
|
|
"Vitruvio/Paineis/recebimento seca teste danilo.xml:237",
|
|
"Vitruvio/Paineis/recebimento seca teste danilo.xml:352",
|
|
"Vitruvio/Paineis/recebimento seca teste danilo.xml:859",
|
|
"Vitruvio/Paineis/recebimento seca teste danilo.xml:962",
|
|
"Vitruvio/Paineis/recebimento seca teste danilo.xml:1058",
|
|
"Vitruvio/Paineis/Nfse - TESTE.xml:3354",
|
|
"Vitruvio/Paineis/12 - Cadastro de Tópicos.xml:214"
|
|
],
|
|
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 ScriptWidgetDoc;
|