[MVPTN-117] fix(Build): Realiza correções diversas para build
This commit is contained in:
parent
b362968a4f
commit
7162a20d1f
26 changed files with 64 additions and 169 deletions
|
|
@ -19,7 +19,7 @@ import GEmolumentoInterface from '../../interfaces/GEmolumento/GEmolumentoInterf
|
|||
export default function GEmolumentoColumns(
|
||||
onEdit: (item: GEmolumentoInterface, isEditingFormStatus: boolean) => void,
|
||||
onDelete: (item: GEmolumentoInterface, isEditingFormStatus: boolean) => void,
|
||||
emolumentoPeriodoId: (id: number) => void,
|
||||
emolumentoPeriodoId: number,
|
||||
): ColumnDef<GEmolumentoInterface>[] {
|
||||
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -127,10 +127,7 @@ export default function GEmolumentoForm({
|
|||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Serventia</FormLabel>
|
||||
<SistemasSelect
|
||||
field={field}
|
||||
onChange={(e) => field.onChange(parseNumberInput(e))}
|
||||
/>
|
||||
<SistemasSelect field={field} />
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GEmolumentoColumns from './GEmolumentoColumns';
|
||||
import GEmolumentoTableInterface from '../../interfaces/GEmolumento/GEmolumentoTableInterface';
|
||||
import GEmolumentoPeriodoSelect from '../GEmolumentoPeriodo/GEmolumentoPeriodoSelect';
|
||||
import GEmolumentoColumns from './GEmolumentoColumns';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -2,18 +2,19 @@
|
|||
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { useGEmolumentoItemDeleteHook } from '@/packages/administrativo/hooks/GEmolumentoItem/useGEmolumentoItemDeleteHook';
|
||||
import { useGEmolumentoItemIndexHook } from '@/packages/administrativo/hooks/GEmolumentoItem/useGEmolumentoItemIndexHook';
|
||||
import { useGEmolumentoItemSaveHook } from '@/packages/administrativo/hooks/GEmolumentoItem/useGEmolumentoItemSaveHook';
|
||||
import GEmolumentoItemIndexInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
|
||||
import GEmolumentoItemForm from './GEmolumentoItemForm';
|
||||
import GEmolumentoItemTable from './GEmolumentoItemTable';
|
||||
import { useGEmolumentoItemDeleteHook } from '../../hooks/GEmolumentoItem/useGEmolumentoItemDeleteHook';
|
||||
import { useGEmolumentoItemIndexHook } from '../../hooks/GEmolumentoItem/useGEmolumentoItemIndexHook';
|
||||
import { useGEmolumentoItemSaveHook } from '../../hooks/GEmolumentoItem/useGEmolumentoItemSaveHook';
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
|
||||
export default function GEmolumentoItemIndex({ emolumento_id, emolumento_periodo_id }: GEmolumentoItemIndexInterface) {
|
||||
|
||||
|
|
@ -150,7 +151,7 @@ export default function GEmolumentoItemIndex({ emolumento_id, emolumento_periodo
|
|||
isOpen={isConfirmOpen}
|
||||
title="Confirmar exclusão"
|
||||
description="Atenção"
|
||||
message={`Deseja realmente excluir o valor "${itemToDelete?.descricao}"?`}
|
||||
message={`Deseja realmente excluir o valor "${itemToDelete?.valor_emolumento}"?`}
|
||||
confirmText="Sim, excluir"
|
||||
cancelText="Cancelar"
|
||||
onConfirm={handleDelete}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
'use client';
|
||||
|
||||
import GEmolumentoItemTableInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemTableInterface';
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GEmolumentoItemColumns from './GEmolumentoItemColumns';
|
||||
import GEmolumentoItemTableInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ export default function GEmolumentoPeriodoSelect({ onSelectedEmolumentoPeriodo }
|
|||
<CommandItem
|
||||
key={item.emolumento_periodo_id}
|
||||
value={item.descricao?.toLowerCase() ?? ''}
|
||||
onSelect={() => handleSelect(item.emolumento_periodo_id)}
|
||||
onSelect={() => handleSelect(Number(item.emolumento_periodo_id))}
|
||||
>
|
||||
<CheckIcon
|
||||
className={cn(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react';
|
||||
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -93,7 +93,7 @@ export default function GSeloGrupoSelect({ field }: GTBairroSelectInterface) {
|
|||
<CommandItem
|
||||
key={item.selo_grupo_id}
|
||||
value={item.descricao?.toLowerCase() ?? ''}
|
||||
onSelect={() => handleSelect(item.selo_grupo_id)}
|
||||
onSelect={() => handleSelect(Number(item.selo_grupo_id))}
|
||||
>
|
||||
<CheckIcon
|
||||
className={cn(
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import GEmolumentoInterface from '@/packages/administrativo/interfaces/GEmolumento/GEmolumentoInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoInterface from '../../interfaces/GEmolumento/GEmolumentoInterface';
|
||||
|
||||
async function executeGEmolumentoDeleteData(data: GEmolumentoInterface): Promise<ApiResponseInterface> {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import GEmolumentoInterface from '@/packages/administrativo/interfaces/GEmolumento/GEmolumentoInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoInterface from '../../interfaces/GEmolumento/GEmolumentoInterface';
|
||||
|
||||
async function executeGEmolumentoSaveData(data: GEmolumentoInterface): Promise<ApiResponseInterface> {
|
||||
// Verifica se existe ID para decidir se é atualização (PUT) ou criação (POST)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
|
||||
async function executeGEmolumentoItemDeleteData(data: GEmolumentoItemInterface): Promise<ApiResponseInterface> {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import GEmolumentoItemIndexInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoItemIndexInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
|
||||
async function executeGEmolumentoItemIndexData(data: GEmolumentoItemIndexInterface): Promise<ApiResponseInterface> {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
|
||||
async function executeGEmolumentoItemSaveData(data: GEmolumentoItemInterface): Promise<ApiResponseInterface> {
|
||||
// Verifica se existe ID para decidir se é atualização (PUT) ou criação (POST)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { Resolver, useForm } from "react-hook-form";
|
||||
|
||||
import { GCalculoFormValues, GCalculoSchema } from '@/packages/administrativo/schemas/GCalculo/GCalculoSchema';
|
||||
import { GCalculoFormValues, GCalculoSchema } from "@/packages/administrativo/schemas/GCalculo/GCalculoSchema";
|
||||
|
||||
export function useGCalculoFormHook(defaults?: Partial<GCalculoFormValues>) {
|
||||
return useForm<GCalculoFormValues>({
|
||||
resolver: zodResolver(GCalculoSchema),
|
||||
defaultValues: {
|
||||
emolumento_id: 0,
|
||||
...defaults,
|
||||
},
|
||||
resolver: zodResolver(GCalculoSchema) as Resolver<GCalculoFormValues>,
|
||||
defaultValues: defaults as GCalculoFormValues,
|
||||
mode: "onChange",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { Resolver, useForm } from 'react-hook-form';
|
||||
|
||||
import { GEmolumentoFormValues, GEmolumentoSchema } from '../../schemas/GEmolumento/GEmolumentoSchema';
|
||||
import { GEmolumentoFormValues, GEmolumentoSchema } from '@/packages/administrativo/schemas/GEmolumento/GEmolumentoSchema';
|
||||
|
||||
export function useGEmolumentoFormHook(defaults?: Partial<GEmolumentoFormValues>) {
|
||||
return useForm<GEmolumentoFormValues>({
|
||||
resolver: zodResolver(GEmolumentoSchema),
|
||||
defaultValues: {
|
||||
emolumento_id: 0,
|
||||
...defaults,
|
||||
},
|
||||
resolver: zodResolver(GEmolumentoSchema) as Resolver<GEmolumentoFormValues>,
|
||||
defaultValues: defaults as GEmolumentoFormValues,
|
||||
mode: "onChange",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { useState } from 'react';
|
||||
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemDeleteService } from '../../services/GEmolumentoItem/GEmolumentoItemDeleteService';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemDeleteService } from '@/packages/administrativo/services/GEmolumentoItem/GEmolumentoItemDeleteService';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGEmolumentoItemDeleteHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -1,19 +1,14 @@
|
|||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { Resolver, useForm } from 'react-hook-form';
|
||||
|
||||
import {
|
||||
GEmolumentoItemFormValues,
|
||||
GEmolumentoItemSchema,
|
||||
} from '../../schemas/GEmolumentoItem/GEmolumentoItemSchema';
|
||||
} from '@/packages/administrativo/schemas/GEmolumentoItem/GEmolumentoItemSchema';
|
||||
|
||||
export function useGEmolumentoItemFormHook(defaults?: Partial<GEmolumentoItemFormValues>) {
|
||||
return useForm<GEmolumentoItemFormValues>({
|
||||
resolver: zodResolver(GEmolumentoItemSchema),
|
||||
defaultValues: {
|
||||
emolumento_item_id: 0,
|
||||
emolumento_id: 0,
|
||||
emolumento_periodo_id: 0,
|
||||
...defaults,
|
||||
},
|
||||
resolver: zodResolver(GEmolumentoItemSchema) as Resolver<GEmolumentoItemFormValues>,
|
||||
defaultValues: defaults as GEmolumentoItemFormValues,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { useState } from 'react';
|
||||
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import GEmolumentoItemIndexInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemIndexService } from '../../services/GEmolumentoItem/GEmolumentoItemIndexService';
|
||||
import GEmolumentoItemIndexInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemIndexService } from '@/packages/administrativo/services/GEmolumentoItem/GEmolumentoItemIndexService';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGEmolumentoItemIndexHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
import { useState } from 'react';
|
||||
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemSaveService } from '../../services/GEmolumentoItem/GEmolumentoItemSaveService';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemSaveService } from '@/packages/administrativo/services/GEmolumentoItem/GEmolumentoItemSaveService';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGEmolumentoItemSaveHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
export default interface GCalculoInterface {
|
||||
idnex?: number;
|
||||
index?: number;
|
||||
apresentante?: string;
|
||||
observacao?: string;
|
||||
quantidade?: number;
|
||||
valor_documento?: number;
|
||||
emolumento_id?: number;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ export default interface GEmolumentoTableInterface {
|
|||
onEdit: (item: GEmolumentoInterface, isEditingFormStatus: boolean) => void;
|
||||
onDelete: (item: GEmolumentoInterface, isEditingFormStatus: boolean) => void;
|
||||
onSelectedEmolumentoPeriodo: (emolumentoPeriodId: number) => void;
|
||||
emolumentoPeriodoId: (id: number) => void;
|
||||
emolumentoPeriodoId: number;
|
||||
}
|
||||
|
|
@ -9,4 +9,4 @@ export const GCalculoSchema = z.object({
|
|||
emolumento_id: z.coerce.number().min(0).optional(),
|
||||
});
|
||||
|
||||
export type GCalculoFormValues = z.infer<typeof GCalculoSchema>;
|
||||
export type GCalculoFormValues = z.infer<typeof GCalculoSchema>;
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
import z from "zod";
|
||||
|
||||
export const GEmolumentoSchema = z.object({
|
||||
emolumento_id: z.number().optional(),
|
||||
emolumento_id: z.coerce.number().min(0).optional(),
|
||||
descricao: z.string().optional(),
|
||||
tipo: z.string().optional(),
|
||||
sistema_id: z.number().optional(),
|
||||
selo_grupo_id: z.number().optional(),
|
||||
sistema_id: z.coerce.number().min(0).optional(),
|
||||
selo_grupo_id: z.coerce.number().min(0).optional(),
|
||||
reg_averb: z.string().optional(),
|
||||
pre_definido: z.string().optional(),
|
||||
situacao: z.string().optional(),
|
||||
situacao_ri: z.string().optional(),
|
||||
com_reducao: z.string().optional(),
|
||||
motivo_reducao: z.string().optional(),
|
||||
valor_maximo_certidao: z.number().optional(),
|
||||
valor_maximo_certidao: z.coerce.number().min(0).optional(),
|
||||
tipo_objetivo: z.string().optional(),
|
||||
modelo_tag: z.string().optional(),
|
||||
codigo_nota_id: z.number().optional(),
|
||||
codigo_nota_id: z.coerce.number().min(0).optional(),
|
||||
convenio_codhab: z.string().optional(),
|
||||
item_df: z.string().optional(),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
|
||||
import { GEmolumentoItemDeleteData } from '@/packages/administrativo/data/GEmolumentoItem/GEmolumentoItemDeleteData';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
import { GEmolumentoItemDeleteData } from '../../data/GEmolumentoItem/GEmolumentoItemDeleteData';
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
|
||||
|
||||
async function executeGEmolumentoItemDeleteService(data: GEmolumentoItemInterface) {
|
||||
const response = await GEmolumentoItemDeleteData(data);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
import { GEmolumentoItemIndexData } from '../../data/GEmolumentoItem/GEmolumentoItemIndexData';
|
||||
import GEmolumentoItemIndexInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import { GEmolumentoItemIndexData } from '@/packages/administrativo/data/GEmolumentoItem/GEmolumentoItemIndexData';
|
||||
import GEmolumentoItemIndexInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemIndexInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
export default async function executeGEmolumentoItemIndexService(data: GEmolumentoItemIndexInterface) {
|
||||
const response = await GEmolumentoItemIndexData(data);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
import { GEmolumentoItemSaveData } from '../../data/GEmolumentoItem/GEmolumentoItemSaveData';
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { GEmolumentoItemSaveData } from '@/packages/administrativo/data/GEmolumentoItem/GEmolumentoItemSaveData';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGEmolumentoItemSaveService(data: GEmolumentoItemInterface) {
|
||||
const response = await GEmolumentoItemSaveData(data);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export default function TServicoItemPedidoForm({
|
|||
<div className="col-span-12 sm:col-span-6 md:col-span-12">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="palavra"
|
||||
name="desc_complementar"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Palavra</FormLabel>
|
||||
|
|
@ -87,101 +87,6 @@ export default function TServicoItemPedidoForm({
|
|||
)}
|
||||
/>
|
||||
</div>
|
||||
{/* Prefixo */}
|
||||
<div className="col-span-12 sm:col-span-6 md:col-span-12">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="prefixo"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Prefixo</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
{...field}
|
||||
type="text"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{/* Singular Masculino */}
|
||||
<div className="col-span-12 sm:col-span-6 md:col-span-6">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="sufixo_ms"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Sufixo Masculino Singular</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
{...field}
|
||||
type="text"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{/* Plural Masculino */}
|
||||
<div className="col-span-12 sm:col-span-6 md:col-span-6">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="sufixo_mp"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Sufixo Masculino Plural</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
{...field}
|
||||
type="text"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{/* Singular Feminino */}
|
||||
<div className="col-span-12 sm:col-span-6 md:col-span-6">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="sufixo_fs"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Sufixo Feminino Singular</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
{...field}
|
||||
type="text"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{/* Plural Feminino */}
|
||||
<div className="col-span-12 sm:col-span-6 md:col-span-6">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="sufixo_fp"
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-1 sm:col-span-2">
|
||||
<FormLabel>Sufixo Feminino Plural</FormLabel>
|
||||
<FormControl>
|
||||
<Input
|
||||
{...field}
|
||||
type="text"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{/* Rodapé */}
|
||||
<DialogFooter className="mt-6 flex flex-col justify-end gap-2 sm:flex-row">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue