Skip to main content

Bulk Create Upload

This section describes the BfmTransferBulkCreateUploadComponent component.

Usage

You need to import it in your module and use it in your template.

import { BfmTransferBulkCreateUploadComponent } from '@celerofinancas/ui-charges';

@Component({
standalone: true,
selector: 'bulk-create-upload',
imports: [BfmTransferBulkCreateUploadComponent],
templateUrl: './bulk-create-upload.component.html',
})
export class TransferBulkCreateUploadComponent {}

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

bulk-create-upload.component.html
<bfm-bulk-transfer-upload
[bulkStep]="bulkStep"
[companyPk]="companyPk"
[sendFileLabel]="sendFileLabel"
[showExampleFile]="showExampleFile"
[uploadLabel]="uploadLabel"
[validMimeTypes]="validMimeTypes"
(currentStep)="handleCurrentStep($event)"
/>

Inputs

The BfmTransferBulkCreateUploadComponent component has the following inputs:

bulkStep

Bulk step

TypeDefault
number2

companyPk

Company PK

TypeDefault
string''

sendFileLabel

Send file label

TypeDefault
string'Enviar arquivo'

showExampleFile

Whether to show example file

TypeDefault
booleantrue

uploadLabel

Upload label

TypeDefault
string'Arraste pra cá ou clique para escolher o seu arquivo!'

validMimeTypes

Valid mime types

TypeDefault
Array<string>['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']

Events

The BfmTransferBulkCreateUploadComponent component has the following events:

currentStep

Current step update

Type
EventEmitter<number>