Skip to main content

Paginated Transactions table

Component: <pcp-paginated-amounts-table>

Preview:

Preview

Description

This component wraps the <pcp-credit-card-accordion-list> component, providing a paginated view of the cards linked to the invoice. It allows users to filter transactions by card and year/month, and emits events for selected rows and accordion expansion.


Usage

import { PcpPaginatedAmountsTableComponent } from '@celerofinancas/pcp-client-ui';
<pcp-paginated-amounts-table 
[filters]="{card: 1, yearMonth: 202501}"
[totalValue]="0"
(selectedRowsValue)="selectedRowsValue($event)"
(expandAllCardsAccordion)="expandAllCardsAccordion($event)"
/>

Component Inputs and Outputs

Inputs

NameTypeDefaultDescriptionRequired
totalValuenumber0The sum of all transactions, the value of the current invoiceYES
filters{card: 1, yearMonth: 202501} The transactions filters to request the table dataYES

Outputs

NameTypeDescription
selectedRowsValueEventEmitter<number>Emits the sum of the values of the currently selected rows
expandAllCardsAccordionEventEmitter<boolean>Emits a boolean indicating whether to expand or collapse all cards in the accordion

Dependencies

  • @celerofinancas/class-utils
  • @celerofinancas/design-system
  • @celerofinancas/ui-common
  • @celerofinancas/ui-pipes

Notes