1.3.22 • Published 5 years ago

tauro-components v1.3.22

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Tauro Components

This is an Angular library composed of several useful components developed by the team of developers of 3Tecnos Tecnologia.

Three components are available: DataTable, Dialog Confirmation, Dialog Warning, Date Period, Year-Month and UF Selection.

Installation

Run npm install tauro-components --save

Usage

DataTable

Datatable component is based on Angular Material Table and easily configurable. Various features such as expanded row and table export have been made available for: PDF, EXCEL, CSV, XML and PRINT. It was also included pipes to the columns.

Example:

<ta-datatable *ngIf="values.length > 0"
        [apiUrl]="apiUrl"
        [showPaginator]="true"
        [showSearch]="true"
        [showExportButtons]="true"
        emptyDataMessage="Não houve movimentações no período"
        [showCheckbox]="false"
        [disabledToolTipIcons]="true"
        (selectedRows)="selectChange($event)">
        <ta-datacolumns>
            <ta-datacolumn dataPropertyName="NmOrgao" headerText="Órgão"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="NmCargo" headerText="Cargo"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="NmFavorecido" headerText="Favorecido"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="DtSaida" headerText="Saída" pipe="date"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="DtChegada" headerText="Chegada" pipe="date"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="NmDestino" headerText="Destino"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="QtDiaria" headerText="Quantidade"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="VlDiaria" headerText="Diária" pipe="currency"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="VlTotal" headerText="Total" pipe="currency"></ta-datacolumn>
            <ta-datacolumn dataPropertyName="DtPagamento" headerText="Pagamento" pipe="date"></ta-datacolumn>
        </ta-datacolumns>
        <ta-dataexpanded headerText="Histórico" dataPropertyName="DsMotivo" [expanded]="true" [enableExpandedDetail]="true">
        </ta-dataexpanded>
    </ta-datatable>

alt text

Parameters

ta-datatable
InputTypeDefaultDescription
apiUrlstring-Path of the WebAPI method to get the data that will be displayed in the table
showPaginatorbooleanfalseDisplays the table pager
showSearchbooleanfalseDisplays the search field
showExportButtonsbooleanfalseDisplays export buttons
showCheckboxbooleanfalseDisplays the checkboxes, allowing you to select the rows
disabledToolTipIconsbooleanfalseDisables the ToolTip of export buttons
emptyDataMessagestringNão há dados a serem exibidosSets the message to be displayed when there is no data
(selectedRows)Array<any>-Event that returns selected rows
(changeValues)Array<any>-Event that returns all data. Triggered whenever there is a change in the displayed data
ta-datacolumn
InputTypeDefaultDescription
headerTextstring-Text that will be displayed in the column header
dataPropertyNamestring-Property name of the object to be displayed
disabledSortbooleanfalseDisables sorting
widthstring-Sets column widtht
alignstring-Sets column alignment
pipestring-Sets the pipe that will be used in the column, with the following options: currency and date
ta-dataexpanded
InputTypeDefaultDescription
headerTextstring-Text that will be displayed in the expanded row header
dataPropertyNamestring-Property name of the object to be displayed
lineHeightstring-Sets the height of table rows
enableExpandedDetailbooleanfalseEnables expanded line
expandedbooleanfalseAll expanded lines will be displayed
widthstring-Sets row widtht
alignstring-Sets row alignment
pipestring-Sets the pipe that will be used in the expanded row, with the following options: currency and date
ta-datacolumnexpanded
InputTypeDefaultDescription
headerTextstring-Text that will be displayed in the column header of the expanded table
dataPropertyNamestring-Property name of the object to be displayed
widthstring-Sets row widtht
pipestring-Sets the pipe that will be used in the expanded table, with the following options: currency and date

DatePeriod

Component based on the Datepicker of the Angular Material, which provides the start and end date of a given period.

Example:

<ta-date-period widthBetweenDates="10px" (dtStart)="changeDtInicio($event)" (dtEnd)="changeDtFim($event)" ></ta-date-period>

Parameters

InputTypeDefaultDescription
placeholderStartstringData InícioSet the placeholder of DateStart
placeholderEndstringData FimSet the placeholder of DateEnd
disabledbooleanfalseDisable dates
widthBetweenDatesstring30pxSets the width between the dates
(dtStart)string-Event that returns the start date
(dtEnd)string-Event that returns the end date

Year-Month

Component based on the Datepicker of the Angular Material, which provides only the month and year of a date.

Example:

<ta-year-month (value)="changeAnoMes($event)"></ta-year-month>

Parameters

InputTypeDefaultDescription
placeholderstringMês e AnoSet the placeholder
(value)any-Event that returns the selected month and year
1.3.22

5 years ago

1.3.21

5 years ago

1.3.20

5 years ago

1.3.19

6 years ago

1.3.18

6 years ago

1.3.17

6 years ago

1.3.16

6 years ago

1.3.15

6 years ago

1.3.14

6 years ago

1.3.13

6 years ago

1.3.12

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago