[ADF-1300] Download as Zip feature and dialog (#2174)

* Download API demo

- download single selected file
- download multiple selected files as ZIP
- download one or multiple selected folders as ZIP
- download all mixed content as ZIP (file + folder)

* download dialog (first cut)

* code cleanup
This commit is contained in:
Denys Vuika
2017-08-04 14:55:15 +01:00
committed by Mario Romano
parent abe5ed5a67
commit 0f239a1fa3
5 changed files with 249 additions and 13 deletions

View File

@@ -27,9 +27,17 @@
[folderNode]="documentList.folderNode">
</adf-dropdown-breadcrumb>
</adf-toolbar-title>
<button md-icon-button (click)="onCreateFolderClicked($event)">
<button md-icon-button
(click)="onCreateFolderClicked($event)">
<md-icon>create_new_folder</md-icon>
</button>
<button md-icon-button
[disabled]="!hasSelection(documentList.selection)"
title="Download"
(click)="downloadNodes(documentList.selection)">
<md-icon>get_app</md-icon>
</button>
<button md-icon-button
adf-node-permission="delete"
[adf-nodes]="documentList.selection">
@@ -145,12 +153,6 @@
handler="delete">
</content-action>
<!-- document actions -->
<content-action
icon="file_download"
target="document"
title="{{'DOCUMENT_LIST.ACTIONS.DOCUMENT.DOWNLOAD' | translate}}"
handler="download">
</content-action>
<content-action
icon="content_copy"
target="document"