@credithub/harlan-components 1.18.4 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +788 -707
- package/lib/esm/assets/btn/chevronDown.d.ts +1 -1
- package/lib/esm/assets/btn/chevronDown.js +1 -1
- package/lib/esm/assets/btn/chevronLeft.d.ts +1 -1
- package/lib/esm/assets/btn/chevronLeft.js +3 -3
- package/lib/esm/assets/btn/chevronRight.d.ts +1 -1
- package/lib/esm/assets/btn/chevronRight.js +3 -3
- package/lib/esm/assets/btn/chevronUp.d.ts +1 -1
- package/lib/esm/assets/btn/chevronUp.js +2 -2
- package/lib/esm/assets/btn/closeIcon.d.ts +1 -1
- package/lib/esm/assets/btn/closeIcon.js +1 -1
- package/lib/esm/assets/btn/thumbUp.d.ts +1 -1
- package/lib/esm/assets/btn/thumbUp.js +4 -4
- package/lib/esm/assets/icones/chequesSemFundo.d.ts +2 -2
- package/lib/esm/assets/icones/chequesSemFundo.js +4 -4
- package/lib/esm/assets/icones/consultaSimples.d.ts +2 -2
- package/lib/esm/assets/icones/consultaSimples.js +4 -4
- package/lib/esm/assets/icones/contasBancarias.d.ts +1 -1
- package/lib/esm/assets/icones/contato.d.ts +2 -2
- package/lib/esm/assets/icones/contato.js +4 -4
- package/lib/esm/assets/icones/dividasVencidasSerasa.d.ts +2 -2
- package/lib/esm/assets/icones/dividasVencidasSerasa.js +3 -3
- package/lib/esm/assets/icones/dominios.d.ts +2 -2
- package/lib/esm/assets/icones/dominios.js +3 -3
- package/lib/esm/assets/icones/endereco.d.ts +3 -3
- package/lib/esm/assets/icones/endereco.js +4 -4
- package/lib/esm/assets/icones/iconeEmpresa.d.ts +1 -1
- package/lib/esm/assets/icones/iconeEmpresa.js +4 -4
- package/lib/esm/assets/icones/iconePessoa.d.ts +1 -1
- package/lib/esm/assets/icones/iconePessoa.js +4 -4
- package/lib/esm/assets/icones/imoveis.d.ts +2 -2
- package/lib/esm/assets/icones/imoveis.js +3 -3
- package/lib/esm/assets/icones/pefinRefinBoaVista.d.ts +1 -1
- package/lib/esm/assets/icones/pefinRefinBoaVista.js +2 -2
- package/lib/esm/assets/icones/pefinRefinSerasa.d.ts +1 -1
- package/lib/esm/assets/icones/pefinRefinSerasa.js +2 -2
- package/lib/esm/assets/icones/processosJuridicos.d.ts +1 -1
- package/lib/esm/assets/icones/protestos.d.ts +2 -2
- package/lib/esm/assets/icones/protestos.js +4 -4
- package/lib/esm/assets/icones/protestosCredito.d.ts +2 -2
- package/lib/esm/assets/icones/protestosCredito.js +4 -4
- package/lib/esm/assets/icones/protestosGerais.d.ts +2 -2
- package/lib/esm/assets/icones/protestosGerais.js +4 -4
- package/lib/esm/assets/icones/protestosImpostos.d.ts +2 -2
- package/lib/esm/assets/icones/protestosImpostos.js +4 -4
- package/lib/esm/assets/icones/resumoNegativacoes.d.ts +1 -1
- package/lib/esm/assets/icones/resumoNegativacoes.js +1 -1
- package/lib/esm/assets/icones/scoreBoaVista.d.ts +2 -2
- package/lib/esm/assets/icones/scoreBoaVista.js +3 -3
- package/lib/esm/assets/icones/scr.d.ts +2 -2
- package/lib/esm/assets/icones/scr.js +3 -3
- package/lib/esm/assets/icones/ultimaMovimentacao.d.ts +2 -2
- package/lib/esm/assets/icones/ultimaMovimentacao.js +4 -4
- package/lib/esm/assets/icones/veiculos.d.ts +2 -2
- package/lib/esm/assets/icones/veiculos.js +3 -3
- package/lib/esm/components/adresses/addresses.d.ts +1 -1
- package/lib/esm/components/adresses/addresses.js +21 -17
- package/lib/esm/components/adresses/getGeocode.js +2 -2
- package/lib/esm/components/adresses/map.d.ts +1 -1
- package/lib/esm/components/adresses/map.js +5 -5
- package/lib/esm/components/bank-accounts/bank-accounts.d.ts +1 -1
- package/lib/esm/components/bank-accounts/bank-accounts.js +19 -15
- package/lib/esm/components/ccf/ccf.d.ts +1 -1
- package/lib/esm/components/ccf/ccf.js +16 -16
- package/lib/esm/components/ccf/ccfList.d.ts +1 -1
- package/lib/esm/components/ccf/ccfList.js +6 -6
- package/lib/esm/components/chart/chartContent.d.ts +2 -2
- package/lib/esm/components/chart/chartContent.js +12 -12
- package/lib/esm/components/chart/chartSystem.d.ts +1 -1
- package/lib/esm/components/chart/chartSystem.js +21 -23
- package/lib/esm/components/chart/components/MixedChart.d.ts +2 -2
- package/lib/esm/components/chart/components/MixedChart.js +15 -15
- package/lib/esm/components/chart/components/PieChart.d.ts +2 -2
- package/lib/esm/components/chart/components/PieChart.js +3 -3
- package/lib/esm/components/chart/components/categoryProtestos.d.ts +3 -3
- package/lib/esm/components/chart/components/categoryProtestos.js +4 -4
- package/lib/esm/components/chart/hooks/useCategoryProtestos.d.ts +5 -5
- package/lib/esm/components/chart/hooks/useCategoryProtestos.js +23 -23
- package/lib/esm/components/chart/hooks/useChartData.d.ts +1 -1
- package/lib/esm/components/chart/hooks/useChartData.js +8 -8
- package/lib/esm/components/chart/hooks/useMixedChartData.d.ts +5 -5
- package/lib/esm/components/chart/hooks/useMixedChartData.js +10 -10
- package/lib/esm/components/chart/hooks/usePieChartData.d.ts +4 -4
- package/lib/esm/components/chart/hooks/usePieChartData.js +34 -34
- package/lib/esm/components/chart/quantityResult.d.ts +2 -2
- package/lib/esm/components/chart/quantityResult.js +6 -6
- package/lib/esm/components/chart/types/iChart.d.ts +4 -4
- package/lib/esm/components/chart/utils/chartCustomization.d.ts +4 -4
- package/lib/esm/components/chart/utils/chartCustomization.js +62 -62
- package/lib/esm/components/chart/utils/chartUtils.d.ts +1 -1
- package/lib/esm/components/chart/utils/chartUtils.js +9 -9
- package/lib/esm/components/chart/utils/dataManipulation.d.ts +1 -1
- package/lib/esm/components/chart/utils/dataManipulation.js +17 -17
- package/lib/esm/components/chart/utils/dataProcessing.d.ts +2 -2
- package/lib/esm/components/chart/utils/dataProcessing.js +16 -16
- package/lib/esm/components/common/addItem.d.ts +1 -1
- package/lib/esm/components/common/addItem.js +6 -6
- package/lib/esm/components/common/button.d.ts +1 -1
- package/lib/esm/components/common/button.js +5 -5
- package/lib/esm/components/common/content.js +2 -2
- package/lib/esm/components/consultaRfb.d.ts +1 -1
- package/lib/esm/components/consultaRfb.js +2 -2
- package/lib/esm/components/consultaSimplesSection/consultaSimplesSection.js +34 -14
- package/lib/esm/components/consultasComplementares.d.ts +6 -6
- package/lib/esm/components/consultasComplementares.js +9 -9
- package/lib/esm/components/contacts/contactLikeDislikeSection.d.ts +3 -3
- package/lib/esm/components/contacts/contactLikeDislikeSection.js +16 -16
- package/lib/esm/components/contacts/contacts.d.ts +1 -1
- package/lib/esm/components/contacts/contacts.js +16 -10
- package/lib/esm/components/contacts/contactsLikeDislike.d.ts +1 -1
- package/lib/esm/components/contacts/contactsLikeDislike.js +2 -2
- package/lib/esm/components/contacts/thumbsButton.d.ts +1 -1
- package/lib/esm/components/contacts/thumbsButton.js +19 -19
- package/lib/esm/components/dividasPublicas/dividasPublicas.d.ts +1 -1
- package/lib/esm/components/dividasPublicas/dividasPublicas.js +10 -10
- package/lib/esm/components/dominios/dominios.d.ts +1 -1
- package/lib/esm/components/dominios/dominios.js +13 -9
- package/lib/esm/components/dossie/carrousel/carrousel.d.ts +1 -1
- package/lib/esm/components/dossie/carrousel/carrousel.js +3 -3
- package/lib/esm/components/dossie/companyLogo/companyLogo.d.ts +1 -1
- package/lib/esm/components/dossie/companyLogo/companyLogo.js +9 -9
- package/lib/esm/components/dossie/dossie.d.ts +1 -1
- package/lib/esm/components/dossie/dossie.js +16 -17
- package/lib/esm/components/dossie/summary/cardsAndProducts.js +94 -92
- package/lib/esm/components/dossie/summary/summary.d.ts +1 -1
- package/lib/esm/components/dossie/summary/summary.js +21 -18
- package/lib/esm/components/dossie/summary/utils.js +8 -8
- package/lib/esm/components/dossie/transactionTable/transactionTable.d.ts +1 -1
- package/lib/esm/components/dossie/transactionTable/transactionTable.js +8 -8
- package/lib/esm/components/imoveis/imoveisService.d.ts +1 -1
- package/lib/esm/components/imoveis/imoveisService.js +12 -12
- package/lib/esm/components/interface/globalStyle.js +1 -1
- package/lib/esm/components/interface/header.d.ts +3 -3
- package/lib/esm/components/interface/header.js +6 -6
- package/lib/esm/components/interface/loadingBar.js +2 -2
- package/lib/esm/components/interface/responsiveGrid.d.ts +1 -1
- package/lib/esm/components/interface/responsiveGrid.js +2 -2
- package/lib/esm/components/interface/result.js +6 -4
- package/lib/esm/components/interface/resultWithoutInformation.js +1 -1
- package/lib/esm/components/interface/section.d.ts +2 -2
- package/lib/esm/components/interface/section.js +11 -12
- package/lib/esm/components/interface/statusMessage.js +3 -3
- package/lib/esm/components/interface/theme.js +34 -34
- package/lib/esm/components/liminar/liminar.d.ts +1 -1
- package/lib/esm/components/liminar/liminar.js +5 -5
- package/lib/esm/components/partners/partner-dividas-publicas.js +3 -3
- package/lib/esm/components/partners/partner-protestos.js +3 -3
- package/lib/esm/components/partners/partner-rfb-status.js +3 -3
- package/lib/esm/components/partners/partnerField.d.ts +1 -1
- package/lib/esm/components/partners/partnerField.js +3 -3
- package/lib/esm/components/partners/partnerList.d.ts +1 -1
- package/lib/esm/components/partners/partnerList.js +8 -8
- package/lib/esm/components/partners/partners.d.ts +1 -1
- package/lib/esm/components/partners/partners.js +18 -16
- package/lib/esm/components/pep/pep.d.ts +1 -1
- package/lib/esm/components/pep/pep.js +11 -8
- package/lib/esm/components/processos-juridicos/envolvidosList.js +5 -3
- package/lib/esm/components/processos-juridicos/processosJuridicos.d.ts +1 -1
- package/lib/esm/components/processos-juridicos/processosJuridicos.js +15 -12
- package/lib/esm/components/processos-juridicos/processosJuridicosList.d.ts +2 -2
- package/lib/esm/components/processos-juridicos/processosJuridicosList.js +12 -10
- package/lib/esm/components/protestos/getTotalProtestos.js +2 -2
- package/lib/esm/components/protestos/protestos.d.ts +1 -1
- package/lib/esm/components/protestos/protestos.js +32 -26
- package/lib/esm/components/protestos/protestosCategory.d.ts +2 -2
- package/lib/esm/components/protestos/protestosCategory.js +15 -13
- package/lib/esm/components/protestos/protestosList.d.ts +2 -2
- package/lib/esm/components/protestos/protestosList.js +20 -20
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.d.ts +1 -1
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.js +20 -20
- package/lib/esm/components/refinBoaVista/refinBoaVista.js +22 -15
- package/lib/esm/components/refinSerasa/refinSerasa.d.ts +1 -1
- package/lib/esm/components/refinSerasa/refinSerasa.js +26 -26
- package/lib/esm/components/refinSerasa/types.d.ts +2 -2
- package/lib/esm/components/resultadoDaPesquisa/resultado-da-pesquisa.js +6 -6
- package/lib/esm/components/score/scoreService.d.ts +1 -1
- package/lib/esm/components/score/scoreService.js +10 -10
- package/lib/esm/components/scr/getResumoDeCreditos.d.ts +1 -1
- package/lib/esm/components/scr/getResumoDeCreditos.js +9 -9
- package/lib/esm/components/scr/getResumoDeModalidades.d.ts +1 -1
- package/lib/esm/components/scr/getResumoDeModalidades.js +25 -27
- package/lib/esm/components/scr/scr.d.ts +1 -1
- package/lib/esm/components/scr/scr.js +23 -23
- package/lib/esm/components/scr/types.d.ts +5 -5
- package/lib/esm/components/veiculos/veiculos.js +28 -19
- package/lib/esm/components/webservice.d.ts +5 -5
- package/lib/esm/components/webservice.js +35 -31
- package/lib/esm/consultaSimples.d.ts +2 -2
- package/lib/esm/consultaSimples.js +14 -14
- package/lib/esm/hooks/useConsultaRfb.js +3 -3
- package/lib/esm/hooks/useConsultasComplementares.js +3 -3
- package/lib/esm/hooks/useToggle.js +1 -1
- package/lib/esm/hooks/useWindowSize.js +5 -5
- package/lib/esm/index.d.ts +23 -23
- package/lib/esm/index.js +23 -23
- package/lib/esm/utils/calculation.js +4 -4
- package/lib/esm/utils/formatter.js +3 -3
- package/lib/esm/utils/number.js +7 -7
- package/lib/esm/utils/string.js +11 -11
- package/lib/esm/utils/xpath.js +1 -1
- package/package.json +4 -1
|
@@ -26,26 +26,26 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
};
|
|
27
27
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
28
28
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
29
|
-
import React, { useContext, useEffect, useMemo, useRef } from
|
|
30
|
-
import Header from
|
|
31
|
-
import AddItemField from
|
|
32
|
-
import { Result, ResultContent } from
|
|
33
|
-
import { ConsultasComplementaresContext } from
|
|
34
|
-
import { useQuery } from
|
|
35
|
-
import getResumoDeCreditos from
|
|
36
|
-
import getResumoDeModalidades from
|
|
37
|
-
import { formatMoney } from
|
|
38
|
-
import StatusMessage from
|
|
39
|
-
import ScrIcon from
|
|
40
|
-
import useToggle from
|
|
41
|
-
import BtnWrapper from
|
|
42
|
-
import ChevronUp from
|
|
43
|
-
import ChevronDown from
|
|
44
|
-
import styled from
|
|
45
|
-
import Content from
|
|
29
|
+
import React, { useContext, useEffect, useMemo, useRef } from 'react';
|
|
30
|
+
import Header from '../interface/header';
|
|
31
|
+
import AddItemField from '../common/addItem';
|
|
32
|
+
import { Result, ResultContent } from '../interface/result';
|
|
33
|
+
import { ConsultasComplementaresContext } from '../consultasComplementares';
|
|
34
|
+
import { useQuery } from '../webservice';
|
|
35
|
+
import getResumoDeCreditos from './getResumoDeCreditos';
|
|
36
|
+
import getResumoDeModalidades from './getResumoDeModalidades';
|
|
37
|
+
import { formatMoney } from '../../utils/number';
|
|
38
|
+
import StatusMessage from '../interface/statusMessage';
|
|
39
|
+
import ScrIcon from '../../assets/icones/scr';
|
|
40
|
+
import useToggle from '../../hooks/useToggle';
|
|
41
|
+
import BtnWrapper from '../../assets/btn/btnWrapper';
|
|
42
|
+
import ChevronUp from '../../assets/btn/chevronUp';
|
|
43
|
+
import ChevronDown from '../../assets/btn/chevronDown';
|
|
44
|
+
import styled from 'styled-components';
|
|
45
|
+
import Content from '../common/content';
|
|
46
46
|
var ResumosWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n gap: 20px;\n"], ["\n display: ", ";\n flex-direction: column;\n gap: 20px;\n"])), function (_a) {
|
|
47
47
|
var _b = _a.isOpen, isOpen = _b === void 0 ? true : _b;
|
|
48
|
-
return isOpen ? 'flex' : 'none';
|
|
48
|
+
return (isOpen ? 'flex' : 'none');
|
|
49
49
|
});
|
|
50
50
|
function ConsultaSCR(_a) {
|
|
51
51
|
var _b, _c, _d, _e;
|
|
@@ -69,7 +69,7 @@ function ConsultaSCR(_a) {
|
|
|
69
69
|
}, [response]);
|
|
70
70
|
return consultaSCRRealizada ? (React.createElement(React.Fragment, null,
|
|
71
71
|
React.createElement("div", null,
|
|
72
|
-
React.createElement(Header, { innerRef: scrRef, title: "SCR", variant: isLoading ?
|
|
72
|
+
React.createElement(Header, { innerRef: scrRef, title: "SCR", variant: isLoading ? 'loading' : error ? 'error' : 'default', subtitle: "Resumo do Cliente", description: error ? (React.createElement(StatusMessage, { type: "error" }, error.message)) : null, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)), icon: ScrIcon }),
|
|
73
73
|
isOpen && scr && !isLoading && (React.createElement(Result, null,
|
|
74
74
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
75
75
|
React.createElement(AddItemField, { name: "CNPJ da IF Solicitante", value: scr === null || scr === void 0 ? void 0 : scr.cnpjDaIFSolicitante }),
|
|
@@ -78,7 +78,7 @@ function ConsultaSCR(_a) {
|
|
|
78
78
|
React.createElement(AddItemField, { name: "Coobriga\u00E7\u00E3o Recebida", value: scr === null || scr === void 0 ? void 0 : scr.coobrigacaoRecebida }))))),
|
|
79
79
|
!error && (React.createElement(ResumosWrapper, { isOpen: isOpen },
|
|
80
80
|
React.createElement(FluxosDeVencimentosConsolidados, { isLoading: isLoading, scr: scr, error: error }),
|
|
81
|
-
React.createElement(ResumoList, { title:
|
|
81
|
+
React.createElement(ResumoList, { title: 'SCR', subtitle: 'Crédito', resumos: resumoDeCreditos, isLoading: isLoading, error: error }),
|
|
82
82
|
React.createElement(ResumoModalidades, { isLoading: isLoading, scr: scr, error: error }))))) : null;
|
|
83
83
|
}
|
|
84
84
|
var FluxosDeVencimentosConsolidados = function (_a) {
|
|
@@ -86,7 +86,7 @@ var FluxosDeVencimentosConsolidados = function (_a) {
|
|
|
86
86
|
var scr = _a.scr, isLoading = _a.isLoading, error = _a.error;
|
|
87
87
|
var _c = useToggle(false), isOpen = _c[0], toggleOpen = _c[1];
|
|
88
88
|
return (React.createElement("div", null,
|
|
89
|
-
React.createElement(Header, { title: "SCR", subtitle: "Fluxo De Vencimentos Consolidados", variant: isLoading ?
|
|
89
|
+
React.createElement(Header, { title: "SCR", subtitle: "Fluxo De Vencimentos Consolidados", variant: isLoading ? 'loading' : error ? 'error' : 'default', icon: ScrIcon, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)) }),
|
|
90
90
|
scr && !isLoading && (React.createElement(Content, { isOpen: isOpen },
|
|
91
91
|
React.createElement(Result, null,
|
|
92
92
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
@@ -110,7 +110,7 @@ var ResumoList = function (_a) {
|
|
|
110
110
|
if (!isLoading && !resumos.length)
|
|
111
111
|
return null;
|
|
112
112
|
return (React.createElement("div", null,
|
|
113
|
-
React.createElement(Header, __assign({}, props, { variant: isLoading ?
|
|
113
|
+
React.createElement(Header, __assign({}, props, { variant: isLoading ? 'loading' : error ? 'error' : 'default', icon: ScrIcon, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)) })),
|
|
114
114
|
!isLoading && (React.createElement(Content, { isOpen: isOpen },
|
|
115
115
|
React.createElement(Result, null,
|
|
116
116
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" }, resumos.map(function (item, index) { return (React.createElement(AddItemField, { key: "".concat(item.descricao, "-").concat(index), name: item.descricao, value: item.valor })); })))))));
|
|
@@ -122,7 +122,7 @@ var ResumoModalidades = function (_a) {
|
|
|
122
122
|
if (!isLoading && !(resumoModalidades === null || resumoModalidades === void 0 ? void 0 : resumoModalidades.length))
|
|
123
123
|
return null;
|
|
124
124
|
return (React.createElement("div", null,
|
|
125
|
-
React.createElement(Header, { title: "SCR", subtitle: "Modalidade x Data Base", variant: isLoading ?
|
|
125
|
+
React.createElement(Header, { title: "SCR", subtitle: "Modalidade x Data Base", variant: isLoading ? 'loading' : error ? 'error' : 'default', icon: ScrIcon, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)) }),
|
|
126
126
|
!isLoading && (React.createElement(Content, { isOpen: isOpen },
|
|
127
127
|
React.createElement(Result, null, resumoModalidades.map(function (resumo, index) { return (React.createElement(ResultContent, { key: "".concat(resumo.modalidade, "-").concat(index), desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
128
128
|
React.createElement(AddItemField, { name: "Modalidade", value: resumo.modalidade }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { HeaderProps } from
|
|
2
|
+
import { HeaderProps } from '../interface/header';
|
|
3
3
|
export interface SCRResponse {
|
|
4
4
|
ns2getResumoDoClienteResponse: Ns2getResumoDoClienteResponse;
|
|
5
5
|
}
|
|
@@ -71,7 +71,7 @@ export interface Modalidade {
|
|
|
71
71
|
variacaoCambial?: string;
|
|
72
72
|
}
|
|
73
73
|
export interface Vencimento {
|
|
74
|
-
categoria:
|
|
74
|
+
categoria: 'avencer' | 'vencido';
|
|
75
75
|
descricao: string;
|
|
76
76
|
valor: string;
|
|
77
77
|
}
|
|
@@ -81,7 +81,7 @@ export type SCRListProps = {
|
|
|
81
81
|
isLoading: boolean;
|
|
82
82
|
error: Error | null;
|
|
83
83
|
};
|
|
84
|
-
export type GrupoDeVencimentos = Record<
|
|
85
|
-
export type ResumoListProps = Omit<SCRListProps,
|
|
86
|
-
resumos: Record<
|
|
84
|
+
export type GrupoDeVencimentos = Record<'avencer' | 'vencido', Record<string, Vencimento[]>>;
|
|
85
|
+
export type ResumoListProps = Omit<SCRListProps, 'scr'> & HeaderProps & {
|
|
86
|
+
resumos: Record<'descricao' | 'valor', string | number>[];
|
|
87
87
|
};
|
|
@@ -27,35 +27,44 @@ function Veiculos(_a) {
|
|
|
27
27
|
var consultasComplementaresContext = useContext(ConsultasComplementaresContext);
|
|
28
28
|
var _e = consultasComplementaresContext !== null && consultasComplementaresContext !== void 0 ? consultasComplementaresContext : {}, consultasComplementares = _e.consultasComplementares, setConsultasComplementares = _e.setConsultasComplementares;
|
|
29
29
|
var _f = useQuery("SELECT FROM 'VEICULOS'.'CONSULTA'", { documento: documento }, !!((_b = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _b === void 0 ? void 0 : _b.consultaRealizada)), response = _f.response, isLoading = _f.isLoading, error = _f.error;
|
|
30
|
-
var registros = useMemo(function () {
|
|
30
|
+
var registros = useMemo(function () {
|
|
31
|
+
return (((response === null || response === void 0 ? void 0 : response.document) &&
|
|
32
|
+
XPathUtils.selectArray('//veiculos/registro', response === null || response === void 0 ? void 0 : response.document)) ||
|
|
33
|
+
[]).map(addNoValueContent);
|
|
34
|
+
}, [response]);
|
|
31
35
|
var veiculosRef = useRef(null);
|
|
32
|
-
var consultaVeiculosRealizada = useMemo(function () { var _a; return (_a = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _a === void 0 ? void 0 : _a.consultaRealizada; }, [(_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _c === void 0 ? void 0 : _c.consultaRealizada
|
|
33
|
-
]);
|
|
36
|
+
var consultaVeiculosRealizada = useMemo(function () { var _a; return (_a = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _a === void 0 ? void 0 : _a.consultaRealizada; }, [(_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _c === void 0 ? void 0 : _c.consultaRealizada]);
|
|
34
37
|
useEffect(function () {
|
|
35
38
|
var _a;
|
|
36
39
|
(_a = veiculosRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
37
40
|
}, [consultaVeiculosRealizada]);
|
|
38
41
|
useEffect(function () {
|
|
39
|
-
response &&
|
|
42
|
+
response &&
|
|
43
|
+
setConsultasComplementares &&
|
|
44
|
+
setConsultasComplementares(function (prev) { return (__assign(__assign({}, prev), { veiculos: __assign(__assign({}, prev.veiculos), { data: response }) })); });
|
|
40
45
|
}, [response]);
|
|
41
46
|
if (!((_d = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _d === void 0 ? void 0 : _d.consultaRealizada))
|
|
42
47
|
return null;
|
|
43
|
-
var description = registros.length
|
|
48
|
+
var description = registros.length
|
|
49
|
+
? registros.length > 1
|
|
50
|
+
? "Foram encontrados ".concat(registros.length, " ve\u00EDculos registrados no CPF/CNPJ")
|
|
51
|
+
: 'Foi encontrato 1 veículo registrado no CPF/CNPJ'
|
|
52
|
+
: 'Nenhum veículo encontrado';
|
|
44
53
|
return (React.createElement("div", null,
|
|
45
|
-
React.createElement(Header, { innerRef: veiculosRef, title:
|
|
54
|
+
React.createElement(Header, { innerRef: veiculosRef, title: "Ve\u00EDculos Registrados no CPF/CNPJ", subtitle: "Informa\u00E7\u00F5es de Ve\u00EDculos Registrados no CPF/CNPJ", variant: isLoading ? 'loading' : error ? 'error' : 'default', description: React.createElement(StatusMessage, { type: error ? 'error' : registros.length ? 'success' : 'default' }, (error === null || error === void 0 ? void 0 : error.message) || description), icon: VeiculosIcon }),
|
|
46
55
|
React.createElement(Result, null, registros.map(function (registro, i) { return (React.createElement(ResultContent, { key: i, desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
47
|
-
React.createElement(AddItemField, { name:
|
|
48
|
-
React.createElement(AddItemField, { name:
|
|
49
|
-
React.createElement(AddItemField, { name:
|
|
50
|
-
React.createElement(AddItemField, { name:
|
|
51
|
-
React.createElement(AddItemField, { name:
|
|
52
|
-
React.createElement(AddItemField, { name:
|
|
53
|
-
React.createElement(AddItemField, { name:
|
|
54
|
-
React.createElement(AddItemField, { name:
|
|
55
|
-
React.createElement(AddItemField, { name:
|
|
56
|
-
React.createElement(AddItemField, { name:
|
|
57
|
-
React.createElement(AddItemField, { name:
|
|
58
|
-
React.createElement(AddItemField, { name:
|
|
59
|
-
React.createElement(AddItemField, { name:
|
|
56
|
+
React.createElement(AddItemField, { name: "Placa", value: XPathUtils.getField('placa', registro) }),
|
|
57
|
+
React.createElement(AddItemField, { name: "Munic\u00EDpio", value: XPathUtils.getField('municipio', registro) }),
|
|
58
|
+
React.createElement(AddItemField, { name: "Estado", value: XPathUtils.getField('uf', registro) }),
|
|
59
|
+
React.createElement(AddItemField, { name: "Renavam", value: XPathUtils.getField('renavam', registro) }),
|
|
60
|
+
React.createElement(AddItemField, { name: "Chassi", value: XPathUtils.getField('chassi', registro) }),
|
|
61
|
+
React.createElement(AddItemField, { name: "Motor", value: XPathUtils.getField('motor', registro) }),
|
|
62
|
+
React.createElement(AddItemField, { name: "Ano de Fabrica\u00E7\u00E3o", value: XPathUtils.getField('ano_fabricacao', registro) }),
|
|
63
|
+
React.createElement(AddItemField, { name: "Ano do Modelo", value: XPathUtils.getField('ano_modelo', registro) }),
|
|
64
|
+
React.createElement(AddItemField, { name: "Marca / Modelo", value: XPathUtils.getField('marca_modelo', registro) }),
|
|
65
|
+
React.createElement(AddItemField, { name: "Proced\u00EAncia", value: XPathUtils.getField('procedencia', registro) }),
|
|
66
|
+
React.createElement(AddItemField, { name: "Esp\u00E9cie", value: XPathUtils.getField('especie', registro) }),
|
|
67
|
+
React.createElement(AddItemField, { name: "Combust\u00EDvel", value: XPathUtils.getField('combustivel', registro) }),
|
|
68
|
+
React.createElement(AddItemField, { name: "Cor", value: XPathUtils.getField('cor', registro) }))); }))));
|
|
60
69
|
}
|
|
61
70
|
export default Veiculos;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Client } from
|
|
2
|
-
import React, { PropsWithChildren, FC } from
|
|
3
|
-
import Header from
|
|
4
|
-
import { ProcessoJuridicoResponse } from
|
|
5
|
-
import { LiminarResponse } from
|
|
1
|
+
import { Client } from '@credithub/webservice';
|
|
2
|
+
import React, { PropsWithChildren, FC } from 'react';
|
|
3
|
+
import Header from './interface/header';
|
|
4
|
+
import { ProcessoJuridicoResponse } from './processos-juridicos/types';
|
|
5
|
+
import { LiminarResponse } from './liminar/types';
|
|
6
6
|
export declare const WebService: React.Context<Client.WebService>;
|
|
7
7
|
export declare const WebServiceProvider: FC<PropsWithChildren<{
|
|
8
8
|
credential: string;
|
|
@@ -27,16 +27,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
var _a;
|
|
28
28
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
29
29
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
30
|
-
import { Client } from
|
|
31
|
-
import React, { createContext, useState, useContext, useEffect, useMemo, useCallback
|
|
32
|
-
import Header from
|
|
33
|
-
import cn from
|
|
34
|
-
import StatusMessage from
|
|
35
|
-
import BtnWrapper from
|
|
36
|
-
import useToggle from
|
|
37
|
-
import ChevronUp from
|
|
38
|
-
import ChevronDown from
|
|
39
|
-
import styled from
|
|
30
|
+
import { Client } from '@credithub/webservice';
|
|
31
|
+
import React, { createContext, useState, useContext, useEffect, useMemo, useCallback } from 'react';
|
|
32
|
+
import Header from './interface/header';
|
|
33
|
+
import cn from 'classnames';
|
|
34
|
+
import StatusMessage from './interface/statusMessage';
|
|
35
|
+
import BtnWrapper from '../assets/btn/btnWrapper';
|
|
36
|
+
import useToggle from '../hooks/useToggle';
|
|
37
|
+
import ChevronUp from '../assets/btn/chevronUp';
|
|
38
|
+
import ChevronDown from '../assets/btn/chevronDown';
|
|
39
|
+
import styled from 'styled-components';
|
|
40
40
|
export var WebService = createContext(new Client.WebService());
|
|
41
41
|
export var WebServiceProvider = function (_a) {
|
|
42
42
|
var credential = _a.credential, children = _a.children;
|
|
@@ -62,7 +62,7 @@ function CustomProvider(Provider, query) {
|
|
|
62
62
|
.then(function (response) {
|
|
63
63
|
return Client.WebService.parse(response).then(function (document) { return ({
|
|
64
64
|
response: response,
|
|
65
|
-
document: document
|
|
65
|
+
document: document
|
|
66
66
|
}); });
|
|
67
67
|
})
|
|
68
68
|
.then(function (document) { return setResponse(document); })
|
|
@@ -86,8 +86,8 @@ function CustomProvider(Provider, query) {
|
|
|
86
86
|
document: response === null || response === void 0 ? void 0 : response.document,
|
|
87
87
|
Section: function (_a) {
|
|
88
88
|
var props = __rest(_a, []);
|
|
89
|
-
return
|
|
90
|
-
}
|
|
89
|
+
return React.createElement(Section, __assign({}, props, { ctx: value }));
|
|
90
|
+
}
|
|
91
91
|
};
|
|
92
92
|
return React.createElement(Provider.Provider, { value: value }, children);
|
|
93
93
|
};
|
|
@@ -106,12 +106,12 @@ export function useQuery(query, data, enabled) {
|
|
|
106
106
|
.then(function (response) {
|
|
107
107
|
return Client.WebService.parse(response).then(function (document) { return ({
|
|
108
108
|
response: response,
|
|
109
|
-
document: document
|
|
109
|
+
document: document
|
|
110
110
|
}); });
|
|
111
111
|
})
|
|
112
112
|
.then(function (document) { return setResponse(document); })
|
|
113
113
|
.catch(function (requestError) {
|
|
114
|
-
return setError(requestError instanceof Error && requestError.name !==
|
|
114
|
+
return setError(requestError instanceof Error && requestError.name !== 'AbortError'
|
|
115
115
|
? requestError
|
|
116
116
|
: new Error(requestError));
|
|
117
117
|
})
|
|
@@ -125,7 +125,7 @@ export function useQuery(query, data, enabled) {
|
|
|
125
125
|
response: response,
|
|
126
126
|
error: error,
|
|
127
127
|
isLoading: isLoading,
|
|
128
|
-
refetch: fetch
|
|
128
|
+
refetch: fetch
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
export function useMutation(query, data) {
|
|
@@ -141,12 +141,12 @@ export function useMutation(query, data) {
|
|
|
141
141
|
.then(function (response) {
|
|
142
142
|
return Client.WebService.parse(response).then(function (document) { return ({
|
|
143
143
|
response: response,
|
|
144
|
-
document: document
|
|
144
|
+
document: document
|
|
145
145
|
}); });
|
|
146
146
|
})
|
|
147
147
|
.then(function (document) { return setResponse(document); })
|
|
148
148
|
.catch(function (requestError) {
|
|
149
|
-
return setError(requestError instanceof Error && requestError.name !==
|
|
149
|
+
return setError(requestError instanceof Error && requestError.name !== 'AbortError'
|
|
150
150
|
? requestError
|
|
151
151
|
: new Error(requestError));
|
|
152
152
|
})
|
|
@@ -156,7 +156,7 @@ export function useMutation(query, data) {
|
|
|
156
156
|
isLoading: isLoading,
|
|
157
157
|
error: error,
|
|
158
158
|
response: response,
|
|
159
|
-
mutate: mutate
|
|
159
|
+
mutate: mutate
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
export function query(query) {
|
|
@@ -165,10 +165,10 @@ export function query(query) {
|
|
|
165
165
|
Section: function (_a) {
|
|
166
166
|
var props = __rest(_a, []);
|
|
167
167
|
return React.createElement(Section, __assign({}, props));
|
|
168
|
-
}
|
|
168
|
+
}
|
|
169
169
|
});
|
|
170
170
|
return Object.assign(RequestContext, {
|
|
171
|
-
Request: CustomProvider(RequestContext, query)
|
|
171
|
+
Request: CustomProvider(RequestContext, query)
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
export var Queries = {
|
|
@@ -206,24 +206,28 @@ var Section = function (_a) {
|
|
|
206
206
|
React.createElement(BtnWrapper, { hidden: (ctx === null || ctx === void 0 ? void 0 : ctx.type) === RequestStatus.Loading, onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))));
|
|
207
207
|
if (React.isValidElement(renderedResponse)) {
|
|
208
208
|
return (React.createElement("div", null,
|
|
209
|
-
!hideHeader && (React.createElement(Header, __assign({}, headerProps, { className: cn(className, headerStatus[ctx.type]), hidden: hideHeader, variant: ctx.type === RequestStatus.Loading
|
|
209
|
+
!hideHeader && (React.createElement(Header, __assign({}, headerProps, { className: cn(className, headerStatus[ctx.type]), hidden: hideHeader, variant: ctx.type === RequestStatus.Loading
|
|
210
|
+
? 'loading'
|
|
211
|
+
: headerProps.variant, actions: React.createElement(React.Fragment, null,
|
|
210
212
|
headerProps.actions,
|
|
211
|
-
defaultHeaderActions)
|
|
213
|
+
defaultHeaderActions) }))),
|
|
212
214
|
React.createElement(ShowRenderedChildren, { isOpen: isOpen }, renderedResponse)));
|
|
213
215
|
}
|
|
214
216
|
var _g = renderedResponse, renderedChildren = _g.children, headerReplaceProps = __rest(_g, ["children"]);
|
|
215
217
|
var headerPropsUnified = Object.assign(headerProps, headerReplaceProps);
|
|
216
218
|
return (React.createElement("div", null,
|
|
217
|
-
!hideHeader && (React.createElement(Header, __assign({}, headerPropsUnified, { className: cn(className, headerStatus[ctx.type], headerPropsUnified.className), variant: ctx.type === RequestStatus.Loading
|
|
219
|
+
!hideHeader && (React.createElement(Header, __assign({}, headerPropsUnified, { className: cn(className, headerStatus[ctx.type], headerPropsUnified.className), variant: ctx.type === RequestStatus.Loading
|
|
220
|
+
? 'loading'
|
|
221
|
+
: headerPropsUnified.variant, actions: React.createElement(React.Fragment, null,
|
|
218
222
|
headerPropsUnified.actions,
|
|
219
|
-
renderedChildren && defaultHeaderActions)
|
|
220
|
-
|
|
223
|
+
renderedChildren && defaultHeaderActions) }))),
|
|
224
|
+
React.createElement(ShowRenderedChildren, { isOpen: isOpen }, renderedChildren)));
|
|
221
225
|
};
|
|
222
|
-
var ShowRenderedChildren = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return props.isOpen ? 'block' : 'none'; });
|
|
226
|
+
var ShowRenderedChildren = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
|
|
223
227
|
export var headerStatus = (_a = {},
|
|
224
|
-
_a[RequestStatus.Loading] =
|
|
225
|
-
_a[RequestStatus.Success] =
|
|
226
|
-
_a[RequestStatus.Error] =
|
|
227
|
-
_a[RequestStatus.Empty] =
|
|
228
|
+
_a[RequestStatus.Loading] = 'external-source loading',
|
|
229
|
+
_a[RequestStatus.Success] = 'success',
|
|
230
|
+
_a[RequestStatus.Error] = 'external-source error',
|
|
231
|
+
_a[RequestStatus.Empty] = 'external-source error',
|
|
228
232
|
_a);
|
|
229
233
|
var templateObject_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { HasCreditsType } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HasCreditsType } from './components/consultasComplementares';
|
|
3
3
|
type ConsultaSimplesProps = {
|
|
4
4
|
onClickQSA: (cpfCnpj: string) => void;
|
|
5
5
|
documento: string;
|
|
@@ -2,24 +2,24 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React from
|
|
6
|
-
import { Contacts, Partners, Dossie, Addresses, CCF, Protestos, ProcessosJuridicos, BankAccounts, WebServiceProvider, Queries, RefinSerasa, RefinBoaVista, Veiculos, ChartSystem, DividasPublicas
|
|
7
|
-
import { ConsultasComplementaresProvider
|
|
8
|
-
import ConsultaSCR from
|
|
9
|
-
import ConsultaScore from
|
|
10
|
-
import ConsultaImoveis from
|
|
11
|
-
import GlobalStyle from
|
|
12
|
-
import { ConsultaRfbProvider } from
|
|
13
|
-
import styled from
|
|
14
|
-
import { Chart, registerables } from
|
|
15
|
-
import Dominios from
|
|
16
|
-
import Liminar from
|
|
17
|
-
import ConsultaSimplesSection from
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { Contacts, Partners, Dossie, Addresses, CCF, Protestos, ProcessosJuridicos, BankAccounts, WebServiceProvider, Queries, RefinSerasa, RefinBoaVista, Veiculos, ChartSystem, DividasPublicas } from './';
|
|
7
|
+
import { ConsultasComplementaresProvider } from './components/consultasComplementares';
|
|
8
|
+
import ConsultaSCR from './components/scr/scr';
|
|
9
|
+
import ConsultaScore from './components/score/scoreService';
|
|
10
|
+
import ConsultaImoveis from './components/imoveis/imoveisService';
|
|
11
|
+
import GlobalStyle from './components/interface/globalStyle';
|
|
12
|
+
import { ConsultaRfbProvider } from './components/consultaRfb';
|
|
13
|
+
import styled from 'styled-components';
|
|
14
|
+
import { Chart, registerables } from 'chart.js';
|
|
15
|
+
import Dominios from './components/dominios/dominios';
|
|
16
|
+
import Liminar from './components/liminar/liminar';
|
|
17
|
+
import ConsultaSimplesSection from './components/consultaSimplesSection/consultaSimplesSection';
|
|
18
18
|
Chart.register.apply(Chart, registerables);
|
|
19
19
|
var Wrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])));
|
|
20
20
|
var ConsultaSimples = function (_a) {
|
|
21
21
|
var _documento = _a.documento, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico, onClickQSA = _a.onClickQSA, apiKey = _a.apiKey, onClose = _a.onClose, hasCredits = _a.hasCredits;
|
|
22
|
-
var documento = _documento.replace(/\D+/g,
|
|
22
|
+
var documento = _documento.replace(/\D+/g, '');
|
|
23
23
|
return (React.createElement(React.Fragment, null,
|
|
24
24
|
React.createElement(GlobalStyle, null),
|
|
25
25
|
React.createElement(ConsultasComplementaresProvider, { hasCredits: hasCredits },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConsultaRfbContext } from
|
|
2
|
-
import { useContext } from
|
|
1
|
+
import { ConsultaRfbContext } from '../components/consultaRfb';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
3
|
export var useConsultaRfb = function () {
|
|
4
4
|
var context = useContext(ConsultaRfbContext);
|
|
5
5
|
if (!context) {
|
|
6
|
-
throw new Error(
|
|
6
|
+
throw new Error('useConsultasComplementares must be used within a ConsultasComplementaresProvider');
|
|
7
7
|
}
|
|
8
8
|
return context;
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useContext } from
|
|
2
|
-
import { ConsultasComplementaresContext } from
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { ConsultasComplementaresContext } from '../components/consultasComplementares';
|
|
3
3
|
export var useConsultasComplementares = function () {
|
|
4
4
|
var context = useContext(ConsultasComplementaresContext);
|
|
5
5
|
if (!context) {
|
|
6
|
-
throw new Error(
|
|
6
|
+
throw new Error('useConsultasComplementares must be used within a ConsultasComplementaresProvider');
|
|
7
7
|
}
|
|
8
8
|
return context;
|
|
9
9
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useState, useEffect } from
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
2
|
export function useWindowSize() {
|
|
3
3
|
var _a = useState({
|
|
4
4
|
width: 0,
|
|
5
|
-
height: 0
|
|
5
|
+
height: 0
|
|
6
6
|
}), windowSize = _a[0], setWindowSize = _a[1];
|
|
7
7
|
useEffect(function () {
|
|
8
8
|
function handleResize() {
|
|
9
9
|
setWindowSize({
|
|
10
10
|
width: window.innerWidth,
|
|
11
|
-
height: window.innerHeight
|
|
11
|
+
height: window.innerHeight
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
window.addEventListener(
|
|
14
|
+
window.addEventListener('resize', handleResize);
|
|
15
15
|
handleResize();
|
|
16
|
-
return function () { return window.removeEventListener(
|
|
16
|
+
return function () { return window.removeEventListener('resize', handleResize); };
|
|
17
17
|
}, []);
|
|
18
18
|
return windowSize;
|
|
19
19
|
}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { default as Section } from
|
|
2
|
-
export { default as Header } from
|
|
3
|
-
export { default as Loading } from
|
|
4
|
-
export { default as AddItemField } from
|
|
5
|
-
export { default as Contacts } from
|
|
6
|
-
export { default as Partners } from
|
|
7
|
-
export { default as Protestos } from
|
|
8
|
-
export { default as CCF } from
|
|
9
|
-
export { default as Dossie } from
|
|
10
|
-
export { default as ProcessosJuridicos } from
|
|
11
|
-
export { default as Addresses } from
|
|
12
|
-
export { default as ChartSystem
|
|
13
|
-
export { default as BankAccounts } from
|
|
14
|
-
export { default as ResultWithoutInformation } from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export { default as ConsultaSimples } from
|
|
18
|
-
export { default as DividasPublicas } from
|
|
19
|
-
export { default as PessoaPoliticamenteExposta } from
|
|
20
|
-
export { default as RefinSerasa } from
|
|
21
|
-
export { default as RefinBoaVista } from
|
|
22
|
-
export { default as SCR } from
|
|
23
|
-
export { default as Veiculos } from
|
|
1
|
+
export { default as Section } from './components/interface/section';
|
|
2
|
+
export { default as Header } from './components/interface/header';
|
|
3
|
+
export { default as Loading } from './components/interface/loading';
|
|
4
|
+
export { default as AddItemField } from './components/common/addItem';
|
|
5
|
+
export { default as Contacts } from './components/contacts/contacts';
|
|
6
|
+
export { default as Partners } from './components/partners/partners';
|
|
7
|
+
export { default as Protestos } from './components/protestos/protestos';
|
|
8
|
+
export { default as CCF } from './components/ccf/ccf';
|
|
9
|
+
export { default as Dossie } from './components/dossie/dossie';
|
|
10
|
+
export { default as ProcessosJuridicos } from './components/processos-juridicos/processosJuridicos';
|
|
11
|
+
export { default as Addresses } from './components/adresses/addresses';
|
|
12
|
+
export { default as ChartSystem } from './components/chart/chartSystem';
|
|
13
|
+
export { default as BankAccounts } from './components/bank-accounts/bank-accounts';
|
|
14
|
+
export { default as ResultWithoutInformation } from './components/interface/resultWithoutInformation';
|
|
15
|
+
export * from './components/webservice';
|
|
16
|
+
export * from './components/interface/result';
|
|
17
|
+
export { default as ConsultaSimples } from './consultaSimples';
|
|
18
|
+
export { default as DividasPublicas } from './components/dividasPublicas/dividasPublicas';
|
|
19
|
+
export { default as PessoaPoliticamenteExposta } from './components/pep/pep';
|
|
20
|
+
export { default as RefinSerasa } from './components/refinSerasa/refinSerasa';
|
|
21
|
+
export { default as RefinBoaVista } from './components/refinBoaVista/refinBoaVista';
|
|
22
|
+
export { default as SCR } from './components/scr/scr';
|
|
23
|
+
export { default as Veiculos } from './components/veiculos/veiculos';
|
package/lib/esm/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export { default as Section } from
|
|
2
|
-
export { default as Header } from
|
|
3
|
-
export { default as Loading } from
|
|
4
|
-
export { default as AddItemField } from
|
|
5
|
-
export { default as Contacts } from
|
|
6
|
-
export { default as Partners } from
|
|
7
|
-
export { default as Protestos } from
|
|
8
|
-
export { default as CCF } from
|
|
9
|
-
export { default as Dossie } from
|
|
10
|
-
export { default as ProcessosJuridicos } from
|
|
11
|
-
export { default as Addresses } from
|
|
1
|
+
export { default as Section } from './components/interface/section';
|
|
2
|
+
export { default as Header } from './components/interface/header';
|
|
3
|
+
export { default as Loading } from './components/interface/loading';
|
|
4
|
+
export { default as AddItemField } from './components/common/addItem';
|
|
5
|
+
export { default as Contacts } from './components/contacts/contacts';
|
|
6
|
+
export { default as Partners } from './components/partners/partners';
|
|
7
|
+
export { default as Protestos } from './components/protestos/protestos';
|
|
8
|
+
export { default as CCF } from './components/ccf/ccf';
|
|
9
|
+
export { default as Dossie } from './components/dossie/dossie';
|
|
10
|
+
export { default as ProcessosJuridicos } from './components/processos-juridicos/processosJuridicos';
|
|
11
|
+
export { default as Addresses } from './components/adresses/addresses';
|
|
12
12
|
export {
|
|
13
13
|
// default as Chart,
|
|
14
14
|
// ResumoDeNegativacoesChartSection as CustomChartSection,
|
|
15
|
-
default as ChartSystem
|
|
16
|
-
export { default as BankAccounts } from
|
|
17
|
-
export { default as ResultWithoutInformation } from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export { default as ConsultaSimples } from
|
|
21
|
-
export { default as DividasPublicas } from
|
|
22
|
-
export { default as PessoaPoliticamenteExposta } from
|
|
23
|
-
export { default as RefinSerasa } from
|
|
24
|
-
export { default as RefinBoaVista } from
|
|
25
|
-
export { default as SCR } from
|
|
26
|
-
export { default as Veiculos } from
|
|
15
|
+
default as ChartSystem } from './components/chart/chartSystem';
|
|
16
|
+
export { default as BankAccounts } from './components/bank-accounts/bank-accounts';
|
|
17
|
+
export { default as ResultWithoutInformation } from './components/interface/resultWithoutInformation';
|
|
18
|
+
export * from './components/webservice';
|
|
19
|
+
export * from './components/interface/result';
|
|
20
|
+
export { default as ConsultaSimples } from './consultaSimples';
|
|
21
|
+
export { default as DividasPublicas } from './components/dividasPublicas/dividasPublicas';
|
|
22
|
+
export { default as PessoaPoliticamenteExposta } from './components/pep/pep';
|
|
23
|
+
export { default as RefinSerasa } from './components/refinSerasa/refinSerasa';
|
|
24
|
+
export { default as RefinBoaVista } from './components/refinBoaVista/refinBoaVista';
|
|
25
|
+
export { default as SCR } from './components/scr/scr';
|
|
26
|
+
export { default as Veiculos } from './components/veiculos/veiculos';
|
|
@@ -9,9 +9,9 @@ export function encontrarDataMaisRecente(itens) {
|
|
|
9
9
|
var dataAtual = item.data ? new Date(item.data) : new Date(0);
|
|
10
10
|
return dataAtual > maisRecente ? dataAtual : maisRecente;
|
|
11
11
|
}, new Date(0));
|
|
12
|
-
return (maisRecente.getDate().toString().padStart(2,
|
|
13
|
-
|
|
14
|
-
(maisRecente.getMonth() + 1).toString().padStart(2,
|
|
15
|
-
|
|
12
|
+
return (maisRecente.getDate().toString().padStart(2, '0') +
|
|
13
|
+
'/' +
|
|
14
|
+
(maisRecente.getMonth() + 1).toString().padStart(2, '0') +
|
|
15
|
+
'/' +
|
|
16
16
|
maisRecente.getFullYear().toString());
|
|
17
17
|
}
|