@credithub/harlan-components 1.13.9 → 1.15.0
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 +48432 -65
- package/lib/esm/components/chart/chartContent.d.ts +3 -4
- package/lib/esm/components/chart/chartContent.js +41 -50
- package/lib/esm/components/chart/chartSystem.d.ts +6 -0
- package/lib/esm/components/chart/chartSystem.js +45 -0
- package/lib/esm/components/chart/components/MixedChart.d.ts +7 -0
- package/lib/esm/components/chart/components/MixedChart.js +30 -0
- package/lib/esm/components/chart/components/PieChart.d.ts +7 -0
- package/lib/esm/components/chart/components/PieChart.js +9 -0
- package/lib/esm/components/chart/components/categoryProtestos.d.ts +7 -0
- package/lib/esm/components/chart/components/categoryProtestos.js +17 -0
- package/lib/esm/components/chart/hooks/useCategoryProtestos.d.ts +6 -0
- package/lib/esm/components/chart/hooks/useCategoryProtestos.js +71 -0
- package/lib/esm/components/chart/hooks/useChartData.d.ts +8 -0
- package/lib/esm/components/chart/hooks/useChartData.js +59 -0
- package/lib/esm/components/chart/hooks/useMixedChartData.d.ts +10 -0
- package/lib/esm/components/chart/hooks/useMixedChartData.js +43 -0
- package/lib/esm/components/chart/hooks/usePieChartData.d.ts +6 -0
- package/lib/esm/components/chart/hooks/usePieChartData.js +89 -0
- package/lib/esm/components/chart/quantityResult.js +23 -22
- package/lib/esm/components/chart/types/iChart.d.ts +58 -0
- package/lib/esm/components/chart/utils/chartCustomization.d.ts +7 -0
- package/lib/esm/components/chart/utils/chartCustomization.js +154 -0
- package/lib/esm/components/chart/utils/chartUtils.d.ts +11 -0
- package/lib/esm/components/chart/utils/chartUtils.js +37 -0
- package/lib/esm/components/chart/utils/dataManipulation.d.ts +10 -0
- package/lib/esm/components/chart/utils/dataManipulation.js +97 -0
- package/lib/esm/components/chart/utils/dataProcessing.d.ts +3 -0
- package/lib/esm/components/chart/utils/dataProcessing.js +86 -0
- package/lib/esm/consultaSimples.js +5 -3
- package/lib/esm/hooks/useWindowSize.d.ts +4 -0
- package/lib/esm/hooks/useWindowSize.js +19 -0
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +4 -1
- package/lib/esm/utils/fillMissingData.d.ts +6 -0
- package/lib/esm/utils/fillMissingData.js +12 -0
- package/lib/esm/utils/getUniqueDates.d.ts +5 -0
- package/lib/esm/utils/getUniqueDates.js +9 -0
- package/package.json +12 -2
- package/lib/cjs/assets/btn/btnWrapper.d.ts +0 -2
- package/lib/cjs/assets/btn/btnWrapper.js +0 -14
- package/lib/cjs/assets/btn/chevronDown.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronDown.js +0 -34
- package/lib/cjs/assets/btn/chevronLeft.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronLeft.js +0 -35
- package/lib/cjs/assets/btn/chevronRight.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronRight.js +0 -35
- package/lib/cjs/assets/btn/chevronUp.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronUp.js +0 -35
- package/lib/cjs/assets/btn/closeIcon.d.ts +0 -3
- package/lib/cjs/assets/btn/closeIcon.js +0 -34
- package/lib/cjs/assets/btn/thumbDown.d.ts +0 -7
- package/lib/cjs/assets/btn/thumbDown.js +0 -16
- package/lib/cjs/assets/btn/thumbUp.d.ts +0 -7
- package/lib/cjs/assets/btn/thumbUp.js +0 -16
- package/lib/cjs/assets/icones/chequesSemFundo.d.ts +0 -4
- package/lib/cjs/assets/icones/chequesSemFundo.js +0 -17
- package/lib/cjs/assets/icones/consultaSimples.d.ts +0 -4
- package/lib/cjs/assets/icones/consultaSimples.js +0 -17
- package/lib/cjs/assets/icones/contasBancarias.d.ts +0 -4
- package/lib/cjs/assets/icones/contasBancarias.js +0 -17
- package/lib/cjs/assets/icones/contato.d.ts +0 -4
- package/lib/cjs/assets/icones/contato.js +0 -17
- package/lib/cjs/assets/icones/dividasVencidasSerasa.d.ts +0 -4
- package/lib/cjs/assets/icones/dividasVencidasSerasa.js +0 -14
- package/lib/cjs/assets/icones/dominios.d.ts +0 -4
- package/lib/cjs/assets/icones/dominios.js +0 -14
- package/lib/cjs/assets/icones/endereco.d.ts +0 -4
- package/lib/cjs/assets/icones/endereco.js +0 -17
- package/lib/cjs/assets/icones/iconeEmpresa.d.ts +0 -8
- package/lib/cjs/assets/icones/iconeEmpresa.js +0 -17
- package/lib/cjs/assets/icones/iconePessoa.d.ts +0 -9
- package/lib/cjs/assets/icones/iconePessoa.js +0 -17
- package/lib/cjs/assets/icones/imoveis.d.ts +0 -4
- package/lib/cjs/assets/icones/imoveis.js +0 -14
- package/lib/cjs/assets/icones/pefinRefinBoaVista.d.ts +0 -4
- package/lib/cjs/assets/icones/pefinRefinBoaVista.js +0 -14
- package/lib/cjs/assets/icones/pefinRefinSerasa.d.ts +0 -4
- package/lib/cjs/assets/icones/pefinRefinSerasa.js +0 -16
- package/lib/cjs/assets/icones/processosJuridicos.d.ts +0 -4
- package/lib/cjs/assets/icones/processosJuridicos.js +0 -17
- package/lib/cjs/assets/icones/protestos.d.ts +0 -4
- package/lib/cjs/assets/icones/protestos.js +0 -17
- package/lib/cjs/assets/icones/protestosCredito.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosCredito.js +0 -17
- package/lib/cjs/assets/icones/protestosGerais.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosGerais.js +0 -17
- package/lib/cjs/assets/icones/protestosImpostos.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosImpostos.js +0 -17
- package/lib/cjs/assets/icones/quadroSocietario.d.ts +0 -4
- package/lib/cjs/assets/icones/quadroSocietario.js +0 -17
- package/lib/cjs/assets/icones/resumoNegativacoes.d.ts +0 -4
- package/lib/cjs/assets/icones/resumoNegativacoes.js +0 -16
- package/lib/cjs/assets/icones/scoreBoaVista.d.ts +0 -4
- package/lib/cjs/assets/icones/scoreBoaVista.js +0 -14
- package/lib/cjs/assets/icones/scr.d.ts +0 -4
- package/lib/cjs/assets/icones/scr.js +0 -14
- package/lib/cjs/assets/icones/ultimaMovimentacao.d.ts +0 -4
- package/lib/cjs/assets/icones/ultimaMovimentacao.js +0 -17
- package/lib/cjs/assets/icones/veiculos.d.ts +0 -4
- package/lib/cjs/assets/icones/veiculos.js +0 -14
- package/lib/cjs/components/adresses/addresses.d.ts +0 -19
- package/lib/cjs/components/adresses/addresses.js +0 -74
- package/lib/cjs/components/adresses/getGeocode.d.ts +0 -6
- package/lib/cjs/components/adresses/getGeocode.js +0 -73
- package/lib/cjs/components/adresses/map.d.ts +0 -11
- package/lib/cjs/components/adresses/map.js +0 -50
- package/lib/cjs/components/bank-accounts/bank-accounts.d.ts +0 -3
- package/lib/cjs/components/bank-accounts/bank-accounts.js +0 -33
- package/lib/cjs/components/ccf/ccf.d.ts +0 -3
- package/lib/cjs/components/ccf/ccf.js +0 -65
- package/lib/cjs/components/ccf/ccfList.d.ts +0 -12
- package/lib/cjs/components/ccf/ccfList.js +0 -52
- package/lib/cjs/components/chart/categoryProtestos.d.ts +0 -4
- package/lib/cjs/components/chart/categoryProtestos.js +0 -97
- package/lib/cjs/components/chart/chartContent.d.ts +0 -7
- package/lib/cjs/components/chart/chartContent.js +0 -87
- package/lib/cjs/components/chart/chartHelper.d.ts +0 -7
- package/lib/cjs/components/chart/chartHelper.js +0 -66
- package/lib/cjs/components/chart/customChart.d.ts +0 -10
- package/lib/cjs/components/chart/customChart.js +0 -142
- package/lib/cjs/components/chart/getUniqueDates.d.ts +0 -2
- package/lib/cjs/components/chart/getUniqueDates.js +0 -8
- package/lib/cjs/components/chart/plotly/barChartDataStrategy.d.ts +0 -14
- package/lib/cjs/components/chart/plotly/barChartDataStrategy.js +0 -152
- package/lib/cjs/components/chart/plotly/baseChartDataStrategy.d.ts +0 -8
- package/lib/cjs/components/chart/plotly/baseChartDataStrategy.js +0 -31
- package/lib/cjs/components/chart/plotly/getSeries.d.ts +0 -3
- package/lib/cjs/components/chart/plotly/getSeries.js +0 -35
- package/lib/cjs/components/chart/plotly/iChartDataStrategy.d.ts +0 -35
- package/lib/cjs/components/chart/plotly/iChartDataStrategy.js +0 -2
- package/lib/cjs/components/chart/plotly/index.d.ts +0 -5
- package/lib/cjs/components/chart/plotly/index.js +0 -20
- package/lib/cjs/components/chart/plotly/layoutLineBarChart.d.ts +0 -39
- package/lib/cjs/components/chart/plotly/layoutLineBarChart.js +0 -67
- package/lib/cjs/components/chart/plotly/lineChartDataStrategy.d.ts +0 -17
- package/lib/cjs/components/chart/plotly/lineChartDataStrategy.js +0 -198
- package/lib/cjs/components/chart/plotly/pieChartDataStrategy.d.ts +0 -5
- package/lib/cjs/components/chart/plotly/pieChartDataStrategy.js +0 -45
- package/lib/cjs/components/chart/plotly/types.d.ts +0 -40
- package/lib/cjs/components/chart/plotly/types.js +0 -2
- package/lib/cjs/components/chart/processChartData.d.ts +0 -5
- package/lib/cjs/components/chart/processChartData.js +0 -41
- package/lib/cjs/components/chart/quantityResult.d.ts +0 -17
- package/lib/cjs/components/chart/quantityResult.js +0 -45
- package/lib/cjs/components/chart/useCalculation.d.ts +0 -6
- package/lib/cjs/components/chart/useCalculation.js +0 -12
- package/lib/cjs/components/chart/useDividasPublicas.d.ts +0 -5
- package/lib/cjs/components/chart/useDividasPublicas.js +0 -26
- package/lib/cjs/components/chart/useUltimaOcorrenciaCCF.d.ts +0 -2
- package/lib/cjs/components/chart/useUltimaOcorrenciaCCF.js +0 -20
- package/lib/cjs/components/common/addItem.d.ts +0 -11
- package/lib/cjs/components/common/addItem.js +0 -49
- package/lib/cjs/components/common/button.d.ts +0 -5
- package/lib/cjs/components/common/button.js +0 -46
- package/lib/cjs/components/common/carousel.d.ts +0 -4
- package/lib/cjs/components/common/carousel.js +0 -24
- package/lib/cjs/components/consultaRfb.d.ts +0 -16
- package/lib/cjs/components/consultaRfb.js +0 -48
- package/lib/cjs/components/consultaSimplesSection/consultaSimplesSection.d.ts +0 -6
- package/lib/cjs/components/consultaSimplesSection/consultaSimplesSection.js +0 -110
- package/lib/cjs/components/consultasComplementares.d.ts +0 -29
- package/lib/cjs/components/consultasComplementares.js +0 -59
- package/lib/cjs/components/contacts/contactLikeDislikeSection.d.ts +0 -8
- package/lib/cjs/components/contacts/contactLikeDislikeSection.js +0 -96
- package/lib/cjs/components/contacts/contacts.d.ts +0 -18
- package/lib/cjs/components/contacts/contacts.js +0 -75
- package/lib/cjs/components/contacts/contactsLikeDislike.d.ts +0 -9
- package/lib/cjs/components/contacts/contactsLikeDislike.js +0 -12
- package/lib/cjs/components/contacts/thumbsButton.d.ts +0 -9
- package/lib/cjs/components/contacts/thumbsButton.js +0 -46
- package/lib/cjs/components/dividasPublicas/dividasPublicas.d.ts +0 -3
- package/lib/cjs/components/dividasPublicas/dividasPublicas.js +0 -89
- package/lib/cjs/components/dominios/dominios.d.ts +0 -3
- package/lib/cjs/components/dominios/dominios.js +0 -53
- package/lib/cjs/components/dossie/carrousel/carrousel.d.ts +0 -8
- package/lib/cjs/components/dossie/carrousel/carrousel.js +0 -22
- package/lib/cjs/components/dossie/companyLogo/companyLogo.d.ts +0 -7
- package/lib/cjs/components/dossie/companyLogo/companyLogo.js +0 -31
- package/lib/cjs/components/dossie/dossie.d.ts +0 -8
- package/lib/cjs/components/dossie/dossie.js +0 -74
- package/lib/cjs/components/dossie/summary/cardsAndProducts.d.ts +0 -29
- package/lib/cjs/components/dossie/summary/cardsAndProducts.js +0 -212
- package/lib/cjs/components/dossie/summary/summary.d.ts +0 -18
- package/lib/cjs/components/dossie/summary/summary.js +0 -35
- package/lib/cjs/components/dossie/summary/utils.d.ts +0 -10
- package/lib/cjs/components/dossie/summary/utils.js +0 -38
- package/lib/cjs/components/dossie/transactionTable/transactionTable.d.ts +0 -6
- package/lib/cjs/components/dossie/transactionTable/transactionTable.js +0 -40
- package/lib/cjs/components/imoveis/imoveisService.d.ts +0 -6
- package/lib/cjs/components/imoveis/imoveisService.js +0 -79
- package/lib/cjs/components/imoveis/types.d.ts +0 -24
- package/lib/cjs/components/imoveis/types.js +0 -2
- package/lib/cjs/components/interface/globalStyle.d.ts +0 -2
- package/lib/cjs/components/interface/globalStyle.js +0 -11
- package/lib/cjs/components/interface/header.d.ts +0 -23
- package/lib/cjs/components/interface/header.js +0 -77
- package/lib/cjs/components/interface/loading.d.ts +0 -2
- package/lib/cjs/components/interface/loading.js +0 -14
- package/lib/cjs/components/interface/loadingBar.d.ts +0 -5
- package/lib/cjs/components/interface/loadingBar.js +0 -46
- package/lib/cjs/components/interface/responsiveGrid.d.ts +0 -8
- package/lib/cjs/components/interface/responsiveGrid.js +0 -13
- package/lib/cjs/components/interface/result.d.ts +0 -9
- package/lib/cjs/components/interface/result.js +0 -22
- package/lib/cjs/components/interface/resultWithoutInformation.d.ts +0 -4
- package/lib/cjs/components/interface/resultWithoutInformation.js +0 -37
- package/lib/cjs/components/interface/section.d.ts +0 -10
- package/lib/cjs/components/interface/section.js +0 -36
- package/lib/cjs/components/interface/statusMessage.d.ts +0 -7
- package/lib/cjs/components/interface/statusMessage.js +0 -30
- package/lib/cjs/components/interface/theme.d.ts +0 -73
- package/lib/cjs/components/interface/theme.js +0 -75
- package/lib/cjs/components/liminar/liminar.d.ts +0 -3
- package/lib/cjs/components/liminar/liminar.js +0 -46
- package/lib/cjs/components/liminar/types.d.ts +0 -3
- package/lib/cjs/components/liminar/types.js +0 -2
- package/lib/cjs/components/partners/partner-dividas-publicas.d.ts +0 -5
- package/lib/cjs/components/partners/partner-dividas-publicas.js +0 -15
- package/lib/cjs/components/partners/partner-protestos.d.ts +0 -5
- package/lib/cjs/components/partners/partner-protestos.js +0 -15
- package/lib/cjs/components/partners/partner-rfb-status.d.ts +0 -5
- package/lib/cjs/components/partners/partner-rfb-status.js +0 -15
- package/lib/cjs/components/partners/partnerField.d.ts +0 -9
- package/lib/cjs/components/partners/partnerField.js +0 -14
- package/lib/cjs/components/partners/partnerList.d.ts +0 -16
- package/lib/cjs/components/partners/partnerList.js +0 -44
- package/lib/cjs/components/partners/partners.d.ts +0 -3
- package/lib/cjs/components/partners/partners.js +0 -77
- package/lib/cjs/components/pep/pep.d.ts +0 -3
- package/lib/cjs/components/pep/pep.js +0 -66
- package/lib/cjs/components/processos-juridicos/envolvidosList.d.ts +0 -10
- package/lib/cjs/components/processos-juridicos/envolvidosList.js +0 -27
- package/lib/cjs/components/processos-juridicos/processosJuridicos.d.ts +0 -5
- package/lib/cjs/components/processos-juridicos/processosJuridicos.js +0 -51
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.d.ts +0 -7
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.js +0 -90
- package/lib/cjs/components/processos-juridicos/types.d.ts +0 -27
- package/lib/cjs/components/processos-juridicos/types.js +0 -2
- package/lib/cjs/components/protestos/getTotalProtestos.d.ts +0 -1
- package/lib/cjs/components/protestos/getTotalProtestos.js +0 -10
- package/lib/cjs/components/protestos/protestos.d.ts +0 -3
- package/lib/cjs/components/protestos/protestos.js +0 -94
- package/lib/cjs/components/protestos/protestosCategory.d.ts +0 -7
- package/lib/cjs/components/protestos/protestosCategory.js +0 -55
- package/lib/cjs/components/protestos/protestosList.d.ts +0 -33
- package/lib/cjs/components/protestos/protestosList.js +0 -73
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.d.ts +0 -5
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.js +0 -129
- package/lib/cjs/components/reclameAqui/types.d.ts +0 -31
- package/lib/cjs/components/reclameAqui/types.js +0 -2
- package/lib/cjs/components/refinBoaVista/refinBoaVista.d.ts +0 -22
- package/lib/cjs/components/refinBoaVista/refinBoaVista.js +0 -86
- package/lib/cjs/components/refinBoaVista/types.d.ts +0 -48
- package/lib/cjs/components/refinBoaVista/types.js +0 -7
- package/lib/cjs/components/refinSerasa/refinSerasa.d.ts +0 -22
- package/lib/cjs/components/refinSerasa/refinSerasa.js +0 -129
- package/lib/cjs/components/refinSerasa/types.d.ts +0 -48
- package/lib/cjs/components/refinSerasa/types.js +0 -2
- package/lib/cjs/components/refinSerasa/usePendencias.d.ts +0 -0
- package/lib/cjs/components/refinSerasa/usePendencias.js +0 -0
- package/lib/cjs/components/resultadoDaPesquisa/resultado-da-pesquisa.d.ts +0 -5
- package/lib/cjs/components/resultadoDaPesquisa/resultado-da-pesquisa.js +0 -31
- package/lib/cjs/components/score/scoreService.d.ts +0 -6
- package/lib/cjs/components/score/scoreService.js +0 -71
- package/lib/cjs/components/score/types.d.ts +0 -12
- package/lib/cjs/components/score/types.js +0 -2
- package/lib/cjs/components/scr/getResumoDeCreditos.d.ts +0 -6
- package/lib/cjs/components/scr/getResumoDeCreditos.js +0 -93
- package/lib/cjs/components/scr/getResumoDeModalidades.d.ts +0 -8
- package/lib/cjs/components/scr/getResumoDeModalidades.js +0 -95
- package/lib/cjs/components/scr/scr.d.ts +0 -5
- package/lib/cjs/components/scr/scr.js +0 -140
- package/lib/cjs/components/scr/types.d.ts +0 -86
- package/lib/cjs/components/scr/types.js +0 -2
- package/lib/cjs/components/veiculos/types.d.ts +0 -0
- package/lib/cjs/components/veiculos/types.js +0 -0
- package/lib/cjs/components/veiculos/veiculos.d.ts +0 -22
- package/lib/cjs/components/veiculos/veiculos.js +0 -89
- package/lib/cjs/components/webservice.d.ts +0 -140
- package/lib/cjs/components/webservice.js +0 -262
- package/lib/cjs/constants/regex.d.ts +0 -2
- package/lib/cjs/constants/regex.js +0 -5
- package/lib/cjs/consultaSimples.d.ts +0 -11
- package/lib/cjs/consultaSimples.js +0 -59
- package/lib/cjs/hooks/useConsultaRfb.d.ts +0 -6
- package/lib/cjs/hooks/useConsultaRfb.js +0 -13
- package/lib/cjs/hooks/useConsultasComplementares.d.ts +0 -1
- package/lib/cjs/hooks/useConsultasComplementares.js +0 -13
- package/lib/cjs/hooks/useToggle.d.ts +0 -10
- package/lib/cjs/hooks/useToggle.js +0 -26
- package/lib/cjs/index.d.ts +0 -23
- package/lib/cjs/utils/calculation.d.ts +0 -9
- package/lib/cjs/utils/calculation.js +0 -23
- package/lib/cjs/utils/date.d.ts +0 -1
- package/lib/cjs/utils/date.js +0 -10
- package/lib/cjs/utils/formatter.d.ts +0 -2
- package/lib/cjs/utils/formatter.js +0 -7
- package/lib/cjs/utils/number.d.ts +0 -4
- package/lib/cjs/utils/number.js +0 -27
- package/lib/cjs/utils/string.d.ts +0 -10
- package/lib/cjs/utils/string.js +0 -73
- package/lib/cjs/utils/xpath.d.ts +0 -6
- package/lib/cjs/utils/xpath.js +0 -23
- package/lib/esm/components/chart/categoryProtestos.d.ts +0 -4
- package/lib/esm/components/chart/categoryProtestos.js +0 -69
- package/lib/esm/components/chart/chartHelper.d.ts +0 -7
- package/lib/esm/components/chart/chartHelper.js +0 -60
- package/lib/esm/components/chart/customChart.d.ts +0 -10
- package/lib/esm/components/chart/customChart.js +0 -112
- package/lib/esm/components/chart/getUniqueDates.d.ts +0 -2
- package/lib/esm/components/chart/getUniqueDates.js +0 -4
- package/lib/esm/components/chart/plotly/barChartDataStrategy.d.ts +0 -14
- package/lib/esm/components/chart/plotly/barChartDataStrategy.js +0 -149
- package/lib/esm/components/chart/plotly/baseChartDataStrategy.d.ts +0 -8
- package/lib/esm/components/chart/plotly/baseChartDataStrategy.js +0 -28
- package/lib/esm/components/chart/plotly/getSeries.d.ts +0 -3
- package/lib/esm/components/chart/plotly/getSeries.js +0 -31
- package/lib/esm/components/chart/plotly/iChartDataStrategy.d.ts +0 -35
- package/lib/esm/components/chart/plotly/index.d.ts +0 -5
- package/lib/esm/components/chart/plotly/index.js +0 -5
- package/lib/esm/components/chart/plotly/layoutLineBarChart.d.ts +0 -39
- package/lib/esm/components/chart/plotly/layoutLineBarChart.js +0 -64
- package/lib/esm/components/chart/plotly/lineChartDataStrategy.d.ts +0 -17
- package/lib/esm/components/chart/plotly/lineChartDataStrategy.js +0 -195
- package/lib/esm/components/chart/plotly/pieChartDataStrategy.d.ts +0 -5
- package/lib/esm/components/chart/plotly/pieChartDataStrategy.js +0 -42
- package/lib/esm/components/chart/plotly/types.d.ts +0 -40
- package/lib/esm/components/chart/plotly/types.js +0 -1
- package/lib/esm/components/chart/processChartData.d.ts +0 -5
- package/lib/esm/components/chart/processChartData.js +0 -37
- package/lib/esm/components/chart/useCalculation.d.ts +0 -6
- package/lib/esm/components/chart/useCalculation.js +0 -8
- package/lib/esm/components/chart/useDividasPublicas.d.ts +0 -5
- package/lib/esm/components/chart/useDividasPublicas.js +0 -21
- package/lib/esm/components/chart/useUltimaOcorrenciaCCF.d.ts +0 -2
- package/lib/esm/components/chart/useUltimaOcorrenciaCCF.js +0 -15
- /package/lib/esm/components/chart/{plotly/iChartDataStrategy.js → types/iChart.js} +0 -0
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.barBoaVista = exports.barSerasa = exports.barProtestos = exports.barDividasPublicas = void 0;
|
|
19
|
-
var _1 = require("./");
|
|
20
|
-
var layout = {};
|
|
21
|
-
var barDividasPublicas = /** @class */ (function (_super) {
|
|
22
|
-
__extends(barDividasPublicas, _super);
|
|
23
|
-
function barDividasPublicas() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
barDividasPublicas.prototype.processData = function (data) {
|
|
27
|
-
var dividasPublicasData = data.dividasPublicasGrafico
|
|
28
|
-
.filter(function (consulta) {
|
|
29
|
-
return consulta.valorTotal !== null;
|
|
30
|
-
})
|
|
31
|
-
.map(function (consulta) { return ({
|
|
32
|
-
x: consulta.data,
|
|
33
|
-
y: consulta.valorTotal,
|
|
34
|
-
}); });
|
|
35
|
-
if ((dividasPublicasData === null || dividasPublicasData === void 0 ? void 0 : dividasPublicasData.length) > 1) {
|
|
36
|
-
dividasPublicasData[(dividasPublicasData === null || dividasPublicasData === void 0 ? void 0 : dividasPublicasData.length) - 1].y = data.dividasPublicas.valorTotal;
|
|
37
|
-
}
|
|
38
|
-
var dividasPublicasState = {
|
|
39
|
-
name: "Dívidas",
|
|
40
|
-
yaxis: "y2",
|
|
41
|
-
type: "bar",
|
|
42
|
-
textposition: "auto",
|
|
43
|
-
marker: {
|
|
44
|
-
color: "#bb3b55",
|
|
45
|
-
opacity: 0.6,
|
|
46
|
-
line: {
|
|
47
|
-
color: "#bb3b55",
|
|
48
|
-
width: 1.5,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
hovertemplate: "%{x|%d/%m/%Y}<br> Dívidas Públicas: R$ %{y} <extra></extra>",
|
|
52
|
-
data: dividasPublicasData,
|
|
53
|
-
layout: layout,
|
|
54
|
-
};
|
|
55
|
-
return dividasPublicasState;
|
|
56
|
-
};
|
|
57
|
-
return barDividasPublicas;
|
|
58
|
-
}(_1.BaseChartDataStrategy));
|
|
59
|
-
exports.barDividasPublicas = barDividasPublicas;
|
|
60
|
-
var barProtestos = /** @class */ (function (_super) {
|
|
61
|
-
__extends(barProtestos, _super);
|
|
62
|
-
function barProtestos() {
|
|
63
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
-
}
|
|
65
|
-
barProtestos.prototype.processData = function (data) {
|
|
66
|
-
var protestosData = data.protestos
|
|
67
|
-
.filter(function (consulta) { return consulta.valorTotal !== null; })
|
|
68
|
-
.map(function (consulta) { return ({
|
|
69
|
-
x: consulta.data,
|
|
70
|
-
y: consulta.valorTotal,
|
|
71
|
-
}); });
|
|
72
|
-
var protestosState = {
|
|
73
|
-
name: "Protestos",
|
|
74
|
-
yaxis: "y2",
|
|
75
|
-
type: "bar",
|
|
76
|
-
textposition: "outside",
|
|
77
|
-
marker: {
|
|
78
|
-
color: "#800000",
|
|
79
|
-
opacity: 0.6,
|
|
80
|
-
line: {
|
|
81
|
-
color: "#800000",
|
|
82
|
-
width: 1.5,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
hovertemplate: "%{x|%d/%m/%Y}<br> Protestos: R$ %{y} <extra></extra>",
|
|
86
|
-
data: protestosData,
|
|
87
|
-
layout: layout,
|
|
88
|
-
};
|
|
89
|
-
return protestosState;
|
|
90
|
-
};
|
|
91
|
-
return barProtestos;
|
|
92
|
-
}(_1.BaseChartDataStrategy));
|
|
93
|
-
exports.barProtestos = barProtestos;
|
|
94
|
-
var barSerasa = /** @class */ (function (_super) {
|
|
95
|
-
__extends(barSerasa, _super);
|
|
96
|
-
function barSerasa() {
|
|
97
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
98
|
-
}
|
|
99
|
-
barSerasa.prototype.processData = function (data) {
|
|
100
|
-
var serasaData = data.serasa
|
|
101
|
-
.filter(function (consulta) { return consulta.valorTotal !== null; })
|
|
102
|
-
.map(function (consulta) { return ({
|
|
103
|
-
x: consulta.creation,
|
|
104
|
-
y: consulta.valorTotal,
|
|
105
|
-
}); });
|
|
106
|
-
var serasaState = {
|
|
107
|
-
name: "Pefin/Refin Serasa",
|
|
108
|
-
yaxis: "y2",
|
|
109
|
-
type: "bar",
|
|
110
|
-
color: "orange",
|
|
111
|
-
marker: {
|
|
112
|
-
color: "rgb(158,202,225)",
|
|
113
|
-
opacity: 0.6,
|
|
114
|
-
line: {
|
|
115
|
-
color: "rgb(8,48,107)",
|
|
116
|
-
width: 1.5,
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
hovertemplate: "%{x|%d/%m/%Y}<br> Serasa: R$ %{y} <extra></extra>",
|
|
120
|
-
data: serasaData,
|
|
121
|
-
layout: layout,
|
|
122
|
-
};
|
|
123
|
-
return serasaState;
|
|
124
|
-
};
|
|
125
|
-
return barSerasa;
|
|
126
|
-
}(_1.BaseChartDataStrategy));
|
|
127
|
-
exports.barSerasa = barSerasa;
|
|
128
|
-
var barBoaVista = /** @class */ (function (_super) {
|
|
129
|
-
__extends(barBoaVista, _super);
|
|
130
|
-
function barBoaVista() {
|
|
131
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
132
|
-
}
|
|
133
|
-
barBoaVista.prototype.processData = function (data) {
|
|
134
|
-
var boaVistaData = data.boaVista
|
|
135
|
-
.filter(function (consulta) { return consulta.valorTotal !== null; })
|
|
136
|
-
.map(function (consulta) { return ({
|
|
137
|
-
x: consulta.creation,
|
|
138
|
-
y: consulta.valorTotal,
|
|
139
|
-
}); });
|
|
140
|
-
var boaVistaState = {
|
|
141
|
-
name: "Pefin/Refin Boa Vista",
|
|
142
|
-
yaxis: "y2",
|
|
143
|
-
type: "bar",
|
|
144
|
-
hovertemplate: "%{x|%d/%m/%Y}<br> Boa Vista: R$ %{y} <extra></extra>",
|
|
145
|
-
data: boaVistaData,
|
|
146
|
-
layout: layout,
|
|
147
|
-
};
|
|
148
|
-
return boaVistaState;
|
|
149
|
-
};
|
|
150
|
-
return barBoaVista;
|
|
151
|
-
}(_1.BaseChartDataStrategy));
|
|
152
|
-
exports.barBoaVista = barBoaVista;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChartDataState, IChartDataStrategy } from "./iChartDataStrategy";
|
|
2
|
-
import { LayoutConfig } from "./layoutLineBarChart";
|
|
3
|
-
import { ChartDataAndLayoutState } from "./types";
|
|
4
|
-
export declare abstract class BaseChartDataStrategy<T> implements IChartDataStrategy<T> {
|
|
5
|
-
abstract processData(data: T): ChartDataAndLayoutState;
|
|
6
|
-
protected parseDate(dateStr: string): Date;
|
|
7
|
-
protected createProcessedData(chartData: ChartDataState, layout?: LayoutConfig): ChartDataAndLayoutState;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.BaseChartDataStrategy = void 0;
|
|
15
|
-
var BaseChartDataStrategy = /** @class */ (function () {
|
|
16
|
-
function BaseChartDataStrategy() {
|
|
17
|
-
}
|
|
18
|
-
BaseChartDataStrategy.prototype.parseDate = function (dateStr) {
|
|
19
|
-
var _a = dateStr.split("/").map(Number), day = _a[0], month = _a[1], year = _a[2];
|
|
20
|
-
return new Date(year, month - 1, day);
|
|
21
|
-
};
|
|
22
|
-
BaseChartDataStrategy.prototype.createProcessedData = function (chartData, layout) {
|
|
23
|
-
var processedData = chartData.data.map(function (d) { return ({
|
|
24
|
-
x: d.x.toISOString(),
|
|
25
|
-
y: d.y,
|
|
26
|
-
}); });
|
|
27
|
-
return __assign(__assign({}, chartData), { data: processedData, text: processedData.map(function (d) { return (d.y !== null ? d.y.toString() : ""); }), layout: layout || {} });
|
|
28
|
-
};
|
|
29
|
-
return BaseChartDataStrategy;
|
|
30
|
-
}());
|
|
31
|
-
exports.BaseChartDataStrategy = BaseChartDataStrategy;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSeries = void 0;
|
|
4
|
-
var underscore_1 = require("underscore");
|
|
5
|
-
var _1 = require("./");
|
|
6
|
-
var getUniqueDates_1 = require("../getUniqueDates");
|
|
7
|
-
function getSeries(data) {
|
|
8
|
-
var strategies = [
|
|
9
|
-
new _1.lineCCF(),
|
|
10
|
-
new _1.lineProtestos(),
|
|
11
|
-
new _1.lineSerasa(),
|
|
12
|
-
new _1.lineBoaVista(),
|
|
13
|
-
new _1.lineDividasPublicas(),
|
|
14
|
-
new _1.barSerasa(),
|
|
15
|
-
new _1.barBoaVista(),
|
|
16
|
-
new _1.barProtestos(),
|
|
17
|
-
new _1.barDividasPublicas(),
|
|
18
|
-
];
|
|
19
|
-
var processedDataSets = strategies.map(function (strategy) {
|
|
20
|
-
return strategy.processData(data);
|
|
21
|
-
});
|
|
22
|
-
var dates = (0, getUniqueDates_1.getUniqueDates)(data);
|
|
23
|
-
processedDataSets.forEach(function (dataset) {
|
|
24
|
-
dataset.data = dates.map(function (date) {
|
|
25
|
-
var foundItem = (0, underscore_1.find)(dataset.data, function (d) { return (0, underscore_1.isEqual)(d.x, date); });
|
|
26
|
-
return foundItem !== null && foundItem !== void 0 ? foundItem : { x: date, y: null };
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
processedDataSets.forEach(function (dataset) {
|
|
30
|
-
dataset.data = (0, underscore_1.sortBy)(dataset.data, function (d) { return d.x.getTime(); });
|
|
31
|
-
//dataset.data = sortBy(dataset.data, (d) => new Date(d.x).getTime());
|
|
32
|
-
});
|
|
33
|
-
return processedDataSets;
|
|
34
|
-
}
|
|
35
|
-
exports.getSeries = getSeries;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChartDataAndLayoutState } from "./types";
|
|
2
|
-
export interface ChartDataState {
|
|
3
|
-
name: string;
|
|
4
|
-
yaxis: string;
|
|
5
|
-
type: string;
|
|
6
|
-
data: {
|
|
7
|
-
x: string | Date;
|
|
8
|
-
y: number | null;
|
|
9
|
-
}[];
|
|
10
|
-
text?: string[];
|
|
11
|
-
textposition?: string;
|
|
12
|
-
values?: number[];
|
|
13
|
-
labels?: string[];
|
|
14
|
-
color?: string;
|
|
15
|
-
marker?: {
|
|
16
|
-
color: string;
|
|
17
|
-
opacity?: number;
|
|
18
|
-
line?: {
|
|
19
|
-
color: string;
|
|
20
|
-
width: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
textfont?: {
|
|
24
|
-
bgcolor?: string;
|
|
25
|
-
family: string;
|
|
26
|
-
size: number;
|
|
27
|
-
color: string;
|
|
28
|
-
};
|
|
29
|
-
mode?: string;
|
|
30
|
-
connectgaps?: boolean;
|
|
31
|
-
hovertemplate?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IChartDataStrategy<T> {
|
|
34
|
-
processData: (data: T) => ChartDataAndLayoutState;
|
|
35
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { BaseChartDataStrategy } from "./baseChartDataStrategy";
|
|
2
|
-
export { barDividasPublicas, barProtestos, barSerasa, barBoaVista, } from "./barChartDataStrategy";
|
|
3
|
-
export { lineDividasPublicas, lineCCF, lineSerasa, lineBoaVista, lineProtestos, } from "./lineChartDataStrategy";
|
|
4
|
-
export { getSeries } from "./getSeries";
|
|
5
|
-
export { layoutLineBarChart } from "./layoutLineBarChart";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.layoutLineBarChart = exports.getSeries = exports.lineProtestos = exports.lineBoaVista = exports.lineSerasa = exports.lineCCF = exports.lineDividasPublicas = exports.barBoaVista = exports.barSerasa = exports.barProtestos = exports.barDividasPublicas = exports.BaseChartDataStrategy = void 0;
|
|
4
|
-
var baseChartDataStrategy_1 = require("./baseChartDataStrategy");
|
|
5
|
-
Object.defineProperty(exports, "BaseChartDataStrategy", { enumerable: true, get: function () { return baseChartDataStrategy_1.BaseChartDataStrategy; } });
|
|
6
|
-
var barChartDataStrategy_1 = require("./barChartDataStrategy");
|
|
7
|
-
Object.defineProperty(exports, "barDividasPublicas", { enumerable: true, get: function () { return barChartDataStrategy_1.barDividasPublicas; } });
|
|
8
|
-
Object.defineProperty(exports, "barProtestos", { enumerable: true, get: function () { return barChartDataStrategy_1.barProtestos; } });
|
|
9
|
-
Object.defineProperty(exports, "barSerasa", { enumerable: true, get: function () { return barChartDataStrategy_1.barSerasa; } });
|
|
10
|
-
Object.defineProperty(exports, "barBoaVista", { enumerable: true, get: function () { return barChartDataStrategy_1.barBoaVista; } });
|
|
11
|
-
var lineChartDataStrategy_1 = require("./lineChartDataStrategy");
|
|
12
|
-
Object.defineProperty(exports, "lineDividasPublicas", { enumerable: true, get: function () { return lineChartDataStrategy_1.lineDividasPublicas; } });
|
|
13
|
-
Object.defineProperty(exports, "lineCCF", { enumerable: true, get: function () { return lineChartDataStrategy_1.lineCCF; } });
|
|
14
|
-
Object.defineProperty(exports, "lineSerasa", { enumerable: true, get: function () { return lineChartDataStrategy_1.lineSerasa; } });
|
|
15
|
-
Object.defineProperty(exports, "lineBoaVista", { enumerable: true, get: function () { return lineChartDataStrategy_1.lineBoaVista; } });
|
|
16
|
-
Object.defineProperty(exports, "lineProtestos", { enumerable: true, get: function () { return lineChartDataStrategy_1.lineProtestos; } });
|
|
17
|
-
var getSeries_1 = require("./getSeries");
|
|
18
|
-
Object.defineProperty(exports, "getSeries", { enumerable: true, get: function () { return getSeries_1.getSeries; } });
|
|
19
|
-
var layoutLineBarChart_1 = require("./layoutLineBarChart");
|
|
20
|
-
Object.defineProperty(exports, "layoutLineBarChart", { enumerable: true, get: function () { return layoutLineBarChart_1.layoutLineBarChart; } });
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface LayoutConfig extends Partial<Plotly.Layout> {
|
|
2
|
-
xaxis?: {
|
|
3
|
-
range: [string, string];
|
|
4
|
-
domain: [number, number];
|
|
5
|
-
rangeslider: {};
|
|
6
|
-
rangeselector: {
|
|
7
|
-
buttons: Array<{
|
|
8
|
-
step: "month" | "year" | "all";
|
|
9
|
-
stepmode?: "backward" | "todate";
|
|
10
|
-
count?: number;
|
|
11
|
-
label?: string;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
yaxis2?: {
|
|
16
|
-
title: string;
|
|
17
|
-
titlefont: {
|
|
18
|
-
color: string;
|
|
19
|
-
};
|
|
20
|
-
tickfont: {
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
tickformat: string;
|
|
24
|
-
};
|
|
25
|
-
yaxis?: {
|
|
26
|
-
title: string;
|
|
27
|
-
titlefont: {
|
|
28
|
-
color: string;
|
|
29
|
-
};
|
|
30
|
-
tickfont: {
|
|
31
|
-
color: string;
|
|
32
|
-
};
|
|
33
|
-
anchor: "x";
|
|
34
|
-
side: "right";
|
|
35
|
-
overlaying: "y2";
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
declare const layoutLineBarChart: (layoutWidth: number, lastDate: Date) => LayoutConfig;
|
|
39
|
-
export { layoutLineBarChart };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.layoutLineBarChart = void 0;
|
|
4
|
-
var layoutLineBarChart = function (layoutWidth, lastDate) {
|
|
5
|
-
var currentDate = lastDate;
|
|
6
|
-
var thirtyDaysAgo = new Date(currentDate.getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
7
|
-
var oneDayAhead = new Date(currentDate.getTime() + 24 * 60 * 60 * 1000);
|
|
8
|
-
var formattedThirtyDaysAgo = thirtyDaysAgo.toISOString();
|
|
9
|
-
var formattedOneDayAhead = oneDayAhead.toISOString();
|
|
10
|
-
return {
|
|
11
|
-
title: "",
|
|
12
|
-
width: layoutWidth,
|
|
13
|
-
height: 800,
|
|
14
|
-
xaxis: {
|
|
15
|
-
range: [formattedThirtyDaysAgo, formattedOneDayAhead],
|
|
16
|
-
domain: [0.1, 0.92],
|
|
17
|
-
rangeslider: { visible: true },
|
|
18
|
-
rangeselector: {
|
|
19
|
-
buttons: [
|
|
20
|
-
{
|
|
21
|
-
step: "month",
|
|
22
|
-
stepmode: "backward",
|
|
23
|
-
count: 1,
|
|
24
|
-
label: "1 mês",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
step: "month",
|
|
28
|
-
stepmode: "backward",
|
|
29
|
-
count: 6,
|
|
30
|
-
label: "6 meses",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
step: "year",
|
|
34
|
-
stepmode: "backward",
|
|
35
|
-
count: 1,
|
|
36
|
-
label: "1 ano",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
step: "all",
|
|
40
|
-
label: "all",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
yaxis2: {
|
|
46
|
-
title: "Valor Total de Negativações (R$)",
|
|
47
|
-
titlefont: { color: "#1f77b4" },
|
|
48
|
-
tickfont: { color: "#1f77b4" },
|
|
49
|
-
tickformat: ",.2f",
|
|
50
|
-
},
|
|
51
|
-
yaxis: {
|
|
52
|
-
title: "Quantidade de Ocorrências por Consulta",
|
|
53
|
-
titlefont: {
|
|
54
|
-
color: "#ff7f0e",
|
|
55
|
-
},
|
|
56
|
-
tickfont: {
|
|
57
|
-
color: "#ff7f0e",
|
|
58
|
-
},
|
|
59
|
-
anchor: "x",
|
|
60
|
-
side: "right",
|
|
61
|
-
overlaying: "y2",
|
|
62
|
-
},
|
|
63
|
-
paper_bgcolor: "rgba(0,0,0,0)",
|
|
64
|
-
plot_bgcolor: "rgba(0,0,0,0)",
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
exports.layoutLineBarChart = layoutLineBarChart;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseChartDataStrategy } from "./";
|
|
2
|
-
import { ChartDataAndLayoutState, DataInput } from "./types";
|
|
3
|
-
export declare class lineDividasPublicas extends BaseChartDataStrategy<DataInput> {
|
|
4
|
-
processData(data: DataInput): ChartDataAndLayoutState;
|
|
5
|
-
}
|
|
6
|
-
export declare class lineCCF extends BaseChartDataStrategy<DataInput> {
|
|
7
|
-
processData(data: DataInput): ChartDataAndLayoutState;
|
|
8
|
-
}
|
|
9
|
-
export declare class lineSerasa extends BaseChartDataStrategy<DataInput> {
|
|
10
|
-
processData(data: DataInput): ChartDataAndLayoutState;
|
|
11
|
-
}
|
|
12
|
-
export declare class lineBoaVista extends BaseChartDataStrategy<DataInput> {
|
|
13
|
-
processData(data: DataInput): ChartDataAndLayoutState;
|
|
14
|
-
}
|
|
15
|
-
export declare class lineProtestos extends BaseChartDataStrategy<DataInput> {
|
|
16
|
-
processData(data: DataInput): ChartDataAndLayoutState;
|
|
17
|
-
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.lineProtestos = exports.lineBoaVista = exports.lineSerasa = exports.lineCCF = exports.lineDividasPublicas = void 0;
|
|
19
|
-
var _1 = require("./");
|
|
20
|
-
var layout = {};
|
|
21
|
-
var lineDividasPublicas = /** @class */ (function (_super) {
|
|
22
|
-
__extends(lineDividasPublicas, _super);
|
|
23
|
-
function lineDividasPublicas() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
lineDividasPublicas.prototype.processData = function (data) {
|
|
27
|
-
var dividasPublicasData = data.dividasPublicasGrafico
|
|
28
|
-
.filter(function (consulta) { return consulta.quantidade !== null; })
|
|
29
|
-
.map(function (consulta) { return ({
|
|
30
|
-
x: consulta.data,
|
|
31
|
-
y: consulta.quantidade,
|
|
32
|
-
}); });
|
|
33
|
-
var color = "#ef4b6c";
|
|
34
|
-
var dividasPublicasState = {
|
|
35
|
-
name: "Dívidas Públicas",
|
|
36
|
-
yaxis: "y",
|
|
37
|
-
marker: {
|
|
38
|
-
color: color,
|
|
39
|
-
},
|
|
40
|
-
textfont: {
|
|
41
|
-
family: "sans serif",
|
|
42
|
-
size: 12,
|
|
43
|
-
color: color,
|
|
44
|
-
},
|
|
45
|
-
type: "scatter",
|
|
46
|
-
mode: "lines+markers+text",
|
|
47
|
-
data: dividasPublicasData,
|
|
48
|
-
connectgaps: true,
|
|
49
|
-
layout: layout,
|
|
50
|
-
};
|
|
51
|
-
return dividasPublicasState;
|
|
52
|
-
};
|
|
53
|
-
return lineDividasPublicas;
|
|
54
|
-
}(_1.BaseChartDataStrategy));
|
|
55
|
-
exports.lineDividasPublicas = lineDividasPublicas;
|
|
56
|
-
var lineCCF = /** @class */ (function (_super) {
|
|
57
|
-
__extends(lineCCF, _super);
|
|
58
|
-
function lineCCF() {
|
|
59
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
-
}
|
|
61
|
-
lineCCF.prototype.processData = function (data) {
|
|
62
|
-
var ccfData = data.ccfs
|
|
63
|
-
.filter(function (consulta) { return consulta.quantidade !== null; })
|
|
64
|
-
.map(function (consulta) { return ({
|
|
65
|
-
x: consulta.data,
|
|
66
|
-
y: consulta.quantidade,
|
|
67
|
-
}); });
|
|
68
|
-
var color = "#3f51b5";
|
|
69
|
-
var ccfState = {
|
|
70
|
-
name: "Cheques sem Fundos",
|
|
71
|
-
yaxis: "y",
|
|
72
|
-
marker: {
|
|
73
|
-
color: color,
|
|
74
|
-
},
|
|
75
|
-
textfont: {
|
|
76
|
-
family: "sans serif",
|
|
77
|
-
size: 12,
|
|
78
|
-
color: color,
|
|
79
|
-
},
|
|
80
|
-
type: "scatter",
|
|
81
|
-
mode: "lines+markers+text",
|
|
82
|
-
data: ccfData,
|
|
83
|
-
connectgaps: true,
|
|
84
|
-
layout: layout,
|
|
85
|
-
};
|
|
86
|
-
return ccfState;
|
|
87
|
-
};
|
|
88
|
-
return lineCCF;
|
|
89
|
-
}(_1.BaseChartDataStrategy));
|
|
90
|
-
exports.lineCCF = lineCCF;
|
|
91
|
-
var lineSerasa = /** @class */ (function (_super) {
|
|
92
|
-
__extends(lineSerasa, _super);
|
|
93
|
-
function lineSerasa() {
|
|
94
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
95
|
-
}
|
|
96
|
-
lineSerasa.prototype.processData = function (data) {
|
|
97
|
-
var serasaData = data.serasa
|
|
98
|
-
.filter(function (consulta) { return consulta.quantidade !== null; })
|
|
99
|
-
.map(function (consulta) { return ({
|
|
100
|
-
x: consulta.creation,
|
|
101
|
-
y: consulta.quantidade,
|
|
102
|
-
}); });
|
|
103
|
-
var serasaState = {
|
|
104
|
-
name: "Pefin/Refin Serasa",
|
|
105
|
-
yaxis: "y",
|
|
106
|
-
type: "scatter",
|
|
107
|
-
marker: {
|
|
108
|
-
color: "#ffc107",
|
|
109
|
-
},
|
|
110
|
-
textfont: {
|
|
111
|
-
family: "sans serif",
|
|
112
|
-
size: 12,
|
|
113
|
-
color: "#ffc107",
|
|
114
|
-
},
|
|
115
|
-
mode: "lines+markers+text",
|
|
116
|
-
data: serasaData,
|
|
117
|
-
connectgaps: true,
|
|
118
|
-
layout: layout,
|
|
119
|
-
};
|
|
120
|
-
return serasaState;
|
|
121
|
-
};
|
|
122
|
-
return lineSerasa;
|
|
123
|
-
}(_1.BaseChartDataStrategy));
|
|
124
|
-
exports.lineSerasa = lineSerasa;
|
|
125
|
-
var lineBoaVista = /** @class */ (function (_super) {
|
|
126
|
-
__extends(lineBoaVista, _super);
|
|
127
|
-
function lineBoaVista() {
|
|
128
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
129
|
-
}
|
|
130
|
-
lineBoaVista.prototype.processData = function (data) {
|
|
131
|
-
var boaVistaData = data.boaVista
|
|
132
|
-
.filter(function (consulta) { return consulta.quantidade !== null; })
|
|
133
|
-
.map(function (consulta) { return ({
|
|
134
|
-
x: consulta.creation,
|
|
135
|
-
y: consulta.quantidade,
|
|
136
|
-
}); });
|
|
137
|
-
var color = "#4caf50";
|
|
138
|
-
var boaVistaState = {
|
|
139
|
-
name: "Pefin/Refin Boa Vista",
|
|
140
|
-
yaxis: "y",
|
|
141
|
-
type: "scatter",
|
|
142
|
-
marker: {
|
|
143
|
-
color: color,
|
|
144
|
-
},
|
|
145
|
-
textfont: {
|
|
146
|
-
family: "sans serif",
|
|
147
|
-
size: 12,
|
|
148
|
-
color: color,
|
|
149
|
-
},
|
|
150
|
-
mode: "lines+markers+text",
|
|
151
|
-
data: boaVistaData,
|
|
152
|
-
connectgaps: true,
|
|
153
|
-
layout: layout,
|
|
154
|
-
};
|
|
155
|
-
return boaVistaState;
|
|
156
|
-
};
|
|
157
|
-
return lineBoaVista;
|
|
158
|
-
}(_1.BaseChartDataStrategy));
|
|
159
|
-
exports.lineBoaVista = lineBoaVista;
|
|
160
|
-
var lineProtestos = /** @class */ (function (_super) {
|
|
161
|
-
__extends(lineProtestos, _super);
|
|
162
|
-
function lineProtestos() {
|
|
163
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
164
|
-
}
|
|
165
|
-
lineProtestos.prototype.processData = function (data) {
|
|
166
|
-
var protestosData = data.protestos
|
|
167
|
-
.filter(function (consulta) { return consulta.quantidade !== null; })
|
|
168
|
-
.map(function (consulta) { return ({
|
|
169
|
-
x: consulta.data,
|
|
170
|
-
y: consulta.quantidade,
|
|
171
|
-
}); });
|
|
172
|
-
var protestosState = {
|
|
173
|
-
name: "Protestos",
|
|
174
|
-
yaxis: "y",
|
|
175
|
-
marker: {
|
|
176
|
-
color: "red",
|
|
177
|
-
line: {
|
|
178
|
-
color: "rgb(255, 255, 255)",
|
|
179
|
-
width: 1,
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
textfont: {
|
|
183
|
-
bgcolor: "#fffff",
|
|
184
|
-
family: "sans serif",
|
|
185
|
-
size: 12,
|
|
186
|
-
color: "red",
|
|
187
|
-
},
|
|
188
|
-
type: "scatter",
|
|
189
|
-
mode: "lines+markers+text",
|
|
190
|
-
data: protestosData,
|
|
191
|
-
connectgaps: true,
|
|
192
|
-
layout: layout,
|
|
193
|
-
};
|
|
194
|
-
return protestosState;
|
|
195
|
-
};
|
|
196
|
-
return lineProtestos;
|
|
197
|
-
}(_1.BaseChartDataStrategy));
|
|
198
|
-
exports.lineProtestos = lineProtestos;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PieChartDataStrategy = void 0;
|
|
15
|
-
var underscore_1 = require("underscore");
|
|
16
|
-
var PieChartDataStrategy = /** @class */ (function () {
|
|
17
|
-
function PieChartDataStrategy() {
|
|
18
|
-
}
|
|
19
|
-
PieChartDataStrategy.prototype.processData = function (data) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f;
|
|
21
|
-
var totalDeProtestos = (_a = (0, underscore_1.last)(data.protestos)) === null || _a === void 0 ? void 0 : _a.quantidade;
|
|
22
|
-
var chequesDevolvidos = (_b = (0, underscore_1.last)(data.ccfs)) === null || _b === void 0 ? void 0 : _b.quantidade;
|
|
23
|
-
var totalDePefinRefinSerasa = (_c = (0, underscore_1.last)(data.serasa)) === null || _c === void 0 ? void 0 : _c.quantidade;
|
|
24
|
-
var totalDePefinRefinBoaVista = (_d = (0, underscore_1.last)(data.boaVista)) === null || _d === void 0 ? void 0 : _d.quantidade;
|
|
25
|
-
var totalDeDividasPublicas = (_e = (0, underscore_1.last)(data.dividasPublicasGrafico)) === null || _e === void 0 ? void 0 : _e.quantidade;
|
|
26
|
-
var pieChartLayout = {
|
|
27
|
-
autosize: true,
|
|
28
|
-
};
|
|
29
|
-
return {
|
|
30
|
-
name: "Quantidade de Ocorrências",
|
|
31
|
-
yaxis: "",
|
|
32
|
-
type: "pie",
|
|
33
|
-
data: (_f = [
|
|
34
|
-
{ x: "Protestos", y: totalDeProtestos },
|
|
35
|
-
{ x: "Cheques Devolvidos", y: chequesDevolvidos },
|
|
36
|
-
{ x: "Pefin/Refin Serasa", y: totalDePefinRefinSerasa },
|
|
37
|
-
{ x: "Pefin/Refin Boa Vista", y: totalDePefinRefinBoaVista },
|
|
38
|
-
{ x: "Divídas Públicas", y: totalDeDividasPublicas }
|
|
39
|
-
]) === null || _f === void 0 ? void 0 : _f.map(function (query) { return (__assign(__assign({}, query), { y: query.y || 0 })); }),
|
|
40
|
-
layout: pieChartLayout,
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
return PieChartDataStrategy;
|
|
44
|
-
}());
|
|
45
|
-
exports.PieChartDataStrategy = PieChartDataStrategy;
|