refactor(Importações): Refatora as importações de componentes, fixa através do prettier e corrigi através do eslint
This commit is contained in:
parent
4770c42596
commit
790dbe2df3
336 changed files with 576 additions and 603 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GCartorioInterface from '../../interfaces/GCartorio/GCartorioInterface';
|
||||
import GCartorioInterface from '@/packages/administrativo/interfaces/GCartorio/GCartorioInterface';
|
||||
|
||||
export default function GCartorioColumns(
|
||||
onEdit: (item: GCartorioInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -24,8 +24,8 @@ import { Input } from '@/components/ui/input';
|
|||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useGCartorioFormHook } from '../../hooks/GCartorio/useGCartorioFormHook';
|
||||
import { GCartorioFormInterface } from '../../interfaces/GCartorio/GCartorioFormInterface';
|
||||
import { useGCartorioFormHook } from '@/packages/administrativo/hooks/GCartorio/useGCartorioFormHook';
|
||||
import { GCartorioFormInterface } from '@/packages/administrativo/interfaces/GCartorio/GCartorioFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GCartorioTableInterface from '@/packages/administrativo/interfaces/GCartorio/GCartorioTableInterface';
|
||||
import GCartorioColumns from './GCartorioColumns';
|
||||
import GCartorioTableInterface from '../../interfaces/GCartorio/GCartorioTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import {
|
|||
} from '@/components/ui/select';
|
||||
import { useGUfReadHook } from '@/packages/administrativo/hooks/GUF/useGUfReadHook';
|
||||
|
||||
import { GCidadeSchema } from '../../schemas/GCidade/GCidadeSchema';
|
||||
import { GCidadeSchema } from '@/packages/administrativo/schemas/GCidade/GCidadeSchema';
|
||||
|
||||
// Hook responsável em trazer todos os estados brasileiros
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import GCidadeInterface from '../../interfaces/GCidade/GCidadeInterface';
|
||||
import GCidadeInterface from '@/packages/administrativo/interfaces/GCidade/GCidadeInterface';
|
||||
|
||||
// Tipagem das props do componente da tabela
|
||||
interface GCidadeTableProps {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GEmolumentoInterface from '../../interfaces/GEmolumento/GEmolumentoInterface';
|
||||
import GEmolumentoInterface from '@/packages/administrativo/interfaces/GEmolumento/GEmolumentoInterface';
|
||||
|
||||
export default function GEmolumentoColumns(
|
||||
onEdit: (item: GEmolumentoInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ import SistemasSelect from '@/shared/components/sistemas/SistemasSelect';
|
|||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
import TipoEmolumentoSelect from '@/shared/components/tipoEmolumento/TipoAtoAnteriorSelect';
|
||||
|
||||
import { useGEmolumentoFormHook } from '../../hooks/GEmolumento/useGEmolumentoFormHook';
|
||||
import { GEmolumentoFormInterface } from '../../interfaces/GEmolumento/GEmolumentoFormInterface';
|
||||
import { useGEmolumentoFormHook } from '@/packages/administrativo/hooks/GEmolumento/useGEmolumentoFormHook';
|
||||
import { GEmolumentoFormInterface } from '@/packages/administrativo/interfaces/GEmolumento/GEmolumentoFormInterface';
|
||||
import GSeloGrupoSelect from '../GSeloGrupo/GSeloGrupoSelect';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GEmolumentoColumns from './GEmolumentoColumns';
|
||||
import GEmolumentoTableInterface from '../../interfaces/GEmolumento/GEmolumentoTableInterface';
|
||||
import GEmolumentoTableInterface from '@/packages/administrativo/interfaces/GEmolumento/GEmolumentoTableInterface';
|
||||
import GEmolumentoPeriodoSelect from '../GEmolumentoPeriodo/GEmolumentoPeriodoSelect';
|
||||
import GEmolumentoColumns from './GEmolumentoColumns';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GEmolumentoItemInterface from '../../interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
import GEmolumentoItemInterface from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemInterface';
|
||||
|
||||
export default function GEmolumentoItemColumns(
|
||||
onEdit: (item: GEmolumentoItemInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ import { parseNumberInput } from '@/shared/actions/form/parseNumberInput';
|
|||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useGEmolumentoItemFormHook } from '../../hooks/GEmolumentoItem/useGEmolumentoItemFormHook';
|
||||
import { GEmolumentoItemFormInterface } from '../../interfaces/GEmolumentoItem/GEmolumentoItemFormInterface';
|
||||
import { useGEmolumentoItemFormHook } from '@/packages/administrativo/hooks/GEmolumentoItem/useGEmolumentoItemFormHook';
|
||||
import { GEmolumentoItemFormInterface } from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemFormInterface';
|
||||
|
||||
export default function GEmolumentoItemForm({
|
||||
isOpen,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import { FormatDateTime } from '@/shared/actions/dateTime/FormatDateTime';
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GEmolumentoPeriodoInterface from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
import GEmolumentoPeriodoInterface from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
|
||||
export default function GEmolumentoPeriodoColumns(
|
||||
onEdit: (item: GEmolumentoPeriodoInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -24,8 +24,8 @@ import { Input } from '@/components/ui/input';
|
|||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useGEmolumentoPeriodoFormHook } from '../../hooks/GEmolumentoPeriodo/useGEmolumentoPeriodoFormHook';
|
||||
import { GEmolumentoPeriodoFormInterface } from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoFormInterface';
|
||||
import { useGEmolumentoPeriodoFormHook } from '@/packages/administrativo/hooks/GEmolumentoPeriodo/useGEmolumentoPeriodoFormHook';
|
||||
import { GEmolumentoPeriodoFormInterface } from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover
|
|||
import { cn } from '@/lib/utils';
|
||||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
|
||||
import { useGEmolumentoPeriodoIndexHook } from '../../hooks/GEmolumentoPeriodo/useGEmolumentoPeriodoIndexHook';
|
||||
import GEmolumentoPeriodoSelectInterface from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoSelectInterface';
|
||||
import { useGEmolumentoPeriodoIndexHook } from '@/packages/administrativo/hooks/GEmolumentoPeriodo/useGEmolumentoPeriodoIndexHook';
|
||||
import GEmolumentoPeriodoSelectInterface from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoSelectInterface';
|
||||
|
||||
export default function GEmolumentoPeriodoSelect({
|
||||
onSelectedEmolumentoPeriodo,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GEmolumentoPeriodoTableInterface from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoTableInterface';
|
||||
import GEmolumentoPeriodoColumns from './GEmolumentoPeriodoColumns';
|
||||
import GEmolumentoPeriodoTableInterface from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GGramaticaInterface from '../../interfaces/GGramatica/GGramaticaInterface';
|
||||
import GGramaticaInterface from '@/packages/administrativo/interfaces/GGramatica/GGramaticaInterface';
|
||||
|
||||
export default function GGramaticaColumns(
|
||||
onEdit: (item: GGramaticaInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ import { Input } from '@/components/ui/input';
|
|||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useGGramaticaFormHook } from '../../hooks/GGramatica/useGGramaticaFormHook';
|
||||
import { GGramaticaFormInterface } from '../../interfaces/GGramatica/GGramaticaFormInterface';
|
||||
import { useGGramaticaFormHook } from '@/packages/administrativo/hooks/GGramatica/useGGramaticaFormHook';
|
||||
import { GGramaticaFormInterface } from '@/packages/administrativo/interfaces/GGramatica/GGramaticaFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GGramaticaTableInterface from '@/packages/administrativo/interfaces/GGramatica/GGramaticaTableInterface';
|
||||
import GGramaticaColumns from './GGramaticaColumns';
|
||||
import GGramaticaTableInterface from '../../interfaces/GGramatica/GGramaticaTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ import {
|
|||
import { Input } from '@/components/ui/input';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { GMedidaTipoInterface } from '../../interfaces/GMedidaTipo/GMedidaTipoInterface';
|
||||
import { GMedidaTipoSchema } from '../../schemas/GMedidaTipo/GMedidaTipoSchema';
|
||||
import { GMedidaTipoSchema } from '@/packages/administrativo/schemas/GMedidaTipo/GMedidaTipoSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GMedidaTipoSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import { GMedidaTipoInterface } from '../../interfaces/GMedidaTipo/GMedidaTipoInterface';
|
||||
import { GMedidaTipoInterface } from '@/packages/administrativo/interfaces/GMedidaTipo/GMedidaTipoInterface';
|
||||
|
||||
interface GMedidaTipoTableProps {
|
||||
data: GMedidaTipoInterface[];
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GNaturezaInterface from '../../interfaces/GNatureza/GNaturezaInterface';
|
||||
import GNaturezaInterface from '@/packages/administrativo/interfaces/GNatureza/GNaturezaInterface';
|
||||
|
||||
export default function GNaturezaColumns(
|
||||
onEdit: (item: GNaturezaInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -26,8 +26,8 @@ import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
|||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
|
||||
import { useGNaturezaFormHook } from '../../hooks/GNatureza/useGNaturezaFormHook';
|
||||
import { GNaturezaFormInterface } from '../../interfaces/GNatureza/GNaturezaFormInterface';
|
||||
import { useGNaturezaFormHook } from '@/packages/administrativo/hooks/GNatureza/useGNaturezaFormHook';
|
||||
import { GNaturezaFormInterface } from '@/packages/administrativo/interfaces/GNatureza/GNaturezaFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { useGNaturezaDeleteHook } from '@/packages/administrativo/hooks/GNatureza/useGNaturezaDeleteHook';
|
||||
import { useGNaturezaIndexHook } from '@/packages/administrativo/hooks/GNatureza/useGNaturezaIndexHook';
|
||||
|
|
@ -11,9 +11,9 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { GNaturezaIndexInterface } from '@/packages/administrativo/interfaces/GNatureza/GNaturezaIndexInterface';
|
||||
import GNaturezaForm from './GNaturezaForm';
|
||||
import GNaturezaTable from './GNaturezaTable';
|
||||
import { GNaturezaIndexInterface } from '../../interfaces/GNatureza/GNaturezaIndexInterface';
|
||||
|
||||
export default function GNaturezaIndex({ sistema_id }: GNaturezaIndexInterface) {
|
||||
const GNaturezaIndexParams: GNaturezaIndexInterface = {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GNaturezaTableInterface from '@/packages/administrativo/interfaces/GNatureza/GNaturezaTableInterface';
|
||||
import GNaturezaColumns from './GNaturezaColumns';
|
||||
import GNaturezaTableInterface from '../../interfaces/GNatureza/GNaturezaTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
|||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import GNaturezaTituloInterface from '../../interfaces/GNaturezaTitulo/GNaturezaTituloInterface';
|
||||
import GNaturezaTituloInterface from '@/packages/administrativo/interfaces/GNaturezaTitulo/GNaturezaTituloInterface';
|
||||
|
||||
export default function GNaturezaTituloColumns(
|
||||
onEdit: (item: GNaturezaTituloInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -25,8 +25,8 @@ import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
|||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
|
||||
import { useGNaturezaTituloFormHook } from '../../hooks/GNaturezaTitulo/useGNaturezaTituloFormHook';
|
||||
import { GNaturezaTituloFormInterface } from '../../interfaces/GNaturezaTitulo/GNaturezaTituloFormInterface';
|
||||
import { useGNaturezaTituloFormHook } from '@/packages/administrativo/hooks/GNaturezaTitulo/useGNaturezaTituloFormHook';
|
||||
import { GNaturezaTituloFormInterface } from '@/packages/administrativo/interfaces/GNaturezaTitulo/GNaturezaTituloFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { useGNaturezaTituloDeleteHook } from '@/packages/administrativo/hooks/GNaturezaTitulo/useGNaturezaTituloDeleteHook';
|
||||
import { useGNaturezaTituloIndexHook } from '@/packages/administrativo/hooks/GNaturezaTitulo/useGNaturezaTituloIndexHook';
|
||||
|
|
@ -11,9 +11,9 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { GNaturezaTituloIndexInterface } from '@/packages/administrativo/interfaces/GNaturezaTitulo/GNaturezaTituloIndexInterface';
|
||||
import GNaturezaTituloForm from './GNaturezaTituloForm';
|
||||
import GNaturezaTituloTable from './GNaturezaTituloTable';
|
||||
import { GNaturezaTituloIndexInterface } from '../../interfaces/GNaturezaTitulo/GNaturezaTituloIndexInterface';
|
||||
|
||||
export default function GNaturezaTituloIndex({ sistema_id }: GNaturezaTituloIndexInterface) {
|
||||
const GNaturezaTituloIndexParams: GNaturezaTituloIndexInterface = {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GNaturezaTituloTableInterface from '@/packages/administrativo/interfaces/GNaturezaTitulo/GNaturezaTituloTableInterface';
|
||||
import GNaturezaTituloColumns from './GNaturezaTituloColumns';
|
||||
import GNaturezaTituloTableInterface from '../../interfaces/GNaturezaTitulo/GNaturezaTituloTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import GSeloGrupoInterface from '../../interfaces/GSeloGrupo/GSeloGrupoInterface';
|
||||
import GSeloGrupoInterface from '@/packages/administrativo/interfaces/GSeloGrupo/GSeloGrupoInterface';
|
||||
|
||||
export default function GSeloGrupoColumns(
|
||||
onEdit: (item: GSeloGrupoInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -28,8 +28,8 @@ import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
|||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
import TipoCartorioSelect from '@/shared/components/tipoCartorio/TipoCartorioSelect';
|
||||
|
||||
import { useGSeloGrupoFormHook } from '../../hooks/GSeloGrupo/useGSeloGrupoFormHook';
|
||||
import { GSeloGrupoFormInterface } from '../../interfaces/GSeloGrupo/GSeloGrupoFormInterface';
|
||||
import { useGSeloGrupoFormHook } from '@/packages/administrativo/hooks/GSeloGrupo/useGSeloGrupoFormHook';
|
||||
import { GSeloGrupoFormInterface } from '@/packages/administrativo/interfaces/GSeloGrupo/GSeloGrupoFormInterface';
|
||||
|
||||
/**
|
||||
* Formulário de cadastro/edição de Natureza
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { cn } from '@/lib/utils';
|
|||
import { useGSeloGrupoIndexHook } from '@/packages/administrativo/hooks/GSeloGrupo/useGSeloGrupoIndexHook';
|
||||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
|
||||
import GTBairroSelectInterface from '../../interfaces/GSeloGrupo/GSeloGrupoSelectInterace';
|
||||
import GTBairroSelectInterface from '@/packages/administrativo/interfaces/GSeloGrupo/GSeloGrupoSelectInterace';
|
||||
|
||||
export default function GSeloGrupoSelect({ field }: GTBairroSelectInterface) {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import GSeloGrupoTableInterface from '@/packages/administrativo/interfaces/GSeloGrupo/GSeloGrupoTableInterface';
|
||||
import GSeloGrupoColumns from './GSeloGrupoColumns';
|
||||
import GSeloGrupoTableInterface from '../../interfaces/GSeloGrupo/GSeloGrupoTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela de Naturezas
|
||||
|
|
|
|||
|
|
@ -2,11 +2,10 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
|
|
@ -30,7 +29,7 @@ import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
|||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import { GTBBairroSchema } from '../../schemas/GTBBairro/GTBBairroSchema';
|
||||
import { GTBBairroSchema } from '@/packages/administrativo/schemas/GTBBairro/GTBBairroSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GTBBairroSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import { useResponse } from '@/shared/components/response/ResponseContext';
|
|||
import Header from '@/shared/components/structure/Header';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import { GTBBairroInterface } from '@/packages/administrativo/interfaces/GTBBairro/GTBBairroInterface';
|
||||
import GTBBairroForm from './GTBBairroForm';
|
||||
import GTBBairroTable from './GTBBairroTable';
|
||||
import { GTBBairroInterface } from '../../interfaces/GTBBairro/GTBBairroInterface';
|
||||
|
||||
const initialBairro: GTBBairroInterface = {
|
||||
sistema_id: null,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { cn } from '@/lib/utils';
|
|||
import { useGTBBairroReadHook } from '@/packages/administrativo/hooks/GTBBairro/useGTBBairroReadHook';
|
||||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
|
||||
import GTBairroSelectInterface from '../../interfaces/GTBBairro/GTBairroSelectInterface';
|
||||
import GTBairroSelectInterface from '@/packages/administrativo/interfaces/GTBBairro/GTBairroSelectInterface';
|
||||
|
||||
export default function GTBBairroSelect({ field }: GTBairroSelectInterface) {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import {
|
|||
} from '@/components/ui/table';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import { GTBBairroInterface } from '../../interfaces/GTBBairro/GTBBairroInterface';
|
||||
import { GTBBairroInterface } from '@/packages/administrativo/interfaces/GTBBairro/GTBBairroInterface';
|
||||
|
||||
interface GTBBairroTableProps {
|
||||
data: GTBBairroInterface[];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -28,8 +28,7 @@ import { Input } from '@/components/ui/input';
|
|||
import { Label } from '@/components/ui/label';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { GTBEstadoCivilInterface } from '../../interfaces/GTBEstadoCivil/GTBEstadoCivilInterface';
|
||||
import { GTBEstadoCivilSchema } from '../../schemas/GTBEstadoCivil/GTBEstadoCivilSchema';
|
||||
import { GTBEstadoCivilSchema } from '@/packages/administrativo/schemas/GTBEstadoCivil/GTBEstadoCivilSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GTBEstadoCivilSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ import Loading from '@/shared/components/loading/loading';
|
|||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useGTBEstadoCivilReadHook } from '@/packages/administrativo/hooks/GTBEstadoCivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBEstadoCivilRemoveHook } from '@/packages/administrativo/hooks/GTBEstadoCivil/useGTBEstadoCivilRemoveHook';
|
||||
import { useGTBEstadoCivilSaveHook } from '@/packages/administrativo/hooks/GTBEstadoCivil/useGTBEstadoCivilSaveHook';
|
||||
import { GTBEstadoCivilInterface } from '@/packages/administrativo/interfaces/GTBEstadoCivil/GTBEstadoCivilInterface';
|
||||
import GTBEstadoCivilForm from './GTBEstadoCivilForm';
|
||||
import GTBEstadoCivilTable from './GTBEstadoCivilTable';
|
||||
import { useGTBEstadoCivilReadHook } from '../../hooks/GTBEstadoCivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBEstadoCivilRemoveHook } from '../../hooks/GTBEstadoCivil/useGTBEstadoCivilRemoveHook';
|
||||
import { useGTBEstadoCivilSaveHook } from '../../hooks/GTBEstadoCivil/useGTBEstadoCivilSaveHook';
|
||||
import { GTBEstadoCivilInterface } from '../../interfaces/GTBEstadoCivil/GTBEstadoCivilInterface';
|
||||
|
||||
const initalEstadoCivil: GTBEstadoCivilInterface = {
|
||||
tb_estadocivil_id: 0,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import { GTBEstadoCivilInterface } from '../../interfaces/GTBEstadoCivil/GTBEstadoCivilInterface';
|
||||
import { GTBEstadoCivilInterface } from '@/packages/administrativo/interfaces/GTBEstadoCivil/GTBEstadoCivilInterface';
|
||||
|
||||
interface TBEstadoCivilTableProps {
|
||||
data: GTBEstadoCivilInterface[];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -27,7 +27,7 @@ import {
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
|
||||
import { GTBProfissaoSchema } from '../../schemas/GTBProfissao/GTBProfissaoSchema';
|
||||
import { GTBProfissaoSchema } from '@/packages/administrativo/schemas/GTBProfissao/GTBProfissaoSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GTBProfissaoSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useGTBProfissaoReadHook } from '@/packages/administrativo/hooks/GTBProfissao/useGTBProfissaoReadHook';
|
||||
|
|
@ -11,9 +11,9 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import GTBProfissaoInterface from '@/packages/administrativo/interfaces/GTBProfissao/GTBProfissaoInterface';
|
||||
import GTBProfissaoForm from './GTBProfissaoForm';
|
||||
import GTBProfissaoTable from './GTBProfissaoTable';
|
||||
import GTBProfissaoInterface from '../../interfaces/GTBProfissao/GTBProfissaoInterface';
|
||||
|
||||
export default function GTBProfissaoIndex() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import GTBProfissaoInterface from '../../interfaces/GTBProfissao/GTBProfissaoInterface';
|
||||
import GTBProfissaoInterface from '@/packages/administrativo/interfaces/GTBProfissao/GTBProfissaoInterface';
|
||||
|
||||
interface GTBProfissaoTableProps {
|
||||
data: GTBProfissaoInterface[];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import GTBRegimeBensForm from '@/packages/administrativo/components/GTBRegimeBens/GTBRegimeBensForm';
|
||||
|
|
@ -10,10 +10,10 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useGTBRegimeBensReadHook } from '../../hooks/GTBRegimeBens/useGTBRegimeBensReadHook';
|
||||
import { useGTBRegimeBensRemoveHook } from '../../hooks/GTBRegimeBens/useGTBRegimeBensRemoveHook';
|
||||
import { useGTBRegimeBensSaveHook } from '../../hooks/GTBRegimeBens/useGTBRegimeBensSaveHook';
|
||||
import GTBRegimeBensInterface from '../../interfaces/GTBRegimeBens/GTBRegimeBensInterface';
|
||||
import { useGTBRegimeBensReadHook } from '@/packages/administrativo/hooks/GTBRegimeBens/useGTBRegimeBensReadHook';
|
||||
import { useGTBRegimeBensRemoveHook } from '@/packages/administrativo/hooks/GTBRegimeBens/useGTBRegimeBensRemoveHook';
|
||||
import { useGTBRegimeBensSaveHook } from '@/packages/administrativo/hooks/GTBRegimeBens/useGTBRegimeBensSaveHook';
|
||||
import GTBRegimeBensInterface from '@/packages/administrativo/interfaces/GTBRegimeBens/GTBRegimeBensInterface';
|
||||
|
||||
export default function GTBRegimeBensIndex() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -34,8 +34,8 @@ import {
|
|||
SelectValue,
|
||||
} from '@/components/ui/select';
|
||||
|
||||
import { useGTBRegimeBensReadHook } from '../../hooks/GTBRegimeBens/useGTBRegimeBensReadHook';
|
||||
import { GTBRegimeComunhaoSchema } from '../../schemas/GTBRegimeComunhao/GTBRegimeComunhaoSchema';
|
||||
import { useGTBRegimeBensReadHook } from '@/packages/administrativo/hooks/GTBRegimeBens/useGTBRegimeBensReadHook';
|
||||
import { GTBRegimeComunhaoSchema } from '@/packages/administrativo/schemas/GTBRegimeComunhao/GTBRegimeComunhaoSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GTBRegimeComunhaoSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
|
|
@ -8,12 +8,12 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useGTBRegimeComunhaoReadHook } from '@/packages/administrativo/hooks/GTBRegimeComunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBRegimeComunhaoRemoveHook } from '@/packages/administrativo/hooks/GTBRegimeComunhao/useGTBRegimeComunhaoRemoveHook';
|
||||
import { useGTBRegimeComunhaoSaveHook } from '@/packages/administrativo/hooks/GTBRegimeComunhao/useGTBRegimeComunhaoSaveHook';
|
||||
import GTBRegimeComunhaoInterface from '@/packages/administrativo/interfaces/GTBRegimeComunhao/GTBRegimeComunhaoInterface';
|
||||
import GTBRegimeComunhaoForm from './GTBRegimeComunhaoForm';
|
||||
import GTBRegimeComunhaoTable from './GTBRegimeComunhaoTable';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../hooks/GTBRegimeComunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBRegimeComunhaoRemoveHook } from '../../hooks/GTBRegimeComunhao/useGTBRegimeComunhaoRemoveHook';
|
||||
import { useGTBRegimeComunhaoSaveHook } from '../../hooks/GTBRegimeComunhao/useGTBRegimeComunhaoSaveHook';
|
||||
import GTBRegimeComunhaoInterface from '../../interfaces/GTBRegimeComunhao/GTBRegimeComunhaoInterface';
|
||||
|
||||
export default function GTBRegimeComunhaoIndex() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import GTBRegimeComunhaoInterface from '../../interfaces/GTBRegimeComunhao/GTBRegimeComunhaoInterface';
|
||||
import GTBRegimeComunhaoInterface from '@/packages/administrativo/interfaces/GTBRegimeComunhao/GTBRegimeComunhaoInterface';
|
||||
|
||||
interface GTBRegimeComunhaoTableProps {
|
||||
data: GTBRegimeComunhaoInterface[];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -28,8 +28,7 @@ import { Input } from '@/components/ui/input';
|
|||
import { Label } from '@/components/ui/label';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { GTBTipoLogradouroInterface } from '../../interfaces/GTBTipoLogradouro/GTBTipoLogradouroInterface';
|
||||
import { GTBTipoLogradouroSchema } from '../../schemas/GTBTipoLogradouro/GTBTipoLogradouroSchema';
|
||||
import { GTBTipoLogradouroSchema } from '@/packages/administrativo/schemas/GTBTipoLogradouro/GTBTipoLogradouroSchema';
|
||||
|
||||
type FormValues = z.infer<typeof GTBTipoLogradouroSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
|
|
@ -9,12 +9,12 @@ import Loading from '@/shared/components/loading/loading';
|
|||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useGTBTipoLogradouroReadHook } from '@/packages/administrativo/hooks/GTBTipoLogradouro/useGTBTipoLogradouroReadHook';
|
||||
import { useGTBTipoLogradouroRemoveHook } from '@/packages/administrativo/hooks/GTBTipoLogradouro/useGTBTipoLogradouroRemoveHook';
|
||||
import { useGTBTipoLogradouroSaveHook } from '@/packages/administrativo/hooks/GTBTipoLogradouro/useGTBTipoLogradouroSaveHook';
|
||||
import { GTBTipoLogradouroInterface } from '@/packages/administrativo/interfaces/GTBTipoLogradouro/GTBTipoLogradouroInterface';
|
||||
import GTBTipoLogradouroForm from './GTBTipoLogradouroForm';
|
||||
import GTBTipoLogradouroTable from './GTBTipoLogradouroTable';
|
||||
import { useGTBTipoLogradouroReadHook } from '../../hooks/GTBTipoLogradouro/useGTBTipoLogradouroReadHook';
|
||||
import { useGTBTipoLogradouroRemoveHook } from '../../hooks/GTBTipoLogradouro/useGTBTipoLogradouroRemoveHook';
|
||||
import { useGTBTipoLogradouroSaveHook } from '../../hooks/GTBTipoLogradouro/useGTBTipoLogradouroSaveHook';
|
||||
import { GTBTipoLogradouroInterface } from '../../interfaces/GTBTipoLogradouro/GTBTipoLogradouroInterface';
|
||||
|
||||
export default function GTBTipoLogradouroIndex() {
|
||||
// Controle de exibição de respostas
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import { GTBTipoLogradouroInterface } from '../../interfaces/GTBTipoLogradouro/GTBTipoLogradouroInterface';
|
||||
import { GTBTipoLogradouroInterface } from '@/packages/administrativo/interfaces/GTBTipoLogradouro/GTBTipoLogradouroInterface';
|
||||
|
||||
interface GTBTipoLogradouroTableProps {
|
||||
data: GTBTipoLogradouroInterface[];
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { ConfirmacaoEnum } from '@/shared/enums/ConfirmacaoEnum';
|
|||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
import { TipoDaParteEnum } from '@/shared/enums/TIpoDaParteEnum';
|
||||
|
||||
import TAtoParteTipoInterface from '../../interfaces/TAtoParteTipo/TAtoParteTipoInterface';
|
||||
import TAtoParteTipoInterface from '@/packages/administrativo/interfaces/TAtoParteTipo/TAtoParteTipoInterface';
|
||||
|
||||
export default function TAtoParteTipoColumns(
|
||||
onEdit: (item: TAtoParteTipoInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -22,13 +22,12 @@ import {
|
|||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Switch } from '@/components/ui/switch';
|
||||
import { parseNumberInput } from '@/shared/actions/form/parseNumberInput';
|
||||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import TipoDaParteSelect from '@/shared/components/tipoDaParte/TipoDaParteSelect';
|
||||
|
||||
import { useTAtoParteTipoFormHook } from '../../hooks/TAtoParteTipo/useTAtoParteTipoFormHook';
|
||||
import { TAtoParteTipoFormInterface } from '../../interfaces/TAtoParteTipo/TAtoParteTipoFormInterface';
|
||||
import { useTAtoParteTipoFormHook } from '@/packages/administrativo/hooks/TAtoParteTipo/useTAtoParteTipoFormHook';
|
||||
import { TAtoParteTipoFormInterface } from '@/packages/administrativo/interfaces/TAtoParteTipo/TAtoParteTipoFormInterface';
|
||||
import TCensecQualidadeSelect from '../TCensecQualidade/TCensecQualidadeSelect';
|
||||
|
||||
export default function TAtoParteTipoForm({
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TAtoParteTipoTableInterface from '@/packages/administrativo/interfaces/TAtoParteTipo/TAtoParteTipoTableInterface';
|
||||
import TAtoParteTipoColumns from './TAtoParteTipoColumns';
|
||||
import TAtoParteTipoTableInterface from '../../interfaces/TAtoParteTipo/TAtoParteTipoTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
|
|
@ -8,12 +8,12 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useTCensecDeleteHook } from '@/packages/administrativo/hooks/TCensec/useTCensecDeleteHook';
|
||||
import { useTCensecReadHook } from '@/packages/administrativo/hooks/TCensec/useTCensecReadHook';
|
||||
import { useTCensecSaveHook } from '@/packages/administrativo/hooks/TCensec/useTCensecSaveHook';
|
||||
import TCensecInterface from '@/packages/administrativo/interfaces/TCensec/TCensecInterface';
|
||||
import TCensecForm from './TCensecForm';
|
||||
import TCensecTable from './TCensecTable';
|
||||
import { useTCensecDeleteHook } from '../../hooks/TCensec/useTCensecDeleteHook';
|
||||
import { useTCensecReadHook } from '../../hooks/TCensec/useTCensecReadHook';
|
||||
import { useTCensecSaveHook } from '../../hooks/TCensec/useTCensecSaveHook';
|
||||
import TCensecInterface from '../../interfaces/TCensec/TCensecInterface';
|
||||
|
||||
export default function TCensecIndex() {
|
||||
// Controle de estado do botão
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import { useResponse } from '@/shared/components/response/ResponseContext';
|
|||
import Header from '@/shared/components/structure/Header';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import { TCensecNaturezaLitigioInterface } from '@/packages/administrativo/interfaces/TCensecNaturezaLitigio/TCensecNaturezaLitigioInterface';
|
||||
import TCensecNaturezaLitigioForm from './TCensecNaturezaLitigioForm';
|
||||
import TCensecNaturezaLitigioTable from './TCensecNaturezaLitigioTable';
|
||||
import { TCensecNaturezaLitigioInterface } from '../../interfaces/TCensecNaturezaLitigio/TCensecNaturezaLitigioInterface';
|
||||
|
||||
const initialCensecNaturezaLitigio: TCensecNaturezaLitigioInterface = {
|
||||
censec_naturezalitigio_id: 0,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import TCensecQualidadeInterface from '../../interfaces/TCensecQualidade/TCensecQualidadeInterface';
|
||||
import TCensecQualidadeInterface from '@/packages/administrativo/interfaces/TCensecQualidade/TCensecQualidadeInterface';
|
||||
|
||||
export default function TCensecQualidadeColumns(
|
||||
onEdit: (item: TCensecQualidadeInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -26,8 +26,8 @@ import ConfirmacaoSelect from '@/shared/components/confirmacao/ConfirmacaoSelect
|
|||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
|
||||
import { useTCensecQualidadeFormHook } from '../../hooks/TCensecQualidade/useTCensecQualidadeHook';
|
||||
import { TCensecQualidadeFormInterface } from '../../interfaces/TCensecQualidade/TCensecQualidadeFormInterface';
|
||||
import { useTCensecQualidadeFormHook } from '@/packages/administrativo/hooks/TCensecQualidade/useTCensecQualidadeHook';
|
||||
import { TCensecQualidadeFormInterface } from '@/packages/administrativo/interfaces/TCensecQualidade/TCensecQualidadeFormInterface';
|
||||
|
||||
export default function TCensecQualidadeForm({
|
||||
isOpen,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover
|
|||
import { cn } from '@/lib/utils';
|
||||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
|
||||
import { useTCensecQualidadeIndexHook } from '../../hooks/TCensecQualidade/useTCensecQualidadeIndexHook';
|
||||
import { useTCensecQualidadeIndexHook } from '@/packages/administrativo/hooks/TCensecQualidade/useTCensecQualidadeIndexHook';
|
||||
|
||||
export default function TCensecQualidadeSelect({ field }: any) {
|
||||
const [open, setOpen] = React.useState(false);
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TCensecQualidadeTableInterface from '@/packages/administrativo/interfaces/TCensecQualidade/TCensecQualidadeTableInterface';
|
||||
import TCensecQualidadeColumns from './TCensecQualidadeColumns';
|
||||
import TCensecQualidadeTableInterface from '../../interfaces/TCensecQualidade/TCensecQualidadeTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
|
||||
import TCensecQualidadeAtoJoinedInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoPageInterface';
|
||||
import TCensecQualidadeAtoJoinedInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoPageInterface';
|
||||
|
||||
export default function TCensecQualidadeAtoColumns(
|
||||
onDelete: (item: TCensecQualidadeAtoJoinedInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -17,11 +17,11 @@ import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
|||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useTCensecQualidadeIndexHook } from '@/packages/administrativo/hooks/TCensecQualidade/useTCensecQualidadeIndexHook';
|
||||
import { useTCensecQualidadeAtoFormHook } from '@/packages/administrativo/hooks/TCensecQualidadeAto/useTCensecQualidadeAtoFormHook';
|
||||
import TCensecQualidadeAtoFormInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoFormInterface';
|
||||
import TCensecQualidadeAtoInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
import TCensecQualidadeAtoFormColumns from './TCensecQualidadeAtoFormColumns';
|
||||
import { useTCensecQualidadeIndexHook } from '../../hooks/TCensecQualidade/useTCensecQualidadeIndexHook';
|
||||
import { useTCensecQualidadeAtoFormHook } from '../../hooks/TCensecQualidadeAto/useTCensecQualidadeAtoFormHook';
|
||||
import TCensecQualidadeAtoFormInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoFormInterface';
|
||||
import TCensecQualidadeAtoInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
|
||||
export default function TCensecQualidadeAtoForm({
|
||||
isOpen,
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { Button } from '@/components/ui/button';
|
|||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
||||
|
||||
import TCensecQualidadeInterface from '../../interfaces/TCensecQualidade/TCensecQualidadeInterface';
|
||||
import TCensecQualidadeAtoInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
import TCensecQualidadeInterface from '@/packages/administrativo/interfaces/TCensecQualidade/TCensecQualidadeInterface';
|
||||
import TCensecQualidadeAtoInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
|
||||
export default function TCensecQualidadeAtoFormColumns(
|
||||
setSelectedTCensecQualidadeAto: React.Dispatch<
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { useTCensecQualidadeAtoDeleteHook } from '@/packages/administrativo/hooks/TCensecQualidadeAto/useTCensecQualidadeAtoDeleteHook';
|
||||
import { useTCensecQualidadeAtoIndexHook } from '@/packages/administrativo/hooks/TCensecQualidadeAto/useTCensecQualidadeAtoIndexHook';
|
||||
import { useTCensecQualidadeAtoSaveHook } from '@/packages/administrativo/hooks/TCensecQualidadeAto/useTCensecQualidadeAtoSaveHook';
|
||||
import TCensecQualidadeAtoInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
import TCensecQualidadeAtoPageInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoPageInterface';
|
||||
import TCensecQualidadeAtoForm from './TCensecQualidadeAtoForm';
|
||||
import TCensecQualidadeAtoTable from './TCensecQualidadeAtoTable';
|
||||
import { useTCensecQualidadeAtoDeleteHook } from '../../hooks/TCensecQualidadeAto/useTCensecQualidadeAtoDeleteHook';
|
||||
import { useTCensecQualidadeAtoIndexHook } from '../../hooks/TCensecQualidadeAto/useTCensecQualidadeAtoIndexHook';
|
||||
import { useTCensecQualidadeAtoSaveHook } from '../../hooks/TCensecQualidadeAto/useTCensecQualidadeAtoSaveHook';
|
||||
import TCensecQualidadeAtoInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoInterface';
|
||||
import TCensecQualidadeAtoPageInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoPageInterface';
|
||||
|
||||
export default function TCensecQualidadeAtoIndex({
|
||||
censec_tipoato_id,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TCensecQualidadeAtoTableInterface from '@/packages/administrativo/interfaces/TCensecQualidadeAto/TCensecQualidadeAtoTableInterface';
|
||||
import TCensecQualidadeAtoColumns from './TCensecQualidadeAtoColumns';
|
||||
import TCensecQualidadeAtoTableInterface from '../../interfaces/TCensecQualidadeAto/TCensecQualidadeAtoTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { IdCardIcon, UserIcon } from 'lucide-react';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -38,8 +38,8 @@ import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
|||
import SituacoesSelect from '@/shared/components/situacoes/SituacoesSelect';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import TCensecInterface from '../../interfaces/TCensec/TCensecInterface';
|
||||
import { TCensecTipoAtoSchema } from '../../schemas/TCensecTipoAto/TCensecTipoAtoSchema';
|
||||
import TCensecInterface from '@/packages/administrativo/interfaces/TCensec/TCensecInterface';
|
||||
import { TCensecTipoAtoSchema } from '@/packages/administrativo/schemas/TCensecTipoAto/TCensecTipoAtoSchema';
|
||||
|
||||
type FormValues = z.infer<typeof TCensecTipoAtoSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ import Loading from '@/shared/components/loading/loading';
|
|||
import Header from '@/shared/components/structure/Header';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import { useTCensecReadHook } from '@/packages/administrativo/hooks/TCensec/useTCensecReadHook';
|
||||
import { useTCensecTipoAtoReadHook } from '@/packages/administrativo/hooks/TCensecTipoAto/useTCensecTipoAtoReadHook';
|
||||
import { useTCensecTipoAtoRemoveHook } from '@/packages/administrativo/hooks/TCensecTipoAto/useTCensecTipoAtoRemoveHook';
|
||||
import { useTCensecTipoAtoSaveHook } from '@/packages/administrativo/hooks/TCensecTipoAto/useTCensecTipoAtoSaveHook';
|
||||
import { TCensecTipoAtoInterface } from '@/packages/administrativo/interfaces/TCensecTipoAto/TCensecTipoAtoInterface';
|
||||
import TCensecTipoAtoForm from './TCensecTipoAtoForm';
|
||||
import TCensecTipoAtoTable from './TCensecTipoAtoTable';
|
||||
import { useTCensecReadHook } from '../../hooks/TCensec/useTCensecReadHook';
|
||||
import { useTCensecTipoAtoReadHook } from '../../hooks/TCensecTipoAto/useTCensecTipoAtoReadHook';
|
||||
import { useTCensecTipoAtoRemoveHook } from '../../hooks/TCensecTipoAto/useTCensecTipoAtoRemoveHook';
|
||||
import { useTCensecTipoAtoSaveHook } from '../../hooks/TCensecTipoAto/useTCensecTipoAtoSaveHook';
|
||||
import { TCensecTipoAtoInterface } from '../../interfaces/TCensecTipoAto/TCensecTipoAtoInterface';
|
||||
|
||||
// Estado inicial para criação
|
||||
const initialTCensecTipoAto: TCensecTipoAtoInterface = {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import TCensecInterface from '../../interfaces/TCensec/TCensecInterface';
|
||||
import { TCensecTipoAtoInterface } from '../../interfaces/TCensecTipoAto/TCensecTipoAtoInterface';
|
||||
import TCensecInterface from '@/packages/administrativo/interfaces/TCensec/TCensecInterface';
|
||||
import { TCensecTipoAtoInterface } from '@/packages/administrativo/interfaces/TCensecTipoAto/TCensecTipoAtoInterface';
|
||||
|
||||
interface TCensecTipoAtoTableProps {
|
||||
data: TCensecTipoAtoInterface[];
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
|||
import { ConfirmacaoEnum } from '@/shared/enums/ConfirmacaoEnum';
|
||||
import { TipoAtoAnteriorEnum } from '@/shared/enums/TipoAtoAnteriorEnum';
|
||||
|
||||
import TCensecTipoNaturezaInterface from '../../interfaces/TCensecTipoNatureza/TCensecTipoNaturezaInterface';
|
||||
import TCensecTipoNaturezaInterface from '@/packages/administrativo/interfaces/TCensecTipoNatureza/TCensecTipoNaturezaInterface';
|
||||
|
||||
export default function TCensecTipoNaturezaColumns(
|
||||
onEdit: (item: TCensecTipoNaturezaInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -28,8 +28,8 @@ import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
|||
import TipoAtoAnteriorSelect from '@/shared/components/tipoAtoAnterior/TipoAtoAnteriorSelect';
|
||||
import TipoNaturezaSelect from '@/shared/components/tipoNatureza/TipoNaturezaSelect';
|
||||
|
||||
import { useTCensecTipoNaturezaFormHook } from '../../hooks/TCensecTipoNatureza/useTCensecTipoNaturezaFormHook';
|
||||
import { TCensecTipoNaturezaFormInterface } from '../../interfaces/TCensecTipoNatureza/TCensecTipoNaturezaFormInterface';
|
||||
import { useTCensecTipoNaturezaFormHook } from '@/packages/administrativo/hooks/TCensecTipoNatureza/useTCensecTipoNaturezaFormHook';
|
||||
import { TCensecTipoNaturezaFormInterface } from '@/packages/administrativo/interfaces/TCensecTipoNatureza/TCensecTipoNaturezaFormInterface';
|
||||
import TCensecTipoAtoSelect from '../TCensecTipoAto/TCensecTipoAtoSelect';
|
||||
|
||||
export default function TCensecTipoNaturezaForm({
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TCensecTipoNaturezaTableInterface from '@/packages/administrativo/interfaces/TCensecTipoNatureza/TCensecTipoNaturezaTableInterface';
|
||||
import TCensecTipoNaturezaColumns from './TCensecTipoNaturezaColumns';
|
||||
import TCensecTipoNaturezaTableInterface from '../../interfaces/TCensecTipoNatureza/TCensecTipoNaturezaTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
|||
import { SortableHeader } from '@/shared/components/dataTable/SortableHeader';
|
||||
import { ImovelTipoRegistro } from '@/shared/enums/ImovelTipoRegistro';
|
||||
|
||||
import TImovelInterface from '../../interfaces/TImovel/TImovelInterface';
|
||||
import TImovelInterface from '@/packages/administrativo/interfaces/TImovel/TImovelInterface';
|
||||
|
||||
export default function TImovelColumns(
|
||||
onEdit: (item: TImovelInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ import { parseNumberInput } from '@/shared/actions/form/parseNumberInput';
|
|||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import TImovelTipoRegistroSelect from './TImovelTipoRegistroSelect';
|
||||
import { useTImovelFormHook } from '../../hooks/TImovel/useTImovelFormHook';
|
||||
import { TImovelFormInterface } from '../../interfaces/TImovel/TImovelFormInterface';
|
||||
import { useTImovelFormHook } from '@/packages/administrativo/hooks/TImovel/useTImovelFormHook';
|
||||
import { TImovelFormInterface } from '@/packages/administrativo/interfaces/TImovel/TImovelFormInterface';
|
||||
import GTBBairroSelect from '../GTBBairro/GTBBairroSelect';
|
||||
import TImovelUnidadeRuralIndex from '../TImovelUnidade/TImovelUnidadeRural/TImovelUnidadeRuralIndex';
|
||||
import TImovelUnidadeUrbanoPage from '../TImovelUnidade/TImovelUnidadeUrbano/TImovelUnidadeUrbanoIndex';
|
||||
import TImovelTipoRegistroSelect from './TImovelTipoRegistroSelect';
|
||||
|
||||
export default function TImovelForm({
|
||||
isOpen,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { useTImovelDeleteHook } from '@/packages/administrativo/hooks/TImovel/useTImovelDeleteHook';
|
||||
import { useTImovelIndexHook } from '@/packages/administrativo/hooks/TImovel/useTImovelIndexHook';
|
||||
|
|
@ -11,10 +11,10 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import { TImovelIndexDataInterface } from '@/packages/administrativo/interfaces/TImovel/TImovelIndexDataInterface';
|
||||
import { TImovelIndexInterface } from '@/packages/administrativo/interfaces/TImovel/TImovelIndexInterface';
|
||||
import TImovelForm from './TImovelForm';
|
||||
import TImovelTable from './TImovelTable';
|
||||
import { TImovelIndexDataInterface } from '../../interfaces/TImovel/TImovelIndexDataInterface';
|
||||
import { TImovelIndexInterface } from '../../interfaces/TImovel/TImovelIndexInterface';
|
||||
|
||||
export default function TImovelIndex({
|
||||
pageTitle,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TImovelTableInterface from '@/packages/administrativo/interfaces/TImovel/TImovelTabelInterface';
|
||||
import TImovelColumns from './TImovelColumns';
|
||||
import TImovelTableInterface from '../../interfaces/TImovel/TImovelTabelInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -28,15 +28,14 @@ import {
|
|||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select';
|
||||
import TImovelTipoConstrucaoSelect from '@/packages/administrativo/components/TImovel/TImovelTipoConstrucaoSelect';
|
||||
import TImovelTipoImovelSelect from '@/packages/administrativo/components/TImovel/TImovelTipoImovelSelect';
|
||||
import { useTImovelUnidadeRuralFormHook } from '@/packages/administrativo/hooks/TImovelUnidade/TImovelUnidadeRural/useTImovelUnidadeRuralFormHook';
|
||||
import { TImovelUnidadeRuralFormInterface } from '@/packages/administrativo/interfaces/TImovelUnidade/TImovelUnidadeRural/TImovelUnidadeRuralFormInterface';
|
||||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
import TImovelTipoConstrucaoSelect from '../../TImovel/TImovelTipoConstrucaoSelect';
|
||||
import TImovelTipoImovelSelect from '../../TImovel/TImovelTipoImovelSelect';
|
||||
|
||||
export default function TImovelUnidadeRuralForm({
|
||||
isOpen,
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
|
|
@ -21,16 +21,15 @@ import {
|
|||
FormMessage,
|
||||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import TImovelTipoConstrucaoSelect from '@/packages/administrativo/components/TImovel/TImovelTipoConstrucaoSelect';
|
||||
import TImovelTipoImovelSelect from '@/packages/administrativo/components/TImovel/TImovelTipoImovelSelect';
|
||||
import TImovelTipoLogradouroSelect from '@/packages/administrativo/components/TImovel/TImovelTipoLogradouroSelect';
|
||||
import { useTImovelUnidadeUrbanoFormHook } from '@/packages/administrativo/hooks/TImovelUnidade/TImovelUnidadeUrbano/useTImovelUnidadeUrbanoFormHook';
|
||||
import { TImovelUnidadeUrbanoFormInterface } from '@/packages/administrativo/interfaces/TImovelUnidade/TImovelUnidadeUrbano/TImovelUnidadeUrbanoFormInterface';
|
||||
import { parseNumberInput } from '@/shared/actions/form/parseNumberInput';
|
||||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import TImovelTipoConstrucaoSelect from '../../TImovel/TImovelTipoConstrucaoSelect';
|
||||
import TImovelTipoImovelSelect from '../../TImovel/TImovelTipoImovelSelect';
|
||||
import TImovelTipoLogradouroSelect from '../../TImovel/TImovelTipoLogradouroSelect';
|
||||
|
||||
export default function TImovelUnidadeUrbanoForm({
|
||||
isOpen,
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import MainEditor from '@/components/MainEditor';
|
||||
|
|
@ -28,8 +28,7 @@ import {
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
|
||||
import { TMinutaInterface } from '../../interfaces/TMinuta/TMinutaInterface';
|
||||
import { TMinutaSchema } from '../../schemas/TMinuta/TMinutaSchema';
|
||||
import { TMinutaSchema } from '@/packages/administrativo/schemas/TMinuta/TMinutaSchema';
|
||||
|
||||
type FormValues = z.infer<typeof TMinutaSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,8 @@
|
|||
'use client';
|
||||
|
||||
import { EllipsisIcon, PencilIcon, Trash2Icon } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuGroup,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
|
|
@ -21,7 +12,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import { TMinutaInterface } from '../../interfaces/TMinuta/TMinutaInterface';
|
||||
import { TMinutaInterface } from '@/packages/administrativo/interfaces/TMinuta/TMinutaInterface';
|
||||
|
||||
interface TMinutaTableProps {
|
||||
data: TMinutaInterface[];
|
||||
|
|
|
|||
|
|
@ -34,7 +34,9 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover
|
|||
import { Select, SelectContent, SelectItem, SelectTrigger } from '@/components/ui/select';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useGTBEstadoCivilReadHook } from '@/packages/administrativo/hooks/GTBEstadoCivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBProfissaoReadHook } from '@/packages/administrativo/hooks/GTBProfissao/useGTBProfissaoReadHook';
|
||||
import { useGTBRegimeComunhaoReadHook } from '@/packages/administrativo/hooks/GTBRegimeComunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useTPessoaFisicaFormHook } from '@/packages/administrativo/hooks/TPessoa/TPessoaFisica/useTPessoaFisicaFormHook';
|
||||
import TPessoaFisicaFormInterface from '@/packages/administrativo/interfaces/TPessoa/TPessoaFisica/TPessoaFisicaFormInterface';
|
||||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
|
|
@ -42,9 +44,6 @@ import GetCapitalize from '@/shared/actions/text/GetCapitalize';
|
|||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { Sexo } from '@/shared/enums/SexoEnum';
|
||||
|
||||
import { useGTBEstadoCivilReadHook } from '../../../hooks/GTBEstadoCivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../../hooks/GTBRegimeComunhao/useGTBRegimeComunhaoReadHook';
|
||||
|
||||
export default function TPessoaFisicaForm({
|
||||
isOpen,
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import TPessoaForm from '@/packages/administrativo/components/TPessoa/TPessoaFisica/TPessoaFisicaForm';
|
||||
import TPessoaTable from '@/packages/administrativo/components/TPessoa/TPessoaFisica/TPessoaFisicaTable';
|
||||
|
|
|
|||
|
|
@ -23,14 +23,13 @@ import {
|
|||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import TPessoaRepresentantePage from '@/packages/administrativo/components/TPessoaRepresentante/TPessoaRepresentanteIndex';
|
||||
import { useTPessoaJuridicaFormHook } from '@/packages/administrativo/hooks/TPessoa/TPessoaJuridica/useTPessoaJuridicaFormHook';
|
||||
import TPessoaJuridicaFormInterface from '@/packages/administrativo/interfaces/TPessoa/TPessoaJuridica/TPessoaJuridicaFormInterface';
|
||||
import { parseNumberInput } from '@/shared/actions/form/parseNumberInput';
|
||||
import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import TPessoaRepresentantePage from '../../TPessoaRepresentante/TPessoaRepresentanteIndex';
|
||||
|
||||
export default function TPessoaJuridicaForm({
|
||||
isOpen,
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { FormatPhone } from '@/shared/actions/phone/FormatPhone';
|
|||
import GetNameInitials from '@/shared/actions/text/GetNameInitials';
|
||||
import empty from '@/shared/actions/validations/empty';
|
||||
|
||||
import TPessoaInterface from '../../interfaces/TPessoa/TPessoaInterface';
|
||||
import TPessoaInterface from '@/packages/administrativo/interfaces/TPessoa/TPessoaInterface';
|
||||
|
||||
/**
|
||||
* Função para criar a definição das colunas da tabela
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import GetNameInitials from '@/shared/actions/text/GetNameInitials';
|
|||
import WebCamDialog from '@/shared/components/webcam/WebCamDialog';
|
||||
import { useFingerTechCaptureHook } from '@/shared/hooks/FingerTech/useFingerTechCaptureHook';
|
||||
|
||||
import TPessoaTableFormSubviewInterface from '../../interfaces/TPessoa/TPessoaTableFormSubviewInterface';
|
||||
import TPessoaTableFormSubviewInterface from '@/packages/administrativo/interfaces/TPessoa/TPessoaTableFormSubviewInterface';
|
||||
|
||||
function TPessoaTableFormSubview({
|
||||
item_index,
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import {
|
|||
import GetNameInitials from '@/shared/actions/text/GetNameInitials';
|
||||
import empty from '@/shared/actions/validations/empty';
|
||||
|
||||
import TPessoaRepresentanteInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentanteJoinedInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteJoinedInterface';
|
||||
import TPessoaRepresentanteInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentanteJoinedInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteJoinedInterface';
|
||||
|
||||
export default function TPessoaRepresentanteColumns(
|
||||
onDelete: (item: TPessoaRepresentanteInterface, isEditingFormStatus: boolean) => void,
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@ import { ResetFormIfData } from '@/shared/actions/form/ResetFormIfData';
|
|||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { useTPessoaFisicaIndexHook } from '@/packages/administrativo/hooks/TPessoa/TPessoaFisica/useTPessoaFisicaIndexHook';
|
||||
import { useTPessoaRepresentanteFormHook } from '@/packages/administrativo/hooks/TPessoaRepresentante/useTPessoaRepresentanteFormHook';
|
||||
import TPessoaRepresentanteInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentanteFormInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentnateFormInterface';
|
||||
import TPessoasRepresentanteFormColumns from './TPessoasRepresentanteFormColumns';
|
||||
import { useTPessoaFisicaIndexHook } from '../../hooks/TPessoa/TPessoaFisica/useTPessoaFisicaIndexHook';
|
||||
import { useTPessoaRepresentanteFormHook } from '../../hooks/TPessoaRepresentante/useTPessoaRepresentanteFormHook';
|
||||
import TPessoaRepresentanteInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentanteFormInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentnateFormInterface';
|
||||
|
||||
export default function TPessoaRepresentanteForm({
|
||||
isOpen,
|
||||
|
|
|
|||
|
|
@ -1,19 +1,18 @@
|
|||
'use client';
|
||||
|
||||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
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 { useTPessoaRepresentanteDeleteHook } from '@/packages/administrativo/hooks/TPessoaRepresentante/useTPessoaRepresentanteDeleteHook';
|
||||
import { useTPessoaRepresentanteIndexHook } from '@/packages/administrativo/hooks/TPessoaRepresentante/useTPessoaRepresentanteIndexHook';
|
||||
import { useTPessoaRepresentanteSaveHook } from '@/packages/administrativo/hooks/TPessoaRepresentante/useTPessoaRepresentanteSaveHook';
|
||||
import TPessoaRepresentanteInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentantePageInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentantePageInterface';
|
||||
import TPessoaRepresentanteForm from './TPessoaRepresentanteForm';
|
||||
import TPessoaRepresentanteTable from './TPessoaRepresentanteTable';
|
||||
import { useTPessoaRepresentanteDeleteHook } from '../../hooks/TPessoaRepresentante/useTPessoaRepresentanteDeleteHook';
|
||||
import { useTPessoaRepresentanteIndexHook } from '../../hooks/TPessoaRepresentante/useTPessoaRepresentanteIndexHook';
|
||||
import { useTPessoaRepresentanteSaveHook } from '../../hooks/TPessoaRepresentante/useTPessoaRepresentanteSaveHook';
|
||||
import TPessoaRepresentanteInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaRepresentantePageInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentantePageInterface';
|
||||
|
||||
export default function TPessoaRepresentantePage({ pessoa_id }: TPessoaRepresentantePageInterface) {
|
||||
const TPessoaRepresentantePage: TPessoaRepresentantePageInterface = {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
||||
|
||||
import TPessoaRepresentanteTableInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteTableInterface';
|
||||
import TPessoaRepresentanteColumns from './TPessoaRepresentanteColumns';
|
||||
import TPessoaRepresentanteTableInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteTableInterface';
|
||||
|
||||
/**
|
||||
* Componente principal da tabela
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import { FormatPhone } from '@/shared/actions/phone/FormatPhone';
|
|||
import GetNameInitials from '@/shared/actions/text/GetNameInitials';
|
||||
import empty from '@/shared/actions/validations/empty';
|
||||
|
||||
import TPessoaFisicaInterface from '../../interfaces/TPessoa/TPessoaFisica/TPessoaFisicaInterface';
|
||||
import TPessoaRepresentanteInterface from '../../interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
import TPessoaFisicaInterface from '@/packages/administrativo/interfaces/TPessoa/TPessoaFisica/TPessoaFisicaInterface';
|
||||
import TPessoaRepresentanteInterface from '@/packages/administrativo/interfaces/TPessoaRepresentante/TPessoaRepresentanteInterface';
|
||||
|
||||
/**
|
||||
* Função para criar a definição das colunas da tabela
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import z from 'zod';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -34,8 +34,8 @@ import {
|
|||
SelectValue,
|
||||
} from '@/components/ui/select';
|
||||
|
||||
import { tipoEnum } from '../../interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
import { TTBAndamentoServicoSchema } from '../../schemas/TTBAndamentoServico/TTBAndamentoServicoSchema';
|
||||
import { tipoEnum } from '@/packages/administrativo/interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
import { TTBAndamentoServicoSchema } from '@/packages/administrativo/schemas/TTBAndamentoServico/TTBAndamentoServicoSchema';
|
||||
|
||||
type FormValues = z.infer<typeof TTBAndamentoServicoSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useTTBAndamentoServicoDeleteHook } from '@/packages/administrativo/hooks/TTBAndamentoServico/useTTBAndamentoServicoDeleteHook';
|
||||
|
|
@ -11,9 +11,9 @@ import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDi
|
|||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
import TTBAndamentoServicoInterface from '@/packages/administrativo/interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
import TTBAndamentoServicoForm from './TTBAndamentoServicoForm';
|
||||
import TTBAndamentoServicoTable from './TTBAndamentoServicoTable';
|
||||
import TTBAndamentoServicoInterface from '../../interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
|
||||
export default function TTBAndamentoServicoIndex() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import TTBAndamentoServicoInteface from '../../interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
import TTBAndamentoServicoInteface from '@/packages/administrativo/interfaces/TTBAndamentoServico/TTBAndamentoServicoInterface';
|
||||
|
||||
interface TTBAndamentoServicoTableProps {
|
||||
data: TTBAndamentoServicoInteface[];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import {
|
|||
TableRow,
|
||||
} from '@/components/ui/table';
|
||||
|
||||
import TTBReconhecimentoTipoInterface from '../../interfaces/TTBREconhecimentoTipo/TTBReconhecimentoTipoInterface';
|
||||
import TTBReconhecimentoTipoInterface from '@/packages/administrativo/interfaces/TTBREconhecimentoTipo/TTBReconhecimentoTipoInterface';
|
||||
|
||||
interface TTBReconhecimentoTipoTableProps {
|
||||
data: TTBReconhecimentoTipoInterface[];
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import API from '@/shared/services/api/Api';
|
|||
// Importa o enum que define os métodos HTTP disponíveis (GET, POST, PUT, DELETE, etc.)
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
import { CCaixaServicoReadInterface } from '../../hooks/CCaixaServico/CCaixaServicoReadInterface';
|
||||
import { CCaixaServicoReadInterface } from '@/packages/administrativo/hooks/CCaixaServico/CCaixaServicoReadInterface';
|
||||
|
||||
// Função assíncrona responsável por executar a requisição para listar os tipos de marcação
|
||||
async function executeCCaixaServicoIndexData(data: CCaixaServicoReadInterface) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GCartorioInterface from '../../interfaces/GCartorio/GCartorioInterface';
|
||||
import GCartorioInterface from '@/packages/administrativo/interfaces/GCartorio/GCartorioInterface';
|
||||
|
||||
async function executeGCartorioDeleteData(data: GCartorioInterface): Promise<ApiResponseInterface> {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GCartorioInterface from '../../interfaces/GCartorio/GCartorioInterface';
|
||||
import GCartorioInterface from '@/packages/administrativo/interfaces/GCartorio/GCartorioInterface';
|
||||
|
||||
async function executeGCartorioSaveData(data: GCartorioInterface): Promise<ApiResponseInterface> {
|
||||
// Verifica se existe ID para decidir se é atualização (PUT) ou criação (POST)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import API from '@/shared/services/api/Api';
|
|||
// Importa o enum que define os métodos HTTP disponíveis (GET, POST, PUT, DELETE, etc.)
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
import { GEmolumentoItemReadInterface } from '../../interfaces/GEmolumentoItem/GEmolumentoItemReadInterface';
|
||||
import { GEmolumentoItemReadInterface } from '@/packages/administrativo/interfaces/GEmolumentoItem/GEmolumentoItemReadInterface';
|
||||
|
||||
// Função assíncrona responsável por executar a requisição para listar os tipos de marcação
|
||||
async function executeGEmolumentoItemValorData(data: GEmolumentoItemReadInterface) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoPeriodoInterface from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
import GEmolumentoPeriodoInterface from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
|
||||
async function executeGEmolumentoPeriodoDeleteData(
|
||||
data: GEmolumentoPeriodoInterface,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GEmolumentoPeriodoInterface from '../../interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
import GEmolumentoPeriodoInterface from '@/packages/administrativo/interfaces/GEmolumentoPeriodo/GEmolumentoPeriodoInterface';
|
||||
|
||||
async function executeGEmolumentoPeriodoSaveData(
|
||||
data: GEmolumentoPeriodoInterface,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GGramaticaInterface from '../../interfaces/GGramatica/GGramaticaInterface';
|
||||
import GGramaticaInterface from '@/packages/administrativo/interfaces/GGramatica/GGramaticaInterface';
|
||||
|
||||
async function executeGGramaticaDeleteData(
|
||||
data: GGramaticaInterface,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import API from '@/shared/services/api/Api';
|
|||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import ApiResponseInterface from '@/shared/services/api/interfaces/ApiResponseInterface';
|
||||
|
||||
import GGramaticaInterface from '../../interfaces/GGramatica/GGramaticaInterface';
|
||||
import GGramaticaInterface from '@/packages/administrativo/interfaces/GGramatica/GGramaticaInterface';
|
||||
|
||||
async function executeGGramaticaSaveData(data: GGramaticaInterface): Promise<ApiResponseInterface> {
|
||||
// Verifica se existe ID para decidir se é atualização (PUT) ou criação (POST)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import API from '@/shared/services/api/Api';
|
|||
// Importa o enum que define os métodos HTTP disponíveis (GET, POST, PUT, DELETE, etc.)
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
import { GMarcacaoTipoReadInterface } from '../../interfaces/GMarcacaoTipo/GMarcacaoTipoReadInterface';
|
||||
import { GMarcacaoTipoReadInterface } from '@/packages/administrativo/interfaces/GMarcacaoTipo/GMarcacaoTipoReadInterface';
|
||||
|
||||
// Importa a função genérica que monta a query string dinamicamente
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/
|
|||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
import { GMedidaTipoInterface } from '../../interfaces/GMedidaTipo/GMedidaTipoInterface';
|
||||
import { GMedidaTipoInterface } from '@/packages/administrativo/interfaces/GMedidaTipo/GMedidaTipoInterface';
|
||||
|
||||
async function executeGMedidaTipoRemoveData(data: GMedidaTipoInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue