2023-10-23 10:58:15 +02:00
|
|
|
<div class="row dmp-blueprint-listing">
|
2023-10-20 17:01:09 +02:00
|
|
|
<div class="col-md-8 offset-md-2">
|
|
|
|
|
|
|
|
<div class="row mb-4 mt-3">
|
|
|
|
<div class="col">
|
|
|
|
<h4>{{'DMP-BLUEPRINT-LISTING.TITLE' | translate}}</h4>
|
|
|
|
<app-navigation-breadcrumb />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-auto">
|
2023-10-25 17:15:41 +02:00
|
|
|
<button mat-raised-button class="import-btn" (click)="import()">
|
|
|
|
<span class="button-text">
|
|
|
|
{{'DMP-BLUEPRINT-LISTING.IMPORT.UPLOAD-XML' | translate}}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-auto">
|
2024-01-15 17:47:34 +01:00
|
|
|
<button mat-raised-button class="create-btn" *ngIf="authService.hasPermission(authService.permissionEnum.EditDescriptionTemplateType)" [routerLink]="['/dmp-blueprints/new']">
|
2023-10-20 17:01:09 +02:00
|
|
|
<mat-icon>add</mat-icon>
|
2023-10-23 10:27:03 +02:00
|
|
|
{{'DMP-BLUEPRINT-LISTING.CREATE-DMP-BLUEPRINT' | translate}}
|
2023-10-20 17:01:09 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-02-07 16:13:13 +01:00
|
|
|
<app-hybrid-listing [rows]="gridRows" [columns]="gridColumns" [visibleColumns]="visibleColumns" [count]="totalElements" [offset]="currentPageNumber" [limit]="lookup.page.size" [defaultSort]="lookup.order?.items" [externalSorting]="true" (rowActivated)="onRowActivated($event, '/dmp-blueprints')" (pageLoad)="alterPage($event)" (columnSort)="onColumnSort($event)" (columnsChanged)="onColumnsChanged($event)" [listItemTemplate]="listItemTemplate">
|
2023-10-20 17:01:09 +02:00
|
|
|
|
2023-10-25 17:15:41 +02:00
|
|
|
<app-dmp-blueprint-listing-filters hybrid-listing-filters [(filter)]="lookup" (filterChange)="filterChanged($event)" />
|
2023-10-20 17:01:09 +02:00
|
|
|
|
2023-10-25 17:15:41 +02:00
|
|
|
<app-user-settings-picker [key]="userSettingsKey" [userPreference]="lookup" (onSettingSelected)="changeSetting($event)" [autoSelectUserSettings]="autoSelectUserSettings" user-preference-settings />
|
2023-10-23 10:58:15 +02:00
|
|
|
<!-- <button mat-icon-button download-listing-report>
|
2023-10-20 17:01:09 +02:00
|
|
|
<mat-icon>download</mat-icon>
|
2023-10-23 10:58:15 +02:00
|
|
|
</button> -->
|
2023-10-20 17:01:09 +02:00
|
|
|
</app-hybrid-listing>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #listItemTemplate let-item="item" let-isColumnSelected="isColumnSelected">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex align-items-center p-3 gap-1-rem">
|
|
|
|
<div class="row">
|
|
|
|
<ng-container *ngIf="isColumnSelected('label')">
|
2023-10-25 17:15:41 +02:00
|
|
|
<a class="buttonLinkClass" [routerLink]="'./' + item?.id" class="col-12" (click)="$event.stopPropagation()">{{item?.label | nullifyValue}}</a>
|
2023-10-20 17:01:09 +02:00
|
|
|
<br />
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container *ngIf="isColumnSelected('status')">
|
|
|
|
<div class="col-auto">
|
2023-10-25 17:15:41 +02:00
|
|
|
<div class="status-chip" [ngClass]="{'status-chip-finalized': item.status === dmpBlueprintStatuses.Finalized, 'status-chip-draft' : item.status === dmpBlueprintStatuses.Draft}">
|
2023-10-30 14:30:46 +01:00
|
|
|
{{enumUtils.toDmpBlueprintStatusString(item.status) | nullifyValue}}
|
2023-10-20 17:01:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container *ngIf="isColumnSelected('createdAt')">
|
|
|
|
<span class="col-12">
|
|
|
|
{{'DMP-BLUEPRINT-LISTING.FIELDS.CREATED-AT' | translate}}:
|
|
|
|
<small>
|
|
|
|
{{item?.createdAt | dateTimeFormatter : 'short' | nullifyValue}}
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="isColumnSelected('updatedAt')">
|
|
|
|
<span class="col-12">
|
|
|
|
{{'DMP-BLUEPRINT-LISTING.FIELDS.UPDATED-AT' | translate}}:
|
|
|
|
<small>
|
|
|
|
{{item?.updatedAt | dateTimeFormatter : 'short' | nullifyValue}}
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
2023-10-23 10:58:15 +02:00
|
|
|
<ng-template #dmpBlueprintStatus let-row="row" let-item>
|
2023-10-20 17:01:09 +02:00
|
|
|
<div class="row">
|
2023-10-25 17:15:41 +02:00
|
|
|
<div class="col-auto status-chip" [ngClass]="{'status-chip-finalized': row.status === dmpBlueprintStatuses.Finalized, 'status-chip-draft' : row.status === dmpBlueprintStatuses.Draft}">
|
2023-10-30 14:30:46 +01:00
|
|
|
{{enumUtils.toDmpBlueprintStatusString(row.status) | nullifyValue}}
|
2023-10-20 17:01:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template #actions let-row="row" let-item>
|
|
|
|
<div class="row" (click)="$event.stopPropagation()">
|
|
|
|
<div class="col-auto">
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="actionsMenu">
|
|
|
|
<mat-icon>more_horiz</mat-icon>
|
|
|
|
</button>
|
|
|
|
<mat-menu #actionsMenu="matMenu">
|
2024-02-07 16:59:11 +01:00
|
|
|
<button mat-menu-item [routerLink]="['/dmp-blueprints/', row.id]">
|
2023-10-20 17:01:09 +02:00
|
|
|
<mat-icon>edit</mat-icon>{{'DMP-BLUEPRINT-LISTING.ACTIONS.EDIT' | translate}}
|
|
|
|
</button>
|
2024-02-07 16:59:11 +01:00
|
|
|
<button mat-menu-item [routerLink]="['/dmp-blueprints/new-version' , row.id]">
|
2024-02-06 19:41:57 +01:00
|
|
|
<mat-icon>queue</mat-icon>{{'DMP-BLUEPRINT-LISTING.ACTIONS.NEW-VERSION' | translate}}
|
|
|
|
</button>
|
2024-02-07 16:59:11 +01:00
|
|
|
<button mat-menu-item [routerLink]="['/dmp-blueprints/clone' , row.id]">
|
2023-10-23 10:58:15 +02:00
|
|
|
<mat-icon>content_copy</mat-icon>{{'DMP-BLUEPRINT-LISTING.ACTIONS.CLONE' | translate}}
|
2023-10-23 10:27:03 +02:00
|
|
|
</button>
|
2024-02-07 16:59:11 +01:00
|
|
|
<button mat-menu-item [routerLink]="['/dmp-blueprints/versions' , row.groupId]">
|
2024-02-07 16:13:13 +01:00
|
|
|
<mat-icon>library_books</mat-icon>
|
|
|
|
{{'DMP-BLUEPRINT-LISTING.ACTIONS.VIEW-VERSIONS' | translate}}
|
|
|
|
</button>
|
2024-02-07 16:59:11 +01:00
|
|
|
<button mat-menu-item (click)="export(row.id)" [routerLink]="['/dmp-blueprints/', row.id]">
|
2023-10-23 10:58:15 +02:00
|
|
|
<mat-icon>download</mat-icon>{{'DMP-BLUEPRINT-LISTING.ACTIONS.DOWNLOAD-XML' | translate}}
|
2023-10-23 10:27:03 +02:00
|
|
|
</button>
|
2023-10-23 10:58:15 +02:00
|
|
|
<button mat-menu-item (click)="delete(row.id)">
|
2023-10-20 17:01:09 +02:00
|
|
|
<mat-icon>delete</mat-icon>
|
|
|
|
{{'DMP-BLUEPRINT-LISTING.ACTIONS.DELETE' | translate}}
|
|
|
|
</button>
|
|
|
|
<!--<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-23 10:58:15 +02:00
|
|
|
</ng-template>
|