2019-11-19 04:13:08 +00:00
|
|
|
<div fxLayout="column" class="rightDrawer-filebox">
|
|
|
|
<div class="rightDrawer-tab">
|
2019-12-05 08:42:13 +00:00
|
|
|
<mat-tab-group
|
|
|
|
mat-stretch-tabs
|
|
|
|
animationDuration="0ms"
|
|
|
|
(selectedIndexChange)="onSelectedIndexChange($event)"
|
|
|
|
>
|
2019-11-12 08:10:11 +00:00
|
|
|
<mat-tab label="Receive"></mat-tab>
|
|
|
|
<mat-tab label="Send"></mat-tab>
|
|
|
|
</mat-tab-group>
|
|
|
|
</div>
|
2019-11-19 04:13:08 +00:00
|
|
|
<div fxFlex="1 1 200px" class="select-filebox bg-accent-brightest">
|
2019-11-21 06:35:06 +00:00
|
|
|
<ng-container *ngIf="!selectedFile">
|
2019-11-20 08:31:08 +00:00
|
|
|
<div class="empty-msg">
|
2019-11-21 06:35:06 +00:00
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="36"
|
|
|
|
height="36"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M13 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9l-7-7z"
|
|
|
|
/>
|
|
|
|
<path d="M13 3v6h6" />
|
|
|
|
</svg>
|
|
|
|
<span>Select File.</span>
|
2019-11-20 08:31:08 +00:00
|
|
|
</div>
|
2019-11-12 05:08:14 +00:00
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="selectedFile">
|
2019-11-19 04:13:08 +00:00
|
|
|
<div class="select-flie">
|
|
|
|
<div
|
|
|
|
[ngClass]="[
|
|
|
|
'mime-icon',
|
|
|
|
'light',
|
|
|
|
'ico-' + getExtention(selectedFile.info.name)
|
|
|
|
]"
|
|
|
|
>
|
|
|
|
<div class="ico"></div>
|
|
|
|
</div>
|
|
|
|
<ul>
|
2019-11-21 06:35:06 +00:00
|
|
|
<li class="name">{{ selectedFile.info.name }}</li>
|
2019-12-03 05:32:50 +00:00
|
|
|
<li>
|
|
|
|
<span class="text-accent-color">size :</span>
|
|
|
|
{{ selectedFile.info.size | ucapBytes }}
|
|
|
|
</li>
|
2019-11-19 04:13:08 +00:00
|
|
|
<li>
|
2019-11-22 06:49:39 +00:00
|
|
|
<span class="text-accent-color">date :</span>
|
2019-11-19 04:13:08 +00:00
|
|
|
{{ selectedFile.info.sendDate | dateToStringFormat: 'YYYY.MM.DD' }}
|
2019-12-06 04:35:31 +00:00
|
|
|
<span *ngIf="loginRes.fileRetentionPeriod > 0">
|
|
|
|
~
|
|
|
|
{{
|
|
|
|
selectedFile.info.sendDate
|
|
|
|
| dateDistanceToDay: loginRes.fileRetentionPeriod
|
|
|
|
| dateToStringFormat: 'YYYY.MM.DD'
|
|
|
|
}}
|
|
|
|
</span>
|
2019-11-19 04:13:08 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-11-20 08:31:08 +00:00
|
|
|
<div class="select-file-option">
|
2019-12-06 04:35:31 +00:00
|
|
|
<span
|
|
|
|
matTooltip="다운로드"
|
|
|
|
class="text-accent-darkest"
|
|
|
|
(click)="onClickDownload(selectedFile)"
|
|
|
|
>
|
|
|
|
<mat-progress-spinner
|
|
|
|
*ngIf="selectedFile.fileDownloadItem.downloadingProgress$ | async"
|
|
|
|
mode="determinate"
|
|
|
|
diameter="30"
|
|
|
|
strokeWidth="2"
|
|
|
|
[value]="selectedFile.fileDownloadItem.downloadingProgress$ | async"
|
|
|
|
style="position: absolute;"
|
|
|
|
></mat-progress-spinner>
|
2019-11-21 06:35:06 +00:00
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="20"
|
|
|
|
height="20"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
<span matTooltip="나에게전달" class="text-accent-darkest">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="20"
|
|
|
|
height="20"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M5.52 19c.64-2.2 1.84-3 3.22-3h6.52c1.38 0 2.58.8 3.22 3"
|
|
|
|
/>
|
|
|
|
<circle cx="12" cy="10" r="3" />
|
|
|
|
<circle cx="12" cy="12" r="10" />
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
<span matTooltip="파일전달" class="text-accent-darkest">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="20"
|
|
|
|
height="20"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<g fill="none" fill-rule="evenodd">
|
|
|
|
<path
|
|
|
|
d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"
|
|
|
|
/>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
<span matTooltip="파일삭제" class="text-accent-darkest">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="20"
|
|
|
|
height="20"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path d="M20 11.08V8l-6-6H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h6" />
|
|
|
|
<path d="M14 3v5h5M15.88 20.12l4.24-4.24M15.88 15.88l4.24 4.24" />
|
|
|
|
</svg>
|
|
|
|
</span>
|
2019-11-12 05:08:14 +00:00
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
2019-11-19 04:13:08 +00:00
|
|
|
<div fxFlex="0 0 auto" class="table-box">
|
2019-11-21 07:43:47 +00:00
|
|
|
<perfect-scrollbar class="album-scrollbar">
|
|
|
|
<table mat-table [dataSource]="dataSource" matSort>
|
|
|
|
<ng-container matColumnDef="check">
|
|
|
|
<th mat-header-cell *matHeaderCellDef>
|
|
|
|
<mat-checkbox
|
|
|
|
#checkboxAll
|
|
|
|
[checked]="getCheckAllUser()"
|
|
|
|
(change)="onCheckAllkUser(checkboxAll.checked)"
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
>
|
|
|
|
</mat-checkbox>
|
|
|
|
</th>
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
<mat-checkbox
|
|
|
|
#checkbox
|
|
|
|
[checked]="getCheckUser(element)"
|
|
|
|
(change)="onCheckUser(checkbox.checked, element)"
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
>
|
|
|
|
</mat-checkbox>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="name">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header class="infos">
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<td mat-cell *matCellDef="let element" class="file-info">
|
|
|
|
<div class="file-name">
|
|
|
|
{{ element.info.name }}
|
|
|
|
</div>
|
|
|
|
<div class="download-period text-accent-color">
|
|
|
|
<!--{{ element.info.size | ucapBytes }}-->
|
2019-12-06 04:35:31 +00:00
|
|
|
{{ element.info.sendDate | dateToStringFormat: 'YYYY.MM.DD' }}
|
|
|
|
<span *ngIf="loginRes.fileRetentionPeriod > 0">
|
|
|
|
~
|
|
|
|
{{
|
|
|
|
element.info.sendDate
|
|
|
|
| dateDistanceToDay: loginRes.fileRetentionPeriod
|
|
|
|
| dateToStringFormat: 'YYYY.MM.DD'
|
|
|
|
}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
*ngIf="element.fileDownloadItem.downloadingProgress$ | async"
|
|
|
|
class="progress"
|
|
|
|
>
|
|
|
|
<mat-progress-bar
|
|
|
|
mode="determinate"
|
|
|
|
[value]="element.fileDownloadItem.downloadingProgress$ | async"
|
|
|
|
></mat-progress-bar>
|
2019-11-21 07:43:47 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="sendDate" class="date">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>sendDate</th>
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
<!--{{ element.info.sendDate | dateToStringFormat: 'YYYY.MM.DD' }}-->
|
|
|
|
{{ element.info.size | ucapBytes }}
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
2019-12-03 05:32:50 +00:00
|
|
|
<tr
|
|
|
|
mat-header-row
|
|
|
|
*matHeaderRowDef="displayedColumns; sticky: true"
|
|
|
|
></tr>
|
2019-11-21 07:43:47 +00:00
|
|
|
<tr
|
|
|
|
mat-row
|
|
|
|
*matRowDef="let row; columns: displayedColumns"
|
|
|
|
(click)="onClickRow(row)"
|
|
|
|
></tr>
|
|
|
|
</table>
|
2019-12-03 05:32:50 +00:00
|
|
|
</perfect-scrollbar>
|
2019-11-19 04:13:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="footer-fix">
|
2019-11-12 05:08:14 +00:00
|
|
|
<mat-paginator
|
|
|
|
[pageSize]="10"
|
|
|
|
[pageSizeOptions]="[5, 10, 20]"
|
|
|
|
showFirstLastButtons
|
|
|
|
></mat-paginator>
|
2019-11-19 04:13:08 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
fxFlex="1 1 50px"
|
|
|
|
fxLayout="row"
|
|
|
|
fxLayoutAlign="center center"
|
|
|
|
class="btn-box"
|
2019-11-12 05:08:14 +00:00
|
|
|
>
|
2019-11-19 04:13:08 +00:00
|
|
|
<button
|
|
|
|
mat-flat-button
|
|
|
|
[disabled]="selectedFileList.length > 0 ? 'false' : 'true'"
|
|
|
|
class="mat-primary"
|
2019-12-06 04:35:31 +00:00
|
|
|
(click)="onClickDownloadAll()"
|
2019-11-19 04:13:08 +00:00
|
|
|
>
|
|
|
|
Download All
|
|
|
|
</button>
|
2019-12-04 07:37:19 +00:00
|
|
|
<button
|
|
|
|
mat-flat-button
|
|
|
|
class="mat-primary"
|
|
|
|
(click)="onClickOpenDownloadFolder()"
|
|
|
|
>
|
2019-11-19 04:13:08 +00:00
|
|
|
Open Folder
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-11-21 06:35:06 +00:00
|
|
|
</div>
|
2019-11-12 05:08:14 +00:00
|
|
|
</div>
|