import { Utils } from '@alfresco/aca-testing-shared' ; export const random = Utils . random ( ) ; const consumerContextMenu = [ 'Share' , 'Download' , 'View' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerFavContextMenu = [ 'Share' , 'Download' , 'View' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerSharedContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerSharedFavContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerToolbarPrimary = [ 'Share' , 'Download' , 'View' , 'View Details' , 'More Actions' ] ; const consumerSharedToolbarPrimary = [ 'Shared Link Settings' , 'Download' , 'View' , 'View Details' , 'More Actions' ] ; const searchConsumerToolbarPrimary = [ 'Share' , 'Download' , 'View' , 'View Details' , 'More Actions' ] ; const searchConsumerSharedToolbarPrimary = [ 'Shared Link Settings' , 'Download' , 'View' , 'View Details' , 'More Actions' ] ; const consumerToolbarMore = [ 'Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerFavToolbarMore = [ 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerViewerSharedToolbarPrimary = [ 'Activate full-screen mode' , 'Shared Link Settings' , 'Download' , 'Print' , 'View Details' , 'More Actions' ] ; const consumerViewerToolbarPrimary = [ 'Activate full-screen mode' , 'Share' , 'Download' , 'Print' , 'View Details' , 'More Actions' ] ; const consumerViewerFavToolbarMore = [ 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const consumerViewerToolbarMore = [ 'Favorite' , 'Copy' , 'Manage Versions' ] ; const favoritesConsumerToolbarMore = [ 'Upload New Version' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' , 'Manage Versions' ] ; const favoritesConsumerContextMenu = [ 'Share' , 'Download' , 'View' , 'Upload New Version' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' , 'Manage Versions' ] ; const favoritesConsumerSharedContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Upload New Version' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' , 'Manage Versions' ] ; const sharedConsumerToolbarMore = [ 'Upload New Version' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerLockedToolbarMore = [ 'Cancel Editing' , 'Upload New Version' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerFavToolbarMore = [ 'Upload New Version' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerFavLockedToolbarMore = [ 'Cancel Editing' , 'Upload New Version' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Upload New Version' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerLockedContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Cancel Editing' , 'Upload New Version' , 'Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerFavContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Upload New Version' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; const sharedConsumerFavLockedContextMenu = [ 'Shared Link Settings' , 'Download' , 'View' , 'Cancel Editing' , 'Upload New Version' , 'Remove Favorite' , 'Copy' , 'Manage Versions' ] ; export const fileDocx = { name : `file-${ random }-docx.docx` , description : 'file not shared, not fav, office, not locked' , contextMenu : consumerContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const fileDocxFav = { name : `file-${ random }-docx-fav.docx` , description : 'file not shared, fav, office, not locked' , contextMenu : consumerFavContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerContextMenu , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const file = { name : `file-${ random }.txt` , description : 'file not shared, not fav, not office, not locked' , contextMenu : consumerContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const fileFav = { name : `file-${ random }-fav.txt` , description : 'file not shared, fav, not office, not locked' , contextMenu : consumerFavContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerContextMenu , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const fileDocxShared = { name : `file-${ random }-docx-shared.docx` , description : 'file shared, not fav, office, not locked' , contextMenu : consumerSharedContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , sharedToolbarMore : sharedConsumerToolbarMore , sharedContextMenu : sharedConsumerContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileDocxSharedFav = { name : `file-${ random }-docx-shared-fav.docx` , description : 'file shared, fav, office, not locked' , contextMenu : consumerSharedFavContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerSharedContextMenu , sharedToolbarMore : sharedConsumerFavToolbarMore , sharedContextMenu : sharedConsumerFavContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileShared = { name : `file-${ random }-shared.txt` , description : 'file shared, not fav, not office, not locked' , contextMenu : consumerSharedContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , sharedToolbarMore : sharedConsumerToolbarMore , sharedContextMenu : sharedConsumerContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileSharedFav = { name : `file-${ random }-shared-fav.txt` , description : 'file shared, fav, not office, not locked' , contextMenu : consumerSharedFavContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerSharedContextMenu , sharedToolbarMore : sharedConsumerFavToolbarMore , sharedContextMenu : sharedConsumerFavContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileLocked = { name : `file-${ random }-locked.txt` , description : 'file not shared, not fav, not office, locked' , contextMenu : consumerContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const fileFavLocked = { name : `file-${ random }-fav-locked.txt` , description : 'file not shared, fav, not office, locked' , contextMenu : consumerFavContextMenu , toolbarPrimary : consumerToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerContextMenu , searchToolbarPrimary : searchConsumerToolbarPrimary } ; export const fileSharedLocked = { name : `file-${ random }-shared-locked.txt` , description : 'file shared, not fav, not office, locked' , contextMenu : consumerSharedContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerToolbarMore , sharedToolbarMore : sharedConsumerLockedToolbarMore , sharedContextMenu : sharedConsumerLockedContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileSharedFavLocked = { name : `file-${ random }-shared-fav-locked.txt` , description : 'file shared, fav, not office, locked' , contextMenu : consumerSharedFavContextMenu , toolbarPrimary : consumerSharedToolbarPrimary , toolbarMore : consumerFavToolbarMore , viewerToolbarPrimary : consumerViewerSharedToolbarPrimary , viewerToolbarMore : consumerViewerFavToolbarMore , favoritesToolbarMore : favoritesConsumerToolbarMore , favoritesContextMenu : favoritesConsumerSharedContextMenu , sharedToolbarMore : sharedConsumerFavLockedToolbarMore , sharedContextMenu : sharedConsumerFavLockedContextMenu , searchToolbarPrimary : searchConsumerSharedToolbarPrimary } ; export const fileGranularPermission = `file-${ random }-granular.txt` ; export const fileLockedByUser = `file-${ random }-my-locked.txt` ; const consumerFolderContextMenu = [ 'Download' , 'Favorite' , 'Copy' ] ; const consumerFolderToolbarPrimary = [ 'Download' , 'View Details' , 'More Actions' ] ; const consumerFolderToolbarMore = [ 'Favorite' , 'Copy' ] ; const searchConsumerFolderToolbarPrimary = [ 'Download' , 'View Details' , 'More Actions' ] ; const consumerFolderFavContextMenu = [ 'Download' , 'Remove Favorite' , 'Copy' ] ; const consumerFolderFavToolbarMore = [ 'Remove Favorite' , 'Copy' ] ; const favoritesConsumerFolderContextMenu = [ 'Download' , 'Edit' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' ] ; const favoritesConsumerFolderToolbarMore = [ 'Edit' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' ] ; export const folder = { name : `folder-${ random }` , description : 'folder not favorite' , contextMenu : consumerFolderContextMenu , toolbarPrimary : consumerFolderToolbarPrimary , toolbarMore : consumerFolderToolbarMore , searchToolbarPrimary : searchConsumerFolderToolbarPrimary } ; export const folderFav = { name : `folder-fav-${ random }` , description : 'folder favorite' , contextMenu : consumerFolderFavContextMenu , toolbarPrimary : consumerFolderToolbarPrimary , toolbarMore : consumerFolderFavToolbarMore , favoritesContextMenu : favoritesConsumerFolderContextMenu , favoritesToolbarMore : favoritesConsumerFolderToolbarMore , searchToolbarPrimary : searchConsumerFolderToolbarPrimary } ; export const folderFav2 = { name : `folder-fav-2-${ random }` , description : 'folder 2 favorite' } ; const multipleSelContextMenu = [ 'Download' , 'Favorite' , 'Copy' ] ; const multipleSelAllFavContextMenu = [ 'Download' , 'Remove Favorite' , 'Copy' ] ; const multipleSelToolbarPrimary = [ 'Download' , 'View Details' , 'More Actions' ] ; const multipleSelToolbarMore = [ 'Favorite' , 'Copy' ] ; const multipleSelAllFavToolbarMore = [ 'Remove Favorite' , 'Copy' ] ; const searchMultipleSelToolbarPrimary = [ 'Download' , 'View Details' , 'More Actions' ] ; const favoritesMultipleSelContextMenu = [ 'Download' , 'Favorite' , 'Move' , 'Copy' , 'Delete' ] ; const favoritesMultipleSelToolbarMore = [ 'Favorite' , 'Move' , 'Copy' , 'Delete' ] ; const favoritesMultipleSelAllFavContextMenu = [ 'Download' , 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' ] ; const favoritesMultipleSelAllFavToolbarMore = [ 'Remove Favorite' , 'Move' , 'Copy' , 'Delete' ] ; export const multipleSel = { contextMenu : multipleSelContextMenu , toolbarPrimary : multipleSelToolbarPrimary , toolbarMore : multipleSelToolbarMore , favoritesContextMenu : favoritesMultipleSelContextMenu , favoritesToolbarMore : favoritesMultipleSelToolbarMore , searchToolbarPrimary : searchMultipleSelToolbarPrimary } ; export const multipleSelAllFav = { contextMenu : multipleSelAllFavContextMenu , toolbarPrimary : multipleSelToolbarPrimary , toolbarMore : multipleSelAllFavToolbarMore , favoritesContextMenu : favoritesMultipleSelAllFavContextMenu , favoritesToolbarMore : favoritesMultipleSelAllFavToolbarMore , searchToolbarPrimary : searchMultipleSelToolbarPrimary } ;