[MNT-24128] in ADW/ADF, when downloading a ZIP from a selection of files and folders, display a progress bar (#9957)

This commit is contained in:
jacekpluta
2024-07-30 14:56:03 +02:00
committed by GitHub
parent 33b669cf1c
commit 9cb01e2085
9 changed files with 93 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
/*!
* @license
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const FileDownloadStatus = {
PENDING: 'PENDING',
CANCELLED: 'CANCELLED',
IN_PROGRESS: 'IN_PROGRESS',
DONE: 'DONE',
MAX_CONTENT_SIZE_EXCEEDED: 'MAX_CONTENT_SIZE_EXCEEDED'
} as const;
export type DownloadStatus = keyof typeof FileDownloadStatus;

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
import { DownloadStatus } from './download-status';
export interface Download {
/**
* number of files added so far in the zip
@@ -39,5 +41,5 @@ export interface Download {
/**
* the current status of the download node creation
*/
status?: 'PENDING' | 'CANCELLED' | 'IN_PROGRESS' | 'DONE' | 'MAX_CONTENT_SIZE_EXCEEDED' | string;
status?: DownloadStatus;
}

View File

@@ -68,6 +68,7 @@ export * from './deletedNodesPagingList';
export * from './directAccessUrl';
export * from './directAccessUrlEntry';
export * from './download';
export * from './download-status';
export * from './downloadBodyCreate';
export * from './downloadEntry';
export * from './errorError';
@@ -162,10 +163,10 @@ export * from './siteMember';
export * from './siteMemberEntry';
export * from './siteMemberPaging';
export * from './siteMemberPagingList';
export * from './siteGroup';
export * from './siteGroupEntry';
export * from './siteGroupPaging';
export * from './siteGroupPagingList';
export * from './siteGroup';
export * from './siteGroupEntry';
export * from './siteGroupPaging';
export * from './siteGroupPagingList';
export * from './siteMembershipApprovalBody';
export * from './siteMembershipBodyCreate';
export * from './siteMembershipBodyUpdate';