Dossier overview base listing
This commit is contained in:
parent
a5d28f9ae2
commit
a58fac3ec6
@ -36,61 +36,13 @@
|
|||||||
|
|
||||||
<div class="red-content-inner">
|
<div class="red-content-inner">
|
||||||
<div [class.extended]="collapsedDetails" class="content-container">
|
<div [class.extended]="collapsedDetails" class="content-container">
|
||||||
<div class="header-item">
|
<redaction-table-header
|
||||||
<iqser-round-checkbox
|
[bulkActions]="bulkActions"
|
||||||
(click)="toggleSelectAll()"
|
[selectionEnabled]="true"
|
||||||
[active]="screenStateService.areAllEntitiesSelected$ | async"
|
[tableColConfigs]="tableColConfigs"
|
||||||
[indeterminate]="screenStateService.notAllEntitiesSelected$ | async"
|
[tableHeaderLabel]="tableHeaderLabel"
|
||||||
></iqser-round-checkbox>
|
>
|
||||||
|
</redaction-table-header>
|
||||||
<span class="all-caps-label">
|
|
||||||
{{ 'dossier-overview.table-header.title' | translate: { length: (screenStateService.displayedLength$ | async) || 0 } }}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<redaction-dossier-overview-bulk-actions (reload)="bulkActionPerformed()"></redaction-dossier-overview-bulk-actions>
|
|
||||||
|
|
||||||
<redaction-quick-filters></redaction-quick-filters>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div [class.no-data]="screenStateService.noData$ | async" class="table-header" redactionSyncWidth="table-item">
|
|
||||||
<!-- Table column names-->
|
|
||||||
<div class="select-oval-placeholder"></div>
|
|
||||||
|
|
||||||
<redaction-table-col-name
|
|
||||||
[label]="'dossier-overview.table-col-names.name' | translate"
|
|
||||||
[withSort]="true"
|
|
||||||
column="filename"
|
|
||||||
></redaction-table-col-name>
|
|
||||||
|
|
||||||
<redaction-table-col-name
|
|
||||||
[label]="'dossier-overview.table-col-names.added-on' | translate"
|
|
||||||
[withSort]="true"
|
|
||||||
column="added"
|
|
||||||
></redaction-table-col-name>
|
|
||||||
|
|
||||||
<redaction-table-col-name [label]="'dossier-overview.table-col-names.needs-work' | translate"></redaction-table-col-name>
|
|
||||||
|
|
||||||
<redaction-table-col-name
|
|
||||||
[label]="'dossier-overview.table-col-names.assigned-to' | translate"
|
|
||||||
[withSort]="true"
|
|
||||||
class="user-column"
|
|
||||||
column="reviewerName"
|
|
||||||
></redaction-table-col-name>
|
|
||||||
|
|
||||||
<redaction-table-col-name
|
|
||||||
[label]="'dossier-overview.table-col-names.pages' | translate"
|
|
||||||
[withSort]="true"
|
|
||||||
column="pages"
|
|
||||||
></redaction-table-col-name>
|
|
||||||
|
|
||||||
<redaction-table-col-name
|
|
||||||
[label]="'dossier-overview.table-col-names.status' | translate"
|
|
||||||
[withSort]="true"
|
|
||||||
class="flex-end"
|
|
||||||
column="statusSort"
|
|
||||||
></redaction-table-col-name>
|
|
||||||
<div class="scrollbar-placeholder"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<redaction-empty-state
|
<redaction-empty-state
|
||||||
(action)="fileInput.click()"
|
(action)="fileInput.click()"
|
||||||
@ -236,3 +188,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<input #fileInput (change)="uploadFiles($event.target['files'])" class="file-upload-input" multiple="true" type="file" />
|
<input #fileInput (change)="uploadFiles($event.target['files'])" class="file-upload-input" multiple="true" type="file" />
|
||||||
|
|
||||||
|
<ng-template #bulkActions>
|
||||||
|
<redaction-dossier-overview-bulk-actions (reload)="bulkActionPerformed()"></redaction-dossier-overview-bulk-actions>
|
||||||
|
</ng-template>
|
||||||
|
|||||||
@ -36,6 +36,7 @@ import { workloadTranslations } from '../../translations/workload-translations';
|
|||||||
import { fileStatusTranslations } from '../../translations/file-status-translations';
|
import { fileStatusTranslations } from '../../translations/file-status-translations';
|
||||||
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
||||||
import { CircleButtonTypes } from '@iqser/common-ui';
|
import { CircleButtonTypes } from '@iqser/common-ui';
|
||||||
|
import { TableColConfig } from '@shared/components/table-col-name/table-col-name.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './dossier-overview-screen.component.html',
|
templateUrl: './dossier-overview-screen.component.html',
|
||||||
@ -54,10 +55,41 @@ export class DossierOverviewScreenComponent
|
|||||||
collapsedDetails = false;
|
collapsedDetails = false;
|
||||||
actionConfigs: ActionConfig[];
|
actionConfigs: ActionConfig[];
|
||||||
dossierAttributes: DossierAttributeWithValue[] = [];
|
dossierAttributes: DossierAttributeWithValue[] = [];
|
||||||
|
tableColConfigs: TableColConfig[] = [
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.name'),
|
||||||
|
withSort: true,
|
||||||
|
column: 'filename'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.added-on'),
|
||||||
|
withSort: true,
|
||||||
|
column: 'added'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.needs-work')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.assigned-to'),
|
||||||
|
withSort: true,
|
||||||
|
class: 'user-column',
|
||||||
|
column: 'reviewerName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.pages'),
|
||||||
|
withSort: true,
|
||||||
|
column: 'pages'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.status'),
|
||||||
|
withSort: true,
|
||||||
|
class: 'flex-end',
|
||||||
|
column: 'statusSort'
|
||||||
|
}
|
||||||
|
];
|
||||||
@ViewChild(DossierDetailsComponent, { static: false })
|
@ViewChild(DossierDetailsComponent, { static: false })
|
||||||
private readonly _dossierDetailsComponent: DossierDetailsComponent;
|
private readonly _dossierDetailsComponent: DossierDetailsComponent;
|
||||||
private _lastScrollPosition: number;
|
private _lastScrollPosition: number;
|
||||||
|
|
||||||
@ViewChild('needsWorkTemplate', { read: TemplateRef, static: true })
|
@ViewChild('needsWorkTemplate', { read: TemplateRef, static: true })
|
||||||
private readonly _needsWorkTemplate: TemplateRef<any>;
|
private readonly _needsWorkTemplate: TemplateRef<any>;
|
||||||
@ViewChild('fileInput') private _fileInput: ElementRef;
|
@ViewChild('fileInput') private _fileInput: ElementRef;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user