2020-10-29 12:46:10 +01:00
|
|
|
<div class="main-content dataset-profile-listing">
|
2019-06-05 16:07:36 +02:00
|
|
|
<div class="container-fluid">
|
|
|
|
|
2021-02-03 10:06:40 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-auto">
|
|
|
|
<h3>{{titlePrefix}} {{'DATASET-PROFILE-LISTING.TITLE' | translate}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg d-flex justify-content-lg-end">
|
|
|
|
<div class="align-self-center">
|
|
|
|
<button mat-raised-button class="import-btn" (click)="openDialog()">{{ 'DATASET-WIZARD.UPLOAD.UPLOAD-XML' | translate }}</button>
|
2023-07-25 14:04:39 +02:00
|
|
|
<button mat-raised-button class="create-btn ml-md-3" [routerLink]="['./new']">{{'DATASET-PROFILE-LISTING.ACTIONS.CREATE-DESCRIPTION-TEMPLATE' | translate}}</button>
|
2021-02-03 10:06:40 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 mt-5">
|
|
|
|
<app-dataset-profile-criteria-component></app-dataset-profile-criteria-component>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mat-elevation-z6">
|
|
|
|
|
|
|
|
<!-- <mat-card class="row mat-card"> -->
|
2021-11-30 11:21:03 +01:00
|
|
|
<mat-table [dataSource]="dataSource" matSort (matSortChange)="refresh()" matSortActive="created" matSortDirection="desc">
|
2019-06-05 16:07:36 +02:00
|
|
|
|
|
|
|
<!-- Column Definition: Name -->
|
|
|
|
<ng-container cdkColumnDef="label">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header="label">
|
|
|
|
{{'DATASET-PROFILE-LISTING.COLUMNS.NAME' | translate}}</mat-header-cell>
|
|
|
|
<mat-cell *matCellDef="let row">{{row.label}}</mat-cell>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<!-- Column Definition: Description -->
|
|
|
|
<ng-container cdkColumnDef="description">
|
|
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-PROFILE-LISTING.COLUMNS.DESCRIPTION' | translate}}
|
|
|
|
</mat-header-cell>
|
2021-10-12 17:14:22 +02:00
|
|
|
<mat-cell *matCellDef="let row"><span [innerHTML]="row.description"></span></mat-cell>
|
2019-06-05 16:07:36 +02:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<!-- Column Definition: Created -->
|
|
|
|
<ng-container cdkColumnDef="created">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header="created">{{'DATASET-PROFILE-LISTING.COLUMNS.CREATED' |
|
|
|
|
translate}}</mat-header-cell>
|
2022-02-28 17:08:38 +01:00
|
|
|
<mat-cell *matCellDef="let row">{{row.created | date:'short'}}</mat-cell>
|
2019-06-05 16:07:36 +02:00
|
|
|
</ng-container>
|
|
|
|
|
2020-05-08 17:27:16 +02:00
|
|
|
<!-- Column Definition: Status -->
|
|
|
|
<ng-container cdkColumnDef="status">
|
|
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header="status">{{'DATASET-PROFILE-LISTING.COLUMNS.STATUS' |
|
|
|
|
translate}}</mat-header-cell>
|
2021-02-03 10:06:40 +01:00
|
|
|
<mat-cell *matCellDef="let row"> <div [ngClass]="['status-chip',getStatusClass(row.status)]">{{ (row.status | parseStatus) | translate}}</div></mat-cell>
|
2020-05-08 17:27:16 +02:00
|
|
|
</ng-container>
|
|
|
|
|
2019-06-05 16:07:36 +02:00
|
|
|
<!-- Column Definition: Submission Time -->
|
|
|
|
<ng-container cdkColumnDef="actions">
|
2021-02-03 10:06:40 +01:00
|
|
|
<mat-header-cell *matHeaderCellDef><!-- {{'DATASET-PROFILE-LISTING.COLUMNS.ACTIONS' | translate}} -->
|
2019-06-05 16:07:36 +02:00
|
|
|
</mat-header-cell>
|
|
|
|
<mat-cell *matCellDef="let row" (click)="$event.stopPropagation()">
|
|
|
|
<mat-menu #actionsMenu="matMenu">
|
|
|
|
<button mat-menu-item (click)="newVersion(row.id, row.label)">
|
|
|
|
<mat-icon>queue</mat-icon>{{'DATASET-PROFILE-LISTING.ACTIONS.NEW-VERSION' | translate}}
|
|
|
|
</button>
|
2023-04-09 12:21:08 +02:00
|
|
|
<button mat-menu-item (click)="newVersionFromFile(row.id, row.label)">
|
|
|
|
<mat-icon>file_copy</mat-icon>{{'DATASET-PROFILE-LISTING.ACTIONS.NEW-VERSION-FROM-FILE' | translate}}
|
|
|
|
</button>
|
2019-06-05 16:07:36 +02:00
|
|
|
<button mat-menu-item (click)="clone(row.id)">
|
|
|
|
<mat-icon>filter_none</mat-icon>{{'DATASET-PROFILE-LISTING.ACTIONS.CLONE' | translate}}
|
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="viewVersions(row.groupId, row.label)">
|
|
|
|
<mat-icon>library_books</mat-icon>
|
|
|
|
{{'DATASET-PROFILE-LISTING.ACTIONS.VIEW-VERSIONS' | translate}}
|
|
|
|
</button>
|
2021-03-30 10:36:09 +02:00
|
|
|
<button mat-menu-item (click)="downloadXML(row.id)" *ngIf="row.status === datasetStatusEnum.Finalized">
|
|
|
|
<mat-icon>download</mat-icon>
|
2023-10-20 17:01:09 +02:00
|
|
|
{{'DMP-BLUEPRINT-EDITOR.ACTIONS.DOWNLOAD-XML' | translate}}
|
2021-03-30 10:36:09 +02:00
|
|
|
</button>
|
2021-03-29 17:42:55 +02:00
|
|
|
<button mat-menu-item (click)="deleteTemplate(row.id)">
|
|
|
|
<mat-icon>delete</mat-icon>
|
|
|
|
{{'DATASET-PROFILE-LISTING.ACTIONS.DELETE' | translate}}
|
|
|
|
</button>
|
2019-06-05 16:07:36 +02:00
|
|
|
<!--<button *ngIf="row.status==1" mat-menu-item (click)="makeItPublic(row.id)"><mat-icon>people_outline</mat-icon>{{'DATASET-LISTING.ACTIONS.MAKE-IT-PUBLIC' | translate}}</button> -->
|
|
|
|
</mat-menu>
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="actionsMenu">
|
2021-02-03 10:06:40 +01:00
|
|
|
<mat-icon>more_horiz</mat-icon>
|
2019-03-26 15:30:33 +01:00
|
|
|
</button>
|
2019-06-05 16:07:36 +02:00
|
|
|
</mat-cell>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
|
|
<mat-row *matRowDef="let row; columns: displayedColumns" (click)="rowClick(row.id);"></mat-row>
|
|
|
|
<!-- (click)="rowClick(row.id)" -->
|
|
|
|
|
|
|
|
</mat-table>
|
2021-02-03 10:06:40 +01:00
|
|
|
|
2019-06-05 16:07:36 +02:00
|
|
|
<mat-paginator #paginator [length]="dataSource?.totalCount" [pageSizeOptions]="[10, 25, 100]">
|
|
|
|
</mat-paginator>
|
2021-02-03 10:06:40 +01:00
|
|
|
<!-- </mat-card> -->
|
2019-06-05 16:07:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-16 13:11:15 +02:00
|
|
|
</div>
|