diff --git a/e2e/protractor.excludes.json b/e2e/protractor.excludes.json index 130fa94da..4ab50a0a3 100644 --- a/e2e/protractor.excludes.json +++ b/e2e/protractor.excludes.json @@ -2,7 +2,6 @@ "C306956": "https://alfresco.atlassian.net/browse/ACA-4196", "C286314": "https://alfresco.atlassian.net/browse/ACA-2176", "C325049": "https://alfresco.atlassian.net/browse/ACA-4219", - "C269102": "https://alfresco.atlassian.net/browse/ACA-4264", "C286326": "https://alfresco.atlassian.net/browse/ACA-4253", "C286656": "https://alfresco.atlassian.net/browse/ACA-4253", "C286689": "https://alfresco.atlassian.net/browse/ACA-4253", diff --git a/e2e/resources/extensibility-configs/context-submenus-ext.json b/e2e/resources/extensibility-configs/context-submenus-ext.json index 2e1d39423..369719fe7 100644 --- a/e2e/resources/extensibility-configs/context-submenus-ext.json +++ b/e2e/resources/extensibility-configs/context-submenus-ext.json @@ -1,59 +1,16 @@ { "$schema": "../../extension.schema.json", - "$name": "app", + "$id": "app.core", + "$name": "app.core", "$version": "1.0.0", - "$references": [ - "plugin1.json", - "dev.tools.json", - "app.header.json", - "app.create.json", - "metadata-plugin.json" - ], + "$vendor": "Alfresco Software, Ltd.", + "$license": "LGPL-3.0", + "$runtime": "1.7.0", + "$description": "Core application extensions and features", + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -61,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -75,92 +29,68 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } + { "type": "rule", "value": "app.selection.library" }, + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], + "icons": [ + { + "id": "adf:join_library", + "value": "./assets/images/join-library.svg" + }, + { + "id": "adf:move_file", + "value": "./assets/images/adf-move-file-24px.svg" + } + ], "create": [ { "id": "app.create.uploadFile", @@ -218,6 +148,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -233,12 +196,27 @@ "route": "personal-files" }, { - "id": "app.navbar.libraries", + "id": "app.navbar.libraries.menu", "order": 200, - "icon": "group_work", + "icon": "library_books", "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" + "children": [ + { + "id": "app.navbar.libraries.favorite", + "order": 100, + "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" + } + ] } ] }, @@ -285,15 +263,40 @@ ], "toolbar": [ { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", + "id": "app.toolbar.searchFilter", + "order": 50, + "title": "APP.BROWSE.SEARCH.TOGGLE_SEARCH_FILTER", + "icon": "view_list", "actions": { - "click": "VIEW_FILE" + "click": "TOGGLE_SEARCH_FILTER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "app.navigation.isSearchResults" + } + }, + { + "id": "app.toolbar.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.toolbar.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" } }, { @@ -305,19 +308,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.canDownload" } }, { @@ -329,7 +320,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -341,16 +332,51 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { - "id": "app.toolbar.info", + "id": "app.toolbar.joinLibrary", + "type": "custom", + "order": 600, + "component": "app.toolbar.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.toolbar.leaveLibrary", + "order": 650, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 680 + }, + { + "id": "app.toolbar.info.infoDrawer", "type": "custom", "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.libraries.toolbar.infoDrawer", + "type": "custom", + "order": 800, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -360,19 +386,62 @@ "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ + { + "id": "app.toolbar.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 100, + "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" + } + }, + { + "id": "app.libraries.toolbar.toggleFavorite", + "type": "custom", + "order": 401, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" } }, { "id": "app.toolbar.favorite.add", - "order": 200, + "order": 402, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -384,8 +453,8 @@ }, { "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", + "order": 403, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -395,22 +464,15 @@ } }, { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.create.separator.1", + "type": "separator", + "order": 500 }, { "id": "app.toolbar.move", - "order": 500, + "order": 600, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -419,15 +481,15 @@ } }, { - "id": "app.toolbar.share", - "type": "custom", - "order": 600, - "data": { - "iconButton": true + "id": "app.toolbar.copy", + "order": 700, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" }, - "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.selection.file.canShare" + "visible": "canCopyNode" } }, { @@ -442,9 +504,38 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 900 + }, + { + "id": "app.toolbar.versions", + "order": 1100, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.toolbar.permissions", + "order": 1200, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, { "id": "app.toolbar.deleteLibrary", - "order": 900, + "order": 100, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -453,30 +544,6 @@ "rules": { "visible": "app.selection.library" } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } } ] } @@ -489,7 +556,7 @@ "title": "Test Menu1", "icon": "more_vert", "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "canCopyNode" }, "children": [ { @@ -501,7 +568,7 @@ "click": "COPY_NODES" }, "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "canCopyNode" } }, { @@ -513,7 +580,7 @@ "click": "COPY_NODES" }, "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "canCopyNode" } }, { @@ -525,7 +592,7 @@ }, "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.selection.file.canShare" + "visible": "canToggleSharedLink" } } ] @@ -554,59 +621,85 @@ } ] }, - + { + "id": "app.context.menu.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": false + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, { "id": "app.context.menu.download", - "order": 100, + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" } }, { "id": "app.context.menu.editFolder", - "order": 300, + "order": 600, "title": "APP.ACTIONS.EDIT", "icon": "create", "actions": { "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "canEditFolder" } }, { - "id": "app.context.menu.share", - "type": "custom", - "order": 400, - "data": { - "iconButton": false + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" }, - "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.selection.file.canShare" + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 500, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -617,8 +710,8 @@ }, { "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -631,29 +724,32 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 501, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, + "id": "app.context.menu.libraries.toggleFavorite", + "type": "custom", + "order": 803, + "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "app.selection.library" } }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 900 + }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", + "order": 1000, + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -661,10 +757,22 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, { "id": "app.context.menu.delete", "title": "APP.ACTIONS.DELETE", - "order": 900, + "order": 1200, "icon": "delete", "actions": { "click": "DELETE_NODES" @@ -673,115 +781,193 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 1300 + }, { "id": "app.context.menu.versions", "title": "APP.ACTIONS.VERSIONS", - "order": 1000, + "order": 1400, "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.context.menu.permissions", "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", - "order": 1100, + "order": 1500, "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" + } + }, + { + "id": "app.context.menu.joinLibrary", + "type": "custom", + "order": 100, + "component": "app.menu.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.context.menu.leaveLibrary", + "order": 200, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.context.menu.deleteLibrary", + "order": 300, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" } }, { "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, + "order": 100, "title": "APP.ACTIONS.DELETE_PERMANENT", "icon": "delete_forever", "actions": { "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, + "order": 200, "title": "APP.ACTIONS.RESTORE", "icon": "restore", "actions": { "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], "viewer": { "toolbarActions": [ - { - "id": "app.toolbar.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 200, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, { "id": "app.viewer.fullscreen", - "order": 400, + "order": 100, "title": "APP.ACTIONS.FULLSCREEN", "icon": "fullscreen", "actions": { "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { - "id": "app.toolbar.more", + "id": "app.viewer.separator.1", + "type": "separator", + "order": 180 + }, + { + "id": "app.viewer.share", + "type": "custom", + "order": 200, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.viewer.download", + "order": 300, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.viewer.print", + "order": 400, + "title": "APP.ACTIONS.PRINT", + "icon": "print", + "actions": { + "click": "PRINT_FILE" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.2", + "type": "separator", + "order": 450 + }, + { + "id": "app.viewer.infoDrawer", + "type": "custom", + "order": 500, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.viewer.toolbar.more", "type": "menu", "order": 10000, "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ { - "id": "app.viewer.favorite.add", + "id": "app.viewer.toggleLock", "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.viewer.favorite.add", + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -793,8 +979,8 @@ }, { "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", + "order": 301, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -807,41 +993,22 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 101, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.share", - "type": "custom", - "order": 300, - "data": { - "iconButton": true - }, - "component": "app.shared-link.toggleSharedLink", - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.viewer.more.separator.1", + "type": "separator", + "order": 400 }, { "id": "app.viewer.move", "order": 500, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -850,8 +1017,20 @@ } }, { - "id": "app.viewer.delete", + "id": "app.viewer.copy", "order": 600, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.viewer.delete", + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -861,33 +1040,61 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.viewer.more.separator.3", + "type": "separator", + "order": 800 + }, + { "id": "app.viewer.versions", - "order": 700, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 800, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] } ], + "shared": { + "toolbarActions": [ + { + "id": "app.viewer.shared.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + } + }, + { + "id": "app.viewer.shared.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + } + } + ] + }, "content": [ { "id": "app.viewer.pdf", @@ -909,20 +1116,38 @@ "id": "app.sidebar.properties", "order": 100, "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "component": "app.components.tabs.metadata" + "component": "app.components.tabs.metadata", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.comments", "order": 200, "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" + "component": "app.components.tabs.comments", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.versions", "order": 300, "disabled": true, "title": "APP.INFO_DRAWER.TABS.VERSIONS", - "component": "app.components.tabs.versions" + "component": "app.components.tabs.versions", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.library.properties", + "order": 500, + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", + "component": "app.components.tabs.library.metadata", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } } ] }, @@ -930,6 +1155,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "app.content.metadata.customGroup", "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", @@ -953,6 +1204,20 @@ ] } ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] } ] } @@ -964,7 +1229,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.files.name", @@ -974,7 +1240,8 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.files.size", @@ -982,8 +1249,10 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.files.modifiedOn", @@ -991,8 +1260,10 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.files.modifiedBy", @@ -1000,9 +1271,10 @@ "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "libraries": [ @@ -1011,27 +1283,106 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.libraries.name", "key": "title", "sortingKey": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.TITLE", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", "type": "text", "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, - "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", - "title": "APP.DOCUMENT_LIST.COLUMNS.STATUS", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 + } + ], + "favoriteLibraries": [ + { + "id": "app.favorite.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorite.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 } ], "shared": [ @@ -1040,7 +1391,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.shared.name", @@ -1050,16 +1402,20 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.shared.location", "key": "path.name", + "sortingKey": "path", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.shared.size", @@ -1067,17 +1423,22 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.shared.modifiedOn", "key": "modifiedAt", + "sortingKey": "modifiedAt", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", + "class": "adf-ellipsis-cell", "format": "timeAgo", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 }, { "id": "app.shared.modifiedBy", @@ -1085,9 +1446,10 @@ "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 60 }, { "id": "app.shared.sharedBy", @@ -1095,9 +1457,10 @@ "sortingKey": "sharedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 70 } ], "recent": [ @@ -1106,7 +1469,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.recent.name", @@ -1116,16 +1480,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.recent.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.recent.size", @@ -1133,8 +1500,10 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.recent.modifiedOn", @@ -1142,8 +1511,10 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "favorites": [ @@ -1152,7 +1523,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.favorites.name", @@ -1162,24 +1534,29 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.favorites.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.favorites.size", "key": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.favorites.modifiedOn", @@ -1187,8 +1564,10 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 }, { "id": "app.favorites.modifiedBy", @@ -1196,9 +1575,10 @@ "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 60 } ], "trashcan": [ @@ -1207,7 +1587,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.trashcan.name", @@ -1217,16 +1598,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.trashcanName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.trashcan.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.trashcan.size", @@ -1234,18 +1618,76 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.trashcan.deletedOn", "key": "archivedAt", - "sortingKey": "archivedAt", "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 } ] } diff --git a/e2e/resources/extensibility-configs/document-presets-ext.json b/e2e/resources/extensibility-configs/document-presets-ext.json index 044c0a095..6c611bc41 100644 --- a/e2e/resources/extensibility-configs/document-presets-ext.json +++ b/e2e/resources/extensibility-configs/document-presets-ext.json @@ -1,59 +1,16 @@ { "$schema": "../../extension.schema.json", - "$name": "app", + "$id": "app.core", + "$name": "app.core", "$version": "1.0.0", - "$references": [ - "plugin1.json", - "dev.tools.json", - "app.header.json", - "app.create.json", - "metadata-plugin.json" - ], + "$vendor": "Alfresco Software, Ltd.", + "$license": "LGPL-3.0", + "$runtime": "1.7.0", + "$description": "Core application extensions and features", + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -61,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -75,92 +29,68 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } + { "type": "rule", "value": "app.selection.library" }, + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], + "icons": [ + { + "id": "adf:join_library", + "value": "./assets/images/join-library.svg" + }, + { + "id": "adf:move_file", + "value": "./assets/images/adf-move-file-24px.svg" + } + ], "create": [ { "id": "app.create.uploadFile", @@ -218,6 +148,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -233,12 +196,27 @@ "route": "personal-files" }, { - "id": "app.navbar.libraries", + "id": "app.navbar.libraries.menu", "order": 200, - "icon": "group_work", + "icon": "library_books", "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" + "children": [ + { + "id": "app.navbar.libraries.favorite", + "order": 100, + "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" + } + ] } ] }, @@ -285,15 +263,40 @@ ], "toolbar": [ { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", + "id": "app.toolbar.searchFilter", + "order": 50, + "title": "APP.BROWSE.SEARCH.TOGGLE_SEARCH_FILTER", + "icon": "view_list", "actions": { - "click": "VIEW_FILE" + "click": "TOGGLE_SEARCH_FILTER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "app.navigation.isSearchResults" + } + }, + { + "id": "app.toolbar.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.toolbar.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" } }, { @@ -305,19 +308,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.canDownload" } }, { @@ -329,7 +320,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -341,16 +332,51 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { - "id": "app.toolbar.info", + "id": "app.toolbar.joinLibrary", + "type": "custom", + "order": 600, + "component": "app.toolbar.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.toolbar.leaveLibrary", + "order": 650, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 680 + }, + { + "id": "app.toolbar.info.infoDrawer", "type": "custom", "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.libraries.toolbar.infoDrawer", + "type": "custom", + "order": 800, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -360,19 +386,62 @@ "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ + { + "id": "app.toolbar.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 100, + "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" + } + }, + { + "id": "app.libraries.toolbar.toggleFavorite", + "type": "custom", + "order": 401, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" } }, { "id": "app.toolbar.favorite.add", - "order": 200, + "order": 402, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -384,8 +453,8 @@ }, { "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", + "order": 403, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -395,22 +464,15 @@ } }, { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.create.separator.1", + "type": "separator", + "order": 500 }, { "id": "app.toolbar.move", - "order": 500, + "order": 600, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -419,12 +481,15 @@ } }, { - "id": "app.toolbar.share", - "type": "custom", - "order": 600, - "component": "app.shared-link.toggleSharedLink", + "id": "app.toolbar.copy", + "order": 700, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, "rules": { - "visible": "app.selection.file.canShare" + "visible": "canCopyNode" } }, { @@ -439,9 +504,38 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 900 + }, + { + "id": "app.toolbar.versions", + "order": 1100, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.toolbar.permissions", + "order": 1200, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, { "id": "app.toolbar.deleteLibrary", - "order": 900, + "order": 100, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -450,84 +544,90 @@ "rules": { "visible": "app.selection.library" } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } } ] } ], "contextMenu": [ { - "id": "app.context.menu.download", + "id": "app.context.menu.share", + "type": "custom", "order": 100, + "data": { + "iconButton": false + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.context.menu.download", + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" } }, { "id": "app.context.menu.editFolder", - "order": 300, + "order": 600, "title": "APP.ACTIONS.EDIT", "icon": "create", "actions": { "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "canEditFolder" } }, { - "id": "app.context.menu.share", - "type": "custom", - "order": 400, - "component": "app.shared-link.toggleSharedLink", + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, "rules": { - "visible": "app.selection.file.canShare" + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 500, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -538,8 +638,8 @@ }, { "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -552,29 +652,32 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 501, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, + "id": "app.context.menu.libraries.toggleFavorite", + "type": "custom", + "order": 803, + "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "app.selection.library" } }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 900 + }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", + "order": 1000, + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -582,10 +685,22 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, { "id": "app.context.menu.delete", "title": "APP.ACTIONS.DELETE", - "order": 900, + "order": 1200, "icon": "delete", "actions": { "click": "DELETE_NODES" @@ -594,115 +709,193 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 1300 + }, { "id": "app.context.menu.versions", "title": "APP.ACTIONS.VERSIONS", - "order": 1000, + "order": 1400, "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.context.menu.permissions", "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", - "order": 1100, + "order": 1500, "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" + } + }, + { + "id": "app.context.menu.joinLibrary", + "type": "custom", + "order": 100, + "component": "app.menu.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.context.menu.leaveLibrary", + "order": 200, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.context.menu.deleteLibrary", + "order": 300, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" } }, { "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, + "order": 100, "title": "APP.ACTIONS.DELETE_PERMANENT", "icon": "delete_forever", "actions": { "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, + "order": 200, "title": "APP.ACTIONS.RESTORE", "icon": "restore", "actions": { "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], "viewer": { "toolbarActions": [ - { - "id": "app.toolbar.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 200, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, { "id": "app.viewer.fullscreen", - "order": 400, + "order": 100, "title": "APP.ACTIONS.FULLSCREEN", "icon": "fullscreen", "actions": { "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { - "id": "app.toolbar.more", + "id": "app.viewer.separator.1", + "type": "separator", + "order": 180 + }, + { + "id": "app.viewer.share", + "type": "custom", + "order": 200, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.viewer.download", + "order": 300, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.viewer.print", + "order": 400, + "title": "APP.ACTIONS.PRINT", + "icon": "print", + "actions": { + "click": "PRINT_FILE" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.2", + "type": "separator", + "order": 450 + }, + { + "id": "app.viewer.infoDrawer", + "type": "custom", + "order": 500, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.viewer.toolbar.more", "type": "menu", "order": 10000, "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ { - "id": "app.viewer.favorite.add", + "id": "app.viewer.toggleLock", "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.viewer.favorite.add", + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -714,8 +907,8 @@ }, { "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", + "order": 301, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -728,38 +921,22 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 101, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.share", - "type": "custom", - "order": 300, - "component": "app.shared-link.toggleSharedLink", - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.viewer.more.separator.1", + "type": "separator", + "order": 400 }, { "id": "app.viewer.move", "order": 500, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -768,8 +945,20 @@ } }, { - "id": "app.viewer.delete", + "id": "app.viewer.copy", "order": 600, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.viewer.delete", + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -779,33 +968,61 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.viewer.more.separator.3", + "type": "separator", + "order": 800 + }, + { "id": "app.viewer.versions", - "order": 700, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 800, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] } ], + "shared": { + "toolbarActions": [ + { + "id": "app.viewer.shared.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + } + }, + { + "id": "app.viewer.shared.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + } + } + ] + }, "content": [ { "id": "app.viewer.pdf", @@ -827,20 +1044,38 @@ "id": "app.sidebar.properties", "order": 100, "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "component": "app.components.tabs.metadata" + "component": "app.components.tabs.metadata", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.comments", "order": 200, "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" + "component": "app.components.tabs.comments", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.versions", "order": 300, "disabled": true, "title": "APP.INFO_DRAWER.TABS.VERSIONS", - "component": "app.components.tabs.versions" + "component": "app.components.tabs.versions", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.library.properties", + "order": 500, + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", + "component": "app.components.tabs.library.metadata", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } } ] }, @@ -848,6 +1083,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "app.content.metadata.customGroup", "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", @@ -871,6 +1132,20 @@ ] } ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] } ] } @@ -885,13 +1160,13 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.files.thumbnail", "key": "$thumbnail", "type": "image", - "class": "adf-image-table-cell", "sortable": false, "desktopOnly": false }, @@ -901,9 +1176,11 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, "desktopOnly": true, - "disabled": true + "disabled": true, + "order": 30 }, { "id": "app.files.modifiedBy", @@ -911,9 +1188,10 @@ "sortingKey": "modifiedByUser", "title": "Test header", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 }, { "id": "some.id.createdBy", @@ -923,7 +1201,8 @@ "type": "text", "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 60 } ], "libraries": [ @@ -932,27 +1211,106 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.libraries.name", "key": "title", "sortingKey": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.TITLE", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", "type": "text", "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, - "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", - "title": "APP.DOCUMENT_LIST.COLUMNS.STATUS", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 + } + ], + "favoriteLibraries": [ + { + "id": "app.favorite.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorite.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 } ], "shared": [ @@ -961,7 +1319,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.shared.name", @@ -971,16 +1330,20 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.shared.location", "key": "path.name", + "sortingKey": "path", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.shared.size", @@ -988,17 +1351,22 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.shared.modifiedOn", "key": "modifiedAt", + "sortingKey": "modifiedAt", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", + "class": "adf-ellipsis-cell", "format": "timeAgo", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 }, { "id": "app.shared.modifiedBy", @@ -1006,9 +1374,10 @@ "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 60 }, { "id": "app.shared.sharedBy", @@ -1016,9 +1385,10 @@ "sortingKey": "sharedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 70 } ], "recent": [ @@ -1027,7 +1397,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.recent.name", @@ -1037,16 +1408,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.recent.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.recent.size", @@ -1054,8 +1428,10 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.recent.modifiedOn", @@ -1063,8 +1439,10 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "favorites": [ @@ -1073,7 +1451,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.favorites.name", @@ -1083,24 +1462,29 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.favorites.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.favorites.size", "key": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.favorites.modifiedOn", @@ -1108,8 +1492,10 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 }, { "id": "app.favorites.modifiedBy", @@ -1117,9 +1503,10 @@ "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 60 } ], "trashcan": [ @@ -1128,7 +1515,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.trashcan.name", @@ -1138,16 +1526,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.trashcanName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.trashcan.location", "key": "path.name", "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, "template": "app.columns.location", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.trashcan.size", @@ -1155,18 +1546,76 @@ "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.trashcan.deletedOn", "key": "archivedAt", - "sortingKey": "archivedAt", "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 } ] } diff --git a/e2e/resources/extensibility-configs/extensions-default.json b/e2e/resources/extensibility-configs/extensions-default.json deleted file mode 100644 index 16d6d7d48..000000000 --- a/e2e/resources/extensibility-configs/extensions-default.json +++ /dev/null @@ -1,833 +0,0 @@ -{ - "$schema": "../../extension.schema.json", - "$name": "app", - "$version": "1.0.0", - "$references": ["plugin1.json", "dev.tools.json", "app.header.json"], - - "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.selection.canAddFavorite" }, - { "type": "rule", "value": "app.selection.canRemoveFavorite" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isRecentFiles" }, - { "type": "rule", "value": "app.navigation.isSharedFiles" }, - { "type": "rule", "value": "app.navigation.isSearchResults" }, - { "type": "rule", "value": "app.navigation.isFavorites" } - ] - } - ] - }, - { - "id": "app.toolbar.favorite.canAdd", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canAddFavorite" }, - { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isNotSearchResults" }, - { "type": "rule", "value": "app.navigation.isNotFavorites" } - ] - }, - { - "id": "app.toolbar.favorite.canRemove", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canRemoveFavorite" }, - { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isNotSearchResults" }, - { "type": "rule", "value": "app.navigation.isNotFavorites" } - ] - }, - { - "id": "app.toolbar.info", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - } - ], - - "features": { - "create": [ - { - "id": "app.create.folder", - "order": 100, - "icon": "create_new_folder", - "title": "APP.NEW_MENU.MENU_ITEMS.CREATE_FOLDER", - "description": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", - "actions": { - "click": "CREATE_FOLDER" - }, - "rules": { - "enabled": "app.navigation.folder.canCreate" - } - }, - { - "id": "app.create.uploadFile", - "order": 200, - "icon": "file_upload", - "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FILE", - "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES_NOT_ALLOWED", - "actions": { - "click": "UPLOAD_FILES" - }, - "rules": { - "enabled": "app.navigation.folder.canUpload" - } - }, - { - "id": "app.create.uploadFolder", - "order": 300, - "icon": "file_upload", - "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FOLDER", - "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS_NOT_ALLOWED", - "actions": { - "click": "UPLOAD_FOLDER" - }, - "rules": { - "enabled": "app.navigation.folder.canUpload" - } - } - ], - "navbar": [ - { - "id": "app.navbar.primary", - "items": [ - { - "id": "app.navbar.personalFiles", - "order": 100, - "icon": "folder", - "title": "APP.BROWSE.PERSONAL.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.PERSONAL.SIDENAV_LINK.TOOLTIP", - "route": "personal-files" - }, - { - "id": "app.navbar.libraries", - "order": 200, - "icon": "group_work", - "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" - } - ] - }, - { - "id": "app.navbar.secondary", - "items": [ - { - "id": "app.navbar.shared", - "order": 100, - "icon": "people", - "title": "APP.BROWSE.SHARED.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.SHARED.SIDENAV_LINK.TOOLTIP", - "route": "shared" - }, - { - "id": "app.navbar.recentFiles", - "order": 200, - "icon": "schedule", - "title": "APP.BROWSE.RECENT.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.RECENT.SIDENAV_LINK.TOOLTIP", - "route": "recent-files" - }, - { - "id": "app.navbar.favorites", - "order": 300, - "icon": "star", - "title": "APP.BROWSE.FAVORITES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.FAVORITES.SIDENAV_LINK.TOOLTIP", - "route": "favorites" - }, - { - "id": "app.navbar.trashcan", - "order": 400, - "icon": "delete", - "title": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.TOOLTIP", - "route": "trashcan" - } - ] - } - ], - "toolbar": [ - { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.toolbar.download", - "order": 200, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.toolbar.purgeDeletedNodes", - "order": 400, - "title": "APP.ACTIONS.DELETE_PERMANENT", - "icon": "delete_forever", - "actions": { - "click": "PURGE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.toolbar.restoreDeletedNodes", - "order": 500, - "title": "APP.ACTIONS.RESTORE", - "icon": "restore", - "actions": { - "click": "RESTORE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.toolbar.createLibrary", - "order": 600, - "title": "Create Library", - "icon": "create_new_folder", - "actions": { - "click": "CREATE_LIBRARY" - }, - "rules": { - "visible": "app.navigation.isLibraries" - } - }, - { - "id": "app.toolbar.info", - "type": "custom", - "order": 700, - "component": "app.toolbar.toggleInfoDrawer", - "rules": { - "visible": "app.toolbar.info" - } - }, - { - "id": "app.toolbar.more", - "type": "menu", - "order": 10000, - "icon": "more_vert", - "title": "APP.ACTIONS.MORE", - "children": [ - { - "id": "app.toolbar.favorite", - "comment": "workaround for Recent Files and Search API issue", - "type": "custom", - "order": 100, - "component": "app.toolbar.toggleFavorite", - "rules": { - "visible": "app.toolbar.favorite.canToggle" - } - }, - { - "id": "app.toolbar.favorite.add", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.toolbar.move", - "order": 500, - "title": "APP.ACTIONS.MOVE", - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.toolbar.share", - "order": 600, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.toolbar.unshare", - "order": 700, - "title": "APP.ACTIONS.UNSHARE", - "icon": "stop_screen_share", - "actions": { - "click": "UNSHARE_NODES" - }, - "rules": { - "visible": "app.selection.canUnshare" - } - }, - { - "id": "app.toolbar.delete", - "order": 800, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.toolbar.deleteLibrary", - "order": 900, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_LIBRARY" - }, - "rules": { - "visible": "app.selection.library" - } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - } - ] - } - ], - "contextMenu": [ - { - "id": "app.context.menu.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.context.menu.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.context.menu.share", - "title": "APP.ACTIONS.SHARE", - "order": 400, - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.context.menu.favorite.add", - "title": "APP.ACTIONS.FAVORITE", - "order": 500, - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.context.menu.favorite", - "comment": "workaround for Recent Files and Search API issue", - "type": "custom", - "order": 501, - "component": "app.toolbar.toggleFavorite", - "rules": { - "visible": "app.toolbar.favorite.canToggle" - } - }, - { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.context.menu.move", - "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.context.menu.delete", - "title": "APP.ACTIONS.DELETE", - "order": 900, - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.context.menu.versions", - "title": "APP.ACTIONS.VERSIONS", - "order": 1000, - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.context.menu.permissions", - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "order": 1100, - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - }, - { - "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, - "title": "APP.ACTIONS.DELETE_PERMANENT", - "icon": "delete_forever", - "actions": { - "click": "PURGE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, - "title": "APP.ACTIONS.RESTORE", - "icon": "restore", - "actions": { - "click": "RESTORE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - } - ], - "viewer": { - "toolbarActions": [ - { - "id": "app.toolbar.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 200, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.fullscreen", - "order": 400, - "title": "APP.ACTIONS.FULLSCREEN", - "icon": "fullscreen", - "actions": { - "click": "FULLSCREEN_VIEWER" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.toolbar.more", - "type": "menu", - "order": 10000, - "icon": "more_vert", - "title": "APP.ACTIONS.MORE", - "children": [ - { - "id": "app.viewer.favorite.add", - "order": 100, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.viewer.favorite", - "comment": "workaround for Recent Files and Search API issue", - "type": "custom", - "order": 101, - "component": "app.toolbar.toggleFavorite", - "rules": { - "visible": "app.toolbar.favorite.canToggle" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.viewer.move", - "order": 500, - "title": "APP.ACTIONS.MOVE", - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.viewer.delete", - "order": 600, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.viewer.versions", - "order": 700, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.viewer.permissions", - "order": 800, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - } - ] - } - ], - "content": [ - { - "id": "app.viewer.pdf", - "disabled": true, - "fileExtension": "pdf", - "component": "app.components.tabs.metadata" - }, - { - "id": "app.viewer.docx", - "disabled": true, - "fileExtension": "docx", - "component": "app.components.tabs.comments" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 100, - "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "component": "app.components.tabs.metadata" - }, - { - "id": "app.sidebar.comments", - "order": 200, - "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" - }, - { - "id": "app.sidebar.versions", - "order": 300, - "disabled": true, - "title": "APP.INFO_DRAWER.TABS.VERSIONS", - "component": "app.components.tabs.versions" - } - ] - } - } - } diff --git a/e2e/resources/extensibility-configs/header-ext.json b/e2e/resources/extensibility-configs/header-ext.json index 27f8f6cba..41c9f196e 100644 --- a/e2e/resources/extensibility-configs/header-ext.json +++ b/e2e/resources/extensibility-configs/header-ext.json @@ -1,59 +1,16 @@ { "$schema": "../../extension.schema.json", - "$name": "app", + "$id": "app.core", + "$name": "app.core", "$version": "1.0.0", - "$references": [ - "plugin1.json", - "dev.tools.json", - "app.header.json", - "app.create.json", - "metadata-plugin.json" - ], + "$vendor": "Alfresco Software, Ltd.", + "$license": "LGPL-3.0", + "$runtime": "1.7.0", + "$description": "Core application extensions and features", + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -61,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -75,92 +29,95 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } + { "type": "rule", "value": "app.selection.library" }, + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "settings", + "title": "App settings", + "description": "Application settings", + "icon": "settings", + "disabled": true, + "order": 10, + "actions": { + "click": "app.actions.settings" + }, + "rules": { + "visible": "app.navigation.isNotTrashcan" + } + }, + { + "id": "button", + "title": "New Button", + "description": "new button description", + "icon": "alarm_on", + "order": 20, + "actions": { + "click": "app.actions.settings" + }, + "rules": { + "visible": "app.navigation.isNotTrashcan" + } + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], + "icons": [ + { + "id": "adf:join_library", + "value": "./assets/images/join-library.svg" + }, + { + "id": "adf:move_file", + "value": "./assets/images/adf-move-file-24px.svg" + } + ], "create": [ { "id": "app.create.uploadFile", @@ -218,6 +175,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -233,12 +223,27 @@ "route": "personal-files" }, { - "id": "app.navbar.libraries", + "id": "app.navbar.libraries.menu", "order": 200, - "icon": "group_work", + "icon": "library_books", "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" + "children": [ + { + "id": "app.navbar.libraries.favorite", + "order": 100, + "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" + } + ] } ] }, @@ -285,15 +290,40 @@ ], "toolbar": [ { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", + "id": "app.toolbar.searchFilter", + "order": 50, + "title": "APP.BROWSE.SEARCH.TOGGLE_SEARCH_FILTER", + "icon": "view_list", "actions": { - "click": "VIEW_FILE" + "click": "TOGGLE_SEARCH_FILTER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "app.navigation.isSearchResults" + } + }, + { + "id": "app.toolbar.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.toolbar.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" } }, { @@ -305,19 +335,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.canDownload" } }, { @@ -329,7 +347,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -341,16 +359,51 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { - "id": "app.toolbar.info", + "id": "app.toolbar.joinLibrary", + "type": "custom", + "order": 600, + "component": "app.toolbar.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.toolbar.leaveLibrary", + "order": 650, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 680 + }, + { + "id": "app.toolbar.info.infoDrawer", "type": "custom", "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.libraries.toolbar.infoDrawer", + "type": "custom", + "order": 800, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -360,19 +413,62 @@ "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ + { + "id": "app.toolbar.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 100, + "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" + } + }, + { + "id": "app.libraries.toolbar.toggleFavorite", + "type": "custom", + "order": 401, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" } }, { "id": "app.toolbar.favorite.add", - "order": 200, + "order": 402, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -384,8 +480,8 @@ }, { "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", + "order": 403, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -395,22 +491,15 @@ } }, { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.create.separator.1", + "type": "separator", + "order": 500 }, { "id": "app.toolbar.move", - "order": 500, + "order": 600, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -419,27 +508,15 @@ } }, { - "id": "app.toolbar.share", - "order": 600, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.toolbar.unshare", + "id": "app.toolbar.copy", "order": 700, - "title": "APP.ACTIONS.UNSHARE", - "icon": "stop_screen_share", + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", "actions": { - "click": "UNSHARE_NODES" + "click": "COPY_NODES" }, "rules": { - "visible": "app.selection.canUnshare" + "visible": "canCopyNode" } }, { @@ -454,9 +531,38 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 900 + }, + { + "id": "app.toolbar.versions", + "order": 1100, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.toolbar.permissions", + "order": 1200, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, { "id": "app.toolbar.deleteLibrary", - "order": 900, + "order": 100, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -465,87 +571,90 @@ "rules": { "visible": "app.selection.library" } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } } ] } ], "contextMenu": [ { - "id": "app.context.menu.download", + "id": "app.context.menu.share", + "type": "custom", "order": 100, + "data": { + "iconButton": false + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.context.menu.download", + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" } }, { "id": "app.context.menu.editFolder", - "order": 300, + "order": 600, "title": "APP.ACTIONS.EDIT", "icon": "create", "actions": { "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "canEditFolder" } }, { - "id": "app.context.menu.share", - "title": "APP.ACTIONS.SHARE", - "order": 400, - "icon": "share", + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", "actions": { - "click": "SHARE_NODE" + "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.selection.file.canShare" + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 500, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -556,8 +665,8 @@ }, { "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -570,29 +679,32 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 501, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, + "id": "app.context.menu.libraries.toggleFavorite", + "type": "custom", + "order": 803, + "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "app.selection.library" } }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 900 + }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", + "order": 1000, + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -600,10 +712,22 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, { "id": "app.context.menu.delete", "title": "APP.ACTIONS.DELETE", - "order": 900, + "order": 1200, "icon": "delete", "actions": { "click": "DELETE_NODES" @@ -612,115 +736,193 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 1300 + }, { "id": "app.context.menu.versions", "title": "APP.ACTIONS.VERSIONS", - "order": 1000, + "order": 1400, "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.context.menu.permissions", "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", - "order": 1100, + "order": 1500, "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" + } + }, + { + "id": "app.context.menu.joinLibrary", + "type": "custom", + "order": 100, + "component": "app.menu.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.context.menu.leaveLibrary", + "order": 200, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.context.menu.deleteLibrary", + "order": 300, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" } }, { "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, + "order": 100, "title": "APP.ACTIONS.DELETE_PERMANENT", "icon": "delete_forever", "actions": { "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, + "order": 200, "title": "APP.ACTIONS.RESTORE", "icon": "restore", "actions": { "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], "viewer": { "toolbarActions": [ - { - "id": "app.toolbar.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 200, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, { "id": "app.viewer.fullscreen", - "order": 400, + "order": 100, "title": "APP.ACTIONS.FULLSCREEN", "icon": "fullscreen", "actions": { "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { - "id": "app.toolbar.more", + "id": "app.viewer.separator.1", + "type": "separator", + "order": 180 + }, + { + "id": "app.viewer.share", + "type": "custom", + "order": 200, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.viewer.download", + "order": 300, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.viewer.print", + "order": 400, + "title": "APP.ACTIONS.PRINT", + "icon": "print", + "actions": { + "click": "PRINT_FILE" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.2", + "type": "separator", + "order": 450 + }, + { + "id": "app.viewer.infoDrawer", + "type": "custom", + "order": 500, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.viewer.toolbar.more", "type": "menu", "order": 10000, "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ { - "id": "app.viewer.favorite.add", + "id": "app.viewer.toggleLock", "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.viewer.favorite.add", + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -732,8 +934,8 @@ }, { "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", + "order": 301, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -746,41 +948,22 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 101, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.viewer.more.separator.1", + "type": "separator", + "order": 400 }, { "id": "app.viewer.move", "order": 500, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -789,8 +972,20 @@ } }, { - "id": "app.viewer.delete", + "id": "app.viewer.copy", "order": 600, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.viewer.delete", + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -800,33 +995,61 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.viewer.more.separator.3", + "type": "separator", + "order": 800 + }, + { "id": "app.viewer.versions", - "order": 700, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 800, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] } ], + "shared": { + "toolbarActions": [ + { + "id": "app.viewer.shared.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + } + }, + { + "id": "app.viewer.shared.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + } + } + ] + }, "content": [ { "id": "app.viewer.pdf", @@ -848,20 +1071,38 @@ "id": "app.sidebar.properties", "order": 100, "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "component": "app.components.tabs.metadata" + "component": "app.components.tabs.metadata", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.comments", "order": 200, "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" + "component": "app.components.tabs.comments", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.versions", "order": 300, "disabled": true, "title": "APP.INFO_DRAWER.TABS.VERSIONS", - "component": "app.components.tabs.versions" + "component": "app.components.tabs.versions", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.library.properties", + "order": 500, + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", + "component": "app.components.tabs.library.metadata", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } } ] }, @@ -869,6 +1110,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "app.content.metadata.customGroup", "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", @@ -892,47 +1159,492 @@ ] } ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] } ] } ], - "header": [ - { - "id": "app.header.more", - "type": "menu", - "order": 10000, - "icon": "more_vert", - "title": "APP.ACTIONS.MORE", - "children": [ - { - "id": "settings", - "title": "App settings", - "description": "Application settings", - "icon": "settings", - "disabled": true, - "order": 10, - "actions": { - "click": "app.actions.settings" - }, - "rules": { - "visible": "app.navigation.isNotTrashcan" - } - }, - { - "id": "button", - "title": "New Button", - "description": "new button description", - "icon": "alarm_on", - "order": 20, - "actions": { - "click": "app.actions.settings" - }, - "rules": { - "visible": "app.navigation.isNotTrashcan" - } - } - ] - } - ] + "documentList": { + "files": [ + { + "id": "app.files.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.files.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.files.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.files.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.files.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "favoriteLibraries": [ + { + "id": "app.favorite.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorite.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "shared": [ + { + "id": "app.shared.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.shared.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.shared.location", + "key": "path.name", + "sortingKey": "path", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.shared.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.shared.modifiedOn", + "key": "modifiedAt", + "sortingKey": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "class": "adf-ellipsis-cell", + "format": "timeAgo", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.shared.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + }, + { + "id": "app.shared.sharedBy", + "key": "sharedByUser.displayName", + "sortingKey": "sharedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 70 + } + ], + "recent": [ + { + "id": "app.recent.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.recent.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.recent.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.recent.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.recent.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "favorites": [ + { + "id": "app.favorites.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorites.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorites.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorites.size", + "key": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.favorites.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.favorites.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + } + ], + "trashcan": [ + { + "id": "app.trashcan.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.trashcan.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.trashcanName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.trashcan.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.trashcan.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.trashcan.deletedOn", + "key": "archivedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ] + } } } diff --git a/e2e/resources/extensibility-configs/info-drawer-ext.json b/e2e/resources/extensibility-configs/info-drawer-ext.json index cf9a60c28..1b9b6fc3c 100644 --- a/e2e/resources/extensibility-configs/info-drawer-ext.json +++ b/e2e/resources/extensibility-configs/info-drawer-ext.json @@ -7,75 +7,10 @@ "$license": "LGPL-3.0", "$runtime": "1.7.0", "$description": "Core application extensions and features", - "$references": ["aos.plugin.json"], + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, - { - "id": "app.context.canShare", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canShare" }, - { "type": "rule", "value": "repository.isQuickShareEnabled" } - ] - }, - { - "id": "app.toolbar.canShare", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canShare" }, - { "type": "rule", "value": "repository.isQuickShareEnabled" }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.file.isShared" } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -83,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -97,178 +29,58 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.libraries.toolbar", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.selection.library" } - ] - }, - { - "id": "app.libraries.toolbar.canToggleJoin", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ { "type": "rule", "value": "app.selection.library" }, - { "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.isPrivateLibrary" } - ] - }, - { "type": "rule", "value": "app.selection.hasNoLibraryRole" } - ] - }, - { - "id": "app.libraries.toolbar.canLeaveLibrary", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.library" }, - { "type": "rule", "value": "app.selection.hasLibraryRole" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.file.isLocked" } - ] - } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canDelete", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDelete" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canToggleLock", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isNotFavorites" }, - { "type": "rule", "value": "app.navigation.isFavoritesPreview" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isSharedPreview" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canUnlock" }, - { "type": "rule", "value": "app.selection.file.canLock" } - ] - } - ] - }, - { - "id": "app.toolbar.canUploadNewVersion", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.selection.file.canUploadVersion" } + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], "icons": [ { "id": "adf:join_library", @@ -336,6 +148,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -357,19 +202,19 @@ "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", "children": [ - { - "id": "app.navbar.libraries.files", - "order": 100, - "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" - }, { "id": "app.navbar.libraries.favorite", - "order": 200, + "order": 100, "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" } ] } @@ -431,38 +276,27 @@ }, { "id": "app.toolbar.share", + "type": "custom", "order": 100, - "title": "APP.ACTIONS.SHARE", - "icon": "link", - "actions": { - "click": "SHARE_NODE" + "data": { + "iconButton": true }, + "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.toolbar.canShare" - } - }, - { - "id": "app.toolbar.share.edit", - "order": 101, - "title": "APP.ACTIONS.SHARE_EDIT", - "icon": "link", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.isShared" + "visible": "canToggleSharedLink" } }, { "id": "app.toolbar.preview", + "type": "custom", "order": 300, - "title": "APP.ACTIONS.VIEW", - "icon": "visibility", - "actions": { - "click": "VIEW_FILE" + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -474,7 +308,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { @@ -486,7 +320,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -498,7 +332,7 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -507,7 +341,7 @@ "order": 600, "component": "app.toolbar.toggleJoinLibrary", "rules": { - "visible": "app.libraries.toolbar.canToggleJoin" + "visible": "canToggleJoinLibrary" } }, { @@ -519,7 +353,7 @@ "click": "LEAVE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar.canLeaveLibrary" + "visible": "canLeaveLibrary" } }, { @@ -533,7 +367,7 @@ "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" } }, { @@ -542,7 +376,7 @@ "order": 800, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -558,7 +392,7 @@ "type": "custom", "component": "app.toolbar.toggleEditOffline", "rules": { - "visible": "app.toolbar.canToggleLock" + "visible": "canToggleEditOffline" } }, { @@ -570,22 +404,30 @@ "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.toolbar.canUploadNewVersion" + "visible": "app.selection.file.canUploadVersion" } }, { - "id": "app.create.separator.1", - "type": "separator", - "order": 300 + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { @@ -594,7 +436,7 @@ "order": 401, "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.selection.library" } }, { @@ -622,44 +464,32 @@ } }, { - "id": "app.toolbar.editFolder", - "order": 450, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.create.separator.2", + "id": "app.create.separator.1", "type": "separator", "order": 500 }, - { - "id": "app.toolbar.copy", - "order": 600, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, { "id": "app.toolbar.move", - "order": 700, + "order": 600, "title": "APP.ACTIONS.MOVE", "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.toolbar.copy", + "order": 700, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" } }, { @@ -671,7 +501,7 @@ "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { @@ -686,10 +516,10 @@ "icon": "history", "actions": { "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } + }, + "rules": { + "visible": "canManageFileVersions" + } }, { "id": "app.toolbar.permissions", @@ -700,7 +530,7 @@ "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } }, { @@ -719,69 +549,85 @@ } ], "contextMenu": [ - { - "id": "app.context.toggleLock", - "order": 100, - "type": "custom", - "component": "app.toolbar.toggleEditOffline", - "rules": { - "visible": "app.toolbar.canToggleLock" - } - }, - { - "id": "app.context.menu.uploadNodeVersion", - "title": "APP.ACTIONS.UPLOAD_VERSION", - "order": 200, - "icon": "playlist_add", - "actions": { - "click": "UPLOAD_FILE_VERSION" - }, - "rules": { - "visible": "app.toolbar.canUploadNewVersion" - } - }, - { - "id": "app.create.separator.1", - "type": "separator", - "order": 300 - }, { "id": "app.context.menu.share", "type": "custom", - "order": 400, + "order": 100, + "data": { + "iconButton": false + }, "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.context.canShare" + "visible": "canToggleSharedLink" } }, { "id": "app.context.menu.download", - "order": 500, + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.context.menu.editFolder", "order": 600, - "title": "APP.ACTIONS.VIEW", - "icon": "visibility", + "title": "APP.ACTIONS.EDIT", + "icon": "create", "actions": { - "click": "VIEW_FILE" + "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canEditFolder" + } + }, + { + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 700, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -793,7 +639,7 @@ { "id": "app.context.menu.favorite.remove", "title": "APP.ACTIONS.REMOVE_FAVORITE", - "order": 701, + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -806,31 +652,20 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 702, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { "id": "app.context.menu.libraries.toggleFavorite", "type": "custom", - "order": 703, + "order": 803, "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.libraries.toolbar" - } - }, - { - "id": "app.context.menu.editFolder", - "order": 800, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.library" } }, { @@ -838,28 +673,28 @@ "type": "separator", "order": 900 }, - { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 1000, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 1100, + "order": 1000, "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" } }, { @@ -871,7 +706,7 @@ "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { @@ -888,7 +723,7 @@ "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { @@ -900,7 +735,7 @@ "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } }, { @@ -909,7 +744,7 @@ "order": 100, "component": "app.menu.toggleJoinLibrary", "rules": { - "visible": "app.libraries.toolbar.canToggleJoin" + "visible": "canToggleJoinLibrary" } }, { @@ -921,7 +756,7 @@ "click": "LEAVE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar.canLeaveLibrary" + "visible": "canLeaveLibrary" } }, { @@ -933,7 +768,7 @@ "click": "DELETE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.selection.library" } }, { @@ -945,7 +780,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -957,7 +792,7 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], @@ -972,7 +807,7 @@ "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -982,26 +817,14 @@ }, { "id": "app.viewer.share", + "type": "custom", "order": 200, - "title": "APP.ACTIONS.SHARE", - "icon": "link", - "actions": { - "click": "SHARE_NODE" + "data": { + "iconButton": true }, + "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.toolbar.canShare" - } - }, - { - "id": "app.viewer.share.edit", - "order": 250, - "title": "APP.ACTIONS.SHARE_EDIT", - "icon": "link", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.isShared" + "visible": "canToggleSharedLink" } }, { @@ -1013,7 +836,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { @@ -1025,7 +848,7 @@ "click": "PRINT_FILE" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -1039,7 +862,7 @@ "order": 500, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" } }, { @@ -1055,7 +878,7 @@ "type": "custom", "component": "app.toolbar.toggleEditOffline", "rules": { - "visible": "app.toolbar.canToggleLock" + "visible": "canToggleEditOffline" } }, { @@ -1067,17 +890,12 @@ "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.toolbar.canUploadNewVersion" + "visible": "app.selection.file.canUploadVersion" } }, - { - "id": "app.viewer.more.separator.1", - "type": "separator", - "order": 300 - }, { "id": "app.viewer.favorite.add", - "order": 400, + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -1089,7 +907,7 @@ }, { "id": "app.viewer.favorite.remove", - "order": 401, + "order": 301, "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { @@ -1103,16 +921,28 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 402, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.more.separator.2", + "id": "app.viewer.more.separator.1", "type": "separator", - "order": 500 + "order": 400 + }, + { + "id": "app.viewer.move", + "order": 500, + "title": "APP.ACTIONS.MOVE", + "icon": "adf:move_file", + "actions": { + "click": "MOVE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } }, { "id": "app.viewer.copy", @@ -1123,61 +953,49 @@ "click": "COPY_NODES" }, "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.viewer.move", - "order": 700, - "title": "APP.ACTIONS.MOVE", - "icon": "adf:move_file", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.toolbar.canDelete" + "visible": "canCopyNode" } }, { "id": "app.viewer.delete", - "order": 800, + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { "id": "app.viewer.more.separator.3", "type": "separator", - "order": 900 + "order": 800 }, { "id": "app.viewer.versions", - "order": 1000, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 1100, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] @@ -1226,7 +1044,10 @@ "id": "app.sidebar.properties", "order": 1, "title": "MY PROPERTIES", - "component": "app.components.tabs.metadata" + "component": "app.components.tabs.metadata", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.custom", @@ -1246,7 +1067,29 @@ "order": 4, "disabled": true, "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" + "component": "app.components.tabs.comments", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.versions", + "order": 300, + "disabled": true, + "title": "APP.INFO_DRAWER.TABS.VERSIONS", + "component": "app.components.tabs.versions", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.library.properties", + "order": 500, + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", + "component": "app.components.tabs.library.metadata", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } } ] }, @@ -1254,6 +1097,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "app.content.metadata.customGroup", "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", @@ -1277,6 +1146,20 @@ ] } ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] } ] } @@ -1288,7 +1171,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.files.name", @@ -1298,15 +1182,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.files.size", "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.files.modifiedOn", @@ -1314,17 +1202,21 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.files.modifiedBy", "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "libraries": [ @@ -1333,45 +1225,52 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.libraries.name", "key": "title", + "sortingKey": "name", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-3", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { - "id": "app.favorite.libraries.description", + "id": "app.libraries.description", "key": "description", "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", "type": "text", "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, - "template": "app.columns.libraryDescription", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.libraries.role", "key": "role", "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryRole", - "desktopOnly": false + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "favoriteLibraries": [ @@ -1380,17 +1279,324 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.favorite.libraries.name", "key": "title", + "sortingKey": "name", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-3", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "shared": [ + { + "id": "app.shared.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.shared.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.shared.location", + "key": "path.name", + "sortingKey": "path", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.shared.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.shared.modifiedOn", + "key": "modifiedAt", + "sortingKey": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "class": "adf-ellipsis-cell", + "format": "timeAgo", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.shared.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + }, + { + "id": "app.shared.sharedBy", + "key": "sharedByUser.displayName", + "sortingKey": "sharedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 70 + } + ], + "recent": [ + { + "id": "app.recent.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.recent.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.recent.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.recent.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.recent.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "favorites": [ + { + "id": "app.favorites.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorites.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorites.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorites.size", + "key": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.favorites.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.favorites.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + } + ], + "trashcan": [ + { + "id": "app.trashcan.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.trashcan.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.trashcanName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.trashcan.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.trashcan.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.trashcan.deletedOn", + "key": "archivedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 }, { "id": "app.favorite.libraries.description", @@ -1400,269 +1606,30 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.libraryDescription", - "desktopOnly": true - }, - { - "id": "app.favorite.libraries.role", - "key": "role", - "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", - "type": "text", - "sortable": true, - "template": "app.columns.libraryRole", - "desktopOnly": false - }, - { - "id": "app.favorite.libraries.visibility", - "key": "visibility", - "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", - "type": "text", - "sortable": true, - "template": "app.columns.libraryStatus", - "desktopOnly": true - } - ], - "shared": [ - { - "id": "app.shared.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.shared.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.shared.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.shared.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.modifiedBy", - "key": "modifiedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.sharedBy", - "key": "sharedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - } - ], - "recent": [ - { - "id": "app.recent.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.recent.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.recent.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.recent.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.recent.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - } - ], - "favorites": [ - { - "id": "app.favorites.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.favorites.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.favorites.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.favorites.size", - "key": "sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.favorites.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.favorites.modifiedBy", - "key": "modifiedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - } - ], - "trashcan": [ - { - "id": "app.trashcan.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.trashcan.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.trashcanName", - "desktopOnly": false - }, - { - "id": "app.trashcan.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.trashcan.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.trashcan.deletedOn", - "key": "archivedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - } - ], - "search-libraries": [ - { - "id": "app.libraries.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.libraries.name", - "key": "title", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": true, + "order": 30 }, { "id": "app.libraries.role", "key": "role", "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryRole", - "desktopOnly": false + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ] } diff --git a/e2e/resources/extensibility-configs/info-drawer-no-tabs-ext.json b/e2e/resources/extensibility-configs/info-drawer-no-tabs-ext.json index aec64dafd..c473f6606 100644 --- a/e2e/resources/extensibility-configs/info-drawer-no-tabs-ext.json +++ b/e2e/resources/extensibility-configs/info-drawer-no-tabs-ext.json @@ -1,745 +1,1582 @@ { - "$schema": "../../extension.schema.json", - "$name": "app", - "$version": "1.0.0", - "$references": [ - "plugin1.json", - "plugin2.json", - "dev.tools.json" - ], + "$schema": "../../extension.schema.json", + "$id": "app.core", + "$name": "app.core", + "$version": "1.0.0", + "$vendor": "Alfresco Software, Ltd.", + "$license": "LGPL-3.0", + "$runtime": "1.7.0", + "$description": "Core application extensions and features", + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], - "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.selection.canAddFavorite" }, - { "type": "rule", "value": "app.selection.canRemoveFavorite" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isRecentFiles" }, - { "type": "rule", "value": "app.navigation.isSharedFiles" }, - { "type": "rule", "value": "app.navigation.isSearchResults" } - ] - } - ] - }, - { - "id": "app.toolbar.favorite.canAdd", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canAddFavorite" }, - { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isNotSearchResults" } - ] - }, - { - "id": "app.toolbar.favorite.canRemove", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canRemoveFavorite" }, - { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isNotSearchResults" } - ] - }, - { - "id": "app.toolbar.info", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - } - ], - - "features": { - "create": [ - { - "id": "app.create.folder", - "order": 100, - "icon": "create_new_folder", - "title": "APP.NEW_MENU.MENU_ITEMS.CREATE_FOLDER", - "description": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", - "actions": { - "click": "CREATE_FOLDER" - }, - "rules": { - "enabled": "app.navigation.folder.canCreate" - } - }, - { - "id": "app.create.uploadFile", - "order": 200, - "icon": "file_upload", - "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FILE", - "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES_NOT_ALLOWED", - "actions": { - "click": "UPLOAD_FILES" - }, - "rules": { - "enabled": "app.navigation.folder.canUpload" - } - }, - { - "id": "app.create.uploadFolder", - "order": 300, - "icon": "file_upload", - "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FOLDER", - "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS", - "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS_NOT_ALLOWED", - "actions": { - "click": "UPLOAD_FOLDER" - }, - "rules": { - "enabled": "app.navigation.folder.canUpload" - } - } - ], - "navbar": [ - { - "id": "app.navbar.primary", - "items": [ - { - "id": "app.navbar.personalFiles", - "order": 100, - "icon": "folder", - "title": "APP.BROWSE.PERSONAL.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.PERSONAL.SIDENAV_LINK.TOOLTIP", - "route": "personal-files" - }, - { - "id": "app.navbar.libraries", - "order": 200, - "icon": "group_work", - "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" - } - ] - }, - { - "id": "app.navbar.secondary", - "items": [ - { - "id": "app.navbar.shared", - "order": 100, - "icon": "people", - "title": "APP.BROWSE.SHARED.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.SHARED.SIDENAV_LINK.TOOLTIP", - "route": "shared" - }, - { - "id": "app.navbar.recentFiles", - "order": 200, - "icon": "schedule", - "title": "APP.BROWSE.RECENT.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.RECENT.SIDENAV_LINK.TOOLTIP", - "route": "recent-files" - }, - { - "id": "app.navbar.favorites", - "order": 300, - "icon": "star", - "title": "APP.BROWSE.FAVORITES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.FAVORITES.SIDENAV_LINK.TOOLTIP", - "route": "favorites" - }, - { - "id": "app.navbar.trashcan", - "order": 400, - "icon": "delete", - "title": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.TOOLTIP", - "route": "trashcan" - } - ] - } - ], - "toolbar": [ - { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.toolbar.download", - "order": 200, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.toolbar.purgeDeletedNodes", - "order": 400, - "title": "APP.ACTIONS.DELETE_PERMANENT", - "icon": "delete_forever", - "actions": { - "click": "PURGE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.toolbar.restoreDeletedNodes", - "order": 500, - "title": "APP.ACTIONS.RESTORE", - "icon": "restore", - "actions": { - "click": "RESTORE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.toolbar.createLibrary", - "order": 600, - "title": "Create Library", - "icon": "create_new_folder", - "actions": { - "click": "CREATE_LIBRARY" - }, - "rules": { - "visible": "app.navigation.isLibraries" - } - }, - { - "id": "app.toolbar.info", - "type": "custom", - "order": 700, - "component": "app.toolbar.toggleInfoDrawer", - "rules": { - "visible": "app.toolbar.info" - } - }, - { - "id": "app.toolbar.more", - "type": "menu", - "order": 10000, - "icon": "more_vert", - "title": "APP.ACTIONS.MORE", - "children": [ - { - "id": "app.toolbar.favorite", - "comment": "workaround for Recent Files and Search API issue", - "type": "custom", - "order": 100, - "component": "app.toolbar.toggleFavorite", - "rules": { - "visible": "app.toolbar.favorite.canToggle" - } - }, - { - "id": "app.toolbar.favorite.add", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.toolbar.move", - "order": 500, - "title": "APP.ACTIONS.MOVE", - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.toolbar.share", - "order": 600, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.toolbar.unshare", - "order": 700, - "title": "APP.ACTIONS.UNSHARE", - "icon": "stop_screen_share", - "actions": { - "click": "UNSHARE_NODES" - }, - "rules": { - "visible": "app.selection.canUnshare" - } - }, - { - "id": "app.toolbar.delete", - "order": 800, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.toolbar.deleteLibrary", - "order": 900, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_LIBRARY" - }, - "rules": { - "visible": "app.selection.library" - } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - } - ] - } - ], - "contextMenu": [ - { - "id": "app.context.menu.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.context.menu.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.context.menu.share", - "title": "APP.ACTIONS.SHARE", - "order": 400, - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.context.menu.favorite.add", - "title": "APP.ACTIONS.FAVORITE", - "order": 500, - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.context.menu.favorite", - "comment": "workaround for Recent Files and Search API issue", - "type": "custom", - "order": 501, - "component": "app.toolbar.toggleFavorite", - "rules": { - "visible": "app.toolbar.favorite.canToggle" - } - }, - { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.context.menu.move", - "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.context.menu.delete", - "title": "APP.ACTIONS.DELETE", - "order": 900, - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.context.menu.versions", - "title": "APP.ACTIONS.VERSIONS", - "order": 1000, - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.context.menu.permissions", - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "order": 1100, - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - }, - { - "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, - "title": "APP.ACTIONS.DELETE_PERMANENT", - "icon": "delete_forever", - "actions": { - "click": "PURGE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - }, - { - "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, - "title": "APP.ACTIONS.RESTORE", - "icon": "restore", - "actions": { - "click": "RESTORE_DELETED_NODES" - }, - "rules": { - "visible": "app.trashcan.hasSelection" - } - } - ], - "viewer": { - "toolbar": [ - { - "id": "app.viewer.favorite.add", - "order": 100, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star_border", - "actions": { - "click": "ADD_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canAdd" - } - }, - { - "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", - "icon": "star", - "actions": { - "click": "REMOVE_FAVORITE" - }, - "rules": { - "visible": "app.toolbar.favorite.canRemove" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.viewer.move", - "order": 500, - "title": "APP.ACTIONS.MOVE", - "icon": "library_books", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.viewer.delete", - "order": 600, - "title": "APP.ACTIONS.DELETE", - "icon": "delete", - "actions": { - "click": "DELETE_NODES" - }, - "rules": { - "visible": "app.selection.canDelete" - } - }, - { - "id": "app.viewer.versions", - "order": 700, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.viewer.permissions", - "order": 800, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } - } - ], - "content": [ - { - "id": "app.viewer.pdf", - "disabled": true, - "fileExtension": "pdf", - "component": "app.components.tabs.metadata" - }, - { - "id": "app.viewer.docx", - "disabled": true, - "fileExtension": "docx", - "component": "app.components.tabs.comments" - } - ] - } + "rules": [ + { + "id": "app.toolbar.favorite.canAdd", + "type": "core.every", + "parameters": [ + { "type": "rule", "value": "app.selection.canAddFavorite" }, + { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, + { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, + { "type": "rule", "value": "app.navigation.isNotFavorites" } + ] + }, + { + "id": "app.toolbar.favorite.canRemove", + "type": "core.every", + "parameters": [ + { "type": "rule", "value": "app.selection.canRemoveFavorite" }, + { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, + { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, + { "type": "rule", "value": "app.navigation.isNotFavorites" } + ] + }, + { + "id": "app.toolbar.favorite.canEditMetadata", + "type": "core.every", + "parameters": [ + { "type": "rule", "value": "app.selection.library" }, + { "type": "rule", "value": "isLibraryManager" } + ] } + ], + + "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], + "icons": [ + { + "id": "adf:join_library", + "value": "./assets/images/join-library.svg" + }, + { + "id": "adf:move_file", + "value": "./assets/images/adf-move-file-24px.svg" + } + ], + "create": [ + { + "id": "app.create.uploadFile", + "order": 100, + "icon": "file_upload", + "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FILE", + "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FILES_NOT_ALLOWED", + "actions": { + "click": "UPLOAD_FILES" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.uploadFolder", + "order": 200, + "icon": "file_upload", + "title": "APP.NEW_MENU.MENU_ITEMS.UPLOAD_FOLDER", + "description": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.UPLOAD_FOLDERS_NOT_ALLOWED", + "actions": { + "click": "UPLOAD_FOLDER" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 300 + }, + { + "id": "app.create.folder", + "order": 400, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.CREATE_FOLDER", + "description": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "CREATE_FOLDER" + }, + "rules": { + "enabled": "app.navigation.folder.canCreate" + } + }, + { + "id": "app.create.library", + "order": 600, + "title": "APP.NEW_MENU.MENU_ITEMS.CREATE_LIBRARY", + "description": "APP.NEW_MENU.TOOLTIPS.CREATE_LIBRARY", + "icon": "create_new_folder", + "actions": { + "click": "CREATE_LIBRARY" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + } + ], + "navbar": [ + { + "id": "app.navbar.primary", + "items": [ + { + "id": "app.navbar.personalFiles", + "order": 100, + "icon": "folder", + "title": "APP.BROWSE.PERSONAL.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.PERSONAL.SIDENAV_LINK.TOOLTIP", + "route": "personal-files" + }, + { + "id": "app.navbar.libraries.menu", + "order": 200, + "icon": "library_books", + "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", + "children": [ + { + "id": "app.navbar.libraries.favorite", + "order": 100, + "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" + } + ] + } + ] + }, + { + "id": "app.navbar.secondary", + "items": [ + { + "id": "app.navbar.shared", + "order": 100, + "icon": "people", + "title": "APP.BROWSE.SHARED.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.SHARED.SIDENAV_LINK.TOOLTIP", + "route": "shared", + "rules": { + "visible": "repository.isQuickShareEnabled" + } + }, + { + "id": "app.navbar.recentFiles", + "order": 200, + "icon": "schedule", + "title": "APP.BROWSE.RECENT.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.RECENT.SIDENAV_LINK.TOOLTIP", + "route": "recent-files" + }, + { + "id": "app.navbar.favorites", + "order": 300, + "icon": "star", + "title": "APP.BROWSE.FAVORITES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.FAVORITES.SIDENAV_LINK.TOOLTIP", + "route": "favorites" + }, + { + "id": "app.navbar.trashcan", + "order": 400, + "icon": "delete", + "title": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.TRASHCAN.SIDENAV_LINK.TOOLTIP", + "route": "trashcan" + } + ] + } + ], + "toolbar": [ + { + "id": "app.toolbar.searchFilter", + "order": 50, + "title": "APP.BROWSE.SEARCH.TOGGLE_SEARCH_FILTER", + "icon": "view_list", + "actions": { + "click": "TOGGLE_SEARCH_FILTER" + }, + "rules": { + "visible": "app.navigation.isSearchResults" + } + }, + { + "id": "app.toolbar.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.toolbar.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.toolbar.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.toolbar.purgeDeletedNodes", + "order": 400, + "title": "APP.ACTIONS.DELETE_PERMANENT", + "icon": "delete_forever", + "actions": { + "click": "PURGE_DELETED_NODES" + }, + "rules": { + "visible": "isTrashcanItemSelected" + } + }, + { + "id": "app.toolbar.restoreDeletedNodes", + "order": 500, + "title": "APP.ACTIONS.RESTORE", + "icon": "restore", + "actions": { + "click": "RESTORE_DELETED_NODES" + }, + "rules": { + "visible": "isTrashcanItemSelected" + } + }, + { + "id": "app.toolbar.joinLibrary", + "type": "custom", + "order": 600, + "component": "app.toolbar.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.toolbar.leaveLibrary", + "order": 650, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 680 + }, + { + "id": "app.toolbar.info.infoDrawer", + "type": "custom", + "order": 700, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.libraries.toolbar.infoDrawer", + "type": "custom", + "order": 800, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } + }, + { + "id": "app.toolbar.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.toolbar.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, + { + "id": "app.toolbar.favorite", + "comment": "workaround for Recent Files and Search API issue", + "type": "custom", + "order": 400, + "data": "['/favorites', '/favorite/libraries']", + "component": "app.toolbar.toggleFavorite", + "rules": { + "visible": "canToggleFavorite" + } + }, + { + "id": "app.libraries.toolbar.toggleFavorite", + "type": "custom", + "order": 401, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" + } + }, + { + "id": "app.toolbar.favorite.add", + "order": 402, + "title": "APP.ACTIONS.FAVORITE", + "icon": "star_border", + "actions": { + "click": "ADD_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canAdd" + } + }, + { + "id": "app.toolbar.favorite.remove", + "order": 403, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "icon": "star", + "actions": { + "click": "REMOVE_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canRemove" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 500 + }, + { + "id": "app.toolbar.move", + "order": 600, + "title": "APP.ACTIONS.MOVE", + "icon": "adf:move_file", + "actions": { + "click": "MOVE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.toolbar.copy", + "order": 700, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.toolbar.delete", + "order": 800, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 900 + }, + { + "id": "app.toolbar.versions", + "order": 1100, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.toolbar.permissions", + "order": 1200, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, + { + "id": "app.toolbar.deleteLibrary", + "order": 100, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" + } + } + ] + } + ], + "contextMenu": [ + { + "id": "app.context.menu.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": false + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.context.menu.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.context.menu.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.context.menu.editFolder", + "order": 600, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, + { + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.context.menu.favorite.add", + "title": "APP.ACTIONS.FAVORITE", + "order": 800, + "icon": "star_border", + "actions": { + "click": "ADD_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canAdd" + } + }, + { + "id": "app.context.menu.favorite.remove", + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "order": 801, + "icon": "star", + "actions": { + "click": "REMOVE_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canRemove" + } + }, + { + "id": "app.context.menu.favorite", + "comment": "workaround for Recent Files and Search API issue", + "type": "custom", + "order": 802, + "data": "['/favorites', '/favorite/libraries']", + "component": "app.toolbar.toggleFavorite", + "rules": { + "visible": "canToggleFavorite" + } + }, + { + "id": "app.context.menu.libraries.toggleFavorite", + "type": "custom", + "order": 803, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 900 + }, + { + "id": "app.context.menu.move", + "title": "APP.ACTIONS.MOVE", + "order": 1000, + "icon": "adf:move_file", + "actions": { + "click": "MOVE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.context.menu.delete", + "title": "APP.ACTIONS.DELETE", + "order": 1200, + "icon": "delete", + "actions": { + "click": "DELETE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 1300 + }, + { + "id": "app.context.menu.versions", + "title": "APP.ACTIONS.VERSIONS", + "order": 1400, + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.context.menu.permissions", + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "order": 1500, + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, + { + "id": "app.context.menu.joinLibrary", + "type": "custom", + "order": 100, + "component": "app.menu.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.context.menu.leaveLibrary", + "order": 200, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.context.menu.deleteLibrary", + "order": 300, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" + } + }, + { + "id": "app.context.menu.purgeDeletedNodes", + "order": 100, + "title": "APP.ACTIONS.DELETE_PERMANENT", + "icon": "delete_forever", + "actions": { + "click": "PURGE_DELETED_NODES" + }, + "rules": { + "visible": "isTrashcanItemSelected" + } + }, + { + "id": "app.context.menu.restoreDeletedNodes", + "order": 200, + "title": "APP.ACTIONS.RESTORE", + "icon": "restore", + "actions": { + "click": "RESTORE_DELETED_NODES" + }, + "rules": { + "visible": "isTrashcanItemSelected" + } + } + ], + "viewer": { + "toolbarActions": [ + { + "id": "app.viewer.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.1", + "type": "separator", + "order": 180 + }, + { + "id": "app.viewer.share", + "type": "custom", + "order": 200, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.viewer.download", + "order": 300, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.viewer.print", + "order": 400, + "title": "APP.ACTIONS.PRINT", + "icon": "print", + "actions": { + "click": "PRINT_FILE" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.2", + "type": "separator", + "order": 450 + }, + { + "id": "app.viewer.infoDrawer", + "type": "custom", + "order": 500, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.viewer.toolbar.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.viewer.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.viewer.favorite.add", + "order": 300, + "title": "APP.ACTIONS.FAVORITE", + "icon": "star_border", + "actions": { + "click": "ADD_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canAdd" + } + }, + { + "id": "app.viewer.favorite.remove", + "order": 301, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "icon": "star", + "actions": { + "click": "REMOVE_FAVORITE" + }, + "rules": { + "visible": "app.toolbar.favorite.canRemove" + } + }, + { + "id": "app.viewer.favorite", + "comment": "workaround for Recent Files and Search API issue", + "type": "custom", + "order": 302, + "component": "app.toolbar.toggleFavorite", + "rules": { + "visible": "canToggleFavorite" + } + }, + { + "id": "app.viewer.more.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.viewer.move", + "order": 500, + "title": "APP.ACTIONS.MOVE", + "icon": "adf:move_file", + "actions": { + "click": "MOVE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.viewer.copy", + "order": 600, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.viewer.delete", + "order": 700, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.viewer.more.separator.3", + "type": "separator", + "order": 800 + }, + + { + "id": "app.viewer.versions", + "order": 900, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.viewer.permissions", + "order": 1000, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + } + ] + } + ], + "shared": { + "toolbarActions": [ + { + "id": "app.viewer.shared.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + } + }, + { + "id": "app.viewer.shared.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + } + } + ] + }, + "content": [ + { + "id": "app.viewer.pdf", + "disabled": true, + "fileExtension": "pdf", + "component": "app.components.tabs.metadata" + }, + { + "id": "app.viewer.docx", + "disabled": true, + "fileExtension": "docx", + "component": "app.components.tabs.comments" + } + ] + }, + "content-metadata-presets": [ + { + "id": "app.content.metadata.custom", + "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, + { + "id": "app.content.metadata.customGroup", + "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.exifAspect", + "aspect": "exif:exif", + "properties": [ + "exif:pixelXDimension", + "exif:pixelYDimension", + "exif:dateTimeOriginal", + "exif:exposureTime", + "exif:fNumber", + "exif:flash", + "exif:focalLength", + "exif:isoSpeedRatings", + "exif:orientation", + "exif:manufacturer", + "exif:model", + "exif:software" + ] + } + ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] + } + ] + } + ], + "documentList": { + "files": [ + { + "id": "app.files.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.files.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.files.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.files.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.files.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "favoriteLibraries": [ + { + "id": "app.favorite.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorite.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "shared": [ + { + "id": "app.shared.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.shared.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.shared.location", + "key": "path.name", + "sortingKey": "path", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.shared.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.shared.modifiedOn", + "key": "modifiedAt", + "sortingKey": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "class": "adf-ellipsis-cell", + "format": "timeAgo", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.shared.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + }, + { + "id": "app.shared.sharedBy", + "key": "sharedByUser.displayName", + "sortingKey": "sharedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 70 + } + ], + "recent": [ + { + "id": "app.recent.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.recent.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.recent.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.recent.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.recent.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "favorites": [ + { + "id": "app.favorites.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorites.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorites.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorites.size", + "key": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.favorites.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.favorites.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + } + ], + "trashcan": [ + { + "id": "app.trashcan.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.trashcan.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.trashcanName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.trashcan.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.trashcan.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.trashcan.deletedOn", + "key": "archivedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ] + } + } } diff --git a/e2e/resources/extensibility-configs/metadata-ext.json b/e2e/resources/extensibility-configs/metadata-ext.json index 17c79c588..ba1e5c70a 100644 --- a/e2e/resources/extensibility-configs/metadata-ext.json +++ b/e2e/resources/extensibility-configs/metadata-ext.json @@ -1,58 +1,16 @@ { "$schema": "../../extension.schema.json", - "$name": "app", + "$id": "app.core", + "$name": "app.core", "$version": "1.0.0", - "$references": [ - "plugin1.json", - "dev.tools.json", - "app.header.json", - "app.create.json" - ], + "$vendor": "Alfresco Software, Ltd.", + "$license": "LGPL-3.0", + "$runtime": "1.7.0", + "$description": "Core application extensions and features", + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -60,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -74,92 +29,68 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } + { "type": "rule", "value": "app.selection.library" }, + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], + "icons": [ + { + "id": "adf:join_library", + "value": "./assets/images/join-library.svg" + }, + { + "id": "adf:move_file", + "value": "./assets/images/adf-move-file-24px.svg" + } + ], "create": [ { "id": "app.create.uploadFile", @@ -217,6 +148,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -232,12 +196,27 @@ "route": "personal-files" }, { - "id": "app.navbar.libraries", + "id": "app.navbar.libraries.menu", "order": 200, - "icon": "group_work", + "icon": "library_books", "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" + "children": [ + { + "id": "app.navbar.libraries.favorite", + "order": 100, + "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" + } + ] } ] }, @@ -284,15 +263,40 @@ ], "toolbar": [ { - "id": "app.toolbar.preview", - "order": 100, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", + "id": "app.toolbar.searchFilter", + "order": 50, + "title": "APP.BROWSE.SEARCH.TOGGLE_SEARCH_FILTER", + "icon": "view_list", "actions": { - "click": "VIEW_FILE" + "click": "TOGGLE_SEARCH_FILTER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "app.navigation.isSearchResults" + } + }, + { + "id": "app.toolbar.share", + "type": "custom", + "order": 100, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.toolbar.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" } }, { @@ -304,19 +308,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.toolbar.editFolder", - "order": 300, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.canDownload" } }, { @@ -328,7 +320,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -340,16 +332,51 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { - "id": "app.toolbar.info", + "id": "app.toolbar.joinLibrary", + "type": "custom", + "order": 600, + "component": "app.toolbar.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.toolbar.leaveLibrary", + "order": 650, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 680 + }, + { + "id": "app.toolbar.info.infoDrawer", "type": "custom", "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.libraries.toolbar.infoDrawer", + "type": "custom", + "order": 800, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -359,19 +386,62 @@ "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ + { + "id": "app.toolbar.toggleLock", + "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } + }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 100, + "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" + } + }, + { + "id": "app.libraries.toolbar.toggleFavorite", + "type": "custom", + "order": 401, + "component": "app.toolbar.toggleFavoriteLibrary", + "rules": { + "visible": "app.selection.library" } }, { "id": "app.toolbar.favorite.add", - "order": 200, + "order": 402, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -383,8 +453,8 @@ }, { "id": "app.toolbar.favorite.remove", - "order": 300, - "title": "APP.ACTIONS.FAVORITE", + "order": 403, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -394,22 +464,15 @@ } }, { - "id": "app.toolbar.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.create.separator.1", + "type": "separator", + "order": 500 }, { "id": "app.toolbar.move", - "order": 500, + "order": 600, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -418,27 +481,15 @@ } }, { - "id": "app.toolbar.share", - "order": 600, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.toolbar.unshare", + "id": "app.toolbar.copy", "order": 700, - "title": "APP.ACTIONS.UNSHARE", - "icon": "stop_screen_share", + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", "actions": { - "click": "UNSHARE_NODES" + "click": "COPY_NODES" }, "rules": { - "visible": "app.selection.canUnshare" + "visible": "canCopyNode" } }, { @@ -453,9 +504,38 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 900 + }, + { + "id": "app.toolbar.versions", + "order": 1100, + "title": "APP.ACTIONS.VERSIONS", + "icon": "history", + "actions": { + "click": "MANAGE_VERSIONS" + }, + "rules": { + "visible": "canManageFileVersions" + } + }, + { + "id": "app.toolbar.permissions", + "order": 1200, + "title": "APP.ACTIONS.PERMISSIONS", + "icon": "settings_input_component", + "actions": { + "click": "MANAGE_PERMISSIONS" + }, + "rules": { + "visible": "canManagePermissions" + } + }, { "id": "app.toolbar.deleteLibrary", - "order": 900, + "order": 100, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -464,87 +544,90 @@ "rules": { "visible": "app.selection.library" } - }, - { - "id": "app.toolbar.versions", - "order": 1000, - "title": "APP.ACTIONS.VERSIONS", - "icon": "history", - "actions": { - "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } - }, - { - "id": "app.toolbar.permissions", - "order": 1100, - "title": "APP.ACTIONS.PERMISSIONS", - "icon": "settings_input_component", - "actions": { - "click": "MANAGE_PERMISSIONS" - }, - "rules": { - "visible": "app.toolbar.permissions" - } } ] } ], "contextMenu": [ { - "id": "app.context.menu.download", + "id": "app.context.menu.share", + "type": "custom", "order": 100, + "data": { + "iconButton": false + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.context.menu.download", + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", - "order": 200, - "title": "APP.ACTIONS.VIEW", - "icon": "open_in_browser", - "actions": { - "click": "VIEW_FILE" + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" } }, { "id": "app.context.menu.editFolder", - "order": 300, + "order": 600, "title": "APP.ACTIONS.EDIT", "icon": "create", "actions": { "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "canEditFolder" } }, { - "id": "app.context.menu.share", - "title": "APP.ACTIONS.SHARE", - "order": 400, - "icon": "share", + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", "actions": { - "click": "SHARE_NODE" + "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.selection.file.canShare" + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 500, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -555,8 +638,8 @@ }, { "id": "app.context.menu.favorite.remove", - "title": "APP.ACTIONS.FAVORITE", - "order": 600, + "title": "APP.ACTIONS.REMOVE_FAVORITE", + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -569,29 +652,32 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 501, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 700, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, + "id": "app.context.menu.libraries.toggleFavorite", + "type": "custom", + "order": 803, + "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.toolbar.canCopyNode" + "visible": "app.selection.library" } }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 900 + }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 800, - "icon": "library_books", + "order": 1000, + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -599,10 +685,22 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, { "id": "app.context.menu.delete", "title": "APP.ACTIONS.DELETE", - "order": 900, + "order": 1200, "icon": "delete", "actions": { "click": "DELETE_NODES" @@ -611,115 +709,193 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.create.separator.3", + "type": "separator", + "order": 1300 + }, { "id": "app.context.menu.versions", "title": "APP.ACTIONS.VERSIONS", - "order": 1000, + "order": 1400, "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.context.menu.permissions", "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", - "order": 1100, + "order": 1500, "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" + } + }, + { + "id": "app.context.menu.joinLibrary", + "type": "custom", + "order": 100, + "component": "app.menu.toggleJoinLibrary", + "rules": { + "visible": "canToggleJoinLibrary" + } + }, + { + "id": "app.context.menu.leaveLibrary", + "order": 200, + "title": "APP.ACTIONS.LEAVE", + "icon": "exit_to_app", + "actions": { + "click": "LEAVE_LIBRARY" + }, + "rules": { + "visible": "canLeaveLibrary" + } + }, + { + "id": "app.context.menu.deleteLibrary", + "order": 300, + "title": "APP.ACTIONS.DELETE", + "icon": "delete", + "actions": { + "click": "DELETE_LIBRARY" + }, + "rules": { + "visible": "app.selection.library" } }, { "id": "app.context.menu.purgeDeletedNodes", - "order": 1200, + "order": 100, "title": "APP.ACTIONS.DELETE_PERMANENT", "icon": "delete_forever", "actions": { "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { "id": "app.context.menu.restoreDeletedNodes", - "order": 1300, + "order": 200, "title": "APP.ACTIONS.RESTORE", "icon": "restore", "actions": { "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], "viewer": { "toolbarActions": [ - { - "id": "app.toolbar.download", - "order": 100, - "title": "APP.ACTIONS.DOWNLOAD", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.toolbar.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 200, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "app.toolbar.canViewFile" - } - }, - { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, { "id": "app.viewer.fullscreen", - "order": 400, + "order": 100, "title": "APP.ACTIONS.FULLSCREEN", "icon": "fullscreen", "actions": { "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { - "id": "app.toolbar.more", + "id": "app.viewer.separator.1", + "type": "separator", + "order": 180 + }, + { + "id": "app.viewer.share", + "type": "custom", + "order": 200, + "data": { + "iconButton": true + }, + "component": "app.shared-link.toggleSharedLink", + "rules": { + "visible": "canToggleSharedLink" + } + }, + { + "id": "app.viewer.download", + "order": 300, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + }, + "rules": { + "visible": "app.selection.canDownload" + } + }, + { + "id": "app.viewer.print", + "order": 400, + "title": "APP.ACTIONS.PRINT", + "icon": "print", + "actions": { + "click": "PRINT_FILE" + }, + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.viewer.separator.2", + "type": "separator", + "order": 450 + }, + { + "id": "app.viewer.infoDrawer", + "type": "custom", + "order": 500, + "component": "app.toolbar.toggleInfoDrawer", + "rules": { + "visible": "canShowInfoDrawer" + } + }, + { + "id": "app.viewer.toolbar.more", "type": "menu", "order": 10000, "icon": "more_vert", "title": "APP.ACTIONS.MORE", "children": [ { - "id": "app.viewer.favorite.add", + "id": "app.viewer.toggleLock", "order": 100, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.toolbar.uploadNodeVersion", + "order": 200, + "title": "APP.ACTIONS.UPLOAD_VERSION", + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" + } + }, + { + "id": "app.viewer.favorite.add", + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -731,8 +907,8 @@ }, { "id": "app.viewer.favorite.remove", - "order": 200, - "title": "APP.ACTIONS.FAVORITE", + "order": 301, + "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -745,41 +921,22 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 101, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.share", - "order": 300, - "title": "APP.ACTIONS.SHARE", - "icon": "share", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.canShare" - } - }, - { - "id": "app.viewer.copy", - "order": 400, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } + "id": "app.viewer.more.separator.1", + "type": "separator", + "order": 400 }, { "id": "app.viewer.move", "order": 500, "title": "APP.ACTIONS.MOVE", - "icon": "library_books", + "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, @@ -788,8 +945,20 @@ } }, { - "id": "app.viewer.delete", + "id": "app.viewer.copy", "order": 600, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" + } + }, + { + "id": "app.viewer.delete", + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { @@ -799,33 +968,61 @@ "visible": "app.selection.canDelete" } }, + { + "id": "app.viewer.more.separator.3", + "type": "separator", + "order": 800 + }, + { "id": "app.viewer.versions", - "order": 700, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 800, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "icon": "settings_input_component", "actions": { "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] } ], + "shared": { + "toolbarActions": [ + { + "id": "app.viewer.shared.fullscreen", + "order": 100, + "title": "APP.ACTIONS.FULLSCREEN", + "icon": "fullscreen", + "actions": { + "click": "FULLSCREEN_VIEWER" + } + }, + { + "id": "app.viewer.shared.download", + "order": 200, + "title": "APP.ACTIONS.DOWNLOAD", + "icon": "get_app", + "actions": { + "click": "DOWNLOAD_NODES" + } + } + ] + }, "content": [ { "id": "app.viewer.pdf", @@ -847,20 +1044,38 @@ "id": "app.sidebar.properties", "order": 100, "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "component": "app.components.tabs.metadata" + "component": "app.components.tabs.metadata", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.comments", "order": 200, "title": "APP.INFO_DRAWER.TABS.COMMENTS", - "component": "app.components.tabs.comments" + "component": "app.components.tabs.comments", + "rules": { + "visible": "app.navigation.isNotLibraries" + } }, { "id": "app.sidebar.versions", "order": 300, "disabled": true, "title": "APP.INFO_DRAWER.TABS.VERSIONS", - "component": "app.components.tabs.versions" + "component": "app.components.tabs.versions", + "rules": { + "visible": "app.navigation.isNotLibraries" + } + }, + { + "id": "app.sidebar.library.properties", + "order": 500, + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", + "component": "app.components.tabs.library.metadata", + "rules": { + "visible": "app.toolbar.favorite.canEditMetadata" + } } ] }, @@ -868,6 +1083,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "a.testGroup", "title": "A Test Group of Properties", @@ -892,6 +1133,20 @@ } ] }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] + }, { "id": "another.testGroup", "title": "Another Test Group of Properties", @@ -924,6 +1179,475 @@ } ] } - ] + ], + "documentList": { + "files": [ + { + "id": "app.files.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.files.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.files.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.files.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.files.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "favoriteLibraries": [ + { + "id": "app.favorite.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorite.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "shared": [ + { + "id": "app.shared.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.shared.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.shared.location", + "key": "path.name", + "sortingKey": "path", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.shared.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.shared.modifiedOn", + "key": "modifiedAt", + "sortingKey": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "class": "adf-ellipsis-cell", + "format": "timeAgo", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.shared.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + }, + { + "id": "app.shared.sharedBy", + "key": "sharedByUser.displayName", + "sortingKey": "sharedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 70 + } + ], + "recent": [ + { + "id": "app.recent.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.recent.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.recent.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.recent.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.recent.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "favorites": [ + { + "id": "app.favorites.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorites.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorites.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorites.size", + "key": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.favorites.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.favorites.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + } + ], + "trashcan": [ + { + "id": "app.trashcan.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.trashcan.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.trashcanName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.trashcan.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.trashcan.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.trashcan.deletedOn", + "key": "archivedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ] + } } } diff --git a/e2e/resources/extensibility-configs/viewer-ext.json b/e2e/resources/extensibility-configs/viewer-ext.json index e11a53536..50e59d126 100644 --- a/e2e/resources/extensibility-configs/viewer-ext.json +++ b/e2e/resources/extensibility-configs/viewer-ext.json @@ -7,75 +7,10 @@ "$license": "LGPL-3.0", "$runtime": "1.7.0", "$description": "Core application extensions and features", - "$references": ["aos.plugin.json"], + "$references": [], + "$ignoreReferenceList": ["about.plugin.json", "settings.plugin.json"], "rules": [ - { - "id": "app.toolbar.favorite.canToggle", - "comment": "workaround for recent files and search api issue", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.selection.canAddFavorite" - }, - { - "type": "rule", - "value": "app.selection.canRemoveFavorite" - } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { - "type": "rule", - "value": "app.navigation.isRecentFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSharedFiles" - }, - { - "type": "rule", - "value": "app.navigation.isSearchResults" - }, - { - "type": "rule", - "value": "app.navigation.isFavorites" - } - ] - } - ] - }, - { - "id": "app.context.canShare", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canShare" }, - { "type": "rule", "value": "repository.isQuickShareEnabled" } - ] - }, - { - "id": "app.toolbar.canShare", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canShare" }, - { "type": "rule", "value": "repository.isQuickShareEnabled" }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.file.isShared" } - ] - } - ] - }, { "id": "app.toolbar.favorite.canAdd", "type": "core.every", @@ -83,10 +18,7 @@ { "type": "rule", "value": "app.selection.canAddFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, @@ -97,178 +29,58 @@ { "type": "rule", "value": "app.selection.canRemoveFavorite" }, { "type": "rule", "value": "app.navigation.isNotRecentFiles" }, { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { - "type": "rule", - "value": "app.navigation.isNotSearchResults" - }, + { "type": "rule", "value": "app.navigation.isNotSearchResults" }, { "type": "rule", "value": "app.navigation.isNotFavorites" } ] }, { - "id": "app.toolbar.info", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.libraries.toolbar", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.selection.library" } - ] - }, - { - "id": "app.libraries.toolbar.canToggleJoin", + "id": "app.toolbar.favorite.canEditMetadata", "type": "core.every", "parameters": [ { "type": "rule", "value": "app.selection.library" }, - { "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.isPrivateLibrary" } - ] - }, - { "type": "rule", "value": "app.selection.hasNoLibraryRole" } - ] - }, - { - "id": "app.libraries.toolbar.canLeaveLibrary", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.library" }, - { "type": "rule", "value": "app.selection.hasLibraryRole" } - ] - }, - { - "id": "app.toolbar.canCopyNode", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.navigation.isNotLibraries" } - ] - }, - { - "id": "app.toolbar.permissions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.first.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.versions", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.selection.file.isLocked" } - ] - } - ] - }, - { - "id": "app.trashcan.hasSelection", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.notEmpty" }, - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - }, - { - "id": "app.toolbar.canEditFolder", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.folder" }, - { "type": "rule", "value": "app.selection.folder.canUpdate" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canViewFile", - "type": "core.every", - "parameters": [ - { - "type": "rule", - "value": "app.selection.file" - }, - { - "type": "rule", - "value": "core.not", - "parameters": [ - { "type": "rule", "value": "app.navigation.isTrashcan" } - ] - } - ] - }, - { - "id": "app.toolbar.canDownload", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDownload" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canDelete", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.canDelete" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" } - ] - }, - { - "id": "app.toolbar.canToggleLock", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isNotFavorites" }, - { "type": "rule", "value": "app.navigation.isFavoritesPreview" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.navigation.isNotSharedFiles" }, - { "type": "rule", "value": "app.navigation.isSharedPreview" } - ] - }, - { - "type": "rule", - "value": "core.some", - "parameters": [ - { "type": "rule", "value": "app.selection.file.canUnlock" }, - { "type": "rule", "value": "app.selection.file.canLock" } - ] - } - ] - }, - { - "id": "app.toolbar.canUploadNewVersion", - "type": "core.every", - "parameters": [ - { "type": "rule", "value": "app.selection.file" }, - { "type": "rule", "value": "app.navigation.isNotTrashcan" }, - { "type": "rule", "value": "app.selection.file.canUploadVersion" } + { "type": "rule", "value": "isLibraryManager" } ] } ], "features": { + "header": [ + { + "id": "app.header.user", + "type": "custom", + "component": "app.user", + "order": 100 + }, + { + "id": "app.header.more", + "type": "menu", + "order": 10000, + "icon": "more_vert", + "title": "APP.ACTIONS.MORE", + "children": [ + { + "id": "app.languagePicker", + "order": 100, + "type": "custom", + "component": "app.languagePicker" + }, + { + "id": "logout.separator", + "type": "separator", + "order": 199 + }, + { + "id": "app.logout", + "order": 200, + "type": "custom", + "component": "app.logout", + "rules": { + "visible": "app.canShowLogout" + } + } + ] + } + ], "icons": [ { "id": "adf:join_library", @@ -336,6 +148,39 @@ "actions": { "click": "CREATE_LIBRARY" } + }, + { + "id": "app.create.separator.2", + "type": "separator", + "order": 650 + }, + { + "id": "app.create.fileFromTemplate", + "order": 700, + "icon": "description", + "title": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FILE_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FILE_NOT_ALLOWED", + "actions": { + "click": "FILE_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } + }, + { + "id": "app.create.folderFromTemplate", + "order": 800, + "icon": "create_new_folder", + "title": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description": "APP.NEW_MENU.MENU_ITEMS.FOLDER_TEMPLATE", + "description-disabled": "APP.NEW_MENU.TOOLTIPS.CREATE_FOLDER_NOT_ALLOWED", + "actions": { + "click": "FOLDER_FROM_TEMPLATE" + }, + "rules": { + "enabled": "app.navigation.folder.canUpload" + } } ], "navbar": [ @@ -357,19 +202,19 @@ "title": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.SIDENAV_LINK.TOOLTIP", "children": [ - { - "id": "app.navbar.libraries.files", - "order": 100, - "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", - "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", - "route": "libraries" - }, { "id": "app.navbar.libraries.favorite", - "order": 200, + "order": 100, "title": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.LABEL", "description": "APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.SIDENAV_LINK.TOOLTIP", "route": "favorite/libraries" + }, + { + "id": "app.navbar.libraries.files", + "order": 200, + "title": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.LABEL", + "description": "APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.SIDENAV_LINK.TOOLTIP", + "route": "libraries" } ] } @@ -431,38 +276,27 @@ }, { "id": "app.toolbar.share", + "type": "custom", "order": 100, - "title": "APP.ACTIONS.SHARE", - "icon": "link", - "actions": { - "click": "SHARE_NODE" + "data": { + "iconButton": true }, + "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.toolbar.canShare" - } - }, - { - "id": "app.toolbar.share.edit", - "order": 101, - "title": "APP.ACTIONS.SHARE_EDIT", - "icon": "link", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.isShared" + "visible": "canToggleSharedLink" } }, { "id": "app.toolbar.preview", + "type": "custom", "order": 300, - "title": "APP.ACTIONS.VIEW", - "icon": "visibility", - "actions": { - "click": "VIEW_FILE" + "data": { + "title": "APP.ACTIONS.VIEW", + "iconButton": true }, + "component": "app.toolbar.viewNode", "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -474,7 +308,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { @@ -486,7 +320,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -498,7 +332,7 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -507,7 +341,7 @@ "order": 600, "component": "app.toolbar.toggleJoinLibrary", "rules": { - "visible": "app.libraries.toolbar.canToggleJoin" + "visible": "canToggleJoinLibrary" } }, { @@ -519,7 +353,7 @@ "click": "LEAVE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar.canLeaveLibrary" + "visible": "canLeaveLibrary" } }, { @@ -533,7 +367,7 @@ "order": 700, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" } }, { @@ -542,7 +376,7 @@ "order": 800, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.toolbar.favorite.canEditMetadata" } }, { @@ -558,7 +392,7 @@ "type": "custom", "component": "app.toolbar.toggleEditOffline", "rules": { - "visible": "app.toolbar.canToggleLock" + "visible": "canToggleEditOffline" } }, { @@ -570,22 +404,30 @@ "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.toolbar.canUploadNewVersion" + "visible": "app.selection.file.canUploadVersion" } }, { - "id": "app.create.separator.1", - "type": "separator", - "order": 300 + "id": "app.toolbar.editFolder", + "order": 300, + "title": "APP.ACTIONS.EDIT", + "icon": "create", + "actions": { + "click": "EDIT_FOLDER" + }, + "rules": { + "visible": "canEditFolder" + } }, { "id": "app.toolbar.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", "order": 400, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { @@ -594,7 +436,7 @@ "order": 401, "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.selection.library" } }, { @@ -622,44 +464,32 @@ } }, { - "id": "app.toolbar.editFolder", - "order": 450, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" - } - }, - { - "id": "app.create.separator.2", + "id": "app.create.separator.1", "type": "separator", "order": 500 }, - { - "id": "app.toolbar.copy", - "order": 600, - "title": "APP.ACTIONS.COPY", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, { "id": "app.toolbar.move", - "order": 700, + "order": 600, "title": "APP.ACTIONS.MOVE", "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.toolbar.copy", + "order": 700, + "title": "APP.ACTIONS.COPY", + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" } }, { @@ -671,7 +501,7 @@ "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { @@ -686,10 +516,10 @@ "icon": "history", "actions": { "click": "MANAGE_VERSIONS" - }, - "rules": { - "visible": "app.toolbar.versions" - } + }, + "rules": { + "visible": "canManageFileVersions" + } }, { "id": "app.toolbar.permissions", @@ -700,7 +530,7 @@ "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } }, { @@ -719,69 +549,85 @@ } ], "contextMenu": [ - { - "id": "app.context.toggleLock", - "order": 100, - "type": "custom", - "component": "app.toolbar.toggleEditOffline", - "rules": { - "visible": "app.toolbar.canToggleLock" - } - }, - { - "id": "app.context.menu.uploadNodeVersion", - "title": "APP.ACTIONS.UPLOAD_VERSION", - "order": 200, - "icon": "playlist_add", - "actions": { - "click": "UPLOAD_FILE_VERSION" - }, - "rules": { - "visible": "app.toolbar.canUploadNewVersion" - } - }, - { - "id": "app.create.separator.1", - "type": "separator", - "order": 300 - }, { "id": "app.context.menu.share", "type": "custom", - "order": 400, + "order": 100, + "data": { + "iconButton": false + }, "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.context.canShare" + "visible": "canToggleSharedLink" } }, { "id": "app.context.menu.download", - "order": 500, + "order": 200, "title": "APP.ACTIONS.DOWNLOAD", "icon": "get_app", "actions": { "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { "id": "app.context.menu.preview", + "type": "custom", + "order": 300, + "data": { + "title": "APP.ACTIONS.VIEW", + "menuButton": true + }, + "component": "app.toolbar.viewNode", + "rules": { + "visible": "canViewFile" + } + }, + { + "id": "app.create.separator.1", + "type": "separator", + "order": 400 + }, + { + "id": "app.context.toggleLock", + "order": 500, + "type": "custom", + "component": "app.toolbar.toggleEditOffline", + "rules": { + "visible": "canToggleEditOffline" + } + }, + { + "id": "app.context.menu.editFolder", "order": 600, - "title": "APP.ACTIONS.VIEW", - "icon": "visibility", + "title": "APP.ACTIONS.EDIT", + "icon": "create", "actions": { - "click": "VIEW_FILE" + "click": "EDIT_FOLDER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canEditFolder" + } + }, + { + "id": "app.context.menu.uploadNodeVersion", + "title": "APP.ACTIONS.UPLOAD_VERSION", + "order": 700, + "icon": "playlist_add", + "actions": { + "click": "UPLOAD_FILE_VERSION" + }, + "rules": { + "visible": "app.selection.file.canUploadVersion" } }, { "id": "app.context.menu.favorite.add", "title": "APP.ACTIONS.FAVORITE", - "order": 700, + "order": 800, "icon": "star_border", "actions": { "click": "ADD_FAVORITE" @@ -793,7 +639,7 @@ { "id": "app.context.menu.favorite.remove", "title": "APP.ACTIONS.REMOVE_FAVORITE", - "order": 701, + "order": 801, "icon": "star", "actions": { "click": "REMOVE_FAVORITE" @@ -806,31 +652,20 @@ "id": "app.context.menu.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 702, + "order": 802, + "data": "['/favorites', '/favorite/libraries']", "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { "id": "app.context.menu.libraries.toggleFavorite", "type": "custom", - "order": 703, + "order": 803, "component": "app.toolbar.toggleFavoriteLibrary", "rules": { - "visible": "app.libraries.toolbar" - } - }, - { - "id": "app.context.menu.editFolder", - "order": 800, - "title": "APP.ACTIONS.EDIT", - "icon": "create", - "actions": { - "click": "EDIT_FOLDER" - }, - "rules": { - "visible": "app.toolbar.canEditFolder" + "visible": "app.selection.library" } }, { @@ -838,28 +673,28 @@ "type": "separator", "order": 900 }, - { - "id": "app.context.menu.copy", - "title": "APP.ACTIONS.COPY", - "order": 1000, - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, { "id": "app.context.menu.move", "title": "APP.ACTIONS.MOVE", - "order": 1100, + "order": 1000, "icon": "adf:move_file", "actions": { "click": "MOVE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" + } + }, + { + "id": "app.context.menu.copy", + "title": "APP.ACTIONS.COPY", + "order": 1100, + "icon": "content_copy", + "actions": { + "click": "COPY_NODES" + }, + "rules": { + "visible": "canCopyNode" } }, { @@ -871,7 +706,7 @@ "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { @@ -888,7 +723,7 @@ "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { @@ -900,7 +735,7 @@ "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } }, { @@ -909,7 +744,7 @@ "order": 100, "component": "app.menu.toggleJoinLibrary", "rules": { - "visible": "app.libraries.toolbar.canToggleJoin" + "visible": "canToggleJoinLibrary" } }, { @@ -921,7 +756,7 @@ "click": "LEAVE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar.canLeaveLibrary" + "visible": "canLeaveLibrary" } }, { @@ -933,7 +768,7 @@ "click": "DELETE_LIBRARY" }, "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.selection.library" } }, { @@ -945,7 +780,7 @@ "click": "PURGE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } }, { @@ -957,7 +792,7 @@ "click": "RESTORE_DELETED_NODES" }, "rules": { - "visible": "app.trashcan.hasSelection" + "visible": "isTrashcanItemSelected" } } ], @@ -972,7 +807,7 @@ "click": "FULLSCREEN_VIEWER" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -984,7 +819,7 @@ "click": "SHARE_NODE" }, "rules": { - "visible": "app.selection.file.canShare" + "visible": "canToggleSharedLink" } }, { @@ -994,26 +829,14 @@ }, { "id": "app.viewer.share", + "type": "custom", "order": 200, - "title": "APP.ACTIONS.SHARE", - "icon": "link", - "actions": { - "click": "SHARE_NODE" + "data": { + "iconButton": true }, + "component": "app.shared-link.toggleSharedLink", "rules": { - "visible": "app.toolbar.canShare" - } - }, - { - "id": "app.viewer.share.edit", - "order": 250, - "title": "APP.ACTIONS.SHARE_EDIT", - "icon": "link", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "app.selection.file.isShared" + "visible": "canToggleSharedLink" } }, { @@ -1025,7 +848,7 @@ "click": "DOWNLOAD_NODES" }, "rules": { - "visible": "app.toolbar.canDownload" + "visible": "app.selection.canDownload" } }, { @@ -1038,7 +861,7 @@ "click": "PRINT_FILE" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -1052,7 +875,7 @@ "order": 500, "component": "app.toolbar.toggleInfoDrawer", "rules": { - "visible": "app.toolbar.info" + "visible": "canShowInfoDrawer" } }, { @@ -1068,7 +891,7 @@ "type": "custom", "component": "app.toolbar.toggleEditOffline", "rules": { - "visible": "app.toolbar.canToggleLock" + "visible": "canToggleEditOffline" } }, { @@ -1080,7 +903,7 @@ "click": "PRINT_FILE" }, "rules": { - "visible": "app.toolbar.canViewFile" + "visible": "canViewFile" } }, { @@ -1092,17 +915,12 @@ "click": "UPLOAD_FILE_VERSION" }, "rules": { - "visible": "app.toolbar.canUploadNewVersion" + "visible": "app.selection.file.canUploadVersion" } }, - { - "id": "app.viewer.more.separator.1", - "type": "separator", - "order": 300 - }, { "id": "app.viewer.favorite.add", - "order": 400, + "order": 300, "title": "APP.ACTIONS.FAVORITE", "icon": "star_border", "actions": { @@ -1114,7 +932,7 @@ }, { "id": "app.viewer.favorite.remove", - "order": 401, + "order": 301, "title": "APP.ACTIONS.REMOVE_FAVORITE", "icon": "star", "actions": { @@ -1128,16 +946,28 @@ "id": "app.viewer.favorite", "comment": "workaround for Recent Files and Search API issue", "type": "custom", - "order": 402, + "order": 302, "component": "app.toolbar.toggleFavorite", "rules": { - "visible": "app.toolbar.favorite.canToggle" + "visible": "canToggleFavorite" } }, { - "id": "app.viewer.more.separator.2", + "id": "app.viewer.more.separator.1", "type": "separator", - "order": 500 + "order": 400 + }, + { + "id": "app.viewer.move", + "order": 500, + "title": "My new title", + "icon": "adf:move_file", + "actions": { + "click": "MOVE_NODES" + }, + "rules": { + "visible": "app.selection.canDelete" + } }, { "id": "app.viewer.copy", @@ -1148,54 +978,42 @@ "click": "COPY_NODES" }, "rules": { - "visible": "app.toolbar.canCopyNode" - } - }, - { - "id": "app.viewer.move", - "order": 700, - "title": "My new title", - "icon": "adf:move_file", - "actions": { - "click": "MOVE_NODES" - }, - "rules": { - "visible": "app.toolbar.canDelete" + "visible": "canCopyNode" } }, { "id": "app.viewer.delete", - "order": 800, + "order": 700, "title": "APP.ACTIONS.DELETE", "icon": "delete", "actions": { "click": "DELETE_NODES" }, "rules": { - "visible": "app.toolbar.canDelete" + "visible": "app.selection.canDelete" } }, { "id": "app.viewer.more.separator.3", "type": "separator", - "order": 900 + "order": 800 }, { "id": "app.viewer.versions", - "order": 1000, + "order": 900, "title": "APP.ACTIONS.VERSIONS", "icon": "history", "actions": { "click": "MANAGE_VERSIONS" }, "rules": { - "visible": "app.toolbar.versions" + "visible": "canManageFileVersions" } }, { "id": "app.viewer.permissions", - "order": 1100, + "order": 1000, "title": "APP.ACTIONS.PERMISSIONS", "disabled": true, "icon": "settings_input_component", @@ -1203,7 +1021,7 @@ "click": "MANAGE_PERMISSIONS" }, "rules": { - "visible": "app.toolbar.permissions" + "visible": "canManagePermissions" } } ] @@ -1277,10 +1095,10 @@ { "id": "app.sidebar.library.properties", "order": 500, - "title": "APP.INFO_DRAWER.TABS.LIBRARY_PROPERTIES", + "title": "APP.INFO_DRAWER.TABS.PROPERTIES", "component": "app.components.tabs.library.metadata", "rules": { - "visible": "app.libraries.toolbar" + "visible": "app.toolbar.favorite.canEditMetadata" } } ] @@ -1289,6 +1107,32 @@ { "id": "app.content.metadata.custom", "custom": [ + { + "id": "app.content.metadata.customSetting", + "includeAll": true, + "exclude": [ + "rn:renditioned", + "cm:versionable", + "cm:auditable", + "cm:thumbnailModification", + "cm:content", + "cm:author", + "cm:titled", + "cm:generalclassifiable", + "cm:taggable", + "dp:restrictable", + "fm:commentsRollup", + "qshare:shared", + + "exif:exif", + "cm:effectivity", + + "cm:emailed", + "cm:likesRatingSchemeRollups", + "cm:lockable", + "cm:ownable" + ] + }, { "id": "app.content.metadata.customGroup", "title": "APP.CONTENT_METADATA.EXIF_GROUP_TITLE", @@ -1312,6 +1156,20 @@ ] } ] + }, + { + "id": "app.content.metadata.effectivityGroup", + "title": "APP.CONTENT_METADATA.EFFECTIVITY_GROUP_TITLE", + "items": [ + { + "id": "app.content.metadata.effectivityAspect", + "aspect": "cm:effectivity", + "properties": [ + "cm:from", + "cm:to" + ] + } + ] } ] } @@ -1323,7 +1181,8 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.files.name", @@ -1333,15 +1192,19 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.name", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { "id": "app.files.size", "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.files.modifiedOn", @@ -1349,17 +1212,21 @@ "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", "type": "date", "format": "timeAgo", + "class": "adf-ellipsis-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 40 }, { "id": "app.files.modifiedBy", "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", "type": "text", - "class": "adf-ellipsis-cell", + "class": "adf-ellipsis-cell adf-no-grow-cell", "sortable": true, - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "libraries": [ @@ -1368,45 +1235,52 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.libraries.name", "key": "title", + "sortingKey": "name", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-3", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 }, { - "id": "app.favorite.libraries.description", + "id": "app.libraries.description", "key": "description", "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", "type": "text", "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, - "template": "app.columns.libraryDescription", - "desktopOnly": true + "desktopOnly": true, + "order": 30 }, { "id": "app.libraries.role", "key": "role", "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryRole", - "desktopOnly": false + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ], "favoriteLibraries": [ @@ -1415,17 +1289,324 @@ "key": "$thumbnail", "type": "image", "sortable": false, - "desktopOnly": false + "desktopOnly": false, + "order": 10 }, { "id": "app.favorite.libraries.name", "key": "title", + "sortingKey": "name", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-3", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorite.libraries.role", + "key": "role", + "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryRole", + "desktopOnly": false, + "order": 40 + }, + { + "id": "app.favorite.libraries.visibility", + "key": "visibility", + "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", + "type": "text", + "class": "adf-no-grow-cell", + "sortable": true, + "template": "app.columns.libraryStatus", + "desktopOnly": true, + "order": 50 + } + ], + "shared": [ + { + "id": "app.shared.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.shared.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.shared.location", + "key": "path.name", + "sortingKey": "path", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.shared.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.shared.modifiedOn", + "key": "modifiedAt", + "sortingKey": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "class": "adf-ellipsis-cell", + "format": "timeAgo", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.shared.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + }, + { + "id": "app.shared.sharedBy", + "key": "sharedByUser.displayName", + "sortingKey": "sharedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 70 + } + ], + "recent": [ + { + "id": "app.recent.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.recent.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.recent.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.recent.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.recent.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "favorites": [ + { + "id": "app.favorites.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.favorites.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.name", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.favorites.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.favorites.size", + "key": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.favorites.modifiedOn", + "key": "modifiedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + }, + { + "id": "app.favorites.modifiedBy", + "key": "modifiedByUser.displayName", + "sortingKey": "modifiedByUser", + "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "desktopOnly": true, + "order": 60 + } + ], + "trashcan": [ + { + "id": "app.trashcan.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.trashcan.name", + "key": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.trashcanName", + "desktopOnly": false, + "order": 20 + }, + { + "id": "app.trashcan.location", + "key": "path.name", + "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", + "type": "text", + "class": "adf-ellipsis-cell adf-no-grow-cell", + "sortable": true, + "template": "app.columns.location", + "desktopOnly": true, + "order": 30 + }, + { + "id": "app.trashcan.size", + "key": "content.sizeInBytes", + "sortingKey": "sizeInBytes", + "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", + "type": "fileSize", + "class": "adf-no-grow-cell adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 40 + }, + { + "id": "app.trashcan.deletedOn", + "key": "archivedAt", + "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", + "type": "date", + "format": "timeAgo", + "class": "adf-ellipsis-cell", + "sortable": true, + "desktopOnly": true, + "order": 50 + } + ], + "search-libraries": [ + { + "id": "app.libraries.thumbnail", + "key": "$thumbnail", + "type": "image", + "sortable": false, + "desktopOnly": false, + "order": 10 + }, + { + "id": "app.libraries.name", + "key": "title", + "sortingKey": "name", + "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-3", + "sortable": true, + "template": "app.columns.libraryName", + "desktopOnly": false, + "order": 20 }, { "id": "app.favorite.libraries.description", @@ -1435,269 +1616,30 @@ "class": "adf-ellipsis-cell adf-expand-cell-5", "sortable": true, "template": "app.columns.libraryDescription", - "desktopOnly": true - }, - { - "id": "app.favorite.libraries.role", - "key": "role", - "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", - "type": "text", - "sortable": true, - "template": "app.columns.libraryRole", - "desktopOnly": false - }, - { - "id": "app.favorite.libraries.visibility", - "key": "visibility", - "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", - "type": "text", - "sortable": true, - "template": "app.columns.libraryStatus", - "desktopOnly": true - } - ], - "shared": [ - { - "id": "app.shared.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.shared.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.shared.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.shared.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.modifiedBy", - "key": "modifiedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.shared.sharedBy", - "key": "sharedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.SHARED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - } - ], - "recent": [ - { - "id": "app.recent.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.recent.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.recent.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.recent.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.recent.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - } - ], - "favorites": [ - { - "id": "app.favorites.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.favorites.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.name", - "desktopOnly": false - }, - { - "id": "app.favorites.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.favorites.size", - "key": "sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.favorites.modifiedOn", - "key": "modifiedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.favorites.modifiedBy", - "key": "modifiedByUser.displayName", - "title": "APP.DOCUMENT_LIST.COLUMNS.MODIFIED_BY", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true - } - ], - "trashcan": [ - { - "id": "app.trashcan.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.trashcan.name", - "key": "name", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.trashcanName", - "desktopOnly": false - }, - { - "id": "app.trashcan.location", - "key": "path.name", - "title": "APP.DOCUMENT_LIST.COLUMNS.LOCATION", - "type": "text", - "sortable": true, - "template": "app.columns.location", - "desktopOnly": true - }, - { - "id": "app.trashcan.size", - "key": "content.sizeInBytes", - "title": "APP.DOCUMENT_LIST.COLUMNS.SIZE", - "type": "fileSize", - "sortable": true, - "desktopOnly": true - }, - { - "id": "app.trashcan.deletedOn", - "key": "archivedAt", - "title": "APP.DOCUMENT_LIST.COLUMNS.DELETED_ON", - "type": "date", - "format": "timeAgo", - "sortable": true, - "desktopOnly": true - } - ], - "search-libraries": [ - { - "id": "app.libraries.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "id": "app.libraries.name", - "key": "title", - "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", - "type": "text", - "class": "adf-expand-cell-5", - "sortable": true, - "template": "app.columns.libraryName", - "desktopOnly": false + "desktopOnly": true, + "order": 30 }, { "id": "app.libraries.role", "key": "role", "title": "APP.DOCUMENT_LIST.COLUMNS.ROLE", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryRole", - "desktopOnly": false + "desktopOnly": false, + "order": 40 }, { "id": "app.libraries.visibility", "key": "visibility", "title": "APP.DOCUMENT_LIST.COLUMNS.VISIBILITY", "type": "text", + "class": "adf-no-grow-cell", "sortable": true, "template": "app.columns.libraryStatus", - "desktopOnly": true + "desktopOnly": true, + "order": 50 } ] } diff --git a/e2e/suites/extensions/ext-header.test.ts b/e2e/suites/extensions/ext-header.test.ts index 743e6e2b8..6a0cf34c4 100755 --- a/e2e/suites/extensions/ext-header.test.ts +++ b/e2e/suites/extensions/ext-header.test.ts @@ -25,7 +25,7 @@ import { AdminActions, LoginPage, EXTENSIBILITY_CONFIGS, Utils, Header, Menu } from '@alfresco/aca-testing-shared'; -describe('Extensions - Info Drawer', () => { +describe('Extensions - Header', () => { const username = `user-${Utils.random()}`; const disabledMenu = { diff --git a/e2e/suites/navigation/breadcrumb.test.ts b/e2e/suites/navigation/breadcrumb.test.ts index 2920481de..7008fec98 100755 --- a/e2e/suites/navigation/breadcrumb.test.ts +++ b/e2e/suites/navigation/breadcrumb.test.ts @@ -216,9 +216,9 @@ describe('Breadcrumb', () => { it(`[C260970] Breadcrumb on navigation to a user's home`, async () => { await page.dataTable.doubleClickOnRowByName('User Homes'); + await page.dataTable.waitForBody(); await page.dataTable.doubleClickOnRowByName(user2); - - await browser.sleep(4000); + await page.dataTable.waitForBody(); expect(await breadcrumb.getAllItems()).toEqual(['Personal Files', 'User Homes', user2]); await page.dataTable.doubleClickOnRowByName(userFolder); diff --git a/projects/aca-testing-shared/src/components/dialog/select-template-dialog.ts b/projects/aca-testing-shared/src/components/dialog/select-template-dialog.ts index 6c150ec2f..8f2fcb8cc 100755 --- a/projects/aca-testing-shared/src/components/dialog/select-template-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/select-template-dialog.ts @@ -41,6 +41,10 @@ export class SelectTemplateDialog extends GenericDialog { super('.aca-template-node-selector-dialog'); } + get content() { + return this.rootElem.element(by.css('.adf-content-node-selector-content')); + } + async isCancelButtonEnabled(): Promise { return isPresentAndEnabled(this.cancelButton); } diff --git a/projects/aca-testing-shared/src/configs.ts b/projects/aca-testing-shared/src/configs.ts index d70fe2d84..e98e91705 100755 --- a/projects/aca-testing-shared/src/configs.ts +++ b/projects/aca-testing-shared/src/configs.ts @@ -114,7 +114,6 @@ export const FILES = { }; export const EXTENSIBILITY_CONFIGS = { - DEFAULT_EXTENSIONS_CONFIG: 'extensions-default.json', INFO_DRAWER: 'info-drawer-ext.json', INFO_DRAWER_EMPTY: 'info-drawer-no-tabs-ext.json', VIEWER: 'viewer-ext.json', diff --git a/projects/aca-testing-shared/src/pages/browsing-page.ts b/projects/aca-testing-shared/src/pages/browsing-page.ts index 9562a9e98..4d98bf7ef 100755 --- a/projects/aca-testing-shared/src/pages/browsing-page.ts +++ b/projects/aca-testing-shared/src/pages/browsing-page.ts @@ -26,8 +26,6 @@ import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components'; import { SIDEBAR_LABELS } from './../configs'; import { Page } from './page'; -import { BrowserVisibility } from '@alfresco/adf-testing'; -import { browser, by } from 'protractor'; export class BrowsingPage extends Page { header = new Header(this.appRoot); @@ -37,12 +35,6 @@ export class BrowsingPage extends Page { dataTable = new DataTable(this.appRoot); pagination = new Pagination(this.appRoot); - async signOut(): Promise { - await this.header.openMoreMenu(); - await this.header.menu.clickMenuItem('Sign out'); - await BrowserVisibility.waitUntilElementIsPresent(browser.element(by.css('[class*="login-content"] input#username'))); - } - async clickPersonalFiles(): Promise { await this.sidenav.clickLink(SIDEBAR_LABELS.PERSONAL_FILES); } diff --git a/projects/aca-testing-shared/src/pages/login-page.ts b/projects/aca-testing-shared/src/pages/login-page.ts index 0b78099cc..46396946f 100755 --- a/projects/aca-testing-shared/src/pages/login-page.ts +++ b/projects/aca-testing-shared/src/pages/login-page.ts @@ -25,9 +25,8 @@ import { browser } from 'protractor'; import { LoginComponent } from '../components/components'; import { Page } from './page'; - import { APP_ROUTES } from '../configs'; -import { Utils, waitForPresence } from '../utilities/utils'; +import { waitForPresence } from '../utilities/utils'; import { BrowserActions } from '@alfresco/adf-testing'; export class LoginPage extends Page { @@ -39,22 +38,26 @@ export class LoginPage extends Page { async load() { await super.load(); - await Utils.clearLocalStorage(); - await super.load(); + + if (await this.isLoggedIn()) { + await this.signOut(); + } + await waitForPresence(this.login.submitButton); } async loginWith(username: string, password?: string) { const pass = password || username; + await this.load(); + await this.login.enterCredentials(username, pass); await BrowserActions.click(this.login.submitButton); - return super.waitForApp(); + await this.waitForApp(); } async loginWithAdmin() { - await this.load(); - return this.loginWith(browser.params.ADMIN_USERNAME, browser.params.ADMIN_PASSWORD); + await this.loginWith(browser.params.ADMIN_USERNAME, browser.params.ADMIN_PASSWORD); } async tryLoginWith(username: string, password?: string) { diff --git a/projects/aca-testing-shared/src/pages/page.ts b/projects/aca-testing-shared/src/pages/page.ts index a2633acdb..36238d9fc 100755 --- a/projects/aca-testing-shared/src/pages/page.ts +++ b/projects/aca-testing-shared/src/pages/page.ts @@ -25,8 +25,9 @@ import { browser, by, ElementFinder } from 'protractor'; import { BrowserActions, BrowserVisibility, Logger } from '@alfresco/adf-testing'; -import { USE_HASH_STRATEGY } from './../configs'; +import { APP_ROUTES, USE_HASH_STRATEGY } from './../configs'; import { Utils, waitElement, waitForPresence, isPresentAndDisplayed } from '../utilities/utils'; +import { Header } from '../components'; export abstract class Page { appRoot = 'app-root'; @@ -60,6 +61,12 @@ export abstract class Page { await waitForPresence(this.layout); } + async signOut(): Promise { + await new Header().openMoreMenu(); + await new Header().menu.clickMenuItem('Sign out'); + await BrowserVisibility.waitUntilElementIsPresent(browser.element(by.css('[class*="login-content"] input#username'))); + } + async waitForDialog() { await BrowserVisibility.waitUntilElementIsVisible(this.dialogContainer); } @@ -102,4 +109,9 @@ export abstract class Page { Logger.error(e, '.......failed on click snack bar action.........'); } } + + async isLoggedIn(): Promise { + const url = await browser.driver.getCurrentUrl(); + return !url.includes(APP_ROUTES.LOGIN); + } }