Skip to main content

Monthly

This section describes the BfmMonthlyComponent component.

Composition

The BfmMonthlyComponent is composed of the following components:

Usage

If you need more customization, you need to import it in your module and use it in your template.

monthly-analysis.component.ts
import { BfmMonthlyComponent } from '@celerofinancas/ui-reports';

@Component({
standalone: true,
selector: 'bfm-monthly',
imports: [BfmMonthlyComponent],
templateUrl: './monthly-analysis.component.html',
})
export class MonthlyAnalysisComponent {}

Then, in your template, you can use the component like this:

monthly-analysis.component.html
<bfm-monthly 
[chartAccountsTabLabel]="'Plano de contas'"
[customIndicatorsTabLabel]="'Indicadores personalizados'"
[monthlyAnalysisLabel]="'Análise mensal'"
[resultsTabLabel]="'Resultados'"
/>

Inputs

The BfmMonthlyComponent component has the following inputs:

chartAccountsTabLabel

Chart Of Accounts Tab Text Label

TypeDefault
string'Plano de contas'

customIndicatorsTabLabel

Custom Indicators Tab Text Label

TypeDefault
string''

monthlyAnalysisLabel

Monthly Analysis Tab Text Label

TypeDefault
string''

resultsTabLabel

Results Tab Text Label

TypeDefault
string''

Events

The BfmMonthlyComponent component has no events.

TOKEN RESULTS_MONTHLY_CONFIG

To customize the BfmMonthlyComponent, you can inject the RESULTS_MONTHLY_CONFIG token in your module.

This token is used to provide custom values to the component. If is not provided, the default values will be used.

Properties

KeyDescriptionDefault
tabsWrapperPositionPosition of the tabs wrapper.'right'
monthlyAnalysisLabelLabel for the monthly analysis.'Análise mensal'
resultsTabLabelLabel for the results tab.'Resultados'
chartAccountsTabLabelLabel for the chart of accounts tab.'Plano de contas'
customIndicatorsTabLabelLabel for the custom indicators tab.'Indicadores personalizados'
resultTabsOrderOrder of the result tabs.[DFM_TABS.chartOfAccounts, DFM_TABS.results, DFM_TABS.custom]
defaultSelectedTabDefault selected tab.DFM_TABS.chartOfAccounts
useQueryParamsWhether to use query parameters for the selected tab and filterstrue
showToggleZeroValuesAndNoTransitoryAccountsIndicates whether to display a toggle option that allows users to show or hide accounts with zero values and non-transitory accounts in the monthly results report. When set to true, the toggle is visible, enabling users to filter the displayed accounts accordinglytrue
transitoryAccountsTooltipTooltip text for the transitory accounts toggle'Ao selecionar, as movimentações transitórias como transferências entre contas, transações internas, resgates e aplicações automáticas e estornos de pagamentos e recebimentos, serão exibidas ou ocultadas no relatório conforme o estado do filtro.'
previusTextHideZeroValuesText displayed before the "hide zero values" toggle label'Esconder'
textHideZeroValuesText for the "hide zero values" toggle label'zerados'
previusTextTransitoryAccountsText displayed before the "transitory accounts" toggle label'Esconder'
textTransitoryAccountsText for the "transitory accounts" toggle label'movimentações transitórias'

The RESULTS_MONTHLY_CONFIG default values are:

{
"tabsWrapperPosition": "right",
"monthlyAnalysisLabel": "Análise mensal",
"resultsTabLabel": "Resultados",
"chartAccountsTabLabel": "Plano de contas",
"customIndicatorsTabLabel": "Indicadores personalizados",
"resultTabsOrder": [DFM_TABS.chartOfAccounts, DFM_TABS.results, DFM_TABS.custom],
"defaultSelectedTab": DFM_TABS.chartOfAccounts,
"useQueryParams": true,
"showToggleZeroValuesAndNoTransitoryAccounts": true,
"transitoryAccountsTooltip": "Ao selecionar, as movimentações transitórias como transferências entre contas, transações internas, resgates e aplicações automáticas e estornos de pagamentos e recebimentos, serão exibidas ou ocultadas no relatório conforme o estado do filtro.",
"previusTextHideZeroValues": "Esconder",
"textHideZeroValues": "zerados",
"previusTextTransitoryAccounts": "Esconder",
"textTransitoryAccounts": "movimentações transitórias",
}

Example

To customize the BfmMonthlyComponent, you can inject the RESULTS_MONTHLY_CONFIG token in your module.

app.config.ts
import { ApplicationConfig } from '@angular/core';
import { RESULTS_MONTHLY_CONFIG } from '@celerofinancas/ui-reports';

export const appConfig: ApplicationConfig = {
providers: [
{
provide: RESULTS_MONTHLY_CONFIG,
useValue: {
tabsWrapperPosition: 'left',
monthlyAnalysisLabel: 'Análise mensal personalizada',
resultsTabLabel: 'Resultados personalizados',
chartAccountsTabLabel: 'Plano de contas personalizado',
customIndicatorsTabLabel: 'Indicadores personalizados personalizados',
resultTabsOrder: [DFM_TABS.results, DFM_TABS.chartOfAccounts, DFM_TABS.custom],
defaultSelectedTab: DFM_TABS.results,
useQueryParams: false,
showToggleZeroValuesAndNoTransitoryAccounts: false,
transitoryAccountsTooltip: 'Seu tooltip customizado aqui!'
previusTextHideZeroValues: 'Esconder',
textHideZeroValues: 'zerados',
previusTextTransitoryAccounts: 'Esconder',
textTransitoryAccounts: 'movimentações transitórias',
},
},
],
};