build
This commit is contained in:
parent
87309f5b39
commit
da828ddf4f
120 changed files with 2482 additions and 4328 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { z } from "zod"
|
||||
import type { visoes_pilao } from "./listaDeVisoes"
|
||||
import type { visoes_pilao, z_padroes } from "./listaDeVisoes"
|
||||
|
||||
export const z_tipos_campos_reg_grafico = z.enum([
|
||||
"tabela",
|
||||
|
|
@ -17,12 +17,18 @@ export type tipo_estrutura_visao_grafico<T extends keyof typeof visoes_pilao> =
|
|||
/** Rotulo */
|
||||
rotulo: string
|
||||
/** Retorna a tabela Referente ao Registro */
|
||||
tabela: (_: z.infer<(typeof visoes_pilao)[T]>) => string
|
||||
tabela: (
|
||||
_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
||||
) => string
|
||||
/** Descrição */
|
||||
descricao: (_: z.infer<(typeof visoes_pilao)[T]>) => string
|
||||
descricao: (
|
||||
_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
||||
) => string
|
||||
/** Lista os campos e suas configurações */
|
||||
campos: {
|
||||
[c in keyof Required<z.infer<(typeof visoes_pilao)[T]>>]: {
|
||||
[c in keyof Required<
|
||||
z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>
|
||||
>]: {
|
||||
rotulo: string
|
||||
tipo_campo: z.infer<typeof z_tipos_campos_reg_grafico>
|
||||
order: number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue