<mat-card class="card-normal mat-elevation-z8 animated fadeIn fast ">
    <mat-grid-list cols="12" rowHeight="75px" class="card-grid-list">
        <mat-grid-tile colspan="12">
            <mat-card-title>Prueba de avance</mat-card-title>
        </mat-grid-tile>
        <app-translation (click)="updatePaginator()"></app-translation>
        <mat-grid-tile colspan="8">
            <mat-form-field appearance="legacy" class="searcher">
                <mat-label>{{ 'buscador' | translate }}</mat-label>
                <input matInput placeholder="{{ 'buscador.placeholder' | translate}}" (keyup)="applyFilter($event)" />
                <mat-icon matSuffix>search</mat-icon>
            </mat-form-field>
        </mat-grid-tile>

        <!--         <mat-grid-tile colspan="2">
            <mat-form-field appearance="legacy">
                <mat-label>Solicitudes por estado</mat-label>
                <mat-select [(value)]="selectedOpcion" (selectionChange)="filterData($event.value)">
                    <mat-option *ngFor="let state of statusData" [value]="state.state">
                        {{ state.textState }}</mat-option>
                </mat-select>
            </mat-form-field>
        </mat-grid-tile>
    </mat-grid-list> -->

        <!--     <p *ngIf="selectedOpcion == 1" class="centre display-text text-secondary">Filtros de búsqueda</p>
    <div class="filters mb-5" *ngIf="selectedOpcion == 1">
        <div class="flex-item">
            <mat-form-field hintLabel="{{ 'workflow.historial.notificaciones.busqueda.fecha' | translate }}"
                appearance="legacy">
                <mat-label>Fecha de creación</mat-label>
                <input [(ngModel)]='filterCreatedDate' matInput [min]="minDate" [max]="maxDate"
                    [matDatepicker]="date_created">
                <mat-datepicker-toggle matSuffix [for]="date_created"></mat-datepicker-toggle>
                <mat-datepicker #date_created></mat-datepicker>
            </mat-form-field>
        </div>

        <div class="flex-item">
            <mat-form-field hintLabel="{{ 'workflow.historial.notificaciones.busqueda.fecha' | translate }}"
                appearance="legacy">
                <mat-label>Fecha de validación</mat-label>
                <input [(ngModel)]='filterValidatedDate' matInput [min]="minDate" [max]="maxDate"
                    [matDatepicker]="date_validated">
                <mat-datepicker-toggle matSuffix [for]="date_validated"></mat-datepicker-toggle>
                <mat-datepicker #date_validated></mat-datepicker>
            </mat-form-field>
        </div>

        <div class="flex-item">
            <mat-form-field hintLabel="{{ 'workflow.modulos.form' | translate }}" appearance="legacy">
                <mat-label>{{ 'workflow.modulos.form.placeholder' | translate }}</mat-label>
                <mat-select [(ngModel)]='filterModule'>
                    <mat-option *ngFor="let item of modules; let i = index" [value]="item.name">
                        {{ item.name }}
                    </mat-option>
                </mat-select>
                <mat-icon matSuffix>view_module</mat-icon>
            </mat-form-field>
        </div>

        <div class="flex-item">
            <button class="mr-1" mat-mini-fab matTooltip="Aplicar filtros" (click)="filter()">
                <mat-icon>filter_list</mat-icon>
            </button>
            <button mat-mini-fab matTooltip="Quitar filtros" (click)="clearFilter()">
                <mat-icon>delete</mat-icon>
            </button>
        </div>
    </div> -->
    </mat-grid-list>

    <div *ngIf="data_empty " class="data-empty">
        {{ 'datos.vacios' | translate }}
    </div>

    <table mat-table [dataSource]="dataSource" class="animated fadeIn" *ngIf="dataSource.data.length != 0">
        <ng-container matColumnDef="name">
            <th mat-header-cell *matHeaderCellDef>
                Workflow
            </th>
            <td mat-cell *matCellDef="let element">
                {{ element.tarea }}
            </td>
        </ng-container>

        <ng-container matColumnDef="module">
            <th mat-header-cell *matHeaderCellDef>Modulo</th>
            <td mat-cell *matCellDef="let element">
                {{ element.status }}
            </td>
        </ng-container>

        <ng-container matColumnDef="created_at">
            <th mat-header-cell *matHeaderCellDef>Fecha de la solicitud</th>
            <td mat-cell *matCellDef="let element">
                {{ element.workflow }}
            </td>
        </ng-container>

        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
        <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
    </table>

    <mat-paginator [pageSizeOptions]="[10, 20, 50]" showFirstLastButtons aria-label="Seleccione">
    </mat-paginator>
</mat-card>