-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Case file view 1.1 - Based from master (#1425)
* EUI-7812 EUI-7819 Case file view upload timestamp display and sort * EUI-7812 EUI-7819 Case file view upload timestamp display and sort * Merge from master * Merge from master * Update after merge from master * Merge from master * Merge from master * Merge from master * Merge from master * Add feature toggle (#1595) * Remove mock data code from CaseFileViewService --------- Co-authored-by: David Rajkumar Jayakumar <[email protected]>
- Loading branch information
1 parent
8759d21
commit 14bc451
Showing
29 changed files
with
809 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 21 additions & 7 deletions
28
.../case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
import { Component, EventEmitter, Output } from '@angular/core'; | ||
import { Component, EventEmitter, OnInit, Output } from '@angular/core'; | ||
import { AbstractAppConfig } from '../../../../../../../app.config'; | ||
import { CaseFileViewSortColumns } from '../../../../../../domain/case-file-view/case-file-view-sort-columns.enum'; | ||
import { CaseFileViewOverlayMenuItem } from '../../shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model'; | ||
|
||
@Component({ | ||
selector: 'ccd-case-file-view-folder-sort', | ||
templateUrl: './case-file-view-folder-sort.component.html', | ||
styleUrls: ['./case-file-view-folder-sort.component.scss'] | ||
}) | ||
export class CaseFileViewFolderSortComponent { | ||
export class CaseFileViewFolderSortComponent implements OnInit { | ||
public isOpen = false; | ||
|
||
@Output() public sortAscending = new EventEmitter<void>(); | ||
@Output() public sortDescending = new EventEmitter<void>(); | ||
@Output() public sortAscending = new EventEmitter<number>(); | ||
@Output() public sortDescending = new EventEmitter<number>(); | ||
|
||
public overlayMenuItems: CaseFileViewOverlayMenuItem[] = [ | ||
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() }, | ||
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() }, | ||
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }, | ||
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }, | ||
]; | ||
constructor() { } | ||
|
||
constructor(private readonly appConfig: AbstractAppConfig) { } | ||
|
||
public ngOnInit(): void { | ||
if (this.appConfig.getEnableCaseFileViewVersion1_1()) { | ||
this.overlayMenuItems = [ | ||
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }, | ||
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) }, | ||
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) }, | ||
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) }, | ||
]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.